/* ==========================================================================
   Avalis S54 — accounts, security and supporting pages
   login · register · password recovery · verification · news emails ·
   my-account · play/download (account.php) · vote · events · benefits · rules
   Every selector is scoped to a body class or a component unique to these pages.
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS-drawn icons for the auth screens. These pages are also rendered by the
   offline tests without ui.php, so their glyphs live here, not in PHP helpers.
   -------------------------------------------------------------------------- */
.auth-ico { display: inline-block; flex: none; width: 18px; height: 18px; background-color: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.auth-ico--user { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4.5 20c1.2-4 4-6 7.5-6s6.3 2 7.5 6'/%3E%3C/svg%3E"); }
.auth-ico--lock { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E"); }
.auth-ico--mail { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5.5' width='17' height='13' rx='2'/%3E%3Cpath d='m4 7 8 6 8-6'/%3E%3C/svg%3E"); }
.auth-ico--shield { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 4.5 6v5.5c0 4.6 3.1 8.3 7.5 9.5 4.4-1.2 7.5-4.9 7.5-9.5V6z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.auth-ico--check { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.auth-ico--clock { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E"); }
.auth-ico--info { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v6M12 7.5v.5'/%3E%3C/svg%3E"); }
.auth-ico--key { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='15.5' r='4.5'/%3E%3Cpath d='m11.3 12.2 8.7-8.7M16.5 7l2.8 2.8M14.2 9.3l2 2'/%3E%3C/svg%3E"); }
.auth-gem { display: inline-block; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5 22.5 12 12 22.5 1.5 12z' fill='%230f2f8f'/%3E%3Cpath d='M12 1.5 22.5 12H12z' fill='%237fb4ff'/%3E%3Cpath d='M12 1.5 1.5 12H12z' fill='%23cfe6ff'/%3E%3Cpath d='M1.5 12 12 22.5V12z' fill='%232f6bff'/%3E%3Cpath d='M22.5 12 12 22.5V12z' fill='%231a45c9'/%3E%3Cpath d='M12 6.5 17.5 12 12 17.5 6.5 12z' fill='%234c8dff' opacity='.85'/%3E%3Cpath d='M12 6.5 17.5 12H6.5z' fill='%23e6f3ff' opacity='.55'/%3E%3C/svg%3E") center / contain no-repeat; }

/* --------------------------------------------------------------------------
   Auth stage — illustrated scene + focused form card, joined in one frame
   -------------------------------------------------------------------------- */
.auth-stage { position: relative; isolation: isolate; padding: clamp(24px, 5vw, 64px) 0 clamp(56px, 8vw, 96px); }
.auth-stage::before { content: ""; position: absolute; inset: 0 0 30%; z-index: -1; pointer-events: none; background: radial-gradient(700px 380px at 30% 30%, rgba(47, 107, 255, .16), transparent 70%), radial-gradient(520px 340px at 85% 60%, rgba(69, 227, 207, .05), transparent 70%); }
.auth-frame {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); max-width: 1120px; min-height: 600px; margin-inline: auto;
  border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(14, 30, 58, .94), rgba(7, 16, 34, .97));
  box-shadow: var(--shadow-2), 0 0 0 6px rgba(10, 22, 44, .6), 0 0 0 7px var(--line);
}
.auth-frame--compact { max-width: 1020px; min-height: 480px; }

.auth-scene { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(28px, 3.6vw, 48px); color: #cfdcf0; }
.auth-scene__art { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: 50% 50%; transform: scale(1.02); }
.auth-scene__art.art-fortress { background-position: 74% 50%; }
.auth-scene__art.art-citadel { background-position: 62% 40%; }
.auth-scene__art.art-gate { background-position: 72% 50%; }
.auth-scene__art.art-pass { background-position: 58% 50%; }
.auth-scene::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4, 9, 22, .35) 0%, rgba(4, 9, 22, 0) 22%, rgba(4, 9, 22, .12) 40%, rgba(4, 9, 22, .82) 72%, rgba(4, 9, 22, .96) 100%); }
.auth-scene::after { content: ""; position: absolute; inset: 0 0 0 auto; width: 1px; background: linear-gradient(180deg, transparent, rgba(160, 205, 255, .5) 30%, rgba(160, 205, 255, .5) 70%, transparent); }
.auth-scene__copy { max-width: 440px; }
.auth-scene__copy h2 { margin: 0 0 10px; font-size: clamp(1.55rem, 2.32vw, 2.06rem); text-shadow: 0 3px 18px rgba(0, 0, 0, .6); }
.auth-scene__copy > p:not(.eyebrow) { margin: 0 0 18px; color: #cfdcf0; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.auth-scene__copy .text-link { margin-top: 4px; }

.auth-perks { display: grid; gap: 9px; margin: 0 0 22px; padding: 0; list-style: none; font-size: .93rem; }
.auth-perks li { position: relative; padding-left: 22px; color: var(--mist); }
.auth-perks li::before { content: ""; position: absolute; left: 2px; top: .52em; width: 7px; height: 7px; transform: rotate(45deg); background: linear-gradient(135deg, #cfeaff, var(--sapphire) 55%, var(--sapphire-ink)); box-shadow: 0 0 8px rgba(95, 155, 255, .8); }

/* Three-step path in the scene (register / recovery) */
.auth-path { display: grid; gap: 0; margin: 0 0 22px; padding: 0; list-style: none; counter-reset: none; }
.auth-path li { position: relative; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; padding: 7px 0; }
.auth-path li > span { grid-row: span 2; align-self: start; display: grid; place-items: center; width: 30px; height: 30px; margin: 1px 2px 0; position: relative; z-index: 0; font: 700 .9rem/1 var(--font-display); color: var(--mist); }
.auth-path li > span::before { content: ""; position: absolute; inset: 4px; z-index: -1; transform: rotate(45deg); border-radius: 4px; background: rgba(12, 26, 50, .9); border: 1px solid var(--line-3); }
.auth-path li.is-current > span { color: #fff; }
.auth-path li.is-current > span::before { background: linear-gradient(135deg, #7fb4ff, #2f6bff 50%, #15309a); border-color: rgba(200, 225, 255, .5); box-shadow: 0 0 14px rgba(47, 107, 255, .6); }
.auth-path li.is-done > span { color: #04261a; }
.auth-path li.is-done > span::before { background: linear-gradient(135deg, #c8ffe6, var(--success) 50%, #17855a); border-color: rgba(200, 255, 230, .5); box-shadow: 0 0 12px rgba(70, 224, 160, .45); }
.auth-path li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 38px; bottom: -8px; width: 1px; background: linear-gradient(180deg, var(--line-3), transparent); }
.auth-path b { font: 700 .95rem/1.25 var(--font-display); color: var(--frost); }
.auth-path small { color: var(--dim); font-size: .82rem; line-height: 1.35; }

/* Form card */
.auth-card { position: relative; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: clamp(30px, 4vw, 56px) clamp(24px, 4vw, 56px); background: radial-gradient(420px 260px at 100% 0, rgba(47, 107, 255, .12), transparent 70%); }
.auth-card__head { margin-bottom: 22px; }
.auth-card__head h1 { margin: 0 0 8px; font-size: clamp(1.63rem, 2.58vw, 2.15rem); line-height: 1.02; }
.auth-card__lede { margin: 0; color: var(--dim); font-size: 1rem; }
.auth-card__lede b { color: var(--frost); }
.auth-card .alert { margin-bottom: 20px; }
.auth-note { margin: 0 0 18px; color: var(--mist); font-size: .95rem; }
.auth-note b { color: var(--frost); }

.auth-form { margin: 0; min-width: 0; }
.auth-card > * { min-width: 0; }
.auth-form .field { margin-bottom: 18px; }
.auth-form .field > label, .auth-form .field-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-weight: 700; font-size: .9rem; color: var(--frost); }
.auth-form .field-label small { color: var(--dim); font-weight: 400; font-size: .8rem; }
.auth-form .field-hint { display: block; margin-top: -1px; line-height: 1.45; }
.field--with-link { grid-template-columns: 1fr auto; grid-template-areas: "label link" "input input"; align-items: end; }
.field--with-link > label { grid-area: label; }
.field--with-link > .auth-input { grid-area: input; }
.auth-field-link { grid-area: link; justify-self: end; font-size: .84rem; font-weight: 700; color: var(--ice); padding: 2px 0; }
.auth-field-link:hover { color: #fff; text-decoration: underline; }

.auth-input { position: relative; }
.auth-input > .auth-ico { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--dim); pointer-events: none; transition: color .15s; }
.auth-input > input { min-height: 50px !important; padding-left: 46px !important; }
.auth-input:focus-within > .auth-ico { color: var(--ice); }
.auth-code { font: 700 1.2rem/1.2 ui-monospace, "Cascadia Mono", Consolas, monospace; }

.auth-form .form-pair { gap: 0 14px; }
.auth-choices { display: grid; gap: 12px; margin: 4px 0 22px; padding: 14px 16px; border-radius: var(--r-md); background: rgba(3, 9, 22, .45); border: 1px solid var(--line); }
.auth-choices .check-label { font-size: .92rem; }
.auth-choices .check-label small { display: block; color: var(--dim); font-size: .8rem; }
.auth-choices a { text-decoration: underline; text-decoration-color: rgba(147, 214, 255, .45); }
.auth-form .gem-btn { margin-top: 6px; }
.auth-card .gem-btn--block { width: 100%; }

.auth-switch { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; color: var(--dim); font-size: .94rem; }
.auth-switch a { font-weight: 700; color: var(--ice); }
.auth-switch a::after { content: " →"; }
.auth-switch a:hover { color: #fff; }
.auth-fineprint { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 0; color: var(--dim); font-size: .82rem; line-height: 1.5; }
.auth-fineprint .auth-ico { width: 16px; height: 16px; margin-top: 1px; color: var(--sapphire-2); }
.auth-account { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 18px; padding: 12px 14px; border-radius: var(--r-md); background: rgba(47, 107, 255, .08); border: 1px solid var(--line-2); color: var(--mist); font-size: .94rem; }
.auth-account .auth-ico { margin-top: 2px; color: var(--ice); }
.auth-card > .btn-block, .auth-card > .gem-btn { margin-top: 4px; }
.auth-card > .btn-block + .auth-switch { margin-top: 18px; }

/* The spam trap must stay invisible to people and screen readers. */
.auth-page .honeypot { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* MFA step: progress, timer and cancel */
.auth-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 16px; padding: 0; list-style: none; font: 700 .84rem/1 var(--font-display); color: var(--dim); }
.auth-steps li { display: inline-flex; align-items: center; gap: 8px; }
.auth-steps li + li::before { content: ""; width: 26px; height: 1px; margin-right: 2px; background: var(--line-3); }
.auth-steps__mark { position: relative; width: 16px; height: 16px; }
.auth-steps__mark::before { content: ""; position: absolute; inset: 2px; transform: rotate(45deg); border-radius: 2px; border: 1px solid var(--line-3); background: rgba(12, 26, 50, .9); }
.auth-steps .is-done { color: var(--success); }
.auth-steps .is-done .auth-steps__mark::before { background: var(--success); border-color: var(--success); box-shadow: 0 0 8px rgba(70, 224, 160, .6); }
.auth-steps .is-current { color: var(--ice-2); }
.auth-steps .is-current .auth-steps__mark::before { background: linear-gradient(135deg, #cfeaff, var(--sapphire) 55%, var(--sapphire-ink)); border-color: rgba(200, 225, 255, .6); box-shadow: 0 0 10px rgba(95, 155, 255, .9); }
.auth-mfa-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.auth-timer { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--dim); font-size: .88rem; }
.auth-timer .auth-ico { width: 16px; height: 16px; color: var(--ice); }
.auth-timer b { font-family: var(--font-display); font-variant-numeric: tabular-nums; color: var(--frost); }
.auth-cancel { margin: 0; }
.auth-cancel__button { min-height: 40px; padding: 0 14px; border-radius: 999px; background: none; border: 1px solid var(--line-2); color: var(--mist); font: 700 .84rem/1 var(--font-display); transition: color .15s, border-color .15s, background .15s; }
.auth-cancel__button:hover { color: #fff; border-color: rgba(255, 107, 125, .5); background: rgba(255, 107, 125, .08); }
.auth-cancel__button:focus-visible { outline: none; box-shadow: var(--focus); }

/* Success seal and next steps (registration complete, verified, unsubscribed) */
.auth-seal { position: relative; display: grid; place-items: center; width: 54px; height: 54px; margin: 0 0 16px 4px; color: #062a1c; }
.auth-seal::before { content: ""; position: absolute; inset: 6px; z-index: 0; transform: rotate(45deg); border-radius: 8px; background: linear-gradient(135deg, #c8ffe6, var(--success) 50%, #1b9c68); box-shadow: 0 0 0 3px rgba(70, 224, 160, .16), 0 8px 24px rgba(70, 224, 160, .35); }
.auth-seal .auth-ico { position: relative; width: 22px; height: 22px; }
.auth-next { display: grid; gap: 0; margin: 0 0 22px; padding: 0; list-style: none; border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(3, 9, 22, .4); }
.auth-next li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; padding: 12px 14px; }
.auth-next li + li { border-top: 1px solid var(--line); }
.auth-next li > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-3); font: 700 .85rem/1 var(--font-display); color: var(--mist); }
.auth-next li.is-done > span { border-color: var(--success); background: rgba(70, 224, 160, .14); }
.auth-next li.is-done > span::before { content: ""; width: 14px; height: 14px; background: var(--success); -webkit-mask: var(--ico-check) center / contain no-repeat; mask: var(--ico-check) center / contain no-repeat; }
.auth-next b { display: block; color: var(--frost); font-size: .95rem; }
.auth-next small { color: var(--dim); font-size: .84rem; }
.auth-next small a { font-weight: 700; }
.registration-actions { display: grid; gap: 12px; }
.auth-page { --ico-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }

@media (max-width: 900px) {
  .auth-frame { grid-template-columns: 1fr; min-height: 0; max-width: 600px; }
  .auth-scene { min-height: 150px; padding: 22px 24px; justify-content: flex-end; }
  .auth-scene::before { background: linear-gradient(180deg, rgba(4, 9, 22, .2) 0%, rgba(4, 9, 22, .15) 40%, rgba(7, 16, 34, .92) 100%); }
  .auth-scene::after { inset: auto 0 0 0; width: auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(160, 205, 255, .5), transparent); }
  .auth-scene__copy .eyebrow { display: none; }
  .auth-scene__copy h2 { margin: 0; font-size: clamp(1.25rem, 4.82vw, 1.63rem); }
  .auth-scene__copy > p:not(.eyebrow), .auth-perks, .auth-path, .auth-scene__copy .text-link { display: none; }
  .auth-card { padding: 26px 24px 30px; }
}
@media (max-width: 480px) {
  .auth-stage { padding-top: 14px; }
  .auth-frame { border-radius: var(--r-lg); box-shadow: var(--shadow-2); }
  .auth-scene { min-height: 124px; padding: 18px 18px 16px; }
  .auth-card { padding: 22px 18px 26px; }
  .auth-card__head h1 { font-size: 1.85rem; }
  .auth-mfa-foot { flex-direction: column; align-items: stretch; }
  .auth-cancel__button { width: 100%; }
  .auth-choices { padding: 12px; }
  .auth-card .gem-btn { --gem-h: 54px; padding: 0 30px; font-size: .96rem; white-space: normal; line-height: 1.15; text-align: center; }
}

/* ==========================================================================
   Shared bits for the info pages below (play · vote · events · benefits ·
   rules · my-account). Numbered sapphire "gem" markers and icon medallions.
   ========================================================================== */
.play-page, .vote-page, .events-page, .benefits-page, .rules-page, .account-page { --acc-panel: linear-gradient(180deg, rgba(16, 33, 64, .78), rgba(8, 18, 38, .9)); }
.play-step__gem, .vote-site__mark, .rule__num {
  position: relative; isolation: isolate; flex: none; display: grid; place-items: center; width: 48px; height: 48px;
  font: 700 1.2rem/1 var(--font-display); color: #fff; text-shadow: 0 1px 2px rgba(0, 10, 50, .6);
}
.play-step__gem::before, .vote-site__mark::before, .rule__num::before {
  content: ""; position: absolute; inset: 6px; z-index: -1; transform: rotate(45deg); border-radius: 7px;
  background: linear-gradient(135deg, #8cbcff, #2f6bff 50%, #15309a);
  box-shadow: 0 0 0 2px rgba(200, 225, 255, .32), 0 0 0 6px rgba(10, 22, 44, .9), 0 0 0 7px var(--line-2), 0 8px 22px rgba(47, 107, 255, .4);
}
.play-step__gem svg, .rule__num svg { width: 20px; height: 20px; }
/* Compact heroes on these pages: short titles should not wrap at 18ch. */
.play-page .page-hero h1, .vote-page .page-hero h1, .events-page .page-hero h1, .benefits-page .page-hero h1, .rules-page .page-hero h1, .account-page .page-hero h1 { max-width: none; }

/* --------------------------------------------------------------------------
   Play / download (account.php)
   -------------------------------------------------------------------------- */
.play-page .play-hero { padding: clamp(56px, 8vw, 112px) 0 clamp(104px, 11vw, 150px); border-bottom: 0; }
.play-page .play-hero .page-hero__art { opacity: .85; background-position: 70% 38%; }
.play-page .play-hero::before { background: linear-gradient(90deg, rgba(6, 13, 29, .97) 0%, rgba(6, 13, 29, .8) 38%, rgba(6, 13, 29, .12) 72%, rgba(6, 13, 29, .05) 100%), linear-gradient(0deg, var(--night-1) 0%, transparent 45%); }
.play-page .play-hero h1 { font-size: clamp(2.41rem, 5.16vw, 3.96rem); line-height: .95; }
.play-page .play-hero .page-hero__actions { gap: 14px 16px; margin-top: 30px; }

.play-route { position: relative; z-index: 2; margin-top: clamp(-96px, -7vw, -64px); }
.play-steps {
  position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none;
  border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(14, 30, 60, .9), rgba(8, 18, 38, .95)); border: 1px solid var(--line-2);
  box-shadow: var(--shadow-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.play-steps::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; border-radius: inherit; background: linear-gradient(90deg, transparent, rgba(160, 215, 255, .6), transparent); }
.play-step { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: clamp(22px, 2.6vw, 32px); }
.play-step + .play-step { border-left: 1px solid var(--line); }
.play-step:not(:last-child)::after { content: ""; position: absolute; right: -9px; top: 46px; z-index: 1; width: 16px; height: 16px; transform: rotate(45deg); background: #0c1a36; border-right: 1px solid var(--line-2); border-top: 1px solid var(--line-2); }
.play-step__body { display: flex; flex-direction: column; min-width: 0; }
.play-step__kicker { margin: 4px 0 4px; font: 700 .82rem/1.2 var(--font-display); color: var(--ice); }
.play-step__kicker b { color: var(--success); }
.play-step h3 { margin: 0 0 8px; font: 700 1.3rem/1.15 var(--font-display); }
.play-step p:not(.play-step__kicker) { margin: 0 0 18px; color: var(--mist); font-size: .95rem; }
.play-step__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.play-step__actions .btn-ghost { padding-inline: 14px; }
.play-step small { display: block; min-height: 2.9em; margin-top: 12px; color: var(--dim); font-size: .84rem; line-height: 1.45; }
.play-step small:empty { display: none; }
.play-step small a { font-weight: 700; }
.play-step.is-done .play-step__gem::before { background: linear-gradient(135deg, #c8ffe6, var(--success) 50%, #17855a); box-shadow: 0 0 0 2px rgba(200, 255, 230, .3), 0 0 0 6px rgba(10, 22, 44, .9), 0 0 0 7px rgba(70, 224, 160, .35), 0 8px 22px rgba(70, 224, 160, .3); }
.play-step.is-done .play-step__gem { color: #04261a; text-shadow: none; }

.play-downloads { padding-top: clamp(48px, 7vw, 88px); }
.play-downloads__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(26px, 4vw, 56px); align-items: center; }
.play-capture { position: relative; margin: 0; }
.play-capture img { display: block; width: 100%; aspect-ratio: 960 / 466; object-fit: cover; border-radius: var(--r-lg); border: 1px solid var(--line-2); box-shadow: var(--shadow-2); background: var(--night-2); }
.play-capture figcaption { margin-top: 12px; color: var(--dim); font-size: .86rem; }
.play-capture figcaption a { font-weight: 700; }
.play-options h2 { margin: 0 0 10px; }
.play-options__lede { margin: 0 0 20px; color: var(--mist); }
.play-files { margin: 0; padding: 0; list-style: none; border-radius: var(--r-lg); border: 1px solid var(--line); background: rgba(8, 18, 36, .55); }
.play-file { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 18px; }
.play-file + .play-file { border-top: 1px solid var(--line); }
.play-file__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--ice); background: rgba(47, 107, 255, .12); border: 1px solid var(--line-2); }
.play-file--main .play-file__icon { color: #fff; background: linear-gradient(180deg, #4a84ff, #1f4fd6); border-color: #6c9dff; box-shadow: 0 6px 16px rgba(40, 100, 255, .35); }
.play-file__icon svg { width: 22px; height: 22px; }
.play-file__text b { display: block; color: var(--frost); font-size: 1rem; }
.play-file__text small { color: var(--dim); font-size: .84rem; line-height: 1.45; }
.play-file__text code { font-size: .8rem; }
.play-options__note { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; color: var(--dim); font-size: .88rem; }
.play-options__note svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--sapphire-2); }

.play-page .play-help { padding-bottom: 0; }
.play-help__inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 20px clamp(24px, 4vw, 56px); align-items: center; padding-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--line); }
.play-help__head h2 { margin: 0; font-size: clamp(1.2rem, 1.89vw, 1.55rem); }
.play-help__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; }
.play-help__list li + li { border-left: 1px solid var(--line); }
.play-help__list a { display: flex; gap: 12px; align-items: flex-start; height: 100%; padding: 12px 18px; border-radius: var(--r-md); color: var(--mist); transition: background .18s; }
.play-help__list a:hover { background: rgba(47, 107, 255, .09); color: var(--mist); }
.play-help__list svg { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--ice); }
.play-help__list strong { display: block; font-size: .96rem; }
.play-help__list small { display: block; color: var(--dim); font-size: .84rem; }
.play-help__list a:hover strong { color: #fff; }

@media (max-width: 980px) {
  .play-steps { grid-template-columns: minmax(0, 1fr); }
  .play-step small { min-height: 0; }
  .play-step + .play-step { border-left: 0; border-top: 1px solid var(--line); }
  .play-step:not(:last-child)::after { display: none; }
  .play-downloads__grid { grid-template-columns: minmax(0, 1fr); }
  .play-capture { order: 2; max-width: 640px; }
  .play-page .play-help { padding-bottom: 0; }
.play-help__inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .play-help__list { grid-template-columns: minmax(0, 1fr); }
  .play-help__list li + li { border-left: 0; border-top: 1px solid var(--line); }
  .play-help__list a { padding: 14px 4px; }
}
@media (max-width: 560px) {
  .play-page .play-hero { padding: 40px 0 92px; }
  .play-page .play-hero .page-hero__art { opacity: .6; background-position: 62% 30%; }
  .play-page .play-hero::before { background: linear-gradient(90deg, rgba(6, 13, 29, .9), rgba(6, 13, 29, .55)), linear-gradient(0deg, var(--night-1) 0%, transparent 50%); }
  .play-page .play-hero .page-hero__actions { flex-direction: column; align-items: stretch; }
  .play-page .play-hero .gem-btn { --gem-h: 54px; padding: 0 30px; font-size: .96rem; }
  .play-step { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 20px 18px; }
  .play-step__gem { width: 40px; height: 40px; font-size: 1.05rem; }
  .play-step__gem::before { inset: 5px; }
  .play-file { grid-template-columns: 40px minmax(0, 1fr); padding: 14px; }
  .play-file__icon { width: 40px; height: 40px; }
  .play-file .btn { grid-column: 1 / -1; }
  .play-step__actions .btn { white-space: normal; text-align: center; line-height: 1.2; min-height: 44px; padding-block: 8px; }
}

/* --------------------------------------------------------------------------
   Vote
   -------------------------------------------------------------------------- */
.vote-page .vote-hero .page-hero__art { background-position: 60% 40%; }
.vote-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 3.5vw, 44px); align-items: start; padding-top: clamp(30px, 4vw, 52px); }
.vote-sites__head { margin-bottom: 16px; }
.vote-sites__head h2 { margin: 0 0 6px; font-size: clamp(1.29rem, 2.06vw, 1.63rem); }
.vote-sites__head p { margin: 0; color: var(--dim); }
.vote-list { margin: 0; padding: 0; list-style: none; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--acc-panel); box-shadow: var(--shadow-1); }
.vote-site { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: clamp(18px, 2.4vw, 26px); }
.vote-site + .vote-site { border-top: 1px solid var(--line); }
.vote-site__kicker { margin: 0 0 2px; font-size: .82rem; color: var(--dim); }
.vote-site h3 { margin: 0 0 4px; font: 700 1.2rem/1.2 var(--font-display); }
.vote-site__body p:last-child { margin: 0; color: var(--mist); font-size: .93rem; }
.vote-site__action .btn { min-width: 196px; }
.vote-site__action .btn svg { width: 16px; height: 16px; }
.vote-aside { display: grid; gap: 16px; }
.vote-voter { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r-lg); background: var(--acc-panel); border: 1px solid var(--line-2); }
.vote-voter__avatar { --avatar: 56px; }
.vote-voter small { display: block; font: 700 .78rem/1.2 var(--font-display); color: var(--dim); }
.vote-voter strong { display: block; font-size: 1.15rem; overflow-wrap: anywhere; }
.vote-safety { padding: 16px 18px; border-radius: var(--r-lg); background: rgba(255, 183, 77, .07); border: 1px solid rgba(255, 183, 77, .32); }
.vote-safety h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font: 700 .95rem/1.2 var(--font-display); color: var(--frost); }
.vote-safety h2 svg { width: 20px; height: 20px; color: var(--warning); }
.vote-safety p { margin: 0; font-size: .92rem; color: var(--mist); }
.vote-more { display: grid; }
.vote-more a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 4px; color: var(--mist); font-weight: 700; font-size: .93rem; border-bottom: 1px solid var(--line); }
.vote-more a:last-child { border-bottom: 0; }
.vote-more a::after { content: "→"; margin-left: auto; color: var(--dim); transition: transform .2s var(--ease); }
.vote-more a:hover { color: #fff; }
.vote-more a:hover::after { transform: translateX(3px); color: var(--ice); }
.vote-more svg { width: 20px; height: 20px; color: var(--ice); }
@media (max-width: 960px) {
  .vote-layout { grid-template-columns: minmax(0, 1fr); }
  .vote-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vote-more { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .vote-aside { grid-template-columns: 1fr; }
  .vote-site { grid-template-columns: 40px minmax(0, 1fr); gap: 12px 14px; align-items: start; }
  .vote-site__mark { width: 40px; height: 40px; font-size: 1.05rem; }
  .vote-site__mark::before { inset: 5px; }
  .vote-site__action { grid-column: 1 / -1; }
  .vote-site__action .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   Live events
   -------------------------------------------------------------------------- */
.events-wrap { padding-top: clamp(30px, 4vw, 52px); }
.events-boards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); align-items: stretch; }
.events-page .event-board { border-radius: var(--r-lg); background: var(--acc-panel); border: 1px solid var(--line-2); box-shadow: var(--shadow-1); overflow: hidden; }
.events-page .event-board__head { display: flex; align-items: center; gap: 14px; padding: 20px 22px; border-bottom: 1px solid var(--line); background: radial-gradient(360px 140px at 0 0, rgba(47, 107, 255, .16), transparent 70%); }
.events-page .event-board__head .eyebrow { margin-bottom: 4px; }
.events-page .event-board__head h2 { margin: 0; font-size: clamp(1.16rem, 1.72vw, 1.42rem); }
.events-page .event-board__count { margin-left: auto; }
.events-page .event-board__icon { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%; color: #fff; background: radial-gradient(circle at 50% 30%, #4c86ff, #1a3fb7 60%, #0d2a7a); box-shadow: 0 0 0 1px rgba(170, 210, 255, .45), 0 0 0 4px rgba(10, 22, 44, .8), 0 0 0 5px var(--line-2), 0 8px 20px rgba(0,0,0,.35); }
.events-page .event-board__icon--boost { background: radial-gradient(circle at 50% 30%, #5fe9d7, #1b9c8c 60%, #0b5a55); box-shadow: 0 0 0 1px rgba(170, 255, 240, .4), 0 0 0 4px rgba(10, 22, 44, .8), 0 0 0 5px var(--line-2), 0 8px 20px rgba(0,0,0,.35); }
.events-page .event-board__icon svg { width: 24px; height: 24px; }
.events-page .event-list { margin: 0; padding: 0; list-style: none; }
.events-page .event-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 16px 22px; }
.events-page .event-row + .event-row { border-top: 1px solid var(--line); }
.events-page .event-row--boost { grid-template-columns: minmax(0, 1fr) auto; }
.events-page .event-row__main h3 { margin: 0 0 2px; font-size: 1.05rem; }
.events-page .event-row__main p { margin: 0; color: var(--dim); font-size: .88rem; }
.events-page .event-row__stats { display: flex; gap: 18px; margin: 0; }
.events-page .event-row__stats div { display: grid; text-align: right; }
.events-page .event-row__stats dt { font: 700 .74rem/1.2 var(--font-display); color: var(--dim); }
.events-page .event-row__stats dd { margin: 0; font: 700 1.15rem/1.2 var(--font-display); color: var(--frost); font-variant-numeric: tabular-nums; }
.events-page .event-row__timer { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 12px; border-radius: 999px; background: rgba(3, 9, 22, .6); border: 1px solid var(--line-2); }
.events-page .event-row__timer svg { width: 16px; height: 16px; color: var(--ice); }
.events-page .event-row__timer strong { font: 700 1rem/1 var(--font-display); color: var(--ice-2); font-variant-numeric: tabular-nums; min-width: 5.2ch; text-align: right; }
.events-page .event-empty { margin: 0; padding: clamp(28px, 4vw, 44px) 22px; border: 0; border-radius: 0; background: none; }
.events-page .event-empty h3 { margin: 0; font-size: 1.1rem; }
.events-more { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(28px, 4vw, 44px); padding-top: clamp(20px, 3vw, 28px); border-top: 1px solid var(--line); }
.events-more a { display: flex; gap: 12px; align-items: flex-start; padding: 10px 16px; border-radius: var(--r-md); color: var(--mist); }
.events-more a + a { border-left: 1px solid var(--line); border-radius: 0; }
.events-more a:hover { background: rgba(47, 107, 255, .08); }
.events-more svg { flex: none; width: 22px; height: 22px; color: var(--ice); }
.events-more b { display: block; font-size: .95rem; color: var(--frost); }
.events-more small { display: block; color: var(--dim); font-size: .82rem; }
@media (max-width: 900px) {
  .events-boards { grid-template-columns: minmax(0, 1fr); }
  .events-more { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 6px; }
  .events-more a + a { border-left: 0; }
}
@media (max-width: 560px) {
  .events-page .event-board__head { padding: 16px; gap: 12px; }
  .events-page .event-board__icon { width: 44px; height: 44px; }
  .events-page .event-row { grid-template-columns: minmax(0, 1fr) auto; padding: 14px 16px; }
  .events-page .event-row__stats { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
  .events-page .event-row__stats div { text-align: left; }
  .events-page .event-empty { padding: 26px 16px; }
  .events-more { grid-template-columns: 1fr; }
  .events-more a { border-radius: 0; border-bottom: 1px solid var(--line); padding: 12px 4px; }
  .events-more a:last-child { border-bottom: 0; }
}

/* --------------------------------------------------------------------------
   Donator benefits
   -------------------------------------------------------------------------- */
.benefits-page .benefits-hero .page-hero__art { background-position: 60% 45%; }
.benefits-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(24px, 3.5vw, 44px); align-items: start; padding-top: clamp(30px, 4vw, 52px); }
.benefits-ladder__head { margin-bottom: 16px; }
.benefits-ladder__head h2 { margin: 0; font-size: clamp(1.29rem, 2.06vw, 1.63rem); }
.benefits-page .benefits-table th, .benefits-page .benefits-table td { padding: 15px 18px; }
.benefits-page .benefits-table tbody th { font-weight: 700; }
.benefits-rank { display: inline-flex; align-items: center; gap: 12px; font: 700 1.02rem/1.2 var(--font-display); color: var(--frost); }
.benefits-rank__gem { flex: none; width: 13px; height: 13px; transform: rotate(45deg); border-radius: 3px; background: linear-gradient(135deg, #cfeaff, var(--sapphire) 55%, var(--sapphire-ink)); box-shadow: 0 0 10px rgba(95, 155, 255, .7); }
.benefits-tier--7 .benefits-rank { color: var(--gold-2); }
.benefits-tier--7 .benefits-rank__gem { background: linear-gradient(135deg, #fff1c2, var(--gold) 50%, var(--gold-deep)); box-shadow: 0 0 12px rgba(255, 203, 102, .75); }
.benefits-drop { display: flex; align-items: center; gap: 14px; }
.benefits-drop b { min-width: 3.2ch; font: 700 1.05rem/1 var(--font-display); color: var(--frost); font-variant-numeric: tabular-nums; }
.benefits-meter { position: relative; flex: 1; min-width: 60px; max-width: 220px; height: 6px; border-radius: 99px; background: rgba(147, 214, 255, .1); overflow: hidden; }
.benefits-meter i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, var(--sapphire-deep), var(--sapphire-2), var(--ice)); box-shadow: 0 0 10px rgba(95, 155, 255, .6); }
.benefits-tier--1 .benefits-meter i { width: 8.33%; }
.benefits-tier--2 .benefits-meter i { width: 16.67%; }
.benefits-tier--3 .benefits-meter i { width: 33.33%; }
.benefits-tier--4 .benefits-meter i { width: 50%; }
.benefits-tier--5 .benefits-meter i { width: 66.67%; }
.benefits-tier--6 .benefits-meter i { width: 83.33%; }
.benefits-tier--7 .benefits-meter i { width: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-2)); box-shadow: 0 0 10px rgba(255, 203, 102, .5); }
.benefits-notes { display: grid; gap: 0; border-radius: var(--r-lg); background: var(--acc-panel); border: 1px solid var(--line-2); box-shadow: var(--shadow-1); }
.benefits-note { position: relative; padding: 22px 22px 24px 84px; }
.benefits-note + .benefits-note { border-top: 1px solid var(--line); }
.benefits-note__icon { position: absolute; left: 22px; top: 22px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; background: radial-gradient(circle at 50% 30%, #4c86ff, #1a3fb7 60%, #0d2a7a); box-shadow: 0 0 0 1px rgba(170, 210, 255, .45), 0 0 0 4px rgba(10, 22, 44, .8), 0 0 0 5px var(--line-2); }
.benefits-note__icon svg { width: 22px; height: 22px; }
.benefits-note h2 { margin: 0 0 8px; font-size: 1.2rem; }
.benefits-note p { margin: 0 0 16px; color: var(--mist); font-size: .94rem; }
@media (max-width: 1000px) { .benefits-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .benefits-page .benefits-table th, .benefits-page .benefits-table td { padding: 12px 10px; }
  .benefits-page .benefits-table thead th { white-space: normal; line-height: 1.35; }
  .benefits-page .benefits-table td { white-space: nowrap; }
  .benefits-meter { display: none; }
  .benefits-rank { gap: 9px; font-size: .92rem; }
  .benefits-note { padding: 18px 18px 20px 74px; }
  .benefits-note__icon { left: 16px; top: 18px; }
}

/* --------------------------------------------------------------------------
   Rules
   -------------------------------------------------------------------------- */
.rules-page .rules-hero .page-hero__art { background-position: 68% 50%; }
.rules-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; padding-top: clamp(30px, 4vw, 52px); }
.rules-toc { position: sticky; top: calc(var(--header-h) + 24px); padding: 18px 16px; border-radius: var(--r-lg); background: rgba(10, 22, 42, .6); border: 1px solid var(--line); }
.rules-toc__title { margin: 0 0 10px 6px; font: 700 .82rem/1.2 var(--font-display); color: var(--dim); }
.rules-toc ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.rules-toc a { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 8px 10px; border-radius: var(--r-sm); color: var(--mist); font-weight: 700; font-size: .92rem; line-height: 1.3; }
.rules-toc a > span { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(47, 107, 255, .16); border: 1px solid var(--line-2); color: var(--ice); font: 700 .78rem/1 var(--font-display); }
.rules-toc a > span svg { width: 14px; height: 14px; }
.rules-toc a:hover { background: rgba(47, 107, 255, .1); color: #fff; }
.rules-body { max-width: 780px; }
.rules-page .rule { padding: 0 0 clamp(26px, 3.5vw, 38px); margin-bottom: clamp(26px, 3.5vw, 38px); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 20px); }
.rules-page .rule__head { position: relative; display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.rules-page .rule__head h2 { margin: 0; font-size: clamp(1.2rem, 2.06vw, 1.59rem); }
.rules-page .rule__icon { width: 30px; height: 30px; margin-left: auto; color: rgba(147, 214, 255, .35); }
.rules-page .rule__list { display: grid; gap: 10px; margin: 0; padding: 0 0 0 64px; list-style: none; }
.rules-page .rule__list li { position: relative; padding-left: 22px; color: #cdd9ec; font-size: 1.02rem; line-height: 1.6; }
.rules-page .rule__list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; transform: rotate(45deg); background: linear-gradient(135deg, #cfeaff, var(--sapphire) 55%, var(--sapphire-ink)); box-shadow: 0 0 8px rgba(95, 155, 255, .7); }
.rules-page .rule--appeals { margin-bottom: 0; padding: clamp(20px, 3vw, 30px); border: 1px solid rgba(110, 160, 255, .34); border-radius: var(--r-lg); background: var(--acc-panel); box-shadow: var(--shadow-1), 0 0 40px rgba(47, 107, 255, .1); }
.rules-page .rule--appeals > p { margin: 0 0 18px; color: #cdd9ec; font-size: 1.02rem; line-height: 1.65; }
.rules-page .rule__num--scroll svg { color: #fff; }
@media (max-width: 900px) {
  .rules-layout { grid-template-columns: minmax(0, 1fr); }
  .rules-toc { position: static; }
  .rules-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .rules-toc ol { grid-template-columns: 1fr; }
  .rules-page .rule__list { padding-left: 0; }
  .rules-page .rule__icon { display: none; }
  .rules-page .rule__num { width: 42px; height: 42px; }
  .rules-page .rule__num::before { inset: 5px; }
  .rules-page .rule--appeals .btn { width: 100%; white-space: normal; }
}

/* --------------------------------------------------------------------------
   My account (my-account.php)
   -------------------------------------------------------------------------- */
.account-page .acct-hero { padding-bottom: clamp(30px, 4vw, 46px); }
.account-page .acct-hero .page-hero__art { background-position: 70% 50%; opacity: .5; }
.acct-hero__inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.acct-hero__copy h1 { margin-bottom: 10px; }
.acct-id { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; align-items: center; min-width: 300px; max-width: 420px; padding: 16px 20px 14px 16px; border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(16, 34, 66, .88), rgba(8, 18, 38, .92)); border: 1px solid var(--line-2); box-shadow: var(--shadow-2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.acct-id__avatar { --avatar: 64px; }
.acct-id__text { min-width: 0; }
.acct-id__text small { display: block; font: 700 .78rem/1.2 var(--font-display); color: var(--dim); }
.acct-id__text strong { display: block; font-size: 1.3rem; line-height: 1.25; overflow-wrap: anywhere; }
.acct-id__credits { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; color: var(--mist); font-size: .88rem; }
.acct-id__credits svg { width: 16px; height: 16px; color: var(--gold); }
.acct-id__credits .credits { font-size: 1rem; }
.acct-id__links { grid-column: 1 / -1; display: flex; gap: 18px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.acct-id__links a { font: 700 .84rem/1 var(--font-display); color: var(--ice); padding: 6px 0; }
.acct-id__links a:hover { color: #fff; }

.acct-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(24px, 3.5vw, 44px); align-items: start; padding-top: clamp(28px, 4vw, 44px); }
.acct-nav { position: sticky; top: calc(var(--header-h) + 22px); }
.acct-nav__title { margin: 0 0 8px 12px; font: 700 .8rem/1.2 var(--font-display); color: var(--dim); }
.acct-nav ul { margin: 0 0 22px; padding: 0; list-style: none; display: grid; gap: 2px; }
.acct-nav a { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 8px 12px; border-radius: var(--r-sm); color: var(--mist); font-weight: 700; font-size: .94rem; transition: background .15s, color .15s; }
.acct-nav a svg { width: 19px; height: 19px; color: var(--ice); flex: none; }
.acct-nav a:hover { background: rgba(47, 107, 255, .12); color: #fff; }
.acct-nav .acct-nav__sub { margin: 2px 0 6px 21px; padding-left: 12px; border-left: 1px solid var(--line-2); gap: 0; }
.acct-nav .acct-nav__sub a { min-height: 36px; padding: 6px 10px; font-weight: 400; font-size: .88rem; color: var(--dim); }
.acct-nav .acct-nav__sub a:hover { color: #fff; }
.acct-content { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(22px, 3vw, 32px); min-width: 0; }
.account-page .account-feedback:empty { display: none; }
.account-page .account-feedback .alert { margin: 0; }

.acct-section { position: relative; padding: clamp(20px, 2.8vw, 32px); border-radius: var(--r-lg); background: var(--acc-panel); border: 1px solid var(--line); box-shadow: var(--shadow-1); scroll-margin-top: calc(var(--header-h) + 18px); }
.acct-section::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; border-radius: inherit; background: linear-gradient(90deg, transparent, rgba(160, 205, 255, .35), transparent); pointer-events: none; }
.acct-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 22px; }
.acct-section__head h2 { margin: 0 0 6px; font-size: clamp(1.25rem, 1.98vw, 1.59rem); }
.acct-section__head p:not(.eyebrow) { margin: 0; color: var(--dim); max-width: 62ch; font-size: .95rem; }
.acct-section__head .text-link { padding: 8px 0; }
.acct-empty { padding: 26px 20px; }
.acct-empty .empty-state__icon { width: 38px; height: 38px; }

/* Name colour swatches */
.acct-colours__set { margin: 0; padding: 0; border: 0; min-width: 0; }
.acct-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr)); gap: 10px; }
.acct-swatch { position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; border-radius: 12px; background: rgba(3, 9, 22, .55); border: 1px solid var(--line-2); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.acct-swatch input { position: absolute; opacity: 0; pointer-events: none; }
.acct-swatch--default { --preview-colour: #eef5ff; }
.acct-swatch__dot { flex: none; width: 16px; height: 16px; transform: rotate(45deg); border-radius: 4px; background: var(--preview-colour, #eef5ff); box-shadow: 0 0 0 2px rgba(0, 0, 0, .55), 0 0 12px color-mix(in srgb, var(--preview-colour, #eef5ff) 55%, transparent); }
.acct-swatch--default .acct-swatch__dot { background: linear-gradient(135deg, #fff, #9fb1cc); }
.acct-swatch .player-name { font-size: .98rem; }
.acct-swatch:hover { border-color: var(--line-3); background: rgba(12, 26, 50, .75); }
.acct-swatch:has(input:checked) { border-color: var(--preview-colour); background: color-mix(in srgb, var(--preview-colour) 12%, rgba(3, 9, 22, .75)); box-shadow: 0 0 0 1px var(--preview-colour), 0 6px 18px rgba(0, 0, 0, .3); }
.acct-swatch:has(input:checked)::after { content: ""; flex: none; width: 20px; height: 20px; margin-left: auto; border-radius: 50%; background: var(--preview-colour, #eef5ff) var(--acct-check) center / 12px no-repeat; box-shadow: 0 0 0 2px rgba(3, 9, 22, .8); }
.account-page { --acct-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23061020' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.acct-swatch:has(input:focus-visible) { outline: 2px solid var(--ice); outline-offset: 2px; }
.acct-colours__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; margin-top: 18px; }
.acct-colours__foot .name-colour-status { margin: 0; color: var(--success); font-size: .92rem; font-weight: 700; }
.acct-colours__foot .name-colour-status.error { color: var(--danger); }
.acct-colours__foot .name-colour-status:empty { display: none; }

/* Purchases */
.account-page .acct-orders code { font-size: .82rem; }

/* Security overview + rows */
.acct-staff-notice { margin-bottom: 18px; }
.acct-status { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0 0 8px; padding: 0; list-style: none; border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(3, 9, 22, .4); }
.acct-status li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; min-width: 0; }
.acct-status li + li { border-left: 1px solid var(--line); }
.acct-status__icon { position: relative; display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; color: var(--ice); background: rgba(47, 107, 255, .12); border: 1px solid var(--line-2); }
.acct-status__icon svg { width: 20px; height: 20px; }
.acct-status__icon::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #0a1629; }
.acct-status .is-ok .acct-status__icon::after { background: var(--success); }
.acct-status .is-attention .acct-status__icon::after { background: var(--warning); }
.acct-status small { display: block; font: 700 .76rem/1.2 var(--font-display); color: var(--dim); }
.acct-status strong { display: block; font-size: .98rem; line-height: 1.3; }
.acct-status .is-attention strong { color: #ffe2b3; }

.acct-rows { display: grid; }
.acct-row { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 16px clamp(20px, 3vw, 40px); padding: 26px 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 18px); transition: opacity .2s; }
.acct-row:last-child { border-bottom: 0; padding-bottom: 4px; }
.acct-row.is-updating { opacity: .7; }
.acct-row__info h3 { margin: 0 0 8px; font: 700 1.1rem/1.2 var(--font-display); }
.acct-row__info .chip { margin-bottom: 10px; }
.acct-row__info p { margin: 0 0 8px; color: var(--mist); font-size: .9rem; line-height: 1.55; }
.acct-row__hint { color: var(--dim) !important; font-size: .84rem !important; }
.acct-row__control { min-width: 0; }
.acct-form { margin: 0; max-width: 600px; }
.acct-form .field { margin-bottom: 14px; }
.acct-form .field small { margin-top: -1px; }
.acct-form .two-fields { gap: 0 14px; }
.acct-form .form-actions { margin-top: 4px; }
.acct-form.is-loading { pointer-events: none; }
.acct-check { margin: 2px 0 16px; font-size: .92rem; }
.acct-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 16px 0 0; padding-top: 14px; border-top: 1px dashed var(--line-2); color: var(--dim); font-size: .9rem; }
.acct-link-button { min-height: 40px; padding: 0; background: none; border: 0; color: var(--ice); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(147, 214, 255, .4); text-underline-offset: .18em; }
.acct-link-button:hover { color: #fff; }
.acct-subform { padding: 16px 18px 18px; border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(3, 9, 22, .35); }
.acct-subform + .acct-subform { margin-top: 14px; }
.acct-subform h4 { margin: 0 0 12px; font: 700 .91rem/1.2 var(--font-display); color: var(--frost); }
.acct-subform--danger { border-color: rgba(255, 107, 125, .28); background: rgba(120, 20, 40, .08); }
.acct-subform--danger h4 { color: #ffc7cf; }
.acct-mfa-state { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 12px 14px; border-radius: var(--r-md); background: rgba(70, 224, 160, .08); border: 1px solid rgba(70, 224, 160, .32); color: var(--frost); font-size: .93rem; }
.acct-mfa-state svg { flex: none; width: 22px; height: 22px; color: var(--success); }

/* Authenticator enrolment */
.acct-enrol { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: enrol; }
.acct-enrol > li { position: relative; padding-left: 40px; counter-increment: enrol; }
.acct-enrol > li::before { content: counter(enrol); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(180deg, #4a84ff, #1f4fd6); color: #fff; font: 700 .85rem/1 var(--font-display); box-shadow: 0 4px 12px rgba(40, 100, 255, .35); }
.acct-enrol > li > p { margin: 2px 0 12px; color: var(--mist); font-size: .93rem; }
.acct-enrol__key { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.acct-qr { flex: none; width: 176px; height: 176px; padding: 8px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line-3), 0 10px 26px rgba(0, 0, 0, .4); }
.acct-qr:empty { background: rgba(255, 255, 255, .06); }
.acct-qr svg { display: block; width: 100%; height: 100%; }
.acct-enrol__secret { flex: 1; min-width: 200px; }
.acct-enrol__secret small { display: block; margin-bottom: 6px; font: 700 .78rem/1.2 var(--font-display); color: var(--dim); }
.acct-enrol__secret .totp-secret code { display: block; padding: 10px 12px; font-size: 1rem; word-break: break-all; }
.acct-enrol__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 12px; }
.acct-code-input { max-width: 220px; font: 700 1.2rem/1.2 ui-monospace, "Cascadia Mono", Consolas, monospace !important; }

/* Recovery codes */
.acct-recovery { margin: 18px 0 0; padding: 22px !important; border: 1px solid rgba(255, 203, 102, .38) !important; border-radius: var(--r-md); background: rgba(255, 203, 102, .05); }
.acct-recovery + .acct-row { border-top: 0; }
.acct-codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin-bottom: 14px; white-space: normal; }
.acct-codes code { display: block; padding: 9px 10px; text-align: center; font-size: .95rem; background: rgba(3, 9, 22, .7); border-color: var(--line-2); color: var(--frost); }

/* Recent sign-ins */
.acct-logins__title { margin: 22px 0 10px; font: 700 .85rem/1.2 var(--font-display); color: var(--dim); }
.acct-logins { display: grid; margin: 0; padding: 0; list-style: none; border-radius: var(--r-md); border: 1px solid var(--line); }
.acct-logins li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.acct-logins li + li { border-top: 1px solid var(--line); }
.acct-logins svg { flex: none; width: 20px; height: 20px; color: var(--dim); }
.acct-logins b { display: block; font-size: .92rem; }
.acct-logins small { color: var(--dim); font-size: .82rem; overflow-wrap: anywhere; }

/* Toast from account-security.js */
.security-toast { position: fixed; right: 20px; bottom: 20px; z-index: 120; display: flex; align-items: flex-start; gap: 12px; width: min(420px, calc(100vw - 32px)); padding: 14px 14px 14px 16px; border-radius: var(--r-md); background: linear-gradient(180deg, #11254c, #0a1730); border: 1px solid rgba(70, 224, 160, .45); box-shadow: 0 20px 50px rgba(0, 0, 0, .55); color: var(--frost); opacity: 0; transform: translateY(12px); transition: opacity .22s, transform .22s var(--ease); }
.security-toast.visible { opacity: 1; transform: none; }
.security-toast > span { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--success); color: #04261a; font-weight: 700; }
.security-toast.error { border-color: rgba(255, 107, 125, .55); }
.security-toast.error > span { background: var(--danger); color: #2a0008; }
.security-toast p { margin: 2px 0 0; flex: 1; font-size: .92rem; line-height: 1.45; }
.security-toast button { flex: none; width: 32px; height: 32px; margin: -4px -4px 0 0; border-radius: 50%; background: none; border: 1px solid transparent; color: var(--mist); font-size: 1.2rem; line-height: 1; }
.security-toast button:hover { color: #fff; border-color: var(--line-2); }

@media (max-width: 1080px) {
  .acct-row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .acct-row__info { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: start; }
  .acct-row__info h3 { grid-column: 1; }
  .acct-row__info .chip { grid-column: 2; grid-row: 1; margin: 0; }
  .acct-row__info p { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .acct-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .acct-nav { position: static; display: flex; gap: 6px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; }
  .acct-nav::-webkit-scrollbar { display: none; }
  .acct-nav__title, .acct-nav .acct-nav__sub { display: none; }
  .acct-nav ul { display: contents; }
  .acct-nav a { flex: none; min-height: 40px; padding: 8px 14px; border-radius: 999px; background: rgba(14, 30, 58, .6); border: 1px solid var(--line-2); font-size: .86rem; white-space: nowrap; }
  .acct-nav a svg { width: 16px; height: 16px; }
  .acct-status { grid-template-columns: 1fr; }
  .acct-status li + li { border-left: 0; border-top: 1px solid var(--line); }
  .acct-id { min-width: 0; max-width: 520px; width: 100%; }
}
@media (max-width: 560px) {
  .acct-section { padding: 18px 16px; }
  .acct-swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .acct-swatch { padding: 10px; gap: 9px; min-height: 48px; }
  .acct-colours__foot .btn { width: 100%; }
  .acct-row { padding: 22px 0; }
  .acct-subform { padding: 14px; }
  .acct-form .form-actions .btn, .acct-row__control .acct-form > .btn { width: 100%; white-space: normal; line-height: 1.2; padding-block: 8px; }
  .acct-recovery .form-actions .btn { flex: 1; white-space: normal; }
  .acct-qr { width: 156px; height: 156px; }
  .acct-recovery { padding: 16px !important; }
  .security-toast { right: 16px; bottom: 16px; }
}
@media (max-width: 380px) {
  .benefits-rank__gem { display: none; }
  .benefits-page .benefits-table th, .benefits-page .benefits-table td { padding: 11px 8px; }
}
