:root {
      color-scheme: dark;
      --ink: #f4f7ff;
      --muted: #a9b6d3;
      --gold: #ffd36b;
      --gold-deep: #f0a023;
      --ice: #8fe3ff;
      --ice-deep: #2aa7e8;
      --rose: #ff6b7d;
      --pine: #3ccf8e;
      --panel: rgba(10, 20, 46, .78);
      --panel-solid: #0d1a3a;
      --line: rgba(143, 227, 255, .18);
      --line-gold: rgba(255, 211, 107, .32);
      --radius: 16px;
      --shadow: 0 18px 48px rgba(2, 6, 20, .55);
      font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      min-width: 320px;
      min-height: 100vh;
      color: var(--ink);
      background: #081127 url("bg.jpg") center top / cover fixed no-repeat;
      line-height: 1.55;
      display: flex;
      flex-direction: column;
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      z-index: -1;
      background:
        linear-gradient(180deg, rgba(6, 14, 36, .2) 0%, rgba(6, 14, 36, .28) 45%, rgba(5, 10, 28, .62) 100%);
      pointer-events: none;
    }

    body.page-not-home::before { background: linear-gradient(180deg, rgba(5, 11, 30, .32), rgba(5, 11, 30, .52)); }
    .title { filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .75)); }
    .auth-side, .heading p { text-shadow: 0 2px 8px rgba(0, 0, 0, .9); }
    .auth-side {
      padding: 22px 24px; border-radius: var(--radius);
      background: linear-gradient(90deg, rgba(5, 11, 30, .62), rgba(5, 11, 30, .15));
    }
    a { color: var(--ice); text-decoration: none; }
    a:hover { text-decoration: underline; }
    button, input { font: inherit; color: inherit; }
    img { display: block; max-width: 100%; }
    .wrap { width: min(1180px, calc(100% - 36px)); margin-inline: auto; }
    .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    svg.ic { width: 1.05em; height: 1.05em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

    .strip {
      background: rgba(4, 9, 24, .82);
      border-bottom: 1px solid var(--line);
      font-size: .78rem;
    }
    .strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 7px 0; }
    .status { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
    .dot { width: 8px; height: 8px; border-radius: 50%; background: #7a869f; }
    .status.on .dot { background: var(--pine); box-shadow: 0 0 0 4px rgba(60, 207, 142, .18); }
    .status.on strong { color: #b9f7d9; }
    .pills { display: flex; flex-wrap: wrap; gap: 6px; }
    .pill {
      display: inline-flex; align-items: center; gap: 5px;
      padding: 2px 9px; border-radius: 999px;
      font-size: .7rem; font-weight: 800; letter-spacing: .04em;
      border: 1px solid var(--line-gold); color: var(--gold); background: rgba(255, 211, 107, .08);
    }
    .pill.ice { border-color: rgba(143, 227, 255, .35); color: var(--ice); background: rgba(143, 227, 255, .08); }
    .pill.green { border-color: rgba(60, 207, 142, .4); color: #9ff1c9; background: rgba(60, 207, 142, .1); }
    .pill.red { border-color: rgba(255, 107, 125, .45); color: #ffb3bd; background: rgba(255, 107, 125, .1); }

    header.top {
      position: sticky; top: 0; z-index: 30;
      background: rgba(7, 15, 38, .8);
      backdrop-filter: blur(10px);
      border-bottom: 1px solid var(--line);
    }

    header.top .top-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; min-height: 70px; }
    .top-center { grid-column: 2; display: flex; align-items: center; gap: 22px; }
    .top-auth { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 6px; }
    .top-left { grid-column: 1; justify-self: start; display: flex; align-items: center; gap: 10px; }

    body { padding-bottom: 30px; }
    .promo {
      position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
      height: 28px; overflow: hidden;
      background: rgba(5, 11, 30, .85);
      border-top: 1px solid var(--line-gold);
      backdrop-filter: blur(6px);
    }
    .promo-track { display: flex; width: max-content; height: 100%; animation: marquee 60s linear infinite; }
    .promo:hover .promo-track { animation-play-state: paused; }
    .promo-set { display: flex; align-items: center; gap: 28px; padding-right: 28px; }
    @keyframes marquee { to { transform: translateX(-50%); } }
    .pp { white-space: nowrap; font-weight: 700; font-size: .74rem; letter-spacing: .12em; }
    .pp.gold { color: var(--gold); }
    .pp.ice { color: var(--ice); }
    .pp.green { color: #9ff1c9; }
    .pp.red { color: #ffb3bd; }
    .brand { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; cursor: pointer; padding: 4px 0; }
    .brand img { height: 56px; width: auto; filter: drop-shadow(0 2px 8px rgba(42, 167, 232, .45)); }
    nav.main { display: flex; align-items: center; gap: 4px; }
    .nav-link {
      display: inline-flex; align-items: center; gap: 7px;
      padding: 9px 13px; border-radius: 10px; border: 1px solid transparent;
      background: none; color: var(--muted); font-weight: 700; font-size: .92rem; cursor: pointer;
      transition: color .15s, background .15s;
    }
    .nav-link:hover { color: var(--ink); background: rgba(143, 227, 255, .08); }
    .nav-link[aria-current="page"] { color: var(--gold); background: rgba(255, 211, 107, .1); border-color: var(--line-gold); }
    .menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer; }

    .btn {
      display: inline-flex; align-items: center; justify-content: center; gap: 8px;
      padding: 11px 18px; border-radius: 12px; border: 1px solid transparent;
      font-weight: 800; font-size: .93rem; cursor: pointer; text-decoration: none !important;
      transition: transform .12s, filter .15s, box-shadow .15s;
    }
    .btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
    .btn:active { transform: translateY(0); }
    .btn:disabled { opacity: .6; cursor: progress; transform: none; }
    .btn-gold { color: #2a1700; background: linear-gradient(180deg, #ffe08f, #f2a52a); box-shadow: 0 6px 18px rgba(240, 160, 35, .32), inset 0 1px 0 rgba(255,255,255,.5); }
    .btn-ice { color: #04203a; background: linear-gradient(180deg, #b8f0ff, #3cb5ef); box-shadow: 0 6px 18px rgba(42, 167, 232, .3), inset 0 1px 0 rgba(255,255,255,.5); }
    .btn-ghost { color: var(--ink); background: rgba(10, 20, 46, .6); border-color: var(--line); }
    .btn-ghost:hover { border-color: rgba(143, 227, 255, .45); }
    .btn-danger { color: #ffd0d6; background: rgba(255, 107, 125, .12); border-color: rgba(255, 107, 125, .4); }
    .btn-sm { padding: 8px 12px; font-size: .85rem; border-radius: 10px; }
    .btn-block { width: 100%; }

    .user-chip { display: none; align-items: center; gap: 6px; }
    body.logged .user-chip { display: inline-flex; }
    body.logged .guest-only { display: none !important; }
    body:not(.logged) .user-only { display: none !important; }

    main { flex: 1; }
    .page { display: none; }
    .page.active { display: block; animation: fadein .35s ease; }
    @keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

    .panel {
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      backdrop-filter: blur(6px);
    }
    .panel.gold { border-color: var(--line-gold); }
    .section { padding: 56px 0; }
    .heading { text-align: center; max-width: 720px; margin: 0 auto 28px; }
    .eyebrow { display: inline-block; color: var(--ice); font-size: .74rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 8px; }
    .title {
      font-family: Georgia, "Times New Roman", serif;
      font-weight: 700; letter-spacing: -.01em; line-height: 1.12;
      font-size: clamp(1.8rem, 4vw, 2.6rem);
      background: linear-gradient(180deg, #fff4cf, var(--gold) 55%, var(--gold-deep));
      -webkit-background-clip: text; background-clip: text; color: transparent;
      text-shadow: none;
    }
    .heading p { color: var(--muted); margin-top: 10px; }
    .muted { color: var(--muted); }

    .hero {
      position: relative;
      min-height: min(760px, calc(100vh - 100px));
      display: flex; flex-direction: column; align-items: center;
      overflow: hidden;
    }
    .hero-copy { position: relative; z-index: 3; text-align: center; padding: 26px 18px 0; display: flex; flex-direction: column; align-items: center; }
    .hero-logo { width: min(440px, 78vw); height: auto; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .55)); animation: float 6s ease-in-out infinite; }
    @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
    .launch {
      margin-top: 4px;
      display: inline-flex; align-items: center; gap: 10px;
      padding: 7px 16px; border-radius: 999px;
      background: rgba(7, 15, 38, .78); border: 1px solid var(--line-gold);
      font-weight: 800; font-size: .9rem; letter-spacing: .03em;
    }
    .launch b { color: var(--gold); }
    .hero-tag {
      margin-top: 12px; max-width: 640px; font-size: 1.05rem; font-weight: 600; color: #fff;
      padding: 8px 18px; border-radius: 14px; background: rgba(5, 11, 30, .55);
      text-shadow: 0 2px 6px rgba(0, 0, 0, .9);
    }
    .hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
    #stage {
      position: absolute; left: 0; right: 0; bottom: 0;
      width: 100%; height: 58%;
      z-index: 2; cursor: pointer;
    }
    .stage-hint {
      position: absolute; z-index: 3; right: 14px; bottom: 12px;
      font-size: .74rem; color: rgba(230, 238, 255, .78);
      background: rgba(5, 11, 30, .55); padding: 4px 10px; border-radius: 999px;
    }

    .features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: -10px; position: relative; z-index: 4; }
    .feature { padding: 16px; display: flex; gap: 12px; align-items: flex-start; }
    .feature .ic-wrap { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: rgba(255, 211, 107, .12); color: var(--gold); border: 1px solid var(--line-gold); }
    .feature .ic-wrap.ice { background: rgba(143, 227, 255, .1); color: var(--ice); border-color: rgba(143, 227, 255, .3); }
    .feature .ic-wrap.green { background: rgba(60, 207, 142, .1); color: #9ff1c9; border-color: rgba(60, 207, 142, .35); }
    .feature .ic-wrap.red { background: rgba(255, 107, 125, .1); color: #ffb3bd; border-color: rgba(255, 107, 125, .35); }
    .feature strong { display: block; font-size: .92rem; }
    .feature span { font-size: .8rem; color: var(--muted); }

    .home-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; align-items: start; }
    .classes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
    .class-card {
      position: relative; padding: 10px 10px 12px; text-align: center; cursor: pointer;
      background: linear-gradient(180deg, rgba(42, 167, 232, .1), rgba(10, 20, 46, .7));
      border: 1px solid var(--line); border-radius: 14px;
      transition: border-color .15s, transform .15s;
    }
    .class-card:hover, .class-card:focus-visible { border-color: rgba(255, 211, 107, .55); transform: translateY(-2px); outline: none; }
    .class-card canvas { width: 100%; height: 130px; display: block; }
    .class-card strong { display: block; font-size: .86rem; margin-top: 4px; }
    .class-card small { color: var(--muted); font-size: .72rem; }

    .rank-tabs { display: flex; gap: 6px; margin: 12px 0; }
    .tab {
      flex: 1; padding: 8px 10px; border-radius: 10px; cursor: pointer;
      border: 1px solid var(--line); background: rgba(5, 11, 30, .5); color: var(--muted); font-weight: 800; font-size: .84rem;
    }
    .tab[aria-selected="true"] { color: #2a1700; background: linear-gradient(180deg, #ffe08f, #f2a52a); border-color: transparent; }
    .rank-list { display: grid; gap: 6px; }
    .rank-row {
      display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px;
      padding: 9px 12px; border-radius: 12px; background: rgba(5, 11, 30, .55); border: 1px solid rgba(143, 227, 255, .08);
    }
    .rank-row:nth-child(1) { border-color: rgba(255, 211, 107, .45); background: linear-gradient(90deg, rgba(255, 211, 107, .14), rgba(5, 11, 30, .55)); }
    .rank-pos { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 900; font-size: .84rem; background: rgba(143, 227, 255, .1); color: var(--ice); }
    .rank-row:nth-child(1) .rank-pos { background: var(--gold); color: #2a1700; }
    .rank-row:nth-child(2) .rank-pos { background: #d7e3f3; color: #1a2540; }
    .rank-row:nth-child(3) .rank-pos { background: #e3a26b; color: #2a1405; }
    .rank-name { font-weight: 800; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .rank-cls { font-size: .74rem; color: var(--muted); }
    .rank-val { font-weight: 800; font-size: .84rem; color: var(--gold); white-space: nowrap; }
    .empty { padding: 18px; text-align: center; color: var(--muted); font-size: .88rem; }

    .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
    .grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .card { padding: 22px; }
    .card h3 { font-family: Georgia, serif; font-size: 1.15rem; margin: 8px 0 6px; }
    .card p { color: var(--muted); font-size: .9rem; }
    .dev { display: flex; gap: 16px; align-items: center; }
    .dev canvas { width: 110px; height: 120px; flex: none; border-radius: 14px; background: radial-gradient(circle at 50% 70%, rgba(143, 227, 255, .2), transparent 70%); }
    .packages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
    .pkg { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
    .pkg.featured { border-color: rgba(255, 211, 107, .7); box-shadow: 0 0 0 1px rgba(255, 211, 107, .3), var(--shadow); }
    .pkg h3 { font-family: Georgia, serif; font-size: 1.15rem; }
    .price { font-size: 1.7rem; font-weight: 900; color: var(--gold); }
    .pkg ul { list-style: none; display: grid; gap: 6px; font-size: .86rem; color: #d6def2; flex: 1; }
    .pkg li::before { content: "◆"; color: var(--ice); margin-right: 8px; font-size: .7rem; }

    .auth-wrap { display: grid; grid-template-columns: 1fr 440px; gap: 26px; align-items: center; min-height: calc(100vh - 230px); padding: 40px 0; }
    .auth-side h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
    .auth-side p { color: #d8e2f7; margin-top: 12px; max-width: 520px; }
    .auth-side ul { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
    .auth-side li { display: flex; gap: 10px; align-items: center; color: #d8e2f7; }
    .auth-side li svg { color: var(--gold); }
    .auth-box { padding: 26px; }
    .auth-box .tabs { display: flex; gap: 6px; padding: 5px; border-radius: 12px; background: rgba(5, 11, 30, .6); margin-bottom: 20px; }
    .field { display: grid; gap: 6px; margin-bottom: 14px; }
    .field label { font-size: .78rem; font-weight: 800; color: #c7d3ee; letter-spacing: .02em; }
    .input-wrap { position: relative; }
    .field input {
      width: 100%; padding: 12px 14px; border-radius: 11px;
      border: 1px solid rgba(143, 227, 255, .22); background: rgba(3, 8, 22, .72);
      outline: none; transition: border-color .15s, box-shadow .15s;
    }
    .field input:focus { border-color: var(--ice); box-shadow: 0 0 0 3px rgba(143, 227, 255, .16); }
    .field input[aria-invalid="true"] { border-color: var(--rose); }
    .eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; }
    .eye:hover { color: var(--ink); }
    .hint { font-size: .74rem; color: var(--muted); }
    .row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; font-size: .84rem; }
    .check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: #c7d3ee; }
    .check input { width: 16px; height: 16px; accent-color: var(--gold-deep); }
    .msg { min-height: 22px; margin-top: 12px; font-size: .86rem; font-weight: 700; text-align: center; }
    .msg[data-kind="error"] { color: #ffb3bd; }
    .msg[data-kind="ok"] { color: #9ff1c9; }
    .msg[data-kind="info"] { color: var(--ice); }
    .rules { display: grid; gap: 3px; margin: -6px 0 14px; font-size: .74rem; color: var(--muted); }
    .rules span.ok { color: #9ff1c9; }
    .rules span.ok::before { content: "✓ "; }
    .rules span:not(.ok)::before { content: "• "; }

    .dash-head { padding: 20px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
    .dash-head h1 { font-size: 1.7rem; }
    .dash-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: .82rem; margin-top: 4px; }
    .dash-grid { display: grid; grid-template-columns: 360px 1fr; gap: 18px; align-items: start; }
    .dl { padding: 14px; border-radius: 13px; background: rgba(3, 8, 22, .6); border: 1px solid rgba(143, 227, 255, .12); margin-top: 10px; }
    .dl-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
    .dl-top strong { font-size: .92rem; }
    .dl small { color: var(--muted); font-size: .76rem; display: block; margin-top: 6px; }
    .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
    .chars { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
    .char {
      display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; padding: 14px;
      border-radius: 14px; background: linear-gradient(160deg, rgba(42, 167, 232, .12), rgba(3, 8, 22, .7)); border: 1px solid var(--line);
    }
    .char canvas { width: 84px; height: 116px; }
    .char h3 { font-family: Georgia, serif; font-size: 1.1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .char .cls { font-size: .78rem; color: var(--gold); font-weight: 700; }
    .stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
    .stat { padding: 6px 8px; border-radius: 9px; background: rgba(3, 8, 22, .6); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .stat small { display: block; font-size: .66rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
    .stat b { font-size: .92rem; }
    .stat.lv b { color: #e5d4ff; }
    .stat.pr b { color: #e3ecf7; }
    .stat.ou b { color: var(--gold); }
    .stat.at b { color: var(--ice); }

    .modal { position: fixed; inset: 0; z-index: 60; display: none; place-items: center; padding: 18px; background: rgba(2, 6, 18, .72); backdrop-filter: blur(4px); }
    .modal.open { display: grid; }
    .modal .panel { width: min(440px, 100%); padding: 24px; }
    #toasts { position: fixed; z-index: 70; right: 16px; bottom: 16px; display: grid; gap: 8px; }
    .toast { padding: 11px 15px; border-radius: 12px; background: var(--panel-solid); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: .86rem; font-weight: 700; max-width: 340px; animation: fadein .25s ease; }
    .toast.ok { border-color: rgba(60, 207, 142, .5); }
    .toast.error { border-color: rgba(255, 107, 125, .55); }
    footer.foot { border-top: 1px solid var(--line); background: rgba(4, 9, 24, .9); padding: 18px 0; font-size: .82rem; color: var(--muted); }
    footer.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
    footer.foot img { height: 34px; width: auto; }

    @media (max-width: 980px) {
      .features { grid-template-columns: repeat(2, 1fr); }
      .home-grid, .auth-wrap, .dash-grid { grid-template-columns: 1fr; }
      .packages { grid-template-columns: repeat(2, 1fr); }
      .grid-3 { grid-template-columns: 1fr; }
      .auth-side { text-align: center; }
      .auth-side ul { justify-items: center; }
      .auth-side p { margin-inline: auto; }
    }
    @media (max-width: 760px) {
      .menu-btn { display: inline-flex; }
      nav.main {
        position: absolute; top: 100%; left: 0; right: 0;
        display: none; flex-direction: column; align-items: stretch; gap: 4px;
        padding: 10px 18px 14px; background: rgba(7, 15, 38, .97); border-bottom: 1px solid var(--line);
      }
      nav.main.open { display: flex; }
      .grid-2, .packages { grid-template-columns: 1fr; }
      .hero { min-height: 640px; }
      #stage { height: 50%; }
      header.top { position: sticky; }
      .top-center { gap: 0; }
    }
    @media (max-width: 520px) {
      .features { grid-template-columns: 1fr; }
      .hero-actions .btn { flex: 1 1 100%; }
      .auth-label { display: none; }
    }
    #toasts { bottom: 44px; }
    @media (prefers-reduced-motion: reduce) {
      .promo-track { animation: none; }
      .hero-logo { animation: none; }
      .page.active { animation: none; }
      html { scroll-behavior: auto; }
    }

    .btn-off, .btn-off:hover { opacity: .5; cursor: not-allowed; transform: none; filter: grayscale(.5); }
    .social-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 420px)); gap: 14px; justify-content: center; }
    .social { display: flex; align-items: center; gap: 14px; padding: 18px 20px; color: var(--ink); text-decoration: none !important; transition: border-color .15s, transform .15s; }
    .social:hover { border-color: rgba(255, 211, 107, .6); transform: translateY(-2px); }
    .social-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; flex: none; font-size: 1.5rem; }
    .social-ic.yt { background: rgba(255, 60, 60, .18); color: #ff6b6b; border: 1px solid rgba(255, 107, 107, .45); }
    .social-txt { flex: 1; min-width: 0; }
    .social-txt strong { display: block; font-size: 1.05rem; }
    .social-txt small { color: var(--muted); }
    #passModal .panel { max-height: calc(100vh - 80px); overflow: auto; }
    .top-auth .btn { white-space: nowrap; }

    ::selection { background: rgba(255, 211, 107, .35); color: #fff; }
    html { scrollbar-color: #2a3c6e #070f24; }

    header.top { background: linear-gradient(180deg, rgba(5, 11, 28, .94), rgba(5, 11, 28, .74)); border-bottom: 0; box-shadow: 0 12px 34px rgba(0, 0, 0, .35); }
    header.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 211, 107, .75), transparent); }
    .nav-link { position: relative; border: 0; border-radius: 0; background: none; padding: 10px 14px; letter-spacing: .02em; }
    .nav-link:hover { background: none; color: #fff; }
    .nav-link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--gold), var(--gold-deep)); transform: scaleX(0); transition: transform .22s ease; }
    .nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
    .nav-link[aria-current="page"] { background: none; border-color: transparent; color: var(--gold); }

    .panel {
      border: 1px solid transparent;
      background:
        linear-gradient(180deg, rgba(13, 24, 54, .88), rgba(7, 14, 34, .92)) padding-box,
        linear-gradient(140deg, rgba(143, 227, 255, .4), rgba(143, 227, 255, .06) 35%, rgba(255, 211, 107, .05) 65%, rgba(255, 211, 107, .36)) border-box;
      box-shadow: 0 20px 50px rgba(2, 6, 20, .5), inset 0 1px 0 rgba(255, 255, 255, .05);
    }
    .panel.gold, .pkg.featured {
      background:
        linear-gradient(180deg, rgba(17, 27, 58, .9), rgba(8, 14, 34, .94)) padding-box,
        linear-gradient(140deg, rgba(255, 211, 107, .75), rgba(255, 211, 107, .12) 40%, rgba(255, 211, 107, .1) 60%, rgba(255, 211, 107, .6)) border-box;
    }

    .btn { letter-spacing: .01em; }
    .btn-lg { padding: 15px 28px; font-size: 1.02rem; border-radius: 14px; }
    .btn-gold { position: relative; overflow: hidden; }
    .btn-gold::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg); transition: left .55s ease; pointer-events: none; }
    .btn-gold:hover::after { left: 125%; }
    .btn-glass { color: #fff; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .38); backdrop-filter: blur(10px); }
    .btn-glass:hover { background: rgba(255, 255, 255, .2); border-color: #fff; }

    .hero { min-height: calc(100vh - 100px); justify-content: center; padding: 34px 0 96px; }
    .hero::before {
      content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
      background:
        radial-gradient(ellipse at 50% 44%, rgba(4, 10, 28, 0) 0%, rgba(4, 10, 28, .3) 55%, rgba(4, 10, 28, .74) 100%),
        linear-gradient(180deg, rgba(4, 10, 28, .4), rgba(4, 10, 28, 0) 22%, rgba(4, 10, 28, 0) 68%, rgba(5, 10, 28, .88));
    }
    #snow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
    .hero-copy { z-index: 3; padding: 0 18px; }
    .hero-logo { width: min(500px, 80vw); filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .6)) drop-shadow(0 0 44px rgba(42, 167, 232, .28)); }
    .launch { margin-top: 6px; padding: 8px 20px; gap: 10px; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; background: rgba(5, 11, 28, .72); border: 1px solid rgba(255, 211, 107, .5); backdrop-filter: blur(8px); }
    .launch svg { color: var(--gold); }
    .hero-title { margin-top: 18px; max-width: 900px; font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.08; letter-spacing: -.015em; color: #fff; text-shadow: 0 4px 26px rgba(0, 0, 0, .8), 0 1px 0 rgba(0, 0, 0, .6); }
    .hero-tag { margin-top: 12px; max-width: 620px; padding: 0; background: none; font-size: 1.12rem; font-weight: 500; color: #e9f0ff; text-shadow: 0 2px 12px rgba(0, 0, 0, .95); }
    .hero-actions { margin-top: 26px; gap: 12px; }
    .hero-badges { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 24px; font-size: .86rem; color: #dfe8fb; text-shadow: 0 2px 8px rgba(0, 0, 0, .9); }
    .hero-badges li { display: inline-flex; align-items: center; gap: 7px; }
    .hero-badges svg { color: var(--gold); }

    .features { margin-top: -54px; gap: 14px; }
    .feature { position: relative; overflow: hidden; padding: 18px; }
    .feature::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .75; }

    .section { padding: 72px 0; }
    .heading { margin-bottom: 36px; }
    .heading .title::after {
      content: ""; display: block; width: 150px; height: 9px; margin: 16px auto 0;
      background:
        radial-gradient(circle, var(--gold) 0 3px, transparent 3.5px) center / 9px 9px no-repeat,
        linear-gradient(90deg, transparent, var(--gold)) left center / 62px 1px no-repeat,
        linear-gradient(90deg, var(--gold), transparent) right center / 62px 1px no-repeat;
    }

    .classes-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
    .class-card {
      padding: 14px 10px 16px; border-radius: 16px; border: 1px solid transparent;
      background:
        linear-gradient(180deg, rgba(22, 42, 90, .86), rgba(7, 14, 34, .94)) padding-box,
        linear-gradient(160deg, rgba(143, 227, 255, .5), rgba(143, 227, 255, .05) 50%, rgba(255, 211, 107, .38)) border-box;
      box-shadow: 0 14px 34px rgba(2, 6, 20, .45);
      transition: transform .2s ease, box-shadow .2s ease;
    }
    .class-card:hover, .class-card:focus-visible {
      transform: translateY(-6px);
      background:
        linear-gradient(180deg, rgba(30, 50, 100, .9), rgba(9, 16, 38, .95)) padding-box,
        linear-gradient(160deg, rgba(255, 211, 107, .95), rgba(255, 211, 107, .2) 50%, rgba(255, 211, 107, .8)) border-box;
      box-shadow: 0 22px 44px rgba(2, 6, 20, .6), 0 0 34px rgba(255, 211, 107, .18);
    }
    .class-card canvas { height: 150px; }
    .class-card strong { font-family: Georgia, serif; font-size: .96rem; margin-top: 8px; }

    .steps { list-style: none; display: grid; gap: 16px; margin-top: 18px; }
    .steps li { display: flex; gap: 14px; align-items: flex-start; }
    .step-n { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; font-family: Georgia, serif; font-weight: 700; font-size: 1.1rem; color: #2a1700; background: linear-gradient(180deg, #ffe08f, #f2a52a); box-shadow: 0 0 0 4px rgba(255, 211, 107, .15); }
    .steps li div strong { display: block; }
    .steps li div span { color: var(--muted); font-size: .88rem; }

    .has-reveal .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
    .has-reveal .reveal.in { opacity: 1; transform: none; }

    footer.foot { position: relative; padding: 0; border-top: 0; background: linear-gradient(180deg, rgba(4, 9, 24, .88), rgba(3, 7, 18, .98)); }
    footer.foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 211, 107, .7), transparent); }
    footer.foot .foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 28px; padding: 42px 0 26px; align-items: start; }
    footer.foot .foot-brand img { height: 64px; width: auto; }
    .foot-brand p { margin-top: 10px; max-width: 300px; font-size: .86rem; color: var(--muted); }
    .foot-col { display: grid; gap: 8px; justify-items: start; font-size: .88rem; }
    .foot-col strong { margin-bottom: 4px; color: #fff; font-family: Georgia, serif; letter-spacing: .04em; }
    .foot-col button, .foot-col a { padding: 0; border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; text-decoration: none; }
    .foot-col button:hover, .foot-col a:hover { color: var(--gold); text-decoration: none; }
    footer.foot .foot-base { padding: 14px 0 18px; border-top: 1px solid rgba(143, 227, 255, .1); font-size: .78rem; }

    .cf-box { display: flex; justify-content: center; }
    .cf-box:not(:empty) { margin: 4px 0 14px; }

    @media (max-width: 980px) {
      footer.foot .foot-grid { grid-template-columns: 1fr 1fr; }
      .features { margin-top: -40px; }
    }
    @media (max-width: 760px) {
      .hero { min-height: 620px; padding-bottom: 76px; }
      .nav-link::after { left: 0; right: auto; width: 40px; }
    }
    @media (max-width: 520px) {
      .features { margin-top: -30px; }
      footer.foot .foot-grid { grid-template-columns: 1fr; }
      .btn-lg { padding: 14px 20px; }
    }
    @media (prefers-reduced-motion: reduce) {
      .has-reveal .reveal { opacity: 1; transform: none; transition: none; }
      .btn-gold::after { display: none; }
    }

    .upd-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 38px; }
    .chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(143, 227, 255, .22); background: rgba(5, 11, 30, .72); color: #c7d3ee; font-weight: 800; font-size: .84rem; cursor: pointer; backdrop-filter: blur(6px); transition: border-color .15s, color .15s, transform .15s; }
    .chip:hover { border-color: rgba(255, 211, 107, .6); color: #fff; transform: translateY(-1px); }
    .chip b { padding: 1px 8px; border-radius: 999px; font-size: .72rem; background: rgba(143, 227, 255, .14); color: var(--ice); }
    .chip[aria-pressed="true"] { color: #2a1700; border-color: transparent; background: linear-gradient(180deg, #ffe08f, #f2a52a); box-shadow: 0 6px 18px rgba(240, 160, 35, .3); }
    .chip[aria-pressed="true"] b { background: rgba(42, 23, 0, .18); color: #2a1700; }

    .timeline { position: relative; max-width: 920px; margin: 0 auto; }
    .tl-day { position: relative; display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 24px; padding-bottom: 36px; }
    .tl-day::before { content: ""; position: absolute; left: 57px; top: 20px; bottom: 0; width: 2px; background: linear-gradient(180deg, rgba(255, 211, 107, .65), rgba(255, 211, 107, .04)); }
    .tl-day:last-child::before { bottom: 36px; }
    .tl-date {
      position: sticky; top: 92px; z-index: 1; align-self: start; display: grid; justify-items: center; gap: 2px; padding: 14px 8px 12px; border-radius: 18px; border: 1px solid transparent; text-align: center;
      background:
        linear-gradient(180deg, rgba(20, 32, 68, .96), rgba(8, 14, 34, .98)) padding-box,
        linear-gradient(160deg, rgba(255, 211, 107, .8), rgba(255, 211, 107, .12) 50%, rgba(255, 211, 107, .55)) border-box;
      box-shadow: 0 14px 34px rgba(2, 6, 20, .55);
    }
    .tl-date .d { font-family: Georgia, "Times New Roman", serif; font-size: 2.4rem; font-weight: 700; line-height: 1; background: linear-gradient(180deg, #fff4cf, var(--gold) 55%, var(--gold-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
    .tl-date .m { font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ice); }
    .tl-date .w { font-size: .72rem; color: var(--muted); }
    .tl-date .tag { margin-top: 6px; padding: 2px 10px; border-radius: 999px; font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #9ff1c9; background: rgba(60, 207, 142, .14); border: 1px solid rgba(60, 207, 142, .4); }
    .tl-date.star { padding: 16px 8px 14px; color: var(--gold); }
    .tl-date.star svg { width: 30px; height: 30px; fill: rgba(255, 211, 107, .25); }
    .tl-date.star .m { color: var(--gold); margin-top: 6px; }
    .tl-items { display: grid; gap: 14px; min-width: 0; }

    .upd { --acc: var(--gold); position: relative; overflow: hidden; padding: 20px 24px 20px 28px; transition: transform .18s ease, box-shadow .18s ease; }
    .upd::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--acc), transparent 130%); }
    .upd:hover { transform: translateX(3px); }
    .upd.cat-novidade { --acc: #ffd36b; }
    .upd.cat-correcao { --acc: #8fe3ff; }
    .upd.cat-evento { --acc: #ff6b7d; }
    .upd.cat-aviso { --acc: #3ccf8e; }
    .upd-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
    .upd-cat { padding: 3px 11px; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--acc); border: 1px solid var(--acc); background: rgba(255, 255, 255, .04); }
    .upd-ver, .upd-when { padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; color: #c7d3ee; background: rgba(143, 227, 255, .1); }
    .upd-pin { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 800; color: var(--gold); }
    .upd-pin svg { fill: rgba(255, 211, 107, .35); }
    .upd h3 { font-family: Georgia, "Times New Roman", serif; font-size: 1.24rem; line-height: 1.25; color: #fff; }
    .upd p { margin-top: 8px; color: #d3dcf0; font-size: .95rem; overflow-wrap: anywhere; }
    .upd ul { list-style: none; display: grid; gap: 6px; margin-top: 10px; }
    .upd li { position: relative; padding-left: 20px; color: #d3dcf0; font-size: .95rem; overflow-wrap: anywhere; }
    .upd li::before { content: "◆"; position: absolute; left: 2px; top: .32em; font-size: .56rem; color: var(--acc); }
    .timeline > .empty { padding: 34px 18px; border-radius: 16px; background: rgba(5, 11, 30, .7); border: 1px dashed rgba(143, 227, 255, .25); }

    .nav-link { padding: 10px 11px; font-size: .9rem; }
    .nav-link::after { left: 11px; right: 11px; }
    @media (max-width: 1040px) {
      .menu-btn { display: inline-flex; }
      nav.main { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 4px; padding: 10px 18px 14px; background: rgba(7, 15, 38, .97); border-bottom: 1px solid var(--line); }
      nav.main.open { display: flex; }
      .nav-link::after { left: 0; right: auto; width: 40px; }
    }
    @media (max-width: 640px) {
      .tl-day { grid-template-columns: 1fr; gap: 12px; padding-bottom: 28px; }
      .tl-day::before { display: none; }
      .tl-date { position: static; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; gap: 6px 10px; padding: 10px 16px; text-align: left; }
      .tl-date .d { font-size: 1.7rem; }
      .tl-date .tag { margin-top: 0; }
      .tl-date.star { align-items: center; }
      .tl-date.star svg { width: 22px; height: 22px; }
      .upd { padding: 18px 18px 18px 22px; }
    }
    .heading p { color: #eef3ff; font-weight: 500; text-shadow: 0 2px 10px rgba(0, 0, 0, .95), 0 0 2px rgba(0, 0, 0, .8); }

    :root {
      --orn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 78 28' fill='none' stroke='%23f4c868' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 14h18'/%3E%3Cpath d='M20 14c10 0 13-10.500 5-11.500-5.500-.7-7 6.300-1.800 6.800'/%3E%3Cpath d='M20 14c10 0 13 10.500 5 11.500-5.500.7-7-6.300-1.800-6.800'/%3E%3Cpath d='M38 14l6-6 6 6-6 6z' fill='%23f4c868'/%3E%3Cpath d='M41.500 14l2.500-2.500 2.500 2.500-2.500 2.500z' fill='%23121722' stroke='none'/%3E%3Cpath d='M54 14h10'/%3E%3Ccircle cx='70' cy='14' r='2.200' fill='%23f4c868' stroke='none'/%3E%3C/svg%3E");
      --metal: linear-gradient(180deg, #2b3242 0%, #181d29 46%, #0a0d14 54%, #171c27 100%);
    }

    html { scroll-snap-type: y proximity; }
    .snap-here { scroll-snap-align: start; scroll-margin-top: 70px; }

    .wbar {
      position: relative; display: flex; align-items: center; justify-content: center;
      min-height: 46px; padding: 8px 96px; margin: 0;
      font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; font-weight: 700; letter-spacing: .08em; line-height: 1.2; text-align: center;
      color: #ffe7a8; text-shadow: 0 1px 0 #000, 0 0 14px rgba(255, 211, 107, .35);
      border-radius: 10px;
      background:
        linear-gradient(#f4c868, #f4c868) left top / 100% 1px no-repeat,
        linear-gradient(rgba(244, 200, 104, .3), rgba(244, 200, 104, .3)) left 4px / 100% 1px no-repeat,
        linear-gradient(rgba(244, 200, 104, .3), rgba(244, 200, 104, .3)) left calc(100% - 4px) / 100% 1px no-repeat,
        linear-gradient(#a8772a, #a8772a) left bottom / 100% 1px no-repeat,
        var(--metal);
      box-shadow: 0 8px 22px rgba(0, 0, 0, .5), inset 1px 0 0 rgba(244, 200, 104, .35), inset -1px 0 0 rgba(244, 200, 104, .35);
    }
    .wbar::before, .wbar::after { content: ""; position: absolute; top: 50%; width: 78px; height: 28px; margin-top: -14px; background: var(--orn) center / contain no-repeat; pointer-events: none; }
    .wbar::before { left: 10px; }
    .wbar::after { right: 10px; transform: scaleX(-1); }
    .wbar > span { position: relative; }

    .frame-bar { z-index: 4; min-height: 54px; font-size: 1.18rem; letter-spacing: .12em; border-radius: 0; box-shadow: 0 12px 30px rgba(0, 0, 0, .55); }
    .frame-bar::before { left: max(14px, calc(50% - 560px)); }
    .frame-bar::after { right: max(14px, calc(50% - 560px)); }

    .heading .wbar { max-width: 760px; margin: 12px auto 0; font-size: 1.3rem; min-height: 54px; }
    .heading .wbar + p { margin-top: 16px; }

    .card { --pad: 22px; }
    .auth-box { --pad: 26px; }
    .modal .panel { --pad: 24px; }
    .panel > .wbar:first-child { margin: calc(-1 * var(--pad, 22px)) calc(-1 * var(--pad, 22px)) 20px; border-radius: 15px 15px 0 0; box-shadow: 0 6px 16px rgba(0, 0, 0, .4); }
    .wbar.has-close::after { display: none; }
    .wclose {
      position: absolute; right: 10px; top: 50%; width: 28px; height: 28px; margin-top: -14px; padding: 0; display: grid; place-items: center;
      border-radius: 50%; border: 2px solid #f6dda0; cursor: pointer; color: #fff; font: 900 1.05rem/1 "Segoe UI", system-ui, sans-serif;
      background: radial-gradient(circle at 35% 30%, #ff8f7e, #d3261f 55%, #8c0f0c); box-shadow: 0 2px 6px rgba(0, 0, 0, .6); text-shadow: 0 1px 1px rgba(0, 0, 0, .5);
    }
    .wclose:hover { filter: brightness(1.15); }

    header.top {
      background:
        linear-gradient(rgba(244, 200, 104, .28), rgba(244, 200, 104, .28)) left calc(100% - 4px) / 100% 1px no-repeat,
        linear-gradient(#f4c868, #f4c868) left bottom / 100% 1px no-repeat,
        linear-gradient(180deg, #252c3b 0%, #151a25 48%, #0a0d14 56%, #141924 100%);
      box-shadow: 0 12px 34px rgba(0, 0, 0, .45);
    }
    header.top::after { display: none; }
    .promo {
      background:
        linear-gradient(#f4c868, #f4c868) left top / 100% 1px no-repeat,
        linear-gradient(rgba(244, 200, 104, .28), rgba(244, 200, 104, .28)) left 4px / 100% 1px no-repeat,
        linear-gradient(180deg, #1c222e, #0a0d14);
      border-top: 0; height: 30px;
    }
    body { padding-bottom: 32px; }

    .hero { padding-bottom: 46px; }
    .features { margin-top: 26px; }
    .section { padding: 60px 0; }

    @media (max-width: 980px) { .features { margin-top: 22px; } }
    @media (max-width: 640px) {
      .wbar { padding: 8px 56px; font-size: .98rem; letter-spacing: .04em; }
      .wbar::before, .wbar::after { width: 44px; height: 18px; margin-top: -9px; left: 6px; }
      .wbar::after { left: auto; right: 6px; }
      .frame-bar { font-size: 1rem; }
      .heading .wbar { font-size: 1.1rem; }
    }
    @media (max-width: 520px) { .features { margin-top: 18px; } }

    .class-card.soon {
      position: relative; overflow: hidden; cursor: default;
      background:
        linear-gradient(180deg, rgba(34, 26, 64, .86), rgba(8, 10, 26, .95)) padding-box,
        linear-gradient(160deg, rgba(190, 150, 255, .55), rgba(190, 150, 255, .06) 50%, rgba(255, 211, 107, .4)) border-box;
    }
    .class-card.soon:hover { transform: none; box-shadow: 0 14px 34px rgba(2, 6, 20, .45); }
    .soon-art { height: 150px; display: grid; place-items: center; }
    .soon-art svg { width: 92px; height: 92px; stroke-width: 1.6; color: #cdb7ff; fill: rgba(190, 150, 255, .14); filter: drop-shadow(0 0 16px rgba(190, 150, 255, .55)); animation: soon-glow 3.2s ease-in-out infinite; }
    @keyframes soon-glow { 0%, 100% { opacity: .55; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-4px); } }
    .soon-tag { position: absolute; top: 16px; right: -38px; width: 150px; padding: 4px 0; transform: rotate(38deg); text-align: center; font-size: .66rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: #2a1700; background: linear-gradient(180deg, #ffe08f, #f2a52a); box-shadow: 0 4px 12px rgba(0, 0, 0, .5); }
    .class-card.soon strong { color: #e9ddff; }
    @media (prefers-reduced-motion: reduce) { .soon-art svg { animation: none; opacity: .9; } }
    .social-ic.dc { background: rgba(120, 130, 255, .2); color: #a9b3ff; border: 1px solid rgba(140, 150, 255, .5); }
    .social-grid { grid-template-columns: minmax(0, 620px); }

    .music-btn { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border-radius: 50%; cursor: pointer; color: var(--gold); background: rgba(255, 255, 255, .05); border: 1px solid rgba(244, 200, 104, .4); transition: background .15s, color .15s, border-color .15s; }
    .music-btn:hover { background: rgba(244, 200, 104, .14); border-color: var(--gold); }
    .music-btn[aria-pressed="false"] { color: var(--muted); border-color: rgba(143, 227, 255, .22); }

    .vid-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; max-width: 1080px; margin: 0 auto; }
    .vid { margin: 0; padding: 10px 10px 14px; overflow: hidden; }
    .vid video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; background: #05080f; object-fit: contain; }
    .vid figcaption { padding: 12px 8px 0; }
    .vid figcaption strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; color: #fff; }
    .vid figcaption span { color: var(--muted); font-size: .88rem; }

    .countdown { display: grid; justify-items: center; gap: 8px; margin: 22px auto 0; padding: 14px 22px 12px; border-radius: 16px; border: 1px solid transparent; background: linear-gradient(180deg, rgba(14, 22, 48, .88), rgba(6, 10, 26, .92)) padding-box, linear-gradient(140deg, rgba(244, 200, 104, .85), rgba(244, 200, 104, .15) 45%, rgba(244, 200, 104, .7)) border-box; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); backdrop-filter: blur(8px); }
    .countdown[hidden] { display: none; }
    .cd-label { font-size: .74rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--ice); }
    .cd-row { display: flex; gap: 10px; }
    .cd-box { min-width: 68px; padding: 8px 6px 6px; border-radius: 12px; text-align: center; background: var(--metal); box-shadow: inset 0 1px 0 rgba(244, 200, 104, .5), inset 0 -1px 0 rgba(168, 119, 42, .7); }
    .cd-box b { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; color: #ffe7a8; text-shadow: 0 0 14px rgba(255, 211, 107, .4); }
    .cd-box small { font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
    .cd-when { font-size: .8rem; color: #dfe8fb; }
    #registerForm .countdown { margin: 0 0 18px; width: 100%; }
    body.reg-closed #registerForm .field, body.reg-closed #registerForm .rules { opacity: .45; }
    @media (max-width: 520px) { .cd-box { min-width: 56px; } .cd-box b { font-size: 1.6rem; } .cd-row { gap: 6px; } }

    .g-wrap { display: grid; justify-items: center; gap: 10px; margin-top: 14px; }
    .g-wrap[hidden] { display: none; }
    .g-or { display: flex; align-items: center; gap: 12px; width: 100%; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
    .g-or::before, .g-or::after { content: ""; flex: 1; height: 1px; background: rgba(143, 227, 255, .2); }
    .g-box { min-height: 44px; color-scheme: light; }
