/* Putt It in Words: the site. The game's own colours, type and chunky buttons. */
:root {
  --ink: #101b3c; --ink-2: #33406a; --muted: #56618a;
  --cobalt: #1738ef; --cobalt-dark: #0b1f9c; --sky: #1e8ef0;
  --orange: #ff8500; --orange-light: #ffb12b; --orange-dark: #b85c00;
  --gold: #ffc328; --mint: #c9f3db; --green: #09675e; --felt: #0a6b57;
  --coral: #ffa596; --cyan: #00d9fa; --ice: #eef3ff; --line: #dce3ff;
  --gut: clamp(16px, 4vw, 40px);
  --top: 76px;
  --font: "Nunito", ui-rounded, "Segoe UI", system-ui, sans-serif;
}
@media (max-width: 759px) { :root { --top: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-weight: 600; font-size: 18px; line-height: 1.5; color: var(--ink); background: #0a6b57; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 900; line-height: 1.05; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 8px; }
.wrap { width: min(1200px, 100% - 2 * var(--gut)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 12px; background: #fff; color: var(--ink); font-weight: 800; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  --face: linear-gradient(#3e5cff, var(--cobalt)); --edge: var(--cobalt-dark); --txt: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border: 0; border-radius: 18px;
  background: var(--face); color: var(--txt); font-weight: 900; font-size: 19px; line-height: 1.1;
  text-align: center; text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: 0 6px 0 var(--edge), inset 0 2px 0 rgb(255 255 255 / .35), 0 14px 24px -12px rgb(16 27 60 / .55);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--edge), inset 0 2px 0 rgb(255 255 255 / .35), 0 6px 12px -8px rgb(16 27 60 / .5); }
.btn--orange { --face: linear-gradient(var(--orange-light), var(--orange)); --edge: var(--orange-dark); --txt: var(--ink); }
.btn--blue { --face: linear-gradient(#3e5cff, var(--cobalt)); --edge: var(--cobalt-dark); --txt: #fff; }
.btn--white { --face: #fff; --edge: var(--cobalt-dark); --txt: var(--cobalt); outline: 3px solid var(--cobalt); outline-offset: -3px; }
.btn--sm { min-height: 44px; padding: 0 18px; border-radius: 14px; font-size: 16px; box-shadow: 0 4px 0 var(--edge), inset 0 2px 0 rgb(255 255 255 / .35); }
.btn--sm:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge); }
.btns { display: flex; flex-wrap: wrap; gap: 14px 12px; padding-bottom: 6px; }
.btns--center { justify-content: center; }
@media (max-width: 559px) { .btns .btn { flex: 1 1 100%; } }

.link-btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; border: 0; background: none;
  color: var(--cobalt); font-weight: 800; font-size: 16px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer;
}
.link-btn:disabled { color: #9aa3c2; cursor: default; text-decoration: none; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 14px; border-radius: 999px;
  font-weight: 900; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.pill--blue { background: var(--cobalt); color: #fff; }
.pill--gold { background: var(--gold); color: var(--ink); }

.panel {
  background: #fff; border-radius: 30px; padding: clamp(22px, 3vw, 34px);
  box-shadow: 0 8px 0 rgb(16 27 60 / .16), 0 30px 60px -24px rgb(16 27 60 / .55);
}

/* Letter tiles. A row sets --n (its letter count); each tile takes its share of the row, 72px at most. */
.tiles { --n: 4; --gap: clamp(6px, 1.6cqi, 12px); --max: 84px; container-type: inline-size; display: flex; justify-content: center; gap: var(--gap); }
.tiles > span {
  --t: min(var(--max), (100cqi - (var(--n) - 1) * var(--gap)) / var(--n));
  display: grid; place-items: center; flex: none; width: var(--t); height: var(--t);
  border-radius: calc(var(--t) * .22); background: #fff; color: var(--ink);
  border: 3px solid var(--line); box-shadow: 0 calc(var(--t) * .07) 0 #bcc6e6;
  font-weight: 900; font-size: calc(var(--t) * .56); line-height: 1;
}
.tiles > span.is-new { background: #c8f6ff; border-color: #00b8d9; box-shadow: 0 calc(var(--t) * .07) 0 #0098b4; }
.tiles > span.is-hot { background: #ffe5df; border-color: var(--coral); box-shadow: 0 calc(var(--t) * .07) 0 #e07a68; }
.tiles--pin > span { background: var(--mint); border-color: #8fd1ad; color: var(--green); box-shadow: 0 calc(var(--t) * .07) 0 #6dbb92; }

/* ---------------------------------------------------------------- header */
.top { position: absolute; inset: 0 0 auto; z-index: 10; }
.top__bar { display: flex; align-items: center; gap: 20px; height: var(--top); }
.top__home { flex: none; display: block; }
.top__home img { height: calc(var(--top) - 16px); width: auto; filter: drop-shadow(0 3px 0 rgb(16 27 60 / .25)); }
.top__nav { display: flex; gap: 6px; margin-left: auto; }
.top__nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
  color: #fff; font-weight: 800; font-size: 16px; text-decoration: none; text-shadow: 0 2px 0 rgb(16 27 60 / .35);
  background: rgb(16 27 60 / .84);
}
.top__nav a:hover { background: var(--ink); }
.top .btn { margin-left: auto; }
@media (min-width: 900px) { .top__nav + .btn { margin-left: 4px; } }
@media (max-width: 899px) { .top__nav { display: none; } }
@media (max-width: 699px) { .top__home { display: none; } }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; isolation: isolate; min-height: 100svh; display: flex; overflow: hidden; background: var(--sky); }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); padding-top: calc(var(--top) + 8px); }
.hero__copy { display: flex; flex-direction: column; align-items: center; }
.hero__crest { width: clamp(240px, min(36vw, 50svh), 470px); height: auto; filter: drop-shadow(0 6px 0 rgb(16 27 60 / .22)) drop-shadow(0 18px 28px rgb(16 27 60 / .3)); }
.hero__panel { width: min(100%, 580px); margin-top: clamp(12px, 2svh, 22px); }
.hero__panel h1 { font-size: clamp(30px, 3.8vw, 48px); }
.hero__panel p { margin-top: 12px; font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); }
.hero__panel .btns { margin-top: 22px; }
.hero__note { margin-top: 14px !important; font-size: 15px !important; font-weight: 800; color: var(--muted) !important; }
.hero__mascot { display: none; }

@media (min-width: 700px) {
  .hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: end; gap: 24px; }
  .hero__mascot {
    display: block; justify-self: center; align-self: end; width: auto; height: min(560px, 58svh);
    margin-bottom: clamp(16px, 4svh, 48px); filter: drop-shadow(0 20px 18px rgb(16 40 20 / .35));
  }
  .hero__copy { align-self: center; padding-bottom: clamp(24px, 5svh, 64px); }
  .hero__bg img { object-position: 60% 100%; }
}
@media (max-width: 699px) {
  .hero__grid { width: min(620px, 100% - 2 * var(--gut)); padding-bottom: 40px; align-content: start; }
}
@media (min-width: 700px) and (max-width: 959px) {
  .hero__mascot { height: min(440px, 46svh); }
  .hero__crest { width: min(100%, 340px); }
}
@media (min-width: 1800px) {
  .wrap { width: min(1440px, 100% - 2 * var(--gut)); }
  .hero__mascot { height: min(720px, 60svh); }
  .hero__crest { width: min(560px, 50svh); }
  .hero__panel { width: min(100%, 660px); }
  .hero__panel h1 { font-size: 56px; }
  .hero__panel p { font-size: 21px; }
}
@media (max-width: 759px) {
  .hero__bg img { object-position: 50% 0; }
  .hero__crest { width: min(78%, 300px, 28svh * 1.62); margin-top: 4px; }
}
@media (max-width: 699px) { .hero__grid { padding-top: 12px; } .top__bar { height: 60px; } .hero__crest { margin-top: 44px; } }

/* ---------------------------------------------------------------- shared section heads */
.head { max-width: 760px; margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; }
.head h2 { font-size: clamp(36px, 5.4vw, 64px); }
.head p:not(.eyebrow) { margin-top: 14px; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); }
.head--light { color: #fff; }
.head--light h2 { text-shadow: 0 4px 0 rgb(0 0 0 / .18); }
.head--light p:not(.eyebrow) { color: rgb(255 255 255 / .88); }
.eyebrow {
  display: inline-block; margin-bottom: 14px; padding: 6px 14px; border-radius: 999px;
  background: var(--gold); color: var(--ink); font-weight: 900; font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
}
.eyebrow--blue { background: var(--cobalt); color: #fff; }

/* ---------------------------------------------------------------- play a hole */
.play {
  padding: clamp(64px, 9vw, 120px) 0;
  background:
    repeating-linear-gradient(90deg, rgb(255 255 255 / .04) 0 90px, transparent 90px 180px),
    radial-gradient(120% 80% at 50% 0%, #14967a 0%, var(--felt) 50%, #054537 100%);
}
.play__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 960px) { .play__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; } }

.game {
  position: relative; background: #fff; border-radius: 32px; padding: clamp(18px, 3vw, 32px);
  box-shadow: 0 10px 0 #033a2e, 0 34px 60px -24px rgb(0 0 0 / .55);
}
.game.is-shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.game__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.game__route { container-type: inline-size; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; margin-top: 16px; }
.game__end { padding: 10px 12px; border-radius: 18px; background: var(--ice); min-width: 0; }
.game__end--pin { background: var(--mint); text-align: right; }
.game__label { display: block; margin-bottom: 4px; line-height: 1.3; white-space: nowrap; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.game__word { display: block; font-weight: 900; font-size: min(32px, 8.6cqi); letter-spacing: .04em; line-height: 1.25; }
.game__end--pin .game__word { color: var(--green); }
.game__arrow { width: 36px; color: var(--orange); }

.game__msg { min-height: 1.5em; margin-top: 14px; text-align: center; font-weight: 800; font-size: 16px; color: var(--ink-2); }
.game__msg.is-bad { color: #c2410c; }
.game__msg.is-good { color: var(--green); }

.strokes { margin-top: 14px; border-radius: 18px; overflow: hidden; background: var(--ice); }
.strokes:empty { display: none; }
.strokes li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: baseline; gap: 10px; padding: 9px 16px; border-top: 2px solid #fff; }
.strokes li:first-child { border-top: 0; }
.strokes .n { color: var(--muted); font-weight: 800; font-size: 15px; }
.strokes .w { font-weight: 900; font-size: 19px; letter-spacing: .05em; overflow-wrap: anywhere; }
.strokes .c { color: var(--muted); font-weight: 800; font-size: 15px; white-space: nowrap; }
.strokes li.is-pin { background: var(--mint); }

.game__done { text-align: center; padding-top: 18px; }
.medal { position: relative; width: 150px; margin: 0 auto; }
.medal img { width: 100%; height: auto; }
.medal__num { position: absolute; left: 0; right: 0; top: 41%; transform: translateY(-50%); font-weight: 900; font-size: 46px; color: #7a3f00; line-height: 1; }
.medal__num.is-long { font-size: 34px; }
.game__result { margin: 8px 0 6px; font-weight: 900; font-size: clamp(34px, 5vw, 44px); line-height: 1.25; }
.game__summary { color: var(--muted); font-weight: 800; }
.game__done .strokes { text-align: left; margin-bottom: 22px; }
.burst { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: 32px; }
.burst i { position: absolute; top: 30%; left: 50%; width: 10px; height: 14px; border-radius: 3px; animation: fly 1.1s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes fly { to { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } }

.rules { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
@media (min-width: 960px) { .rules { grid-template-columns: 1fr; } }
.rule { container-type: inline-size; background: #fff; border-radius: 24px; padding: 18px 20px 22px; box-shadow: 0 6px 0 #033a2e; }
.rule h3 { font-size: 21px; margin-bottom: 14px; }
.rule__ex { display: flex; align-items: center; gap: 10px; }
.rule__ex svg { flex: none; width: 24px; color: var(--orange); }
.mini { --t: min(36px, (100cqi - 34px - 7 * 5px) / 8); display: flex; gap: 5px; }
@container (max-width: 300px) {
  .rule__ex { flex-direction: column; align-items: flex-start; gap: 6px; }
  .rule__ex svg { transform: rotate(90deg); margin-left: 6px; }
  .mini { --t: min(36px, (100cqi - 3 * 5px) / 4); }
}
.mini span {
  display: grid; place-items: center; width: var(--t); height: var(--t); border-radius: calc(var(--t) * .24);
  background: #fff; border: 2px solid var(--line); box-shadow: 0 3px 0 #bcc6e6; font-weight: 900; font-size: calc(var(--t) * .55); line-height: 1;
}
.mini span.is-new { background: #c8f6ff; border-color: #00b8d9; box-shadow: 0 3px 0 #0098b4; }
.mini span.is-hot { background: #ffe5df; border-color: var(--coral); box-shadow: 0 3px 0 #e07a68; }
.rule--note { display: flex; gap: 14px; align-items: flex-start; background: #08493c; box-shadow: 0 6px 0 #033a2e; color: #fff; font-weight: 800; }
.rule__icon { flex: none; width: 28px; height: 28px; color: var(--cyan); }

/* ---------------------------------------------------------------- today */
.today {
  padding: clamp(64px, 9vw, 120px) 0;
  background:
    radial-gradient(rgb(255 255 255 / .09) 1.5px, transparent 1.6px) 0 0 / 26px 26px,
    radial-gradient(90% 60% at 50% 0%, #24408f 0%, transparent 70%),
    linear-gradient(180deg, #1a2c6b 0%, #14214f 55%, var(--ink) 100%);
}
.board {
  max-width: 900px; margin: 0 auto; background: #fff; border-radius: 34px; padding: clamp(20px, 4vw, 44px);
  box-shadow: 0 10px 0 #0a1230, 0 40px 70px -30px rgb(0 0 0 / .6);
}
.board__meta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 14px; }
.board__date { font-weight: 900; font-size: 18px; color: var(--muted); }
.board__words { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(10px, 2vw, 24px); margin-top: clamp(22px, 3vw, 34px); }
.board__word { --max: 72px; }
.board__arrow { width: clamp(32px, 4vw, 48px); color: var(--orange); }
.board__foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-top: clamp(26px, 3vw, 36px); padding-top: 20px; border-top: 3px solid var(--ice); }
.board__par { font-weight: 900; font-size: 22px; }
.board__par b { font-size: 34px; margin-left: 4px; }
.board__clock { font-weight: 800; color: var(--muted); }
.board__clock b { display: inline-block; min-width: 6.2ch; color: var(--ink); font-size: 22px; font-variant-numeric: tabular-nums; }
@media (max-width: 639px) {
  .board__words { grid-template-columns: minmax(0, 1fr); justify-items: stretch; }
  .board__arrow { justify-self: center; transform: rotate(90deg); }
  .board__foot { justify-content: center; text-align: center; }
}

.recent { max-width: 900px; margin: clamp(36px, 5vw, 56px) auto 0; }
.recent h3 { color: #fff; font-size: clamp(22px, 2.4vw, 28px); text-align: center; margin-bottom: 18px; }
.recent__list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.recent__list li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 2px 12px;
  padding: 12px 18px 14px; border-radius: 18px; background: rgb(255 255 255 / .12); border: 2px solid rgb(255 255 255 / .22); color: #fff;
}
.recent__list b { color: var(--gold); font-weight: 900; font-size: 16px; }
.recent__route { grid-column: 1 / -1; grid-row: 2; font-weight: 900; font-size: 20px; letter-spacing: .03em; overflow-wrap: anywhere; }
.recent__par { grid-column: 2; grid-row: 1; justify-self: end; font-weight: 800; font-size: 15px; color: rgb(255 255 255 / .78); white-space: nowrap; }

/* ---------------------------------------------------------------- in the app */
.more { padding: clamp(64px, 9vw, 120px) 0; background: linear-gradient(180deg, #bfe6ff 0%, #e8f6ff 100%); }
.shots { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shot { background: #fff; border-radius: 28px; padding: 14px 14px 24px; box-shadow: 0 8px 0 #9ccbe8, 0 30px 50px -30px rgb(16 27 60 / .45); }
.phone { aspect-ratio: 720 / 768; overflow: hidden; border-radius: 20px; border: 5px solid var(--ink); background: var(--ink); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.shot h3 { margin: 18px 8px 0; font-size: 24px; }
.shot p { margin: 6px 8px 0; font-size: 17px; color: var(--ink-2); }
@media (min-width: 600px) and (max-width: 899px) { .shots { gap: 14px; } .shot h3 { font-size: 20px; } .shot p { font-size: 15px; } }
@media (max-width: 599px) {
  .shots {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; gap: 14px;
    overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 22px; scrollbar-width: none;
    mask-image: linear-gradient(90deg, #000 82%, transparent);
  }
  .shots::-webkit-scrollbar { display: none; }
  .shot { scroll-snap-align: start; }
  .shots.is-end { mask-image: linear-gradient(90deg, transparent, #000 18%); }
}
.dots { display: none; justify-content: center; gap: 8px; margin-top: 4px; }
.dots span { width: 10px; height: 10px; border-radius: 50%; background: #9ccbe8; transition: background .2s, width .2s; }
.dots span.is-on { width: 26px; border-radius: 6px; background: var(--cobalt); }
@media (max-width: 599px) { .dots { display: flex; } }

/* ---------------------------------------------------------------- download */
.get {
  padding: clamp(56px, 8vw, 110px) 0 clamp(64px, 9vw, 120px);
  background:
    repeating-linear-gradient(90deg, rgb(255 255 255 / .06) 0 90px, transparent 90px 180px),
    linear-gradient(180deg, #7fd957 0%, #3fae3b 55%, #2a8a30 100%);
}
.get__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; justify-items: center; }
.get__mascot { width: clamp(180px, 26vw, 330px); height: auto; filter: drop-shadow(0 18px 16px rgb(16 40 20 / .35)); }
.get__panel { width: min(100%, 620px); text-align: center; }
.get__panel h2 { font-size: clamp(36px, 5vw, 60px); }
.get__panel p { margin-top: 12px; color: var(--ink-2); }
@media (min-width: 900px) {
  .get__grid { grid-template-columns: auto minmax(0, 620px); justify-content: center; align-items: center; gap: 48px; }
  .get__panel { text-align: left; }
  .get__panel .stores { justify-content: flex-start; }
}
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.store { display: inline-flex; border-radius: 12px; transition: transform .12s; }
.store:hover { transform: translateY(-2px); }
.store__badge { height: 60px; width: auto; }
.store-soon { flex-basis: 100%; margin: 0 !important; font-size: 15px !important; font-weight: 800; color: var(--muted) !important; }

/* ---------------------------------------------------------------- footer */
.foot { background: var(--ink); color: #dfe6ff; padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; justify-items: center; text-align: center; }
.foot__crest { width: 120px; height: auto; }
.foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 6px; }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-weight: 800; font-size: 16px; text-decoration: none; }
.foot__links a:hover { text-decoration: underline; }
.foot__legal { font-size: 14px; color: #8f9bc4; }
@media (min-width: 900px) {
  .foot__grid { grid-template-columns: auto 1fr auto; align-items: center; text-align: left; }
  .foot__links { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@container (max-width: 300px) { .wide-only { display: none; } }
.hero__panel .btns .btn { flex: 1 1 auto; }

/* ---------------------------------------------------------------- share-link landings and 404 */
.land__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 14px !important; }
.land__date { font-weight: 900; color: var(--muted); }
.land__date:empty { display: none; }
.land__code { font-weight: 900; font-size: 20px; letter-spacing: .14em; color: var(--green); }
.hero__panel .stores { margin-top: 18px; }
.stores--left { justify-content: flex-start; }
.hero__panel .btns:not(:has(> :not([hidden]))) { display: none; }
@media (max-width: 599px) { .recent__list li:nth-child(n + 4) { display: none; } }
@media (max-width: 699px) and (max-height: 700px) { .hero__crest { width: min(62%, 220px); margin-top: 40px; } }
.store-beta { flex-basis: 100%; font-weight: 900; font-size: 16px; color: var(--cobalt); text-decoration: underline; text-underline-offset: 3px; padding: 10px 0; }
.store-beta:hover { color: var(--ink); }

/* ---------------------------------------------------------------- the sample hole: rack, keyboard, actions (as in the app) */
.game:focus { outline: none; }
.meter {
  display: flex; justify-content: center; gap: 0; margin: 18px auto 0; width: fit-content; border-radius: 14px; overflow: hidden;
  background: var(--cobalt); color: #dfe6ff; font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
}
.meter span { display: flex; align-items: baseline; gap: 8px; padding: 6px 16px; }
.meter span + span { border-left: 2px solid rgb(255 255 255 / .3); }
.meter b { font-size: 22px; color: #fff; letter-spacing: 0; }
.rack { margin-top: 14px; padding: 14px 12px; border-radius: 22px; background: var(--cobalt); box-shadow: inset 0 -6px 0 rgb(0 0 0 / .18); }
.rack__tiles { --max: 72px; }
.tile {
  --t: min(var(--max), (100cqi - (var(--n) - 1) * var(--gap)) / var(--n));
  display: grid; place-items: center; flex: none; width: var(--t); height: var(--t); padding: 0;
  border-radius: calc(var(--t) * .22); background: #fffaf0; color: var(--ink); border: 0;
  box-shadow: 0 calc(var(--t) * .08) 0 #c9b98f; font: inherit; font-weight: 900; font-size: calc(var(--t) * .56); line-height: 1;
  cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; transition: transform .12s;
}
.tile:disabled { cursor: default; }
.tile.is-held { cursor: ns-resize; }
.tile:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.tile.is-on { background: #6ee3ff; box-shadow: 0 calc(var(--t) * .08) 0 #08a6c9; transform: translateY(-3px); }
.tile.is-blank { background: #c8f6ff; box-shadow: inset 0 0 0 3px #08a6c9; position: relative; }
.tile.is-blank::after { content: ""; width: 3px; height: 46%; border-radius: 2px; background: var(--ink); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.tile.is-wiggle { animation: wiggle 1.2s ease-in-out infinite; }
@keyframes wiggle { 0%, 100% { transform: translateY(-3px) rotate(0); } 25% { transform: translateY(-3px) rotate(-3deg); } 75% { transform: translateY(-3px) rotate(3deg); } }
.rack__tiles.is-shake { animation: shake .35s; }
.rack__edit {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 44px; margin-top: 12px; padding: 4px 6px 0;
  border: 0; border-top: 2px solid rgb(255 255 255 / .3); background: none; color: #fff; font: inherit; font-weight: 900; font-size: 17px; letter-spacing: .03em; cursor: pointer;
}
.rack__x { font-size: 28px; line-height: 1; color: #6ee3ff; }
.game__msg { margin-top: 12px; min-height: 3em; }
.keys { container-type: inline-size; display: grid; gap: 7px; margin-top: 4px; }
.keys[hidden] { display: none; }
.keys__row { --k: calc((100cqi - 9 * 5px) / 10); display: flex; justify-content: center; gap: 5px; }
.key {
  flex: none; width: var(--k); height: 46px; padding: 0; border: 0; border-radius: 9px; background: #fff; color: var(--ink);
  box-shadow: 0 0 0 2px var(--line), 0 4px 0 #bcc6e6; font: inherit; font-weight: 900; font-size: min(20px, calc(var(--k) * .62)); cursor: pointer;
}
.key:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 0 0 2px var(--line), 0 2px 0 #bcc6e6; }
.key:disabled { color: #a6adc4; background: #eef0f6; cursor: default; }
.key--del { width: calc(var(--k) * 1.6 + 5px); font-size: min(16px, calc(var(--k) * .5)); }
.limit { margin-top: 4px; padding: 16px; border-radius: 18px; background: var(--ice); text-align: center; color: var(--muted); font-weight: 800; }
.limit__title { font-size: 22px; font-weight: 900; color: var(--ink); }
.game__actions { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 10px; margin-top: 16px; }
.game__actions .btn { font-size: 18px; }
.game__actions .btn { width: 100%; min-height: 54px; padding: 0 12px; }
.game__actions .btn[hidden] { display: none; }
.btn:disabled { filter: grayscale(.85) opacity(.55); cursor: default; transform: none; }
.rule__how { margin: 2px 0 10px; color: var(--muted); font-weight: 700; font-size: 15px; line-height: 1.4; }
@media (prefers-reduced-motion: reduce) { .tile.is-blank::after { animation: none; } }
.keys__hint { display: none; margin-top: 12px; text-align: center; color: var(--muted); font-weight: 700; font-size: 14px; }
@media (hover: hover) and (pointer: fine) { .keys__hint { display: block; } }
.game__msg:empty { min-height: 0; margin-top: 4px; }
