.piece-play { max-width:850px; }
.ocr-cup-header, .ocr-cup-header nav { flex-wrap:wrap; }
.ocr-cup-header nav a { display:inline-flex; align-items:center; min-height:44px; }
.ocr-cup-header nav a[aria-current] { color:var(--gold); }
.ocr-my-cup .hero-art { margin-inline:0; }
.piece-tracker { position:static; }
.piece-tracker-stage { margin-left:auto; color:#aebfd0; font-size:.875rem; }
.piece-play .question-card h1,.piece-markup .question-card h1 { font-size:clamp(1.65rem,4vw,2.5rem); line-height:1.18; margin:.35em 0 .8em; }
.piece-markup { margin:0 auto; max-width:850px; }
.piece-diagram { display:block; width:min(100%,390px); margin:12px auto; border:1px solid currentColor; border-radius:8px; }
.piece-marking { margin-top:12px; padding:12px; border:1px solid #5289a2; border-radius:10px; }
.piece-marking fieldset { border:0; margin:0; padding:0; }
.piece-point { padding:5px 0; display:flex; align-items:baseline; gap:7px; }
.piece-kind { color:#f3cf7a; font-weight:normal; }
.piece-credit { color:#7ce4aa; }
.piece-correction { color:#ffbcad; font-size:.875rem; }
.piece-input { display:flex; align-items:center; flex-wrap:wrap; gap:7px; margin-top:5px; }
.piece-input small { display:block; width:100%; color:#bed1e1; }
.piece-input input,.piece-play textarea,.piece-markup textarea { width:min(100%,420px); padding:9px 10px; font:inherit; background:#091b2c; color:inherit; border:1px solid #537389; border-radius:7px; }
.piece-play textarea,.piece-markup textarea { display:block; width:100%; margin-top:8px; resize:vertical; }
.piece-mark-total { margin:12px 0; }
.piece-actions { display:flex; align-items:flex-start; flex-wrap:wrap; gap:10px; margin-top:14px; }
.piece-markup table,.piece-play table { width:100%; border-collapse:collapse; font-size:.95rem; }
.piece-markup td,.piece-markup th,.piece-play td,.piece-play th { padding:5px; border:1px solid #537389; overflow-wrap:anywhere; }
.piece-markup .calculation-grid,.piece-play .calculation-grid { margin:12px 0; table-layout:fixed; }
.piece-markup .calculation-grid caption,.piece-play .calculation-grid caption { padding:0 0 7px; text-align:left; font-weight:700; }
.piece-markup .calculation-grid th,.piece-play .calculation-grid th { text-align:left; }
.piece-board-links { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:24px; }
.piece-board-links [aria-current="page"] { border-color:#f3cf7a; color:#f3cf7a; }
@media (max-width:550px) {
  .piece-tracker-stage { display:none; }
  .piece-play .answer,.piece-markup .answer { padding:12px; }
}

/* Keep all titre readings visible in narrow pupil and review frames. */
.piece-markup .titre-results,.piece-play .titre-results { table-layout:fixed; width:100%; max-width:100%; min-width:0; }
.piece-markup .titre-results td,.piece-markup .titre-results th,.piece-play .titre-results td,.piece-play .titre-results th { width:50%; white-space:normal; }

.calculation-grid-scroll{max-width:100%;overflow-x:auto}.calculation-grid-scroll:focus-visible{outline:2px solid #36c9ef;outline-offset:3px}.calculation-grid-scroll .calculation-grid{min-width:480px}.calculation-grid-scroll .calculation-grid th,.calculation-grid-scroll .calculation-grid td{overflow-wrap:normal;word-break:normal;vertical-align:top}

.choice .piece-credit,.choice .piece-correction { margin-inline-start:.4em; }
.piece-input input { flex:0 1 auto; max-width:calc(100% - 3rem); }
#piece-continue { margin-block-start:1rem; }

.particle-keypad summary { display:inline-block; padding:.5rem 0; cursor:pointer; color:#9ee6fa; text-decoration:underline; }
.particle-keypad [role="group"] { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.35rem; max-width:15rem; }
.particle-keypad button { min-height:44px; font:inherit; font-size:1rem; }
.particle-keypad button:last-child { grid-column:span 2; }
