@charset "UTF-8";
/* CP2: tournament, proposals and the life after sports day. */
.sportsday-art,.community-art {
  background-size:cover;
  background-position:center;
  background-color:#b7c6ae;
}
.sportsday-art {
  background-image:url('../assets/story/sportsday.png'),url('../assets/story/schoolday.png');
}
.community-art {
  background-image:url('../assets/story/community.png'),url('../assets/story/schoolday.png');
}
.tournament-hero {
  min-height:250px;
  border-radius:12px;
  padding:32px;
  display:flex;
  align-items:flex-end;
  position:relative;
  isolation:isolate;
  overflow:hidden;
  color:#fffdf2;
}
.tournament-hero:before,.completion-hero:before {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(90deg,#173d36db,#173d3655 58%,#173d3610);
}
.tournament-hero h2 {
  font-size:30px;
  margin:13px 0 4px;
}
.tournament-hero p {
  font-size:12px;
  margin:0;
  color:#eff1dd;
}
.tournament-hero .badge {
  background:#fffceae8;
  color:var(--ink);
}
.tournament-rule-strip {
  display:grid;
  gap:4px;
  padding:18px 23px;
  margin:17px 0 23px;
  border:1px solid #d9c88e;
  background:#f4ecd5;
  border-radius:9px;
  font-size:11px;
  line-height:1.8;
}
.tournament-rule-strip>b {
  font-size:10px;
  color:#877044;
  letter-spacing:.09em;
}
.tournament-rule-strip>strong {
  color:#8b4d37;
  font-size:12px;
}
.tournament-workspace {
  grid-template-columns:minmax(0,1.6fr) minmax(300px,1fr);
}
.tournament-workspace>section {
  min-width:0;
}
.next-fixture {
  margin-bottom:19px;
  display:flex;
  align-items:center;
  gap:15px;
}
.next-fixture h2 {
  font-size:15px;
  line-height:1.8;
  margin:6px 0;
}
.next-fixture .primary {
  flex:none;
  gap:12px;
}
.next-fixture .small {
  margin:0;
  font-size:10px;
}
.next-fixture-actions {display:grid;gap:8px;flex:none;max-width:100%}
.next-fixture-actions .secondary {font-size:10px;padding:9px 12px;min-height:38px}
.computation-card {max-width:700px;margin:25px auto;text-align:center;padding:45px 35px}
.computation-symbol {font:52px Georgia,serif;color:#9db18a;line-height:1.2;margin-bottom:20px}
.computation-card h2 {font-size:19px;margin:0 0 12px}
.computation-card>p {font-size:12px}
.computation-card>.small {font-size:11px;line-height:1.9}
.computation-card .watch-progress {margin:22px auto;max-width:400px;height:5px}
.computation-card .secondary {margin-top:15px}
.compute-clock {margin-top:23px}
.compute-clock strong {font:44px Georgia,serif}
.compute-clock span {font-size:11px;color:var(--muted)}
.tournament-standings {
  margin-bottom:25px;
}
.table-scroll {
  max-width:100%;
  overflow-x:auto;
}
.standings-table {
  margin-bottom:10px;
}
.standings-table td:first-child {
  min-width:150px;
}
.standings-table td:first-child>strong {
  margin-right:7px;
}
.standings-table th,.standings-table td {
  padding:13px 9px;
}
.tournament-standings>.small {
  font-size:10px;
}
.tournament-rules {
  padding:23px;
}
.tournament-rules .card-heading {
  align-items:flex-start;
  gap:8px;
}
.tournament-rules h2 {
  font-size:14px;
}
.tournament-rules .badge {
  font-size:8px;
  white-space:nowrap;
}
.tournament-rules ol {
  font-size:11px;
  line-height:2;
  padding-left:19px;
}
.tournament-rules li {
  margin-bottom:11px;
}
.tournament-rules>.small {
  font-size:9px;
}
.principal-demand {
  padding:15px;
  margin:20px 0 15px;
  border:1px solid #dec3a2;
  border-radius:7px;
  background:#f6ecdc;
}
.principal-demand>span {
  display:block;
  font-size:9px;
  color:#95654b;
}
.principal-demand>strong {
  font-size:12px;
  line-height:1.9;
  display:block;
  margin-top:6px;
}
.principal-demand p {
  font-size:9px;
  color:#876d56;
  margin:8px 0 0;
}
.fixture-section>h2 {
  font-size:17px;
  margin-bottom:13px;
}
.fixture-list {
  padding:0;
  margin:0;
  list-style:none;
  display:grid;
  gap:9px;
}
.fixture {
  padding:17px 20px;
  background:#efF1e8;
  border:1px solid #dce2d3;
  border-radius:9px;
}
.fixture.done {
  background:var(--white);
}
.fixture.next {
  border-color:#d0b66c;
  background:#f8efd9;
}
.fixture-heading {
  display:flex;
  align-items:center;
  gap:14px;
}
.fixture-number {
  font:21px Georgia,serif;
  color:#829678;
}
.fixture-heading h3 {
  font-size:12px;
  margin:0;
}
.fixture-heading p {
  font-size:10px;
  color:var(--muted);
  margin:3px 0 0;
}
.fixture-heading .badge {
  margin-left:auto;
  font-size:8px;
  flex:none;
}
.fixture-result {
  margin:12px 0 0 36px;
  padding-top:10px;
  border-top:1px solid var(--line);
  font-size:10px;
  line-height:1.8;
}
.fixture-result p {
  margin:3px 0;
}
.fixture-result p>b {
  display:inline-block;
  min-width:42px;
  color:#64785f;
}
.fixture-result p>span {
  color:var(--muted);
  padding-left:7px;
  font-size:9px;
}
.tournament-outcome {
  background:#e8eee2;
  border:1px solid #cad8bf;
  border-radius:10px;
  margin-bottom:20px;
  padding:25px;
}
.tournament-outcome.won {
  background:#f8edce;
  border-color:#e1c777;
}
.tournament-outcome h2 {
  font:700 30px "Yu Mincho",serif;
  margin:0 0 9px;
}
.tournament-outcome p {
  font-size:11px;
  margin:8px 0;
}
.tournament-outcome .primary {
  margin-top:12px;
}
.completion-hero {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  border-radius:13px;
  min-height:380px;
  color:#fffdf2;
  display:flex;
  align-items:center;
  padding:55px;
  margin:10px 0 25px;
}
.completion-copy h1 {
  font-size:43px;
  margin:20px 0 15px;
}
.completion-copy p {
  font-size:13px;
  line-height:2;
  margin:0 0 22px;
}
.completion-copy .eyebrow {
  font-size:9px;
}
.story-confetti {
  position:absolute;
  inset:0;
  overflow:hidden;
  pointer-events:none;
  z-index:3;
}
.story-confetti i {
  position:absolute;
  left:var(--x);
  top:-20px;
  width:6px;
  height:11px;
  background:var(--color);
  border-radius:1px;
  animation:story-confetti-fall 2.4s var(--delay) ease-in both;
}
@keyframes story-confetti-fall {
  from {transform:translate(0,-10px) rotate(0);opacity:0}
  12% {opacity:.95}
  to {transform:translate(var(--drift),480px) rotate(var(--rotate));opacity:0}
}
.proposal-open {
  margin-top:14px;
  font-size:10px;
  width:100%;
  justify-content:space-between;
}
.proposal-status {
  color:#6b7f61;
  border-top:1px solid var(--line);
  padding-top:11px;
  margin-top:13px!important;
  font-size:10px!important;
}
.proposal-quote {
  background:#edf1e7;
  border-left:3px solid #a6b98d;
  margin:18px 0 24px;
  padding:17px 20px;
  font:15px/1.9 "Yu Mincho",serif;
}
.proposal-decisions {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
}
.proposal-dialog textarea {
  width:100%;
  display:block;
  resize:vertical;
  min-height:96px;
  border:1px solid #c8d4c2;
  background:var(--white);
  border-radius:7px;
  padding:12px;
  color:var(--ink);
  font:12px/1.8 inherit;
}
.reason-label {
  display:flex;
  justify-content:space-between;
  margin-bottom:7px;
  font-size:11px;
  font-weight:700;
  gap:10px;
}
.reason-label small {
  font-size:9px;
  font-weight:400;
  color:var(--muted);
}
.allocation-settings {padding:0 0 16px;margin-bottom:18px;border-bottom:1px solid var(--line)}
.allocation-settings h3 {font-size:12px;margin:0 0 7px}
.allocation-settings .plan-field {margin:14px 0 0}
.allocation-settings legend {font-size:10px;width:100%;justify-content:space-between}
.allocation-total {font-size:9px;color:var(--muted);font-weight:400}
.allocation-total.invalid {color:#b34f3d;font-weight:700}
.allocation-row {display:flex;gap:7px}
.allocation-row>label {flex:1;min-width:0;font-size:9px;color:var(--muted)}
.allocation-row input {display:block;width:100%;min-height:39px;border:1px solid #c8d5bd;border-radius:6px;background:var(--white);color:var(--ink);padding:5px 7px;margin-top:5px;font-size:12px}
.sport-strategy-settings {padding-bottom:18px;margin-bottom:18px;border-bottom:1px solid var(--line);min-width:0}
.sport-strategy-settings h3,.roster-subheading {font-size:12px;margin:0 0 9px}
.sport-tactic-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}
.sport-tactic-grid>label {font-size:10px;font-weight:700;min-width:0}
.sport-tactic-grid select {margin-top:6px;width:100%;min-width:0}
.sport-order {border:1px solid var(--line);border-radius:7px;padding:10px 12px;margin-top:8px;min-width:0}
.sport-order summary {font-size:11px;font-weight:700;cursor:pointer;overflow-wrap:anywhere}
.sport-order summary span {font-weight:400;color:var(--muted);margin-left:7px;font-size:10px}
.sport-order .quiet {font-size:10px;padding:8px 10px;min-height:38px}
.sport-order-list {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 12px;padding:0;margin:12px 0 0;list-style:none;max-height:270px;overflow:auto;overscroll-behavior:contain}
.sport-order-list li {display:flex;gap:7px;font-size:10px;min-width:0;overflow-wrap:anywhere}
.sport-order-list li span {min-width:24px;color:var(--muted);font-size:9px;font-variant-numeric:tabular-nums}
.sport-order-list li>div {min-width:0}
.sport-order-list li small {display:block;font-size:8px;color:var(--muted);line-height:1.7}
.native-rule-list {margin-top:18px;border-top:1px solid var(--line);padding-top:12px}
.native-rule-list summary {font-size:11px;cursor:pointer;font-weight:700}
.native-rule-list p {font-size:10px;line-height:1.8}
.relay-result-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 12px;margin:9px 0}
.relay-result-grid p {margin:0;overflow-wrap:anywhere}
.relay-result-table {font-size:10px;min-width:320px}
.relay-result-table caption {font-size:10px;text-align:left}
.relay-live-list {border-top:1px solid var(--line);padding:6px 0;margin-bottom:10px}
.relay-live-list p {display:flex;justify-content:space-between;gap:8px;margin:7px 0;font-size:10px}
.relay-live-list strong {font-size:10px;font-variant-numeric:tabular-nums;white-space:nowrap}
@media(max-width:1050px) {
  .tournament-workspace {grid-template-columns:minmax(0,1.35fr) minmax(280px,1fr)}
  .next-fixture {flex-direction:column;align-items:stretch}
}
@media(max-width:760px) {
  .computation-card {padding:30px 20px}
  .computation-card h2 {font-size:16px}
  .computation-card>p {font-size:10px}
  .next-fixture-actions {width:100%}
  .tournament-hero {min-height:210px;padding:25px 22px}
  .tournament-hero h2 {font-size:23px}
  .tournament-hero p {font-size:10px;line-height:1.9}
  .tournament-rule-strip {padding:15px 17px;font-size:10px;gap:6px}
  .tournament-rule-strip>strong {font-size:10px;line-height:1.9}
  .tournament-workspace {grid-template-columns:minmax(0,1fr)}
  .tournament-rules {padding:20px}
  .tournament-rules h2 {font-size:15px}
  .next-fixture {padding:20px}
  .next-fixture h2 {font-size:14px}
  .next-fixture .primary {font-size:12px}
  .standings-table td:first-child {min-width:126px;white-space:normal}
  .standings-table td,.standings-table th {padding:12px 7px;font-size:10px}
  .standings-table td:first-child>strong {margin-right:3px}
  .fixture {padding:15px}
  .fixture-number {font-size:19px}
  .fixture-heading {gap:10px}
  .fixture-heading p {font-size:9px}
  .fixture-result {margin-left:29px;font-size:9px}
  .fixture-result p>span {font-size:8px;padding-left:3px}
  .tournament-outcome {padding:22px}
  .tournament-outcome h2 {font-size:26px}
  .tournament-outcome p {font-size:10px}
  .completion-hero {min-height:360px;padding:30px 24px;background-position:60% center}
  .completion-copy h1 {font-size:32px}
  .completion-copy p {font-size:11px}
  .completion-copy .eyebrow {font-size:8px}
  .proposal-decisions {grid-template-columns:1fr}
  .proposal-decisions .choice-label {min-height:57px}
  .proposal-quote {font-size:14px;padding:15px 17px}
  .proposal-dialog textarea {font-size:12px}
}
:root {
  color-scheme:light;
  --ink:#173e3b;
  --muted:#677771;
  --paper:#f7f5ed;
  --white:#fffef9;
  --line:#dce2d8;
  --teal:#204f48;
  --deep:#153d38;
  --gold:#e8bd62;
  --coral:#cb5e49;
  --shadow:0 14px 38px #193e3210;
  font-family:"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;
  font-synthesis:none;
  font-size:15px;
  line-height:1.75
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  background:var(--paper);
  color:var(--ink)
}
button,input,select {
  font:inherit
}
button,a,input,select {
  -webkit-tap-highlight-color:transparent
}
button {
  cursor:pointer
}
button:disabled {
  cursor:default;
  opacity:.46
}
a {
  color:inherit
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible {
  outline:3px solid #db9b39;
  outline-offset:4px
}
button {
  border:0
}
button,a {
  touch-action:manipulation
}
button {
  transition:background .16s,transform .16s,box-shadow .16s
}
button:hover:not(:disabled) {
  filter:brightness(1.04)
}
button:active:not(:disabled) {
  transform:translateY(1px)
}
[hidden] {
  display:none!important
}
.skip-link {
  position:fixed;
  left:20px;
  top:-100px;
  z-index:99;
  background:var(--white);
  padding:12px 20px
}
.skip-link:focus {
  top:12px
}
.site-header {
  height:86px;
  max-width:1360px;
  margin:auto;
  padding:0 48px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px
}
.brand {
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  font-weight:900;
  line-height:1.3;
  letter-spacing:.03em;
  font-size:18px
}
.brand small {
  display:block;
  font-size:10px;
  font-weight:500;
  letter-spacing:.13em;
  margin-top:5px
}
.brand-mark {
  background:var(--teal);
  color:var(--gold);
  height:44px;
  width:44px;
  border-radius:12px 12px 12px 3px;
  display:inline-grid;
  place-items:center;
  font:700 26px Georgia,serif;
  flex:none;
  position:relative
}
.brand-mark:after {
  content:"";
  height:2px;
  width:20px;
  background:var(--gold);
  position:absolute;
  bottom:8px;
  left:12px
}
.site-header nav {
  display:flex;
  gap:12px;
  align-items:center;
  font-size:12px
}
.back-sports {
  text-decoration:none;
  margin-right:12px
}
.back-sports:before {
  content:"← ";
  color:var(--coral)
}
.icon-button {
  background:transparent;
  border:1px solid var(--line);
  border-radius:50px;
  padding:8px 15px;
  color:var(--ink);
  font-size:12px
}
#story-main {
  max-width:1360px;
  margin:auto;
  padding:0 48px 20px;
  outline:none;
  min-height:calc(100dvh - 150px)
}
.site-footer {
  max-width:1360px;
  margin:auto;
  padding:17px 48px 25px;
  display:flex;
  justify-content:space-between;
  font-size:10px;
  letter-spacing:.12em;
  color:var(--muted)
}
.notice {
  padding:12px 24px;
  max-width:1264px;
  margin:0 auto 16px;
  background:#fff2d2;
  border:1px solid #e3c37d;
  border-radius:10px;
  color:#654d21;
  font-size:13px
}
.boot-message {
  min-height:60vh;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column
}
.eyebrow {
  font-size:10px;
  text-transform:uppercase;
  font-weight:800;
  letter-spacing:.19em;
  display:flex;
  align-items:center;
  gap:10px
}
.eyebrow:before {
  content:"";
  height:1px;
  width:26px;
  background:currentColor;
  opacity:.6
}
.badge {
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:#edf2e8;
  border:1px solid #d2dfce;
  border-radius:100px;
  padding:3px 10px;
  font-size:10px;
  font-weight:700;
  letter-spacing:.04em
}
.badge.gold {
  background:#f7e9c5;
  border-color:#e9ce8f;
  color:#785c28
}
.badge.coral {
  background:#fbe9e2;
  border-color:#efc0b2;
  color:#9a4936
}
.small {
  font-size:12px;
  color:var(--muted)
}
.muted {
  color:var(--muted)
}
.primary,.secondary,.quiet,.danger {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:20px;
  min-height:48px;
  padding:12px 22px;
  border-radius:8px;
  font-weight:700;
  font-size:13px;
  text-decoration:none;
  line-height:1.5
}
.primary {
  background:var(--coral);
  color:#fff;
  box-shadow:0 5px 14px #9d48351a
}
.primary.teal {
  background:var(--teal)
}
.secondary {
  border:1px solid #c8d4c7;
  background:var(--white);
  color:var(--ink)
}
.quiet {
  background:#edf1e9;
  color:var(--ink);
  min-height:40px;
  padding:9px 15px
}
.danger {
  background:#f9e8e2;
  color:#9b4634
}
.arrow {
  font-size:19px;
  font-weight:400
}
.section-title {
  font-family:"Hiragino Mincho ProN","Yu Mincho",serif;
  font-weight:700;
  line-height:1.5;
  letter-spacing:.04em
}
.title-hero {
  position:relative;
  border-radius:15px;
  min-height:620px;
  isolation:isolate;
  overflow:hidden;
  background:#adc0a5;
  display:flex;
  align-items:flex-end
}
.school-art {
  background-image:url('../assets/story/schoolday.png');
  background-position:center;
  background-size:cover;
  background-color:#b6c7ae
}
.title-hero:before {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,#f7f3e8f5 0%,#f7f3e8e8 21%,#f7f3e8b0 40%,#f7f3e800 70%);
  z-index:-1
}
.hero-copy {
  padding:62px 54px;
  max-width:610px
}
.hero-copy .eyebrow {
  color:#49685c;
  margin-bottom:22px
}
.hero-copy h1 {
  font-family:"Hiragino Mincho ProN","Yu Mincho",serif;
  font-size:clamp(45px,5.3vw,72px);
  line-height:1.2;
  letter-spacing:-.07em;
  margin:0;
  color:#183f39
}
.hero-copy h1 em {
  color:var(--coral);
  font-style:normal;
  font-size:1.24em
}
.hero-subtitle {
  font-family:"Hiragino Mincho ProN","Yu Mincho",serif;
  font-size:21px;
  font-weight:700;
  letter-spacing:.08em;
  margin:20px 0 30px
}
.hero-description {
  font-size:13px;
  line-height:2;
  max-width:365px
}
.hero-actions {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:28px 0 12px
}
.hero-caption {
  font-size:10px;
  color:#597263;
  margin:0
}
.hero-note {
  position:absolute;
  right:30px;
  bottom:28px;
  padding:15px 18px;
  background:#fffdf2e8;
  backdrop-filter:blur(10px);
  border-radius:8px;
  font-size:11px;
  line-height:1.8;
  box-shadow:var(--shadow)
}
.hero-note b {
  font-size:17px;
  display:block;
  line-height:1.5
}
.title-context {
  display:flex;
  justify-content:space-between;
  gap:30px;
  padding:20px 4px 0;
  font-size:12px;
  color:var(--muted)
}
.title-context p {
  margin:0
}
.dialogue-stage {
  min-height:620px;
  position:relative;
  isolation:isolate;
  border-radius:14px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  justify-content:space-between
}
.dialogue-stage:before {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(#123d3a35,#183b3455 55%,#143b3780);
  z-index:-1
}
.scene-caption {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:25px 30px;
  color:white;
  font-size:11px;
  letter-spacing:.12em
}
.scene-caption .badge {
  color:var(--white);
  background:#173f3bbb;
  border-color:#ffffff40
}
.dialogue-people {
  position:absolute;
  left:8%;
  right:8%;
  bottom:150px;
  height:370px;
  display:flex;
  align-items:end;
  justify-content:space-between;
  pointer-events:none;
  z-index:-1
}
.portrait {
  height:100%;
  max-width:32%;
  filter:drop-shadow(0 8px 10px #123a3255);
  opacity:.5;
  transition:opacity .2s,transform .2s;
  transform:translateY(12px)
}
.portrait.active {
  opacity:1;
  transform:translateY(0)
}
.portrait svg {
  height:100%;
  width:100%;
  overflow:visible
}
.dialogue-panel {
  margin:0 34px 28px;
  background:#fffef9f7;
  border-radius:9px;
  box-shadow:0 10px 50px #12372d25;
  padding:23px 28px 18px;
  min-height:200px;
  position:relative
}
.speaker {
  position:absolute;
  top:-18px;
  left:24px;
  background:var(--teal);
  color:white;
  font-weight:700;
  padding:7px 26px;
  border-radius:5px;
  font-size:13px;
  min-width:100px;
  text-align:center;
  letter-spacing:.07em
}
.dialogue-text {
  font-family:"Hiragino Mincho ProN","Yu Mincho",serif;
  font-size:19px;
  line-height:1.9;
  margin:7px 0 19px;
  min-height:72px
}
.dialogue-toolbar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px
}
.dialogue-toolbar small {
  font-size:10px;
  color:var(--muted)
}
.dialogue-nav {
  display:flex;
  align-items:center;
  gap:12px
}
.text-button {
  font-size:11px;
  color:var(--muted);
  background:transparent;
  padding:8px
}
.dialogue-nav .primary {
  min-height:40px;
  padding:9px 21px
}
.screen-heading {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin:24px 0 22px
}
.screen-heading h1 {
  font-size:27px;
  margin:4px 0 0
}
.screen-heading p {
  margin:0;
  font-size:12px;
  color:var(--muted)
}
.weekline {
  display:flex;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:10px;
  overflow:hidden;
  margin-bottom:26px
}
.week-cell {
  flex:1;
  padding:11px 4px;
  text-align:center;
  position:relative;
  font-size:9px;
  color:#9aa79d;
  line-height:1.4
}
.week-cell+ .week-cell {
  border-left:1px solid var(--line)
}
.week-cell strong {
  display:block;
  font-size:16px;
  color:inherit;
  font-family:Georgia,serif
}
.week-cell.current {
  background:var(--teal);
  color:white
}
.week-cell.done {
  color:#427061;
  background:#eef2e9
}
.week-cell.observation:after {
  content:"";
  height:4px;
  width:4px;
  background:var(--coral);
  border-radius:50%;
  position:absolute;
  right:8px;
  top:8px
}
.workspace {
  display:grid;
  grid-template-columns:minmax(0,1.44fr) minmax(300px,1fr);
  gap:24px;
  align-items:start
}
.card {
  background:var(--white);
  border:1px solid var(--line);
  border-radius:12px;
  padding:25px;
  box-shadow:var(--shadow)
}
.card-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  margin-bottom:20px
}
.card-heading h2 {
  font-size:17px;
  letter-spacing:.04em;
  margin:0
}
.card-heading .small {
  font-size:10px
}
.plan-field {
  border:0;
  padding:0;
  margin:0 0 21px;
  min-width:0
}
.plan-field legend {
  font-weight:800;
  font-size:12px;
  margin-bottom:8px;
  display:flex;
  align-items:center;
  gap:8px
}
.field-number {
  font-size:10px;
  font-family:Georgia,serif;
  font-weight:700;
  color:#66856d;
  background:#e9eee3;
  width:21px;
  height:21px;
  border-radius:50%;
  display:inline-grid;
  place-items:center
}
.choice-row {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px
}
.choice {
  position:relative;
  min-width:0
}
.choice input {
  position:absolute;
  opacity:0;
  width:1px;
  height:1px
}
.choice-label {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  border:1px solid var(--line);
  border-radius:7px;
  padding:11px 10px;
  min-height:72px;
  cursor:pointer;
  background:#fffef9;
  transition:background .15s,border-color .15s
}
.choice-label strong {
  font-size:12px;
  line-height:1.5
}
.choice-label small {
  font-size:9px;
  line-height:1.5;
  color:var(--muted);
  margin-top:3px
}
.choice input:checked+.choice-label {
  background:#eaf1e7;
  border-color:var(--teal);
  box-shadow:inset 0 0 0 1px var(--teal)
}
.choice input:focus-visible+.choice-label {
  outline:3px solid #db9b39;
  outline-offset:3px
}
.plan-bottom-fields {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px
}
.plan-bottom-fields .plan-field {
  margin-bottom:16px
}
.plan-select {
  display:block;
  width:100%;
  border:1px solid #cbd7c7;
  background:var(--white);
  border-radius:7px;
  min-height:44px;
  padding:8px 30px 8px 12px;
  color:var(--ink);
  font-size:12px
}
.plan-help {
  font-size:10px;
  line-height:1.75;
  color:var(--muted);
  margin:6px 0 0
}
.plan-preview {
  border-top:1px solid var(--line);
  padding-top:16px;
  color:#5f7566;
  font-size:11px;
  margin:2px 0 16px
}
.plan-submit {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px
}
.plan-submit small {
  font-size:9px;
  color:var(--muted);
  line-height:1.6
}
.plan-submit .primary {
  min-width:210px
}
.right-column {
  display:grid;
  gap:18px
}
.homeroom-art {
  height:190px;
  border-radius:10px;
  position:relative;
  overflow:hidden;
  background-position:center 53%;
  margin-bottom:15px
}
.homeroom-art:after {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(transparent,#183f3c80)
}
.homeroom-art span {
  position:absolute;
  bottom:14px;
  left:16px;
  font-size:11px;
  color:white;
  z-index:1;
  letter-spacing:.1em
}
.class-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:0 0 14px
}
.class-heading h2 {
  font-size:16px;
  margin:0
}
.class-heading small {
  font-size:10px;
  color:var(--muted)
}
.metric-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px 10px
}
.metric-name {
  font-size:9px;
  color:var(--muted)
}
.metric-value {
  font-family:Georgia,serif;
  font-size:23px;
  line-height:1.2;
  display:flex;
  align-items:baseline;
  gap:5px
}
.metric-value small {
  font:9px sans-serif;
  color:#5d8270
}
.metric-track {
  height:3px;
  background:#e7ecdf;
  margin-top:6px;
  border-radius:2px;
  overflow:hidden
}
.metric-track i {
  display:block;
  height:100%;
  background:#75987b;
  border-radius:2px
}
.metric-fatigue .metric-track i {
  background:#d89a68
}
.class-actions {
  display:flex;
  gap:8px;
  margin-top:19px
}
.class-actions .secondary {
  flex:1;
  min-height:40px;
  font-size:11px;
  padding:8px
}
.note-card {
  background:#f2eddf;
  border:1px solid #e4dac2;
  border-radius:10px;
  padding:19px 22px
}
.note-card h3 {
  font-size:11px;
  letter-spacing:.07em;
  margin:0 0 9px;
  display:flex;
  gap:7px;
  align-items:center
}
.note-card h3:before {
  content:"";
  display:block;
  height:10px;
  width:8px;
  border:1px solid #82947c;
  transform:rotate(-10deg)
}
.note-card p {
  font-size:11px;
  margin:0;
  line-height:1.95;
  color:#67725d
}
.report-section {
  margin-top:25px
}
.report-section h2 {
  font-size:17px;
  margin:0 0 14px
}
.report-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:15px
}
.report-item {
  background:var(--white);
  border:1px solid var(--line);
  border-radius:9px;
  padding:17px;
  font-size:11px;
  line-height:1.95
}
.report-person {
  display:flex;
  gap:9px;
  align-items:center;
  margin-bottom:8px
}
.avatar {
  height:34px;
  width:34px;
  border-radius:50%;
  background:var(--avatar,#d5dfcd);
  display:inline-grid;
  place-items:center;
  color:#274d40;
  font-size:13px;
  font-weight:700;
  flex:none;
  border:2px solid #fffef9;
  box-shadow:0 0 0 1px #d7e0d1
}
.report-person b {
  font-size:11px;
  display:block;
  line-height:1.4
}
.report-person small {
  font-size:9px;
  color:var(--muted);
  line-height:1.4
}
.report-item p {
  margin:0
}
.report-empty {
  font-size:12px;
  color:var(--muted);
  border:1px dashed #cbd7c5;
  border-radius:8px;
  padding:20px
}
.observation-callout {
  display:flex;
  align-items:center;
  gap:20px;
  background:var(--teal);
  border-radius:10px;
  padding:22px 25px;
  color:white;
  margin-bottom:23px
}
.observation-callout .stamp {
  font:30px Georgia,serif;
  color:var(--gold);
  flex:none
}
.observation-callout h2 {
  font-size:15px;
  margin:0 0 3px
}
.observation-callout p {
  font-size:11px;
  margin:0;
  color:#d8e2d6
}
.observation-callout .primary {
  margin-left:auto;
  white-space:nowrap;
  background:var(--gold);
  color:var(--deep);
  min-width:145px
}
.save-strip {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  padding-top:22px;
  font-size:10px;
  color:var(--muted)
}
.save-strip button {
  font-size:11px
}
.observation-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) 286px;
  gap:20px;
  align-items:start
}
.arena-wrap {
  height:460px;
  background:#bdc6a9;
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden;
  position:relative
}
.arena-wrap canvas {
  display:block;
  height:100%;
  width:100%;
  outline:none;
  touch-action:pan-y
}
.arena-tag {
  position:absolute;
  left:17px;
  top:16px;
  color:white;
  background:#173f3bd9;
  border-radius:5px;
  padding:5px 12px;
  font-size:10px;
  letter-spacing:.1em;
  pointer-events:none
}
.arena-score {
  position:absolute;
  right:17px;
  top:15px;
  background:#fffef5ed;
  border-radius:8px;
  padding:7px 17px;
  text-align:center;
  min-width:90px;
  pointer-events:none
}
.arena-score strong {
  font:33px Georgia,serif;
  display:block;
  line-height:1.1
}
.arena-score small {
  font-size:9px;
  color:var(--muted)
}
.arena-caption {
  position:absolute;
  bottom:13px;
  left:15px;
  right:15px;
  border-radius:7px;
  background:#fffef5ec;
  padding:7px 12px;
  color:#44604d;
  font-size:10px;
  text-align:center;
  pointer-events:none
}
.render-fallback {
  position:absolute;
  top:75px;
  left:16px;
  right:16px;
  background:#fff4dbe8;
  border:1px solid #e7c783;
  color:#6a552f;
  font-size:10px;
  padding:8px 12px;
  border-radius:7px;
  z-index:3;
  pointer-events:none
}
.watch-controls {
  display:flex;
  gap:10px;
  align-items:center;
  padding:15px 0;
  flex-wrap:wrap
}
.watch-controls .quiet {
  font-size:11px;
  min-height:40px
}
.watch-controls label {
  font-size:11px;
  display:flex;
  gap:8px;
  align-items:center
}
.watch-controls select {
  border:1px solid var(--line);
  background:var(--white);
  border-radius:6px;
  min-height:40px;
  color:var(--ink);
  padding:5px 8px
}
.watch-controls .camera-controls {
  margin-left:auto;
  display:flex;
  gap:8px
}
.watch-progress {
  height:4px;
  background:#e0e5d8;
  border-radius:5px;
  overflow:hidden;
  margin-bottom:15px
}
.watch-progress i {
  display:block;
  background:var(--coral);
  height:100%;
  width:0
}
.watch-clock {
  font-family:Georgia,serif;
  font-size:38px;
  line-height:1.3;
  margin:4px 0 16px
}
.watch-clock small {
  font:11px sans-serif;
  margin-left:7px;
  color:var(--muted)
}
.observation-sidebar h2 {
  font-size:14px;
  margin:0 0 14px
}
.watch-stats {
  display:grid;
  gap:9px;
  border-top:1px solid var(--line);
  padding-top:12px
}
.watch-stat {
  display:flex;
  justify-content:space-between;
  font-size:10px
}
.watch-stat strong {
  font-family:Georgia,serif;
  font-size:14px
}
.live-log {
  max-height:190px;
  overflow:auto;
  padding-left:15px;
  margin:15px 0 0;
  font-size:10px;
  line-height:1.8;
  color:var(--muted)
}
.live-log li {
  margin-bottom:7px
}
.result-banner {
  padding:28px;
  border-radius:12px;
  background:var(--teal);
  color:white;
  display:flex;
  justify-content:space-between;
  gap:25px;
  align-items:center;
  margin-bottom:22px
}
.result-banner h2 {
  font-size:21px;
  margin:4px 0
}
.result-banner p {
  font-size:11px;
  color:#d5e0d5;
  margin:0
}
.result-number {
  font:60px Georgia,serif;
  color:var(--gold);
  white-space:nowrap
}
.result-number small {
  font:12px sans-serif;
  color:#d5e0d5;
  margin-left:8px
}
.comparison-table {
  width:100%;
  border-collapse:collapse;
  font-size:11px;
  margin:10px 0 22px;
  text-align:left
}
.comparison-table caption {
  text-align:left;
  font-size:13px;
  font-weight:800;
  margin-bottom:12px
}
.comparison-table th,.comparison-table td {
  padding:13px 12px;
  border-bottom:1px solid var(--line)
}
.comparison-table th {
  font-weight:500;
  color:var(--muted);
  background:#eef2e9
}
.comparison-table tr.current td {
  background:#f7edd6;
  font-weight:700
}
.result-actions {
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:22px
}
.causal-note {
  font-size:11px;
  color:var(--muted);
  line-height:1.95
}
.story-dialog {
  border:1px solid var(--line);
  border-radius:14px;
  padding:26px;
  background:var(--paper);
  color:var(--ink);
  max-width:min(690px,calc(100vw - 30px));
  max-height:90dvh;
  width:690px;
  box-shadow:0 25px 100px #102e3b40
}
.story-dialog::backdrop {
  background:#12332f88;
  backdrop-filter:blur(4px)
}
.dialog-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  margin-bottom:20px
}
.dialog-heading h2 {
  font-size:19px;
  margin:0
}
.dialog-close {
  background:var(--white);
  border:1px solid var(--line);
  border-radius:50%;
  width:36px;
  height:36px;
  font-size:23px;
  color:var(--ink);
  line-height:1
}
.setting-row {
  display:grid;
  grid-template-columns:100px minmax(80px,1fr) 38px;
  align-items:center;
  gap:15px;
  margin:17px 0;
  font-size:12px
}
.setting-row input {
  width:100%;
  accent-color:var(--teal)
}
.setting-row output {
  font:11px Georgia,serif;
  text-align:right
}
.setting-check {
  display:flex;
  gap:10px;
  align-items:center;
  margin:16px 0;
  font-size:12px
}
.setting-check input {
  width:18px;
  height:18px;
  accent-color:var(--teal)
}
.settings-dialog .small {
  font-size:10px;
  line-height:1.9
}
.history-lines {
  padding:0;
  margin:0;
  list-style:none
}
.history-lines li {
  padding:14px 0;
  border-bottom:1px solid var(--line);
  font-size:12px
}
.history-lines b {
  font-size:10px;
  display:block;
  margin-bottom:3px;
  color:var(--muted)
}
.roster-dialog {
  width:960px;
  max-width:min(960px,calc(100vw - 28px))
}
.roster-columns {
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(230px,1fr);
  gap:22px
}
.role-selects {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-bottom:15px
}
.role-selects label {
  font-size:10px;
  font-weight:700
}
.role-selects select {
  margin-top:6px
}
.order-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:6px;
  margin:15px 0
}
.order-cell {
  display:flex;
  align-items:center;
  gap:6px;
  border:1px solid #d8e0cf;
  padding:8px 6px;
  background:var(--white);
  color:var(--ink);
  border-radius:6px;
  min-height:45px;
  text-align:left;
  font-size:10px
}
.order-cell span {
  font:11px Georgia,serif;
  color:#8a9b80;
  flex:none;
  width:16px
}
.order-cell.selected {
  border:2px solid var(--teal);
  padding:7px 5px;
  background:#e6eedd;
  box-shadow:0 0 0 2px #b6c8a577
}
.order-cell:hover {
  background:#edf2e6
}
.student-detail {
  background:var(--white);
  border:1px solid var(--line);
  border-radius:10px;
  padding:19px;
  height:fit-content;
  position:sticky;
  top:0
}
.student-detail .avatar {
  width:62px;
  height:62px;
  font-size:24px;
  margin-bottom:10px
}
.student-detail h3 {
  margin:0 0 3px;
  font-size:18px
}
.student-detail .personality {
  font-size:11px;
  color:var(--muted);
  margin:10px 0 16px;
  line-height:1.9
}
.student-detail dl {
  font-size:11px;
  display:grid;
  grid-template-columns:1fr auto;
  gap:7px;
  margin:12px 0
}
.student-detail dt {
  color:var(--muted)
}
.student-detail dd {
  margin:0;
  font-weight:700
}
.student-detail .move-tools {
  border-top:1px solid var(--line);
  padding-top:14px;
  margin-top:15px
}
.move-tools label {
  display:block;
  font-size:10px;
  margin-bottom:7px
}
.move-buttons {
  display:flex;
  gap:7px;
  margin-bottom:10px
}
.move-buttons button {
  flex:1;
  font-size:10px;
  min-height:36px;
  padding:6px
}
.roster-save {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  border-top:1px solid var(--line);
  padding-top:18px;
  margin-top:18px
}
.roster-save small {
  font-size:10px;
  color:var(--muted)
}
.compact-dialog {
  max-width:420px
}
.compact-dialog p {
  font-size:13px
}
.compact-dialog .result-actions {
  justify-content:flex-end
}
.complete-note {
  border-left:3px solid var(--gold);
  padding:5px 0 5px 17px;
  font-family:"Yu Mincho",serif;
  font-size:16px;
  margin:22px 0;
  line-height:1.95
}
.reduced-motion *, .reduced-motion *:before,.reduced-motion *:after {
  animation:none!important;
  transition:none!important;
  scroll-behavior:auto!important
}
.roster-error {
  background:#fae8df;
  border:1px solid #dfb5a4;
  border-radius:7px;
  padding:10px 12px;
  color:#8a4536;
  font-size:11px;
}
.tempo-setting {
  background:#edf2e8;
  border:1px solid #d5dfca;
  border-radius:8px;
  padding:13px 14px;
  margin-bottom:18px;
}
.tempo-setting>label {
  display:block;
  font-size:11px;
  font-weight:700;
  margin-bottom:7px;
}
.tempo-setting .plan-help {
  font-size:9px;
  margin-top:9px;
}
.observation-facts {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin:18px 0 25px;
  padding:15px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line)
}
.observation-facts dt {
  font-size:9px;
  color:var(--muted)
}
.observation-facts dd {
  font:20px Georgia,serif;
  margin:5px 0 0
}
.observation-facts small {
  font:9px sans-serif;
  color:var(--muted)
}
@media(min-width:1440px) {
  .title-hero,.dialogue-stage {
    min-height:680px
  }
  .hero-copy {
    padding:70px
  }
  .arena-wrap {
    height:510px
  }
}
@media(max-width:1050px) {
  .site-header {
    padding:0 28px
  }
  #story-main {
    padding:0 28px 20px
  }
  .site-footer {
    padding-left:28px;
    padding-right:28px
  }
  .hero-copy {
    padding:50px 35px
  }
  .hero-note {
    right:22px;
    bottom:22px;
    max-width:180px
  }
  .workspace {
    grid-template-columns:minmax(0,1.3fr) minmax(265px,1fr);
    gap:18px
  }
  .card {
    padding:20px
  }
  .plan-submit {
    flex-direction:column;
    align-items:stretch
  }
  .plan-submit small {
    text-align:center
  }
  .observation-layout {
    grid-template-columns:minmax(0,1fr) 230px
  }
  .observation-sidebar {
    padding:19px
  }
  .choice-label {
    padding:9px 7px
  }
  .choice-label strong {
    font-size:11px
  }
  .choice-label small {
    font-size:8px
  }
}
@media(max-width:760px) {
  .site-header {
    height:75px;
    padding:0 20px
  }
  .brand {
    font-size:15px;
    gap:8px
  }
  .brand-mark {
    width:36px;
    height:36px;
    font-size:23px
  }
  .brand-mark:after {
    width:17px;
    left:10px;
    bottom:6px
  }
  .brand small {
    font-size:8px;
    letter-spacing:.03em
  }
  .site-header nav {
    gap:7px
  }
  .icon-button {
    padding:6px 9px;
    font-size:10px
  }
  .back-sports {
    font-size:10px;
    margin-right:1px
  }
  .site-footer {
    padding:15px 20px 22px;
    font-size:8px;
    letter-spacing:.03em
  }
  #story-main {
    padding:0 20px 15px;
    min-height:calc(100dvh - 140px)
  }
  .title-hero {
    min-height:690px;
    background-position:62% center;
    align-items:flex-end
  }
  .title-hero:before {
    background:linear-gradient(0deg,#f7f3e8 4%,#f7f3e8f2 38%,#f7f3e880 58%,transparent 80%)
  }
  .hero-copy {
    padding:240px 25px 30px;
    max-width:560px
  }
  .hero-copy h1 {
    font-size:52px
  }
  .hero-copy .eyebrow {
    font-size:8px;
    letter-spacing:.12em;
    margin-bottom:14px
  }
  .hero-subtitle {
    font-size:17px;
    margin:15px 0 20px
  }
  .hero-description {
    font-size:11px;
    line-height:1.95
  }
  .hero-note {
    top:20px;
    bottom:auto;
    right:18px;
    max-width:150px;
    padding:10px 13px;
    font-size:9px
  }
  .hero-note b {
    font-size:13px
  }
  .hero-actions {
    margin-top:22px;
    gap:8px
  }
  .hero-actions .primary,.hero-actions .secondary {
    font-size:11px;
    min-height:45px;
    padding:11px 16px;
    gap:12px
  }
  .hero-caption {
    font-size:8px
  }
  .title-context {
    padding:15px 2px 0;
    font-size:9px;
    gap:15px
  }
  .title-context p {
    max-width:55%
  }
  .dialogue-stage {
    min-height:670px;
    background-position:60% center
  }
  .scene-caption {
    padding:18px 20px;
    font-size:9px;
    letter-spacing:.05em
  }
  .dialogue-people {
    left:0;
    right:0;
    bottom:230px;
    height:310px;
    justify-content:center;
    gap:50px
  }
  .portrait {
    max-width:42%;
    height:100%
  }
  .portrait.active {
    z-index:2
  }
  .dialogue-panel {
    margin:0 15px 20px;
    padding:24px 19px 15px;
    min-height:245px
  }
  .speaker {
    left:17px;
    padding:6px 20px;
    font-size:12px
  }
  .dialogue-text {
    font-size:17px;
    line-height:1.95;
    min-height:125px;
    margin:6px 0 15px
  }
  .dialogue-toolbar {
    align-items:flex-end
  }
  .dialogue-toolbar small {
    font-size:8px;
    max-width:95px
  }
  .dialogue-nav {
    gap:4px
  }
  .dialogue-nav .primary {
    padding:9px 16px;
    font-size:11px
  }
  .text-button {
    font-size:10px;
    padding:8px 5px
  }
  .screen-heading {
    margin:13px 0 17px;
    align-items:center;
    gap:8px
  }
  .screen-heading h1 {
    font-size:21px;
    letter-spacing:0;
    margin-top:3px
  }
  .screen-heading .eyebrow {
    font-size:8px;
    letter-spacing:.12em
  }
  .screen-heading p {
    font-size:10px
  }
  .screen-heading>.badge {
    font-size:8px;
    padding:4px 8px;
    white-space:nowrap
  }
  .weekline {
    margin-bottom:18px;
    border-radius:8px
  }
  .week-cell {
    padding:8px 2px;
    font-size:7px
  }
  .week-cell strong {
    font-size:14px
  }
  .week-cell.observation:after {
    right:4px;
    top:5px;
    width:3px;
    height:3px
  }
  .workspace {
    grid-template-columns:1fr;
    gap:17px
  }
  .card {
    padding:20px;
    border-radius:10px
  }
  .card-heading {
    margin-bottom:17px
  }
  .card-heading h2 {
    font-size:16px
  }
  .choice-label {
    min-height:77px;
    padding:12px 9px
  }
  .choice-label strong {
    font-size:11px
  }
  .choice-label small {
    font-size:8px;
    line-height:1.7
  }
  .plan-bottom-fields {
    gap:12px
  }
  .plan-select {
    font-size:11px;
    padding-left:9px
  }
  .plan-help {
    font-size:9px
  }
  .plan-preview {
    font-size:10px
  }
  .plan-submit {
    flex-direction:row
  }
  .plan-submit small {
    font-size:8px;
    text-align:left
  }
  .plan-submit .primary {
    min-width:170px;
    gap:12px;
    font-size:12px;
    padding:12px 15px
  }
  .right-column {
    gap:17px
  }
  .homeroom-art {
    height:160px;
    background-position:50% 55%;
    margin-bottom:16px
  }
  .metric-grid {
    gap:15px
  }
  .metric-name {
    font-size:9px
  }
  .metric-value {
    font-size:25px
  }
  .class-actions .secondary {
    font-size:11px
  }
  .note-card {
    padding:17px 20px
  }
  .note-card p {
    font-size:10px
  }
  .report-section {
    margin-top:24px
  }
  .report-section h2 {
    font-size:16px
  }
  .report-grid {
    grid-template-columns:1fr;
    gap:10px
  }
  .report-item {
    padding:16px 18px
  }
  .report-item p {
    font-size:11px
  }
  .report-person {
    margin-bottom:9px
  }
  .observation-callout {
    padding:17px 18px;
    gap:12px;
    flex-wrap:wrap;
    margin-bottom:18px
  }
  .observation-callout .stamp {
    font-size:23px
  }
  .observation-callout h2 {
    font-size:13px
  }
  .observation-callout p {
    font-size:10px
  }
  .observation-callout .primary {
    margin-left:0;
    width:100%;
    min-height:42px;
    font-size:12px
  }
  .save-strip {
    padding-top:18px;
    font-size:8px
  }
  .save-strip button {
    font-size:10px
  }
  .observation-layout {
    grid-template-columns:1fr;
    gap:15px
  }
  .arena-wrap {
    height:390px;
    border-radius:9px
  }
  .arena-tag {
    left:12px;
    top:12px;
    font-size:8px;
    padding:5px 8px
  }
  .arena-score {
    right:12px;
    top:12px;
    padding:7px 12px;
    min-width:70px
  }
  .arena-score strong {
    font-size:27px
  }
  .arena-score small {
    font-size:8px
  }
  .watch-controls {
    gap:7px;
    padding:12px 0
  }
  .watch-controls .quiet {
    padding:7px 10px;
    font-size:10px;
    min-height:37px
  }
  .watch-controls label {
    font-size:10px;
    gap:5px
  }
  .watch-controls select {
    font-size:10px;
    min-height:37px;
    padding:5px 6px
  }
  .watch-controls .camera-controls {
    gap:5px
  }
  .watch-controls .camera-controls .quiet {
    padding:7px 9px
  }
  .observation-sidebar {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px 20px
  }
  .observation-sidebar h2 {
    grid-column:1/-1;
    margin-bottom:0
  }
  .watch-clock {
    margin:0;
    font-size:33px
  }
  .watch-stats {
    border:0;
    padding:0;
    gap:5px
  }
  .live-log {
    grid-column:1/-1;
    max-height:130px;
    margin-top:0
  }
  .observation-sidebar>.small {
    grid-column:1/-1;
    margin:0
  }
  .result-banner {
    padding:22px;
    gap:15px
  }
  .result-banner h2 {
    font-size:16px
  }
  .result-banner p {
    font-size:9px
  }
  .result-number {
    font-size:45px
  }
  .result-number small {
    font-size:10px
  }
  .comparison-table {
    font-size:9px;
    display:table
  }
  .comparison-table th,.comparison-table td {
    padding:11px 6px;
    white-space:nowrap
  }
  .result-actions {
    justify-content:stretch
  }
  .result-actions button,.result-actions a {
    flex:1;
    font-size:11px;
    padding:10px 12px;
    gap:10px
  }
  .story-dialog {
    padding:22px 20px;
    max-height:92dvh;
    max-width:calc(100vw - 24px)
  }
  .dialog-heading h2 {
    font-size:18px
  }
  .setting-row {
    grid-template-columns:75px minmax(70px,1fr) 35px;
    gap:10px;
    font-size:11px
  }
  .roster-columns {
    grid-template-columns:1fr;
    gap:16px
  }
  .roster-dialog {
    padding:20px 16px
  }
  .student-detail {
    position:static;
    order:-1;
    padding:15px;
    display:grid;
    grid-template-columns:50px 1fr;
    gap:0 12px
  }
  .student-detail .avatar {
    width:45px;
    height:45px;
    font-size:19px;
    grid-row:1/4;
    margin:0
  }
  .student-detail h3 {
    font-size:16px
  }
  .student-detail .personality {
    margin:5px 0;
    font-size:9px;
    grid-column:1/-1
  }
  .student-detail dl {
    grid-column:1/-1;
    grid-template-columns:1fr auto 1fr auto;
    column-gap:10px;
    font-size:9px;
    margin:8px 0
  }
  .student-detail .badge {
    font-size:8px
  }
  .student-detail .move-tools {
    grid-column:1/-1;
    margin-top:8px;
    padding-top:10px;
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap
  }
  .move-tools label {
    font-size:9px;
    margin:0
  }
  .move-buttons {
    margin:0
  }
  .move-buttons button {
    min-height:32px;
    padding:6px 9px
  }
  .move-tools select {
    width:135px;
    min-height:34px;
    font-size:10px
  }
  .order-grid {
    grid-template-columns:repeat(4,1fr);
    gap:5px
  }
  .order-cell {
    font-size:9px;
    padding:7px 4px;
    gap:3px;
    min-height:42px
  }
  .order-cell span {
    font-size:10px;
    width:12px
  }
  .order-cell.selected {
    padding:6px 3px
  }
  .roster-save .primary {
    font-size:11px;
    min-height:42px;
    padding:10px 16px
  }
  .roster-save small {
    font-size:8px
  }
  .roster-save {
    gap:10px
  }
  .role-selects label {
    font-size:9px
  }
  .causal-note {
    font-size:10px
  }
  .complete-note {
    font-size:14px
  }
  .notice {
    margin:0 20px 12px;
    padding:10px 13px;
    font-size:11px
  }
  .screen-heading .small {
    font-size:9px
  }
}
@media(max-width:374px) {
  .site-header {
    padding:0 12px
  }
  .brand {
    font-size:13px
  }
  .brand small {
    font-size:7px
  }
  .site-header nav {
    gap:4px
  }
  .icon-button {
    padding:6px 7px
  }
  #story-main {
    padding-left:12px;
    padding-right:12px
  }
  .hero-copy {
    padding-left:22px;
    padding-right:22px
  }
  .hero-copy h1 {
    font-size:46px
  }
  .choice-label {
    padding:10px 7px
  }
  .plan-submit {
    flex-direction:column
  }
  .plan-submit .primary {
    width:100%
  }
  .plan-submit small {
    text-align:center
  }
  .watch-controls .camera-controls {
    margin-left:0
  }
  .order-grid {
    grid-template-columns:repeat(3,1fr)
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important
  }
}

/* The same visible rate choices apply to every observed sport. */
#story-speed-toolbar{position:sticky;top:0;z-index:15;display:flex;justify-content:center;gap:4px;padding:4px 12px;background:#f8f5edee;border-block:1px solid #e3d9c5}
#story-speed-toolbar button{min-width:48px;min-height:44px;padding:5px 13px;border:1px solid #d8cdb7;border-radius:9px;color:#234c44;background:#fffaf1;font-family:inherit;font-size:13px;font-weight:700}
#story-speed-toolbar button[aria-pressed=true]{background:#245d50;color:white;border-color:#245d50}
