@font-face
{
    font-family: Newsreader;
    src: url("./fonts/newsreader-latin-400-normal.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}
@font-face
{
    font-family: Newsreader;
    src: url("./fonts/newsreader-latin-500-normal.woff2") format("woff2");
    font-weight: 500;
    font-display: swap;
}
@font-face
{
    font-family: Newsreader;
    src: url("./fonts/newsreader-latin-600-normal.woff2") format("woff2");
    font-weight: 600;
    font-display: swap;
}
@font-face
{
    font-family: Manrope;
    src: url("./fonts/manrope-latin-400-normal.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}
@font-face
{
    font-family: Manrope;
    src: url("./fonts/manrope-latin-500-normal.woff2") format("woff2");
    font-weight: 500;
    font-display: swap;
}
@font-face
{
    font-family: Manrope;
    src: url("./fonts/manrope-latin-600-normal.woff2") format("woff2");
    font-weight: 600;
    font-display: swap;
}
@font-face
{
    font-family: Manrope;
    src: url("./fonts/manrope-latin-700-normal.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}
@font-face
{
    font-family: "IBM Plex Mono";
    src: url("./fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}
@font-face
{
    font-family: "IBM Plex Mono";
    src: url("./fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
    font-weight: 500;
    font-display: swap;
}
:root
{
    color-scheme: dark;
    --midnight: #080D1F;
    --indigo: #101A36;
    --panel: #151E38;
    --hover: #1D2948;
    --parchment: #F3E9D2;
    --muted: #AAB5CD;
    --gold: #E4BC72;
    --ink: #241A0D;
    --line: #35415E;
    --blue: #B9CBFF;
    --serif: Newsreader, Georgia, serif;
    --body: Manrope, Arial, sans-serif;
    --mono: "IBM Plex Mono", monospace;
}
*
{
    box-sizing: border-box;
}
body
{
    margin: 0;
    background: var(--midnight);
    color: var(--parchment);
    font: 13px/1.65 var(--body);
}
button, input, select
{
    font: inherit;
}
button, a, input, select
{
    -webkit-tap-highlight-color: transparent;
}
button
{
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--parchment);
    background: transparent;
    padding: 9px 13px;
    cursor: pointer;
    transition: background 140ms, border-color 140ms, color 140ms;
}
button:hover:not(:disabled)
{
    border-color: var(--gold);
    background: var(--hover);
}
button:disabled
{
    opacity: .4;
    cursor: not-allowed;
}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, canvas:focus-visible
{
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}
button svg
{
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
button, .wordmark, .legend p, .date-title, .panel-kicker
{
    display: flex;
    align-items: center;
    gap: 9px;
}
a
{
    color: var(--muted);
    text-underline-offset: 4px;
}
p, h1, h2, h3
{
    margin: 0;
}
.shell
{
    max-width: 1504px;
    margin: auto;
    padding: 0 24px;
}
.header
{
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line);
}
.wordmark
{
    font: 500 26px var(--serif);
    letter-spacing: -.7px;
    gap: 12px;
}
.wordmark img
{
    width: 29px;
    height: 35px;
}
.header-right
{
    display: flex;
    align-items: center;
    gap: 22px;
}
.quiet-pill
{
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 13px;
    font-size: 11px;
}
.help-button
{
    border: 0;
    padding-right: 0;
}
.atlas-layout
{
    display: grid;
    grid-template-columns: 256px minmax(0, 1fr) 320px;
    gap: 16px;
    padding-top: 20px;
    align-items: start;
}
.left-column
{
    padding: 8px 8px 0 0;
}
.eyebrow, .mono, .panel-kicker, label, .section-heading, .stage-heading
{
    font: 400 10px/1.6 var(--mono);
    letter-spacing: 1.15px;
}
.eyebrow
{
    color: var(--gold);
    text-transform: uppercase;
}
h1
{
    font: 400 clamp(44px, 3.8vw, 58px)/1.02 var(--serif);
    letter-spacing: -1.7px;
    margin: 17px 0;
    max-width: 260px;
}
.intro-body
{
    color: var(--muted);
    line-height: 1.8;
}
.theme
{
    color: var(--muted);
    font-size: 11px;
    margin-top: 14px;
}
.legend
{
    display: grid;
    gap: 5px;
    margin-top: 20px;
    color: var(--muted);
    font-size: 10px;
}
.legend i
{
    width: 25px;
    height: 1px;
    background: var(--gold);
}
.legend p:last-child i
{
    opacity: .25;
}
.section-heading
{
    display: flex;
    justify-content: space-between;
    text-transform: uppercase;
    color: var(--muted);
    margin: 25px 0 12px;
}
.section-heading span
{
    color: var(--gold);
}
.story-list
{
    display: grid;
    gap: 10px;
}
.story-choice
{
    width: 100%;
    text-align: left;
    height: 64px;
    border-color: transparent;
    border-radius: 8px;
    padding: 8px 10px;
    gap: 12px;
}
.story-choice .number
{
    color: var(--muted);
    font: 11px var(--mono);
}
.story-choice strong
{
    display: block;
    font: 500 17px var(--serif);
}
.story-choice small
{
    display: block;
    font-size: 10px;
    color: var(--muted);
    margin-top: 3px;
}
.story-choice .check
{
    margin-left: auto;
    color: var(--gold);
    visibility: hidden;
}
.story-choice[aria-pressed="true"]
{
    border-left: 2px solid var(--gold);
    background: var(--hover);
}
.story-choice[aria-pressed="true"] .check
{
    visibility: visible;
}
.blank
{
    margin-top: 23px;
    color: var(--muted);
    font-size: 11px;
}
.wide-button
{
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}
.mobile-choose, .mobile-intro
{
    display: none;
}
.stage
{
    height: 620px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--midnight);
    box-shadow: 0 16px 55px #00000024;
}
.stage canvas
{
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
    cursor: grab;
}
.stage canvas:active
{
    cursor: grabbing;
}
.stage-top
{
    position: absolute;
    inset: 20px 18px auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    pointer-events: none;
}
.stage-heading
{
    color: var(--muted);
    font-size: 9px;
    letter-spacing: .9px;
    background: #080d1fd1;
    padding: 5px 0;
}
.stage-heading span
{
    display: block;
    color: var(--parchment);
    font: 400 19px var(--serif);
    letter-spacing: 0;
    margin-top: 4px;
}
.modes
{
    display: flex;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 3px;
    background: var(--midnight);
    pointer-events: auto;
}
.modes button
{
    border: 0;
    min-width: 66px;
    min-height: 44px;
    padding: 8px 11px;
    justify-content: center;
    border-radius: 999px;
    font-size: 11px;
}
.modes button[aria-pressed="true"]
{
    background: var(--parchment);
    color: var(--ink);
}
.map-labels
{
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.map-label
{
    position: absolute;
    left: 0;
    top: 0;
    font: 9px var(--mono);
    color: var(--muted);
    white-space: nowrap;
    letter-spacing: .5px;
    will-change: transform;
}
.map-label.active
{
    color: var(--gold);
}
.stage-helper
{
    position: absolute;
    left: 18px;
    bottom: 52px;
    font-size: 10px;
    color: var(--muted);
    padding: 4px 7px;
    background: #080d1fd1;
    max-width: calc(100% - 78px);
    pointer-events: none;
}
.stage-notice
{
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 11px 15px;
    border-top: 1px solid #35415e80;
    background: #080d1fd1;
    font: 8px/1.5 var(--mono);
    letter-spacing: .1px;
    color: var(--muted);
    text-align: center;
    pointer-events: none;
}
.zoom-controls
{
    position: absolute;
    right: 14px;
    bottom: 53px;
    display: grid;
    background: var(--midnight);
    border: 1px solid var(--line);
    border-radius: 10px;
}
.zoom-controls button
{
    padding: 10px;
    width: 44px;
    height: 44px;
    justify-content: center;
    border: 0;
}
.zoom-controls button + button
{
    border-top: 1px solid var(--line);
    border-radius: 0;
}
.zoom-readout
{
    position: absolute;
    bottom: 40px;
    right: 20px;
    color: var(--muted);
    font: 8px var(--mono);
}
.date-bar
{
    display: grid;
    grid-template-columns: 125px minmax(60px, 1fr) 140px;
    align-items: center;
    gap: 12px;
    min-height: 96px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
}
.date-title
{
    font-size: 11px;
    color: var(--muted);
    gap: 7px;
}
.date-title svg
{
    width: 16px;
    height: 16px;
}
.date-readout
{
    display: block;
    color: var(--parchment);
    font: 11px/1.8 var(--mono);
    margin-top: 3px;
}
input[type="range"]
{
    accent-color: var(--gold);
    width: 100%;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    cursor: pointer;
}
.date-input-group
{
    position: relative;
}
.date-input-group input
{
    width: 100%;
    min-height: 44px;
    padding: 6px 7px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--indigo);
    font: 10px var(--mono);
}
.date-input-group button
{
    min-height: 44px;
    font-size: 10px;
    justify-content: flex-end;
    width: 100%;
    padding: 0;
    border: 0;
    position: absolute;
    top: 40px;
    color: var(--muted);
}
.chapter
{
    font: 400 13px var(--serif);
    color: var(--muted);
    padding: 17px 0;
    font-style: italic;
}
.right-panel
{
    min-width: 0;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px;
    min-height: 620px;
}
.panel-kicker
{
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 1.1px;
}
.panel-kicker span
{
    color: var(--gold);
}
.right-panel h2
{
    font: 400 40px/1.1 var(--serif);
    letter-spacing: -.8px;
    margin-top: 22px;
}
.epithet
{
    font: italic 400 18px/1.5 var(--serif);
    color: var(--gold);
    margin-top: 5px;
}
.story-diagram
{
    width: 100%;
    height: 150px;
    margin: 19px 0 17px;
    background: var(--indigo);
    border: 1px solid #35415e88;
    border-radius: 12px;
}
.story-diagram line
{
    stroke: var(--gold);
    stroke-width: 1.2;
    vector-effect: non-scaling-stroke;
}
.story-diagram circle
{
    fill: var(--parchment);
}
.story-prose
{
    font-size: 12px;
    line-height: 1.9;
    color: #d3d8e6;
}
.pattern-note
{
    border-top: 1px solid var(--line);
    padding-top: 17px;
    margin-top: 20px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.8;
}
.pattern-note strong
{
    font: 10px var(--mono);
    letter-spacing: .6px;
    display: block;
    color: var(--parchment);
    margin-bottom: 8px;
}
.trace-button
{
    margin-top: 22px;
}
.text-button
{
    width: 100%;
    border: 0;
    font-size: 10px;
    color: var(--muted);
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}
.maker h2
{
    font-size: 34px;
    margin-top: 14px;
}
.maker-body
{
    color: var(--muted);
    font-size: 12px;
    margin-top: 12px;
}
label
{
    display: block;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: .6px;
    margin-top: 20px;
    margin-bottom: 7px;
}
input[type="text"], select
{
    width: 100%;
    min-height: 44px;
    color: var(--parchment);
    background: var(--indigo);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 9px 10px;
    font-size: 12px;
    min-width: 0;
}
input::placeholder
{
    color: var(--muted);
    font-size: 10px;
}
.point-count
{
    margin: 12px 0;
    font: 11px var(--mono);
    color: var(--gold);
}
.split-buttons
{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.split-buttons button
{
    justify-content: center;
}
.primary
{
    background: var(--gold);
    color: var(--ink);
    border-color: var(--gold);
    font-weight: 700;
}
.primary:hover:not(:disabled)
{
    background: #f0c983;
    color: var(--ink);
}
.save-feedback
{
    min-height: 42px;
    font-size: 10px;
    color: var(--gold);
    padding: 6px 0;
}
.saved-title
{
    border-top: 1px solid var(--line);
    padding-top: 18px;
    font: 400 24px var(--serif);
}
.saved-empty
{
    color: var(--muted);
    font-size: 11px;
    margin-top: 12px;
}
.saved-row
{
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.saved-name
{
    display: block;
    overflow-wrap: anywhere;
    font: 500 20px var(--serif);
}
.saved-count
{
    color: var(--muted);
    font-size: 10px;
}
.saved-actions
{
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 9px;
}
.saved-actions button
{
    font-size: 10px;
    min-width: 44px;
}
.footer
{
    border-top: 1px solid var(--line);
    padding: 19px 0;
    margin-top: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    font-size: 10px;
}
.footer p
{
    font: italic 400 15px var(--serif);
}
.footer a
{
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}
.status
{
    color: var(--muted);
    font-size: 10px;
    min-height: 32px;
    margin-top: 8px;
}
dialog
{
    background: var(--panel);
    color: var(--parchment);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px;
    width: min(520px, calc(100% - 32px));
    max-height: 82svh;
}
dialog::backdrop
{
    background: #080d1fe8;
}
.guide-heading
{
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}
.guide-heading h2
{
    font: 400 34px var(--serif);
}
.guide-heading button
{
    width: 44px;
    flex-shrink: 0;
    justify-content: center;
}
.guide-items
{
    display: grid;
    gap: 18px;
    margin: 24px 0;
}
.guide-items h3
{
    font: 500 21px var(--serif);
    color: var(--gold);
    margin-bottom: 4px;
}
.guide-items p, .guide-note
{
    color: var(--muted);
    font-size: 12px;
}
.guide-note
{
    border-top: 1px solid var(--line);
    padding-top: 15px;
}
.sr-only
{
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
[hidden]
{
    display: none !important;
}
@media (min-width: 1120px) and (max-width: 1320px)
{
    .atlas-layout
    {
        grid-template-columns: 220px minmax(0, 1fr) 280px;
    }
    h1
    {
        font-size: 48px;
    }
    .right-panel
    {
        padding: 20px;
    }
    .stage-heading span
    {
        font-size: 16px;
    }
}
@media (min-width: 701px) and (max-width: 1119px)
{
    .atlas-layout
    {
        grid-template-columns: 220px minmax(0, 1fr);
    }
    .left-column
    {
        grid-row: span 2;
    }
    .right-panel
    {
        grid-column: 2;
        min-height: 0;
    }
    .story-diagram
    {
        max-width: 300px;
        float: right;
        margin-left: 20px;
    }
    h1
    {
        font-size: 48px;
    }
}
@media (max-width: 700px)
{
    .shell
    {
        padding: 0 16px;
    }
    .header
    {
        height: 56px;
    }
    .wordmark
    {
        font-size: 23px;
    }
    .wordmark img
    {
        width: 25px;
        height: 29px;
    }
    .quiet-pill
    {
        display: none;
    }
    .help-button
    {
        font-size: 11px;
        gap: 6px;
    }
    .atlas-layout
    {
        display: block;
        padding-top: 16px;
    }
    .left-column
    {
        padding: 0;
    }
    .eyebrow
    {
        font-size: 8px;
    }
    h1
    {
        font-size: 38px;
        line-height: 1.02;
        letter-spacing: -1.1px;
        max-width: 350px;
        margin: 9px 0;
    }
    .mobile-intro
    {
        display: block;
        color: var(--muted);
        font-size: 11px;
        line-height: 1.65;
    }
    .intro-body, .theme, .legend, .desktop-index
    {
        display: none;
    }
    .mobile-choose
    {
        display: block;
        margin-bottom: 12px;
    }
    .mobile-choose label
    {
        margin-top: 14px;
        margin-bottom: 5px;
    }
    .mobile-choose select
    {
        font-size: 12px;
    }
    .stage
    {
        height: 360px;
        border-radius: 18px;
    }
    .stage-top
    {
        inset: 10px 12px auto;
    }
    .stage-heading span
    {
        display: none;
    }
    .stage-heading
    {
        font-size: 9px;
    }
    .modes
    {
        padding: 2px;
    }
    .modes button
    {
        min-width: 61px;
    }
    .stage-helper
    {
        font-size: 10px;
        left: 9px;
        bottom: 46px;
        padding: 3px 4px;
    }
    .stage-notice
    {
        font-size: 7px;
        padding: 10px 4px;
    }
    .zoom-controls
    {
        right: 9px;
        bottom: 47px;
    }
    .map-label
    {
        font-size: 7px;
        letter-spacing: 0;
    }
    .map-label:not(.active)
    {
        visibility: hidden;
    }
    .zoom-readout
    {
        right: 17px;
        bottom: 33px;
    }
    .date-bar
    {
        grid-template-columns: 1fr 150px;
        gap: 3px 15px;
        padding: 14px 0 5px;
        min-height: 116px;
    }
    .date-label-group
    {
        grid-column: 1;
    }
    .date-slider-group
    {
        grid-row: 2;
        grid-column: 1 / -1;
    }
    .date-input-group
    {
        grid-row: 1;
        grid-column: 2;
    }
    .date-input-group button
    {
        position: static;
        min-height: 44px;
        margin-bottom: -12px;
        justify-content: center;
    }
    .date-readout
    {
        font-size: 11px;
    }
    .chapter
    {
        font-size: 13px;
        padding: 15px 0 2px;
    }
    .status
    {
        font-size: 9px;
        margin: 8px 0 12px;
    }
    .right-panel
    {
        min-height: 0;
        padding: 22px;
        margin-top: 8px;
    }
    .right-panel h2
    {
        font-size: 40px;
    }
    .story-prose
    {
        font-size: 13px;
    }
    .story-diagram
    {
        height: 150px;
    }
    .footer
    {
        margin-top: 22px;
        display: block;
    }
    .footer a
    {
        font-size: 10px;
    }
    dialog
    {
        margin: auto auto 0;
        width: 100%;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        padding-bottom: max(24px, env(safe-area-inset-bottom));
    }
}
@media (prefers-reduced-motion: reduce)
{
    *, *::before, *::after
    {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}
