@font-face {
  font-family: "Genshin-HYWenHei";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/genshin-zh-cn.ttf") format("truetype");
}

/* ============================================================
   Genshin Impact × Optical Fluted Glass & Flowing Liquid Theme
   Default: celestia (Pure Cloud-Sky + Flowing Liquid Currents)
   ============================================================ */

:root,
[data-theme="celestia"] {
  color-scheme: light;
  --font-genshin: "Genshin-HYWenHei", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-sans: var(--font-genshin);
  --font-display: var(--font-genshin);
  --font-body: var(--font-genshin);
  --font-mono: var(--font-genshin);

  --bg:#BCE0F7;
  --bg-deep:#8BBBE3;
  --ink:#1E324E;
  --ink-soft:rgba(30,50,78,.82);
  --muted:rgba(46,70,104,.68);
  --muted-dim:rgba(62,88,124,.52);

  --accent:#A9772B;
  --accent-bright:#8A5D1B;
  --accent-soft:rgba(169,119,43,.13);
  --accent-glow:rgba(246,215,163,.62);
  --status-ok:#178A5B;
  --danger:#B83B62;

  /* Airy pearl-crystal translucency: clear fluted glass shows softly through */
  --glass-bg:linear-gradient(135deg, rgba(255,255,255,.46) 0%, rgba(235,247,255,.16) 55%, rgba(255,255,255,.34) 100%);
  --glass-bg-hover:linear-gradient(135deg, rgba(255,255,255,.60) 0%, rgba(242,250,255,.26) 55%, rgba(255,255,255,.48) 100%);
  --glass-bg-strong:linear-gradient(145deg, rgba(253,254,255,.94) 0%, rgba(245,250,255,.92) 52%, rgba(236,246,255,.92) 100%);
  --glass-border-top:rgba(255,255,255,.96);
  --glass-border-side:rgba(255,255,255,.68);
  --glass-border-bottom:rgba(116,164,210,.28);
  --glass-highlight:rgba(255,255,255,.98);
  --glass-shadow:inset 0 1px 0 rgba(255,255,255,.98), inset 1px 0 0 rgba(255,255,255,.62), inset 0 -1px 0 rgba(95,146,196,.16), 0 16px 38px -16px rgba(42,84,136,.16);
  --glass-shadow-raised:inset 0 1px 0 rgba(255,255,255,1), inset 1px 0 0 rgba(255,255,255,.76), inset 0 -1px 0 rgba(95,146,196,.18), 0 22px 46px -14px rgba(42,84,136,.22), 0 0 26px rgba(246,215,163,.28);
  --glass-blur:blur(10px) saturate(155%);

  --btn-primary-bg:linear-gradient(135deg, rgba(255,252,243,.84) 0%, rgba(232,246,255,.70) 48%, rgba(252,235,196,.82) 100%);
  --btn-primary-ink:#1B304F;
  --btn-primary-border:rgba(255,255,255,.94);
  --btn-primary-shadow:0 10px 26px -6px rgba(42,84,136,.18), 0 0 18px rgba(244,205,126,.32), inset 0 1.5px 0 rgba(255,255,255,.98);
  --btn-ghost-bg:rgba(255,255,255,.40);
  --btn-ghost-hover:rgba(255,255,255,.68);
  --btn-ghost-border:rgba(255,255,255,.80);

  --input-bg:rgba(255,255,255,.62);
  --input-border:rgba(46,74,116,.22);
  --input-focus:rgba(169,119,43,.75);
  --select-bg:#EAF4FD;
  --toast-bg:rgba(250,253,255,.94);
  --overlay-bg:rgba(220,236,250,.60);
  --hero-text-shadow:0 1px 18px rgba(255,255,255,.48);
  --fallback-bg:radial-gradient(ellipse 68% 82% at 20% 20%, rgba(255,255,255,.92), transparent 72%), radial-gradient(ellipse 56% 62% at 80% 68%, rgba(246,215,163,.42), transparent 72%), linear-gradient(130deg, #E2F2FC 0%, #BCE0F7 54%, #95C4EA 100%);
}

[data-theme="wish"] {
  color-scheme: dark;
  --bg:#060C1B;
  --bg-deep:#040813;
  --ink:#F6F8FC;
  --ink-soft:rgba(246,248,252,.9);
  --muted:rgba(218,231,250,.76);
  --muted-dim:rgba(195,215,244,.56);

  --accent:#E9C37B;
  --accent-bright:#F7E3B5;
  --accent-soft:rgba(233,195,123,.18);
  --accent-glow:rgba(114,200,232,.36);
  --status-ok:#7BE2B8;
  --danger:#FFB3C6;

  --glass-bg:linear-gradient(140deg, rgba(255,255,255,.12) 0%, rgba(16,32,62,.24) 100%);
  --glass-bg-hover:linear-gradient(140deg, rgba(255,255,255,.18) 0%, rgba(20,40,76,.30) 100%);
  --glass-bg-strong:linear-gradient(145deg, rgba(16,32,62,.84) 0%, rgba(7,14,31,.92) 100%);
  --glass-border-top:rgba(255,255,255,.42);
  --glass-border-side:rgba(196,228,255,.22);
  --glass-border-bottom:rgba(140,190,240,.14);
  --glass-highlight:rgba(255,255,255,.68);
  --glass-shadow:inset 0 1px 0 rgba(255,255,255,.42), inset 0 -1px 2px rgba(3,8,20,.25), 0 14px 32px -10px rgba(3,8,20,.45);
  --glass-shadow-raised:inset 0 1px 0 rgba(255,255,255,.55), inset 0 -1px 2px rgba(3,8,20,.22), 0 20px 44px -10px rgba(3,8,20,.54), 0 0 28px rgba(114,200,232,.22);
  --glass-blur:blur(12px) saturate(165%);

  --btn-primary-bg:linear-gradient(125deg,#FAF1D9 0%,#E9C37B 100%);
  --btn-primary-ink:#09142B;
  --btn-primary-border:rgba(255,248,230,.85);
  --btn-primary-shadow:0 10px 28px rgba(6,12,27,.28), 0 0 24px rgba(233,195,123,.26);
  --btn-ghost-bg:rgba(255,255,255,.07);
  --btn-ghost-hover:rgba(255,255,255,.16);
  --btn-ghost-border:rgba(255,255,255,.28);

  --input-bg:rgba(6,14,32,.36);
  --input-border:rgba(210,232,255,.28);
  --input-focus:rgba(233,195,123,.72);
  --select-bg:#0E2144;
  --toast-bg:rgba(12,26,52,.88);
  --overlay-bg:rgba(5,10,22,.62);
  --hero-text-shadow:none;
  --fallback-bg:radial-gradient(ellipse 64% 80% at 18% 20%, rgba(42,141,184,.65), transparent 72%), radial-gradient(ellipse 52% 60% at 80% 72%, rgba(233,195,123,.35), transparent 74%), linear-gradient(125deg, #060C1B 0%, #12264A 52%, #08152B 100%);
}

[data-theme="fontaine"] {
  color-scheme: dark;
  --bg:#061529;
  --bg-deep:#030D1B;
  --ink:#F5FBFF;
  --ink-soft:rgba(245,251,255,.92);
  --muted:rgba(210,242,252,.8);
  --muted-dim:rgba(176,222,240,.58);

  --accent:#E8C4A2;
  --accent-bright:#FCE8D5;
  --accent-soft:rgba(232,196,162,.2);
  --accent-glow:rgba(123,226,242,.38);
  --status-ok:#7CF0C5;
  --danger:#FFB4CE;

  --glass-bg:linear-gradient(140deg, rgba(226,250,255,.14) 0%, rgba(10,42,78,.24) 100%);
  --glass-bg-hover:linear-gradient(140deg, rgba(226,250,255,.20) 0%, rgba(14,56,98,.30) 100%);
  --glass-bg-strong:linear-gradient(145deg, rgba(12,44,82,.84) 0%, rgba(5,20,40,.93) 100%);
  --glass-border-top:rgba(226,250,255,.48);
  --glass-border-side:rgba(145,232,250,.24);
  --glass-border-bottom:rgba(123,226,242,.14);
  --glass-highlight:rgba(226,250,255,.76);
  --glass-shadow:inset 0 1px 0 rgba(255,255,255,.45), inset 0 -1px 2px rgba(4,16,32,.26), 0 14px 32px -10px rgba(4,16,32,.42);
  --glass-shadow-raised:inset 0 1px 0 rgba(255,255,255,.58), inset 0 -1px 2px rgba(4,16,32,.22), 0 20px 44px -10px rgba(4,16,32,.48), 0 0 28px rgba(123,226,242,.26);
  --glass-blur:blur(12px) saturate(170%);

  --btn-primary-bg:linear-gradient(125deg,#FAFDFD 0%,#C8F3FB 100%);
  --btn-primary-ink:#061B36;
  --btn-primary-border:rgba(255,255,255,.9);
  --btn-primary-shadow:0 10px 28px rgba(4,16,32,.26), 0 0 24px rgba(123,226,242,.28);
  --btn-ghost-bg:rgba(226,250,255,.08);
  --btn-ghost-hover:rgba(226,250,255,.18);
  --btn-ghost-border:rgba(210,248,255,.3);

  --input-bg:rgba(5,22,44,.38);
  --input-border:rgba(165,236,252,.3);
  --input-focus:rgba(123,226,242,.78);
  --select-bg:#0D3766;
  --toast-bg:rgba(9,36,68,.9);
  --overlay-bg:rgba(4,16,34,.62);
  --hero-text-shadow:none;
  --fallback-bg:radial-gradient(ellipse 64% 80% at 15% 18%, rgba(30,137,192,.72), transparent 72%), radial-gradient(ellipse 48% 58% at 84% 74%, rgba(232,196,162,.36), transparent 74%), linear-gradient(125deg, #061529 0%, #0E3C6E 54%, #061932 100%);
}

[data-theme="inazuma"] {
  color-scheme: dark;
  --bg:#0C081B;
  --bg-deep:#060410;
  --ink:#FAF6FF;
  --ink-soft:rgba(250,246,255,.92);
  --muted:rgba(232,216,250,.78);
  --muted-dim:rgba(208,186,235,.58);

  --accent:#F2D6B3;
  --accent-bright:#FFF0DB;
  --accent-soft:rgba(223,122,168,.22);
  --accent-glow:rgba(223,122,168,.36);
  --status-ok:#88EDC4;
  --danger:#FF9DC4;

  --glass-bg:linear-gradient(140deg, rgba(247,232,255,.13) 0%, rgba(30,18,62,.26) 100%);
  --glass-bg-hover:linear-gradient(140deg, rgba(247,232,255,.19) 0%, rgba(40,24,78,.34) 100%);
  --glass-bg-strong:linear-gradient(145deg, rgba(32,20,66,.86) 0%, rgba(12,8,27,.94) 100%);
  --glass-border-top:rgba(247,232,255,.44);
  --glass-border-side:rgba(223,170,245,.24);
  --glass-border-bottom:rgba(223,122,168,.16);
  --glass-highlight:rgba(250,235,255,.74);
  --glass-shadow:inset 0 1px 0 rgba(255,245,255,.44), inset 0 -1px 2px rgba(8,4,20,.28), 0 14px 32px -10px rgba(8,4,20,.46);
  --glass-shadow-raised:inset 0 1px 0 rgba(255,245,255,.56), inset 0 -1px 2px rgba(8,4,20,.24), 0 20px 44px -10px rgba(8,4,20,.52), 0 0 28px rgba(223,122,168,.26);
  --glass-blur:blur(12px) saturate(170%);

  --btn-primary-bg:linear-gradient(125deg,#FFF4E6 0%,#F2D6B3 100%);
  --btn-primary-ink:#1A0F36;
  --btn-primary-border:rgba(255,245,232,.88);
  --btn-primary-shadow:0 10px 28px rgba(10,6,24,.32), 0 0 24px rgba(242,214,179,.24);
  --btn-ghost-bg:rgba(247,232,255,.08);
  --btn-ghost-hover:rgba(247,232,255,.17);
  --btn-ghost-border:rgba(242,214,179,.28);

  --input-bg:rgba(14,8,34,.42);
  --input-border:rgba(226,198,255,.28);
  --input-focus:rgba(242,214,179,.76);
  --select-bg:#24164A;
  --toast-bg:rgba(28,16,58,.9);
  --overlay-bg:rgba(8,4,20,.64);
  --hero-text-shadow:none;
  --fallback-bg:radial-gradient(ellipse 64% 80% at 18% 18%, rgba(94,61,168,.7), transparent 72%), radial-gradient(ellipse 50% 60% at 84% 74%, rgba(223,122,168,.42), transparent 74%), linear-gradient(125deg, #0C081B 0%, #25184D 54%, #100B24 100%);
}

:root {
  --surface:rgba(255,255,255,.14);
  --surface-solid:var(--bg);
  --surface-raised:rgba(255,255,255,.18);
  --surface-soft:rgba(255,255,255,.08);
  --gold:var(--accent);
  --gold-bright:var(--accent-bright);
  --gold-deep:var(--accent);
  --teal:var(--accent);
  --teal-dim:var(--accent-glow);
  --line:var(--glass-border-side);
  --line-strong:var(--glass-border-top);
  --shadow:0 20px 50px rgba(6,12,27,.18);
}

html {background:var(--bg);font-synthesis:none;}
html, body.premium, body.premium * {
  font-synthesis:none !important;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
body.premium {
  font-family:var(--font-genshin);
  font-size:14px;
  font-weight:400;
  letter-spacing:-.01em;
  line-height:1.55;
  color:var(--ink);
  background:var(--fallback-bg);
  background-attachment:fixed;
  font-feature-settings:"tnum";
  min-height:100vh;
}
body.premium :is(button,input,textarea,select,option,h1,h2,h3,h4,strong,b,.brand__text,.dash-card__value,.pair-info h2,.timer-clock,.scan-emblem,.char-name,.scan-character strong,.modal-head h2,.fortune-card__back h3,.draw-overlay h2) {
  font-family:var(--font-genshin);
  font-weight:400;
}

#liquid-glass-canvas {
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  z-index:0;
  pointer-events:none;
}

body.premium #ambient-canvas {
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  z-index:0;
  opacity:.72;
  pointer-events:none;
}

body.premium::before {
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0px, rgba(255,255,255,.01) 12px, rgba(0,0,0,.06) 24px, transparent 28px);
  opacity:.55;
}
body.premium[data-webgl="on"]::before {display:none;content:none;}
body.premium::after {content:none;display:none;background:none;}
body.premium .atmosphere {display:none !important;}
body.premium #app {position:relative;z-index:1;}

body.premium h1,
body.premium h2,
body.premium h3 {
  font-family:var(--font-genshin);
  letter-spacing:-.02em;
  line-height:1.18;
  font-weight:400;
  color:var(--ink);
}
body.premium ::selection {background:var(--accent);color:var(--btn-primary-ink);}
body.premium :focus-visible {outline:2px solid var(--accent);outline-offset:4px;}
body.premium .page {width:min(1320px,calc(100% - 88px));padding-bottom:36px;}

/* Unified Gossamer Crystal Topbar & Login Brand */
body.premium .topbar {
  position:sticky;
  top:16px;
  z-index:40;
  width:min(1320px,calc(100% - 72px));
  margin:16px auto 0;
  padding:8px 18px;
  min-height:62px;
  border-radius:999px;
  background:linear-gradient(135deg, rgba(255,255,255,.22) 0%, rgba(226,244,255,.08) 52%, rgba(255,255,255,.18) 100%);
  border:1px solid;
  border-color:rgba(255,255,255,.88) rgba(255,255,255,.52) rgba(120,170,220,.28) rgba(255,255,255,.68);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.94), inset 0 -1px 0 rgba(120,170,220,.22), 0 12px 30px -14px rgba(42,84,136,.16);
  backdrop-filter:blur(6px) saturate(165%);
  -webkit-backdrop-filter:blur(6px) saturate(165%);
}
body.premium .brand__mark {
  width:36px;
  height:36px;
  object-fit:contain;
  filter:drop-shadow(0 2px 6px rgba(130,192,240,.34));
}
body.premium .brand__text {gap:0;line-height:1.05;}
body.premium .brand__text strong,
body.premium .user-chip__meta strong {color:var(--ink);font-weight:400;}
body.premium .brand__text strong {font-size:15px;line-height:1.1;letter-spacing:-.015em;}
body.premium .brand__text small {color:var(--muted);font-size:9.5px;line-height:1.08;letter-spacing:.05em;margin-top:1px;}
body.premium .user-chip__meta small {color:var(--muted);}
body.premium .topbar__right {gap:8px;align-items:center;}
body.premium :is(.nav-btn,.icon-btn,.user-chip,.modal-close) {
  background:rgba(255,255,255,.20);
  border:1px solid rgba(255,255,255,.62);
  color:var(--ink);
  border-radius:999px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.65);
  backdrop-filter:blur(6px) saturate(150%);
  -webkit-backdrop-filter:blur(6px) saturate(150%);
}
body.premium .topbar :is(.nav-btn,.icon-btn,.user-chip) {
  background:rgba(255,255,255,.16);
  border-color:rgba(255,255,255,.58);
}
body.premium .nav-btn {padding:7px 14px;font-size:12.5px;min-height:38px;}
body.premium .icon-btn {width:38px;height:38px;}
body.premium :is(.nav-btn,.icon-btn,.user-chip,.modal-close):hover {
  background:rgba(255,255,255,.46);
  border-color:var(--glass-border-top);
  color:var(--ink);
}
body.premium .topbar .icon-btn[data-action="logout"] {
  color:var(--ink);
  background:rgba(255,255,255,.16);
  border-color:rgba(255,255,255,.58);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.65);
  transition:color .22s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease, transform .22s cubic-bezier(.22,1,.36,1);
}
body.premium .topbar .icon-btn[data-action="logout"]:hover,
body.premium .topbar .icon-btn[data-action="logout"]:focus-visible {
  color:#C22943;
  background:linear-gradient(180deg, rgba(255,232,236,.58) 0%, rgba(252,192,204,.46) 100%);
  border-color:rgba(214,68,92,.66);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.88), 0 6px 16px -4px rgba(196,46,72,.30);
}
body.premium .conn-state {color:var(--muted);font-size:12px;margin-right:4px;}
body.premium .conn-state i {background:var(--status-ok);box-shadow:0 0 8px var(--status-ok);}
body.premium .conn-state.is-off i {background:var(--muted-dim);box-shadow:none;}
body.premium .user-chip {
  display:inline-flex;
  align-items:center;
  gap:7px;
  height:auto;
  min-height:36px;
  margin-left:2px;
  padding:3px 11px 3px 4px;
  text-align:left;
  cursor:pointer;
}
body.premium .user-chip__meta {
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:0;
  line-height:1;
  min-width:0;
}
body.premium .user-chip__meta strong {
  max-width:136px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12.5px;
  line-height:1.08;
  letter-spacing:-.025em;
}
body.premium .user-chip__meta small {
  margin-top:1px;
  font-size:9.5px;
  line-height:1.05;
  letter-spacing:.01em;
  opacity:.82;
  font-variant-numeric:tabular-nums;
}
body.premium .player-avatar {
  display:inline-grid;
  place-items:center;
  width:30px;
  height:30px;
  flex:0 0 30px;
  border-radius:50%;
  object-fit:cover;
  border:1.5px solid rgba(255,255,255,.92);
  box-shadow:0 2px 6px rgba(15,32,61,.12);
  background:var(--btn-ghost-bg);
  color:var(--ink);
}

/* Circulating Border Beam (ported & tuned for pearlescent crystal glass) */
@property --beam-angle {
  syntax:'<angle>';
  initial-value:0deg;
  inherits:false;
}
@keyframes borderBeamSpin {
  to {--beam-angle:360deg;}
}
body.premium .border-beam {
  position:absolute !important;
  inset:0;
  border-radius:inherit;
  padding:1.5px;
  pointer-events:none;
  z-index:3;
  background:conic-gradient(
    from var(--beam-angle),
    transparent 0deg,
    transparent 268deg,
    rgba(244,202,126,.92) 314deg,
    #ffffff 338deg,
    rgba(128,210,250,.88) 354deg,
    transparent 360deg
  );
  -webkit-mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor;
  mask-composite:exclude;
  animation:borderBeamSpin 6.5s linear infinite;
}
body.premium .dash-card > .border-beam {opacity:.28;transition:opacity .32s ease;}
body.premium .dash-card:hover > .border-beam {opacity:.95;}

/* Crystal Translucent Glass Surfaces */
body.premium :is(.login-card,.dash-card,.seat-card,.seat-card.is-drawn,.seat-card.is-empty,.seat-card.is-mine,.timer-panel,.command-bar,.ban-bar,.guest-note,.room-bottom,.login-brand) {
  border-radius:20px;
  background:var(--glass-bg);
  border:1px solid;
  border-color:var(--glass-border-top) var(--glass-border-side) var(--glass-border-bottom) var(--glass-border-side);
  box-shadow:var(--glass-shadow);
  backdrop-filter:var(--glass-blur);
  -webkit-backdrop-filter:var(--glass-blur);
  transition:transform .32s var(--ease), box-shadow .32s var(--ease), border-color .32s var(--ease), background .32s var(--ease);
}
body.premium :is(.login-card,.dash-card,.seat-card,.modal-head,.timer-panel)::before {
  display:none !important;
  content:none !important;
}
body.premium .login-brand {
  padding:10px 18px;
  border-radius:999px;
  background:linear-gradient(135deg, rgba(255,255,255,.22) 0%, rgba(226,244,255,.08) 52%, rgba(255,255,255,.18) 100%);
  backdrop-filter:blur(6px) saturate(165%);
  -webkit-backdrop-filter:blur(6px) saturate(165%);
}
body.premium .dash-card {
  padding:22px 24px 18px;
  min-height:212px;
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
body.premium .dash-card::after {
  display:block;
  content:"";
  position:absolute;
  inset:0;
  width:auto;
  height:auto;
  border:0;
  border-radius:inherit;
  box-shadow:none;
  background:radial-gradient(380px circle at var(--mx,50%) var(--my,20%), rgba(255,255,255,.26), transparent 65%);
  opacity:0;
  transition:opacity .3s ease;
  pointer-events:none;
}
body.premium .dash-card:hover::after,
body.premium .seat-card:hover::after {opacity:1;}
body.premium .dash-card:hover {
  background:var(--glass-bg-hover);
  border-color:var(--glass-border-top);
  box-shadow:var(--glass-shadow-raised);
}
body.premium .login-card {padding:36px;position:relative;overflow:hidden;}
body.premium .login-card::after {border-color:var(--glass-border-top);}
body.premium .login-title {font-size:clamp(50px,6vw,80px);font-weight:400;line-height:1.18;letter-spacing:-.02em;color:var(--ink);text-shadow:var(--hero-text-shadow);}
body.premium .login-title span {color:var(--accent-bright);background:none;-webkit-text-fill-color:var(--accent-bright);font-weight:400;}
body.premium .login-subtitle {color:var(--ink-soft);max-width:500px;line-height:1.85;text-shadow:var(--hero-text-shadow);}
body.premium .login-mark {background:var(--btn-ghost-bg);border-color:var(--glass-border-side);box-shadow:inset 0 1px rgba(255,255,255,.45);}
body.premium .login-mark strong {color:var(--ink);font-weight:400;}
body.premium .login-mark small,
body.premium .login-quote {color:var(--muted);}
body.premium .login-constellation {
  display:inline-flex;
  flex-direction:column;
  gap:12px;
  padding:16px 20px;
  margin:22px 0 20px;
  max-width:440px;
  width:100%;
  border-radius:18px;
  background:linear-gradient(135deg, rgba(255,255,255,.54) 0%, rgba(226,242,255,.32) 100%);
  border:1px solid rgba(255,255,255,.82);
  box-shadow:inset 0 1px 0 #fff, 0 12px 30px -10px rgba(42,84,136,.14);
  backdrop-filter:blur(12px) saturate(155%);
  -webkit-backdrop-filter:blur(12px) saturate(155%);
}
body.premium .login-constellation__stars {display:flex;align-items:center;justify-content:space-between;gap:8px;}
body.premium .const-node {
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:5px 11px;
  border-radius:999px;
  background:rgba(255,255,255,.58);
  border:1px solid rgba(130,175,224,.36);
  box-shadow:inset 0 1px 0 #fff;
  font-family:var(--font-genshin);
}
body.premium .const-node i {font-style:normal;font-size:11px;color:#4A7DB8;line-height:1;}
body.premium .const-node b {font-size:13px;font-weight:400;color:var(--ink);letter-spacing:.03em;}
body.premium .const-node.is-host {
  background:linear-gradient(180deg, rgba(255,252,242,.92) 0%, rgba(252,237,196,.68) 100%);
  border-color:rgba(216,170,76,.62);
  box-shadow:inset 0 1px 0 #fff, 0 4px 12px -4px rgba(202,148,46,.32);
}
body.premium .const-node.is-host i {color:#C58C36;text-shadow:0 0 8px rgba(242,196,92,.65);}
body.premium .const-node.is-host b {color:#7E5312;}
body.premium .const-link {flex:1;height:1px;min-width:14px;background:linear-gradient(90deg, rgba(197,140,54,.35), rgba(116,174,228,.55), rgba(197,140,54,.35));}
body.premium .login-constellation__meta {display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:11.5px;color:var(--muted);letter-spacing:.02em;}
body.premium .login-constellation__meta strong {color:var(--ink);font-weight:400;margin-right:2px;}
body.premium .login-constellation__meta i {width:3px;height:3px;border-radius:50%;background:rgba(197,140,54,.65);}
body.premium .login-quote {border-color:var(--accent);}
body.premium .login-card__head h2 {color:var(--ink);font-weight:400;}
body.premium .login-card__head p,
body.premium .login-perk,
body.premium .login-card__foot {color:var(--muted);}
body.premium .login-perk svg {color:var(--accent);}
body.premium :is(.eyebrow,.micro-label,.slot-label,.modal-kicker,.card-kicker,.uid-field>span,.login-card__head .eyebrow) {color:var(--muted);letter-spacing:.06em;font-size:10px;font-weight:400;}

/* Form Controls & Buttons */
body.premium :is(.input,.textarea,.login-card .input) {
  background:var(--input-bg);
  border:1px solid var(--input-border);
  color:var(--ink);
  box-shadow:inset 0 1px 3px rgba(15,32,61,.08);
  border-radius:12px;
}
body.premium .input::placeholder,
body.premium .textarea::placeholder {color:var(--muted-dim);}
body.premium .input:focus,
body.premium .textarea:focus {
  border-color:var(--input-focus);
  box-shadow:0 0 0 4px var(--accent-soft);
}
body.premium input[type=radio],
body.premium input[type=checkbox],
body.premium progress {accent-color:var(--accent);}
body.premium select,
body.premium option {background:var(--select-bg);color:var(--ink);}

body.premium .btn {border-radius:999px;font-weight:400;position:relative;overflow:hidden;min-height:46px;padding:0 22px;letter-spacing:-.01em;}
body.premium .btn--primary {
  background:var(--btn-primary-bg);
  color:var(--btn-primary-ink);
  border:1px solid var(--btn-primary-border);
  box-shadow:var(--btn-primary-shadow);
  backdrop-filter:blur(12px) saturate(165%);
  -webkit-backdrop-filter:blur(12px) saturate(165%);
  font-weight:400;
}
body.premium .btn--primary::before {
  content:"";
  position:absolute;
  inset:3px;
  border-radius:999px;
  border:1px solid rgba(196,148,64,.48);
  pointer-events:none;
  transition:border-color .22s ease;
}
body.premium .btn--primary svg {
  color:#B67F27;
  filter:drop-shadow(0 0 5px rgba(238,190,94,.52));
  flex-shrink:0;
}
body.premium .btn--primary:hover:not(:disabled) {
  color:var(--btn-primary-ink);
  background:linear-gradient(135deg, rgba(255,253,247,.94) 0%, rgba(238,249,255,.82) 48%, rgba(254,240,204,.92) 100%);
  transform:translateY(-1.5px);
  box-shadow:0 12px 28px -6px rgba(42,84,136,.20), 0 0 24px rgba(244,205,126,.54), inset 0 1.5px 0 #fff;
}
body.premium .btn--primary:hover:not(:disabled)::before {
  border-color:rgba(196,148,64,.82);
}
body.premium .btn--primary::after {
  content:"";
  position:absolute;
  inset:-100% auto -100% -60%;
  width:34%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.68),transparent);
  transform:rotate(24deg);
  animation:button-glint 7.5s ease-in-out infinite;
  pointer-events:none;
}
body.premium .btn--draw {min-height:46px;padding:0 24px;font-size:14.5px;gap:8px;}
body.premium :is(.btn--ghost,.btn--outline,.event-reroll,.char-reroll,.seat-kick) {
  background:var(--btn-ghost-bg);
  color:var(--ink);
  border-color:var(--btn-ghost-border);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}
body.premium :is(.btn--ghost,.btn--outline,.event-reroll,.char-reroll):hover {
  background:var(--btn-ghost-hover);
  color:var(--ink);
  border-color:var(--glass-border-top);
}
body.premium .btn--danger {color:var(--danger);border-color:rgba(206,86,120,.36);background:rgba(255,236,242,.56);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);}

/* Hero Typography & Layout */
body.premium .dashboard {padding-top:20px;}
body.premium .hero {
  grid-template-columns:minmax(0,1.16fr) minmax(320px,.84fr);
  gap:36px;
  min-height:0;
  padding:24px 0 22px;
  align-items:center;
}
body.premium .hero-copy .eyebrow {display:inline-flex;align-items:center;gap:8px;margin-bottom:12px;}
body.premium .hero-copy .eyebrow::before {
  content:"";
  width:7px;
  height:7px;
  background:var(--accent);
  transform:rotate(45deg);
  box-shadow:0 0 10px var(--accent-glow);
}
body.premium .hero-title {
  font-size:clamp(38px,4.1vw,54px);
  font-weight:400;
  line-height:1.16;
  letter-spacing:-.02em;
  color:var(--ink);
  text-shadow:var(--hero-text-shadow);
}
body.premium .hero-title :is(span,em,.gold) {
  font-weight:400;
}
body.premium .hero-title .gold {
  background:linear-gradient(120deg, var(--ink) 0%, var(--accent-bright) 52%, var(--accent) 100%);
  background-clip:text;
  -webkit-background-clip:text;
  color:transparent;
  -webkit-text-fill-color:transparent;
}
body.premium .hero-lede {
  color:var(--ink-soft);
  max-width:520px;
  font-size:13.5px;
  line-height:1.65;
  letter-spacing:-.01em;
  margin-top:12px;
  text-shadow:var(--hero-text-shadow);
}
body.premium .hero-actions {margin-top:20px;gap:12px;}
body.premium .hero-meta {
  margin-top:22px;
  gap:10px;
  flex-wrap:wrap;
  background:none;
  border:0;
}
body.premium .hero-meta span {
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:5px 12px;
  border-radius:999px;
  font-size:12px;
  color:var(--muted);
  background:var(--btn-ghost-bg);
  border:1px solid var(--glass-border-side);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
body.premium .hero-meta i {width:5px;height:5px;border-radius:50%;background:var(--accent);opacity:.9;}

/* Frameless Dynamic 3D Orbiting Starlight Rings + Paimon ESC Orrery */
@keyframes prism-float {0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
@keyframes orrerySpin {to{transform:rotate(360deg);}}
@keyframes auraBreath {
  0%,100% {opacity:.78;transform:scale(.96);}
  50% {opacity:1;transform:scale(1.06);}
}
@keyframes sparkTwinkle {
  0%,100% {opacity:.55;transform:scale(.85);}
  50% {opacity:1;transform:scale(1.22);}
}
body.premium .hero-visual {
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:348px;
  perspective:980px;
}
body.premium .star-orrery {
  position:relative;
  width:344px;
  height:344px;
  display:grid;
  place-items:center;
  transform-style:preserve-3d;
  transform:rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg));
  transition:transform .45s var(--ease);
}
body.premium .star-orrery__aura {
  position:absolute;
  inset:18px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(255,253,242,.74) 0%, rgba(164,220,255,.36) 44%, rgba(246,215,163,.18) 68%, transparent 78%);
  filter:blur(18px);
  animation:auraBreath 6s ease-in-out infinite;
  pointer-events:none;
}
body.premium .star-orrery__halo {
  position:absolute;
  width:296px;
  height:296px;
  border-radius:50%;
  border:1px dashed rgba(255,255,255,.84);
  box-shadow:0 0 28px rgba(132,206,250,.24), inset 0 0 24px rgba(255,255,255,.26);
  animation:orrerySpin 42s linear infinite;
  pointer-events:none;
}
body.premium .halo-spark {
  position:absolute;
  width:12px;
  height:12px;
  background:radial-gradient(circle, #fff 15%, rgba(246,214,142,.92) 55%, transparent 100%);
  clip-path:polygon(50% 0%, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0% 50%, 38% 38%);
  filter:drop-shadow(0 0 8px rgba(255,255,255,.95));
  animation:sparkTwinkle 2.8s ease-in-out infinite;
}
body.premium .halo-spark--1 {top:-6px;left:50%;margin-left:-6px;}
body.premium .halo-spark--2 {right:-6px;top:50%;margin-top:-6px;animation-delay:.7s;}
body.premium .halo-spark--3 {bottom:-6px;left:50%;margin-left:-6px;animation-delay:1.4s;}
body.premium .halo-spark--4 {left:-6px;top:50%;margin-top:-6px;animation-delay:2.1s;}
body.premium .star-orbit {
  position:absolute;
  left:50%;
  top:50%;
  border-radius:50%;
  transform-style:preserve-3d;
  pointer-events:none;
}
body.premium .star-orbit--1 {width:270px;height:270px;margin:-135px 0 0 -135px;transform:rotateX(67deg) rotateY(-24deg);}
body.premium .star-orbit--2 {width:306px;height:306px;margin:-153px 0 0 -153px;transform:rotateX(70deg) rotateY(32deg);}
body.premium .star-orbit--3 {width:232px;height:232px;margin:-116px 0 0 -116px;transform:rotateX(56deg) rotateY(9deg);}
body.premium .star-orbit__track {
  position:absolute;
  inset:0;
  border-radius:50%;
  padding:2px;
  background:conic-gradient(from 0deg, rgba(255,255,255,.96) 0deg, rgba(244,202,126,.88) 46deg, rgba(130,210,255,.52) 118deg, rgba(255,255,255,.16) 240deg, rgba(255,255,255,.88) 360deg);
  -webkit-mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor;
  mask-composite:exclude;
  filter:drop-shadow(0 0 8px rgba(255,255,255,.72));
}
body.premium .star-orbit--1 .star-orbit__track {animation:orrerySpin 10s linear infinite;}
body.premium .star-orbit--2 .star-orbit__track {animation:orrerySpin 14s linear infinite reverse;}
body.premium .star-orbit--3 .star-orbit__track {animation:orrerySpin 18s linear infinite;}
body.premium .star-orbit__sat {
  position:absolute;
  inset:0;
  border-radius:50%;
}
body.premium .star-orbit--1 .star-orbit__sat {animation:orrerySpin 10s linear infinite;}
body.premium .star-orbit--2 .star-orbit__sat {animation:orrerySpin 14s linear infinite reverse;}
body.premium .star-orbit--2 .star-orbit__sat--b {animation:orrerySpin 14s linear infinite reverse;animation-delay:-7s;}
body.premium .star-orbit--3 .star-orbit__sat {animation:orrerySpin 18s linear infinite;}
body.premium .star-orbit__sat::before {
  content:"";
  position:absolute;
  top:-5px;
  left:50%;
  width:10px;
  height:10px;
  margin-left:-5px;
  border-radius:50%;
  background:radial-gradient(circle, #ffffff 18%, #FFEAB8 60%, rgba(244,202,126,0) 100%);
  box-shadow:0 0 10px #fff, 0 0 18px rgba(244,202,126,.95), 0 0 28px rgba(130,210,255,.78);
}
@keyframes paimonGraceFloat {
  0%,100% {transform:translate3d(0,-5px,0) rotate(-1.4deg);}
  50% {transform:translate3d(0,5px,0) rotate(1.4deg);}
}
@keyframes coreGraceFloat {
  0%,100% {transform:translate3d(0,-3px,0);}
  50% {transform:translate3d(0,3px,0);}
}
body.premium .star-orrery__core {
  position:relative;
  z-index:4;
  width:120px;
  height:120px;
  border-radius:50%;
  display:grid;
  place-items:center;
  animation:coreGraceFloat 5.2s ease-in-out infinite;
  will-change:transform;
}
body.premium .star-orrery__lens {
  position:absolute;
  inset:0;
  border-radius:50%;
  overflow:hidden;
  background:radial-gradient(circle at 32% 28%, rgba(255,255,255,.84), rgba(212,238,255,.32) 60%, rgba(255,255,255,.14));
  border:1.5px solid rgba(255,255,255,.95);
  backdrop-filter:blur(8px) saturate(165%);
  -webkit-backdrop-filter:blur(8px) saturate(165%);
  box-shadow:inset 0 1.5px 0 #fff, inset 0 -6px 14px rgba(130,192,240,.24), 0 14px 36px rgba(42,84,136,.18), 0 0 36px rgba(246,215,163,.48);
}
body.premium .star-orrery__paimon {
  position:relative;
  z-index:2;
  width:78px;
  height:78px;
  object-fit:contain;
  filter:drop-shadow(0 6px 14px rgba(15,32,61,.22));
  animation:paimonGraceFloat 4.8s ease-in-out infinite;
  will-change:transform;
}
body.premium .star-orrery__caption {
  position:absolute;
  bottom:-2px;
  left:50%;
  transform:translateX(-50%);
  margin:0;
  padding:5px 14px;
  white-space:nowrap;
  border-radius:999px;
  background:rgba(255,255,255,.46);
  border:1px solid rgba(255,255,255,.86);
  backdrop-filter:blur(6px) saturate(150%);
  -webkit-backdrop-filter:blur(6px) saturate(150%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9), 0 8px 20px -8px rgba(42,84,136,.16);
  font-size:11px;
  letter-spacing:.14em;
  color:var(--muted);
}

/* Dashboard Grid & Refined Cards */
body.premium .dash-grid,
body.premium .seats-grid {gap:20px;margin-top:6px;}
body.premium .dash-card__head {display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;}
body.premium .dash-card__icon {
  width:36px;
  height:36px;
  border-radius:11px;
  border:1px solid var(--glass-border-top);
  color:var(--accent-bright);
  background:var(--btn-ghost-bg);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.55);
}
body.premium .dash-card__index {color:var(--muted-dim);font-size:10px;letter-spacing:.08em;font-weight:400;}
body.premium .dash-card h3 {color:var(--ink);font-size:17px;font-weight:400;margin-bottom:4px;letter-spacing:-.02em;line-height:1.18;}
body.premium .dash-card p,
body.premium .library-hint {color:var(--muted);font-size:12.5px;line-height:1.55;letter-spacing:-.01em;margin:0;}
body.premium .dash-card__meta {
  margin-top:auto;
  padding-top:12px;
  border-top:1px solid var(--glass-border-side);
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
}
body.premium .big-number {color:var(--ink);font-size:32px;font-weight:400;line-height:1.05;letter-spacing:-.02em;}
body.premium .big-number small {color:var(--muted);font-size:12.5px;font-weight:400;margin-left:4px;}
body.premium .mini-progress {background:rgba(255,255,255,.35);height:2.5px;margin-top:8px;border-radius:999px;overflow:hidden;}
body.premium .mini-progress i {background:var(--accent);box-shadow:0 0 10px var(--accent-glow);}
body.premium .card-link {
  color:var(--ink);
  font-size:12.5px;
  font-weight:400;
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:5px 11px;
  border-radius:999px;
  background:var(--btn-ghost-bg);
  border:1px solid var(--glass-border-side);
  transition:background .2s, transform .2s;
}
body.premium .dash-card:hover .card-link {background:var(--btn-ghost-hover);transform:translateX(2px);}
body.premium .rule-mini,
body.premium .modal-body .rule-mini,
body.premium .dash-card .rule-mini {background:none;border:0;border-radius:0;box-shadow:none;backdrop-filter:none;padding:0;display:flex;flex-direction:column;gap:2px;margin:2px 0 8px;}
body.premium .rule-mini>span,
body.premium .modal-body .rule-mini>span,
body.premium .dash-card .rule-mini>span {background:none;border:0;box-shadow:none;border-radius:0;color:var(--muted);padding:4px 0;line-height:1.5;font-size:13.5px;display:flex;align-items:center;gap:9px;}
body.premium .rule-mini b,
body.premium .modal-body .rule-mini b {
  width:20px;
  height:20px;
  border-radius:50%;
  display:inline-grid;
  place-items:center;
  font-size:11px;
  color:var(--accent-bright);
  border:1px solid var(--accent);
  background:var(--accent-soft);
  font-weight:400;
  flex-shrink:0;
}
body.premium .dash-footer {
  border-color:var(--glass-border-side);
  color:var(--ink-soft);
  text-shadow:var(--hero-text-shadow);
  margin-top:22px;
  padding-top:16px;
  font-size:12px;
}

/* Room & Seats */
body.premium .room-heading h1 {color:var(--ink);font-weight:400;line-height:1.12;letter-spacing:-.02em;}
body.premium .room-heading h1 em,
body.premium .round-block strong {
  font-weight:400;
  background:linear-gradient(155deg, #DEA73E 0%, #B77D1F 54%, #825512 100%);
  background-clip:text;
  -webkit-background-clip:text;
  color:transparent;
  -webkit-text-fill-color:transparent;
  filter:drop-shadow(0 2px 9px rgba(214,158,54,.28));
}
body.premium :is(.room-heading__meta,.live-status,.timer-label,.time-label,.timer-panel small,.status-label,.round-block small) {color:var(--muted);}
body.premium .room-code-chip {background:var(--btn-ghost-bg);border-color:var(--glass-border-side);color:var(--ink);}
body.premium .room-code-chip button {color:var(--ink);background:var(--btn-ghost-hover);}
body.premium .live-status i {background:var(--status-ok);box-shadow:0 0 8px var(--status-ok);}
body.premium .live-status.is-paused i {background:var(--danger);box-shadow:none;}
body.premium .timer-panel .clock,
body.premium .timer-clock {
  font-weight:400;
  background:linear-gradient(155deg, #274A7C 0%, #3E6FA9 52%, #5A90C8 100%);
  background-clip:text;
  -webkit-background-clip:text;
  color:transparent;
  -webkit-text-fill-color:transparent;
  filter:drop-shadow(0 2px 8px rgba(62,111,169,.20));
}
body.premium .room-hero {
  grid-template-columns:minmax(260px,.72fr) minmax(600px,1.28fr);
  align-items:center;
  gap:24px;
}
body.premium .timer-panel {
  grid-template-columns:96px minmax(180px,1.1fr) minmax(146px,.95fr) auto;
  gap:18px;
  min-height:122px;
  padding:18px 26px;
  align-items:center;
}
body.premium .round-block {
  padding-right:14px;
  border-color:rgba(206,162,82,.30);
  gap:3px;
}
body.premium .timer-panel .round-block strong {font-size:44px;}
body.premium .timer-main {
  min-width:0;
  padding:0 4px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:3px;
}
body.premium .timer-kicker {
  color:var(--muted);
  font-size:10px;
  letter-spacing:.12em;
  line-height:1.2;
}
body.premium .timer-main .clock {
  margin-top:0;
  font-size:34px;
  line-height:1.12;
  letter-spacing:.03em;
}
body.premium .timer-sub {
  color:#9A742B;
  font-size:10px;
  letter-spacing:.04em;
  line-height:1.25;
  white-space:nowrap;
}
body.premium .timer-state-block {
  align-self:stretch;
  justify-content:center;
  align-items:center;
  text-align:center;
  gap:5px;
  padding-left:16px;
  border-left:1px solid rgba(130,175,224,.30);
}
body.premium .timer-state-kicker {
  color:var(--muted);
  font-size:10px;
  letter-spacing:.12em;
  line-height:1.2;
}
body.premium .timer-state-pill {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:6px 15px;
  min-height:36px;
  border-radius:999px;
  border:1px solid rgba(72,128,206,.28);
  background:rgba(255,255,255,.52);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.92);
  transition:background .25s ease, border-color .25s ease;
}
body.premium .timer-state-dot {
  width:8px;
  height:8px;
  border-radius:50%;
  background:#4B7EC4;
  flex-shrink:0;
}
body.premium .timer-panel .timer-state-block strong {
  color:#2B4F82;
  font-size:18px;
  line-height:1.1;
  letter-spacing:.03em;
  white-space:nowrap;
}
body.premium .timer-state-note {
  color:var(--muted);
  font-size:10px;
  letter-spacing:.04em;
  white-space:nowrap;
}
body.premium .timer-panel[data-status="playing"] .timer-state-pill {
  background:rgba(16,185,129,.13);
  border-color:rgba(16,185,129,.38);
}
body.premium .timer-panel[data-status="playing"] .timer-state-dot {
  background:#10B981;
  box-shadow:0 0 8px rgba(16,185,129,.65);
}
body.premium .timer-panel[data-status="playing"] .timer-state-block strong {color:#0D6B53;}
body.premium .timer-panel[data-status="paused"] .timer-state-pill {
  background:rgba(217,152,42,.14);
  border-color:rgba(217,152,42,.40);
}
body.premium .timer-panel[data-status="paused"] .timer-state-dot {background:#D98A1A;}
body.premium .timer-panel[data-status="paused"] .timer-state-block strong {color:#9A5D0A;}
body.premium .timer-leave-dock {
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  align-self:stretch;
  padding:0 4px;
}
body.premium .timer-leave-dock::before {
  content:'';
  position:absolute;
  left:-9px;
  top:10%;
  bottom:10%;
  width:1px;
  background:rgba(130,175,224,.30);
}
body.premium .btn--leave-room {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:40px;
  height:40px;
  padding:0 18px;
  border-radius:999px;
  background:linear-gradient(180deg, rgba(255,244,246,.96) 0%, rgba(253,219,225,.88) 100%);
  border:1.5px solid rgba(214,68,92,.58);
  color:#B4233C;
  font-size:13.5px;
  letter-spacing:.02em;
  line-height:1;
  white-space:nowrap;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.98), inset 0 0 0 2.5px rgba(255,255,255,.26), 0 8px 20px -5px rgba(196,46,72,.28);
  transition:transform .2s cubic-bezier(.22,1,.36,1), box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
@media(hover:hover) and (pointer:fine) {
  body.premium .btn--leave-room:hover {
    transform:translateY(-1px);
    border-color:rgba(196,46,72,.86);
    background:linear-gradient(180deg, rgba(255,248,249,1) 0%, rgba(252,202,212,.96) 100%);
    box-shadow:inset 0 1px 0 #fff, inset 0 0 0 2.5px rgba(255,255,255,.35), 0 10px 22px -4px rgba(196,46,72,.36);
  }
}
body.premium :is(.status-text,.timer-panel b,.timer-panel strong,.command-bar h3,.command-bar strong,.ban-bar__copy strong) {color:var(--ink);}
body.premium :is(.command-copy strong,.ban-bar__copy strong) {letter-spacing:-.015em;line-height:1.15;}
body.premium :is(.command-copy small,.ban-bar__copy small) {font-size:11px;margin-top:2px;letter-spacing:0;line-height:1.2;}
body.premium :is(.ban-bar__copy small,.command-bar small,.command-bar__copy p) {color:var(--muted);}
body.premium .ban-bar {display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;}
body.premium .ban-bar__kicker {
  width:40px;
  height:32px;
  border-radius:10px;
  font-size:10px;
  letter-spacing:.10em;
  color:#546F96;
  background:rgba(255,255,255,.55);
  border:1px solid rgba(150,185,224,.38);
}
body.premium .ban-bar__list {flex:1 1 auto;justify-content:flex-end;gap:8px;}
body.premium .ban-empty {
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:5px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.44);
  border:1px dashed rgba(130,170,214,.46);
  color:var(--muted);
  font-size:11.5px;
  letter-spacing:.04em;
  line-height:1.2;
  white-space:nowrap;
}
body.premium .ban-empty i {font-style:normal;font-size:10px;color:#C49236;}
body.premium .ban-chip {color:var(--ink);background:var(--btn-ghost-bg);border-color:var(--glass-border-side);}
body.premium .ban-chip__seat {color:var(--ink);background:var(--btn-ghost-hover);}
body.premium .duo-connection {
  height:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  margin:-2px 0 14px;
}
body.premium .duo-connection__wing {
  flex:1;
  max-width:240px;
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(130,185,235,.55) 70%, rgba(200,152,68,.48));
}
body.premium .duo-connection__wing--r {
  background:linear-gradient(270deg, transparent, rgba(130,185,235,.55) 70%, rgba(200,152,68,.48));
}
body.premium .duo-connection__rail {
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:4px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.32);
  border:1px solid rgba(255,255,255,.72);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.85), 0 4px 12px rgba(42,84,136,.06);
}
body.premium .duo-connection .star-node {
  display:inline-grid;
  place-items:center;
  width:13px;
  height:13px;
  color:rgba(104,134,166,.52);
}
body.premium .duo-connection .star-node.is-lit {
  color:#C58C36;
  filter:drop-shadow(0 0 4px rgba(240,192,102,.65));
}
body.premium .duo-connection .star-link {
  width:16px;
  height:1px;
  background:linear-gradient(90deg, rgba(197,140,54,.25), rgba(116,174,228,.55), rgba(197,140,54,.25));
}
body.premium .command-bar {display:flex;flex-wrap:wrap;align-items:center;gap:14px;}
body.premium .seats-grid {perspective:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));}
body.premium .seats-grid[data-seats="3"] {grid-template-columns:repeat(3,minmax(0,1fr));}
body.premium .seats-grid[data-seats="4"] {grid-template-columns:repeat(2,minmax(0,1fr));}
body.premium .seat-picker[data-count="3"] {grid-template-columns:repeat(3,minmax(0,1fr));}
body.premium .seat-picker[data-count="4"] {grid-template-columns:repeat(4,minmax(0,1fr));}
body.premium .seat-card {min-height:370px;border-radius:20px;isolation:isolate;position:relative;overflow:hidden;}
body.premium .seat-card.is-mine {background:var(--glass-bg-hover);border-color:var(--glass-border-top);box-shadow:var(--glass-shadow-raised);}
body.premium .seat-card::after {background:radial-gradient(ellipse at var(--mx,40%) var(--my,10%),rgba(255,255,255,.18),transparent 65%);opacity:0;transition:opacity .3s ease;}
body.premium .seat-card__head {background:rgba(255,255,255,.06);border-bottom-color:var(--glass-border-bottom);}
body.premium .seat-index {background:none;border-color:var(--glass-border-side);color:var(--ink);}
body.premium .seat-player {gap:1px;}
body.premium .seat-index span,
body.premium .seat-player strong {color:var(--ink);font-weight:400;}
body.premium .seat-player strong {font-size:13.5px;line-height:1.12;letter-spacing:-.02em;}
body.premium .seat-player small,
body.premium .seat-index small {color:var(--muted-dim);}
body.premium .seat-player small {font-size:10px;line-height:1.1;letter-spacing:.01em;font-variant-numeric:tabular-nums;}
body.premium .seat-player__line strong {overflow-wrap:anywhere;}
body.premium .role-badge {color:var(--ink);background:var(--btn-ghost-bg);border-color:var(--glass-border-side);}
body.premium .role-badge--me {color:var(--ink);background:var(--accent-soft);border-color:var(--accent);}
body.premium .seat-card__body {grid-template-columns:minmax(0,1fr);background:none;}
body.premium .character-pair {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:20px;background:none;border-color:var(--glass-border-bottom);}
body.premium .character-pair.is-single {grid-template-columns:minmax(0,1fr);}
body.premium .pair-slot {
  position:relative;
  display:flex;
  align-items:center;
  gap:14px;
  padding:16px 14px;
  min-width:0;
  border-radius:16px;
  background:var(--glass-bg);
  border:1px solid;
  border-color:var(--glass-border-top) var(--glass-border-side) var(--glass-border-bottom) var(--glass-border-side);
  box-shadow:var(--glass-shadow);
  backdrop-filter:var(--glass-blur);
  -webkit-backdrop-filter:var(--glass-blur);
}
body.premium .pair-portrait {
  width:68px;
  height:68px;
  flex:0 0 68px;
  border-radius:14px;
  overflow:hidden;
  border:1.5px solid rgba(255,255,255,.92);
  background:linear-gradient(145deg, rgba(255,255,255,.78), rgba(228,242,255,.46));
  box-shadow:0 4px 12px rgba(42,84,136,.08);
}
body.premium .pair-portrait .character-avatar {width:100%;height:100%;border:0;border-radius:0;background:transparent;}
body.premium .character-avatar img {transform:none;object-fit:contain;object-position:center bottom;}
body.premium .pair-portrait img {width:100%;height:100%;object-fit:contain;object-position:center bottom;transform:none;}
body.premium .pair-info {min-width:0;display:flex;flex-direction:column;justify-content:center;padding-top:0;}
body.premium .slot-region {display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:400;color:var(--muted);letter-spacing:.04em;line-height:1.1;margin-bottom:2px;}
body.premium .region-icon {width:18px;height:18px;object-fit:contain;flex-shrink:0;opacity:1;filter:drop-shadow(0 1px 2px var(--region-shadow, rgba(42,74,118,.32)));}
body.premium .region-star {font-size:12px;color:var(--region-color, #C49236);line-height:1;}
body.premium .pair-info h2 {font-family:var(--font-genshin);font-size:19px;font-weight:400;line-height:1.15;letter-spacing:-.02em;color:var(--ink);margin:0 0 4px;overflow-wrap:anywhere;}
body.premium .pair-info small {font-size:11px;letter-spacing:.01em;color:var(--muted);display:inline-flex;align-items:center;gap:6px;}
body.premium .pair-el-icon {width:16px;height:16px;object-fit:contain;background:none;border:0;border-radius:0;box-shadow:none;flex-shrink:0;display:block;}
body.premium .pair-el-star {font-size:13px;color:#C49236;line-height:1;}
body.premium .rarity-stars {letter-spacing:.04em;font-size:11.5px;line-height:1;}
body.premium .rarity-stars.is-rarity-5 {color:#E2A024;text-shadow:0 0 7px rgba(244,196,86,.52);}
body.premium .rarity-stars.is-rarity-4 {color:#8D62DC;text-shadow:0 0 6px rgba(154,114,228,.35);}
body.premium .pair-slot .char-reroll {position:absolute;right:8px;top:8px;width:29px;height:29px;border-radius:50%;}
body.premium .character-avatar {background:var(--btn-ghost-bg);border-color:var(--glass-border-side);}
body.premium .event-pane {background:none;border-top:1px solid var(--glass-border-bottom);}
body.premium .event-title-row h3 {color:var(--ink);}
body.premium .event-desc {color:var(--ink-soft);}
body.premium :is(.status-bar,.tags,.event-head,.history-event,.library-summary,.library-footer) {border-color:var(--glass-border-bottom);}
body.premium .tag {color:var(--ink);background:var(--btn-ghost-bg);border-color:var(--glass-border-side);}
body.premium .tag--permanent {color:var(--ink);background:var(--accent-soft);border-color:var(--accent);}
body.premium .room-bottom {color:var(--muted);}
body.premium .room-bottom__left svg {color:var(--accent);}
body.premium .legend-dot--permanent {background:var(--accent);box-shadow:0 0 6px var(--accent-glow);}
body.premium .legend-dot--temporary {background:var(--ink);box-shadow:0 0 6px var(--glass-border-top);}

/* Modals, Character Library & Overlay */
body.premium .modal-layer {background:rgba(218,236,252,.90);backdrop-filter:none;-webkit-backdrop-filter:none;}
body.premium.modal-open :is(.border-beam,.star-orrery__orbit,.star-orrery__core,.star-orrery__paimon,.star-orrery__aura,.atmosphere::before,.atmosphere::after) {animation-play-state:paused !important;}
body.premium.modal-open:not(.draw-open) :is(.topbar,.hero-card,.dash-card,.user-chip,.star-orrery__lens,.star-orrery__caption) {backdrop-filter:none;-webkit-backdrop-filter:none;}
body.premium .modal-panel {
  position:relative;
  border-radius:24px;
  background:var(--glass-bg-strong);
  border:1px solid;
  border-color:var(--glass-border-top) var(--glass-border-side) var(--glass-border-bottom) var(--glass-border-side);
  box-shadow:var(--glass-shadow-raised);
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
body.premium .modal-body {
  will-change:scroll-position;
  overscroll-behavior:contain;
  transform:translateZ(0);
  contain:layout paint;
}
body.premium .modal-head {background:none;border-color:var(--glass-border-bottom);}
body.premium .modal-head h2 {color:var(--ink);font-size:22px;font-weight:400;}
body.premium .modal-head p,
body.premium .form-hint,
body.premium .field-label {color:var(--muted);}
body.premium .modal-open .toast-root,
body.premium.modal-open .toast-root {opacity:0;pointer-events:none;}
body.premium .library-footer {background:var(--glass-bg-strong);color:var(--muted);border-color:var(--glass-border-side);box-shadow:none;}
body.premium .library-summary {background:none;}

/* Refined 5★ Gold vs 4★ Amethyst Character Gallery */
body.premium .char-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(176px,1fr));
  gap:12px;
}
body.premium .char-tile {
  position:relative;
  display:flex;
  align-items:center;
  gap:12px;
  padding:11px 12px;
  min-height:76px;
  contain:layout style paint;
  content-visibility:auto;
  contain-intrinsic-size:auto 76px;
  border-radius:16px;
  background:rgba(255,255,255,.68);
  border:1px solid rgba(116,164,210,.26);
  box-shadow:0 2px 8px rgba(42,84,136,.05);
  transition:transform .16s var(--ease), border-color .16s var(--ease);
}
body.premium .char-tile.is-rarity-5 {
  border-top:2px solid rgba(235,184,84,.72);
}
body.premium .char-tile.is-rarity-4 {
  border-top:2px solid rgba(154,118,224,.62);
}
body.premium .char-tile:hover {
  transform:translateY(-2px);
  background:rgba(255,255,255,.9);
  border-color:rgba(116,164,210,.5);
}
body.premium .char-tile.is-rarity-5.is-owned {
  background:linear-gradient(135deg, rgba(255,248,232,.92), rgba(252,238,204,.74));
  border-color:rgba(209,147,42,.72);
  box-shadow:0 4px 12px rgba(209,147,42,.14);
}
body.premium .char-tile.is-rarity-4.is-owned {
  background:linear-gradient(135deg, rgba(247,242,255,.92), rgba(232,220,252,.76));
  border-color:rgba(138,98,214,.68);
  box-shadow:0 4px 12px rgba(138,98,214,.12);
}
body.premium .char-tile__portrait {
  position:relative;
  width:52px;
  height:52px;
  flex:0 0 52px;
}
body.premium .char-tile__portrait .character-avatar {
  width:100%;
  height:100%;
  border-radius:14px;
  border:1.5px solid rgba(255,255,255,.86);
  box-shadow:none;
  transition:opacity .18s ease, transform .18s ease;
}
body.premium .char-tile.is-rarity-5 .char-tile__portrait .character-avatar {
  background:radial-gradient(circle at 35% 30%, #FFF2D0, #DFB062 95%);
  border-color:rgba(235,184,84,.72);
}
body.premium .char-tile.is-rarity-4 .char-tile__portrait .character-avatar {
  background:radial-gradient(circle at 35% 30%, #EFE6FF, #A285DE 95%);
  border-color:rgba(154,118,224,.64);
}
body.premium .char-tile:not(.is-owned) .char-tile__portrait .character-avatar {
  filter:none;
  opacity:.54;
}
body.premium .char-tile__info {
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:5px;
  text-align:left;
}
body.premium .char-name {
  color:var(--ink);
  font-size:13.5px;
  font-weight:400;
  line-height:1.18;
  letter-spacing:-.015em;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
body.premium .char-meta {display:flex;align-items:center;gap:6px;flex-wrap:wrap;}
body.premium .char-element {
  width:24px;
  height:24px;
  flex:0 0 24px;
  padding:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  color:var(--el);
  background:color-mix(in srgb, var(--el) 14%, rgba(255,255,255,.72));
  border:1px solid color-mix(in srgb, var(--el) 32%, rgba(255,255,255,.82));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.85);
}
body.premium .el-icon {
  width:14px;
  height:14px;
  display:block;
  object-fit:contain;
}
body.premium .el-fallback {
  font-size:10px;
  line-height:1;
}
body.premium .char-rarity {
  display:inline-flex;
  align-items:center;
  gap:3px;
  padding:2px 8px;
  border-radius:999px;
  font-size:10.5px;
  font-weight:400;
  letter-spacing:.03em;
}
body.premium .char-rarity--5 {
  color:#B8760E;
  background:linear-gradient(135deg, rgba(250,218,142,.48), rgba(235,180,72,.26));
  border:1px solid rgba(218,158,46,.50);
}
body.premium .char-rarity--5 svg {color:#E2A024;}
body.premium .char-rarity--4 {
  color:#5C3A9E;
  background:linear-gradient(135deg, rgba(186,158,242,.34), rgba(146,112,216,.18));
  border:1px solid rgba(146,112,216,.38);
}
body.premium .char-tile__portrait .char-check {
  position:absolute;
  right:-4px;
  bottom:-4px;
  z-index:2;
  width:20px;
  height:20px;
  border-radius:50%;
  display:grid;
  place-items:center;
  color:transparent;
  background:linear-gradient(135deg, rgba(255,255,255,.78), rgba(196,228,250,.54));
  border:1.5px solid rgba(255,255,255,.92);
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.94), 0 2px 6px rgba(42,84,136,.16);
}
body.premium .char-tile.is-owned .char-tile__portrait .char-check {
  background:linear-gradient(135deg, rgba(124,186,238,.92), rgba(74,142,208,.9));
  color:#FFFDF8;
  border-color:#FFF;
}
body.premium .char-tile.is-rarity-5.is-owned .char-tile__portrait .char-check {
  background:linear-gradient(135deg, #E8B14A, #B87917);
  color:#FFFDF8;
  border-color:#FFF;
}
body.premium .char-tile.is-rarity-4.is-owned .char-tile__portrait .char-check {
  background:linear-gradient(135deg, #9872E6, #6A42B8);
  color:#FFFDF8;
  border-color:#FFF;
}
body.premium .element-pill {display:inline-flex;align-items:center;gap:5px;background:var(--btn-ghost-bg);color:var(--muted);border-color:var(--glass-border-side);}
body.premium .element-pill.is-active {color:var(--ink);background:var(--accent-soft);border-color:var(--accent);}
body.premium :is(.event-row,.history-round,.history-seat,.history-round__head,.history-seat__head,.history-log-wrap,.history-log,.seat-choice,.radio-card,.modal-note,.guide-step b) {background:var(--btn-ghost-bg);border-color:var(--glass-border-side);}
body.premium .event-row :is(strong,h3),
body.premium .history-char strong,
body.premium .history-event strong,
body.premium .guide-step h3 {color:var(--ink);}
body.premium :is(.history-event p,.guide-step p,.history-char small,.history-log__detail,.history-seat__uid,.history-log time,.seat-choice small) {color:var(--muted);}
body.premium .history-log__tag,
body.premium .history-reroll {color:var(--ink);background:var(--btn-ghost-bg);border-color:var(--glass-border-side);}
body.premium .seat-choice.is-selected {color:var(--ink);background:var(--accent-soft);border-color:var(--accent);}
body.premium .profile-fields {display:flex;align-items:center;gap:22px;margin-bottom:22px;}
body.premium .profile-fields .field {flex:1;min-width:0;}
body.premium .profile-preview .player-avatar {width:80px;height:80px;border-radius:22px;}
body.premium .profile-avatar-grid {display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:10px;max-height:340px;overflow-y:auto;padding:12px 4px 16px;margin:8px 0 14px;}
body.premium .profile-avatar-option {border:1px solid var(--glass-border-side);background:var(--btn-ghost-bg);border-radius:12px;overflow:hidden;padding:0;cursor:pointer;min-width:0;color:var(--muted);font:inherit;}
body.premium .profile-avatar-option img {display:block;width:100%;aspect-ratio:1;object-fit:cover;}
body.premium .profile-avatar-option span {display:block;padding:5px 3px;font-size:12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}
body.premium .profile-avatar-option.is-selected {border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft);background:var(--accent-soft);color:var(--ink);}
body.premium :is(.scan-intro h3,.scan-character strong,.scan-drop strong,.scan-counts b) {color:var(--ink);}
body.premium :is(.scan-intro p,.scan-privacy,.scan-drop span,.scan-progress span,.scan-counts,.scan-row-head,.scan-verdict) {color:var(--muted);}
body.premium .scan-emblem {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:1px;
  flex:0 0 68px;
  width:68px;
  height:68px;
  font-family:var(--font-genshin);
  font-size:23px;
  font-weight:400;
  line-height:1;
  letter-spacing:-.02em;
  color:var(--ink);
  background:linear-gradient(135deg, rgba(255,255,255,.64), rgba(212,238,255,.32));
  border:1px solid rgba(255,255,255,.92);
  box-shadow:inset 0 1px 0 #fff, 0 8px 20px -8px rgba(42,84,136,.18);
}
body.premium .scan-emblem span {
  position:static;
  top:auto;
  right:auto;
  font-size:15px;
  line-height:1;
  transform:translateY(-0.22em);
  color:var(--accent);
}
body.premium .scan-drop {background:var(--btn-ghost-bg);border-color:var(--glass-border-top);}
body.premium .scan-message,
body.premium .scan-verdict.is-unknown {color:var(--danger);}
body.premium .scan-row,
body.premium .scan-row-head,
body.premium .scan-counts {border-color:var(--glass-border-bottom);}
body.premium .scan-row .scan-level {background:var(--btn-ghost-bg);color:var(--ink);border-color:var(--glass-border-side);}
body.premium .toast {
  background:linear-gradient(135deg, rgba(255,255,255,.54) 0%, rgba(226,244,255,.40) 55%, rgba(255,248,234,.50) 100%);
  backdrop-filter:blur(14px) saturate(165%);
  -webkit-backdrop-filter:blur(14px) saturate(165%);
  border:1px solid rgba(255,255,255,.86);
  border-radius:999px;
  padding:9px 18px;
  font-size:12.5px;
  letter-spacing:-.01em;
  color:var(--ink);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.94), 0 10px 26px -8px rgba(42,84,136,.18);
}
body.premium .toast svg {color:#B67F27;}
body.premium .toast.is-error svg {color:var(--danger);}

/* Draw Ritual Overlay (GPU 60fps, Zero Banding) */
@keyframes ritualRingSpin {to{transform:rotate(360deg);}}
@keyframes ritualGyroSpin {
  0% {transform:rotateX(66deg) rotateY(18deg) rotateZ(0deg);}
  100% {transform:rotateX(66deg) rotateY(18deg) rotateZ(360deg);}
}
@keyframes ritualPulseRipple {
  0% {transform:scale(.92);opacity:0;}
  22% {opacity:.52;}
  100% {transform:scale(1.66);opacity:0;}
}
@keyframes sheenSweep {
  0% {transform:translateX(-140%) skewX(-18deg);opacity:0;}
  20% {opacity:.75;}
  100% {transform:translateX(260%) skewX(-18deg);opacity:0;}
}
body.premium .draw-overlay {
  background:radial-gradient(ellipse 90% 80% at 50% 34%, rgba(20,42,82,.62) 0%, rgba(12,26,54,.54) 55%, rgba(8,18,40,.48) 100%);
  backdrop-filter:blur(10px) saturate(145%);
  -webkit-backdrop-filter:blur(10px) saturate(145%);
  will-change:opacity;
  transition:background .45s cubic-bezier(.22,1,.36,1), opacity .20s cubic-bezier(.22,1,.36,1);
}
body.premium .draw-overlay.is-leaving {opacity:0;pointer-events:none;}
body.premium .draw-overlay[data-phase="gather"] h2 {color:#FFF7E4;text-shadow:0 0 24px rgba(248,205,112,.45);}
body.premium .draw-overlay[data-phase="gather"] :is(.draw-message,.draw-stage) {color:rgba(222,236,255,.84);}
body.premium .draw-overlay[data-phase="gather"] .ritual-caption {color:#F5CC74;}
body.premium .draw-overlay[data-phase="gather"] .seal-ritual {
  background:radial-gradient(circle at 35% 30%, rgba(255,250,235,.92), rgba(164,206,255,.36) 72%);
  box-shadow:0 0 38px rgba(246,204,114,.55), 0 0 72px rgba(84,156,238,.35);
}
@keyframes goldenSealBloom {
  0% {box-shadow:inset 0 1px 0 #fff, 0 12px 28px rgba(42,84,136,.14), 0 0 24px rgba(246,215,163,.42);}
  40% {box-shadow:inset 0 2px 0 #fff, 0 0 0 6px rgba(248,205,112,.38), 0 0 62px rgba(244,196,92,.85), 0 16px 36px rgba(182,127,39,.28);}
  100% {box-shadow:inset 0 1.5px 0 #fff, 0 0 0 2px rgba(244,196,92,.36), 0 12px 32px rgba(42,84,136,.16), 0 0 40px rgba(246,215,163,.68);}
}
body.premium .draw-overlay[data-golden="true"] {
  background:radial-gradient(ellipse 92% 78% at 50% 26%, rgba(255,250,232,.68) 0%, rgba(252,239,204,.56) 44%, rgba(218,238,252,.52) 100%);
  backdrop-filter:blur(10px) saturate(145%);
  -webkit-backdrop-filter:blur(10px) saturate(145%);
}
body.premium .draw-overlay[data-golden="true"] h2 {
  color:#7E5312;
  text-shadow:0 0 18px rgba(244,198,92,.45);
}
body.premium .draw-overlay[data-golden="true"] :is(.draw-message,.draw-stage) {color:var(--ink-soft);}
body.premium .draw-overlay[data-golden="true"] .seal-ritual {
  border-color:rgba(248,220,152,.98);
  background:radial-gradient(circle at 35% 30%, #FFFDF4, rgba(252,235,190,.62) 68%);
  animation:goldenSealBloom .9s cubic-bezier(.22,1,.36,1) both;
}
body.premium .ritual-canvas {
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
  z-index:0;
}
body.premium .seal-ritual {
  display:grid;
  place-items:center;
  flex-shrink:0;
  position:relative;
  z-index:1;
  width:112px;
  height:112px;
  background:radial-gradient(circle at 35% 30%, rgba(255,255,255,.88), rgba(220,242,255,.45) 70%);
  border:1.5px solid rgba(255,255,255,.95);
  border-radius:50%;
  box-shadow:inset 0 1px 0 #fff, 0 12px 32px rgba(42,84,136,.14), 0 0 32px rgba(246,215,163,.42);
  transition:transform .42s cubic-bezier(.22,1,.36,1), opacity .35s ease;
}
body.premium .draw-overlay[data-phase="reveal"] .seal-ritual,
body.premium .draw-overlay[data-phase="ready"] .seal-ritual {
  width:112px;
  height:112px;
  transform:scale(.80);
}
body.premium .ritual-ring,
body.premium .ritual-pulse,
body.premium .ritual-pulse::after {
  position:absolute;
  border-radius:50%;
  pointer-events:none;
}
body.premium .ritual-pulse {
  inset:-4px;
  border:1px solid rgba(244,202,126,.62);
  animation:ritualPulseRipple 3.2s cubic-bezier(.22,1,.36,1) infinite;
  will-change:transform,opacity;
}
body.premium .ritual-pulse::after {
  content:"";
  inset:0;
  border:1px solid rgba(130,210,255,.52);
  animation:ritualPulseRipple 3.2s -1.6s cubic-bezier(.22,1,.36,1) infinite;
}
body.premium .ritual-ring--a {
  inset:-9px;
  border:1.5px solid transparent;
  border-top-color:rgba(244,202,126,.94);
  border-right-color:rgba(130,210,255,.78);
  animation:ritualRingSpin 4.8s linear infinite;
}
body.premium .ritual-ring--a::after {
  content:"";
  position:absolute;
  top:-3.5px;
  left:50%;
  width:6px;
  height:6px;
  margin-left:-3px;
  border-radius:50%;
  background:#FFF5CF;
  box-shadow:0 0 10px rgba(246,204,114,.95);
}
body.premium .ritual-ring--b {
  inset:-18px;
  border:1px dashed rgba(169,119,43,.52);
  animation:ritualRingSpin 11s linear infinite reverse;
}
body.premium .ritual-ring--b::before,
body.premium .ritual-ring--b::after {
  content:"";
  position:absolute;
  top:50%;
  width:5px;
  height:5px;
  margin-top:-2.5px;
  border-radius:50%;
}
body.premium .ritual-ring--b::before {
  left:-3px;
  background:#F5CC74;
  box-shadow:0 0 8px rgba(245,204,116,.85);
}
body.premium .ritual-ring--b::after {
  right:-3px;
  background:#9AD8FF;
  box-shadow:0 0 8px rgba(130,210,255,.85);
}
body.premium .ritual-ring--c {
  inset:-27px;
  border:1px solid transparent;
  border-bottom-color:rgba(244,202,126,.58);
  border-left-color:rgba(130,210,255,.46);
  animation:ritualRingSpin 16s linear infinite;
}
body.premium .ritual-ring--c::before {
  content:"";
  position:absolute;
  bottom:-3.5px;
  left:50%;
  width:6px;
  height:6px;
  margin-left:-3px;
  background:#FFE7A8;
  transform:rotate(45deg);
  box-shadow:0 0 8px rgba(244,202,126,.82);
}
body.premium .ritual-ring--d {
  inset:-8px;
  border:1.2px solid rgba(244,202,126,.68);
  box-shadow:inset 0 0 12px rgba(244,202,126,.22);
  animation:ritualGyroSpin 7.5s linear infinite;
  will-change:transform;
}
@media(prefers-reduced-motion:reduce) {
  body.premium .ritual-ring,
  body.premium .ritual-pulse,
  body.premium .ritual-pulse::after {animation:none !important;}
}
body.premium .seal-ritual .ritual-emblem {
  width:64px;
  height:64px;
  object-fit:contain;
  filter:drop-shadow(0 6px 14px var(--accent-glow));
  animation:paimonGraceFloat 4.6s ease-in-out infinite;
  will-change:transform;
}
body.premium .draw-overlay h2 {color:var(--ink);font-weight:400;letter-spacing:.02em;}
body.premium .fortune-card {
  perspective:1500px;
  transition:opacity .42s cubic-bezier(.22,1,.36,1), transform .48s cubic-bezier(.22,1,.36,1);
}
body.premium .fortune-card-inner {
  transform:rotateY(0deg);
  transform-style:preserve-3d;
  transition:transform .70s cubic-bezier(.22,1,.36,1);
  will-change:transform;
}
body.premium .fortune-card.is-open .fortune-card-inner {transform:rotateY(180deg);}
body.premium .fortune-card__front,
body.premium .fortune-card__back {
  border-radius:24px;
  background:rgba(255,253,248,.88);
  border:1px solid;
  border-color:var(--glass-border-top) var(--glass-border-side) var(--glass-border-bottom) var(--glass-border-side);
  box-shadow:var(--glass-shadow);
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
}
body.premium .fortune-card__front {transform:rotateY(0deg) translateZ(1px);}
body.premium .fortune-card__back {transform:rotateY(180deg) translateZ(1px);}
body.premium .draw-overlay[data-golden="true"] .fortune-card__back {
  border-color:rgba(244,205,126,.82) rgba(232,190,104,.52) rgba(182,127,39,.34) rgba(232,190,104,.52);
  box-shadow:0 22px 50px -12px rgba(42,84,136,.22), 0 0 32px rgba(244,202,118,.38), inset 0 1px 0 #fff;
}
body.premium .draw-overlay[data-golden="true"] .fortune-card__back::before {
  border-color:rgba(218,172,82,.56);
}
body.premium .fortune-sheen {
  position:absolute;
  inset:-20% auto -20% 0;
  width:46%;
  pointer-events:none;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.72), rgba(246,215,163,.35), transparent);
  opacity:0;
}
body.premium .fortune-card.is-open .fortune-sheen {
  animation:sheenSweep .95s .56s cubic-bezier(.22,1,.36,1) both;
}
body.premium .draw-overlay .draw-accept {
  transition:opacity .32s cubic-bezier(.22,1,.36,1), transform .36s cubic-bezier(.22,1,.36,1), box-shadow .24s ease, border-color .24s ease;
}
body.premium .draw-overlay:not([data-phase="ready"]) .draw-accept {
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(8px) scale(.97);
}
body.premium .draw-overlay[data-phase="ready"] .draw-accept {
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:none;
}
body.premium .fortune-card__front::before,
body.premium .fortune-card__back::before {border-color:var(--glass-border-side);}
body.premium .fortune-seal {object-fit:contain;filter:none;}
body.premium .fortune-card__back h3,
body.premium .fortune-person strong {color:var(--ink);font-weight:400;}
body.premium .fortune-label,
body.premium .fortune-card__front :is(small,span) {color:var(--muted);}
body.premium .fortune-avatar {border-color:var(--glass-border-top);}
body.premium .fortune-person {display:flex;align-items:center;gap:10px;margin-bottom:18px;flex-wrap:wrap;}
body.premium .fortune-seat {color:var(--ink);font-family:var(--font-display);font-size:18px;font-weight:400;line-height:1;margin-right:0;flex-shrink:0;}
body.premium .fortune-chars {display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;min-width:0;flex:1 1 auto;}
body.premium .fortune-char {display:inline-flex;align-items:center;gap:5px;min-width:0;max-width:100%;}
body.premium .fortune-char .fortune-avatar {width:30px;height:30px;margin-left:0;}
body.premium .fortune-char .pair-el-icon {width:15px;height:15px;}
body.premium .fortune-char .pair-el-star {font-size:13px;line-height:1;}
body.premium .fortune-char__name {color:var(--ink);font-size:13px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
@media(max-width:640px){
  body.premium .fortune-person {gap:8px;margin-bottom:11px;}
  body.premium .fortune-seat {font-size:16px;}
  body.premium .fortune-chars {gap:5px 10px;}
  body.premium .fortune-char .fortune-avatar {width:26px;height:26px;}
  body.premium .fortune-char .pair-el-icon {width:14px;height:14px;}
  body.premium .fortune-char__name {font-size:12px;}
}
body.premium .boot-sigil {background:var(--glass-bg);border-color:var(--glass-border-top);box-shadow:var(--glass-shadow);}
body.premium .boot-sigil img {width:70%;height:70%;object-fit:contain;}
body.premium .form-error,
body.premium .login-error {color:var(--danger);background:rgba(184,59,98,.08);border:1px solid rgba(184,59,98,.24);border-radius:10px;padding:8px 12px;}
body.premium .form-error:empty,
body.premium .login-error:empty {display:none !important;}

@keyframes card-illuminate {
  0%,100% {box-shadow:var(--glass-shadow);}
  45% {box-shadow:var(--glass-shadow-raised), 0 0 0 1px var(--accent);}
}

@media(hover:hover) and (pointer:fine) {
  body.premium .dash-card:hover {transform:translateY(-4px);box-shadow:var(--glass-shadow-raised);}
}
@media(max-width:1050px){
  body.premium .topbar__right{gap:6px;}
  body.premium .topbar .user-chip__meta{display:none;}
  body.premium .room-hero{grid-template-columns:1fr;}
  body.premium .seats-grid[data-seats="3"]{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:900px){
  body.premium .pair-slot{flex-direction:column;align-items:flex-start;padding:14px 12px;}
  body.premium .pair-info{padding-top:0;}
  body.premium .pair-info h2{font-size:18px;}
  body.premium .hero-visual{min-height:280px;}
  body.premium .star-orrery{width:288px;height:288px;transform:scale(.88);}
  body.premium .seats-grid,
  body.premium .seats-grid[data-seats="3"],
  body.premium .seats-grid[data-seats="4"]{grid-template-columns:1fr;}
  body.premium .mode-picker{grid-template-columns:1fr;}
  body.premium .fortune-grid[data-count="3"],
  body.premium .fortune-grid[data-count="4"]{grid-template-columns:1fr;}
}
@media(max-width:760px){
  body.premium .page{width:calc(100% - 32px);}
  body.premium .topbar{width:calc(100% - 24px);margin:12px auto 0;top:12px;padding:8px 12px;min-height:58px;}
  body.premium .hero{min-height:0;padding:24px 0 20px;gap:24px;}
  body.premium .dash-grid,body.premium .seats-grid{gap:16px;}
  body.premium .login-page{padding:16px;}
  body.premium .login-brand{padding:10px 14px;}
  body.premium .login-brand__note{font-size:8px;}
  body.premium .login-card{padding:28px 22px;}
  body.premium .ban-bar__list{justify-content:flex-start;}
}
@media(max-width:600px){body.premium .profile-avatar-grid{grid-template-columns:repeat(4,minmax(0,1fr));}body.premium .profile-fields{gap:14px;}body.premium .profile-preview .player-avatar{width:64px;height:64px;}body.premium .user-chip__meta{display:none;}}
@media(max-width:680px){
  body.premium .timer-panel{grid-template-columns:minmax(108px,.88fr) minmax(0,1.12fr);gap:12px 14px;padding:14px 16px;}
  body.premium .timer-panel .timer-state-block{grid-column:1;border-left:0;border-top:1px solid rgba(130,175,224,.28);padding:10px 0 0;}
  body.premium .timer-state-pill{min-height:30px;padding:4px 10px;gap:6px;}
  body.premium .timer-panel .timer-state-block strong{font-size:14px;}
  body.premium .timer-state-note{font-size:9px;}
  body.premium .timer-panel .timer-leave-dock{grid-column:2;border-left:0;border-top:1px solid rgba(130,175,224,.28);padding:10px 0 0;}
  body.premium .timer-panel .timer-leave-dock::before{display:none;}
  body.premium .btn--leave-room{min-height:34px;height:34px;padding:0 14px;font-size:12px;gap:5px;}
}
@media(max-width:480px){
  body.premium .topbar{width:calc(100% - 20px);min-height:56px;top:10px;margin-top:10px;}
  body.premium .brand__text{display:none;}
  body.premium .user-chip{display:flex;min-width:34px;width:34px;height:34px;padding:1px;border:0;background:none;}
  body.premium .user-chip .player-avatar{width:32px;height:32px;flex-basis:32px;}
  body.premium .topbar__right{gap:5px;}
  body.premium .hero-title{font-size:40px;line-height:1.2;}
  body.premium .login-title{font-size:56px;}
  body.premium .dash-card{padding:20px;}
  body.premium .character-pair{padding:14px;gap:10px;}
  body.premium .pair-slot{padding:14px 10px;gap:12px;}
  body.premium .pair-info h2{font-size:17px;}
  body.premium .star-orrery{width:270px;height:270px;transform:scale(.82);}
  body.premium .char-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;}
  body.premium .char-tile{padding:9px;gap:9px;min-height:68px;}
  body.premium .char-tile__portrait{width:42px;height:42px;flex-basis:42px;}
  body.premium .login-brand__note{display:none;}
  body.premium .login-constellation{padding:12px 14px;gap:10px;}
  body.premium .const-node{padding:4px 8px;gap:4px;}
  body.premium .const-node b{font-size:12px;}
  body.premium .login-constellation__meta{font-size:11px;gap:6px;}
}
@media(prefers-reduced-motion:reduce){
  body.premium .dash-card,
  body.premium .star-orrery{transition:none;}
  body.premium .dash-card:hover{transform:none;}
  body.premium .border-beam,
  body.premium .star-orrery__aura,
  body.premium .star-orrery__halo,
  body.premium .halo-spark,
  body.premium .star-orbit__track,
  body.premium .star-orbit__sat,
  body.premium .star-orrery__core,
  body.premium .btn--primary::after{animation:none;}
}
@supports not (backdrop-filter:blur(1px)){
  body.premium :is(.seat-card,.dash-card,.login-card,.modal-panel){background:var(--glass-bg-strong);}
}
