@font-face
{
    font-family: Oxanium;
    src: url("./fonts/oxanium-latin-600-normal.woff2") format("woff2");
    font-weight: 600;
    font-display: swap;
}
@font-face
{
    font-family: Source;
    src: url("./fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}
@font-face
{
    font-family: Plex;
    src: url("./fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}
:root
{
    color-scheme: dark;
    --void: #07080c;
    --paper: #e7ecf2;
    --dim: #9aa3ae;
    --amber: #e8a23a;
    --ice: #8fcbe3;
    --line: rgba(213, 220, 228, .24);
}
*
{
    box-sizing: border-box;
}
html, body
{
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    overscroll-behavior: none;
    background: var(--void);
    color: var(--paper);
    font: 16px Source, sans-serif;
    touch-action: none;
}
button, a
{
    -webkit-tap-highlight-color: transparent;
}
button
{
    color: inherit;
    font: inherit;
    cursor: pointer;
    min-height: 44px;
}
button:focus-visible, a:focus-visible, [role=slider]:focus-visible
{
    outline: 2px solid var(--ice);
    outline-offset: 5px;
}
button:disabled
{
    opacity: .5;
    cursor: not-allowed;
}
#field
{
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
}
#ui
{
    position: fixed;
    inset: 0;
    pointer-events: none;
}
.glass, #touch button, #stick
{
    background: rgba(10, 12, 16, .78);
    border: 1px solid var(--line);
    backdrop-filter: blur(14px);
}
.frame
{
    pointer-events: none;
    position: fixed;
    inset: 16px;
    border: 1px solid rgba(213, 220, 228, .09);
}
#masthead
{
    position: fixed;
    left: 44px;
    right: 44px;
    top: 37px;
    display: flex;
    align-items: center;
    gap: 12px;
    font: 600 15px Oxanium, sans-serif;
}
.brand-mark
{
    color: var(--amber);
    font-size: 30px;
}
.edition
{
    margin-left: auto;
    font: 10px Plex, monospace;
    letter-spacing: .15em;
    color: var(--dim);
}
#card
{
    position: absolute;
    width: 400px;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 16px;
    padding: 28px;
    pointer-events: auto;
}
.eyebrow
{
    display: flex;
    align-items: center;
    gap: 10px;
    font: 11px Plex, monospace;
    letter-spacing: .18em;
    color: var(--amber);
}
.signal, #footer i
{
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--amber);
}
.card-rule
{
    height: 1px;
    background: var(--line);
    margin: 22px 0 25px;
}
.overline
{
    font: 10px Plex, monospace;
    color: var(--dim);
    letter-spacing: .2em;
    margin: 0 0 10px;
}
h1
{
    font: 600 52px/1.05 Oxanium, sans-serif;
    letter-spacing: -.055em;
    margin: 0 0 20px;
    max-width: 290px;
}
.deck
{
    font-size: 18px;
    line-height: 1.45;
    max-width: 290px;
    margin: 0 0 8px;
}
.audience
{
    color: var(--dim);
    font-size: 14px;
    margin: 0 0 20px;
}
.meta
{
    font: 11px/1.7 Plex, monospace;
    color: var(--dim);
    margin: 0 0 25px;
}
.controls
{
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
h2
{
    font: 10px Plex, monospace;
    letter-spacing: .12em;
    color: var(--dim);
    margin: 0 0 15px;
    display: flex;
    justify-content: space-between;
}
h2 span
{
    opacity: .55;
}
.desktop-legend p
{
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 9px 0;
    font-size: 13px;
    color: #b6bec8;
}
kbd
{
    font: 9px Plex, monospace;
    padding: 5px 6px;
    min-width: 61px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 3px;
    color: var(--paper);
}
.desktop-legend p:last-child kbd:nth-of-type(2)
{
    min-width: 23px;
}
.note
{
    font-size: 12px;
    color: var(--dim);
    margin: 21px 0 14px;
}
.primary
{
    background: var(--amber);
    color: #141820;
    border: 0;
    border-radius: 10px;
    width: 100%;
    padding: 16px 18px;
    font: 600 15px Oxanium, sans-serif;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.primary:hover
{
    background: #f2b756;
}
.primary span
{
    font: 23px/1 Source, sans-serif;
}
.secondary
{
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-top: 10px;
    width: 100%;
}
.credit
{
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
    color: var(--dim);
    font-size: 11px;
    text-decoration: none;
}
.credit:hover
{
    color: var(--paper);
}
#field-label
{
    position: absolute;
    top: 133px;
    right: 48px;
    display: flex;
    gap: 12px;
    color: #818b96;
    font: 9px/1.9 Plex, monospace;
    letter-spacing: .09em;
}
#field-label strong
{
    font-weight: 400;
    color: #b3bdc7;
}
.small-cross
{
    font-size: 22px;
    color: var(--amber);
}
#craft-label
{
    position: absolute;
    left: 66%;
    top: 71%;
    font: 10px Plex, monospace;
    letter-spacing: .11em;
    color: var(--paper);
}
#craft-label small
{
    display: block;
    font-size: 8px;
    color: var(--dim);
    margin-top: 8px;
}
#craft-label i
{
    display: block;
    width: 84px;
    border-top: 1px solid var(--line);
    margin-top: 12px;
}
#footer
{
    position: fixed;
    bottom: 35px;
    left: 44px;
    right: 44px;
    display: flex;
    justify-content: space-between;
    color: #7d8793;
    font: 8px Plex, monospace;
    letter-spacing: .13em;
}
#footer i
{
    background: var(--ice);
    margin-right: 7px;
}
#footer b
{
    margin: 0 8px;
}
.hidden, .mobile-legend
{
    display: none !important;
}
#hud
{
    position: absolute;
    inset: 0;
}
.pilot
{
    position: absolute;
    left: 24px;
    top: 24px;
}
.pilot strong
{
    font: 13px Plex, monospace;
    letter-spacing: .18em;
}
.pilot small
{
    display: block;
    color: var(--dim);
    margin-top: 6px;
}
.wave
{
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font: 11px Plex, monospace;
}
.wave strong, .wave small, .wave span
{
    display: block;
}
.wave strong
{
    font-size: 28px;
    margin: 5px;
}
.wave small, .wave span
{
    color: var(--dim);
}
.wave span
{
    margin-top: 10px;
    font-size: 9px;
}
#tones
{
    position: absolute;
    right: 24px;
    top: 24px;
    border-radius: 8px;
    padding: 0 16px;
    font-size: 12px;
    pointer-events: auto;
}
#radar
{
    position: absolute;
    bottom: 24px;
    left: 24px;
    width: 148px;
    height: 148px;
    border-radius: 50%;
    background: rgba(10, 12, 16, .72);
}
#radar circle, #radar path
{
    fill: none;
    stroke: var(--line);
    stroke-width: .8;
}
#radar .player
{
    fill: var(--ice);
    stroke: none;
}
#radar .dot
{
    fill: #c5ced8;
    stroke: none;
}
.shield
{
    position: absolute;
    width: 280px;
    left: 50%;
    transform: translateX(-50%);
    bottom: 32px;
}
.shield > div:first-child
{
    display: flex;
    justify-content: space-between;
    font: 10px Plex, monospace;
    margin-bottom: 10px;
}
.shield-track
{
    height: 2px;
    background: #303943;
}
#shield-fill
{
    display: block;
    height: 100%;
    background: var(--ice);
    width: 100%;
}
#boost-ring
{
    position: absolute;
    right: 24px;
    bottom: 24px;
    width: 100px;
    height: 100px;
    text-align: center;
    font: 10px Plex, monospace;
}
#boost-ring svg
{
    width: 76px;
    height: 76px;
    transform: rotate(-90deg);
}
#boost-ring circle
{
    fill: none;
    stroke: var(--ice);
    stroke-width: 2px;
    stroke-dasharray: 163.36;
}
#boost-ring span
{
    position: absolute;
    top: 32px;
    left: 0;
    width: 100%;
}
#boost-ring small
{
    color: var(--dim);
    font-size: 8px;
}
#reticle
{
    position: absolute;
    width: 72px;
    height: 72px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
#reticle svg
{
    width: 100%;
    fill: none;
    stroke: var(--ice);
    stroke-width: 1;
}
#reticle .track
{
    opacity: .35;
}
#lock-arc
{
    stroke: var(--amber);
    stroke-width: 2;
    stroke-dasharray: 175.93;
    stroke-dashoffset: 175.93;
    transform: rotate(-90deg);
    transform-origin: center;
}
#lock-word
{
    display: block;
    text-align: center;
    font: 10px Plex, monospace;
    color: var(--amber);
    margin-top: 7px;
}
#message
{
    position: absolute;
    left: 50%;
    top: 30%;
    transform: translateX(-50%);
    color: var(--ice);
    font: 12px Plex, monospace;
    letter-spacing: .12em;
    text-align: center;
    width: min(90%, 450px);
}
.boundary
{
    box-shadow: inset 0 0 0 2px var(--ice);
}
.sr-only
{
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}
#touch
{
    position: absolute;
    bottom: max(16px, env(safe-area-inset-bottom));
    left: 16px;
    right: 16px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    pointer-events: auto;
}
#stick
{
    width: 116px;
    height: 116px;
    border-radius: 50%;
    position: relative;
    touch-action: none;
}
#stick span
{
    position: absolute;
    inset: 20px;
    border: 1px solid var(--line);
    border-radius: 50%;
}
#stick i
{
    position: absolute;
    left: 39px;
    top: 39px;
    width: 36px;
    height: 36px;
    border: 1px solid var(--ice);
    border-radius: 50%;
    background: #24313a;
}
.touch-buttons
{
    display: grid;
    grid-template-columns: repeat(2, 64px);
    gap: 8px;
}
#touch button
{
    height: 64px;
    border-radius: 12px;
    font: 10px Plex, monospace;
    touch-action: none;
}
#touch button.held
{
    border-color: var(--ice);
    background: #23313b;
}
#touch #lock.held
{
    border-color: var(--amber);
}
@media (max-width: 767px)
{
    .frame
    {
        inset: 8px;
    }
    #masthead
    {
        top: 22px;
        left: 24px;
        right: 24px;
        font-size: 13px;
    }
    .edition
    {
        font-size: 7px;
        max-width: 100px;
        line-height: 1.8;
        text-align: right;
    }
    #card
    {
        left: 16px;
        right: 16px;
        bottom: 16px;
        top: auto;
        transform: none;
        width: auto;
        max-height: 46vh;
        overflow-y: auto;
        padding: 20px;
        overscroll-behavior: contain;
        touch-action: pan-y;
        background: rgba(10, 12, 16, .9);
        backdrop-filter: none;
        scrollbar-width: thin;
    }
    .card-rule
    {
        margin: 14px 0;
    }
    .overline
    {
        font-size: 8px;
    }
    h1
    {
        font-size: 36px;
        max-width: none;
        margin-bottom: 12px;
    }
    .deck
    {
        font-size: 17px;
    }
    .audience
    {
        font-size: 13px;
        margin-bottom: 12px;
    }
    .meta
    {
        font-size: 10px;
        margin-bottom: 14px;
    }
    .controls
    {
        padding-top: 12px;
    }
    h2
    {
        margin-bottom: 8px;
    }
    .mobile-legend
    {
        display: block !important;
        font-size: 12px;
        line-height: 1.5;
        color: var(--dim);
        margin: 0;
    }
    .desktop-legend, #footer, #boost-ring
    {
        display: none;
    }
    .note
    {
        margin: 12px 0;
    }
    #launch
    {
        position: sticky;
        bottom: 0;
        box-shadow: 0 0 0 8px #0a0c10;
    }
    #craft-label
    {
        top: 43%;
        left: 60%;
        font-size: 8px;
    }
    #craft-label small
    {
        max-width: 95px;
        font-size: 6px;
        line-height: 1.7;
    }
    #field-label
    {
        top: 95px;
        right: 26px;
        font-size: 7px;
    }
    .pilot
    {
        top: 16px;
        left: 16px;
    }
    .pilot strong
    {
        font-size: 11px;
    }
    .pilot small
    {
        font-size: 11px;
    }
    .wave
    {
        top: 16px;
    }
    .wave strong
    {
        font-size: 20px;
    }
    .wave small
    {
        font-size: 9px;
    }
    .wave span
    {
        font-size: 8px;
    }
    #tones
    {
        top: 16px;
        right: 16px;
        padding: 0 10px;
        font-size: 10px;
    }
    #radar
    {
        top: 72px;
        left: 16px;
        width: 88px;
        height: 88px;
    }
    .shield
    {
        bottom: 168px;
        left: 16px;
        right: 16px;
        width: auto;
        transform: none;
    }
    #reticle
    {
        width: 56px;
        height: 56px;
    }
}
@media (prefers-reduced-motion: reduce)
{
    *, *::before, *::after
    {
        scroll-behavior: auto !important;
        animation: none !important;
        transition: none !important;
    }
}
