:root {
  color-scheme: dark;
  --bg: #09120f;
  --bg-2: #0c1814;
  --panel: #101f1a;
  --panel-2: #142721;
  --line: rgba(211, 237, 225, 0.13);
  --line-strong: rgba(211, 237, 225, 0.25);
  --text: #f4f6ec;
  --muted: #9caea5;
  --lime: #c7f15b;
  --lime-deep: #8fbc32;
  --orange: #ff8c42;
  --red: #ff5f57;
  --blue: #72c9d4;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    var(--bg);
  background-size: 38px 38px;
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
}

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

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(199, 241, 91, .45);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.ambient {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: .09;
  z-index: -1;
}

.ambient-one {
  background: var(--lime);
  top: -250px;
  right: -160px;
}

.ambient-two {
  background: var(--orange);
  bottom: -350px;
  left: -220px;
}

.site-header {
  position: relative;
  z-index: 20;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 18, 15, .9);
  backdrop-filter: blur(18px);
}

.suite-home-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--orange);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.suite-home-link img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.suite-home-link span {
  color: rgba(255,255,255,.28);
}

.brand {
  border: 0;
  padding: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  margin-right: auto;
}

.brand-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--lime);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.32), 0 8px 28px rgba(199,241,91,.13);
}

.brand-icon svg {
  width: 36px;
  height: 36px;
}

.brand-icon .brain-shell {
  fill: #132016;
}

.brand-icon .brain-line {
  fill: none;
  stroke: var(--lime);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-icon .brain-node {
  fill: var(--lime);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-copy strong {
  font-size: 24px;
  letter-spacing: -1.2px;
}

.brand-copy strong span {
  color: var(--lime);
}

.brand-copy small {
  color: var(--muted);
  margin-top: 6px;
  font-size: 8px;
  letter-spacing: 2.2px;
  font-weight: 800;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-button,
.icon-button {
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
}

.nav-button {
  padding: 10px 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  border-radius: 10px;
}

.nav-button:hover {
  color: var(--text);
  background: rgba(255,255,255,.04);
}

.feedback-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.feedback-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.user-chip {
  min-width: 170px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 6px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  color: var(--text);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.user-chip:hover strong {
  color: var(--lime);
}

.user-chip > .user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #182013;
  background: var(--lime);
  font-weight: 900;
}

.user-chip-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.user-chip strong {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.user-chip small {
  color: var(--muted);
  font-size: 10px;
  margin-top: 2px;
}

.icon-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
}

.icon-button:hover {
  background: rgba(255,255,255,.05);
}

.icon-button svg {
  width: 19px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.screen {
  display: none;
  min-height: calc(100vh - 86px);
}

.screen.active {
  display: block;
  animation: screen-in .35s ease both;
}

@keyframes screen-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-screen.active {
  display: flex;
  min-height: calc(100vh - 86px);
  flex-direction: column;
}

.auth-hero {
  width: min(1280px, calc(100% - 44px));
  margin: auto;
  padding: 62px 0 54px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(390px, .7fr);
  align-items: center;
  gap: clamp(60px, 10vw, 140px);
}

.eyebrow {
  color: var(--lime);
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 2.3px;
  text-transform: uppercase;
}

.eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(199,241,91,.1), 0 0 18px rgba(199,241,91,.6);
}

.hero-copy {
  position: relative;
  padding: 28px 0 90px;
}

.hero-copy h1,
.dashboard-hero h1,
.admin-heading h1 {
  margin: 24px 0 22px;
  font-size: clamp(60px, 7vw, 104px);
  line-height: .88;
  letter-spacing: -6px;
  font-weight: 900;
}

.hero-copy h1 em,
.dashboard-hero h1 em,
.admin-heading h1 em {
  font-style: normal;
  color: var(--lime);
}

.hero-copy > p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  gap: 42px;
  margin-top: 40px;
}

.hero-stats div {
  display: flex;
  flex-direction: column;
}

.hero-stats strong {
  font-size: 30px;
  letter-spacing: -1px;
}

.hero-stats span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
}

.pipe-art {
  position: absolute;
  bottom: 0;
  left: -12vw;
  right: 0;
  height: 70px;
  opacity: .45;
}

.pipe {
  position: absolute;
  display: block;
  background: linear-gradient(#586861, #26352f 42%, #19251f 58%, #52635b);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
}

.pipe.horizontal {
  left: 0;
  right: 80px;
  top: 28px;
  height: 22px;
}

.pipe.vertical {
  right: 72px;
  top: -28px;
  width: 22px;
  height: 78px;
  border-radius: 8px 8px 0 0;
}

.valve {
  position: absolute;
  right: 133px;
  top: 20px;
  width: 39px;
  height: 39px;
  border: 8px solid #52625b;
  border-radius: 50%;
  background: var(--bg);
}

.valve::before,
.valve::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 48px;
  background: #52625b;
  transform: translate(-50%, -50%) rotate(45deg);
}

.valve::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.gauge {
  position: absolute;
  left: 30%;
  top: -18px;
  width: 58px;
  height: 58px;
  border: 7px solid #52625b;
  border-radius: 50%;
  background: var(--bg);
}

.gauge::after {
  content: "";
  position: absolute;
  width: 17px;
  height: 2px;
  left: 50%;
  top: 50%;
  background: var(--orange);
  transform-origin: left center;
  transform: rotate(-48deg);
}

.auth-card {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  padding: 30px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.035), transparent 38%),
    rgba(14, 29, 24, .94);
  box-shadow: var(--shadow);
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255,255,255,.025);
  border-radius: 19px;
  pointer-events: none;
}

.auth-card-head {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 1.8px;
  font-weight: 800;
  margin-bottom: 24px;
}

.status-light {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: rgba(0,0,0,.24);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 25px;
}

.auth-tab {
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  padding: 11px;
  font-weight: 800;
  cursor: pointer;
}

.auth-tab.active {
  color: #162014;
  background: var(--lime);
}

.auth-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 15px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: #d5ded8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: rgba(4, 10, 8, .56);
  transition: border-color .2s, box-shadow .2s;
}

.field input,
.field select {
  height: 48px;
  padding: 0 14px;
}

.field textarea {
  min-height: 180px;
  padding: 13px 14px;
  line-height: 1.55;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #65756e;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--lime-deep);
  box-shadow: 0 0 0 3px rgba(199,241,91,.08);
}

.field small {
  color: #71837a;
  font-size: 10px;
  line-height: 1.45;
}

.select-wrap,
.password-wrap {
  position: relative;
}

.select-wrap::after {
  content: "⌄";
  position: absolute;
  right: 14px;
  top: 11px;
  color: var(--lime);
  pointer-events: none;
}

.field select {
  appearance: none;
}

.password-wrap input {
  padding-right: 62px;
}

.show-password {
  position: absolute;
  right: 7px;
  top: 7px;
  height: 34px;
  border: 0;
  border-radius: 7px;
  color: var(--lime);
  background: rgba(199,241,91,.08);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.password-meter {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 2px;
}

.password-meter i {
  height: 3px;
  border-radius: 3px;
  background: #26362f;
}

.password-meter[data-strength="1"] i:nth-child(-n+1) { background: var(--red); }
.password-meter[data-strength="2"] i:nth-child(-n+2) { background: var(--orange); }
.password-meter[data-strength="3"] i:nth-child(-n+3) { background: #e6c849; }
.password-meter[data-strength="4"] i { background: var(--lime); }

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.check-field {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  cursor: pointer;
}

.check-field input {
  accent-color: var(--lime);
  margin: 2px 0 0;
}

.primary-button,
.secondary-button {
  min-height: 48px;
  border-radius: 10px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-weight: 850;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, background .18s;
}

.primary-button {
  border: 1px solid var(--lime);
  color: #172012;
  background: var(--lime);
  box-shadow: 0 10px 24px rgba(199,241,91,.1);
}

.primary-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(199,241,91,.17);
}

.primary-button:disabled {
  opacity: .42;
  cursor: not-allowed;
}

.primary-button b {
  font-size: 19px;
}

.secondary-button {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(255,255,255,.035);
}

.secondary-button:hover {
  background: rgba(255,255,255,.07);
}

.first-admin-note,
.security-note {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
  text-align: center;
}

.first-admin-note strong {
  color: var(--lime);
}

.security-note {
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(0,0,0,.17);
}

.security-note svg {
  width: 21px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--lime);
  stroke-width: 1.6;
}

.form-status {
  position: relative;
  z-index: 1;
  min-height: 18px;
  margin: 12px 0 0;
  color: var(--red);
  font-size: 12px;
  text-align: center;
}

.form-status.success {
  color: var(--lime);
}

.auth-footer {
  min-height: 54px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px 46px;
  padding: 14px 20px;
  color: #708078;
  font-size: 9px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.auth-footer span {
  position: relative;
}

.auth-footer span:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 3px;
  right: -25px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--lime-deep);
}

.dashboard-wrap,
.results-wrap,
.admin-wrap {
  width: min(1240px, calc(100% - 44px));
  margin: 0 auto;
  padding: 70px 0 90px;
}

.dashboard-hero {
  min-height: 330px;
  display: grid;
  grid-template-columns: 1fr 390px;
  align-items: center;
  gap: 50px;
  border-bottom: 1px solid var(--line);
}

.dashboard-hero h1 {
  font-size: clamp(56px, 6vw, 86px);
}

.dashboard-hero p,
.admin-heading p {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.7;
}

.hero-instrument {
  display: grid;
  place-items: center;
}

.instrument-ring {
  position: relative;
  width: 270px;
  height: 270px;
  display: grid;
  place-content: center;
  text-align: center;
  border: 2px solid #44554d;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 12px var(--bg),
    inset 0 0 0 14px #26372f,
    inset 0 0 40px rgba(0,0,0,.7),
    0 0 0 1px rgba(255,255,255,.04);
  background: radial-gradient(circle, #11231b, #08100d 68%);
}

.instrument-ring::before {
  content: "";
  position: absolute;
  inset: 32px;
  border-radius: 50%;
  border: 1px dashed rgba(199,241,91,.25);
}

.instrument-ring b {
  color: var(--lime);
  font-size: 62px;
  letter-spacing: -4px;
}

.instrument-ring small {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 1.5px;
}

.instrument-ring > i {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 5px;
  height: 84px;
  border-radius: 4px;
  background: var(--orange);
  transform-origin: bottom center;
  transform: translateX(-50%) rotate(43deg);
  box-shadow: 0 0 15px rgba(255,140,66,.4);
}

.instrument-ring > i::after {
  content: "";
  position: absolute;
  bottom: -9px;
  left: -6px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--orange);
}

.tick {
  position: absolute;
  left: 50%;
  top: 16px;
  width: 2px;
  height: 13px;
  background: #6d7e75;
  transform-origin: 1px 119px;
}
.tick.t1 { transform: rotate(-80deg); }
.tick.t2 { transform: rotate(-40deg); }
.tick.t3 { transform: rotate(0); }
.tick.t4 { transform: rotate(40deg); }
.tick.t5 { transform: rotate(80deg); }

.year-section,
.leaderboard-section,
.review-section {
  padding-top: 64px;
}

.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 25px;
}

.section-title > div > span,
.panel-heading span {
  color: var(--lime);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 1.8px;
}

.section-title h2,
.panel-heading h2 {
  margin: 8px 0 0;
  font-size: 27px;
  letter-spacing: -1px;
}

.section-title > p {
  max-width: 500px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: right;
}

.year-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.category-grid {
  grid-template-columns: repeat(3, 1fr);
}

.level-section .year-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.level-section {
  scroll-margin-top: 100px;
}

.level-section:focus {
  outline: none;
}

.level-section.difficulty-arrive {
  animation: difficulty-arrive .48s cubic-bezier(.2,.8,.2,1);
}

@keyframes difficulty-arrive {
  0% {
    opacity: .55;
    transform: scale(.97);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.year-card {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  color: var(--text);
  background:
    linear-gradient(160deg, rgba(255,255,255,.035), transparent 35%),
    var(--panel);
  text-align: left;
  cursor: pointer;
  transition: transform .22s, border-color .22s, box-shadow .22s;
}

.year-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--card-accent, var(--lime));
  opacity: .65;
}

.year-card:hover,
.year-card.recommended,
.category-card.selected {
  transform: translateY(-5px);
  border-color: var(--card-accent, var(--lime));
  box-shadow: 0 20px 45px rgba(0,0,0,.24);
}

.category-card.selected::before,
.year-card.recommended::before {
  position: absolute;
  top: 15px;
  right: -31px;
  width: 120px;
  padding: 5px 0;
  color: #152012;
  background: var(--lime);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1px;
  text-align: center;
  transform: rotate(45deg);
}

.year-card.recommended::before {
  content: "RECOMMENDED";
}

.category-card.selected::before {
  content: "SELECTED";
}

.year-one { --card-accent: #c7f15b; }
.year-two { --card-accent: #74cfad; }
.year-three { --card-accent: #ffb24e; }
.year-four { --card-accent: #ff735c; }

.year-number {
  display: block;
  color: rgba(255,255,255,.07);
  font-size: 76px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -5px;
}

.year-card-copy {
  margin-top: 12px;
}

.year-card-copy small {
  color: var(--card-accent);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.7px;
}

.year-card-copy h3 {
  margin: 7px 0 14px;
  font-size: 28px;
  letter-spacing: -1px;
}

.year-card-copy p {
  min-height: 92px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.difficulty {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 22px;
}

.difficulty span {
  margin-right: 5px;
  color: #71827a;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 1px;
}

.difficulty i {
  width: 20px;
  height: 4px;
  border-radius: 4px;
  background: #2d3d35;
}

.difficulty i.on {
  background: var(--card-accent);
}

.launch {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.launch span {
  color: var(--card-accent);
  font-size: 20px;
}

.leaderboard-panel,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: 17px;
  overflow: hidden;
  background: rgba(15, 31, 25, .8);
}

.leaderboard-head,
.leaderboard-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(4, 110px);
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
}

.leaderboard-head {
  color: #687a71;
  background: rgba(0,0,0,.2);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.leaderboard-row {
  min-height: 62px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.leaderboard-row.current {
  background: rgba(199,241,91,.055);
}

.rank-name {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.rank-badge {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255,255,255,.04);
  font-weight: 900;
}

.leaderboard-row:nth-child(1) .rank-badge {
  color: #172012;
  background: var(--lime);
}

.rank-name div {
  min-width: 0;
}

.rank-name strong,
.rank-name small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-name small {
  color: var(--muted);
  font-size: 9px;
  margin-top: 3px;
}

.leaderboard-value {
  font-weight: 800;
}

.leaderboard-value.accent {
  color: var(--lime);
}

.empty-state {
  padding: 28px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.startup-error-screen {
  min-height: calc(100vh - 84px);
  place-items: center;
  padding: 32px 20px;
}

.startup-error-screen.active {
  display: grid;
}

.startup-error-card {
  width: min(620px, 100%);
  padding: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--panel);
}

.startup-error-card span {
  color: var(--orange);
  font-weight: 900;
  letter-spacing: .16em;
}

.startup-error-card h1 {
  margin: 12px 0;
  color: var(--text);
}

.startup-error-card p {
  margin: 0 auto 24px;
  line-height: 1.7;
}

.startup-error-card .primary-button {
  margin-right: 8px;
}

.code-notice {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  margin-top: 44px;
  padding: 22px;
  border: 1px solid rgba(255,178,78,.2);
  border-radius: 14px;
  background: rgba(255,178,78,.045);
}

.notice-icon {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,178,78,.45);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffb24e;
  font-weight: 900;
}

.code-notice strong {
  font-size: 13px;
}

.code-notice p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.game-screen {
  min-height: calc(100vh - 86px);
}

.game-shell {
  width: min(1260px, calc(100% - 44px));
  margin: 0 auto;
  padding: 34px 0 70px;
}

.round-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-bottom: 22px;
}

.back-button {
  justify-self: start;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.back-button span {
  color: var(--lime);
  margin-right: 5px;
}

.round-id {
  text-align: center;
}

.round-id span,
.round-clock small {
  display: block;
  color: var(--lime);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.8px;
}

.round-id strong {
  display: block;
  font-size: 14px;
  letter-spacing: 2px;
  margin-top: 4px;
}

.round-clock {
  justify-self: end;
  text-align: right;
}

.round-clock strong {
  display: block;
  font-variant-numeric: tabular-nums;
  margin-top: 3px;
}

.round-progress {
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15,31,25,.7);
}

.progress-copy {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 10px;
  font-weight: 800;
}

.progress-copy b {
  color: var(--muted);
  font-weight: 650;
}

.progress-track {
  height: 5px;
  overflow: hidden;
  border-radius: 5px;
  background: #26362f;
}

.progress-track i {
  display: block;
  width: 10%;
  height: 100%;
  border-radius: inherit;
  background: var(--lime);
  box-shadow: 0 0 14px rgba(199,241,91,.45);
  transition: width .25s;
}

.progress-track i[data-step="1"] { width: 10%; }
.progress-track i[data-step="2"] { width: 20%; }
.progress-track i[data-step="3"] { width: 30%; }
.progress-track i[data-step="4"] { width: 40%; }
.progress-track i[data-step="5"] { width: 50%; }
.progress-track i[data-step="6"] { width: 60%; }
.progress-track i[data-step="7"] { width: 70%; }
.progress-track i[data-step="8"] { width: 80%; }
.progress-track i[data-step="9"] { width: 90%; }
.progress-track i[data-step="10"] { width: 100%; }

.question-layout {
  display: grid;
  grid-template-columns: 95px minmax(0, 760px) 190px;
  justify-content: center;
  align-items: start;
  gap: 24px;
  margin-top: 38px;
}

.question-rail,
.round-rule {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15,31,25,.65);
}

.question-rail {
  padding: 17px 12px;
}

.question-rail > span {
  display: block;
  color: #63756c;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 1.1px;
  text-align: center;
}

#questionDots {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.question-dot {
  width: 100%;
  height: 33px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #71837a;
  background: rgba(255,255,255,.025);
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}

.question-dot.answered {
  color: var(--lime);
  background: rgba(199,241,91,.07);
}

.question-dot.active {
  border-color: var(--lime);
  color: #162014;
  background: var(--lime);
}

.question-card {
  min-height: 590px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  padding: clamp(25px, 5vw, 50px);
  background:
    linear-gradient(145deg, rgba(255,255,255,.035), transparent 30%),
    rgba(14,29,24,.95);
  box-shadow: var(--shadow);
}

.question-meta {
  display: flex;
  align-items: center;
  gap: 9px;
}

.question-meta span,
.question-meta b {
  padding: 6px 9px;
  border-radius: 6px;
  font-size: 8px;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.question-meta span {
  color: #172012;
  background: var(--lime);
  font-weight: 900;
}

.question-meta b {
  color: var(--muted);
  border: 1px solid var(--line);
}

.question-card h2 {
  min-height: 118px;
  margin: 25px 0 30px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.28;
  letter-spacing: -1.1px;
}

.answer-list {
  display: grid;
  gap: 10px;
}

.answer-option {
  width: 100%;
  min-height: 62px;
  display: grid;
  grid-template-columns: 36px 1fr 24px;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 10px 14px;
  color: #cbd5cf;
  background: rgba(1,8,5,.27);
  text-align: left;
  cursor: pointer;
  transition: border-color .18s, background .18s, transform .18s;
}

.answer-option:hover {
  transform: translateX(3px);
  border-color: rgba(199,241,91,.45);
}

.answer-option.selected {
  border-color: var(--lime);
  color: var(--text);
  background: rgba(199,241,91,.075);
}

.option-letter {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.answer-option.selected .option-letter {
  color: #172012;
  border-color: var(--lime);
  background: var(--lime);
}

.option-copy {
  font-size: 13px;
  line-height: 1.45;
}

.option-check {
  width: 16px;
  height: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.answer-option.selected .option-check {
  border: 5px solid var(--lime);
}

.question-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}

.next-button {
  min-width: 180px;
}

.round-rule {
  padding: 22px;
  text-align: center;
}

.rule-gauge {
  position: relative;
  width: 90px;
  height: 46px;
  display: block;
  overflow: hidden;
  margin: 0 auto 18px;
  border-radius: 90px 90px 0 0;
  background: conic-gradient(from 270deg at 50% 100%, var(--red) 0 28%, var(--orange) 28% 50%, var(--lime) 50% 75%, transparent 75%);
}

.rule-gauge::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 0;
  height: 33px;
  border-radius: 70px 70px 0 0;
  background: var(--panel);
}

.rule-gauge i {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 0;
  width: 2px;
  height: 32px;
  background: var(--text);
  transform-origin: bottom;
  transform: rotate(35deg);
}

.round-rule small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.3px;
}

.round-rule strong {
  display: block;
  color: var(--lime);
  margin: 7px 0 10px;
  font-size: 27px;
}

.round-rule p {
  margin: 0;
  color: #788a81;
  font-size: 10px;
  line-height: 1.55;
}

.result-summary {
  display: grid;
  grid-template-columns: 330px 1fr;
  align-items: center;
  gap: clamp(50px, 9vw, 130px);
  padding: 30px 70px 70px;
  border-bottom: 1px solid var(--line);
}

.score-dial {
  position: relative;
  width: 300px;
  height: 300px;
}

.score-dial svg {
  width: 100%;
  transform: rotate(-90deg);
}

.score-dial circle {
  fill: none;
  stroke-width: 9;
}

.dial-bg {
  stroke: #20322a;
}

.dial-value {
  stroke: var(--lime);
  stroke-linecap: round;
  stroke-dasharray: 421;
  stroke-dashoffset: 421;
  transition: stroke-dashoffset 1s ease;
  filter: drop-shadow(0 0 6px rgba(199,241,91,.3));
}

.dial-value[data-tone="admonish"] { stroke: var(--red); }
.dial-value[data-tone="steady"] { stroke: var(--orange); }
.dial-value[data-tone="praise"] { stroke: var(--lime); }
.dial-value[data-score="0"] { stroke-dashoffset: 421; }
.dial-value[data-score="1"] { stroke-dashoffset: 379; }
.dial-value[data-score="2"] { stroke-dashoffset: 337; }
.dial-value[data-score="3"] { stroke-dashoffset: 295; }
.dial-value[data-score="4"] { stroke-dashoffset: 253; }
.dial-value[data-score="5"] { stroke-dashoffset: 211; }
.dial-value[data-score="6"] { stroke-dashoffset: 168; }
.dial-value[data-score="7"] { stroke-dashoffset: 126; }
.dial-value[data-score="8"] { stroke-dashoffset: 84; }
.dial-value[data-score="9"] { stroke-dashoffset: 42; }
.dial-value[data-score="10"] { stroke-dashoffset: 0; }

.score-dial > div {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.score-dial strong {
  font-size: 86px;
  line-height: .8;
  letter-spacing: -7px;
}

.score-dial span {
  color: var(--muted);
  font-size: 20px;
  margin-top: 10px;
}

.score-dial small {
  color: var(--lime);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 2px;
  margin-top: 9px;
}

.result-copy > span {
  color: var(--lime);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 2px;
}

.result-copy h1 {
  margin: 13px 0 14px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: .95;
  letter-spacing: -4px;
}

.result-copy > p {
  max-width: 620px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.result-facts {
  display: flex;
  gap: 48px;
  margin: 30px 0;
}

.result-facts div {
  display: flex;
  flex-direction: column;
}

.result-facts small {
  color: #708078;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.4px;
}

.result-facts strong {
  margin-top: 6px;
  font-size: 14px;
}

.result-actions {
  display: flex;
  gap: 10px;
}

.review-list {
  display: grid;
  gap: 10px;
}

.review-card {
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  background: rgba(15,31,25,.7);
}

.review-card.correct {
  border-left: 3px solid var(--lime);
}

.review-card.incorrect {
  border-left: 3px solid var(--red);
}

.review-toggle {
  width: 100%;
  min-height: 70px;
  display: grid;
  grid-template-columns: 36px 1fr auto 24px;
  align-items: center;
  gap: 13px;
  border: 0;
  padding: 13px 18px;
  color: var(--text);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.review-status {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.correct .review-status {
  color: #172012;
  background: var(--lime);
}

.incorrect .review-status {
  color: #fff;
  background: var(--red);
}

.review-question strong,
.review-question small {
  display: block;
}

.review-question strong {
  font-size: 12px;
  line-height: 1.4;
}

.review-question small {
  color: var(--muted);
  margin-top: 4px;
  font-size: 9px;
}

.review-verdict {
  color: var(--lime);
  font-size: 9px;
  font-weight: 900;
}

.incorrect .review-verdict {
  color: var(--red);
}

.review-chevron {
  color: var(--muted);
  transition: transform .2s;
}

.review-card.open .review-chevron {
  transform: rotate(180deg);
}

.review-body {
  display: none;
  padding: 0 18px 20px 67px;
}

.review-card.open .review-body {
  display: block;
}

.answer-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.answer-comparison div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.answer-comparison small {
  display: block;
  color: var(--muted);
  margin-bottom: 5px;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1px;
}

.answer-comparison span {
  font-size: 11px;
  line-height: 1.45;
}

.answer-comparison .correct-answer {
  border-color: rgba(199,241,91,.28);
  background: rgba(199,241,91,.04);
}

.review-explanation {
  margin: 15px 0 0;
  color: #aebbb4;
  font-size: 11px;
  line-height: 1.65;
}

.review-reference {
  display: inline-block;
  margin-top: 12px;
  padding: 5px 8px;
  border-radius: 5px;
  color: var(--lime);
  background: rgba(199,241,91,.07);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.admin-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 42px;
}

.admin-heading h1 {
  font-size: clamp(50px, 6vw, 78px);
  margin-bottom: 13px;
}

.admin-heading p {
  margin-bottom: 0;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.metric-card {
  min-height: 145px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15,31,25,.8);
}

.metric-card span {
  color: var(--muted);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 1.2px;
}

.metric-card strong {
  margin: 9px 0 7px;
  font-size: 32px;
  letter-spacing: -1.5px;
}

.metric-card small {
  color: #64766d;
  font-size: 9px;
}

.metric-card.warning strong { color: var(--orange); }
.metric-card.danger strong { color: var(--red); }
.metric-card.accent strong { color: var(--lime); }

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.admin-panel {
  min-height: 330px;
  padding: 22px;
}

.admin-panel.wide {
  grid-column: 1 / -1;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.panel-heading h2 {
  font-size: 18px;
}

.panel-heading > b {
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--red);
  background: rgba(255,95,87,.08);
  font-size: 8px;
}

.bar-chart {
  min-height: 225px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding-top: 20px;
}

.bar-item {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 7px;
  height: 200px;
}

.bar-item b {
  color: var(--muted);
  font-size: 8px;
}

.bar-item i {
  width: 100%;
  max-width: 28px;
  min-height: 4px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(var(--lime), var(--lime-deep));
}

.bar-item i.bar-height-1 { height: 17px; }
.bar-item i.bar-height-2 { height: 34px; }
.bar-item i.bar-height-3 { height: 51px; }
.bar-item i.bar-height-4 { height: 68px; }
.bar-item i.bar-height-5 { height: 85px; }
.bar-item i.bar-height-6 { height: 102px; }
.bar-item i.bar-height-7 { height: 119px; }
.bar-item i.bar-height-8 { height: 136px; }
.bar-item i.bar-height-9 { height: 153px; }
.bar-item i.bar-height-10 { height: 170px; }

.bar-item span {
  color: #64766d;
  font-size: 7px;
}

.activity-list {
  display: grid;
  max-height: 275px;
  overflow: auto;
}

.activity-row {
  display: grid;
  grid-template-columns: 9px 1fr auto;
  align-items: start;
  gap: 10px;
  padding: 11px 2px;
  border-top: 1px solid var(--line);
}

.activity-row:first-child {
  border-top: 0;
}

.activity-dot {
  width: 7px;
  height: 7px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--lime);
}

.activity-dot.medium { background: var(--orange); }
.activity-dot.high { background: var(--red); }

.activity-copy strong,
.activity-copy small {
  display: block;
}

.activity-copy strong {
  font-size: 10px;
}

.activity-copy small {
  color: var(--muted);
  margin-top: 4px;
  font-size: 8px;
  line-height: 1.4;
}

.activity-row time {
  color: #607169;
  font-size: 8px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
}

.admin-table th {
  color: #63756c;
  font-size: 7px;
  letter-spacing: 1px;
  text-align: left;
  text-transform: uppercase;
}

.admin-table th,
.admin-table td {
  padding: 11px 10px;
  border-top: 1px solid var(--line);
  white-space: nowrap;
}

.admin-table thead th {
  border-top: 0;
}

.admin-table td:nth-child(1),
.admin-table td:nth-child(5),
.admin-table td:nth-child(6),
.admin-table td:nth-child(7) {
  color: var(--lime);
  font-weight: 850;
}

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  max-width: min(430px, calc(100% - 30px));
  padding: 13px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text);
  background: #172720;
  box-shadow: 0 15px 40px rgba(0,0,0,.45);
  font-size: 12px;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity .25s, transform .25s;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.error {
  border-color: rgba(255,95,87,.42);
}

.loading-layer {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(4,10,8,.84);
  backdrop-filter: blur(8px);
}

body.modal-open {
  overflow: hidden;
}

.profile-modal {
  position: fixed;
  z-index: 180;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4,10,8,.84);
  backdrop-filter: blur(10px);
}

.profile-modal[hidden] {
  display: none;
}

.profile-dialog {
  width: min(760px, 100%);
  max-height: min(860px, calc(100vh - 48px));
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 28px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.035), transparent 40%),
    #102019;
  box-shadow: 0 28px 80px rgba(0,0,0,.55);
}

.feedback-dialog {
  width: min(640px, 100%);
}

.profile-heading,
.profile-actions,
.profile-divider {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.profile-heading {
  margin-bottom: 24px;
}

.profile-heading span,
.profile-divider span {
  color: var(--lime);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.profile-heading h2 {
  margin: 5px 0 0;
  font-size: 30px;
  letter-spacing: -1px;
}

.profile-heading .icon-button {
  color: var(--muted);
  font-size: 25px;
}

.profile-performance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.profile-intro {
  margin: -8px 0 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.profile-performance-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: rgba(255,255,255,.025);
}

.profile-performance-card span,
.profile-performance-card small {
  display: block;
}

.profile-performance-card span {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.2px;
}

.profile-performance-card strong {
  display: block;
  margin-bottom: 7px;
  color: var(--lime);
  font-size: 20px;
}

.profile-performance-card small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.profile-password-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.profile-divider {
  margin: 9px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.profile-divider small {
  color: var(--muted);
  font-size: 10px;
}

.profile-actions {
  justify-content: flex-end;
  margin-top: 4px;
}

.profile-actions button {
  min-width: 150px;
}

.loading-core {
  display: grid;
  place-items: center;
  gap: 11px;
}

.loading-core span {
  width: 58px;
  height: 58px;
  border: 4px solid rgba(199,241,91,.15);
  border-top-color: var(--lime);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.loading-core strong {
  color: var(--lime);
  font-size: 10px;
  letter-spacing: 2px;
}

.loading-core small {
  color: var(--muted);
  font-size: 10px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1100px) {
  .auth-hero {
    gap: 55px;
  }

  .hero-copy h1 {
    font-size: 75px;
  }

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

  .question-layout {
    grid-template-columns: 80px minmax(0, 720px);
  }

  .round-rule {
    display: none;
  }

  .metric-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 800px) {
  .site-header {
    height: 72px;
    padding: 0 18px;
  }

  .suite-home-link strong,
  .suite-home-link span {
    display: none;
  }

  .brand-icon {
    width: 39px;
    height: 39px;
  }

  .brand-icon svg {
    width: 31px;
  }

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

  .brand-copy small,
  .nav-button,
  .user-chip-copy {
    display: none;
  }

  .feedback-button {
    display: inline-flex;
    padding: 9px;
  }

  .feedback-button span {
    display: none;
  }

  .feedback-button svg {
    width: 20px;
    height: 20px;
  }

  .user-chip {
    min-width: auto;
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }

  .screen {
    min-height: calc(100vh - 72px);
  }

  .auth-screen.active {
    min-height: calc(100vh - 72px);
  }

  .auth-hero {
    width: min(100% - 28px, 570px);
    padding: 38px 0;
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-copy {
    padding: 10px 0 0;
  }

  .hero-copy h1 {
    margin: 20px 0;
    font-size: clamp(55px, 17vw, 78px);
    letter-spacing: -4px;
  }

  .hero-copy > p {
    font-size: 15px;
  }

  .hero-stats {
    gap: 18px;
    justify-content: space-between;
    margin-top: 28px;
  }

  .hero-stats strong {
    font-size: 24px;
  }

  .hero-stats span {
    font-size: 8px;
  }

  .pipe-art {
    display: none;
  }

  .auth-card {
    padding: 24px 20px;
  }

  .profile-modal {
    padding: 12px;
  }

  .profile-dialog {
    max-height: calc(100vh - 24px);
    padding: 22px 18px;
  }

  .profile-performance-grid,
  .profile-password-grid {
    grid-template-columns: 1fr;
  }

  .profile-divider,
  .profile-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-actions button {
    width: 100%;
  }

  .auth-footer {
    display: none;
  }

  .dashboard-wrap,
  .results-wrap,
  .admin-wrap {
    width: min(100% - 28px, 650px);
    padding: 40px 0 65px;
  }

  .dashboard-hero {
    min-height: 0;
    grid-template-columns: 1fr;
    padding-bottom: 40px;
  }

  .dashboard-hero h1 {
    font-size: clamp(50px, 15vw, 70px);
    letter-spacing: -4px;
  }

  .hero-instrument {
    display: none;
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .section-title > p {
    text-align: left;
  }

  .year-grid {
    grid-template-columns: 1fr;
  }

  .year-card {
    min-height: 320px;
  }

  .year-card-copy p {
    min-height: auto;
    padding-right: 10px;
  }

  .leaderboard-panel {
    overflow-x: auto;
  }

  .leaderboard-head,
  .leaderboard-row {
    min-width: 690px;
  }

  .game-shell {
    width: min(100% - 20px, 650px);
    padding-top: 18px;
  }

  .round-topbar {
    grid-template-columns: 1fr auto;
  }

  .round-id {
    display: none;
  }

  .question-layout {
    display: block;
    margin-top: 15px;
  }

  .question-rail {
    padding: 10px;
    margin-bottom: 10px;
  }

  .question-rail > span {
    display: none;
  }

  #questionDots {
    grid-template-columns: repeat(10, 1fr);
    gap: 4px;
    margin-top: 0;
  }

  .question-dot {
    height: 29px;
    padding: 0;
  }

  .question-card {
    min-height: 0;
    padding: 24px 18px;
    border-radius: 17px;
  }

  .question-card h2 {
    min-height: 0;
    margin: 20px 0 24px;
    font-size: 23px;
  }

  .answer-option {
    min-height: 66px;
    grid-template-columns: 34px 1fr 17px;
    padding: 9px 11px;
  }

  .question-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    margin: 24px -8px -13px;
    padding: 12px 8px;
    background: linear-gradient(transparent, var(--panel) 28%);
  }

  .question-actions .secondary-button {
    min-width: 48px;
    padding: 0 12px;
    font-size: 0;
  }

  .question-actions .secondary-button::first-letter {
    font-size: 16px;
  }

  .next-button {
    min-width: 0;
    flex: 1;
  }

  .result-summary {
    grid-template-columns: 1fr;
    gap: 35px;
    padding: 10px 0 45px;
    text-align: center;
  }

  .score-dial {
    width: 230px;
    height: 230px;
    margin: 0 auto;
  }

  .score-dial strong {
    font-size: 68px;
  }

  .result-copy > p {
    font-size: 14px;
  }

  .result-facts,
  .result-actions {
    justify-content: center;
  }

  .result-actions {
    flex-direction: column;
  }

  .review-toggle {
    grid-template-columns: 34px 1fr 18px;
  }

  .review-verdict {
    display: none;
  }

  .review-body {
    padding-left: 18px;
  }

  .answer-comparison {
    grid-template-columns: 1fr;
  }

  .admin-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-heading h1 {
    font-size: 54px;
  }

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

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-panel.wide {
    grid-column: auto;
  }
}

@media (max-width: 430px) {
  .auth-card {
    margin-left: -4px;
    margin-right: -4px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-stats span {
    line-height: 1.35;
  }

  .year-card {
    min-height: 340px;
  }

  .code-notice {
    grid-template-columns: 1fr;
  }

  #questionDots {
    grid-template-columns: repeat(5, 1fr);
  }

  .metric-grid {
    gap: 7px;
  }

  .metric-card {
    min-height: 125px;
    padding: 14px;
  }

  .metric-card strong {
    font-size: 27px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .level-section.difficulty-arrive {
    animation: none;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
