.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

:root {
    color-scheme: dark;
    font-family: Inter, ui-rounded, "Segoe UI", sans-serif;
    font-size: 18px;
    color: #f8fbff;
    background: #08142b;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 8%, rgba(83, 219, 190, .2), transparent 28rem),
        radial-gradient(circle at 90% 10%, rgba(148, 112, 255, .24), transparent 32rem),
        #08142b;
}

button { font: inherit; }

button:focus-visible, a:focus-visible {
    outline: 4px solid #ffdc63;
    outline-offset: 3px;
}

.app-frame { min-height: 100vh; }
.resume-loading { max-width: 42rem; margin: 10vh auto; padding: 2rem; text-align: center; }

.game-shell {
    width: min(76rem, 100%);
    margin: 0 auto;
    padding: 1rem clamp(1rem, 3vw, 2.5rem) 3rem;
}

.prototype-hub {
    width: min(76rem, 100%);
    margin: 0 auto;
    padding: 1rem clamp(1rem, 3vw, 2.5rem) 0;
}

.prototype-hub-copy {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem 1rem;
    margin-bottom: .65rem;
}

.prototype-hub-copy p { margin: 0; color: #cad8ec; font-size: .9rem; }

.prototype-demo-badge {
    padding: .35rem .65rem;
    color: #06241f;
    border-radius: 999px;
    background: #9edfd4;
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.prototype-navigation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem;
}

.prototype-navigation-label { margin-right: .25rem; color: #9edfd4; font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.prototype-navigation a { display: grid; gap: .05rem; padding: .55rem .8rem; color: #dbe9ff; border: 1px solid #4e75ae; border-radius: .8rem; text-decoration: none; background: #10284e; }
.prototype-navigation a.active { color: #06241f; border-color: #d8fff6; background: #9edfd4; font-weight: 800; }
.prototype-navigation a small { color: #aebed6; font-size: .7rem; font-weight: 650; }
.prototype-navigation a.active small { color: #28524c; }

.game-shell.is-enlarged { font-size: 1.35rem; }
.game-shell.is-enlarged .crystal-board-wrap { width: min(100%, 48rem); }
.game-shell.is-enlarged .crystal-symbol { font-size: clamp(1.35rem, 6vw, 3rem); }
.game-shell.is-enlarged .crystal-cell { border-width: 4px; }
.game-shell.is-enlarged .skyline-node { min-height: 7.5rem; font-size: 1rem; }
.fresh-demo-note { color: #cad8ec; font-size: .9rem; }

.journey-progress {
    margin-top: .75rem;
    padding: .65rem .8rem;
    border: 1px solid rgba(194, 221, 255, .18);
    border-radius: .75rem;
    background: rgba(7, 17, 36, .72);
}

.journey-progress ol {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
    gap: .45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.journey-progress li {
    display: flex;
    align-items: center;
    gap: .45rem;
    min-width: 0;
    padding: .4rem .5rem;
    color: #91a6c4;
    border-radius: .55rem;
}

.journey-progress li.is-current { color: #fff; background: #1c3969; }
.journey-progress li.is-complete { color: #bff8e8; }

.journey-progress-marker {
    display: grid;
    flex: 0 0 1.55rem;
    place-items: center;
    width: 1.55rem;
    height: 1.55rem;
    color: #08142b;
    border-radius: 50%;
    background: #7183a0;
    font-size: .72rem;
    font-weight: 900;
}

.journey-progress li.is-current .journey-progress-marker { background: #ffdc63; }
.journey-progress li.is-complete .journey-progress-marker { background: #64e4c0; }
.journey-progress-label { overflow-wrap: anywhere; font-size: .78rem; font-weight: 750; }

.skip-link {
    position: fixed;
    top: .75rem;
    left: .75rem;
    z-index: 20;
    padding: .75rem 1rem;
    color: #08142b;
    background: #ffdc63;
    border-radius: .5rem;
    transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.game-header,
.objective-panel,
.relay-stage,
.tutorial-card,
.assistance-card,
.turn-actions,
.accessibility-bar,
.help-panel,
.stop-dialog {
    border: 1px solid rgba(194, 221, 255, .22);
    background: rgba(12, 29, 59, .92);
    box-shadow: 0 .8rem 2.8rem rgba(0, 0, 0, .2);
}

.game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 1rem 1rem .4rem .4rem;
}

h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(1.7rem, 4vw, 2.6rem); letter-spacing: -.04em; }
h2 { margin-bottom: .35rem; font-size: clamp(1.2rem, 2.5vw, 1.65rem); }

.eyebrow {
    margin-bottom: .2rem;
    color: #9edfd4;
    font-weight: 750;
    font-size: .78rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.game-header-actions, .panel-actions, .turn-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem;
}

.button, .accessibility-bar button {
    min-height: 2.75rem;
    padding: .65rem 1rem;
    border: 2px solid transparent;
    border-radius: .65rem;
    cursor: pointer;
    font-weight: 750;
}

a.button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

.button-primary { color: #06241f; background: #64e4c0; }
.button-quiet, .accessibility-bar button { color: #f8fbff; background: #1c3969; border-color: #4e75ae; }
.button-stop { color: #fff; background: #a82f53; border-color: #ee7798; }
.button:disabled { cursor: not-allowed; opacity: .45; }

.objective-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    margin-top: .75rem;
    padding: 1rem 1.25rem;
    border-radius: .4rem;
}

.objective-panel p:last-child { margin-bottom: 0; color: #cad8ec; }
.game-stats { display: flex; flex-wrap: wrap; gap: .5rem; }
.game-stats span { padding: .55rem .75rem; background: #152f5a; border-radius: .6rem; }
.game-stats strong { color: #ffdc63; }

.accessibility-bar {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
    margin-top: .75rem;
    padding: .75rem;
    border-radius: .4rem;
}

.accessibility-bar button[aria-pressed="true"] { color: #06241f; background: #9edfd4; border-color: #d8fff6; }
.accessibility-note { margin-left: auto; color: #cad8ec; font-size: .9rem; }

#game-board { position: relative; }
.relay-stage { display: flex; align-items: center; gap: 1rem; margin-top: .75rem; padding: .8rem 1rem; border-radius: .75rem; }
.relay-stage h2 { margin: 0; }
.relay-visual { display: flex; gap: .3rem; }
.relay-ring { width: 1.7rem; height: 1.7rem; border: .35rem solid #51627b; border-radius: 50%; }
.relay-ring.is-lit { border-color: #64e4c0; box-shadow: 0 0 1rem #64e4c0; }

.tutorial-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .7rem 1rem;
    align-items: center;
    margin-top: .75rem;
    padding: 1rem 1.1rem;
    border: 2px solid #ffdc63;
    border-radius: .8rem;
    background: linear-gradient(135deg, rgba(48, 42, 82, .96), rgba(12, 29, 59, .96));
}
.tutorial-card h2 { margin-bottom: .3rem; }
.tutorial-card p:last-child { margin-bottom: 0; }
.tutorial-progress { grid-column: 1 / -1; display: flex; align-items: center; gap: .75rem; }
.tutorial-step-count { color: #ffdc63; font-size: .86rem; font-weight: 800; }
.tutorial-meter { display: flex; flex: 1; gap: .25rem; }
.tutorial-meter span { height: .35rem; flex: 1; border-radius: 1rem; background: #51627b; }
.tutorial-meter span.is-complete { background: #ffdc63; }
.tutorial-tip { margin-top: .65rem; padding: .65rem .75rem; border-left: .25rem solid #cbb5ff; background: rgba(7, 17, 36, .5); color: #e9e4ff; }
.tutorial-skip { justify-self: end; }
.tutorial-card-complete { border-color: #64e4c0; background: linear-gradient(135deg, rgba(16, 67, 68, .96), rgba(12, 29, 59, .96)); }
.assistance-card { margin-top: .75rem; padding: 1rem 1.1rem; border: 2px solid #9edfd4; border-radius: .8rem; }
.assistance-card p:last-child { margin-bottom: 0; }
.assistance-card .panel-actions { margin-top: .8rem; }

.crystal-board-wrap { margin: 1rem auto; width: min(100%, 39rem); }
.crystal-board { display: grid; gap: .32rem; padding: clamp(.45rem, 2vw, 1rem); border: 2px solid #547caf; border-radius: 1.2rem; background: #071124; box-shadow: inset 0 0 2.5rem rgba(84, 124, 175, .25); }
.crystal-row { display: grid; grid-template-columns: repeat(8, minmax(2rem, 1fr)); gap: .32rem; }
.crystal-cell {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    min-width: 0;
    padding: 0;
    color: #fff;
    border: 3px solid rgba(255, 255, 255, .38);
    border-radius: .72rem;
    background: #213657;
    cursor: pointer;
    transition: transform 140ms ease, box-shadow 140ms ease;
}
.crystal-cell:hover { transform: translateY(-2px); }
.crystal-symbol { font-size: clamp(1rem, 5vw, 2.25rem); line-height: 1; filter: drop-shadow(0 .12rem .08rem rgba(0,0,0,.35)); }
.crystal-ruby { color: #fff; background: #d94a78; }
.crystal-amber { color: #412901; background: #ffd55d; }
.crystal-emerald { color: #06251d; background: #56dbaf; }
.crystal-sapphire { color: #fff; background: #327be4; }
.crystal-amethyst { color: #fff; background: #835bda; }
.crystal-rock { color: #fff; background: repeating-linear-gradient(135deg, #667086, #667086 8px, #4b5366 8px, #4b5366 16px); cursor: default; }
.crystal-cell.is-selected { box-shadow: 0 0 0 4px #fff, 0 0 0 8px #ffdc63; transform: scale(.9); }
.crystal-cell.is-suggested { animation: suggestion-pulse 1.25s ease-in-out infinite; box-shadow: 0 0 0 4px #ffdc63; }
.rock-strength { position: absolute; right: .18rem; bottom: .08rem; font-size: .72rem; font-weight: 800; }
.board-instructions { margin: .7rem 0 0; color: #cbd9ed; text-align: center; font-size: .9rem; }

.turn-actions { justify-content: center; padding: 1rem; border-radius: .75rem; }
.turn-actions p { flex-basis: 100%; margin-bottom: .2rem; text-align: center; }
.button-pulse { color: #18102b; background: #cbb5ff; border-color: #eee6ff; }
.sector-complete { max-width: 42rem; margin: 1rem auto; padding: 1.25rem; border: 2px solid #64e4c0; border-radius: 1rem; background: #102f3d; text-align: center; }
.skyline-city-progress,
.skyline-route-panel,
.skyline-complete {
    border: 1px solid rgba(194, 221, 255, .22);
    background: rgba(12, 29, 59, .92);
    box-shadow: 0 .8rem 2.8rem rgba(0, 0, 0, .2);
}
.skyline-city-progress { display: flex; align-items: center; gap: 1rem; margin-top: .75rem; padding: .9rem 1rem; border-radius: .75rem; }
.skyline-city-progress h2 { margin: 0; }
.skyline-city-art { position: relative; display: grid; place-items: center; width: 5rem; height: 3.5rem; border-radius: 50%; background: linear-gradient(135deg, #294e86, #6d5abe); }
.skyline-drone { position: absolute; left: .45rem; color: #ffdc63; font-size: 1.4rem; animation: skyline-float 1.8s ease-in-out infinite; }
.skyline-lantern { margin-left: 1.8rem; color: #6d7890; font-size: 2rem; text-shadow: 0 0 .3rem #0a1326; }
.skyline-lantern.is-lit { color: #ffdc63; text-shadow: 0 0 1.1rem #ffdc63; }
.skyline-training-dock { margin-top: 1rem; }
.skyline-board-wrap { padding: 1rem; border: 2px solid #547caf; border-radius: 1.2rem; background: linear-gradient(180deg, rgba(22, 48, 91, .96), rgba(7, 17, 36, .98)); overflow: hidden; }
.skyline-board-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 2fr); gap: 1rem; align-items: end; }
.skyline-board-heading h2 { margin-bottom: 0; }
.skyline-board-heading .board-instructions { text-align: right; }
.skyline-map { position: relative; min-height: 18rem; margin-top: .8rem; padding: 1rem 2rem; border-radius: 1rem; background: radial-gradient(circle at 50% 45%, rgba(104, 226, 209, .16), transparent 55%), #09172f; }
.skyline-map-row { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(6, minmax(4.3rem, 1fr)); align-items: center; min-height: 8rem; gap: .5rem; }
.skyline-node {
    position: relative;
    grid-column: calc(var(--skyline-column) + 1);
    display: grid;
    place-items: center;
    align-content: center;
    min-height: 6.3rem;
    padding: .55rem;
    color: #f8fbff;
    border: 3px solid #7297c9;
    border-radius: 44% 56% 48% 52%;
    background: linear-gradient(145deg, #234b7c, #142c55);
    box-shadow: 0 .55rem 0 #071124, 0 .8rem 1.4rem rgba(0,0,0,.28);
    cursor: pointer;
    text-align: center;
    transition: transform 150ms ease, box-shadow 150ms ease;
}
.skyline-node:hover { transform: translateY(-3px); }
.skyline-node:focus-visible { outline: 4px solid #ffdc63; outline-offset: 4px; }
.skyline-node-name { max-width: 8.5rem; margin-top: .25rem; font-size: .78rem; font-weight: 750; }
.skyline-node-symbol { font-size: 1.65rem; line-height: 1; }
.skyline-energycell, .skyline-beacon { border-color: #80e8ff; background: linear-gradient(145deg, #176b86, #1b3d6b); }
.skyline-rechargepad { border-color: #9edfd4; background: linear-gradient(145deg, #176f69, #19445d); }
.skyline-sparkring { border-color: #ffdc63; background: linear-gradient(145deg, #765628, #47365f); }
.skyline-node.is-in-route { box-shadow: 0 0 0 4px #ffdc63, 0 .55rem 0 #071124, 0 0 1.4rem rgba(255,220,99,.55); }
.skyline-node.is-suggested { animation: suggestion-pulse 1.25s ease-in-out infinite; }
.skyline-node.is-completed { border-color: #64e4c0; background: linear-gradient(145deg, #176f69, #254c80); }
.skyline-route-order { position: absolute; top: -.45rem; right: -.35rem; display: grid; place-items: center; width: 1.65rem; height: 1.65rem; color: #08142b; border-radius: 50%; background: #ffdc63; font-weight: 900; }
.skyline-route-segment { position: absolute; right: -.95rem; bottom: -.65rem; z-index: 3; color: #ffdc63; font-size: 1.35rem; text-shadow: 0 2px 2px #071124; }
.skyline-edge-layer { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.skyline-edge { stroke: #6685af; stroke-width: 9; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.skyline-edge.is-wind-rail { stroke: #9edfd4; stroke-dasharray: 14 9; }
.skyline-edge-arrowhead { fill: #ffdc63; stroke: #071124; stroke-width: 1px; }
.skyline-execution-status { display: flex; align-items: center; justify-content: center; gap: .75rem; margin-top: .75rem; padding: .75rem; border-radius: .7rem; background: #163d60; }
.skyline-route-panel { margin-top: .75rem; padding: 1rem; border-radius: .9rem; }
.skyline-route-summary { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.skyline-route-summary h3 { margin: 0; }
.skyline-route-stats { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; }
.skyline-route-stats div { display: flex; gap: .35rem; padding: .45rem .6rem; border-radius: .55rem; background: #152f5a; }
.skyline-route-stats dt { color: #b8cae4; }
.skyline-route-stats dd { margin: 0; color: #ffdc63; font-weight: 800; }
.skyline-route-preview { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin: .8rem 0; padding: 0; list-style: none; }
.skyline-route-preview li { display: flex; gap: .35rem; align-items: center; padding: .4rem .55rem; border-radius: .55rem; background: #1b3969; }
.skyline-route-preview .is-empty { color: #cad8ec; }
.skyline-route-step { display: grid; place-items: center; width: 1.35rem; height: 1.35rem; color: #08142b; border-radius: 50%; background: #ffdc63; font-size: .75rem; font-weight: 900; }
.skyline-route-preview-arrow { color: #9edfd4; }
.skyline-route-message { margin: .7rem 0; color: #d8e4f4; }
.skyline-route-message.is-valid { color: #9ff2d7; font-weight: 750; }
.skyline-route-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.skyline-complete { max-width: 44rem; margin: 1rem auto; padding: 1.35rem; border: 2px solid #64e4c0; border-radius: 1rem; background: linear-gradient(135deg, #134852, #203a70); text-align: center; }
@keyframes skyline-float { 50% { transform: translate(.55rem, -.25rem); } }
.neon-shift-banner,
.neon-board-panel,
.neon-guide-card,
.neon-complete {
    border: 1px solid rgba(194, 221, 255, .22);
    background: rgba(9, 22, 48, .94);
    box-shadow: 0 .8rem 2.8rem rgba(0, 0, 0, .25);
}
.neon-shift-banner { display: flex; align-items: center; gap: 1rem; margin-top: .75rem; padding: .85rem 1rem; border-radius: .75rem; }
.neon-shift-banner h2 { margin: 0; }
.neon-shift-art { position: relative; width: 5.4rem; height: 3.4rem; border: 2px solid #ff65d4; border-radius: 1.2rem; background: linear-gradient(135deg, #342065, #0e6071); overflow: hidden; }
.neon-board-icon { position: absolute; left: .55rem; top: .75rem; color: #62f5ff; font-size: 1.45rem; text-shadow: 0 0 .8rem #62f5ff; animation: neon-board-glide 1.6s ease-in-out infinite; }
.neon-gate-icon { position: absolute; right: .65rem; top: .7rem; color: #ffdc63; font-size: 1.5rem; text-shadow: 0 0 .8rem #ffdc63; }
.neon-ready-count { align-self: center; justify-self: end; min-width: 7rem; padding: .8rem 1rem; color: #08142b; border-radius: .7rem; background: #ffdc63; text-align: center; }
.neon-guide-card { display: flex; gap: .55rem; margin-top: .75rem; padding: .8rem 1rem; border-left: .35rem solid #62f5ff; border-radius: .65rem; }
.neon-controls-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem 1rem; align-items: center; margin-top: .75rem; padding: .85rem 1rem; border: 1px solid rgba(194, 221, 255, .22); border-radius: .75rem; background: rgba(9, 22, 48, .94); }
.neon-controls-card h2, .neon-controls-card p { margin-bottom: .25rem; }
.neon-control-grid { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(8rem, 1fr)); gap: .65rem; }
.neon-control-grid label { display: grid; gap: .25rem; color: #d8e4f4; font-weight: 700; }
.neon-control-grid select { min-height: 2.75rem; padding: .45rem .55rem; color: #f7fbff; border: 2px solid #5d7dc4; border-radius: .5rem; background: #10264c; }
.neon-control-grid select:focus-visible { outline: 3px solid #ffdc63; outline-offset: 2px; }
.neon-board-panel { margin-top: 1rem; padding: 1rem; border-radius: 1rem; }
.neon-board-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, 2fr); gap: 1rem; align-items: end; }
.neon-board-heading h2 { margin: 0; }
.neon-board-heading .board-instructions { text-align: right; }
.neon-city { position: relative; width: min(100%, 68rem); margin: .8rem auto 0; border: 3px solid #5d7dc4; border-radius: 1rem; background: #071124; box-shadow: inset 0 0 2.4rem rgba(98, 245, 255, .14), 0 0 1.2rem rgba(255, 101, 212, .15); overflow: hidden; }
.neon-city:focus-visible { outline: 5px solid #ffdc63; outline-offset: 4px; }
.neon-city svg { display: block; width: 100%; aspect-ratio: 3 / 2; max-height: 34rem; }
.neon-road { fill: url(#neon-road); }
.neon-road-marking { fill: none; stroke: #345486; stroke-width: .7; stroke-dasharray: 3 3; }
.neon-boost-zone { fill: rgba(98, 245, 255, .14); stroke: #62f5ff; stroke-width: .7; stroke-dasharray: 3 2; animation: neon-boost-pulse 1.2s ease-in-out infinite; }
.neon-barrier { fill: #421b59; stroke: #ff65d4; stroke-width: 1.2; }
.neon-barrier-stripe { stroke: #ffdc63; stroke-width: 1.2; stroke-dasharray: 4 2; }
.neon-delivery-gate { fill: #18395d; stroke: #ffdc63; stroke-width: 1.2; filter: url(#neon-glow); }
.neon-delivery-gate.is-complete { fill: #1f806c; stroke: #9ff2d7; }
.neon-gate-symbol { fill: #ffdc63; stroke: #08142b; stroke-width: .5; }
.neon-energy-cell { fill: #62f5ff; stroke: #fff; stroke-width: .8; filter: url(#neon-glow); animation: neon-cell-pulse 1.2s ease-in-out infinite; }
.neon-cell-symbol { fill: none; stroke: #08142b; stroke-width: .8; }
.neon-route-token { fill: #ffdc63; stroke: #fff5bf; stroke-width: .6; filter: url(#neon-glow); animation: neon-token-spin 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.neon-guide-route { fill: none; stroke-width: 1.2; opacity: .9; }
.neon-guide-route.is-safe { stroke: #62f5ff; }
.neon-guide-route.is-fast { stroke: #ffdc63; stroke-dasharray: 3 2; }
.neon-courier { filter: url(#neon-glow); transition: transform 80ms linear; }
.neon-courier-ring { fill: #14284d; stroke: #62f5ff; stroke-width: 1.1; }
.neon-courier-arrow { fill: #fff; }
.neon-courier.is-carrying .neon-courier-ring { stroke: #ffdc63; }
.neon-courier.is-slowed .neon-courier-ring { stroke: #ff8eab; stroke-dasharray: 2 1; }
.neon-cargo-light { fill: #ffdc63; }
.neon-touch-controls { display: grid; grid-template-columns: repeat(3, minmax(3rem, 5rem)); grid-template-areas: ". up dash" "left down right"; justify-content: center; gap: .45rem; margin-top: .85rem; }
.neon-route-legend, .neon-objective-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem 1.4rem; margin: .75rem 0 0; padding: 0; color: #c7d7ed; list-style: none; font-size: .86rem; }
.neon-route-legend li, .neon-objective-legend li { display: flex; align-items: center; gap: .4rem; }
.neon-objective-legend li { padding: .35rem .55rem; border-radius: .5rem; background: #10284e; }
.neon-objective-legend li > span { min-width: 3.7rem; color: #ffdc63; letter-spacing: .12em; }
.neon-legend-line { width: 2rem; border-top: 3px solid #62f5ff; }
.neon-legend-line.is-boost { border-color: #ffdc63; border-style: dashed; }
.neon-touch-controls .button { min-width: 3rem; padding: .5rem; font-size: 1.15rem; }
.neon-touch-controls .move-up { grid-area: up; }
.neon-touch-controls .move-left { grid-area: left; }
.neon-touch-controls .move-down { grid-area: down; }
.neon-touch-controls .move-right { grid-area: right; }
.neon-touch-controls .neon-dash { grid-area: dash; font-size: .82rem; }
.neon-complete { max-width: 46rem; margin: 1rem auto; padding: 1.35rem; border: 2px solid #62f5ff; border-radius: 1rem; background: linear-gradient(135deg, #103c55, #3b245e); text-align: center; }
.neon-score-breakdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: .55rem; margin: 1rem 0; }
.neon-score-breakdown div { padding: .7rem; border-radius: .6rem; background: rgba(7, 17, 36, .65); }
.neon-score-breakdown dt { color: #c7d7ed; font-size: .8rem; }
.neon-score-breakdown dd { margin: .25rem 0 0; color: #ffdc63; font-size: 1.25rem; font-weight: 850; }
@keyframes neon-board-glide { 50% { transform: translateX(1.2rem); } }
@keyframes neon-cell-pulse { 50% { opacity: .65; } }
@keyframes neon-token-spin { 50% { transform: rotate(45deg) scale(.9); } }
@keyframes neon-boost-pulse { 50% { opacity: .55; } }
.help-panel, .stop-dialog, .game-overlay { max-width: 42rem; margin: 1rem auto; padding: 1.25rem; border-radius: 1rem; }
.stop-dialog { position: fixed; inset: 50% auto auto 50%; z-index: 15; width: min(92vw, 32rem); transform: translate(-50%, -50%); box-shadow: 0 0 0 100vmax rgba(1, 6, 17, .82); }
.game-overlay { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.focus-guard { position: fixed; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

@keyframes suggestion-pulse {
    50% { box-shadow: 0 0 0 7px #ffdc63, 0 0 1.2rem rgba(255, 220, 99, .75); }
}
.reduce-motion * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

@media (max-width: 700px) {
    :root { font-size: 16px; }
    .game-header, .objective-panel { grid-template-columns: 1fr; display: grid; }
    .tutorial-card { grid-template-columns: 1fr; }
    .tutorial-skip { justify-self: stretch; }
    .game-header-actions { justify-content: stretch; }
    .game-header-actions .button { flex: 1; }
    .accessibility-note { flex-basis: 100%; margin-left: 0; }
    .crystal-row, .crystal-board { gap: .18rem; }
    .crystal-board { padding: .35rem; }
    .crystal-cell { border-width: 2px; border-radius: .45rem; }
    .skyline-board-heading { grid-template-columns: 1fr; }
    .skyline-board-heading .board-instructions { text-align: left; }
    .skyline-map { min-height: 15rem; padding: .5rem; overflow-x: auto; }
    .skyline-map-row { min-width: 40rem; min-height: 6.5rem; grid-template-columns: repeat(6, minmax(3.8rem, 1fr)); }
    .skyline-node { min-height: 5.4rem; padding: .35rem; }
    .skyline-node-name { font-size: .7rem; }
    .skyline-edge-layer { min-width: 40rem; }
    .skyline-route-summary { align-items: flex-start; flex-direction: column; }
    .neon-board-heading { grid-template-columns: 1fr; }
    .neon-board-heading .board-instructions { text-align: left; }
    .neon-score-breakdown { grid-template-columns: repeat(2, 1fr); }
    .neon-guide-card { align-items: flex-start; flex-direction: column; }
    .neon-controls-card { grid-template-columns: 1fr; }
    .neon-control-grid { grid-template-columns: repeat(2, minmax(7rem, 1fr)); }
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
