:root {
  --navy-950: #020611;
  --navy-900: #061126;
  --navy-800: #071a35;
  --navy-700: #102c57;
  --panel: rgba(3, 13, 35, 0.92);
  --panel-soft: rgba(8, 28, 68, 0.78);
  --panel-bright: rgba(13, 55, 122, 0.78);
  --gold: #f2b632;
  --gold-2: #ffe28a;
  --gold-3: #b86d10;
  --blue: #00c2ff;
  --blue-2: #137dff;
  --green: #6ee326;
  --red: #ff3b27;
  --purple: #c45cff;
  --white: #ffffff;
  --muted: #c9d7ef;
  --line: rgba(0, 194, 255, 0.42);
  --gold-line: rgba(242, 182, 50, 0.74);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--navy-950);
  color: var(--white);
  font-family: "Arial Narrow", "Roboto Condensed", Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

body {
  min-width: 320px;
}

body[data-palette="studio-gold"] {
  --navy-900: #11101c;
  --navy-800: #181329;
  --panel: rgba(20, 14, 32, 0.94);
  --panel-soft: rgba(50, 36, 72, 0.78);
  --gold: #ffbf35;
  --gold-2: #ffe9a6;
  --blue: #56d8ff;
  --blue-2: #246cff;
  --green: #7bed49;
}

body[data-palette="emerald"] {
  --navy-900: #051914;
  --navy-800: #08241e;
  --panel: rgba(5, 25, 20, 0.94);
  --panel-soft: rgba(10, 54, 44, 0.78);
  --gold: #f5c84a;
  --gold-2: #ffedaa;
  --blue: #2ee6c5;
  --blue-2: #0b9f8a;
  --green: #a8ff4a;
}

body[data-palette="violet"] {
  --navy-900: #110b27;
  --navy-800: #1b123b;
  --panel: rgba(17, 11, 39, 0.94);
  --panel-soft: rgba(44, 28, 92, 0.78);
  --gold: #ffc24b;
  --gold-2: #fff0b7;
  --blue: #7fc7ff;
  --blue-2: #7654ff;
  --purple: #e778ff;
}

body[data-palette="ruby"] {
  --navy-900: #180b17;
  --navy-800: #281222;
  --panel: rgba(24, 11, 23, 0.94);
  --panel-soft: rgba(66, 24, 42, 0.78);
  --gold: #ffc547;
  --gold-2: #ffefb1;
  --blue: #43d7ff;
  --blue-2: #d13d62;
  --green: #88ee51;
}

body[data-palette="mono"] {
  --navy-900: #030303;
  --navy-800: #111111;
  --panel: rgba(0, 0, 0, 0.96);
  --panel-soft: rgba(28, 28, 28, 0.88);
  --gold: #ffffff;
  --gold-2: #ffffff;
  --blue: #ffffff;
  --blue-2: #7cc7ff;
  --green: #b6ff63;
  --muted: #ffffff;
  --line: rgba(255, 255, 255, 0.78);
  --gold-line: rgba(255, 255, 255, 0.86);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

button:disabled {
  opacity: 0.46;
  cursor: not-allowed;
}

input,
select {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 8px;
  background: rgba(2, 7, 19, 0.86);
  color: var(--white);
  padding: 13px 16px;
  font-weight: 800;
}

.stage-shell {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% -8%, rgba(0, 194, 255, 0.34), transparent 23%),
    radial-gradient(circle at 12% 20%, rgba(19, 125, 255, 0.22), transparent 26%),
    radial-gradient(circle at 88% 18%, rgba(242, 182, 50, 0.2), transparent 22%),
    linear-gradient(180deg, #02040d 0%, #061126 44%, #02040d 100%);
}

.stage-shell > .screen {
  filter: brightness(var(--app-brightness, 82%));
}

.stage-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -4;
  background:
    linear-gradient(100deg, rgba(242, 182, 50, 0.36), transparent 14%, transparent 86%, rgba(242, 182, 50, 0.36)),
    radial-gradient(circle at center, rgba(13, 55, 122, 0.5), rgba(2, 6, 17, 0.9) 60%),
    repeating-radial-gradient(ellipse at 50% 42%, rgba(255, 255, 255, 0.06) 0 1px, transparent 2px 34px);
  opacity: 0.86;
}

.stage-shell::after {
  content: "";
  position: absolute;
  left: 9vw;
  right: 9vw;
  bottom: -13vh;
  height: 30vh;
  z-index: -2;
  border: 3px solid rgba(242, 182, 50, 0.72);
  border-radius: 50% 50% 0 0;
  background:
    radial-gradient(ellipse at center, rgba(0, 194, 255, 0.3), transparent 62%),
    linear-gradient(180deg, rgba(2, 6, 17, 0.18), rgba(2, 6, 17, 0.82));
  box-shadow: inset 0 0 42px rgba(0, 194, 255, 0.28), 0 0 38px rgba(0, 194, 255, 0.22);
}

.arena-glow,
.spotlight,
.light-rig {
  pointer-events: none;
}

.arena-glow {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image:
    radial-gradient(circle, rgba(0, 194, 255, 0.3) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(242, 182, 50, 0.32) 0 1px, transparent 2px);
  background-size: 34px 34px, 72px 72px;
  opacity: 0.22;
}

.spotlight {
  position: absolute;
  top: -8vh;
  width: 20vw;
  height: 62vh;
  z-index: -1;
  background: linear-gradient(180deg, rgba(105, 188, 255, 0.68), transparent 70%);
  filter: blur(18px);
  clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%);
  opacity: 0.72;
}

.spotlight-a {
  left: 16vw;
  transform: rotate(16deg);
}

.spotlight-b {
  right: 16vw;
  transform: rotate(-16deg);
}

.light-rig {
  position: fixed;
  top: 10vh;
  bottom: 18vh;
  width: 46px;
  z-index: -1;
  border: 1px solid rgba(242, 182, 50, 0.28);
  background:
    radial-gradient(circle, #b8eeff 0 3px, #137dff 4px, transparent 8px) 0 0 / 22px 28px,
    rgba(0, 12, 35, 0.62);
  box-shadow: 0 0 30px rgba(0, 194, 255, 0.32);
}

.light-rig-left {
  left: 28px;
}

.light-rig-right {
  right: 28px;
}

.screen {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  padding: 28px clamp(22px, 3.2vw, 54px) 34px;
}

.show-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(7, 26, 53, 0.94), rgba(2, 8, 24, 0.94)),
    radial-gradient(circle at 50% 0, rgba(0, 194, 255, 0.18), transparent 56%);
  box-shadow: var(--shadow), inset 0 0 28px rgba(0, 194, 255, 0.1);
}

.chrome-button,
.gold-button,
.blue-button,
.continue-button,
.return-button,
.start-button,
.menu-tile,
.pack-card,
.share-card,
.round-nav,
.avatar-chip {
  border: 1px solid var(--gold-line);
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, filter 140ms ease;
}

.chrome-button,
.gold-button,
.blue-button,
.continue-button,
.return-button {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 20px;
  background: linear-gradient(180deg, rgba(10, 39, 93, 0.96), rgba(2, 8, 24, 0.96));
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
  box-shadow: inset 0 0 16px rgba(0, 194, 255, 0.12), 0 10px 24px rgba(0, 0, 0, 0.28);
}

.chrome-button:hover,
.gold-button:hover,
.blue-button:hover,
.continue-button:hover,
.return-button:hover,
.start-button:hover,
.menu-tile:hover,
.pack-card:hover,
.share-card:hover,
.round-nav:hover,
.avatar-chip:hover {
  transform: translateY(-2px);
  border-color: var(--gold-2);
  box-shadow: 0 0 24px rgba(242, 182, 50, 0.24), inset 0 0 18px rgba(0, 194, 255, 0.2);
}

.gold-button,
.continue-button,
.return-button.gold {
  background: linear-gradient(180deg, #ffdf66, #f2b632 46%, #b96f0c);
  color: #061126;
  border-color: #ffeaa3;
  box-shadow: 0 0 30px rgba(242, 182, 50, 0.34), inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

.blue-button {
  background: linear-gradient(180deg, rgba(19, 125, 255, 0.92), rgba(4, 22, 60, 0.96));
  border-color: rgba(0, 194, 255, 0.9);
}

.danger-outline {
  border-color: rgba(255, 255, 255, 0.5);
}

.icon {
  width: 1.22em;
  height: 1.22em;
  display: inline-flex;
  flex: 0 0 auto;
}

.icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-play svg,
.icon-star svg,
.icon-trophy svg,
.icon-bolt svg {
  fill: currentColor;
  stroke-width: 1.2;
}

.fifty-mark {
  display: inline-grid;
  place-items: center;
  width: 1.7em;
  height: 1.7em;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 0.82em;
  font-weight: 950;
}

.show-logo {
  position: relative;
  display: grid;
  justify-items: center;
  line-height: 0.86;
  text-align: center;
  text-transform: uppercase;
  filter: drop-shadow(0 12px 12px rgba(0, 0, 0, 0.6));
}

.show-logo strong,
.show-logo b {
  letter-spacing: 0;
  -webkit-text-stroke: 2px #513001;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 2px 0 #f6d37c,
    0 5px 0 #2c1602,
    0 0 26px rgba(242, 182, 50, 0.5);
}

.show-logo strong {
  font-size: clamp(58px, 8vw, 136px);
  background: linear-gradient(180deg, #fff9c7 0%, #ffd84e 34%, #f2a915 58%, #7a3d02 74%, #fff0a3 100%);
  -webkit-background-clip: text;
  color: transparent;
}

.show-logo b {
  margin-top: -0.06em;
  font-size: clamp(46px, 6.5vw, 104px);
  background: none;
  color: #f8fbff;
  -webkit-text-fill-color: #f8fbff;
  -webkit-text-stroke: 2px #7a4c07;
  text-shadow:
    0 2px 0 #c0c7d2,
    0 5px 0 #171b23,
    0 0 22px rgba(255, 255, 255, 0.3);
}

.show-logo em {
  margin-top: 10px;
  padding: 8px 24px;
  border: 2px solid var(--gold-line);
  border-left-width: 18px;
  border-right-width: 18px;
  background: rgba(3, 11, 30, 0.92);
  color: var(--white);
  font-size: clamp(12px, 1.4vw, 22px);
  font-style: normal;
  font-weight: 950;
  line-height: 1;
}

.logo-stars {
  width: min(42vw, 440px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: -4px;
  color: var(--gold);
}

.logo-stars i {
  width: 58%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.logo-hero strong {
  font-size: clamp(108px, 15vw, 220px);
}

.logo-hero b {
  font-size: clamp(82px, 11.4vw, 170px);
}

.logo-large strong {
  font-size: clamp(68px, 9vw, 138px);
}

.logo-large b {
  font-size: clamp(52px, 7vw, 104px);
}

.logo-medium strong {
  font-size: clamp(42px, 5.4vw, 82px);
}

.logo-medium b {
  font-size: clamp(34px, 4.6vw, 66px);
}

.logo-small strong {
  font-size: clamp(34px, 4.4vw, 62px);
}

.logo-small b {
  font-size: clamp(28px, 3.6vw, 50px);
}

.logo-small em,
.logo-medium em {
  font-size: clamp(10px, 1.1vw, 15px);
  padding: 6px 18px;
}

.avatar {
  position: relative;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.9) 0 10%, transparent 11%),
    radial-gradient(circle at 50% 44%, #f3b16c 0 21%, transparent 22%),
    linear-gradient(145deg, var(--avatar), #071a35 64%);
  border: 2px solid var(--avatar-accent);
  box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.42), 0 0 20px color-mix(in srgb, var(--avatar) 58%, transparent);
  overflow: hidden;
}

.avatar::before {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: 0;
  height: 42%;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(180deg, #153a73, #071a35);
}

.avatar b {
  position: relative;
  z-index: 1;
  margin-top: 34%;
  color: #ffffff;
  font-weight: 950;
  text-shadow: 0 2px 4px #000;
}

.avatar.has-image {
  background: #061126;
}

.avatar.has-image::before {
  display: none;
}

.avatar.has-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar.has-image b {
  opacity: 0;
}

.summary-avatar {
  width: 76px;
  height: 76px;
}

.hero-avatar {
  width: min(25vw, 250px);
  height: min(25vw, 250px);
  min-width: 150px;
  min-height: 150px;
}

.mini-avatar {
  width: 80px;
  height: 80px;
}

.tiny-avatar {
  width: 56px;
  height: 56px;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.page-title {
  margin: 12px 0 0;
  text-align: center;
  color: var(--white);
  font-size: clamp(44px, 6.2vw, 74px);
  line-height: 0.95;
  font-weight: 950;
  text-shadow: 0 6px 0 #111, 0 0 22px rgba(242, 182, 50, 0.24);
}

.framed-title {
  width: min(560px, 90vw);
  margin: 0 auto 12px;
  padding: 14px 26px;
  border: 2px solid var(--gold-line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(9, 33, 77, 0.92), rgba(2, 7, 20, 0.95));
}

.page-subtitle {
  max-width: 860px;
  margin: 8px auto 22px;
  text-align: center;
  color: var(--white);
  font-size: clamp(20px, 2.1vw, 29px);
  line-height: 1.22;
  font-weight: 700;
}

.page-subtitle strong,
.green {
  color: var(--green);
}

.red {
  color: var(--red);
}

.version {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  color: var(--white);
  font-size: 17px;
  font-weight: 700;
  opacity: 0.92;
}

.splash-screen {
  display: grid;
  place-items: center;
}

.splash-center {
  width: min(1120px, 96vw);
  display: grid;
  justify-items: center;
  gap: 22px;
  transform: translateY(-2vh);
}

.tagline-rule {
  width: min(940px, 90vw);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  color: var(--white);
}

.tagline-rule span {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.tagline-rule span:last-child {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.tagline-rule p {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 36px);
  font-weight: 850;
  white-space: nowrap;
}

.start-button {
  min-width: min(460px, 86vw);
  min-height: 118px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  padding: 20px 44px;
  background: linear-gradient(180deg, #fff0a8, #f2b632 48%, #b66b08);
  color: #071a35;
  border: 2px solid #fff2bc;
  font-size: clamp(44px, 6vw, 70px);
  font-weight: 950;
  box-shadow: 0 0 34px rgba(242, 182, 50, 0.38), inset 0 2px 0 rgba(255, 255, 255, 0.5);
}

.start-button .icon {
  width: 1.1em;
  height: 1.1em;
}

.splash-corners {
  position: absolute;
  left: clamp(20px, 3vw, 52px);
  right: clamp(20px, 3vw, 52px);
  bottom: clamp(52px, 6vw, 82px);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.menu-screen {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.menu-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.welcome-card,
.player-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  background: rgba(3, 10, 28, 0.86);
  box-shadow: var(--shadow);
}

.welcome-card {
  min-width: 290px;
  padding: 16px 20px;
}

.welcome-card span {
  font-size: 14px;
  font-weight: 950;
}

.welcome-card h2,
.player-summary h2 {
  margin: 0;
  color: var(--gold);
  font-size: 22px;
}

.welcome-card button {
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
}

.player-summary {
  min-width: 320px;
  padding: 12px 18px;
}

.player-summary p {
  margin: 4px 0 6px;
  font-size: 18px;
}

.player-summary strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--gold);
  font-size: 24px;
  font-weight: 950;
}

.menu-hero {
  margin-top: -34px;
  margin-bottom: -32px;
  transform: translateY(-30px);
  pointer-events: none;
}

.menu-layout {
  width: min(1260px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 26px;
  align-items: start;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 16px;
  align-content: center;
}

.menu-tile {
  min-height: 142px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  padding: 18px 12px;
  background:
    linear-gradient(180deg, rgba(10, 45, 108, 0.92), rgba(3, 13, 35, 0.94)),
    radial-gradient(circle at 50% 0, rgba(0, 194, 255, 0.22), transparent 56%);
  border-color: rgba(242, 182, 50, 0.74);
  text-align: center;
  box-shadow: inset 0 0 26px rgba(0, 194, 255, 0.12), 0 12px 30px rgba(0, 0, 0, 0.38);
}

.menu-tile .icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  padding: 13px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  color: #28aaff;
  background: radial-gradient(circle, rgba(0, 194, 255, 0.28), rgba(3, 13, 35, 0.8));
}

.menu-tile strong {
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1;
}

.menu-tile span {
  color: var(--white);
  font-size: 17px;
}

.tile-primary {
  background: linear-gradient(180deg, #fff0a8, #f2b632 48%, #b66b08);
  color: #061126;
  border-color: #fff2bc;
}

.tile-primary .icon {
  color: #061126;
  border-color: #061126;
  background: rgba(255, 255, 255, 0.2);
}

.side-ladder-panel {
  padding: 18px 20px;
  border-color: var(--gold-line);
}

.menu-side-panel {
  min-height: 100%;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  padding: 20px;
  border-color: var(--gold-line);
  text-align: center;
}

.menu-side-panel h2 {
  margin: 0;
  color: var(--gold);
  font-size: 25px;
}

.menu-side-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.menu-side-panel .progress-ring {
  width: 122px;
  height: 122px;
}

.side-ladder-panel h2,
.rules-card h2,
.settings-section h2,
.leaderboard-panel h2,
.assist-right h2 {
  margin: 0 0 14px;
  color: var(--gold);
  text-align: center;
  font-size: 26px;
  font-weight: 950;
}

.panel-link {
  width: 100%;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(19, 125, 255, 0.74), rgba(2, 8, 24, 0.95));
  color: var(--blue);
  font-weight: 950;
  cursor: pointer;
}

.ladder-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ladder-list li {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr 34px;
  align-items: center;
  min-height: 39px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-weight: 850;
}

.ladder-list.compact li {
  min-height: 28px;
  grid-template-columns: 31px 1fr 25px;
  font-size: 14px;
}

.ladder-list.full li {
  min-height: 63px;
  padding: 0 16px;
  border: 1px solid rgba(242, 182, 50, 0.2);
  border-bottom: 0;
  background: linear-gradient(90deg, rgba(6, 27, 64, 0.86), rgba(2, 8, 24, 0.86));
}

.ladder-list.full li:last-child {
  border-bottom: 1px solid rgba(242, 182, 50, 0.2);
}

.ladder-list .level-number {
  color: var(--gold);
  font-weight: 950;
}

.ladder-list strong {
  text-align: center;
}

.ladder-list.full strong {
  font-size: clamp(25px, 3vw, 36px);
}

.ladder-list .icon {
  color: var(--green);
}

.ladder-list .future {
  opacity: 0.72;
}

.ladder-list .current {
  border-color: rgba(0, 194, 255, 0.9);
  background: linear-gradient(180deg, rgba(31, 129, 255, 0.9), rgba(9, 44, 111, 0.94));
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.22), 0 0 22px rgba(0, 194, 255, 0.36);
}

.ladder-list .current i {
  width: 24px;
  height: 24px;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 18px var(--blue);
}

.ladder-list .bronze {
  background: linear-gradient(90deg, rgba(135, 70, 15, 0.9), rgba(3, 13, 35, 0.88));
}

.ladder-list .silver {
  background: linear-gradient(90deg, rgba(148, 164, 184, 0.58), rgba(3, 13, 35, 0.88));
}

.ladder-list .gold {
  background: linear-gradient(90deg, rgba(197, 131, 13, 0.62), rgba(3, 13, 35, 0.88));
}

.menu-footer,
.packs-footer,
.leaderboard-footer {
  width: min(1260px, 100%);
  margin: 8px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
  gap: 16px;
}

.performance-card,
.announcement-card,
.includes-card,
.quick-card,
.rank-card,
.update-card,
.share-card {
  min-height: 132px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 26px;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(5, 21, 52, 0.94), rgba(2, 7, 20, 0.94));
  box-shadow: var(--shadow);
}

.performance-card > .icon,
.announcement-card > .icon:first-child,
.includes-card > .icon,
.quick-card > .icon,
.rank-card > .icon,
.update-card > .icon {
  width: 78px;
  height: 78px;
  padding: 16px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(242, 182, 50, 0.12);
}

.menu-host-art {
  width: 92px;
  height: 92px;
  flex: 0 0 auto;
  border: 2px solid var(--gold);
  border-radius: 8px;
  object-fit: cover;
  object-position: center top;
  background: rgba(2, 7, 20, 0.9);
}

.performance-card h3,
.announcement-card b,
.includes-card h2,
.quick-card h2 {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 20px;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(84px, 1fr));
  gap: 18px;
}

.mini-stats span {
  display: grid;
  gap: 4px;
  text-align: center;
}

.mini-stats b {
  font-size: 28px;
  color: var(--white);
}

.mini-stats small,
.announcement-card small {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.announcement-card,
.share-card {
  width: 100%;
  text-align: left;
}

.announcement-card span,
.share-card span {
  display: grid;
  gap: 5px;
}

.announcement-card strong,
.share-card {
  font-size: 20px;
  font-weight: 900;
}

.rules-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.rules-card {
  padding: 28px;
}

.rules-card p {
  color: var(--white);
  font-size: 20px;
  line-height: 1.36;
}

.goal-art {
  height: 210px;
  position: relative;
  margin: 6px 0 18px;
}

.goal-art .icon {
  position: absolute;
  right: 6px;
  top: 12px;
  width: 56px;
  height: 56px;
  color: var(--gold);
}

.stairs {
  position: absolute;
  inset: 24px 38px 20px 78px;
}

.stairs span {
  position: absolute;
  right: calc(var(--i) * 36px);
  bottom: calc(var(--i) * 22px);
  width: 72px;
  height: 24px;
  border: 2px solid var(--gold);
  background: linear-gradient(180deg, rgba(0, 194, 255, 0.85), rgba(9, 44, 111, 0.95));
  box-shadow: 0 0 16px rgba(0, 194, 255, 0.38);
}

.checkpoint-rows {
  display: grid;
  gap: 10px;
}

.checkpoint-rows p {
  margin: 0;
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 10px;
  color: var(--white);
}

.checkpoint-dot {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid currentColor;
}

.checkpoint-dot.bronze {
  color: #d97706;
}

.checkpoint-dot.silver {
  color: #cbd5e1;
}

.checkpoint-dot.gold {
  color: var(--gold);
}

.checkpoint-rows small {
  color: var(--white);
}

.flow-step,
.lifeline-explainer {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  align-items: center;
  margin: 16px 0;
}

.flow-step > span,
.lifeline-explainer > span {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  color: var(--blue);
  background: rgba(0, 194, 255, 0.12);
}

.flow-step h3,
.lifeline-explainer h3 {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 24px;
}

.flow-step:nth-of-type(4) h3 {
  color: var(--green);
}

.flow-step:nth-of-type(5) h3 {
  color: var(--red);
}

.flow-step p,
.lifeline-explainer p {
  margin: 0;
}

.win-lose-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  margin-top: 22px;
}

.outcome-card {
  min-height: 154px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 30px;
}

.outcome-card > .icon {
  width: 86px;
  height: 86px;
  color: var(--gold);
}

.outcome-card h2 {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 32px;
}

.outcome-card p {
  margin: 0;
  font-size: 20px;
  line-height: 1.32;
}

.danger-tone > .icon,
.danger-tone h2 {
  color: var(--red);
}

.setup-screen .show-logo,
.packs-screen .show-logo,
.upload-screen .show-logo,
.ladder-screen .show-logo,
.leaderboard-screen .show-logo,
.settings-screen .show-logo,
.results-screen .show-logo,
.certificate-screen .show-logo {
  margin: -18px auto 8px;
}

.setup-panel {
  width: min(1300px, 94vw);
  margin: 0 auto;
  padding: 34px 42px 0;
  border-color: var(--gold-line);
}

.setup-panel h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(46px, 6vw, 78px);
  line-height: 0.95;
}

.setup-panel > p {
  margin: 12px 0 26px;
  text-align: center;
  font-size: 24px;
}

.setup-content {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(360px, 1fr);
  gap: 34px;
}

.avatar-side {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding-right: 30px;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.avatar-side h2,
.avatar-side h3,
.form-side b {
  color: var(--gold);
  margin: 0;
  font-size: 20px;
}

.avatar-carousel {
  display: flex;
  align-items: center;
  gap: 26px;
}

.round-nav {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  background: rgba(2, 7, 20, 0.86);
  color: var(--gold);
}

.avatar-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(74px, 84px));
  justify-content: center;
  gap: 14px;
  width: min(540px, 100%);
}

.avatar-chip {
  width: 100%;
  aspect-ratio: 1;
  min-height: 74px;
  display: grid;
  place-items: center;
  padding: 4px;
  background: rgba(2, 7, 20, 0.72);
  border-color: rgba(0, 194, 255, 0.55);
}

.avatar-chip .mini-avatar {
  width: 100%;
  height: 100%;
}

.avatar-chip.selected {
  border-color: var(--gold-2);
  box-shadow: 0 0 20px rgba(242, 182, 50, 0.34);
}

.form-side {
  display: grid;
  gap: 18px;
}

.field-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  grid-template-areas: "icon label" "icon control";
  gap: 8px 18px;
  align-items: center;
}

.field-row > span {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(0, 194, 255, 0.62);
  border-radius: 50%;
  color: var(--blue);
  background: rgba(0, 194, 255, 0.12);
}

.field-row b {
  grid-area: label;
}

.field-row input,
.field-row select {
  grid-area: control;
}

.pack-note {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid rgba(0, 194, 255, 0.55);
  border-radius: 8px;
  background: rgba(0, 194, 255, 0.08);
}

.pack-note .icon {
  width: 54px;
  height: 54px;
  color: var(--blue);
}

.pack-note strong {
  color: var(--blue);
}

.pack-note p {
  margin: 8px 0 0;
  font-size: 18px;
  line-height: 1.35;
}

.continue-button {
  width: min(420px, 80vw);
  min-height: 76px;
  position: relative;
  left: 50%;
  top: 38px;
  transform: translateX(-50%);
  font-size: 32px;
}

.continue-button:hover {
  transform: translateX(-50%) translateY(-2px);
}

.packs-header {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: end;
  margin: 4px 0 16px;
}

.packs-header h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
}

.packs-header p {
  margin: 8px 0 0;
  font-size: 20px;
}

.pack-tools {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) 190px;
  gap: 12px;
  width: min(520px, 100%);
}

.pack-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  gap: 12px;
}

.pack-card {
  min-height: 150px;
  display: grid;
  grid-template-columns: 96px 1fr;
  grid-template-rows: 1fr auto;
  gap: 10px 18px;
  align-items: center;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(10, 39, 93, 0.88), rgba(2, 8, 24, 0.92));
  border-color: rgba(242, 182, 50, 0.74);
  text-align: left;
}

.pack-icon {
  grid-row: span 2;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.pack-icon .icon {
  width: 42px;
  height: 42px;
}

.difficulty-easy {
  color: var(--green);
}

.difficulty-medium {
  color: var(--gold);
}

.difficulty-hard {
  color: var(--red);
}

.pack-copy {
  display: grid;
  gap: 8px;
}

.pack-copy strong {
  font-size: 21px;
}

.pack-copy small {
  color: var(--white);
  font-size: 17px;
  line-height: 1.24;
}

.pack-meta {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
  font-size: 13px;
}

.pack-meta i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted);
}

.difficulty-dot::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 50%;
  background: currentColor;
}

.packs-footer {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
}

.includes-card ul {
  columns: 2;
  margin: 0;
  padding-left: 20px;
  font-size: 18px;
  line-height: 1.5;
}

.quick-card .gold-button {
  margin-left: auto;
  min-width: 230px;
}

.upload-panel {
  width: min(900px, 94vw);
  margin: 18px auto 0;
  padding: 34px;
  text-align: center;
}

.upload-panel h1 {
  margin: 0 0 10px;
  font-size: 54px;
}

.upload-panel p {
  font-size: 19px;
  line-height: 1.35;
}

.drop-zone {
  position: relative;
  min-height: 220px;
  display: grid;
  place-items: center;
  gap: 10px;
  margin: 26px 0;
  padding: 30px;
  border: 2px dashed rgba(0, 194, 255, 0.7);
  border-radius: 8px;
  background: rgba(0, 194, 255, 0.08);
  cursor: pointer;
}

.drop-zone .icon {
  width: 72px;
  height: 72px;
  color: var(--blue);
}

.drop-zone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.message {
  margin: 10px 0;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 800;
}

.error-message {
  background: rgba(255, 59, 39, 0.14);
  color: #ffc7c0;
}

.warning-message {
  background: rgba(242, 182, 50, 0.14);
  color: #ffe28a;
}

.success-message {
  background: rgba(110, 227, 38, 0.14);
  color: #cbffb0;
}

.screen-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 22px;
}

.ladder-layout {
  display: grid;
  grid-template-columns: 250px minmax(360px, 1fr) 290px;
  gap: 24px;
  align-items: start;
  width: min(1180px, 100%);
  margin: 18px auto;
}

.legend-panel,
.ladder-side .show-panel {
  padding: 22px;
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
  font-size: 19px;
}

.legend-row span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--gold);
}

.legend-row .current {
  border-color: var(--blue);
  box-shadow: 0 0 14px var(--blue);
}

.legend-row .done {
  border-color: var(--green);
  background: var(--green);
}

.full-ladder {
  border: 1px solid var(--gold-line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.ladder-side {
  display: grid;
  gap: 22px;
}

.ladder-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(5px);
}

.ladder-modal {
  width: min(980px, 100%);
  max-height: min(96vh, 980px);
  overflow: auto;
  padding: 14px;
  border-color: var(--gold-line);
}

.ladder-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}

.ladder-modal-header h2 {
  margin: 0;
  color: var(--gold);
  font-size: clamp(28px, 3vw, 38px);
}

.ladder-modal-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.ladder-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 18px;
  align-items: start;
}

.ladder-modal-side {
  display: grid;
  gap: 14px;
}

.ladder-modal .ladder-list.full li {
  min-height: 34px;
  padding: 2px 12px;
}

.ladder-modal .ladder-list.full strong {
  font-size: 22px;
}

.ladder-modal .ladder-list .level-number {
  font-size: 16px;
}

.trophy-panel,
.progress-panel,
.tip-panel {
  text-align: center;
}

.trophy-panel > .icon {
  width: 120px;
  height: 120px;
  color: var(--gold);
}

.progress-ring {
  --deg: calc(var(--progress) * 3.6deg);
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #071a35 0 51%, transparent 52%),
    conic-gradient(var(--green) 0 var(--deg), var(--blue-2) var(--deg) 360deg);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4), 0 0 22px rgba(0, 194, 255, 0.28);
}

.progress-ring strong {
  font-size: 36px;
}

.score-ribbon {
  width: min(860px, 100%);
  min-height: 112px;
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  background: rgba(3, 10, 28, 0.9);
}

.score-ribbon span {
  display: grid;
  grid-template-columns: 76px 1fr;
  grid-template-areas: "icon label" "icon value";
  align-items: center;
  gap: 0 18px;
  padding: 22px;
}

.score-ribbon span + span {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.score-ribbon .icon {
  grid-area: icon;
  width: 58px;
  height: 58px;
  color: var(--blue);
}

.score-ribbon b {
  color: var(--blue);
  font-size: 18px;
}

.score-ribbon strong {
  font-size: 40px;
}

.question-screen {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
  padding-bottom: 22px;
}

.question-header {
  display: grid;
  grid-template-columns: 300px 1fr 430px;
  align-items: start;
  gap: 20px;
}

.question-header .show-logo {
  margin-top: -18px;
}

.question-meta-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  background: rgba(3, 10, 28, 0.88);
  box-shadow: var(--shadow);
}

.question-meta-card span {
  min-height: 82px;
  display: grid;
  place-items: center;
  padding: 12px;
  text-align: center;
}

.question-meta-card span + span {
  border-left: 1px solid rgba(242, 182, 50, 0.35);
}

.question-meta-card b {
  color: var(--blue);
  font-size: 15px;
}

.question-meta-card strong {
  color: var(--gold);
  font-size: 20px;
}

.question-grid {
  display: grid;
  grid-template-columns: minmax(0, 1120px);
  justify-content: center;
  width: min(1220px, 100%);
  margin: 0 auto;
  gap: 22px;
  align-items: stretch;
}

.question-toolbar,
.assist-toolbar {
  width: min(1220px, 100%);
  margin: 0 auto 6px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: stretch;
}

.assist-top-controls {
  width: min(1220px, 100%);
  margin: 0 auto 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 14px;
  align-items: stretch;
}

.compact-tip {
  min-height: 76px;
  padding: 12px 18px;
}

.compact-tip > .icon {
  width: 44px;
  height: 44px;
}

.compact-tip p {
  font-size: 17px;
}

.compact-return {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "label icon" "note icon";
  min-height: 76px;
  padding: 12px 18px;
  line-height: 1.05;
}

.compact-return b {
  grid-area: label;
}

.compact-return span {
  grid-area: note;
  font-size: 13px;
  font-weight: 800;
  text-transform: none;
}

.compact-return .icon {
  grid-area: icon;
}

.lifeline-bar {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-color: var(--gold-line);
}

.lifeline-bar-title {
  color: var(--gold);
  font-size: 18px;
  font-weight: 950;
}

.lifeline-chip-row {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(82px, 1fr));
  gap: 8px;
}

.lifeline-chip {
  min-width: 0;
  min-height: 64px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid rgba(0, 194, 255, 0.55);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(7, 32, 78, 0.9), rgba(2, 8, 24, 0.94));
  color: var(--white);
  text-align: left;
}

.lifeline-chip:hover,
.lifeline-chip.active {
  border-color: var(--gold-2);
  box-shadow: 0 0 18px rgba(242, 182, 50, 0.24), inset 0 0 18px rgba(0, 194, 255, 0.2);
}

.lifeline-chip-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--blue);
  font-size: 11px;
  font-weight: 950;
}

.lifeline-chip[data-lifeline="audience"] .lifeline-chip-icon,
.lifeline-chip[data-lifeline="audience"] b {
  color: var(--purple);
}

.lifeline-chip[data-lifeline="phone"] .lifeline-chip-icon,
.lifeline-chip[data-lifeline="phone"] b {
  color: var(--purple);
}

.lifeline-chip[data-lifeline="expert"] .lifeline-chip-icon,
.lifeline-chip[data-lifeline="expert"] b {
  color: var(--green);
}

.lifeline-chip[data-lifeline="extra"] .lifeline-chip-icon,
.lifeline-chip[data-lifeline="extra"] b {
  color: var(--gold);
}

.lifeline-chip b {
  min-width: 0;
  color: var(--blue);
  font-size: 14px;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lifeline-chip i {
  min-width: 27px;
  padding: 4px 5px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 6px;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  text-align: center;
}

.lifeline-chip.used {
  opacity: 0.54;
}

.ladder-open-button {
  min-width: 190px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--gold-line);
  border-radius: 8px;
  color: var(--gold);
  font-size: 16px;
  font-weight: 950;
  text-transform: uppercase;
}

.ladder-open-button .icon {
  width: 30px;
  height: 30px;
  color: var(--blue);
}

.lifeline-rail {
  align-self: center;
  padding: 18px;
  border-color: var(--gold-line);
}

.lifeline-rail h2 {
  margin: 0 0 12px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(242, 182, 50, 0.38);
  color: var(--gold);
  text-align: center;
  font-size: 26px;
}

.lifeline-button {
  width: 100%;
  min-height: 95px;
  display: grid;
  grid-template-columns: 70px 1fr 38px;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  text-align: left;
}

.lifeline-button.active,
.lifeline-button:hover {
  margin-inline: -10px;
  padding-inline: 10px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: rgba(0, 194, 255, 0.12);
}

.lifeline-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  color: var(--blue);
  background: rgba(0, 194, 255, 0.1);
}

.lifeline-icon.audience,
.lifeline-icon .icon-people,
.lifeline-button[data-lifeline="audience"] .lifeline-icon {
  color: var(--purple);
}

.lifeline-button[data-lifeline="phone"] .lifeline-icon {
  color: var(--purple);
}

.lifeline-button[data-lifeline="expert"] .lifeline-icon {
  color: var(--green);
}

.lifeline-button[data-lifeline="extra"] .lifeline-icon {
  color: var(--gold);
}

.lifeline-button b {
  display: block;
  color: var(--blue);
  font-size: 20px;
  line-height: 1.05;
}

.lifeline-button[data-lifeline="audience"] b {
  color: var(--purple);
}

.lifeline-button[data-lifeline="phone"] b {
  color: var(--purple);
}

.lifeline-button[data-lifeline="expert"] b {
  color: var(--green);
}

.lifeline-button[data-lifeline="extra"] b {
  color: #ff8a00;
}

.lifeline-button small {
  display: block;
  margin-top: 7px;
  color: var(--white);
  font-size: 15px;
  line-height: 1.22;
}

.lifeline-button i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  font-style: normal;
  font-weight: 900;
}

.question-main {
  min-width: 0;
  align-self: center;
  width: min(1120px, 100%);
  justify-self: center;
}

.question-card {
  min-height: 230px;
  display: grid;
  place-items: center;
  padding: 36px 56px;
  border-color: var(--gold-line);
  box-shadow: var(--shadow), inset 0 0 34px rgba(0, 194, 255, 0.16);
}

.host-controls {
  width: min(960px, 100%);
  margin: 16px auto 0;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-color: rgba(242, 182, 50, 0.78);
  background: linear-gradient(90deg, rgba(90, 46, 0, 0.76), rgba(3, 20, 54, 0.94));
}

.host-control-portrait {
  width: 88px;
  height: 88px;
  border: 2px solid var(--gold);
  border-radius: 8px;
  object-fit: cover;
  background: rgba(2, 7, 20, 0.9);
}

.host-control-copy {
  min-width: 0;
}

.host-control-copy b {
  display: block;
  color: var(--gold);
  font-size: 14px;
  font-weight: 950;
}

.host-control-copy h2 {
  margin: 2px 0 4px;
  font-size: 25px;
}

.host-control-copy p {
  margin: 0;
  color: var(--white);
  font-size: 17px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.host-control-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 10px;
}

.question-card h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.35;
}

.answer-label {
  margin: 14px auto 12px;
  width: max-content;
  max-width: 100%;
  padding: 0 18px;
  color: var(--gold);
  font-size: 20px;
  font-weight: 950;
}

.answers {
  display: grid;
  gap: 14px;
}

.answer-choice {
  position: relative;
  min-height: 78px;
  display: grid;
  grid-template-columns: 84px 1fr;
  align-items: center;
  padding: 0 34px 0 34px;
  border: 2px solid rgba(0, 194, 255, 0.7);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(7, 32, 78, 0.96), rgba(2, 8, 24, 0.98));
  color: var(--white);
  text-align: left;
  clip-path: polygon(3% 0, 100% 0, 97% 50%, 100% 100%, 3% 100%, 0 50%);
  box-shadow: inset 0 0 20px rgba(0, 194, 255, 0.12);
}

.answer-choice b {
  display: grid;
  place-items: center;
  width: 56px;
  height: 48px;
  border: 2px solid var(--blue);
  clip-path: polygon(22% 0, 78% 0, 100% 50%, 78% 100%, 22% 100%, 0 50%);
  color: var(--white);
  font-size: 27px;
}

.answer-choice span {
  min-width: 0;
  font-size: clamp(20px, 2vw, 31px);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.answer-choice.selected,
.answer-choice:hover {
  border-color: var(--green);
  background: linear-gradient(180deg, rgba(37, 145, 17, 0.94), rgba(7, 76, 13, 0.98));
  box-shadow: 0 0 22px rgba(110, 227, 38, 0.34);
}

.answer-choice.eliminated {
  filter: grayscale(0.9);
  opacity: 0.38;
}

.media-frame {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  margin: 0 auto 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(2, 7, 20, 0.86);
}

.audio-frame {
  height: 80px;
}

.question-side .side-ladder-panel {
  height: 100%;
}

.question-footer {
  display: grid;
  grid-template-columns: 170px 1fr 330px;
  align-items: end;
  gap: 20px;
}

.footer-actions {
  display: flex;
  justify-content: end;
  gap: 16px;
}

.timer-badge {
  --deg: calc(var(--pct) * 3.6deg);
  justify-self: center;
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #071a35 0 48%, transparent 49%),
    conic-gradient(var(--gold) 0 var(--deg), var(--blue-2) var(--deg) 360deg);
  border: 3px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 0 26px rgba(0, 194, 255, 0.32);
}

.timer-badge strong {
  margin-top: 16px;
  font-size: 44px;
}

.timer-badge span {
  margin-top: -26px;
  font-size: 12px;
  font-weight: 950;
}

.timer-badge.no-limit {
  background:
    radial-gradient(circle at center, #071a35 0 48%, transparent 49%),
    conic-gradient(var(--blue) 0 360deg);
}

.timer-badge.no-limit strong {
  font-size: 30px;
}

.confirm-screen {
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  gap: 12px;
  min-height: 100svh;
}

.final-answer-panel {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1fr);
  gap: clamp(14px, 2vw, 24px);
  align-items: stretch;
  padding: clamp(16px, 2vw, 22px);
  overflow: hidden;
}

.host-final-image {
  height: min(46vh, 360px);
  min-height: 260px;
  margin: 0;
  border: 1px solid rgba(190, 202, 232, 0.42);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(2, 7, 20, 0.86);
}

.host-final-image img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  background: rgba(2, 7, 20, 0.94);
}

.final-answer-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.final-answer-copy .assist-icon {
  width: 56px;
  height: 56px;
  font-size: 21px;
}

.final-answer-copy .assist-icon {
  color: var(--blue);
}

.final-answer-copy h1 {
  margin: 0;
  color: var(--gold);
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.45);
}

.final-answer-copy p {
  max-width: 720px;
  margin: 0;
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 850;
  line-height: 1.22;
}

.final-answer-copy .final-answer-prompt {
  color: var(--blue);
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.final-answer-choice {
  width: min(680px, 100%);
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(0, 194, 255, 0.82);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(0, 96, 40, 0.92), rgba(0, 45, 18, 0.94));
  box-shadow: inset 0 0 18px rgba(110, 227, 38, 0.24), 0 0 24px rgba(110, 227, 38, 0.18);
  text-align: left;
}

.final-answer-choice b {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--blue);
  border-radius: 8px;
  color: var(--white);
  font-size: 26px;
}

.final-answer-choice span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 950;
}

.final-answer-timer .timer-badge {
  width: 78px;
  height: 78px;
}

.final-answer-timer .timer-badge strong {
  font-size: 30px;
  margin-top: 10px;
}

.final-answer-timer .timer-badge span {
  margin-top: -18px;
  font-size: 10px;
}

.final-answer-panel .screen-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.confirm-screen .question-header .show-logo {
  margin-top: -12px;
  transform: scale(0.88);
  transform-origin: top center;
}

.assist-screen {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 18px;
}

.assist-header {
  display: grid;
  grid-template-columns: 310px 1fr 360px;
  align-items: start;
  gap: 18px;
}

.assist-header .show-logo {
  margin-top: -26px;
}

.assist-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: stretch;
  width: min(1220px, 100%);
  margin: 0 auto;
}

.assist-main {
  padding: 22px 30px;
}

.glow-purple {
  border-color: rgba(196, 92, 255, 0.85);
  box-shadow: var(--shadow), 0 0 28px rgba(196, 92, 255, 0.22);
}

.glow-blue {
  border-color: rgba(0, 194, 255, 0.9);
  box-shadow: var(--shadow), 0 0 28px rgba(0, 194, 255, 0.22);
}

.glow-green {
  border-color: rgba(110, 227, 38, 0.9);
  box-shadow: var(--shadow), 0 0 28px rgba(110, 227, 38, 0.2);
}

.assist-title-row {
  display: grid;
  grid-template-columns: 92px 1fr 74px;
  gap: 16px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0, 194, 255, 0.28);
}

.assist-title-row h1 {
  margin: 0;
  color: var(--purple);
  font-size: clamp(30px, 3.8vw, 52px);
  line-height: 0.95;
}

.fifty-screen .assist-title-row h1 {
  color: var(--blue);
}

.expert-screen .assist-title-row h1 {
  color: var(--green);
}

.assist-title-row p {
  margin: 7px 0 0;
  font-size: 21px;
  font-weight: 800;
}

.assist-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 28px;
  font-weight: 950;
}

.assist-icon .icon {
  width: 42px;
  height: 42px;
}

.assist-icon.purple {
  color: var(--purple);
}

.assist-icon.blue {
  color: var(--blue);
}

.assist-icon.green {
  color: var(--green);
}

.countdown-badge {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--purple) 0 82%, rgba(196, 92, 255, 0.24) 82%);
  font-weight: 950;
}

.countdown-badge strong {
  margin-top: 10px;
  font-size: 34px;
  line-height: 1;
}

.countdown-badge span {
  margin-top: -18px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0;
}

.assist-main h2 {
  margin: 16px 0;
  text-align: center;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.18;
}

.poll-bars,
.fifty-answers {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(196, 92, 255, 0.28);
  border-radius: 8px;
  background: rgba(3, 10, 28, 0.72);
}

.poll-row {
  display: grid;
  grid-template-columns: 62px 1fr minmax(160px, 0.8fr) 72px;
  align-items: center;
  gap: 18px;
  min-height: 62px;
}

.poll-row b,
.fifty-row b {
  display: grid;
  place-items: center;
  width: 50px;
  height: 44px;
  border: 2px solid var(--blue);
  clip-path: polygon(22% 0, 78% 0, 100% 50%, 78% 100%, 22% 100%, 0 50%);
  font-size: 27px;
}

.poll-row span,
.fifty-row span {
  font-size: 22px;
  font-weight: 850;
}

.poll-row .bar {
  height: 26px;
  border: 1px solid rgba(0, 194, 255, 0.28);
  border-radius: 4px;
  background: rgba(2, 7, 20, 0.9);
  overflow: hidden;
}

.poll-row .bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue-2), var(--blue));
}

.poll-row.best {
  color: var(--green);
}

.poll-row.best .bar i {
  background: linear-gradient(90deg, var(--green), #b6ff46);
}

.poll-row strong {
  font-size: 29px;
  text-align: right;
}

.assist-note {
  width: max-content;
  max-width: 100%;
  margin: 12px auto 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
}

.fifty-row {
  min-height: 60px;
  display: grid;
  grid-template-columns: 70px 1fr 64px;
  gap: 18px;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(7, 32, 78, 0.94), rgba(2, 8, 24, 0.94));
}

.fifty-row.removed {
  opacity: 0.42;
  filter: grayscale(0.95);
}

.fifty-row.removed > .icon {
  justify-self: end;
  width: 46px;
  height: 46px;
  color: var(--red);
}

.expert-card {
  display: grid;
  grid-template-columns: 210px 1fr 170px;
  gap: 22px;
  align-items: stretch;
  padding: 20px;
  border: 1px solid rgba(110, 227, 38, 0.7);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(15, 83, 20, 0.68), rgba(2, 8, 24, 0.92));
}

.lifeline-photo {
  min-height: 240px;
  margin: 0;
  border: 1px solid rgba(242, 182, 50, 0.58);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(2, 7, 20, 0.88);
}

.lifeline-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.phone-card {
  border-color: rgba(203, 92, 255, 0.72);
  background: linear-gradient(90deg, rgba(72, 22, 110, 0.72), rgba(2, 8, 24, 0.92));
}

.expert-copy h3 {
  margin: 0;
  color: var(--green);
  font-size: 30px;
}

.expert-copy b {
  display: block;
  margin: 4px 0 20px;
  font-size: 20px;
}

.expert-copy blockquote {
  margin: 0 0 20px;
  color: var(--white);
  font-size: 21px;
  line-height: 1.36;
}

.expert-copy strong {
  display: inline-block;
  min-width: 220px;
  padding: 14px 24px;
  clip-path: polygon(8% 0, 92% 0, 100% 50%, 92% 100%, 8% 100%, 0 50%);
  background: linear-gradient(180deg, #7be527, #3e980e);
  font-size: 28px;
}

.confidence {
  display: grid;
  place-items: center;
  text-align: center;
  border-left: 1px solid rgba(110, 227, 38, 0.32);
}

.confidence .progress-ring {
  width: 118px;
  height: 118px;
}

.confidence b {
  color: var(--green);
}

.assist-right {
  display: grid;
  gap: 12px;
}

.assist-right .show-panel {
  padding: 14px;
}

.assist-right h2 {
  margin-bottom: 8px;
  font-size: 23px;
}

.progress-summary {
  display: grid;
  grid-template-columns: 112px 1fr;
  align-items: center;
  gap: 10px;
}

.progress-summary h2 {
  grid-column: 1 / -1;
}

.progress-summary .progress-ring {
  width: 106px;
  height: 106px;
}

.progress-summary .progress-ring strong {
  font-size: 28px;
}

.score-summary {
  display: grid;
  grid-template-columns: 68px 1fr;
  align-items: center;
  gap: 10px;
}

.score-summary .icon {
  grid-row: span 3;
  width: 62px;
  height: 62px;
  color: var(--gold);
}

.score-summary strong {
  color: var(--gold);
  font-size: 38px;
  line-height: 1;
}

.mini-leaders p {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 10px;
  margin: 6px 0;
  padding: 7px;
  border-radius: 6px;
  background: rgba(19, 125, 255, 0.12);
}

.assist-bottom {
  display: grid;
  grid-template-columns: minmax(280px, 440px) minmax(320px, 1fr);
  gap: 22px;
  align-items: center;
  width: min(1080px, 100%);
  margin: 0 auto;
}

.checkpoint-actions {
  width: min(760px, 100%);
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px;
}

.tip-card {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 110px;
  padding: 18px 24px;
  border-color: var(--gold-line);
}

.tip-card > .icon {
  width: 64px;
  height: 64px;
  color: var(--gold);
}

.tip-card p {
  margin: 0;
  font-size: 20px;
}

.tip-card b {
  display: block;
  color: var(--gold);
  font-size: 28px;
}

.return-button {
  min-height: 104px;
  display: grid;
  gap: 4px;
  font-size: 32px;
}

.return-button span {
  display: block;
  font-size: 19px;
  text-transform: none;
}

.feedback-screen,
.checkpoint-screen,
.winner-screen,
.pause-screen,
.certificate-screen {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 24px;
}

.feedback-card,
.checkpoint-card,
.winner-card,
.pause-panel {
  width: min(760px, 94vw);
  padding: 38px;
  text-align: center;
}

.feedback-icon {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.feedback-icon .icon {
  width: 64px;
  height: 64px;
}

.success-frame {
  border-color: var(--green);
}

.success-frame .feedback-icon,
.success-frame h1 {
  color: var(--green);
}

.error-frame {
  border-color: var(--red);
}

.error-frame .feedback-icon,
.error-frame h1 {
  color: var(--red);
}

.feedback-card h1 {
  margin: 0;
  font-size: 58px;
}

.feedback-card > p {
  font-size: 23px;
}

.explanation-box {
  margin: 24px 0;
  padding: 20px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
  text-align: left;
}

.explanation-box h2 {
  margin: 0 0 10px;
}

.explanation-box p {
  margin: 0;
  font-size: 19px;
  line-height: 1.45;
}

.correct-reveal,
.checkpoint-return {
  margin: 14px auto;
  padding: 14px 18px;
  border-radius: 8px;
  background: rgba(110, 227, 38, 0.14);
  color: var(--green);
  font-size: 24px;
  font-weight: 950;
}

.checkpoint-return {
  background: rgba(255, 59, 39, 0.14);
  color: #ffd0ca;
}

.checkpoint-badge {
  width: 170px;
  height: 170px;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  border: 4px solid currentColor;
  border-radius: 50%;
}

.checkpoint-badge .icon {
  width: 96px;
  height: 96px;
}

.checkpoint-badge.bronze,
.bronze-frame h1 {
  color: #d97706;
}

.checkpoint-badge.silver,
.silver-frame h1 {
  color: #cbd5e1;
}

.checkpoint-badge.gold,
.gold-frame h1 {
  color: var(--gold);
}

.checkpoint-card h1,
.winner-card h1,
.winner-card h2 {
  margin: 0;
  font-size: clamp(44px, 5vw, 70px);
  line-height: 1.02;
}

.checkpoint-card p {
  font-size: 24px;
}

.winner-card > .icon {
  width: 130px;
  height: 130px;
  color: var(--gold);
}

.winner-card h2 {
  margin: 12px 0;
  color: var(--gold);
}

.winner-card > strong {
  display: block;
  margin: 18px 0;
  color: var(--gold);
  font-size: 42px;
}

.winner-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0;
}

.winner-stats span {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.winner-stats b {
  display: block;
  font-size: 30px;
}

.results-grid {
  width: min(1040px, 100%);
  margin: 20px auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.metric-card,
.chart-panel {
  padding: 22px;
  text-align: center;
}

.metric-card h2,
.chart-panel h2 {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 18px;
}

.metric-card strong {
  color: var(--green);
  font-size: 48px;
}

.metric-card p,
.chart-panel p {
  margin: 8px 0 0;
}

.wide {
  grid-column: span 2;
}

.line-chart {
  position: relative;
  height: 180px;
  border-left: 1px solid rgba(0, 194, 255, 0.3);
  border-bottom: 1px solid rgba(0, 194, 255, 0.3);
  background: linear-gradient(rgba(0, 194, 255, 0.08) 1px, transparent 1px) 0 0 / 100% 36px;
}

.line-chart i {
  position: absolute;
  left: calc(var(--x) * 8%);
  bottom: 0;
  width: 8px;
  height: var(--h);
  border-radius: 4px 4px 0 0;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(242, 182, 50, 0.44);
}

.leaderboard-title {
  text-align: center;
  margin: -12px 0 12px;
}

.leaderboard-title h1 {
  display: inline-block;
  margin: 0;
  color: var(--gold);
  font-size: clamp(48px, 6vw, 74px);
  line-height: 1;
  text-shadow: 0 5px 0 #311900, 0 0 20px rgba(242, 182, 50, 0.35);
}

.leaderboard-title p {
  margin: 6px 0 0;
  font-size: 24px;
}

.leaderboard-panel {
  width: min(1180px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border-color: var(--gold-line);
}

.leaderboard-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(150px, 190px);
  border-bottom: 1px solid var(--line);
}

.leaderboard-tabs button,
.leaderboard-tabs select {
  min-height: 58px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: var(--white);
  font-size: 20px;
  font-weight: 950;
}

.leaderboard-tabs .selected {
  background: linear-gradient(180deg, var(--blue-2), #064391);
}

.leaderboard-table {
  display: grid;
}

.leader-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) minmax(130px, 190px) minmax(105px, 150px);
  align-items: center;
  min-height: 86px;
  gap: 14px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.leader-row > span {
  min-width: 0;
}

.leader-row.head {
  min-height: 54px;
  color: var(--muted);
  font-weight: 950;
}

.leader-row.winner {
  border: 2px solid var(--gold);
  border-radius: 8px;
  background: rgba(242, 182, 50, 0.08);
}

.rank {
  color: var(--white);
  font-size: 32px;
  font-weight: 950;
}

.leader-player {
  display: grid;
  grid-template-columns: 64px 1fr;
  grid-template-areas: "avatar name" "avatar team";
  gap: 0 14px;
  align-items: center;
  min-width: 0;
}

.leader-player .avatar {
  grid-area: avatar;
}

.leader-player b {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 24px;
}

.leader-player small {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--blue);
  font-size: 16px;
}

.leader-score {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
}

.leader-score .icon {
  width: 30px;
  height: 30px;
}

.leader-score b {
  font-size: 30px;
}

.rank-card,
.update-card {
  min-height: 150px;
}

.medal-number {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 3px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 40px;
  font-weight: 950;
}

.share-card {
  background: linear-gradient(180deg, rgba(86, 35, 180, 0.92), rgba(26, 12, 75, 0.96));
  border-color: var(--purple);
}

.settings-layout {
  width: min(1180px, 100%);
  margin: 16px auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
  padding: 16px;
  border-color: var(--line);
}

.settings-nav {
  display: grid;
  align-content: start;
}

.settings-nav button {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  text-align: left;
  font-size: 20px;
  font-weight: 950;
  cursor: pointer;
}

.settings-nav button.selected {
  background: linear-gradient(180deg, var(--blue-2), #064391);
}

.settings-nav .icon {
  width: 34px;
  height: 34px;
  color: var(--muted);
}

.settings-main {
  display: grid;
  gap: 16px;
}

.settings-section {
  padding: 18px 22px;
  border: 1px solid rgba(0, 194, 255, 0.42);
  border-radius: 8px;
  background: rgba(2, 8, 24, 0.46);
}

.settings-section h2 {
  text-align: left;
  color: var(--blue);
}

.setting-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 260px) auto;
  gap: 18px;
  align-items: center;
  min-height: 52px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-size: 19px;
}

.setting-row:first-of-type {
  border-top: 0;
}

.range-row input {
  accent-color: var(--blue-2);
  padding-inline: 0;
}

.toggle-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-visual {
  justify-self: end;
  width: 62px;
  height: 34px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.toggle-visual::after {
  content: "";
  display: block;
  width: 28px;
  height: 28px;
  margin: 2px;
  border-radius: 50%;
  background: white;
  transition: transform 140ms ease;
}

.toggle-input:checked + .toggle-visual {
  background: linear-gradient(180deg, var(--blue), var(--blue-2));
}

.toggle-input:checked + .toggle-visual::after {
  transform: translateX(28px);
}

.settings-actions {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 16px;
}

.settings-profile {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.settings-profile .summary-avatar {
  width: 76px;
  height: 76px;
}

.settings-profile .field-row + .field-row {
  margin-top: 14px;
}

.inline-action {
  margin-top: 18px;
}

.settings-copy,
.settings-notice {
  width: min(1180px, 100%);
  margin: 12px auto;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.35;
}

.settings-notice {
  padding: 10px 14px;
  border: 1px solid rgba(110, 227, 38, 0.46);
  border-radius: 8px;
  background: rgba(110, 227, 38, 0.1);
  color: #cbffb0;
  text-align: center;
}

.about-settings {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.about-settings > .icon {
  width: 64px;
  height: 64px;
  color: var(--gold);
}

.about-settings strong {
  color: var(--gold);
  font-size: 26px;
}

.pause-panel > .icon {
  width: 100px;
  height: 100px;
  color: var(--gold);
}

.pause-panel h1 {
  margin: 10px 0 26px;
  color: var(--gold);
  font-size: 58px;
}

.pause-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 14px;
}

.certificate-paper {
  position: relative;
  width: min(720px, 94vw);
  min-height: 520px;
  padding: 58px 68px;
  border: 12px solid #b9975b;
  background:
    linear-gradient(135deg, rgba(185, 151, 91, 0.16), transparent 35%, rgba(185, 151, 91, 0.12)),
    #f3ead8;
  color: #2a1905;
  text-align: center;
  box-shadow: var(--shadow);
}

.certificate-paper h1 {
  margin: 0 0 26px;
  font-size: 34px;
}

.certificate-paper h2 {
  margin: 10px 0;
  font-size: 44px;
}

.certificate-paper h3 {
  margin: 10px 0;
  font-size: 28px;
}

.certificate-paper p {
  margin: 10px 0;
  font-size: 18px;
}

.certificate-paper strong {
  display: block;
  margin-top: 22px;
  font-size: 27px;
}

.certificate-seal {
  position: absolute;
  left: 42px;
  bottom: 42px;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border: 4px solid #856210;
  border-radius: 50%;
  color: #856210;
}

.certificate-seal .icon {
  width: 52px;
  height: 52px;
}

.certificate-paper footer {
  position: absolute;
  left: 150px;
  right: 60px;
  bottom: 52px;
  display: flex;
  justify-content: space-between;
}

body[data-text-size="Large"] {
  font-size: 112%;
}

body[data-text-size="Small"] {
  font-size: 94%;
}

.high-contrast {
  --panel: rgba(0, 0, 0, 0.96);
  --muted: #ffffff;
  --line: rgba(255, 255, 255, 0.8);
}

.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
  animation: none !important;
  transition: none !important;
}

@media (max-width: 1180px) {
  .menu-layout,
  .question-grid,
  .assist-layout,
  .ladder-layout {
    grid-template-columns: 1fr;
  }

  .menu-hero {
    margin-top: 0;
    margin-bottom: 12px;
    transform: none;
  }

  .menu-layout {
    margin-top: 0;
  }

  .menu-grid,
  .pack-grid,
  .results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rules-columns,
  .win-lose-row,
  .packs-footer,
  .menu-footer {
    grid-template-columns: 1fr;
  }

  .includes-card ul {
    columns: 1;
  }

  .menu-side-panel {
    min-height: 150px;
  }

  .question-toolbar,
  .assist-toolbar {
    grid-template-columns: 1fr;
  }

  .assist-top-controls,
  .final-answer-panel {
    grid-template-columns: 1fr;
  }

  .host-final-image,
  .host-final-image img {
    height: min(40vh, 320px);
    min-height: 220px;
  }

  .lifeline-chip-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ladder-open-button {
    min-height: 56px;
    width: 100%;
  }

  .question-header,
  .assist-header {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .question-meta-card {
    width: min(560px, 100%);
  }

  .question-footer {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .footer-actions {
    justify-content: center;
  }

  .lifeline-rail {
    align-self: stretch;
  }

  .lifeline-button {
    grid-template-columns: 70px 1fr 48px;
  }

  .leader-row {
    grid-template-columns: 56px minmax(0, 1fr) minmax(120px, 150px) minmax(90px, 120px);
  }

  .settings-layout,
  .setup-content {
    grid-template-columns: 1fr;
  }

  .ladder-modal-grid {
    grid-template-columns: 1fr;
  }

  .avatar-side {
    border-right: 0;
    padding-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    padding-bottom: 24px;
  }

  .avatar-strip {
    width: min(640px, 100%);
  }
}

@media (max-width: 760px) {
  .screen {
    padding: 18px 14px 28px;
  }

  .light-rig {
    display: none;
  }

  .splash-corners,
  .menu-top,
  .packs-header,
  .top-actions {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
  }

  .splash-corners {
    width: 100%;
    margin-top: 22px;
  }

  .version {
    position: static;
    transform: none;
    text-align: center;
    margin-top: 12px;
  }

  .tagline-rule {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .tagline-rule p {
    white-space: normal;
  }

  .tagline-rule span {
    display: none;
  }

  .show-logo strong,
  .show-logo b {
    -webkit-text-stroke: 1px #513001;
  }

  .show-logo em {
    border-left-width: 8px;
    border-right-width: 8px;
  }

  .player-summary,
  .welcome-card {
    min-width: 0;
    width: 100%;
  }

  .question-meta-card {
    grid-template-columns: 1fr;
  }

  .question-meta-card span + span {
    border-left: 0;
    border-top: 1px solid rgba(242, 182, 50, 0.35);
  }

  .start-button {
    min-height: 86px;
    font-size: 38px;
  }

  .menu-grid,
  .pack-grid,
  .results-grid,
  .menu-footer,
  .packs-footer,
  .leaderboard-footer,
  .win-lose-row,
  .rules-columns,
  .assist-bottom,
  .assist-top-controls,
  .checkpoint-actions,
  .score-ribbon,
  .settings-actions,
  .pause-actions,
  .winner-stats {
    grid-template-columns: 1fr;
  }

  .lifeline-bar {
    grid-template-columns: 1fr;
  }

  .lifeline-bar-title {
    text-align: center;
  }

  .lifeline-chip-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lifeline-chip {
    min-height: 58px;
  }

  .ladder-modal-backdrop {
    padding: 12px;
  }

  .ladder-modal {
    max-height: 94vh;
    padding: 12px;
  }

  .ladder-modal-header {
    display: grid;
  }

  .modal-close {
    width: 100%;
  }

  .menu-tile {
    min-height: 112px;
  }

  .performance-card {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 14px;
    padding: 18px 16px;
  }

  .performance-card > div {
    width: 100%;
    min-width: 0;
  }

  .announcement-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 34px;
    gap: 12px;
    padding: 16px;
  }

  .menu-host-art {
    width: 72px;
    height: 72px;
  }

  .mini-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .side-ladder-panel {
    padding: 16px;
  }

  .setup-panel {
    padding: 22px 16px 0;
  }

  .avatar-carousel {
    gap: 12px;
  }

  .avatar-strip {
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    width: 100%;
  }

  .field-row,
  .pack-note,
  .poll-row,
  .expert-card,
  .host-controls,
  .score-summary,
  .progress-summary {
    grid-template-columns: 1fr;
  }

  .host-control-portrait {
    justify-self: center;
  }

  .host-control-copy,
  .host-control-actions {
    justify-self: stretch;
    text-align: center;
  }

  .host-control-actions {
    justify-content: center;
  }

  .field-row {
    grid-template-areas: "icon" "label" "control";
    justify-items: start;
  }

  .question-card {
    min-height: 220px;
    padding: 24px 20px;
  }

  .answer-choice {
    min-height: 76px;
    grid-template-columns: 60px 1fr;
    padding: 8px 16px;
    clip-path: none;
  }

  .answer-choice span {
    font-size: 20px;
  }

  .assist-title-row {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .compact-return {
    grid-template-columns: 1fr auto;
  }

  .assist-main {
    padding: 20px 14px;
  }

  .lifeline-photo {
    min-height: 220px;
    height: 260px;
  }

  .final-answer-panel {
    padding: 16px;
  }

  .host-final-image,
  .host-final-image img {
    height: min(34vh, 240px);
    min-height: 180px;
  }

  .final-answer-choice {
    grid-template-columns: 56px minmax(0, 1fr);
    padding: 12px;
  }

  .final-answer-choice b {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }

  .leaderboard-tabs,
  .leader-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px;
  }

  .leader-row.head {
    display: none;
  }

  .settings-layout {
    padding: 8px;
  }

  .settings-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .settings-nav button {
    min-height: 56px;
    font-size: 15px;
  }

  .setting-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px 0;
  }

  .settings-profile,
  .about-settings {
    grid-template-columns: 1fr;
  }

  .certificate-paper {
    min-height: 480px;
    padding: 36px 22px 120px;
  }

  .certificate-paper footer {
    left: 24px;
    right: 24px;
    bottom: 34px;
  }
}
