/* Heads or Tiles: one stylesheet for the site and the game. Colours follow the iPhone app's Theme.swift. */
:root {
  --plum: #402961; --blue: #213866; --teal: #145c6b;
  --tray: #1c5e6e; --tray-lit: #267885; --tray-lip: #459e9e;
  --bone: #f7edd6; --bone-edge: #ccb58c;
  --rack: #e0f2eb; --rack-edge: #94bdb3;
  --ink: #1a2638;
  --coral: #ff7354; --coral-deep: #c94a30;
  --mint: #5cdbcc; --mint-deep: #2e948f;
  --gold: #ffc747; --gold-deep: #cc8c1f;
  --good: #8ce68c; --violet: #b8a6fc;
  --text: #ffffff; --soft: rgba(255, 255, 255, 0.86); --panel: rgba(255, 255, 255, 0.09); --line: rgba(255, 255, 255, 0.16);
  --font: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; color: var(--text); font-family: var(--font);
  background: linear-gradient(160deg, var(--plum) 0%, var(--blue) 48%, var(--teal) 100%) fixed var(--blue);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--mint); }
button { font-family: inherit; }
[hidden] { display: none !important; }

/* ---------- Tiles ---------- */
.tile {
  --s: 64px; --d: max(3px, calc(var(--s) * 0.09));
  position: relative; width: var(--s); height: var(--s); padding: 0; border: 0; flex: none;
  border-radius: calc(var(--s) * 0.2); background: var(--bone); color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), 0 var(--d) 0 var(--bone-edge), 0 calc(var(--d) + 3px) 7px rgba(0, 0, 0, 0.32);
  display: grid; place-items: center; cursor: pointer; user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: transform 0.12s ease, opacity 0.12s ease, box-shadow 0.12s ease;
}
.tile .letter { font-weight: 900; font-size: calc(var(--s) * 0.54); line-height: 1; }
.tile .mark { position: absolute; top: 9%; left: 9%; width: 20%; height: 20%; }
.tile.rack-tile { background: var(--rack); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), 0 var(--d) 0 var(--rack-edge), 0 calc(var(--d) + 3px) 7px rgba(0, 0, 0, 0.32); }
.tile:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.tile.picked { transform: translateY(-5px); box-shadow: inset 0 0 0 3px var(--coral), 0 var(--d) 0 var(--coral-deep), 0 calc(var(--d) + 8px) 12px rgba(0, 0, 0, 0.35); }
.tile.used { opacity: 0.3; transform: translateY(var(--d)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55); }
/* A board tile that is in the word stays on the board: pressed in and ringed green, not faded out. */
.board .tile.used, .board .tile.is-hot.used { opacity: 1; background: #cdeed6; box-shadow: inset 0 0 0 4px #4fc878; }
.tile .order {
  position: absolute; top: -8px; right: -8px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px;
  background: var(--coral); color: #fff; font-weight: 900; font-size: 14px; display: grid; place-items: center;
  box-shadow: 0 2px 0 var(--coral-deep);
}
.tile.flipped::after {
  content: ""; position: absolute; left: 18%; right: 18%; bottom: 8%; height: 7%; border-radius: 99px; background: var(--coral);
}
.tile .hot {
  position: absolute; top: -9px; right: -7px; padding: 2px 7px; border-radius: 99px; background: var(--gold); color: var(--ink);
  font-weight: 900; font-size: 13px; box-shadow: 0 2px 0 var(--gold-deep);
}
.tile.is-hot { box-shadow: inset 0 0 0 3px var(--gold), 0 var(--d) 0 var(--gold-deep), 0 calc(var(--d) + 3px) 12px rgba(255, 199, 71, 0.45); }
.tile.is-hot.picked { box-shadow: inset 0 0 0 3px var(--coral), 0 var(--d) 0 var(--coral-deep), 0 calc(var(--d) + 8px) 12px rgba(0, 0, 0, 0.35); }
.tile.flipping { animation: flip 0.36s ease-in-out; }
.tile.pop { animation: pop 0.28s cubic-bezier(0.2, 1.4, 0.4, 1) backwards; }
@keyframes flip { 0% { transform: rotateY(0) } 50% { transform: rotateY(90deg) scale(1.08) } 100% { transform: rotateY(0) } }
@keyframes pop { from { transform: scale(0.4); opacity: 0 } to { transform: scale(1); opacity: 1 } }

/* ---------- Buttons ---------- */
.btn {
  --face: var(--gold); --slab: var(--gold-deep);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px;
  border: 0; border-radius: 16px; background: var(--face); color: var(--ink); font-weight: 900; font-size: 18px;
  text-decoration: none; cursor: pointer; box-shadow: 0 4px 0 var(--slab), 0 8px 14px rgba(0, 0, 0, 0.28);
  transition: transform 0.08s ease, box-shadow 0.08s ease; touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.btn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 0 0 var(--slab), 0 2px 4px rgba(0, 0, 0, 0.3); }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.btn.btn:disabled { --face: #3d4f6e; --slab: #26344d; color: rgba(255, 255, 255, 0.78); cursor: default; }
.btn.coral { --face: var(--coral); --slab: var(--coral-deep); color: #fff; }
.btn.mint { --face: var(--mint); --slab: var(--mint-deep); }
.btn.good { --face: var(--good); --slab: #4fa34f; }
.btn.played { --face: rgba(255, 255, 255, 0.1); --slab: rgba(0, 0, 0, 0.3); color: #fff; outline: 1px solid rgba(255, 199, 71, 0.55); outline-offset: -1px; }
.btn.played small { opacity: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.btn.ghost { --face: rgba(255, 255, 255, 0.14); --slab: rgba(0, 0, 0, 0.28); color: #fff; }
.btn.big { min-height: 64px; font-size: 21px; border-radius: 20px; padding: 0 28px; }
.btn small { display: block; font-size: 13px; font-weight: 700; opacity: 0.8; }

/* ---------- Game ---------- */
.game {
  --col: min(520px, calc(100vw - 24px), calc((100dvh - 330px) * 0.9));
  --bt: calc((var(--col) - 48px) / 4);
  --rt: calc((var(--col) - 36px) / 7);
  width: var(--col); margin: 0 auto; padding: 10px 0 18px; display: flex; flex-direction: column; gap: 10px;
  min-height: 100dvh; justify-content: center;
}
.hud { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 12px; }
.hud .home {
  width: 36px; height: 36px; border-radius: 12px; background: var(--panel); color: #fff; text-decoration: none;
  display: grid; place-items: center; font-size: 24px; font-weight: 900; line-height: 1; padding-bottom: 3px;
}
.hud-score .lbl { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); }
.hud-score b { font-size: 30px; font-weight: 900; line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.lvlrow { display: flex; align-items: center; gap: 6px; font-weight: 900; font-size: 15px; margin-bottom: 5px; }
.chip { padding: 2px 8px; border-radius: 99px; background: var(--violet); color: var(--ink); font-size: 13px; font-weight: 900; }
.chip.streak { background: var(--coral); color: #fff; }
.bar { height: 10px; border-radius: 99px; background: rgba(0, 0, 0, 0.3); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--mint), var(--good)); transition: width 0.3s ease; }
.clock { position: relative; width: 54px; height: 54px; display: grid; place-items: center; }
.clock svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.clock circle { fill: none; stroke-width: 5; }
.clock .track { stroke: rgba(0, 0, 0, 0.3); }
.clock .ring { stroke: var(--mint); stroke-linecap: round; stroke-dasharray: 119.4; }
.clock b { font-size: 19px; font-weight: 900; font-variant-numeric: tabular-nums; }
.clock.low .ring { stroke: var(--coral); }
.clock.low b { color: var(--coral); animation: pulse 0.5s ease-in-out infinite alternate; }
@keyframes pulse { to { transform: scale(1.18) } }

.prompt { min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 18px; font-weight: 800; text-align: center; }
.prompt b { color: var(--gold); }
.prompt .sub { display: block; font-size: 14px; color: var(--soft); font-weight: 700; margin-top: 2px; }
.die { width: 40px; height: 40px; border-radius: 10px; background: #fff; box-shadow: 0 3px 0 #b9c0cc, 0 6px 8px rgba(0, 0, 0, 0.3); display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 6px; gap: 1px; flex: none; }
.die i { border-radius: 50%; margin: 1px; }
.die i.on { background: var(--coral); }
.die.roll { animation: roll 0.4s ease-out; }
@keyframes roll { from { transform: rotate(-200deg) scale(0.5) } to { transform: none } }

.tray { position: relative; padding: 12px; border-radius: 24px; background: linear-gradient(180deg, var(--tray-lit), var(--tray)); box-shadow: inset 0 2px 0 var(--tray-lip), inset 0 -4px 0 rgba(0, 0, 0, 0.22), 0 10px 22px rgba(0, 0, 0, 0.3); }
.board { display: grid; grid-template-columns: repeat(4, var(--bt)); gap: 8px; row-gap: calc(8px + var(--bt) * 0.09); padding-bottom: calc(var(--bt) * 0.09); }
.board .tile { --s: var(--bt); }
.rack { display: flex; gap: 6px; justify-content: center; padding-bottom: 6px; }
.rack .tile { --s: var(--rt); }
.well { min-height: calc(var(--rt) + 18px); padding: 6px; border-radius: 18px; border: 2px dashed var(--line); background: rgba(0, 0, 0, 0.18); display: flex; align-items: center; justify-content: center; gap: 4px; transition: border-color 0.15s, background 0.15s; }
.well .tile { --s: min(var(--rt), calc((var(--col) - 20px) / var(--n, 7) - 4px)); --d: 3px; }
.well .hint { color: var(--soft); font-weight: 700; font-size: 15px; }
.well.valid { border-style: solid; border-color: var(--good); background: rgba(140, 230, 140, 0.16); }
.well.shake { animation: shake 0.3s; border-color: var(--coral); }
@keyframes shake { 25% { transform: translateX(-7px) } 50% { transform: translateX(6px) } 75% { transform: translateX(-4px) } }
.msg { min-height: 22px; text-align: center; font-weight: 800; font-size: 15px; color: var(--gold); }
.msg.bad { color: #ffb3a3; }
.actions { display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 10px; }
.actions .btn { padding: 0 8px; font-size: 17px; }
.float {
  position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); pointer-events: none; white-space: nowrap; text-align: center;
  font-weight: 900; font-size: 44px; color: var(--gold); text-shadow: 0 3px 0 var(--gold-deep), 0 6px 14px rgba(0, 0, 0, 0.5);
  animation: rise 1.1s ease-out forwards; z-index: 3;
}
.float small { display: block; font-size: 17px; color: #fff; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6); }
@keyframes rise { 0% { opacity: 0; transform: translate(-50%, -20%) scale(0.6) } 18% { opacity: 1; transform: translate(-50%, -50%) scale(1.1) } 75% { opacity: 1 } 100% { opacity: 0; transform: translate(-50%, -120%) } }

/* ---------- Overlay cards (start, pause, results) ---------- */
.overlay { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 16px; overflow-y: auto; background: linear-gradient(160deg, var(--plum), var(--blue) 48%, var(--teal)); }
.card { box-sizing: border-box; min-width: 0; width: min(440px, 100%); padding: 26px 22px; border-radius: 28px; background: var(--panel); border: 1px solid var(--line); text-align: center; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); }
.card h1 { margin: 0 0 4px; font-size: 30px; font-weight: 900; }
.card .eyebrow { font-size: 13px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mint); margin-bottom: 6px; }
.card p { color: var(--soft); font-weight: 600; line-height: 1.45; margin: 8px 0; }
.card .stack { display: grid; gap: 12px; margin-top: 18px; }
.steps { list-style: none; margin: 16px 0 4px; padding: 0; display: grid; gap: 10px; text-align: left; }
.steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; font-weight: 700; line-height: 1.35; }
.steps .n { width: 34px; height: 34px; border-radius: 11px; background: var(--bone); color: var(--ink); font-weight: 900; display: grid; place-items: center; box-shadow: 0 3px 0 var(--bone-edge); }
.bigscore { font-size: 76px; font-weight: 900; line-height: 1; color: var(--gold); text-shadow: 0 4px 0 var(--gold-deep); margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 99px; background: var(--coral); color: #fff; font-weight: 900; font-size: 14px; margin-bottom: 4px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 10px; }
.stats div { padding: 10px 4px; border-radius: 16px; background: rgba(0, 0, 0, 0.22); }
.stats b { display: block; font-size: 24px; line-height: 30px; height: 30px; font-weight: 900; }
.stats span { font-size: 12px; font-weight: 800; color: var(--soft); text-transform: uppercase; letter-spacing: 0.06em; }
.card .label { margin: 14px 0 6px; font-size: 12px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: #62e2d0; }
.sharecard { text-align: left; padding: 12px 14px; border-radius: 18px 18px 18px 5px; background: linear-gradient(180deg, var(--tray-lit), var(--tray)); box-shadow: inset 0 2px 0 var(--tray-lip), inset 0 -3px 0 rgba(0, 0, 0, 0.22); color: #fff; font-weight: 700; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.sharecard .top { font-weight: 900; font-size: 16px; color: var(--gold); }
.bestword { display: flex; gap: 5px; justify-content: center; align-items: center; margin: 8px 0 12px; }
.bestword .tile { cursor: default; }
.bestword b { margin-left: 8px; font-size: 24px; font-weight: 900; color: var(--gold); }
.quiet { display: inline-block; margin-top: 16px; padding: 6px 10px; color: var(--soft); font-weight: 800; font-size: 15px; }
.board.choosing .tile:not(.picked)::before { content: ""; position: absolute; inset: -3px; border-radius: inherit; border: 2px solid var(--coral); opacity: 0; pointer-events: none; animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 50% { opacity: 0.85 } }
.words { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 10px 0; max-height: 120px; overflow-y: auto; }
.words span { padding: 4px 10px; border-radius: 10px; background: var(--bone); color: var(--ink); font-weight: 900; font-size: 14px; }
.words span i { font-style: normal; color: var(--coral-deep); margin-left: 5px; }
.next { font-weight: 800; color: var(--soft); margin-top: 12px; }
.next b { color: #fff; font-variant-numeric: tabular-nums; }

/* ---------- Site pages ---------- */
.site { max-width: 980px; margin: 0 auto; padding: 0 20px; }
.hero { padding: 44px 0 20px; text-align: center; }
.wordmark { display: grid; gap: 14px; justify-items: center; margin: 0 auto 22px; }
.wordmark .row { display: flex; gap: 7px; }
.wordmark .tile { --s: clamp(46px, 13.5vw, 84px); cursor: default; animation: wm 7s ease-in-out infinite; animation-delay: calc(var(--i) * 0.22s); }
.wordmark .row.or .tile { --s: clamp(34px, 9.5vw, 58px); }
@keyframes wm { 0%, 86%, 100% { transform: none } 93% { transform: rotateY(180deg) translateY(-4px) } }
.wordmark .tile .letter { backface-visibility: visible; }
.tagline { font-size: clamp(22px, 5vw, 34px); font-weight: 900; margin: 0 0 8px; }
.tagline span { display: inline-block; }
.lede { max-width: 560px; margin: 0 auto; color: var(--soft); font-size: 18px; font-weight: 600; line-height: 1.5; }
.cta { display: grid; gap: 14px; grid-template-columns: 1fr; max-width: 420px; margin: 26px auto 10px; }
.today { min-height: 24px; font-weight: 800; color: var(--gold); }
.free-note { color: var(--soft); font-weight: 700; font-size: 15px; margin-top: 6px; }
.how { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 36px 0; }
.how article { padding: 22px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); text-align: center; }
.how h3 { margin: 12px 0 6px; font-size: 21px; font-weight: 900; }
.how p { margin: 0; color: var(--soft); font-weight: 600; line-height: 1.45; }
.how .demo { display: flex; gap: 6px; justify-content: center; align-items: center; min-height: 64px; }
.how .tile { --s: 52px; cursor: default; }
.how .arrow { font-size: 26px; font-weight: 900; color: var(--gold); padding: 0 4px; }
h2.section { text-align: center; font-size: 28px; font-weight: 900; margin: 44px 0 0; }
.footer { margin-top: 48px; padding: 24px 0 36px; border-top: 1px solid var(--line); text-align: center; color: var(--soft); font-weight: 600; font-size: 15px; line-height: 1.7; }
.footer nav { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }
.footer a { color: #fff; font-weight: 800; }
.topbar { padding: 18px 0; display: flex; align-items: center; justify-content: space-between; }
.topbar .brand { display: flex; gap: 4px; text-decoration: none; }
.topbar .brand .tile { --s: 30px; --d: 3px; cursor: pointer; }
.doc { max-width: 720px; margin: 0 auto; padding: 8px 0 20px; }
.doc h1 { font-size: 36px; font-weight: 900; margin: 16px 0 4px; }
.doc h2 { font-size: 22px; font-weight: 900; margin: 30px 0 8px; color: var(--gold); }
.doc p, .doc li { color: rgba(255, 255, 255, 0.9); font-size: 17px; line-height: 1.6; font-weight: 500; }
.doc .date { color: var(--soft); font-weight: 700; }
.doc .box { padding: 16px 20px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); }
.doc details { padding: 14px 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); margin: 10px 0; }
.doc summary { font-weight: 900; font-size: 18px; cursor: pointer; }

@media (min-width: 760px) {
  .how { grid-template-columns: repeat(3, 1fr); }
  .cta { grid-template-columns: 1fr 1fr; max-width: 560px; }
  .hero { padding-top: 64px; }
}
@media (min-width: 980px) {
  .site { max-width: 1120px; }
  .hero { display: grid; grid-template-columns: auto 1fr; gap: 64px; align-items: center; text-align: left; padding: 72px 0 28px; }
  .wordmark { margin: 0; gap: 16px; }
  .wordmark .tile { --s: 88px; }
  .wordmark .row.or .tile { --s: 60px; }
  .tagline { font-size: 46px; line-height: 1.08; margin-bottom: 14px; }
  .hero .lede { margin: 0; font-size: 21px; max-width: 540px; }
  .hero .cta { margin: 30px 0 14px; max-width: 580px; }
  .hero .btn.big { min-height: 82px; font-size: 24px; padding: 0 16px; white-space: nowrap; }
  .hero .btn small { font-size: 15px; }
  .today { font-size: 18px; }
  .how { margin-top: 24px; gap: 22px; }
  .how article { padding: 28px; }
  .how .tile { --s: 62px; }
  .how p { font-size: 17px; }
  h2.section { font-size: 34px; margin-top: 36px; }
}
/* Wide screens: big board on the left, the turn on the right */
.side { display: none; }
@media (min-width: 1100px) and (min-height: 600px) {
  .game {
    --col: 460px; --rt: calc((var(--col) - 36px) / 7);
    --bt: min(160px, calc((100vw - 620px) / 4), calc((100dvh - 150px) / 3.27));
    box-sizing: border-box; width: auto; display: grid; justify-content: center; align-content: center;
    grid-template-columns: calc(var(--bt) * 4 + 48px) var(--col);
    grid-template-rows: repeat(9, auto);
    column-gap: 48px; row-gap: 12px; min-height: 100dvh; padding: 20px 0;
  }
  .tray { grid-column: 1; grid-row: 1 / 9; align-self: center; }
  .side.keys { grid-column: 1; grid-row: 9; text-align: center; }
  .hud, .prompt, .well, .msg, .rack, .actions, .side.right, .side.left { grid-column: 2; }
  .hud { grid-row: 1; } .prompt { grid-row: 2; } .well { grid-row: 3; } .msg { grid-row: 4; }
  .rack { grid-row: 5; } .actions { grid-row: 6; } .side.right { grid-row: 7; } .side.left { grid-row: 8; }
  .hud { gap: 16px; }
  .hud .home { width: 44px; height: 44px; font-size: 28px; }
  .hud-score .lbl { font-size: 13px; }
  .hud-score b { font-size: 46px; }
  .lvlrow { font-size: 18px; margin-bottom: 7px; }
  .chip { font-size: 15px; padding: 3px 10px; }
  .bar { height: 14px; }
  .clock { width: 76px; height: 76px; }
  .clock b { font-size: 27px; }
  .prompt { min-height: 60px; font-size: 22px; }
  .prompt .sub { font-size: 16px; }
  .die { width: 48px; height: 48px; padding: 7px; }
  .well { min-height: calc(var(--rt) + 26px); border-radius: 22px; }
  .well .hint { font-size: 17px; }
  .msg { font-size: 17px; min-height: 24px; }
  .actions .btn { min-height: 62px; font-size: 20px; border-radius: 18px; }
  .side { display: block; }
  .side.right, .side.left { padding: 12px 16px 14px; border-radius: 18px; background: rgba(0, 0, 0, 0.2); border: 1px solid var(--line); }
  .side h2 { margin: 0 0 8px; font-size: 13px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: #62e2d0; }
  .side ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 5px 18px; }
  .side li { display: flex; justify-content: space-between; gap: 7px; font-weight: 700; font-size: 15px; line-height: 1.3; }
  .side li b { color: var(--gold); font-weight: 900; white-space: nowrap; }
  .side .empty { margin: 0; color: var(--soft); font-weight: 600; font-size: 15px; line-height: 1.4; }
  .side .words { justify-content: flex-start; min-height: 34px; max-height: 76px; margin: 0; }
  .side kbd { font: inherit; font-weight: 900; padding: 1px 7px; border-radius: 7px; background: rgba(255,255,255,0.16); }
}
/* Short wide windows: drop the scoring panel and tighten so nothing scrolls. */
@media (min-width: 1100px) and (min-height: 600px) and (max-height: 739px) {
  .game { row-gap: 8px; padding: 10px 0; }
  .side.left { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tile, .tile.flipping, .tile.pop, .wordmark .tile, .die.roll, .float, .clock.low b { animation: none !important; transition: none !important; }
  .float { opacity: 1; }
  .board.choosing .tile:not(.picked)::before { animation: none; opacity: 0.6; }
}
