/* Original palette and registered handwriting; no animated glyph transforms. */
.local-round .landing-page{width:min(1040px,calc(100% - 48px));padding-bottom:24px}
.local-round .game-shell{flex:0 1 auto;gap:12px;min-height:0}
.local-round .game-header{padding-bottom:19px}.local-round .header-actions{flex-wrap:wrap;justify-content:flex-end}
.local-round .round-restart{min-height:44px;padding:8px 17px;background:transparent;color:var(--paper);border-color:var(--lavender);box-shadow:2px 3px 0 var(--ink);transform:none}
.local-round .round-restart:disabled{opacity:.6}
.local-round .round-tallies{justify-content:center;gap:clamp(3.75rem,8vw,4rem)}
.local-round .step-counter{min-width:100px;gap:8px;padding:5px 10px}
.local-round .step-unit{font-size:13px;white-space:nowrap}
.local-round .step-value{min-width:1ch;color:var(--ink);font:900 2.5rem/1 var(--display);font-variant-numeric:tabular-nums;text-align:center}
.local-round .timer-value{font-size:2.8rem}
.local-round :is(.step-value,.timer-value)>.handwritten-visual{font-size:inherit}
.local-round .timer{position:relative}
.local-round .clock-bonus{position:absolute;right:calc(100% + 4px);top:50%;transform:translateY(-50%);padding:3px 6px;border:2px solid var(--ink);border-radius:5px;background:var(--lime);box-shadow:2px 2px 0 var(--ink);color:var(--ink);font:800 13px/1.2 var(--body);white-space:nowrap;pointer-events:none}
.local-round .brief{min-height:73px}.local-round .start-tag{font-size:14px}.local-round .start-tag strong{font-size:1.7rem}.local-round .target-label{font-size:14px}.local-round .target-word{font-size:2.7rem}
.local-round .game-stage#stage{flex:0 0 auto;grid-template-columns:minmax(0,1fr);height:auto;min-height:230px;padding:11px 0 19px}
.local-round .round-word-card{width:min(760px,94%);min-height:215px;padding:17px 24px 15px}.local-round .word-kicker{font-size:14px}
.local-round .current-word,.local-round.daily-lettering .current-word.handwritten-label{font-size:clamp(6rem,13.5vw,11rem);line-height:1.15}
.local-round .thought-panel{width:min(700px,100%);margin:0 auto;text-align:center}.local-round .thought-label{margin:0 0 7px;color:var(--paper-dim);font-size:14px;font-weight:800;letter-spacing:.8px}
.local-round .round-intro{width:min(650px,100%);margin:10px auto 12px;text-align:center}.local-round .round-intro h1{width:100%;margin:13px 0;color:var(--paper);font-size:clamp(3rem,7vw,5rem);font-weight:400;line-height:1.15}.local-round .round-intro ol{max-width:34em;margin:0 auto 22px;padding-left:25px;text-align:left;font-size:16px;line-height:1.6}.local-round .round-intro li+li{margin-top:7px}.local-round .round-intro strong{color:var(--yellow)}
.local-round .intro-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:14px}
.local-round .fresh-start{min-height:44px}
.local-round .fresh-start:disabled{opacity:.6}
.local-round .challenge-picker{display:flex;flex-direction:column;gap:7px;width:min(430px,100%);margin:0 auto 19px;text-align:left}
.local-round .challenge-picker label{color:var(--paper-dim);font-size:14px;font-weight:800;letter-spacing:.6px}
.local-round .challenge-picker select{appearance:none;color-scheme:light;width:100%;min-height:48px;padding:10px 42px 10px 14px;border:2px solid var(--ink);border-radius:9px 12px 10px 8px;background-color:var(--paper);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='m2 2 5 5 5-5' fill='none' stroke='%23241b37' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");background-position:right 14px center;background-size:14px 9px;background-repeat:no-repeat;box-shadow:3px 4px 0 var(--ink);color:var(--ink);font-family:var(--body);font-size:16px;line-height:1.5}
.local-round .challenge-picker select:focus-visible{outline:3px solid var(--paper);outline-offset:5px}.local-round .challenge-picker select:disabled{opacity:.65}
.local-round .replay-note,.local-round .daily-trials{margin:1px 0 0;color:var(--paper-dim);font-size:14px;line-height:1.4}
.local-round .race-stats{display:flex;justify-content:center;flex-wrap:wrap;gap:14px 28px;margin:17px 0;color:var(--ink);text-align:center}
.local-round .race-stats>div{display:flex;flex-direction:column-reverse;min-width:65px;gap:1px}.local-round .race-stats dt{font-size:14px;font-weight:700}.local-round .race-stats dd{margin:0;font-size:23px;font-weight:800;line-height:1.2}
.local-round .finish-actions{width:min(700px,100%);margin:0 auto;text-align:center}
.local-round .finish-actions .daily-trials{margin:13px 0 0}
.local-round #share-feedback{margin:8px 0 0}
.local-round #share-feedback:empty{margin:0}
.local-round #share-manual{box-sizing:border-box;width:100%;margin-top:8px;padding:10px;background:var(--paper);color:var(--ink);border:2px solid var(--ink);border-radius:8px;font:inherit}

.local-round .share-dialog {
  width: min(430px, calc(100% - 32px));
  max-height: 90svh;
  padding: clamp(16px, 4vw, 27px);
  color-scheme: light;
}
.share-header, .ticket-stats, .share-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.local-round .share-dialog .share-header h2 { margin: 0; font-size: 2rem; }
.share-dialog .dialog-close { position: static; width: 44px; height: 44px; margin: -4px -8px -4px 0; }
.share-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 13px;
  margin: 14px 0 15px;
  padding: 17px 16px 14px;
  background: var(--cobalt);
  border: 2px solid var(--ink);
  border-radius: 9px 14px 8px 10px;
  box-shadow: 3px 4px 0 var(--ink);
  text-decoration: none;
  color: var(--ink);
}
.board-pair { display: flex; justify-content: center; align-items: center; gap: 10px; }
.board-pair > span { display: grid; min-width: 0; max-width: 50%; gap: 1px; padding: 5px 11px; font: 800 10px/1.2 var(--body); letter-spacing: .07em; text-align: center; }
.board-pair strong { min-width: 0; font: 700 1.6rem/1 var(--display); }
.board-given { border: 1px dashed var(--lavender); border-radius: 6px; color: var(--paper); }
.board-target { border: 2px solid var(--ink); border-radius: 5px; background: var(--yellow); box-shadow: 2px 2px 0 var(--ink); transform: rotate(1deg); }
.score-ticket {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  text-align: center;
  padding: 13px 10px;
  border: 2px solid var(--ink);
  border-radius: 5px 10px 6px 9px;
  background: var(--lime);
  box-shadow: 3px 4px 0 var(--ink);
  transform: rotate(-1.5deg);
}
.score-ticket.is-miss { background: var(--coral); }
.ticket-verdict { font: 800 .66rem/1.3 var(--body); letter-spacing: .08em; }
.ticket-word { min-width: 0; font: 700 clamp(3.8rem, 12vw, 5rem)/1 var(--display); }
.ticket-quip { min-width: 0; font: 700 1.65rem/1 var(--display); color: var(--deep-cobalt); }
.ticket-stats { justify-content: center; gap: clamp(10px, 3vw, 19px); margin-top: 12px; font: 700 .75rem/1.3 var(--body); }
.ticket-stats strong { display: block; font-size: 1.1rem; }
.ticket-play { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; background: var(--yellow); border: 2px solid var(--ink); border-radius: 4px 8px 6px 5px; box-shadow: 2px 3px 0 var(--ink); font: 700 1.8rem/1 var(--display); }
.share-board:hover .ticket-play { background: var(--paper); }
.local-round .share-dialog .ticket-link-note { margin: 14px 0; font-size: .88rem; }
.share-header h2 { flex: 1; }
.share-copy-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 7px; background: transparent; color: var(--ink); }
.share-copy-icon:hover, .share-editor-head button:hover, .caption-tools button:hover { background: var(--lavender); }
.share-actions { display: grid; grid-template-columns: 1fr 1.25fr .82fr; gap: 8px; }
.share-actions :is(button,a), .media-buttons :is(button,a), #media-retry {
  display: inline-flex; justify-content: center; align-items: center; gap: 6px; min-width: 0; min-height: 44px; padding: 5px;
  background: var(--yellow); color: var(--ink); text-decoration: none; border: 2px solid var(--ink); border-radius: 6px 8px 6px 7px;
  box-shadow: 2px 3px 0 var(--ink); font: 750 clamp(.78rem, 3.1vw, .96rem)/1.1 var(--body); cursor: pointer;
}
.share-actions svg { width: 18px; height: 18px; flex-shrink: 0; }
.share-actions :is(button,a):hover, .media-buttons :is(button,a):hover { background: var(--lime); }
.share-actions :is(button,a):active, .media-buttons :is(button,a):active { box-shadow: none; transform: translate(2px,2px); }
.share-editor-head, .media-buttons, .caption-tools, .media-formats { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.share-editor-head { margin-top: 7px; justify-content: space-between; border-top: 1px dashed var(--ink); }
.share-editor-head h3 { margin: 0; font: 800 1.06rem/1.1 var(--body); }
.share-editor-head button, .caption-tools button { border: 0; border-radius: 4px; background: transparent; color: var(--ink); min-height: 44px; padding: 4px; font: 700 .88rem/1.15 var(--body); cursor: pointer; }
.media-formats button { flex: 1; min-height: 44px; background: var(--paper); color: var(--ink); border: 1px solid var(--ink); border-radius: 6px; padding: 5px 6px; font: 700 .85rem/1.2 var(--body); }
.media-formats button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.media-preview { margin: 9px 0; border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: var(--ink); }
.media-preview img, .media-preview video { display: block; width: 100%; height: clamp(145px,32svh,290px); object-fit: contain; }
.local-round .share-dialog #media-status { margin: 10px 0; font-size: .9rem; line-height: 1.35; }
.media-slides { display: flex; gap: 7px; margin: 10px 0; }
.media-slides a { flex: 1; min-width: 0; padding: 3px; text-align: center; border: 1px solid var(--ink); border-radius: 5px; color: var(--ink); font: 700 .85rem/1.45 var(--body); }
.media-slides img { display: block; width: 100%; max-height: 22svh; object-fit: contain; }
.media-buttons { margin: 10px 0 14px; }
.media-buttons a, .media-buttons button { flex: 1; }
.media-buttons #media-open, .media-buttons #media-send, #media-retry { background: var(--paper); }
#share-editor label { font-weight: 750; }
#media-caption { box-sizing: border-box; width: 100%; margin: 4px 0 0; padding: 8px; background: #fffaf1; color: var(--ink); border: 1px solid var(--ink); border-radius: 6px; font: 500 .9rem/1.3 var(--body); }
.caption-tools { justify-content: space-between; }
.share-dialog [hidden] { display: none !important; }
.share-dialog :is(button, textarea, a):focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.local-round .offer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;width:100%}
.local-round .word-choice{display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;width:100%;min-width:0;min-height:100px;padding:8px 15px;border:3px solid var(--ink);border-radius:11px 15px 10px 13px;background:var(--yellow);color:var(--ink);box-shadow:4px 5px 0 var(--ink);touch-action:manipulation}
.local-round .word-choice:hover:not(:disabled){border-color:var(--paper)}.local-round .word-choice:active:not(:disabled),.local-round .word-choice.is-selected{box-shadow:1px 2px 0 var(--ink)}.local-round .word-choice:disabled{cursor:default}
.local-round .choice-progress{position:absolute;inset:0;background:#dcc15f;background:color-mix(in srgb,var(--yellow) 84%,var(--ink));transform:scaleX(var(--auto-progress,0));transform-origin:left;pointer-events:none}
.local-round .choice-word{display:block;position:relative;z-index:1;width:100%;min-width:0;color:var(--ink);font-family:var(--display);font-size:clamp(2.7rem,5.4vw,4.3rem);font-weight:900;line-height:1.15;pointer-events:none}
.local-round .auto-note{min-height:1.4em;margin:9px 0 8px;color:var(--paper-dim);font-size:14px;line-height:1.4}
.local-round .skip-controls{display:flex;flex-direction:column;align-items:center;gap:5px}.local-round .thought-button{min-height:41px;padding:5px 18px;border-width:2px;background:var(--paper);color:var(--ink);box-shadow:2px 3px 0 var(--ink);transform:none}
.local-round .thought-button.handwritten-label{font-size:1.8rem;line-height:1.1}.local-round .thought-button:disabled{opacity:.55}.local-round .skip-count{color:var(--paper-dim);font-size:14px;line-height:1.4}
.local-round .round-controls{display:flex;flex-direction:column;align-items:center;gap:10px}.local-round .round-instruction{margin:0;max-width:40em;color:var(--paper);font-size:16px;line-height:1.45;text-align:center}
.local-round .round-status{min-height:1.5em;margin:0;color:var(--yellow);font-size:16px;line-height:1.5;text-align:center;overflow-wrap:anywhere}.local-round .round-status.is-error{color:var(--coral)}
.local-round .round-verdict{width:100%;margin-top:8px;max-width:35em}.local-round .round-verdict>strong{display:block;color:var(--cobalt);font-size:3.3rem;line-height:1.1}.local-round .round-verdict p{margin:8px 0 0;color:var(--ink);font-size:16px;line-height:1.5}
.local-round.is-goal .round-word-card{background:var(--lime)}.local-round .wordmark .handwritten-visual,.local-round .wordmark .handwritten-glyph,.local-round .wordmark .handwritten-ink{color:inherit}
.local-round .paper-dialog h2{max-width:100%;font-size:3rem}.local-round .paper-dialog p,.local-round .paper-dialog li{font-size:16px}
@media(max-width:720px){
 .local-round .landing-page{width:calc(100% - 28px);padding-top:13px;padding-bottom:18px}.local-round .game-header{gap:12px;padding-bottom:15px}.local-round .game-shell{padding:15px 13px 19px;gap:11px}
 .local-round .round-restart.handwritten-label{font-size:1.4rem}.local-round .help-button{padding-inline:10px}.local-round .step-counter{min-width:87px;padding-inline:8px}.local-round .step-value{font-size:2.1rem}.local-round .timer-value{min-width:48px;font-size:2.4rem}
 .local-round .brief{min-height:65px}.local-round .target-card{min-width:130px}.local-round .target-word{font-size:2.5rem}.local-round .game-stage#stage{min-height:168px;padding:8px 0 15px}.local-round .round-word-card{min-height:152px;padding:13px 15px 12px}
 .local-round .current-word,.local-round.daily-lettering .current-word.handwritten-label{font-size:clamp(4.75rem,22vw,7rem)}.local-round .offer-grid{gap:9px}.local-round .word-choice{min-height:81px;padding-inline:9px;border-width:2px;box-shadow:3px 4px 0 var(--ink)}.local-round .choice-word{font-size:clamp(2.15rem,8.5vw,3.3rem)}.local-round .auto-note{font-size:13px}.local-round .round-verdict>strong{font-size:2.5rem}
}
@media(max-height:760px) and (min-width:721px){
 .local-round .landing-page{padding-top:12px}.local-round .game-header{padding-bottom:12px}.local-round .game-shell{padding-block:14px 16px;gap:8px}.local-round .brief{min-height:61px}.local-round .game-stage#stage{min-height:195px;padding-block:5px 12px}.local-round .round-word-card{min-height:180px;padding-block:9px}
 .local-round .current-word,.local-round.daily-lettering .current-word.handwritten-label{font-size:8rem}.local-round .word-choice{min-height:82px}.local-round .choice-word{font-size:3.5rem}
}
@media(prefers-reduced-motion:reduce){.local-round .choice-progress{transition:none}}

/* A stationary hit target with a separate cue-card face. Only the face moves. */
.local-round .word-choice{padding:0;border:0;background:transparent;box-shadow:none;overflow:visible;isolation:isolate}
.local-round .word-choice::before{content:"";position:absolute;inset:4px 1px -4px;border:2px solid var(--ink);border-radius:5px 7px 5px 4px;background:var(--yellow);box-shadow:3px 4px 0 var(--ink);pointer-events:none;z-index:-1}
.local-round #choice-1::before{translate:1px 1px}
.local-round .cue-face{display:flex;align-items:center;justify-content:center;position:absolute;inset:0;padding:8px 15px;overflow:hidden;border:2px solid var(--ink);border-radius:5px 7px 4px 6px;background:var(--yellow);box-shadow:0 2px 0 color-mix(in srgb,var(--yellow) 78%,var(--ink));pointer-events:none;transform:translate(0,0)}
.local-round .word-choice:hover:not(:disabled) .cue-face{border-color:var(--paper)}
.local-round .finish-card .cue-face{flex-direction:column;gap:4px;font:700 14px/1.2 var(--body)}
.local-round .finish-card-title{display:block;width:100%;font:900 clamp(1.5rem,4.2vw,3rem)/1.1 var(--display)}
.local-round .finish-card:disabled{opacity:.55}
.local-round .finish-card:active:not(:disabled) .cue-face{animation:cue-pick-press 120ms ease-out both}
.local-round .word-choice:active:not(:disabled),.local-round .word-choice.is-selected{box-shadow:none}
.local-round .word-choice.is-selected .cue-face{animation:cue-pick-press 120ms ease-out both}
.local-round .word-choice.cue-manual-arrive .cue-face{animation:cue-deal-in 140ms ease-out both}
.local-round .word-choice.cue-skip-swap .cue-face{animation:cue-card-swap 180ms cubic-bezier(.2,.8,.3,1) both}
.local-round .word-choice.cue-auto-arrive .cue-face{animation:cue-auto-deal 210ms ease-out both}
.local-round .cue-feedback{position:absolute;z-index:5;top:12px;right:12px;padding:4px 8px;border:2px solid var(--ink);border-radius:3px;background:var(--yellow);color:var(--ink);font-family:var(--body);font-size:14px;font-weight:800;line-height:1.1;letter-spacing:.4px;pointer-events:none}
.local-round .cue-feedback[data-kind="auto"]{border-style:dashed;background:var(--paper)}
.local-round .cue-feedback.cue-manual-confirm{animation:cue-confirm-stamp 220ms ease-out both}
.local-round .cue-feedback.cue-auto-confirm{animation:cue-drift-label 210ms ease-out both}
.local-round .cue-announcement{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@keyframes cue-pick-press{from{transform:translateY(0)}to{transform:translateY(3px)}}
@keyframes cue-deal-in{from{opacity:.9;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@keyframes cue-card-swap{from{opacity:.72;transform:translate(6px,8px)}to{opacity:1;transform:translate(0,0)}}
@keyframes cue-auto-deal{from{opacity:.85;transform:translateX(-7px)}to{opacity:1;transform:translateX(0)}}
@keyframes cue-confirm-stamp{0%{opacity:0;transform:scale(1.18)}65%{opacity:1;transform:scale(.97)}100%{opacity:1;transform:scale(1)}}
@keyframes cue-drift-label{from{opacity:0;transform:translateX(-4px)}to{opacity:1;transform:translateX(0)}}
@media(max-width:720px){.local-round .cue-face{padding-inline:9px}}
@media(prefers-reduced-motion:reduce){
 .local-round .word-choice .cue-face,.local-round .cue-feedback{animation:none!important;transform:none!important}
 .local-round .word-choice.cue-skip-swap .cue-face,.local-round .word-choice.cue-auto-arrive .cue-face{outline:2px solid var(--paper);outline-offset:-5px}
}

/* Skip link: off-screen until a keyboard user focuses it (matches About). */
.local-round .game-skip-link{position:fixed;z-index:10;top:8px;left:12px;padding:8px 12px;background:var(--paper);color:var(--ink);font-size:16px;translate:0 -180%}
.local-round .game-skip-link:focus{translate:0 0}

/* Streak dialog: the game's mustard cards and dashed rules. */
.streak-dialog #streak-date{margin:-6px 0 18px;color:#796574;font-weight:700}
.streak-dialog .streak-numbers{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:0 0 20px}
.streak-dialog .streak-numbers>div{display:flex;flex-direction:column-reverse;align-items:center;gap:4px;padding:14px 8px 12px;border:3px solid var(--ink);border-radius:10px 15px 9px 13px;background:var(--yellow);box-shadow:4px 4px 0 var(--ink);text-align:center}
.streak-dialog .streak-numbers dt{font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.streak-dialog .streak-numbers dd{margin:0;font:900 30px/1.1 var(--body)}
.streak-dialog .streak-bests{margin:0}
.streak-dialog .streak-bests>div{display:flex;justify-content:space-between;align-items:baseline;gap:14px;padding:11px 0;border-top:1px dashed #bbadbc}
.streak-dialog .streak-bests>div[hidden]{display:none}
.streak-dialog .streak-bests dt{font-size:14px}
.streak-dialog .streak-bests dd{margin:0;font-weight:800;text-align:right}
.local-round .streak-dialog .streak-note{margin:4px 0 0;padding-top:12px;border-top:1px dashed #bbadbc;color:#796574;font-size:13px}
