/* rarity colors */
.rarity-tier-basic {
    color: #d8ddea;
    text-shadow: 0 0 6px rgba(220, 230, 255, 0.25), 0 0 2px rgba(14, 22, 38, 0.75);
}

.rarity-tier-epic {
    color: #815482;
    text-shadow: 0 0 8px rgba(129, 84, 130, 0.32), 0 0 2px rgba(15, 6, 24, 0.8);
}

.rarity-tier-unique {
    color: #dba738;
    text-shadow: 0 0 10px rgba(219, 167, 56, 0.35), 0 0 3px rgba(32, 16, 0, 0.82);
}

.rarity-tier-legendary {
    color: #3df1cf;
    text-shadow: 0 0 12px rgba(61, 241, 207, 0.35), 0 0 3px rgba(0, 22, 18, 0.78);
}

.rarity-tier-mythic {
    color: #df1ab0;
    text-shadow: 0 0 14px rgba(223, 26, 176, 0.38), 0 0 4px rgba(30, 0, 22, 0.82);
}

.rarity-tier-exalted {
    color: #10477c;
    text-shadow: 0 0 12px rgba(16, 71, 124, 0.35), 0 0 3px rgba(0, 12, 28, 0.85);
}

.rarity-tier-glorious {
    color: #851010;
    text-shadow: 0 0 12px rgba(133, 16, 16, 0.4), 0 0 3px rgba(26, 0, 0, 0.8);
}

.rarity-tier-transcendent {
    color: #b7f5f5;
    text-shadow: 0 0 14px rgba(183, 245, 245, 0.42), 0 0 3px rgba(18, 30, 36, 0.72);
}

.rarity-tier-challenged {
    color: #080808;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.65), 0 0 2px rgba(0, 0, 0, 0.85);
}

.rarity-tier-limbo {
    color: #d7d7d7;
    text-shadow:
        0 0 6px rgba(40, 40, 40, 0.95),
        0 0 12px rgba(10, 10, 10, 0.9),
        1px 1px 0 rgba(0, 0, 0, 0.95),
        -1px 1px 0 rgba(0, 0, 0, 0.95),
        1px -1px 0 rgba(0, 0, 0, 0.95),
        -1px -1px 0 rgba(0, 0, 0, 0.95);
}

.sigil-subtitle {
    display: block;
    font-size: 0.85em;
    letter-spacing: 0.08em;
    text-transform: none;
    color: var(--text-secondary);
    font-style: italic;
}

.sigil-event-text {
  color: #fff !important;
  text-shadow: 1px 1px 2px #000;
}

.sigil-outline-day {
    text-shadow:
        0 0 4px rgba(95, 90, 58, 0.85),
        0 0 8px rgba(106, 109, 73, 0.7),
        1px 1px 0 rgba(102, 100, 77, 0.95),
        -1px 1px 0 rgba(59, 60, 0, 0.95),
        1px -1px 0 rgba(60, 54, 0, 0.95),
        -1px -1px 0 rgba(123, 126, 107, 0.95);
}

.sigil-outline-night {
    text-shadow:
        0 0 4px rgba(50, 26, 70, 0.85),
        0 0 8px rgba(40, 7, 66, 0.7),
        1px 1px 0 rgba(27, 19, 36, 0.95),
        -1px 1px 0 rgba(43, 0, 60, 0.95),
        1px -1px 0 rgba(48, 0, 60, 0.95),
        -1px -1px 0 rgba(18, 0, 60, 0.95);
}

.sigil-outline-heaven {
    text-shadow:
        0 0 4px rgba(187, 178, 46, 0.85),
        0 0 8px rgba(197, 197, 68, 0.7),
        1px 1px 0 rgba(196, 159, 36, 0.95),
        -1px 1px 0 rgba(153, 163, 51, 0.95),
        1px -1px 0 rgba(183, 169, 89, 0.95),
        -1px -1px 0 rgba(186, 171, 75, 0.95);
}

.sigil-outline-halloween {
    text-shadow:
        0 0 4px rgba(255, 140, 0, 0.85),
        0 0 8px rgba(255, 90, 0, 0.7),
        1px 1px 0 rgba(60, 20, 0, 0.95),
        -1px 1px 0 rgba(60, 20, 0, 0.95),
        1px -1px 0 rgba(60, 20, 0, 0.95),
        -1px -1px 0 rgba(60, 20, 0, 0.95);
}

.sigil-outline-prowler {
    text-shadow:
        0 0 4px rgba(80, 170, 255, 0.85),
        0 0 8px rgba(20, 110, 220, 0.7),
        1px 1px 0 rgba(5, 40, 120, 0.9),
        -1px 1px 0 rgba(5, 40, 120, 0.9),
        1px -1px 0 rgba(5, 40, 120, 0.9),
        -1px -1px 0 rgba(5, 40, 120, 0.9);
}

.sigil-outline-valentine {
    text-shadow:
        0 0 4px rgba(255, 140, 200, 0.85),
        0 0 8px rgba(255, 95, 170, 0.75),
        1px 1px 0 rgba(115, 20, 80, 0.9),
        -1px 1px 0 rgba(115, 20, 80, 0.9),
        1px -1px 0 rgba(115, 20, 80, 0.9),
        -1px -1px 0 rgba(115, 20, 80, 0.9);
}

.sigil-outline-april {
    text-shadow:
        0 0 4px rgba(190, 190, 190, 0.85),
        0 0 8px rgba(140, 140, 140, 0.75),
        1px 1px 0 rgba(80, 80, 80, 0.9),
        -1px 1px 0 rgba(80, 80, 80, 0.9),
        1px -1px 0 rgba(80, 80, 80, 0.9),
        -1px -1px 0 rgba(80, 80, 80, 0.9);
}

.sigil-outline-summer {
    text-shadow:
        0 0 4px rgba(255, 255, 140, 0.9),
        0 0 8px rgba(234, 240, 70, 0.75),
        1px 1px 0 rgba(145, 155, 10, 0.85),
        -1px 1px 0 rgba(155, 155, 10, 0.85),
        1px -1px 0 rgba(150, 155, 10, 0.85),
        -1px -1px 0 rgba(155, 155, 10, 0.85);
}

.sigil-outline-innovator {
    color: #f1e6ff;
    text-shadow:
        0 0 4px rgba(200, 140, 255, 0.9),
        0 0 8px rgba(150, 90, 235, 0.75),
        1px 1px 0 rgba(70, 20, 120, 0.9),
        -1px 1px 0 rgba(70, 20, 120, 0.9),
        1px -1px 0 rgba(70, 20, 120, 0.9),
        -1px -1px 0 rgba(70, 20, 120, 0.9);
}

.sigil-outline-winter {
    text-shadow:
        0 0 4px rgba(210, 240, 255, 0.9),
        0 0 8px rgba(140, 200, 255, 0.75),
        1px 1px 0 rgba(40, 90, 140, 0.85),
        -1px 1px 0 rgba(40, 90, 140, 0.85),
        1px -1px 0 rgba(40, 90, 140, 0.85),
        -1px -1px 0 rgba(40, 90, 140, 0.85);
}

.sigil-outline-winter-2026 {
    color: #eafcff;
    text-shadow:
        0 0 5px rgba(210, 246, 255, 0.95),
        0 0 12px rgba(125, 208, 255, 0.85),
        1px 1px 0 rgba(40, 120, 170, 0.92),
        -1px 1px 0 rgba(40, 120, 170, 0.92),
        1px -1px 0 rgba(40, 120, 170, 0.92),
        -1px -1px 0 rgba(40, 120, 170, 0.92);
}

.sigil-outline-cryogenic {
    color: #e9f8ff;
    text-shadow:
        0 0 6px rgba(150, 230, 255, 0.95),
        0 0 14px rgba(90, 190, 255, 0.9),
        2px 2px 0 rgba(20, 110, 160, 0.95),
        -2px 2px 0 rgba(20, 110, 160, 0.95),
        2px -2px 0 rgba(20, 110, 160, 0.95),
        -2px -2px 0 rgba(20, 110, 160, 0.95);
}

.sigil-outline-blood {
    text-shadow:
        0 0 4px rgba(200, 20, 20, 0.9),
        0 0 8px rgba(150, 0, 0, 0.75),
        1px 1px 0 rgba(60, 0, 0, 0.95),
        -1px 1px 0 rgba(60, 0, 0, 0.95),
        1px -1px 0 rgba(60, 0, 0, 0.95),
        -1px -1px 0 rgba(60, 0, 0, 0.95);
}

.sigil-outline-glitch {
    text-shadow:
        0 0 6px rgba(255, 255, 255, 0.95),
        0 0 14px rgba(255, 255, 255, 0.85),
        2px 0 0 rgba(255, 255, 255, 0.98),
        -2px 0 0 rgba(255, 255, 255, 0.98),
        0 2px 0 rgba(255, 255, 255, 0.98),
        0 -2px 0 rgba(255, 255, 255, 0.98),
        2px 2px 0 rgba(255, 255, 255, 0.98),
        -2px 2px 0 rgba(255, 255, 255, 0.98),
        2px -2px 0 rgba(255, 255, 255, 0.98),
        -2px -2px 0 rgba(255, 255, 255, 0.98);
    color: #0f0018;
}

.sigil-outline-illusionary {
    color: #f7fbff;
    text-shadow:
        0 0 12px rgba(255, 255, 255, 0.95),
        0 0 22px rgba(176, 216, 255, 0.88),
        4px 0 0 rgba(255, 255, 255, 0.95),
        -4px 0 0 rgba(134, 194, 255, 0.95),
        0 4px 0 rgba(255, 255, 255, 0.92),
        0 -4px 0 rgba(134, 194, 255, 0.92),
        6px 2px 0 rgba(255, 255, 255, 0.8),
        -6px -2px 0 rgba(176, 216, 255, 0.82);
    animation: illusionary-glitch 1.8s infinite steps(2, end);
}

@keyframes illusionary-glitch {
    0% {
        text-shadow:
            0 0 12px rgba(255, 255, 255, 0.95),
            0 0 22px rgba(176, 216, 255, 0.88),
            5px 1px 0 rgba(255, 255, 255, 0.95),
            -3px -1px 0 rgba(134, 194, 255, 0.95),
            1px 6px 0 rgba(255, 255, 255, 0.92),
            -1px -6px 0 rgba(134, 194, 255, 0.92),
            7px -3px 0 rgba(255, 255, 255, 0.78),
            -7px 3px 0 rgba(176, 216, 255, 0.82);
    }
    50% {
        text-shadow:
            0 0 12px rgba(255, 255, 255, 0.95),
            0 0 22px rgba(176, 216, 255, 0.88),
            3px -2px 0 rgba(255, 255, 255, 0.95),
            -5px 2px 0 rgba(134, 194, 255, 0.95),
            -2px 6px 0 rgba(255, 255, 255, 0.9),
            2px -6px 0 rgba(134, 194, 255, 0.92),
            6px 3px 0 rgba(255, 255, 255, 0.82),
            -6px -3px 0 rgba(176, 216, 255, 0.84);
    }
    100% {
        text-shadow:
            0 0 12px rgba(255, 255, 255, 0.95),
            0 0 22px rgba(176, 216, 255, 0.88),
            6px 0 0 rgba(255, 255, 255, 0.95),
            -2px 0 0 rgba(134, 194, 255, 0.95),
            0 6px 0 rgba(255, 255, 255, 0.9),
            0 -6px 0 rgba(134, 194, 255, 0.92),
            8px -2px 0 rgba(255, 255, 255, 0.8),
            -8px 2px 0 rgba(176, 216, 255, 0.85);
    }
}

.sigil-outline-dreamspace {
    color: #ffe9ff;
    text-shadow:
        0 0 10px rgba(255, 140, 220, 0.95),
        0 0 18px rgba(255, 90, 210, 0.85),
        0 0 32px rgba(255, 90, 210, 0.75),
        3px 0 0 rgba(255, 110, 220, 0.96),
        -3px 0 0 rgba(255, 110, 220, 0.96),
        0 3px 0 rgba(255, 110, 220, 0.96),
        0 -3px 0 rgba(255, 110, 220, 0.96),
        3px 3px 0 rgba(255, 110, 220, 0.92),
        -3px 3px 0 rgba(255, 110, 220, 0.92),
        3px -3px 0 rgba(255, 110, 220, 0.92),
        -3px -3px 0 rgba(255, 110, 220, 0.92);
}

.sigil-outline-cyberspace {
    color: #deeaff;
    text-shadow:
        0 0 10px rgba(28, 67, 132, 0.95),
        0 0 18px rgba(20, 52, 110, 0.88),
        0 0 32px rgba(12, 38, 90, 0.8),
        3px 0 0 rgba(15, 48, 105, 0.96),
        -3px 0 0 rgba(15, 48, 105, 0.96),
        0 3px 0 rgba(15, 48, 105, 0.96),
        0 -3px 0 rgba(15, 48, 105, 0.96),
        3px 3px 0 rgba(12, 41, 88, 0.94),
        -3px 3px 0 rgba(12, 41, 88, 0.94),
        3px -3px 0 rgba(10, 34, 76, 0.94),
        -3px -3px 0 rgba(10, 34, 76, 0.94);
}

.sigil-outline-limbo {
    color: black;
    text-shadow:
        0 0 10px rgba(172, 172, 172, 0.95),
        0 0 18px rgba(175, 175, 175, 0.88),
        0 0 32px rgba(176, 176, 176, 0.8),
        1px 0 0 rgba(136, 136, 136, 0.96),
        -1px 0 0 rgba(83, 83, 83, 0.96),
        0 1px 0 rgba(64, 64, 64, 0.96),
        -1px -1px 0 rgba(55, 55, 55, 0.94);
}

.sigil-effect-oblivion,
.sigil-effect-memory,
.sigil-effect-neferkhaf,
.sigil-effect-pixelation,
.sigil-effect-luminosity,
.sigil-effect-equinox,
.sigil-effect-megaphone {
    display: inline-block;
    position: relative;
}

.sigil-effect-oblivion {
    background: linear-gradient(92deg, #bb7aff 0%, #401768 40%, #26063c 100%);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 0 16px rgba(187, 122, 255, 0.45);
}

.sigil-effect-memory {
    background: linear-gradient(110deg, #f3d9ff 0%, #a26bff 45%, #3b1061 100%);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 0 20px rgba(200, 140, 255, 0.55);
}

.sigil-effect-neferkhaf {
    background: linear-gradient(125deg, #0b0805 0%, #f1d7a5 55%, #c7903e 100%);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow:
        0 0 6px rgba(12, 9, 6, 0.85),
        0 0 18px rgba(200, 152, 70, 0.6);
}

.sigil-effect-pixelation {
    color: #ff004c;
    animation: aura-pixelation-rgb 0.75s linear infinite, aura-pixelation-sway 1.1s ease-in-out infinite;
    font-family: "Press Start 2P", "Sarpanch", sans-serif;
    font-size: 0.65em;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    -webkit-font-smoothing: none;
    font-smooth: never;
    text-shadow:
        1px 1px 0 rgba(0, 0, 0, 0.85),
        -1px 1px 0 rgba(0, 0, 0, 0.85),
        1px -1px 0 rgba(0, 0, 0, 0.85),
        -1px -1px 0 rgba(0, 0, 0, 0.85),
        0 0 8px rgba(255, 255, 255, 0.55);
}

@keyframes aura-pixelation-rgb {
    0% { color: #ff004c; }
    33% { color: #00fffb; }
    66% { color: #7bff00; }
    100% { color: #ff004c; }
}

@keyframes aura-pixelation-sway {
    0% { transform: rotate(-6deg); }
    50% { transform: rotate(6deg); }
    100% { transform: rotate(-6deg); }
}

.sigil-effect-luminosity {
    color: transparent !important;
    background: linear-gradient(120deg, #f7fdff 0%, #6ad6ff 40%, #e4f7ff 70%, #ffffff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: aura-luminosity-gradient 1.6s ease-in-out infinite;
    text-shadow: 0 0 18px rgba(142, 230, 255, 0.85);
}

.sigil-effect-megaphone {
    font-family: "Press Start 2P", "Sarpanch", monospace;
    font-weight: 700;
    letter-spacing: 0.16em;
    font-size: 0.9em;
    color: #8bf7d0;
    text-shadow:
        0 0 5px rgba(91, 255, 204, 0.55),
        0 0 12px rgba(58, 214, 178, 0.48),
        0 0 18px rgba(18, 140, 115, 0.35),
        1px 1px 0 rgba(0, 40, 32, 0.8),
        -1px 1px 0 rgba(0, 40, 32, 0.8),
        1px -1px 0 rgba(0, 40, 32, 0.8),
        -1px -1px 0 rgba(0, 40, 32, 0.8);
    filter: drop-shadow(0 0 10px rgba(34, 190, 168, 0.55));
    background: linear-gradient(90deg, rgba(61, 255, 206, 0.7), rgba(115, 255, 224, 0.82));
    -webkit-background-clip: text;
    background-clip: text;
    padding: 2px 4px;
    border-radius: 6px;
    box-shadow:
        inset 0 0 0 1px rgba(40, 160, 140, 0.32),
        0 3px 10px rgba(0, 0, 0, 0.3);
}

@keyframes aura-luminosity-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.sigil-effect-nyctophobia {
    position: relative;
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.08em;
    color: #000000;
    text-shadow:
        0 0 6px rgba(255, 255, 255, 0.86),
        0 0 14px rgba(255, 255, 255, 0.42),
        1px 1px 0 rgba(0, 0, 0, 0.85),
        -1px 1px 0 rgba(0, 0, 0, 0.85),
        1px -1px 0 rgba(0, 0, 0, 0.85),
        -1px -1px 0 rgba(0, 0, 0, 0.85);
}

.sigil-effect-nyctophobia::after {
    content: 'Nyctophobia';
    position: absolute;
    inset: 0;
    color: #000000;
    text-shadow:
        0 0 6px rgba(255, 255, 255, 0.86),
        0 0 14px rgba(255, 255, 255, 0.42),
        1px 1px 0 rgba(0, 0, 0, 0.85),
        -1px 1px 0 rgba(0, 0, 0, 0.85),
        1px -1px 0 rgba(0, 0, 0, 0.85),
        -1px -1px 0 rgba(0, 0, 0, 0.85);
    animation:
        aura-nyctophobia-words 0.2s steps(1, end) infinite,
        aura-nyctophobia-flicker 1.8s ease-in-out infinite;
    white-space: nowrap;
    transform-origin: center;
}

@keyframes aura-nyctophobia-words {
    0%, 19% {
        content: 'N̵̮̖͎͐Y̸̱̝͕̏̔͆C̶̫̒̀͌T̵̻̪̓͛̕O̸̪͗͌͝P̷̳̙̏͘H̶͔̮͒̓͝O̵̱̲̎̽͗B̸̗̤̅͐͝I̷͎̫̠̐̏͝Ḁ̶̯̺͋';
    }
    20%, 39% {
        content: 'N̵̗̙̊̒Y̴̢͕͕͋̑͠C̵̘͛̐͘T̴̢͉͂͌O̷̺͇̐̕̚P̵̮̾̅̓H̸̦̫̑̀͠O̸̘͚̾͂B̵̨̮̈́͌Ḭ̵̱̇̓͠A̸̯̼̓̊';
    }
    40%, 59% {
        content: 'N̸̺̯̓̑Y̷̪͓̆̿͝C̷̼̫̍̿̚T̸̯̘̿̿̕Ǫ̶̖̅͘P̵̨̩͋͌̕H̴̰̺̎͘͝O̵̠̺̒͛͝B̴̖͕̾̑̕I̵̙̖̐͠A̵̤͕͗̒̕';
    }
    60%, 79% {
        content: 'Ṅ̷̢̤̗Y̷̡̯͂̎͝C̷̢̛̘̏͗T̴̥͚̽̋O̷̢͖͌͘P̶̫̥͋̿H̶̖̦͂̓́O̵̪͂̍̈́B̴̥̃̔̔I̵̪̩͒̕A̷̯̞͗͠';
    }
    80%, 100% {
        content: 'N̵͚̠̟̯͂Ỵ̷̱̊̌C̸̣̈́Ṱ̸̣̌̂̉͂O̵P̷̬͒Ḩ̷̤̉̾̀O̶͈͙̕B̸̻͑I̸͓̩̥͐̈́͝A̶̱̣̟̝̎';
    }
}

@keyframes aura-nyctophobia-flicker {
    0%, 100% { transform: translateY(0) scale(1); opacity: 1; }
    22% { transform: translateY(-1px) scale(1.01); opacity: 0.92; }
    47% { transform: translateY(1px) scale(0.99); opacity: 0.96; }
    73% { transform: translateY(-1px) scale(1.015); opacity: 0.9; }
}


.sigil-effect-equinox {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-family: "Noto Serif TC", "Noto Serif", "Songti TC", "PMingLiU", serif;
    font-style: normal;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    padding: 0.28em 0.9em;
    color: #ffffff;
    text-shadow:
        0 1px 0 rgba(99, 99, 99, 0.9),
        0 6px 18px rgba(12, 21, 43, 0.58),
        0 18px 38px rgba(0, 0, 0, 0.4);
    filter: drop-shadow(0 5px 18px rgba(8, 15, 34, 0.72));
    transform: skewX(-6deg) scale3d(0.98, 0.98, 1);
    animation:
        aura-equinox-beat calc(60s / 180) linear infinite,
        aura-equinox-chroma calc(120s / 180) steps(2, jump-end) infinite;
    will-change: transform, color;
}

.sigil-effect-equinox::before,
.sigil-effect-equinox::after {
    font-family: "Noto Serif TC", "Noto Serif", "Songti TC", "PMingLiU", serif;
    font-weight: 700;
    font-style: normal;
    letter-spacing: 0;
    color: currentColor;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8),
        0 5px 12px rgba(12, 21, 43, 0.48);
}

.sigil-effect-equinox::before {
    content: '『';
    margin-right: 0.2em;
    transform: skewX(5deg) translateY(-0.06em);
    text-shadow:
        0 1px 0 rgba(99, 99, 99, 0.9),
        0 6px 18px rgba(12, 21, 43, 0.58),
        0 18px 38px rgba(0, 0, 0, 0.4);
}

.sigil-effect-equinox::after {
    content: '』';
    margin-left: 0.2em;
    transform: skewX(-5deg) translateY(-0.06em);
    text-shadow:
        0 1px 0 rgba(99, 99, 99, 0.9),
        0 6px 18px rgba(12, 21, 43, 0.58),
        0 18px 38px rgba(0, 0, 0, 0.4);
}

.moreClass {
    color: #ffffff;
    text-shadow:
        0 1px 0 rgba(99, 99, 99, 0.9),
        0 6px 18px rgba(12, 21, 43, 0.58),
        0 18px 38px rgba(0, 0, 0, 0.4);
    animation:
        aura-equinox-chroma calc(120s / 180) steps(2, jump-end) infinite;
}

@keyframes aura-equinox-beat {
    0% {
        transform: skewX(-6deg) scale3d(0.96, 0.96, 1);
        animation-timing-function: cubic-bezier(0.26, 0.0, 0.42, 1);
    }
    18% {
        transform: skewX(-6deg) scale3d(1.16, 1.16, 1);
        animation-timing-function: cubic-bezier(0.55, 0.02, 0.44, 1);
    }
    46% {
        transform: skewX(-6deg) scale3d(0.98, 0.98, 1);
        animation-timing-function: cubic-bezier(0.25, 0.55, 0.38, 1);
    }
    100% {
        transform: skewX(-6deg) scale3d(1, 1, 1);
    }
}

@keyframes aura-equinox-chroma {
    0%,
    49.999% {
        color: #f7f7f7;
    }
    50%,
    100% {
        color: #050505;
    }
}

@keyframes logo-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 1180px) {
    .interface-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "results results"
            "controls controls"
            "side side";
    }

    .masthead__controls {
        flex-wrap: wrap;
    }

    .surface--side,
    .surface--results,
    .surface--controls {
        width: 100%;
    }
}

@media (max-width: 900px) {
    body {
        padding: clamp(12px, 4vw, 20px);
        align-items: flex-start;
    }

    .interface-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "results"
            "controls"
            "side";
    }

    .interface-layout > .surface {
        width: 100%;
    }

    .masthead__controls {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        align-self: center;
        flex-wrap: wrap;
    }

    .interface-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .banner__meta {
        text-align: center;
    }

    .banner__title,
    .banner__subtitle,
    .surface__title,
    .surface__subtitle {
        text-align: center;
    }

    .feed__viewport {
        min-height: 260px;
    }

    .feed__meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

.surface--parameters,
.surface--presets {
    grid-area: auto;
}

@media (max-width: 1180px) {
    .interface-subgrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .preset-matrix--compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .interface-subgrid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .interface-shell {
        gap: 14px;
    }

    .interface-header {
        align-items: center;
    }

    .masthead__brand {
        flex-direction: column;
        text-align: center;
    }

    .options-menu__trigger {
        text-align: left !important;
    }

    .surface {
        padding: 16px;
    }

    .form-field__combo {
        flex-direction: column;
    }

    .interface-toggle {
        width: 100%;
        text-align: center;
    }

    .quick-action-group {
        flex-direction: column;
    }

    .preset-matrix {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .preset-matrix--compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .roll-trigger {
        font-size: 18px;
    }
}

@media (max-width: 540px) {
    .preset-matrix--compact {
        grid-template-columns: minmax(0, 1fr);
    }

    .preset-matrix--compact button {
        font-size: 0.7rem;
        letter-spacing: 0.06em;
    }
}

.cutscene-warning-overlay,
.modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 5vw, 48px);
    background: rgba(3, 8, 18, 0.82);
    backdrop-filter: blur(6px);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 260ms cubic-bezier(0.24, 0.82, 0.25, 1);
}

.cutscene-warning-overlay[hidden],
.modal-overlay[hidden] {
    display: none !important;
}

.cutscene-warning-overlay[data-visible],
.modal-overlay[data-visible] {
    opacity: 1;
    pointer-events: auto;
}

.cutscene-warning-overlay[data-closing],
.modal-overlay[data-closing] {
    pointer-events: none;
}

.intro-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 5vw, 48px);
    background: radial-gradient(circle at 30% 20%, rgba(127, 227, 255, 0.1), rgba(2, 8, 20, 0.8)),
        linear-gradient(180deg, rgba(2, 6, 14, 0.9), rgba(2, 4, 10, 0.96));
    z-index: 10000;
}

.intro-overlay[hidden] {
    display: none !important;
}

.intro-overlay__panel {
    width: min(680px, 90vw);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: clamp(20px, 4vw, 32px);
    background: linear-gradient(180deg, rgba(10, 16, 30, 0.96), rgba(4, 10, 20, 0.96));
    border: 1px solid rgba(120, 200, 255, 0.35);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 32px rgba(127, 227, 255, 0.16);
    text-align: center;
}

.intro-overlay__logo img {
    display: block;
    width: min(400px, 60vw);
    filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.5));
}

.intro-overlay__copy {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1.05rem;
    letter-spacing: 0.08em;
}

.intro-overlay__start-button {
    --button-scale: 1;
    --button-raise: -2px;
    padding: 14px 26px;
    border-radius: 12px;
    background: linear-gradient(135deg, #7fe3ff, #3792ff);
    border: 1px solid rgba(120, 200, 255, 0.6);
    color: #03101f;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.intro-overlay__start-button:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6), 0 0 16px rgba(127, 227, 255, 0.35);
    background: linear-gradient(135deg, #9ef0ff, #45a7ff);
}

.intro-overlay__start-button:active {
    transform: translateY(0) scale(0.99);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5);
}

  .cutscene-warning-overlay[data-visible] .surface--modal,
  .modal-overlay[data-visible] .surface--modal {
      --corner-size: clamp(28px, 6vw, 36px);
      --corner-thickness: 3px;
      animation: modal-pop 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .cutscene-warning-overlay[data-closing] .surface--modal,
  .modal-overlay[data-closing] .surface--modal {
      animation: modal-fade-out 0.28s cubic-bezier(0.4, 0, 0.2, 1) both;
  }

  .audio-modal {
      position: relative;
      display: flex;
      flex-direction: column;
      gap: 18px;
  }

  .audio-modal__header {
      display: flex;
      flex-direction: column;
      gap: 6px;
  }

  .audio-modal__title {
      margin: 0;
      font-size: clamp(18px, 2vw, 22px);
      letter-spacing: 0.18em;
      text-transform: uppercase;
  }

  .audio-modal__hint {
      margin: 0;
      color: var(--text-secondary);
      font-size: 0.95rem;
  }

.audio-modal__controls {
    display: block;
}

.audio-modal__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.audio-modal__toggles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    align-items: center;
    gap: 16px;
}

.audio-modal__toggle {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.audio-modal__toggle-label {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 600;
    color: var(--text-primary);
}

.audio-slider,
.audio-switch,
.audio-modal__toggle {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
    background: radial-gradient(circle at 20% 20%, rgba(95, 199, 255, 0.08), transparent 40%),
        linear-gradient(180deg, rgba(16, 28, 46, 0.92), rgba(6, 12, 24, 0.96));
    border: 1px solid rgba(120, 200, 255, 0.24);
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 28px rgba(0, 0, 0, 0.32);
}

.audio-slider__label-row,
.audio-switch__label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 600;
}

.audio-slider__label,
.audio-switch__label {
    color: var(--text-primary);
}

.audio-slider__value,
.audio-switch__status {
    font-variant-numeric: tabular-nums;
    color: var(--accent);
}

.audio-slider__input {
    --audio-slider-progress: 50%;
    --audio-slider-fill: #55d3ff;
    --audio-slider-track: rgba(10, 18, 34, 0.92);
    --audio-slider-border: rgba(120, 200, 255, 0.42);
    appearance: none;
    width: 100%;
    height: 26px;
    background:
        linear-gradient(
            90deg,
            var(--audio-slider-fill) 0%,
            var(--audio-slider-fill) var(--audio-slider-progress),
            var(--audio-slider-track) var(--audio-slider-progress)
        ),
        linear-gradient(180deg, rgba(12, 24, 44, 0.92), rgba(5, 10, 20, 0.98));
    border: 2px solid var(--audio-slider-border);
    border-radius: 12px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05),
        0 10px 20px rgba(0, 0, 0, 0.42);
    outline: none;
    cursor: pointer;
}

.audio-slider__input::-webkit-slider-thumb {
    appearance: none;
    width: 26px;
    height: 26px;
    margin-top: -2px;
    background: linear-gradient(135deg, #c9f2ff, #4fc8ff);
    border: 2px solid rgba(12, 158, 210, 0.9);
    border-radius: 8px;
    box-shadow: 0 0 0 6px rgba(79, 200, 255, 0.22), 0 10px 20px rgba(0, 0, 0, 0.48);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.audio-slider__input::-moz-range-thumb {
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #c9f2ff, #4fc8ff);
    border: 2px solid rgba(12, 158, 210, 0.9);
    border-radius: 8px;
    box-shadow: 0 0 0 6px rgba(79, 200, 255, 0.22), 0 10px 20px rgba(0, 0, 0, 0.48);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.audio-slider__input:active::-webkit-slider-thumb,
.audio-slider__input:focus-visible::-webkit-slider-thumb,
.audio-slider__input:active::-moz-range-thumb,
.audio-slider__input:focus-visible::-moz-range-thumb {
    transform: translateY(-1px) scale(1.06);
    box-shadow:
        0 0 0 7px rgba(79, 200, 255, 0.3),
        0 14px 26px rgba(0, 0, 0, 0.56);
}

.audio-slider__input::-webkit-slider-runnable-track {
    height: 100%;
    background: inherit;
    border: none;
    border-radius: inherit;
}

.audio-slider__input::-moz-range-track {
    height: 100%;
    background: inherit;
    border: none;
    border-radius: inherit;
}

.audio-switch__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.audio-switch__track {
    position: relative;
    display: block;
    width: 100%;
    height: 30px;
    background: linear-gradient(180deg, rgba(8, 18, 34, 0.92), rgba(4, 10, 20, 0.96));
    border: 2px solid rgba(120, 200, 255, 0.42);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 20px rgba(0, 0, 0, 0.38);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.audio-switch__thumb {
    position: absolute;
    top: 50%;
    left: 6px;
    width: 24px;
    height: 24px;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #8de5ff, #47bfff);
    border: 2px solid rgba(12, 158, 210, 0.95);
    border-radius: 8px;
    box-shadow: 0 0 0 8px rgba(79, 200, 255, 0.14), 0 10px 20px rgba(0, 0, 0, 0.45);
    transition: left 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.audio-switch__input:checked + .audio-switch__track {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 24px rgba(0, 0, 0, 0.42);
    border-color: rgba(140, 230, 255, 0.6);
}

.audio-switch__input:checked + .audio-switch__track .audio-switch__thumb {
    left: calc(100% - 30px);
    background: linear-gradient(135deg, #c9f2ff, #7fe3ff);
    box-shadow: 0 0 0 10px rgba(127, 227, 255, 0.16), 0 12px 24px rgba(0, 0, 0, 0.5);
}

.changelog-modal {
    display: flex;
    flex-direction: column;
    gap: clamp(18px, 3vh, 28px);
    position: relative;
}

.changelog-modal__close {
    position: absolute;
    top: clamp(16px, 3vw, 28px);
    right: clamp(16px, 3vw, 28px);
    z-index: 20;
}

.changelog-modal__tabbar {
    position: absolute;
    top: calc(clamp(24px, 4vw, 38px) - 64px);
    left: clamp(24px, 4vw, 38px);
    right: clamp(24px, 4vw, 38px);
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: clamp(3px, 1vw, 5px);
    row-gap: clamp(5px, 1vh, 12px);
    z-index: -1;
    pointer-events: none;
}

.changelog-tab {
    appearance: none;
    border: none;
    background: linear-gradient(180deg, rgba(30, 42, 66, 0.95) 0%, rgba(10, 16, 32, 0.9) 100%);
    color: var(--text-secondary);
    font-family: "Sarpanch", sans-serif;
    font-size: clamp(13px, 1.6vw, 15px);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 14px 20px 12px;
    border-radius: 12px 12px 0 0;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        0 16px 28px rgba(2, 6, 14, 0.58);
    cursor: pointer;
    transition:
        transform 160ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 160ms ease,
        background 160ms ease,
        color 160ms ease,
        filter 160ms ease;
    position: relative;
    transform: translateY(15px);
    pointer-events: auto;
    top: -21px;
    z-index: -100 !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.changelog-tab__title {
    text-transform: uppercase;
}

.changelog-tab__subtitle {
    font-size: 1.32em;
    letter-spacing: 0.12em;
    text-transform: none;
    margin-top: -6px;
    background: linear-gradient(135deg, #ffffff, #e3eeff, #aab1ff, #7e96ff, #aab1ff, #e3eeff, #ffffff);
    background-size: 300% 300%;
    animation: class-gradient 5.25s linear infinite;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.changelog-tab__subtitle::before {
    content: "|- ";
}

.changelog-tab__subtitle::after {
    content: " -|";
}

.changelog-tab:not(.changelog-tab--active) {
    color: var(--text-tertiary);
    filter: saturate(0.6) brightness(0.9);
}

.changelog-tab:not(.changelog-tab--active):hover,
.changelog-tab:not(.changelog-tab--active):focus-visible {
    transform: translateY(7.5px);
    filter: none;
    color: var(--text-secondary);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.16),
        0 20px 30px rgba(4, 12, 26, 0.62);
}

.changelog-tab:focus-visible {
    outline: none;
    box-shadow:
        inset 0 0 0 1px #9de8ff,
        0 22px 34px rgba(4, 12, 26, 0.68);
}

.changelog-tab--active {
    color: var(--text-primary);
    background: linear-gradient(180deg, rgba(157, 232, 255, 0.78) 0%, rgba(30, 58, 94, 0.98) 100%);
    transform: translateY(0);
    box-shadow:
        inset 0 0 0 1px rgba(157, 232, 255, 0.65),
        0 24px 36px rgba(4, 12, 26, 0.72);
    z-index: 10;
    filter: none;
}

.changelog-modal__panels {
    display: block;
    overflow: hidden;
    transition: height 280ms cubic-bezier(0.24, 0.82, 0.25, 1);
}

.changelog-modal__panels--animating {
    will-change: height;
}

.changelog-modal__panel {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 3vh, 24px);
    z-index: 10 !important;
    max-height: min(65vh, 640px);
    overflow-y: auto;
    padding-right: 4px;
}

.changelog-modal__panel[hidden] {
    display: none;
}

.changelog-modal__header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.changelog-modal__title {
    margin: 0;
    font-size: clamp(20px, 3vw, 26px);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.changelog-modal__meta {
    margin: 0;
    font-size: clamp(13px, 1.8vw, 15px);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.changelog-modal__intro {
    margin: 0;
    color: var(--text-secondary);
}

.changelog-modal__list {
    margin: 0;
    padding-left: 1.4em;
    display: flex;
    flex-direction: column;
    gap: 0.65em;
    color: var(--text-primary);
}

.changelog-modal__list--sub {
    margin-top: 0.45em;
    padding-left: 1.2em;
    gap: 0.45em;
    color: var(--text-secondary);
    font-size: 0.95em;
}

.changelog-modal__list li {
    line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
    .cutscene-warning-overlay,
    .modal-overlay {
        transition: none;
    }

    .cutscene-warning-overlay[data-visible] .surface--modal,
    .cutscene-warning-overlay[data-closing] .surface--modal,
    .modal-overlay[data-visible] .surface--modal,
    .modal-overlay[data-closing] .surface--modal {
        animation: none;
        transform: none;
    }

    .changelog-modal__panels {
        transition: none;
    }
}

.surface--modal {
    --corner-size: 24px;
    padding: clamp(24px, 4vw, 38px);
    width: min(540px, 90vw);
    transform-origin: center;
}

.surface--modal.changelog-modal {
    width: min(920px, 103vw);
    padding-top: calc(clamp(24px, 4vw, 38px) + 68px);
    overflow: visible;
}

.surface--modal::after {
    border-radius: 0;
}

.cutscene-warning {
    max-width: min(540px, 90vw);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 4vh, 28px);
    margin: 0 auto;
}

.cutscene-warning__message {
    margin: 0;
    font-size: clamp(18px, 3vw, 22px);
    line-height: 1.4;
    color: var(--text-secondary);
}

.cutscene-warning__message--subtle {
    font-size: clamp(15px, 2.6vw, 18px);
    color: var(--text-tertiary);
}

.cutscene-warning__ratio {
    font-weight: 700;
    color: var(--text-primary);
}

.cutscene-warning__note {
    font-weight: 700;
    color: #9de8ff;
}

.cutscene-warning__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rotation-prompt {
    gap: clamp(16px, 3vh, 24px);
}

.rotation-prompt__icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(16px, 4vw, 28px);
    color: var(--text-primary);
}

.rotation-prompt__icon {
    font-size: clamp(36px, 10vw, 64px);
    width: clamp(60px, 14vw, 88px);
    height: clamp(60px, 14vw, 88px);
    display: grid;
    place-items: center;
    animation: rotationPulse 2.4s ease-in-out infinite;
}

.rotation-prompt__icon--tablet {
    animation-delay: 0.22s;
}

.rotation-prompt__message {
    margin-top: -4px;
}

.rotation-prompt[data-form-factor="phone"] .rotation-prompt__icon--tablet,
.rotation-prompt[data-form-factor="tablet"] .rotation-prompt__icon--phone {
    opacity: 0.55;
}

@keyframes rotationPulse {
    0% {
        transform: rotate(0deg);
        opacity: 1;
    }
    40% {
        transform: rotate(90deg);
        opacity: 1;
    }
    55% {
        transform: rotate(90deg);
        opacity: 0;
    }
    75% {
        transform: rotate(0deg);
        opacity: 0;
    }
    100% {
        transform: rotate(0deg);
        opacity: 1;
    }
}

@keyframes modal-pop {
    0% {
        transform: scale(0.95);
    }
    60% {
        transform: scale(1.03);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes modal-fade-out {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.97);
    }
}

@media (min-width: 640px) {
    .cutscene-warning__actions {
        flex-direction: row;
        justify-content: center;
    }
}
