@font-face
{
    font-family: Inter;
    src: url("./fonts/inter-400.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}
@font-face
{
    font-family: Inter;
    src: url("./fonts/inter-600.ttf") format("truetype");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}
@font-face
{
    font-family: Orbitron;
    src: url("./fonts/orbitron-700.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}
:root
{
    color-scheme: dark;
    --bg: #030014;
    --panel: #0c0b1c;
    --line: #252235;
    --text: #f0eef6;
    --muted: #9994ae;
    --purple: #a78bfa;
    --accent: #7c3aed;
    --gold: #f59e0b;
}
*
{
    box-sizing: border-box;
}
html
{
    scroll-behavior: smooth;
}
body
{
    margin: 0;
    background: radial-gradient(ellipse at 38% 30%, #151027 0, var(--bg) 67%);
    color: var(--text);
    font: 14px Inter, Arial, sans-serif;
}
button, input
{
    font: inherit;
}
button, a
{
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
button
{
    cursor: pointer;
    color: inherit;
}
button:disabled
{
    cursor: default;
    opacity: .35;
}
a
{
    color: inherit;
    text-decoration: none;
}
button:focus-visible, a:focus-visible, input:focus-visible, canvas:focus-visible
{
    outline: 2px solid #c4b5fd;
    outline-offset: 5px;
}
.site-header
{
    height: 72px;
    border-bottom: 1px solid var(--line);
    padding: 0 max(32px, calc((100vw - 1016px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand
{
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
}
.brand-light
{
    font-weight: 400;
    color: var(--muted);
}
.brand-mark
{
    display: grid;
    grid-template-columns: repeat(3, 5px);
    gap: 3px;
    margin-right: 7px;
    transform: skewY(-10deg);
}
.brand-mark i
{
    background: #a78bfa;
    height: 7px;
}
.brand-mark i:last-child
{
    grid-column: 3;
    background: #7242c9;
}
nav
{
    display: flex;
    align-items: center;
    gap: 28px;
    color: #b6b1c8;
    font-size: 12px;
}
nav a span
{
    color: var(--purple);
    margin-left: 6px;
}
.nav-button, .icon-button
{
    background: transparent;
    border: 0;
    padding: 8px 0;
}
.nav-button:hover, nav a:hover
{
    color: white;
}
.icon-button
{
    border-left: 1px solid var(--line);
    padding-left: 24px;
}
.icon-button svg
{
    width: 20px;
    height: 20px;
}
main
{
    max-width: 1080px;
    margin: auto;
    padding: 0 32px;
}
.intro
{
    padding: 26px 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.eyebrow
{
    font-size: 9px;
    letter-spacing: 2px;
    font-weight: 600;
    color: #b8a5e0;
    margin: 0 0 13px;
}
.eyebrow > span
{
    display: inline-block;
    width: 14px;
    height: 2px;
    background: #a78bfa;
    vertical-align: middle;
    margin-right: 7px;
}
h1
{
    font-family: Orbitron, "Arial Black", Arial, sans-serif;
    font-size: clamp(29px, 3.5vw, 42px);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: -1.6px;
    margin: 0;
    line-height: 1.15;
}
h1 > span
{
    color: #bba2fa;
}
h1 sup
{
    vertical-align: top;
    margin-left: 6px;
    font: 10px Arial, sans-serif;
    color: #8a7ba6;
}
.intro-line
{
    color: var(--muted);
    margin: 12px 0 0;
    font-size: 12px;
}
.intro-line strong
{
    color: #c1b9d1;
    font-weight: 400;
}
.session-label
{
    font-family: monospace;
    font-size: 10px;
    color: #b3b0c1;
    letter-spacing: 1px;
    text-align: right;
    padding-top: 20px;
}
.status-dot
{
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #8dd7b0;
    box-shadow: 0 0 8px #8dd7b04d;
    margin-right: 7px;
    vertical-align: middle;
}
.session-label small
{
    display: block;
    font-size: 8px;
    margin-top: 10px;
    color: #79738d;
}
.arcade-layout
{
    display: grid;
    grid-template-columns: minmax(0, 1fr) 248px;
    gap: 26px;
    align-items: start;
}
.machine
{
    border: 1px solid #373044;
    background: #090719;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 16px 70px #00000040;
}
.hud
{
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 16px 22px;
    background: #111020;
    border-bottom: 1px solid #30283e;
}
.hud-item
{
    min-width: 73px;
}
.hud-label
{
    display: block;
    font-size: 8px;
    color: #9990ae;
    letter-spacing: 1.4px;
    margin-bottom: 7px;
}
.hud-item strong
{
    display: block;
    font: 700 20px Orbitron, monospace;
    color: #ede8fc;
    line-height: 1.2;
}
.hud-item strong small
{
    font: 11px Inter, Arial, sans-serif;
    color: #8a829d;
}
.timer
{
    padding-left: 24px;
    border-left: 1px solid #302a3e;
}
.balls
{
    margin-left: auto;
}
.balls strong
{
    font-size: 17px;
    color: #a78bfa;
}
.pause-button
{
    border: 1px solid #3a334a;
    border-radius: 4px;
    background: #1b162b;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px;
    font-size: 9px;
    letter-spacing: 1px;
}
.pause-button svg
{
    width: 14px;
}
kbd
{
    font: 10px monospace;
    border: 1px solid #3b344a;
    background: #1a1628;
    color: #c4bad8;
    padding: 3px 6px;
    border-radius: 3px;
    min-width: 23px;
    display: inline-block;
    text-align: center;
}
.pause-button kbd
{
    font-size: 8px;
    padding: 2px 4px;
    min-width: 15px;
}
.playfield
{
    position: relative;
    line-height: 0;
    background: #050314;
}
canvas
{
    width: 100%;
    height: auto;
    display: block;
    touch-action: none;
}
.screen
{
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    line-height: 1.4;
    background: #03001426;
    padding: 16px;
}
.screen[hidden]
{
    display: none;
}
.glass-card
{
    width: min(390px, 95%);
    text-align: center;
    border: 1px solid #69548269;
    background: linear-gradient(150deg, #1d142cdb, #100c21ee);
    backdrop-filter: blur(14px);
    border-radius: 12px;
    padding: 25px 28px;
    box-shadow: 0 20px 70px #0007, inset 0 1px #ffffff08;
}
.emblem
{
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #cbb6ff;
    margin: 0 auto 15px;
    border: 1px solid #6e459f;
    border-radius: 11px;
    box-shadow: 0 0 35px #7c3aed30;
    background: #7c3aed14;
}
.emblem svg
{
    width: 24px;
    height: 24px;
}
.card-kicker
{
    font: 8px Inter, Arial, sans-serif;
    color: #c0a3f6;
    letter-spacing: 2px;
    margin-bottom: 8px;
}
.glass-card h2
{
    font: 700 25px Orbitron, "Arial Black", sans-serif;
    letter-spacing: -1px;
    margin: 0 0 10px;
    line-height: 1.3;
}
.glass-card p
{
    color: #b0a5c1;
    font-size: 11px;
    line-height: 1.8;
    margin: 0 0 19px;
}
.primary, .secondary
{
    width: 100%;
    padding: 12px 16px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.2px;
}
.primary
{
    background: #7c3aed;
    border: 1px solid #9a65f3;
    box-shadow: 0 3px 23px #7c3aed24;
    color: white;
}
.primary:hover
{
    background: #8b4ef4;
}
.primary span
{
    float: right;
}
.secondary
{
    margin-top: 9px;
    background: #ffffff04;
    border: 1px solid #42334f;
    color: #c7bdd8;
}
.secondary:hover
{
    background: #ffffff0d;
}
.screen-note
{
    display: block;
    color: #9586aa;
    font-size: 8px;
    margin-top: 17px;
    letter-spacing: .5px;
}
.field-corner
{
    position: absolute;
    width: 17px;
    height: 17px;
    pointer-events: none;
    border-color: #9c79cf80;
}
.top-left
{
    top: 13px;
    left: 13px;
    border-top: 1px solid;
    border-left: 1px solid;
}
.bottom-right
{
    bottom: 13px;
    right: 13px;
    border-bottom: 1px solid;
    border-right: 1px solid;
}
.field-caption
{
    position: absolute;
    bottom: 17px;
    left: 21px;
    font: 7px monospace;
    color: #7b688e;
    letter-spacing: 1.2px;
    pointer-events: none;
}
.machine-footer
{
    padding: 13px 20px;
    background: #0e0b1b;
    display: flex;
    justify-content: space-between;
    font: 8px monospace;
    letter-spacing: 1px;
    color: #92869f;
    border-top: 1px solid #282033;
}
.machine-footer > span:first-child
{
    color: #ada1bc;
}
i
{
    font-style: normal;
}
.machine-footer i
{
    margin: 0 8px;
    color: #4a405b;
}
.guide-heading
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0 17px;
    border-bottom: 1px solid var(--line);
}
.guide-heading .eyebrow
{
    font-size: 8px;
    letter-spacing: 1.5px;
    margin: 0;
}
.guide-number
{
    font: 9px monospace;
    color: #786889;
}
.mission h2
{
    font-size: 25px;
    font-weight: 600;
    letter-spacing: -.9px;
    line-height: 1.15;
    margin: 22px 0 13px;
}
.mission > p
{
    font-size: 11px;
    line-height: 1.8;
    color: var(--muted);
}
.rule-line
{
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 9px 13px;
    margin: 20px 0;
    align-items: center;
}
.rule-line > span
{
    font: 700 15px Orbitron, monospace;
    color: #ae8bea;
}
.rule-line p
{
    font-size: 8px;
    letter-spacing: 1px;
    color: #a59cb4;
    margin: 0;
}
.brick-guide, .controls
{
    border-top: 1px solid var(--line);
    padding-top: 19px;
    margin-top: 20px;
}
h3
{
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 1.6px;
    color: #9e93b1;
    margin: 0 0 18px;
}
.target
{
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 15px 0;
}
.brick-sample
{
    width: 38px;
    height: 21px;
    border-radius: 3px;
    border: 1px solid;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.normal
{
    background: #1e3a5f;
    border-color: #376391;
}
.iron
{
    background: repeating-linear-gradient(45deg, #374151, #374151 3px, #414959 3px, #414959 4px);
    border-color: #667182;
    color: #c4cbd7;
}
.iron svg
{
    height: 14px;
}
.splitter
{
    background: #613306;
    color: #ffd393;
    border-color: #d97706;
    font-size: 17px;
    box-shadow: 0 0 13px #d9770610;
}
.target strong
{
    display: block;
    font-size: 11px;
    font-weight: 500;
}
.target small
{
    display: block;
    color: #968aa7;
    font-size: 9px;
    margin-top: 4px;
}
.controls > div
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 9px 0;
    font-size: 10px;
    color: #b0a5be;
}
.controls p
{
    color: #8f829f;
    font-size: 9px;
    line-height: 1.8;
    margin: 14px 0 0;
}
.tip
{
    border-left: 2px solid #72509e;
    background: #a78bfa08;
    display: flex;
    gap: 12px;
    padding: 11px 12px;
    margin-top: 20px;
}
.tip > span
{
    color: #b791f1;
}
.tip p
{
    margin: 0;
    font-size: 9px;
    line-height: 1.8;
    color: #a89ab9;
}
.tip strong
{
    font-weight: 400;
    color: #c8badb;
}
.page-footer
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 25px 0 22px;
    font-size: 8px;
    letter-spacing: .5px;
    color: #8b7f9a;
}
.page-footer strong
{
    color: #bfb2cd;
    font-weight: 400;
}
.page-footer i
{
    margin: 0 9px;
    color: #5a4a6c;
}
.page-footer a:hover
{
    color: #d7c6ec;
}
.sr-only
{
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}
.board-table
{
    width: 100%;
    font-size: 11px;
    border-collapse: collapse;
    margin-bottom: 14px;
}
.board-table th
{
    color: #a598b5;
    font-size: 8px;
    letter-spacing: 1px;
    font-weight: 400;
}
.board-table td, .board-table th
{
    padding: 7px 4px;
    text-align: left;
    border-bottom: 1px solid #ffffff0c;
    overflow-wrap: anywhere;
}
.board-table td:last-child, .board-table th:last-child
{
    text-align: right;
}
.board-table tr:nth-child(1) td:first-child
{
    color: #f5bb55;
}
.board-table tr:nth-child(2) td:first-child
{
    color: silver;
}
.board-table tr:nth-child(3) td:first-child
{
    color: #ce9168;
}
.board-table .current
{
    background: #7c3aed30;
}
.glass-card label
{
    display: block;
    color: #c6b7d7;
    font-size: 10px;
    text-align: left;
    margin-bottom: 7px;
}
.glass-card input
{
    width: 100%;
    color: white;
    background: #090514;
    border: 1px solid #70528d;
    border-radius: 4px;
    padding: 11px;
    margin-bottom: 12px;
}
.error
{
    color: #fca5a5 !important;
}
@media (min-width: 1400px)
{
    .guide
    {
        padding-top: 8px;
    }
}
@media (max-width: 1000px)
{
    .arcade-layout
    {
        grid-template-columns: minmax(0, 1fr) 215px;
        gap: 20px;
    }
    .hud
    {
        gap: 16px;
        padding: 14px 16px;
    }
    .timer
    {
        padding-left: 16px;
    }
    .pause-button span, .pause-button kbd
    {
        display: none;
    }
    .session-label
    {
        display: none;
    }
}
@media (max-width: 760px)
{
    .site-header
    {
        height: 66px;
        padding: 0 20px;
    }
    .brand
    {
        font-size: 10px;
        gap: 5px;
        letter-spacing: .3px;
    }
    nav
    {
        gap: 13px;
        font-size: 10px;
    }
    nav > a
    {
        display: none;
    }
    .icon-button
    {
        padding-left: 12px;
    }
    main
    {
        padding: 0 18px;
    }
    .intro
    {
        padding: 29px 0 25px;
    }
    h1
    {
        font-size: clamp(24px, 6.6vw, 44px);
        letter-spacing: -1px;
    }
    .intro-line
    {
        font-size: 10px;
    }
    .eyebrow
    {
        font-size: 8px;
        letter-spacing: 1.7px;
    }
    .arcade-layout
    {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .hud
    {
        padding: 12px;
        gap: 14px;
    }
    .hud-label
    {
        font-size: 6px;
        letter-spacing: .8px;
        margin-bottom: 6px;
    }
    .hud-item
    {
        min-width: 50px;
    }
    .hud-item strong
    {
        font-size: 15px;
    }
    .hud-item strong small
    {
        font-size: 9px;
    }
    .timer
    {
        padding-left: 13px;
    }
    .balls strong
    {
        font-size: 12px;
    }
    .pause-button
    {
        padding: 7px;
    }
    .screen
    {
        padding: 10px;
    }
    .glass-card
    {
        padding: 16px 20px;
        width: min(300px, 94%);
        max-height: 100%;
        overflow: auto;
        scrollbar-width: thin;
    }
    .emblem
    {
        display: none;
    }
    .emblem svg
    {
        width: 17px;
    }
    .glass-card h2
    {
        font-size: 18px;
        margin-bottom: 6px;
    }
    .glass-card p
    {
        font-size: 9px;
        margin-bottom: 10px;
        line-height: 1.5;
    }
    .card-kicker
    {
        font-size: 6px;
        margin-bottom: 5px;
    }
    .primary, .secondary
    {
        padding: 9px 12px;
        font-size: 8px;
    }
    .secondary
    {
        margin-top: 6px;
    }
    .screen-note
    {
        font-size: 6px;
        margin-top: 10px;
    }
    .machine-footer
    {
        padding: 12px 10px;
        font-size: 6px;
        letter-spacing: .5px;
    }
    .machine-footer i
    {
        margin: 0 4px;
    }
    .field-caption
    {
        font-size: 5px;
        bottom: 9px;
        left: 11px;
    }
    .guide
    {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .guide-heading
    {
        grid-column: 1 / -1;
        padding-bottom: 14px;
    }
    .mission h2
    {
        margin-top: 0;
        font-size: 24px;
    }
    .mission > p
    {
        font-size: 10px;
    }
    .rule-line
    {
        margin-bottom: 0;
    }
    .brick-guide
    {
        border: 0;
        margin: 0;
        padding: 0;
    }
    h3
    {
        font-size: 7px;
        letter-spacing: 1px;
    }
    .target
    {
        gap: 7px;
        margin: 18px 0;
    }
    .brick-sample
    {
        width: 27px;
        height: 18px;
    }
    .target strong
    {
        font-size: 9px;
    }
    .target small
    {
        font-size: 8px;
        line-height: 1.5;
    }
    .controls
    {
        grid-column: 1 / -1;
        margin: 0;
    }
    .tip
    {
        grid-column: 1 / -1;
        margin: 0;
    }
    .page-footer
    {
        flex-wrap: wrap;
        font-size: 7px;
        line-height: 1.8;
        padding-top: 28px;
    }
    .page-footer > span:nth-child(2)
    {
        order: 3;
        width: 100%;
    }
}
@media (prefers-reduced-motion: reduce)
{
    html
    {
        scroll-behavior: auto;
    }
}
