:root {
  color-scheme: light;
  --brand-ink: #171717;
  --brand-yellow: #F7D900;
  --surface: #FFFFFF;
  --canvas: #F7F7F5;
  --text-muted: #525252;
  --border: #D8D8D4;
  --ink: var(--brand-ink);
  --focus-ring: #171717;
  --focus-gap: var(--brand-yellow);
  --ok: #0E3B24;
  --ok-bg: #E7F6EC;
  --bad: #7A1D1D;
  --bad-bg: #FDECEC;
  --radius: 12px;
  --risk-bajo-bg: #E7F6EC;
  --risk-bajo-ink: #0E3B24;
  --risk-bajo-border: #1B7A45;
  --risk-medio-bg: #FFF1E0;
  --risk-medio-ink: #6A3400;
  --risk-medio-border: #C45C00;
  --risk-alto-bg: #FDECEC;
  --risk-alto-ink: #7A1D1D;
  --risk-alto-border: #B42318;
  --risk-critico-bg: #7A1F1F;
  --risk-critico-ink: #FFFFFF;
  --risk-critico-border: #4A1010;
  --medal-gold: #8A6A12;
  --medal-silver: #5C6770;
  --medal-bronze: #7A4A28;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--canvas); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-size: 1.05rem;
  line-height: 1.5;
}
[hidden] { display: none !important; }
:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--focus-gap);
}
button, input, select, textarea { font: inherit; color: inherit; }
button, select, .btn { min-height: 44px; }
img, svg { max-width: 100%; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--brand-yellow);
  color: var(--brand-ink);
  padding: 8px 12px;
  z-index: 20;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

.access-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  background: rgba(23, 23, 23, 0.46);
}
html.is-unlocked .access-overlay { display: none; }
.access-card, .stage-card, .modal, .podium-dialog {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.access-card { width: min(440px, 100%); margin-block: auto; padding: 28px 24px; }
.access-card.is-shake { animation: shake 0.35s linear; }
.access-overlay-matriz {
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  background: var(--surface);
}
.access-overlay-matriz .access-card-tool {
  width: 100%;
  margin: 0;
  padding: 0 0 24px;
  border: 0;
  border-radius: 0;
  background: var(--surface);
}
.access-art {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: var(--surface);
}
.access-copy {
  display: grid;
  gap: 14px;
  padding: 4px 16px 0;
}
.access-head h1 {
  display: inline-block;
  margin: 0;
  font-size: clamp(1.7rem, 5vw, 2.15rem);
  letter-spacing: -0.02em;
}
.access-case { margin: 6px 0 0; color: var(--text-muted); font-size: 0.95rem; }
.access-mode { margin: 6px 0 0; color: var(--text-muted); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.access-mode-practice { display: none; }
html.is-practice .access-mode-competition { display: none; }
html.is-practice .access-mode-practice { display: inline; }
.access-lead { margin: 0; font-size: 1.05rem; font-weight: 600; }
.access-card-tool .field { margin-bottom: 12px; }
.access-card .btn-primary { width: 100%; }
.access-input-wrap { display: flex; gap: 8px; align-items: stretch; }
.access-input-wrap input { flex: 1; min-width: 0; }
.access-toggle {
  flex: 0 0 auto;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}
.access-error { color: var(--bad); margin: 8px 0 0; }
.access-credit {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.65rem;
  margin: 2px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.35;
  min-width: 0;
}
.access-credit span,
.access-credit a {
  min-width: 0;
  max-width: 100%;
}
.access-credit a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.16em;
  overflow-wrap: anywhere;
}
.access-credit a:visited { color: var(--ink); }
.access-credit a:hover { text-decoration-thickness: 2px; }
@media (min-width: 960px) {
  .access-overlay-matriz {
    align-items: center;
    justify-content: center;
    padding: 16px;
  }
  .access-overlay-matriz .access-card-tool {
    position: relative;
    width: min(1280px, 100%, calc((100dvh - 32px) * 1.7768));
    padding: 0;
  }
  .access-overlay-matriz .access-copy {
    position: absolute;
    left: 3.5%;
    top: 58%;
    width: min(280px, 26%);
    max-height: none;
    padding: 12px;
    gap: 6px;
    overflow: visible;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(23, 23, 23, 0.08);
  }
  .access-overlay-matriz .access-lead { font-size: 0.95rem; line-height: 1.25; }
  .access-overlay-matriz .access-card-tool .field { margin-bottom: 8px; }
  .access-overlay-matriz .field-hint { margin-top: 4px; font-size: 0.82rem; }
  .access-overlay-matriz .access-credit {
    margin-top: 0;
    padding-top: 6px;
    font-size: 0.75rem;
    line-height: 1.3;
  }
}

.emoji {
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0;
  line-height: 1;
}
.kicker, .stage-kicker {
  margin: 0 0 6px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
}
.stage-kicker { border-bottom: 3px solid var(--brand-yellow); display: inline-block; padding-bottom: 2px; }
.brand-title { margin: 0; font-size: 1.35rem; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; margin: 0 0 12px; }
h2 { font-size: 1.35rem; margin: 0 0 8px; }
h3 { font-size: 1.05rem; margin: 0 0 8px; }
.lead { font-size: 1.15rem; margin-top: 0; }
.field-hint, .authors, .char-count, .answer-status { color: var(--text-muted); font-size: 0.95rem; }
.authors { margin-top: 18px; }

.app-shell { width: min(1080px, calc(100% - 28px)); margin: 0 auto; padding: 18px 0 48px; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 12;
  margin-bottom: 18px;
  padding-top: 10px;
  background: var(--canvas);
  border-top: 4px solid var(--brand-yellow);
}
.app-shell:has(#view-cover:not([hidden])) .site-header { display: none; }
.access-card:not(.access-card-tool),
.cover-card,
.modal,
.podium-dialog { border-top: 4px solid var(--brand-yellow); }
#round-status[data-state="closed"] {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}
body:has(#round-status[data-state="open"]) #stand-title::after {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-left: 0.45rem;
  border-radius: 50%;
  background: var(--risk-bajo-border);
  vertical-align: 0.12em;
}
.header-main, .header-tools, .header-actions, .stage-actions, .modal-actions, .podium-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.header-main, .podium-meta { justify-content: space-between; }
.stage-chip, .team-chip {
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 700;
}
.stage-chip { background: var(--brand-yellow); color: var(--brand-ink); border-color: var(--brand-ink); }
.answer-status { margin: 0; }
.timer {
  min-width: 132px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--brand-ink);
  border: 1px solid var(--brand-ink);
  color: var(--surface);
}
.timer-label { display: block; color: #D4D4D4; font-size: 0.82rem; }
.timer-value { margin: 0; font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--brand-yellow); }
.timer[data-state="warn"] { border-color: var(--risk-medio-border); background: #6A3400; }
.timer[data-state="warn"] .timer-value { color: #FFF1E0; }
.timer[data-state="alert"], .timer[data-state="done"] { border-color: var(--risk-alto-border); background: var(--bad); }
.timer[data-state="alert"] .timer-value,
.timer[data-state="done"] .timer-value,
.timer[data-state="alert"] .timer-label,
.timer[data-state="done"] .timer-label { color: var(--surface); }

.progress-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
}
.progress-step {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.progress-step:disabled { cursor: not-allowed; opacity: 0.55; }
.progress-step.is-current { background: var(--brand-yellow); border-color: var(--brand-ink); box-shadow: none; }
.progress-step.is-current .progress-index { background: var(--brand-ink); color: var(--brand-yellow); }
.progress-step.is-done .progress-index { background: var(--ink); color: var(--surface); }
.progress-mark { font-size: 1.05rem; line-height: 1; }
.progress-name { flex-basis: 100%; font-size: 0.82rem; font-weight: 700; }
.progress-index {
  width: 1.6rem;
  height: 1.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-yellow);
  color: var(--brand-ink);
  font-size: 0.85rem;
  font-weight: 700;
}
.view-cover { padding: 0; }
.stage-card { padding: 22px 18px; }
.cover-card { display: grid; gap: 16px; }
.cover-notes { display: grid; gap: 12px; }
.cover-notes .mode-banner:empty,
.cover-notes .mode-banner[hidden],
.cover-notes .practice-note[hidden],
.cover-notes .file-warning[hidden] { display: none; }
#enroll-form {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--canvas);
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 16px;
}
.section-head h2,
.finished-count { margin: 0; }
.finished-count { font-weight: 700; }
.podium-heading {
  margin: 10px 0 6px;
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
}
.stage-card { margin-bottom: 16px; }
.sequence, .role-list, .competing-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 12px 0;
  list-style: none;
}
.sequence li, .role-list li, .competing-list li {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
}
.sequence { counter-reset: step; }
.sequence li { counter-increment: step; }
.sequence li::before { content: counter(step) ". "; font-weight: 700; }
.journey {
  margin: 0 0 12px;
  padding-left: 1.25rem;
}
.journey li { margin: 0 0 4px; }
.practice-note {
  margin: 0 0 14px;
  font-weight: 700;
}
.mode-link-row { margin: 8px 0 0; }
.mode-link-row a { color: var(--ink); }
.cover-actions { margin-bottom: 0; }
.disclaimer { margin-top: 28px; font-size: 0.9rem; }
.placing-now { margin: 0; font-size: 1.25rem; font-weight: 700; }
.help-fold { margin: 0 0 14px; }
.help-fold summary { font-weight: 700; cursor: pointer; }
.practice-menu { margin-left: auto; }
.chain-status.is-ok { color: var(--ok, #0b6b2f); }
.chain-status.is-bad { color: var(--bad); }
.field-hint.is-warn { color: var(--bad); font-weight: 700; }
.outcome { margin-bottom: 16px; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.outcome p { margin: 0 0 10px; font-size: 1.35rem; font-weight: 700; }
.example-box {
  margin: 0 0 14px;
  padding: 10px 12px;
  max-width: 100%;
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand-ink);
  border-radius: 12px;
  background: #FFF8CC;
  overflow-wrap: anywhere;
}
.example-kicker {
  margin: 0 0 4px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.example-rule, .example-sample { margin: 0; }
.example-sample { margin-top: 4px; font-weight: 700; }
.guide-list { margin: 8px 0 12px; padding-left: 1.2rem; }
.guide-list li { margin: 0 0 6px; }
.guide-dialog { width: min(520px, 100%); }
.axis-note { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.place-layout { display: grid; gap: 10px; margin: 0 0 12px; }
.value-line { display: grid; gap: 8px; margin: 0 0 12px; }
.value-prompt { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; margin: 0; }
.value-kind { font-weight: 700; }
.value-word { font-size: 1.25rem; font-weight: 700; }
.scale-nums { margin: 0; padding: 0; border: 0; min-width: 0; }
.scale-nums.is-bad .scale-num { border-color: var(--bad); }
.scale-nums.is-ok .scale-num:has(input:checked) { border-color: var(--ok); }
.scale-num {
  position: relative;
  width: 44px;
  min-height: 44px;
  padding: 0;
  justify-content: center;
  align-items: center;
  font-weight: 700;
}
.scale-num input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.scale-num:focus-within {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--focus-gap);
}
.alt-label { margin: 8px 0; font-size: 1.05rem; }
.mode-banner, .disclaimer, .hint-box, .file-warning {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand-ink);
  color: var(--ink);
}
.file-warning { background: var(--bad-bg); border-left-color: var(--bad); }

.field { margin: 0 0 14px; }
.field label, legend { font-weight: 700; }
.optional { color: var(--text-muted); font-weight: 600; }
.num-entry input {
  width: 5.5rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  text-align: center;
}
.piece-bank { margin: 0 0 10px; }
.piece-bank-title { font-weight: 700; }
input, select, textarea { scroll-margin-bottom: 96px; }
input[type="text"], input[type="password"], select, textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
}
textarea { min-height: 96px; resize: vertical; }
select.is-bad, input.is-bad, .scale-choice.is-bad { border-color: var(--bad); background: var(--bad-bg); }
select.is-ok, .scale-choice.is-ok { border-color: var(--ok); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary { background: var(--brand-yellow); color: var(--brand-ink); border-color: var(--brand-ink); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--border); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-danger { background: var(--bad); color: var(--surface); border-color: var(--bad); }

.chain-forms, .value-forms, .result-grid, .result-cards { display: grid; gap: 12px; }
.chain, .control-row, .choice-block, .risk-card, .note-card, .control-card, .admin-panel, .recall-card {
  margin: 0 0 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
}
.chain.is-bad, .control-row.is-bad, .recall-card.is-bad { border-color: var(--bad); }
.chain.is-ok, .control-row.is-ok { border-color: var(--ok); }
.chain-status { min-height: 1.2em; margin: 8px 0 0; font-weight: 700; }
.choice-list, .scale-row { display: grid; gap: 8px; }
.scale-row.scale-row-nums { display: flex; flex-wrap: wrap; gap: 6px; }
.choice, .scale-choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.choice input, .scale-choice input { margin-top: 4px; width: auto; min-height: 0; }
.choice:has(input:checked), .scale-choice:has(input:checked) {
  border-color: var(--brand-ink);
  box-shadow: inset 4px 0 0 var(--brand-yellow);
}
.scale-panel {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--canvas);
}
.scale-panel p { margin: 0; }
.scale-title { font-weight: 700; }
.scale-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.scale-list li, .level-legend li {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
}
.product-line { margin: 8px 0 0; font-weight: 700; }
.impact-signal {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-left: 4px solid var(--brand-ink);
  background: var(--canvas);
  color: var(--ink);
  font-weight: 700;
}

.level-bajo { background: var(--risk-bajo-bg); color: var(--risk-bajo-ink); border-color: var(--risk-bajo-border); }
.level-medio { background: var(--risk-medio-bg); color: var(--risk-medio-ink); border-color: var(--risk-medio-border); }
.level-alto { background: var(--risk-alto-bg); color: var(--risk-alto-ink); border-color: var(--risk-alto-border); }
.level-critico { background: var(--risk-critico-bg); color: var(--risk-critico-ink); border-color: var(--risk-critico-border); }
.level-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 4px 10px;
  border: 2px solid;
  border-radius: 999px;
  font-weight: 700;
}
.level-bajo.level-chip { border-style: dashed; }
.level-medio.level-chip { border-style: solid; }
.level-alto.level-chip { border-width: 3px; }
.level-critico.level-chip { border-style: double; }

.matrix-wrap { overflow-x: auto; }
.matrix {
  width: 100%;
  border-collapse: separate;
  border-spacing: 4px;
  table-layout: fixed;
}
.matrix caption { text-align: left; font-weight: 700; padding-bottom: 8px; }
.matrix th, .matrix td { text-align: center; vertical-align: middle; }
.matrix th {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
}
.axis-title { font-size: 0.95rem; }
.matrix-cell {
  width: 100%;
  min-height: 64px;
  padding: 4px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.matrix-cell .cell-product, .matrix-cell .cell-short, .matrix-cell .cell-word { font-weight: 700; }
.matrix-cell .cell-product { font-size: 0.95rem; }
.matrix-cell .cell-short, .matrix-cell .cell-word { font-size: 0.72rem; }
.matrix-cell .cell-marker { font-size: 0.78rem; font-weight: 700; }
.matrix-cell.is-selected { outline: 3px solid var(--brand-ink); outline-offset: 1px; }
.matrix-cell.level-bajo { border-style: dashed; }
.matrix-cell.level-alto { border-width: 3px; }
.matrix-cell.level-critico { border-style: solid; }
.level-legend { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 12px 0 0; list-style: none; }
.level-legend li { border-width: 2px; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td {
  border: 1px solid var(--border);
  padding: 8px;
  text-align: left;
  vertical-align: top;
  background: var(--surface);
  color: var(--ink);
}
.data-table caption { text-align: left; font-weight: 700; padding-bottom: 8px; }
.data-table td.level-bajo, .data-table td.level-medio, .data-table td.level-alto, .data-table td.level-critico { font-weight: 700; }

.feedback { min-height: 1.2em; font-weight: 700; }
.feedback.is-error { color: var(--bad); }
.feedback.is-success { color: var(--ok); }
.outcome { padding: 12px 14px; border-radius: 12px; background: var(--canvas); border: 1px solid var(--border); margin-bottom: 16px; }
.noscript { padding: 16px; }
.result-table-wrap { display: none; }
.result-block { margin-top: 18px; }

.modal-overlay, .podium-overlay {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(23, 23, 23, 0.46);
}
.modal, .podium-dialog { width: min(560px, 100%); padding: 20px; }
.podium-stand {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 12px 0;
  list-style: none;
}
.podium-place {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  border-top: 8px solid var(--ink);
}
.podium-place[data-medal="gold"] { border-top-color: var(--medal-gold); }
.podium-place[data-medal="silver"] { border-top-color: var(--medal-silver); }
.podium-place[data-medal="bronze"] { border-top-color: var(--medal-bronze); }
.podium-empty {
  background: transparent;
  border-style: dashed;
  border-top-style: solid;
}
.podium-empty .podium-name { color: var(--text-muted); font-weight: 600; }
.podium-place[data-medal="gold"]:not(.podium-empty) { background: #FFF8CC; }
.podium-rank { font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.podium-rank .emoji { font-size: 1.6rem; }
.podium-name { font-size: 1.5rem; font-weight: 700; line-height: 1.15; }
.podium-time { font-variant-numeric: tabular-nums; font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.podium-page { width: min(1100px, calc(100% - 32px)); }
.podium-page .competing-list { display: grid; gap: 8px; }
.podium-page .competing-list li { border-radius: 12px; font-weight: 700; }
.podium-page .admin-panel { background: transparent; border-style: dashed; }
.podium-page .authors { margin: 4px 0 0; }
.app-shell.is-inert { pointer-events: none; }

@media (max-width: 720px) {
  .site-header .kicker { display: none; }
  .brand-title { font-size: 1.05rem; }
  .progress-list { gap: 4px; margin-top: 8px; }
  .progress-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .progress-step { align-items: center; }
  .stage-actions, .header-actions { flex-direction: column; align-items: stretch; }
  .btn, .stage-actions .btn { width: 100%; }
  .header-tools { align-items: center; justify-content: space-between; }
  .header-main { align-items: flex-start; }
  .practice-menu { flex-basis: 100%; }
  .view:not(.view-cover) .stage-actions {
    position: static;
    margin: 16px 0 0;
    padding: 0 0 calc(12px + env(safe-area-inset-bottom));
  }
  .matrix-cell { min-height: 52px; padding: 2px; }
  .matrix-cell .cell-short,
  .matrix-cell .cell-word {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
}
@media (min-width: 800px) {
  .chain-forms, .value-forms { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .place-layout { grid-template-columns: minmax(180px, 240px) minmax(0, 1fr); align-items: start; }
  .result-cards { display: none; }
  .result-table-wrap { display: block; }
  .stage-card { padding: 28px; }
  .cover-card {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    grid-template-areas: "copy form" "notes notes";
    column-gap: 36px;
    align-items: start;
  }
  .cover-copy { grid-area: copy; }
  #enroll-form { grid-area: form; }
  .cover-notes { grid-area: notes; }
  .matrix-cell { min-height: 84px; }
  .matrix-cell .cell-word { font-size: 0.85rem; }
}
@media (min-width: 960px) {
  .podium-stand-large { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; }
  .podium-stand-large .podium-place[data-medal="silver"] { order: 1; }
  .podium-stand-large .podium-place[data-medal="gold"] { order: 2; }
  .podium-stand-large .podium-place[data-medal="bronze"] { order: 3; }
  .podium-stand-large .podium-name { font-size: 2.8rem; }
  .podium-stand-large .podium-time { font-size: 2rem; }
  .podium-stand-large .podium-rank { font-size: 1.4rem; }
  .podium-stand-large .podium-rank .emoji { font-size: 2.4rem; }
  .podium-stand-large .podium-empty .podium-name { font-size: 1.45rem; }
.podium-stand-large .podium-place[data-medal="gold"] { min-height: 260px; }
  .podium-stand-large .podium-place[data-medal="silver"] { min-height: 220px; }
  .podium-stand-large .podium-place[data-medal="bronze"] { min-height: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
@keyframes shake {
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
