:root {
    --jq-red: #c70039;
    --jq-red-hot: #ff1744;
    --jq-cyan: #00d4aa;
    --jq-blue: #5ea1ff;
    --jq-gold: #f6c85f;
    --jq-violet: #b96cff;
    --jq-green: #34d399;
    --jq-ink: #05060a;
    --jq-board-light: #EEE4D1;
    --jq-board-dark: #1A8E78;
    --jq-board-coords: #D4AF37;
    --jq-scroll-width: 14px;
    --jq-panel: rgba(13, 16, 28, 0.88);
    --jq-panel-strong: #111827;
    --jq-line: rgba(255, 255, 255, 0.14);
    --jq-text: #f8fbff;
    --jq-muted: #aeb9cc;
    --jq-dim: #6f7a8d;
    --jq-shadow: 0 18px 50px rgba(0, 0, 0, 0.46);
    --jq-radius: 8px;
    --jq-topbar: 72px;
}

* {
    box-sizing: border-box;
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--jq-red) rgba(5, 6, 10, 0.82);
}

::-webkit-scrollbar {
    width: var(--jq-scroll-width);
    height: var(--jq-scroll-width);
}

::-webkit-scrollbar-track {
    background:
        linear-gradient(180deg, rgba(5, 6, 10, 0.94), rgba(10, 15, 25, 0.92)),
        repeating-linear-gradient(45deg, rgba(212, 175, 55, 0.10) 0 1px, transparent 1px 12px);
    border-radius: 10px;
    margin: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--jq-red), var(--jq-red-hot) 48%, var(--jq-board-coords));
    border: 2px solid rgba(5, 6, 10, 0.9);
    border-radius: 12px;
    box-shadow: 0 0 18px rgba(199, 0, 57, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--jq-red-hot), var(--jq-board-coords) 52%, var(--jq-board-dark));
    box-shadow: 0 0 24px rgba(199, 0, 57, 0.72);
}

::-webkit-scrollbar-corner {
    background: rgba(5, 6, 10, 0.94);
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100%;
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--jq-text);
    background:
        linear-gradient(115deg, rgba(199, 0, 57, 0.14), transparent 28%),
        linear-gradient(245deg, rgba(0, 212, 170, 0.12), transparent 32%),
        linear-gradient(180deg, #05060a 0%, #090c15 48%, #05060a 100%);
    overflow-x: hidden;
}

button,
a {
    font: inherit;
}

button {
    color: inherit;
}

[hidden] {
    display: none !important;
}

.jq-tech-grid {
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.28;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.18));
    animation: jqGridDrift 28s linear infinite;
}

.jq-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    min-height: var(--jq-topbar);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 10px clamp(16px, 4vw, 42px);
    background: rgba(5, 6, 10, 0.86);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
}

.jq-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: var(--jq-text);
    text-decoration: none;
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-weight: 700;
    letter-spacing: 0;
}

.jq-brand img {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 0 14px rgba(199, 0, 57, 0.45));
}

.jq-brand span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jq-actions {
    display: flex;
    align-items: center;
    flex: 0 1 auto;
    gap: 10px;
    min-width: 0;
}

body:not(.jq-show-premium-nav) .jq-actions .jq-premium-nav {
    display: none;
}

body.jq-show-premium-nav .jq-actions .jq-premium-nav {
    display: inline-flex;
}

.jq-button,
.jq-icon-button {
    min-height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--jq-radius);
    background: linear-gradient(135deg, rgba(199, 0, 57, 0.9), rgba(255, 23, 68, 0.88));
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-weight: 800;
    position: relative;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, opacity 180ms ease;
}

.jq-button {
    padding: 0 16px;
}

.jq-button--ghost,
.jq-icon-button {
    background: rgba(255, 255, 255, 0.06);
}

.jq-button--next {
    overflow: hidden;
    border-color: rgba(0, 212, 170, 0.58);
    background:
        linear-gradient(135deg, rgba(0, 157, 132, 0.95), rgba(199, 0, 57, 0.92)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 18px);
    box-shadow: 0 12px 28px rgba(0, 212, 170, 0.16), 0 0 20px rgba(199, 0, 57, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.jq-button--next::before {
    content: "";
    position: absolute;
    inset: -40% auto -40% -55%;
    width: 44%;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.36), transparent);
    transform: skewX(-18deg);
    opacity: 0;
    animation: academyButtonShine 4.8s ease-in-out infinite;
}

.jq-button--next:hover {
    border-color: rgba(0, 255, 196, 0.78);
    background: linear-gradient(135deg, rgba(0, 183, 148, 0.98), rgba(224, 20, 70, 0.96));
}

.jq-button--danger {
    border-color: rgba(255, 23, 68, 0.62);
    background: linear-gradient(135deg, rgba(255, 23, 68, 0.92), rgba(92, 14, 38, 0.92));
}

.jq-button.is-action-locked,
.jq-button[aria-disabled="true"] {
    opacity: 0.68;
    filter: saturate(0.72);
}

.jq-button.is-required-action {
    color: #071017;
    border-color: rgba(255, 218, 70, 0.96);
    background: linear-gradient(135deg, rgba(255, 218, 70, 0.98), rgba(47, 236, 191, 0.96) 52%, rgba(199, 0, 57, 0.92));
    box-shadow: 0 0 0 3px rgba(255, 218, 70, 0.2), 0 0 26px rgba(47, 236, 191, 0.32), 0 14px 30px rgba(199, 0, 57, 0.18);
    transform: translateY(-1px);
}

.jq-button.is-required-action:hover {
    color: #071017;
    border-color: rgba(255, 235, 120, 1);
    background: linear-gradient(135deg, rgba(255, 232, 96, 1), rgba(68, 255, 207, 0.98) 52%, rgba(224, 20, 70, 0.96));
}

.jq-button.is-required-action::after {
    content: "OBLIGATORIO";
    position: absolute;
    top: -11px;
    right: 12px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(255, 218, 70, 0.98);
    color: #071017;
    font-size: 0.58rem;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}

.jq-button.is-waiting-for-required-action {
    opacity: 0.34;
    filter: grayscale(0.8) saturate(0.32);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.jq-button.is-completed-action {
    opacity: 0.48;
    filter: grayscale(0.65) saturate(0.45);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    cursor: default;
}

.jq-account-button {
    min-width: 108px;
}

.jq-icon-button {
    width: 42px;
    padding: 0;
}

.jq-icon-button--danger {
    border-color: rgba(255, 23, 68, 0.45);
    color: #ffd7df;
}

.jq-button:hover,
.jq-icon-button:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.34);
}

.quest-app {
    width: min(1600px, calc(100% - 24px));
    margin: 0 auto;
    padding: calc(var(--jq-topbar) + 24px) 0 42px;
    display: grid;
    grid-template-columns: minmax(260px, clamp(280px, 23vw, 360px)) minmax(0, 1fr);
    gap: 14px;
}

.quest-map-panel,
.lesson-panel {
    min-width: 0;
    background: var(--jq-panel);
    border: 1px solid var(--jq-line);
    border-radius: var(--jq-radius);
    box-shadow: var(--jq-shadow);
    backdrop-filter: blur(18px);
}

.quest-map-panel {
    position: sticky;
    top: calc(var(--jq-topbar) + 18px);
    align-self: start;
    max-height: calc(100vh - var(--jq-topbar) - 36px);
    padding: clamp(10px, 1.4vw, 16px);
    overflow: auto;
}

.quest-map-panel::before,
.lesson-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background:
        linear-gradient(90deg, rgba(199, 0, 57, 0.22), transparent 24%),
        linear-gradient(180deg, rgba(0, 212, 170, 0.10), transparent 26%);
    opacity: 0.68;
}

.quest-title-block,
.quest-hud,
.quest-progress-bar,
.quest-index-launch,
.quest-map,
.lesson-content {
    position: relative;
    z-index: 1;
}

.jq-seo-summary {
    width: min(1180px, calc(100% - 24px));
    margin: 0 auto 48px;
    color: var(--jq-text);
}

.jq-seo-summary__inner {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 170, 0.26);
    border-radius: var(--jq-radius);
    padding: clamp(20px, 3vw, 34px);
    background:
        radial-gradient(circle at top left, rgba(0, 212, 170, 0.16), transparent 36%),
        radial-gradient(circle at bottom right, rgba(199, 0, 57, 0.16), transparent 38%),
        rgba(9, 13, 24, 0.84);
    box-shadow: var(--jq-shadow);
    backdrop-filter: blur(18px);
}

.jq-seo-summary__inner::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 28px),
        linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 45%);
    opacity: 0.55;
}

.jq-seo-summary__eyebrow,
.jq-seo-summary h2,
.jq-seo-summary p,
.jq-seo-summary__grid {
    position: relative;
    z-index: 1;
}

.jq-seo-summary__eyebrow {
    margin: 0 0 8px;
    color: var(--jq-cyan);
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.jq-seo-summary h2 {
    margin: 0 0 12px;
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: clamp(1.55rem, 3vw, 2.45rem);
    line-height: 1.05;
}

.jq-seo-summary p {
    margin: 0;
    color: var(--jq-muted);
    line-height: 1.65;
}

.jq-seo-summary__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.jq-seo-summary__grid article {
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--jq-radius);
    padding: 16px;
    background: rgba(255, 255, 255, 0.055);
}

.jq-seo-summary__grid h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    color: var(--jq-text);
}

.jq-seo-summary__grid p {
    font-size: 0.94rem;
}

@media (max-width: 820px) {
    .jq-seo-summary {
        margin-bottom: 28px;
    }

    .jq-seo-summary__grid {
        grid-template-columns: 1fr;
    }
}

.quest-kicker,
.lesson-eyebrow {
    margin: 0;
    color: var(--jq-cyan);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.quest-title-block h1 {
    margin: 4px 0 3px;
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: clamp(1.24rem, 1.55vw, 1.75rem);
    line-height: 1.02;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.quest-title-block p:last-child {
    margin: 0;
    max-width: 680px;
    color: var(--jq-muted);
    font-size: 0.82rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.academy-status {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
        "badge copy orbit"
        "phase phase phase";
    gap: 8px 10px;
    align-items: center;
    margin-top: 12px;
    padding: 10px;
    border: 1px solid rgba(34, 211, 238, 0.24);
    border-radius: 16px;
    background:
        radial-gradient(circle at 12% 15%, rgba(34, 211, 238, 0.18), transparent 36%),
        linear-gradient(135deg, rgba(250, 204, 21, 0.08), rgba(199, 0, 57, 0.10)),
        rgba(255, 255, 255, 0.045);
    overflow: hidden;
    isolation: isolate;
}

.academy-status::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.18), transparent),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 18px);
    opacity: 0.7;
    animation: academySweep 5.8s ease-in-out infinite;
}

.academy-status__badge {
    grid-area: badge;
    width: 44px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #06120f;
    background: linear-gradient(135deg, var(--jq-cyan), var(--jq-gold));
    box-shadow: 0 0 26px rgba(34, 211, 238, 0.28);
}

.academy-status__copy {
    grid-area: copy;
    min-width: 0;
}

.academy-status__kicker {
    display: block;
    color: var(--jq-cyan);
    font-size: 0.58rem;
    font-weight: 950;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.academy-status__copy strong,
.academy-status__copy small {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.academy-status__copy strong {
    margin-top: 2px;
    color: #fff;
    font-size: 1rem;
    font-weight: 950;
    line-height: 1.05;
}

.academy-status__copy small {
    margin-top: 3px;
    color: var(--jq-muted);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.22;
}

.academy-status__orbit {
    grid-area: orbit;
    width: 58px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    text-align: center;
    border-radius: 50%;
    border: 1px solid rgba(250, 204, 21, 0.36);
    background: radial-gradient(circle, rgba(250, 204, 21, 0.20), rgba(34, 211, 238, 0.08));
    box-shadow: inset 0 0 18px rgba(34, 211, 238, 0.10);
}

.academy-status__orbit span,
.academy-status__orbit small {
    display: block;
    line-height: 1;
}

.academy-status__orbit span {
    font-size: 1rem;
    font-weight: 950;
    color: var(--jq-gold);
}

.academy-status__orbit small {
    max-width: 50px;
    color: var(--jq-muted);
    font-size: 0.5rem;
    font-weight: 900;
    text-transform: uppercase;
}

.academy-status__phase {
    grid-area: phase;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    padding: 7px 8px;
    border-radius: 12px;
    color: #c7fff1;
    background: rgba(0, 212, 170, 0.10);
    font-size: 0.75rem;
    font-weight: 900;
}

.quest-hud {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 12px 0 8px;
}

.quest-hud__item {
    min-height: 48px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--jq-radius);
    background: rgba(255, 255, 255, 0.055);
}

.quest-hud__label {
    display: block;
    color: var(--jq-dim);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.quest-hud strong {
    display: block;
    margin-top: 2px;
    font-size: clamp(1rem, 1.4vw, 1.2rem);
}

.quest-progress-bar {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: visible;
}

.quest-progress-bar span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--jq-red), var(--jq-gold), var(--jq-cyan));
    transition: width 280ms ease;
}

.quest-index-launch {
    width: 100%;
    min-height: 62px;
    margin-top: 10px;
    padding: 10px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    border: 1px solid rgba(34, 211, 238, 0.26);
    border-radius: 16px;
    color: var(--jq-text);
    background:
        linear-gradient(135deg, rgba(34, 211, 238, 0.13), rgba(199, 0, 57, 0.12)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 19px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035), 0 14px 30px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.quest-index-launch::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(250, 204, 21, 0.17), transparent);
    transform: translateX(-100%);
    transition: transform 620ms ease;
    z-index: -1;
}

.quest-index-launch:hover,
.quest-index-launch:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(34, 211, 238, 0.62);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34), 0 0 26px rgba(34, 211, 238, 0.15);
    outline: none;
}

.quest-index-launch:hover::before,
.quest-index-launch:focus-visible::before {
    transform: translateX(100%);
}

.quest-index-launch__orb {
    width: 42px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #06120f;
    background: linear-gradient(135deg, var(--jq-cyan), var(--jq-gold));
    box-shadow: 0 0 24px rgba(34, 211, 238, 0.22);
}

.quest-index-launch__copy {
    min-width: 0;
    text-align: left;
}

.quest-index-launch__copy strong,
.quest-index-launch__copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quest-index-launch__copy strong {
    font-size: 0.96rem;
    font-weight: 950;
}

.quest-index-launch__copy small {
    margin-top: 2px;
    color: var(--jq-muted);
    font-size: 0.72rem;
    font-weight: 850;
}

.quest-map {
    display: grid;
    grid-template-columns: repeat(5, minmax(34px, 1fr));
    grid-template-rows: repeat(6, 48px);
    gap: 7px;
    margin-top: 10px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--jq-radius);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
        repeating-linear-gradient(45deg, transparent 0 18px, rgba(255, 255, 255, 0.035) 18px 19px);
}

.quest-node {
    position: relative;
    width: min(42px, 100%);
    aspect-ratio: 1;
    place-self: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: #151a28;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.34);
    display: grid;
    place-items: center;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, filter 180ms ease;
}

.quest-node::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.quest-node__number {
    font-weight: 900;
    font-size: 0.82rem;
}

.quest-node__icon {
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 17px;
    height: 17px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #0b101b;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--jq-gold);
    font-size: 0.56rem;
}

.quest-node:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.4);
}

.quest-node.is-unlocked {
    background: linear-gradient(135deg, rgba(199, 0, 57, 0.95), rgba(185, 108, 255, 0.72));
    box-shadow: 0 0 24px rgba(199, 0, 57, 0.28), 0 12px 24px rgba(0, 0, 0, 0.34);
}

.quest-node[data-phase="activation"].is-unlocked { background: linear-gradient(135deg, rgba(34, 211, 238, 0.90), rgba(94, 161, 255, 0.72)); }
.quest-node[data-phase="units"].is-unlocked { background: linear-gradient(135deg, rgba(199, 0, 57, 0.95), rgba(185, 108, 255, 0.74)); }
.quest-node[data-phase="laws"].is-unlocked { background: linear-gradient(135deg, rgba(250, 204, 21, 0.92), rgba(199, 0, 57, 0.72)); }
.quest-node[data-phase="combat"].is-unlocked { background: linear-gradient(135deg, rgba(0, 212, 170, 0.90), rgba(94, 161, 255, 0.74)); }
.quest-node[data-phase="finish"].is-unlocked { background: linear-gradient(135deg, rgba(185, 108, 255, 0.92), rgba(255, 23, 68, 0.76)); }
.quest-node[data-phase="ascension"].is-unlocked { background: linear-gradient(135deg, rgba(250, 204, 21, 0.98), rgba(0, 212, 170, 0.86)); }

.quest-node.is-premium {
    background:
        linear-gradient(135deg, rgba(246, 200, 95, 0.96), rgba(255, 23, 68, 0.90) 48%, rgba(0, 212, 170, 0.86));
    color: #08120f;
    box-shadow: 0 0 28px rgba(246, 200, 95, 0.28), 0 14px 28px rgba(0, 0, 0, 0.36);
}

.quest-node.is-premium .quest-node__icon {
    background: #08120f;
    border-color: rgba(246, 200, 95, 0.55);
    color: var(--jq-gold);
}

.quest-node.is-completed {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.94), rgba(94, 161, 255, 0.86));
    color: #04120f;
}

.quest-node.is-completed .quest-node__icon {
    color: var(--jq-green);
}

.quest-node.is-selected {
    outline: 3px solid rgba(246, 200, 95, 0.85);
    outline-offset: 4px;
}

.quest-node.is-locked {
    filter: grayscale(0.76);
    color: #7e8798;
}

.quest-node.is-draft .quest-node__icon {
    color: var(--jq-blue);
}

.quest-node:nth-child(1) { grid-column: 1; grid-row: 1; }
.quest-node:nth-child(2) { grid-column: 2; grid-row: 1; }
.quest-node:nth-child(3) { grid-column: 3; grid-row: 1; }
.quest-node:nth-child(4) { grid-column: 4; grid-row: 1; }
.quest-node:nth-child(5) { grid-column: 5; grid-row: 1; }
.quest-node:nth-child(6) { grid-column: 5; grid-row: 2; }
.quest-node:nth-child(7) { grid-column: 4; grid-row: 2; }
.quest-node:nth-child(8) { grid-column: 3; grid-row: 2; }
.quest-node:nth-child(9) { grid-column: 2; grid-row: 2; }
.quest-node:nth-child(10) { grid-column: 1; grid-row: 2; }
.quest-node:nth-child(11) { grid-column: 1; grid-row: 3; }
.quest-node:nth-child(12) { grid-column: 2; grid-row: 3; }
.quest-node:nth-child(13) { grid-column: 3; grid-row: 3; }
.quest-node:nth-child(14) { grid-column: 4; grid-row: 3; }
.quest-node:nth-child(15) { grid-column: 5; grid-row: 3; }
.quest-node:nth-child(16) { grid-column: 5; grid-row: 4; }
.quest-node:nth-child(17) { grid-column: 4; grid-row: 4; }
.quest-node:nth-child(18) { grid-column: 3; grid-row: 4; }
.quest-node:nth-child(19) { grid-column: 2; grid-row: 4; }
.quest-node:nth-child(20) { grid-column: 1; grid-row: 4; }
.quest-node:nth-child(21) { grid-column: 1; grid-row: 5; }
.quest-node:nth-child(22) { grid-column: 2; grid-row: 5; }
.quest-node:nth-child(23) { grid-column: 3; grid-row: 5; }
.quest-node:nth-child(24) { grid-column: 4; grid-row: 5; }
.quest-node:nth-child(25) { grid-column: 5; grid-row: 5; }
.quest-node:nth-child(26) { grid-column: 5; grid-row: 6; }
.quest-node:nth-child(27) { grid-column: 4; grid-row: 6; }
.quest-node:nth-child(28) { grid-column: 3; grid-row: 6; }
.quest-node:nth-child(29) { grid-column: 2; grid-row: 6; }
.quest-node:nth-child(30) { grid-column: 1; grid-row: 6; }

.lesson-panel {
    position: relative;
    min-height: calc(100vh - var(--jq-topbar) - 66px);
    overflow: visible;
    isolation: isolate;
    --academy-accent: var(--jq-cyan);
    --academy-accent-2: var(--jq-gold);
    --academy-glow: rgba(34, 211, 238, 0.18);
}

.lesson-content {
    position: relative;
    z-index: 1;
    padding: clamp(12px, 1.45vw, 18px);
}

.lesson-panel[data-academy-phase="activation"] {
    --academy-accent: #22d3ee;
    --academy-accent-2: #5ea1ff;
    --academy-glow: rgba(34, 211, 238, 0.20);
}

.lesson-panel[data-academy-phase="units"] {
    --academy-accent: #b96cff;
    --academy-accent-2: #ff1744;
    --academy-glow: rgba(185, 108, 255, 0.18);
}

.lesson-panel[data-academy-phase="laws"] {
    --academy-accent: #f6c85f;
    --academy-accent-2: #ff1744;
    --academy-glow: rgba(246, 200, 95, 0.18);
}

.lesson-panel[data-academy-phase="combat"] {
    --academy-accent: #00d4aa;
    --academy-accent-2: #5ea1ff;
    --academy-glow: rgba(0, 212, 170, 0.18);
}

.lesson-panel[data-academy-phase="finish"] {
    --academy-accent: #b96cff;
    --academy-accent-2: #f6c85f;
    --academy-glow: rgba(185, 108, 255, 0.18);
}

.lesson-panel[data-academy-phase="ascension"] {
    --academy-accent: #f6c85f;
    --academy-accent-2: #00d4aa;
    --academy-glow: rgba(246, 200, 95, 0.20);
}

.lesson-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    border-radius: inherit;
    background:
        radial-gradient(circle at 24% 18%, color-mix(in srgb, var(--academy-accent) 22%, transparent), transparent 28%),
        radial-gradient(circle at 88% 12%, color-mix(in srgb, var(--academy-accent-2) 18%, transparent), transparent 24%),
        linear-gradient(115deg, transparent 0 44%, rgba(255,255,255,0.055) 45%, transparent 46% 100%),
        repeating-linear-gradient(90deg, transparent 0 42px, rgba(255,255,255,0.028) 42px 43px);
    opacity: 0.72;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.95), rgba(0,0,0,0.40));
}

.lesson-head {
    position: relative;
    display: grid;
    gap: 6px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 18px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--academy-accent) 10%, transparent), rgba(255, 255, 255, 0.035)),
        rgba(3, 6, 14, 0.30);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.025), 0 18px 40px rgba(0,0,0,0.16);
    overflow: hidden;
}

.lesson-head::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent, color-mix(in srgb, var(--academy-accent) 26%, transparent), transparent),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 22px);
    opacity: 0.42;
    transform: translateX(-35%);
    animation: academyPanelSweep 7s ease-in-out infinite;
}

.lesson-head h2 {
    margin: 0;
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: clamp(1.45rem, 2vw, 2.15rem);
    line-height: 1;
    letter-spacing: 0;
}

.lesson-title--mystery {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    padding: 3px 10px 5px;
    border-radius: var(--jq-radius);
    border: 1px solid rgba(246, 200, 95, 0.34);
    background:
        repeating-linear-gradient(90deg, rgba(246, 200, 95, 0.20) 0 6px, rgba(199, 0, 57, 0.16) 6px 12px),
        rgba(255, 255, 255, 0.045);
    color: transparent;
    text-shadow: 0 0 10px rgba(246, 200, 95, 0.92);
    box-shadow: 0 0 22px rgba(246, 200, 95, 0.10), inset 0 0 18px rgba(0, 212, 170, 0.08);
    animation: mysteryTitlePulse 1100ms ease-in-out infinite;
    user-select: none;
}

.lesson-title--revealed {
    animation: revealTitleFlash 900ms ease;
}

.lesson-summary {
    margin: 0;
    color: var(--jq-muted);
    font-size: 0.88rem;
    line-height: 1.32;
}

.lesson-academy-ribbon {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 7px 8px;
    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(34, 211, 238, 0.09), rgba(250, 204, 21, 0.055)),
        rgba(255, 255, 255, 0.035);
}

.lesson-academy-ribbon__badge,
.lesson-academy-ribbon__rank {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    min-height: 27px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 950;
    white-space: nowrap;
}

.lesson-academy-ribbon__badge {
    color: #06120f;
    background: linear-gradient(135deg, var(--jq-cyan), var(--jq-gold));
}

.lesson-academy-ribbon__rank {
    color: #fff;
    border: 1px solid rgba(250, 204, 21, 0.25);
    background: rgba(250, 204, 21, 0.10);
}

.lesson-academy-ribbon__copy {
    min-width: 0;
    color: #cbd5e1;
    font-size: 0.74rem;
    font-weight: 820;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lesson-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lesson-chip,
.objective-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 0 9px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #e9eef9;
    font-size: 0.78rem;
    font-weight: 800;
}

.lesson-chip--accent {
    color: #031410;
    background: var(--jq-cyan);
}

.lesson-grid {
    display: grid;
    grid-template-columns: minmax(360px, min(58vw, 600px)) minmax(300px, 1fr);
    gap: 12px;
    margin-top: 12px;
    align-items: start;
}

.lesson-board-zone,
.lesson-theory,
.evaluation-zone,
.blueprint-zone,
.locked-zone,
.paywall-zone {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--jq-radius);
    background: rgba(255, 255, 255, 0.052);
}

.lesson-board-zone {
    position: sticky;
    top: calc(var(--jq-topbar) + 10px);
    align-self: start;
    z-index: 20;
    padding: 13px 13px 13px 28px;
    overflow: visible;
    isolation: isolate;
    border-color: color-mix(in srgb, var(--academy-accent) 30%, rgba(255, 255, 255, 0.12));
    background:
        radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--academy-accent) 12%, transparent), transparent 40%),
        linear-gradient(135deg, rgba(255,255,255,0.058), rgba(255,255,255,0.018));
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.024),
        0 18px 44px rgba(0,0,0,0.28),
        0 0 34px var(--academy-glow);
}

.lesson-board-zone::before,
.lesson-board-zone::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.lesson-board-zone::before {
    inset: 7px;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--academy-accent) 32%, transparent);
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--academy-accent) 28%, transparent), transparent 18% 82%, color-mix(in srgb, var(--academy-accent-2) 20%, transparent)),
        repeating-linear-gradient(0deg, transparent 0 32px, rgba(255,255,255,0.035) 32px 33px);
    opacity: 0.35;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0.18));
}

.lesson-board-zone::after {
    left: 10px;
    top: 14px;
    bottom: 14px;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, transparent, var(--academy-accent), var(--academy-accent-2), transparent);
    box-shadow: 0 0 18px var(--academy-glow);
    animation: academyRailPulse 2.6s ease-in-out infinite;
}

.quest-board-shell {
    position: relative;
    width: min(100%, calc(100vh - var(--jq-topbar) - 128px));
    width: min(100%, calc(100svh - var(--jq-topbar) - 128px));
    max-width: 600px;
    margin-inline: auto;
    aspect-ratio: 1;
    border-radius: var(--jq-radius);
    overflow: visible;
    z-index: 1;
    background:
        radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--academy-accent) 10%, transparent), transparent 58%),
        #090c12;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.12),
        0 18px 36px rgba(0, 0, 0, 0.38),
        0 0 38px var(--academy-glow);
    isolation: isolate;
}

.quest-board-shell::before,
.quest-board-shell::after {
    content: "";
    position: absolute;
    inset: -8px;
    pointer-events: none;
    border-radius: 14px;
}

.quest-board-shell::before {
    z-index: 0;
    background:
        linear-gradient(90deg, var(--academy-accent), transparent 20% 80%, var(--academy-accent-2)) top left / 100% 2px no-repeat,
        linear-gradient(90deg, var(--academy-accent-2), transparent 20% 80%, var(--academy-accent)) bottom left / 100% 2px no-repeat,
        linear-gradient(180deg, var(--academy-accent), transparent 20% 80%, var(--academy-accent-2)) top left / 2px 100% no-repeat,
        linear-gradient(180deg, var(--academy-accent-2), transparent 20% 80%, var(--academy-accent)) top right / 2px 100% no-repeat;
    opacity: 0.74;
    filter: drop-shadow(0 0 10px var(--academy-glow));
}

.quest-board-shell::after {
    z-index: 3;
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(180deg, transparent 0 44%, color-mix(in srgb, var(--academy-accent) 16%, transparent) 50%, transparent 56%),
        repeating-linear-gradient(90deg, transparent 0 12.5%, rgba(255,255,255,0.035) 12.5% calc(12.5% + 1px));
    opacity: 0.30;
    mix-blend-mode: screen;
    animation: academyBoardScan 5.5s ease-in-out infinite;
}

.quest-board {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    overflow: visible !important;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
    touch-action: manipulation;
    overscroll-behavior: contain;
}

.quest-board *,
.quest-board cg-board,
.quest-board square {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    outline: none;
}

.quest-board.is-arrow-mode {
    cursor: crosshair;
    touch-action: none;
}

.quest-board.is-move-mode,
.quest-board.is-move-mode *,
.quest-board.is-move-mode cg-board,
.quest-board.is-move-mode square,
.quest-board.is-move-mode piece,
.quest-board.is-touch-dragging,
.quest-board.is-touch-dragging * {
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    touch-action: none !important;
    overscroll-behavior: contain !important;
}

.quest-board.is-move-mode piece {
    cursor: grab;
}

.quest-board.is-touch-dragging,
.quest-board.is-touch-dragging piece {
    cursor: grabbing;
}

.quest-board.is-square-mode square.selected,
.quest-board.is-square-mode square.last-move {
    background-color: transparent !important;
}

.quest-board.is-crypto-mode coords.files,
.quest-board.is-crypto-mode coords.ranks,
.quest-board.is-prism-mode coords.files,
.quest-board.is-prism-mode coords.ranks,
.quest-board.is-rescue-mode coords.files,
.quest-board.is-rescue-mode coords.ranks,
.quest-board.is-core-mode coords.files,
.quest-board.is-core-mode coords.ranks,
.quest-board.is-jump-mode coords.files,
.quest-board.is-jump-mode coords.ranks,
.quest-board.is-pawn-mode coords.files,
.quest-board.is-pawn-mode coords.ranks {
    display: none !important;
}

.quest-board cg-board {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.quest-board.cg-wrap cg-board,
.quest-board cg-board,
.quest-mini-board .cg-wrap cg-board {
    background-color: var(--jq-board-light) !important;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 8"><g id="a"><g id="b"><g id="c"><g id="d"><rect width="1" height="1" id="e" fill="%23EEE4D1"/><use x="1" y="1" href="%23e"/><rect y="1" width="1" height="1" id="f" fill="%231A8E78"/><use x="1" y="-1" href="%23f"/></g><use x="2" href="%23d"/></g><use x="4" href="%23c"/></g><use y="2" href="%23b"/></g><use y="4" href="%23a"/></svg>') !important;
    border-radius: var(--jq-radius);
}

.quest-board.cg-wrap,
.quest-board .cg-wrap {
    position: relative !important;
    overflow: visible !important;
}

.quest-board.cg-wrap cg-container,
.quest-board cg-container {
    overflow: visible !important;
}

.quest-board.cg-wrap coords.files,
.quest-board .cg-wrap coords.files {
    position: absolute !important;
    bottom: -20px !important;
    left: 0 !important;
    right: 0 !important;
    height: 16px !important;
    display: grid !important;
    grid-template-columns: repeat(8, 1fr) !important;
    align-items: center !important;
    pointer-events: none !important;
    z-index: 12 !important;
    transform: none !important;
}

.quest-board.cg-wrap coords.ranks,
.quest-board .cg-wrap coords.ranks {
    position: absolute !important;
    left: -16px !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 16px !important;
    display: grid !important;
    grid-template-rows: repeat(8, 1fr) !important;
    align-items: center !important;
    pointer-events: none !important;
    z-index: 12 !important;
    transform: none !important;
}

.quest-board.cg-wrap coords.files coord,
.quest-board.cg-wrap coords.ranks coord,
.quest-board .cg-wrap coords.files coord,
.quest-board .cg-wrap coords.ranks coord {
    color: var(--jq-board-coords) !important;
    background: none !important;
    border-radius: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    line-height: 1 !important;
    min-width: auto !important;
    padding: 0 !important;
    position: static !important;
    text-align: center !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
    transform: none !important;
    white-space: nowrap !important;
}

.quest-board.cg-wrap coords.ranks coord:nth-child(1),
.quest-board .cg-wrap coords.ranks coord:nth-child(1) { order: 8; }
.quest-board.cg-wrap coords.ranks coord:nth-child(2),
.quest-board .cg-wrap coords.ranks coord:nth-child(2) { order: 7; }
.quest-board.cg-wrap coords.ranks coord:nth-child(3),
.quest-board .cg-wrap coords.ranks coord:nth-child(3) { order: 6; }
.quest-board.cg-wrap coords.ranks coord:nth-child(4),
.quest-board .cg-wrap coords.ranks coord:nth-child(4) { order: 5; }
.quest-board.cg-wrap coords.ranks coord:nth-child(5),
.quest-board .cg-wrap coords.ranks coord:nth-child(5) { order: 4; }
.quest-board.cg-wrap coords.ranks coord:nth-child(6),
.quest-board .cg-wrap coords.ranks coord:nth-child(6) { order: 3; }
.quest-board.cg-wrap coords.ranks coord:nth-child(7),
.quest-board .cg-wrap coords.ranks coord:nth-child(7) { order: 2; }
.quest-board.cg-wrap coords.ranks coord:nth-child(8),
.quest-board .cg-wrap coords.ranks coord:nth-child(8) { order: 1; }

.quest-board.cg-wrap coords.files.black coord:nth-child(1),
.quest-board .cg-wrap coords.files.black coord:nth-child(1) { order: 8; }
.quest-board.cg-wrap coords.files.black coord:nth-child(2),
.quest-board .cg-wrap coords.files.black coord:nth-child(2) { order: 7; }
.quest-board.cg-wrap coords.files.black coord:nth-child(3),
.quest-board .cg-wrap coords.files.black coord:nth-child(3) { order: 6; }
.quest-board.cg-wrap coords.files.black coord:nth-child(4),
.quest-board .cg-wrap coords.files.black coord:nth-child(4) { order: 5; }
.quest-board.cg-wrap coords.files.black coord:nth-child(5),
.quest-board .cg-wrap coords.files.black coord:nth-child(5) { order: 4; }
.quest-board.cg-wrap coords.files.black coord:nth-child(6),
.quest-board .cg-wrap coords.files.black coord:nth-child(6) { order: 3; }
.quest-board.cg-wrap coords.files.black coord:nth-child(7),
.quest-board .cg-wrap coords.files.black coord:nth-child(7) { order: 2; }
.quest-board.cg-wrap coords.files.black coord:nth-child(8),
.quest-board .cg-wrap coords.files.black coord:nth-child(8) { order: 1; }

.quest-board.cg-wrap coords.ranks.black coord:nth-child(1),
.quest-board .cg-wrap coords.ranks.black coord:nth-child(1) { order: 1; }
.quest-board.cg-wrap coords.ranks.black coord:nth-child(2),
.quest-board .cg-wrap coords.ranks.black coord:nth-child(2) { order: 2; }
.quest-board.cg-wrap coords.ranks.black coord:nth-child(3),
.quest-board .cg-wrap coords.ranks.black coord:nth-child(3) { order: 3; }
.quest-board.cg-wrap coords.ranks.black coord:nth-child(4),
.quest-board .cg-wrap coords.ranks.black coord:nth-child(4) { order: 4; }
.quest-board.cg-wrap coords.ranks.black coord:nth-child(5),
.quest-board .cg-wrap coords.ranks.black coord:nth-child(5) { order: 5; }
.quest-board.cg-wrap coords.ranks.black coord:nth-child(6),
.quest-board .cg-wrap coords.ranks.black coord:nth-child(6) { order: 6; }
.quest-board.cg-wrap coords.ranks.black coord:nth-child(7),
.quest-board .cg-wrap coords.ranks.black coord:nth-child(7) { order: 7; }
.quest-board.cg-wrap coords.ranks.black coord:nth-child(8),
.quest-board .cg-wrap coords.ranks.black coord:nth-child(8) { order: 8; }

.quest-board.cg-wrap square.move-dest,
.quest-board cg-board square.move-dest {
    background: radial-gradient(circle, rgba(212, 175, 55, 0.38) 25%, transparent 26%) !important;
}

.quest-board.cg-wrap square.selected,
.quest-board cg-board square.selected,
.quest-board.cg-wrap square.last-move,
.quest-board cg-board square.last-move {
    background-color: rgba(212, 175, 55, 0.28) !important;
}

.quest-board.is-correct {
    animation: jqBoardCorrect 520ms ease;
}

.quest-board.is-wrong {
    animation: jqBoardWrong 420ms ease;
}

.board-caption {
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 28px;
    padding: 8px 10px;
    border: 1px solid color-mix(in srgb, var(--academy-accent) 22%, rgba(255, 255, 255, 0.12));
    border-radius: 14px;
    color: #b8c4d8;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--academy-accent) 9%, transparent), rgba(255,255,255,0.035)),
        rgba(2, 6, 14, 0.48);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.025);
    font-size: 0.80rem;
}

.board-caption::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--academy-accent) 18%, transparent), transparent 30% 70%, color-mix(in srgb, var(--academy-accent-2) 14%, transparent)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 18px);
    opacity: 0.26;
}

.board-caption > * {
    position: relative;
    z-index: 1;
}

.board-caption strong {
    color: #fff;
    font-weight: 950;
}

.board-objectives {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.lesson-theory > .board-objectives {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.lesson-theory > .evaluation-zone {
    margin-top: 0;
}

.board-objectives__summary {
    min-height: 36px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--jq-radius);
    background: rgba(255, 255, 255, 0.055);
    color: #f8fbff;
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: 900;
    list-style: none;
    user-select: none;
}

.board-objectives__summary::-webkit-details-marker {
    display: none;
}

.board-objectives__summary strong {
    min-width: 24px;
    height: 24px;
    margin-left: auto;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(0, 212, 170, 0.16);
    color: var(--jq-cyan);
    font-size: 0.78rem;
}

.board-objectives__summary i:last-child {
    color: var(--jq-gold);
    transition: transform 180ms ease;
}

.board-objectives[open] .board-objectives__summary i:last-child {
    transform: rotate(180deg);
}

.board-objectives__list {
    margin-top: 10px;
}

.lesson-theory {
    position: relative;
    overflow: hidden;
    padding: 13px;
    display: grid;
    gap: 13px;
    min-width: 0;
    isolation: isolate;
    border-color: color-mix(in srgb, var(--academy-accent) 24%, rgba(255, 255, 255, 0.12));
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--academy-accent) 12%, transparent), transparent 34%),
        linear-gradient(135deg, rgba(255,255,255,0.055), rgba(255,255,255,0.020));
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.024),
        0 18px 44px rgba(0,0,0,0.18);
}

.lesson-theory::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent, color-mix(in srgb, var(--academy-accent) 12%, transparent), transparent),
        repeating-linear-gradient(135deg, transparent 0 18px, rgba(255,255,255,0.030) 18px 19px);
    opacity: 0.55;
    transform: translateX(-28%);
    animation: academyPanelSweep 9s ease-in-out infinite;
}

.lesson-theory > * {
    position: relative;
    z-index: 1;
}

.lesson-theory.is-evaluation-mode {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    background:
        linear-gradient(135deg, rgba(0, 212, 170, 0.10), rgba(199, 0, 57, 0.11)),
        rgba(255, 255, 255, 0.052);
}

.lesson-theory.is-evaluation-mode::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(246, 200, 95, 0.10), transparent 34%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 16px);
    opacity: 0.55;
}

.lesson-theory.is-evaluation-mode > * {
    position: relative;
    z-index: 1;
}

.lesson-theory.is-evaluation-mode > .evaluation-zone {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    animation: jqEvaluationIn 260ms ease both;
}

.lesson-review-panel {
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(0, 212, 170, 0.24);
    border-radius: var(--jq-radius);
    background:
        linear-gradient(135deg, rgba(0, 212, 170, 0.10), rgba(246, 200, 95, 0.07)),
        rgba(255, 255, 255, 0.055);
}

.lesson-review-panel strong {
    display: block;
    color: #fff;
    font-size: 0.98rem;
}

.lesson-review-panel p {
    margin: 4px 0 0;
    color: var(--jq-muted);
    line-height: 1.4;
}

.lesson-review-panel .evaluation-actions {
    margin-top: 0;
}

.lesson-theory h3,
.evaluation-zone h3,
.blueprint-zone h3,
.locked-zone h3,
.paywall-zone h3 {
    margin: 0;
    font-size: 1.08rem;
}

.theory-block {
    display: grid;
    gap: 7px;
}

.theory-block h4 {
    margin: 0;
    color: #ffffff;
    font-size: 1rem;
}

.theory-block p {
    margin: 0;
    color: var(--jq-muted);
}

.objectives-row,
.mission-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mission-row {
    margin-top: 4px;
}

.mission-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 11px;
    border-radius: var(--jq-radius);
    background: rgba(0, 212, 170, 0.10);
    border: 1px solid rgba(0, 212, 170, 0.25);
    color: #dffdf7;
    font-size: 0.86rem;
    font-weight: 800;
}

.learning-stage {
    position: relative;
    display: grid;
    gap: 12px;
    padding: 14px;
    min-width: 0;
    isolation: isolate;
    border: 1px solid color-mix(in srgb, var(--academy-accent) 26%, rgba(212, 175, 55, 0.20));
    border-radius: var(--jq-radius);
    background:
        radial-gradient(circle at 98% 0%, color-mix(in srgb, var(--academy-accent) 12%, transparent), transparent 34%),
        linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(0, 212, 170, 0.06)),
        rgba(255, 255, 255, 0.04);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.025),
        0 14px 34px rgba(0, 0, 0, 0.18),
        0 0 22px color-mix(in srgb, var(--academy-accent) 12%, transparent);
}

.learning-stage::before,
.learning-stage::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 0;
    border-radius: inherit;
}

.learning-stage::before {
    inset: 0;
    background:
        linear-gradient(90deg, transparent, color-mix(in srgb, var(--academy-accent) 16%, transparent), transparent),
        repeating-linear-gradient(135deg, transparent 0 16px, rgba(255, 255, 255, 0.032) 16px 17px);
    opacity: 0.44;
    transform: translateX(-30%);
    animation: academyPanelSweep 10s ease-in-out infinite;
}

.learning-stage::after {
    left: 12px;
    right: 12px;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--academy-accent), var(--academy-accent-2), transparent);
    box-shadow: 0 0 16px var(--academy-glow);
    animation: academyRailPulse 2.8s ease-in-out infinite;
}

.learning-stage > * {
    position: relative;
    z-index: 1;
}

.learning-stage > .lesson-eyebrow {
    width: fit-content;
    max-width: 100%;
    padding: 4px 9px;
    border: 1px solid color-mix(in srgb, var(--academy-accent) 28%, transparent);
    border-radius: 999px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--academy-accent) 12%, transparent), rgba(255, 255, 255, 0.035)),
        rgba(2, 6, 14, 0.42);
    box-shadow: 0 0 18px color-mix(in srgb, var(--academy-accent) 10%, transparent);
}

.learning-stage h3 {
    margin: 0;
    color: #f8fbff;
    font-size: clamp(1.18rem, 2vw, 1.42rem);
    line-height: 1.08;
    text-shadow: 0 0 18px color-mix(in srgb, var(--academy-accent) 18%, transparent);
}

.learning-stage p {
    margin: 0;
    color: var(--jq-muted);
}

.learning-stage .evaluation-actions {
    margin-top: 2px;
}

.learning-stage .evaluation-actions .jq-button--next,
.evaluation-zone .evaluation-actions .jq-button--next {
    flex: 1 1 230px;
}

.notation-practice-panel {
    display: grid;
    gap: 12px;
}

.notation-practice-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(0, 212, 170, 0.24);
    border-radius: var(--jq-radius);
    background:
        linear-gradient(135deg, rgba(0, 212, 170, 0.15), rgba(212, 175, 55, 0.12)),
        rgba(8, 13, 24, 0.76);
}

.notation-practice-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 12px;
    border-radius: var(--jq-radius);
    color: #06110f;
    background: linear-gradient(135deg, var(--jq-cyan), var(--jq-gold));
    font-size: 0.76rem;
    font-weight: 950;
    text-transform: uppercase;
    white-space: nowrap;
}

.notation-curiosity-wrap {
    display: grid;
    gap: 8px;
}

.notation-curiosity-button {
    width: fit-content;
}

.notation-curiosity-button.is-active {
    border-color: rgba(246, 200, 95, 0.58);
    color: #ffffff;
    background: rgba(212, 175, 55, 0.12);
}

.notation-curiosity {
    padding: 12px 13px;
    border: 1px solid rgba(246, 200, 95, 0.22);
    border-radius: var(--jq-radius);
    color: #d9e2ef;
    background:
        linear-gradient(135deg, rgba(246, 200, 95, 0.10), rgba(0, 212, 170, 0.07)),
        rgba(255, 255, 255, 0.045);
    font-size: 0.91rem;
    line-height: 1.45;
}

.notation-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: 8px;
}

.notation-example-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    min-height: 48px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--jq-radius);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(0, 212, 170, 0.045)),
        rgba(7, 10, 18, 0.58);
}

.notation-example-card code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 34px;
    padding: 0 9px;
    border-radius: calc(var(--jq-radius) - 2px);
    color: #06110f;
    background: linear-gradient(135deg, var(--jq-gold), var(--jq-cyan));
    font-size: 1rem;
    font-weight: 1000;
}

.notation-example-card span {
    min-width: 0;
    color: var(--jq-muted);
    font-size: 0.82rem;
    font-weight: 850;
    line-height: 1.2;
}

.notation-answer-card {
    display: grid;
    gap: 9px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--jq-radius);
    background: rgba(255, 255, 255, 0.055);
}

.notation-answer-prompt {
    color: #ffffff;
    font-weight: 900;
    line-height: 1.35;
}

.notation-answer-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: stretch;
}

.notation-answer-row input {
    width: 100%;
    min-height: 44px;
    padding: 0 13px;
    border: 1px solid rgba(0, 212, 170, 0.34);
    border-radius: var(--jq-radius);
    color: #ffffff;
    background: rgba(2, 5, 12, 0.74);
    font: inherit;
    font-weight: 900;
    letter-spacing: 0;
    outline: none;
}

.notation-answer-row input:focus {
    border-color: rgba(246, 200, 95, 0.78);
    box-shadow: 0 0 0 3px rgba(246, 200, 95, 0.16);
}

.notation-answer-row input:disabled {
    color: #06110f;
    background: linear-gradient(135deg, rgba(246, 200, 95, 0.86), rgba(0, 212, 170, 0.86));
    opacity: 1;
}

.notation-replay-panel {
    display: grid;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(0, 212, 170, 0.22);
    border-radius: var(--jq-radius);
    background:
        linear-gradient(135deg, rgba(0, 212, 170, 0.11), rgba(212, 175, 55, 0.08)),
        rgba(8, 13, 24, 0.76);
}

.notation-replay-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.notation-replay-head i {
    color: var(--jq-cyan);
}

.notation-replay-head strong {
    color: #ffffff;
    font-weight: 1000;
}

.notation-replay-head span {
    min-width: 0;
    color: var(--jq-muted);
    font-size: 0.82rem;
    font-weight: 900;
    text-align: right;
}

.notation-score-sheet {
    display: grid;
    gap: 6px;
}

.notation-score-row {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px;
    align-items: center;
}

.notation-score-number,
.notation-score-move {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: calc(var(--jq-radius) - 2px);
    font-weight: 1000;
}

.notation-score-number {
    color: var(--jq-muted);
    background: rgba(255, 255, 255, 0.05);
}

.notation-score-move {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.06);
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.notation-score-move.is-current {
    color: #06110f;
    border-color: rgba(246, 200, 95, 0.75);
    background: linear-gradient(135deg, var(--jq-gold), var(--jq-cyan));
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(0, 212, 170, 0.18);
}

.notation-score-move.is-complete {
    color: #bfffee;
    border-color: rgba(0, 212, 170, 0.34);
    background: rgba(0, 212, 170, 0.12);
}

.annotated-replay-panel {
    display: grid;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(246, 200, 95, 0.26);
    border-radius: var(--jq-radius);
    background:
        radial-gradient(circle at 14% 0%, rgba(246, 200, 95, 0.16), transparent 38%),
        linear-gradient(135deg, rgba(0, 212, 170, 0.10), rgba(199, 0, 57, 0.08)),
        rgba(8, 13, 24, 0.78);
}

.annotated-replay-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
        "icon title"
        "icon copy";
    gap: 3px 10px;
    align-items: center;
}

.annotated-replay-head i {
    grid-area: icon;
    width: 42px;
    aspect-ratio: 1;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    color: #06110f;
    background: linear-gradient(135deg, var(--jq-gold), var(--jq-cyan));
    box-shadow: 0 0 22px rgba(0, 212, 170, 0.18);
}

.annotated-replay-head strong {
    grid-area: title;
    min-width: 0;
    color: #ffffff;
    font-size: 1.02rem;
    font-weight: 1000;
    line-height: 1.08;
}

.annotated-replay-head span {
    grid-area: copy;
    min-width: 0;
    color: var(--jq-muted);
    font-size: 0.82rem;
    font-weight: 850;
}

.annotated-replay-intro,
.annotated-replay-comment {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: calc(var(--jq-radius) - 2px);
    background: rgba(255, 255, 255, 0.055);
}

.annotated-replay-intro strong {
    color: #ffffff;
    font-weight: 1000;
}

.annotated-replay-intro span {
    color: var(--jq-muted);
    font-weight: 800;
    line-height: 1.3;
}

.annotated-replay-comment {
    border-color: rgba(0, 212, 170, 0.24);
    background:
        linear-gradient(135deg, rgba(0, 212, 170, 0.12), rgba(246, 200, 95, 0.08)),
        rgba(255, 255, 255, 0.05);
}

.annotated-replay-comment span {
    color: var(--jq-cyan);
    font-size: 0.72rem;
    font-weight: 1000;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.annotated-replay-comment p {
    margin: 0;
    color: #eef7ff;
    font-weight: 850;
    line-height: 1.35;
}

.annotated-replay-score {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.annotated-replay-token {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 999px;
    color: #d7e2f4;
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.82rem;
    font-weight: 950;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.annotated-replay-token.is-current {
    color: #06110f;
    border-color: rgba(246, 200, 95, 0.82);
    background: linear-gradient(135deg, var(--jq-gold), var(--jq-cyan));
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 12px 22px rgba(0, 212, 170, 0.16);
}

.annotated-replay-token.is-complete {
    color: #bfffee;
    border-color: rgba(0, 212, 170, 0.34);
    background: rgba(0, 212, 170, 0.12);
}

.annotated-replay-token.is-result {
    border-color: rgba(246, 200, 95, 0.35);
    color: var(--jq-gold);
}

.annotated-replay-board-overlay {
    position: absolute;
    top: 16px;
    left: calc(100% + 14px);
    width: clamp(260px, 22vw, 360px);
    display: block;
    padding: 0;
    pointer-events: none;
    z-index: 18;
}

.annotated-replay-board-card {
    width: 100%;
    display: grid;
    gap: 8px;
    padding: clamp(10px, 2vw, 15px);
    border: 1px solid rgba(0, 212, 170, 0.44);
    border-radius: var(--jq-radius);
    background:
        radial-gradient(circle at 14% 0%, rgba(0, 212, 170, 0.25), transparent 42%),
        linear-gradient(135deg, rgba(7, 15, 28, 0.94), rgba(19, 36, 39, 0.92));
    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.42),
        inset 0 0 0 1px rgba(255, 255, 255, 0.07),
        0 0 34px rgba(0, 212, 170, 0.14);
    animation: annotatedReplayCardIn 260ms ease both;
    pointer-events: auto;
}

.annotated-replay-board-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
}

.annotated-replay-board-top span {
    color: var(--jq-cyan);
    font-size: 0.72rem;
    font-weight: 1000;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.annotated-replay-board-top strong {
    min-width: 0;
    padding: 5px 10px;
    border-radius: 999px;
    color: #06110f;
    background: linear-gradient(135deg, var(--jq-gold), var(--jq-cyan));
    font-size: 0.88rem;
    font-weight: 1000;
    white-space: nowrap;
}

.annotated-replay-close {
    width: 32px;
    aspect-ratio: 1;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, opacity 160ms ease;
}

.annotated-replay-close:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: rgba(0, 212, 170, 0.56);
    background: rgba(0, 212, 170, 0.18);
}

.annotated-replay-close:disabled,
.annotated-replay-inline-next:disabled {
    cursor: wait;
    opacity: 0.62;
}

.annotated-replay-board-card p {
    margin: 0;
    color: #ffffff;
    font-size: clamp(0.88rem, 1.8vw, 1rem);
    font-weight: 900;
    line-height: 1.32;
}

.annotated-replay-board-card small {
    color: #b7c4da;
    font-size: 0.72rem;
    font-weight: 850;
}

.annotated-replay-board-actions {
    display: flex;
    justify-content: flex-end;
}

.annotated-replay-inline-next {
    min-height: 38px;
    padding-inline: 13px;
    font-size: 0.82rem;
}

@keyframes annotatedReplayCardIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 820px) {
    .annotated-replay-board-overlay {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        margin: 10px 0 0;
        z-index: 2;
    }
}

.fide-rules-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: clamp(10px, 2.2vw, 18px);
    pointer-events: none;
    z-index: 42;
}

.fide-rules-panel {
    position: relative;
    z-index: 1;
    width: min(92%, 520px);
    display: grid;
    gap: 12px;
    padding: clamp(12px, 2.3vw, 18px);
    border: 1px solid rgba(246, 200, 95, 0.36);
    border-radius: var(--jq-radius);
    background:
        linear-gradient(135deg, rgba(9, 13, 24, 0.92), rgba(4, 28, 26, 0.90)),
        rgba(8, 13, 24, 0.94);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.38), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.fide-rules-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
        "icon title"
        "icon copy";
    gap: 3px 10px;
    align-items: center;
}

.fide-rules-head i {
    grid-area: icon;
    width: 42px;
    aspect-ratio: 1;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    color: #06110f;
    background: linear-gradient(135deg, var(--jq-gold), var(--jq-cyan));
}

.fide-rules-head strong {
    grid-area: title;
    min-width: 0;
    color: #ffffff;
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 1000;
    line-height: 1.05;
}

.fide-rules-head span {
    grid-area: copy;
    min-width: 0;
    color: var(--jq-muted);
    font-size: 0.82rem;
    font-weight: 850;
}

.fide-rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 8px;
}

.fide-rule-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
        "icon title"
        "icon copy";
    gap: 2px 8px;
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: calc(var(--jq-radius) - 2px);
    background: rgba(255, 255, 255, 0.06);
    animation: fideCardIn 420ms ease both;
}

.fide-rule-card i {
    grid-area: icon;
    color: var(--jq-cyan);
    padding-top: 2px;
}

.fide-rule-card strong {
    grid-area: title;
    min-width: 0;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 1000;
    line-height: 1.05;
}

.fide-rule-card span {
    grid-area: copy;
    min-width: 0;
    color: var(--jq-muted);
    font-size: 0.72rem;
    font-weight: 750;
    line-height: 1.2;
}

@keyframes fideCardIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.jq-button.is-locked {
    filter: saturate(0.85);
    opacity: 0.72;
}

.quest-board.is-notation-coords coords.files {
    bottom: -27px !important;
    height: 24px !important;
}

.quest-board.is-notation-coords coords.ranks {
    left: -25px !important;
    width: 24px !important;
}

.quest-board.is-notation-coords coords.files coord,
.quest-board.is-notation-coords coords.ranks coord {
    color: #f6c85f !important;
    font-size: 1rem !important;
    font-weight: 1000 !important;
    text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.9),
        0 0 10px rgba(246, 200, 95, 0.45) !important;
}

.practice-game-panel {
    display: grid;
    gap: 12px;
}

.practice-game-head {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(0, 212, 170, 0.22);
    border-radius: var(--jq-radius);
    background:
        linear-gradient(135deg, rgba(0, 212, 170, 0.13), rgba(199, 0, 57, 0.08)),
        rgba(8, 13, 24, 0.72);
}

.practice-game-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 12px;
    border-radius: var(--jq-radius);
    color: #06110f;
    background: linear-gradient(135deg, var(--jq-cyan), var(--jq-gold));
    font-size: 0.78rem;
    font-weight: 950;
    text-transform: uppercase;
}

.practice-game-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.practice-game-copy strong {
    color: #ffffff;
    font-size: 1rem;
}

.practice-game-copy span {
    color: var(--jq-muted);
    font-size: 0.9rem;
    line-height: 1.35;
}

.practice-game-dashboard {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.practice-stat {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
        "icon value"
        "icon label";
    align-items: center;
    column-gap: 8px;
    row-gap: 1px;
    min-height: 48px;
    padding: 9px 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--jq-radius);
    background: rgba(255, 255, 255, 0.055);
    min-width: 0;
    overflow: hidden;
}

.practice-stat i {
    grid-area: icon;
    color: var(--jq-cyan);
}

.practice-stat strong {
    grid-area: value;
    min-width: 0;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.practice-stat span {
    grid-area: label;
    min-width: 0;
    color: var(--jq-muted);
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1.05;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.practice-piece-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 7px;
}

.practice-piece-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--jq-radius);
    color: var(--jq-muted);
    background: rgba(5, 6, 10, 0.34);
    font-size: 0.82rem;
    font-weight: 900;
    transition: transform 160ms ease, border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.practice-piece-chip.is-active {
    color: #06110f;
    border-color: rgba(246, 200, 95, 0.65);
    background: linear-gradient(135deg, var(--jq-gold), var(--jq-cyan));
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 212, 170, 0.18);
}

.practice-game-feedback {
    font-weight: 850;
}

.practice-illegal-dialog {
    width: min(520px, calc(100vw - 28px));
    padding: 0;
    border: 0;
    border-radius: var(--jq-radius);
    background: transparent;
    color: var(--jq-text);
}

.practice-illegal-dialog::backdrop {
    background: rgba(3, 5, 11, 0.72);
    backdrop-filter: blur(8px);
}

.practice-illegal-modal {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(255, 23, 68, 0.48);
    border-radius: var(--jq-radius);
    background:
        linear-gradient(135deg, rgba(255, 23, 68, 0.14), rgba(0, 212, 170, 0.07)),
        rgba(13, 16, 28, 0.98);
    box-shadow: var(--jq-shadow);
}

.practice-illegal-head {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
}

.practice-illegal-mark {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: var(--jq-radius);
    color: #ffffff;
    background: linear-gradient(135deg, var(--jq-red-hot), var(--jq-red));
    box-shadow: 0 0 24px rgba(255, 23, 68, 0.32);
}

.practice-illegal-head strong {
    display: block;
    color: #ffffff;
    font-size: 1.08rem;
}

.practice-illegal-head span,
.practice-illegal-body p {
    color: var(--jq-muted);
}

.practice-illegal-body {
    display: grid;
    gap: 8px;
}

.practice-illegal-body p {
    margin: 0;
    line-height: 1.45;
}

.mate-practice-panel {
    display: grid;
    gap: 12px;
}

.mate-practice-guide {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(255, 23, 68, 0.32);
    border-radius: var(--jq-radius);
    background:
        linear-gradient(135deg, rgba(255, 23, 68, 0.14), rgba(0, 212, 170, 0.08)),
        rgba(5, 6, 10, 0.34);
}

.mate-practice-guide i {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: var(--jq-radius);
    color: #ffffff;
    background: linear-gradient(135deg, var(--jq-red-hot), var(--jq-red));
    box-shadow: 0 0 22px rgba(255, 23, 68, 0.28);
}

.mate-practice-guide strong {
    color: #ffffff;
    font-size: 0.98rem;
}

.mate-practice-guide span {
    min-width: 0;
    color: var(--jq-muted);
    font-size: 0.9rem;
    line-height: 1.35;
}

.stalemate-practice-panel {
    display: grid;
    gap: 12px;
}

.stalemate-practice-guide {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(246, 200, 95, 0.32);
    border-radius: var(--jq-radius);
    background:
        linear-gradient(135deg, rgba(246, 200, 95, 0.13), rgba(0, 212, 170, 0.08)),
        rgba(5, 6, 10, 0.34);
}

.stalemate-practice-guide i {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: var(--jq-radius);
    color: #06110f;
    background: linear-gradient(135deg, var(--jq-gold), var(--jq-cyan));
    box-shadow: 0 0 22px rgba(246, 200, 95, 0.22);
}

.stalemate-practice-guide strong {
    color: #ffffff;
    font-size: 0.98rem;
}

.stalemate-practice-guide span,
.stalemate-practice-prompt {
    min-width: 0;
    color: var(--jq-muted);
    font-size: 0.9rem;
    line-height: 1.35;
}

.stalemate-practice-prompt {
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: var(--jq-radius);
    background: rgba(255, 255, 255, 0.055);
    color: #ffffff;
    font-weight: 900;
}

.stalemate-pair-overlay {
    position: absolute;
    inset: clamp(8px, 2.4%, 16px);
    z-index: 24;
    display: grid;
    align-content: center;
    gap: clamp(8px, 1.35vw, 14px);
    padding: clamp(9px, 1.7vw, 16px);
    border: 1px solid rgba(246, 200, 95, 0.38);
    border-radius: var(--jq-radius);
    background:
        radial-gradient(circle at 14% 16%, rgba(246, 200, 95, 0.18), transparent 34%),
        radial-gradient(circle at 90% 18%, rgba(0, 212, 170, 0.16), transparent 32%),
        linear-gradient(135deg, rgba(8, 13, 25, 0.94), rgba(23, 36, 46, 0.9));
    box-shadow:
        0 22px 46px rgba(0, 0, 0, 0.42),
        inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
}

.stalemate-pair-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.stalemate-pair-head i {
    width: clamp(30px, 5vw, 42px);
    aspect-ratio: 1;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    color: #06110f;
    background: linear-gradient(135deg, var(--jq-gold), var(--jq-cyan));
    box-shadow: 0 0 20px rgba(246, 200, 95, 0.26);
}

.stalemate-pair-head strong {
    min-width: 0;
    color: #ffffff;
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: clamp(1rem, 2.2vw, 1.42rem);
    line-height: 1.05;
}

.stalemate-pair-head span {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--jq-muted);
    font-size: clamp(0.68rem, 1.4vw, 0.78rem);
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: 0;
    white-space: nowrap;
}

.stalemate-pair-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(8px, 1.55vw, 14px);
}

.stalemate-diagram-option {
    min-width: 0;
    display: grid;
    gap: 7px;
    padding: clamp(7px, 1.4vw, 10px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
        rgba(7, 13, 22, 0.56);
    color: #ffffff;
    font: inherit;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
}

.stalemate-diagram-option:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: rgba(246, 200, 95, 0.48);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28), 0 0 18px rgba(246, 200, 95, 0.12);
}

.stalemate-diagram-option strong {
    justify-self: start;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    color: #fef3c7;
    font-size: clamp(0.78rem, 1.6vw, 0.92rem);
    font-weight: 1000;
}

.stalemate-diagram-option.is-correct-pick {
    border-color: rgba(52, 211, 153, 0.72);
    background:
        linear-gradient(145deg, rgba(52, 211, 153, 0.16), rgba(255, 255, 255, 0.04)),
        rgba(7, 13, 22, 0.64);
    box-shadow: 0 0 26px rgba(52, 211, 153, 0.18);
}

.stalemate-diagram-option.is-wrong {
    border-color: rgba(255, 23, 68, 0.78);
    background:
        linear-gradient(145deg, rgba(255, 23, 68, 0.16), rgba(255, 255, 255, 0.04)),
        rgba(7, 13, 22, 0.64);
    box-shadow: 0 0 24px rgba(255, 23, 68, 0.18);
}

.stalemate-mini-board {
    width: 100%;
    max-width: min(218px, 100%);
    aspect-ratio: 1;
    justify-self: center;
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    grid-template-rows: repeat(8, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    overflow: hidden;
    border: 1px solid rgba(246, 200, 95, 0.24);
    border-radius: 8px;
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.26),
        inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.stalemate-mini-cell {
    min-width: 0;
    min-height: 0;
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1;
}

.stalemate-mini-cell.is-light {
    background: var(--jq-board-light);
}

.stalemate-mini-cell.is-dark {
    background: var(--jq-board-dark);
}

.stalemate-mini-cell .setup-piece-glyph {
    width: 82%;
    max-width: 30px;
    filter:
        drop-shadow(0 0 1px rgba(255, 255, 255, 0.62))
        drop-shadow(0 3px 5px rgba(0, 0, 0, 0.58));
}

.stalemate-mini-cell .setup-piece-glyph[class*="setup-piece-glyph--w"] {
    filter:
        drop-shadow(0 0 1px rgba(5, 8, 15, 0.98))
        drop-shadow(0 3px 6px rgba(0, 0, 0, 0.72));
}

.stalemate-diagram-turn {
    justify-self: center;
    color: var(--jq-muted);
    font-size: clamp(0.68rem, 1.4vw, 0.78rem);
    font-weight: 950;
}

@media (max-width: 760px) {
    .mate-practice-guide {
        grid-template-columns: auto 1fr;
    }

    .mate-practice-guide span,
    .stalemate-practice-guide span {
        grid-column: 1 / -1;
    }

    .stalemate-practice-guide {
        grid-template-columns: auto 1fr;
    }

    .stalemate-pair-overlay {
        inset: 7px;
        gap: 7px;
        padding: 8px;
    }

    .stalemate-pair-head {
        grid-template-columns: auto 1fr;
    }

    .stalemate-pair-head span {
        grid-column: 1 / -1;
        justify-self: start;
        padding-block: 4px;
    }

    .stalemate-diagram-option {
        border-radius: 11px;
        padding: 6px;
    }

    .stalemate-diagram-option strong {
        padding: 4px 7px;
    }

    .stalemate-mini-board {
        border-radius: 6px;
    }

    .stalemate-mini-cell .setup-piece-glyph {
        width: 88%;
    }
}

@media (max-width: 760px) {
    .practice-game-head,
    .practice-game-dashboard {
        grid-template-columns: 1fr;
    }

    .practice-piece-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.scan-meter {
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.scan-meter span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--jq-board-dark), var(--jq-board-coords), var(--jq-red));
    transition: width 120ms ease;
}

.scan-counter,
.square-challenge__status,
.arrow-challenge__status,
.placement-challenge__status,
.square-name__status,
.reflex-stage__status,
.zone-study__status,
.piece-reveal__status,
.setup-reveal__status,
.rook-challenge__status,
.rook-capture__status,
.stage-feedback {
    min-height: 40px;
    display: flex;
    align-items: center;
    padding: 9px 11px;
    border-radius: var(--jq-radius);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.055);
    color: #f7fbff;
    font-weight: 800;
}

.stage-feedback {
    position: relative;
    overflow: hidden;
    color: var(--jq-muted);
    font-weight: 700;
    line-height: 1.45;
    border-color: color-mix(in srgb, var(--academy-accent) 18%, rgba(255, 255, 255, 0.12));
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--academy-accent) 7%, transparent), rgba(255, 255, 255, 0.04)),
        rgba(255, 255, 255, 0.052);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.018);
}

.stage-feedback::before {
    content: "";
    position: absolute;
    inset: 8px auto 8px 0;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, transparent, var(--academy-accent), transparent);
    box-shadow: 0 0 13px var(--academy-glow);
}

.stage-feedback::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--academy-accent) 12%, transparent), transparent);
    opacity: 0.18;
    transform: translateX(-36%);
    animation: academyPanelSweep 8.5s ease-in-out infinite;
}

.stage-feedback.is-correct {
    color: #dffdf7;
    border-color: rgba(52, 211, 153, 0.55);
    background:
        linear-gradient(135deg, rgba(52, 211, 153, 0.18), rgba(34, 211, 238, 0.08)),
        rgba(52, 211, 153, 0.10);
    box-shadow: 0 0 24px rgba(52, 211, 153, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.stage-feedback.is-correct::before {
    background: linear-gradient(180deg, transparent, #34d399, #22d3ee, transparent);
}

.stage-feedback.is-wrong {
    color: #ffd7df;
    border-color: rgba(255, 23, 68, 0.58);
    background:
        linear-gradient(135deg, rgba(255, 23, 68, 0.16), rgba(246, 200, 95, 0.06)),
        rgba(255, 23, 68, 0.10);
    box-shadow: 0 0 24px rgba(255, 23, 68, 0.10), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.stage-feedback.is-wrong::before {
    background: linear-gradient(180deg, transparent, #ff1744, #f6c85f, transparent);
}

.learning-stage--command {
    position: relative;
}

.learning-stage--command h3 {
    font-size: clamp(1.28rem, 2.3vw, 1.85rem);
}

.learning-stage--command > p:not(.lesson-eyebrow) {
    color: #dbeafe;
    font-weight: 760;
}

.command-stage-hud {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
}

.command-stage-chip {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
        "icon label"
        "icon value";
    gap: 2px 8px;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(34, 211, 238, 0.20);
    border-radius: var(--jq-radius);
    background:
        linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(250, 204, 21, 0.06)),
        rgba(255, 255, 255, 0.045);
}

.command-stage-chip i {
    grid-area: icon;
    width: 34px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #06120f;
    background: linear-gradient(135deg, var(--jq-cyan), var(--jq-gold));
}

.command-stage-chip strong {
    grid-area: label;
    min-width: 0;
    color: var(--jq-cyan);
    font-size: 0.66rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.05;
}

.command-stage-chip span {
    grid-area: value;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    color: #fff;
    font-size: 0.84rem;
    font-weight: 950;
    line-height: 1.12;
}

.scan-meter--command {
    height: 14px;
    border-color: rgba(34, 211, 238, 0.3);
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 26px),
        rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 22px rgba(34, 211, 238, 0.13);
}

.scan-meter--command span {
    background: linear-gradient(90deg, var(--jq-cyan), var(--jq-gold), var(--jq-red));
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.42);
}

.piece-fact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
}

.piece-fact {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--jq-radius);
    background:
        linear-gradient(135deg, rgba(246, 200, 95, 0.10), rgba(0, 212, 170, 0.06)),
        rgba(255, 255, 255, 0.045);
}

.piece-fact i {
    color: var(--jq-gold);
    font-size: 1.05rem;
}

.piece-fact strong {
    color: #fff;
    font-size: 0.9rem;
}

.piece-fact span {
    color: var(--jq-muted);
    font-size: 0.82rem;
    line-height: 1.32;
}

.required-piece-note {
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(246, 200, 95, 0.52);
    border-radius: var(--jq-radius);
    background:
        linear-gradient(135deg, rgba(199, 0, 57, 0.18), rgba(246, 200, 95, 0.12)),
        rgba(255, 255, 255, 0.055);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 14px 26px rgba(0, 0, 0, 0.22);
}

.required-piece-note__head {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.required-piece-note__head i {
    color: var(--jq-gold);
}

.required-piece-note__head strong {
    font-size: 1rem;
}

.required-piece-note p {
    margin: 0;
    color: #f3e8d0;
    line-height: 1.48;
    font-weight: 700;
}

.required-piece-note .jq-button {
    justify-self: start;
}

.required-piece-note.is-read {
    border-color: rgba(52, 211, 153, 0.62);
    background:
        linear-gradient(135deg, rgba(52, 211, 153, 0.16), rgba(0, 212, 170, 0.10)),
        rgba(255, 255, 255, 0.055);
}

.setup-reveal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
}

.setup-reveal-card,
.setup-memory-card {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--jq-radius);
    background: rgba(255, 255, 255, 0.055);
}

.setup-reveal-card i,
.setup-memory-card i {
    color: var(--jq-cyan);
}

.setup-reveal-card strong,
.setup-memory-card strong {
    color: #fff;
    font-size: 0.9rem;
}

.setup-reveal-card span,
.setup-memory-card span {
    color: var(--jq-muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.setup-memory-card {
    border-color: rgba(246, 200, 95, 0.38);
    background:
        linear-gradient(135deg, rgba(246, 200, 95, 0.12), rgba(199, 0, 57, 0.08)),
        rgba(255, 255, 255, 0.055);
}

.setup-memory-card i {
    color: var(--jq-gold);
}

.piece-match-panel {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.piece-label-rack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
    gap: 10px;
    min-width: 0;
}

.piece-label-token {
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--jq-radius);
    background:
        linear-gradient(135deg, rgba(0, 212, 170, 0.16), rgba(199, 0, 57, 0.12)),
        rgba(255, 255, 255, 0.07);
    color: #fff;
    cursor: grab;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 12px;
    font-weight: 900;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, opacity 160ms ease;
}

.piece-label-token:hover:not(:disabled),
.piece-label-token.is-selected {
    transform: translateY(-1px);
    border-color: rgba(246, 200, 95, 0.72);
    background:
        linear-gradient(135deg, rgba(246, 200, 95, 0.20), rgba(0, 212, 170, 0.14)),
        rgba(255, 255, 255, 0.08);
}

.piece-label-token.is-used {
    cursor: default;
    opacity: 0.5;
}

.piece-match-feedback {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--jq-radius);
    background: rgba(255, 255, 255, 0.055);
    color: var(--jq-muted);
    font-weight: 800;
    line-height: 1.4;
}

.piece-match-feedback.is-correct {
    color: #dffdf7;
    border-color: rgba(52, 211, 153, 0.55);
    background: rgba(52, 211, 153, 0.12);
}

.piece-match-feedback.is-wrong {
    color: #ffd7df;
    border-color: rgba(255, 23, 68, 0.58);
    background: rgba(255, 23, 68, 0.12);
}

.famous-mate-eval-panel {
    display: grid;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(255, 86, 86, 0.24);
    border-radius: var(--jq-radius);
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 86, 86, 0.17), transparent 38%),
        radial-gradient(circle at 88% 12%, rgba(0, 212, 170, 0.13), transparent 34%),
        rgba(8, 13, 24, 0.76);
}

.famous-mate-eval-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
        "icon title"
        "icon copy";
    gap: 3px 10px;
    align-items: center;
}

.famous-mate-eval-head i {
    grid-area: icon;
    width: 42px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, rgba(255, 86, 86, 0.96), rgba(199, 0, 57, 0.86));
    box-shadow: 0 0 22px rgba(255, 86, 86, 0.24);
}

.famous-mate-eval-head strong {
    grid-area: title;
    min-width: 0;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 1000;
    line-height: 1.08;
}

.famous-mate-eval-head span {
    grid-area: copy;
    min-width: 0;
    color: var(--jq-muted);
    font-size: 0.82rem;
    font-weight: 850;
}

.famous-mate-line {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.famous-mate-token {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 999px;
    color: #d7e2f4;
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.78rem;
    font-weight: 950;
}

.famous-mate-token.is-auto {
    color: #bfd3ef;
    border-color: rgba(94, 161, 255, 0.24);
}

.famous-mate-token.is-user {
    color: #f7e6a8;
    border-color: rgba(246, 200, 95, 0.24);
}

.famous-mate-token.is-current {
    color: #06110f;
    border-color: rgba(246, 200, 95, 0.82);
    background: linear-gradient(135deg, var(--jq-gold), var(--jq-cyan));
    box-shadow: 0 10px 20px rgba(0, 212, 170, 0.16);
}

.famous-mate-token.is-complete {
    color: #bfffee;
    border-color: rgba(0, 212, 170, 0.34);
    background: rgba(0, 212, 170, 0.12);
}

.piece-match-overlay {
    position: absolute;
    inset: 0;
    z-index: 26;
    pointer-events: none;
}

.piece-drop-zone {
    position: absolute;
    width: 12.5%;
    height: 12.5%;
    display: grid;
    place-items: center;
    border: 2px dashed rgba(246, 200, 95, 0.78);
    border-radius: 8px;
    background: rgba(5, 6, 10, 0.14);
    color: var(--jq-gold);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 950;
    line-height: 1;
    text-align: center;
    pointer-events: auto;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.piece-drop-zone.is-armed {
    transform: scale(1.04);
    border-color: rgba(0, 255, 196, 0.9);
    background: rgba(0, 212, 170, 0.16);
}

.piece-drop-zone.is-matched {
    border-style: solid;
    border-color: rgba(52, 211, 153, 0.9);
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.92), rgba(246, 200, 95, 0.86));
    color: #04120f;
    font-size: clamp(0.56rem, 1.4vw, 0.78rem);
    text-shadow: none;
    padding: 2px;
}

.piece-drop-zone.is-wrong {
    border-color: rgba(255, 23, 68, 0.95);
    background: rgba(255, 23, 68, 0.22);
    color: #ffd7df;
}

.setup-eval-panel {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.setup-progress-meter {
    height: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.setup-progress-meter span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--jq-red), var(--jq-gold), var(--jq-cyan));
    transition: width 220ms ease;
}

.setup-eval-progress {
    min-height: 40px;
    display: flex;
    align-items: center;
    padding: 9px 11px;
    border-radius: var(--jq-radius);
    border: 1px solid rgba(0, 212, 170, 0.22);
    background: rgba(0, 212, 170, 0.08);
    color: #dffdf7;
    font-weight: 900;
}

.setup-eval-mistakes {
    min-height: 38px;
    display: flex;
    align-items: center;
    padding: 8px 11px;
    border-radius: var(--jq-radius);
    border: 1px solid rgba(246, 200, 95, 0.24);
    background: rgba(246, 200, 95, 0.08);
    color: var(--jq-gold);
    font-weight: 900;
}

.setup-eval-mistakes.is-danger {
    border-color: rgba(255, 23, 68, 0.56);
    background: rgba(255, 23, 68, 0.12);
    color: #ffd7df;
}

.setup-piece-bank {
    display: grid;
    gap: 12px;
}

.setup-piece-bank__group {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.setup-piece-bank__group > strong {
    color: #fff;
    font-size: 0.86rem;
}

.setup-piece-bank__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    gap: 8px;
}

.setup-piece-token {
    position: relative;
    min-height: 50px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 7px;
    padding: 6px 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--jq-radius);
    background:
        linear-gradient(135deg, rgba(0, 212, 170, 0.13), rgba(199, 0, 57, 0.10)),
        rgba(255, 255, 255, 0.07);
    color: #fff;
    cursor: grab;
    font-weight: 900;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, opacity 160ms ease;
}

.setup-piece-token--black {
    background:
        linear-gradient(135deg, rgba(94, 161, 255, 0.14), rgba(5, 6, 10, 0.24)),
        rgba(255, 255, 255, 0.06);
}

.setup-piece-token:hover:not(:disabled),
.setup-piece-token.is-selected {
    transform: translateY(-1px);
    border-color: rgba(246, 200, 95, 0.74);
    background:
        linear-gradient(135deg, rgba(246, 200, 95, 0.18), rgba(0, 212, 170, 0.13)),
        rgba(255, 255, 255, 0.08);
}

.setup-piece-token.is-empty {
    cursor: default;
    opacity: 0.42;
}

.setup-piece-token__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.setup-piece-token__count {
    min-width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(0, 212, 170, 0.17);
    color: var(--jq-cyan);
    font-size: 0.78rem;
}

.setup-piece-glyph {
    width: 28px;
    aspect-ratio: 1;
    display: block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    filter: drop-shadow(0 3px 7px rgba(0, 0, 0, 0.55));
}

.setup-piece-glyph--wK { background-image: url("../../tablero/piezassilicio/wK.svg"); }
.setup-piece-glyph--wQ { background-image: url("../../tablero/piezassilicio/wQ.svg"); }
.setup-piece-glyph--wR { background-image: url("../../tablero/piezassilicio/wR.svg"); }
.setup-piece-glyph--wB { background-image: url("../../tablero/piezassilicio/wB.svg"); }
.setup-piece-glyph--wN { background-image: url("../../tablero/piezassilicio/wN.svg"); }
.setup-piece-glyph--wP { background-image: url("../../tablero/piezassilicio/wP.svg"); }
.setup-piece-glyph--bK { background-image: url("../../tablero/piezassilicio/bK.svg"); }
.setup-piece-glyph--bQ { background-image: url("../../tablero/piezassilicio/bQ.svg"); }
.setup-piece-glyph--bR { background-image: url("../../tablero/piezassilicio/bR.svg"); }
.setup-piece-glyph--bB { background-image: url("../../tablero/piezassilicio/bB.svg"); }
.setup-piece-glyph--bN { background-image: url("../../tablero/piezassilicio/bN.svg"); }
.setup-piece-glyph--bP { background-image: url("../../tablero/piezassilicio/bP.svg"); }

body.jq-touch-dragging {
    -webkit-user-select: none;
    user-select: none;
    touch-action: none;
}

.mobile-drag-ghost {
    position: fixed;
    z-index: 2147483000;
    left: 0;
    top: 0;
    width: max-content;
    max-width: min(220px, 72vw);
    pointer-events: none;
    transform: translate(-50%, -50%) scale(1.06);
    opacity: 0.96;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(246, 200, 95, 0.35);
}

.mobile-drag-ghost--piece {
    min-width: 118px;
}

@media (hover: none) and (pointer: coarse) {
    .setup-piece-bank {
        gap: 8px;
    }

    .setup-piece-bank__group {
        gap: 6px;
    }

    .setup-piece-bank__group > strong {
        font-size: 0.78rem;
    }

    .setup-piece-bank__grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 6px;
    }

    .setup-piece-token {
        min-height: 42px;
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 0;
        padding: 5px 4px;
        cursor: pointer;
        touch-action: manipulation;
    }

    .setup-piece-token:hover:not(:disabled),
    .setup-piece-token.is-selected {
        transform: none;
        box-shadow: inset 0 0 0 2px rgba(246, 200, 95, 0.34), 0 0 20px rgba(0, 212, 170, 0.16);
    }

    .setup-piece-token__name {
        display: none;
    }

    .setup-piece-token__count {
        position: absolute;
        top: 3px;
        right: 3px;
        min-width: 18px;
        height: 18px;
        font-size: 0.64rem;
        background: rgba(0, 212, 170, 0.26);
        box-shadow: 0 0 0 1px rgba(5, 6, 10, 0.45);
    }

    .setup-piece-token .setup-piece-glyph {
        width: 30px;
    }
}

body.jq-minigame-dragging {
    -webkit-user-select: none;
    user-select: none;
    touch-action: none;
    cursor: grabbing;
}

.crypto-cell.is-player,
.prism-cell.is-player,
.neon-cell.is-player,
.rescue-cell.is-player,
.core-cell.is-player,
.jump-cell.is-player {
    cursor: grab;
    touch-action: none;
}

.crypto-maze-grid.is-character-dragging,
.prism-circuit-grid.is-character-dragging,
.neon-rooftops-grid.is-character-dragging,
.rescue-operation-grid.is-character-dragging,
.core-custodian-grid.is-character-dragging,
.jump-academy-grid.is-character-dragging {
    cursor: grabbing;
    touch-action: none;
}

.crypto-cell.is-drag-origin,
.prism-cell.is-drag-origin,
.neon-cell.is-drag-origin,
.rescue-cell.is-drag-origin,
.core-cell.is-drag-origin,
.jump-cell.is-drag-origin {
    filter: brightness(1.12);
}

.crypto-cell.is-drag-target,
.prism-cell.is-drag-target,
.neon-cell.is-drag-target,
.rescue-cell.is-drag-target,
.core-cell.is-drag-target,
.jump-cell.is-drag-target {
    z-index: 5;
    border-color: rgba(246, 200, 95, 0.92) !important;
    box-shadow:
        inset 0 0 0 2px rgba(246, 200, 95, 0.50),
        0 0 22px rgba(246, 200, 95, 0.28);
}

.minigame-drag-ghost {
    position: fixed;
    z-index: 2147483000;
    left: 0;
    top: 0;
    width: clamp(40px, 8vmin, 58px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(1.08);
    opacity: 0.98;
    filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.48));
    color: #fff;
    font-size: clamp(1.15rem, 4vmin, 1.7rem);
    line-height: 1;
}

.minigame-drag-ghost.is-local-drag-ghost {
    position: fixed;
}

.minigame-drag-ghost__visual {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    display: grid !important;
    place-items: center !important;
    line-height: 1 !important;
    text-align: center !important;
}

.minigame-drag-ghost__visual > * {
    max-width: 100% !important;
    max-height: 100% !important;
    display: grid !important;
    place-items: center !important;
    line-height: 1 !important;
    text-align: center !important;
    transform: none !important;
}

.minigame-drag-ghost__visual > i,
.minigame-drag-ghost__visual > svg,
.minigame-drag-ghost__visual > [class^="fa-"],
.minigame-drag-ghost__visual > [class*=" fa-"] {
    width: 100% !important;
    height: 100% !important;
    display: grid !important;
    place-items: center !important;
}

.minigame-drag-ghost__visual > i::before,
.minigame-drag-ghost__visual > [class^="fa-"]::before,
.minigame-drag-ghost__visual > [class*=" fa-"]::before {
    display: block;
    line-height: 1;
}

.minigame-drag-ghost--guide {
    width: clamp(34px, 7vmin, 46px);
    font-size: clamp(1rem, 3.4vmin, 1.35rem);
}

.minigame-drag-ghost__fallback {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--jq-cyan), var(--jq-gold));
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.45);
}

.movement-guide-dialog {
    position: relative;
    width: min(94vw, 500px);
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: transparent;
    color: #f8fbff;
    overflow: visible;
    isolation: isolate;
}

.movement-guide-dialog::backdrop {
    background: rgba(2, 6, 14, 0.78);
    backdrop-filter: blur(8px);
}

.movement-guide-modal {
    display: grid;
    gap: 9px;
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
    box-sizing: border-box;
    padding: clamp(12px, 2.4vw, 18px);
    border: 1px solid rgba(45, 212, 191, 0.28);
    border-radius: 18px;
    background:
        radial-gradient(circle at 15% 0%, rgba(45, 212, 191, 0.18), transparent 34%),
        linear-gradient(145deg, rgba(12, 20, 34, 0.98), rgba(18, 24, 38, 0.96));
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.52);
}

.movement-guide-header {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.movement-guide-badge {
    width: 40px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #071014;
    background: linear-gradient(135deg, var(--jq-cyan), var(--jq-gold));
    box-shadow: 0 0 22px rgba(45, 212, 191, 0.36);
}

.movement-guide-title {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.movement-guide-title .lesson-eyebrow,
.movement-guide-title h3,
.movement-guide-copy,
.movement-guide-drag-hint {
    margin: 0;
}

.movement-guide-title h3 {
    color: #fff;
    font-size: clamp(1.04rem, 3.6vw, 1.34rem);
}

.movement-guide-title span {
    font-size: 0.9rem;
}

.movement-guide-title span,
.movement-guide-copy,
.movement-guide-drag-hint {
    color: var(--jq-muted);
    font-weight: 760;
}

.movement-guide-copy {
    padding: 8px 10px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--jq-radius);
    background: rgba(255, 255, 255, 0.045);
}

.movement-guide-drag-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ccfbf1;
    font-size: 0.86rem;
}

.movement-guide-drag-hint::before {
    content: "";
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #2dd4bf;
    box-shadow: 0 0 14px rgba(45, 212, 191, 0.7);
}

.movement-guide-board {
    display: grid;
    grid-template-columns: repeat(var(--guide-size), minmax(0, 1fr));
    gap: 6px;
    width: min(100%, 350px, 48vh);
    width: min(100%, 350px, 48dvh);
    justify-self: center;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid rgba(45, 212, 191, 0.24);
    border-radius: 16px;
    background:
        linear-gradient(90deg, rgba(45, 212, 191, 0.08) 1px, transparent 1px),
        linear-gradient(0deg, rgba(45, 212, 191, 0.08) 1px, transparent 1px),
        rgba(4, 11, 20, 0.72);
    touch-action: none;
}

.movement-guide-cell {
    position: relative;
    aspect-ratio: 1;
    min-width: 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.045);
    color: #ecfeff;
    -webkit-tap-highlight-color: transparent;
    touch-action: none;
}

.movement-guide-actions .jq-button {
    min-height: 42px;
}

.movement-guide-cell.is-player {
    cursor: grab;
    border-color: rgba(45, 212, 191, 0.70);
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.36), rgba(250, 204, 21, 0.18));
    box-shadow: 0 0 18px rgba(45, 212, 191, 0.24);
}

.movement-guide-cell.is-player:active,
.movement-guide-board.is-character-dragging .movement-guide-cell.is-player {
    cursor: grabbing;
}

.movement-guide-cell.is-drag-origin {
    filter: brightness(1.16);
}

.movement-guide-cell.is-drag-origin > * {
    opacity: 0.32;
}

.movement-guide-dialog .minigame-drag-ghost {
    z-index: 100000;
}

.movement-guide-cell.is-example-path {
    border-color: rgba(250, 204, 21, 0.46);
    background: rgba(250, 204, 21, 0.10);
}

.movement-guide-cell.is-example-mark {
    border-color: rgba(250, 204, 21, 0.82);
    background: rgba(250, 204, 21, 0.14);
    box-shadow: inset 0 0 0 2px rgba(250, 204, 21, 0.24), 0 0 16px rgba(250, 204, 21, 0.22);
}

.movement-guide-step-label {
    position: absolute;
    right: 7px;
    bottom: 7px;
    width: 22px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--jq-gold), #f97316);
    color: #120b02;
    font-size: 0.8rem;
    font-weight: 980;
    box-shadow: 0 0 14px rgba(250, 204, 21, 0.42);
}

.movement-guide-cell.is-practice-target,
.movement-guide-cell.is-drag-target {
    border-color: rgba(250, 204, 21, 0.88);
    background: rgba(250, 204, 21, 0.18);
    box-shadow: inset 0 0 0 2px rgba(250, 204, 21, 0.28), 0 0 20px rgba(250, 204, 21, 0.24);
}

.movement-guide-cell.is-wrong {
    animation: cryptoCellError 680ms ease;
    border-color: rgba(248, 113, 113, 0.92);
    background: rgba(248, 113, 113, 0.22);
}

.movement-guide-node,
.movement-guide-dot {
    width: 18%;
    aspect-ratio: 1;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.46);
}

.movement-guide-dot {
    background: var(--jq-gold);
    box-shadow: 0 0 14px rgba(250, 204, 21, 0.38);
}

.movement-guide-feedback {
    min-height: 40px;
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--jq-radius);
    background: rgba(255, 255, 255, 0.045);
    color: var(--jq-muted);
    font-weight: 820;
}

.movement-guide-feedback.is-correct {
    border-color: rgba(45, 212, 191, 0.50);
    background: rgba(45, 212, 191, 0.12);
    color: #dffdf7;
}

.movement-guide-feedback.is-wrong {
    border-color: rgba(248, 113, 113, 0.50);
    background: rgba(248, 113, 113, 0.12);
    color: #ffe4e6;
}

.movement-guide-actions .jq-button[hidden] {
    display: none;
}

@media (max-height: 680px) {
    .movement-guide-modal {
        gap: 7px;
        padding: 10px;
    }

    .movement-guide-header {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 8px;
    }

    .movement-guide-badge {
        width: 34px;
        border-radius: 12px;
    }

    .movement-guide-title .lesson-eyebrow {
        display: none;
    }

    .movement-guide-title h3 {
        font-size: 1rem;
    }

    .movement-guide-title span,
    .movement-guide-copy,
    .movement-guide-drag-hint,
    .movement-guide-feedback {
        font-size: 0.82rem;
    }

    .movement-guide-copy {
        padding: 6px 8px;
    }

    .movement-guide-board {
        width: min(100%, 315px, 42vh);
        width: min(100%, 315px, 42dvh);
        gap: 4px;
        padding: 7px;
        border-radius: 12px;
    }

    .movement-guide-cell {
        border-radius: 8px;
    }

    .movement-guide-feedback {
        min-height: 34px;
        padding: 6px 8px;
    }

    .movement-guide-actions .jq-button {
        min-height: 38px;
    }
}

.setup-placement-overlay {
    position: absolute;
    inset: 0;
    z-index: 26;
    pointer-events: none;
}

.setup-drop-zone {
    position: absolute;
    width: 12.5%;
    height: 12.5%;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 6px;
    background: rgba(5, 6, 10, 0.035);
    color: transparent;
    cursor: pointer;
    pointer-events: auto;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.setup-drop-zone.is-armed {
    border-color: rgba(246, 200, 95, 0.62);
    background: rgba(246, 200, 95, 0.06);
}

.setup-drop-zone:hover:not(:disabled),
.setup-drop-zone:focus-visible {
    transform: scale(1.03);
    border-color: rgba(0, 255, 196, 0.8);
    background: rgba(0, 212, 170, 0.13);
    box-shadow: inset 0 0 0 1px rgba(0, 212, 170, 0.28);
}

.setup-drop-zone.is-placed {
    border-color: transparent;
    background: transparent;
    cursor: default;
}

.setup-drop-zone.is-wrong {
    border-color: rgba(255, 23, 68, 0.95);
    background: rgba(255, 23, 68, 0.20);
}

.placement-demo {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    min-width: 0;
}

.placement-demo-card {
    display: grid;
    grid-template-columns: minmax(70px, 88px) minmax(0, 1fr);
    gap: 6px 10px;
    align-items: center;
    min-width: 0;
    padding: 10px;
    border-radius: var(--jq-radius);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.055);
}

.placement-demo-card strong,
.placement-demo-card span {
    min-width: 0;
}

.placement-demo-card strong {
    color: #fff;
}

.placement-demo-card span {
    color: var(--jq-muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.placement-demo-card .mini-placement-board {
    grid-row: span 2;
}

.placement-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
}

.placement-overlay {
    position: absolute;
    inset: clamp(10px, 3%, 18px);
    z-index: 24;
    display: grid;
    align-content: center;
    gap: 12px;
    padding: clamp(10px, 2vw, 16px);
    border: 1px solid rgba(212, 175, 55, 0.36);
    border-radius: var(--jq-radius);
    background:
        linear-gradient(135deg, rgba(199, 0, 57, 0.18), rgba(0, 212, 170, 0.12)),
        rgba(8, 11, 18, 0.88);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.48), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.placement-overlay.is-complete {
    border-color: rgba(52, 211, 153, 0.68);
}

.placement-overlay--command {
    inset: clamp(8px, 2.4%, 14px);
    border-color: rgba(34, 211, 238, 0.42);
    background:
        radial-gradient(circle at 12% 0%, rgba(34, 211, 238, 0.18), transparent 38%),
        linear-gradient(135deg, rgba(6, 12, 26, 0.92), rgba(2, 9, 17, 0.9));
}

.placement-overlay__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 900;
}

.placement-overlay__header span {
    min-width: 52px;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(0, 212, 170, 0.15);
    color: var(--jq-cyan);
    text-align: center;
}

.placement-options--overlay {
    gap: clamp(6px, 1.4vw, 10px);
}

.placement-options--overlay .mini-board-option {
    padding: clamp(6px, 1.3vw, 10px);
    background: rgba(255, 255, 255, 0.09);
}

.mini-board-option {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: var(--jq-radius);
    background: rgba(255, 255, 255, 0.06);
    color: #f7fbff;
    font: inherit;
    font-weight: 850;
    text-align: center;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.mini-board-option:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: rgba(212, 175, 55, 0.55);
    background: rgba(212, 175, 55, 0.10);
}

.mini-board-option:disabled {
    cursor: default;
}

.mini-board-option.is-correct-pick {
    border-color: rgba(52, 211, 153, 0.66);
    background: rgba(52, 211, 153, 0.14);
}

.mini-board-option.is-wrong {
    border-color: rgba(255, 23, 68, 0.62);
    background: rgba(255, 23, 68, 0.13);
}

.mini-placement-board {
    position: relative;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    width: 100%;
    max-width: 94px;
    aspect-ratio: 1;
    justify-self: center;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.28);
}

.mini-placement-board__cell.is-light {
    background: var(--jq-board-light);
}

.mini-placement-board__cell.is-dark {
    background: var(--jq-board-dark);
}

.mini-placement-board__cell.is-corner {
    position: relative;
}

.mini-placement-board__cell.is-corner::after {
    content: "";
    position: absolute;
    inset: 22%;
    border: 2px solid var(--jq-red);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(255, 23, 68, 0.75);
    animation: jqCornerPulse 920ms ease-in-out infinite;
}

.placement-demo-card.is-correct .mini-placement-board__cell.is-corner::after,
.mini-board-option.is-correct-pick .mini-placement-board__cell.is-corner::after {
    border-color: #34d399;
    box-shadow: 0 0 13px rgba(52, 211, 153, 0.78);
}

.reflex-quest-dialog {
    width: min(760px, calc(100vw - 28px));
    max-height: 94vh;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--jq-radius);
    background: #080b12;
    color: #fff;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.72);
}

.reflex-quest-dialog::backdrop {
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(8px);
}

.reflex-quest-modal {
    position: relative;
    display: grid;
    gap: 14px;
    max-height: 94vh;
    overflow: auto;
    padding: 20px;
    background:
        linear-gradient(135deg, rgba(199, 0, 57, 0.13), transparent 42%),
        linear-gradient(225deg, rgba(0, 212, 170, 0.10), transparent 48%),
        #080b12;
}

.reflex-quest-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font-size: 0;
    cursor: pointer;
}

.reflex-quest-close i {
    font-size: 1rem;
}

.reflex-quest-header {
    display: grid;
    gap: 6px;
    padding-right: 44px;
}

.reflex-quest-header h3 {
    margin: 0;
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: clamp(1.35rem, 3vw, 2rem);
}

.reflex-quest-header p {
    margin: 0;
    color: var(--jq-muted);
    line-height: 1.45;
}

.reflex-quest-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.reflex-quest-stat {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--jq-radius);
    background: rgba(255, 255, 255, 0.06);
}

.reflex-quest-stat span {
    color: var(--jq-muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.reflex-quest-stat strong {
    color: #fff;
    font-size: 1.35rem;
}

.reflex-target {
    display: grid;
    place-items: center;
    min-height: 72px;
    border-radius: var(--jq-radius);
    border: 1px solid rgba(212, 175, 55, 0.32);
    background:
        radial-gradient(circle at center, rgba(212, 175, 55, 0.24), rgba(212, 175, 55, 0.05) 58%),
        rgba(255, 255, 255, 0.04);
    color: var(--jq-gold);
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: clamp(2rem, 7vw, 4rem);
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.reflex-modal-board-shell {
    width: min(420px, 100%);
    justify-self: center;
    padding: 0 0 22px 18px;
    overflow: visible;
}

.reflex-modal-board {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
}

.reflex-modal-feedback {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--jq-radius);
    background: rgba(255, 255, 255, 0.06);
    color: var(--jq-muted);
    font-weight: 800;
    line-height: 1.4;
}

.reflex-modal-feedback.is-correct {
    color: #dffdf7;
    border-color: rgba(52, 211, 153, 0.55);
    background: rgba(52, 211, 153, 0.12);
}

.reflex-modal-feedback.is-wrong {
    color: #ffd7df;
    border-color: rgba(255, 23, 68, 0.58);
    background: rgba(255, 23, 68, 0.12);
}

.zone-study-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.zone-study-card {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--jq-radius);
    background: rgba(255, 255, 255, 0.055);
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.zone-study-card strong {
    color: #fff;
}

.zone-study-card span {
    color: var(--jq-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

.zone-study-card.is-active {
    border-color: rgba(212, 175, 55, 0.58);
    background: rgba(212, 175, 55, 0.11);
    transform: translateY(-1px);
}

.zone-study-list--command .zone-study-card {
    border-color: rgba(34, 211, 238, 0.18);
    background:
        linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(255, 255, 255, 0.04)),
        rgba(255, 255, 255, 0.04);
}

.zone-study-list--command .zone-study-card.is-active {
    border-color: rgba(250, 204, 21, 0.58);
    background:
        linear-gradient(135deg, rgba(250, 204, 21, 0.16), rgba(34, 211, 238, 0.09)),
        rgba(255, 255, 255, 0.055);
    box-shadow: 0 0 24px rgba(250, 204, 21, 0.12);
}

.lesson-one-sync-overlay {
    position: absolute;
    inset: clamp(10px, 4%, 24px);
    z-index: 26;
    display: grid;
    place-items: center;
    padding: 12px;
    border-radius: var(--jq-radius);
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 34%, rgba(34, 211, 238, 0.22), transparent 42%),
        linear-gradient(135deg, rgba(2, 6, 14, 0.12), rgba(2, 6, 14, 0.48));
}

.lesson-one-sync-panel {
    width: min(92%, 420px);
    display: grid;
    gap: 10px;
    justify-items: center;
    padding: clamp(14px, 3vw, 22px);
    border: 1px solid rgba(34, 211, 238, 0.35);
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(8, 15, 28, 0.92), rgba(2, 6, 14, 0.94)),
        repeating-linear-gradient(90deg, rgba(34, 211, 238, 0.07) 0 1px, transparent 1px 24px);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55), 0 0 38px rgba(34, 211, 238, 0.18);
    text-align: center;
}

.lesson-one-sync-seal {
    width: 58px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #07120f;
    background: linear-gradient(135deg, var(--jq-cyan), var(--jq-gold));
    font-size: 1.35rem;
}

.lesson-one-sync-kicker {
    color: var(--jq-cyan);
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.lesson-one-sync-panel h4 {
    margin: 0;
    font-size: clamp(1.4rem, 4vw, 2.3rem);
}

.lesson-one-sync-panel p {
    margin: 0;
    color: var(--jq-muted);
    font-weight: 850;
    line-height: 1.35;
}

.lesson-one-sync-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.lesson-one-sync-stat {
    min-width: 0;
    padding: 8px 5px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.055);
}

.lesson-one-sync-stat strong,
.lesson-one-sync-stat span {
    display: block;
    min-width: 0;
}

.lesson-one-sync-stat strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--jq-gold);
    font-size: 0.98rem;
}

.lesson-one-sync-stat span {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
    color: var(--jq-muted);
    font-size: clamp(0.56rem, 1.55vw, 0.66rem);
    font-weight: 900;
    line-height: 1.08;
    text-transform: uppercase;
}

.quest-board.is-crypto-mode coords.files,
.quest-board.is-crypto-mode coords.ranks,
.quest-board.is-prism-mode coords.files,
.quest-board.is-prism-mode coords.ranks,
.quest-board.is-rescue-mode coords.files,
.quest-board.is-rescue-mode coords.ranks,
.quest-board.is-core-mode coords.files,
.quest-board.is-core-mode coords.ranks,
.quest-board.is-jump-mode coords.files,
.quest-board.is-jump-mode coords.ranks,
.quest-board.is-pawn-mode coords.files,
.quest-board.is-pawn-mode coords.ranks {
    display: none !important;
}

.crypto-maze-grid,
.prism-circuit-grid,
.neon-rooftops-grid,
.rescue-operation-grid,
.core-custodian-grid,
.jump-academy-grid,
.pawn-apprentice-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(8, minmax(0, 1fr)) !important;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-rows: minmax(0, 1fr);
    align-content: stretch;
    justify-content: stretch;
}

.crypto-cell,
.prism-cell,
.neon-cell,
.rescue-cell,
.core-cell,
.jump-cell,
.pawn-cell {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    padding: 0;
    aspect-ratio: 1 / 1;
    line-height: 1;
    appearance: none;
    -webkit-appearance: none;
}

.crypto-cell > *,
.prism-cell > *,
.neon-cell > *,
.rescue-cell > *,
.core-cell > *,
.jump-cell > *,
.pawn-cell > * {
    max-width: 82%;
    max-height: 82%;
}

.crypto-maze-overlay {
    position: absolute;
    inset: 0;
    z-index: 34;
    padding: 2.2%;
    border-radius: var(--jq-radius);
    background:
        radial-gradient(circle at 24% 18%, rgba(0, 212, 170, 0.18), transparent 28%),
        radial-gradient(circle at 82% 72%, rgba(199, 0, 57, 0.20), transparent 30%),
        linear-gradient(135deg, rgba(5, 10, 20, 0.96), rgba(8, 17, 28, 0.94));
    box-shadow: inset 0 0 0 1px rgba(0, 212, 170, 0.28), inset 0 0 38px rgba(0, 212, 170, 0.12);
    pointer-events: auto;
}

.crypto-maze-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: var(--jq-radius);
    border: 1px solid rgba(0, 212, 170, 0.26);
    background:
        linear-gradient(rgba(0, 212, 170, 0.11) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 170, 0.11) 1px, transparent 1px),
        radial-gradient(circle at center, rgba(0, 212, 170, 0.10), transparent 58%),
        #061019;
    background-size: 12.5% 12.5%, 12.5% 12.5%, 100% 100%, 100% 100%;
}

.crypto-maze-grid.is-hack-pulse {
    animation: cryptoHackPulse 760ms ease-in-out infinite;
    border-color: rgba(246, 200, 95, 0.68);
}

.crypto-cell {
    position: relative;
    min-width: 0;
    min-height: 0;
    border: 1px solid rgba(0, 212, 170, 0.10);
    border-radius: 0;
    background:
        radial-gradient(circle at center, rgba(94, 161, 255, 0.07), transparent 62%),
        rgba(255, 255, 255, 0.015);
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    overflow: hidden;
    transition: background 140ms ease, box-shadow 140ms ease, transform 140ms ease, border-color 140ms ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.crypto-cell::before {
    content: "";
    position: absolute;
    inset: 38%;
    border-radius: 50%;
    background: rgba(0, 212, 170, 0.22);
    box-shadow: 0 0 12px rgba(0, 212, 170, 0.22);
}

.crypto-cell:hover,
.crypto-cell:focus-visible,
.crypto-cell.is-direct-link {
    z-index: 2;
    border-color: rgba(246, 200, 95, 0.58);
    background:
        radial-gradient(circle at center, rgba(246, 200, 95, 0.17), rgba(0, 212, 170, 0.06) 62%),
        rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 0 0 1px rgba(246, 200, 95, 0.22), 0 0 16px rgba(246, 200, 95, 0.10);
}

.crypto-cell.is-wall {
    cursor: not-allowed;
    background:
        linear-gradient(135deg, rgba(199, 0, 57, 0.55), rgba(246, 200, 95, 0.16)),
        rgba(20, 8, 14, 0.88);
    box-shadow: inset 0 0 0 1px rgba(255, 23, 68, 0.32);
}

.crypto-cell.is-trail {
    background:
        linear-gradient(135deg, rgba(0, 212, 170, 0.25), rgba(94, 161, 255, 0.13)),
        rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 14px rgba(0, 212, 170, 0.26);
}

.crypto-cell.is-path-preview {
    background:
        linear-gradient(135deg, rgba(246, 200, 95, 0.19), rgba(0, 212, 170, 0.10)),
        rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 16px rgba(246, 200, 95, 0.22), 0 0 12px rgba(246, 200, 95, 0.12);
}

.crypto-cell.is-invalid {
    animation: cryptoCellError 680ms ease;
    border-color: rgba(255, 23, 68, 0.9);
    background: rgba(255, 23, 68, 0.20);
}

.crypto-cell.is-collected {
    animation: cryptoCellCollect 360ms ease;
}

.crypto-cell.is-portal-locked {
    background:
        radial-gradient(circle at center, rgba(199, 0, 57, 0.30), transparent 64%),
        rgba(255, 255, 255, 0.025);
}

.crypto-cell.is-key-locked {
    background:
        radial-gradient(circle at center, rgba(246, 200, 95, 0.18), rgba(199, 0, 57, 0.16) 62%),
        rgba(255, 255, 255, 0.025);
}

.crypto-cell.is-portal-open {
    background:
        radial-gradient(circle at center, rgba(0, 255, 196, 0.42), transparent 62%),
        rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 18px rgba(0, 212, 170, 0.34), 0 0 18px rgba(0, 212, 170, 0.22);
}

.crypto-entity {
    position: relative;
    z-index: 2;
    width: clamp(20px, 6.2vw, 38px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: clamp(0.86rem, 3.2vw, 1.36rem);
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.82);
}

.crypto-entity--player {
    background: linear-gradient(135deg, var(--jq-cyan), var(--jq-blue));
    color: #031410;
    box-shadow: 0 0 22px rgba(0, 212, 170, 0.66);
    animation: cryptoPlayerPulse 980ms ease-in-out infinite;
}

.crypto-entity--coin {
    background: linear-gradient(135deg, #f8d56b, #f59e0b);
    color: #211405;
    box-shadow: 0 0 18px rgba(246, 200, 95, 0.72);
    animation: cryptoCoinSpin 1300ms linear infinite;
}

.crypto-entity--code {
    background: linear-gradient(135deg, rgba(94, 161, 255, 0.42), rgba(0, 212, 170, 0.20));
    color: #e9fbff;
    border: 1px solid rgba(0, 212, 170, 0.55);
    box-shadow: 0 0 18px rgba(0, 212, 170, 0.38);
    animation: cryptoCodeBlink 980ms ease-in-out infinite;
}

.crypto-entity--key {
    background: linear-gradient(135deg, var(--jq-gold), var(--jq-cyan));
    color: #061019;
    box-shadow: 0 0 22px rgba(246, 200, 95, 0.62);
}

.crypto-cell.is-key-locked .crypto-entity--key {
    background: linear-gradient(135deg, rgba(246, 200, 95, 0.72), rgba(199, 0, 57, 0.72));
    color: #fff8dd;
    box-shadow: 0 0 18px rgba(199, 0, 57, 0.48);
}

.crypto-entity--virus {
    background: linear-gradient(135deg, var(--jq-red-hot), #7f1d1d);
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 23, 68, 0.72);
    animation: cryptoVirusPulse 760ms ease-in-out infinite;
}

.crypto-entity--wall {
    border-radius: 8px;
    background: rgba(5, 6, 10, 0.34);
    color: #ffd7df;
    border: 1px solid rgba(255, 23, 68, 0.42);
}

.crypto-entity--portal {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.94), rgba(185, 108, 255, 0.86));
    color: #04120f;
    box-shadow: 0 0 22px rgba(0, 212, 170, 0.62);
}

.crypto-node-dot {
    position: relative;
    z-index: 1;
    width: 16%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(0, 212, 170, 0.36);
    box-shadow: 0 0 10px rgba(0, 212, 170, 0.34);
}

.crypto-level-track {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.crypto-level-pill {
    min-height: 28px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    background: rgba(255, 255, 255, 0.055);
    color: var(--jq-muted);
    font-size: 0.78rem;
    font-weight: 900;
}

.crypto-level-pill.is-active {
    border-color: rgba(246, 200, 95, 0.64);
    color: var(--jq-gold);
    background: rgba(246, 200, 95, 0.12);
}

.crypto-level-pill.is-complete {
    border-color: rgba(52, 211, 153, 0.64);
    color: #dffdf7;
    background: rgba(52, 211, 153, 0.13);
}

.crypto-level-pill.is-lost {
    border-color: rgba(255, 23, 68, 0.66);
    color: #ffd7df;
    background: rgba(255, 23, 68, 0.12);
}

.crypto-hud {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    gap: 8px;
}

.crypto-stat {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 2px 7px;
    align-items: center;
    min-width: 0;
    padding: 9px;
    border-radius: var(--jq-radius);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.055);
}

.crypto-stat i {
    grid-row: span 2;
    color: var(--jq-cyan);
}

.crypto-stat span {
    color: var(--jq-dim);
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.crypto-stat strong {
    color: #fff;
    font-size: 0.92rem;
    overflow-wrap: anywhere;
}

.crypto-briefing,
.crypto-console {
    min-height: 42px;
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border-radius: var(--jq-radius);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.055);
}

.crypto-briefing strong {
    color: #fff;
}

.crypto-briefing span,
.crypto-briefing__hint,
.crypto-console {
    color: var(--jq-muted);
    font-weight: 750;
    line-height: 1.42;
}

.crypto-briefing__hint {
    display: block;
    margin-top: 3px;
    color: #dffdf7;
    font-style: normal;
    font-weight: 850;
}

.crypto-console {
    display: flex;
    align-items: center;
    font-family: "Space Grotesk", "Inter", sans-serif;
}

.crypto-console.is-correct {
    border-color: rgba(52, 211, 153, 0.56);
    background: rgba(52, 211, 153, 0.12);
    color: #dffdf7;
}

.crypto-console.is-wrong {
    border-color: rgba(255, 23, 68, 0.58);
    background: rgba(255, 23, 68, 0.12);
    color: #ffd7df;
}

.crypto-actions .jq-button[hidden] {
    display: none;
}

.crypto-reveal-panel {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.crypto-reveal-lines {
    display: grid;
    gap: 10px;
}

.crypto-reveal-line {
    margin: 0;
    padding: 12px;
    border-radius: var(--jq-radius);
    border: 1px solid rgba(246, 200, 95, 0.28);
    background:
        linear-gradient(135deg, rgba(246, 200, 95, 0.10), rgba(0, 212, 170, 0.06)),
        rgba(255, 255, 255, 0.05);
    color: #f8fbff !important;
    font-weight: 850;
    line-height: 1.48;
    transform: translateY(8px);
    opacity: 0;
}

.crypto-reveal-line.is-visible {
    animation: cryptoRevealIn 460ms ease forwards;
}

.crypto-reveal-duo {
    display: grid;
    grid-template-columns: 52px 36px 52px;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--jq-radius);
    border: 1px solid rgba(0, 212, 170, 0.24);
    background: rgba(0, 212, 170, 0.075);
}

.crypto-reveal-duo > i,
.crypto-reveal-duo .setup-piece-glyph {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    font-size: 2rem;
}

.crypto-reveal-duo > i:first-child {
    border-radius: 50%;
    background: linear-gradient(135deg, var(--jq-cyan), var(--jq-blue));
    color: #031410;
    box-shadow: 0 0 22px rgba(0, 212, 170, 0.42);
}

.crypto-reveal-duo > i:nth-child(2) {
    width: 36px;
    color: var(--jq-gold);
}

.crypto-rook-visual {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.crypto-rook-card {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 12px;
    border-radius: var(--jq-radius);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.055);
}

.crypto-rook-card i {
    color: var(--jq-cyan);
}

.crypto-rook-card strong {
    color: #fff;
}

.crypto-rook-card span {
    color: var(--jq-muted);
    font-size: 0.84rem;
    line-height: 1.36;
}

.prism-circuit-overlay {
    position: absolute;
    inset: 0;
    z-index: 34;
    padding: 2.2%;
    border-radius: var(--jq-radius);
    background:
        radial-gradient(circle at 20% 18%, rgba(94, 161, 255, 0.22), transparent 28%),
        radial-gradient(circle at 78% 72%, rgba(246, 200, 95, 0.22), transparent 30%),
        linear-gradient(135deg, rgba(5, 11, 24, 0.96), rgba(22, 15, 35, 0.94));
    box-shadow: inset 0 0 0 1px rgba(94, 161, 255, 0.30), inset 0 0 42px rgba(246, 200, 95, 0.10);
    pointer-events: auto;
}

.prism-circuit-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    grid-template-rows: repeat(8, minmax(0, 1fr));
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: var(--jq-radius);
    border: 1px solid rgba(94, 161, 255, 0.28);
    background:
        linear-gradient(rgba(94, 161, 255, 0.10) 1px, transparent 1px),
        linear-gradient(90deg, rgba(246, 200, 95, 0.10) 1px, transparent 1px),
        radial-gradient(circle at center, rgba(94, 161, 255, 0.10), transparent 58%),
        rgba(6, 10, 20, 0.86);
    background-size: 12.5% 12.5%, 12.5% 12.5%, 100% 100%, 100% 100%;
}

.prism-cell {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 0;
    appearance: none;
    -webkit-appearance: none;
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.prism-cell--blue {
    background:
        radial-gradient(circle at center, rgba(94, 161, 255, 0.16), transparent 62%),
        rgba(17, 42, 76, 0.30);
}

.prism-cell--orange {
    background:
        radial-gradient(circle at center, rgba(246, 200, 95, 0.16), transparent 62%),
        rgba(78, 45, 13, 0.28);
}

.prism-cell::before {
    content: "";
    position: absolute;
    inset: 39%;
    border-radius: 50%;
    background: currentColor;
    color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 0 12px currentColor;
}

.prism-cell--blue::before {
    color: rgba(94, 161, 255, 0.34);
}

.prism-cell--orange::before {
    color: rgba(246, 200, 95, 0.34);
}

.prism-cell:hover,
.prism-cell:focus-visible,
.prism-cell.is-diagonal-link {
    z-index: 2;
    border-color: rgba(0, 212, 170, 0.58);
    background:
        radial-gradient(circle at center, rgba(0, 212, 170, 0.18), rgba(246, 200, 95, 0.06) 62%),
        rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 0 0 1px rgba(0, 212, 170, 0.22), 0 0 16px rgba(0, 212, 170, 0.12);
}

.prism-cell.is-wall {
    cursor: not-allowed;
    background:
        linear-gradient(135deg, rgba(104, 112, 132, 0.62), rgba(20, 24, 35, 0.82)),
        rgba(12, 14, 22, 0.88);
    box-shadow: inset 0 0 0 1px rgba(214, 226, 255, 0.20);
}

.prism-cell.is-scanner-line {
    background:
        linear-gradient(90deg, rgba(255, 23, 68, 0.24), rgba(246, 200, 95, 0.10)),
        rgba(255, 255, 255, 0.025);
    box-shadow: inset 0 0 18px rgba(255, 23, 68, 0.20);
}

.prism-cell.is-trail {
    background:
        linear-gradient(135deg, rgba(94, 161, 255, 0.25), rgba(246, 200, 95, 0.12)),
        rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 14px rgba(94, 161, 255, 0.26);
}

.prism-cell.is-path-preview {
    background:
        linear-gradient(135deg, rgba(0, 212, 170, 0.22), rgba(246, 200, 95, 0.16)),
        rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 16px rgba(0, 212, 170, 0.24), 0 0 12px rgba(246, 200, 95, 0.12);
}

.prism-cell.is-invalid {
    animation: cryptoCellError 680ms ease;
    border-color: rgba(255, 23, 68, 0.9);
    background: rgba(255, 23, 68, 0.20);
}

.prism-cell.is-collected {
    animation: cryptoCellCollect 360ms ease;
}

.prism-cell.is-portal-locked,
.prism-cell.is-key-locked {
    background:
        radial-gradient(circle at center, rgba(199, 0, 57, 0.25), rgba(246, 200, 95, 0.10) 62%),
        rgba(255, 255, 255, 0.025);
}

.prism-cell.is-portal-open {
    background:
        radial-gradient(circle at center, rgba(0, 255, 196, 0.40), transparent 62%),
        rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 18px rgba(0, 212, 170, 0.34), 0 0 18px rgba(0, 212, 170, 0.22);
}

.prism-entity--player {
    background: linear-gradient(135deg, #5ea1ff, #f6c85f);
    color: #07111f;
    box-shadow: 0 0 24px rgba(94, 161, 255, 0.62);
    animation: cryptoPlayerPulse 980ms ease-in-out infinite;
}

.prism-entity--core {
    background: linear-gradient(135deg, #f8d56b, #00d4aa);
    color: #08140d;
    box-shadow: 0 0 20px rgba(246, 200, 95, 0.68);
    animation: cryptoCoinSpin 1400ms linear infinite;
}

.prism-entity--chip {
    background: linear-gradient(135deg, rgba(94, 161, 255, 0.78), rgba(0, 212, 170, 0.70));
    color: #04120f;
    box-shadow: 0 0 18px rgba(94, 161, 255, 0.50);
}

.prism-entity--decoy {
    background: linear-gradient(135deg, rgba(246, 200, 95, 0.82), rgba(255, 23, 68, 0.62));
    color: #fff8dd;
    border: 1px solid rgba(246, 200, 95, 0.54);
    box-shadow: 0 0 18px rgba(246, 200, 95, 0.42);
}

.prism-entity--key {
    background: linear-gradient(135deg, var(--jq-gold), var(--jq-blue));
    color: #061019;
    box-shadow: 0 0 22px rgba(246, 200, 95, 0.62);
}

.prism-entity--drone {
    background: linear-gradient(135deg, #ff1744, #5ea1ff);
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 23, 68, 0.62);
    animation: cryptoVirusPulse 760ms ease-in-out infinite;
}

.prism-entity--scanner {
    background: linear-gradient(135deg, #ff1744, #f6c85f);
    color: #210507;
    box-shadow: 0 0 20px rgba(255, 23, 68, 0.48);
}

.prism-entity--wall {
    border-radius: 8px;
    background: rgba(8, 10, 16, 0.62);
    color: #dce8ff;
    border: 1px solid rgba(214, 226, 255, 0.26);
}

.prism-entity--portal {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.94), rgba(246, 200, 95, 0.86));
    color: #04120f;
    box-shadow: 0 0 22px rgba(0, 212, 170, 0.58);
}

.prism-node-dot {
    position: relative;
    z-index: 1;
    width: 16%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.20);
}

.prism-stat i,
.prism-reveal-card i {
    color: #5ea1ff;
}

.prism-level-pill.is-active {
    border-color: rgba(94, 161, 255, 0.66);
    color: #dfeaff;
    background: rgba(94, 161, 255, 0.13);
}

.prism-reveal-line {
    border-color: rgba(94, 161, 255, 0.30);
    background:
        linear-gradient(135deg, rgba(94, 161, 255, 0.12), rgba(246, 200, 95, 0.08)),
        rgba(255, 255, 255, 0.05);
}

.prism-reveal-duo {
    border-color: rgba(94, 161, 255, 0.26);
    background: rgba(94, 161, 255, 0.075);
}

.prism-reveal-duo > i:first-child {
    background: linear-gradient(135deg, #5ea1ff, #f6c85f);
    color: #07111f;
    box-shadow: 0 0 22px rgba(94, 161, 255, 0.42);
}

.prism-reveal-duo > i:nth-child(2) {
    color: var(--jq-gold);
}

.prism-reveal-card {
    border-color: rgba(94, 161, 255, 0.16);
    background: rgba(94, 161, 255, 0.055);
}

.neon-rooftops-overlay {
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(9, 13, 25, 0.72), rgba(7, 8, 18, 0.95)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 22px),
        radial-gradient(circle at 18% 15%, rgba(0, 229, 255, 0.20), transparent 24%),
        radial-gradient(circle at 82% 78%, rgba(255, 106, 87, 0.20), transparent 26%),
        linear-gradient(135deg, rgba(12, 17, 34, 0.98), rgba(19, 15, 28, 0.96));
    box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.22), inset 0 0 42px rgba(255, 106, 87, 0.10);
}

.neon-rooftops-overlay::before,
.neon-rooftops-overlay::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.neon-rooftops-overlay::before {
    inset: auto -6% 0;
    height: 28%;
    background:
        linear-gradient(180deg, transparent, rgba(1, 4, 12, 0.88)),
        repeating-linear-gradient(90deg, transparent 0 18px, rgba(0, 229, 255, 0.18) 18px 20px, transparent 20px 44px);
    clip-path: polygon(0 100%, 0 44%, 5% 44%, 5% 20%, 12% 20%, 12% 58%, 18% 58%, 18% 30%, 26% 30%, 26% 70%, 34% 70%, 34% 16%, 43% 16%, 43% 54%, 49% 54%, 49% 34%, 58% 34%, 58% 68%, 66% 68%, 66% 24%, 75% 24%, 75% 58%, 83% 58%, 83% 14%, 92% 14%, 92% 48%, 100% 48%, 100% 100%);
    opacity: 0.58;
}

.neon-rooftops-overlay::after {
    inset: 2.2%;
    border-radius: calc(var(--jq-radius) - 2px);
    background:
        linear-gradient(135deg, transparent 0 48.7%, rgba(0, 229, 255, 0.16) 49%, transparent 51%),
        linear-gradient(45deg, transparent 0 48.7%, rgba(255, 106, 87, 0.13) 49%, transparent 51%);
    background-size: 25% 25%;
    mix-blend-mode: screen;
    opacity: 0.48;
}

.neon-rooftops-grid {
    z-index: 1;
    gap: clamp(2px, 0.42vw, 4px);
    padding: clamp(3px, 0.52vw, 6px);
    grid-template-columns: repeat(8, minmax(0, 1fr));
    grid-template-rows: repeat(8, minmax(0, 1fr));
    border-color: rgba(0, 229, 255, 0.22);
    border-radius: 10px;
    background:
        radial-gradient(circle at 18% 20%, rgba(0, 229, 255, 0.22), transparent 24%),
        radial-gradient(circle at 86% 80%, rgba(255, 106, 87, 0.20), transparent 26%),
        linear-gradient(135deg, rgba(2, 7, 16, 0.98), rgba(12, 11, 20, 0.98));
    box-shadow:
        inset 0 0 0 1px rgba(0, 229, 255, 0.20),
        inset 0 0 26px rgba(0, 229, 255, 0.12),
        0 16px 32px rgba(0, 0, 0, 0.34);
}

.neon-cell {
    border: 1px solid rgba(255, 255, 255, 0.045);
    border-radius: 6px;
    isolation: isolate;
    transform: translateZ(0);
}

.neon-cell::before {
    inset: 12%;
    border-radius: 5px;
    background:
        linear-gradient(135deg, transparent 0 44%, currentColor 45% 55%, transparent 56%),
        linear-gradient(45deg, transparent 0 47%, rgba(255, 255, 255, 0.14) 48% 52%, transparent 53%);
    color: rgba(255, 255, 255, 0.16);
    box-shadow: none;
    opacity: 0.72;
    z-index: 0;
}

.neon-cell::after {
    content: "";
    position: absolute;
    inset: 8%;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.055);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 38%),
        repeating-linear-gradient(90deg, transparent 0 10px, rgba(255, 255, 255, 0.035) 10px 11px);
    opacity: 0.70;
    pointer-events: none;
    z-index: 0;
}

.neon-cell > * {
    z-index: 2;
}

.neon-cell--blue {
    background:
        radial-gradient(circle at 50% 50%, rgba(0, 229, 255, 0.16), transparent 34%),
        linear-gradient(135deg, rgba(3, 41, 57, 0.96), rgba(7, 19, 32, 0.98));
    box-shadow: inset 0 -12px 22px rgba(0, 229, 255, 0.065);
}

.neon-cell--orange {
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 106, 87, 0.15), transparent 34%),
        linear-gradient(135deg, rgba(72, 28, 35, 0.96), rgba(27, 16, 25, 0.98));
    box-shadow: inset 0 -12px 22px rgba(255, 106, 87, 0.06);
}

.neon-cell--blue::before {
    color: rgba(0, 229, 255, 0.42);
}

.neon-cell--orange::before {
    color: rgba(255, 138, 91, 0.42);
}

.neon-cell:hover,
.neon-cell:focus-visible,
.neon-cell.is-diagonal-link {
    border-color: rgba(196, 255, 77, 0.62);
    background:
        radial-gradient(circle at center, rgba(196, 255, 77, 0.18), rgba(0, 229, 255, 0.08) 62%),
        linear-gradient(135deg, rgba(17, 57, 63, 0.92), rgba(33, 27, 43, 0.94));
    box-shadow:
        inset 0 0 0 1px rgba(196, 255, 77, 0.22),
        0 0 18px rgba(196, 255, 77, 0.13);
}

.neon-cell.is-diagonal-link::before,
.neon-cell.is-path-preview::before,
.neon-cell.is-trail::before {
    color: rgba(196, 255, 77, 0.54);
    opacity: 1;
}

.neon-cell.is-wall {
    background:
        linear-gradient(135deg, rgba(37, 42, 55, 0.92), rgba(109, 63, 46, 0.56)),
        rgba(13, 13, 18, 0.88);
    box-shadow: inset 0 0 0 1px rgba(255, 202, 98, 0.22);
}

.neon-cell.is-scanner-line {
    background:
        linear-gradient(90deg, rgba(255, 216, 92, 0.28), rgba(255, 61, 113, 0.12)),
        rgba(255, 255, 255, 0.028);
    box-shadow: inset 0 0 18px rgba(255, 216, 92, 0.22);
}

.neon-cell.is-trail {
    background:
        linear-gradient(135deg, rgba(0, 229, 255, 0.25), rgba(196, 255, 77, 0.13)),
        rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 14px rgba(0, 229, 255, 0.25);
}

.neon-cell.is-drone-trail {
    background:
        linear-gradient(135deg, rgba(255, 40, 95, 0.24), rgba(255, 216, 92, 0.12)),
        rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 0 15px rgba(255, 40, 95, 0.28);
}

.neon-cell.is-path-preview {
    background:
        linear-gradient(135deg, rgba(196, 255, 77, 0.24), rgba(255, 106, 87, 0.14)),
        rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 16px rgba(196, 255, 77, 0.22), 0 0 12px rgba(0, 229, 255, 0.14);
}

.neon-entity--player {
    background: linear-gradient(135deg, #00e5ff, #c4ff4d);
    color: #071016;
    box-shadow: 0 0 24px rgba(0, 229, 255, 0.64);
}

.neon-entity--delivery {
    background: linear-gradient(135deg, #c4ff4d, #ffd85c);
    color: #141805;
    box-shadow: 0 0 20px rgba(196, 255, 77, 0.62);
}

.neon-entity--battery {
    background: linear-gradient(135deg, #00e5ff, #8affc1);
    color: #061416;
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.56);
}

.neon-entity--decoy {
    background: linear-gradient(135deg, rgba(255, 106, 87, 0.92), rgba(255, 216, 92, 0.72));
    color: #fff8dd;
    border-color: rgba(255, 216, 92, 0.48);
    box-shadow: 0 0 18px rgba(255, 106, 87, 0.42);
}

.neon-entity--key {
    background: linear-gradient(135deg, #ffd85c, #ff3d71);
    color: #1f0710;
    box-shadow: 0 0 22px rgba(255, 216, 92, 0.58);
}

.neon-entity--drone {
    background: linear-gradient(135deg, #ff3d71, #00e5ff);
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 61, 113, 0.62);
}

.neon-entity--stalker {
    background: linear-gradient(135deg, #ff285f, #ffd85c);
    color: #210507;
    box-shadow: 0 0 18px rgba(255, 40, 95, 0.72), 0 0 34px rgba(255, 216, 92, 0.34);
    animation: neonStalkerPulse 620ms ease-in-out infinite;
}

.neon-entity--patrol {
    background: linear-gradient(135deg, #00e5ff, #ff6a57);
    color: #061019;
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.58), 0 0 30px rgba(255, 106, 87, 0.28);
    animation: neonPatrolSweep 820ms ease-in-out infinite;
}

.neon-entity--scanner {
    background: linear-gradient(135deg, #ffd85c, #ff6a57);
    color: #210507;
    box-shadow: 0 0 20px rgba(255, 216, 92, 0.48);
}

.neon-entity--wall {
    background: rgba(13, 14, 20, 0.76);
    color: #ffd85c;
    border-color: rgba(255, 216, 92, 0.28);
}

.neon-entity--exit {
    background: linear-gradient(135deg, #c4ff4d, #00e5ff);
    color: #071016;
    box-shadow: 0 0 22px rgba(196, 255, 77, 0.54);
}

.neon-rooftop-dot {
    width: 18%;
    min-width: 8px;
    max-width: 14px;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.60), rgba(255, 255, 255, 0.10) 58%, transparent 60%);
    box-shadow:
        0 0 8px currentColor,
        0 0 16px currentColor;
}

.neon-cell--blue .neon-rooftop-dot {
    color: rgba(0, 229, 255, 0.48);
}

.neon-cell--orange .neon-rooftop-dot {
    color: rgba(255, 138, 91, 0.46);
}

.neon-stat i,
.neon-reveal-card i {
    color: #00e5ff;
}

.neon-level-pill.is-active {
    border-color: rgba(196, 255, 77, 0.62);
    color: #edffd1;
    background: rgba(196, 255, 77, 0.12);
}

.neon-reveal-line {
    border-color: rgba(0, 229, 255, 0.28);
    background:
        linear-gradient(135deg, rgba(0, 229, 255, 0.10), rgba(255, 106, 87, 0.07)),
        rgba(255, 255, 255, 0.048);
}

.neon-reveal-duo {
    border-color: rgba(196, 255, 77, 0.24);
    background: rgba(196, 255, 77, 0.07);
}

.neon-reveal-duo > i:first-child {
    background: linear-gradient(135deg, #00e5ff, #c4ff4d);
    color: #071016;
    box-shadow: 0 0 22px rgba(0, 229, 255, 0.42);
}

.neon-reveal-duo > i:nth-child(2) {
    color: #ffd85c;
}

.neon-reveal-card {
    border-color: rgba(0, 229, 255, 0.16);
    background: rgba(0, 229, 255, 0.05);
}

.rescue-operation-overlay {
    position: absolute;
    inset: 0;
    z-index: 34;
    padding: 2%;
    pointer-events: auto;
    background:
        radial-gradient(circle at 18% 18%, rgba(45, 212, 191, 0.15), transparent 30%),
        radial-gradient(circle at 82% 20%, rgba(250, 204, 21, 0.14), transparent 28%),
        linear-gradient(135deg, rgba(3, 12, 22, 0.18), rgba(40, 17, 24, 0.18));
}

.rescue-operation-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    grid-template-rows: repeat(8, minmax(0, 1fr));
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(125, 211, 252, 0.36);
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(9, 18, 31, 0.92), rgba(23, 29, 42, 0.90)),
        repeating-linear-gradient(0deg, transparent 0 11px, rgba(125, 211, 252, 0.045) 12px);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.035),
        inset 0 0 42px rgba(14, 165, 233, 0.15),
        0 18px 40px rgba(0, 0, 0, 0.24);
}

.rescue-cell {
    position: relative;
    box-sizing: border-box;
    min-width: 0;
    min-height: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px solid rgba(125, 211, 252, 0.13);
    color: #e5f8ff;
    cursor: pointer;
    background: rgba(12, 20, 33, 0.62);
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.rescue-cell--light {
    background:
        radial-gradient(circle at center, rgba(45, 212, 191, 0.08), transparent 58%),
        rgba(16, 35, 48, 0.74);
}

.rescue-cell--dark {
    background:
        radial-gradient(circle at center, rgba(251, 113, 133, 0.06), transparent 58%),
        rgba(25, 25, 39, 0.78);
}

.rescue-cell::before {
    content: "";
    position: absolute;
    inset: 42%;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.22;
    box-shadow: 0 0 12px currentColor;
}

.rescue-cell:hover,
.rescue-cell:focus-visible,
.rescue-cell.is-command-link {
    z-index: 2;
    border-color: rgba(250, 204, 21, 0.62);
    box-shadow: inset 0 0 18px rgba(250, 204, 21, 0.13), 0 0 14px rgba(45, 212, 191, 0.16);
}

.rescue-cell.is-path-preview,
.rescue-cell.is-trail {
    background:
        linear-gradient(135deg, rgba(45, 212, 191, 0.28), rgba(96, 165, 250, 0.16)),
        rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 18px rgba(45, 212, 191, 0.28), 0 0 16px rgba(45, 212, 191, 0.16);
}

.rescue-cell.is-drone-trail {
    background:
        linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(251, 113, 133, 0.14)),
        rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 0 16px rgba(168, 85, 247, 0.24);
}

.rescue-cell.is-wall {
    cursor: not-allowed;
    background:
        linear-gradient(135deg, rgba(51, 65, 85, 0.94), rgba(15, 23, 42, 0.92)),
        rgba(5, 7, 12, 0.88);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.22);
}

.rescue-cell.is-fire {
    cursor: not-allowed;
    background:
        radial-gradient(circle at center, rgba(248, 113, 113, 0.35), transparent 58%),
        linear-gradient(135deg, rgba(127, 29, 29, 0.72), rgba(251, 146, 60, 0.18)),
        rgba(20, 8, 8, 0.88);
}

.rescue-cell.is-invalid {
    animation: cryptoCellError 680ms ease;
    border-color: rgba(248, 113, 113, 0.92);
    background: rgba(248, 113, 113, 0.20);
}

.rescue-cell.is-collected {
    animation: rescuePulse 460ms ease;
}

.rescue-cell.is-exit-locked {
    background:
        radial-gradient(circle at center, rgba(148, 163, 184, 0.22), transparent 62%),
        rgba(255, 255, 255, 0.025);
}

.rescue-cell.is-exit-open {
    background:
        radial-gradient(circle at center, rgba(52, 211, 153, 0.40), transparent 62%),
        rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 18px rgba(52, 211, 153, 0.32), 0 0 20px rgba(52, 211, 153, 0.22);
}

.rescue-entity {
    position: relative;
    z-index: 2;
    width: clamp(20px, 6vw, 38px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-size: clamp(0.8rem, 2.8vw, 1.1rem);
}

.rescue-entity--player {
    background: linear-gradient(135deg, #2dd4bf, #60a5fa);
    color: #04111f;
    box-shadow: 0 0 24px rgba(45, 212, 191, 0.66);
    animation: rescueUnitPulse 980ms ease-in-out infinite;
}

.rescue-entity--rescue {
    background: linear-gradient(135deg, #facc15, #fb7185);
    color: #211405;
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.64);
}

.rescue-entity--exit {
    background: linear-gradient(135deg, #34d399, #2dd4bf);
    color: #04120f;
    box-shadow: 0 0 22px rgba(52, 211, 153, 0.58);
}

.rescue-entity--drone,
.rescue-entity--hunter {
    background: linear-gradient(135deg, #a855f7, #fb7185);
    color: #fff;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.62);
}

.rescue-entity--hunter {
    animation: rescueHunterPulse 620ms ease-in-out infinite;
}

.rescue-entity--wall {
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.78);
    color: #cbd5e1;
}

.rescue-entity--fire {
    background: linear-gradient(135deg, #ef4444, #f59e0b);
    color: #fff7ed;
    box-shadow: 0 0 22px rgba(239, 68, 68, 0.60);
}

.rescue-node-dot {
    position: relative;
    z-index: 1;
    width: 17%;
    min-width: 7px;
    max-width: 13px;
    aspect-ratio: 1;
    border-radius: 50%;
    color: rgba(125, 211, 252, 0.42);
    background: currentColor;
    box-shadow: 0 0 12px currentColor;
}

.rescue-level-track {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.rescue-level-pill {
    min-height: 28px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--jq-muted);
    font-size: 0.72rem;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.045);
}

.rescue-level-pill.is-active {
    border-color: rgba(45, 212, 191, 0.62);
    color: #dffdf7;
    background: rgba(45, 212, 191, 0.12);
}

.rescue-level-pill.is-complete {
    border-color: rgba(52, 211, 153, 0.64);
    color: #dffdf7;
    background: rgba(52, 211, 153, 0.13);
}

.rescue-level-pill.is-lost {
    border-color: rgba(248, 113, 113, 0.66);
    color: #ffe4e6;
    background: rgba(248, 113, 113, 0.12);
}

.rescue-hud {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    gap: 8px;
}

.rescue-stat {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 2px 7px;
    align-items: center;
    padding: 8px 9px;
    border: 1px solid rgba(125, 211, 252, 0.16);
    border-radius: var(--jq-radius);
    background: rgba(255, 255, 255, 0.045);
    min-width: 0;
    overflow: hidden;
}

.rescue-stat i {
    grid-row: span 2;
    color: #2dd4bf;
}

.rescue-stat span {
    color: var(--jq-dim);
    font-size: 0.64rem;
    font-weight: 900;
    line-height: 1.05;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.rescue-stat strong {
    color: #fff;
    font-size: 0.92rem;
    line-height: 1.05;
    min-width: 0;
}

.rescue-briefing,
.rescue-console {
    min-height: 42px;
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: var(--jq-radius);
    background: rgba(255, 255, 255, 0.045);
}

.rescue-briefing strong {
    color: #fff;
}

.rescue-briefing span,
.rescue-briefing em,
.rescue-console {
    color: var(--jq-muted);
    font-weight: 750;
    line-height: 1.42;
}

.rescue-briefing em {
    color: #e0f2fe;
    font-style: normal;
}

.rescue-console {
    display: flex;
    align-items: center;
    font-family: "Space Grotesk", "Inter", sans-serif;
}

.rescue-console.is-correct {
    border-color: rgba(52, 211, 153, 0.56);
    background: rgba(52, 211, 153, 0.12);
    color: #dffdf7;
}

.rescue-console.is-wrong {
    border-color: rgba(248, 113, 113, 0.58);
    background: rgba(248, 113, 113, 0.12);
    color: #ffe4e6;
}

.rescue-actions .jq-button[hidden] {
    display: none;
}

.rescue-reveal-line {
    border-color: rgba(45, 212, 191, 0.28);
    background:
        linear-gradient(135deg, rgba(45, 212, 191, 0.10), rgba(250, 204, 21, 0.07)),
        rgba(255, 255, 255, 0.048);
}

.rescue-reveal-duo {
    border-color: rgba(250, 204, 21, 0.24);
    background: rgba(45, 212, 191, 0.07);
}

.rescue-reveal-duo > i:first-child {
    background: linear-gradient(135deg, #2dd4bf, #60a5fa);
    color: #04111f;
    box-shadow: 0 0 22px rgba(45, 212, 191, 0.42);
}

.rescue-card {
    border-color: rgba(45, 212, 191, 0.18);
    background: rgba(45, 212, 191, 0.055);
}

.rescue-card i {
    color: #2dd4bf;
}

.core-custodian-overlay {
    position: absolute;
    inset: 0;
    z-index: 34;
    padding: 2%;
    pointer-events: auto;
    background:
        radial-gradient(circle at 18% 20%, rgba(250, 204, 21, 0.18), transparent 28%),
        radial-gradient(circle at 82% 18%, rgba(20, 184, 166, 0.18), transparent 30%),
        radial-gradient(circle at 58% 86%, rgba(244, 63, 94, 0.13), transparent 26%),
        linear-gradient(145deg, rgba(12, 9, 24, 0.22), rgba(12, 22, 18, 0.18));
}

.core-custodian-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    grid-template-rows: repeat(8, minmax(0, 1fr));
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(250, 204, 21, 0.34);
    border-radius: 10px;
    background:
        radial-gradient(circle at center, rgba(250, 204, 21, 0.10), transparent 58%),
        linear-gradient(135deg, rgba(23, 16, 34, 0.94), rgba(9, 33, 31, 0.91));
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.035),
        inset 0 0 42px rgba(250, 204, 21, 0.13),
        0 18px 40px rgba(0, 0, 0, 0.28);
}

.core-cell {
    position: relative;
    box-sizing: border-box;
    min-width: 0;
    min-height: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(250, 204, 21, 0.12);
    color: #fef3c7;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.core-cell--light {
    background:
        radial-gradient(circle at 50% 48%, rgba(250, 204, 21, 0.08), transparent 58%),
        rgba(37, 29, 43, 0.80);
}

.core-cell--dark {
    background:
        radial-gradient(circle at 50% 48%, rgba(20, 184, 166, 0.09), transparent 58%),
        rgba(12, 37, 38, 0.82);
}

.core-cell::before {
    content: "";
    position: absolute;
    inset: 43%;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.20;
    box-shadow: 0 0 14px currentColor;
}

.core-cell:hover,
.core-cell:focus-visible,
.core-cell.is-command-link {
    z-index: 2;
    border-color: rgba(52, 211, 153, 0.72);
    background:
        radial-gradient(circle at center, rgba(52, 211, 153, 0.18), transparent 62%),
        rgba(255, 255, 255, 0.045);
    box-shadow: inset 0 0 18px rgba(52, 211, 153, 0.18), 0 0 15px rgba(250, 204, 21, 0.16);
}

.core-cell.is-wall {
    cursor: not-allowed;
    background:
        linear-gradient(135deg, rgba(67, 56, 202, 0.32), rgba(30, 27, 75, 0.88)),
        rgba(8, 8, 18, 0.92);
    box-shadow: inset 0 0 0 1px rgba(165, 180, 252, 0.20);
}

.core-cell.is-danger,
.core-cell.is-trap-active {
    cursor: not-allowed;
    border-color: rgba(248, 113, 113, 0.58);
    background:
        radial-gradient(circle at center, rgba(248, 113, 113, 0.28), transparent 62%),
        linear-gradient(135deg, rgba(127, 29, 29, 0.62), rgba(67, 20, 7, 0.34)),
        rgba(20, 8, 10, 0.88);
    box-shadow: inset 0 0 18px rgba(248, 113, 113, 0.22);
    animation: coreDangerPulse 920ms ease-in-out infinite;
}

.core-cell.is-trap-dormant {
    background:
        radial-gradient(circle at center, rgba(250, 204, 21, 0.12), transparent 60%),
        rgba(255, 255, 255, 0.025);
}

.core-cell.is-threat-source {
    cursor: not-allowed;
    background:
        radial-gradient(circle at center, rgba(244, 63, 94, 0.38), transparent 60%),
        linear-gradient(135deg, rgba(88, 28, 135, 0.58), rgba(15, 23, 42, 0.82));
    box-shadow: inset 0 0 18px rgba(244, 63, 94, 0.28), 0 0 18px rgba(244, 63, 94, 0.16);
}

.core-cell.is-exit {
    background:
        radial-gradient(circle at center, rgba(52, 211, 153, 0.33), transparent 62%),
        rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 0 18px rgba(52, 211, 153, 0.22), 0 0 18px rgba(52, 211, 153, 0.12);
}

.core-cell.is-trail {
    background:
        linear-gradient(135deg, rgba(250, 204, 21, 0.22), rgba(20, 184, 166, 0.16)),
        rgba(255, 255, 255, 0.045);
    box-shadow: inset 0 0 18px rgba(250, 204, 21, 0.20);
}

.core-cell.is-invalid {
    animation: cryptoCellError 680ms ease;
    border-color: rgba(248, 113, 113, 0.92);
    background: rgba(248, 113, 113, 0.22);
}

.core-entity {
    position: relative;
    z-index: 2;
    width: clamp(20px, 6vw, 38px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-size: clamp(0.82rem, 2.8vw, 1.16rem);
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.72);
}

.core-entity--guardian {
    border-radius: 14px 14px 50% 50%;
    border-color: rgba(255, 255, 255, 0.52);
    background:
        radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.98) 0 16%, rgba(15, 23, 42, 0.96) 17% 30%, transparent 31%),
        linear-gradient(135deg, #facc15, #14b8a6);
    color: #071014;
    box-shadow:
        0 0 0 3px rgba(250, 204, 21, 0.18),
        0 0 24px rgba(250, 204, 21, 0.62),
        0 0 32px rgba(20, 184, 166, 0.22);
    animation: coreGuardianPulse 980ms ease-in-out infinite;
}

.core-entity--guardian::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 72%;
    height: 5px;
    border-radius: 999px;
    background: rgba(250, 204, 21, 0.72);
    box-shadow: 0 0 12px rgba(250, 204, 21, 0.65);
    transform: translateX(-50%);
}

.core-entity--exit {
    background: linear-gradient(135deg, #34d399, #facc15);
    color: #071014;
    box-shadow: 0 0 22px rgba(52, 211, 153, 0.62);
}

.core-entity--threat {
    background: linear-gradient(135deg, #f43f5e, #7c3aed);
    color: #fff;
    box-shadow: 0 0 22px rgba(244, 63, 94, 0.62);
    animation: coreThreatPulse 720ms ease-in-out infinite;
}

.core-entity--trap {
    background: linear-gradient(135deg, #ef4444, #f59e0b);
    color: #fff7ed;
    box-shadow: 0 0 18px rgba(239, 68, 68, 0.56);
}

.core-entity--trap.core-entity--dormant {
    background: rgba(250, 204, 21, 0.10);
    color: rgba(254, 243, 199, 0.74);
    border-color: rgba(250, 204, 21, 0.22);
    box-shadow: none;
}

.core-entity--wall {
    border-radius: 8px;
    background: rgba(30, 27, 75, 0.78);
    color: #ddd6fe;
}

.core-entity--captor {
    background: linear-gradient(135deg, #ef4444, #7f1d1d);
    color: #fff;
}

.core-node-dot {
    position: relative;
    z-index: 1;
    width: 16%;
    min-width: 7px;
    max-width: 13px;
    aspect-ratio: 1;
    border-radius: 50%;
    color: rgba(250, 204, 21, 0.36);
    background: currentColor;
    box-shadow: 0 0 13px currentColor;
}

.core-level-track {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.core-level-pill {
    min-height: 28px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--jq-muted);
    font-size: 0.72rem;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.045);
}

.core-level-pill.is-active {
    border-color: rgba(250, 204, 21, 0.62);
    color: #fef3c7;
    background: rgba(250, 204, 21, 0.12);
}

.core-level-pill.is-complete {
    border-color: rgba(52, 211, 153, 0.64);
    color: #dffdf7;
    background: rgba(52, 211, 153, 0.13);
}

.core-level-pill.is-lost {
    border-color: rgba(248, 113, 113, 0.66);
    color: #ffe4e6;
    background: rgba(248, 113, 113, 0.12);
}

.core-hud {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: 8px;
}

.core-stat {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 2px 7px;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    padding: 8px 9px;
    border: 1px solid rgba(250, 204, 21, 0.16);
    border-radius: var(--jq-radius);
    background: rgba(255, 255, 255, 0.045);
}

.core-stat i {
    grid-row: span 2;
    color: #facc15;
}

.core-stat span {
    color: var(--jq-dim);
    font-size: 0.64rem;
    font-weight: 900;
    line-height: 1.05;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.core-stat strong {
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.05;
    min-width: 0;
    overflow-wrap: anywhere;
}

.core-briefing,
.core-console {
    min-height: 42px;
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: var(--jq-radius);
    background: rgba(255, 255, 255, 0.045);
}

.core-briefing strong {
    color: #fff;
}

.core-briefing span,
.core-briefing em,
.core-console {
    color: var(--jq-muted);
    font-weight: 750;
    line-height: 1.42;
}

.core-briefing em {
    color: #fef3c7;
    font-style: normal;
}

.core-console {
    display: flex;
    align-items: center;
    font-family: "Space Grotesk", "Inter", sans-serif;
}

.core-console.is-correct {
    border-color: rgba(52, 211, 153, 0.56);
    background: rgba(52, 211, 153, 0.12);
    color: #dffdf7;
}

.core-console.is-wrong {
    border-color: rgba(248, 113, 113, 0.58);
    background: rgba(248, 113, 113, 0.12);
    color: #ffe4e6;
}

.core-actions .jq-button[hidden] {
    display: none;
}

.jump-academy-overlay {
    position: absolute;
    inset: 0;
    z-index: 34;
    padding: 2%;
    pointer-events: auto;
    background:
        radial-gradient(circle at 18% 18%, rgba(163, 230, 53, 0.18), transparent 28%),
        radial-gradient(circle at 84% 20%, rgba(251, 146, 60, 0.16), transparent 29%),
        radial-gradient(circle at 50% 86%, rgba(244, 63, 94, 0.15), transparent 30%),
        linear-gradient(145deg, rgba(7, 13, 24, 0.26), rgba(24, 18, 33, 0.20));
}

.jump-academy-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    grid-template-rows: repeat(8, minmax(0, 1fr));
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(163, 230, 53, 0.36);
    border-radius: 10px;
    background:
        linear-gradient(rgba(163, 230, 53, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(251, 146, 60, 0.08) 1px, transparent 1px),
        radial-gradient(circle at center, rgba(45, 212, 191, 0.10), transparent 58%),
        linear-gradient(135deg, rgba(10, 22, 32, 0.96), rgba(33, 22, 39, 0.92));
    background-size: 12.5% 12.5%, 12.5% 12.5%, 100% 100%, 100% 100%;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.035),
        inset 0 0 46px rgba(163, 230, 53, 0.10),
        0 18px 40px rgba(0, 0, 0, 0.30);
}

.jump-cell {
    position: relative;
    box-sizing: border-box;
    min-width: 0;
    min-height: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.075);
    color: #ecfccb;
    cursor: pointer;
    transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.jump-cell--light {
    background:
        radial-gradient(circle at 50% 48%, rgba(163, 230, 53, 0.09), transparent 58%),
        rgba(22, 43, 40, 0.78);
}

.jump-cell--dark {
    background:
        radial-gradient(circle at 50% 48%, rgba(251, 146, 60, 0.08), transparent 58%),
        rgba(46, 28, 37, 0.82);
}

.jump-cell::before {
    content: "";
    position: absolute;
    inset: 40%;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.17;
    box-shadow: 0 0 13px currentColor;
}

.jump-cell:hover,
.jump-cell:focus-visible,
.jump-cell.is-landing-option {
    z-index: 2;
    border-color: rgba(163, 230, 53, 0.72);
    background:
        radial-gradient(circle at center, rgba(163, 230, 53, 0.22), transparent 62%),
        rgba(255, 255, 255, 0.045);
    box-shadow: inset 0 0 18px rgba(163, 230, 53, 0.20), 0 0 18px rgba(251, 146, 60, 0.14);
}

.jump-cell.is-landing-option {
    animation: jumpLandingPulse 980ms ease-in-out infinite;
}

.jump-cell.is-wall {
    cursor: not-allowed;
    background:
        linear-gradient(135deg, rgba(71, 85, 105, 0.68), rgba(15, 23, 42, 0.88)),
        rgba(8, 12, 18, 0.92);
    box-shadow: inset 0 0 0 1px rgba(203, 213, 225, 0.20);
}

.jump-cell.is-lava {
    cursor: not-allowed;
    border-color: rgba(251, 113, 133, 0.56);
    background:
        radial-gradient(circle at center, rgba(251, 113, 133, 0.34), transparent 62%),
        linear-gradient(135deg, rgba(127, 29, 29, 0.70), rgba(67, 20, 7, 0.42)),
        rgba(20, 8, 10, 0.90);
    box-shadow: inset 0 0 18px rgba(251, 113, 133, 0.24);
    animation: coreDangerPulse 900ms ease-in-out infinite;
}

.jump-cell.is-exit,
.jump-cell.is-exit-locked {
    background:
        radial-gradient(circle at center, rgba(45, 212, 191, 0.31), transparent 62%),
        rgba(255, 255, 255, 0.034);
    box-shadow: inset 0 0 18px rgba(45, 212, 191, 0.20);
}

.jump-cell.is-exit-locked {
    filter: saturate(0.82) brightness(0.82);
}

.jump-cell.is-trail {
    background:
        linear-gradient(135deg, rgba(163, 230, 53, 0.20), rgba(251, 146, 60, 0.16)),
        rgba(255, 255, 255, 0.045);
    box-shadow: inset 0 0 18px rgba(163, 230, 53, 0.18);
}

.jump-cell.is-landed {
    animation: jumpImpact 520ms ease;
}

.jump-cell.is-invalid {
    animation: cryptoCellError 680ms ease;
    border-color: rgba(248, 113, 113, 0.92);
    background: rgba(248, 113, 113, 0.22);
}

.jump-cell.is-captured {
    z-index: 3;
    border-color: rgba(251, 113, 133, 0.90);
    box-shadow:
        inset 0 0 22px rgba(251, 113, 133, 0.32),
        0 0 22px rgba(251, 113, 133, 0.30);
}

.jump-entity {
    position: relative;
    z-index: 2;
    width: clamp(21px, 6vw, 40px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-size: clamp(0.84rem, 2.8vw, 1.18rem);
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.72);
}

.jump-entity--player {
    border-radius: 42% 42% 50% 50%;
    background: linear-gradient(135deg, #a3e635, #22d3ee);
    color: #071014;
    box-shadow:
        0 0 0 3px rgba(163, 230, 53, 0.18),
        0 0 24px rgba(163, 230, 53, 0.58),
        0 0 30px rgba(34, 211, 238, 0.20);
    animation: jumpRobotBounce 980ms ease-in-out infinite;
}

.jump-entity--gem {
    background: linear-gradient(135deg, #f0abfc, #22d3ee);
    color: #071014;
    box-shadow: 0 0 20px rgba(240, 171, 252, 0.62);
    animation: cryptoCoinSpin 1500ms linear infinite;
}

.jump-entity--weakpoint {
    background: linear-gradient(135deg, #f97316, #facc15);
    color: #190d04;
    box-shadow: 0 0 22px rgba(249, 115, 22, 0.68);
    animation: jumpWeakpointPulse 720ms ease-in-out infinite;
}

.jump-entity--enemy,
.jump-entity--boss,
.jump-entity--captor {
    background: linear-gradient(135deg, #f43f5e, #7c3aed);
    color: #fff;
    box-shadow: 0 0 22px rgba(244, 63, 94, 0.62);
    animation: coreThreatPulse 760ms ease-in-out infinite;
}

.jump-entity--boss {
    background: linear-gradient(135deg, #f97316, #7c2d12);
}

.jump-entity--wall {
    border-radius: 8px;
    background: rgba(30, 41, 59, 0.86);
    color: #e2e8f0;
}

.jump-entity--lava {
    background: linear-gradient(135deg, #fb7185, #f97316);
    color: #fff7ed;
    box-shadow: 0 0 18px rgba(251, 113, 133, 0.56);
}

.jump-entity--exit {
    background: linear-gradient(135deg, #2dd4bf, #a3e635);
    color: #071014;
    box-shadow: 0 0 22px rgba(45, 212, 191, 0.62);
}

.jump-node-dot {
    position: relative;
    z-index: 1;
    width: 16%;
    min-width: 7px;
    max-width: 13px;
    aspect-ratio: 1;
    border-radius: 50%;
    color: rgba(163, 230, 53, 0.34);
    background: currentColor;
    box-shadow: 0 0 13px currentColor;
}

.jump-level-track {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.jump-level-pill {
    min-height: 28px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--jq-muted);
    font-size: 0.72rem;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.045);
}

.jump-level-pill.is-active {
    border-color: rgba(163, 230, 53, 0.62);
    color: #ecfccb;
    background: rgba(163, 230, 53, 0.12);
}

.jump-level-pill.is-complete {
    border-color: rgba(45, 212, 191, 0.64);
    color: #dffdf7;
    background: rgba(45, 212, 191, 0.13);
}

.jump-level-pill.is-lost {
    border-color: rgba(248, 113, 113, 0.66);
    color: #ffe4e6;
    background: rgba(248, 113, 113, 0.12);
}

.jump-hud {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: 8px;
}

.jump-stat {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 2px 7px;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    padding: 8px 9px;
    border: 1px solid rgba(163, 230, 53, 0.16);
    border-radius: var(--jq-radius);
    background: rgba(255, 255, 255, 0.045);
}

.jump-stat i {
    grid-row: span 2;
    color: #a3e635;
}

.jump-stat span {
    color: var(--jq-dim);
    font-size: 0.64rem;
    font-weight: 900;
    line-height: 1.05;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.jump-stat strong {
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.05;
    min-width: 0;
    overflow-wrap: anywhere;
}

.jump-briefing,
.jump-console {
    min-height: 42px;
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: var(--jq-radius);
    background: rgba(255, 255, 255, 0.045);
}

.jump-rule-card {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) minmax(104px, 128px);
    gap: 10px;
    align-items: center;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(163, 230, 53, 0.42);
    border-radius: var(--jq-radius);
    background:
        linear-gradient(135deg, rgba(163, 230, 53, 0.16), rgba(34, 211, 238, 0.08)),
        rgba(255, 255, 255, 0.055);
    box-shadow: inset 0 0 24px rgba(163, 230, 53, 0.10), 0 10px 24px rgba(0, 0, 0, 0.14);
}

.jump-rule-card--button {
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.jump-rule-card--button:hover,
.jump-rule-card--button:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(163, 230, 53, 0.66);
    box-shadow: 0 0 26px rgba(163, 230, 53, 0.16), inset 0 0 0 1px rgba(163, 230, 53, 0.12);
    outline: none;
}

.jump-rule-card > i {
    width: 34px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #a3e635, #22d3ee);
    color: #071014;
    box-shadow: 0 0 18px rgba(163, 230, 53, 0.42);
}

.jump-rule-card__copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.jump-rule-card__copy strong {
    color: #ecfccb;
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: 0.92rem;
}

.jump-rule-card__copy span,
.jump-rule-card__copy em {
    color: #f8fbff;
    font-size: 0.84rem;
    font-weight: 780;
    line-height: 1.36;
}

.jump-rule-card__copy em {
    color: #dffdf7;
    font-style: normal;
}

.jump-rule-visual {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
    width: min(100%, 128px);
    justify-self: end;
    padding: 6px;
    border-radius: 10px;
    border: 1px solid rgba(163, 230, 53, 0.28);
    background:
        radial-gradient(circle at center, rgba(34, 211, 238, 0.14), transparent 62%),
        rgba(7, 18, 25, 0.52);
}

.jump-rule-visual__node {
    position: relative;
    aspect-ratio: 1;
    min-width: 0;
    display: grid;
    place-items: center;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.045);
    color: rgba(248, 251, 255, 0.42);
    font-size: 0.64rem;
    font-weight: 950;
    line-height: 1;
    overflow: hidden;
}

.jump-rule-visual__node.is-center {
    border-radius: 50%;
    border-color: rgba(34, 211, 238, 0.52);
    background: linear-gradient(135deg, #a3e635, #22d3ee);
    color: #071014;
    box-shadow: 0 0 16px rgba(34, 211, 238, 0.36);
}

.jump-rule-visual__node.is-center i {
    font-size: 0.78rem;
}

.jump-rule-visual__node.is-landing {
    border-color: rgba(163, 230, 53, 0.58);
    background:
        radial-gradient(circle, rgba(163, 230, 53, 0.32), rgba(34, 211, 238, 0.12)),
        rgba(255, 255, 255, 0.06);
    color: #ecfccb;
    box-shadow: 0 0 12px rgba(163, 230, 53, 0.20);
    animation: jumpLandingPulse 1200ms ease-in-out infinite;
}

.jump-rule-visual__label {
    position: relative;
    z-index: 2;
    font-size: 0.58rem;
    line-height: 1;
}

.jump-briefing strong {
    color: #fff;
}

.jump-briefing span,
.jump-briefing em,
.jump-console {
    color: var(--jq-muted);
    font-weight: 750;
    line-height: 1.42;
}

.jump-briefing em {
    color: #ecfccb;
    font-style: normal;
}

.jump-console {
    display: flex;
    align-items: center;
    font-family: "Space Grotesk", "Inter", sans-serif;
}

.jump-console.is-correct {
    border-color: rgba(45, 212, 191, 0.56);
    background: rgba(45, 212, 191, 0.12);
    color: #dffdf7;
}

.jump-console.is-wrong {
    border-color: rgba(248, 113, 113, 0.58);
    background: rgba(248, 113, 113, 0.12);
    color: #ffe4e6;
}

.jump-actions .jq-button[hidden] {
    display: none;
}

.jump-reveal-line {
    border-color: rgba(163, 230, 53, 0.28);
    background:
        linear-gradient(135deg, rgba(163, 230, 53, 0.10), rgba(251, 146, 60, 0.07)),
        rgba(255, 255, 255, 0.048);
}

.jump-reveal-duo {
    border-color: rgba(163, 230, 53, 0.28);
    background: rgba(34, 211, 238, 0.07);
}

.jump-card {
    border-color: rgba(163, 230, 53, 0.18);
    background: rgba(163, 230, 53, 0.055);
}

.jump-card i {
    color: #a3e635;
}

.pawn-apprentice-overlay {
    position: absolute;
    inset: 0;
    z-index: 34;
    padding: 2%;
    pointer-events: auto;
    background:
        radial-gradient(circle at 18% 86%, rgba(251, 191, 36, 0.18), transparent 30%),
        radial-gradient(circle at 82% 18%, rgba(45, 212, 191, 0.15), transparent 32%),
        linear-gradient(145deg, rgba(8, 15, 20, 0.30), rgba(33, 20, 35, 0.22));
}

.pawn-apprentice-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    grid-template-rows: repeat(8, minmax(0, 1fr));
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(251, 191, 36, 0.36);
    border-radius: 10px;
    background:
        linear-gradient(rgba(251, 191, 36, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 212, 191, 0.07) 1px, transparent 1px),
        radial-gradient(circle at center, rgba(251, 191, 36, 0.10), transparent 58%),
        linear-gradient(135deg, rgba(13, 23, 28, 0.97), rgba(39, 24, 39, 0.93));
    background-size: 12.5% 12.5%, 12.5% 12.5%, 100% 100%, 100% 100%;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.035),
        inset 0 0 46px rgba(251, 191, 36, 0.10),
        0 18px 40px rgba(0, 0, 0, 0.30);
}

.pawn-cell {
    position: relative;
    box-sizing: border-box;
    min-width: 0;
    min-height: 0;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.075);
    color: #fef3c7;
    cursor: pointer;
    transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.pawn-cell--light {
    background:
        radial-gradient(circle at 50% 48%, rgba(251, 191, 36, 0.09), transparent 58%),
        rgba(43, 39, 28, 0.78);
}

.pawn-cell--dark {
    background:
        radial-gradient(circle at 50% 48%, rgba(45, 212, 191, 0.08), transparent 58%),
        rgba(18, 43, 42, 0.82);
}

.pawn-cell::before {
    content: "";
    position: absolute;
    inset: 42%;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.15;
    box-shadow: 0 0 13px currentColor;
}

.pawn-cell:hover,
.pawn-cell:focus-visible {
    z-index: 2;
    border-color: rgba(251, 191, 36, 0.70);
    background:
        radial-gradient(circle at center, rgba(251, 191, 36, 0.20), transparent 62%),
        rgba(255, 255, 255, 0.045);
    box-shadow: inset 0 0 18px rgba(251, 191, 36, 0.18), 0 0 18px rgba(45, 212, 191, 0.14);
}

.pawn-cell.is-trail {
    background:
        linear-gradient(135deg, rgba(251, 191, 36, 0.20), rgba(45, 212, 191, 0.15)),
        rgba(255, 255, 255, 0.045);
    box-shadow: inset 0 0 18px rgba(251, 191, 36, 0.18);
}

.pawn-cell.is-landed {
    animation: jumpImpact 520ms ease;
}

.pawn-cell.is-invalid {
    animation: cryptoCellError 680ms ease;
    border-color: rgba(248, 113, 113, 0.92);
    background: rgba(248, 113, 113, 0.22);
}

.pawn-cell.is-exit,
.pawn-cell.is-exit-locked {
    background:
        radial-gradient(circle at center, rgba(251, 191, 36, 0.30), transparent 62%),
        rgba(255, 255, 255, 0.034);
    box-shadow: inset 0 0 18px rgba(251, 191, 36, 0.20);
}

.pawn-cell.is-exit-locked {
    filter: saturate(0.82) brightness(0.82);
}

.pawn-cell.is-blocker {
    cursor: not-allowed;
    background:
        linear-gradient(135deg, rgba(71, 85, 105, 0.70), rgba(15, 23, 42, 0.88)),
        rgba(8, 12, 18, 0.92);
}

.pawn-cell.is-enemy,
.pawn-cell.is-elite {
    border-color: rgba(248, 113, 113, 0.45);
}

.pawn-entity {
    position: relative;
    z-index: 2;
    width: clamp(21px, 6vw, 40px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-size: clamp(0.84rem, 2.8vw, 1.18rem);
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.72);
}

.pawn-entity--player {
    border-radius: 42% 42% 50% 50%;
    background: linear-gradient(135deg, #fbbf24, #2dd4bf);
    color: #121006;
    box-shadow:
        0 0 0 3px rgba(251, 191, 36, 0.18),
        0 0 24px rgba(251, 191, 36, 0.56),
        0 0 30px rgba(45, 212, 191, 0.18);
    animation: pawnApprenticePulse 980ms ease-in-out infinite;
}

.pawn-entity--master {
    background: linear-gradient(135deg, #facc15, #f43f5e);
    color: #160b04;
    box-shadow: 0 0 30px rgba(250, 204, 21, 0.70), 0 0 44px rgba(244, 63, 94, 0.30);
    animation: rookStarPulse 920ms ease-in-out infinite;
}

.pawn-entity--enemy,
.pawn-entity--front,
.pawn-entity--elite {
    background: linear-gradient(135deg, #f43f5e, #7c3aed);
    color: #fff;
    box-shadow: 0 0 22px rgba(244, 63, 94, 0.58);
}

.pawn-entity--front {
    background: linear-gradient(135deg, #ef4444, #991b1b);
}

.pawn-entity--elite {
    background: linear-gradient(135deg, #facc15, #dc2626);
    color: #170c03;
    animation: coreThreatPulse 760ms ease-in-out infinite;
}

.pawn-entity--blocker {
    border-radius: 8px;
    background: rgba(30, 41, 59, 0.88);
    color: #e2e8f0;
}

.pawn-entity--exit {
    background: linear-gradient(135deg, #fbbf24, #a3e635);
    color: #101404;
    box-shadow: 0 0 22px rgba(251, 191, 36, 0.62);
}

.pawn-node-dot {
    position: relative;
    z-index: 1;
    width: 16%;
    min-width: 7px;
    max-width: 13px;
    aspect-ratio: 1;
    border-radius: 50%;
    color: rgba(251, 191, 36, 0.34);
    background: currentColor;
    box-shadow: 0 0 13px currentColor;
}

.pawn-level-track {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.pawn-level-pill {
    min-height: 28px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--jq-muted);
    font-size: 0.72rem;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.045);
}

.pawn-level-pill.is-active {
    border-color: rgba(251, 191, 36, 0.64);
    color: #fef3c7;
    background: rgba(251, 191, 36, 0.12);
}

.pawn-level-pill.is-complete {
    border-color: rgba(45, 212, 191, 0.64);
    color: #dffdf7;
    background: rgba(45, 212, 191, 0.13);
}

.pawn-level-pill.is-lost {
    border-color: rgba(248, 113, 113, 0.66);
    color: #ffe4e6;
    background: rgba(248, 113, 113, 0.12);
}

.pawn-hud {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: 8px;
}

.pawn-stat {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 2px 7px;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    padding: 8px 9px;
    border: 1px solid rgba(251, 191, 36, 0.16);
    border-radius: var(--jq-radius);
    background: rgba(255, 255, 255, 0.045);
}

.pawn-stat i {
    grid-row: span 2;
    color: #fbbf24;
}

.pawn-stat span {
    color: var(--jq-dim);
    font-size: 0.64rem;
    font-weight: 900;
    line-height: 1.05;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.pawn-stat strong {
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.05;
    min-width: 0;
    overflow-wrap: anywhere;
}

.pawn-briefing,
.pawn-console {
    min-height: 42px;
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: var(--jq-radius);
    background: rgba(255, 255, 255, 0.045);
}

.pawn-briefing strong {
    color: #fff;
}

.pawn-briefing span,
.pawn-briefing em {
    color: var(--jq-muted);
    font-style: normal;
    font-weight: 730;
    line-height: 1.34;
}

.pawn-console {
    display: flex;
    align-items: center;
    font-family: "Space Grotesk", "Inter", sans-serif;
}

.pawn-console.is-correct {
    border-color: rgba(45, 212, 191, 0.56);
    background: rgba(45, 212, 191, 0.12);
    color: #dffdf7;
}

.pawn-console.is-wrong {
    border-color: rgba(248, 113, 113, 0.58);
    background: rgba(248, 113, 113, 0.12);
    color: #ffe4e6;
}

.pawn-rule-card {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid rgba(251, 191, 36, 0.18);
    border-radius: var(--jq-radius);
    background: rgba(251, 191, 36, 0.06);
}

.pawn-rule-card > i {
    width: 34px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24, #2dd4bf);
    color: #111006;
}

.pawn-rule-card__copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.pawn-rule-card__copy strong {
    color: #fff;
    font-weight: 950;
}

.pawn-rule-card__copy span,
.pawn-rule-card__copy em {
    color: var(--jq-muted);
    font-size: 0.84rem;
    font-style: normal;
    font-weight: 740;
    line-height: 1.28;
}

.pawn-rule-visual {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(5, 1fr);
    gap: 3px;
    width: min(100%, 170px);
    justify-self: center;
    padding: 6px;
    border-radius: 12px;
    border: 1px solid rgba(251, 191, 36, 0.18);
    background: rgba(255, 255, 255, 0.045);
}

.pawn-rule-visual__node {
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.055);
    color: rgba(248, 251, 255, 0.30);
    font-size: 0.68rem;
    font-weight: 950;
}

.pawn-rule-visual__node.is-start {
    background: linear-gradient(135deg, #fbbf24, #2dd4bf);
    color: #111006;
}

.pawn-rule-visual__node.is-forward {
    border: 1px solid rgba(45, 212, 191, 0.45);
    color: #99f6e4;
}

.pawn-rule-visual__node.is-capture {
    border: 1px solid rgba(248, 113, 113, 0.45);
    color: #fecdd3;
}

.pawn-actions .jq-button[hidden] {
    display: none;
}

.pawn-reveal-line {
    border-color: rgba(251, 191, 36, 0.28);
    background:
        linear-gradient(135deg, rgba(251, 191, 36, 0.10), rgba(45, 212, 191, 0.07)),
        rgba(255, 255, 255, 0.048);
}

.pawn-reveal-duo {
    border-color: rgba(251, 191, 36, 0.28);
    background: rgba(251, 191, 36, 0.07);
}

.pawn-card {
    border-color: rgba(251, 191, 36, 0.18);
    background: rgba(251, 191, 36, 0.055);
}

.pawn-card i {
    color: #fbbf24;
}

.pawn-guide-modal {
    gap: 10px;
    max-height: min(94svh, 760px);
    overflow: auto;
}

.pawn-guide-rules {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.pawn-guide-rule {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 2px 7px;
    align-items: center;
    min-width: 0;
    padding: 8px;
    border: 1px solid rgba(251, 191, 36, 0.17);
    border-radius: var(--jq-radius);
    background: rgba(251, 191, 36, 0.055);
}

.pawn-guide-rule i {
    grid-row: span 2;
    color: #fbbf24;
}

.pawn-guide-rule strong {
    color: #fff;
    font-size: 0.78rem;
    font-weight: 950;
    line-height: 1.1;
}

.pawn-guide-rule span {
    color: var(--jq-muted);
    font-size: 0.72rem;
    font-weight: 760;
    line-height: 1.18;
}

.pawn-guide-board {
    display: grid;
    grid-template-columns: repeat(var(--pawn-guide-cols), minmax(0, 1fr));
    grid-template-rows: repeat(var(--pawn-guide-rows), minmax(0, 1fr));
    gap: 5px;
    width: min(100%, 255px);
    justify-self: center;
    padding: 10px;
    border: 1px solid rgba(251, 191, 36, 0.24);
    border-radius: 14px;
    background:
        linear-gradient(rgba(251, 191, 36, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 212, 191, 0.07) 1px, transparent 1px),
        rgba(255, 255, 255, 0.038);
}

.pawn-guide-cell {
    position: relative;
    aspect-ratio: 1;
    min-width: 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.055);
    color: rgba(248, 251, 255, 0.72);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.pawn-guide-cell.is-trail {
    border-color: rgba(251, 191, 36, 0.30);
    background: rgba(251, 191, 36, 0.10);
}

.pawn-guide-cell.is-practice-target {
    border-color: rgba(45, 212, 191, 0.72);
    background: rgba(45, 212, 191, 0.13);
    box-shadow: inset 0 0 18px rgba(45, 212, 191, 0.18), 0 0 16px rgba(45, 212, 191, 0.14);
}

.pawn-guide-cell.is-enemy {
    border-color: rgba(248, 113, 113, 0.52);
}

.pawn-guide-cell.is-player {
    border-color: rgba(251, 191, 36, 0.68);
    background: radial-gradient(circle, rgba(251, 191, 36, 0.24), rgba(45, 212, 191, 0.08));
}

.pawn-guide-cell.is-wrong {
    animation: cryptoCellError 680ms ease;
    border-color: rgba(248, 113, 113, 0.92);
    background: rgba(248, 113, 113, 0.22);
}

.pawn-guide-cell.is-drag-origin > * {
    opacity: 0.28;
}

.pawn-guide-cell.is-drag-target {
    border-color: rgba(45, 212, 191, 0.82);
    box-shadow: 0 0 18px rgba(45, 212, 191, 0.22);
}

.pawn-guide-entity {
    position: relative;
    z-index: 2;
    width: clamp(24px, 6vmin, 36px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
}

.pawn-guide-node {
    width: 18%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(248, 251, 255, 0.20);
    box-shadow: 0 0 8px rgba(248, 251, 255, 0.14);
}

@media (max-width: 520px) {
    .pawn-rule-visual {
        width: min(100%, 190px);
    }

    .pawn-hud {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pawn-stat {
        padding: 7px;
    }

    .pawn-stat span {
        white-space: normal;
    }

    .pawn-guide-rules {
        grid-template-columns: 1fr;
    }

    .pawn-guide-board {
        width: min(100%, 220px);
        gap: 4px;
        padding: 8px;
    }
}

.jump-guide-dialog {
    width: min(94vw, 560px);
    max-height: min(92vh, 760px);
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: transparent;
    color: #f8fbff;
}

.jump-guide-dialog::backdrop {
    background: rgba(2, 6, 14, 0.78);
    backdrop-filter: blur(8px);
}

.jump-guide-modal {
    display: grid;
    gap: 12px;
    padding: clamp(16px, 3vw, 22px);
    border: 1px solid rgba(163, 230, 53, 0.36);
    border-radius: 18px;
    background:
        radial-gradient(circle at 18% 12%, rgba(163, 230, 53, 0.18), transparent 34%),
        radial-gradient(circle at 82% 20%, rgba(34, 211, 238, 0.16), transparent 32%),
        linear-gradient(145deg, rgba(7, 18, 25, 0.98), rgba(31, 21, 39, 0.98));
    box-shadow: 0 24px 72px rgba(0, 0, 0, 0.48), inset 0 0 34px rgba(163, 230, 53, 0.08);
}

.jump-guide-header {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.jump-guide-badge {
    width: 46px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #a3e635, #22d3ee);
    color: #071014;
    box-shadow: 0 0 22px rgba(163, 230, 53, 0.42);
}

.jump-guide-title {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.jump-guide-title .lesson-eyebrow {
    margin: 0;
}

.jump-guide-title h3 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.2rem, 4vw, 1.58rem);
}

.jump-guide-title span,
.jump-guide-hint {
    margin: 0;
    color: var(--jq-muted);
    font-weight: 760;
    line-height: 1.42;
}

.jump-guide-hint {
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--jq-radius);
    background: rgba(255, 255, 255, 0.045);
}

.jump-guide-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    width: min(100%, 320px);
    justify-self: center;
    padding: 10px;
    border: 1px solid rgba(163, 230, 53, 0.24);
    border-radius: 14px;
    background:
        linear-gradient(rgba(163, 230, 53, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.07) 1px, transparent 1px),
        rgba(255, 255, 255, 0.038);
}

.jump-guide-cell {
    position: relative;
    aspect-ratio: 1;
    min-width: 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.055);
    color: rgba(248, 251, 255, 0.72);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.jump-guide-cell.is-center {
    border-radius: 50%;
    border-color: rgba(34, 211, 238, 0.52);
    background: linear-gradient(135deg, #a3e635, #22d3ee);
    color: #071014;
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.36);
    cursor: default;
}

.jump-guide-cell.is-valid {
    border-color: rgba(163, 230, 53, 0.42);
    background:
        radial-gradient(circle, rgba(163, 230, 53, 0.20), rgba(34, 211, 238, 0.08)),
        rgba(255, 255, 255, 0.05);
}

.jump-guide-cell.is-valid:hover,
.jump-guide-cell.is-valid:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(163, 230, 53, 0.72);
    box-shadow: 0 0 18px rgba(163, 230, 53, 0.18);
}

.jump-guide-cell.is-selected {
    border-color: rgba(45, 212, 191, 0.82);
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.36), rgba(163, 230, 53, 0.18));
    box-shadow: 0 0 18px rgba(45, 212, 191, 0.30);
}

.jump-guide-cell.is-wrong {
    animation: cryptoCellError 680ms ease;
    border-color: rgba(248, 113, 113, 0.92);
    background: rgba(248, 113, 113, 0.22);
}

.jump-guide-cell__mark {
    font-size: 0.74rem;
    font-weight: 950;
    color: #ecfccb;
}

.jump-guide-node-dot {
    width: 20%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(248, 251, 255, 0.20);
    box-shadow: 0 0 8px rgba(248, 251, 255, 0.16);
}

.jump-guide-feedback {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid rgba(163, 230, 53, 0.20);
    border-radius: var(--jq-radius);
    background: rgba(163, 230, 53, 0.075);
    color: #ecfccb;
    font-weight: 830;
    line-height: 1.38;
}

.jump-guide-feedback.is-correct {
    border-color: rgba(45, 212, 191, 0.50);
    background: rgba(45, 212, 191, 0.12);
    color: #dffdf7;
}

.jump-guide-feedback.is-wrong {
    border-color: rgba(248, 113, 113, 0.50);
    background: rgba(248, 113, 113, 0.12);
    color: #ffe4e6;
}

.jump-guide-actions {
    margin-top: 0;
}

.jump-guide-actions .jq-button[hidden] {
    display: none;
}

.knight-tour-dialog {
    width: min(94vw, 680px);
    max-height: 94svh;
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: transparent;
    color: #f8fbff;
}

.knight-tour-dialog::backdrop {
    background: rgba(2, 6, 14, 0.80);
    backdrop-filter: blur(9px);
}

.knight-tour-modal {
    display: grid;
    gap: 12px;
    max-height: 94svh;
    overflow: auto;
    padding: clamp(14px, 2.8vw, 22px);
    border: 1px solid rgba(163, 230, 53, 0.34);
    border-radius: 18px;
    background:
        radial-gradient(circle at 18% 10%, rgba(163, 230, 53, 0.17), transparent 32%),
        radial-gradient(circle at 82% 12%, rgba(34, 211, 238, 0.14), transparent 34%),
        linear-gradient(145deg, rgba(7, 18, 25, 0.98), rgba(28, 20, 38, 0.98));
    box-shadow: 0 24px 72px rgba(0, 0, 0, 0.52), inset 0 0 34px rgba(163, 230, 53, 0.07);
}

.knight-tour-header {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.knight-tour-header h3,
.knight-tour-header p,
.knight-tour-header span {
    margin: 0;
}

.knight-tour-header h3 {
    font-size: clamp(1.2rem, 3.4vw, 1.65rem);
    color: #fff;
}

.knight-tour-header span {
    color: var(--jq-muted);
    font-weight: 760;
    line-height: 1.35;
}

.knight-tour-badge {
    width: 50px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #a3e635, #22d3ee);
    color: #071014;
    font-size: 1.05rem;
    font-weight: 1000;
    box-shadow: 0 0 24px rgba(163, 230, 53, 0.44);
}

.knight-tour-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.knight-tour-board {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    width: min(100%, 520px);
    justify-self: center;
    border: 1px solid rgba(163, 230, 53, 0.26);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    touch-action: manipulation;
}

.knight-tour-cell {
    position: relative;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    min-width: 0;
    border: 0;
    border-radius: 0;
    color: #ecfccb;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.knight-tour-cell--light {
    background:
        radial-gradient(circle at center, rgba(163, 230, 53, 0.08), transparent 58%),
        rgba(22, 43, 40, 0.80);
}

.knight-tour-cell--dark {
    background:
        radial-gradient(circle at center, rgba(251, 146, 60, 0.08), transparent 58%),
        rgba(46, 28, 37, 0.84);
}

.knight-tour-cell.is-valid {
    box-shadow: inset 0 0 0 2px rgba(163, 230, 53, 0.34);
}

.knight-tour-cell.is-valid::after {
    content: "";
    position: absolute;
    width: 14%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #a3e635;
    box-shadow: 0 0 12px rgba(163, 230, 53, 0.48);
}

.knight-tour-cell.is-visited {
    box-shadow: inset 0 0 0 1px rgba(248, 251, 255, 0.08);
}

.knight-tour-cell.is-wrong {
    animation: cryptoCellError 680ms ease;
    background: rgba(248, 113, 113, 0.24);
}

.knight-tour-visit {
    position: absolute;
    left: 7%;
    top: 7%;
    z-index: 2;
    min-width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(163, 230, 53, 0.42);
    color: #ecfccb;
    font-size: 0.68rem;
    font-weight: 1000;
    line-height: 1;
}

.knight-tour-entity {
    position: relative;
    z-index: 4;
    width: clamp(24px, 5.5vw, 42px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 42% 42% 50% 50%;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: linear-gradient(135deg, #a3e635, #22d3ee);
    color: #071014;
    font-size: clamp(0.9rem, 2.8vw, 1.22rem);
    box-shadow: 0 0 0 3px rgba(163, 230, 53, 0.16), 0 0 22px rgba(34, 211, 238, 0.28);
}

.knight-tour-board.is-character-dragging .knight-tour-cell.is-player > *,
.knight-tour-cell.is-drag-origin > * {
    opacity: 0.22;
}

.knight-tour-cell.is-drag-target {
    box-shadow: inset 0 0 0 2px rgba(45, 212, 191, 0.72), 0 0 18px rgba(45, 212, 191, 0.26);
}

.knight-tour-feedback {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid rgba(163, 230, 53, 0.20);
    border-radius: var(--jq-radius);
    background: rgba(163, 230, 53, 0.075);
    color: #ecfccb;
    font-weight: 830;
    line-height: 1.38;
}

.knight-tour-feedback.is-correct {
    border-color: rgba(45, 212, 191, 0.50);
    background: rgba(45, 212, 191, 0.12);
    color: #dffdf7;
}

.knight-tour-feedback.is-wrong {
    border-color: rgba(248, 113, 113, 0.50);
    background: rgba(248, 113, 113, 0.12);
    color: #ffe4e6;
}

.knight-tour-actions .jq-button[hidden] {
    display: none;
}

@media (max-width: 520px) {
    .knight-tour-modal {
        gap: 9px;
        padding: 12px;
    }

    .knight-tour-header {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .knight-tour-badge {
        width: 42px;
        font-size: 0.92rem;
    }

    .knight-tour-stats {
        grid-template-columns: 1fr;
    }

    .knight-tour-board {
        width: min(100%, 88vw);
    }

    .knight-tour-visit {
        min-width: 16px;
        height: 16px;
        font-size: 0.56rem;
        border-radius: 5px;
    }
}

.core-reveal-line {
    border-color: rgba(250, 204, 21, 0.28);
    background:
        linear-gradient(135deg, rgba(250, 204, 21, 0.10), rgba(20, 184, 166, 0.07)),
        rgba(255, 255, 255, 0.048);
}

.core-reveal-duo {
    border-color: rgba(250, 204, 21, 0.28);
    background: rgba(20, 184, 166, 0.07);
}

.core-reveal-duo > i:first-child {
    background: linear-gradient(135deg, #facc15, #14b8a6);
    color: #071014;
    box-shadow: 0 0 22px rgba(250, 204, 21, 0.42);
}

.core-card {
    border-color: rgba(250, 204, 21, 0.18);
    background: rgba(250, 204, 21, 0.055);
}

.core-card i {
    color: #facc15;
}

@keyframes neonStalkerPulse {
    0%,
    100% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.14);
        filter: brightness(1.18);
    }
}

@keyframes neonPatrolSweep {
    0%,
    100% {
        transform: translateY(0) scale(1);
        filter: brightness(1);
    }

    50% {
        transform: translateY(-1px) scale(1.08);
        filter: brightness(1.16);
    }
}

.board-marker-overlay {
    position: absolute;
    inset: 0;
    z-index: 38;
    pointer-events: none;
}

.board-square-marker {
    position: absolute;
    width: 12.5%;
    height: 12.5%;
    display: grid;
    place-items: center;
    color: var(--jq-gold);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.72);
}

.board-square-marker--star i {
    width: clamp(26px, 5vw, 46px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(246, 200, 95, 0.96), rgba(199, 0, 57, 0.72));
    color: #140804;
    font-size: clamp(1rem, 2.8vw, 1.55rem);
    box-shadow: 0 0 22px rgba(246, 200, 95, 0.78), 0 0 42px rgba(199, 0, 57, 0.34);
    animation: rookStarPulse 980ms ease-in-out infinite;
}

.board-marker-overlay.is-complete .board-square-marker--star i {
    background: radial-gradient(circle, rgba(52, 211, 153, 0.96), rgba(0, 212, 170, 0.78));
    box-shadow: 0 0 24px rgba(52, 211, 153, 0.88), 0 0 48px rgba(0, 212, 170, 0.36);
}

.board-square-marker--promotion-crown i {
    width: clamp(32px, 5.8vw, 56px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.96), rgba(250, 204, 21, 0.88) 42%, rgba(199, 0, 57, 0.74));
    color: #260806;
    font-size: clamp(1.15rem, 3vw, 1.8rem);
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.92), 0 0 52px rgba(245, 158, 11, 0.50);
    animation: promotionCrownPulse 940ms ease-in-out infinite;
}

.board-marker-overlay.is-complete .board-square-marker--promotion-crown i {
    box-shadow: 0 0 26px rgba(250, 204, 21, 1), 0 0 70px rgba(52, 211, 153, 0.48);
}

.board-square-marker--danger i {
    width: clamp(24px, 4.8vw, 42px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 86, 86, 0.98), rgba(199, 0, 57, 0.82));
    color: #fff7e8;
    font-size: clamp(0.95rem, 2.6vw, 1.42rem);
    box-shadow: 0 0 20px rgba(255, 86, 86, 0.88), 0 0 40px rgba(199, 0, 57, 0.46);
    animation: coreDangerPulse 860ms ease-in-out infinite;
}

.board-marker-overlay.is-complete .board-square-marker--danger i {
    background: radial-gradient(circle, rgba(255, 119, 119, 0.98), rgba(199, 0, 57, 0.9));
    box-shadow: 0 0 24px rgba(255, 86, 86, 0.92), 0 0 52px rgba(255, 33, 91, 0.42);
}

.board-square-marker--safe i,
.board-square-marker--shield i {
    width: clamp(24px, 4.8vw, 42px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(92, 255, 214, 0.98), rgba(45, 212, 191, 0.82));
    color: #06131a;
    font-size: clamp(0.95rem, 2.6vw, 1.42rem);
    box-shadow: 0 0 20px rgba(45, 212, 191, 0.82), 0 0 40px rgba(52, 211, 153, 0.34);
    animation: rookStarPulse 980ms ease-in-out infinite;
}

.board-square-marker--shield i {
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.96), rgba(45, 212, 191, 0.90));
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.62), 0 0 42px rgba(45, 212, 191, 0.32);
}

.board-square-marker--small-hand i {
    width: clamp(16px, 3.4vw, 27px);
    font-size: clamp(0.68rem, 1.8vw, 0.96rem);
    border-radius: 9px;
    opacity: 0.92;
    transform: translate(28%, -28%);
    box-shadow: 0 0 14px rgba(250, 204, 21, 0.48), 0 0 24px rgba(45, 212, 191, 0.22);
}

.board-square-marker--illegal i {
    width: clamp(24px, 4.8vw, 42px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(255, 23, 68, 0.88));
    color: #3a0610;
    font-size: clamp(0.95rem, 2.6vw, 1.42rem);
    box-shadow: 0 0 20px rgba(255, 23, 68, 0.82), 0 0 40px rgba(199, 0, 57, 0.42);
    animation: coreDangerPulse 860ms ease-in-out infinite;
}

.board-square-marker--corner-badge {
    place-items: start end;
    padding: 5%;
}

.board-square-marker--corner-badge i {
    width: clamp(15px, 3vw, 26px);
    font-size: clamp(0.68rem, 1.55vw, 0.96rem);
    box-shadow: 0 0 12px rgba(255, 86, 86, 0.8), 0 0 24px rgba(199, 0, 57, 0.34);
}

.board-square-marker--flank-label {
    width: 50%;
    height: 12.5%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(8, 13, 24, 0.10), rgba(8, 13, 24, 0.32));
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: clamp(0.74rem, 2.15vw, 1.42rem);
    font-weight: 1000;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0;
    z-index: 5;
    text-shadow:
        0 2px 3px rgba(2, 6, 14, 0.82),
        0 0 14px rgba(2, 6, 14, 0.52);
}

.board-square-marker--queen-flank,
.board-square-marker--castle-long {
    color: #f6c85f;
}

.board-square-marker--king-flank,
.board-square-marker--castle-short {
    color: #ff1744;
}

.board-square-marker--castle-long,
.board-square-marker--castle-short {
    background: rgba(8, 13, 24, 0.18);
    font-size: clamp(0.72rem, 1.9vw, 1.26rem);
}

.board-marker-overlay.is-complete .board-square-marker--corner-badge i {
    box-shadow: 0 0 16px rgba(255, 86, 86, 0.86), 0 0 30px rgba(255, 33, 91, 0.34);
}

.illegal-move-board-overlay {
    display: grid;
    place-items: center;
    z-index: 44;
    background:
        radial-gradient(circle at center, rgba(255, 23, 68, 0.18), rgba(12, 16, 28, 0.16) 42%, transparent 70%);
}

.illegal-move-board-alert {
    width: min(76%, 360px);
    display: grid;
    place-items: center;
    gap: 8px;
    padding: clamp(18px, 4vw, 30px);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 231, 236, 0.96)),
        radial-gradient(circle at 20% 0%, rgba(255, 23, 68, 0.26), transparent 58%);
    color: #3b0611;
    text-align: center;
    box-shadow: 0 18px 58px rgba(5, 8, 16, 0.52), 0 0 52px rgba(255, 23, 68, 0.34);
    animation: illegalAlertPop 520ms cubic-bezier(0.2, 1.4, 0.35, 1) both;
}

.illegal-move-board-alert i {
    width: clamp(54px, 13vw, 86px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 23, 68, 0.98), rgba(127, 29, 29, 0.96));
    color: #fff7f7;
    font-size: clamp(1.7rem, 5vw, 3rem);
    box-shadow: 0 0 26px rgba(255, 23, 68, 0.68);
}

.illegal-move-board-alert strong {
    font-size: clamp(1.55rem, 5vw, 3rem);
    line-height: 0.95;
    letter-spacing: 0;
}

.illegal-move-board-copy {
    max-width: 26ch;
    color: rgba(59, 6, 17, 0.82);
    font-size: clamp(0.86rem, 2.5vw, 1.02rem);
    font-weight: 900;
}

.illegal-move-figurine-notation {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 2px;
    color: #3b0611;
    white-space: nowrap;
    vertical-align: middle;
}

.illegal-move-figurine-notation .setup-piece-glyph {
    width: 1.65em;
    height: 1.65em;
    display: inline-block;
    filter:
        drop-shadow(0 0 1px rgba(5, 8, 15, 0.92))
        drop-shadow(0 2px 5px rgba(0, 0, 0, 0.45))
        drop-shadow(0 0 8px rgba(199, 0, 57, 0.22));
}

.illegal-move-figurine-notation b {
    font-size: 1.08em;
}

.illegal-move-board-overlay.is-rewinding {
    background:
        radial-gradient(circle at center, rgba(45, 212, 191, 0.2), rgba(12, 16, 28, 0.14) 46%, transparent 72%);
}

.illegal-move-board-overlay.is-rewinding .illegal-move-board-alert {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(219, 254, 247, 0.96)),
        radial-gradient(circle at 20% 0%, rgba(45, 212, 191, 0.28), transparent 58%);
    color: #062c2b;
    box-shadow: 0 18px 58px rgba(5, 8, 16, 0.48), 0 0 52px rgba(45, 212, 191, 0.36);
}

.illegal-move-board-overlay.is-rewinding .illegal-move-board-alert i {
    background: radial-gradient(circle, rgba(45, 212, 191, 0.98), rgba(13, 148, 136, 0.96));
    color: #031514;
    box-shadow: 0 0 26px rgba(45, 212, 191, 0.66);
}

.illegal-move-board-overlay.is-rewinding .illegal-move-board-copy {
    color: rgba(6, 44, 43, 0.82);
}

.board-square-marker--wall i {
    width: clamp(22px, 4.5vw, 40px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(71, 85, 105, 0.88));
    color: #fecdd3;
    font-size: clamp(0.86rem, 2.3vw, 1.22rem);
    box-shadow: 0 0 18px rgba(15, 23, 42, 0.78), inset 0 0 0 1px rgba(254, 205, 211, 0.18);
}

.board-square-marker--pawn-number {
    z-index: 3;
}

.pawn-number-badge {
    width: clamp(25px, 4.8vw, 42px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    font-size: clamp(0.78rem, 2.4vw, 1rem);
    font-weight: 1000;
    line-height: 1;
    text-shadow: none;
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.34), 0 0 22px rgba(45, 212, 191, 0.18);
    animation: knightStepPop 420ms ease both;
}

.board-square-marker--pawn-number-green .pawn-number-badge {
    color: #052e1b;
    background: linear-gradient(135deg, #34d399, #a7f3d0);
}

.board-square-marker--pawn-number-red .pawn-number-badge {
    color: #fff7ed;
    background: linear-gradient(135deg, #ef4444, #be123c);
    box-shadow: 0 0 18px rgba(239, 68, 68, 0.42), 0 0 26px rgba(190, 18, 60, 0.30);
}

.board-square-marker--pawn-number-blue .pawn-number-badge {
    color: #062039;
    background: linear-gradient(135deg, #38bdf8, #22d3ee);
}

.promotion-choice-dialog {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    width: 100vw;
    min-height: 100svh;
    padding: 14px;
    border: 0;
    background: rgba(2, 6, 14, 0.78);
    color: #fff;
    backdrop-filter: blur(8px);
}

.promotion-choice-modal {
    display: grid;
    gap: 16px;
    width: min(94vw, 560px);
    max-height: min(92svh, 720px);
    overflow: auto;
    padding: clamp(16px, 3vw, 24px);
    border: 1px solid rgba(250, 204, 21, 0.34);
    border-radius: 18px;
    background:
        radial-gradient(circle at top left, rgba(250, 204, 21, 0.18), transparent 34%),
        linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(7, 12, 24, 0.98));
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
}

.promotion-choice-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.promotion-choice-head > i {
    width: 48px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #1b0b04;
    background: radial-gradient(circle, #fef3c7, #facc15 52%, #f97316);
    box-shadow: 0 0 32px rgba(250, 204, 21, 0.52);
}

.promotion-choice-head h3 {
    margin: 0;
}

.promotion-choice-head span {
    color: var(--jq-dim);
    font-weight: 800;
}

.promotion-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.promotion-choice-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 2px 10px;
    align-items: center;
    min-width: 0;
    padding: 12px;
    border-radius: var(--jq-radius);
    border: 1px solid rgba(255, 255, 255, 0.13);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    text-align: left;
    cursor: pointer;
}

.promotion-choice-option:hover,
.promotion-choice-option:focus-visible {
    border-color: rgba(250, 204, 21, 0.58);
    background: rgba(250, 204, 21, 0.12);
    outline: none;
}

.promotion-choice-option .setup-piece-glyph {
    grid-row: span 2;
    width: 42px;
    height: 42px;
}

.promotion-choice-option strong,
.promotion-choice-option span {
    min-width: 0;
}

.promotion-choice-option span {
    color: var(--jq-dim);
    font-size: 0.86rem;
    font-weight: 800;
}

@media (max-width: 520px) {
    .promotion-choice-grid {
        grid-template-columns: 1fr;
    }
}

.piece-value-study-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.piece-value-board-overlay {
    position: absolute;
    inset: 0;
    z-index: 41;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(10px, 2.2vw, 20px);
    border-radius: var(--jq-radius);
    background:
        linear-gradient(135deg, rgba(8, 13, 22, 0.82), rgba(6, 17, 22, 0.72)),
        radial-gradient(circle at 18% 16%, rgba(250, 204, 21, 0.22), transparent 30%),
        radial-gradient(circle at 84% 80%, rgba(45, 212, 191, 0.25), transparent 34%);
    box-shadow:
        inset 0 0 0 1px rgba(250, 204, 21, 0.18),
        inset 0 0 70px rgba(0, 0, 0, 0.34);
    pointer-events: none;
    backdrop-filter: blur(2.5px) saturate(1.12);
}

.piece-value-study-grid--board {
    width: 100%;
    max-width: 660px;
    aspect-ratio: 1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: minmax(0, 1fr);
    align-content: center;
    gap: clamp(9px, 1.9vw, 16px);
}

.piece-value-study-card,
.piece-value-target,
.material-ledger-card {
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: var(--jq-radius);
    background: rgba(255, 255, 255, 0.055);
}

.piece-value-study-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 4px 10px;
    align-items: center;
    padding: 12px;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.piece-value-study-grid--board .piece-value-study-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(34px, 0.72fr) auto auto;
    justify-items: center;
    align-items: center;
    min-height: 0;
    gap: clamp(4px, 1vw, 8px);
    padding: clamp(10px, 1.9vw, 17px);
    text-align: center;
    border-color: rgba(250, 204, 21, 0.28);
    border-radius: clamp(12px, 2vw, 18px);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.035)),
        linear-gradient(180deg, rgba(11, 19, 31, 0.95), rgba(7, 16, 24, 0.88));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 16px 30px rgba(0, 0, 0, 0.22);
}

.piece-value-study-grid--board .piece-value-study-card::before {
    content: "";
    position: absolute;
    inset: -28% -38%;
    background:
        radial-gradient(circle, rgba(45, 212, 191, 0.28), transparent 34%),
        linear-gradient(115deg, transparent 36%, rgba(250, 204, 21, 0.12) 48%, transparent 60%);
    opacity: 0.42;
    transform: rotate(-12deg);
    pointer-events: none;
}

.piece-value-study-grid--board .piece-value-study-card > * {
    position: relative;
    z-index: 1;
}

.piece-value-study-card.is-active {
    transform: translateY(-2px);
    border-color: rgba(45, 212, 191, 0.62);
    background: rgba(45, 212, 191, 0.11);
    box-shadow: 0 0 22px rgba(45, 212, 191, 0.18);
}

.piece-value-study-card.is-complete {
    border-color: rgba(250, 204, 21, 0.28);
}

.piece-value-study-card .setup-piece-glyph {
    grid-row: span 2;
    width: 42px;
    height: 42px;
}

.piece-value-study-grid--board .piece-value-study-card .setup-piece-glyph {
    grid-row: auto;
    width: clamp(44px, 8vw, 72px);
    height: clamp(44px, 8vw, 72px);
    filter: drop-shadow(0 0 12px rgba(250, 204, 21, 0.34));
}

.piece-value-study-card strong,
.piece-value-study-card em {
    min-width: 0;
    overflow-wrap: anywhere;
}

.piece-value-study-grid--board .piece-value-study-card strong {
    max-width: 100%;
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: clamp(1rem, 2.4vw, 1.28rem);
    line-height: 1;
    white-space: nowrap;
    letter-spacing: 0;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.32);
}

.piece-value-study-card__value {
    grid-row: span 2;
    min-width: 44px;
    padding: 8px 10px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.96), rgba(45, 212, 191, 0.90));
    color: #08111f;
    font-weight: 1000;
    text-align: center;
    font-size: 1.12rem;
}

.piece-value-study-grid--board .piece-value-study-card__value {
    grid-row: auto;
    min-width: clamp(46px, 7.4vw, 66px);
    padding: clamp(8px, 1.5vw, 12px) clamp(12px, 2vw, 18px);
    border-radius: 999px;
    font-size: clamp(1.12rem, 3vw, 1.55rem);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.28) inset,
        0 10px 28px rgba(45, 212, 191, 0.22),
        0 0 26px rgba(250, 204, 21, 0.18);
}

.piece-value-study-card em {
    color: var(--jq-dim);
    font-size: 0.82rem;
    font-style: normal;
    font-weight: 800;
    line-height: 1.14;
}

.piece-value-study-grid--board .piece-value-study-card em {
    display: none;
}

@media (max-width: 640px) {
    .piece-value-board-overlay {
        align-items: stretch;
        padding: 8px;
    }

    .piece-value-study-grid--board {
        width: 100%;
        height: 100%;
        max-width: none;
        aspect-ratio: auto;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, minmax(0, 1fr));
        gap: 6px;
        align-content: stretch;
    }

    .piece-value-study-grid--board .piece-value-study-card {
        grid-template-columns: 38px minmax(0, 1fr) auto;
        grid-template-rows: 1fr;
        justify-items: stretch;
        text-align: left;
        gap: 8px;
        padding: 6px 8px;
        border-radius: 12px;
    }

    .piece-value-study-grid--board .piece-value-study-card::before {
        inset: -80% -18%;
        opacity: 0.28;
    }

    .piece-value-study-grid--board .piece-value-study-card .setup-piece-glyph {
        width: 34px;
        height: 34px;
        justify-self: center;
    }

    .piece-value-study-grid--board .piece-value-study-card strong {
        align-self: center;
        font-size: 0.98rem;
        line-height: 1.05;
        white-space: normal;
    }

    .piece-value-study-grid--board .piece-value-study-card__value {
        align-self: center;
        justify-self: end;
        min-width: 46px;
        padding: 7px 10px;
        font-size: 1.18rem;
    }

    .piece-value-study-grid--board .piece-value-study-card em {
        display: none;
    }
}

.piece-value-match {
    display: grid;
    gap: 12px;
}

.piece-value-token-rack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.piece-value-token {
    min-width: 58px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.075);
    color: #fff;
    font-weight: 1000;
    cursor: pointer;
}

.piece-value-token.is-selected,
.piece-value-token:hover,
.piece-value-token:focus-visible {
    border-color: rgba(45, 212, 191, 0.62);
    background: rgba(45, 212, 191, 0.16);
    outline: none;
}

.piece-value-target-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.piece-value-match-board-overlay {
    pointer-events: auto;
}

.piece-value-target-grid--board {
    width: 100%;
    max-width: 660px;
    aspect-ratio: 1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: minmax(0, 1fr);
    gap: clamp(9px, 1.9vw, 16px);
}

.piece-value-target {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 12px;
    color: #fff;
    text-align: left;
    cursor: pointer;
}

.piece-value-target-grid--board .piece-value-target {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(38px, 0.78fr) auto auto;
    justify-items: center;
    align-items: center;
    gap: clamp(4px, 1vw, 8px);
    padding: clamp(10px, 1.9vw, 17px);
    border-color: rgba(45, 212, 191, 0.22);
    border-radius: clamp(12px, 2vw, 18px);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.035)),
        linear-gradient(180deg, rgba(9, 18, 31, 0.95), rgba(7, 21, 25, 0.88));
    color: #fff;
    text-align: center;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 16px 30px rgba(0, 0, 0, 0.22);
}

.piece-value-target-grid--board .piece-value-target::before {
    content: "";
    position: absolute;
    inset: -26% -38%;
    background:
        radial-gradient(circle, rgba(45, 212, 191, 0.30), transparent 34%),
        linear-gradient(115deg, transparent 34%, rgba(250, 204, 21, 0.12) 48%, transparent 62%);
    opacity: 0.36;
    transform: rotate(-12deg);
    pointer-events: none;
}

.piece-value-target-grid--board .piece-value-target > * {
    position: relative;
    z-index: 1;
}

.piece-value-target .setup-piece-glyph {
    width: 40px;
    height: 40px;
}

.piece-value-target-grid--board .piece-value-target .setup-piece-glyph {
    width: clamp(44px, 8vw, 74px);
    height: clamp(44px, 8vw, 74px);
    filter: drop-shadow(0 0 12px rgba(250, 204, 21, 0.34));
}

.piece-value-target-grid--board .piece-value-target strong {
    max-width: 100%;
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: clamp(1rem, 2.4vw, 1.28rem);
    line-height: 1;
    white-space: nowrap;
    letter-spacing: 0;
}

.piece-value-target.is-armed {
    border-color: rgba(45, 212, 191, 0.36);
}

.piece-value-target-grid--board .piece-value-target.is-armed {
    border-color: rgba(45, 212, 191, 0.72);
    background:
        radial-gradient(circle at 50% 12%, rgba(45, 212, 191, 0.24), transparent 46%),
        linear-gradient(180deg, rgba(10, 29, 37, 0.98), rgba(7, 20, 29, 0.92));
    box-shadow:
        0 0 0 1px rgba(45, 212, 191, 0.22) inset,
        0 0 28px rgba(45, 212, 191, 0.22);
}

.piece-value-target.is-matched {
    border-color: rgba(52, 211, 153, 0.62);
    background: rgba(52, 211, 153, 0.12);
}

.piece-value-target-grid--board .piece-value-target.is-matched {
    border-color: rgba(52, 211, 153, 0.78);
    background:
        radial-gradient(circle at 50% 18%, rgba(52, 211, 153, 0.30), transparent 46%),
        linear-gradient(180deg, rgba(9, 34, 30, 0.98), rgba(8, 22, 28, 0.92));
    transform: translateY(-2px);
}

.piece-value-target.is-wrong {
    border-color: rgba(255, 23, 68, 0.68);
    background: rgba(255, 23, 68, 0.12);
}

.piece-value-drop {
    min-width: 36px;
    padding: 7px 10px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.86);
    color: var(--jq-gold);
    font-weight: 1000;
    text-align: center;
}

.piece-value-target-grid--board .piece-value-drop {
    min-width: clamp(46px, 7.4vw, 66px);
    padding: clamp(8px, 1.5vw, 12px) clamp(12px, 2vw, 18px);
    border-radius: 999px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(26, 34, 48, 0.92));
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1.08rem, 2.8vw, 1.48rem);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.16) inset,
        0 10px 24px rgba(0, 0, 0, 0.22);
}

.piece-value-target-grid--board .piece-value-target.is-matched .piece-value-drop {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.98), rgba(45, 212, 191, 0.92));
    color: #08111f;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.28) inset,
        0 10px 28px rgba(45, 212, 191, 0.22),
        0 0 26px rgba(250, 204, 21, 0.18);
}

@media (max-width: 520px) {
    .piece-value-target-grid--board {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .piece-value-target-grid--board .piece-value-target {
        grid-template-rows: minmax(28px, 0.66fr) auto auto;
        gap: 3px;
        padding: 8px;
    }
}

.material-ledger {
    display: grid;
    gap: 12px;
}

.material-balance-overlay {
    pointer-events: none;
}

.material-balance-panel {
    width: min(94%, 620px);
    display: grid;
    gap: clamp(10px, 2vw, 16px);
    padding: clamp(14px, 2.5vw, 24px);
    border: 1px solid rgba(250, 204, 21, 0.28);
    border-radius: clamp(14px, 2vw, 22px);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
        linear-gradient(180deg, rgba(9, 18, 31, 0.94), rgba(7, 21, 25, 0.90));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.13),
        0 22px 46px rgba(0, 0, 0, 0.30);
}

.material-balance-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 2px 10px;
    align-items: center;
}

.material-balance-head i {
    grid-row: span 2;
    width: 42px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.96), rgba(45, 212, 191, 0.90));
    color: #08111f;
    box-shadow: 0 0 24px rgba(45, 212, 191, 0.20);
}

.material-balance-head strong {
    min-width: 0;
    color: #fff;
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: clamp(1rem, 2.4vw, 1.28rem);
    line-height: 1.05;
}

.material-balance-head span {
    min-width: 0;
    color: #c9d3e7;
    font-size: clamp(0.78rem, 1.7vw, 0.94rem);
    font-weight: 800;
}

.material-balance-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(10px, 2vw, 16px);
}

.material-balance-card {
    min-width: 0;
    display: grid;
    gap: 10px;
    justify-items: center;
    padding: clamp(12px, 2vw, 18px);
    border: 1px solid rgba(45, 212, 191, 0.20);
    border-radius: clamp(12px, 2vw, 18px);
    background:
        radial-gradient(circle at 50% 12%, rgba(45, 212, 191, 0.18), transparent 44%),
        rgba(255, 255, 255, 0.055);
}

.material-balance-label {
    color: #fff;
    font-weight: 1000;
    text-align: center;
}

.material-balance-pieces {
    min-height: clamp(58px, 11vw, 94px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(6px, 1.5vw, 12px);
}

.material-balance-pieces .setup-piece-glyph {
    width: clamp(44px, 8vw, 72px);
    height: clamp(44px, 8vw, 72px);
    filter: drop-shadow(0 0 12px rgba(250, 204, 21, 0.30));
}

.material-balance-total,
.material-balance-result {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.84);
    color: var(--jq-gold);
    font-weight: 1000;
    text-align: center;
}

.material-balance-result {
    justify-self: center;
    color: #08111f;
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.96), rgba(45, 212, 191, 0.90));
}

.concept-visual-panel {
    width: min(90%, 500px);
    display: grid;
    justify-items: center;
    gap: clamp(8px, 1.8vw, 14px);
    padding: clamp(18px, 3vw, 32px);
    border: 1px solid rgba(250, 204, 21, 0.34);
    border-radius: clamp(16px, 2.5vw, 26px);
    background:
        radial-gradient(circle at 50% 22%, rgba(250, 204, 21, 0.22), transparent 42%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
        linear-gradient(180deg, rgba(9, 18, 31, 0.96), rgba(6, 15, 25, 0.92));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.13),
        0 22px 46px rgba(0, 0, 0, 0.30);
    text-align: center;
}

.concept-visual-kicker {
    color: var(--jq-cyan);
    font-size: 0.78rem;
    font-weight: 1000;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.concept-visual-core {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 2.4vw, 22px);
}

.concept-visual-core .setup-piece-glyph {
    width: clamp(70px, 14vw, 120px);
    height: clamp(70px, 14vw, 120px);
    filter:
        drop-shadow(0 0 16px rgba(250, 204, 21, 0.42))
        drop-shadow(0 10px 16px rgba(0, 0, 0, 0.38));
}

.concept-visual-core strong {
    min-width: clamp(74px, 14vw, 126px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.98), rgba(45, 212, 191, 0.94));
    color: #08111f;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 1000;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.28) inset,
        0 0 36px rgba(250, 204, 21, 0.24);
}

.concept-visual-panel h4 {
    margin: 0;
    color: #fff;
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: clamp(1.1rem, 3vw, 1.55rem);
}

.concept-visual-panel p {
    max-width: 36ch;
    margin: 0;
    color: #c9d3e7;
    font-weight: 800;
    line-height: 1.35;
}

.value-eval-ready-overlay {
    pointer-events: none;
}

.value-eval-ready-panel {
    width: min(92%, 620px);
    display: grid;
    justify-items: center;
    gap: clamp(10px, 1.8vw, 16px);
    padding: clamp(16px, 2.8vw, 28px);
    border: 1px solid rgba(250, 204, 21, 0.30);
    border-radius: clamp(16px, 2.5vw, 26px);
    background:
        radial-gradient(circle at 50% 18%, rgba(250, 204, 21, 0.18), transparent 42%),
        radial-gradient(circle at 82% 84%, rgba(45, 212, 191, 0.18), transparent 38%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
        linear-gradient(180deg, rgba(9, 18, 31, 0.96), rgba(6, 15, 25, 0.92));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.13),
        0 22px 46px rgba(0, 0, 0, 0.30);
    text-align: center;
}

.value-eval-ready-panel h4 {
    margin: 0;
    color: #fff;
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: clamp(1.05rem, 2.8vw, 1.45rem);
    line-height: 1.08;
}

.value-eval-ready-panel p {
    max-width: 46ch;
    margin: 0;
    color: #c9d3e7;
    font-size: clamp(0.78rem, 1.6vw, 0.92rem);
    font-weight: 800;
    line-height: 1.35;
}

.value-eval-ready-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(8px, 1.6vw, 12px);
}

.value-eval-ready-chip {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: clamp(8px, 1.5vw, 12px);
    border: 1px solid rgba(45, 212, 191, 0.20);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
}

.value-eval-ready-chip .setup-piece-glyph {
    width: clamp(30px, 5.2vw, 44px);
    height: clamp(30px, 5.2vw, 44px);
    filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.28));
}

.value-eval-ready-chip span {
    min-width: 0;
    color: #fff;
    font-weight: 1000;
    text-align: left;
    white-space: nowrap;
}

.value-eval-ready-chip strong {
    min-width: clamp(34px, 5vw, 48px);
    padding: 6px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.98), rgba(45, 212, 191, 0.92));
    color: #08111f;
    font-weight: 1000;
    text-align: center;
}

@media (max-width: 520px) {
    .lesson-theory.is-evaluation-mode {
        min-height: auto;
    }

    .evaluation-head {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .evaluation-head .lesson-chip {
        justify-self: start;
        max-width: 100%;
        white-space: normal;
        text-align: left;
    }

    .evaluation-head p {
        line-height: 1.32;
    }

    .evaluation-actions .jq-button {
        flex: 1 1 100%;
        min-width: 0;
    }

    .material-balance-panel {
        width: 96%;
        padding: 10px;
        gap: 8px;
    }

    .material-balance-grid {
        gap: 7px;
    }

    .material-balance-card {
        padding: 9px;
        gap: 7px;
    }

    .material-balance-head i {
        width: 34px;
        border-radius: 11px;
    }

    .value-eval-ready-panel {
        width: 100%;
        height: 100%;
        max-height: 100%;
        align-content: stretch;
        grid-template-rows: auto auto minmax(0, 1fr);
        padding: 8px;
        gap: 5px;
        border-radius: 14px;
        overflow: hidden;
    }

    .value-eval-ready-panel .concept-visual-kicker {
        font-size: 0.64rem;
        letter-spacing: 0.08em;
    }

    .value-eval-ready-panel h4 {
        font-size: 0.92rem;
        line-height: 1.05;
    }

    .value-eval-ready-panel p {
        display: none;
    }

    .value-eval-ready-grid {
        min-height: 0;
        height: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: minmax(0, 1fr);
        gap: 5px;
    }

    .value-eval-ready-chip {
        min-height: 0;
        grid-template-columns: 26px minmax(0, 1fr) auto;
        gap: 4px;
        padding: 4px 5px;
        border-radius: 10px;
    }

    .value-eval-ready-chip .setup-piece-glyph {
        width: 24px;
        height: 24px;
    }

    .value-eval-ready-chip span {
        font-size: 0.72rem;
        line-height: 1;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .value-eval-ready-chip strong {
        min-width: 28px;
        padding: 4px 6px;
        font-size: 0.78rem;
    }
}

.material-ledger-rows {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.material-ledger-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "title"
        "pieces"
        "score";
    gap: 8px;
    padding: 12px;
}

.material-ledger-card > strong {
    grid-area: title;
    min-width: 0;
}

.material-ledger-card > span:not(.material-ledger-pieces) {
    display: none;
}

.material-ledger-pieces {
    grid-area: pieces;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 42px;
}

.material-ledger-pieces .setup-piece-glyph {
    width: 42px;
    height: 42px;
    background-color: transparent;
    background-size: contain;
    box-shadow: none;
}

.material-ledger-pieces .setup-piece-glyph[class*="setup-piece-glyph--b"] {
    filter:
        drop-shadow(0 0 1px rgba(255, 255, 255, 0.92))
        drop-shadow(0 0 7px rgba(238, 228, 209, 0.62))
        drop-shadow(0 0 13px rgba(250, 204, 21, 0.34))
        drop-shadow(0 5px 8px rgba(0, 0, 0, 0.36));
}

.material-ledger-pieces .setup-piece-glyph[class*="setup-piece-glyph--w"] {
    filter:
        drop-shadow(0 0 1px rgba(5, 8, 15, 0.95))
        drop-shadow(0 3px 6px rgba(0, 0, 0, 0.72))
        drop-shadow(0 0 9px rgba(45, 212, 191, 0.18));
}

.material-ledger-card input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.material-score-control {
    grid-area: score;
    display: grid;
    grid-template-columns: 48px minmax(68px, 1fr) 48px 60px;
    gap: 8px;
    min-width: 0;
}

.material-score-button {
    min-width: 0;
    min-height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.075);
    color: #fff;
    font-size: 1rem;
    font-weight: 1000;
}

.material-score-button--boost {
    color: #08111f;
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.96), rgba(45, 212, 191, 0.90));
}

.material-score-value {
    min-width: 0;
    min-height: 42px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.90);
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 1000;
    box-shadow:
        inset 0 0 0 1px rgba(45, 212, 191, 0.32),
        0 0 18px rgba(45, 212, 191, 0.12);
}

.material-outcome-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.material-outcome-button.is-selected {
    border-color: rgba(45, 212, 191, 0.7);
    background: rgba(45, 212, 191, 0.16);
}

@media (max-width: 680px) {
    .piece-value-study-grid,
    .piece-value-target-grid,
    .material-ledger-rows,
    .material-outcome-grid {
        grid-template-columns: 1fr;
    }

    .piece-value-target-grid--board {
        width: 100%;
        height: 100%;
        max-width: none;
        aspect-ratio: auto;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, minmax(0, 1fr));
        gap: 7px;
    }

    .piece-value-target-grid--board .piece-value-target {
        grid-template-columns: 42px minmax(0, 1fr) 58px;
        grid-template-rows: 1fr;
        justify-items: stretch;
        align-items: center;
        gap: 8px;
        padding: 6px 8px;
        border-radius: 14px;
        overflow: hidden;
        text-align: left;
    }

    .piece-value-target-grid--board .piece-value-target .setup-piece-glyph {
        width: 34px;
        height: 34px;
        justify-self: center;
    }

    .piece-value-target-grid--board .piece-value-target strong {
        display: block;
        min-width: 0;
        align-self: center;
        font-size: 0.92rem;
        line-height: 1.05;
        white-space: normal;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .piece-value-target-grid--board .piece-value-drop {
        min-width: 48px;
        width: 48px;
        padding: 7px 8px;
        justify-self: end;
        align-self: center;
        font-size: 1.05rem;
        line-height: 1;
        color: rgba(255, 255, 255, 0.92);
    }

    .piece-value-target-grid--board .piece-value-target.is-matched .piece-value-drop {
        color: #06131f;
        transform: scale(1.04);
    }

    .material-ledger {
        display: grid;
        gap: 10px;
        min-width: 0;
    }

    .material-ledger-rows {
        gap: 8px;
    }

    .material-ledger-card {
        gap: 7px;
        padding: 9px;
    }

    .material-ledger-card > strong {
        grid-area: title;
        min-width: 0;
        font-size: 0.88rem;
        line-height: 1.05;
    }

    .material-ledger-pieces {
        min-width: 0;
        min-height: 28px;
        justify-content: flex-start;
        gap: 4px;
    }

    .material-ledger-pieces .setup-piece-glyph {
        width: 30px;
        height: 30px;
    }

    .material-score-control {
        grid-template-columns: 44px minmax(54px, 1fr) 44px 54px;
        gap: 6px;
    }

    .material-outcome-grid {
        gap: 7px;
    }

    .material-outcome-button {
        min-height: 40px;
        padding: 8px 10px;
    }
}

.board-square-marker--knight-step {
    color: #fff;
}

.knight-path-overlay--sequence .board-square-marker--knight-step {
    z-index: 4;
}

.knight-step-badge {
    position: absolute;
    left: var(--marker-x, 50%);
    top: var(--marker-y, 50%);
    transform: translate(-50%, -50%);
    width: clamp(20px, 4.2vw, 34px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.30);
    font-size: clamp(0.78rem, 2.4vw, 1rem);
    font-weight: 1000;
    line-height: 1;
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.35);
    animation: knightStepPop 520ms ease both;
}

.board-square-marker--knight-rose .knight-step-badge {
    background: linear-gradient(135deg, #e11d48, #be123c);
}

.board-square-marker--knight-gold .knight-step-badge {
    background: linear-gradient(135deg, #d97706, #fbbf24);
    color: #160d02;
}

.board-square-marker--knight-step.is-landing-step .knight-step-badge {
    border-color: rgba(187, 247, 208, 0.82);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.20), 0 0 24px rgba(34, 197, 94, 0.44);
}

.board-square-marker--knight-landing {
    z-index: 2;
}

.knight-landing-badge {
    width: clamp(21px, 3.9vw, 32px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 2px solid rgba(187, 247, 208, 0.92);
    background: radial-gradient(circle, rgba(34, 197, 94, 0.84), rgba(20, 83, 45, 0.76));
    color: #ecfccb;
    font-size: clamp(0.72rem, 2.2vw, 0.94rem);
    font-weight: 1000;
    line-height: 1;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16), 0 0 20px rgba(34, 197, 94, 0.34);
    animation: knightStepPop 420ms ease both;
}

.board-square-marker--knight-skip,
.board-square-marker--knight-question,
.board-square-marker--knight-target {
    font-size: clamp(0.62rem, 1.8vw, 0.86rem);
    font-weight: 1000;
    text-transform: uppercase;
}

.board-square-marker--knight-skip {
    color: #fee2e2;
}

.board-square-marker--knight-skip::before,
.board-square-marker--knight-question::before,
.board-square-marker--knight-target::before {
    content: "";
    position: absolute;
    width: clamp(30px, 5vw, 46px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.42);
}

.board-square-marker--knight-skip::before {
    border: 1px solid rgba(251, 113, 133, 0.62);
}

.board-square-marker--knight-question::before {
    border: 1px solid rgba(250, 204, 21, 0.78);
    background: radial-gradient(circle, rgba(250, 204, 21, 0.26), rgba(15, 23, 42, 0.76));
}

.board-square-marker--knight-target::before {
    border: 1px solid rgba(34, 197, 94, 0.82);
    background: radial-gradient(circle, rgba(34, 197, 94, 0.36), rgba(15, 23, 42, 0.76));
}

.board-square-marker--knight-skip,
.board-square-marker--knight-question,
.board-square-marker--knight-target {
    z-index: 2;
}

.board-square-marker--knight-skip,
.board-square-marker--knight-question,
.board-square-marker--knight-target {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.72);
}

.board-square-marker--knight-tour-number span {
    width: clamp(19px, 3.5vw, 31px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(163, 230, 53, 0.54);
    color: #ecfccb;
    font-size: clamp(0.68rem, 2vw, 0.9rem);
    font-weight: 1000;
    box-shadow: 0 0 18px rgba(163, 230, 53, 0.24);
}

.board-square-marker--knight-tour-number.is-current span {
    background: linear-gradient(135deg, #a3e635, #22d3ee);
    color: #071014;
}

.rook-sequence-list {
    display: grid;
    gap: 10px;
}

.rook-sequence-card {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 3px 9px;
    align-items: center;
    min-width: 0;
    padding: 10px 12px;
    border-radius: var(--jq-radius);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.055);
}

.rook-sequence-card i {
    grid-row: span 2;
    color: var(--jq-dim);
}

.rook-sequence-card strong {
    color: #fff;
}

.rook-sequence-card span {
    color: var(--jq-muted);
    font-size: 0.84rem;
    line-height: 1.34;
}

.rook-sequence-card.is-active {
    border-color: rgba(246, 200, 95, 0.46);
    background: rgba(246, 200, 95, 0.10);
}

.rook-sequence-card.is-active i {
    color: var(--jq-gold);
}

.rook-sequence-card.is-done {
    border-color: rgba(52, 211, 153, 0.50);
    background: rgba(52, 211, 153, 0.11);
}

.rook-sequence-card.is-done i {
    color: var(--jq-green);
}

.evaluation-zone,
.blueprint-zone,
.locked-zone,
.paywall-zone {
    position: relative;
    overflow: hidden;
    margin-top: 16px;
    padding: 16px;
}

.evaluation-zone::before,
.blueprint-zone::before,
.locked-zone::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--academy-accent) 16%, transparent), transparent 32%),
        linear-gradient(90deg, transparent, color-mix(in srgb, var(--academy-accent) 9%, transparent), transparent),
        repeating-linear-gradient(135deg, transparent 0 18px, rgba(255, 255, 255, 0.028) 18px 19px);
    opacity: 0.62;
}

.evaluation-zone > *,
.blueprint-zone > *,
.locked-zone > * {
    position: relative;
    z-index: 1;
}

.evaluation-zone--locked {
    border-color: rgba(212, 175, 55, 0.22);
    background:
        linear-gradient(135deg, rgba(212, 175, 55, 0.07), rgba(199, 0, 57, 0.05)),
        rgba(255, 255, 255, 0.045);
}

.evaluation-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 10px;
    border: 1px solid color-mix(in srgb, var(--academy-accent) 22%, rgba(255, 255, 255, 0.12));
    border-radius: var(--jq-radius);
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--academy-accent) 9%, transparent), rgba(255, 255, 255, 0.035)),
        rgba(2, 6, 14, 0.34);
}

.evaluation-head p,
.blueprint-zone p,
.locked-zone p,
.paywall-zone p,
.evaluation-question p,
.evaluation-feedback p {
    margin: 6px 0 0;
    color: var(--jq-muted);
}

.evaluation-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.paywall-zone--quest {
    position: relative;
    overflow: hidden;
    border-color: rgba(246, 200, 95, 0.28);
    background:
        linear-gradient(135deg, rgba(199, 0, 57, 0.15), rgba(0, 212, 170, 0.08) 52%, rgba(246, 200, 95, 0.12)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 18px),
        rgba(12, 16, 28, 0.92);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.paywall-zone--quest::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent, rgba(246, 200, 95, 0.12), transparent),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 34%);
    opacity: 0.72;
}

.account-access-dialog {
    box-sizing: border-box;
    width: min(92vw, 520px);
    max-width: calc(100vw - 20px);
    max-height: calc(100svh - 20px);
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: transparent;
    color: var(--jq-text);
    overflow: hidden;
}

.account-access-dialog::backdrop {
    background: rgba(2, 6, 14, 0.78);
    backdrop-filter: blur(8px);
}

.account-access-modal.paywall-zone {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-height: calc(100svh - 20px);
    margin-top: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 16px;
    display: grid;
    gap: 12px;
    scrollbar-gutter: stable;
}

.account-access-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    border-radius: 12px;
}

.account-access-modal .paywall-copy,
.account-access-modal .paywall-account,
.account-access-modal .paywall-auth,
.account-access-modal .paywall-account-panel,
.account-access-modal .paywall-form {
    min-width: 0;
    max-width: 100%;
}

.account-access-modal .paywall-copy {
    padding-right: 42px;
}

.account-access-modal .paywall-copy h3 {
    font-size: clamp(1.15rem, 2vw, 1.48rem);
}

.account-access-modal .paywall-copy p:not(.lesson-eyebrow) {
    margin: 4px 0 0;
    font-size: 0.92rem;
    line-height: 1.35;
}

.account-access-modal .paywall-account {
    margin-top: 0;
    padding: 12px;
    gap: 10px;
}

.account-access-modal .paywall-message {
    padding: 9px 10px;
    font-size: 0.9rem;
    line-height: 1.3;
}

.account-access-modal .paywall-auth {
    gap: 10px;
}

.account-access-modal .paywall-auth > p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.35;
}

.account-access-modal .paywall-auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.account-access-modal .paywall-auth-tabs .jq-button {
    min-height: 40px;
    padding-inline: 10px;
    white-space: normal;
    line-height: 1.1;
}

.account-access-modal .paywall-form {
    grid-template-columns: 1fr;
    gap: 9px;
}

.account-access-modal .paywall-field {
    gap: 4px;
}

.account-access-modal .paywall-field input {
    min-height: 42px;
}

.account-access-modal .paywall-email-review,
.account-access-modal .paywall-terms-check {
    padding: 9px 10px;
    font-size: 0.86rem;
    line-height: 1.3;
}

.account-access-modal .paywall-account-head {
    grid-template-columns: 38px minmax(0, 1fr);
}

.account-access-modal .paywall-account-head span {
    overflow-wrap: anywhere;
}

.session-replaced-modal .paywall-copy h3 {
    max-width: 15ch;
}

.session-replaced-actions {
    background:
        linear-gradient(135deg, rgba(255, 193, 7, 0.14), rgba(0, 230, 195, 0.08)),
        rgba(8, 14, 28, 0.82);
}

.session-replaced-buttons {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.session-replaced-buttons .jq-button {
    min-width: 0;
    white-space: normal;
    line-height: 1.12;
}

.paywall-hero,
.paywall-benefits,
.paywall-account {
    position: relative;
    z-index: 1;
}

.paywall-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 14px;
}

.paywall-copy h3 {
    margin-top: 4px;
    font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.paywall-price {
    min-width: 150px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 5px;
    padding: 16px;
    border: 1px solid rgba(246, 200, 95, 0.30);
    border-radius: var(--jq-radius);
    background: rgba(5, 8, 14, 0.54);
}

.paywall-price span {
    color: var(--jq-muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.paywall-price strong {
    color: var(--jq-gold);
    font-size: 1.5rem;
}

.paywall-benefits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.paywall-benefit {
    min-height: 118px;
    display: grid;
    align-content: start;
    gap: 7px;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--jq-radius);
    background: rgba(255, 255, 255, 0.055);
}

.paywall-benefit i {
    color: var(--jq-cyan);
    font-size: 1.1rem;
}

.paywall-benefit strong {
    color: #fff;
    line-height: 1.15;
}

.paywall-benefit span {
    color: var(--jq-muted);
    font-size: 0.84rem;
    line-height: 1.35;
}

.paywall-account {
    display: grid;
    gap: 12px;
    margin-top: 16px;
    padding: 14px;
    border: 1px solid rgba(0, 212, 170, 0.20);
    border-radius: var(--jq-radius);
    background: rgba(4, 10, 16, 0.56);
}

.paywall-message {
    min-height: 0;
    margin: 0;
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--jq-radius);
    background: rgba(255, 255, 255, 0.055);
    font-weight: 800;
}

.paywall-message.is-correct {
    border-color: rgba(52, 211, 153, 0.42);
    color: #bff8dd;
    background: rgba(52, 211, 153, 0.12);
}

.paywall-message.is-wrong {
    border-color: rgba(255, 23, 68, 0.46);
    color: #ffd1da;
    background: rgba(255, 23, 68, 0.12);
}

.paywall-message.is-info {
    border-color: rgba(94, 161, 255, 0.40);
    color: #d8e7ff;
    background: rgba(94, 161, 255, 0.12);
}

.paywall-auth,
.paywall-account-panel,
.paywall-payment,
.paywall-terms-box {
    display: grid;
    gap: 12px;
}

.paywall-auth > strong,
.paywall-payment > strong {
    color: #fff;
    font-size: 1rem;
}

.paywall-auth-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.paywall-zone--terms {
    display: grid;
    gap: 14px;
}

.paywall-terms-summary {
    display: grid;
    gap: 8px;
}

.paywall-terms-summary p {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 9px;
    margin: 0;
    color: var(--jq-muted);
}

.paywall-terms-summary i {
    color: var(--jq-gold);
    margin-top: 2px;
}

.paywall-terms-check {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(246, 200, 95, 0.22);
    border-radius: var(--jq-radius);
    background: rgba(246, 200, 95, 0.07);
    color: var(--jq-muted);
    line-height: 1.45;
}

.paywall-terms-check input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--jq-gold);
}

.paywall-terms-check a,
.terms-document a {
    color: var(--jq-gold);
    font-weight: 900;
}

.paywall-terms-check--form {
    margin-top: 2px;
}

.paywall-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
}

.paywall-field {
    display: grid;
    gap: 6px;
}

.paywall-field span {
    color: var(--jq-muted);
    font-size: 0.82rem;
    font-weight: 900;
}

.paywall-field input {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--jq-radius);
    color: var(--jq-text);
    background: rgba(255, 255, 255, 0.08);
    padding: 0 12px;
    outline: none;
}

.paywall-field input:focus {
    border-color: rgba(0, 212, 170, 0.62);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.12);
}

.paywall-email-review {
    grid-column: 1 / -1;
    display: grid;
    gap: 7px;
    padding: 12px;
    border: 1px solid rgba(244, 197, 66, 0.28);
    border-radius: var(--jq-radius);
    color: var(--jq-muted);
    background: rgba(244, 197, 66, 0.08);
}

.paywall-email-review strong {
    color: #fff;
    font-size: 0.94rem;
}

.paywall-email-review code {
    display: block;
    width: 100%;
    overflow-wrap: anywhere;
    color: var(--jq-gold);
    font-size: 0.92rem;
    font-weight: 900;
}

.paywall-submit-wide {
    grid-column: 1 / -1;
}

.paywall-form .jq-button {
    min-height: 46px;
}

.paywall-link-button {
    grid-column: 1 / -1;
    justify-self: start;
    min-height: 34px;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--jq-gold);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
}

.paywall-link-button:hover {
    color: #fff;
}

.paywall-link-button:disabled {
    cursor: default;
    opacity: 0.65;
}

.paywall-account-head {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 10px;
    align-items: center;
}

.paywall-account-head i {
    grid-row: span 2;
    color: var(--jq-gold);
    font-size: 1.35rem;
}

.paywall-account-head strong {
    color: #fff;
}

.paywall-account-head span {
    color: var(--jq-muted);
    overflow-wrap: anywhere;
}

.paywall-payment {
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.paywall-paypal {
    position: relative;
    width: min(100%, 680px);
    min-height: 56px;
    margin: 0 auto;
    padding: 12px;
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 10px;
    color: #0f172a;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(235, 241, 247, 0.98));
    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.24),
        inset 0 0 0 1px rgba(15, 23, 42, 0.04);
    color-scheme: light;
}

.paywall-paypal::before {
    content: "Pago protegido por PayPal";
    display: block;
    margin: 0 0 10px;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.paywall-paypal::after {
    content: attr(data-paypal-status);
    display: none;
    margin: 10px 0 0;
    padding: 10px 12px;
    border: 1px solid rgba(0, 112, 186, 0.22);
    border-radius: 8px;
    color: #0f3a5f;
    background: rgba(0, 112, 186, 0.08);
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.35;
}

.paywall-paypal.is-paypal-working::after {
    display: block;
}

.paywall-paypal iframe {
    color-scheme: light;
}

.terms-shell {
    width: min(100% - 24px, 980px);
    margin: 0 auto;
    padding: calc(var(--jq-topbar) + 28px) 0 54px;
}

.terms-document {
    display: grid;
    gap: 16px;
    padding: clamp(18px, 3vw, 30px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--jq-radius);
    background:
        linear-gradient(135deg, rgba(199, 0, 57, 0.12), rgba(0, 212, 170, 0.08)),
        rgba(7, 10, 18, 0.86);
    box-shadow: var(--jq-shadow);
}

.terms-document h1,
.terms-document h2 {
    margin: 0;
    color: #fff;
}

.terms-document h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1;
}

.terms-document h2 {
    margin-top: 10px;
    font-size: 1.05rem;
}

.terms-document p,
.terms-document li {
    color: var(--jq-muted);
    line-height: 1.65;
}

.terms-document ul {
    margin: 0;
    padding-left: 1.2rem;
}

.terms-note {
    padding: 12px;
    border: 1px solid rgba(246, 200, 95, 0.25);
    border-radius: var(--jq-radius);
    background: rgba(246, 200, 95, 0.08);
    color: #f7e7b2;
}

.reset-shell {
    width: min(100% - 24px, 620px);
    min-height: 100vh;
    margin: 0 auto;
    padding: calc(var(--jq-topbar) + 44px) 0 44px;
    display: grid;
    place-items: center;
}

.reset-card {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: grid;
    gap: 16px;
    padding: clamp(20px, 4vw, 34px);
    border: 1px solid rgba(246, 200, 95, 0.26);
    border-radius: var(--jq-radius);
    background:
        linear-gradient(135deg, rgba(199, 0, 57, 0.16), rgba(0, 212, 170, 0.09) 54%, rgba(246, 200, 95, 0.12)),
        rgba(12, 16, 28, 0.94);
    box-shadow: var(--jq-shadow);
}

.reset-card h1 {
    margin: 0;
    font-size: clamp(1.55rem, 4vw, 2.45rem);
    line-height: 1;
}

.reset-card > p {
    margin: 0;
    color: var(--jq-muted);
}

.reset-form {
    display: grid;
    gap: 12px;
}

.reset-form .jq-button {
    min-height: 48px;
}

.evaluation-question {
    display: grid;
    gap: 14px;
}

.question-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    color: var(--jq-muted);
    font-size: 0.85rem;
    font-weight: 800;
}

.answer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.answer-button {
    position: relative;
    overflow: hidden;
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--jq-radius);
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--academy-accent) 6%, transparent), rgba(255, 255, 255, 0.055)),
        rgba(255, 255, 255, 0.07);
    color: #fff;
    text-align: left;
    cursor: pointer;
    padding: 12px 14px;
    font-weight: 800;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.answer-button::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--academy-accent) 14%, transparent), transparent);
    opacity: 0;
    transform: translateX(-40%);
    transition: opacity 180ms ease, transform 240ms ease;
}

.answer-button i {
    flex: 0 0 auto;
}

.answer-button:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: rgba(0, 212, 170, 0.55);
}

.answer-button:hover:not(:disabled)::after {
    opacity: 0.72;
    transform: translateX(34%);
}

.answer-button.is-correct {
    background: rgba(52, 211, 153, 0.18);
    border-color: rgba(52, 211, 153, 0.78);
}

.answer-button.is-wrong {
    background: rgba(255, 23, 68, 0.16);
    border-color: rgba(255, 23, 68, 0.7);
}

.answer-button:disabled {
    cursor: default;
    opacity: 0.84;
}

.evaluation-feedback {
    padding: 12px;
    border-radius: var(--jq-radius);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
}

.evaluation-feedback.is-correct {
    border-color: rgba(52, 211, 153, 0.58);
}

.evaluation-feedback.is-wrong {
    border-color: rgba(255, 23, 68, 0.55);
}

.result-panel {
    display: grid;
    gap: 14px;
}

.result-score {
    display: grid;
    place-items: center;
    width: 126px;
    height: 126px;
    border-radius: 50%;
    color: #04120f;
    background: linear-gradient(135deg, var(--jq-cyan), var(--jq-gold));
    font-size: 2.1rem;
    font-weight: 900;
}

.quest-index-dialog {
    width: min(94vw, 920px);
    max-height: min(92svh, 820px);
    padding: 0;
    border: 0;
    border-radius: 22px;
    background: transparent;
    color: var(--jq-text);
}

.quest-index-dialog::backdrop {
    background: rgba(2, 6, 14, 0.78);
    backdrop-filter: blur(10px);
}

.quest-index-modal {
    position: relative;
    display: grid;
    gap: 11px;
    max-height: min(92svh, 820px);
    overflow: auto;
    padding: clamp(14px, 2.2vw, 22px);
    border: 1px solid rgba(34, 211, 238, 0.34);
    border-radius: 22px;
    background:
        radial-gradient(circle at 8% 0%, rgba(34, 211, 238, 0.18), transparent 30%),
        radial-gradient(circle at 100% 16%, rgba(250, 204, 21, 0.13), transparent 28%),
        linear-gradient(180deg, rgba(12, 18, 31, 0.98), rgba(4, 8, 18, 0.99));
    box-shadow: 0 34px 92px rgba(0, 0, 0, 0.62), 0 0 52px rgba(34, 211, 238, 0.14);
}

.quest-index-close {
    position: sticky;
    top: 0;
    justify-self: end;
    z-index: 4;
    width: 42px;
    aspect-ratio: 1;
    padding: 0;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    cursor: pointer;
}

.quest-index-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(199, 0, 57, 0.12)),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 18px);
}

.quest-index-hero__logo {
    width: clamp(46px, 8vw, 62px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #06120f;
    background: linear-gradient(135deg, var(--jq-cyan), var(--jq-gold));
    font-size: clamp(1.15rem, 2.5vw, 1.65rem);
    box-shadow: 0 0 34px rgba(34, 211, 238, 0.22);
}

.quest-index-kicker {
    margin: 0 0 4px;
    color: var(--jq-cyan);
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.quest-index-hero h2 {
    margin: 0;
    font-size: clamp(1.45rem, 3vw, 2.3rem);
    line-height: 1;
}

.quest-index-hero p:last-child {
    max-width: 74ch;
    margin: 6px 0 0;
    color: var(--jq-muted);
    font-weight: 800;
    line-height: 1.35;
}

.quest-index-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 0.85fr)) minmax(220px, 1.45fr);
    gap: 8px;
}

.quest-index-pill {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: 14px;
    background: rgba(34, 211, 238, 0.07);
}

.quest-index-pill strong {
    color: var(--jq-cyan);
    font-size: 0.86rem;
    font-weight: 950;
    white-space: nowrap;
}

.quest-index-pill span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--jq-muted);
    font-size: 0.76rem;
    font-weight: 900;
}

.quest-index-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}

.quest-index-stat {
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.055);
}

.quest-index-stat strong,
.quest-index-stat span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quest-index-stat strong {
    color: var(--jq-cyan);
    font-size: clamp(1.1rem, 3vw, 1.7rem);
    line-height: 1;
}

.quest-index-stat span {
    margin-top: 5px;
    color: var(--jq-muted);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.quest-index-body {
    display: grid;
    gap: 10px;
}

.quest-index-section {
    display: grid;
    gap: 6px;
}

.quest-index-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.quest-index-section__head h3 {
    margin: 0;
    font-size: 0.95rem;
}

.quest-index-section__head span {
    padding: 5px 9px;
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: 999px;
    color: var(--jq-cyan);
    background: rgba(34, 211, 238, 0.08);
    font-size: 0.72rem;
    font-weight: 950;
}

.quest-index-list {
    display: grid;
    gap: 5px;
}

.quest-index-row {
    min-width: 0;
    min-height: 46px;
    padding: 8px 10px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.105);
    border-radius: 12px;
    color: var(--jq-text);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
        repeating-linear-gradient(90deg, rgba(34, 211, 238, 0.035) 0 1px, transparent 1px 28px);
    cursor: pointer;
    text-align: left;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, opacity 160ms ease;
}

.quest-index-row:hover,
.quest-index-row:focus-visible {
    transform: translateX(3px);
    border-color: rgba(34, 211, 238, 0.5);
    background:
        linear-gradient(90deg, rgba(34, 211, 238, 0.12), rgba(250, 204, 21, 0.045)),
        repeating-linear-gradient(90deg, rgba(34, 211, 238, 0.055) 0 1px, transparent 1px 28px);
    outline: none;
}

.quest-index-row:disabled {
    cursor: not-allowed;
    opacity: 0.54;
    transform: none;
}

.quest-index-row.is-current {
    border-color: rgba(250, 204, 21, 0.58);
    background:
        linear-gradient(90deg, rgba(250, 204, 21, 0.12), rgba(34, 211, 238, 0.06)),
        repeating-linear-gradient(90deg, rgba(250, 204, 21, 0.045) 0 1px, transparent 1px 28px);
}

.quest-index-row__number {
    display: grid;
    place-items: center;
    width: 38px;
    height: 30px;
    border-radius: 10px;
    color: #07120f;
    background: linear-gradient(135deg, var(--jq-cyan), var(--jq-gold));
    font-weight: 950;
    font-size: 0.78rem;
}

.quest-index-row__copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.quest-index-row__copy strong,
.quest-index-row__copy small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quest-index-row__copy strong {
    font-size: 0.88rem;
    line-height: 1.1;
}

.quest-index-row__copy small {
    color: var(--jq-muted);
    font-size: 0.68rem;
    font-weight: 850;
}

.quest-index-row__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 999px;
    color: #06120f;
    background: linear-gradient(135deg, var(--jq-cyan), var(--jq-gold));
    font-size: 0.68rem;
    font-weight: 950;
    white-space: nowrap;
}

.quest-index-row.is-locked .quest-index-row__status {
    color: var(--jq-muted);
    background: rgba(255, 255, 255, 0.08);
}

.academy-milestone-dialog {
    width: min(640px, calc(100% - 28px));
    border: 0;
    padding: 0;
    color: var(--jq-text);
    background: transparent;
}

.academy-milestone-dialog::backdrop {
    background: rgba(2, 6, 14, 0.80);
    backdrop-filter: blur(8px);
}

.academy-milestone-modal {
    position: relative;
    overflow: hidden;
    padding: clamp(20px, 4vw, 34px);
    border: 1px solid rgba(34, 211, 238, 0.28);
    border-radius: 22px;
    text-align: center;
    background:
        radial-gradient(circle at 20% 0%, rgba(250, 204, 21, 0.26), transparent 36%),
        radial-gradient(circle at 88% 18%, rgba(34, 211, 238, 0.20), transparent 38%),
        linear-gradient(145deg, rgba(8, 13, 24, 0.98), rgba(24, 9, 26, 0.96));
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.66), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    isolation: isolate;
}

.academy-milestone-modal::before {
    content: "";
    position: absolute;
    inset: -40%;
    z-index: -1;
    background:
        conic-gradient(from 120deg, transparent, rgba(34, 211, 238, 0.18), transparent, rgba(250, 204, 21, 0.16), transparent);
    animation: academyRotate 12s linear infinite;
}

.academy-milestone-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
}

.academy-milestone-badge {
    width: 76px;
    aspect-ratio: 1;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    color: #06120f;
    background: linear-gradient(135deg, var(--jq-gold), var(--jq-cyan));
    box-shadow: 0 0 38px rgba(250, 204, 21, 0.28), 0 0 54px rgba(34, 211, 238, 0.16);
    font-size: 1.8rem;
}

.academy-milestone-kicker {
    margin: 0 0 6px;
    color: var(--jq-cyan);
    font-size: 0.75rem;
    font-weight: 950;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.academy-milestone-modal h2 {
    margin: 0;
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.65rem);
    line-height: 1.02;
}

.academy-milestone-modal > p:not(.academy-milestone-kicker) {
    max-width: 52ch;
    margin: 12px auto 0;
    color: #dbeafe;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 760;
}

.academy-milestone-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0;
}

.academy-milestone-stat {
    min-width: 0;
    padding: 12px 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
}

.academy-milestone-stat strong,
.academy-milestone-stat span {
    display: block;
    overflow-wrap: anywhere;
}

.academy-milestone-stat strong {
    color: var(--jq-gold);
    font-size: 1.12rem;
    font-weight: 950;
}

.academy-milestone-stat span {
    margin-top: 2px;
    color: var(--jq-muted);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.academy-milestone-actions {
    justify-content: center;
}

.quest-index-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
    gap: 9px;
}

.quest-index-card {
    position: relative;
    min-width: 0;
    min-height: 128px;
    padding: 12px;
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    gap: 9px 10px;
    align-items: start;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    color: var(--jq-text);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 24px);
    cursor: pointer;
    overflow: hidden;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.quest-index-card::after {
    content: "";
    position: absolute;
    inset: auto 12px 8px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.85), rgba(250, 204, 21, 0.72), transparent);
    opacity: 0.44;
}

.quest-index-card:hover,
.quest-index-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(34, 211, 238, 0.5);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34), 0 0 24px rgba(34, 211, 238, 0.12);
    outline: none;
}

.quest-index-card:disabled {
    cursor: not-allowed;
    opacity: 0.62;
    transform: none;
    box-shadow: none;
}

.quest-index-card.is-current {
    border-color: rgba(250, 204, 21, 0.62);
    box-shadow: inset 0 0 0 1px rgba(250, 204, 21, 0.12), 0 0 28px rgba(250, 204, 21, 0.08);
}

.quest-index-card.is-completed {
    border-color: rgba(52, 211, 153, 0.34);
}

.quest-index-card.is-premium {
    border-color: rgba(250, 204, 21, 0.34);
}

.quest-index-card.is-locked {
    filter: grayscale(0.28);
}

.quest-index-card__number {
    display: grid;
    place-items: center;
    min-width: 38px;
    height: 38px;
    border-radius: 13px;
    color: #07120f;
    background: linear-gradient(135deg, var(--jq-cyan), var(--jq-gold));
    font-weight: 950;
}

.quest-index-card__glyph {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 13px;
    color: var(--jq-cyan);
    background: rgba(34, 211, 238, 0.09);
    border: 1px solid rgba(34, 211, 238, 0.16);
}

.quest-index-card.is-locked .quest-index-card__glyph {
    color: var(--jq-muted);
    background: rgba(255, 255, 255, 0.06);
}

.quest-index-card__copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.quest-index-card__copy strong,
.quest-index-card__copy small,
.quest-index-card__copy em {
    min-width: 0;
    overflow-wrap: anywhere;
}

.quest-index-card__copy strong {
    font-size: 0.96rem;
    line-height: 1.15;
}

.quest-index-card__copy small {
    color: var(--jq-cyan);
    font-size: 0.72rem;
    font-weight: 900;
}

.quest-index-card__copy em {
    color: var(--jq-muted);
    font-size: 0.78rem;
    font-style: normal;
    line-height: 1.25;
}

.quest-index-card__status {
    grid-column: 1 / -1;
    justify-self: start;
    align-self: end;
    padding: 5px 9px;
    border-radius: 999px;
    color: #06120f;
    background: linear-gradient(135deg, var(--jq-cyan), var(--jq-gold));
    font-size: 0.72rem;
    font-weight: 950;
}

.quest-index-card.is-locked .quest-index-card__status {
    color: var(--jq-muted);
    background: rgba(255, 255, 255, 0.08);
}

.quest-final-dialog {
    width: 100vw;
    max-width: none;
    height: 100svh;
    max-height: none;
    padding: 16px;
    border: 0;
    background:
        linear-gradient(135deg, rgba(5, 10, 24, 0.92), rgba(2, 6, 14, 0.96)),
        repeating-linear-gradient(90deg, rgba(34, 211, 238, 0.07) 0 1px, transparent 1px 54px);
    color: #fff;
    backdrop-filter: blur(10px);
}

.quest-final-dialog::backdrop {
    background: rgba(0, 0, 0, 0.72);
}

.quest-final-modal {
    position: relative;
    display: grid;
    gap: 16px;
    width: min(94vw, 760px);
    max-height: calc(100svh - 32px);
    margin: auto;
    overflow: auto;
    padding: clamp(20px, 4vw, 34px);
    border: 1px solid rgba(34, 211, 238, 0.34);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(4, 9, 20, 0.98)),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 18px);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58), 0 0 46px rgba(34, 211, 238, 0.18);
    text-align: center;
}

.quest-final-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 42px;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
    cursor: pointer;
}

.quest-final-logo {
    justify-self: center;
    width: clamp(76px, 18vw, 118px);
    height: auto;
    filter: drop-shadow(0 0 18px rgba(34, 211, 238, 0.3));
}

.quest-final-badge {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border: 1px solid rgba(250, 204, 21, 0.42);
    border-radius: 999px;
    color: #07120f;
    background: linear-gradient(135deg, var(--jq-gold), var(--jq-cyan));
    font-weight: 950;
}

.quest-final-modal h2 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 0.95;
}

.quest-final-modal p {
    max-width: 62ch;
    margin: 0 auto;
    color: var(--jq-dim);
    font-weight: 800;
}

.quest-final-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.quest-final-stat {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 14px 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.065);
}

.quest-final-stat strong {
    color: var(--jq-cyan);
    font-size: clamp(1.25rem, 4vw, 2rem);
    line-height: 1;
}

.quest-final-stat span {
    color: var(--jq-muted);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.quest-final-message {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: 16px;
    background: rgba(34, 211, 238, 0.08);
    color: var(--jq-text);
    text-align: left;
    font-weight: 850;
}

.quest-final-message i {
    color: var(--jq-cyan);
}

.quest-final-actions {
    justify-content: center;
}

@media (max-width: 560px) {
    .quest-index-dialog {
        width: 100vw;
        max-height: 100svh;
        border-radius: 0;
    }

    .quest-index-modal {
        max-height: 100svh;
        min-height: 100svh;
        border-radius: 0;
        padding: 12px;
    }

    .quest-index-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .quest-index-hero__logo {
        justify-self: center;
    }

    .quest-index-strip {
        grid-template-columns: 1fr;
    }

    .quest-index-pill {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .quest-index-row {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 8px;
        align-items: start;
    }

    .quest-index-row__status {
        grid-column: 2;
        justify-self: start;
        margin-top: 2px;
    }

    .quest-index-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quest-index-grid {
        grid-template-columns: 1fr;
    }

    .quest-index-card {
        min-height: 116px;
    }

    .quest-index-card__copy em {
        font-size: 0.76rem;
    }

    .quest-final-dialog {
        padding: 8px;
    }

    .quest-final-modal {
        max-height: calc(100svh - 16px);
        gap: 12px;
        border-radius: 18px;
    }

    .quest-final-stats {
        grid-template-columns: 1fr;
    }

    .quest-final-actions {
        grid-template-columns: 1fr;
    }
}

.blueprint-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.blueprint-item {
    min-height: 108px;
    padding: 12px;
    border-radius: var(--jq-radius);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.055);
}

.blueprint-item i {
    color: var(--jq-cyan);
    margin-bottom: 10px;
}

.blueprint-item strong {
    display: block;
    margin-bottom: 5px;
}

.blueprint-item span {
    color: var(--jq-muted);
    font-size: 0.84rem;
}

.toast-region {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 100;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 36px));
}

.toast {
    padding: 12px 14px;
    border-radius: var(--jq-radius);
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(11, 16, 27, 0.94);
    box-shadow: var(--jq-shadow);
    color: #fff;
    animation: jqToastIn 260ms ease;
}

.toast.is-success {
    border-color: rgba(52, 211, 153, 0.55);
}

.toast.is-warning {
    border-color: rgba(246, 200, 95, 0.62);
}

.jq-spark-layer {
    position: fixed;
    inset: 0;
    z-index: 90;
    pointer-events: none;
    overflow: hidden;
}

.jq-spark {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--jq-cyan);
    animation: jqSpark 820ms ease forwards;
}

.jq-spark--gold { background: var(--jq-gold); }
.jq-spark--red { background: var(--jq-red-hot); }
.jq-spark--blue { background: var(--jq-blue); }
.jq-spark--violet { background: var(--jq-violet); }

.jq-spark--p1 { --x: -140px; --y: -92px; }
.jq-spark--p2 { --x: -104px; --y: 68px; }
.jq-spark--p3 { --x: -52px; --y: -132px; }
.jq-spark--p4 { --x: 24px; --y: 118px; }
.jq-spark--p5 { --x: 68px; --y: -112px; }
.jq-spark--p6 { --x: 132px; --y: 58px; }
.jq-spark--p7 { --x: 150px; --y: -38px; }
.jq-spark--p8 { --x: -12px; --y: -160px; }

@keyframes jqGridDrift {
    to { transform: translate3d(48px, 48px, 0); }
}

@keyframes academySweep {
    0%, 100% { transform: translateX(-24%); opacity: 0.45; }
    50% { transform: translateX(24%); opacity: 0.88; }
}

@keyframes academyPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.40), 0 0 24px rgba(34, 211, 238, 0.14); }
    50% { box-shadow: 0 0 0 9px rgba(250, 204, 21, 0), 0 0 34px rgba(34, 211, 238, 0.24); }
}

@keyframes academyRotate {
    to { transform: rotate(360deg); }
}

@keyframes academyPanelSweep {
    0%, 100% { transform: translateX(-35%); opacity: 0.22; }
    50% { transform: translateX(35%); opacity: 0.56; }
}

@keyframes academyRailPulse {
    0%, 100% { opacity: 0.52; filter: brightness(0.9); }
    50% { opacity: 1; filter: brightness(1.25); }
}

@keyframes academyButtonShine {
    0%, 62%, 100% { opacity: 0; transform: translateX(0) skewX(-18deg); }
    72% { opacity: 0.85; }
    88% { opacity: 0; transform: translateX(360%) skewX(-18deg); }
}

@keyframes academyBoardScan {
    0%, 100% { transform: translateY(-18%); opacity: 0.18; }
    50% { transform: translateY(18%); opacity: 0.34; }
}

@keyframes jqBoardCorrect {
    0%, 100% { filter: drop-shadow(0 0 0 rgba(52, 211, 153, 0)); }
    50% { filter: drop-shadow(0 0 22px rgba(52, 211, 153, 0.75)); }
}

@keyframes jqBoardWrong {
    0%, 100% { transform: translateX(0); filter: drop-shadow(0 0 0 rgba(255, 23, 68, 0)); }
    25% { transform: translateX(-6px); }
    50% { transform: translateX(6px); filter: drop-shadow(0 0 20px rgba(255, 23, 68, 0.68)); }
    75% { transform: translateX(-4px); }
}

@keyframes jqCornerPulse {
    0%, 100% { transform: scale(0.76); opacity: 0.55; }
    50% { transform: scale(1.12); opacity: 1; }
}

@keyframes jqToastIn {
    from { transform: translateY(12px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes jqEvaluationIn {
    from { transform: translateY(10px) scale(0.985); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes illegalAlertPop {
    0% { transform: scale(0.72); opacity: 0; }
    58% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes jqSpark {
    0% {
        transform: translate(-50%, -50%) scale(0.7) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(0) rotate(220deg);
        opacity: 0;
    }
}

@keyframes mysteryTitlePulse {
    0%, 100% {
        filter: brightness(0.92);
        opacity: 0.86;
    }
    50% {
        filter: brightness(1.18);
        opacity: 1;
    }
}

@keyframes revealTitleFlash {
    0% {
        color: var(--jq-gold);
        text-shadow: 0 0 18px rgba(246, 200, 95, 0.78);
    }
    100% {
        color: inherit;
        text-shadow: none;
    }
}

@keyframes cryptoPlayerPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 18px rgba(0, 212, 170, 0.58); }
    50% { transform: scale(1.08); box-shadow: 0 0 28px rgba(0, 212, 170, 0.86); }
}

@keyframes cryptoVirusPulse {
    0%, 100% { transform: scale(0.94) rotate(0deg); filter: brightness(1); }
    50% { transform: scale(1.08) rotate(8deg); filter: brightness(1.2); }
}

@keyframes cryptoCoinSpin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

@keyframes cryptoCodeBlink {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.08); filter: brightness(1.28); }
}

@keyframes cryptoHackPulse {
    0%, 100% { box-shadow: inset 0 0 0 1px rgba(0, 212, 170, 0.28), inset 0 0 38px rgba(0, 212, 170, 0.12); }
    50% { box-shadow: inset 0 0 0 2px rgba(246, 200, 95, 0.42), inset 0 0 54px rgba(246, 200, 95, 0.24), 0 0 26px rgba(0, 212, 170, 0.18); }
}

@keyframes rookStarPulse {
    0%, 100% { transform: scale(0.92) rotate(0deg); }
    50% { transform: scale(1.08) rotate(10deg); }
}

@keyframes knightStepPop {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.45); }
    70% { opacity: 1; transform: translate(-50%, -50%) scale(1.14); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes promotionCrownPulse {
    0%,
    100% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.14) rotate(-2deg);
        filter: brightness(1.18);
    }
}

.crypto-cell.is-captured,
.prism-cell.is-captured,
.rescue-cell.is-captured,
.core-cell.is-captured {
    z-index: 3;
    border-color: rgba(255, 23, 68, 0.92);
    box-shadow:
        inset 0 0 22px rgba(255, 23, 68, 0.34),
        0 0 22px rgba(255, 23, 68, 0.22);
    animation: captureCellPulse 760ms ease-in-out infinite alternate;
}

.crypto-entity.crypto-entity--captor,
.prism-entity.prism-entity--captor,
.rescue-entity.rescue-entity--captor,
.core-entity.core-entity--captor {
    z-index: 5;
    transform: scale(1.08);
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.18),
        0 0 26px rgba(255, 23, 68, 0.82);
}

@keyframes rescueUnitPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(45, 212, 191, 0.58); }
    50% { transform: scale(1.08); box-shadow: 0 0 30px rgba(96, 165, 250, 0.78); }
}

@keyframes rescueHunterPulse {
    0%, 100% { transform: scale(0.94); filter: brightness(1); }
    50% { transform: scale(1.08); filter: brightness(1.24); }
}

@keyframes rescuePulse {
    0% { box-shadow: inset 0 0 0 rgba(250, 204, 21, 0), 0 0 0 rgba(45, 212, 191, 0); }
    55% { box-shadow: inset 0 0 22px rgba(250, 204, 21, 0.42), 0 0 24px rgba(45, 212, 191, 0.46); }
    100% { box-shadow: inset 0 0 0 rgba(250, 204, 21, 0), 0 0 0 rgba(45, 212, 191, 0); }
}

@keyframes coreGuardianPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(250, 204, 21, 0.56), 0 0 26px rgba(20, 184, 166, 0.18); }
    50% { transform: scale(1.08); box-shadow: 0 0 30px rgba(250, 204, 21, 0.76), 0 0 34px rgba(20, 184, 166, 0.34); }
}

@keyframes coreThreatPulse {
    0%, 100% { transform: scale(0.94); filter: brightness(1); }
    50% { transform: scale(1.09); filter: brightness(1.22); }
}

@keyframes coreDangerPulse {
    0%, 100% { filter: saturate(1); }
    50% { filter: saturate(1.28) brightness(1.08); }
}

@keyframes jumpRobotBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 0 22px rgba(163, 230, 53, 0.58), 0 0 30px rgba(34, 211, 238, 0.20);
    }
    50% {
        transform: translateY(-4px) scale(1.08);
        box-shadow: 0 0 30px rgba(163, 230, 53, 0.78), 0 0 38px rgba(34, 211, 238, 0.32);
    }
}

@keyframes pawnApprenticePulse {
    0%, 100% {
        transform: translateY(0) scale(1);
        filter: brightness(1);
    }
    50% {
        transform: translateY(-4px) scale(1.07);
        filter: brightness(1.14);
    }
}

@keyframes jumpLandingPulse {
    0%, 100% {
        box-shadow: inset 0 0 14px rgba(163, 230, 53, 0.18), 0 0 10px rgba(163, 230, 53, 0.10);
    }
    50% {
        box-shadow: inset 0 0 24px rgba(163, 230, 53, 0.36), 0 0 22px rgba(251, 146, 60, 0.22);
    }
}

@keyframes jumpWeakpointPulse {
    0%, 100% { transform: scale(0.94); filter: brightness(1); }
    50% { transform: scale(1.08); filter: brightness(1.22); }
}

@keyframes jumpImpact {
    0% { transform: scale(0.96); filter: brightness(1); }
    46% { transform: scale(1.06); filter: brightness(1.24); }
    100% { transform: scale(1); filter: brightness(1); }
}

@keyframes cryptoCellError {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    50% { transform: translateX(4px); }
    75% { transform: translateX(-2px); }
}

@keyframes captureCellPulse {
    from {
        filter: saturate(1);
    }

    to {
        filter: saturate(1.35) brightness(1.12);
    }
}

@keyframes cryptoCellCollect {
    0% { box-shadow: inset 0 0 0 rgba(246, 200, 95, 0), 0 0 0 rgba(246, 200, 95, 0); }
    55% { box-shadow: inset 0 0 20px rgba(246, 200, 95, 0.42), 0 0 22px rgba(246, 200, 95, 0.46); }
    100% { box-shadow: inset 0 0 0 rgba(246, 200, 95, 0), 0 0 0 rgba(246, 200, 95, 0); }
}

@keyframes cryptoRevealIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 1180px) {
    .quest-app {
        grid-template-columns: 1fr;
    }

    .quest-map-panel {
        position: relative;
        top: auto;
        max-height: none;
        overflow: visible;
    }
}

@media (min-width: 821px) and (max-width: 1180px) {
    .quest-app {
        width: min(100% - 22px, 1080px);
        padding-top: calc(var(--jq-topbar) + 14px);
        gap: 12px;
    }

    .quest-map-panel {
        padding: 12px;
    }

    .quest-map {
        grid-template-columns: repeat(10, minmax(0, 1fr));
        grid-template-rows: repeat(3, 42px);
        gap: 6px;
    }

    .quest-node {
        width: min(38px, 100%);
    }

    .lesson-panel {
        overflow: visible;
        min-height: auto;
    }

    .lesson-content {
        padding: 12px;
    }

    .lesson-head {
        padding: 9px;
    }

    .lesson-grid,
    .blueprint-grid {
        grid-template-columns: minmax(320px, min(52vw, 520px)) minmax(280px, 1fr);
        gap: 10px;
    }

    .lesson-board-zone {
        position: sticky;
        top: calc(var(--jq-topbar) + 10px);
        z-index: 26;
        padding: 10px 10px 10px 24px;
        background:
            linear-gradient(135deg, rgba(199, 0, 57, 0.09), rgba(0, 212, 170, 0.08)),
            rgba(13, 16, 28, 0.94);
        box-shadow:
            0 16px 34px rgba(0, 0, 0, 0.42),
            0 0 0 1px rgba(255, 255, 255, 0.10),
            0 0 28px var(--academy-glow);
        backdrop-filter: blur(16px);
    }

    .quest-board-shell {
        width: min(100%, calc(100vh - var(--jq-topbar) - 168px));
        width: min(100%, calc(100svh - var(--jq-topbar) - 168px));
        margin-inline: auto;
    }

    .board-caption {
        margin-top: 18px;
        font-size: 0.78rem;
    }

    .learning-stage {
        gap: 10px;
        padding: 12px;
    }
}

@media (min-width: 821px) and (max-width: 1180px) and (max-height: 820px) {
    .lesson-grid,
    .blueprint-grid {
        grid-template-columns: minmax(300px, min(47vw, 460px)) minmax(280px, 1fr);
    }

    .quest-board-shell {
        width: min(100%, calc(100vh - var(--jq-topbar) - 138px));
        width: min(100%, calc(100svh - var(--jq-topbar) - 138px));
    }

    .board-caption {
        margin-top: 14px;
        padding-block: 7px;
    }
}

@media (min-width: 1181px) and (max-width: 1280px) and (max-height: 920px) {
    .quest-app {
        width: min(100% - 18px, 1240px);
        padding-top: calc(var(--jq-topbar) + 14px);
        grid-template-columns: minmax(238px, 268px) minmax(0, 1fr);
        gap: 12px;
    }

    .quest-map-panel {
        top: calc(var(--jq-topbar) + 10px);
        max-height: calc(100vh - var(--jq-topbar) - 24px);
        max-height: calc(100svh - var(--jq-topbar) - 24px);
        padding: 10px;
    }

    .quest-title-block h1 {
        font-size: clamp(1.14rem, 1.45vw, 1.48rem);
    }

    .quest-title-block p:last-child {
        font-size: 0.78rem;
    }

    .quest-map {
        grid-template-rows: repeat(6, 38px);
        gap: 6px;
        padding: 8px;
    }

    .quest-node {
        width: min(34px, 100%);
    }

    .lesson-panel {
        overflow: visible;
        min-height: auto;
    }

    .lesson-content {
        padding: 12px;
    }

    .lesson-head {
        padding: 9px;
    }

    .lesson-grid,
    .blueprint-grid {
        grid-template-columns: minmax(310px, min(46vw, 460px)) minmax(285px, 1fr);
        gap: 10px;
    }

    .lesson-board-zone {
        position: sticky;
        top: calc(var(--jq-topbar) + 10px);
        z-index: 26;
        padding: 10px 10px 10px 24px;
        background:
            linear-gradient(135deg, rgba(199, 0, 57, 0.09), rgba(0, 212, 170, 0.08)),
            rgba(13, 16, 28, 0.94);
        box-shadow:
            0 16px 34px rgba(0, 0, 0, 0.42),
            0 0 0 1px rgba(255, 255, 255, 0.10),
            0 0 28px var(--academy-glow);
        backdrop-filter: blur(16px);
    }

    .quest-board-shell {
        width: min(100%, calc(100vh - var(--jq-topbar) - 150px));
        width: min(100%, calc(100svh - var(--jq-topbar) - 150px));
        margin-inline: auto;
    }

    .board-caption {
        margin-top: 14px;
        padding-block: 7px;
        font-size: 0.76rem;
    }

    .learning-stage {
        gap: 10px;
        padding: 12px;
    }
}

@media (min-width: 821px) and (max-width: 1280px) and (orientation: landscape),
       (min-width: 1281px) and (max-width: 1500px) and (max-height: 820px) and (orientation: landscape),
       (min-width: 1281px) and (max-width: 1500px) and (max-height: 980px) and (orientation: landscape) and (hover: none) and (pointer: coarse) {
    .quest-app {
        width: min(100% - 18px, 1240px);
        grid-template-columns: minmax(216px, 252px) minmax(0, 1fr);
        align-items: start;
        gap: 12px;
    }

    .quest-map-panel {
        position: sticky;
        top: calc(var(--jq-topbar) + 10px);
        max-height: calc(100vh - var(--jq-topbar) - 24px);
        max-height: calc(100svh - var(--jq-topbar) - 24px);
        overflow: auto;
        padding: 10px;
    }

    .quest-title-block h1 {
        font-size: clamp(1.08rem, 1.45vw, 1.42rem);
    }

    .quest-title-block p:last-child {
        font-size: 0.76rem;
        line-height: 1.25;
    }

    .academy-status {
        padding: 9px;
    }

    .quest-map {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        grid-template-rows: repeat(6, 34px);
        gap: 5px;
        padding: 8px;
    }

    .quest-node {
        width: min(31px, 100%);
    }

    .lesson-grid {
        grid-template-columns: minmax(280px, min(43vw, 420px)) minmax(270px, 1fr);
        align-items: start;
        height: auto;
        overflow: visible;
    }

    .lesson-board-zone {
        position: sticky;
        top: calc(var(--jq-topbar) + 10px);
        align-self: start;
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow: visible;
        max-height: calc(100vh - var(--jq-topbar) - 20px);
        max-height: calc(100svh - var(--jq-topbar) - 20px);
    }

    .lesson-board-zone .quest-board-shell {
        flex: 0 0 auto;
        width: min(100%, calc(100vh - var(--jq-topbar) - 150px));
        width: min(100%, calc(100svh - var(--jq-topbar) - 150px));
    }

    .lesson-theory {
        min-height: auto;
        max-height: none;
        overflow: visible;
        overscroll-behavior: auto;
        scroll-behavior: smooth;
    }

    .lesson-theory.is-evaluation-mode {
        min-height: auto;
        overflow: visible;
    }

    .lesson-theory::-webkit-scrollbar {
        width: 10px;
    }

    .lesson-theory::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.045);
        border-radius: 999px;
    }

    .lesson-theory::-webkit-scrollbar-thumb {
        border: 2px solid rgba(8, 12, 22, 0.86);
        border-radius: 999px;
        background: linear-gradient(180deg, var(--academy-accent), var(--academy-accent-2));
    }
}

@media (max-width: 820px) {
    :root {
        --jq-topbar: 66px;
    }

    .jq-topbar {
        padding-inline: 12px;
    }

    .jq-brand img {
        width: 44px;
        height: 44px;
    }

    .jq-brand span {
        max-width: 110px;
        line-height: 1;
    }

    .quest-app {
        width: min(100% - 18px, 760px);
        padding-top: calc(var(--jq-topbar) + 12px);
    }

    .quest-map-panel {
        padding: 10px;
    }

    .quest-kicker {
        font-size: 0.62rem;
    }

    .quest-title-block h1 {
        font-size: 1.38rem;
    }

    .quest-title-block p:last-child {
        display: none;
    }

    .quest-hud {
        margin: 8px 0 6px;
    }

    .academy-status {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas:
            "badge copy"
            "orbit phase";
        margin-top: 9px;
        padding: 9px;
    }

    .academy-status__orbit {
        width: 48px;
    }

    .lesson-academy-ribbon {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .lesson-academy-ribbon__badge,
    .lesson-academy-ribbon__rank {
        width: fit-content;
        max-width: 100%;
    }

    .lesson-academy-ribbon__copy {
        white-space: normal;
        line-height: 1.25;
    }

    .quest-hud__item {
        min-height: 42px;
        padding: 7px;
    }

    .quest-map {
        grid-template-rows: repeat(6, 39px);
        gap: 6px;
        padding: 8px;
    }

    .quest-node {
        width: min(35px, 100%);
    }

    .lesson-grid,
    .blueprint-grid {
        grid-template-columns: 1fr;
    }

    .paywall-hero {
        grid-template-columns: 1fr;
    }

    .paywall-price {
        min-width: 0;
        justify-items: start;
    }

    .paywall-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .paywall-form {
        grid-template-columns: 1fr;
    }

    .lesson-panel {
        overflow: visible;
    }

    .lesson-grid {
        gap: 10px;
    }

    .lesson-board-zone {
        position: sticky;
        top: calc(var(--jq-topbar) + 8px);
        z-index: 30;
        padding: 8px 10px 8px 23px;
        background:
            linear-gradient(135deg, rgba(199, 0, 57, 0.10), rgba(0, 212, 170, 0.08)),
            rgba(13, 16, 28, 0.96);
        box-shadow: 0 16px 34px rgba(0, 0, 0, 0.46), 0 0 0 1px rgba(255, 255, 255, 0.10);
        backdrop-filter: blur(16px);
    }

    .quest-board-shell {
        width: min(100%, 46vh, 390px);
        margin-inline: auto;
    }

    .board-caption {
        margin-top: 18px;
        font-size: 0.78rem;
    }

    .answer-grid {
        grid-template-columns: 1fr;
    }

    .notation-practice-head,
    .notation-answer-row {
        grid-template-columns: 1fr;
    }

    .notation-practice-badge,
    .notation-curiosity-button,
    .notation-answer-row .jq-button {
        width: 100%;
        justify-content: center;
    }

    .notation-examples {
        grid-template-columns: 1fr;
    }

    .notation-replay-head {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .notation-replay-head span {
        grid-column: 1 / -1;
        text-align: left;
    }

    .fide-rules-overlay {
        padding: 8px;
    }

    .fide-rules-panel {
        width: min(96%, 420px);
        gap: 8px;
        padding: 10px;
    }

    .fide-rules-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .fide-rule-card {
        padding: 8px;
    }

    .placement-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    :root {
        --jq-topbar: 62px;
    }

    .jq-topbar {
        gap: 8px;
        padding: 8px;
    }

    .jq-brand {
        flex: 1 1 auto;
        gap: 8px;
    }

    .jq-brand img {
        width: 40px;
        height: 40px;
    }

    .jq-brand span {
        max-width: min(34vw, 116px);
        font-size: 0.96rem;
    }

    .jq-actions {
        flex: 0 0 auto;
        gap: 6px;
    }

    .jq-actions .jq-button,
    .jq-actions .jq-icon-button {
        width: 40px;
        min-width: 40px;
        min-height: 40px;
        padding: 0;
        gap: 0;
        flex: 0 0 40px;
    }

    .jq-actions .jq-button {
        font-size: 0;
    }

    .jq-actions .jq-button i,
    .jq-actions .jq-icon-button i {
        margin: 0;
        font-size: 0.95rem;
    }

    .jq-account-button {
        min-width: 40px;
    }
}

@media (max-width: 520px) {
    .quest-app {
        width: 100%;
        padding-left: 8px;
        padding-right: 8px;
    }

    .quest-title-block h1 {
        font-size: 1.28rem;
        line-height: 1;
    }

    .evaluation-actions {
        align-items: stretch;
    }

    .evaluation-actions .jq-button {
        flex: 1 1 100%;
        min-height: 46px;
        padding: 0 14px;
        line-height: 1.15;
        white-space: normal;
    }

    .command-stage-hud {
        grid-template-columns: 1fr;
    }

    .academy-status__copy small {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        line-height: 1.18;
    }

    .academy-milestone-modal {
        max-height: calc(100svh - 18px);
        overflow: auto;
        padding: 18px 14px;
    }

    .academy-milestone-stats {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .command-stage-chip {
        grid-template-columns: 30px minmax(0, 1fr);
        padding: 8px;
    }

    .command-stage-chip i {
        width: 30px;
        border-radius: 10px;
    }

    .jump-rule-card {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .jump-rule-visual {
        grid-column: 1 / -1;
        justify-self: center;
        width: min(100%, 156px);
    }

    .quest-hud {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .quest-map {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        grid-template-rows: repeat(6, 37px);
        gap: 5px;
        padding: 8px;
    }

    .quest-node {
        width: min(33px, 100%);
    }

    .quest-node__icon {
        width: 18px;
        height: 18px;
        font-size: 0.58rem;
    }

    .paywall-zone--quest {
        padding: 13px;
    }

    .paywall-benefits {
        grid-template-columns: 1fr;
    }

    .paywall-benefit {
        min-height: 0;
    }

    .paywall-auth-tabs .jq-button,
    .paywall-account-panel > .jq-button,
    .paywall-form .jq-button {
        width: 100%;
        justify-content: center;
    }

    .account-access-dialog {
        width: calc(100vw - 14px);
        max-width: calc(100vw - 14px);
        max-height: calc(100svh - 12px);
        border-radius: 16px;
    }

    .account-access-modal.paywall-zone {
        max-height: calc(100svh - 12px);
        padding: 12px;
        gap: 10px;
        scrollbar-gutter: auto;
    }

    .account-access-close {
        top: 8px;
        right: 8px;
        width: 34px;
        min-width: 34px;
        height: 34px;
        min-height: 34px;
        border-radius: 11px;
    }

    .account-access-modal .paywall-copy {
        padding-right: 38px;
    }

    .account-access-modal .paywall-copy h3 {
        font-size: 1.16rem;
    }

    .account-access-modal .paywall-account {
        padding: 10px;
    }

    .account-access-modal .paywall-auth-tabs {
        gap: 7px;
    }

    .account-access-modal .paywall-auth-tabs .jq-button {
        min-height: 38px;
        padding-inline: 7px;
        font-size: 0.82rem;
    }

    .session-replaced-buttons {
        grid-template-columns: 1fr;
    }

    .account-access-modal .paywall-field input {
        min-height: 40px;
    }

    .lesson-board-zone {
        top: calc(var(--jq-topbar) + 4px);
        padding: 7px 8px 7px 21px;
    }

    .quest-board-shell {
        width: min(100%, 42vh, 340px);
    }

    .board-caption {
        gap: 8px;
        margin-top: 16px;
        font-size: 0.76rem;
    }

    .board-caption span {
        max-width: 190px;
    }

    .placement-demo {
        grid-template-columns: 1fr;
    }

    .placement-demo-card {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .placement-options {
        gap: 8px;
    }

    .placement-overlay {
        inset: 7px;
        gap: 8px;
        padding: 8px;
    }

    .placement-overlay__header {
        font-size: 0.78rem;
    }

    .placement-overlay__header span {
        min-width: 42px;
        padding: 4px 7px;
    }

    .mini-board-option {
        padding: 8px;
        font-size: 0.82rem;
    }

    .placement-options--overlay .mini-board-option {
        gap: 5px;
        padding: 6px;
        font-size: 0.76rem;
    }

    .placement-options--overlay .mini-placement-board {
        max-width: 72px;
    }

    .lesson-one-sync-overlay {
        inset: 7px;
        padding: 8px;
    }

    .lesson-one-sync-panel {
        width: min(98%, 360px);
        gap: 7px;
        padding: 12px;
    }

    .lesson-one-sync-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 380px) {
    .jq-brand span {
        display: none;
    }
}
