@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: #f5f2ff;
  background: #151522;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  --bg: #151522;
  --panel: #242538;
  --panel-hi: #2d2e46;
  --panel-low: #1d1e2f;
  --line: rgba(245, 243, 255, .12);
  --text: #f5f2ff;
  --muted: #a5a5bc;
  --lime: #c9f578;
  --lilac: #b2a5ff;
  --peach: #ffb8a4;
  --soft-out: 12px 12px 24px #0c0c16, -9px -9px 23px #303047;
  --soft-in: inset 5px 5px 12px #141422, inset -5px -5px 12px #303046;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .44; cursor: not-allowed; transform: none !important; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, .brand-word { font-family: 'Space Grotesk', sans-serif; }
em { font-style: normal; color: var(--lime); }
.app { min-height: 100vh; display: flex; flex-direction: column; position: relative; overflow: hidden; isolation: isolate; }
.app::before { content: ''; position: absolute; z-index: -1; width: 690px; height: 690px; border-radius: 50%; left: -400px; top: 240px; background: #8a79e5; filter: blur(180px); opacity: .15; pointer-events: none; }
.app::after { content: ''; position: absolute; z-index: -1; width: 700px; height: 700px; border-radius: 50%; right: -420px; top: -270px; background: #89cebe; filter: blur(190px); opacity: .1; pointer-events: none; }
.app > main { flex: 1; }
.nav { border-bottom: 1px solid var(--line); background: rgba(21, 21, 34, .78); backdrop-filter: blur(22px); position: relative; z-index: 3; }
.nav-inner { max-width: 1460px; height: 86px; padding: 0 46px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 13px; }
.mark { width: 47px; height: 47px; border-radius: 16px; background: var(--lime); box-shadow: 4px 5px 0 #688346, inset 2px 3px 1px #efffc7; color: #181a24; position: relative; display: grid; place-items: center; transform: rotate(-7deg); }
.mark span { font: 700 37px/1 'Space Grotesk'; margin: -7px 0 0 -3px; }
.mark i { font: 700 18px/1 'Space Grotesk'; position: absolute; top: -6px; right: -8px; color: var(--peach); text-shadow: 1px 1px #1f2035; }
.brand-word { font-size: 29px; font-weight: 700; letter-spacing: -1.6px; }
.brand-reg { color: var(--lime); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-edition { color: #aaa9be; font-weight: 800; font-size: 10px; letter-spacing: .16em; margin-right: 20px; }
.nav-edition span { color: #77778f; }
.connection-dot { width: 9px; height: 9px; border-radius: 50%; background: #fb8a7a; box-shadow: 0 0 0 5px #fb8a7a18; }
.connection-dot.yes { background: var(--lime); box-shadow: 0 0 0 5px #c9f57818; }
.connection-text { font-size: 11px; letter-spacing: .11em; font-weight: 800; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); max-width: none; padding: 21px max(28px, calc((100vw - 1368px) / 2)); color: #8f8da8; display: flex; justify-content: space-between; gap: 20px; font-size: 10px; font-weight: 700; letter-spacing: .06em; }

/* Home: an expressive editorial hero beside a tactile control deck. */
.home-wrap { max-width: 1460px; padding: 55px 46px 90px; margin: auto; display: grid; grid-template-columns: minmax(0, .97fr) minmax(470px, 1fr); align-items: start; gap: 52px; }
.home-intro { position: relative; padding: 75px 6px 25px 0; min-height: 610px; }
.overline, .label-caps, .form-label { font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.overline { display: inline-flex; align-items: center; gap: 10px; color: var(--lilac); }
.overline.orange { color: var(--peach); }
.star-burst { color: var(--lime); font-size: 31px; animation: star-turn 18s linear infinite; display: inline-block; }
.overline-line { height: 1px; width: 62px; background: #84819c; }
.home-intro h1 { max-width: 690px; font-size: clamp(70px, 6.5vw, 112px); letter-spacing: -.075em; line-height: .99; font-weight: 700; margin: 30px 0 28px; }
.home-intro h1 em { display: inline-block; color: var(--lime); text-shadow: 3px 4px 0 #607c40; }
.home-summary { font-size: clamp(16px, 1.55vw, 20px); color: #bab8cf; line-height: 1.78; max-width: 470px; margin-bottom: 0; }
.home-summary i { font-style: normal; color: var(--peach); }
.hero-sticker { position: absolute; right: 25px; top: 375px; width: 153px; height: 153px; border-radius: 46px; transform: rotate(12deg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: var(--peach); color: #272134; box-shadow: 12px 14px 0 #ffb8a43b, inset -9px -10px 0 #ed967f, inset 5px 6px 0 #ffdfc9, 17px 24px 35px #09091865; }
.hero-sticker span { font-size: 9px; font-weight: 800; letter-spacing: .1em; display: flex; align-items: center; gap: 4px; }
.hero-sticker strong { font: 700 55px/1 'Space Grotesk'; letter-spacing: -4px; }
.hero-stats { display: flex; gap: 0; margin-top: 110px; width: min(520px, 100%); border-top: 1px solid var(--line); padding-top: 28px; }
.hero-stats div { flex: 1; display: flex; align-items: start; flex-direction: column; gap: 7px; padding-right: 14px; }
.hero-stats b { font: 700 31px/1 'Space Grotesk'; color: var(--lilac); }
.hero-stats span { font-size: 12px; color: var(--muted); font-weight: 600; }
.home-deco { position: absolute; right: 0; bottom: 32px; font: 700 16px/1 'Space Grotesk'; transform: rotate(-8deg); color: #595976; letter-spacing: .03em; text-align: right; }
.entry-box { background: linear-gradient(155deg, #2e3048, #202134 66%); border-radius: 32px; border: 1px solid #ffffff15; box-shadow: 18px 22px 45px #080910b5, inset 2px 3px 1px #ffffff18, inset -3px -4px 8px #101020; overflow: hidden; }
.entry-top { padding: 31px 32px 0; }
.label-caps { color: var(--lilac); }
.tabs { display: flex; gap: 6px; margin: 22px 0 0; padding: 7px; background: #171827; border-radius: 16px; box-shadow: var(--soft-in); }
.tabs button { flex: 1; padding: 13px 12px; border: 0; border-radius: 12px; background: transparent; color: #9596b0; font-size: 13px; font-weight: 800; transition: .2s ease; }
.tabs button.selected { background: #393a54; color: white; box-shadow: 3px 4px 9px #0e0f1e, inset 1px 1px 1px #ffffff30; }
.form-area { padding: 27px 32px 35px; }
.form-label { display: block; color: #c1bed1; margin-bottom: 11px; }
.field { display: block; width: 100%; min-height: 51px; padding: 13px 17px; border-radius: 14px; color: white; background: #1c1d2e; border: 1px solid #44455f; box-shadow: inset 4px 4px 8px #131421, inset -2px -2px 7px #2b2c42; outline: none; font-size: 14px; }
.field:focus { border-color: var(--lime); box-shadow: inset 4px 4px 10px #10111d, 0 0 0 3px #c9f57824; }
.field::placeholder { color: #75758f; }
select.field { color-scheme: dark; }
.form-section-head { margin: 26px 0 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.form-section-head .form-label { margin: 0; }
.caption { color: #a2a1b6; font-size: 11px; }
.genre-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-height: 322px; overflow-y: auto; padding: 2px 5px 6px 2px; scrollbar-color: #55546d transparent; scrollbar-width: thin; }
.genre-tile { position: relative; min-height: 126px; background: #34354a; color: #f3f1ff; border: 1px solid #4d4d64; border-radius: 19px; box-shadow: 4px 5px 0 #171827, inset 2px 2px 2px #ffffff17; padding: 12px 12px 10px; display: flex; flex-direction: column; gap: 5px; align-items: start; text-align: left; overflow: hidden; transition: transform .18s, border-color .18s, background .18s; }
.genre-tile::after { content: ''; width: 68px; height: 68px; border-radius: 20px; position: absolute; right: -34px; top: -24px; background: #ffffff0d; transform: rotate(35deg); }
.genre-tile:hover { transform: translateY(-3px); border-color: #aaa3f5; }
.genre-tile.active { background: #4d456b; border-color: var(--lilac); box-shadow: 4px 5px 0 #171727, inset 2px 2px 2px #ffffff33, 0 0 0 1px #b2a5ff70; }
.genre-tile.genre-cricket, .genre-tile.genre-football { --genre-accent: var(--lime); }
.genre-tile.genre-anime, .genre-tile.genre-marvel, .genre-tile.genre-dc { --genre-accent: var(--peach); }
.genre-tile.genre-wrestling, .genre-tile.genre-politics, .genre-tile.genre-music { --genre-accent: var(--lilac); }
.tile-number { font-size: 9px; font-weight: 800; color: #9996b6; }
.tile-emoji { font-size: 28px; line-height: 1.1; filter: drop-shadow(2px 3px 1px #13142444); }
.genre-tile strong { font: 700 12px/1.1 'Space Grotesk'; margin-top: auto; }
.tile-bottom { width: 100%; display: flex; gap: 3px; justify-content: space-between; align-items: center; color: #aeabc5; }
.tile-bottom small { font-size: 10px; }
.genre-tile.active .tile-bottom svg { color: var(--lime); }
.settings-toggle-line { display: flex; justify-content: space-between; align-items: center; margin: 22px 0 19px; gap: 15px; }
.settings-toggle-line > div { display: flex; flex-direction: column; gap: 5px; }
.settings-toggle-line strong { font-size: 14px; font-weight: 800; }
.settings-toggle-line > div > span { color: #aaa8be; font-size: 11px; }
.custom-toggle { border: 1px solid #555471; border-radius: 13px; background: #35364d; color: #e2dffa; padding: 10px 12px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-weight: 800; font-size: 11px; box-shadow: 3px 4px 7px #161724, inset 1px 1px 1px #ffffff20; }
.custom-toggle.open { background: #494265; }
.custom-toggle svg:last-child { transition: transform .2s; }
.custom-toggle.open svg:last-child { transform: rotate(180deg); }
.custom-box { background: #1a1b2b; border-radius: 18px; box-shadow: var(--soft-in); padding: 19px; margin-bottom: 20px; border: 1px solid #434257; }
.settings-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.settings-three label { color: #b8b7cd; font-size: 10px; font-weight: 700; }
.settings-three .field { font-size: 12px; margin-top: 7px; padding: 8px; min-height: 40px; }
.weights-head { display: flex; justify-content: space-between; margin: 21px 0 11px; font-size: 12px; font-weight: 800; }
.weights-head small { color: var(--lime); }
.weights-head .weight-error { color: var(--peach); }
.weight-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.weight-fields label { font-size: 11px; color: #bbb8d2; padding: 10px; border-radius: 10px; background: #2a2a3c; }
.weight-fields label > div { display: flex; align-items: center; gap: 5px; margin-top: 6px; }
.weight-fields input { min-width: 0; max-width: 100%; width: 100%; border: 1px solid #4e4c66; border-radius: 7px; background: #1b1c2b; padding: 7px; color: #fff; }
.fine-print, .join-help { font-size: 12px; line-height: 1.7; color: #a6a4bd; margin: 13px 0 20px; }
.main-cta, .bid-cta { width: 100%; min-height: 60px; padding: 13px 21px; background: var(--lime); color: #1b1d23; border: 0; border-radius: 17px; font-weight: 800; font-size: 13px; letter-spacing: .065em; display: flex; align-items: center; justify-content: space-between; gap: 15px; box-shadow: 0 6px 0 #7b9c4b, 0 13px 25px #0a0b1673, inset 3px 3px 2px #eeffc4; transition: transform .16s, box-shadow .16s; }
.main-cta:hover:not(:disabled), .bid-cta:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 0 #7b9c4b, 0 15px 28px #0a0b1680, inset 3px 3px 2px #eeffc4; }
.main-cta:active:not(:disabled), .bid-cta:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 2px 0 #7b9c4b; }
.code-label { margin-top: 28px; }
.code-input { font-weight: 800; letter-spacing: .25em; font-size: 19px; text-transform: uppercase; }
.alert { max-width: 1340px; padding: 13px 18px; margin: 20px auto 0; border-radius: 13px; display: flex; align-items: center; justify-content: space-between; gap: 15px; background: #384535; color: var(--lime); font-size: 13px; }
.alert-error { background: #4c2c36; color: #ffcbc1; }
.alert button { background: transparent; border: 0; color: inherit; }
.genre-loading { font-size: 12px; color: var(--muted); }
.genre-failure { background: #3a2c39; border: 1px solid #865a64; border-radius: 16px; padding: 16px; font-size: 12px; }
.genre-failure p { color: #d0adba; line-height: 1.65; margin: 7px 0 11px; }
.genre-failure code { color: #fff; }
.genre-failure-actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.genre-failure-actions button, .genre-failure-actions a { background: #55405a; border: 1px solid #9a7b92; color: white; border-radius: 9px; padding: 10px; display: inline-flex; gap: 6px; text-decoration: none; align-items: center; }

/* Shared room shell */
.room-shell { max-width: 1460px; padding: 30px 46px 95px; margin: 0 auto; }
.room-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.crumb { font-size: 11px; font-weight: 800; letter-spacing: .075em; text-transform: uppercase; color: #9190aa; }
.crumb span { color: #5d5b76; margin: 0 11px; }
.crumb b { color: var(--lime); }
.room-pill { display: inline-flex; align-items: center; gap: 10px; border-radius: 13px; background: #2a2b41; color: white; border: 1px solid #48475f; box-shadow: 4px 5px 12px #0b0b16, inset 2px 2px 2px #ffffff14; padding: 11px 15px; }
.room-pill span { font-size: 9px; color: #a6a5bb; letter-spacing: .15em; }
.room-pill strong { font-family: 'Space Grotesk'; letter-spacing: .12em; font-size: 15px; }
.room-pill svg { color: var(--lime); }
.lobby { display: grid; grid-template-columns: minmax(0,1fr) 355px; gap: 28px; padding: 48px; border-radius: 31px; background: linear-gradient(145deg, #303149, #23243a 65%); border: 1px solid #ffffff16; box-shadow: var(--soft-out), inset 2px 3px 1px #ffffff19; }
.lobby-main { padding: 18px 20px 4px 0; }
.lobby-main h1 { font-size: clamp(55px, 6vw, 91px); line-height: 1.02; margin: 23px 0; letter-spacing: -.07em; }
.lobby-main > p { max-width: 510px; font-size: 16px; line-height: 1.8; color: #bcb9d1; }
.invite-block { display: inline-flex; flex-direction: column; gap: 9px; margin: 24px 0 28px; }
.invite-block > span { font-size: 10px; font-weight: 800; letter-spacing: .16em; color: #9b9bb5; }
.invite-block button { border: 1px solid #9a94cc; border-radius: 17px; background: #484366; color: #fff; padding: 14px 19px; font: 700 30px/1 'Space Grotesk'; letter-spacing: .22em; display: flex; align-items: center; gap: 25px; box-shadow: 5px 6px 0 #161628, inset 2px 2px 0 #ffffff25; }
.invite-block svg { color: var(--lime); }
.invite-block small { font-size: 10px; color: var(--muted); }
.player-ready-list { max-width: 510px; margin: 4px 0 25px; display: grid; gap: 8px; }
.ready-person { border: 1px solid #4a495f; background: #25263b; padding: 12px; border-radius: 14px; display: flex; align-items: center; gap: 12px; }
.ready-avatar { width: 42px; height: 42px; border-radius: 14px; flex: none; background: var(--lilac); color: #27243c; font: 700 20px 'Space Grotesk'; display: grid; place-items: center; box-shadow: inset 2px 3px 1px #e2dbff, 3px 4px 0 #625984; }
.ready-person > div:nth-child(2) { flex: 1; display: grid; gap: 4px; min-width: 0; }
.ready-person strong { font-size: 13px; }
.ready-person div span { font-size: 10px; color: var(--muted); }
.readystate { color: var(--peach); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.readystate.is-ready { color: var(--lime); }
.ready-person.waiting { opacity: .56; }
.lobby-main .main-cta { max-width: 510px; }
.lobby-side { padding: 27px; border-radius: 27px; background: linear-gradient(145deg, #1b1c2d, #28293e); box-shadow: inset 6px 6px 15px #131321, inset -4px -4px 12px #393950; border: 1px solid #49485e; }
.lobby-symbol { width: 116px; height: 116px; margin: 9px 0 31px; background: #474463; border-radius: 34px; box-shadow: 8px 10px 0 #19192b, inset 3px 4px #ffffff20; display: grid; place-items: center; font-size: 66px; transform: rotate(-6deg); }
.lobby-side h2 { font-size: 35px; margin: 9px 0 6px; }
.lobby-side p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.lobby-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin: 28px 0; }
.lobby-facts div { padding: 17px 13px; border-radius: 12px; background: #34354c; display: grid; gap: 7px; box-shadow: 3px 4px 8px #10101d, inset 1px 1px #ffffff18; }
.lobby-facts span { font-size: 9px; letter-spacing: .08em; color: #b3b0c8; }
.lobby-facts b { font: 700 28px 'Space Grotesk'; color: var(--lime); }
.mystery-note { display: flex; align-items: start; gap: 11px; border: 1px dashed #736b9d; border-radius: 13px; padding: 13px; color: #bfbcdf; font-size: 11px; line-height: 1.65; }
.mystery-note svg { flex: none; }

/* Live auction */
.arena-head { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin: 15px 0 24px; }
.arena-head h1 { font-size: clamp(43px, 4.5vw, 66px); letter-spacing: -.065em; margin: 13px 0 0; line-height: 1.04; }
.live-pulse { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--peach); box-shadow: 0 0 0 5px #ffb8a42c; animation: pulse 1.4s ease-in-out infinite; }
.auction-progress { min-width: 160px; text-align: right; }
.auction-progress > span { font-size: 10px; font-weight: 800; letter-spacing: .08em; color: #9a99b2; }
.auction-progress > div:nth-child(2) { margin: 6px 0 8px; color: #a5a2ba; }
.auction-progress strong { font: 700 33px 'Space Grotesk'; color: var(--lime); }
.progress-meter { height: 8px; background: #313148; border-radius: 10px; overflow: hidden; box-shadow: var(--soft-in); }
.progress-meter span { height: 100%; background: var(--lime); border-radius: inherit; display: block; }
.auction-columns { display: grid; grid-template-columns: minmax(195px, .67fr) minmax(0, 2.2fr) minmax(195px, .7fr); gap: 19px; align-items: start; }
.auction-side { min-width: 0; display: grid; gap: 18px; }
.squad-panel, .activity { background: #25263a; border: 1px solid #ffffff14; padding: 23px 17px; border-radius: 24px; box-shadow: 8px 9px 20px #0c0d1980, inset 2px 2px #ffffff10; }
.aside-heading { display: flex; align-items: center; justify-content: space-between; gap: 6px; color: #aaa9c0; font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.aside-heading > span { color: var(--lilac); }
.online-tick { color: #fe8f86 !important; }
.online-tick.active { color: var(--lime) !important; }
.squad-panel h3 { font-size: 23px; margin: 12px 0 21px; overflow-wrap: anywhere; }
.squad-wallet { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
.squad-wallet > div { background: #1a1b2b; box-shadow: var(--soft-in); padding: 13px 11px; border-radius: 14px; display: flex; flex-direction: column; gap: 6px; }
.squad-wallet span { font-size: 8px; letter-spacing: .06em; color: #9c9db8; font-weight: 800; }
.squad-wallet strong { font: 700 26px 'Space Grotesk'; color: var(--lime); }
.squad-wallet strong small { font-size: 13px; color: #9290ac; }
.roster-list { display: grid; gap: 9px; }
.roster-item { display: flex; align-items: center; gap: 10px; min-width: 0; border-radius: 12px; padding: 7px; background: #303147; }
.roster-thumb { width: 44px; height: 48px; border-radius: 9px; overflow: hidden; flex: none; }
.roster-item > span { flex: 1; min-width: 0; font-size: 11px; font-weight: 700; overflow-wrap: anywhere; }
.roster-item > span small { display: block; color: #a8a7be; font-size: 8px; margin-bottom: 5px; }
.roster-item > svg { color: var(--lime); flex: none; }
.roster-item.empty { background: transparent; border: 1px dashed #494960; color: #9090a6; padding: 9px 7px; font-size: 10px; }
.roster-item.empty > svg { color: #77778f; }
.empty-thumb { background: #34344c; width: 38px; height: 39px; flex: none; border-radius: 9px; color: #8989a7; display: grid; place-items: center; font-size: 24px; }
.activity-list { display: grid; gap: 12px; margin-top: 21px; }
.activity-list > p { font-size: 11px; color: var(--muted); }
.activity-item { display: flex; align-items: start; gap: 9px; color: #aaa8c1; font-size: 11px; line-height: 1.6; }
.activity-item strong, .activity-item b { color: #f4f0ff; }
.activity-ball { border-radius: 50%; background: var(--lime); width: 8px; height: 8px; margin-top: 5px; flex: none; }
.activity-ball.dark { background: var(--lilac); }
.stage { overflow: hidden; background: #292a40; border: 1px solid #50506b; border-radius: 28px; box-shadow: 13px 15px 32px #0a0b16, inset 2px 3px 1px #ffffff24; }
.stage-top { min-height: 66px; padding: 13px 21px; display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #35364f; border-bottom: 1px solid #ffffff13; }
.stage-top > span:first-child { font-size: 11px; font-weight: 800; letter-spacing: .11em; display: flex; align-items: center; gap: 9px; }
.stage-top > span:first-child svg { color: var(--lime); }
.stage-top i { color: #797997; font-style: normal; }
.timer { --progress: 50%; color: #191b2a; background: var(--lime); border-radius: 12px; display: flex; align-items: center; gap: 7px; padding: 9px 12px; box-shadow: 3px 4px 0 #73964b, inset 1px 1px #efffc7; }
.timer span { font: 700 18px 'Space Grotesk'; font-variant-numeric: tabular-nums; }
.timer small { font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.timer-urgent { background: var(--peach); box-shadow: 3px 4px 0 #bd776b; animation: urgent .6s ease-in-out infinite alternate; }
.stage-label { color: var(--lime); font-weight: 800; letter-spacing: .13em; }
.feature { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); min-height: 480px; }
.feature-art { background: radial-gradient(circle at 47% 34%, #8580b5, #484667 42%, #27273b 95%); min-height: 480px; position: relative; overflow: hidden; }
.feature-art::before { content: ''; width: 300px; height: 300px; border: 1px solid #ffffff24; position: absolute; border-radius: 50%; top: 11%; left: -24%; box-shadow: 0 0 0 35px #ffffff08, 0 0 0 73px #ffffff06; }
.feature-art > .portrait { position: absolute; inset: 0; }
.portrait { position: relative; width: 100%; height: 100%; overflow: hidden; background: #4b496e; }
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait-placeholder { width: 100%; height: 100%; min-height: 100%; display: flex; align-items: center; justify-content: center; flex-direction: column; position: relative; overflow: hidden; background: radial-gradient(ellipse at 35% 17%, #8883c7 0%, #655e94 36%, #34324f 100%); }
.portrait-placeholder::after { content: ''; position: absolute; background: #ffffff09; width: 125%; height: 70%; border: 2px solid #ffffff16; border-radius: 50%; bottom: -43%; transform: rotate(-20deg); }
.portrait-orbit { position: absolute; width: 73%; aspect-ratio: 1; border: 1px solid #ffffff60; border-radius: 50%; box-shadow: 0 0 0 26px #ffffff08, 0 0 0 55px #ffffff08; }
.portrait-monogram { color: #edebff; font: 700 clamp(45px, 8vw, 105px)/1 'Space Grotesk'; text-shadow: 5px 8px 1px #2b28496e; position: relative; z-index: 1; letter-spacing: -.09em; }
.portrait-mini-title { position: absolute; bottom: 12%; font-size: 10px; letter-spacing: .15em; font-weight: 800; color: #d5cdec; }
.portrait-hero .portrait-mini-title { font-size: 13px; }
.photo-credit { position: absolute; left: 12px; bottom: 12px; z-index: 2; background: #141423bd; backdrop-filter: blur(8px); color: #fff; font-size: 9px; display: flex; align-items: center; gap: 4px; padding: 7px 9px; border-radius: 7px; text-decoration: none; }
.photo-credit-mini { left: auto; right: 3px; bottom: 3px; padding: 3px; }
.feature-index { position: absolute; left: 17px; top: 17px; font: 700 28px 'Space Grotesk'; color: white; text-shadow: 1px 2px 12px #111; }
.feature-index span { display: block; font: 800 8px 'DM Sans'; letter-spacing: .15em; }
.feature-detail { padding: 27px 24px 21px; min-width: 0; display: flex; flex-direction: column; }
.drop-label { font-size: 10px; color: var(--lilac); font-weight: 800; letter-spacing: .15em; display: flex; align-items: center; justify-content: space-between; }
.drop-label span { font-size: 19px; color: var(--peach); }
.feature-detail h2 { font-size: clamp(32px, 3vw, 52px); line-height: 1.06; letter-spacing: -.055em; margin: 15px 0 13px; overflow-wrap: anywhere; }
.category-stamp { align-self: start; font-weight: 800; font-size: 11px; background: #484363; border-radius: 30px; color: #ebe5ff; padding: 7px 13px; box-shadow: inset 1px 1px 1px #ffffff21; }
.sealed-info { padding: 12px; border: 1px dashed #696482; border-radius: 13px; margin: 23px 0 18px; display: flex; align-items: center; gap: 10px; color: var(--lilac); }
.sealed-info svg { flex: none; }
.sealed-info > div { display: grid; gap: 3px; }
.sealed-info b { font-size: 11px; color: #e8e4ff; }
.sealed-info span { color: #aaa8bf; font-size: 10px; line-height: 1.5; }
.bid-board { display: flex; gap: 20px; justify-content: space-between; padding: 16px; border-radius: 15px; background: #1b1c2d; box-shadow: var(--soft-in); }
.leading-line, .leader { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.leading-line > span, .leader > span { color: #9f9db9; font-size: 9px; letter-spacing: .09em; font-weight: 800; }
.leading-line strong { font: 700 34px 'Space Grotesk'; line-height: 1; color: var(--lime); }
.leader { justify-content: center; text-align: right; }
.leader b { font-size: 12px; overflow-wrap: anywhere; }
.bid-controls { margin-top: 21px; }
.bid-control-top { display: flex; justify-content: space-between; align-items: center; gap: 7px; margin-bottom: 10px; font-size: 10px; }
.bid-control-top label { letter-spacing: .12em; font-weight: 800; }
.bid-control-top span { color: #a19fb8; }
.bid-control-top b { color: var(--lime); }
.bid-buttons { display: flex; align-items: stretch; gap: 9px; }
.bid-buttons > button { width: 46px; min-height: 48px; flex: none; border-radius: 12px; background: #45465e; color: #fff; border: 1px solid #62627d; display: grid; place-items: center; box-shadow: 3px 4px 0 #191929, inset 2px 2px 1px #ffffff20; }
.bid-amount { flex: 1; min-width: 0; display: flex; align-items: center; background: #1b1c2e; border: 1px solid #53516e; box-shadow: var(--soft-in); border-radius: 12px; overflow: hidden; }
.bid-amount span { padding: 0 6px 0 15px; color: var(--lime); font-size: 17px; font-weight: 800; }
.bid-amount input { display: block; width: 100%; min-width: 0; border: 0; background: transparent; outline: none; color: #fff; padding: 10px 7px 10px 0; font: 700 20px 'Space Grotesk'; }
.bid-cta { margin-top: 13px; min-height: 52px; border-radius: 13px; padding: 10px 16px; justify-content: center; }
.bid-cta svg:last-child { margin-left: auto; }
.bidding-hint { margin: 15px 0 0; color: #aaa8c0; font-size: 10px; line-height: 1.5; }
.stage-foot { padding: 15px 18px; border-top: 1px solid #46445f; background: #34354b; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.stage-foot span { display: flex; align-items: center; gap: 7px; font-size: 9px; font-weight: 800; letter-spacing: .07em; color: #acaac6; }
.stage-foot svg { color: var(--lime); }
.between-lots { min-height: 480px; padding: 58px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: radial-gradient(circle at 50% 30%, #58506f, #28293f 65%); }
.sold-stamp { color: #272238; background: var(--lime); transform: rotate(-9deg); border-radius: 30px; padding: 17px 27px; box-shadow: 10px 12px 0 #688b42, inset 3px 3px #efffce; font: 700 clamp(48px, 6vw, 85px) 'Space Grotesk'; letter-spacing: -.075em; }
.sold-stamp span { color: #ed8b7e; }
.between-lots h2 { font-size: 28px; margin: 40px 0 6px; }
.between-lots p { color: #c0bdd1; font-size: 13px; }
.next-drop { display: inline-flex; align-items: center; gap: 10px; border-radius: 50px; padding: 11px 14px; background: #1e1e31; margin-top: 21px; font-size: 11px; color: #bbb7d0; }
.next-drop span { color: var(--lime); font-weight: 800; }

/* The only place where player and character ratings become visible. */
.results-hero { text-align: center; border: 1px solid #ffffff1e; border-radius: 30px; padding: 51px 30px; background: radial-gradient(circle at 50% -30%, #49466c, #27283c 72%); box-shadow: var(--soft-out); }
.result-crown { margin: 0 auto 19px; width: 78px; height: 78px; border-radius: 26px; color: #292237; background: var(--lime); display: grid; place-items: center; transform: rotate(-9deg); box-shadow: 6px 8px 0 #729348, inset 3px 3px #edffc7; }
.results h1 { font-size: clamp(42px, 6vw, 70px); letter-spacing: -.06em; line-height: 1.05; margin: 17px 0; }
.results-hero > p { color: #bab7ce; font-size: 15px; }
.final-score-cards { display: flex; gap: 16px; justify-content: center; margin: 30px 0; }
.score-card { width: min(250px, 50%); border-radius: 20px; text-align: left; padding: 23px; display: flex; flex-direction: column; gap: 8px; background: #33344a; border: 1px solid #55536d; box-shadow: 6px 7px 0 #171828, inset 2px 2px 1px #ffffff1a; position: relative; }
.score-card.champ { background: #4d4864; border-color: var(--lime); }
.score-card > span { font-size: 13px; font-weight: 800; overflow-wrap: anywhere; }
.score-card strong { font: 700 51px/1 'Space Grotesk'; color: var(--lime); }
.score-card small { font-size: 9px; color: #b6b3cc; font-weight: 800; letter-spacing: .07em; }
.score-card > svg { position: absolute; right: 19px; top: 19px; color: var(--lime); }
.new-game { border-radius: 13px; border: 1px solid #d3ccff; background: var(--lilac); color: #25213d; box-shadow: 4px 5px 0 #625b9a; padding: 14px 18px; display: inline-flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.results-body { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 25px; }
.breakdown, .roster-reveal { border-radius: 25px; background: #292a40; box-shadow: 7px 9px 21px #0b0b18a8, inset 2px 2px #ffffff15; padding: 28px; border: 1px solid #494960; min-width: 0; }
.results-body h2 { font-size: 37px; letter-spacing: -.055em; margin: 11px 0 25px; }
.results-param { padding: 14px 0 19px; border-bottom: 1px solid #49465f; }
.param-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.param-top strong { font-size: 12px; }
.param-top span { font-size: 9px; color: #a5a2bd; }
.param-bars { display: flex; flex-direction: column; gap: 12px; }
.bar-track { margin-right: 42px; height: 11px; border-radius: 10px; background: #181827; box-shadow: inset 2px 3px 6px #11111d; position: relative; }
.bar-fill { display: block; height: 100%; background: var(--lime); border-radius: inherit; }
.bar-fill.alt { background: var(--lilac); }
.bar-track b { position: absolute; left: calc(100% + 10px); top: -2px; font-size: 11px; }
.score-legend { display: flex; gap: 19px; margin-top: 22px; font-size: 11px; color: #bab8d1; flex-wrap: wrap; }
.score-legend span { display: inline-flex; align-items: center; gap: 7px; }
.score-legend i { width: 9px; height: 9px; background: var(--lime); border-radius: 50%; }
.score-legend span:nth-child(2) i { background: var(--lilac); }
.roster-reveal > p { color: #a5a3bc; font-size: 12px; }
.reveal-team { margin-top: 26px; }
.reveal-team h3 { font-size: 19px; border-bottom: 1px solid #444258; padding-bottom: 12px; }
.reveal-character { border-bottom: 1px solid #424158; }
.reveal-character button { width: 100%; display: flex; align-items: center; gap: 13px; background: transparent; border: 0; text-align: left; color: white; padding: 10px 0; }
.reveal-thumb { width: 48px; height: 52px; flex: none; border-radius: 9px; overflow: hidden; }
.reveal-character button > span { min-width: 0; flex: 1; display: grid; gap: 5px; overflow-wrap: anywhere; font-size: 12px; font-weight: 800; }
.reveal-character button small { font-size: 10px; color: #a4a1ba; font-weight: 500; }
.reveal-character button svg { color: var(--lilac); transition: transform .2s; }
.reveal-character button svg.rotated { transform: rotate(180deg); }
.reveal-stats { margin: 0 0 10px 61px; padding: 13px; border-radius: 10px; background: #1d1e2e; }
.reveal-stats > div { display: grid; grid-template-columns: 95px 1fr 27px; gap: 7px; align-items: center; margin-bottom: 8px; font-size: 10px; }
.reveal-stats > div:last-child { margin-bottom: 0; }
.reveal-stats span { color: #b2aec9; }
.revealed-bar { background: #33334b; border-radius: 8px; height: 6px; overflow: hidden; }
.revealed-bar i { height: 100%; background: var(--peach); display: block; border-radius: inherit; }
.reveal-stats b { text-align: right; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px #ffb8a410; } }
@keyframes star-turn { to { transform: rotate(360deg); } }
@keyframes urgent { to { transform: scale(1.04); } }
@media (max-width: 1240px) {
  .home-wrap { gap: 28px; padding-inline: 32px; grid-template-columns: minmax(0,.95fr) minmax(450px, 1fr); }
  .home-intro h1 { font-size: 76px; }
  .hero-sticker { right: 0; top: 380px; }
  .auction-columns { grid-template-columns: minmax(160px,.75fr) minmax(0,2.3fr) minmax(160px,.75fr); gap: 12px; }
  .squad-panel, .activity { padding: 18px 12px; }
  .feature { grid-template-columns: .78fr 1.22fr; }
  .feature-detail { padding: 23px 18px; }
  .feature-detail h2 { font-size: 37px; }
}
@media (max-width: 990px) {
  .nav-inner { padding-inline: 25px; }
  .home-wrap { grid-template-columns: 1fr; padding: 35px 25px 65px; }
  .home-intro { padding: 42px 5px 15px; min-height: 390px; }
  .home-intro h1 { font-size: clamp(65px, 10vw, 100px); max-width: 720px; }
  .home-summary { max-width: 590px; }
  .hero-sticker { right: 30px; top: 190px; }
  .hero-stats { margin-top: 40px; }
  .home-deco { display: none; }
  .entry-box { max-width: 750px; width: 100%; margin: auto; }
  .room-shell { padding-inline: 25px; }
  .lobby { padding: 30px; grid-template-columns: 1fr; }
  .lobby-side { display: grid; grid-template-columns: 150px 1fr; column-gap: 20px; }
  .lobby-symbol { grid-row: span 4; }
  .lobby-facts { grid-column: 1 / -1; }
  .mystery-note { grid-column: 1 / -1; }
  .auction-columns { grid-template-columns: 1fr 1fr; }
  .stage { grid-column: 1 / -1; grid-row: 1; }
  .left-side { grid-column: 1; grid-row: 2; }
  .right-side { grid-column: 2; grid-row: 2; }
  .results-body { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .nav-inner { height: 72px; padding: 0 17px; }
  .mark { width: 37px; height: 37px; border-radius: 12px; }
  .mark span { font-size: 30px; }
  .brand { gap: 11px; }
  .brand-word { font-size: 25px; }
  .nav-edition { display: none; }
  .site-footer { flex-direction: column; padding: 22px 19px; gap: 8px; font-size: 9px; }
  .home-wrap { padding: 14px 16px 50px; gap: 20px; }
  .home-intro { padding: 38px 4px 10px; min-height: auto; }
  .home-intro h1 { font-size: clamp(50px, 11.4vw, 72px); margin: 22px 0; }
  .home-summary { max-width: 85%; font-size: 15px; }
  .hero-sticker { right: -6px; top: 200px; width: 104px; height: 104px; border-radius: 32px; box-shadow: 6px 7px 0 #ffb8a43b, inset -5px -6px #ed967f, inset 3px 3px #ffe4d1; }
  .hero-sticker strong { font-size: 38px; letter-spacing: -2px; }
  .hero-sticker span { font-size: 6px; }
  .hero-stats { margin-top: 40px; }
  .hero-stats b { font-size: 24px; }
  .hero-stats span { font-size: 10px; }
  .entry-box { border-radius: 23px; }
  .entry-top { padding: 23px 19px 0; }
  .form-area { padding: 23px 19px 29px; }
  .genre-grid { gap: 8px; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .genre-tile { min-height: 112px; padding: 9px; border-radius: 14px; }
  .tile-emoji { font-size: 24px; }
  .genre-tile strong { font-size: 11px; }
  .tile-bottom small { font-size: 8px; }
  .settings-toggle-line { align-items: start; }
  .settings-toggle-line > div > span { line-height: 1.6; }
  .custom-toggle { font-size: 10px; padding: 10px 8px; }
  .settings-three { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .room-shell { padding: 20px 13px 55px; }
  .crumb { font-size: 9px; }
  .crumb span { margin-inline: 4px; }
  .room-pill { padding: 9px 11px; }
  .room-pill strong { font-size: 11px; }
  .lobby { padding: 23px 19px; gap: 18px; border-radius: 24px; }
  .lobby-main { padding: 7px 0; }
  .lobby-main h1 { font-size: 51px; }
  .lobby-main > p { font-size: 14px; }
  .lobby-side { padding: 22px; }
  .lobby-symbol { width: 97px; height: 97px; border-radius: 25px; font-size: 49px; }
  .lobby-side h2 { font-size: 27px; }
  .arena-head { margin-top: 25px; }
  .arena-head h1 { font-size: 42px; }
  .auction-progress { min-width: 115px; }
  .auction-progress > span { font-size: 8px; }
  .auction-columns { grid-template-columns: 1fr; }
  .stage { grid-column: 1; grid-row: 1; }
  .feature { grid-template-columns: 1fr; }
  .feature-art { min-height: 330px; height: 330px; }
  .feature-detail { padding: 24px 19px 23px; }
  .feature-detail h2 { font-size: 43px; }
  .stage-foot { padding: 12px; }
  .stage-foot span { font-size: 8px; }
  .left-side { grid-column: 1; grid-row: 2; }
  .right-side { grid-column: 1; grid-row: 3; }
  .squad-panel, .activity { padding: 21px; }
  .roster-list { grid-template-columns: 1fr 1fr; gap: 8px; }
  .roster-item { min-width: 0; }
  .roster-item > span { font-size: 10px; }
  .between-lots { min-height: 370px; }
  .results-hero { padding: 38px 16px; }
  .results h1 { font-size: 43px; }
  .score-card { padding: 15px; }
  .score-card strong { font-size: 43px; }
  .score-card small { font-size: 8px; }
  .breakdown, .roster-reveal { padding: 21px 17px; }
  .results-body h2 { font-size: 31px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
