﻿:root {
  color-scheme: light;
  --ink: #351e28;
  --muted: #68504c;
  --wine: #762943;
  --wine-deep: #552039;
  --paper: #fffaee;
  --linen: #f5ead7;
  --line: #cbb49f;
  --gold: #f1bb53;
  --serif: Georgia, 'Times New Roman', serif;
  --page: min(94.4%, 1512px);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: #f7efe0;
  font: 16px/1.5 system-ui, sans-serif;
  padding-inline: env(safe-area-inset-left) env(safe-area-inset-right);
}
button, summary { cursor: pointer; }
button {
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: inherit;
  font: 600 0.875rem/1.1 system-ui, sans-serif;
  min-height: 44px;
  padding: 0 14px;
}
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #83234a; outline-offset: 3px; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .22em; }
p, h1, h2 { margin: 0; }
.masthead, .game-heading, .game, .site-footer { margin-inline: auto; width: var(--page); }
.masthead, .game-heading, .site-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.masthead { min-height: 49px; border-bottom: 1px solid #dac7b2; }
.masthead nav, .site-footer nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 29px); }
.masthead nav a, .archive-link { min-height: 44px; display: inline-flex; align-items: center; gap: 5px; font-size: .88rem; font-weight: 650; }
.masthead a, .site-footer a { text-decoration: none; }
.masthead nav a:hover, .archive-link:hover, .site-footer a:hover { text-decoration: underline; }
.identity { display: inline-flex; align-items: center; gap: 8px; color: var(--wine-deep); font: bold .9rem var(--serif); letter-spacing: .07em; min-height: 44px; }
.brand-mark { width: 23px; height: 23px; display: block; }
.archive-link { border: 0; padding: 0 1px; }
.game-heading { min-height: 58px; padding: 1px 0 6px; align-items: center; }
.game-heading .game-title { font: bold clamp(2.2rem, 3.9vw, 3.75rem)/.99 var(--serif); letter-spacing: -.071em; }
.game-heading .game-title span { color: var(--wine); }
.game-heading p { color: var(--muted); font-weight: 650; font-size: .8rem; align-self: flex-end; padding-bottom: 3px; white-space: nowrap; }
.game {
  min-height: 69dvh;
  display: grid;
  padding: 7px;
  position: relative;
  background: #e8d5bc;
  border: 1px solid #bca08a;
  border-radius: 13px;
  box-shadow: 0 2px 0 #d9c0a3, 0 14px 34px #5d342718;
  isolation: isolate;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
.scene {
  border: 1px solid #c3a78e;
  background: var(--paper);
  border-radius: 7px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr);
  flex: 1;
  min-height: 473px;
  border-radius: 6px 6px 0 0;
}
.flower-bed {
  min-width: 0;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border-radius: 6px 0 0 0;
  border-right: 1px solid var(--line);
  touch-action: none;
  background:
    repeating-linear-gradient(121deg, #7a623708 0 1px, transparent 1px 6px),
    radial-gradient(ellipse at 49% 42%, #fff6db 0%, #f8e5c4 46%, #e8c5a6 100%);
}
.flower-bed::before {
  content: '';
  position: absolute;
  inset: clamp(12px, 1.6vw, 27px);
  border: 1px solid #ae846b75;
  border-radius: 44% / 25%;
  box-shadow: 0 0 0 4px #fbeddb99, inset 0 0 0 4px #fbeddb99, inset 0 0 34px #a663491c;
  pointer-events: none;
}
.flower-bed::after {
  content: '';
  position: absolute;
  inset: 3.5%;
  background: url('/botanical.svg') center / 100% 100% no-repeat;
  opacity: .7;
  pointer-events: none;
}
.flower {
  position: relative;
  z-index: 1;
  width: min(94%, 68dvh, 640px);
  aspect-ratio: 1;
}
.flower::before, .flower::after {
  content: '';
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  border: 1px solid #a47755a1;
  pointer-events: none;
}
.flower::after { inset: 9%; border: 1px dashed #a4775590; }
.petal {
  position: absolute;
  width: 27.5%;
  height: 29%;
  border: 0;
  padding: 0;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  outline-offset: 2px;
  border-radius: 45%;
  -webkit-tap-highlight-color: transparent;
}
.petal-face {
  position: absolute;
  inset: 0;
  transform: rotate(var(--angle));
  border-radius: 50% 50% 47% 47% / 40% 40% 57% 57%;
  border: 1px solid #b57274;
  background:
    radial-gradient(ellipse at 36% 21%, #ffebdb, transparent 64%),
    linear-gradient(155deg, #f8d3c7 12%, #edb5aa 78%);
  box-shadow: inset 0 2px 2px #fff3e6cf, inset 0 -3px 1px #b464623d, 0 4px 2px #83513d29, 0 10px 20px #8554432a;
  transition: filter .14s, scale .14s;
}
.petal-face::before {
  content: '';
  position: absolute;
  inset: 7% 8%;
  border-radius: inherit;
  border: 1px solid #a8636360;
  background: repeating-conic-gradient(from 317deg at 50% 100%, #9a5c4a34 0 .7deg, transparent .7deg 12deg);
  mask-image: radial-gradient(ellipse at 50% 41%, transparent 32%, #000 76%);
}
.petal-letter {
  z-index: 1;
  color: #52243a;
  font: bold clamp(1.65rem, 5.7dvh, 4.55rem)/1 var(--serif);
  letter-spacing: -.06em;
  margin-right: .06em;
  text-shadow: 0 1px 0 #fff7e2bb;
}
.petal-badge { display: none; position: absolute; z-index: 2; bottom: 8%; left: 50%; translate: -50%; border-radius: 20px; padding: 2px 6px; background: #673717; color: #fff7e4; font: bold clamp(.65rem, 1.6dvh, .85rem)/1.1 system-ui, sans-serif; letter-spacing: 0; }
.petal.is-bonus .petal-face {
  border-color: #9c611c;
  background: radial-gradient(ellipse at 31% 19%, #ffe6a3, transparent 67%), linear-gradient(150deg, #ffd978, #e5a545 85%);
  box-shadow: inset 0 2px 2px #fff3c9, inset 0 -3px 1px #a164284f, 0 4px 2px #83513d2e, 0 10px 17px #85544337;
}
.petal.is-bonus .petal-letter { color: #542f16; translate: 0 -8%; }
.petal.is-bonus .petal-badge { display: inline-block; }
.petal.is-center { width: 22%; height: 22%; border-radius: 50%; }
.is-center .petal-face {
  border-radius: 50%;
  border-color: #632136;
  background: radial-gradient(ellipse at 38% 25%, #a84356, #772c44 76%);
  box-shadow: inset 0 1px 3px #ffd0b980, inset 0 -4px 1px #581b3e50, 0 6px 10px #77303546;
}
.is-center .petal-face::before { inset: 8%; border: 1px solid #f4ba9e8c; background: none; mask-image: none; }
.is-center .petal-letter { color: #fff2d6; text-shadow: 0 2px 1px #41162e; }
.petal:not(:disabled):hover .petal-face { filter: brightness(1.05); }
.petal:not(:disabled):active .petal-face, .petal.is-tapped .petal-face { scale: .91; filter: brightness(1.10); }
.petal.is-tapped .petal-face { animation: tap .19s ease-out both; }
.bonus-in .petal-face { animation: bonus .21s ease-out; }
.is-seven::before { animation: ink-ring .26s ease-out; }
.is-shuffling .petal-letter { animation: shuffle .21s ease-out; }
@keyframes tap { 0% { scale: .93; } 100% { scale: 1; filter: none; } }
@keyframes bonus { 40% { scale: 1.075; filter: brightness(1.12); } }
@keyframes shuffle { 0% { opacity: .15; transform: translateY(3px) rotate(-8deg); } }
@keyframes ink-ring { from { scale: .58; box-shadow: 0 0 0 9px #a4543cac; } to { scale: 1.04; box-shadow: 0 0 0 2px #a4543c00; } }
.game-desk {
  align-self: center;
  min-width: 0;
  padding: clamp(18px, 2.85vw, 49px);
}
.scoreboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line);
  margin-bottom: clamp(18px, 3.3dvh, 34px);
}
.scoreboard > div { padding: 7px clamp(4px, 1.1vw, 16px) 9px; }
.scoreboard > div + div { border-left: 1px solid #d9c3aa; }
.stat-label { color: var(--muted); font-size: .77rem; font-weight: 650; }
.scoreboard strong { display: block; font: bold clamp(1.45rem, min(3.7dvh, 3.55vw), 2.5rem)/1.05 var(--serif); font-variant-numeric: tabular-nums; color: var(--wine-deep); white-space: nowrap; }
.scoreboard small { font: inherit; font-size: .65em; color: var(--muted); }
.score-pop { animation: stamp .23s ease-out; }
@keyframes stamp { 33% { transform: translateY(-2px); color: #a23854; } }
.desk-content { min-width: 0; }
.bonus-key { display: flex; align-items: center; justify-content: space-between; gap: 4px; color: var(--muted); font-size: .85rem; font-weight: 650; }
.bonus-label { white-space: nowrap; }
.bonus-label strong { color: #693b18; }
.bonus-track { list-style: none; display: flex; gap: 3px; padding: 0; margin: 0; }
.bonus-track li { width: 22px; height: 24px; display: grid; place-items: center; border: 1px solid #d6bea0; border-radius: 45% 45% 42% 42%; color: #674a37; background: #f8eed8; }
.bonus-track li[aria-current] { border-color: #9c611c; color: #512d16; background: var(--gold); font-weight: 800; }
.word-line {
  color: var(--wine-deep);
  min-height: 61px;
  display: grid;
  align-items: center;
  padding: 6px 2px;
  border-bottom: 2px solid #8e664f;
  font: bold clamp(1.55rem, 3.5vw, 2.55rem)/1.02 var(--serif);
  word-break: break-word;
  position: relative;
  outline: none;
}
.word-line:focus { border-bottom-color: var(--wine); }
.word-line.empty { font-style: italic; font-weight: 400; color: #755c58; }
.word-error { animation: nudge .18s ease-out; }
@keyframes nudge { 20%, 65% { transform: translateX(3px); } 43% { transform: translateX(-3px); } }
.preview {
  min-height: 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px clamp(7px, 1vw, 12px);
  margin-top: 4px;
  color: var(--muted);
  font-size: .76rem;
}
.preview strong { background: #f3e1bd; border-radius: 4px; padding: 1px 6px; color: #62371f; }
.preview[data-invalid=true] { color: #8b233e; font-weight: 650; }
.notice { min-height: 25px; padding-inline: 5px; border-radius: 4px; color: var(--muted); font-size: .85rem; font-weight: 650; }
.notice[data-feedback=error] { color: #81213a; background: #f7dedb; }
.notice[data-feedback=good] { color: #39502b; background: #e9edd6; }
.accept-stamp, .seven-stamp, .draft-return { animation: stamp .23s ease-out; }
.seven-stamp { box-shadow: inset 0 0 0 1px #be8d33; }
.controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: 7px; }
.controls button { display: flex; min-width: 0; align-items: center; justify-content: center; gap: 5px; white-space: nowrap; }
.controls button:not(.main-btn), .end-actions button:not(.main-btn), .settings button { background: #fbf2df; border-color: #bca08a; }
button:not(.petal):hover { filter: brightness(.97); }
.main-btn { background: var(--wine); color: #fff4e3; border-color: var(--wine-deep); box-shadow: inset 0 -2px 0 #4f172d55, 0 2px 0 #6b2c3d20; }
.main-btn:hover { background: #65213a; }
.main-btn:active { transform: translateY(1px); }
.play-btn { min-width: 144px; min-height: 50px; display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; }
.menu-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.menu-actions button:not(.main-btn), .hint-row button { border-color: #bca08a; background: #fbf2df; color: var(--wine-deep); }
.hint-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.hint-row:has(button[hidden]) { display: none; }
.hint-row button { flex-shrink: 0; padding-inline: 9px; }
.hint-row button:disabled { opacity: .7; }
#hint-text { color: var(--wine-deep); font-size: .88rem; font-weight: 650; }
.draft-area { margin-top: 12px; border-top: 1px solid var(--line); }
.draft-heading { display: flex; align-items: center; justify-content: space-between; }
.draft-heading h2 { font: bold 1.11rem var(--serif); }
.draft-heading button { border: 0; color: var(--wine-deep); padding: 0 3px 0 9px; }
.drafts { display: grid; gap: 4px; min-height: 39px; }
.drafts p { color: var(--muted); font-size: .82rem; padding: 1px 0 6px; }
.draft-slip { display: flex; border-radius: 5px; background: #f8e7c4; border: 1px dashed #a4846a; min-width: 0; }
.draft-slip button { border: 0; }
.draft-slip > button:last-child { min-width: 44px; color: var(--muted); font-size: 1.1rem; }
.draft-use { flex: 1; text-align: left; min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 3px 8px; padding: 4px 8px; }
.draft-use strong { color: var(--wine-deep); overflow-wrap: anywhere; }
.draft-use span { display: flex; flex-wrap: wrap; gap: 3px; color: var(--muted); font-size: .75rem; }
.draft-use small { font-size: inherit; padding: 1px 4px; border-radius: 3px; background: #fffaee; }
.draft-use .draft-gold { background: var(--gold); color: #572f16; }
.overlay h2 { font: 400 clamp(2.2rem, 5.25vw, 5.45rem)/.94 var(--serif); letter-spacing: -.071em; color: var(--wine-deep); text-wrap: balance; }
.overlay p { max-width: 32ch; margin: 13px 0 20px; color: #604744; font-size: clamp(.88rem, 1.35vw, 1.13rem); }
.end-copy p { max-width: none; }
.overlay { min-height: 280px; display: grid; align-items: center; }
.menu-copy, .pause-copy, .end-copy { padding-bottom: 4px; }
.pause-copy, .end-copy { animation: unveil .22s ease-out both; }
@keyframes unveil { from { opacity: .66; transform: translateY(3px); } }
.settings { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.settings button { min-width: 44px; text-align: left; padding-inline: 8px; }
.settings b { color: var(--wine); }
.text-btn { padding: 0; border: 0; text-decoration: underline; text-underline-offset: .2em; }
.pause-copy h2 { margin-bottom: 12px; }
.game:is([data-mode=paused], [data-mode=won], [data-mode=over]) .overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  padding: clamp(8px, 2.8vw, 36px);
  min-height: 0;
  display: grid;
  place-items: center;
  background: #54312648;
}
.game:is([data-mode=paused], [data-mode=won], [data-mode=over]) .flower-bed { min-height: min(58dvh, 500px); }
.pause-copy, .end-copy {
  width: min(100%, 470px);
  max-height: 100%;
  overflow: auto;
  padding: clamp(13px, 3vw, 29px);
  border: 1px solid #946d55;
  border-radius: 9px;
  background: #fff8e9;
  box-shadow: 0 2px 0 #b5987e, 0 12px 40px #55203945, inset 0 0 0 4px #f3e4c9;
}
.overlay :is(.pause-copy, .end-copy) h2 { font-size: clamp(2.15rem, 5vw, 3.8rem); }
.end-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.end-copy details { margin-top: 5px; max-width: 440px; }
.game-foot {
  min-height: 55px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px clamp(7px, 1.4vw, 19px);
  border-top: 1px solid var(--line);
  background: #f8ecd5;
  border-radius: 0 0 6px 6px;
}
.ribbon { font-size: .86rem; color: #63464a; min-width: 0; }
.ribbon-flower { color: var(--wine); font-size: 1.16rem; vertical-align: middle; margin-right: 3px; }
.quick-actions { display: flex; gap: 5px; z-index: 5; }
.quick-actions button { min-width: 44px; padding: 0; font-size: 1.08rem; background: #fef6e6; border-color: #bca08a; }
.quick-actions .muted { text-decoration: line-through; color: #775f57; }
summary { min-height: 44px; align-content: center; width: fit-content; font-weight: 650; font-size: .85rem; }
.journal { margin: 0 0 10px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 3px 13px; font-size: .83rem; }
.journal li { display: grid; grid-template-columns: minmax(0, 1fr) 1.2em 2em; align-items: center; gap: 3px; padding: 3px 0; border-bottom: 1px dotted var(--line); }
.journal li > span { overflow-wrap: anywhere; }
.journal li b { text-align: right; }
.journal li small { text-align: center; background: #f3e1bd; color: #62371f; border-radius: 3px; }
.round-journal { position: relative; }
.round-journal[open] .journal { position: absolute; z-index: 3; bottom: 42px; left: 0; width: min(400px, 78vw); padding: 10px 12px; margin: 0; border: 1px solid #bca08a; border-radius: 6px; box-shadow: 0 7px 17px #5d34273b; background: var(--paper); }
dialog { width: min(92vw, 560px); max-height: 85dvh; background: var(--paper); border: 1px solid #9b765b; color: var(--ink); border-radius: 10px; padding: 14px 17px; }
dialog::backdrop { background: #3d1a26a8; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 8px; }
.dialog-head h2 { font: bold 2rem var(--serif); color: var(--wine-deep); }
.dialog-head button { min-width: 44px; font-size: 1.2rem; }
.archive-entry { display: flex; justify-content: space-between; align-items: center; gap: 6px; flex-wrap: wrap; border-top: 1px solid var(--line); padding: 7px 0; }
.archive-entry strong, .archive-entry small { display: block; }
.archive-entry small { color: var(--muted); }
.archive-entry details { width: 100%; }
.burst { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 4; }
.burst i { position: absolute; left: 37%; top: 46%; width: 7px; height: 10px; background: var(--particle-color); border-radius: 60% 20%; animation: burst 1.05s ease-out forwards; }
@keyframes burst {
  0% { opacity: 1; transform: translate(0, 0) rotate(0); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--spin)); }
}
.game.bloom .flower-bed { animation: bloom .82s ease-out; }
@keyframes bloom { 30% { filter: brightness(1.12) saturate(1.23); } }
.game.reduced *, .game.reduced *::before, .game.reduced *::after { animation: none !important; transition: none !important; }
.editorial, .page-copy { width: min(88%, 970px); margin: clamp(40px, 6vw, 92px) auto; }
.editorial .intro { font: clamp(1.32rem, 2.15vw, 1.85rem)/1.4 var(--serif); color: var(--wine-deep); max-width: 50ch; }
.editorial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 42px; margin-top: 23px; }
.editorial h2, .page-copy h2 { font: bold clamp(1.5rem, 2.8vw, 2rem)/1.04 var(--serif); color: var(--wine-deep); margin-bottom: 11px; letter-spacing: -.04em; }
.editorial section, .page-copy section { padding: 15px 0; border-top: 1px solid var(--line); }
.editorial p + p, .page-copy p + p { margin-top: .65em; }
.editorial ul, .page-copy ul { padding-left: 1.2em; }
.editorial li + li, .page-copy li + li { margin-top: .5em; }
.editorial details + details { border-top: 1px solid #decbb4; }
.editorial details p { padding-bottom: 9px; }
.editorial .independent { color: var(--muted); font-size: .83rem; margin-top: 20px; }
.article-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 7px; font-weight: 700; color: var(--wine-deep); }
.site-footer { padding: 17px 0 max(17px, env(safe-area-inset-bottom)); border-top: 1px solid #cebca6; min-height: 63px; color: #62484d; font-size: .83rem; }
.site-footer > a { font: bold 1rem var(--serif); }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.page-copy { max-width: 760px; min-height: 58dvh; }
.page-copy h1 { font: bold clamp(2.2rem, 6vw, 4.4rem)/1 var(--serif); color: var(--wine-deep); letter-spacing: -.063em; margin: 5px 0 18px; }
.page-copy .lede { font: 1.3rem/1.4 var(--serif); margin-bottom: 25px; }
.page-copy table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.page-copy :is(th,td) { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--line); }
.page-copy .main-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 15px; border-radius: 5px; text-decoration: none; }
@media (min-width: 481px) and (max-height: 520px) {
  .masthead { min-height: 44px; }
  .game-heading { min-height: 45px; }
  .game-heading .game-title { font-size: 2.2rem; }
  .stage { min-height: 238px; }
  .flower { width: min(83%, 62dvh); }
  .game-desk { padding: 8px 18px; }
  .scoreboard { margin-bottom: 8px; }
  .scoreboard > div { padding-block: 4px; }
  .overlay { min-height: 125px; }
  .overlay h2 { font-size: 2rem; text-wrap: initial; }
  .overlay p { margin: 6px 0 8px; }
  .word-line { min-height: 39px; }
  .play-btn { min-height: 44px; }
  .draft-area { margin-top: 5px; }
  .drafts { min-height: 0; }
  .quick-actions { position: absolute; z-index: 2; top: 16px; left: 16px; flex-direction: column; }
}
@media (min-width: 481px) and (max-width: 680px) and (orientation: landscape) {
  .stage { grid-template-columns: minmax(0, .84fr) minmax(0, 1fr); }
  .controls button { padding-inline: 3px; font-size: .79rem; }
}
@media (min-width: 600px) and (max-width: 900px) and (orientation: portrait) {
  .stage { display: flex; flex-direction: column; min-height: 0; }
  .game-desk { display: contents; }
  .scoreboard { order: -1; margin: 0; border-top: 0; padding-inline: 14px; }
  .scoreboard > div { padding-block: 4px; }
  .flower-bed { border-right: 0; }
  .game:is([data-mode=paused], [data-mode=won], [data-mode=over]) .flower-bed { flex: 1; }
  .flower { width: min(75%, 43dvh, 480px); }
  .desk-content { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; padding: 14px 18px; }
  .draft-area { margin-top: 0; border-top: 0; border-left: 1px solid var(--line); padding-left: 12px; }
  .overlay { padding: 16px; min-height: 150px; }
  .overlay h2 { font-size: 2.8rem; }
  .overlay .menu-copy h2 br { display: none; }
}
@media (max-width: 599px) and (orientation: portrait), (max-width: 480px) {
  :root { --page: calc(100% - 16px); }
  .masthead { min-height: 45px; gap: 4px; }
  .identity { font-size: .72rem; gap: 5px; }
  .brand-mark { width: 20px; height: 20px; }
  .masthead nav, .site-footer nav { gap: 13px; }
  .masthead nav a, .archive-link { font-size: .77rem; }
  .game-heading { min-height: 49px; gap: 4px; }
  .game-heading .game-title { font-size: clamp(1.9rem, 8.3vw, 3.35rem); }
  .game-heading p { font-size: .68rem; padding-bottom: 4px; }
  .game { padding: 4px; min-height: 60dvh; border-radius: 9px; }
  .stage { display: flex; flex-direction: column; min-height: 0; }
  .game-desk { display: contents; }
  .scoreboard { order: -1; margin: 0; padding-inline: 8px; border-top: 0; }
  .scoreboard > div { padding: 4px 7px 5px; }
  .scoreboard strong { font-size: 1.37rem; }
  .stat-label { font-size: .69rem; }
  .flower-bed { border: 0; border-radius: 0; min-height: 0; }
  .flower-bed::before { inset: 10px; border-radius: 36% / 24%; }
  .flower { width: min(87%, 36dvh, 330px); min-width: min(80%, 211px); }
  .petal-letter { font-size: clamp(1.55rem, 8.6vw, 2.85rem); }
  .petal-badge { font-size: .63rem; padding: 1px 4px; }
  .desk-content, .overlay { padding: 10px 12px 0; }
  .overlay { min-height: 163px; align-items: start; }
  .overlay h2 { font-size: clamp(1.9rem, 7.3vw, 3.1rem); letter-spacing: -.055em; text-wrap: initial; }
  .overlay .menu-copy h2 br { display: none; }
  .overlay p { margin: 6px 0 10px; font-size: .84rem; }
  .play-btn { min-height: 44px; min-width: 125px; }
  .pause-copy h2 { margin-bottom: 5px; }
  .word-line { min-height: 43px; padding: 2px 0; }
  .bonus-key { font-size: .82rem; }
  .preview { margin-top: 2px; min-height: 21px; }
  .notice { min-height: 23px; }
  .controls button { padding: 0 4px; }
  .draft-area { margin-top: 8px; }
  .drafts { min-height: 22px; }
  .drafts p { font-size: .76rem; }
  .game-foot { min-height: 50px; padding-block: 2px; }
  .quick-actions { position: absolute; top: 69px; right: 12px; }
  .journal-note { white-space: nowrap; }
  .site-footer { gap: 3px; flex-wrap: wrap; }
  .editorial-grid { grid-template-columns: 1fr; gap: 5px; }
}
@media (max-width: 374px) {
  .overlay { min-height: 163px; }
  .game-heading .game-title { font-size: 1.9rem; }
  .identity { letter-spacing: .025em; }
  .game-heading p { font-size: .65rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.editorial-title {
  color: var(--wine-deep);
  font: bold clamp(1.9rem, 3.9vw, 3.3rem)/1.07 var(--serif);
  letter-spacing: -.05em;
  margin-bottom: 15px;
}
.language-switch { width: var(--page); margin: 4px auto 0; color: var(--muted); font-size: .83rem; }
.language-switch ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 15px; padding: 0; margin: 0; }
.language-switch a { display: inline-flex; align-items: center; min-height: 44px; }
.language-switch [aria-current=page] { font-weight: 750; text-decoration: none; }
:is(.masthead, .site-footer) abbr { font-size: .66rem; color: var(--muted); text-decoration: none; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html:not([lang=en]) .controls button { white-space: normal; gap: 3px; }
html:not([lang=en]) .controls button span { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 480px) {
  .language-switch { font-size: .78rem; }
  .language-switch ul { gap: 0 9px; }
  html:not([lang=en]) .game-heading .game-title { font-size: clamp(1.6rem, 6.8vw, 2rem); }
  html:not([lang=en]) .game-heading p { max-width: 36%; white-space: normal; text-align: right; }
  html:not([lang=en]) .masthead nav { gap: 8px; }
  html:not([lang=en]) .site-footer nav { flex-wrap: wrap; gap: 0 12px; }
}
