:root {
  color-scheme: dark;
  --ink: #1d0c12;
  --cream: #f8e9cc;
  --gold: #dfb976;
  --muted: #c9aa9c;
  --header: 66px;
  --serif-ja: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif CJK JP", serif;
  --serif-en: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: system-ui, "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", sans-serif;
  --wine-photo: url("./assets/beaujolais.jpg");
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--ink); color: var(--cream); font-family: var(--sans); }
button, input, textarea { font: inherit; }
button { touch-action: manipulation; }
button:enabled { cursor: pointer; }
button:disabled, button[aria-disabled="true"] { cursor: default; }
button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #ffd591;
  outline-offset: 3px;
}
p, h1, h2, dl, dd { margin: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-header {
  position: relative;
  z-index: 2;
  height: var(--header);
  background: #1b0c12;
  border-bottom: 1px solid #ae795d42;
}
.header-inner {
  width: min(100% - 6rem, 1272px);
  height: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.wordmark {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #eed5a9;
  font-family: var(--serif-en);
  font-size: .91rem;
  letter-spacing: .115em;
  white-space: nowrap;
}
.wordmark strong { font-weight: 400; }
.wordmark-year { color: #b78c5f; padding-left: 10px; border-left: 1px solid #775541; }
.monogram {
  display: grid;
  grid-template-columns: repeat(2, 5px);
  grid-template-rows: repeat(2, 5px);
  place-content: center;
  gap: 2px;
  width: 27px;
  height: 27px;
  border: 1px solid #b98955;
  transform: rotate(45deg);
  margin: 0 5px;
}
.monogram i { background: #d7aa6b; }
.monogram i:nth-child(2) { background: transparent; border: 1px solid #d7aa6b; }
.monogram i:nth-child(3) { grid-column: 2; }
.sound-control { display: flex; align-items: center; gap: 10px; }
.sound-toggle {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  min-width: 69px;
  min-height: 38px;
  background: #40202a;
  border: 1px solid #bd906252;
  border-radius: 3px;
  color: #f1d4a6;
  font: 600 .73rem var(--sans);
  letter-spacing: .08em;
}
.sound-icon { width: 15px; height: 14px; position: relative; }
.sound-icon::before {
  content: "";
  position: absolute;
  inset: 2px 6px 2px 0;
  background: currentColor;
  clip-path: polygon(0 30%, 38% 30%, 100% 0, 100% 100%, 38% 70%, 0 70%);
}
.sound-icon::after {
  content: "";
  position: absolute;
  height: 11px;
  width: 1px;
  top: 1px;
  right: 1px;
  transform: rotate(-34deg);
  background: currentColor;
}
[data-audible="true"] .sound-icon::after {
  height: 10px;
  width: 7px;
  top: 2px;
  right: 0;
  border-right: 1px solid;
  border-radius: 50%;
  transform: none;
  background: transparent;
}
.sound-control input { margin: 0; width: clamp(50px, 6.1vw, 89px); accent-color: #d8aa69; cursor: pointer; }

.game {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - var(--header));
  overflow: clip;
  background: radial-gradient(ellipse at 52% 9%, #441a29 0%, #2e121e 39%, #1d0c12 77%);
}
.game-art {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: clamp(470px, 77svh, 725px);
  pointer-events: none;
  overflow: hidden;
}
.game-art::before, .game-art::after, .poster-art::before, .poster-art::after { content: ""; position: absolute; inset: 0; }
.game-art::before {
  left: auto;
  width: min(91vw, 1310px);
  background: var(--wine-photo) no-repeat center 49% / cover;
}
.game-art::after {
  background:
    linear-gradient(0deg, #1d0c12 0%, #1d0c1200 54%),
    linear-gradient(90deg, #2b101b 3%, #2b101bdc 23%, #2b101b33 52%, #210b1300 81%, #210b1344 100%);
}
.game-inner { width: min(100% - 6rem, 1152px); margin-inline: auto; }
.game-intro {
  min-height: clamp(265px, 37svh, 365px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 25px 0 22px 1px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e7be81;
  font: 500 .86rem var(--serif-en);
  letter-spacing: .26em;
  margin-bottom: 17px;
}
.eyebrow i { width: 25px; border-top: 1px solid #c49862; }
.game-intro h1 {
  font: 600 clamp(2.5rem, 5.25vw, 4.9rem)/1.15 var(--serif-ja);
  letter-spacing: .01em;
  text-shadow: 0 3px 20px #17071196;
}
.game-intro h1 span { display: block; }
.game-intro h1 span:first-child { font-size: .70em; letter-spacing: .03em; margin-bottom: .12em; }
.game-description { color: #e2c7b6; font-size: 1rem; line-height: 1.5; margin-top: 20px; }

.machine {
  background: linear-gradient(156deg, #491f2d 0%, #361821 44%, #29121b 100%);
  border: 1px solid #a77653;
  border-radius: 7px;
  box-shadow: 0 0 0 4px #260e17aa, inset 0 0 0 4px #17070d80, 0 22px 49px #10060aa1;
  position: relative;
  padding: 13px 18px 18px;
}
.machine-bar { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 1px 2px 12px; }
.machine-label, .machine-meters, .progress-meter { display: flex; align-items: center; }
.machine-label { color: #ebcfaa; gap: 10px; font-size: .87rem; font-weight: 600; min-height: 22px; }
.machine-label i {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  background: #b58d67;
  transform: rotate(45deg);
}
.is-playing .machine-label i { background: #f4c87e; box-shadow: 0 0 9px #efaf66c0; }
#machine-status[data-last="true"] { font-family: var(--serif-en); color: #ffda89; letter-spacing: .20em; }
.machine-meters { gap: 17px; }
.speed-meter {
  color: #f7dba9;
  font-family: var(--serif-en);
  font-size: 1.13rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.speed-meter small { color: #d4b2a2; font: 400 .70rem var(--sans); margin-left: 5px; }
.progress-meter { gap: 5px; }
.progress-meter i { width: 7px; height: 7px; border: 1px solid #b38671; border-radius: 50%; }
.progress-meter i.filled { border-color: #ecc484; background: #ecc484; box-shadow: 0 0 6px #e6a85b60; }
.reels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(0, 1.2fr); gap: 10px; }
.reel {
  --step: 38px;
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 5px;
  border: 1px solid #af856046;
  border-radius: 4px;
  background: #210d16a6;
}
.reel-title {
  min-height: 25px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 4px;
  color: #ebcc98;
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
}
.reel-key {
  border: 1px solid #ac805b84;
  border-radius: 2px;
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
  font: 400 .79rem/1 var(--serif-en);
}
.reel-window {
  isolation: isolate;
  padding: 0;
  position: relative;
  width: 100%;
  min-width: 0;
  height: clamp(99px, 13.4svh, 129px);
  overflow: hidden;
  border: 1px solid #d4b181;
  border-radius: 3px;
  background: #e0c29a;
  color: #471626;
}
.reel-window::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, #64453280, #e3c49ca0 21%, #ead1ab00 43%, #ead1ab00 57%, #e3c49ca0 79%, #64453285),
    linear-gradient(90deg, #70483265, #e3c49c00 11%, #e3c49c00 89%, #70483266);
}
.reel-center {
  position: absolute;
  z-index: -1;
  top: calc(50% - var(--step) / 2);
  left: 0;
  right: 0;
  height: var(--step);
  border-block: 1px solid #a96e4b63;
  background: linear-gradient(90deg, #f0d3a7, #fff0cd 46%, #f5deb5);
}
.reel-track { position: absolute; inset: 50% 0 auto; transform: translateY(calc(var(--shift, 0) * var(--step))); }
.reel-row {
  position: absolute;
  width: 100%;
  padding-inline: 3px;
  display: grid;
  place-items: center;
  height: var(--step);
  font: 700 clamp(1.15rem, 2vw, 1.75rem)/1.18 var(--serif-ja);
  transform: translateY(calc((var(--row) - .5) * var(--step)));
  overflow-wrap: anywhere;
}
.reel-row[data-size="medium"] { font-size: clamp(.86rem, 1.39vw, 1.35rem); }
.reel-row[data-size="long"] { font-size: clamp(.76rem, 1.16vw, 1.1rem); }
.stop {
  min-height: 40px;
  border: 1px solid #9c6c56;
  border-radius: 3px;
  color: #f0d4aa;
  background: linear-gradient(180deg, #653141, #421a2a);
  font: 600 .89rem var(--serif-en);
  letter-spacing: .14em;
  padding: 0 2px;
}
.reel[data-state="ready"] .stop { color: #d3ad9a; border-color: #855a4d; background: #46222c; }
.reel[data-state="locked"] .stop { color: #e4c397; border-color: #936345; background: #2a1418; font-size: .75rem; }
.reel[data-state="locked"] .reel-center { background: linear-gradient(90deg, #edcb93, #fff0cf 47%, #efd4a3); border-color: #9b6737; }
.reel[data-state="locked"] .reel-key { background: #d4aa73; color: #33141b; }
.reel.last-reel { border-color: #f2c375; box-shadow: 0 0 15px #da9b4b6e; }
.reel.last-reel .stop { background: #ddac65; border-color: #ffe2a8; color: #391426; }
@media (hover: hover) {
  .stop[aria-disabled="false"]:hover { background: #814353; border-color: #ecba75; }
  .reel-window[aria-disabled="false"]:hover { border-color: #fff2c7; filter: brightness(1.07); }
}
.reel button[aria-disabled="false"]:active, .button:enabled:active { transform: translateY(1px); }

.game-actions { display: grid; justify-items: center; gap: 12px; padding: 26px 0 21px; }
.button {
  min-height: 44px;
  padding: 7px 14px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.15;
}
.button-gold {
  color: #341522;
  background: linear-gradient(180deg, #f6dca5, #d8a363);
  border-color: #f5d39b;
  box-shadow: inset 0 0 0 3px #95563337, 0 6px 20px #17080d95;
}
.button-gold:enabled:hover { background: linear-gradient(180deg, #ffe8b6, #eabb7d); }
.start { display: grid; place-content: center; justify-items: center; gap: 3px; width: min(285px, 100%); min-height: 64px; }
.start span { font: 700 1.51rem/1 var(--serif-en); letter-spacing: .22em; padding-left: .22em; }
.start small { font: 650 .74rem var(--sans); letter-spacing: .06em; }
.start:disabled {
  color: #d8b79c;
  background: #44212b;
  border-color: #956549;
  box-shadow: inset 0 0 0 3px #28101b75;
}
.start:disabled span { font-size: 1.29rem; }
.game-help { color: #cba99c; text-align: center; font-size: .82rem; }

.result { background: #290d18; }
.result-poster {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: calc((100svh - var(--header)) * .65);
  padding: 46px 6vw;
  overflow: hidden;
  text-align: center;
  background: #260c17;
  opacity: 0;
}
.result-poster.visible { opacity: 1; animation: poster-reveal .72s ease-out both; }
.poster-art {
  position: absolute;
  z-index: -3;
  inset: 0;
  background: radial-gradient(ellipse at 62% 45%, #641b36, #290d18 69%, #210c14);
}
.poster-art::before {
  left: auto;
  height: 100%;
  aspect-ratio: 1.77;
  background: var(--wine-photo) no-repeat right center / auto 118%;
  mask-image: linear-gradient(90deg, transparent, #000 52%);
}
.poster-art::after {
  background:
    linear-gradient(90deg, #210914 0%, #250e17b8 23%, #230c1692 49%, #230c162e 77%, #160a0f51),
    linear-gradient(0deg, #160a0f96, #160a0f00 30%, #160a0f00 68%, #160a0f76);
}
.poster-frame {
  position: absolute;
  z-index: -1;
  inset: 19px 22px;
  border: 1px solid #d4a36490;
  outline: 1px solid #d4a36436;
  outline-offset: -5px;
  pointer-events: none;
}
.poster-copy { width: 100%; max-width: 940px; }
.poster-brand {
  display: grid;
  justify-items: center;
  gap: 4px;
  color: #f5d09c;
  font: 400 clamp(.91rem, 1.9vw, 1.57rem)/1.08 var(--serif-en);
  letter-spacing: .26em;
  text-shadow: 0 1px 8px #230a14;
}
.poster-brand em { font-style: normal; letter-spacing: .10em; }
.poster-ornament { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 18px auto 19px; }
.poster-ornament::before, .poster-ornament::after { content: ""; width: 65px; border-top: 1px solid #e3b9769c; }
.poster-ornament i { width: 8px; height: 8px; border: 1px solid #f0cb8f; transform: rotate(45deg); }
.headline {
  margin-inline: auto;
  font: 700 clamp(2.08rem, 5.05vw, 5.5rem)/1.24 var(--serif-ja);
  text-wrap: balance;
  line-break: strict;
  overflow-wrap: anywhere;
  color: #fff1d3;
  text-shadow: 0 2px 4px #1c0713, 0 6px 36px #1c0713, 0 0 14px #380b22aa;
}
.headline[data-length="long"] { font-size: clamp(1.96rem, 4.55vw, 4.95rem); }
.phrase-token { display: inline-block; max-width: 100%; }
.headline:focus { outline: none; }
.poster-tagline {
  color: #f3d3b0;
  font: 600 clamp(.93rem, 1.8vw, 1.18rem)/1.6 var(--serif-ja);
  margin-top: 22px;
  letter-spacing: .12em;
  text-shadow: 0 2px 6px #190710;
}
.result-poster.visible .headline { animation: type-reveal .78s .12s ease-out both; }

.score-area {
  color-scheme: light;
  min-height: calc((100svh - var(--header)) * .35);
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  border-top: 4px double #956838;
  background: linear-gradient(115deg, #f5e4c5 3%, #faeed8 49%, #edd5ad);
  color: #471c2b;
  opacity: 0;
  visibility: hidden;
}
.score-area.visible { opacity: 1; visibility: visible; animation: type-reveal .42s ease-out both; }
.score-inner {
  width: min(100% - 6rem, 1010px);
  margin: 0 auto;
  padding: 12px 0 16px;
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  gap: 28px;
  align-items: center;
}
.score-overview { text-align: center; padding: 0 10px; container-type: inline-size; }
.score-label { font-weight: 700; font-size: .92rem; letter-spacing: .11em; }
.total-score {
  --total-size: clamp(2.8rem, 7.1vw, 6.2rem);
  font: 700 var(--total-size)/1.03 var(--serif-en);
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}
.total-score[data-width="medium"] { font-size: min(var(--total-size), 22cqi); }
.total-score[data-width="wide"] { font-size: min(var(--total-size), 16cqi); }
.total-score small { font: 750 .94rem var(--sans); margin-left: 6px; }
.rank {
  width: fit-content;
  max-width: 100%;
  margin: 8px auto 0;
  padding: 5px 13px 4px;
  border: 1px solid #9f704a;
  font: 700 clamp(.87rem, 2.1vw, 1.11rem)/1.3 var(--serif-ja);
  letter-spacing: .04em;
  color: #54192b;
  visibility: hidden;
}
.rank-ready .rank { visibility: visible; animation: type-reveal .34s ease-out both; }
.score-details { border-left: 1px solid #af8b6867; padding-left: 28px; }
.score-breakdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  text-align: center;
  border-block: 1px solid #af8b6867;
  padding: 10px 0;
}
.metric { visibility: hidden; container-type: inline-size; }
.metric.visible { visibility: visible; animation: type-reveal .33s ease-out both; }
.metric + .metric { border-left: 1px solid #af8b6886; }
.metric dt { font-size: .85rem; font-weight: 650; color: #664639; }
.metric dd {
  font: 700 clamp(1.29rem, 3.3vw, 2.32rem)/1.2 var(--serif-en);
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
  margin-top: 4px;
}
.metric dd[data-width="wide"] { font-size: min(1.95rem, 17cqi); }
.result-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 13px; }
.result-actions .button { padding-inline: 4px; }
.button-wine { color: #fff0d9; background: #591e33; border-color: #591e33; }
.button-wine:enabled:hover, a.button-wine:hover { background: #782640; }
.button-outline { background: #fdf1db; color: #54192b; border-color: #875749; }
.button-outline:enabled:hover, a.button-outline:hover { background: #e8ccac; }
.result-actions .button:disabled { opacity: .55; }
.result-disclaimer {
  color: #6c5146;
  text-align: center;
  font-size: .75rem;
  line-height: 1.45;
  padding: 0 13px 8px;
}
.score-area button:focus-visible, .copy-dialog button:focus-visible { outline-color: #6c283d; }
.transition-veil {
  position: fixed;
  z-index: 5;
  inset: 0;
  pointer-events: none;
  background: #1e0b13;
  opacity: 0;
  transition: opacity .38s ease;
}
.transition-veil.visible { opacity: 1; }
.copy-buffer { position: fixed; inset: 0 auto auto 0; width: 1px; height: 1px; opacity: 0; }
.copy-dialog, .share-dialog {
  width: min(400px, calc(100% - 36px));
  color: #471c2b;
  background: #fbecd0;
  border: 1px solid #a97354;
  border-radius: 4px;
  padding: 20px;
}
.copy-dialog::backdrop, .share-dialog::backdrop { background: #1e0b13c2; }
.copy-dialog h2 { font: 700 1.28rem var(--serif-ja); }
.copy-dialog p { margin: .65em 0; font-size: .92rem; }
.copy-dialog textarea {
  width: 100%;
  margin: 0 0 10px;
  color: #471c2b;
  background: #fff8eb;
  border: 1px solid #ac816b;
  padding: 7px;
}
.share-dialog {
  width: min(540px, calc(100% - 24px));
  max-height: calc(100svh - 24px);
  color-scheme: light;
  padding: clamp(12px, 3.8vw, 20px);
}
.share-dialog :is(button, a):focus-visible { outline: 2px solid #6c283d; outline-offset: 3px; }
.share-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.share-heading h2 { font: 700 1.28rem var(--serif-ja); }
.share-preview { background: #280e18; border: 1px solid #9e7253; }
.share-preview img { display: block; width: 100%; height: auto; }
.share-status { font-size: .86rem; line-height: 1.4; margin-block: 9px 7px; }
.share-status:empty { display: none; }
.share-text {
  color: #542039;
  background: #fff7e8;
  border: 1px solid #c7a382;
  padding: 8px 10px;
  margin-block: 9px;
  font-size: .89rem;
  line-height: 1.5;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.share-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.share-actions .button { display: grid; place-items: center; text-align: center; text-decoration: none; }
#share-native, #share-x { grid-column: 1 / -1; }
.result.from-share :is(.result-poster, .headline, .score-area, .rank, .metric) { animation: none; }
.noscript { margin: 12px; }

@keyframes poster-reveal { from { opacity: 0; } to { opacity: 1; } }
@keyframes type-reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .header-inner { width: calc(100% - 42px); }
  .game-inner { width: calc(100% - 44px); }
  .machine { padding-inline: 12px; }
  .reels { gap: 7px; }
  .reel-title { padding-inline: 0; gap: 4px; }
  .score-inner { width: calc(100% - 52px); gap: 17px; }
  .score-details { padding-left: 17px; }
}

@media (max-width: 700px) {
  :root { --header: 56px; }
  .header-inner { width: calc(100% - 28px); }
  .wordmark { font-size: .72rem; letter-spacing: .068em; gap: 8px; }
  .wordmark-year { padding-left: 7px; }
  .monogram { width: 20px; height: 20px; grid-template-columns: repeat(2, 4px); grid-template-rows: repeat(2, 4px); margin-inline: 3px; }
  .sound-control { gap: 6px; }
  .sound-toggle { min-width: 55px; min-height: 40px; gap: 5px; font-size: .68rem; }
  .game-inner { width: min(100% - 26px, 560px); }
  .game-art { height: 490px; }
  .game-art::before { width: min(680px, max(137vw, 500px)); right: -14vw; background-position: center 36%; }
  .game-art::after {
    background: linear-gradient(0deg, #1d0c12 10%, #1d0c1200 66%),
      linear-gradient(90deg, #2c121eae 2%, #2c121e81 47%, #2c111c0b 88%);
  }
  .game-intro { min-height: clamp(177px, 28svh, 247px); padding: 15px 3px; }
  .game-intro h1 { font-size: clamp(2.22rem, 9vw, 3.85rem); }
  .game-intro h1 span:first-child { font-size: .67em; letter-spacing: .005em; }
  .eyebrow { font-size: .73rem; margin-bottom: 12px; gap: 8px; }
  .eyebrow i { width: 17px; }
  .game-description { font-size: .87rem; margin-top: 13px; }
  .machine { padding: 7px 8px 8px; }
  .machine-bar { padding: 1px 2px 6px; }
  .machine-label { font-size: .77rem; gap: 6px; }
  .machine-meters { gap: 7px; }
  .speed-meter { font-size: .96rem; }
  .speed-meter small { font-size: .65rem; }
  .progress-meter { gap: 3px; }
  .progress-meter i { width: 6px; height: 6px; }
  .reels { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .reel { --step: 35px; gap: 4px; padding: 4px; }
  .reel-title { min-height: 20px; font-size: .73rem; }
  .reel-key { width: 16px; height: 16px; font-size: .71rem; }
  .reel-window { height: clamp(64px, 9.5svh, 91px); }
  .reel-row { font-size: clamp(1.11rem, 4.6vw, 1.45rem); }
  .reel-row[data-size="medium"] { font-size: clamp(.81rem, 3.2vw, 1rem); }
  .reel-row[data-size="long"] { font-size: clamp(.74rem, 2.8vw, .93rem); }
  .stop { min-height: 38px; font-size: .81rem; }
  .reel[data-state="locked"] .stop { font-size: .68rem; }
  .game-actions { padding: 15px 0 12px; gap: 8px; }
  .start { min-height: 54px; width: min(265px, 100%); }
  .start span { font-size: 1.29rem; }
  .start:disabled span { font-size: 1.12rem; }
  .game-help { font-size: .76rem; }
  .result-poster { padding: 34px 24px; }
  .poster-frame { inset: 12px 10px; outline-offset: -4px; }
  .poster-art::before { left: 0; right: -32px; height: auto; aspect-ratio: auto; background-position: right 46%; background-size: auto 110%; mask-image: none; }
  .poster-art::after {
    background: linear-gradient(90deg, #230a15e6, #230a15a1 44%, #230a153b 86%),
      linear-gradient(0deg, #1a08135e, #250a142d 40%, #240b1444);
  }
  .poster-brand { font-size: clamp(.92rem, 3.65vw, 1.35rem); }
  .poster-ornament { margin: 14px auto 16px; }
  .poster-ornament::before, .poster-ornament::after { width: 46px; }
  .headline { font-size: clamp(2.02rem, 8.5vw, 3.85rem); }
  .headline[data-length="long"] { font-size: clamp(1.87rem, 7.7vw, 3.3rem); }
  .poster-tagline { margin-top: 16px; font-size: .91rem; letter-spacing: .05em; }
  .score-inner { width: min(100% - 30px, 510px); grid-template-columns: minmax(0, 1fr); gap: 9px; padding: 8px 0 11px; }
  .score-label { font-size: .81rem; }
  .total-score { --total-size: clamp(2.4rem, 10.3vw, 3.8rem); }
  .rank { margin-top: 3px; padding-block: 3px; }
  .score-details { border-left: 0; padding-left: 0; }
  .score-breakdown { padding: 5px 0; }
  .metric dt { font-size: .76rem; }
  .metric dd { margin-top: 1px; }
  .result-actions { margin-top: 8px; }
  .result-actions .button { font-size: .82rem; }
}

@media (max-width: 700px) and (max-height: 700px) {
  .game-intro { min-height: 164px; }
  .reel { --step: 32px; }
  .reel-window { height: 63px; }
  .result-poster { min-height: calc((100svh - var(--header)) * .62); }
}

@media (max-width: 700px) and (max-height: 600px) {
  .game-intro { min-height: 128px; padding-block: 9px; }
  .game-intro h1 { font-size: clamp(1.96rem, 8.7vw, 3.85rem); }
  .eyebrow { margin-bottom: 8px; }
  .game-description { margin-top: 8px; }
  .reel { --step: 30px; }
  .reel-window { height: 55px; }
  .game-actions { padding-top: 9px; }
  .start { min-height: 50px; padding-block: 5px; }
  .result-poster { min-height: calc((100svh - var(--header)) * .56); padding-block: 24px; }
  .poster-ornament { margin-block: 11px 13px; }
  .poster-tagline { margin-top: 12px; }
}

@media (max-width: 360px) {
  .wordmark-year { display: none; }
  .game-inner { width: calc(100% - 20px); }
  .machine { padding-inline: 6px; }
  .game-description { font-size: .81rem; }
  .result-actions { gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; }
}
