:root {
    --bg: #11191b;
    --panel: #182225;
    --ink: #eef2e5;
    --muted: #9caeaa;
    --lime: #d9ff67;
    --line: #344346;
    --cyan: #76dccc;
    --orange: #ffae77
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif
}

button, a {
    -webkit-tap-highlight-color: transparent
}

button {
    font: inherit;
    cursor: pointer
}

button:disabled {
    opacity: .4;
    cursor: default
}

button:focus-visible, a:focus-visible, canvas:focus-visible {
    outline: 3px solid var(--lime);
    outline-offset: 5px
}

[hidden] {
    display: none !important
}

.shell {
    max-width: 1320px;
    margin: auto;
    padding: 28px 42px 20px
}

.masthead {
    display: flex;
    align-items: center;
    gap: 26px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--line)
}

.wordmark {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-size: 27px;
    letter-spacing: -1px;
    font-weight: 900;
    text-decoration: none
}

.mark {
    display: grid;
    place-items: center;
    background: var(--lime);
    color: var(--bg);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 31px
}

.edition {
    align-self: flex-start;
    font-size: 10px;
    letter-spacing: 0;
    margin-top: 2px
}

.strap {
    font-size: 12px;
    line-height: 1.4;
    color: var(--muted);
    margin: 0
}

.masthead > .quiet {
    margin-left: auto
}

.quiet {
    border: 1px solid var(--line);
    color: var(--ink);
    background: transparent;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 12px;
    white-space: nowrap
}

.quiet:hover:not(:disabled) {
    border-color: var(--muted)
}

.game-layout {
    display: grid;
    grid-template-columns:minmax(0, 820px) 260px;
    gap: 46px;
    padding-top: 25px
}

.stage-wrap {
    min-width: 0
}

.scorebar {
    display: flex;
    gap: 34px;
    align-items: center;
    padding: 0 5px 15px
}

.eyebrow {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.6px;
    line-height: 1.4;
    color: var(--muted)
}

.scorebar strong {
    display: block;
    font-size: 34px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -1.5px;
    font-variant-numeric: tabular-nums
}

.scorebar .chain-readout strong {
    font-size: 29px;
    color: var(--cyan)
}

.chain-readout strong span {
    font-size: 18px
}

.timer {
    margin-left: auto;
    text-align: right
}

.timer.urgent strong {
    color: var(--orange)
}

.arena {
    position: relative;
    background: #1b2a2b;
    border: 1px solid #3e5656;
    border-radius: 14px;
    overflow: hidden;
    isolation: isolate
}

.arena:before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    border-radius: inherit;
    box-shadow: inset 0 0 60px #0a101024
}

canvas {
    display: block;
    width: 100%;
    height: auto;
    touch-action: none;
    cursor: crosshair
}

.splash {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #172325f0 0%, #172325de 58%, #17232558 100%);
    z-index: 3;
    display: flex;
    align-items: center;
    padding: 7%
}

.splash-inner {
    max-width: 440px
}

.accent {
    color: var(--lime)
}

h1 {
    font-size: clamp(36px, 4.7vw, 62px);
    line-height: .98;
    letter-spacing: -3px;
    margin: 20px 0
}

h1 em {
    font-style: normal;
    color: var(--lime)
}

.splash p {
    font-size: 15px;
    line-height: 1.6;
    color: #c4d2ca
}

.start-actions {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-top: 28px
}

.primary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    background: var(--lime);
    border: 0;
    color: #13201b;
    font-size: 15px;
    font-weight: 800;
    padding: 15px 20px;
    border-radius: 7px;
    min-height: 48px
}

.primary:hover {
    background: #e4ff94;
    transform: translateY(-1px)
}

.primary span {
    font-size: 23px;
    line-height: 1
}

.text-button {
    border: 0;
    border-bottom: 1px solid #83958b;
    padding: 3px 0;
    background: transparent;
    color: var(--ink);
    font-size: 12px;
    min-height: 30px
}

.splash-note {
    display: block;
    margin-top: 23px;
    font-size: 11px;
    color: #a5b8ae
}

.lower-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 3px
}

.power {
    flex: 1;
    max-width: 220px
}

.power .eyebrow {
    font-size: 9px;
    letter-spacing: 1.1px
}

.power-track {
    height: 4px;
    margin-top: 7px;
    background: #344449;
    border-radius: 4px;
    overflow: hidden
}

.power-track span {
    display: block;
    width: 60%;
    height: 100%;
    background: var(--lime);
    transition: width 50ms linear
}

.lower-bar > .quiet {
    margin-left: auto
}

.notes {
    padding-top: 5px
}

.notes > h2 {
    font-size: 28px;
    letter-spacing: -1px;
    line-height: 1.15;
    margin: 15px 0 29px
}

.notes > h2 > span {
    color: var(--muted)
}

.notes ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 20px
}

.notes li {
    display: flex;
    gap: 13px
}

.step-no {
    font-family: monospace;
    font-size: 11px;
    color: var(--lime);
    padding-top: 3px
}

.notes h3 {
    font-size: 13px;
    margin: 0 0 6px
}

.notes li p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
    margin: 0
}

.score-guide {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 25px;
    padding: 16px 0
}

.score-guide p {
    font-size: 11px;
    line-height: 1.6;
    margin: 0;
    color: var(--muted)
}

.score-guide b {
    font-size: 13px;
    color: var(--ink)
}

.score-guide p span {
    font-size: 10px
}

.ring-icon {
    width: 29px;
    height: 29px;
    flex-shrink: 0;
    border: 3px solid var(--cyan);
    border-radius: 50%;
    position: relative
}

.ring-icon:after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: var(--cyan)
}

kbd {
    font-family: inherit;
    font-size: 10px;
    border: 1px solid #4c5b5d;
    padding: 2px 4px;
    border-radius: 3px;
    color: var(--ink)
}

.keyboard {
    font-size: 10px;
    line-height: 2.3;
    color: var(--muted);
    margin-top: 20px
}

.small-print {
    font-size: 10px;
    line-height: 1.8;
    color: #81958e;
    margin-top: 22px
}

footer {
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 24px;
    padding-top: 15px;
    font-family: monospace;
    font-size: 9px;
    letter-spacing: 1px;
    color: #82978d
}

.shot-message {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 21px;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    pointer-events: none;
    z-index: 2
}

.pause-screen, .results {
    position: absolute;
    inset: 0;
    z-index: 4;
    background: #132023f5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 25px
}

.pause-screen h2, .results h2 {
    font-size: 40px;
    letter-spacing: -2px;
    margin: 14px 0
}

.results > strong {
    font-size: 76px;
    letter-spacing: -4px;
    color: var(--lime);
    font-variant-numeric: tabular-nums
}

.results p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    margin: 10px 0 23px
}

.results > .text-button {
    margin-top: 15px
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

@media (min-width: 1450px) {
    .shell {
        padding-top: 40px
    }
}

@media (max-width: 1000px) {
    .shell {
        padding: 22px
    }

    .game-layout {
        grid-template-columns:minmax(0, 1fr) 220px;
        gap: 24px
    }

    .notes > h2 {
        font-size: 24px
    }

    h1 {
        font-size: 47px
    }

    .splash p {
        font-size: 13px
    }

    .start-actions {
        margin-top: 20px
    }

    .splash-note {
        margin-top: 17px
    }
}

@media (max-width: 760px) {
    .shell {
        padding: 18px 14px
    }

    .masthead {
        gap: 14px;
        padding-bottom: 17px
    }

    .wordmark {
        font-size: 23px
    }

    .mark {
        width: 29px;
        height: 29px;
        font-size: 25px
    }

    .strap {
        display: none
    }

    .game-layout {
        display: block;
        padding-top: 20px
    }

    .scorebar {
        gap: 25px;
        padding-bottom: 12px
    }

    .scorebar strong {
        font-size: 29px
    }

    .scorebar .chain-readout strong {
        font-size: 26px
    }

    .eyebrow {
        font-size: 9px
    }

    .splash {
        padding: 7%
    }

    .splash h1 {
        font-size: clamp(31px, 7.2vw, 48px);
        letter-spacing: -1.8px;
        margin: 13px 0
    }

    .splash .eyebrow {
        font-size: 8px;
        letter-spacing: 1px
    }

    .splash p {
        font-size: 12px;
        line-height: 1.5
    }

    .start-actions {
        gap: 9px;
        margin-top: 16px
    }

    .primary {
        font-size: 13px;
        padding: 12px 15px;
        min-height: 44px;
        gap: 20px
    }

    .text-button {
        font-size: 11px;
        min-height: 28px
    }

    .splash-note {
        font-size: 10px;
        margin-top: 12px
    }

    .notes {
        padding-top: 22px
    }

    .notes > h2 {
        font-size: 24px;
        line-height: 1.2;
        margin: 10px 0 18px
    }

    .notes > h2 br {
        display: none
    }

    .notes > h2 > span {
        margin-left: 6px
    }

    .notes ol {
        grid-template-columns:repeat(3, minmax(0, 1fr));
        gap: 17px
    }

    .notes li {
        display: block
    }

    .step-no {
        display: block;
        padding-bottom: 8px
    }

    .notes h3 {
        font-size: 12px
    }

    .notes li p {
        font-size: 11px
    }

    .score-guide {
        margin-top: 19px
    }

    .small-print {
        margin-top: 15px
    }

    .shot-message {
        font-size: 10px;
        bottom: 14px
    }

    .results h2 {
        font-size: 30px
    }

    .results > strong {
        font-size: 60px
    }

    .results p {
        font-size: 12px;
        margin: 6px 0 18px
    }

    .pause-screen h2 {
        font-size: 34px
    }

    footer {
        font-size: 8px;
        line-height: 1.5;
        margin-top: 20px
    }

    .keyboard {
        font-size: 10px
    }

    .arena {
        border-radius: 10px
    }
}

@media (max-width: 390px) {
    .shell {
        padding: 14px 10px
    }

    .splash {
        padding: 6%
    }

    .splash p {
        font-size: 11px
    }

    .splash-note {
        display: none
    }

    .splash .text-button {
        min-height: 24px
    }

    .start-actions {
        margin-top: 12px;
        gap: 5px
    }

    .splash h1 {
        font-size: 30px;
        margin: 11px 0
    }

    .notes ol {
        gap: 13px
    }

    .scorebar {
        gap: 19px
    }

    .masthead .quiet {
        padding: 9px
    }

    .wordmark {
        font-size: 21px
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *:before, *:after {
        scroll-behavior: auto !important;
        transition: none !important
    }

    .primary:hover {
        transform: none
    }
}
