﻿:root {
    --bg-0: #02050b;
    --bg-1: #07101a;
    --panel: rgba(5, 16, 24, 0.8);
    --panel-strong: rgba(8, 22, 32, 0.92);
    --line: rgba(95, 255, 196, 0.2);
    --green: #63f7a7;
    --amber: #ffd166;
    --cyan: #66e6ff;
    --text: #e8fff2;
    --muted: #a8c9be;
    --danger: #ff7f7f;
    --orange: #ff9f43;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    padding: 32px 18px;
    background:
        radial-gradient(circle at top, rgba(72, 255, 182, 0.08), transparent 28%),
        linear-gradient(180deg, #061019 0%, #03060d 100%);
    color: var(--text);
    font-family: "Courier New", monospace;
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    text-shadow:
        0.08rem 0 0 rgba(255, 0, 80, 0.3),
        -0.08rem 0 0 rgba(0, 220, 255, 0.24),
        0 0 10px rgba(120, 255, 186, 0.08);
    animation: crt-flicker 0.09s infinite;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at center, transparent 42%, rgba(0, 0, 0, 0.7) 100%),
        linear-gradient(115deg, rgba(255, 255, 255, 0.04), transparent 30%);
    pointer-events: none;
    z-index: -2;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background:
        repeating-linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.08) 0,
            rgba(255, 255, 255, 0.08) 1px,
            rgba(0, 0, 0, 0.18) 2px,
            rgba(0, 0, 0, 0.18) 5px
        ),
        linear-gradient(
            to right,
            rgba(255, 0, 80, 0.1),
            rgba(0, 255, 255, 0.03) 50%,
            rgba(0, 120, 255, 0.1)
        );
    mix-blend-mode: screen;
    opacity: 0.44;
    pointer-events: none;
    animation: scan-drift 5s linear infinite;
    z-index: 3;
}

.screen-shell {
    width: min(1100px, 100%);
    margin: 0 auto;
}

.screen-frame {
    position: relative;
    padding: 28px;
    border: 1px solid rgba(123, 255, 206, 0.22);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(10, 27, 36, 0.96), rgba(4, 11, 18, 0.96));
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04),
        0 24px 70px rgba(0, 0, 0, 0.45),
        inset 0 0 35px rgba(99, 247, 167, 0.08);
    overflow: hidden;
}

.screen-frame::before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    pointer-events: none;
}

.screen-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 22%),
        radial-gradient(circle at 50% 100%, rgba(99, 247, 167, 0.08), transparent 26%);
    pointer-events: none;
}

.hero-panel,
.panel {
    position: relative;
    z-index: 1;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 22px;
    box-shadow:
        inset 0 0 18px rgba(102, 230, 255, 0.04),
        0 10px 24px rgba(0, 0, 0, 0.18);
    animation: panel-float 7s ease-in-out infinite;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.hero-panel::before,
.panel::before,
.tier-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, rgba(102, 230, 255, 0.08), transparent);
    transform: translateX(-100%);
    animation: hud-sweep 9s linear infinite;
    pointer-events: none;
}

.hero-panel::after,
.panel::after,
.tier-card::after {
    content: "";
    position: absolute;
    top: 12px;
    right: 12px;
    width: 14px;
    height: 14px;
    border-top: 1px solid rgba(102, 230, 255, 0.28);
    border-right: 1px solid rgba(102, 230, 255, 0.28);
    opacity: 0.85;
    pointer-events: none;
}

.hero-panel {
    text-align: center;
    padding-top: 30px;
    animation-delay: 0.15s;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--cyan);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

h1,
h2,
h3 {
    margin-top: 0;
}

h1 {
    color: var(--green);
    text-shadow: 0 0 8px rgba(34, 197, 94, 0.55), 0 0 18px rgba(34, 197, 94, 0.35);
    margin-bottom: 18px;
    display: flex;
    justify-content: center;
    width: 100%;
    text-align: center;
}

.title-typewriter {
    display: inline-block;
    width: 0;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--green);
    animation: typing 3.2s steps(38, end) forwards, caret-blink 0.7s step-end infinite;
}

.lead,
.note,
p,
li,
dd,
td,
th {
    color: var(--muted);
}

.lead {
    width: min(760px, 100%);
    margin: 0 auto;
    font-size: 1.05rem;
}

.lead,
.secret-room__portal-copy,
td,
dd,
li {
    overflow-wrap: anywhere;
}

.system-readout {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.readout-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(102, 230, 255, 0.2);
    background: rgba(7, 19, 26, 0.85);
    color: var(--cyan);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    box-shadow: inset 0 0 12px rgba(99, 247, 167, 0.06);
    animation: pulse-glow 2.4s ease-in-out infinite;
}

.readout-pill:nth-child(2) {
    animation-delay: 0.35s;
}

.readout-pill:nth-child(3) {
    animation-delay: 0.7s;
}

.readout-pill:nth-child(4) {
    animation-delay: 1.05s;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px rgba(99, 247, 167, 0.9);
    animation: status-blink 1.4s ease-in-out infinite;
}

h2 {
    color: var(--amber);
    border-left: 4px solid var(--amber);
    padding-left: 12px;
    margin-bottom: 14px;
}

h3 {
    color: var(--cyan);
    margin-bottom: 12px;
}

b {
    color: var(--danger);
}

.info-grid,
.tips-grid,
.recommendation-grid {
    display: grid;
    gap: 22px;
}

.info-grid,
.tips-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.recommendation-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 18px;
}

.tier-card {
    position: relative;
    background: var(--panel-strong);
    border: 1px solid rgba(102, 230, 255, 0.18);
    border-radius: 18px;
    padding: 18px;
    box-shadow: inset 0 0 18px rgba(99, 247, 167, 0.05);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.tier-card:nth-child(1) {
    animation: panel-float 6s ease-in-out infinite;
}

.tier-card:nth-child(2) {
    animation: panel-float 6.8s ease-in-out infinite;
}

.tier-card:nth-child(3) {
    animation: panel-float 7.4s ease-in-out infinite;
}

.tier-label {
    margin: 0 0 10px;
    color: var(--amber);
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.tier-card:nth-child(1):hover {
    border-color: rgba(99, 247, 167, 0.4);
}

.tier-card:nth-child(2):hover {
    border-color: rgba(255, 209, 102, 0.45);
}

.tier-card:nth-child(3):hover {
    border-color: rgba(255, 127, 127, 0.45);
}

.feature-list,
.tier-card ol {
    margin: 0;
    padding-left: 22px;
}

.feature-list li,
.tier-card li {
    margin-bottom: 10px;
}

blockquote {
    margin: 18px 0 0;
    padding: 14px 16px;
    background-color: rgba(30, 41, 59, 0.48);
    border-left: 4px solid var(--cyan);
    box-shadow: inset 0 0 18px rgba(56, 189, 248, 0.08);
    color: var(--text);
    font-style: italic;
}

pre {
    margin: 0;
    background-color: rgba(1, 8, 14, 0.95);
    color: var(--green);
    padding: 18px;
    border: 1px solid rgba(123, 255, 206, 0.14);
    border-radius: 14px;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.18), inset 0 0 24px rgba(34, 197, 94, 0.08);
    overflow-x: auto;
}

.table-wrap {
    overflow-x: auto;
}

.comparison-cards {
    display: none;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
    background: rgba(1, 10, 15, 0.5);
    border-radius: 14px;
    overflow: hidden;
}

th,
td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(123, 255, 206, 0.12);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--green);
    background: rgba(99, 247, 167, 0.08);
    font-weight: bold;
}

tr:last-child td {
    border-bottom: none;
}

tbody tr {
    transition: background-color 0.22s ease, box-shadow 0.22s ease;
}

tbody tr:hover {
    background: rgba(102, 230, 255, 0.05);
}

.meter-label {
    display: block;
    margin-bottom: 6px;
}

.meter {
    display: block;
    width: 110px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.35);
}

.meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--green), var(--cyan));
    box-shadow: 0 0 12px rgba(102, 230, 255, 0.35);
    animation: meter-pulse 2.8s ease-in-out infinite;
}

.meter-2 span {
    width: 40%;
}

.meter-3 span {
    width: 60%;
}

.meter-4 span {
    width: 80%;
    background: linear-gradient(90deg, var(--amber), var(--orange));
}

.meter-5 span {
    width: 100%;
    background: linear-gradient(90deg, var(--danger), var(--orange));
}

.meter-variable span {
    background: linear-gradient(90deg, var(--cyan), var(--amber), var(--danger));
}

.glossary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 18px;
}

.glossary div {
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(123, 255, 206, 0.12);
    background: rgba(1, 8, 14, 0.5);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

dt {
    color: var(--cyan);
    font-weight: bold;
    margin-bottom: 8px;
}

dd {
    margin: 0;
}

.note {
    margin-bottom: 0;
}

.secret-room {
    position: relative;
    z-index: 1;
    width: fit-content;
    margin: 6px 0 0 auto;
    animation: fade-rise 0.7s ease forwards;
    animation-delay: 0.7s;
    opacity: 0;
}

.secret-room summary {
    list-style: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px dashed rgba(255, 209, 102, 0.28);
    background: rgba(12, 20, 26, 0.72);
    color: rgba(255, 209, 102, 0.8);
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.secret-room summary::-webkit-details-marker {
    display: none;
}

.secret-room summary:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 209, 102, 0.55);
    box-shadow: 0 0 14px rgba(255, 209, 102, 0.12);
}

.secret-room[open] summary {
    margin-bottom: 12px;
    color: var(--amber);
}

.secret-room__panel {
    width: min(840px, calc(100vw - 48px));
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid rgba(255, 209, 102, 0.24);
    background: linear-gradient(180deg, rgba(25, 20, 8, 0.92), rgba(11, 13, 18, 0.95));
    box-shadow:
        inset 0 0 22px rgba(255, 209, 102, 0.06),
        0 16px 30px rgba(0, 0, 0, 0.28);
    animation: secret-reveal 0.3s ease;
}

.secret-room__tag {
    margin: 0 0 8px;
    color: var(--amber);
    font-size: 0.76rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.secret-room__panel h2 {
    margin-bottom: 12px;
}

.secret-room__game-shell {
    margin-top: 18px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(102, 230, 255, 0.14);
    background: rgba(3, 9, 14, 0.88);
    box-shadow:
        inset 0 0 18px rgba(102, 230, 255, 0.05),
        0 10px 24px rgba(0, 0, 0, 0.18);
}

.secret-room__console-tag {
    margin: 0 0 12px;
    color: var(--cyan);
    font-size: 0.76rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.secret-room__portal {
    position: relative;
    display: grid;
    gap: 10px;
    width: 100%;
    min-height: 220px;
    padding: 24px;
    border: 1px solid rgba(99, 247, 167, 0.18);
    border-radius: 14px;
    background:
        radial-gradient(circle at top right, rgba(102, 230, 255, 0.08), transparent 30%),
        linear-gradient(180deg, rgba(2, 5, 11, 0.98), rgba(5, 16, 24, 0.96));
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03),
        inset 0 0 20px rgba(99, 247, 167, 0.04);
    color: var(--text);
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.secret-room__portal::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(102, 230, 255, 0.12), transparent);
    transform: translateX(-100%);
    animation: hud-sweep 8s linear infinite;
    pointer-events: none;
}

.secret-room__portal::after {
    content: ">> ENTER";
    position: absolute;
    right: 18px;
    bottom: 16px;
    color: rgba(99, 247, 167, 0.9);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
}

.secret-room__portal:hover,
.secret-room__portal:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(102, 230, 255, 0.38);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04),
        inset 0 0 20px rgba(99, 247, 167, 0.07),
        0 16px 28px rgba(0, 0, 0, 0.26),
        0 0 20px rgba(102, 230, 255, 0.1);
}

.secret-room__portal:focus-visible {
    outline: 2px solid rgba(102, 230, 255, 0.65);
    outline-offset: 4px;
}

.secret-room__portal-label {
    color: var(--amber);
    font-size: 0.76rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.secret-room__portal strong {
    color: var(--green);
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(99, 247, 167, 0.25);
}

.secret-room__portal-copy {
    max-width: 44ch;
    color: var(--muted);
}

.comparison-card {
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(102, 230, 255, 0.16);
    background: rgba(3, 11, 17, 0.78);
    box-shadow: inset 0 0 18px rgba(99, 247, 167, 0.04);
}

.comparison-card h3 {
    margin-bottom: 14px;
}

.comparison-card p {
    margin: 0 0 8px;
}

.comparison-card .meter {
    margin: 0 0 14px;
}

.screen-frame > * {
    opacity: 0;
    transform: translateY(14px);
    animation: fade-rise 0.7s ease forwards;
}

.screen-frame > *:nth-child(1) {
    animation-delay: 0.08s;
}

.screen-frame > *:nth-child(2) {
    animation-delay: 0.18s;
}

.screen-frame > *:nth-child(3) {
    animation-delay: 0.28s;
}

.screen-frame > *:nth-child(4) {
    animation-delay: 0.38s;
}

.screen-frame > *:nth-child(5) {
    animation-delay: 0.48s;
}

.screen-frame > *:nth-child(6) {
    animation-delay: 0.58s;
}

.panel:hover,
.hero-panel:hover {
    transform: translateY(-3px);
    border-color: rgba(102, 230, 255, 0.34);
    box-shadow:
        inset 0 0 22px rgba(102, 230, 255, 0.06),
        0 16px 30px rgba(0, 0, 0, 0.24),
        0 0 18px rgba(102, 230, 255, 0.08);
}

.tier-card:hover,
.glossary div:hover {
    transform: translateY(-5px);
    box-shadow:
        inset 0 0 20px rgba(99, 247, 167, 0.08),
        0 18px 28px rgba(0, 0, 0, 0.28),
        0 0 16px rgba(102, 230, 255, 0.1);
}

li:hover,
td:hover {
    color: var(--text);
    transition: 0.2s;
}

@keyframes crt-flicker {
    0%,
    100% {
        opacity: 1;
    }
    35% {
        opacity: 0.97;
    }
    50% {
        opacity: 0.99;
    }
    75% {
        opacity: 0.95;
    }
}

@keyframes scan-drift {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(10px);
    }
}

@keyframes panel-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

@keyframes hud-sweep {
    0% {
        transform: translateX(-100%);
    }
    55%,
    100% {
        transform: translateX(100%);
    }
}

@keyframes pulse-glow {
    0%,
    100% {
        box-shadow: inset 0 0 12px rgba(99, 247, 167, 0.06), 0 0 0 rgba(102, 230, 255, 0);
    }
    50% {
        box-shadow: inset 0 0 12px rgba(99, 247, 167, 0.12), 0 0 14px rgba(102, 230, 255, 0.12);
    }
}

@keyframes status-blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.45;
    }
}

@keyframes meter-pulse {
    0%,
    100% {
        filter: saturate(1);
    }
    50% {
        filter: saturate(1.35) brightness(1.05);
    }
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes caret-blink {
    0%,
    49% {
        border-color: var(--green);
    }
    50%,
    100% {
        border-color: transparent;
    }
}

@keyframes fade-rise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes secret-reveal {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 900px) {
    body {
        padding: 24px 14px;
    }

    .screen-frame {
        padding: 22px;
        border-radius: 24px;
    }

    .hero-panel,
    .panel {
        padding: 20px;
        margin-bottom: 18px;
    }

    .info-grid,
    .tips-grid,
    .recommendation-grid,
    .glossary {
        grid-template-columns: 1fr;
    }

    .recommendation-grid {
        gap: 16px;
    }

    .glossary {
        gap: 12px;
    }

    .lead {
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    body {
        padding: 18px 10px;
    }

    .screen-frame {
        padding: 16px;
        border-radius: 20px;
    }

    .hero-panel,
    .panel {
        padding: 18px;
        border-radius: 16px;
    }

    .hero-panel {
        padding-top: 22px;
    }

    .title-typewriter {
        white-space: normal;
        width: 100%;
        border-right: none;
        animation: none;
    }

    h1 {
        display: block;
        margin-bottom: 14px;
        font-size: 1.9rem;
    }

    h2 {
        padding-left: 10px;
        margin-bottom: 12px;
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1.02rem;
    }

    .eyebrow {
        letter-spacing: 0.1em;
        font-size: 0.72rem;
        margin-bottom: 10px;
    }

    .lead {
        font-size: 0.96rem;
        line-height: 1.65;
    }

    .system-readout {
        gap: 8px;
        margin-top: 16px;
        justify-content: flex-start;
    }

    .readout-pill {
        font-size: 0.72rem;
        padding: 7px 10px;
        width: 100%;
        justify-content: center;
    }

    .secret-room {
        width: 100%;
        margin-top: 10px;
    }

    .secret-room summary {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        text-align: center;
    }

    .secret-room__panel {
        width: 100%;
        padding: 16px;
    }

    .secret-room__game-shell {
        padding: 12px;
    }

    .secret-room__portal {
        min-height: 180px;
        padding: 18px;
    }

    .table-wrap {
        display: none;
    }

    .comparison-cards {
        display: grid;
        gap: 14px;
        margin-top: 14px;
    }

    pre,
    blockquote {
        padding: 14px;
        font-size: 0.92rem;
    }

    .feature-list,
    .tier-card ol {
        padding-left: 18px;
    }

    .tier-card {
        padding: 16px;
    }

    .hero-panel::before,
    .panel::before,
    .tier-card::before {
        animation-duration: 12s;
    }
}

@media (max-width: 480px) {
    body {
        padding: 12px 8px;
    }

    .screen-frame {
        padding: 12px;
        border-radius: 18px;
    }

    .hero-panel,
    .panel,
    .tier-card {
        padding: 14px;
        border-radius: 14px;
    }

    h1 {
        font-size: 1.55rem;
    }

    .lead,
    p,
    li,
    dd,
    td,
    th,
    pre,
    blockquote {
        font-size: 0.9rem;
    }

    .readout-pill {
        font-size: 0.68rem;
        padding: 6px 9px;
    }

    .status-dot {
        width: 8px;
        height: 8px;
    }

    .secret-room__panel,
    .secret-room__game-shell {
        padding: 12px;
    }

    .secret-room__portal {
        min-height: 160px;
        padding: 14px;
    }

    .secret-room__portal strong {
        font-size: 1.05rem;
    }

    .comparison-card {
        padding: 14px;
    }
}
