:root {
  --bg: #f7fbff;
  --ink: #14212b;
  --muted: #5f7180;
  --surface: #ffffff;
  --surface-soft: #edf8f6;
  --line: #d9e5ec;
  --blue: #1d6fd6;
  --blue-deep: #164a94;
  --mint: #37b99a;
  --coral: #ff7a59;
  --yellow: #ffd66b;
  --shadow: 0 18px 48px rgba(20, 33, 43, 0.1);
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-width: 320px;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-glow { display: none; }

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: 92svh;
  padding: 24px 0 48px;
  background:
    linear-gradient(90deg, rgba(247, 251, 255, 0.98) 0%, rgba(247, 251, 255, 0.9) 42%, rgba(237, 248, 246, 0.82) 100%),
    url("assets/branding/hero-journey.svg") right 8% center / min(48vw, 620px) no-repeat;
  border-bottom: 1px solid var(--line);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 0 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 240px;
}

.brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 33, 43, 0.08);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-family: "Literata", serif;
  font-size: 1.25rem;
}

.brand-copy span,
.hero-nav a,
.proof-card span,
.section-label,
.session-card-top span,
.metric-key,
.rail-kicker,
.preset-band,
.footer p,
.footer-links a {
  color: var(--muted);
}

.hero-nav,
.topbar-actions,
.hero-actions,
.doctor-badges,
.cta-actions,
.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-nav a {
  font-size: 0.95rem;
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 12px 28px rgba(29, 111, 214, 0.22);
}

.button-primary:hover {
  background: var(--blue-deep);
}

.button-ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.78fr);
  gap: 48px;
  align-items: start;
}

.hero-copy,
.hero-stage,
.session-copy,
.session-panel,
.doctor-panel,
.doctor-cards,
.cta-copy {
  min-width: 0;
}

.hero-copy {
  max-width: 650px;
  padding: 18px 0 0;
}

.hero-label,
.section-label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  margin: 0 0 14px;
}

.hero-copy h1,
.section-head h2,
.session-copy h2,
.doctor-panel h2,
.cta-copy h2 {
  font-family: "Literata", serif;
  line-height: 1.08;
  letter-spacing: 0;
  margin: 0;
}

.hero-copy h1 {
  font-size: 4.2rem;
}

.hero-lead {
  max-width: 560px;
  margin: 22px 0 0;
  font-size: 1.18rem;
  color: var(--muted);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.hero-actions {
  margin-top: 30px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 34px;
}

.proof-card,
.preset-card,
.session-card,
.metric-card,
.doctor-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.proof-card {
  padding: 14px;
}

.proof-card strong,
.rail-card strong,
.doctor-card h3,
.preset-card h3,
.metric-card .metric-key,
.session-card-top strong {
  display: block;
  margin-top: 6px;
}

.hero-stage {
  display: grid;
  gap: 18px;
}

.stage {
  border-radius: 8px;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.stage-main {
  border-top: 5px solid var(--mint);
}

.stage-top,
.session-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stage-tag,
.stage-state,
.doctor-badges span,
.domain-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  border: 1px solid var(--line);
  background: #fff;
}

.stage-state {
  color: #096b5b;
  background: #e2f7f1;
}

.stage-main h2 {
  font-family: "Literata", serif;
  font-size: 1.8rem;
  margin: 18px 0;
}

.profile-list,
.feature-list {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
  margin: 0;
}

.profile-list li,
.feature-list li {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.profile-list span,
.feature-list li,
.hero-lead,
.section-head p,
.session-copy p,
.doctor-panel p,
.cta-copy p,
.preset-card p,
.metric-card p,
.doctor-card p {
  color: var(--muted);
  line-height: 1.62;
}

.stage-visual,
.section-figure,
.doctor-board {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.stage-visual img,
.section-figure img,
.doctor-board img {
  width: 100%;
  height: auto;
}

.stage-visual img {
  max-height: 320px;
  object-fit: contain;
}

.stage-rail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.rail-card {
  border-radius: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  background: #fff;
}

.rail-card-soft {
  border-top: 4px solid var(--blue);
}

.rail-card-accent {
  border-top: 4px solid var(--coral);
}

.section {
  padding: 72px 0;
}

.section-light {
  background: #ffffff;
}

.section-head {
  max-width: 820px;
  margin-bottom: 32px;
}

.section-head h2,
.session-copy h2,
.doctor-panel h2,
.cta-copy h2 {
  font-size: 2.65rem;
}

.preset-grid,
.metrics-grid,
.doctor-cards {
  display: grid;
  gap: 16px;
}

.preset-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.preset-card,
.metric-card {
  padding: 20px;
  min-width: 0;
}

.preset-band {
  display: inline-block;
  margin-bottom: 10px;
  font-weight: 800;
}

.preset-card:nth-child(1) { border-top: 5px solid var(--mint); }
.preset-card:nth-child(2) { border-top: 5px solid var(--blue); }
.preset-card:nth-child(3) { border-top: 5px solid var(--coral); }
.preset-card:nth-child(4) { border-top: 5px solid var(--yellow); }

.session-grid,
.doctor-grid,
.cta-shell {
  display: grid;
  gap: 34px;
}

.session-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.82fr);
  align-items: start;
}

.session-panel {
  display: grid;
  gap: 16px;
}

.session-card {
  padding: 22px;
}

.session-card-warm {
  background: #fff7df;
}

.domain-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

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

.metric-card {
  border-left: 5px solid var(--mint);
}

.metric-card:nth-child(2),
.metric-card:nth-child(6) {
  border-left-color: var(--blue);
}

.metric-card:nth-child(3),
.metric-card:nth-child(4) {
  border-left-color: var(--coral);
}

.section-figure {
  margin-top: 24px;
}

.section-figure img {
  max-height: 420px;
  object-fit: contain;
}

.doctor-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  align-items: start;
}

.doctor-panel {
  padding: 0;
}

.doctor-badges {
  margin-top: 22px;
}

.doctor-cards {
  grid-template-columns: 1fr;
}

.doctor-board img {
  max-height: 330px;
  object-fit: contain;
}

.doctor-card {
  padding: 20px;
}

.doctor-card h3 {
  margin: 0 0 10px;
  font-size: 1.16rem;
}

.section-cta {
  background: var(--blue-deep);
  color: #fff;
}

.cta-shell {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.section-cta .section-label,
.section-cta p {
  color: rgba(255, 255, 255, 0.78);
}

.section-cta .button-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.footer {
  padding: 28px 0;
  background: #0f1b24;
  color: #fff;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer p,
.footer-links a {
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 1120px) {
  .hero {
    background:
      linear-gradient(90deg, rgba(247, 251, 255, 0.98), rgba(237, 248, 246, 0.92)),
      url("assets/branding/hero-journey.svg") right 2rem bottom 2rem / 420px no-repeat;
  }

  .hero-grid,
  .session-grid,
  .doctor-grid,
  .cta-shell {
    grid-template-columns: 1fr;
  }

  .preset-grid,
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-copy h1 {
    font-size: 3.35rem;
  }
}

@media (max-width: 860px) {
  .container {
    width: min(var(--container), calc(100% - 28px));
  }

  .hero {
    min-height: auto;
    padding-bottom: 34px;
    background: linear-gradient(180deg, #f7fbff, #edf8f6);
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 34px;
  }

  .topbar-actions,
  .hero-actions,
  .cta-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-nav {
    display: none;
  }

  .hero-copy h1 {
    font-size: 2.55rem;
  }

  .hero-lead,
  .profile-list span,
  .feature-list li,
  .preset-card p,
  .metric-card p,
  .doctor-card p,
  .cta-copy p {
    overflow-wrap: anywhere;
  }

  .section-head h2,
  .session-copy h2,
  .doctor-panel h2,
  .cta-copy h2 {
    font-size: 2.05rem;
  }

  .hero-proof,
  .stage-rail,
  .preset-grid,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    margin-top: 8px;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(var(--container), calc(100% - 20px));
  }

  .topbar-actions,
  .hero-actions,
  .cta-actions,
  .button {
    width: 100%;
    max-width: 100%;
  }

  .button {
    white-space: normal;
    text-align: center;
  }

  .brand img {
    width: 48px;
    height: 48px;
  }

  .hero-copy h1 {
    font-size: 2.15rem;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .section {
    padding: 48px 0;
  }

  .stage,
  .preset-card,
  .session-card,
  .metric-card,
  .doctor-card {
    padding: 16px;
  }
}

/* Internal product surfaces */
.auth-page,
.account-page,
.games-page {
  min-height: 100svh;
  background:
    radial-gradient(circle at 8% 12%, rgba(55, 185, 154, 0.15), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(29, 111, 214, 0.12), transparent 28%),
    linear-gradient(180deg, #f7fbff 0%, #eef8f6 100%);
  color: var(--ink);
}

.auth-page input,
.auth-page select,
.auth-page textarea,
.account-page input,
.account-page select,
.account-page textarea,
.games-page input,
.games-page select,
.games-page textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.auth-page input:focus,
.auth-page select:focus,
.auth-page textarea:focus,
.account-page input:focus,
.account-page select:focus,
.account-page textarea:focus,
.games-page input:focus,
.games-page select:focus,
.games-page textarea:focus {
  border-color: rgba(29, 111, 214, 0.68);
  box-shadow: 0 0 0 4px rgba(29, 111, 214, 0.12);
}

.auth-page label,
.account-page label,
.admin-page label {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: #263645;
}

.auth-header,
.account-header {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo-container {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo-image {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(20, 33, 43, 0.1);
}

.logo-text {
  display: block;
  font-family: "Literata", serif;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
}

.logo-subtitle,
.section-subtitle,
.auth-note,
.auth-hint,
.admin-role-note,
.muted {
  color: var(--muted);
  line-height: 1.55;
}

.account-nav,
.topbar-actions,
.auth-step-actions,
.button-row,
.admin-filter-actions,
.account-hero-actions,
.games-hero-actions,
.admin-user-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.auth-shell,
.account-shell,
.games-shell-page {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  padding: 16px 0 72px;
}

.auth-card {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
  overflow: hidden;
  border: 1px solid rgba(217, 229, 236, 0.9);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.auth-card-single {
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.72fr);
}

.auth-info {
  position: relative;
  padding: 42px;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 214, 107, 0.34), transparent 27%),
    radial-gradient(circle at 90% 90%, rgba(55, 185, 154, 0.18), transparent 32%),
    linear-gradient(135deg, #f4fbff 0%, #eefaf6 100%);
}

.auth-info::after {
  content: "";
  position: absolute;
  right: 34px;
  bottom: 28px;
  width: 180px;
  height: 130px;
  opacity: 0.9;
  background: url("assets/branding/hero-journey.svg") center / contain no-repeat;
  pointer-events: none;
}

.auth-info-compact::after {
  width: 140px;
  height: 100px;
}

.auth-badge,
.eyebrow,
.dashboard-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 11px;
  border: 1px solid rgba(29, 111, 214, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--blue-deep);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-info h1 {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 18px 0 16px;
  font-family: "Literata", serif;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.auth-info p {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.auth-highlight-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.auth-stat,
.account-meta > div,
.games-email-chip {
  border: 1px solid rgba(217, 229, 236, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  padding: 13px 15px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(20, 33, 43, 0.06);
}

.auth-side-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.auth-side-metrics .metric-card {
  padding: 15px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
}

.auth-forms {
  padding: 30px;
  background: rgba(255, 255, 255, 0.88);
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 22px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #edf8f6;
}

.auth-tab {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.auth-tab.active {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 8px 24px rgba(20, 33, 43, 0.1);
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: grid;
  gap: 14px;
}

.auth-form-head h2 {
  margin: 0 0 6px;
  font-size: 1.55rem;
  line-height: 1.15;
}

.auth-field,
.account-form,
.admin-filter-form,
.report-filter,
.teacher-student-card {
  display: grid;
  gap: 8px;
}

.auth-inline-actions {
  display: flex;
  justify-content: flex-end;
}

.auth-text-link {
  color: var(--blue);
  font-weight: 900;
}

.auth-form button[type="submit"],
.auth-step-actions button[type="submit"],
.auth-step-actions button[type="button"],
.account-form button,
.admin-filter-form button,
.admin-compact-form button,
.admin-password-form button {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  padding: 0 16px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(29, 111, 214, 0.22);
}

.auth-step-actions button[type="button"],
.admin-filter-form button[type="submit"] + a,
.ghost-button {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.auth-alert,
.account-alert {
  padding: 13px 15px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 800;
}

.auth-alert.error,
.account-alert.error {
  border-color: #ffd0d0;
  background: #fff1f1;
  color: #9f1d1d;
}

.auth-alert.success,
.account-alert.success {
  border-color: #b7f0dc;
  background: #ecfdf5;
  color: #07634f;
}

.auth-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0;
}

.auth-step-pill {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-size: 0.82rem;
  font-weight: 900;
}

.auth-step-pill.active {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.auth-step {
  display: none;
  gap: 14px;
}

.auth-step.active {
  display: grid;
}

.auth-checkbox,
.admin-checkbox {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 9px;
  align-items: start;
}

.auth-checkbox input,
.admin-checkbox input {
  width: auto;
  min-height: auto;
  margin-top: 4px;
}

.cta-button,
.ghost-button,
.account-nav a,
.account-nav button,
.admin-user-actions-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  padding: 0 16px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.cta-button {
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
}

.ghost-button,
.account-nav a,
.account-nav button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
}

.account-hero,
.games-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.46fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 22px;
  padding: 30px;
  border: 1px solid rgba(217, 229, 236, 0.92);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.account-hero h1,
.games-hero h1 {
  max-width: 760px;
  margin: 10px 0 12px;
  font-family: "Literata", serif;
  font-size: clamp(2rem, 4vw, 3.65rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.account-meta {
  display: grid;
  gap: 12px;
}

.label,
.stat-label,
.games-session-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dashboard-grid,
.user-dashboard-grid,
.admin-metrics-grid,
.games-preview-grid,
.dashboard-focus-grid,
.admin-user-card-grid {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.dashboard-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.user-dashboard-grid,
.admin-metrics-grid,
.games-preview-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-focus-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
}

.admin-user-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-span-3 { grid-column: span 3; }
.dashboard-span-4 { grid-column: span 4; }
.dashboard-span-5 { grid-column: span 5; }
.dashboard-span-6 { grid-column: span 6; }
.dashboard-span-7 { grid-column: span 7; }
.dashboard-span-8 { grid-column: span 8; }
.dashboard-span-12 { grid-column: span 12; }

.account-card,
.dashboard-panel,
.dashboard-focus-card,
.dashboard-rail-card,
.stat-card,
.admin-stat-card,
.games-preview-card,
.games-side-card,
.games-history-card,
.games-embed-card,
.admin-user-tools,
.admin-user-card,
.report-detail {
  min-width: 0;
  border: 1px solid rgba(217, 229, 236, 0.92);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  padding: 20px;
  box-shadow: 0 12px 34px rgba(20, 33, 43, 0.07);
}

.stat-card,
.admin-stat-card {
  border-left: 5px solid var(--mint);
}

.stat-value {
  display: block;
  margin-top: 6px;
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1;
}

.dashboard-chip-row,
.games-session-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-chip,
.games-session-stat {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 0 11px;
  color: #334a5e;
  font-size: 0.82rem;
  font-weight: 800;
}

.account-list,
.dashboard-rail-list,
.account-chat-list,
.games-bullets,
.games-session-list,
.games-analytics-list,
.admin-role-list,
.admin-teacher-link-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.account-list > div,
.account-chat-list li,
.games-analytics-item,
.games-session-item,
.admin-role-item,
.admin-teacher-link-list > div {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f9fcff;
  padding: 13px;
}

.admin-tools-head,
.admin-user-card-head,
.games-history-head,
.games-embed-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.admin-inline-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-table {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.admin-table-head,
.admin-table-row {
  min-width: 780px;
  display: grid;
  grid-template-columns: 1.4fr 0.72fr 0.72fr 0.9fr;
  gap: 12px;
  align-items: center;
  padding: 13px 15px;
}

.admin-table-head {
  background: #edf8f6;
  font-weight: 900;
}

.admin-table-row + .admin-table-row {
  border-top: 1px solid var(--line);
}

.games-preview-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.games-preview-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(20, 33, 43, 0.11);
}

.games-preview-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 15px;
  background: #edf8f6;
  font-size: 1.35rem;
}

.games-iframe {
  width: 100%;
  min-height: 760px;
  border: 0;
  border-radius: 18px;
  background: #fff;
}

.games-sync-indicator {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 11px;
  background: #ecfdf5;
  color: #07634f;
  font-size: 0.82rem;
  font-weight: 900;
}

.simple-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1020px) {
  .auth-card,
  .auth-card-single,
  .account-hero,
  .games-hero,
  .dashboard-focus-grid {
    grid-template-columns: 1fr;
  }

  .user-dashboard-grid,
  .admin-metrics-grid,
  .games-preview-grid,
  .admin-user-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-span-3,
  .dashboard-span-4,
  .dashboard-span-5,
  .dashboard-span-6,
  .dashboard-span-7,
  .dashboard-span-8 {
    grid-column: span 12;
  }
}

@media (max-width: 680px) {
  .auth-header,
  .account-header,
  .auth-shell,
  .account-shell,
  .games-shell-page {
    width: min(var(--container), calc(100% - 20px));
  }

  .auth-header,
  .account-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .account-nav,
  .topbar-actions,
  .auth-step-actions,
  .button-row,
  .account-hero-actions,
  .games-hero-actions,
  .admin-user-actions-row {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .cta-button,
  .ghost-button,
  .account-nav a,
  .account-nav button,
  .auth-form button[type="submit"],
  .auth-step-actions button {
    width: 100%;
  }

  .auth-info,
  .auth-forms,
  .account-hero,
  .games-hero,
  .account-card,
  .dashboard-panel,
  .dashboard-focus-card,
  .dashboard-rail-card,
  .stat-card,
  .admin-stat-card,
  .games-preview-card,
  .games-side-card,
  .games-history-card,
  .games-embed-card,
  .admin-user-tools,
  .admin-user-card {
    padding: 18px;
  }

  .auth-info::after {
    position: static;
    display: block;
    width: 100%;
    height: 120px;
    margin-top: 16px;
  }

  .auth-info h1,
  .account-hero h1,
  .games-hero h1 {
    font-size: 2rem;
    letter-spacing: -0.035em;
  }

  .auth-side-metrics,
  .user-dashboard-grid,
  .admin-metrics-grid,
  .games-preview-grid,
  .admin-inline-fields,
  .admin-user-card-grid {
    grid-template-columns: 1fr;
  }

  .admin-tools-head,
  .admin-user-card-head,
  .games-history-head,
  .games-embed-head {
    display: grid;
  }

  .admin-table-head,
  .admin-table-row {
    min-width: 680px;
  }

  .games-iframe {
    min-height: 680px;
  }
}
