* {
    box-sizing: border-box;
    scrollbar-color: rgba(255,0,0,.52) rgba(255,0,0,.52);
    scrollbar-width: thin
}

a {
    color: #fff;
    text-decoration: none
}

audio {
    outline: 0
}

body,html {
    height: 100%
}

body {
    -webkit-tap-highlight-color: rgba(255,255,255,0);
    background-image: url(../images/bgn.jpg);
    background-size: cover;
    color: #fff;
    display: flex;
    flex-direction: column;
    font-family: Roboto,Arial;
    font-size: 13px;
    margin: 0
}

body.halloween {
    background-image: url(../images/bgh.jpg)
}

body.halloween::after {
    animation: ghost 3s infinite;
    background: url(../images/ghost.svg);
    background-size: cover;
    bottom: 0;
    content: '';
    height: 100px;
    position: absolute;
    right: 0;
    width: 83px;
    z-index: -1
}

body.snow::before {
    animation: snow 30s linear infinite;
    background-image: url(../images/snow.png),url(../images/snow3.png);
    bottom: 0;
    content: '';
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: -1
}

h1,h2,h3,h4 {
    margin-top: 0
}

img {
    max-width: 100%;
    -webkit-backface-visibility: hidden;
    -ms-transform: translateZ(0);
    -webkit-transform: translateZ(0);
    transform: translateZ(0)
}

input,textarea {
    font: inherit;
    outline: 0;
    padding: 4px
}

ol,ul {
    margin-top: 0
}

li>ol,li>ul {
    margin-top: 4px
}

ol {
    padding-left: 30px
}

ol li:not(:last-child),ul li:not(:last-child) {
    margin-bottom: 4px
}

p {
    line-height: 20px;
    margin-top: 0
}

p:last-child {
    margin-bottom: 0
}

::placeholder {
    color: inherit
}

::-webkit-scrollbar {
    height: 5px;
    width: 5px
}

::-webkit-scrollbar-button {
    height: 0;
    width: 0
}

::-webkit-scrollbar-thumb {
    background-color: rgba(255,0,0,.52);
    background-clip: border-box;
    border-radius: 4px;
    min-height: 28px
}

@keyframes ghost {
    0% {
        padding-bottom: 10px
    }

    50% {
        padding-bottom: 0
    }

    100% {
        padding-bottom: 10px
    }
}

@keyframes snow {
    0% {
        background-position: 0 0,0 0,0 0
    }

    100% {
        background-position: 500px 1000px,400px 400px,300px 300px
    }
}

.button {
    background: rgba(208,30,30,.65);
    border: none;
    border-radius: 2px;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    line-height: 16px;
    outline: 0;
    padding: 6px 8px;
    transition: background .25s ease-in-out
}

.button+.button {
    margin-left: 4px
}

.button:hover {
    background: rgba(208,30,30,.54)
}

#overlay {
    align-items: center;
    background: rgba(0,0,0,.4);
    bottom: 0;
    display: flex;
    justify-content: center;
    left: 0;
    opacity: 0;
    position: absolute;
    pointer-events: none;
    right: 0;
    top: 0;
    transition: opacity .35s ease-in-out;
    z-index: 10
}

#overlay.darker {
    background: rgba(0,0,0,.67)
}

#overlay.show {
    opacity: 1;
    pointer-events: initial
}

#overlay .inner {
    overflow-y: auto;
    padding: 0 10px;
    text-align: center
}

#overlay .images {
    display: flex
}

#overlay .images div {
    max-height: 384px;
    max-width: 384px
}

#overlay .description {
    margin: auto;
    max-width: 768px
}

#overlay p {
    line-height: 20px
}

#menu {
    display: flex;
    font-size: 14px;
    font-weight: 700;
    left: 20px;
    position: absolute;
    text-transform: uppercase;
    top: 20px;
    z-index: 1
}

#menu.small {
/*    align-items: center;
    background: rgba(0,0,0,.67);*/
    flex-direction: column;
    justify-content: center;
    left: 50px;
    margin: 0;
    opacity: 0;
    padding: 10px 0;
    pointer-events: none;
    transition: opacity .5s ease-in-out .1s;
    top: 10px;
    width: 150px;
    z-index: 2
}

#menu.show {
    opacity: 1;
    pointer-events: initial
}

#menu.small>* {
    margin: 2px 0
}

#menu * {
    cursor: pointer;
    margin-right: 16px;
    transition: color .25s ease-in-out
}

#menu :last-child {
    margin-right: 0
}

#menu .active,#menu :hover {
    color: #d01e1e;
    text-shadow: 0 1px 3px #1f2020
}

#menu:not(.small) .hide {
    display: none
}

#menutoggle {
    border-bottom: 7px double #fff;
    border-top: 2px solid #fff;
    content: "";
    cursor: pointer;
    display: none;
    height: 12px;
    left: 18px;
    position: absolute;
    top: 23px;
    transition: border-color .3s ease-in-out;
    width: 20px;
    z-index: 5
}

#menutoggle.active,#menutoggle:hover {
    border-color: #d01e1e
}

#menu.small+#menutoggle {
    display: block
}

#secret {
    position: absolute;
    right: 20px;
    text-align: right;
    top: 18px;
    z-index: 1
}

#secret p {
    font-size: 11px;
    font-weight: 700;
    line-height: 14px;
    margin: 0 0 2px
}

#secret p.event,#secret p.playercount,#secret p.rift {
    display: none
}

.message {
    border: 1px solid #d01e1e;
    margin: 20px 0;
    max-width: 520px
}

.message h4,.message p {
    margin: 10px!important
}

.blue,.blue a {
    color: #1e96d0
}

.red,.red a {
    color: #d01e1e
}

a.red {
    color: #d01e1e!important
}

.gold,.gold a {
    color: #d0991e
}

.silver,.silver a {
    color: #c3c3c3
}

.bronze,.bronze a {
    color: #ca5938
}

.ash,.ash a {
    color: #8a8989
}

.pink,.pink a {
    color: #ff0955
}

.purple,.purple a {
    color: #ae1ed0
}

a.purple {
    color: #ae1ed0!important
}

.green,.green a {
    color: #1fd01e
}

.yellow,.yellow a {
    color: #d0c41e
}

.brown,.brown a {
    color: #968a6a
}

.characters {
    display: flex;
    justify-content: center;
    line-height: 30px;
    margin-bottom: 30px;
    width: 100%
}

.characters .showall {
    display: none
}

.characters>*,.dropdown {
    background: rgba(208,30,30,.65);
    border: none;
    color: #fff;
    font: inherit;
    height: 30px;
    line-height: 30px;
    outline: 0;
    position: relative;
    transition: background .25s ease-in-out;
    width: 100%;
    z-index: 1
}

.dropdown {
    cursor: pointer
}

.dropdown:after {
    -webkit-transform: rotate(45deg);
    border: solid #fff;
    border-width: 0 2px 2px 0;
    content: '';
    display: inline-block;
    padding: 3px;
    pointer-events: none;
    position: absolute;
    right: 9px;
    top: 9px;
    transform: rotate(45deg)
}

.characters>:hover,.dropdown:hover {
    background: rgba(208,30,30,.54)
}

.dropdown .selected {
    height: inherit;
    overflow: hidden;
    padding: 0 16px 0 8px;
    word-break: break-all
}

.dropdown .list {
    background: rgba(0,0,0,.67);
    display: flex;
    flex-direction: column;
    height: 0;
    line-height: 24px;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
    transition: opacity .5s ease-in-out;
    width: 100%;
    z-index: 1
}

.dropdown .list.show {
    height: auto;
    max-height: 600px;
    opacity: 1;
    overflow: auto;
    pointer-events: initial
}

.dropdown .list * {
    padding: 0 8px;
    transition: background .45s ease-in-out
}

.dropdown .active,.dropdown .list :hover {
    background: rgba(208,30,30,.54)
}

.dropdown .spacer {
    border-bottom: 2px solid #d01e1e;
    padding-bottom: 3px;
    margin-bottom: 3px
}

.characters>* {
    margin: 0 6px;
    max-width: 140px;
    text-align: center
}

.characters>span {
    cursor: pointer
}

#content {
    flex: 1;
    overflow: auto;
    margin: 20px;
    padding-right: 10px
}

#content.scroll {
    display: flex;
    flex-direction: column
}

#content .menu,#patchnotes .menu {
    display: flex;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    overflow: auto;
    padding-bottom: 4px;
    text-transform: uppercase;
    z-index: 1
}

#content .menu a,#patchnotes .menu span {
    cursor: pointer;
    margin-right: 16px;
    transition: color .25s ease-in-out
}

#content .menu a:last-child,#patchnotes .menu span:last-child {
    margin-right: 0
}

#content .menu a.active,#content .menu a:hover,#patchnotes .menu span.active,#patchnotes .menu span:hover {
    color: #d01e1e;
    text-shadow: 0 1px 3px #1f2020
}

#content.scroll .content {
    flex: 1;
    overflow: auto;
    padding-right: 10px
}

#content p a.button {
    margin: 0 4px
}

#content table {
    border-collapse: collapse;
    margin: 0 -4px;
    table-layout: fixed;
    word-break: break-word
}

#content table.full {
    width: 100%
}

#content th {
    padding: 0 4px;
    text-align: left
}

#content tr.middle td {
    vertical-align: middle
}

#content td {
    padding: 4px;
    vertical-align: top;
    transition: background .45s ease-in-out
}

#content td.buttons {
    vertical-align: middle
}

#content tr:hover td {
    background: rgba(0,0,0,.4)
}

#content input+small {
    display: block;
    margin-top: 10px
}

#content select {
    font: inherit;
    padding: 4px 0
}

#content textarea {
    max-width: 480px;
    min-height: 100px;
    width: 100%
}

#error {
    align-items: center;
    display: flex;
    flex: 1;
    justify-content: center
}

#archives {
    align-items: center;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    margin: 0 8px;
    overflow: hidden
}

#archives .name {
    font-size: 24px;
    margin-bottom: 10px;
    text-align: center;
    text-transform: uppercase
}

#archives .levels {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    margin-top:10px
}

#archives .levels span {
    cursor: pointer;
    font-weight: 700;
    margin: 0 6px;
    transition: color .25s ease-in-out
}

#archives .levels .active,#archives .levels span:hover {
    color: #d01e1e
}

#archives .wrapper {
    position: relative;
    transition: all .25s ease-in-out
}

#archives .level {
    height: 100%;
    opacity: 0;
    position: absolute;
    transition: opacity .5s ease-in-out;
    width: 100%
}

#archives .level.show {
    opacity: 1;
    z-index: 1
}

#archives .node {
    background-color:red;
    border-radius:50%;
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    height: 64px;
    margin: -30px 0 0 -30px;
    position: absolute;
    width: 64px
}

#archives .node.best:before {
    border: 3px solid rgba(30,208,65,.65);
    border-radius: 58px;
    content: '';
    height: 58px;
    position: absolute;
    width: 58px
}

#archives .node.quest {
    background-image: url(../../dbdassets/archives/questIcons_arrative.png);
    height: 66px;
    margin: -32px 0 0 -42px;
    width: 82px
}

#archives .node.shared {
    background-image: url(../../dbdassets/archives/questIcons_shared.png)
}

#archives .node.survivor {
    background-image: url(../../dbdassets/archives/questIcons_survivor.png)
}

#archives .node.killer {
    background-image: url(../../dbdassets/archives/questIcons_killer.png)
}

#archives .node.show,#archives .node:hover {
    z-index: 2
}

#archives .info {
    background: rgba(0,0,0,.67);
    margin: 32px;
    opacity: 0;
    padding: 5px;
    pointer-events: none;
    position: absolute;
    transition: opacity .5s ease-in-out;
    width: 150px
}

#archives .info.left {
    right: 0
}

#archives .info.top {
    bottom: 0
}

#archives .node.quest .info {
    display: none
}

#archives .node.show .info,#archives .node:hover .info {
    opacity: 1
}

#archives .info{
    display: flex;
    justify-content: center;
}

#archives .info br {
    display: none
}

#archives .info h3 {
    display: none
}

#archives .info h4 {
    display: none
}

#archives .info p {
    display: none
}

#archives .info small {
    display: none
}

#archives .info ul {
    display: none
}

#archives .info h3 {
    color: #d01e1e;
    margin-bottom: 4px;
    text-transform: uppercase;
}

#archives .info h4 {
    margin-bottom: 10px;
    text-transform: uppercase;
}

#archives .info ul {
    padding: 0;
    list-style-position: inside;
}

#archives .info .glyph {
    margin: -3px 0 0 3px;
    max-height: 26px;
    position: absolute
}

#archives .rewards {
    align-items: center;
    display: flex;
    margin-top: 0px
}

#archives .rewards img {
    margin-right: 4px;
    max-height: 32px
}

#archives .rewards img:not(:first-child) {
    margin-left: 10px
}

#archives svg {
    height: 100%;
    overflow: visible;
    width: 100%
}

#archives line {
    stroke: red;
    stroke-width: 8px
}

#archives line.best {
    stroke: rgba(30,208,65,.65)
}

#archives .bottom {
    display: none
}

#archives .event {
    margin-top: 40px;
    font-size: 24px;
    text-align: center;
    text-transform: uppercase
}

#cosmetics {
    align-items: center;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: center;
    margin: 0 8px;
    overflow: hidden
}

#cosmetics .characters {
    margin-top: 14px
}

#cosmetics .items {
    align-content: start;
    display: flex;
    flex: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
    overflow: auto
}

#cosmetics .item {
    border: 1px solid transparent;
    cursor: pointer;
    max-width: 120px;
    padding: 6px 0;
    position: relative;
    text-align: center;
    transition: background .45s ease-in-out;
    width: 100%
}

#cosmetics .item.active,#cosmetics .item:hover {
    background: rgba(255,0,0,.52)
}

#cosmetics .item:not(:last-child) {
    margin-bottom: 8px
}

#cosmetics h5 {
    margin: 0 2px;
    word-break: break-word
}

#cosmetics img {
    display: block;
    margin: 6px 0;
    width: 100%
}

#journals {
    align-items: center;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    margin: 0 8px;
    overflow: hidden;
    padding: 30px 0
}

#journals .name {
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
    text-transform: uppercase
}

#journals .journals {
    display: flex;
    justify-content: center;
    line-height: 30px;
    margin-bottom: 30px;
    width: 100%
}

#journals .dropdown {
    margin: 0 4px 0;
    max-width: 200px
}

#journals .dropdown.entry span:not(.show) {
    display: none
}

#journals .entries {
    max-width: 1024px;
    overflow: auto;
    padding: 12px 8px 0 0;
    text-align: center
}

#journals .entries div:not(.show) {
    display: none
}

#journals audio {
    margin-top: 30px
}

#leaderboard {
    display: flex;
    flex: 1;
    flex-direction: column;
    overflow: hidden!important
}

#leaderboard .menu {
    align-items: baseline;
    display: flex;
    justify-content: center;
    margin: 14px 0;
    text-align: center
}

#leaderboard .jumptome {
    display: none
}

#leaderboard .search {
    max-width: 460px;
    width: 100%
}

#leaderboard .search a {
    text-decoration: underline
}

#leaderboard input,#playerstats .compare {
    background: rgba(208,30,30,.65);
    border: none;
    border-radius: 2px;
    color: #fff;
    display: inline-block;
    font: inherit;
    line-height: 16px;
    margin: 0 0 4px;
    max-width: 390px;
    outline: 0;
    padding: 6px 8px;
    text-align: center;
    transition: background .25s ease-in-out;
    width: 100%
}

#leaderboard input:focus,#leaderboard input:hover,#playerstats .compare:focus,#playerstats .compare:hover {
    background: rgba(208,30,30,.54)
}

#leaderboard .content {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin: 0 8px 8px 0;
    overflow: hidden
}

#leaderboard .headers {
    display: flex;
    font-weight: 700;
    line-height: 16px;
    margin-right: 5px;
    position: relative;
    text-shadow: 0 1px 3px #1f2020
}

#leaderboard .headers>div,#leaderboard .row div {
    align-items: center;
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    word-break: break-word
}

#leaderboard .headers>div:first-child,#leaderboard .row div:first-child {
    justify-content: left;
    padding-left: 10px;
    text-align: left
}

#leaderboard .headers span {
    cursor: pointer;
    transition: color .25s ease-in-out
}

#leaderboard .headers span.active,#leaderboard .headers span:hover {
    color: #d01e1e
}

#leaderboard .rows {
    flex: 1;
    margin-top: 6px;
    overflow-y: scroll;
    position: relative
}

#leaderboard .expandable-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 3px;
    transition: background .45s ease-in-out
}

#leaderboard .row {
    cursor: pointer;
    display: flex;
    line-height: 16px;
    overflow: hidden;
    padding: 2px 0;
    transition: background .45s ease-in-out
}

#leaderboard .rows>.row {
    margin-bottom: 3px
}

#leaderboard .expandable-row.expanded,#leaderboard .expandable-row:not(.expanded) .highlight,#leaderboard .expandable-row:not(.expanded) .row:hover {
    background: rgba(0,0,0,.4)
}

#leaderboard .more {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s
}

#leaderboard .more {
    justify-content: center;
    text-align: center
}

#leaderboard .expanded .more {
    max-height: 330px
}

#leaderboard .expanded small.more {
    padding-bottom: 2px
}

#leaderboard .statlist>span {
    margin: 4px 0;
    position: relative
}

#leaderboard .statlist .carrot {
    margin: -2px 0 0 6px;
    position: relative
}

#leaderboard .statlist .carrot::before {
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid;
    content: '';
    cursor: pointer;
    position: absolute
}

#leaderboard .statlist.show .carrot {
    color: #d01e1e
}

#leaderboard .statlist .list {
    background: rgba(0,0,0,.67);
    display: flex;
    flex-direction: column;
    line-height: 22px;
    max-height: 0;
    opacity: 0;
    overflow: auto;
    padding: 6px 10px;
    pointer-events: none;
    position: absolute;
    transition: opacity .5s ease-in-out;
    top: 0;
    width: fit-content;
    z-index: 1
}

#leaderboard .statlist.show .list {
    opacity: 1;
    pointer-events: initial
}

#leaderboard .statlist .spacer {
    border-bottom: 2px solid #d01e1e;
    padding-bottom: 3px;
    margin-bottom: 3px
}

#leaderboard .stats {
    display: flex
}

#leaderboard .small {
    display: none
}

#leaderboard .more div {
    flex: 1;
    margin-bottom: 8px;
    max-width: 420px
}

#leaderboard .more a {
    text-decoration: underline
}

#leaderboard .arrow {
    cursor: pointer;
    font-size: 31px;
    height: 15px;
    line-height: 10px;
    margin: 0 8px;
    transition: color .25s ease-in-out
}

#leaderboard .arrow:hover {
    color: #d01e1e
}

#leaderboard .bottom {
    overflow: hidden
}

#leaderboard .bottom small {
    right: 0;
    position: absolute
}

#leaderboard .persona,#topstats .persona {
    min-height: 14px;
    min-width: 10px;
    overflow: hidden
}

#leaderboard .player {
    flex: 1.2!important
}

#leaderboard .rank {
    max-width: 102px
}

#leaderboard .bloodpoints {
    max-width: 140px
}

#leaderboard .escaped {
    max-width: 74px
}

#leaderboard .closed,#leaderboard .escapes,#leaderboard .killed,#leaderboard .saved {
    max-width: 110px
}

#leaderboard .sacrificed {
    max-width: 140px
}

#leaderboard .repaired {
    max-width: 110px
}

#leaderboard .skillchecks {
    max-width: 90px
}

#leaderboard .healed {
    max-width: 110px
}

#leaderboard .playtime {
    max-width: 80px
}

#leaderboard h3,#leaderboard h4 {
    margin: 8px 0
}

#leaderboard ul {
    line-height: 18px;
    list-style: none;
    margin: 0;
    padding: 0
}

#leaderboard li {
    margin-bottom: 0
}

#leaderboard .bottom {
    align-items: center;
    display: flex;
    font-size: 11px;
    justify-content: center;
    margin-top: 10px
}

#leaderboard .bottom>span {
    cursor: pointer;
    margin: 0 4px
}

#patchnotes {
    display: flex;
    flex: 1;
    flex-direction: column;
    overflow: hidden;
    margin: 20px 20px 0
}

#patchnotes .updates {
    flex: 1;
    overflow: auto;
    position: relative
}

#patchnotes .version {
    bottom: 0;
    left: 0;
    opacity: 0;
    overflow: auto;
    position: absolute;
    right: 0;
    top: 0
}

#patchnotes .version.show {
    opacity: 1;
    z-index: 1
}

#patchnotes .update:not(:last-child) {
    margin-bottom: 40px
}

#patchnotes h1 {
    font-size: 22px
}

#patchnotes .Heading1,#patchnotes .Heading2 {
    display: block;
    font-size: 18px;
    margin-bottom: 8px
}

#patchnotes .Heading3 {
    display: inline-block;
    font-weight: 700;
    margin-bottom: 4px
}

#patchnotes li {
    line-height: 18px;
    max-width: 1024px
}

#perks {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    margin: 0 8px;
    overflow: hidden
}

#perks .characters {
    margin-top: 14px
}

#perks .items {
    display: flex;
    flex: 0 auto;
    flex-direction: column;
    overflow: auto
}

#perks .item {
    align-items: center;
    display: flex;
    justify-content: center;
    margin: 15px 0;
    position: relative
}

#perks .image {
    background: url(/dbdassets/perks/teachable.png);
    background-size: cover;
    margin-right: 30px
}

#perks .info {
    max-width: 640px;
    width: 100%
}

#perks .description {
    line-height: 19px
}

#perks img {
    margin: 22px 22px 20px 22px;
    max-width: 144px
}

#perks small {
    display: block;
    margin: 10px 0 0
}

#perkicons {
    display: flex;
    flex: 1;
    flex-direction: column;
    margin: 0 8px;
    overflow: hidden;
    text-align: center
}

#perkicons .instructions {
    margin-bottom: 18px
}

#perkicons .items {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    overflow: auto;
    padding-right: 8px
}

#perkicons .item {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin: 0 4px 12px;
    overflow: hidden;
    padding: 6px;
    position: relative;
    transition: background .45s ease-in-out;
    width: 124px
}

#perkicons .item.active,#perkicons .item:hover {
    background: rgba(255,0,0,.52)
}

#perkicons input {
    display: none
}

#perkicons .preview {
    background-size: cover;
    height: 112px;
    opacity: 1;
    position: absolute;
    width: 112px
}

#perkicons .preview[src=""] {
    opacity: 0
}

#perkicons .border {
    border: 3px solid #fff;
    height: 79.3px;
    margin: 0 0 17px 17px;
    opacity: 1;
    position: absolute;
    transform: rotate(45deg);
    width: 79.3px;
    z-index: 1
}

#perkicons .icon {
    cursor: pointer;
    margin-top: 12px;
    position: relative;
    width: 112px;
    z-index: 1
}

#perkicons .bottom {
    margin-top: 20px;
    text-align: center
}

#playerstats {
    display: flex;
    flex: 1;
    flex-direction: column;
    overflow: auto;
    margin: 20px;
    padding-right: 10px;
    position: relative
}

#playerstats h2+.message {
    margin-top: 0
}

#playerstats .container {
    display: flex;
    flex: 1;
    margin-bottom: 10px;
    overflow: hidden
}

#playerstats .column {
    display: flex;
    flex-direction: column;
    flex: 1
}

#playerstats .column:not(:last-child) {
    margin-right: 20px
}

#playerstats .inner {
    flex: 1;
    overflow: auto;
    padding-right: 20px
}

#playerstats .stats {
    border: 2px solid rgba(255,0,0,.52);
    display: flex;
    flex-wrap: wrap;
    padding: 10px 10px 0
}

#playerstats .stats:not(:last-child) {
    margin-bottom: 24px
}

#playerstats .stat {
    padding-right: 10px;
    margin-bottom: 10px;
    width: 25%
}

#playerstats .description {
    font-weight: 700;
    margin-bottom: 4px
}

#playerstats .split {
    display: flex
}

#playerstats .split>* {
    flex: 1
}

#playerstats .adepts {
    display: flex
}

#playerstats .adepts ul:first-child {
    margin-right: 40px
}

#playerstats .compare {
    display: block;
    min-width: 50%
}

#rift {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    margin: 0 8px
}

#rift .name {
    font-size: 24px;
    margin-bottom: 50px;
    text-align: center;
    text-transform: uppercase
}

#rift .wrapper {
    align-items: center;
    display: flex
}

#rift .arrow {
    cursor: pointer;
    font-size: 31px;
    margin-top: -6px;
    transition: color .25s ease-in-out
}

#rift .arrow:hover {
    color: #d01e1e
}

#rift .inner-wrapper {
    flex: 1;
    margin: 0 8px;
    overflow: hidden
}

#rift .pages {
    display: flex;
    transition: transform .5s ease-in-out
}

#rift .page {
    display: flex;
    flex-direction: row;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity .8s ease-in-out;
    width: 100%
}

#rift .page.show {
    opacity: 1
}

#rift .tier {
    display: flex;
    flex: 1;
    flex-direction: column
}

#rift .tier.double {
    flex: 1.5
}

#rift .free,#rift .premium {
    align-items: center;
    border-right: 3px solid rgba(208,30,30,.65);
    display: flex;
    flex-wrap: wrap;
    min-height: 170px;
    padding: 20px 18px;
    justify-content: center;
    text-align: center
}

#rift .page .tier:last-child>div {
    border-right: none
}

#rift .free {
    align-items: flex-end
}

#rift .premium {
    align-items: flex-start
}

#rift .number {
    background: rgba(208,30,30,.65);
    height: 24px;
    line-height: 24px;
    text-align: center
}

#rift .currency,#rift .item {
    align-items: center;
    display: flex;
    flex-direction: column;
    margin: 0 4px
}

#rift h5 {
    margin: 0 0 10px
}

#rift img {
    max-width: 90px;
    width: 100%
}

#rift .currency img {
    max-width: 60px
}

#rift .bottom {
    margin-top: 20px;
    text-align: center
}

#shrine {
    align-items: center;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    margin: 0 8px
}

#shrine .perks {
    height: 460px;
    margin-bottom: 20px;
    position: relative;
    width: 460px
}

#shrine.randomiser .perks {
    margin-bottom: 24px
}

#shrine .perk {
    align-items: center;
    background-image: url(/dbdassets/perks/teachable.png);
    background-size: cover;
    display: flex;
    height: 206px;
    justify-content: center;
    position: absolute;
    width: 206px
}

#shrine .p1 {
    left: calc(50% - 103px);
    top: 0
}

#shrine .p2 {
    right: 0;
    top: calc(50% - 103px)
}

#shrine .p3 {
    bottom: 0;
    left: calc(50% - 103px)
}

#shrine .p4 {
    left: 0;
    top: calc(50% - 103px)
}

#shrine img {
    max-width: 80%
}

#shrine .perk span {
    bottom: 8px;
    font-weight: 700;
    left: 0;
    position: absolute;
    text-align: center;
    width: 100%;
    z-index: 1
}

#shrine span.hide {
    opacity: 0;
    transition: opacity .5s ease-in-out
}

#shrine img:hover~span.hide {
    opacity: 1
}

#shrine span.top {
    bottom: auto;
    top: 8px
}

#topstats {
    margin-top: 12px;
    max-width: 400px
}

#topstats table {
    width: 100%
}

#footer {
    align-items: center;
    background: rgba(0,0,0,.4);
    display: none;
    font-size: 12px;
    height: 34px;
    overflow: hidden;
    padding: 0 10px
}

#footer div {
    flex: 1
}

#footer .middle {
    text-align: center
}

#footer .right {
    text-align: right
}

@media (max-width: 500px) {
    #menu.small {
        left:0;
        width: 100%
    }

    .characters {
        margin-left: auto;
        margin-right: auto;
        width: 80%
    }

    #archives .node {
        background-size: 70%
    }

    #playerstats .column {
        margin-bottom: 24px;
        margin-right: 0!important
    }

    #leaderboard .statlist .carrot {
        margin: 0;
        height: 8px;
        width: 100%
    }

    #leaderboard .statlist .carrot::before {
        border-left-width: 6px;
        border-right-width: 6px;
        border-top-width: 6px;
        margin: 2px 0 0 -4px
    }

    #perks .perk {
        height: 175px;
        width: 175px
    }

    #perks .p1,#perks .p3 {
        left: calc(50% - 87.5px)
    }

    #perks .p2,#perks .p4 {
        top: calc(50% - 87.5px)
    }

    #perks img {
        width: 124px
    }

    #shrine .perks {
        height: 400px;
        width: 400px
    }

    #shrine .perk {
        height: 176px;
        width: 176px
    }

    #shrine .p1,#shrine .p3 {
        left: calc(50% - 88px)
    }

    #shrine .p2,#shrine .p4 {
        top: calc(50% - 88px)
    }
}

@media (max-width: 1000px) {
    .mh {
        display:none!important
    }

    #secret {
        display: none
    }

    #archives .node {
        image-rendering: crisp-edges;
        image-rendering: -webkit-optimize-contrast;
        background-size: 80%
    }

    #leaderboard .jumptome {
        display: none!important
    }

    #leaderboard .big,#leaderboard .rows .rank span {
        display: none!important
    }

    #leaderboard .small {
        display: block
    }

    #perks .image {
        margin-right: 12px
    }

    #perks img {
        max-width: 66px
    }

    #playerstats,#playerstats .container {
        display: block
    }
}

@media (max-width: 1380px) {
    #menutoggle {
        display:block
    }
}

@media (max-width: 1700px) {
    #leaderboard .statlist .list {
        right:0
    }
}
