:root {
  --bg: #f4efe7;
  --paper: rgba(255, 252, 248, 0.84);
  --paper-strong: rgba(255, 255, 255, 0.9);
  --surface-soft: rgba(255, 250, 244, 0.74);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --ink: #1f2522;
  --text: #1f2522;
  --muted: #5f6762;
  --accent: #157c67;
  --accent-strong: #0f5f4f;
  --accent-2: #21363b;
  --accent-3: #dff1eb;
  --accent-warm: #cc7c48;
  --accent-sun: #f1c873;
  --line: rgba(30, 37, 34, 0.1);
  --shadow: 0 22px 58px rgba(26, 31, 29, 0.11);
  --shadow-soft: 0 16px 36px rgba(26, 31, 29, 0.07);
  --shadow-lift: 0 28px 72px rgba(26, 31, 29, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Segoe UI Variable Text", "Segoe UI", "Bahnschrift", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(21, 124, 103, 0.16), transparent 30%),
    radial-gradient(circle at top right, rgba(204, 124, 72, 0.12), transparent 26%),
    radial-gradient(circle at bottom left, rgba(223, 241, 235, 0.6), transparent 34%),
    linear-gradient(135deg, #fcfaf7 0%, #f5f1eb 48%, #f9f5ef 100%);
}

body {
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.36;
  background:
    linear-gradient(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.55)),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 34px,
      rgba(21, 124, 103, 0.025) 34px,
      rgba(21, 124, 103, 0.025) 35px
    );
}

.ambient {
  position: fixed;
  z-index: 0;
  border-radius: 999px;
  filter: blur(42px);
  opacity: 0.6;
}

.ambient-a {
  top: -120px;
  right: -70px;
  width: 380px;
  height: 380px;
  background: rgba(21, 124, 103, 0.18);
}

.ambient-b {
  left: -90px;
  bottom: -90px;
  width: 320px;
  height: 320px;
  background: rgba(204, 124, 72, 0.14);
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 32px));
  margin: 24px auto 52px;
  display: grid;
  gap: 22px;
}

.nav-ribbon {
  position: sticky;
  top: 12px;
  z-index: 8;
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 244, 238, 0.84) 100%);
  box-shadow: var(--shadow-soft);
}

.nav-ribbon-head {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nav-ribbon-label {
  font-weight: 800;
  color: var(--accent-2);
}

.nav-ribbon-toggle {
  min-height: 48px;
}

.nav-ribbon-drawer {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.nav-ribbon-summary {
  display: grid;
  gap: 3px;
  min-width: 200px;
  max-width: 250px;
  padding-right: 8px;
}

.nav-ribbon-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.nav-ribbon-summary small {
  color: var(--muted);
  line-height: 1.35;
  font-size: 12px;
}

.nav-ribbon .button.is-active {
  background: linear-gradient(135deg, rgba(31, 142, 115, 0.18) 0%, rgba(215, 236, 229, 0.88) 100%);
  border-color: rgba(31, 142, 115, 0.28);
  color: var(--accent);
  box-shadow: 0 12px 24px rgba(31, 142, 115, 0.08);
}

.button,
.option,
.drag-chip,
.content-question-row,
.creator-option-card {
  touch-action: manipulation;
}

.network-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-left: auto;
  min-width: 96px;
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.network-badge.online {
  color: var(--accent);
  background: rgba(31, 142, 115, 0.12);
}

.network-badge.offline {
  color: #7c5a00;
  background: rgba(255, 196, 92, 0.2);
}

.grid-two,
.grid-three {
  display: grid;
  gap: 20px;
}

.grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(253, 250, 245, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  padding: 24px;
}

.hero {
  padding: 32px;
}

.hero-intro {
  display: grid;
  gap: 14px;
  background:
    radial-gradient(circle at top right, rgba(21, 124, 103, 0.11), transparent 34%),
    radial-gradient(circle at bottom left, rgba(204, 124, 72, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(251, 247, 241, 0.88) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(320px, 0.78fr);
  gap: 28px;
  align-items: stretch;
}

.hero-copy {
  display: grid;
  gap: 14px;
  align-content: start;
  max-width: 660px;
}

.hero-copy h1,
.hero-copy .lead,
.hero-copy .eyebrow {
  margin: 0;
}

.hero-copy h1 {
  max-width: 11ch;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.brand-figure {
  width: 100%;
  margin: 0;
}

.brand-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}

.brand-figure svg {
  display: block;
  width: 100%;
  height: auto;
}

.hero-brand-panel {
  display: flex;
  justify-content: stretch;
  align-items: stretch;
  min-height: 100%;
}

.hero-dashboard-card {
  width: 100%;
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(21, 124, 103, 0.14);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.92) 0%, rgba(244, 250, 248, 0.92) 60%, rgba(255, 249, 242, 0.9) 100%);
  box-shadow: var(--shadow-soft);
}

.hero-dashboard-top {
  display: grid;
  gap: 8px;
}

.hero-dashboard-top strong {
  font-size: 22px;
  line-height: 1.08;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

.hero-dashboard-top .muted {
  margin: 0;
}

.brand-image-card {
  margin: 0;
  display: grid;
  place-items: center;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(38, 38, 38, 0.08);
  box-shadow: 0 18px 36px rgba(38, 38, 38, 0.08);
}

.brand-image-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.brand-image-card-shield {
  width: 152px;
}

.game-badge {
  padding: 10px 15px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(31, 142, 115, 0.14) 0%, rgba(38, 38, 38, 0.08) 100%);
  border: 1px solid rgba(31, 142, 115, 0.18);
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.hero-format-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: 14px;
}

.hero-brand-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin-left: 0;
}

.brand-mini-card {
  margin: 0;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  padding: 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(38, 38, 38, 0.06);
  box-shadow:
    0 12px 28px rgba(38, 38, 38, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.brand-mini-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(0.98) contrast(1.02);
}

.brand-mini-card:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 142, 115, 0.16);
  box-shadow:
    0 18px 34px rgba(38, 38, 38, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.hero-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hero-feature-card {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  min-height: 86px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(246, 250, 248, 0.76) 100%);
  box-shadow: 0 10px 24px rgba(38, 38, 38, 0.05);
}

.hero-feature-icon {
  display: grid;
  place-items: center;
  inline-size: 38px;
  block-size: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(31, 142, 115, 0.14) 0%, rgba(215, 236, 229, 0.92) 100%);
  color: var(--accent);
}

.hero-feature-icon svg {
  inline-size: 20px;
  block-size: 20px;
}

.hero-feature-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  line-height: 1.25;
}

.hero-feature-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-quick-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(38, 38, 38, 0.04);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.hero-actions .button {
  min-height: 52px;
}

.hero-status-grid,
.hero-control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hero-status-card,
.hero-control-card {
  display: grid;
  gap: 6px;
  min-height: 108px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(244, 250, 248, 0.76) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.hero-status-card span,
.hero-control-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-status-card strong,
.hero-control-card strong {
  font-size: 19px;
  line-height: 1.08;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

.hero-status-card small,
.hero-control-card small {
  color: var(--muted);
  line-height: 1.35;
  font-size: 12px;
}

.hero-status-card:first-child {
  grid-column: 1 / -1;
}

.journey-panel {
  display: grid;
  gap: 16px;
  padding-block: 22px;
}

.exam-preflight-note {
  margin: 8px 0 0;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(31, 142, 115, 0.16);
  background: linear-gradient(135deg, rgba(31, 142, 115, 0.08) 0%, rgba(255, 255, 255, 0.92) 100%);
  line-height: 1.4;
  color: var(--muted);
  font-size: 13px;
}

.exam-preflight-note strong {
  display: inline;
  margin-bottom: 0;
  color: var(--ink);
}

.start-disclaimer {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(38, 38, 38, 0.08);
  background: rgba(31, 142, 115, 0.05);
  display: grid;
  gap: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.consent-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: flex-start;
  line-height: 1.55;
  cursor: pointer;
}

.consent-check input {
  margin-top: 4px;
  inline-size: 20px;
  block-size: 20px;
}

.journey-map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

.journey-progress-shell {
  display: grid;
  gap: 12px;
}

.journey-progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.journey-progress-copy strong {
  font-size: 16px;
}

.journey-progress-copy span {
  color: var(--muted);
  font-size: 14px;
}

.journey-progress-line {
  background: rgba(38, 38, 38, 0.08);
}

.journey-node {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(38, 38, 38, 0.08);
  background: rgba(255, 255, 255, 0.76);
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease,
    background 0.24s ease;
}

.journey-node::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -14px;
  width: 28px;
  height: 2px;
  background: rgba(38, 38, 38, 0.12);
}

.journey-node:last-child::after {
  display: none;
}

.journey-node b {
  font-size: 16px;
}

.journey-node small {
  color: var(--muted);
  line-height: 1.45;
}

.journey-node.current {
  border-color: rgba(31, 142, 115, 0.32);
  background: linear-gradient(135deg, rgba(31, 142, 115, 0.12) 0%, rgba(255, 255, 255, 0.88) 100%);
  box-shadow: 0 18px 34px rgba(31, 142, 115, 0.14);
  animation: node-float 1.8s ease-in-out infinite;
}

.journey-node.complete {
  background: rgba(31, 142, 115, 0.14);
  border-color: rgba(31, 142, 115, 0.18);
}

.journey-node.locked {
  opacity: 0.68;
}

.journey-node-result {
  background: rgba(38, 38, 38, 0.05);
}

.journey-node-state {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(38, 38, 38, 0.08);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.compact {
  padding-bottom: 20px;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0 0 10px;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-weight: 700;
}

h1 {
  font-size: clamp(30px, 6vw, 56px);
  line-height: 0.96;
}

h2 {
  font-size: 28px;
}

h3 {
  font-size: 22px;
}

.lead,
.muted,
.message,
.field span {
  line-height: 1.5;
}

.lead,
.muted {
  color: var(--muted);
}

.meta-row,
.section-row,
.progress-meta,
.tour-head,
.stage-header,
.dashboard-head,
.actions.inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pill,
.stage-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(31, 142, 115, 0.08);
  font-size: 14px;
}

.pill-accent {
  background: rgba(31, 142, 115, 0.18);
  color: var(--accent);
  border: 1px solid rgba(31, 142, 115, 0.18);
}

.progress-bars {
  display: grid;
  gap: 10px;
  margin: 12px 0 18px;
}

.progress-line {
  position: relative;
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: rgba(31, 142, 115, 0.08);
}

.progress-line.secondary {
  background: rgba(38, 38, 38, 0.08);
}

.progress-line span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent) 0%, #34a389 100%);
  transition: width 0.28s ease;
}

.progress-line.secondary span {
  background: linear-gradient(90deg, var(--accent-2) 0%, #5a5a5a 100%);
}

.form-stack,
.flat-list,
.result-grid,
.detail-block {
  display: grid;
  gap: 14px;
}

.flat-list {
  margin: 0;
  padding-left: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

#prestart-section > .card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(250, 252, 251, 0.86) 100%);
  box-shadow:
    0 22px 48px rgba(38, 38, 38, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

#prestart-section h2 {
  font-size: 24px;
  margin-bottom: 2px;
}

.section-intro {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  max-width: 40ch;
}

#registration-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

#registration-form .field-wide,
#registration-form .button {
  grid-column: 1 / -1;
}

#registration-form .field span,
#prestart-section .field span {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 700;
}

#registration-form input {
  min-height: 56px;
  border-radius: 18px;
  border-color: rgba(38, 38, 38, 0.09);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
  padding-inline: 16px;
}

#registration-form input:focus,
#registration-form input:focus-visible {
  outline: none;
  border-color: rgba(31, 142, 115, 0.34);
  box-shadow:
    0 0 0 4px rgba(31, 142, 115, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

#rules-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#rules-list li {
  position: relative;
  padding: 14px 16px 14px 44px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(38, 38, 38, 0.07);
  line-height: 1.45;
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(38, 38, 38, 0.04);
  font-size: 13px;
}

#rules-list li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 17px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(31, 142, 115, 0.16) 0%, rgba(215, 236, 229, 0.98) 100%);
  box-shadow: inset 0 0 0 4px rgba(31, 142, 115, 0.96);
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  padding: 14px 16px;
  color: var(--ink);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  padding: 14px 16px;
  color: var(--ink);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.button {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 18px;
  padding: 14px 18px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition:
    transform 0.2s ease,
    opacity 0.18s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.button.primary {
  background: linear-gradient(135deg, var(--accent) 0%, #25a287 100%);
  color: #fff;
  box-shadow: 0 16px 36px rgba(21, 124, 103, 0.22);
}

.button.secondary {
  background: linear-gradient(135deg, rgba(33, 54, 59, 0.09) 0%, rgba(255, 255, 255, 0.76) 100%);
  color: var(--ink);
  border-color: rgba(33, 54, 59, 0.08);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.button.ghost:hover {
  background: rgba(21, 124, 103, 0.08);
}

.prestart-actions {
  margin-top: 2px;
  gap: 10px;
}

.prestart-actions .button {
  min-height: 54px;
}

.prestart-actions .button.primary {
  flex: 1 1 260px;
}

.prestart-actions .button.secondary {
  background: rgba(255, 255, 255, 0.9);
}

.start-disclaimer {
  margin-top: 10px;
  padding: 16px;
  border-radius: 18px;
  gap: 8px;
}

.consent-check {
  line-height: 1.45;
}

.consent-check span {
  font-size: 14px;
}

#hero-section,
#prestart-section > .card {
  animation: surface-reveal 0.52s ease both;
}

#prestart-section > .card:last-child {
  animation-delay: 0.08s;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.message {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(38, 38, 38, 0.07);
}

.message.success {
  background: rgba(31, 142, 115, 0.14);
}

.message.error {
  background: rgba(38, 38, 38, 0.1);
}

.message.warning {
  background: rgba(255, 196, 92, 0.18);
}

.hidden {
  display: none !important;
}

body.exam-mode-active {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  overscroll-behavior: none;
}

body.exam-mode-active #nav-ribbon,
body.exam-mode-active #hero-section,
body.exam-mode-active .journey-panel,
body.exam-mode-active .exam-cockpit,
body.exam-mode-active .participant-mode-strip,
body.exam-mode-active .footer-note {
  display: none;
}

body.exam-mode-active .shell {
  margin-top: 12px;
}

body.exam-mode-active .question-card,
body.exam-mode-active .question-card *,
body.exam-mode-active .tour-head,
body.exam-mode-active .tour-head *,
body.exam-mode-active .progress-meta,
body.exam-mode-active .progress-meta *,
body.exam-mode-active .participant-mode-strip,
body.exam-mode-active .participant-mode-strip * {
  -webkit-user-select: none;
  user-select: none;
}

body.exam-mode-active input,
body.exam-mode-active button,
body.exam-mode-active label {
  -webkit-user-select: none;
  user-select: none;
}

.sync-status-stack {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.sync-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.participant-mode-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 16px;
}

.system-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.system-pill.neutral {
  background: rgba(38, 38, 38, 0.08);
  color: var(--ink);
}

.system-pill.active {
  background: rgba(31, 142, 115, 0.12);
  color: var(--accent);
}

.system-pill.ready {
  background: rgba(31, 142, 115, 0.16);
  color: var(--accent);
}

.system-pill.warning {
  background: rgba(255, 196, 92, 0.22);
  color: #7c5a00;
}

.system-pill.error {
  background: rgba(179, 68, 68, 0.18);
  color: #812b2b;
}

.transition-banner {
  position: relative;
  overflow: hidden;
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(31, 142, 115, 0.18);
  background: linear-gradient(135deg, rgba(31, 142, 115, 0.12) 0%, rgba(255, 255, 255, 0.9) 100%);
  color: var(--accent-2);
  font-weight: 700;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.transition-banner.show {
  animation: transition-banner-in 1.55s ease forwards;
}

.transition-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.45) 50%, transparent 80%);
  transform: translateX(-120%);
  animation: transition-sheen 1.3s ease;
}

.sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid transparent;
}

.sync-badge.idle {
  background: rgba(38, 38, 38, 0.08);
  color: var(--ink);
}

.sync-badge.pending {
  background: rgba(31, 142, 115, 0.12);
  color: var(--accent);
}

.sync-badge.success {
  background: rgba(31, 142, 115, 0.16);
  color: var(--accent);
}

.sync-badge.warning {
  background: rgba(255, 196, 92, 0.2);
  color: #7c5a00;
}

.sync-badge.error {
  background: rgba(179, 68, 68, 0.18);
  color: #812b2b;
}

.sync-meta {
  font-size: 13px;
}

.exam-guard-overlay {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  padding: 24px;
}

.exam-guard-overlay.hidden {
  display: none;
}

.exam-guard-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 24, 26, 0.48);
  backdrop-filter: blur(6px);
}

.exam-guard-card {
  position: relative;
  z-index: 1;
  width: min(620px, calc(100vw - 32px));
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(31, 142, 115, 0.16);
  box-shadow: 0 28px 64px rgba(18, 24, 26, 0.22);
}

.exam-guard-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.timer-stack {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.exam-cockpit {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.timer-box,
.stat-card,
.result-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 248, 246, 0.74) 100%);
  box-shadow: var(--shadow-soft);
}

.secondary-timer {
  background: rgba(31, 142, 115, 0.12);
}

.timer-box.warning {
  background: rgba(255, 196, 92, 0.2);
}

.timer-box.critical {
  background: rgba(179, 68, 68, 0.16);
}

.timer-box strong,
.stat-card strong {
  display: block;
  margin-top: 6px;
  font-size: 30px;
}

.cockpit-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(247, 250, 249, 0.76) 100%);
  display: grid;
  gap: 8px;
  box-shadow: var(--shadow-soft);
}

.cockpit-card strong {
  font-size: 26px;
  line-height: 1.05;
}

.cockpit-card small {
  color: var(--muted);
  line-height: 1.45;
}

.cockpit-card.neutral {
  background: rgba(38, 38, 38, 0.05);
}

.cockpit-card.active {
  background: rgba(31, 142, 115, 0.12);
}

.cockpit-card.warning {
  background: rgba(255, 196, 92, 0.2);
}

.cockpit-label {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.action-deck {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.stat-label {
  color: var(--muted);
  font-size: 14px;
}

.question-card {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 249, 0.78) 100%);
  padding: 18px;
  transform-origin: top center;
  box-shadow: var(--shadow-soft);
}

.question-single {
  min-height: 420px;
}

.question-enter {
  animation: question-enter 0.32s ease;
}

.question-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
}

.auto-check-badge {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
  font-weight: 700;
}

.options {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.question-photo { margin: 0 auto 20px; width: 100%; max-width: 720px; }
.question-photo img {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 2;
  object-fit: contain; border-radius: 16px; background: #f4f1eb;
}
.photo-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.photo-options .option { min-height: 58px; min-width: 0; transition: border-color 150ms, background 150ms; }
.photo-options .option:has(input:checked) {
  border-color: var(--accent); background: rgba(31, 142, 115, 0.12);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.photo-options .option:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 480px) {
  .photo-options { grid-template-columns: 1fr; }
  .question-photo { margin-bottom: 16px; }
}

.option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(31, 142, 115, 0.05);
  min-height: 56px;
}

.option input {
  width: auto;
  margin-top: 4px;
  inline-size: 20px;
  block-size: 20px;
  flex: 0 0 auto;
}

.drag-layout {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.drag-bank,
.bucket-column,
.drop-slot {
  border: 1px dashed rgba(38, 38, 38, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  padding: 14px;
}

.bucket-column.is-active,
.drop-slot.is-active {
  border-color: rgba(31, 142, 115, 0.8);
  background: rgba(31, 142, 115, 0.08);
  box-shadow: inset 0 0 0 1px rgba(31, 142, 115, 0.18);
}

.bucket-column.is-active,
.drop-slot.is-active,
.drag-bank:has(.drag-chip:hover) {
  animation: active-zone-pulse 1.4s ease-in-out infinite;
}

.drag-bank-header,
.drop-slot-label {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.drag-bank-items,
.drop-slot-body,
.bucket-items {
  min-height: 76px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-start;
  padding: 10px;
  border-radius: 16px;
  background: rgba(31, 142, 115, 0.03);
  transition: background-color 0.18s ease;
}

.drag-bank-items.is-over,
.drop-slot-body.is-over,
.bucket-items.is-over {
  background: rgba(31, 142, 115, 0.12);
}

.drag-chip {
  border: 0;
  border-radius: 999px;
  padding: 13px 16px;
  background: linear-gradient(135deg, rgba(31, 142, 115, 0.18) 0%, rgba(38, 38, 38, 0.08) 100%);
  color: var(--ink);
  cursor: grab;
  user-select: none;
  min-height: 48px;
  font-size: 15px;
  box-shadow: 0 10px 22px rgba(24, 51, 71, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.drag-chip span {
  display: block;
}

.drag-chip.has-image {
  width: 144px;
  min-height: 142px;
  padding: 8px;
  border-radius: 18px;
  display: grid;
  grid-template-rows: 92px auto;
  gap: 8px;
  align-items: center;
  justify-items: stretch;
  text-align: center;
  line-height: 1.25;
}

.drag-chip.has-image img {
  width: 100%;
  height: 92px;
  object-fit: contain;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.72);
}

.drag-chip.has-image.image-unavailable {
  grid-template-rows: auto;
  min-height: 72px;
}

.drag-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(24, 51, 71, 0.12);
}

.drag-chip:active {
  cursor: grabbing;
  transform: scale(0.98);
}

.drag-chip.placed {
  background: linear-gradient(135deg, rgba(31, 142, 115, 0.26) 0%, rgba(215, 236, 229, 0.42) 100%);
}

.drag-chip.is-dragging {
  opacity: 0.55;
}

.drop-grid,
.bucket-grid,
.table-wrap {
  display: grid;
  gap: 14px;
}

.interaction-summary {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(31, 142, 115, 0.06);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.bucket-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  margin-left: 8px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(31, 142, 115, 0.16);
  color: var(--ink);
  font-size: 12px;
}

.bucket-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.dish-assembly-layout {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.dish-context-note {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  background: rgba(31, 142, 115, 0.06);
  color: var(--muted);
}

.dish-context-note strong {
  color: var(--ink);
}

.dish-bank,
.dish-zone {
  border: 1px dashed rgba(38, 38, 38, 0.18);
  border-radius: 20px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.76);
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.dish-zone.is-active,
.dish-zone.is-over,
.dish-zone-items.is-over,
.dish-bank-items.is-over {
  border-color: rgba(31, 142, 115, 0.82);
  background: rgba(31, 142, 115, 0.08);
}

.dish-zone.is-active {
  box-shadow: inset 0 0 0 1px rgba(31, 142, 115, 0.16);
}

.dish-zone-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.dish-zone-heading div {
  display: grid;
  gap: 3px;
}

.dish-zone-heading small {
  color: var(--muted);
  font-weight: 400;
}

.dish-zone-heading > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(31, 142, 115, 0.14);
  font-weight: 800;
}

.dish-bank-items,
.dish-zone-items {
  min-height: 82px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
  padding: 10px;
  border-radius: 16px;
  background: rgba(31, 142, 115, 0.025);
}

.dish-zones {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
  gap: 14px;
}

.dish-zones > :only-child {
  grid-column: 1 / -1;
}

.dish-plate {
  position: relative;
  width: min(330px, 82vw);
  aspect-ratio: 1;
  margin: 6px auto 16px;
  overflow: hidden;
  border: 18px solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.98) 0 45%, rgba(230, 238, 235, 0.9) 46% 67%, rgba(255, 255, 255, 0.98) 68% 100%);
  box-shadow: 0 24px 50px rgba(24, 51, 71, 0.14), inset 0 0 0 1px rgba(38, 38, 38, 0.06);
}

.dish-viewer {
  margin: 4px 0 18px;
  overflow: hidden;
  border: 1px solid rgba(31, 142, 115, 0.13);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.98), rgba(246, 239, 225, 0.82) 44%, rgba(220, 235, 228, 0.72) 100%),
    linear-gradient(135deg, #fbf8f1, #eaf4f0);
  box-shadow: 0 22px 48px rgba(24, 51, 71, 0.13);
}

.dish-viewer-stage {
  position: relative;
  min-height: clamp(360px, 46vw, 500px);
  overflow: hidden;
  isolation: isolate;
}

.dish-viewer-stage::before {
  content: "";
  position: absolute;
  inset: auto 8% 7% 8%;
  height: 18%;
  border-radius: 50%;
  background: rgba(35, 68, 59, 0.15);
  filter: blur(22px);
}

.dish-3d-host {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.dish-viewer.is-3d-ready .dish-3d-host {
  opacity: 1;
}

.dish-3d-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

.dish-3d-canvas.is-dragging {
  cursor: grabbing;
}

.dish-fallback-plate {
  position: absolute;
  z-index: 1;
  inset: 50% auto auto 50%;
  width: min(360px, 78%);
  margin: 0;
  transform: translate(-50%, -50%) rotateX(5deg);
  transition: opacity 0.2s ease;
}

.dish-viewer-salad .dish-fallback-plate {
  border-radius: 46% 46% 50% 50%;
  border-color: rgba(240, 250, 247, 0.78);
}

.dish-viewer.is-3d-ready .dish-fallback-plate {
  opacity: 0;
  pointer-events: none;
}

.dish-fallback-ingredient {
  position: absolute;
  width: 38%;
  height: 38%;
  object-fit: contain;
  filter: drop-shadow(0 9px 8px rgba(32, 55, 48, 0.15));
  animation: dish-layer-arrive 0.3s cubic-bezier(0.2, 0.86, 0.35, 1.15) both;
}

.dish-fallback-ingredient:nth-child(1) { left: 8%; top: 10%; }
.dish-fallback-ingredient:nth-child(2) { right: 7%; top: 10%; }
.dish-fallback-ingredient:nth-child(3) { left: 30%; top: 27%; }
.dish-fallback-ingredient:nth-child(4) { left: 8%; bottom: 8%; }
.dish-fallback-ingredient:nth-child(5) { right: 7%; bottom: 8%; }
.dish-fallback-ingredient:nth-child(6) { left: 31%; bottom: 2%; }
.dish-fallback-ingredient:nth-child(7) { left: 1%; top: 32%; }
.dish-fallback-ingredient:nth-child(8) { right: 1%; top: 33%; }

.dish-viewer-toolbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 10px 12px 10px 16px;
  border-top: 1px solid rgba(31, 142, 115, 0.1);
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(12px);
}

.dish-viewer-status {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 700;
}

.dish-viewer-controls {
  display: flex;
  gap: 7px;
}

.dish-viewer-button {
  min-width: 38px;
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid rgba(31, 142, 115, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent-2);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.dish-viewer-reset {
  font-size: 12px;
}

.dish-bank {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 249, 246, 0.82));
}

.dish-bank .drag-chip.has-image {
  width: 156px;
  min-height: 164px;
  grid-template-rows: 106px auto;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(31, 142, 115, 0.12);
}

.dish-bank .drag-chip.has-image img {
  height: 106px;
  background: linear-gradient(145deg, #fff, #f1f7f4);
}

.dish-zone-items .drag-chip.has-image {
  width: 122px;
  min-height: 118px;
  grid-template-rows: 72px auto;
  font-size: 13px;
}

.dish-zone-items .drag-chip.has-image img {
  height: 72px;
}

.recent-starts-list {
  display: grid;
  gap: 8px;
}

.recent-start-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(200px, 2fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(31, 142, 115, 0.1);
  border-radius: 14px;
  background: rgba(31, 142, 115, 0.04);
}

.recent-start-row .button {
  min-height: 38px;
}

@media (max-width: 760px) {
  .recent-start-row {
    grid-template-columns: 1fr auto;
  }

  .recent-start-row .muted {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

.visual-demo-page {
  min-height: 100vh;
}

.visual-demo-shell {
  max-width: 1380px;
}

.visual-demo-nav {
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.visual-demo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: clamp(22px, 3vw, 34px);
  background:
    radial-gradient(circle at 88% 16%, rgba(255, 197, 112, 0.26), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(232, 246, 240, 0.94));
}

.visual-demo-hero h1 {
  margin: 7px 0 12px;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 0.96;
}

.visual-demo-hero .lead {
  max-width: 64ch;
}

.visual-demo-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 20px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  list-style: none;
}

.visual-demo-steps li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.visual-demo-steps span,
.visual-demo-section-label span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: rgba(31, 142, 115, 0.1);
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 900;
}

.visual-demo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(31, 142, 115, 0.1);
}

.visual-demo-tab {
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.visual-demo-tab.is-active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(31, 142, 115, 0.24);
}

.visual-demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.45fr);
  gap: 18px;
  align-items: start;
}

.visual-demo-workbench,
.visual-demo-reference {
  padding: clamp(18px, 3vw, 28px);
}

.visual-demo-workbench {
  overflow: hidden;
}

.visual-demo-heading,
.visual-demo-bank-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.visual-demo-heading h2 {
  margin: 5px 0 12px;
  font-size: clamp(25px, 3vw, 38px);
}

.visual-demo-count {
  border: 1px solid rgba(31, 142, 115, 0.08);
  box-shadow: 0 8px 20px rgba(31, 142, 115, 0.08);
}

.visual-demo-compose {
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(0, 1.12fr);
  gap: 18px;
  align-items: start;
}

.visual-demo-stage-panel,
.visual-demo-pantry {
  min-width: 0;
}

.visual-demo-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visual-demo-reference > .visual-demo-section-label {
  margin-bottom: 18px;
}

.visual-demo-workbench .dish-viewer {
  margin-bottom: 0;
}

.visual-demo-workbench .dish-viewer-stage {
  min-height: clamp(350px, 34vw, 430px);
}

.visual-demo-bank-head {
  align-items: center;
  margin: 0 0 12px;
}

.visual-demo-bank-head > div {
  display: grid;
  gap: 4px;
}

.visual-demo-bank-head small {
  color: var(--muted);
}

.visual-demo-ingredients {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 10px;
}

.visual-ingredient-card {
  position: relative;
  display: grid;
  grid-template-rows: 88px auto auto;
  align-content: start;
  min-height: 150px;
  padding: 9px 10px 10px;
  border: 1px solid rgba(31, 142, 115, 0.12);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 244, 0.9));
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.visual-ingredient-card:hover,
.visual-ingredient-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(31, 142, 115, 0.4);
  box-shadow: 0 14px 28px rgba(24, 51, 71, 0.1);
}

.visual-ingredient-card.is-selected {
  background: linear-gradient(145deg, #ffffff, rgba(222, 243, 235, 0.94));
  border-color: var(--accent);
  box-shadow: inset 0 0 0 2px rgba(31, 142, 115, 0.18), 0 16px 30px rgba(31, 142, 115, 0.14);
}

.visual-ingredient-card.is-selected::after {
  content: "✓";
  position: absolute;
  top: 9px;
  right: 9px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}

.visual-ingredient-card img {
  display: block;
  width: 100%;
  height: 88px;
  object-fit: contain;
  margin-bottom: 4px;
}

.visual-ingredient-name {
  line-height: 1.25;
}

.visual-ingredient-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.visual-ingredient-card.is-selected small {
  color: var(--accent-2);
}

.visual-demo-reference {
  position: sticky;
  top: 16px;
}

.visual-demo-reference h2 {
  margin: 5px 0 14px;
}

.visual-demo-reference figure {
  overflow: hidden;
  margin: 0;
  border-radius: 22px;
  background: #e7eee9;
  box-shadow: 0 18px 34px rgba(24, 51, 71, 0.12);
}

.visual-demo-reference figure img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.visual-demo-reference figcaption {
  display: grid;
  gap: 6px;
  padding: 14px 16px 17px;
  background: #fff;
}

.visual-demo-reference figcaption span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.visual-demo-facts {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.visual-demo-facts article {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 15px;
  background: rgba(31, 142, 115, 0.06);
}

.visual-demo-facts span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.visual-demo-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.visual-demo-selected[hidden],
.visual-demo-scene-message[hidden],
.visual-demo-photo-note[hidden] { display: none; }

.visual-demo-selection-chip {
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid rgba(31, 142, 115, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--accent-2);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.visual-demo-selection-chip span { margin-left: 9px; color: var(--accent); }
.visual-demo-page .visual-ingredient-card:disabled { cursor: default; opacity: 0.6; }
.visual-demo-page .visual-ingredient-card:disabled:hover { transform: none; box-shadow: none; }

.visual-demo-scene-message {
  position: absolute;
  z-index: 4;
  inset: 50% auto auto 50%;
  width: min(260px, 80%);
  padding: 16px 20px;
  border: 1px solid rgba(31, 142, 115, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: var(--shadow-soft);
  transform: translate(-50%, -50%);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.visual-demo-photo-note {
  margin: 16px 2px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.dish-viewer-photo .dish-fallback-plate { width: min(400px, 88%); }
.visual-demo-workbench .is-fallback-only .dish-fallback-plate { opacity: 1; transition: none; }
.visual-demo-workbench .is-fallback-only .dish-photo-layer { animation: none; }
.dish-photo-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: dish-layer-arrive 0.25s ease both;
}

.visual-demo-roll-workflow[hidden],
.visual-demo-roll-actions [hidden],
.dish-viewer-controls[hidden] { display: none; }

.visual-demo-roll-workflow { margin-top: 20px; }
.visual-demo-roll-steps {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 0 0 12px;
  margin: 0;
  border-bottom: 1px solid rgba(31, 142, 115, .14);
  list-style: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}
.visual-demo-roll-steps li { display: flex; align-items: center; gap: 6px; }
.visual-demo-roll-steps span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: rgba(31, 142, 115, .08);
}
.visual-demo-roll-steps [aria-current] { color: var(--accent-2); }
.visual-demo-roll-steps [aria-current] span { background: var(--accent); color: #fff; }
.visual-demo-roll-hint { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 12px 0; }
.roll-operation-panel { margin: 14px 0; padding: 16px; border: 1px solid #c8dfd4; border-radius: 17px; background: #f0f7f3; }
.roll-operation-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--accent-2); font-size: 14px; }
.roll-operation-heading span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.roll-operation-panel .visual-demo-roll-hint { margin: 9px 0 14px; color: var(--text); font-size: 14px; }
.visual-demo-workbench .roll-next-button { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 14px; min-height: 60px; padding: 15px 18px; border-radius: 13px; background: linear-gradient(135deg, var(--accent-strong), var(--accent)); font-size: 16px; font-weight: 800; line-height: 1.3; text-align: left; }
.roll-next-button::after { content: '→'; display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .18); font-size: 22px; }
.visual-demo-workbench .roll-next-button[hidden] { display: none; }
.visual-demo-workbench .roll-next-button:disabled { opacity: .55; cursor: default; box-shadow: none; }
.visual-demo-workbench .roll-next-button:focus-visible, .visual-demo-roll-actions .button:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; }
.visual-demo-roll-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.visual-demo-roll-actions .button { min-height: 48px; padding: 12px; border: 1px solid #b7cfc4; background: #fff; color: var(--accent-2); font-size: 14px; line-height: 1.4; }
.visual-demo-roll-actions .button:hover { border-color: var(--accent); background: #edf6f0; }
#demo-roll-reverse { grid-column: 1 / -1; }
.visual-demo-roll-actions .button:disabled { opacity: .55; cursor: default; }
.dish-viewer-whole-roll .dish-fallback-plate { width: min(400px, 92%); }
.dish-viewer-whole-roll:not([data-roll-stage="served"]) .dish-fallback-plate {
  border: 0;
  border-radius: 0;
  background: url('/assets/olympiad/visual-v4/philadelphia/makisu-v1.webp') center / contain no-repeat;
  box-shadow: none;
  transform: translate(-50%, -50%);
}
.dish-viewer-whole-roll.is-drop-active { outline: 2px solid var(--accent); outline-offset: 3px; }
.dish-viewer-whole-roll[data-photo-phase="whole"] .dish-photo-layer {
  inset: 5%;
  width: 90%;
  height: 90%;
  animation: whole-roll-arrive .38s ease both;
  filter: drop-shadow(0 5px 4px rgba(54, 38, 20, .16));
}
.visual-demo-reference figure .is-whole-roll-reference {
  object-fit: contain;
  padding: 12px;
  background: #f3f3eb;
}

/* Registered preparation photographs, with filling placed only on nori. */
.dish-viewer-whole-roll .dish-fallback-plate,
.dish-viewer-whole-roll:not([data-roll-stage="served"]) .dish-fallback-plate {
  width: min(450px, 100%);
  aspect-ratio: 1;
  border: 0;
  border-radius: 16px;
  background: #f3eee4;
  box-shadow: none;
  overflow: hidden;
}
.visual-demo-workbench .dish-viewer-whole-roll .roll-technique-frame {
  inset: 0;
  width: 100%;
  height: 100%;
  filter: none;
  animation: roll-frame-reveal .22s ease both;
}
.visual-demo-workbench .dish-viewer-whole-roll .roll-technique-filling {
  left: 11%;
  width: 78%;
  height: 78%;
  pointer-events: none;
  animation: roll-frame-reveal .22s ease both;
}
.dish-viewer-whole-roll .roll-mise-tray {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 18px;
  align-content: center;
}
.roll-mise-tray figure { margin: 0; min-width: 0; text-align: center; }
.roll-mise-product-photo { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 12px; }
.roll-mise-tray figcaption { color: var(--muted); font-size: 11px; font-weight: 700; margin-top: 5px; }
.visual-demo-roll-steps { flex-wrap: wrap; justify-content: flex-start; gap: 8px 13px; }
.visual-demo-roll-steps .is-complete span { color: var(--accent-2); background: rgba(31, 142, 115, .18); }
.roll-technique-roles { padding: 10px 12px; border-radius: 12px; background: #edf5f0; color: var(--accent-2); font-size: 12px; line-height: 1.55; }
.roll-composition-review { padding: 12px 14px; border: 1px solid #e8d0a5; border-radius: 13px; background: #fff7e8; color: #755020; font-size: 12px; line-height: 1.6; }
.roll-composition-review[data-match="true"] { border-color: #c5dfd3; background: #edf5f0; color: var(--accent-2); }
.roll-composition-review[hidden] { display: none; }
.roll-mat-handle {
  position: absolute;
  bottom: 22px;
  left: 50%;
  z-index: 5;
  transform: translateX(-50%);
  border: 1px solid rgba(31, 142, 115, .24);
  border-radius: 30px;
  padding: 12px 18px;
  min-height: 44px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 5px 18px rgba(45, 48, 29, .14);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-2);
  white-space: nowrap;
  touch-action: none;
  cursor: grab;
}
.roll-mat-handle:active { cursor: grabbing; }
.roll-mat-handle:disabled { opacity: .65; cursor: wait; }
.roll-mat-handle[hidden], .roll-technique-roles[hidden], .roll-gesture-progress[hidden], .roll-presentation[hidden] { display: none; }
.roll-gesture-progress { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; color: var(--muted); font-size: 11px; }
.roll-gesture-progress progress { width: 90px; height: 6px; accent-color: var(--accent); }
.roll-presentation { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 14px 0; font-size: 12px; color: var(--muted); }
.roll-presentation button { padding: 8px 10px; min-height: 44px; border: 1px solid rgba(31, 142, 115, .2); border-radius: 11px; font: inherit; background: #fff; color: var(--accent-2); cursor: pointer; }
.roll-presentation [aria-pressed="true"] { background: var(--accent); color: #fff; }
@keyframes roll-frame-reveal { from { opacity: .2; } to { opacity: 1; } }

/* Photographic salad preparation uses registered layers and exact final photos. */
.visual-demo-workbench .dish-viewer-photo-greek .dish-viewer-stage { min-height: 0; aspect-ratio: 1; }
.dish-viewer-photo-greek .dish-viewer-stage::before { display: none; }
.dish-viewer-photo-greek.is-drop-active { outline: 2px solid var(--accent); outline-offset: 3px; }
.dish-viewer-photo-greek .greek-photographic-scene { width: min(450px, 100%); aspect-ratio: 1; border: 0; border-radius: 16px; overflow: hidden; background: #f3eee4; box-shadow: none; }
.greek-photo-bowl, .greek-photo-served { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; animation: roll-frame-reveal .24s ease both; }
.greek-photo-layer { position: absolute; left: 50%; top: 50%; width: 100%; height: 100%; object-fit: contain; pointer-events: none; animation: roll-frame-reveal .24s ease both; }
.dish-viewer-photo-greek .greek-mise-tray { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 18px; align-content: center; }
.greek-mise-tray figure { margin: 0; min-width: 0; text-align: center; }
.greek-photo-tray { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 12px; }
.greek-mise-tray figcaption { color: var(--muted); font-size: 11px; font-weight: 700; margin-top: 5px; }
@media (prefers-reduced-motion: reduce) { .dish-viewer-photo-greek img { animation: none; } }

/* Photographic pizza preparation: uncooked layers precede an exact baked image. */
.visual-demo-workbench .dish-viewer-photo-pizza .dish-viewer-stage { min-height: 0; aspect-ratio: 1; }
.dish-viewer-photo-pizza .dish-viewer-stage::before { display: none; }
.dish-viewer-photo-pizza.is-drop-active { outline: 2px solid var(--accent); outline-offset: 3px; }
.dish-viewer-photo-pizza .pizza-photographic-scene { width: min(450px, 100%); aspect-ratio: 1; border: 0; border-radius: 16px; overflow: hidden; background: #f3eee4; box-shadow: none; }
.pizza-photo-base, .pizza-photo-baked { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; animation: roll-frame-reveal .24s ease both; }
.pizza-photo-tomato, .pizza-photo-topping, .pizza-photo-oil { position: absolute; left: 50%; top: 50%; width: 100%; height: 100%; object-fit: contain; pointer-events: none; animation: roll-frame-reveal .24s ease both; }
.pizza-photo-oil { opacity: .22; animation: none; }
.dish-viewer-photo-pizza .pizza-mise-tray { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 18px; align-content: center; }
.pizza-mise-tray figure { margin: 0; min-width: 0; text-align: center; }
.pizza-photo-tray { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 12px; }
.pizza-mise-tray figcaption { color: var(--muted); font-size: 11px; font-weight: 700; margin-top: 5px; }
.pizza-bake-progress { display: grid; gap: 9px; margin: 12px 0; color: var(--accent-2); font-size: 12px; }
.pizza-bake-progress[hidden] { display: none; }
.pizza-bake-progress i { height: 5px; border-radius: 5px; background: linear-gradient(90deg, #d9e9de 10%, var(--accent) 45%, #d9e9de 80%); background-size: 200% 100%; animation: pizza-baking 1s ease infinite; }
@keyframes pizza-baking { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  .dish-viewer-photo-pizza img, .pizza-bake-progress i { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .visual-demo-workbench .dish-viewer-whole-roll .roll-technique-frame,
  .visual-demo-workbench .dish-viewer-whole-roll .roll-technique-filling { animation: none; }
}
@keyframes whole-roll-arrive {
  from { opacity: 0; transform: translateY(-12px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .dish-photo-layer,
  .dish-viewer-whole-roll[data-photo-phase="whole"] .dish-photo-layer { animation: none; }
}

.dish-base-image,
.dish-layer-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dish-layer-image {
  pointer-events: none;
  animation: dish-layer-arrive 0.32s cubic-bezier(0.2, 0.86, 0.35, 1.15) both;
}

.dish-plate-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28%;
  color: rgba(38, 38, 38, 0.42);
  text-align: center;
  font-weight: 800;
}

.dish-plate-zone .drag-chip.placed {
  animation: dish-card-arrive 0.26s ease both;
}

@keyframes dish-layer-arrive {
  from { opacity: 0; transform: translateY(-10px) scale(0.88) rotate(-2deg); }
  to { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}

@keyframes dish-card-arrive {
  from { opacity: 0; transform: translateY(-8px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .dish-layer-image,
  .dish-plate-zone .drag-chip.placed {
    animation: none;
  }
}

.drop-slot-empty {
  color: var(--muted);
  font-size: 14px;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table tr.is-selected {
  background: rgba(31, 142, 115, 0.08);
}

.data-table tbody tr {
  cursor: pointer;
}

.data-table tbody tr:focus-visible {
  outline: 2px solid rgba(31, 142, 115, 0.35);
  outline-offset: -2px;
}

.detail-card {
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(246, 249, 248, 0.76) 100%);
  box-shadow: var(--shadow-soft);
}

.diagnostics-grid {
  align-items: stretch;
}

.analytics-grid {
  align-items: stretch;
}

.diagnostic-card {
  display: grid;
  gap: 16px;
}

.diagnostic-list {
  display: grid;
  gap: 10px;
}

.diagnostic-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.74);
}

.diagnostic-row span {
  color: var(--muted);
}

.diagnostic-row strong {
  text-align: right;
  max-width: 58%;
  word-break: break-word;
}

.diagnostic-row strong.status-ready {
  color: var(--accent);
}

.diagnostic-row strong.status-warning {
  color: #7c5a00;
}

.diagnostic-row strong.status-error {
  color: #812b2b;
}

.diagnostic-row strong.status-active {
  color: var(--ink);
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.filter-actions {
  display: flex;
  align-items: end;
}

.analytics-cards {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.analytics-card,
.suspicious-card {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(247, 250, 249, 0.76) 100%);
  display: grid;
  gap: 10px;
  box-shadow: var(--shadow-soft);
}

.analytics-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: var(--muted);
  font-size: 14px;
}

.compact-table {
  max-height: 360px;
}

.suspicious-list {
  display: grid;
  gap: 14px;
}

.suspicious-signals {
  margin: 0;
}

.review-box {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.result-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.result-hero {
  display: grid;
  gap: 20px;
}

.result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.result-award {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(38, 38, 38, 0.08);
  background: rgba(38, 38, 38, 0.06);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.result-award.gold {
  background: linear-gradient(135deg, rgba(216, 174, 63, 0.2) 0%, rgba(255, 243, 200, 0.72) 100%);
  color: #8b6110;
  border-color: rgba(216, 174, 63, 0.24);
}

.result-award.silver {
  background: linear-gradient(135deg, rgba(148, 156, 167, 0.18) 0%, rgba(243, 246, 248, 0.82) 100%);
  color: #5a6570;
  border-color: rgba(148, 156, 167, 0.2);
}

.result-award.bronze {
  background: linear-gradient(135deg, rgba(171, 105, 54, 0.16) 0%, rgba(247, 226, 208, 0.84) 100%);
  color: #8c4a20;
  border-color: rgba(171, 105, 54, 0.2);
}

.result-award.neutral {
  color: var(--ink);
}

.result-overview {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.result-stat {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(38, 38, 38, 0.06);
  background: linear-gradient(135deg, rgba(31, 142, 115, 0.08) 0%, rgba(255, 255, 255, 0.86) 100%);
}

.result-stat span {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.result-stat strong {
  font-size: 24px;
  line-height: 1.1;
}

.result-stat small {
  color: var(--muted);
  line-height: 1.45;
}

.result-next {
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(38, 38, 38, 0.06);
  background: rgba(255, 255, 255, 0.72);
}

.result-next h3 {
  margin-bottom: 10px;
}

.result-next ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.result-card {
  display: grid;
  gap: 6px;
}

.result-card small {
  color: var(--muted);
  line-height: 1.45;
}

.footer-note {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 0 8px 8px;
  color: var(--muted);
  font-size: 13px;
}

.footer-note small {
  font-size: 12px;
  letter-spacing: 0.02em;
}

.grid-four {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.content-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.coverage-list,
.qa-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.coverage-item,
.qa-item,
.content-question-row {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(243, 249, 247, 0.8) 100%);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: var(--shadow-soft);
}

.coverage-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.coverage-item strong {
  font-size: 16px;
}

.qa-grid {
  align-items: start;
}

.qa-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.qa-item strong {
  display: block;
  margin-bottom: 6px;
}

.qa-pill {
  border-color: rgba(31, 142, 115, 0.18);
}

.qa-pill-clean {
  background: rgba(230, 247, 239, 0.96);
  color: #1c6f59;
}

.qa-pill-warning {
  background: rgba(255, 244, 214, 0.96);
  color: #8c5a00;
}

.qa-pill-risk {
  background: rgba(255, 229, 229, 0.96);
  color: #9d2b2b;
}

.qa-pill-draft {
  background: rgba(231, 238, 255, 0.96);
  color: #3b5ea6;
}

.content-workbench {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  margin-top: 18px;
}

.content-mode-strip {
  padding: 18px 20px;
}

.content-guide {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.content-guide-step {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(243, 249, 247, 0.82) 100%);
  color: var(--muted);
  box-shadow: var(--shadow-soft);
}

.compact-actions {
  justify-content: flex-end;
}

.creator-card {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(243, 249, 247, 0.84) 100%);
}

.wizard-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 8px;
}

.wizard-step {
  border: 1px solid rgba(31, 142, 115, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  padding: 12px 14px;
  text-align: left;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.wizard-step:hover,
.wizard-step:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(31, 142, 115, 0.28);
  box-shadow: 0 14px 30px rgba(18, 36, 31, 0.07);
}

.wizard-step.is-active {
  border-color: rgba(31, 142, 115, 0.34);
  background: rgba(223, 242, 236, 0.96);
  color: var(--accent-strong);
}

.wizard-step.is-complete {
  color: var(--text);
  border-color: rgba(31, 142, 115, 0.2);
  background: rgba(245, 251, 249, 0.94);
}

.creator-step-panel + .creator-step-panel {
  margin-top: 16px;
}

.wizard-hint {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(31, 142, 115, 0.12);
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
}

.creator-grid,
.creator-options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  margin-top: 16px;
}

.creator-field-wide {
  grid-column: 1 / -1;
}

.creator-option-card {
  border: 1px solid rgba(31, 142, 115, 0.12);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.75);
}

.inline-choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.content-option-preview {
  margin-top: 12px;
}

.wizard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.creator-preview-card {
  border: 1px solid rgba(31, 142, 115, 0.12);
  border-radius: 20px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.creator-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.creator-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.creator-preview-grid span,
.creator-preview-note span {
  display: block;
  margin-bottom: 6px;
}

.creator-preview-grid strong,
.creator-preview-note p {
  line-height: 1.5;
}

.creator-preview-options {
  margin-top: 18px;
}

.creator-preview-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(243, 250, 248, 0.88);
}

.import-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
  margin-top: 18px;
}

.import-config,
.import-preview-card {
  padding: 18px;
  border: 1px solid rgba(31, 142, 115, 0.12);
  border-radius: 20px;
  background: rgba(243, 250, 248, 0.88);
}

.import-config {
  display: grid;
  gap: 14px;
}

.import-help {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
}

.import-field-wide {
  grid-column: 1 / -1;
}

.import-preview-card .section-row {
  margin-bottom: 14px;
}

.import-preview-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.import-preview-item {
  border: 1px solid rgba(31, 142, 115, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  padding: 16px;
}

.import-preview-item.has-errors {
  border-color: rgba(231, 159, 23, 0.42);
  background: rgba(255, 249, 235, 0.96);
}

.import-preview-question {
  margin: 10px 0 8px;
  font-weight: 700;
  line-height: 1.5;
}

.import-issue-list {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 239, 218, 0.88);
  color: #8c5a00;
}

.import-ok {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(230, 247, 239, 0.95);
  color: #1c6f59;
}

.content-list-card,
.content-detail-card {
  padding: 18px;
}

.list-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0 14px;
}

.content-empty-detail-card {
  display: grid;
  gap: 14px;
  align-content: start;
}

.content-side-panel {
  min-height: 100%;
}

.side-detail-head {
  display: grid;
  gap: 8px;
  line-height: 1.5;
}

.side-detail-meta {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.side-detail-options,
.side-detail-qa {
  margin-top: 16px;
}

.side-actions {
  margin-top: auto;
}

.content-question-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 820px;
  overflow: auto;
  padding-right: 4px;
}

.content-question-row {
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.content-question-row:hover,
.content-question-row:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(31, 142, 115, 0.24);
  box-shadow: 0 12px 32px rgba(18, 36, 31, 0.08);
}

.content-question-row.is-selected {
  border-color: rgba(31, 142, 115, 0.34);
  background: rgba(223, 242, 236, 0.95);
}

.content-question-row.has-issues {
  border-left: 4px solid rgba(231, 159, 23, 0.72);
}

.content-question-row.is-risk {
  border-left-color: rgba(202, 62, 62, 0.74);
}

.content-open-hint {
  font-weight: 700;
  color: var(--accent);
}

.content-question-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.content-question-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.content-question-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.editor-form {
  margin-top: 16px;
}

.content-detail-card .actions.inline {
  align-items: center;
}

.overlay-active {
  overflow: hidden;
}

.overlay-shell {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
}

.overlay-shell.hidden {
  display: none;
}

.overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 28, 31, 0.38);
  backdrop-filter: blur(4px);
}

.overlay-card {
  position: relative;
  z-index: 1;
  width: min(1040px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  margin: 0;
  box-shadow: 0 24px 60px rgba(18, 36, 31, 0.22);
}

.detail-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.detail-metric,
.detail-qa-card {
  border: 1px solid rgba(31, 142, 115, 0.12);
  border-radius: 18px;
  background: rgba(243, 250, 248, 0.88);
  padding: 14px 16px;
}

.detail-metric strong {
  display: block;
  margin-top: 8px;
  line-height: 1.45;
}

.detail-qa-card {
  margin-top: 14px;
}

.detail-qa-note {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(231, 238, 255, 0.92);
  color: #35518f;
  font-size: 13px;
}

.qa-signal-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--text);
}

.qa-signal-list li + li {
  margin-top: 6px;
}

pre {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 6px 0 0;
}

@media (max-width: 900px) {
  .visual-demo-hero,
  .visual-demo-grid {
    grid-template-columns: 1fr;
  }

  .visual-demo-reference {
    position: static;
  }

  .visual-demo-compose {
    grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  }

  .visual-demo-reference figure {
    display: grid;
    grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.2fr);
  }

  .visual-demo-reference figure img {
    aspect-ratio: 1.2;
  }

  .grid-two,
  .grid-three,
  .grid-four,
  .coverage-grid,
  .content-workbench,
  .content-guide,
  .exam-cockpit,
  .hero-status-grid,
  .hero-control-grid,
  .creator-grid,
  .creator-options-grid,
  .detail-metrics,
  .wizard-stepper,
  .creator-preview-grid,
  .import-layout {
    grid-template-columns: 1fr;
  }

  .filters-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-head,
  .footer-note {
    flex-direction: column;
    align-items: flex-start;
  }

  .network-badge {
    margin-left: 0;
  }

  .journey-map {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hero-format-badge.hero-format-badge {
    width: fit-content;
    text-align: left;
    justify-content: center;
  }

  .hero-brand-panel {
    justify-content: flex-start;
    padding-top: 0;
  }

  .nav-ribbon-summary {
    max-width: none;
  }

  .journey-progress-copy {
    flex-direction: column;
    align-items: flex-start;
  }

  .journey-node::after {
    top: auto;
    bottom: -14px;
    left: 50%;
    right: auto;
    width: 2px;
    height: 28px;
    transform: translateX(-50%);
  }

  .result-head {
    flex-direction: column;
  }

  .result-award {
    width: 100%;
    justify-content: flex-start;
  }

  .overlay-shell {
    padding: 12px;
  }

  .overlay-card {
    width: min(100vw - 12px, 100%);
    max-height: calc(100vh - 20px);
  }

  .brand-image-card-round {
    width: min(100%, 210px);
  }

  .wizard-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .list-toolbar,
  .side-actions {
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .visual-demo-nav,
  .visual-demo-heading,
  .visual-demo-bank-head {
    align-items: stretch;
    flex-direction: column;
  }

  .visual-demo-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .visual-demo-tab { padding: 10px 6px; font-size: 12px; }

  .visual-demo-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .visual-demo-compose {
    grid-template-columns: 1fr;
  }

  .visual-demo-ingredients {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .visual-demo-reference figure {
    display: block;
  }

  .visual-demo-reference figure img {
    aspect-ratio: 1;
  }

  .dish-viewer-stage {
    min-height: 330px;
  }

  .dish-viewer-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .dish-viewer-controls {
    width: 100%;
  }

  .dish-viewer-reset {
    flex: 1;
  }

  .shell {
    width: min(100%, calc(100% - 18px));
    margin: 14px auto 28px;
    gap: 16px;
  }

  .card,
  .hero {
    padding: 18px;
  }

  .nav-ribbon {
    gap: 8px;
    padding: 12px;
  }

  .nav-ribbon-head {
    display: flex;
  }

  .nav-ribbon-drawer {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-ribbon-summary {
    padding-right: 0;
  }

  .nav-ribbon.is-open .nav-ribbon-drawer {
    display: flex;
  }

  .nav-ribbon .button,
  .nav-ribbon .network-badge,
  .actions .button {
    flex: 1 1 100%;
    min-height: 52px;
  }

  .nav-ribbon .network-badge {
    justify-content: center;
    margin-left: 0;
  }

  .sync-strip,
  .participant-mode-strip,
  .progress-meta,
  .tour-head {
    align-items: flex-start;
  }

  .result-overview {
    grid-template-columns: 1fr;
  }

  .result-stat strong {
    font-size: 21px;
  }

  .question-single {
    min-height: 360px;
  }

  .question-card {
    padding: 16px;
  }

  .option {
    padding: 14px;
    min-height: 58px;
  }

  .option span,
  .drag-chip,
  .button,
  .pill,
  .network-badge {
    font-size: 15px;
  }

  .drag-chip {
    width: 100%;
    justify-content: center;
    min-height: 50px;
  }

  .drag-chip.has-image {
    width: calc(50% - 5px);
    min-width: 132px;
  }

  .dish-zones {
    grid-template-columns: 1fr;
  }

  .dish-plate {
    width: min(280px, 78vw);
  }

  .hero-grid {
    gap: 18px;
  }

  .hero-dashboard-card {
    padding: 20px;
  }

  .hero-copy h1 {
    max-width: 100%;
  }

  .hero-feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-feature-card {
    min-height: auto;
    padding: 12px 14px;
    grid-template-columns: 38px 1fr;
  }

  .hero-feature-icon {
    inline-size: 38px;
    block-size: 38px;
    border-radius: 12px;
  }

  .hero-brand-panel {
    justify-content: flex-start;
  }

  .hero-brand-strip {
    gap: 8px;
    width: min(100%, 252px);
    margin-left: 0;
  }

  #registration-form {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .brand-mini-card {
    padding: 8px;
    border-radius: 16px;
  }

  .hero-format-badge.hero-format-badge {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
  }

  .hero-quick-row {
    gap: 6px;
  }

  .hero-quick-pill {
    font-size: 11px;
    min-height: 32px;
  }

  .exam-preflight-note {
    font-size: 14px;
  }

  .consent-check {
    grid-template-columns: 1fr;
  }

  .consent-check input {
    margin-top: 0;
  }

  .exam-guard-card {
    width: min(100vw - 18px, 100%);
    padding: 20px;
  }
}

@keyframes question-enter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes transition-banner-in {
  0% {
    opacity: 0;
    transform: translateY(-8px);
  }
  12%,
  78% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-4px);
  }
}

@keyframes transition-sheen {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(120%);
  }
}

@keyframes active-zone-pulse {
  0%,
  100% {
    box-shadow: inset 0 0 0 1px rgba(31, 142, 115, 0.18);
  }
  50% {
    box-shadow:
      inset 0 0 0 1px rgba(31, 142, 115, 0.28),
      0 0 0 6px rgba(31, 142, 115, 0.06);
  }
}

@keyframes node-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes surface-reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Олимпиада: спокойная точка входа с одним главным действием. */
.olympiad-page {
  background: #fff;
}

.olympiad-page::before,
.olympiad-page .ambient {
  display: none;
}

.olympiad-page .shell {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto 52px;
  gap: 24px;
}

.olympiad-page.exam-mode-active .shell {
  width: min(1100px, calc(100% - 32px));
  margin-top: 12px;
}

.olympiad-page .landing-nav {
  top: 0;
  display: block;
  padding: 14px 10px;
  border: 0;
  border-bottom: 1px solid #e5e8e4;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.landing-nav .nav-ribbon-drawer {
  flex-wrap: nowrap;
  gap: 4px;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 0 280px;
  min-width: 0;
  color: #17272a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.landing-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.landing-nav .button.ghost {
  min-height: 44px;
  padding: 10px 13px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  box-shadow: none;
  color: #24343a;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.landing-nav .button.ghost:hover,
.landing-nav .button.ghost:focus-visible {
  background: #eaf4f1;
  color: #0e756d;
}

.landing-nav #nav-attempt:disabled,
.landing-nav #nav-result:disabled,
.landing-nav #nav-register:disabled,
.landing-nav #nav-rules:disabled,
.landing-nav #nav-back {
  display: none;
}

.landing-nav .network-badge {
  margin-left: 16px;
  min-width: 102px;
  padding: 9px 12px;
  border: 0;
  background: #e8f5f2;
  box-shadow: none;
  font-size: 13px;
}

.landing-nav .network-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
}

.landing-hero {
  position: relative;
  overflow: hidden;
  min-height: 525px;
  border-radius: 22px;
  background: #f6f2ec;
  isolation: isolate;
}

.landing-hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #f6f2ec;
}

.landing-hero-copy {
  width: min(56%, 690px);
  padding: clamp(48px, 5vw, 76px) clamp(36px, 4.4vw, 64px) 45px;
}

.landing-hero h1 {
  margin: 0;
  color: #182328;
  font: 700 clamp(52px, 5.4vw, 80px) / 0.99 Georgia, "Times New Roman", serif;
  letter-spacing: -0.045em;
}

.landing-hero .lead {
  max-width: 28ch;
  margin: 26px 0 0;
  color: #34444b;
  font-size: clamp(19px, 1.65vw, 23px);
  line-height: 1.45;
}

.landing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 32px;
}

.landing-hero-actions .button.primary {
  min-height: 60px;
  padding: 16px 24px;
  border: 0;
  border-radius: 13px;
  background: #0e756d;
  box-shadow: 0 14px 28px rgba(14, 117, 109, 0.17);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

.landing-hero-actions .button.primary:hover {
  background: #075d56;
}

.landing-text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid #0e756d;
  border-radius: 0;
  background: transparent;
  color: #223238;
  font: 600 16px / 1.35 "Segoe UI Variable Text", "Segoe UI", sans-serif;
  cursor: pointer;
}

.landing-text-link:hover,
.landing-text-link:focus-visible {
  color: #0e756d;
}

.landing-text-link span {
  font-size: 21px;
  line-height: 1;
}

.landing-facts {
  margin: 38px 0 0;
  color: #415158;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.landing-facts span {
  padding: 0 9px;
  color: #0e756d;
}

.landing-pilot-note {
  max-width: 490px;
  margin: 12px 0 0;
  color: #7a4c20;
  font-size: 13px;
  line-height: 1.45;
}

.landing-hero #hero-load-message {
  max-width: 470px;
  margin: 20px 0 0;
  font-size: 15px;
}

.landing-hero #hero-retry {
  margin-top: 12px;
}

.landing-demo-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 7px 11px;
  border: 1px solid #b8d8d0;
  border-radius: 999px;
  background: #fff;
  color: #126f67;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.landing-demo-link:hover {
  border-color: #126f67;
  background: #edf8f4;
}

.landing-hero-actions .landing-demo-link {
  min-height: 34px;
  margin-top: 0;
  white-space: nowrap;
}

.landing-rules-details {
  margin: 18px 0;
  padding: 0 16px;
  border: 1px solid #dce7e3;
  border-radius: 14px;
  background: #f8fbf9;
}

.landing-rules-details summary {
  padding: 16px 0;
  color: #123d3d;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.landing-rules-details .flat-list {
  margin: 0 0 16px;
}

#prestart-section {
  scroll-margin-top: 100px;
}

#result-section {
  scroll-margin-top: 90px;
}

.olympiad-page :is(button, a, input):focus-visible {
  outline: 3px solid #126f67;
  outline-offset: 3px;
}

.olympiad-page #result-section,
.olympiad-page .result-hero,
.olympiad-page .result-stat {
  min-width: 0;
}

.olympiad-page .result-stat strong {
  overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
  .landing-brand { flex-basis: 210px; }
  .landing-brand span { font-size: 12px; }
  .landing-nav .button.ghost { padding-inline: 8px; font-size: 13px; }
  .landing-nav .network-badge { margin-left: 4px; }
  .landing-hero-copy { width: 59%; }
}

@media (max-width: 760px) {
  .olympiad-page .shell {
    width: min(100%, calc(100% - 24px));
    gap: 16px;
  }

  .olympiad-page .landing-nav {
    padding: 12px 4px;
  }

  .landing-nav .nav-ribbon-head { display: flex; }
  .landing-nav .nav-ribbon-drawer { display: none; flex-wrap: wrap; }
  .landing-nav.is-open .nav-ribbon-drawer { display: flex; }
  .landing-nav .button.ghost { font-size: 15px; }
  .landing-brand { flex-basis: 100%; margin-top: 8px; }
  .landing-nav .network-badge { margin-left: 0; }

  .landing-hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .landing-hero-copy {
    width: 100%;
    padding: 36px 24px 34px;
  }

  .landing-hero h1 {
    font-size: clamp(43px, 10vw, 62px);
  }

  .landing-hero .lead {
    margin-top: 18px;
    font-size: 18px;
  }

  .landing-hero-actions {
    gap: 10px;
    margin-top: 24px;
  }

  .landing-hero-actions .button.primary {
    width: 100%;
    font-size: 16px;
  }

  .landing-facts { margin-top: 25px; font-size: 16px; }
  .landing-facts span { padding-inline: 5px; }

  .landing-hero-media {
    position: relative;
    z-index: 0;
    order: 2;
    height: 230px;
    background-size: auto 165%;
    background-position: 73% 46%;
  }
}

.certificate-section {
  display: grid;
  margin-top: 22px;
  padding: 24px;
  border: 1px solid #dce8e5;
  border-radius: 20px;
  background: #fff;
}

.certificate-actions {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0;
}

.certificate-actions h2 {
  margin: 0 0 4px;
  color: #15343a;
  font: 700 clamp(28px, 3vw, 38px) / 1.1 Georgia, "Times New Roman", serif;
}

.certificate-actions p {
  margin: 0;
  color: #5b6a70;
  font-size: 14px;
  line-height: 1.45;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
:root { --t2-border: #d9e1dc; }
.t2-match { min-width: 0; color: var(--text); }
.t2-match [hidden] { display: none !important; }
.t2-toolbar { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 16px; }
.t2-instruction { margin: 0; flex: 1 1 280px; font-size: 15px; line-height: 1.5; }
.t2-help { max-width: 100%; }
.t2-help summary { min-height: 44px; display: flex; align-items: center; padding: 8px 14px; border: 1px solid var(--t2-border); border-radius: 12px; cursor: pointer; color: var(--accent-strong); font-weight: 600; }
.t2-help[open] { flex: 1 1 100%; }
.t2-help .t2-rules { margin-bottom: 4px; }
.t2-rules { padding-left: 24px; margin: 16px 0; line-height: 1.6; }
.t2-rules li + li { margin-top: 7px; }
.t2-countries, .t2-bank { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.t2-country { min-width: 0; background: #fff; border: 1px solid var(--t2-border); border-radius: 16px; padding: 10px; transition: border-color 180ms, background-color 180ms; }
.t2-country.is-ready { border-color: #7da99c; }
.t2-country.is-over { border: 2px solid var(--accent); padding: 9px; background: #eff8f4; }
.t2-match button { font: inherit; color: inherit; min-height: 44px; touch-action: manipulation; }
.t2-target { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px !important; padding: 5px 0 10px; background: transparent; border: 0; cursor: pointer; font-weight: 600 !important; overflow-wrap: anywhere; }
.t2-flag { flex: 0 0 36px; width: 36px; height: 27px; object-fit: contain; border-radius: 3px; box-shadow: 0 0 0 1px #d9dedb; }
.t2-holder { display: flex; min-height: 116px; }
.t2-empty { width: 100%; padding: 12px; border: 1px dashed #b8c6bf; border-radius: 12px; background: #f8faf8; color: #59665e !important; cursor: pointer; }
.t2-undo { width: 100%; margin-top: 8px; border: 1px solid var(--t2-border); border-radius: 10px; background: #f8faf8; cursor: pointer; color: var(--accent-strong) !important; }
.t2-bank-title { margin: 18px 0 10px; font: 600 14px "Segoe UI", sans-serif; color: var(--muted); }
.t2-bank-slot { display: flex; min-width: 0; min-height: 170px; }
.t2-dish { display: flex; flex-direction: column; width: 100%; min-width: 0; padding: 7px; border: 2px solid #e0e5e1; border-radius: 14px; background: #fff; cursor: grab; box-shadow: 0 6px 16px rgba(26,31,29,.04); transition: border-color 180ms, box-shadow 180ms; }
.t2-dish.is-selected { border-color: var(--accent); box-shadow: 0 0 0 2px #157c6722; }
.t2-dish.is-dragging { opacity: .55; cursor: grabbing; box-shadow: 0 12px 24px rgba(26,31,29,.15); }
.t2-photo { display: grid; place-items: center; width: 100%; aspect-ratio: 3 / 2; border-radius: 9px; overflow: hidden; background: #f0ede6; }
.t2-photo img { width: 100%; height: 100%; object-fit: contain; }
.t2-photo-missing { padding: 8px; font-size: 13px; color: #59665e; }
.t2-dish-name { display: block; padding: 10px 4px 5px; line-height: 1.3; font-weight: 600; overflow-wrap: anywhere; }
.t2-dish.is-assigned { flex-direction: row; align-items: center; gap: 8px; cursor: grab; }
.t2-dish.is-assigned .t2-photo { width: 56px; flex: 0 0 56px; }
.t2-dish.is-assigned .t2-dish-name { padding: 3px 0; text-align: left; font-size: 14px; }
.t2-placed-marker { display: grid; place-items: center; text-align: center; width: 100%; padding: 12px; border: 1px dashed var(--t2-border); border-radius: 14px; font-size: 13px; line-height: 1.5; color: #59665e; background: #f8faf8; }
.t2-progress { margin: 16px 0 0; font-weight: 600; font-size: 14px; }
.t2-status { margin: 8px 0 0; min-height: 1.5em; color: #59665e; font-size: 13px; line-height: 1.5; }
.t2-match :is(button, summary):focus-visible { outline: 3px solid #157c67; outline-offset: 3px; }
.t2-intro { background: #f6f9f6; padding: clamp(16px, 3vw, 28px); border: 1px solid var(--t2-border); border-radius: 18px; }
.t2-intro h3 { font-size: clamp(23px, 3vw, 30px); margin: 6px 0 12px; }
.t2-intro-kicker { color: var(--accent-strong); font-size: 13px; font-weight: 600; margin: 0; }
.t2-intro-facts { font-weight: 600; line-height: 1.5; margin: 0; }
.t2-timer-note { color: #59665e; font-size: 13px; line-height: 1.5; }
.t2-start { border: 0; border-radius: 12px; background: #157c67; color: #fff !important; padding: 12px 24px; font-weight: 600 !important; cursor: pointer; }
.t2-mobile-picker { display: none; }
@media (max-width: 760px) {
  /* A backdrop-filter ancestor would make the fixed thumb picker attach to
     the whole question card instead of the viewport. Only T2 needs this. */
  #attempt-section.is-t2 > .card { backdrop-filter: none; }
  #attempt-section.is-t2 .dashboard-head { padding: 14px 16px; gap: 12px; }
  #attempt-section.is-t2 .dashboard-head h2 { font-size: 21px; margin: 4px 0; }
  #attempt-section.is-t2 #participant-meta { margin: 5px 0; font-size: 12px; line-height: 1.35; }
  #attempt-section.is-t2 .timer-stack { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  #attempt-section.is-t2 .timer-box { min-width: 0; padding: 10px 12px; }
  #attempt-section.is-t2 .timer-box span { font-size: 12px; }
  #attempt-section.is-t2 .timer-box strong { font-size: 24px; }
  #attempt-section.is-t2 .tour-head { margin-top: 14px; }
  #attempt-section.is-t2 .tour-head h2 { font-size: 24px; }
  .t2-countries, .t2-bank { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .t2-target { flex-direction: column; font-size: 14px !important; padding-bottom: 7px; gap: 4px; }
  .t2-flag { flex: 0 0 24px; width: 32px; height: 24px; }
  .t2-country { padding: 8px; border-radius: 13px; }
  .t2-country.is-over { padding: 7px; }
  .t2-holder { min-height: 78px; }
  .t2-dish.is-assigned { flex-direction: column; gap: 3px; padding: 5px; }
  .t2-dish.is-assigned .t2-photo { width: 54px; flex: initial; }
  .t2-dish.is-assigned .t2-dish-name { text-align: center; font-size: 13px; }
  .t2-bank-slot { min-height: 140px; }
  .t2-dish-name { font-size: 14px; padding: 7px 0 3px; }
  .t2-help { width: 100%; }
  .t2-help summary { justify-content: center; }
  .t2-instruction { font-size: 14px; }
  .t2-mobile-picker { display: block; position: fixed; z-index: 40; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); padding: 12px; background: #fff; border: 1px solid #9bb5ab; border-radius: 18px; box-shadow: 0 8px 40px #142c2940; }
  .t2-picker-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
  .t2-picker-label { font-size: 14px; overflow-wrap: anywhere; }
  .t2-picker-cancel { min-width: 64px; padding: 5px 8px; background: #f4f7f4; border: 1px solid var(--t2-border); border-radius: 9px; cursor: pointer; }
  .t2-picker-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .t2-picker-country { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px; text-align: left; border: 1px solid var(--t2-border); border-radius: 11px; background: #f8faf8; cursor: pointer; }
  .t2-picker-country-text { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; font-size: 13px; line-height: 1.3; }
  .t2-picker-country small { margin-top: 3px; color: #59665e; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .t2-match *, .t2-match *::before, .t2-match *::after { transition: none !important; animation: none !important; }
}

/* T3 only: one calm, keyboard-friendly dossier. Other tours retain their layout. */
/* T4: a guest receipt, equal menu cards and a non-sticky tray. */
#attempt-section.is-t4 { width: 100%; max-width: 1120px; margin: 0 auto; color: #202b2a; }
#attempt-section.is-t4 > .card { background: #fff; box-shadow: none; backdrop-filter: none; }
#attempt-section.is-t4 .dashboard-head { justify-content: center; padding: 12px; }
#attempt-section.is-t4 .dashboard-head > div:first-child,
#attempt-section.is-t4 .exam-cockpit, #attempt-section.is-t4 .participant-mode-strip,
#attempt-section.is-t4 #progress-global, #attempt-section.is-t4 .progress-bars,
#attempt-section.is-t4 #tour-code, #attempt-section.is-t4 #tour-limit,
#attempt-section.is-t4 #question-prompt, #attempt-section.is-t4 .question-meta { display: none; }
#attempt-section.is-t4 #question-transition-banner { display: none; }
#attempt-section.is-t4 .timer-stack { display: flex; gap: 12px; }
#attempt-section.is-t4 .timer-box { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: #f7f9f8; border: 1px solid #d7dfde; border-radius: 8px; box-shadow: none; }
#attempt-section.is-t4 .timer-box span { color: #394a46; font-size: 13px; }
#attempt-section.is-t4 .timer-box strong { color: #15826f; font-size: 24px; }
#attempt-section.is-t4 > .card:last-child { padding: 16px 0; border: 0; }
#attempt-section.is-t4 .progress-meta { justify-content: center; margin: 0; }
#attempt-section.is-t4 #progress-tour { background: transparent; color: #5c6965; padding: 0; font-size: 14px; }
#attempt-section.is-t4 .tour-head { margin: 10px 0 20px; display: block; text-align: center; }
#attempt-section.is-t4 #tour-title { font: bold 34px/1.2 Georgia, serif; margin: 0 0 8px; }
#attempt-section.is-t4 #tour-description { font-size: 15px; margin: 0; }
#attempt-section.is-t4 .question-card { padding: 20px; border: 1px solid #d7dfde; border-radius: 12px; background: #fff; box-shadow: none; }
#attempt-section.is-t4 .question-enter { animation: t4-question-in 200ms ease both; }
#attempt-section.is-t4 .button:hover { transform: none; }
#attempt-section.is-t4.is-t4-intro #submit-answer { display: none; }
.t4-order { min-width: 0; }
.t4-order [hidden] { display: none !important; }
.t4-order button { font: inherit; min-height: 44px; color: inherit; touch-action: manipulation; cursor: pointer; overflow-wrap: anywhere; -webkit-tap-highlight-color: transparent; }
.t4-order button:disabled { cursor: default; opacity: .65; }
.t4-order :is(button, [tabindex]):focus-visible { outline: 3px solid #15826f; outline-offset: 3px; }
.t4-order h3 { margin: 0; font: bold 22px/1.3 Georgia, serif; }
.t4-receipt { border: 1px solid #d7dfde; border-left: 4px solid #15826f; border-radius: 18px; background: #f8faf9; padding: 20px 24px; }
.t4-receipt-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.t4-receipt-style { margin: 5px 0; color: #4b6259; font-size: 13px; }
.t4-wish { margin: 7px 0 0; font-size: 18px; line-height: 1.5; overflow-wrap: anywhere; }
.t4-menu-heading { color: #52665d; font-size: 14px; margin: 18px 0 10px; }
.t4-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.t4-menu-card { min-width: 0; display: flex; flex-direction: column; border: 2px solid #dce4df; border-radius: 18px; overflow:hidden; background: #fff; transition: border-color 180ms, box-shadow 180ms; }
.t4-menu-card.is-selected { border-color: #15826f; box-shadow: 0 0 0 2px #15826f18; }
.t4-menu-select { display: flex; flex: 1; flex-direction: column; width: 100%; padding: 7px; border: 0; background: transparent; border-radius: 8px; text-align: left; transition: background-color 150ms; }
.t4-menu-select:hover { background: #f7faf8; }
.t4-menu-select[draggable="true"] { cursor: grab; }
.t4-menu-select.is-dragging { opacity: .55; cursor: grabbing; }
.t4-photo { display: grid; place-items: center; width: 100%; aspect-ratio: 3 / 2; border-radius: 6px; overflow: hidden; background: #f3f0ea; }
.t4-photo img, .t4-tray-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.t4-photo-missing { font-size: 13px; line-height: 1.4; color: #52665d; padding: 10px; }
.t4-menu-title { display: block; font-weight: 700; font-size: 16px; line-height: 1.3; padding: 10px 4px 5px; }
.t4-menu-description { display: block; color: #4e6059; font-size: 14px; line-height: 1.45; padding: 0 4px 7px; }
.t4-secondary { border: 1px solid #d7dfde; border-radius: 6px; background: #fff; padding: 8px 12px; color: #126b5c !important; transition: background-color 150ms, border-color 150ms; }
.t4-secondary:hover { background: #eff7f3; border-color: #8db4a5; }
.t4-zoom { margin: 0 7px 7px; font-size: 12px !important; }
.t4-tray { margin-top: 18px; border: 1px dashed #a5bdb2; border-radius: 10px; background: #f8faf9; padding: 16px 18px; transition: border-color 150ms, background-color 150ms; }
.t4-tray.is-over { border: 1px solid #15826f; background: #eaf5ef; }
.t4-tray-selection { min-height: 62px; display: flex; align-items: center; gap: 14px; margin: 10px 0 0; }
.t4-tray-photo { display: grid; place-items: center; width: 84px; flex: 0 0 84px; aspect-ratio: 3 / 2; border-radius: 6px; overflow: hidden; background: #f3f0ea; }
.t4-tray-name { overflow-wrap: anywhere; }
.t4-empty { margin: 0; color: #65716d; }
.t4-hint { color: #65716d; font-size: 13px; line-height: 1.5; margin: 6px 0 0; }
.t4-status { color: #4b6259; font-size: 13px; line-height: 1.5; margin: 8px 0 0; }
.t4-tray-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 12px; }
#attempt-section.is-t4 #submit-answer { min-height: 48px; border-radius: 6px; background: #15826f; color: #fff; box-shadow: none; font-size: 16px; }
#attempt-section.is-t4 .action-deck { margin-top: 8px; }
#attempt-section.is-t4 .action-deck > .actions { justify-content: center; margin-top: 8px; }
#attempt-section.is-t4 #finish-attempt { min-height: 44px; border: 0; background: transparent; box-shadow: none; color: #42665b; text-decoration: underline; font-size: 13px; }
#attempt-section.is-t4 .sync-strip { gap: 8px; margin-top: 6px; font-size: 12px; }
#attempt-section.is-t4 #attempt-sync-meta { font-size: 12px; }
.t4-intro h3 { font-size: 28px; }
.t4-facts { color: #15826f; font-weight: 700; line-height: 1.5; }
.t4-rules { padding-left: 22px; line-height: 1.6; }
.t4-rules li + li { margin-top: 8px; }
.t4-start { margin-top: 20px; }
.t4-dialog { width: min(90vw, 900px); max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); overflow: auto; margin: auto; padding: 20px; border: 1px solid #d7dfde; border-radius: 12px; background: #fff; color: #202b2a; box-shadow: 0 12px 60px #142c2940; }
.t4-dialog::backdrop { background: #10282199; }
.t4-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.t4-zoom-photo { display: grid; place-items: center; background: #f3f0ea; border-radius: 8px; }
.t4-zoom-photo img { display: block; width: 100%; max-height: 70dvh; object-fit: contain; }
.t4-drag-ghost { position: fixed; top: -1000px; left: -1000px; width: 220px; padding: 8px; border-radius: 10px; background: white; box-shadow: 0 12px 28px #142c2940; }
.t4-drag-ghost strong { display: block; padding: 8px 2px; }
.t4-selection-enter { animation: t4-selection-in 180ms ease both; }
@keyframes t4-selection-in { from { opacity: .65; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@keyframes t4-question-in { from { opacity: .65; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (min-width: 901px) {
  .t4-tray { display: grid; grid-template-columns: 210px minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; }
  .t4-tray > h3 { grid-column: 1; grid-row: 1; }
  .t4-tray > .t4-hint { grid-column: 1; grid-row: 2; margin: 0; }
  .t4-tray-selection { grid-column: 2; grid-row: 1 / 3; margin: 0; }
  .t4-status { grid-column: 2; grid-row: 3; margin: 0; }
  .t4-tray-actions { grid-column: 3; grid-row: 1 / 4; margin: 0; }
}
@media (max-width: 900px) { .t4-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  #attempt-section.is-t4 .dashboard-head { padding: 8px; }
  #attempt-section.is-t4 .timer-stack { width: 100%; gap: 6px; }
  #attempt-section.is-t4 .timer-box { flex: 1; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px; }
  #attempt-section.is-t4 .timer-box span { font-size: 11px; }
  #attempt-section.is-t4 .timer-box strong { font-size: 21px; }
  #attempt-section.is-t4 .tour-head { margin: 8px 0 12px; text-align: left; }
  #attempt-section.is-t4 #tour-title { font-size: 24px; }
  #attempt-section.is-t4 #tour-description { font-size: 13px; }
  #attempt-section.is-t4 #progress-tour { font-size: 12px; }
  #attempt-section.is-t4 .question-card { padding: 10px; }
  .t4-receipt { padding: 10px; }
  .t4-receipt-head { flex-wrap: wrap; gap: 8px; }
  .t4-receipt h3 { font-size: 21px; }
  .t4-help { font-size: 13px !important; }
  .t4-wish { font-size: 16px; line-height: 1.45; }
  .t4-menu { gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9em), 1fr)); }
  .t4-menu-title { font-size: 14px; padding: 8px 0 5px; }
  .t4-menu-description { font-size: 13px; padding: 0 0 5px; }
  .t4-menu-select { padding: 5px; }
  .t4-zoom { margin: 0 5px 5px; padding: 8px 4px; }
  .t4-tray { padding: 12px; }
  .t4-tray-actions { flex-wrap: wrap; justify-content: stretch; gap: 8px; }
  #attempt-section.is-t4 #submit-answer { flex: 1; min-width: 0; padding: 10px 12px; font-size: 14px; }
  .t4-dialog { padding: 12px; }
  .t4-dialog-head { flex-wrap: wrap; gap: 8px; }
  #attempt-section.is-t4 .sync-strip { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 350px) { .t4-menu { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) {
  #attempt-section.is-t4 .question-enter, .t4-order *, .t4-order *::before, .t4-order *::after { animation: none !important; transition: none !important; }
}
/* T4 styling is scoped below; no legacy tour selectors are changed. */
#attempt-section.is-t3 { width: 100%; max-width: 960px; margin: 0 auto; color: #202b2a; font-family: Arial, sans-serif; }
#attempt-section.is-t3 .button:hover { transform: none; }
#attempt-section.is-t3 > .card { box-shadow: none; background: #fff; backdrop-filter: none; }
#attempt-section.is-t3 .dashboard-head { justify-content: center; padding: 12px; }
#attempt-section.is-t3 .dashboard-head > div:first-child,
#attempt-section.is-t3 .exam-cockpit,
#attempt-section.is-t3 .participant-mode-strip,
#attempt-section.is-t3 #progress-global,
#attempt-section.is-t3 .progress-bars,
#attempt-section.is-t3 #question-transition-banner,
#attempt-section.is-t3 #tour-code,
#attempt-section.is-t3 #tour-limit,
#attempt-section.is-t3 .question-meta { display: none; }
#attempt-section.is-t3 .timer-stack { display: flex; gap: 12px; }
#attempt-section.is-t3 .timer-box { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: #f7f9f8; border: 1px solid #d7dfde; border-radius: 6px; box-shadow: none; }
#attempt-section.is-t3 .timer-box span { color: #394a46; font-size: 13px; }
#attempt-section.is-t3 .timer-box strong { color: #15826f; font-size: 24px; }
#attempt-section.is-t3 > .card:last-child { padding: 16px 0; border: 0; }
#attempt-section.is-t3 .progress-meta { justify-content: center; margin: 0; }
#attempt-section.is-t3 #progress-tour { background: transparent; color: #5c6965; padding: 0; font-size: 14px; }
#attempt-section.is-t3 .tour-head { margin: 10px 0 22px; display: block; text-align: center; }
#attempt-section.is-t3 #tour-title { font-family: Georgia, serif; font-size: 34px; line-height: 1.2; margin: 0 0 8px; }
#attempt-section.is-t3 #tour-description { font-size: 17px; margin: 0; }
#attempt-section.is-t3 .question-card { padding: 24px; border: 1px solid #d7dfde; border-radius: 10px; background: white; box-shadow: none; }
#attempt-section.is-t3 #question-prompt { margin: 0 0 16px; font: bold 25px/1.2 Georgia, serif; }
#attempt-section.is-t3.is-t3-intro #question-prompt,
#attempt-section.is-t3.is-t3-intro #submit-answer { display: none; }
.t3-evidence { display: grid; grid-template-columns: 46% minmax(0, 1fr); gap: 18px; align-items: stretch; }
.t3-visual { margin: 0; overflow: hidden; border-radius: 6px; background: #f3f0ea; display: grid; place-items: center; }
.t3-visual img { display: block; width: 100%; height: 100%; max-height: 280px; object-fit: contain; }
.t3-image-fallback { padding: 24px; line-height: 1.5; }
.t3-clues { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.t3-clue { min-width: 0; border: 1px solid #d7dfde; border-left: 3px solid #15826f; background: #f8faf9; border-radius: 6px; padding: 12px 16px; animation: t3-clue-in .24s ease both; animation-delay: calc(var(--clue-order) * 45ms); }
.t3-clue-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .03em; color: #50635d; }
.t3-clue-text { margin: 4px 0 0; font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
.t3-answer-form { padding-top: 18px; margin-top: 18px; border-top: 1px solid #d7dfde; }
.t3-answer-label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 8px; }
#attempt-section.is-t3 .t3-answer-input { width: 100%; min-width: 0; min-height: 48px; padding: 12px; border: 1px solid #b9c7c2; border-radius: 6px; background: #fff; color: #202b2a; font-size: 16px; -webkit-user-select: text; user-select: text; transition: border-color .15s, box-shadow .15s; }
#attempt-section.is-t3 .t3-answer-input:focus { outline: 2px solid #15826f; outline-offset: 2px; border-color: #15826f; }
.t3-answer-hint { color: #65716d; font-size: 12px; line-height: 1.4; margin: 8px 0 0; }
.t3-answer-actions { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
#attempt-section.is-t3 #submit-answer { min-height: 48px; border-radius: 6px; background: #15826f; color: white; font-size: 16px; box-shadow: none; }
.t3-clear { border: 0; background: transparent; color: #126b5c; text-decoration: underline; min-height: 44px; padding: 10px 16px; font: inherit; cursor: pointer; }
.t3-clear:disabled { color: #68746f; opacity: .65; cursor: default; text-decoration: none; }
.t3-clear:focus-visible, .t3-start:focus-visible, #attempt-section.is-t3 #submit-answer:focus-visible { outline: 3px solid #15826f; outline-offset: 3px; }
#attempt-section.is-t3 .action-deck { margin-top: 8px; }
#attempt-section.is-t3 .action-deck > .actions { justify-content: center; margin-top: 8px; }
#attempt-section.is-t3 #finish-attempt { min-height: 44px; background: transparent; border: 0; color: #42665b; text-decoration: underline; box-shadow: none; font-size: 13px; }
#attempt-section.is-t3 .sync-strip { gap: 8px; margin-top: 6px; font-size: 11px; }
#attempt-section.is-t3 #attempt-sync-meta { font-size: 11px; }
.t3-intro h3 { margin: 4px 0 12px; font: bold 28px/1.2 Georgia, serif; }
.t3-intro-kicker { color: #15826f; font-size: 12px; margin: 0; }
.t3-intro-facts { font-weight: 700; color: #15826f; }
.t3-intro-rules { padding-left: 20px; line-height: 1.6; }
.t3-intro-rules li { margin-bottom: 8px; }
.t3-start { min-height: 48px; margin-top: 20px; }
@keyframes t3-clue-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) {
  #attempt-section.is-t3 .dashboard-head { padding: 8px; }
  #attempt-section.is-t3 .timer-stack { width: 100%; gap: 6px; }
  #attempt-section.is-t3 .timer-box { flex: 1; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px; }
  #attempt-section.is-t3 .timer-box span { font-size: 11px; }
  #attempt-section.is-t3 .timer-box strong { font-size: 21px; }
  #attempt-section.is-t3 > .card:last-child { padding-top: 10px; }
  #attempt-section.is-t3 .tour-head { margin: 8px 0 12px; text-align: left; }
  #attempt-section.is-t3 #tour-title { font-size: 24px; }
  #attempt-section.is-t3 #tour-description { font-size: 13px; }
  #attempt-section.is-t3 #progress-tour { font-size: 12px; }
  #attempt-section.is-t3 .question-card { padding: 12px; }
  #attempt-section.is-t3 #question-prompt { font-size: 21px; margin-bottom: 10px; }
  .t3-evidence { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .t3-visual { height: 125px; }
  .t3-visual img { max-height: 125px; }
  .t3-clues { gap: 6px; }
  .t3-clue { padding: 7px 10px; }
  .t3-clue-label { font-size: 10px; }
  .t3-clue-text { font-size: 14px; line-height: 1.3; margin-top: 2px; }
  .t3-answer-form { padding-top: 10px; margin-top: 10px; }
  .t3-answer-label { font-size: 13px; margin-bottom: 6px; }
  .t3-answer-actions { margin-top: 10px; gap: 6px; }
  #attempt-section.is-t3 #submit-answer { flex: 1; min-width: 0; padding: 10px 12px; font-size: 14px; }
  .t3-clear { font-size: 13px; padding: 10px; }
  #attempt-section.is-t3 .sync-strip { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  #attempt-section.is-t3 .question-enter, .t3-dossier *, .t3-dossier *::before, .t3-dossier *::after { animation: none !important; transition: none !important; }
}
