/* --------------------------------------
           PALETTE & RESET  (matches site)
        -------------------------------------- */
            :root {
            --beige:    #F0EAD6;
            --tan:      #D2B48C;
            --rose:     #BC4749;
            --rose-dk:  #9b3a3c;
            --teal:     #70A3A7;
            --teal-dk:  #4e7d80;
            --charcoal: #403B33;
            --void:     #03010f;
            --void-mid: #0e0028;
            --arcane:   #9040ee;
            --arcane-lt:#c880ff;
            --gold:     #ffd080;
        }
        body {
            font-family: 'Inter', sans-serif;
            background: var(--void);
            color: var(--beige);
            overflow-x: hidden;
        }

        /* --------------------------------------
           LOGO ANIMATION  (matches site)
        -------------------------------------- */
            @keyframes logo-shift {
            0%   { color: var(--tan); }
            33%  { color: var(--rose); }
            66%  { color: var(--teal); }
            100% { color: var(--tan); }
        }

        /* --------------------------------------
           HEADER  (matches stardust_collection)
        -------------------------------------- */
            .site-header {
            position: sticky; top: 0; z-index: 100;
            background: rgba(3,1,15,0.94);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid rgba(144,64,238,0.25);
        }
            .header-inner {
            max-width: 1100px; margin: 0 auto;
            padding: 0 24px; height: 68px;
            display: flex; justify-content: space-between; align-items: center;
        }
            .logo-link {
            display: flex; align-items: center; gap: 10px;
            font-size: 1.3rem;
        }
        .btn-hub {
            background: var(--rose);
            color: white; font-weight: 700; font-size: 0.9rem;
            padding: 9px 20px; border-radius: 10px;
            transition: background 0.2s, transform 0.15s;
        }
        .btn-hub:hover { background: var(--rose-dk); transform: translateY(-1px); }

        /* --------------------------------------
           HERO
        -------------------------------------- */
        .page-hero {
            position: relative;
            padding: 56px 24px 44px;
            text-align: center;
            overflow: hidden;
        }
        .starfield {
            position: absolute; inset: 0; z-index: 0; overflow: hidden;
        }
        .star-dot {
            position: absolute; border-radius: 50%; background: white;
            animation: twinkle var(--dur, 3s) var(--delay, 0s) infinite ease-in-out;
        }
        @keyframes twinkle {
            0%,100% { opacity: 0.1; transform: scale(1); }
            50%      { opacity: 0.8; transform: scale(1.5); }
        }
        /* Purple radial glow behind title */
        .hero-glow {
            position: absolute; top: 50%; left: 50%;
            transform: translate(-50%, -50%);
            width: 600px; height: 300px;
            background: radial-gradient(ellipse, rgba(100,0,200,0.2) 0%, transparent 70%);
            pointer-events: none; z-index: 0;
        }
        .hero-content { position: relative; z-index: 1; }

        .hero-tag {
            display: inline-block;
            font-family: 'Cinzel', serif;
            font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em;
            text-transform: uppercase; color: var(--arcane-lt);
            border: 1px solid rgba(160,80,255,0.35); border-radius: 999px;
            padding: 5px 16px; margin-bottom: 18px;
        }
        .hero-title {
            font-family: 'Cinzel Decorative', serif;
            font-size: clamp(2.8rem, 8vw, 5.4rem);
            font-weight: 900; line-height: 1.05;
            background: linear-gradient(135deg, #c080ff 0%, #ff60cc 45%, #80c0ff 90%);
            -webkit-background-clip: text; -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 16px;
        }
        .hero-desc {
            font-size: 1rem; color: rgba(220,190,255,0.65);
            max-width: 500px; margin: 0 auto 30px;
            line-height: 1.65;
        }
        .hero-badges {
            display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
            margin-bottom: 8px;
        }
        .badge {
            font-family: 'Cinzel', serif;
            font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em;
            text-transform: uppercase;
            padding: 5px 14px; border-radius: 999px;
            border: 1px solid rgba(160,80,255,0.3);
            color: rgba(200,150,255,0.7);
        }

        /* --------------------------------------
           GAME WRAPPER
        -------------------------------------- */
        .game-wrapper {
            max-width: 1000px;
            margin: 0 auto;
            padding: 0 16px 56px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 16px;
        }

        /* Info bar above game */
        .game-info-bar {
            width: 100%;
            background: rgba(30,0,60,0.7);
            border: 1px solid rgba(144,64,238,0.3);
            border-radius: 14px;
            padding: 12px 24px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 10px;
            backdrop-filter: blur(8px);
        }
        .info-item {
            display: flex; align-items: center; gap: 8px;
            font-size: 0.78rem; color: rgba(200,160,255,0.65);
        }
        .info-item strong {
            font-family: 'Cinzel', serif; font-size: 0.68rem;
            letter-spacing: 0.08em; text-transform: uppercase;
            color: var(--arcane-lt);
        }
        .info-sep { color: rgba(160,80,255,0.25); }

        /* The game iframe */
        .game-frame-wrap {
            width: 100%;
            border-radius: 20px;
            overflow: hidden;
            border: 1px solid rgba(144,64,238,0.3);
            box-shadow: 0 0 60px rgba(100,0,200,0.15), 0 20px 60px rgba(0,0,0,0.5);
            background: #04010e;
            position: relative;
        }
        .game-frame-wrap iframe {
            display: block;
            width: 100%;
            height: min(85vh, 680px);
            border: none;
        }

        /* Controls strip */
        .controls-strip {
            width: 100%;
            display: flex; flex-wrap: wrap;
            gap: 14px; justify-content: center;
        }
        .ctrl-item {
            display: flex; align-items: center; gap: 8px;
            font-size: 0.8rem; color: rgba(200,160,255,0.5);
        }
        .ctrl-key {
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(160,80,255,0.2);
            border-radius: 6px; padding: 3px 10px;
            font-family: 'Cinzel', serif; font-size: 0.68rem;
            font-weight: 700; letter-spacing: 0.05em;
            color: rgba(200,160,255,0.75);
        }

        /* --------------------------------------
           GUIDE SECTION
        -------------------------------------- */
        .guide-wrap {
            max-width: 1000px; margin: 0 auto;
            padding: 0 16px 72px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 24px;
        }
        .guide-panel {
            background: rgba(255,255,255,0.025);
            border: 1px solid rgba(144,64,238,0.15);
            border-radius: 18px;
            padding: 28px 24px;
        }
        .guide-panel h3 {
            font-family: 'Cinzel', serif;
            font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
            text-transform: uppercase; color: var(--arcane-lt);
            margin-bottom: 18px;
        }

        /* Spells grid */
        .spells-grid {
            display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
        }
        .spell-item {
            display: flex; align-items: flex-start; gap: 10px;
            padding: 10px 12px;
            background: rgba(160,80,255,0.05);
            border: 1px solid rgba(160,80,255,0.1);
            border-radius: 10px;
        }
        .spell-emoji { font-size: 1.4rem; flex-shrink: 0; }
        .spell-name {
            font-family: 'Cinzel', serif; font-size: 0.65rem; font-weight: 700;
            letter-spacing: 0.07em; text-transform: uppercase;
            color: var(--arcane-lt); margin-bottom: 2px;
        }
        .spell-trait { font-size: 0.72rem; color: rgba(190,150,255,0.5); line-height: 1.4; }

        /* Enemies list */
        .enemy-list { display: flex; flex-direction: column; gap: 8px; }
        .enemy-item {
            display: flex; align-items: flex-start; gap: 12px;
            padding: 8px 10px;
            border-radius: 8px;
        }
        .enemy-item:hover { background: rgba(160,80,255,0.05); }
        .enemy-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 1px; }
        .enemy-name {
            font-family: 'Cinzel', serif; font-size: 0.65rem; font-weight: 700;
            letter-spacing: 0.07em; text-transform: uppercase;
            color: rgba(210,170,255,0.8); margin-bottom: 2px;
        }
        .enemy-tip { font-size: 0.73rem; color: rgba(180,140,255,0.45); line-height: 1.4; }

        /* How to play list */
        .how-list { display: flex; flex-direction: column; gap: 12px; }
        .how-item { display: flex; gap: 12px; align-items: flex-start; }
        .how-num {
            flex-shrink: 0;
            width: 24px; height: 24px;
            background: rgba(144,64,238,0.25);
            border: 1px solid rgba(160,80,255,0.35);
            border-radius: 50%;
            font-family: 'Cinzel', serif; font-size: 0.65rem; font-weight: 700;
            color: var(--arcane-lt);
            display: flex; align-items: center; justify-content: center;
        }
        .how-text { font-size: 0.82rem; color: rgba(200,170,255,0.6); line-height: 1.55; }
        .how-text strong { color: rgba(210,180,255,0.85); font-weight: 600; }

        /* Relics teaser */
        .relics-grid { display: flex; flex-wrap: wrap; gap: 8px; }
        .relic-chip {
            display: flex; align-items: center; gap: 6px;
            padding: 6px 12px;
            background: rgba(160,80,255,0.06);
            border: 1px solid rgba(160,80,255,0.15);
            border-radius: 20px;
            font-size: 0.72rem; color: rgba(190,150,255,0.6);
        }
        .relic-chip span:first-child { font-size: 1rem; }

        /* Full-width guide panel */
        .guide-panel.full { grid-column: 1 / -1; }
        .boss-info {
            display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 12px;
        }
        .boss-card {
            background: rgba(200,0,80,0.06);
            border: 1px solid rgba(220,60,80,0.2);
            border-radius: 10px; padding: 14px;
        }
        .boss-wave {
            font-family: 'Cinzel', serif; font-size: 0.6rem; font-weight: 700;
            letter-spacing: 0.1em; text-transform: uppercase;
            color: rgba(255,120,120,0.6); margin-bottom: 4px;
        }
        .boss-name {
            font-family: 'Cinzel Decorative', serif; font-size: 0.82rem;
            color: rgba(255,160,160,0.85); margin-bottom: 4px;
        }
        .boss-desc { font-size: 0.72rem; color: rgba(200,150,150,0.5); line-height: 1.4; }

        /* --------------------------------------
           FOOTER
        -------------------------------------- */
        footer {
            border-top: 1px solid rgba(144,64,238,0.15);
            padding: 26px 24px;
            text-align: center;
            font-size: 0.78rem;
            color: rgba(160,120,200,0.4);
        }
        footer a { color: rgba(160,120,200,0.55); }
        footer a:hover { color: rgba(200,160,255,0.8); }

        /* --------------------------------------
           RESPONSIVE
        -------------------------------------- */
        @media (max-width: 680px) {
            .guide-wrap { grid-template-columns: 1fr; }
            .guide-panel.full { grid-column: 1; }
            .spells-grid { grid-template-columns: 1fr; }
            .hero-title { font-size: clamp(2.4rem, 10vw, 3.6rem); }
        }
    
        .footer-brand{display:flex;flex-direction:column;gap:6px;}
.skip-link{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}.skip-link:focus{left:50%;transform:translateX(-50%);top:8px;width:auto;height:auto;padding:10px 20px;background:#BC4749;color:white;font-weight:700;font-size:.9rem;border-radius:8px;z-index:9999;text-decoration:none;white-space:nowrap}
/* mobile-nav cascade fix */
.reveal{opacity:1!important;transform:none!important}