/* =========================================================
   TEAMSEF — Frost / Crystal theme
   ========================================================= */

:root {
    --bg-0: #020818;
    --bg-1: #04123a;
    --bg-2: #0a2a7a;

    --ice-50: #eef9ff;
    --ice-100: #cdeeff;
    --ice-200: #9fd6ff;
    --ice-300: #6fb8ff;
    --blue-400: #3f8ff5;
    --blue-500: #1f6bff;
    --blue-600: #1846b8;
    --blue-700: #0f2f86;
    --blue-800: #0a2160;

    --gold: #ffc53d;
    --gold-deep: #e8960f;
    --gold-shadow: #8a4b10;
    --red: #ff5d73;
    --green: #3ef0a6;

    --text: #e6f4ff;
    --text-dim: #9ab8e0;
    --line: rgba(150, 210, 255, 0.35);

    --font-display: 'Russo One', 'Arial Black', system-ui, sans-serif;
    --font-body: 'Chakra Petch', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-pixel: 'Silkscreen', ui-monospace, monospace;

    --radius: 16px;
    --nav-h: 68px;
    --gutter: 16px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 12px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg-0);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* =========================================================
   Ambient sky (fixed background)
   ========================================================= */
.sky {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 45% at 50% 18%, rgba(50, 130, 255, 0.45), transparent 70%),
        radial-gradient(ellipse 90% 60% at 50% 110%, rgba(20, 80, 220, 0.55), transparent 70%),
        linear-gradient(180deg, var(--bg-1) 0%, #06205e 45%, var(--bg-0) 100%);
}

.stars {
    position: absolute;
    inset: -50% 0 0 0;
    background-repeat: repeat;
    animation: drift 120s linear infinite;
}
.stars.s1 {
    background-image:
        radial-gradient(1.2px 1.2px at 20px 30px, #fff, transparent),
        radial-gradient(1px 1px at 90px 120px, #bfe6ff, transparent),
        radial-gradient(1.5px 1.5px at 150px 60px, #fff, transparent),
        radial-gradient(1px 1px at 60px 170px, #9fd6ff, transparent);
    background-size: 190px 190px;
    opacity: 0.7;
}
.stars.s2 {
    background-image:
        radial-gradient(2px 2px at 40px 80px, rgba(200, 235, 255, 0.9), transparent),
        radial-gradient(1.4px 1.4px at 210px 200px, #fff, transparent),
        radial-gradient(1px 1px at 250px 40px, #cdeeff, transparent);
    background-size: 300px 300px;
    opacity: 0.5;
    animation-duration: 200s;
}
@keyframes drift { to { transform: translateY(50%); } }

.beams {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 8%, rgba(120, 195, 255, 0.16) 8.4%, transparent 9%),
        linear-gradient(90deg, transparent 19%, rgba(120, 195, 255, 0.08) 19.3%, transparent 20.5%),
        linear-gradient(90deg, transparent 33%, rgba(160, 215, 255, 0.10) 33.2%, transparent 33.6%),
        linear-gradient(90deg, transparent 66%, rgba(160, 215, 255, 0.10) 66.3%, transparent 66.7%),
        linear-gradient(90deg, transparent 80%, rgba(120, 195, 255, 0.08) 80.4%, transparent 81.6%),
        linear-gradient(90deg, transparent 91%, rgba(120, 195, 255, 0.16) 91.3%, transparent 91.9%);
    mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 95%);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 95%);
    animation: flicker 6s ease-in-out infinite;
}
@keyframes flicker {
    0%, 100% { opacity: 1; }
    45% { opacity: 0.6; }
    55% { opacity: 0.95; }
}

.floor {
    position: absolute;
    left: -10%;
    right: -10%;
    bottom: -8%;
    height: 34%;
    background:
        radial-gradient(ellipse 50% 60% at 30% 100%, rgba(30, 90, 220, 0.5), transparent 70%),
        radial-gradient(ellipse 50% 60% at 75% 100%, rgba(20, 70, 200, 0.45), transparent 70%);
    filter: blur(8px);
}

.cube {
    position: absolute;
    filter: drop-shadow(0 0 14px rgba(90, 180, 255, 0.7));
    animation: float 9s ease-in-out infinite;
    opacity: 0.85;
}
.c1 { width: 92px; height: 92px; top: 6%;  left: 4%;   --r: -18deg; animation-duration: 10s; }
.c2 { width: 70px; height: 70px; top: 2%;  right: 22%; --r: 14deg;  animation-duration: 8s; animation-delay: -2s; }
.c3 { width: 110px; height: 110px; top: 30%; right: 3%; --r: 22deg; animation-duration: 12s; animation-delay: -4s; }
.c4 { width: 64px; height: 64px; top: 46%; left: 2%;  --r: 30deg;   animation-duration: 9s; animation-delay: -6s; }
.c5 { width: 50px; height: 50px; top: 74%; right: 12%; --r: -10deg; animation-duration: 11s; animation-delay: -3s; opacity: .6; }
.c6 { width: 80px; height: 80px; top: 82%; left: 14%; --r: 8deg;    animation-duration: 13s; animation-delay: -7s; opacity: .55; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(var(--r)); }
    50% { transform: translateY(-22px) rotate(calc(var(--r) + 8deg)); }
}

/* =========================================================
   Shared components
   ========================================================= */

/* Chunky bevelled tile — echoes the "NEW / LINK" blocks */
.tile {
    display: inline-block;
    font-family: var(--font-display);
    font-size: clamp(1rem, 3.6vw, 1.35rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ice-100);
    padding: 0.3em 0.75em 0.36em;
    border-radius: 9px;
    background: linear-gradient(180deg, #3a87f5 0%, #1f5ad0 55%, #1846b8 100%);
    border: 2px solid var(--ice-200);
    text-shadow: 0 2px 0 var(--blue-800), 0 0 10px rgba(160, 220, 255, 0.6);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.35),
        inset 0 -4px 0 rgba(0, 0, 0, 0.25),
        0 4px 0 var(--blue-800),
        0 0 22px rgba(80, 170, 255, 0.45);
}
.tile-sm {
    font-size: 0.8rem;
    padding: 0.25em 0.6em 0.3em;
    border-radius: 7px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -3px 0 rgba(0, 0, 0, 0.25),
        0 3px 0 var(--blue-800);
}

/* Glowing ice panel — echoes the empty glowing box */
.panel {
    position: relative;
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(60, 130, 245, 0.30) 0%, rgba(20, 60, 170, 0.38) 100%);
    border: 2px solid rgba(140, 205, 255, 0.75);
    box-shadow:
        inset 0 0 0 4px rgba(8, 30, 100, 0.55),
        inset 0 0 0 6px rgba(150, 210, 255, 0.18),
        0 0 26px rgba(60, 150, 255, 0.35),
        0 18px 40px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 22px;
    font-family: var(--font-display);
    font-size: 0.98rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 12px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn:active { transform: translateY(2px); }

.btn-ice {
    color: var(--ice-50);
    background: linear-gradient(180deg, #4f9cff 0%, #2266e0 60%, #1a4fc0 100%);
    border: 2px solid var(--ice-200);
    text-shadow: 0 2px 0 var(--blue-800);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.35),
        0 4px 0 var(--blue-800),
        0 0 20px rgba(80, 170, 255, 0.4);
}
.btn-ice:active { box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), 0 1px 0 var(--blue-800); }

.btn-gold {
    color: #3a1d00;
    background: linear-gradient(180deg, #ffe48a 0%, var(--gold) 45%, var(--gold-deep) 100%);
    border: 2px solid #fff1bf;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.6),
        0 4px 0 var(--gold-shadow),
        0 0 22px rgba(255, 197, 61, 0.35);
}
.btn-gold:active { box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.6), 0 1px 0 var(--gold-shadow); }

.btn-whatsapp {
    color: #04331f;
    background: linear-gradient(180deg, #5ff3bd 0%, #25d366 45%, #128c7e 100%);
    border: 2px solid #c8ffe9;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.6),
        0 4px 0 #075e54,
        0 0 22px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:active { box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.6), 0 1px 0 #075e54; }

.ico { width: 18px; height: 18px; flex: none; }

.live-pip {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 0 rgba(62, 240, 166, 0.7);
    animation: pulse 1.8s ease-out infinite;
    flex: none;
}
.live-pip.red { background: var(--red); --pulse: rgba(255, 93, 115, 0.7); }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 var(--pulse, rgba(62, 240, 166, 0.7)); }
    100% { box-shadow: 0 0 0 10px transparent; }
}

/* =========================================================
   Navbar
   ========================================================= */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 max(var(--gutter), calc((100vw - 1180px) / 2));
    background: linear-gradient(180deg, rgba(4, 18, 58, 0.92), rgba(4, 18, 58, 0.72));
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 0 rgba(160, 215, 255, 0.12), 0 10px 30px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 0.04em;
    color: var(--ice-100);
    flex: none;
}
.nav-logo b { color: var(--ice-300); font-weight: 400; }
.nav-logo-img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid var(--ice-300);
    box-shadow: 0 0 14px rgba(80, 170, 255, 0.55);
}

.nav-links {
    display: flex;
    gap: 4px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}
.nav-links a {
    display: block;
    padding: 8px 14px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-dim);
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--ice-50); background: rgba(120, 190, 255, 0.12); }

.nav-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
}

.lang-toggle {
    width: 44px;
    height: 40px;
    font-family: var(--font-pixel);
    font-size: 0.8rem;
    color: var(--ice-100);
    border-radius: 10px;
    background: rgba(40, 100, 220, 0.35);
    border: 2px solid var(--line);
    transition: border-color 0.15s, background 0.15s;
}
.lang-toggle:hover { border-color: var(--ice-300); background: rgba(60, 130, 245, 0.45); }

.nav-toggle {
    display: none;
    width: 44px;
    height: 40px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 10px;
    background: rgba(40, 100, 220, 0.35);
    border: 2px solid var(--line);
}
.nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--ice-100);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 36px var(--gutter) 72px;
    min-height: calc(100vh - var(--nav-h));
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    font-family: var(--font-pixel);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ice-100);
    border-radius: 999px;
    background: rgba(10, 40, 120, 0.6);
    border: 1px solid var(--line);
}
.hero-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse 1.8s ease-out infinite;
}

/* --- Brushed-metal 3D title --- */
.hero-title {
    margin: 18px 0 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 0.86;
    font-family: var(--font-display);
    font-weight: 400;
}

.metal-wrap {
    position: relative;
    display: inline-block;
    isolation: isolate;
}
/* extrusion + glow sits behind the metal face */
.metal-wrap::before {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    z-index: 0;
    color: var(--blue-700);
    -webkit-text-stroke: 0.04em var(--blue-700);
    text-shadow:
        0 1px 0 #12409a,
        0 2px 0 #113a92,
        0 3px 0 #0f3486,
        0 4px 0 #0e307d,
        0 5px 0 #0c2b72,
        0 6px 0 #0b2768,
        0 7px 0 #0a235e,
        0 8px 0 #091f54,
        0 14px 22px rgba(0, 0, 0, 0.55),
        0 0 46px rgba(70, 160, 255, 0.65);
}
.metal {
    position: relative;
    z-index: 1;
    display: inline-block;
    color: transparent;
    background:
        linear-gradient(112deg, transparent 38%, rgba(255, 255, 255, 0.75) 45%, rgba(255, 255, 255, 0.1) 52%, transparent 58%),
        repeating-linear-gradient(98deg, rgba(255, 255, 255, 0.07) 0 2px, rgba(0, 0, 0, 0.06) 2px 4px),
        linear-gradient(180deg, #f0faff 0%, #a9dcff 22%, #4d97f5 48%, #2a66d9 56%, #3c86ee 74%, #9ad2ff 100%);
    background-size: 250% 100%, auto, auto;
    background-position: 120% 0, 0 0, 0 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-stroke: 0.025em rgba(230, 246, 255, 0.95);
    animation: shine 7s ease-in-out infinite;
}
@keyframes shine {
    0%, 55% { background-position: 120% 0, 0 0, 0 0; }
    85%, 100% { background-position: -40% 0, 0 0, 0 0; }
}

.metal-sm { font-size: clamp(2.6rem, 11vw, 5.4rem); letter-spacing: 0.04em; }
.metal-lg { font-size: clamp(6rem, 30vw, 13rem); letter-spacing: 0.02em; margin-top: -0.02em; }

.hero-sub {
    margin: 18px 0 0;
    font-size: clamp(1rem, 3.4vw, 1.2rem);
    font-weight: 500;
    color: var(--ice-100);
    opacity: 0.85;
}

/* --- World block --- */
.world-block {
    width: 100%;
    max-width: 760px;
    margin-top: 34px;
}
.world-label { margin-bottom: 18px; }
.world-label .tile { font-size: clamp(1.25rem, 5vw, 1.9rem); }

.world-stage {
    display: grid;
    grid-template-columns: 1fr;
    align-items: end;
    gap: 18px;
}
.pillar { display: none; }

.world-panel {
    position: relative;
    padding: 26px 18px 22px;
    border-radius: 22px;
    background:
        radial-gradient(ellipse 80% 70% at 50% 0%, rgba(120, 190, 255, 0.35), transparent 70%),
        linear-gradient(180deg, #2f6fe6 0%, #1f50c4 60%, #1a46b0 100%);
    border: 3px solid #7cc4ff;
    box-shadow:
        inset 0 0 0 5px rgba(10, 38, 115, 0.55),
        inset 0 0 0 7px rgba(170, 225, 255, 0.35),
        inset 0 10px 24px rgba(255, 255, 255, 0.12),
        0 0 0 1px rgba(160, 215, 255, 0.4),
        0 0 40px rgba(70, 160, 255, 0.6),
        0 0 100px rgba(40, 120, 255, 0.35);
    animation: panel-glow 4s ease-in-out infinite;
}
@keyframes panel-glow {
    50% {
        box-shadow:
            inset 0 0 0 5px rgba(10, 38, 115, 0.55),
            inset 0 0 0 7px rgba(170, 225, 255, 0.45),
            inset 0 10px 24px rgba(255, 255, 255, 0.16),
            0 0 0 1px rgba(160, 215, 255, 0.5),
            0 0 56px rgba(90, 175, 255, 0.75),
            0 0 130px rgba(40, 120, 255, 0.45);
    }
}

.world-name {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 10vw, 4.2rem);
    line-height: 1.05;
    letter-spacing: 0.06em;
    color: var(--ice-50);
    text-shadow:
        0 3px 0 var(--blue-800),
        0 0 18px rgba(170, 225, 255, 0.85),
        0 0 40px rgba(90, 170, 255, 0.6);
    overflow-wrap: anywhere;
}

.world-meta {
    min-height: 1.4em;
    margin: 8px 0 18px;
    font-size: 0.9rem;
    color: var(--ice-100);
    opacity: 0.8;
}

.world-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.players-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 16px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ice-100);
    border-radius: 12px;
    background: rgba(6, 24, 80, 0.55);
    border: 2px solid rgba(140, 205, 255, 0.45);
}
#player-count {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: #fff;
}

.copy-btn.copied {
    background: linear-gradient(180deg, #5ff3bd, #23c483);
    border-color: #c8ffe9;
    color: #04331f;
    text-shadow: none;
}
.copy-icon svg { width: 18px; height: 18px; }

.terms-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 12px;
    margin: 26px 0 0;
    font-family: var(--font-display);
    font-size: clamp(0.85rem, 3.2vw, 1.1rem);
    letter-spacing: 0.04em;
    color: var(--ice-100);
    text-shadow: 0 2px 0 var(--blue-800), 0 0 12px rgba(120, 200, 255, 0.6);
}
.terms-line .ico { width: 20px; height: 20px; filter: drop-shadow(0 0 6px rgba(120, 200, 255, 0.8)); }

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 32px;
}

/* =========================================================
   Sections
   ========================================================= */
.section { padding: 72px 0; }

.section-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 36px;
}
.section-head h2 {
    margin: 18px 0 0;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2rem, 7vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--ice-50);
    text-shadow: 0 4px 0 var(--blue-700), 0 0 30px rgba(80, 170, 255, 0.55);
}
.section-head p {
    max-width: 560px;
    margin: 12px 0 0;
    color: var(--text-dim);
}

/* --- Rules --- */
.rules-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}
.rule-card { padding: 22px 18px; }

.rule-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 8px;
    border-bottom: 2px dashed rgba(150, 210, 255, 0.25);
}
.rule-head h3 {
    flex: 1;
    margin: 0;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.45rem;
    letter-spacing: 0.03em;
    color: var(--ice-50);
}
.rule-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex: none;
    font-size: 1.6rem;
    color: var(--ice-50);
    border-radius: 12px;
    background: linear-gradient(180deg, #3a87f5, #1846b8);
    border: 2px solid var(--ice-200);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.3), 0 3px 0 var(--blue-800);
}
.rule-icon img { width: 28px; height: 28px; image-rendering: pixelated; }

.rule-list { margin: 0; padding: 0; list-style: none; }
.rule-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 2px;
    font-weight: 500;
    color: var(--text);
    border-bottom: 1px solid rgba(150, 210, 255, 0.12);
}
.rule-list li:last-child { border-bottom: 0; }

.rr {
    flex: none;
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ffd6dc;
    border-radius: 8px;
    background: rgba(255, 93, 115, 0.16);
    border: 1px solid rgba(255, 93, 115, 0.55);
    white-space: nowrap;
}
.rr.info {
    color: var(--ice-50);
    background: rgba(63, 143, 245, 0.25);
    border-color: var(--ice-300);
}
.rr.pos {
    color: #c9ffe8;
    background: rgba(62, 240, 166, 0.14);
    border-color: rgba(62, 240, 166, 0.55);
}

/* --- YouTube --- */
.yt-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    max-width: 920px;
    margin: 0 auto;
    padding: 28px 20px;
    transition: transform 0.2s;
}
a.yt-card:hover { transform: translateY(-3px); }
.yt-logo {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    flex: none;
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(180deg, #ff4d5e, #c8102e);
    border: 2px solid #ffc2c9;
    box-shadow: 0 4px 0 #6e0717, 0 0 30px rgba(255, 60, 80, 0.45);
}
.yt-logo svg { width: 42px; height: 42px; }
.yt-body { flex: 1; }
.yt-body h3 {
    margin: 10px 0 4px;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.3rem, 4.6vw, 1.75rem);
    color: var(--ice-50);
}
.yt-soon {
    color: var(--text-dim);
    background: rgba(10, 40, 120, 0.55);
    border: 2px dashed var(--line);
    cursor: default;
}
.yt-soon:hover { transform: none; filter: none; }
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    font-family: var(--font-pixel);
    font-size: 0.75rem;
    color: #ffd6dc;
    border-radius: 999px;
    background: rgba(255, 93, 115, 0.16);
    border: 1px solid rgba(255, 93, 115, 0.55);
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
    margin-top: 40px;
    padding: 44px 0 32px;
    background: linear-gradient(180deg, rgba(2, 8, 24, 0) 0%, rgba(2, 8, 24, 0.85) 30%);
    border-top: 1px solid var(--line);
}
.footer-inner { display: grid; gap: 26px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
    border: 2px solid var(--ice-300);
    box-shadow: 0 0 18px rgba(80, 170, 255, 0.45);
}
.footer-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--ice-100);
}
.footer-name b { color: var(--ice-300); font-weight: 400; }
.footer-tagline { color: var(--text-dim); font-size: 0.92rem; }
.footer-label {
    margin-bottom: 6px;
    font-family: var(--font-pixel);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--ice-300);
}
.footer-disclaimer p,
.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-dim);
}
.footer-bottom {
    display: grid;
    gap: 6px;
    padding-top: 20px;
    border-top: 1px solid rgba(150, 210, 255, 0.15);
}
.footer-legal { opacity: 0.75; }

/* =========================================================
   Toast + reveal
   ========================================================= */
.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100vw - 32px);
    padding: 12px 18px;
    font-weight: 600;
    color: var(--ice-50);
    border-radius: 12px;
    background: linear-gradient(180deg, #2f6fe6, #1a46b0);
    border: 2px solid var(--ice-200);
    box-shadow: 0 4px 0 var(--blue-800), 0 0 30px rgba(70, 160, 255, 0.5);
    transform: translate(-50%, 140%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast .ti {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    flex: none;
    border-radius: 50%;
    color: #04331f;
    background: var(--green);
    font-size: 0.85rem;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (min-width: 640px) {
    .world-panel { padding: 34px 32px 28px; }
    .yt-card { flex-direction: row; text-align: left; padding: 26px 30px; }
    .rule-card { padding: 26px 26px; }
}

@media (min-width: 860px) {
    .world-stage { grid-template-columns: 96px 1fr 96px; }
    .pillar {
        display: block;
        width: 96px;
        height: 174px;
        image-rendering: pixelated;
        shape-rendering: crispEdges;
        filter: drop-shadow(0 0 18px rgba(90, 175, 255, 0.55));
    }
    .rules-grid { grid-template-columns: 1fr 1fr; align-items: start; }
    /* only one rules card left: centre it instead of leaving the second column empty */
    .rule-card:only-child { grid-column: 1 / -1; justify-self: center; width: 100%; max-width: 620px; }
    .footer-inner { grid-template-columns: 1fr 1.4fr; align-items: start; }
    .footer-bottom { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 4px;
        margin: 0;
        padding: 12px var(--gutter) 20px;
        background: rgba(4, 18, 58, 0.97);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    }
    .nav-links.open { opacity: 1; transform: none; visibility: visible; }
    .nav-links a { padding: 14px 12px; font-size: 1rem; }
    .c1, .c3 { width: 64px; height: 64px; }
    .c2, .c4 { width: 46px; height: 46px; }
}

@media (max-width: 340px) {
    .nav-logo span { display: none; }
}

@media (max-width: 420px) {
    .rule-list li { font-size: 0.94rem; }
    .btn { padding: 0 18px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}
