:root {
    --ink: #2b2b2b;
    --ink-soft: #5c5a54;
    --line: #3a3a3a;
    --paper: #f4f2ec;
    --paper-2: #eceae1;
    --fill: #e2dfd5;
    --accent: #2f63b8;
    --accent-soft: #dbe6f6;
    --hi: #ffe89e;
    --hand: "Gaegu", "Comic Sans MS", cursive;
    --ui: "Atkinson Hyperlegible", system-ui, sans-serif;
    --r: 14px 9px 15px 7px/8px 15px 7px 14px
}

* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    padding: 0
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--ui);
    -webkit-font-smoothing: antialiased
}

.toolbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    padding: 10px 20px;
    background: #fffef9;
    border-bottom: 2px solid var(--line);
    box-shadow: 0 2px 0 rgba(0, 0, 0, .06)
}

.toolbar .brand {
    font-family: var(--hand);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: .5px
}

.toolbar .brand small {
    display: block;
    font-family: var(--ui);
    font-weight: 400;
    font-size: 11px;
    color: var(--ink-soft);
    letter-spacing: 0
}

.tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.tab {
    font-family: var(--hand);
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
    padding: 6px 15px;
    border: 2px solid var(--line);
    border-radius: var(--r);
    background: var(--paper);
    cursor: pointer;
    color: var(--ink);
    line-height: 1.15
}

.tab:hover {
    background: var(--paper-2)
}

.tab.active {
    background: var(--ink);
    color: #fff
}

.toolbar .spacer {
    flex: 1
}

.toggle {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--hand);
    font-size: 16px;
    cursor: pointer;
    user-select: none
}

.toggle input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent)
}

.stage {
    display: flex;
    justify-content: center;
    padding: 26px 18px 80px
}

.page {
    display: none;
    width: 100%;
    max-width: 1180px
}

.page.active {
    display: block
}

.browser {
    border: 2.5px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: #fdfcf7;
    box-shadow: 8px 8px 0 rgba(43, 43, 43, .12)
}

.bbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-bottom: 2px solid var(--line);
    background: #efece3
}

.dots {
    display: flex;
    gap: 6px
}

.dots i {
    width: 11px;
    height: 11px;
    border: 2px solid var(--line);
    border-radius: 50%;
    display: block
}

.url {
    flex: 1;
    border: 2px solid var(--line);
    border-radius: 20px;
    padding: 4px 12px;
    background: #fff;
    font-family: var(--ui);
    font-size: 12px;
    color: var(--ink-soft)
}

.wrap {
    padding: 0 34px
}

.ph {
    background: repeating-linear-gradient(45deg, transparent, transparent 7px, rgba(43, 43, 43, .09) 7px, rgba(43, 43, 43, .09) 8px), var(--fill);
    border: 2px solid var(--line);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: "Courier New", monospace;
    font-size: 11px;
    color: var(--ink-soft);
    padding: 6px;
    line-height: 1.3
}

.ph.r {
    border-radius: var(--r)
}

.ph.circle {
    border-radius: 50%
}

.line {
    height: 9px;
    background: var(--fill);
    border-radius: 5px;
    margin: 7px 0
}

.line.sh {
    width: 55%
}

.line.md {
    width: 75%
}

.line.lg {
    width: 92%
}

.hand {
    font-family: var(--hand)
}

h1.wf,
h2.wf,
h3.wf {
    font-family: var(--hand);
    margin: 0;
    line-height: 1.1;
    color: var(--ink)
}

h1.wf {
    font-size: 38px
}

h2.wf {
    font-size: 27px
}

h3.wf {
    font-size: 20px
}

.meta {
    font-size: 12px;
    color: var(--ink-soft);
    margin: 6px 0 0
}

.btn {
    font-family: var(--hand);
    font-weight: 700;
    font-size: 17px;
    background: var(--accent);
    color: #fff;
    border: 2px solid #244f93;
    border-radius: var(--r);
    padding: 8px 18px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 2px 2px 0#244f93
}

.btn.ghost {
    background: transparent;
    color: var(--accent);
    box-shadow: none;
    border-color: var(--accent)
}

.btn.dark {
    background: var(--ink);
    border-color: #000;
    box-shadow: 2px 2px 0#000
}

.chip {
    font-family: var(--hand);
    font-size: 15px;
    border: 2px solid var(--line);
    border-radius: 20px;
    padding: 3px 13px;
    background: var(--paper);
    cursor: pointer;
    white-space: nowrap
}

.chip.on {
    background: var(--accent-soft);
    border-color: var(--accent)
}

.stars {
    font-size: 16px;
    letter-spacing: 1px;
    color: #caa53a
}

.score {
    font-family: var(--hand);
    font-weight: 700
}

.box {
    border: 2px solid var(--line);
    border-radius: var(--r);
    background: #fffdf6
}

.disclosure {
    font-size: 11px;
    color: var(--ink-soft);
    border: 1.5px dashed var(--line);
    border-radius: 6px;
    padding: 5px 10px;
    display: inline-block
}

.hr {
    height: 0;
    border: 0;
    border-top: 2.5px solid var(--line);
    opacity: .5;
    margin: 30px 0;
    border-radius: 2px
}

.sec-label {
    font-family: "Courier New", monospace;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 4px
}

.rank-row {
    display: grid;
    grid-template-columns: 46px 130px 1fr 150px 120px 150px;
    gap: 16px;
    align-items: center;
    border: 2px solid var(--line);
    border-radius: var(--r);
    background: #fffdf6;
    padding: 14px 16px;
    margin: 12px 0;
    position: relative
}

.rank-row.top {
    background: #fffaea;
    border-color: #caa53a;
    border-width: 2.5px
}

.rank-num {
    font-family: var(--hand);
    font-weight: 700;
    font-size: 30px;
    text-align: center
}

.ribbon {
    position: absolute;
    top: -13px;
    left: 14px;
    background: var(--hi);
    border: 2px solid var(--line);
    border-radius: 6px;
    font-family: var(--hand);
    font-weight: 700;
    font-size: 12px;
    padding: 1px 9px
}

.rr-bonus {
    font-family: var(--hand)
}

.rr-bonus b {
    font-size: 18px
}

.rr-feat {
    font-size: 12px;
    color: var(--ink-soft);
    line-height: 1.5
}

.anno {
    font-family: var(--hand);
    font-size: 14px;
    color: var(--accent);
    border: 2px dashed var(--accent);
    background: #fff;
    border-radius: var(--r);
    padding: 4px 11px;
    display: inline-block;
    position: relative
}

.anno-wrap {
    display: none;
    margin: 8px 0
}

body.show-anno .anno-wrap {
    display: block
}

.anno-side {
    display: none
}

body.show-anno .anno-side {
    display: flex;
    align-items: center;
    gap: 8px
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px
}

.row {
    display: flex;
    gap: 14px;
    align-items: center
}

.between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px
}

.faq-item {
    border: 2px solid var(--line);
    border-radius: var(--r);
    background: #fffdf6;
    margin: 10px 0;
    overflow: hidden
}

.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    font-family: var(--hand);
    font-weight: 700;
    font-size: 18px
}

.faq-q .pm {
    font-size: 24px;
    line-height: 1
}

.faq-a {
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s, padding .25s
}

.faq-item.open .faq-a {
    max-height: 200px;
    padding: 0 16px 14px
}

.wf-footer {
    background: #efece3;
    border-top: 2px solid var(--line);
    padding: 26px 34px
}

.foot-cols {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 24px
}

.foot-cols a {
    display: block;
    font-size: 13px;
    color: var(--ink-soft);
    text-decoration: none;
    margin: 6px 0
}

.foot-cols a:hover {
    color: var(--accent)
}

.toc {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    background: #efece3;
    border-top: 2px solid var(--line);
    border-bottom: 2px solid var(--line);
    padding: 9px 34px;
    font-family: var(--hand);
    font-size: 15px
}

.toc a {
    color: var(--ink);
    text-decoration: none;
    padding: 2px 8px;
    border-radius: 5px
}

.toc a:hover {
    background: var(--accent-soft)
}

.breadcrumb {
    font-size: 12px;
    color: var(--ink-soft);
    padding: 14px 34px 0
}

.breadcrumb b {
    color: var(--ink)
}

.quickfacts {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px
}

.quickfacts td {
    border-bottom: 1.5px dashed var(--line);
    padding: 7px 4px
}

.quickfacts td:first-child {
    color: var(--ink-soft);
    width: 46%
}

.quickfacts td:last-child {
    font-family: var(--hand);
    font-size: 15px
}

.bar {
    height: 10px;
    background: var(--fill);
    border: 1.5px solid var(--line);
    border-radius: 6px;
    overflow: hidden
}

.bar>i {
    display: block;
    height: 100%;
    background: var(--accent)
}

.subnav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px
}

.subnav-label {
    font-family: "Courier New", monospace;
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--ink-soft);
    text-transform: uppercase
}

.subtab {
    font-family: var(--hand);
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
    padding: 6px 16px;
    border: 2px solid var(--line);
    border-radius: var(--r);
    background: var(--paper);
    cursor: pointer;
    color: var(--ink);
    line-height: 1.1
}

.subtab:hover {
    background: var(--paper-2)
}

.subtab.active {
    background: var(--accent);
    color: #fff;
    border-color: #244f93;
    box-shadow: 2px 2px 0#244f93
}

.cat-page {
    display: none
}

.cat-page.active {
    display: block
}

.promo {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    border: 2.5px dashed var(--accent);
    border-radius: var(--r);
    background: repeating-linear-gradient(45deg, transparent, transparent 9px, rgba(47, 99, 184, .06) 9px, rgba(47, 99, 184, .06) 10px), var(--accent-soft);
    padding: 16px 20px;
    margin: 14px 0
}

.promo.tall {
    flex-direction: column;
    text-align: center
}

.promo-tag {
    position: absolute;
    top: -11px;
    left: 16px;
    background: var(--accent);
    color: #fff;
    font-family: "Courier New", monospace;
    font-size: 10px;
    letter-spacing: 1px;
    padding: 2px 9px;
    border-radius: 5px
}
