/* =====================================================================
   WORD BABEL — THE GAME
   House palette and fonts. Words from the corpus are set in Winky Rough:
   Felix Titling and Cinzel are caps-only and would turn *ḱr̥sós into
   *ḰR̥SÓS — in an etymology game, case is data.
   ===================================================================== */
:root {
  --gm-cream: #fbfaf4;
  --gm-paper: #fffdf6;
  --gm-ink: #43340f;
  --gm-dim: #8d7a3f;
  --gm-line: #e4dabb;
  --gm-gold: #b58f2e;
  --gm-gold-soft: #f3e7c4;
  --gm-grey: #d3cbb4;
  --gm-grey-ink: #b3a98c;
  --gm-blue: #2f6fb5;
  --gm-green: #2f8a4a;
  --gm-red: #b03a1c;
  --gm-chrome: 160px;          /* the site's bottom chrome; game.js measures the real figure */
  --gm-display: "Felix Titling", "Cinzel", Georgia, serif;
  --gm-panel: "Cinzel", Georgia, serif;
  --gm-body: "Winky Rough", "Trebuchet MS", sans-serif;
}

/* ---------------------------------------------------------------------
   OPENING SCREEN AND GAME LISTS
   Full-bleed cream, as the hero and the viz pages: the shared 85%-wide
   card and the papyrus margin are for the old inner pages, not these.
   --------------------------------------------------------------------- */
.content-shell:has(.gm-page),
.content-shell:has(.gm-play) { width: 100%; }
.content_wrapper:has(.gm-page),
.content_wrapper:has(.gm-play) {
  width: 100%; max-width: none; margin: 0; padding: 0; min-height: 100vh; min-height: 100dvh;
  border-radius: 0; box-shadow: none; background: var(--gm-cream); background-image: none;
}
body:has(.gm-page), body:has(.gm-play) { background: var(--gm-cream); }

.gm-page {
  min-height: 100vh; min-height: 100dvh; box-sizing: border-box;
  padding: clamp(28px, 6vh, 72px) 16px calc(var(--gm-chrome) + 40px);
  background: var(--gm-cream); color: var(--gm-ink); font-family: var(--gm-body);
  max-width: 960px; margin: 0 auto;
}
.gm-hero { text-align: center; margin-bottom: clamp(22px, 4vh, 44px); }
.gm-hero-art { width: min(240px, 58vw); height: auto; display: block; margin: 0 auto clamp(10px, 2vh, 20px); }
.gm-hero-art .a-halo { fill: var(--gm-gold); fill-opacity: .18; stroke: var(--gm-gold); stroke-opacity: .6; stroke-width: 1.5;
  transform-box: fill-box; transform-origin: center; animation: gm-pulse 2.4s ease-in-out infinite; }
.gm-headline { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 2vw, 20px); }
/* the site's multicolour rule, as under the home title */
.gm-rule {
  flex: 0 1 clamp(24px, 10vw, 120px); height: 1.5px;
  background: linear-gradient(90deg, #e5342f, #f4791f, #f7d417, #38b24a, #1f8fe0, #6a3ec8, #e5342f);
  background-size: 200% 100%; animation: gm-rule-slide 7s linear infinite;
}
@keyframes gm-rule-slide { to { background-position: -200% 0; } }
.gm-title { font-family: var(--gm-display); font-weight: normal; font-size: clamp(24px, 5.6vw, 52px); line-height: 1.05; margin: 0; letter-spacing: .04em; }
/* "Word Babel — The Game": one line where it fits, two on a phone */
.gm-home .gm-title { font-size: clamp(26px, 3.8vw, 46px); white-space: nowrap; }
@media (max-width: 760px) {
  .gm-home .gm-title { white-space: normal; font-size: clamp(28px, 9vw, 44px); line-height: 1.1; }
  .gm-home .gm-title-sep { display: none; }
  .gm-home .gm-title-2 { display: block; font-size: .62em; letter-spacing: .14em; color: var(--gm-gold); margin-top: 4px; }
}
.gm-section-h {
  font-family: var(--gm-panel); font-weight: 700; font-size: clamp(12px, 3.2vw, 15px); letter-spacing: .18em;
  text-transform: uppercase; color: var(--gm-dim); text-align: center; margin: 0 0 14px;
}
.gm-kicker { font-family: var(--gm-panel); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gm-gold); margin: 0 0 10px; }
.gm-sub { font-family: var(--gm-panel); font-size: clamp(13px, 1.6vw, 16px); letter-spacing: .16em; text-transform: uppercase; color: var(--gm-dim); margin: 14px 0 0; }
.gm-list .gm-title { font-size: clamp(30px, 7vw, 52px); }
.gm-blurb { max-width: 520px; margin: 12px auto 0; color: var(--gm-dim); line-height: 1.5; }
.gm-back { display: inline-block; margin-bottom: 16px; color: var(--gm-dim); text-decoration: none; font-size: 14px; }
.gm-back:hover { color: var(--gm-gold); }

/* the two modes: side by side at every width */
.gm-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 3vw, 24px); }
.gm-mode {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: clamp(16px, 4vw, 28px) clamp(10px, 3vw, 22px); border: 1.5px solid var(--gm-line); border-radius: 14px; background: var(--gm-paper);
  text-decoration: none; color: inherit; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.gm-mode:hover, .gm-mode:focus-visible { border-color: var(--gm-gold); transform: translateY(-3px); box-shadow: 0 10px 28px rgba(67,52,15,.10); outline: none; }
.gm-mode:active { background: #fdf6e3; }
.gm-mode-title { font-family: var(--gm-display); font-size: clamp(20px, 5.4vw, 34px); line-height: 1.1; }
.gm-mode-tag { font-family: var(--gm-panel); font-size: clamp(9px, 2.4vw, 12px); letter-spacing: .12em; text-transform: uppercase; color: var(--gm-gold); }
.gm-mode-blurb { color: var(--gm-dim); font-size: clamp(12px, 3.2vw, 14px); line-height: 1.45; max-width: 320px; }
.gm-mode-count { margin-top: auto; padding-top: 8px; font-size: 12px; color: var(--gm-dim); border-top: 1px solid var(--gm-line); }

.gm-mode-art .a-links path, .gm-hero-art .a-links path, .gm-howto-art .h-links path, .gm-howto-art path.h-links { fill: none; stroke: var(--gm-grey); stroke-width: 3; }
.gm-mode-art .a-rev, .gm-hero-art .a-rev, .gm-howto-art .h-rev { fill: none; stroke: var(--gm-blue); stroke-width: 3; }
.gm-mode-art .a-node, .gm-hero-art .a-node, .gm-howto-art .h-node { fill: var(--gm-grey); }
.gm-mode-art .a-rev-n, .gm-hero-art .a-rev-n, .gm-howto-art .h-rev-n { fill: var(--gm-blue); }
.gm-mode-art .a-target, .gm-hero-art .a-target, .gm-howto-art .h-target { fill: var(--gm-gold); stroke: #fff; stroke-width: 2; }
.gm-mode-art .a-root, .gm-howto-art .h-root { fill: var(--gm-ink); }
.gm-hero-art .a-rev-n:first-of-type { fill: var(--gm-ink); }

.gm-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gm-game {
  display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 14px; border: 1.5px solid var(--gm-line);
  background: var(--gm-paper); color: inherit; text-decoration: none; transition: border-color .2s, transform .2s;
}
.gm-game:hover { border-color: var(--gm-gold); transform: translateY(-2px); }
.gm-game-k { font-family: var(--gm-panel); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gm-gold); }
.gm-game-name { font-family: var(--gm-display); font-size: 24px; line-height: 1.1; }
.gm-game-sub { font-size: 13px; color: var(--gm-dim); }
.gm-game-meta { margin-top: 6px; font-size: 12.5px; color: var(--gm-dim); }
.gm-empty { text-align: center; color: var(--gm-dim); }

/* ---------------------------------------------------------------------
   PLAYING
   --------------------------------------------------------------------- */
.gm-play {
  position: fixed; left: 0; right: 0; top: 0; bottom: 0;
  background: var(--gm-cream); color: var(--gm-ink); font-family: var(--gm-body); overflow: hidden;
}
.gm-svg { position: absolute; left: 0; right: 0; top: 0; bottom: var(--gm-chrome); width: 100%; height: calc(100% - var(--gm-chrome)); display: block; }

.gm-corner { position: absolute; top: 18px; z-index: 3; display: flex; flex-direction: column; gap: 10px; }
.gm-corner--left { left: 20px; align-items: flex-start; }
.gm-corner--right { right: 20px; align-items: flex-end; }
.gm-howto-btn {
  display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border: 1.5px solid var(--gm-line);
  border-radius: 99px; background: var(--gm-paper); cursor: pointer; font-family: var(--gm-panel); font-size: 12px;
  font-weight: 700; letter-spacing: .08em; color: var(--gm-ink);
}
.gm-howto-btn:hover { border-color: var(--gm-gold); }
.gm-q { width: 26px; height: 26px; border-radius: 50%; background: var(--gm-gold); color: #fff; display: grid; place-items: center; font-family: var(--gm-body); font-weight: 800; font-size: 15px; }
.gm-quit { font-size: 12.5px; color: var(--gm-dim); text-decoration: none; padding-left: 6px; }
.gm-quit:hover { color: var(--gm-gold); }

.gm-top { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 2; text-align: center; width: min(640px, calc(100% - 340px)); }
.gm-roundline { font-family: var(--gm-panel); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gm-dim); }
.gm-dot { margin: 0 8px; color: var(--gm-gold); }

/* the blanks */
.gm-blanks { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: clamp(5px, 1vw, 10px); margin: 12px 0 6px; cursor: text; }
.gm-blank {
  width: clamp(24px, 3.4vw, 40px); height: clamp(34px, 4.6vw, 52px); display: grid; place-items: end center;
  border-bottom: 4px solid var(--gm-ink); font-weight: 700; font-size: clamp(22px, 3.2vw, 36px); line-height: 1;
  padding-bottom: 4px; text-transform: lowercase; transition: border-color .2s, color .2s;
}
.gm-blank.is-gap { border-color: transparent; width: clamp(10px, 1.4vw, 16px); }
.gm-blank.is-cursor { border-color: var(--gm-gold); }
.gm-blank.is-hint { color: var(--gm-green); border-color: var(--gm-green); }
.gm-blanks.is-right .gm-blank { color: var(--gm-green); border-color: var(--gm-green); animation: gm-pop .4s ease both; }
.gm-blanks.is-right .gm-blank:nth-child(2) { animation-delay: .05s } .gm-blanks.is-right .gm-blank:nth-child(3) { animation-delay: .1s }
.gm-blanks.is-right .gm-blank:nth-child(4) { animation-delay: .15s } .gm-blanks.is-right .gm-blank:nth-child(5) { animation-delay: .2s }
.gm-blanks.is-right .gm-blank:nth-child(6) { animation-delay: .25s } .gm-blanks.is-right .gm-blank:nth-child(n+7) { animation-delay: .3s }
.gm-blanks.is-wrong .gm-blank { color: var(--gm-red); border-color: var(--gm-red); }
.gm-blanks.is-wrong { animation: gm-shake .45s ease; }
.gm-blanks.is-lost .gm-blank { color: var(--gm-red); border-color: var(--gm-line); }
@keyframes gm-shake { 0%,100% { transform: none } 20% { transform: translateX(-8px) } 40% { transform: translateX(7px) } 60% { transform: translateX(-5px) } 80% { transform: translateX(3px) } }
@keyframes gm-pop { 0% { transform: translateY(0) } 40% { transform: translateY(-8px) } 100% { transform: none } }
.gm-blanks-wrap { position: relative; display: inline-block; }
/* Invisible but real, and exactly over the blanks: a tap there is a tap on a
   text field. 16px stops iOS zooming the page when it takes focus. */
.gm-hidden-input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0;
  opacity: 0; font-size: 16px; color: transparent; background: transparent; caret-color: transparent;
  cursor: text; -webkit-appearance: none; appearance: none;
}
.gm-guess-btn {
  font-family: var(--gm-panel); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 99px; border: 1.5px solid var(--gm-gold); background: var(--gm-gold); color: #fff; cursor: pointer;
}
.gm-guess-btn:active { background: #a07e26; }
.gm-hint { min-height: 16px; font-size: 12px; color: var(--gm-dim); margin-top: 4px; }
.gm-guessline { display: flex; justify-content: center; gap: 14px; align-items: center; font-size: 12.5px; color: var(--gm-dim); min-height: 18px; }
.gm-pips { display: inline-flex; gap: 5px; vertical-align: middle; }
.gm-pip { width: 9px; height: 9px; border-radius: 50%; background: var(--gm-blue); }
.gm-pip.is-used { background: var(--gm-line); }

/* roots: the root and the entry box */
.gm-rootword { margin: 10px 0 8px; }
.gm-rootword b { font-weight: 800; font-size: clamp(24px, 3.4vw, 36px); }
.gm-rootword span { display: block; font-size: 13px; color: var(--gm-dim); }
.gm-entry-input {
  width: min(360px, 100%); box-sizing: border-box; font: inherit; font-size: 20px; text-align: center;
  padding: 8px 14px; border: 2px solid var(--gm-line); border-radius: 99px; background: #fff; color: var(--gm-ink);
  transition: border-color .2s, background .2s;
}
.gm-entry-input:focus { outline: none; border-color: var(--gm-gold); }
.gm-entry-input.is-right { border-color: var(--gm-green); background: #eef7f0; }
.gm-entry-input.is-wrong { border-color: var(--gm-red); background: #fbefeb; animation: gm-shake .4s ease; }
.gm-entry-input.is-dupe { border-color: var(--gm-gold); background: #fdf6e3; animation: gm-shake .4s ease; }
.gm-entry-input:disabled { opacity: .6; }

/* lives and the clock */
.gm-lives { display: flex; gap: 6px; }
.gm-life { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--gm-green); color: var(--gm-green); display: grid; place-items: center; font-weight: 800; font-size: 13px; background: #fff; transition: opacity .3s, transform .3s; }
.gm-life.is-spent { opacity: .25; transform: scale(.85); }
.gm-lives.is-off .gm-life { border-color: var(--gm-line); color: var(--gm-line); }
.gm-switch { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--gm-dim); cursor: pointer; user-select: none; }
.gm-switch input { position: absolute; opacity: 0; }
.gm-switch-ui { width: 32px; height: 18px; border-radius: 99px; background: var(--gm-line); position: relative; transition: background .2s; }
.gm-switch-ui::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.gm-switch input:checked + .gm-switch-ui { background: var(--gm-green); }
.gm-switch input:checked + .gm-switch-ui::after { transform: translateX(14px); }
.gm-switch input:focus-visible + .gm-switch-ui { outline: 2px solid var(--gm-gold); }
.gm-clock { font-weight: 800; font-size: 30px; font-variant-numeric: tabular-nums; min-width: 72px; text-align: right; }
.gm-clock.is-low { color: var(--gm-red); }
.gm-giveup { font: inherit; font-size: 12px; color: var(--gm-dim); background: none; border: 1px solid var(--gm-line); border-radius: 99px; padding: 4px 12px; cursor: pointer; }
.gm-giveup:hover { border-color: var(--gm-gold); color: var(--gm-ink); }

.gm-score { position: absolute; left: 20px; bottom: calc(var(--gm-chrome) + 14px); z-index: 2; font-size: 12.5px; color: var(--gm-dim); }
.gm-score b { color: var(--gm-ink); font-size: 18px; }

/* ---------------------------------------------------------------------
   THE TREE
   --------------------------------------------------------------------- */
.gm-link { fill: none; stroke: var(--gm-grey); stroke-width: 2.2; transition: stroke .5s; }
.gm-link.is-skip { stroke-dasharray: 5 5; }
.gm-link.is-rev { stroke: var(--gm-blue); }
.gm-link.is-missed { stroke: #e7b8a9; }
.gm-node circle.gm-dot { fill: var(--gm-grey); stroke: var(--gm-cream); stroke-width: 2; transition: fill .5s, r .4s; }
.gm-node.is-rev circle.gm-dot { fill: var(--gm-blue); }
.gm-node.is-root circle.gm-dot { fill: var(--gm-ink); }
.gm-node.is-missed circle.gm-dot { fill: #fff; stroke: var(--gm-red); stroke-width: 2; }
.gm-node.is-label circle.gm-dot { fill: transparent; stroke: none; }
.gm-node text {
  font-family: var(--gm-body); font-size: 12px; fill: var(--gm-ink); opacity: 0; transition: opacity .5s;
  paint-order: stroke; stroke: var(--gm-cream); stroke-width: 4px; stroke-linejoin: round; pointer-events: none;
}
.gm-node .gm-l { font-size: 9px; fill: var(--gm-dim); }
.gm-node.is-rev text, .gm-node.is-root text { opacity: 1; }
.gm-node.is-missed text { opacity: 1; fill: var(--gm-red); }
.gm-node.is-missed .gm-l { fill: #c98b78; }
.gm-node.is-root .gm-w { font-weight: 800; font-size: 15px; }
.gm-node.is-label text { font-style: italic; fill: var(--gm-dim); }
.gm-node.is-ctx text { opacity: .9; fill: var(--gm-grey-ink); }
.gm-node.is-ctx .gm-l { fill: var(--gm-grey-ink); }
.gm-node.is-ctx { cursor: help; }
.gm-node { cursor: default; }
.gm-node.is-rev, .gm-node.is-root, .gm-node.is-missed { cursor: help; }
.gm-node.is-fresh circle.gm-dot { animation: gm-glow 1s ease; }
@keyframes gm-glow { 0% { r: 3; } 50% { r: 11; } 100% {} }

.gm-node.is-target circle.gm-dot { fill: var(--gm-gold); stroke: #fff; stroke-width: 3; }
.gm-halo { fill: var(--gm-gold); fill-opacity: .18; stroke: var(--gm-gold); stroke-opacity: .7; stroke-width: 2; pointer-events: none; transform-box: fill-box; transform-origin: center; animation: gm-pulse 2s ease-in-out infinite; }
@keyframes gm-pulse { 0%,100% { transform: scale(.85); fill-opacity: .26 } 50% { transform: scale(1.15); fill-opacity: .08 } }
.gm-node.is-target text { opacity: 1; }
.gm-node.is-target .gm-w { font-weight: 800; font-size: 20px; fill: var(--gm-gold); stroke-width: 6px; }
.gm-node.is-target.is-lost .gm-w { fill: var(--gm-red); }

.gm-tip {
  position: absolute; z-index: 5; pointer-events: none; max-width: 260px; padding: 9px 12px; border-radius: 10px;
  background: #fff; border: 1px solid var(--gm-line); box-shadow: 0 6px 20px rgba(67,52,15,.14); font-size: 13px; line-height: 1.4;
}
.gm-tip b { display: block; font-size: 16px; }
.gm-tip i { display: block; font-style: normal; font-family: var(--gm-panel); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--gm-gold); margin-bottom: 4px; }
.gm-tip em { color: var(--gm-dim); }

/* ---------------------------------------------------------------------
   PANELS: end of round, end of game, how to play
   --------------------------------------------------------------------- */
/* end-of-round sits in the bottom-right corner, clear of the tree's centre
   line; the end-of-game summary takes the middle of the page */
.gm-panel {
  position: absolute; z-index: 6; right: 20px; bottom: calc(var(--gm-chrome) + 20px);
  width: min(380px, calc(100% - 32px)); box-sizing: border-box; padding: 18px 22px; border-radius: 16px;
  background: var(--gm-paper); border: 1.5px solid var(--gm-gold); box-shadow: 0 14px 40px rgba(67,52,15,.18); text-align: center;
  animation: gm-rise .35s ease both;
}
.gm-panel.is-final { right: auto; left: 50%; bottom: auto; top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100% - 32px)); max-height: calc(100% - var(--gm-chrome) - 60px); overflow: auto; animation: none; }
@keyframes gm-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.gm-panel h3 { font-family: var(--gm-panel); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--gm-dim); margin: 0 0 6px; }
.gm-panel .gm-big { font-weight: 800; font-size: 30px; line-height: 1.1; }
.gm-panel .gm-big.is-win { color: var(--gm-green); }
.gm-panel .gm-big.is-loss { color: var(--gm-red); }
.gm-panel p { margin: 6px 0; color: var(--gm-dim); font-size: 14px; line-height: 1.45; }
.gm-panel .gm-words { font-size: 13px; color: var(--gm-ink); text-align: left; max-height: 120px; overflow: auto; border-top: 1px solid var(--gm-line); padding-top: 8px; margin-top: 8px; }
.gm-panel .gm-words span { color: var(--gm-red); }
.gm-panel table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 14px; }
.gm-panel td { padding: 5px 6px; border-bottom: 1px solid var(--gm-line); text-align: left; }
.gm-panel td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.gm-panel td .w { font-weight: 700; }
.gm-panel td .x { color: var(--gm-red); }
.gm-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.gm-btn {
  font-family: var(--gm-panel); font-weight: 700; font-size: 13px; letter-spacing: .08em; padding: 9px 18px; border-radius: 99px;
  border: 1.5px solid var(--gm-line); background: #fff; color: var(--gm-ink); cursor: pointer; text-decoration: none;
}
.gm-btn:hover { border-color: var(--gm-gold); }
.gm-btn-gold { background: var(--gm-gold); border-color: var(--gm-gold); color: #fff; }
.gm-btn-gold:hover { background: #a07e26; }

.gm-howto {
  position: absolute; inset: 0 0 var(--gm-chrome) 0; z-index: 10; display: grid; place-items: center; padding: 20px;
  background: rgba(251, 250, 244, .82); backdrop-filter: blur(3px); transition: opacity .3s;
}
.gm-howto.is-closed { opacity: 0; pointer-events: none; }
.gm-howto-card {
  position: relative; width: min(760px, 100%); max-height: 100%; overflow: auto; box-sizing: border-box;
  padding: 26px 28px 22px; border-radius: 18px; background: var(--gm-paper); border: 1.5px solid var(--gm-line);
  box-shadow: 0 20px 60px rgba(67,52,15,.16); text-align: center;
}
.gm-howto-card h2 { font-family: var(--gm-display); font-weight: normal; font-size: clamp(22px, 3vw, 30px); margin: 0 0 16px; }
.gm-howto-x { position: absolute; top: 10px; right: 14px; border: 0; background: none; font-size: 26px; color: var(--gm-dim); cursor: pointer; }
.gm-howto-grid { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: center; text-align: left; margin-bottom: 18px; }
@media (max-width: 680px) { .gm-howto-grid { grid-template-columns: 1fr; } .gm-howto-art { max-width: 260px; margin: 0 auto; } }
.gm-howto-art { width: 100%; height: auto; }
.gm-howto-art .h-lbl { font-family: var(--gm-body); font-size: 11px; fill: var(--gm-dim); text-anchor: middle; }
.gm-howto-art .h-lbl-rev { fill: var(--gm-blue); }
.gm-howto-art .h-lbl-gold { fill: var(--gm-gold); font-weight: 800; letter-spacing: 1px; }
.gm-howto-steps { margin: 0; padding-left: 20px; line-height: 1.5; font-size: 14.5px; }
.gm-howto-steps li { margin-bottom: 8px; }
.gm-howto-steps .gold { color: var(--gm-gold); }
.gm-howto-steps .blue { color: var(--gm-blue); }

/* ---------------------------------------------------------------------
   PHONES — portrait: the corners shrink and the top block takes the width
   --------------------------------------------------------------------- */
@media (max-width: 760px) {
  .gm-top { top: 64px; width: calc(100% - 24px); }
  .gm-corner { top: 10px; }
  .gm-corner--left { left: 10px; flex-direction: row; align-items: center; }
  .gm-corner--right { right: 10px; flex-direction: row; align-items: center; }
  .gm-howto-lbl { display: none; }
  .gm-howto-btn { padding: 4px; }
  .gm-switch span:last-child { display: none; }
  .gm-clock { font-size: 22px; min-width: 0; }
  .gm-life { width: 24px; height: 24px; font-size: 11px; }
  .gm-panel { right: 50%; transform: translateX(50%); }
  @keyframes gm-rise { from { opacity: 0; } to { opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  .gm-halo, .gm-blanks.is-wrong, .gm-blanks.is-right .gm-blank, .gm-node.is-fresh circle.gm-dot, .gm-panel { animation: none !important; }
}

/* ---- roots entry (v5.3.1): a visible Enter button, a feedback line and
   the words found so far, so every guess visibly lands somewhere ---- */
.gm-entry { display: flex; gap: 8px; justify-content: center; align-items: center; width: min(420px, 100%); margin: 0 auto; }
.gm-entry .gm-entry-input { flex: 1; min-width: 0; width: auto; font-size: 18px; }
.gm-entry-btn { flex: none; padding: 10px 16px; }
.gm-feedback { min-height: 20px; margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--gm-dim); }
.gm-feedback.is-right { color: var(--gm-green); }
.gm-feedback.is-wrong { color: var(--gm-red); }
.gm-feedback.is-dupe { color: var(--gm-gold); }
.gm-foundlist { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; margin-top: 6px; max-height: 64px; overflow: hidden; }
.gm-foundlist span { font-size: 12.5px; padding: 1px 8px; border-radius: 99px; background: #e6eef8; color: var(--gm-blue); font-weight: 600; }
.gm-howto-steps .green { color: var(--gm-green); }


/* =====================================================================
   v5.3.2 — mobile pass
   ===================================================================== */
/* a single word, top left, on the list and play pages */
.gm-back-corner {
  position: absolute; top: 14px; left: 16px; z-index: 5;
  font-family: var(--gm-panel); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gm-dim); text-decoration: none; padding: 6px 2px;
}
.gm-back-corner::before { content: "‹ "; }
.gm-back-corner:hover, .gm-back-corner:active { color: var(--gm-gold); }
.gm-list .gm-hero { margin-bottom: 18px; }
.gm-page { padding-top: clamp(18px, 3.5vh, 44px); }
.gm-list { padding-top: 46px; }
.gm-list .gm-blurb { margin-top: 8px; }

/* game tiles: half the width they were -- two to a row on a phone */
.gm-games { grid-template-columns: repeat(auto-fill, minmax(min(150px, 44%), 1fr)); gap: 10px; }
.gm-game { padding: 14px 12px; }
.gm-game-name { font-size: clamp(18px, 5vw, 22px); }

/* first menu: the diagram plays the game in a loop, in reading order --
   root, right branch, its two children, left branch, its two children,
   and the central line to the gold word last. One 11s cycle:
     s1  right line      fills 5-14%   node lit 14%
     s2  right children  fill 16-25%   nodes lit 25%
     s3  left line       fills 28-37%  node lit 37%
     s4  left children   fill 39-48%   nodes lit 48%
     s5  central line    fills 52-66%  gold word lit 66%
     everything holds to 86%, fades out by 95%, and the root is alone again. */
.gm-hero-anim .a-fill { fill: none; stroke: var(--gm-blue); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: 11s ease-in-out infinite; }
.gm-hero-anim .a-root { fill: var(--gm-blue); }
.gm-hero-anim .a-lit { fill: var(--gm-blue); opacity: 0; animation: 11s ease-in-out infinite; }
.gm-hero-anim .a-lit-gold { stroke: #fff; stroke-width: 2; }
.gm-hero-anim .a-fill.a-s1 { animation-name: gm-f1; } .gm-hero-anim .a-lit.a-s1 { animation-name: gm-l1; }
.gm-hero-anim .a-fill.a-s2 { animation-name: gm-f2; } .gm-hero-anim .a-lit.a-s2 { animation-name: gm-l2; }
.gm-hero-anim .a-fill.a-s3 { animation-name: gm-f3; } .gm-hero-anim .a-lit.a-s3 { animation-name: gm-l3; }
.gm-hero-anim .a-fill.a-s4 { animation-name: gm-f4; } .gm-hero-anim .a-lit.a-s4 { animation-name: gm-l4; }
.gm-hero-anim .a-fill.a-s5 { animation-name: gm-f5; } .gm-hero-anim .a-lit.a-s5 { animation-name: gm-l5; }
@keyframes gm-f1 { 0%, 5%  { stroke-dashoffset: 1; opacity: 1; } 14%, 86% { stroke-dashoffset: 0; opacity: 1; } 95%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes gm-f2 { 0%, 16% { stroke-dashoffset: 1; opacity: 1; } 25%, 86% { stroke-dashoffset: 0; opacity: 1; } 95%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes gm-f3 { 0%, 28% { stroke-dashoffset: 1; opacity: 1; } 37%, 86% { stroke-dashoffset: 0; opacity: 1; } 95%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes gm-f4 { 0%, 39% { stroke-dashoffset: 1; opacity: 1; } 48%, 86% { stroke-dashoffset: 0; opacity: 1; } 95%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes gm-f5 { 0%, 52% { stroke-dashoffset: 1; opacity: 1; } 66%, 86% { stroke-dashoffset: 0; opacity: 1; } 95%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes gm-l1 { 0%, 13% { opacity: 0; } 16%, 86% { opacity: 1; } 95%, 100% { opacity: 0; } }
@keyframes gm-l2 { 0%, 24% { opacity: 0; } 27%, 86% { opacity: 1; } 95%, 100% { opacity: 0; } }
@keyframes gm-l3 { 0%, 36% { opacity: 0; } 39%, 86% { opacity: 1; } 95%, 100% { opacity: 0; } }
@keyframes gm-l4 { 0%, 47% { opacity: 0; } 50%, 86% { opacity: 1; } 95%, 100% { opacity: 0; } }
@keyframes gm-l5 { 0%, 65% { opacity: 0; } 69%, 86% { opacity: 1; } 95%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .gm-hero-anim .a-fill, .gm-hero-anim .a-lit { animation: none; }
  .gm-hero-anim .a-fill { stroke-dashoffset: 0; }
  .gm-hero-anim .a-lit { opacity: 1; }
}

/* play page: no How-to button any more; Back takes the corner */
.gm-back-corner--play { position: static; padding: 4px 2px; }

/* "type here", faint, behind the empty blanks until the first letter */
.gm-typehere {
  position: absolute; left: 0; right: 0; top: 46%; transform: translateY(-50%);
  text-align: center; pointer-events: none; text-transform: uppercase;
  font-family: var(--gm-panel); font-weight: 700; font-size: 13px; letter-spacing: .22em;
  color: var(--gm-ink); opacity: .28; transition: opacity .2s;
}
.gm-blanks-wrap.is-typing .gm-typehere { opacity: 0; }
.gm-blanks-wrap:focus-within:not(.is-typing) .gm-typehere { opacity: .16; }
.gm-entry-input::placeholder { font-family: var(--gm-panel); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .22em; color: rgba(67,52,15,.3); }
@media (max-width: 760px) {
  .gm-top { top: 46px; }
}


/* =====================================================================
   v5.3.3 — heavier lines, senses on the tree, and the moment of truth
   ===================================================================== */
.gm-link { stroke-width: 3.6; stroke-linecap: round; }
.gm-node circle.gm-dot { stroke-width: 2.5; }
.gm-node text { font-size: 13px; }
.gm-node .gm-w { font-weight: 700; }
.gm-node .gm-s { font-size: 10px; font-style: italic; fill: #6b5313; font-weight: 400; }
.gm-node.is-ctx .gm-s, .gm-node.is-missed .gm-s { fill: var(--gm-grey-ink); }

/* the light that climbs the tree */
.gm-climb { fill: none; stroke: #f2c94c; stroke-width: 6; stroke-linecap: round; pointer-events: none; transition: stroke .35s; }
.gm-climb.is-miss { stroke: var(--gm-red); }
.gm-spark { fill: #fff6d6; stroke: #f2c94c; stroke-width: 2; pointer-events: none; }
.gm-node.is-ping circle.gm-dot { animation: gm-ping .45s ease-out; }
@keyframes gm-ping { 0% { stroke: #f2c94c; stroke-width: 2.5; } 40% { stroke: #f2c94c; stroke-width: 8; } 100% { stroke-width: 2.5; } }

/* the blanks while the light climbs: a held breath */
.gm-blanks.is-checking .gm-blank { border-color: var(--gm-gold); animation: gm-hold 0.9s ease-in-out infinite; }
.gm-blanks.is-checking .gm-blank:nth-child(2n) { animation-delay: .15s; }
.gm-blanks.is-checking .gm-blank:nth-child(3n) { animation-delay: .3s; }
@keyframes gm-hold { 0%, 100% { transform: none; } 50% { transform: translateY(-3px); } }
.gm-blanks.is-flash-win { animation: gm-winflash 1.1s ease-out; }
@keyframes gm-winflash { 0% { filter: none; } 20% { filter: drop-shadow(0 0 10px rgba(47,138,74,.75)); transform: scale(1.08); } 100% { filter: none; transform: none; } }

/* bursts */
.gm-burst { pointer-events: none; }
.gm-burst .b-ring { fill: none; stroke: #f2c94c; stroke-width: 3; }
.gm-burst--win .b-ring { stroke: var(--gm-green); stroke-width: 4; }
.gm-burst .b-ray { stroke: #f2c94c; stroke-width: 3; stroke-linecap: round; }
.gm-burst .b-ray--alt { stroke: var(--gm-green); }
.gm-burst--found .b-ray--alt { stroke: var(--gm-blue); }
.gm-burst .b-spark { fill: #f2c94c; }
.gm-burst .b-spark--alt { fill: var(--gm-green); }
.gm-burst--miss .b-ring { stroke: var(--gm-red); stroke-width: 4; }
/* the shudder goes on the dot, never the node's group: a CSS transform on the
   group replaces its translate() and the word jumps to the corner */
.gm-node.is-shake { animation: none; }
.gm-node.is-shake circle.gm-dot, .gm-node.is-shake circle.gm-halo { animation: gm-shake-dot .5s ease; }
@keyframes gm-shake-dot { 0%, 100% { transform: none; } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
@keyframes gm-shake-node { 0%, 100% { transform: var(--gm-tr, none); } }
.gm-node.is-target.is-shake circle.gm-dot { animation: gm-redflash .7s ease, gm-shake-dot .5s ease; }
@keyframes gm-redflash { 0%, 100% { fill: var(--gm-gold); } 30%, 60% { fill: var(--gm-red); } }

/* sizes held readable on screen at any zoom (game.js fit() sets these) */
.gm-node text { font-size: var(--gm-fw, 13px); }
.gm-node .gm-l { font-size: var(--gm-fl, 9px); }
.gm-node .gm-s { font-size: var(--gm-fs, 10px); }
.gm-node.is-root .gm-w { font-size: calc(var(--gm-fw, 13px) * 1.15); }
.gm-node.is-target .gm-w { font-size: calc(var(--gm-fw, 13px) * 1.5); }


/* =====================================================================
   v5.3.4 — animated how-to diagrams, difficulty, the time bar
   ===================================================================== */
/* the opening screen's diagram, wherever it appears (how-to cards too) */
.gm-hero-anim .a-links path { fill: none; stroke: var(--gm-grey); stroke-width: 3; }
.gm-hero-anim .a-node { fill: var(--gm-grey); }
.gm-hero-anim .a-node.a-root { fill: var(--gm-blue); }
.gm-hero-anim .a-target { fill: var(--gm-gold); stroke: #fff; stroke-width: 2; }
.gm-hero-anim .a-halo { fill: var(--gm-gold); fill-opacity: .18; stroke: var(--gm-gold); stroke-opacity: .6; stroke-width: 1.5;
  transform-box: fill-box; transform-origin: center; animation: gm-pulse 2.4s ease-in-out infinite; }
.gm-howto-art.gm-hero-anim { max-width: 240px; display: block; margin: 0 auto; }
.gm-howto-art.gm-hero-anim .h-lbl { font-size: 9.5px; }

/* ---- difficulty (categories) ---------------------------------------- */
.gm-diff { position: relative; }
.gm-diff-btn {
  display: none; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; cursor: pointer;
  border: 1.5px solid var(--gm-line); background: var(--gm-paper); color: var(--gm-ink);
  font-family: var(--gm-panel); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
}
.gm-diff-btn b { font-weight: 700; }
.gm-diff-car { font-size: 10px; color: var(--gm-dim); transition: transform .2s; }
.gm-diff.is-open .gm-diff-car { transform: rotate(180deg); }
.gm-diff-menu { display: flex; gap: 4px; padding: 3px; border-radius: 99px; border: 1.5px solid var(--gm-line); background: var(--gm-paper); }
.gm-diff-menu button {
  border: 0; background: none; cursor: pointer; padding: 5px 12px; border-radius: 99px; color: var(--gm-dim);
  font-family: var(--gm-panel); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
}
.gm-diff-menu button b { font-weight: 700; }
.gm-diff-menu button span { display: none; }
.gm-diff-menu button.is-on { background: var(--gm-gold); color: #fff; }
@media (max-width: 760px) {
  .gm-diff-btn { display: inline-flex; }
  .gm-diff-menu {
    position: absolute; right: 0; top: calc(100% + 6px); z-index: 8; flex-direction: column; gap: 2px;
    border-radius: 14px; padding: 6px; min-width: 170px; box-shadow: 0 10px 30px rgba(67,52,15,.16);
    opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .18s, transform .18s;
  }
  .gm-diff.is-open .gm-diff-menu { opacity: 1; transform: none; pointer-events: auto; }
  .gm-diff-menu button { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; text-align: left; border-radius: 10px; padding: 9px 12px; color: var(--gm-ink); }
  .gm-diff-menu button span { display: inline; font-family: var(--gm-body); text-transform: none; letter-spacing: 0; font-size: 12px; color: var(--gm-dim); }
  .gm-diff-menu button.is-on span { color: rgba(255,255,255,.85); }
}
/* the same choice on the how-to card */
.gm-diff-choose { display: inline-flex; gap: 4px; padding: 3px; margin: 0 0 14px; border-radius: 99px; border: 1.5px solid var(--gm-line); background: #fff; }
.gm-diff-choose button { border: 0; background: none; cursor: pointer; padding: 6px 14px; border-radius: 99px; color: var(--gm-dim);
  font-family: var(--gm-panel); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.gm-diff-choose button.is-on { background: var(--gm-gold); color: #fff; }
.gm-howto-steps .green { color: var(--gm-green); }

/* hard: one line, no length */
.gm-blanks.is-hard { display: block; margin: 12px auto 6px; }
.gm-line {
  display: flex; align-items: flex-end; justify-content: center; width: min(320px, 72vw); height: clamp(34px, 4.6vw, 52px);
  border-bottom: 4px solid var(--gm-ink); padding-bottom: 4px; box-sizing: border-box;
  font-weight: 700; font-size: clamp(22px, 3.2vw, 36px); line-height: 1; text-transform: lowercase; white-space: pre; overflow: hidden;
}
.gm-blanks-wrap:focus-within .gm-line { border-color: var(--gm-gold); }
.gm-blanks.is-hard.is-wrong .gm-line { color: var(--gm-red); border-color: var(--gm-red); }
.gm-blanks.is-hard.is-right .gm-line { color: var(--gm-green); border-color: var(--gm-green); }
.gm-blanks.is-hard.is-lost .gm-line { color: var(--gm-red); border-color: var(--gm-line); }
.gm-blanks.is-hard.is-checking .gm-line { border-color: var(--gm-gold); animation: gm-hold .9s ease-in-out infinite; }

/* easy: a letter that is in the word, but not here */
.gm-blank { position: relative; }
.gm-blank.is-near { border-color: #e0a92a; }
.gm-blank .gm-near {
  position: absolute; left: 0; right: 0; top: calc(100% + 3px); text-align: center; font-style: normal;
  font-size: 13px; font-weight: 800; color: #c48a12; text-transform: lowercase; line-height: 1;
}

/* ---- roots: the time bar --------------------------------------------- */
.gm-play--roots .gm-clock { display: none; }
.gm-timebar {
  position: absolute; z-index: 3; right: 12px; width: 8px; top: var(--gm-bar-top, 220px); bottom: calc(var(--gm-chrome) + 22px);
  border-radius: 99px; background: var(--gm-line); overflow: visible;
}
.gm-timebar-fill {
  position: absolute; left: 0; right: 0; bottom: 0; height: 0%; border-radius: 99px;
  background: linear-gradient(to top, #d9b04a, var(--gm-gold)); transition: height .25s linear, background .4s;
}
.gm-timebar.is-low .gm-timebar-fill { background: var(--gm-red); animation: gm-barpulse 1s ease-in-out infinite; }
@keyframes gm-barpulse { 50% { opacity: .55; } }
.gm-timebar-mark { position: absolute; left: -4px; right: -4px; height: 2.5px; margin-bottom: -1px; border-radius: 2px; background: var(--gm-ink); opacity: .55; transition: opacity .3s; }
.gm-timebar-mark.is-hit { animation: gm-markhit .9s ease-out; opacity: .25; }
@keyframes gm-markhit { 0% { transform: scaleX(1); opacity: 1; background: var(--gm-gold); } 40% { transform: scaleX(2.6); } 100% { transform: scaleX(1); } }
.gm-mult {
  position: absolute; z-index: 3; right: 4px; width: 24px; text-align: center; top: calc(var(--gm-bar-top, 220px) - 24px);
  font-weight: 800; font-size: 15px; color: var(--gm-gold); font-variant-numeric: tabular-nums;
}
.gm-mult.is-drop { animation: gm-pop .5s ease; }
.gm-foundlist sup { font-size: 9px; font-weight: 800; color: var(--gm-gold); margin-left: 2px; }

/* labels: laid out by game.js (horizontal, one size on screen) */
.gm-node .gm-n { font-size: var(--gm-fl, 9px); font-weight: 800; fill: var(--gm-gold); }
.gm-node text { transition: opacity .5s; }

/* the moment of truth, brighter: a wide halo under the climbing light, and
   the verdict on every link of the path at once */
.gm-climb { stroke-width: 7; }
.gm-climb-halo { fill: none; stroke: #ffd95a; stroke-width: 22; stroke-linecap: round; opacity: .55; pointer-events: none; transition: stroke .3s; }
.gm-climb.is-win { stroke: #ffd447; }
.gm-climb-halo.is-win { stroke: #ffe27a; animation: gm-radiate .9s ease-out; }
.gm-climb-halo.is-miss { stroke: #e0502c; animation: gm-radiate .9s ease-out; }
@keyframes gm-radiate { 0% { stroke-width: 22; opacity: .55; } 35% { stroke-width: 40; opacity: .8; } 100% { stroke-width: 22; opacity: .45; } }
.gm-link.is-path-win { stroke: #e9b92c !important; stroke-width: 5; animation: gm-pathwin 1.2s ease-out; }
@keyframes gm-pathwin {
  0%   { stroke-width: 3.6; filter: none; }
  30%  { stroke-width: 8;   filter: drop-shadow(0 0 7px rgba(255, 212, 71, .95)); }
  100% { stroke-width: 5;   filter: drop-shadow(0 0 3px rgba(255, 212, 71, .6)); }
}
.gm-link.is-path-miss { stroke: var(--gm-red) !important; animation: gm-pathmiss 1.4s ease; }
@keyframes gm-pathmiss {
  0%, 100% { stroke-width: 3.6; filter: none; }
  15%, 55% { stroke-width: 7; filter: drop-shadow(0 0 6px rgba(224, 80, 44, .9)); }
  35%, 75% { stroke-width: 4.5; filter: none; }
}
.gm-tip { box-sizing: border-box; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { .gm-link.is-path-win, .gm-link.is-path-miss, .gm-climb-halo { animation: none !important; } }

/* =====================================================================
   v5.4 — the daily game: landing page and archive; fixed difficulty; hints
   ===================================================================== */
.gm-hero--daily .gm-hero-art { width: min(170px, 44vw); }
.gm-daily .gm-sub { font-size: 14px; color: var(--gm-dim); margin: 8px 0 0; }
.gm-today {
  max-width: 520px; margin: 0 auto 34px; text-align: center; padding: 22px 20px 20px; border-radius: 18px;
  background: var(--gm-paper); border: 1.5px solid var(--gm-gold); box-shadow: 0 14px 40px rgba(67,52,15,.12);
}
.gm-today.is-latest { border-color: var(--gm-line); }
.gm-today-k { font-family: var(--gm-panel); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gm-dim); }
.gm-today-theme { font-family: var(--gm-display); font-size: clamp(30px, 8vw, 44px); line-height: 1.05; margin: 10px 0 6px; }
.gm-today-mode { font-size: 14px; color: var(--gm-dim); margin-bottom: 16px; }
.gm-today-play { display: inline-block; font-size: 15px; padding: 12px 26px; }
.gm-today-st { min-height: 18px; margin-top: 10px; font-size: 13px; color: var(--gm-green); font-weight: 700; }
.gm-archive { max-width: 760px; margin: 0 auto; }
.gm-arc-month { font-family: var(--gm-panel); font-weight: 700; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gm-gold);
  margin: 22px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--gm-line); }
.gm-arc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
@media (max-width: 480px) { .gm-arc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gm-arc-day {
  display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: inherit;
  background: #fff; border: 1.5px solid var(--gm-line); border-left: 4px solid #9cc0e8; transition: border-color .2s, transform .2s;
}
.gm-arc-day--roots { border-left-color: #d6b864; }
.gm-arc-day:hover { border-color: var(--gm-gold); transform: translateY(-1px); }
.gm-arc-day.is-today { box-shadow: 0 0 0 2px var(--gm-gold-soft); }
.gm-arc-d { font-size: 12px; color: var(--gm-dim); }
.gm-arc-d b { font-family: var(--gm-display); font-weight: normal; font-size: 20px; color: var(--gm-ink); margin-right: 3px; }
.gm-arc-t { font-weight: 700; font-size: 15px; line-height: 1.2; }
.gm-arc-m { font-family: var(--gm-panel); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--gm-dim); }
.gm-arc-st { font-size: 11.5px; min-height: 14px; color: var(--gm-dim); }
.gm-arc-day.is-done .gm-arc-st { color: var(--gm-green); font-weight: 700; }
.gm-arc-day.is-going .gm-arc-st { color: var(--gm-gold); }

/* difficulty: picked on the how-to card, then fixed */
.gm-diff-tag { font-family: var(--gm-panel); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 99px; border: 1.5px solid var(--gm-line); background: var(--gm-paper); color: var(--gm-dim); }
.gm-diff-pick-h { font-family: var(--gm-panel); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gm-dim); margin-bottom: 6px; }
body.gm-diff-locked .gm-diff-choose button:not(.is-on) { opacity: .35; pointer-events: none; }

/* the hint */
.gm-hint-btn { margin-top: 6px; font-family: var(--gm-panel); font-weight: 700; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 99px; border: 1.5px dashed var(--gm-gold); background: #fffaf0; color: var(--gm-ink); cursor: pointer; }
.gm-hint-btn.is-new { animation: gm-pop .5s ease; }
.gm-hinttext { margin: 6px auto 0; max-width: 420px; padding: 8px 12px; border-radius: 10px; background: #fff8e6; border: 1px solid #ecd9a3;
  font-size: 13.5px; line-height: 1.4; }
.gm-hinttext b { font-family: var(--gm-panel); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gm-gold); margin-right: 6px; }

/* =====================================================================
   v5.4.1 — landing tweaks; links on top; bigger clock and score
   ===================================================================== */
.gm-stack-title { margin: 0; font-weight: normal; line-height: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.gm-stack-1 { font-family: var(--gm-display); font-size: clamp(44px, 13vw, 92px); letter-spacing: .03em; line-height: .95; }
.gm-stack-2 { display: flex; align-items: center; gap: clamp(10px, 2vw, 18px); font-family: var(--gm-display); font-size: clamp(18px, 4.6vw, 28px); letter-spacing: .18em; color: var(--gm-dim); }
.gm-stack-2 .gm-rule { flex: 0 0 clamp(28px, 10vw, 90px); }
.gm-today { border: 0; box-shadow: none; background: radial-gradient(closest-side, rgba(242, 201, 76, .22), rgba(242, 201, 76, .08) 55%, rgba(251, 250, 244, 0) 100%);
  padding: 34px 28px 30px; border-radius: 50%; max-width: 560px; }
.gm-today.is-latest { border: 0; }
.gm-today-theme { font-size: clamp(24px, 6vw, 34px); }
.gm-today-tk { font-family: var(--gm-panel); font-size: .5em; letter-spacing: .14em; text-transform: uppercase; color: var(--gm-dim); vertical-align: .35em; margin-right: 4px; }
.gm-restart { margin-top: 6px; border: 0; background: none; font: inherit; font-size: 12.5px; color: var(--gm-dim); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.gm-restart:hover { color: var(--gm-ink); }

/* ---- the roots clock, bigger (phone: up the right edge) ---- */
.gm-timebar { width: 14px; right: 10px; }
.gm-timebar-fill { height: var(--used, 0%); }
.gm-timebar-mark { bottom: var(--at, 0%); left: -5px; right: -5px; height: 3px; }
.gm-mult { right: 2px; width: 36px; font-size: 24px; top: calc(var(--gm-bar-top, 220px) - 34px); text-shadow: 0 1px 0 #fff; }

/* ---- the score: bigger, and a flash when it goes up ---- */
.gm-score span { font-family: var(--gm-panel); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.gm-score b { font-size: 24px; display: inline-block; }
.gm-score.is-up b { animation: gm-scoreup .9s ease-out; }
@keyframes gm-scoreup {
  0% { transform: scale(1); color: var(--gm-ink); text-shadow: none; }
  25% { transform: scale(1.45); color: var(--gm-gold); text-shadow: 0 0 14px rgba(242, 201, 76, .95); }
  100% { transform: scale(1); color: var(--gm-ink); text-shadow: none; }
}

/* ---- desktop: clock along the right of the entry box, score centred to its left ---- */
@media (min-width: 761px) {
  .gm-timebar {
    top: calc(var(--gm-tb-y, 180px) - 9px); bottom: auto; left: var(--gm-tb-x, 70%); right: auto;
    width: clamp(160px, 18vw, 260px); height: 18px;
  }
  .gm-timebar-fill { top: 0; bottom: 0; left: 0; right: auto; height: auto; width: var(--used, 0%);
    background: linear-gradient(to right, #d9b04a, var(--gm-gold)); }
  .gm-timebar-mark { top: -5px; bottom: -5px; left: var(--at, 0%); right: auto; width: 3px; height: auto; margin: 0 0 0 -1.5px; }
  .gm-timebar-mark.is-hit { animation: gm-markhit-h .9s ease-out; }
  @keyframes gm-markhit-h { 0% { transform: scaleY(1); opacity: 1; background: var(--gm-gold); } 40% { transform: scaleY(2.2); } 100% { transform: scaleY(1); } }
  .gm-mult { top: calc(var(--gm-tb-y, 180px) - 20px); left: calc(var(--gm-tb-x, 70%) + clamp(160px, 18vw, 260px) + 12px); right: auto; width: auto;
    font-size: 30px; line-height: 40px; }
  .gm-score { left: var(--gm-sc-x, 15%); bottom: auto; top: var(--gm-sc-y, 180px); transform: translate(-50%, -50%); text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 2px; z-index: 3; }
  .gm-score span { font-size: 13px; }
  .gm-score b { font-size: 44px; line-height: 1; }
}

/* =====================================================================
   v5.4.2 — mode colours, the landing "Game:" line, the weekday calendar
   Categories = blue, Roots = terracotta: everywhere a mode is shown.
   ===================================================================== */
:root { --gm-cat: #2f6fb5; --gm-cat-soft: #e3edf9; --gm-root: #c0582a; --gm-root-soft: #fbe6da; }
.gm-mode-pill { display: inline-block; padding: .08em .5em .12em; border-radius: 99px; color: #fff; line-height: 1.15; }
.gm-mode-pill--categories { background: var(--gm-cat); }
.gm-mode-pill--roots { background: var(--gm-root); }
.gm-today-type { margin-top: 2px; }
.gm-today-type .gm-mode-pill { font-size: .82em; }
.gm-today--roots { background: radial-gradient(closest-side, rgba(192, 88, 42, .16), rgba(192, 88, 42, .06) 55%, rgba(251, 250, 244, 0) 100%); }
.gm-today--roots .gm-today-play { background: var(--gm-root); border-color: var(--gm-root); }
.gm-today--categories .gm-today-play { background: var(--gm-cat); border-color: var(--gm-cat); }
.gm-arc-key { text-align: center; font-size: 13px; color: var(--gm-dim); line-height: 2; margin: -6px 0 14px; }
.gm-arc-key .gm-mode-pill { font-family: var(--gm-panel); font-weight: 700; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; }

.gm-cal { max-width: 860px; margin: 0 auto; }
.gm-cal-head, .gm-cal-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.gm-cal-head { position: sticky; top: 0; z-index: 1; background: var(--gm-cream); padding: 6px 0; }
.gm-cal-wd { display: flex; flex-direction: column; align-items: center; padding: 5px 2px; border-radius: 8px; }
.gm-cal-wd b { font-family: var(--gm-panel); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.gm-cal-wd i { font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.gm-cal-wd--categories { background: var(--gm-cat-soft); color: var(--gm-cat); }
.gm-cal-wd--roots { background: var(--gm-root-soft); color: var(--gm-root); }
.gm-cal-week { margin-top: 10px; }
.gm-cal-label { font-family: var(--gm-panel); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--gm-dim); margin: 0 0 4px 2px; }
.gm-cal-day {
  min-height: 74px; display: flex; flex-direction: column; gap: 1px; padding: 6px 7px; border-radius: 10px; text-decoration: none; color: inherit;
  border: 1.5px solid transparent; overflow: hidden; transition: transform .15s, box-shadow .15s;
}
.gm-cal-day--categories { background: var(--gm-cat-soft); border-color: #b9d0ee; }
.gm-cal-day--roots { background: var(--gm-root-soft); border-color: #efc1a8; }
a.gm-cal-day:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(67,52,15,.12); }
.gm-cal-day.is-today { box-shadow: 0 0 0 2px var(--gm-gold); }
.gm-cal-day.is-none { background: none; border: 1.5px dashed var(--gm-line); }
.gm-cal-day.is-soon { opacity: .55; border-style: dashed; }
.gm-cal-d { font-family: var(--gm-display); font-size: 17px; line-height: 1; color: var(--gm-ink); }
.gm-cal-d small { font-family: var(--gm-panel); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--gm-dim); }
.gm-cal-t { font-weight: 700; font-size: 13px; line-height: 1.15; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.gm-cal-day.is-soon .gm-cal-t { font-weight: 400; font-style: italic; color: var(--gm-dim); }
.gm-cal-m { font-family: var(--gm-panel); font-size: 8.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-top: auto; }
.gm-cal-day--categories .gm-cal-m { color: var(--gm-cat); }
.gm-cal-day--roots .gm-cal-m { color: var(--gm-root); }
.gm-cal-st { font-size: 11px; font-weight: 700; min-height: 13px; }
.gm-cal-day.is-done .gm-cal-st { color: var(--gm-green); }
.gm-cal-day.is-going .gm-cal-st { color: var(--gm-gold); }
@media (max-width: 560px) {
  .gm-cal-head, .gm-cal-row { gap: 3px; }
  .gm-cal-wd i { font-size: 7.5px; letter-spacing: 0; }
  .gm-cal-wd b { font-size: 10.5px; letter-spacing: .04em; }
  .gm-cal-day { min-height: 64px; padding: 4px 4px; border-radius: 7px; }
  .gm-cal-d { font-size: 14px; }
  .gm-cal-t { font-size: 9.5px; letter-spacing: -.01em; overflow-wrap: normal; word-break: normal; hyphens: auto; -webkit-hyphens: auto;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .gm-cal-m { font-size: 0; }                       /* the colour says it on a phone */
  .gm-cal-m::before { content: "●"; font-size: 9px; }
}

/* =====================================================================
   v5.4.3 — "Today's round:", mode as coloured text, play again,
            and on a phone the archive in rows with week markers
   ===================================================================== */
.gm-today-h { font-family: var(--gm-display); font-weight: normal; font-size: clamp(36px, 10vw, 56px); line-height: 1; margin: 0 0 6px; }
.gm-today-k { font-size: 12px; }
.gm-mode-txt { font-weight: normal; }
.gm-mode-txt--categories { color: var(--gm-cat); }
.gm-mode-txt--roots { color: var(--gm-root); }
/* the play button back in gold, whatever the mode */
.gm-today--roots .gm-today-play, .gm-today--categories .gm-today-play { background: var(--gm-gold); border-color: var(--gm-gold); }
.gm-today--roots .gm-today-play:hover, .gm-today--categories .gm-today-play:hover { background: #a07e26; }
.gm-today-btns { display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; }
.gm-today-again { font-size: 15px; padding: 12px 22px; }
.gm-cal-vlabel { display: none; }
.gm-cal-d em { display: none; }

@media (max-width: 560px) {
  .gm-cal-head, .gm-cal-label { display: none; }
  .gm-cal { display: flex; flex-wrap: wrap; gap: 5px; align-items: stretch; }
  .gm-cal-week, .gm-cal-row { display: contents; }
  .gm-cal-day.is-none { display: none; }
  .gm-cal-day { box-sizing: border-box; flex: 0 0 calc((100% - 20px - 4 * 5px) / 4); min-width: 0; min-height: 70px; padding: 5px 6px; }
  .gm-cal-vlabel { box-sizing: border-box; display: flex; align-items: center; justify-content: center; flex: 0 0 20px; border-left: 2px solid var(--gm-line); }
  .gm-cal-vlabel span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap;
    font-family: var(--gm-panel); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gm-dim); }
  .gm-cal-d em { display: block; font-style: normal; font-family: var(--gm-panel); font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase;
    color: var(--gm-dim); margin-bottom: 2px; }
  .gm-cal-t { font-size: 11px; }
}

/* v5.4.4: link colour changes are instant (a fading stroke was being left
   half-repainted on long curves); the climb's light is the animation */
.gm-link { transition: none; }

/* v5.4.5: exploring the finished tree */
.gm-explore { position: absolute; z-index: 6; left: 50%; transform: translateX(-50%); bottom: calc(var(--gm-chrome) + 14px);
  width: max-content; max-width: calc(100% - 24px); box-sizing: border-box; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  justify-content: center; padding: 8px 10px 8px 16px; border-radius: 99px; background: var(--gm-paper); border: 1.5px solid var(--gm-gold);
  box-shadow: 0 10px 30px rgba(67,52,15,.16); animation: gm-rise .3s ease both; }
.gm-explore[hidden] { display: none; }
.gm-explore-t { font-size: 12.5px; color: var(--gm-dim); }
.gm-explore-b { display: flex; gap: 8px; }
.gm-explore .gm-btn { padding: 7px 14px; font-size: 12px; }
@media (max-width: 560px) {
  .gm-explore { border-radius: 16px; padding: 8px 10px; gap: 6px; }
  .gm-explore-t { width: 100%; text-align: center; font-size: 11.5px; }
}

/* v5.4.6: the end-of-game link into the day before */
.gm-prevday { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 12px 0 2px; padding: 12px 10px;
  border-radius: 12px; background: #fff8e6; border: 1px solid #ecd9a3; }
.gm-prevday .gm-btn { font-size: 14px; padding: 10px 20px; }
.gm-prevday-m { font-size: 12.5px; color: var(--gm-dim); }
.gm-prevday--categories .gm-prevday-m { color: var(--gm-cat); }
.gm-prevday--roots .gm-prevday-m { color: var(--gm-root); }
.gm-prevday ~ .gm-btns [data-gm-again] { background: #fff; border-color: var(--gm-line); color: var(--gm-ink); }

/* v5.5: the game's own compact keyboard on touch screens. It sits over the
   site's footer, which steps aside while a round is being played. */
.gm-kb { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; box-sizing: border-box;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: #f1ecdd; border-top: 1px solid var(--gm-line);
  display: flex; flex-direction: column; gap: 6px; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.gm-kb[hidden] { display: none; }
.gm-kb-row { display: flex; gap: 4px; justify-content: center; }
.gm-kb-key { flex: 1 1 0; min-width: 0; height: 40px; border: 0; border-radius: 7px; background: #fff; color: var(--gm-ink);
  font: 600 17px/1 var(--gm-body, inherit); box-shadow: 0 1px 0 rgba(67,52,15,.22); padding: 0; cursor: pointer;
  -webkit-tap-highlight-color: transparent; }
.gm-kb-key.is-down { background: #e8dcb5; transform: translateY(1px); box-shadow: none; }
.gm-kb-key.is-back, .gm-kb-key.is-punct { background: #e4dcc4; }
.gm-kb-key.is-space { flex-grow: 1.4; font-size: 12px; color: var(--gm-dim); }
.gm-kb-key.is-enter { flex-grow: 2; background: var(--gm-gold); color: #fff; font-family: var(--gm-panel); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
body.gm-kb-on .viz-chrome, body.gm-kb-on .viz-chrome-logo { visibility: hidden; }

/* v5.5: the landing strapline, a touch bigger */
.gm-daily .gm-sub { font-size: clamp(16px, 4.2vw, 19px); }

/* v5.3.2 -- every page title carries the multicolour rule: the mode-list
   pages' title was the one without. (On a phone the title is lifted into
   the top bar, which draws its own.) */
.gm-list .gm-title::after {
  content: ""; display: block;
  width: min(46vw, 300px); height: 1.5px; margin: 12px auto 0; border-radius: 2px;
  background: linear-gradient(90deg, #e5342f, #f4791f, #f7d417, #38b24a, #1f8fe0, #6a3ec8, #e5342f);
  background-size: 200% 100%; animation: gm-rule-slide 7s linear infinite;
}

/* v5.6 -- the landing: the animated tree beside "Today's round:", and the
   way in as the day's archive cell with the words next to it */
.gm-today-head { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 3vw, 20px); margin-bottom: 8px; }
.gm-today-art.gm-hero-art { width: clamp(78px, 22vw, 120px); margin: 0; flex: none; }
.gm-today-head .gm-today-h { margin: 0; text-align: left; }
.gm-today-btns { margin-top: 14px; }
.gm-today-go { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; padding: 6px 10px 6px 6px; border-radius: 14px; }
.gm-today-cell.gm-cal-day { width: 92px; min-height: 86px; box-sizing: border-box; text-align: left; flex: none; transition: transform .15s, box-shadow .15s; }
.gm-today-cell .gm-cal-d em { display: block; font-style: normal; font-family: var(--gm-panel); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--gm-dim); margin-bottom: 2px; }
.gm-today-cell .gm-cal-d { font-size: 20px; }
.gm-today-cell .gm-cal-t { font-size: 13px; }
.gm-today-cell .gm-cal-m { font-size: 8.5px; }
.gm-today-go-t { font-family: var(--gm-display); font-size: clamp(20px, 5.4vw, 26px); line-height: 1.1; text-align: left; }
.gm-today-go--categories .gm-today-go-t { color: var(--gm-cat); }
.gm-today-go--roots .gm-today-go-t { color: var(--gm-root); }
.gm-today-go-arrow { display: inline-block; transition: transform .2s; }
.gm-today-go:hover .gm-today-cell, .gm-today-go:focus-visible .gm-today-cell { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(67,52,15,.14); }
.gm-today-go:hover .gm-today-go-arrow { transform: translateX(4px); }
.gm-today.is-done .gm-today-cell { box-shadow: 0 0 0 2px var(--gm-green); }
@media (max-width: 560px) {
  .gm-today-cell .gm-cal-m { font-size: 8.5px; }      /* keep the word, not the phone dot, in this one */
  .gm-today-cell .gm-cal-m::before { content: none; }
  .gm-today-cell .gm-cal-t { font-size: 13px; -webkit-line-clamp: 3; }
}
@media (max-width: 560px) { .gm-today-cell.gm-cal-day { flex: none; width: 92px; min-height: 86px; padding: 6px 7px; } }

/* v5.6.1 -- the "Play today's round" words in ink, whatever the mode */
.gm-today-go--categories .gm-today-go-t, .gm-today-go--roots .gm-today-go-t { color: var(--gm-ink); }

/* v5.6.2 -- the landing, tighter: less air above and around today's round,
   and on a wide screen today's round and the archive side by side */
.gm-daily.gm-page { padding-top: clamp(10px, 2vh, 22px); }
.gm-daily .gm-hero { margin-bottom: 4px; }
.gm-daily .gm-today { padding: 12px 18px 16px; margin: 0 auto 14px; border-radius: 28px; }
.gm-daily .gm-today-head { margin-bottom: 4px; }
.gm-daily .gm-today-theme { margin: 6px 0 2px; }
.gm-daily .gm-today-mode { margin-bottom: 4px; }
.gm-daily .gm-today-btns { margin-top: 8px; }
.gm-daily .gm-archive .gm-section-h { margin-top: 6px; }
@media (min-width: 1000px) {
  .gm-daily.gm-page { max-width: 1240px; display: grid; grid-template-columns: minmax(360px, 1fr) minmax(560px, 1.35fr);
    column-gap: 36px; align-items: start; }
  .gm-daily .gm-hero { grid-column: 1 / -1; }
  .gm-daily .gm-today { grid-column: 1; margin: 18px 0 0; max-width: none; }
  .gm-daily .gm-archive { grid-column: 2; max-width: none; margin: 0; }
  .gm-daily .gm-archive .gm-section-h { margin-top: 0; text-align: left; }
  .gm-daily .gm-cal { max-width: none; }
}
@media (min-width: 1000px) {
  .gm-daily.gm-page { align-content: start; }
  .gm-daily .gm-today-h { font-size: clamp(34px, 3.4vw, 48px); white-space: nowrap; }
  .gm-daily .gm-today-go-t { white-space: nowrap; font-size: 22px; }
}
@media (min-width: 1000px) { .gm-daily .gm-hero { margin-bottom: 22px; } .gm-daily .gm-today { margin-top: 0; } }

/* v5.6.3 -- a line that runs through an answer not yet found, to reach a word
   lit above it: dashed, so it never reads as the found blue */
.gm-link.is-thru { stroke: var(--gm-blue); stroke-dasharray: 3 6; opacity: .7; }
.gm-link.is-thru.is-skip { stroke-dasharray: 3 6; }

/* v5.7 -- the link from the final score to "How you scored" */
.gm-scores-link { display: block; margin: 10px 0 2px; font-family: var(--gm-display); font-size: 17px; color: var(--gm-ink); text-decoration: none; }
.gm-scores-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* =====================================================================
   v5.7 -- HOW YOU SCORED: one card per round, a distribution chart each
   ===================================================================== */
.gm-scores.gm-page { padding-top: clamp(10px, 2vh, 22px); max-width: 760px; }
.gm-hero--scores { margin-bottom: 10px; }
.gm-scores-title { font-size: clamp(34px, 9vw, 64px); }
.gm-hero--scores .gm-stack-2 { font-size: clamp(13px, 3.4vw, 18px); letter-spacing: .12em; }
.gm-scores-sub { text-align: center; margin: 6px 0 0; font-family: var(--gm-display); font-size: clamp(18px, 4.6vw, 24px); }
.gm-consent { margin: 12px auto; max-width: 560px; padding: 14px 16px; border-radius: 14px; background: #fff8e6; border: 1px solid #ecd9a3; text-align: center; }
.gm-consent p { margin: 0 0 8px; font-size: 14.5px; line-height: 1.45; }
.gm-consent[hidden] { display: none; }
.gm-scores-rounds { display: grid; gap: 14px; margin-top: 12px; }
@media (min-width: 760px) { .gm-scores-rounds { grid-template-columns: 1fr 1fr; } }
.gm-sc-round { background: #fff; border: 1.5px solid var(--gm-line); border-radius: 16px; padding: 14px 14px 10px; }
.gm-sc-round--categories { border-top: 4px solid var(--gm-cat); }
.gm-sc-round--roots { border-top: 4px solid var(--gm-root); }
.gm-sc-h { margin: 0; font-family: var(--gm-panel); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gm-dim); font-weight: 700; }
.gm-sc-h b { color: var(--gm-ink); letter-spacing: .06em; }
.gm-sc-you { margin: 4px 0 8px; font-family: var(--gm-display); font-size: 19px; color: var(--gm-ink); }
.gm-sc-diffs { display: flex; gap: 4px; margin-bottom: 6px; }
.gm-sc-diff { border: 1.5px solid var(--gm-line); background: #fff; border-radius: 99px; padding: 4px 11px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; color: var(--gm-ink); }
.gm-sc-diff i { font-style: normal; font-weight: 400; color: var(--gm-dim); font-size: 11px; }
.gm-sc-diff.is-on { background: var(--gm-ink); border-color: var(--gm-ink); color: #fff; }
.gm-sc-diff.is-on i { color: rgba(255,255,255,.75); }
.gm-dist { width: 100%; height: auto; display: block; overflow: visible; }
.gm-dist-grid { stroke: var(--gm-line); stroke-width: 1; opacity: .7; }
.gm-dist-base { stroke: #b9ad8c; stroke-width: 1; }
.gm-dist-ax { font-size: 9.5px; fill: var(--gm-dim); font-family: var(--gm-body); }
.gm-dist-ax.is-you { fill: var(--gm-ink); font-weight: 700; }
.gm-dist-bar path { transition: opacity .15s; }
.gm-dist.is-cat .gm-dist-bar path { fill: #9cc0e8; }
.gm-dist.is-root .gm-dist-bar path { fill: #efb49a; }
.gm-dist.is-cat .gm-dist-bar.is-you path { fill: var(--gm-cat); }
.gm-dist.is-root .gm-dist-bar.is-you path { fill: var(--gm-root); }
.gm-dist.is-cat .gm-dist-bar.is-miss path { fill: #c9cdd4; }
.gm-dist.is-cat .gm-dist-bar.is-miss.is-you path { fill: #7b8290; }
.gm-dist-bar.is-hot path { opacity: .78; }
.gm-dist-hit { fill: transparent; cursor: pointer; }
.gm-dist-bar:focus { outline: none; }
.gm-dist-you { font-size: 10px; font-weight: 700; fill: var(--gm-ink); font-family: var(--gm-body); }
.gm-dist-avg { stroke: var(--gm-ink); stroke-width: 1.5; stroke-dasharray: 4 3; }
.gm-dist-avgt { font-size: 10px; fill: var(--gm-ink); font-family: var(--gm-body); font-weight: 700; }
.gm-sc-tip { min-height: 18px; margin: 4px 0 0; font-size: 13px; color: var(--gm-dim); }
.gm-scores-nav { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.gm-muted { color: var(--gm-dim); text-align: center; }

/* v5.7.1 -- "How everyone did", inside the final score panel */
.gm-dist-box { margin: 10px 0 4px; text-align: left; }
.gm-dist-box:empty { display: none; }
.gm-dist-h { font-family: var(--gm-panel); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gm-dim); font-weight: 700; margin-bottom: 2px; }
.gm-dist-box .gm-dist { width: 100%; height: auto; display: block; overflow: visible; }
.gm-dist rect { fill: #c9d9ee; }
.gm-dist--roots rect { fill: #f1c7b3; }
.gm-dist rect.is-you { fill: var(--gm-cat); }
.gm-dist--roots rect.is-you { fill: var(--gm-root); }
.gm-dist-cap { font-size: 12px; color: var(--gm-dim); margin-top: 2px; }
.gm-dist-ask { font-size: 13px; line-height: 1.45; color: var(--gm-ink); text-align: center; }
.gm-dist-ask .gm-btn { margin-top: 6px; }
.gm-btn-sm { padding: 6px 14px; font-size: 12px; }

/* v5.8 -- Cadena, the third game: violet, beside Red's blue and Muchos's terracotta */
:root { --gm-chain: #6a4fa3; --gm-chain-soft: #ece6f6; }
.gm-mode-txt--cadena { color: var(--gm-chain); }
.gm-cal-day--cadena { background: var(--gm-chain-soft); border-color: #cbbde6; }
.gm-cal-day--cadena .gm-cal-m { color: var(--gm-chain); }
.gm-mode-pill--cadena { background: var(--gm-chain); }
.gm-today--cadena { background: radial-gradient(closest-side, rgba(106, 79, 163, .14), rgba(106, 79, 163, .05) 55%, rgba(251, 250, 244, 0) 100%); }
.gm-dist--cadena rect { fill: #d6cbec; }
.gm-dist--cadena rect.is-you { fill: var(--gm-chain); }

/* v5.8 -- the root, introduced at the start of a round: a card in the middle
   that then shrinks and flies down into the root's dot */
.gm-intro { position: absolute; z-index: 9; left: 50%; top: 46%; transform: translate(-50%, -50%);
  width: max-content; max-width: min(420px, calc(100% - 40px)); box-sizing: border-box; text-align: center;
  padding: 18px 26px 20px; border-radius: 18px; background: var(--gm-paper); border: 1.5px solid var(--gm-gold);
  box-shadow: 0 18px 50px rgba(67,52,15,.2); animation: gm-intro-in .45s cubic-bezier(.2,.8,.3,1) both; cursor: pointer; }
.gm-intro.is-pinned { animation: none; transform: none; }
.gm-intro.is-flying { transition: transform .7s cubic-bezier(.55,0,.35,1), opacity .7s ease-in; opacity: .15; transform-origin: 50% 50%; }
.gm-intro-k { font-family: var(--gm-panel); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gm-dim); }
.gm-intro-w { font-family: var(--gm-body); font-weight: 800; font-size: clamp(30px, 9vw, 46px); line-height: 1.1; margin: 4px 0 2px; color: var(--gm-ink); }
.gm-intro-s { font-style: italic; font-size: 15px; color: var(--gm-ink); opacity: .85; }
@keyframes gm-intro-in { from { opacity: 0; transform: translate(-50%, -40%) scale(.92); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }

/* v5.8 -- the keyboard, a size up */
.gm-kb { gap: 7px; padding: 7px 3px calc(8px + env(safe-area-inset-bottom)); }
.gm-kb-row { gap: 5px; }
.gm-kb-key { height: 47px; font-size: 20px; border-radius: 8px; }
.gm-kb-key.is-space, .gm-kb-key.is-enter { font-size: 12.5px; }
.gm-prevday--cadena .gm-prevday-m { color: var(--gm-chain); }

/* v5.9 -- a day of mixed games: each round shows only its own engine's
   controls (data-eng), and opens with a title card -- the game, its
   tagline, the theme. The how-to comes up the first time a game is met. */
[data-eng][hidden], [data-howto-eng][hidden], [data-howto-kind][hidden] { display: none !important; }
.gm-roundgame { font-weight: 700; }
.gm-mode-txt--categories { color: var(--gm-cat); }
.gm-mode-txt--roots { color: var(--gm-root); }
.gm-howto-open { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--gm-line); background: var(--gm-paper);
  color: var(--gm-dim); font-family: var(--gm-panel); font-weight: 700; font-size: 14px; cursor: pointer; padding: 0; line-height: 1; }
.gm-howto-open:hover { color: var(--gm-gold); border-color: var(--gm-gold); }
.gm-corner--left { flex-direction: row; align-items: center; gap: 12px; }
.gm-howto-tag { margin: -10px 0 14px; font-style: italic; color: var(--gm-dim); }
.gm-howto--roots .gm-howto-card h2 [data-gm-howto-name] { color: var(--gm-root); }
.gm-howto--categories .gm-howto-card h2 [data-gm-howto-name] { color: var(--gm-cat); }
.gm-howto--cadena .gm-howto-card h2 [data-gm-howto-name] { color: var(--gm-chain); }

.gm-tcard { position: absolute; z-index: 10; left: 50%; top: 44%; transform: translate(-50%, -50%);
  width: min(460px, calc(100% - 36px)); box-sizing: border-box; text-align: center; cursor: pointer;
  padding: 22px 24px 24px; border-radius: 20px; background: var(--gm-paper); border: 1.5px solid var(--gm-line);
  box-shadow: 0 22px 60px rgba(67,52,15,.22); animation: gm-tcard-in .5s cubic-bezier(.2,.8,.3,1) both; }
.gm-tcard.is-out { animation: gm-tcard-out .42s ease-in both; pointer-events: none; }
.gm-tcard-k { font-family: var(--gm-panel); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gm-dim); }
.gm-tcard-g { font-family: var(--gm-display); font-size: clamp(44px, 13vw, 64px); line-height: 1; margin: 8px 0 8px; letter-spacing: .04em; }
.gm-tcard-t { font-size: clamp(16px, 4.4vw, 19px); line-height: 1.35; color: var(--gm-ink); }
.gm-tcard-th { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--gm-line); font-size: 17px; font-weight: 700; }
.gm-tcard-th span { font-family: var(--gm-panel); font-weight: 700; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gm-dim); margin-right: 8px; }
.gm-tcard--categories { border-color: #b9d0ee; } .gm-tcard--categories .gm-tcard-g { color: var(--gm-cat); }
.gm-tcard--roots { border-color: #ecc2ab; } .gm-tcard--roots .gm-tcard-g { color: var(--gm-root); }
.gm-tcard--cadena { border-color: #cbbde6; } .gm-tcard--cadena .gm-tcard-g { color: var(--gm-chain); }
@keyframes gm-tcard-in { from { opacity: 0; transform: translate(-50%, -42%) scale(.94); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes gm-tcard-out { to { opacity: 0; transform: translate(-50%, -56%) scale(.97); } }
@media (prefers-reduced-motion: reduce) { .gm-tcard, .gm-tcard.is-out { animation: none; } }

/* v5.9 -- the landing: ETYMOLOGOMANIA by WORD BABEL; the season; today's
   rounds, each with its game and tagline; the archive in seasons; a day's
   games as coloured dots in its cell */
.gm-brand { gap: 4px; }
.gm-brand-1 { font-family: var(--gm-display); font-size: clamp(30px, 8.6vw, 80px); letter-spacing: .03em; line-height: 1; color: var(--gm-ink); }
.gm-brand-by { font-family: var(--gm-body); font-style: italic; font-size: clamp(14px, 3.6vw, 18px); color: var(--gm-dim); line-height: 1.2; }
.gm-brand .gm-stack-2 { font-size: clamp(16px, 4.2vw, 24px); }
.gm-season { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 4px 8px; margin: 12px auto 0;
  padding: 7px 16px; border-radius: 99px; font-size: 14.5px; color: var(--gm-ink); text-decoration: none;
  background: var(--gm-paper); border: 1.5px solid var(--gm-line); }
.gm-season b { font-family: var(--gm-panel); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 12.5px; }
.gm-season.is-live { border-color: var(--gm-gold); }
.gm-season-dot { width: 9px; height: 9px; border-radius: 50%; background: #d23b2b; box-shadow: 0 0 0 0 rgba(210,59,43,.5); animation: gm-live 1.8s ease-out infinite; }
@keyframes gm-live { 0% { box-shadow: 0 0 0 0 rgba(210,59,43,.45); } 80%, 100% { box-shadow: 0 0 0 9px rgba(210,59,43,0); } }
.gm-season.is-past:hover { border-color: var(--gm-gold); }
.gm-season-sub { color: var(--gm-dim); font-size: 13px; }
.gm-hero--daily { text-align: center; }

.gm-today-rounds { list-style: none; margin: 10px auto 4px; padding: 0; display: flex; flex-direction: column; gap: 10px; max-width: 460px; }
.gm-today-round { text-align: left; padding: 8px 12px 9px 14px; border-radius: 12px; background: rgba(255,255,255,.6); border-left: 4px solid var(--gm-cat); }
.gm-today-round--roots { border-left-color: var(--gm-root); }
.gm-today-round--cadena { border-left-color: var(--gm-chain); }
.gm-today-round .gm-today-type { font-size: 15.5px; line-height: 1.35; margin: 0; }
.gm-today-round .gm-today-type b { font-family: var(--gm-display); font-weight: normal; font-size: 21px; letter-spacing: .03em; }
.gm-today-rtheme { font-weight: 700; font-size: 17px; margin-top: 2px; }
.gm-today-rtheme .gm-today-tk { font-size: 10.5px; vertical-align: .12em; }
.gm-today--mixed { background: radial-gradient(closest-side, rgba(242, 201, 76, .2), rgba(242, 201, 76, .07) 55%, rgba(251, 250, 244, 0) 100%); }

.gm-cal-day--mixed { background: #f6f1e3; border-color: #e1d5b3; }
.gm-cal-ms { display: flex; gap: 3px; margin-top: auto; padding-top: 2px; }
.gm-cal-mdot { width: 8px; height: 8px; border-radius: 50%; background: var(--gm-cat); flex: none; }
.gm-cal-mdot--roots { background: var(--gm-root); }
.gm-cal-mdot--cadena { background: var(--gm-chain); }
.gm-cal-day.is-out { background: none; border: 0; min-height: 0; }
.gm-season-h { font-family: var(--gm-panel); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gm-gold);
  margin: 18px 0 2px; padding-bottom: 6px; border-bottom: 1px solid var(--gm-line); display: flex; align-items: baseline; gap: 10px; }
.gm-season-h small { font-weight: 400; letter-spacing: .06em; color: var(--gm-dim); font-size: 11px; }
.gm-live { margin-left: auto; font-size: 10.5px; color: #fff; background: #d23b2b; padding: 2px 8px; border-radius: 99px; letter-spacing: .1em; }
@media (min-width: 1000px) { .gm-daily .gm-season-h:first-of-type { margin-top: 0; } }

/* =====================================================================
   v5.3.2 — today's round tiles: theme large, game type small, no colour
   coding; Muchos: no root-and-gloss line over the entry box
   ===================================================================== */
.gm-today-round,
.gm-today-round--roots,
.gm-today-round--cadena { border-left-color: var(--gm-line); }
.gm-today-round .gm-today-rtheme {
  font-family: var(--gm-display); font-weight: normal;
  font-size: 21px; letter-spacing: .03em; line-height: 1.25;
  margin: 0; color: var(--gm-ink);
}
.gm-today-round .gm-today-type {
  margin-top: 3px; font-size: 13.5px; line-height: 1.35; color: var(--gm-dim);
}
.gm-today-round .gm-today-type b {
  font-family: var(--gm-body); font-weight: 700; font-size: inherit;
  letter-spacing: 0; color: var(--gm-ink);
}

/* The round's root is the tree's own root node, so the line naming it
   above the entry box is gone; the top block ends sooner and the tree,
   which is laid out from that block's foot, gets the room. game.js still
   fills the element. */
.gm-play .gm-rootword { display: none; }
.gm-play [data-eng="roots"] .gm-entry { margin-top: 6px; }

/* =====================================================================
   v5.3.2 (round 2) — today's rounds a step smaller; the way in centred;
   on a phone, the play screen's Back, How to play and Finish round move
   up into the site's top bar
   ===================================================================== */
.gm-today-rounds { max-width: 400px; gap: 7px; margin-top: 8px; }
.gm-today-round { padding: 6px 11px 7px 12px; border-radius: 10px; border-left-width: 3px; }
.gm-today-round .gm-today-rtheme { font-size: 17px; line-height: 1.2; }
.gm-today-round .gm-today-type { margin-top: 2px; font-size: 12px; }

.gm-today-go { justify-content: center; text-align: center; padding: 6px 10px; }
.gm-today-go-t { text-align: center; }

@media (max-width: 640px), (max-height: 480px) and (orientation: landscape) {
  /* The corners leave the play area for the bar: Back and the ? in its
     left end, the difficulty tag or Finish round at its right, before the
     mark and the menu arrow. They are MOVED into the bar by the script at
     the foot of game_play.html -- .gm-play is a fixed layer of its own, so
     nothing left inside it can ever draw over the bar, whatever its
     z-index. Here they just lose their corner positioning. */
  .wb-topbar .gm-corner.is-in-bar {
    position: static; display: flex; flex-direction: row; align-items: center;
    gap: 10px; height: 100%; z-index: auto;
  }
  .wb-topbar .gm-corner--left.is-in-bar { flex: 0 0 auto; margin-right: 8px; }
  .wb-topbar .gm-corner--right.is-in-bar { margin-right: 4px; }
  .wb-topbar .gm-corner.is-in-bar .gm-howto-open { width: 28px; height: 28px; }
  /* With the corners gone from the play area, the top block can start
     right under the bar -- and the tree, laid out from its foot, rises
     with it. */
  body:has(.wb-topbar) .gm-play .gm-top { top: 8px; }
}

/* =====================================================================
   v5.3.2 — Muchos: a correct word flashes up large, then flies into its
   node (game.js flyHit)
   ===================================================================== */
.gm-hit {
  position: absolute; z-index: 9; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  pointer-events: none; white-space: nowrap; text-align: center;
  animation: gm-hit-pop .46s cubic-bezier(.2, 1.4, .4, 1) both;
}
.gm-hit-w {
  font-family: var(--gm-display); font-size: clamp(34px, 10vw, 58px); line-height: 1;
  letter-spacing: .04em; color: var(--gm-blue);
  text-shadow: 0 0 18px rgba(255, 253, 246, .95), 0 0 2px rgba(255, 253, 246, 1);
  animation: gm-hit-flash .7s ease-out both;
}
.gm-hit-p {
  font-family: var(--gm-panel); font-weight: 700; font-size: 15px; letter-spacing: .12em;
  color: var(--gm-gold); text-shadow: 0 0 8px rgba(255, 253, 246, .95);
}
.gm-hit.is-flying {
  animation: none;
  transition: transform .55s cubic-bezier(.55, 0, .35, 1), opacity .55s ease-in;
  opacity: .25;
}
@keyframes gm-hit-pop {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(.4); }
  60%  { opacity: 1; transform: translate(-50%, -50%) scale(1.12); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
/* The flash: the word lights gold and settles back to the found blue. */
@keyframes gm-hit-flash {
  0%   { color: var(--gm-gold); text-shadow: 0 0 26px rgba(242, 201, 76, .95), 0 0 2px #fff; }
  100% { color: var(--gm-blue); }
}

/* =====================================================================
   v5.3.2 — the landing: the season large and plain, "Play daily", and
   one tile for the day (date, season, how many rounds of each game)
   ===================================================================== */
.gm-season-big {
  display: block; margin: clamp(16px, 3vh, 30px) auto 0; text-align: center;
  font-family: var(--gm-display); font-weight: normal;
  font-size: clamp(28px, 7.4vw, 54px); line-height: 1.1; letter-spacing: .03em;
  color: var(--gm-ink); text-decoration: none;
}
.gm-season-big em { font-style: normal; color: var(--gm-gold); }
a.gm-season-big:hover em { text-decoration: underline; text-underline-offset: 6px; }

.gm-play-daily {
  margin: clamp(18px, 3.5vh, 34px) 0 12px; text-align: center;
  font-family: var(--gm-panel); font-weight: 700;
  font-size: clamp(13px, 3.4vw, 16px); letter-spacing: .26em; text-transform: uppercase;
  color: var(--gm-dim);
}

.gm-today.gm-today--single {
  background: none; padding: 0; border: 0; border-radius: 0;
  max-width: 420px; margin: 0 auto; text-align: center;
}
.gm-day-tile {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 22px 24px 20px; border-radius: 18px;
  border: 1.5px solid var(--gm-line); background: var(--gm-paper);
  box-shadow: 0 14px 34px -22px rgba(67, 52, 15, .45);
  text-decoration: none; color: var(--gm-ink);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.gm-day-tile:hover, .gm-day-tile:focus-visible {
  transform: translateY(-2px); border-color: var(--gm-gold); outline: none;
  box-shadow: 0 18px 38px -20px rgba(67, 52, 15, .5);
}
.gm-dt-k { font-family: var(--gm-panel); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gm-dim); }
.gm-dt-date { font-family: var(--gm-display); font-size: clamp(22px, 6vw, 30px); line-height: 1.15; }
.gm-dt-season { font-family: var(--gm-panel); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gm-gold); }
.gm-dt-rounds { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-top: 6px; font-size: 15px; color: var(--gm-ink); }
.gm-dt-r b { font-family: var(--gm-display); font-weight: normal; font-size: 1.25em; margin-right: 2px; }
.gm-dt-go { margin-top: 10px; font-family: var(--gm-display); font-size: clamp(19px, 5vw, 24px); }
.gm-dt-arrow { display: inline-block; transition: transform .2s ease; }
.gm-day-tile:hover .gm-dt-arrow { transform: translateX(4px); }
.gm-today.is-done .gm-day-tile { border-color: var(--gm-green); }
.gm-today--single .gm-today-btns:empty, .gm-today--single .gm-today-btns:has(> [hidden]:only-child) { display: none; }

/* =====================================================================
   v5.3.2 — the round's title card and top line: the day's theme largest,
   its label a little smaller, the game and its label smaller still
   ===================================================================== */
.gm-tcard-thk, .gm-tcard-gk { font-family: var(--gm-panel); font-weight: 700; text-transform: uppercase; color: var(--gm-dim); }
.gm-tcard-thk { margin-top: 12px; font-size: clamp(14px, 3.8vw, 17px); letter-spacing: .2em; }
.gm-tcard .gm-tcard-th { margin: 4px 0 14px; padding: 0 0 14px; border-top: 0; border-bottom: 1px solid var(--gm-line);
  font-family: var(--gm-display); font-weight: normal; font-size: clamp(40px, 11.5vw, 58px); line-height: 1.04; letter-spacing: .01em; color: var(--gm-ink);
  overflow-wrap: anywhere; }
.gm-tcard-gk { font-size: 10.5px; letter-spacing: .18em; }
.gm-tcard .gm-tcard-g { font-size: clamp(22px, 6vw, 28px); margin: 2px 0 6px; }
.gm-tcard .gm-tcard-t { font-size: clamp(14px, 3.8vw, 16px); color: var(--gm-dim); }

/* the top line: Round · Game small, the theme big */
.gm-roundline { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; row-gap: 0; }
.gm-roundline [data-gm-theme] {
  font-family: var(--gm-display); text-transform: none; letter-spacing: .02em;
  font-size: clamp(22px, 5.6vw, 30px); line-height: 1.1; color: var(--gm-ink);
}

/* desktop: the difficulty tag / Finish round sit just below the corner
   tower, clear of it, of its menu (which opens level with it) and of the
   Muchos clock */
@media (min-width: 641px) and (min-height: 481px), (min-width: 641px) and (orientation: portrait) {
  .gm-corner--right { right: clamp(16px, 2vw, 30px); top: 100px; }
}

/* romanisation beside a word in another script: λόγος (lógos) */
.gm-lat { font-weight: 400; font-style: italic; font-size: .85em; fill: var(--gm-dim); }
.gm-tip-lat { font-weight: 400; font-style: italic; color: var(--gm-dim); }
.gm-intro-lat { font-style: italic; font-size: 17px; color: var(--gm-dim); margin: -2px 0 4px; }
.gm-lat-i { font-weight: 400; font-style: italic; color: var(--gm-dim); }


/* =====================================================================
   v5.3.2 (round 4) — the landing in two columns
     left   the season, "Play daily", the way in (shimmering), today's
            tile, the difficulty
     right  the animated picture of the game, and its name
   the archive full width below. On a phone: the picture on top in place
   of the name (the name is in the top bar), then the left column.
   ===================================================================== */
.gm-daily.gm-daily--two { display: block; max-width: 1240px; }
.gm-daily--two .gm-land { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.gm-daily--two .gm-land-l,
.gm-daily--two .gm-land-r { width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; }
.gm-daily--two .gm-land-l { max-width: 460px; }

.gm-land-art { display: block; width: min(56vw, 230px); height: auto; overflow: visible; }
.gm-land-art .h-lbl { font-family: var(--gm-body); font-size: 9.5px; fill: var(--gm-dim); text-anchor: middle; }
.gm-land-art .h-lbl-gold { fill: var(--gm-gold); font-weight: 800; letter-spacing: 1px; }

.gm-daily--two .gm-season-big { margin-top: clamp(8px, 2vh, 18px); }
.gm-daily--two .gm-play-daily { margin: clamp(14px, 2.6vh, 26px) 0 4px; }
.gm-daily--two .gm-today.gm-today--single { width: 100%; max-width: 380px; margin: 0 auto; }
.gm-daily--two .gm-day-tile { gap: 4px; padding: 16px 18px 14px; margin-top: 10px; }
.gm-daily--two .gm-dt-date { font-size: clamp(20px, 5.4vw, 26px); }
.gm-daily--two .gm-today-st:empty { display: none; }
.gm-daily--two .gm-today-st { margin-top: 4px; font-size: 13px; color: var(--gm-green); font-weight: 700; }
.gm-daily--two .gm-today-btns { display: flex; justify-content: center; gap: 10px; margin-top: 8px; }
.gm-daily--two .gm-today-btns:not(:has(> :not([hidden]))) { display: none; }

/* the way in: a line in the display face that catches the light every few
   seconds -- a band of gold sweeping across it */
.gm-play-now {
  display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none;
  font-family: var(--gm-display); font-size: clamp(24px, 6.4vw, 32px); line-height: 1.15; color: var(--gm-ink);
}
.gm-shimmer {
  background: linear-gradient(100deg, var(--gm-ink) 0%, var(--gm-ink) 38%, #f3d78a 48%, #fff6d8 50%, #f3d78a 52%, var(--gm-ink) 62%, var(--gm-ink) 100%);
  background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gm-shimmer 5.5s ease-in-out infinite;
}
.gm-play-now .gm-dt-arrow { color: var(--gm-gold); animation: gm-nudge 5.5s ease-in-out infinite; }
.gm-play-now:hover .gm-shimmer, .gm-play-now:focus-visible .gm-shimmer { animation-duration: 1.6s; }
.gm-play-now:focus-visible { outline: 2px solid var(--gm-gold); outline-offset: 4px; border-radius: 6px; }
@keyframes gm-shimmer { 0%, 58% { background-position: 100% 0; } 88%, 100% { background-position: 0 0; } }
@keyframes gm-nudge { 0%, 62% { transform: none; } 72% { transform: translateX(6px); } 82%, 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .gm-shimmer { animation: none; color: var(--gm-ink); background: none; }
  .gm-play-now .gm-dt-arrow { animation: none; }
}

/* the difficulty, under the tile */
.gm-diff-land { margin-top: clamp(14px, 2.4vh, 22px); display: flex; flex-direction: column; align-items: center; }
.gm-diff-land-h { font-family: var(--gm-panel); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gm-dim); margin-bottom: 8px; }
.gm-diff-land-h small { font-weight: 400; letter-spacing: .08em; margin-left: 6px; opacity: .8; }
.gm-diff-land .gm-diff-choose { margin: 0; }
.gm-diff-land-d { margin: 8px 0 0; max-width: 340px; min-height: 2.6em; font-size: 13.5px; line-height: 1.35; color: var(--gm-dim); }

.gm-daily--two .gm-archive { margin-top: clamp(26px, 5vh, 52px); }

/* phone: the picture stands where the name was */
@media (max-width: 640px), (max-height: 480px) and (orientation: landscape) {
  .gm-daily--two .gm-land-r .gm-brand { display: none; }
  .gm-land-art { width: min(50vw, 200px); margin-top: 4px; }
}

/* desktop: two columns under the corner ribbon */
@media (min-width: 900px) and (min-height: 481px) {
  .gm-daily.gm-daily--two { padding-top: calc(var(--evz-head-h, 100px) + 8px); }
  .gm-daily--two .gm-land { flex-direction: row; align-items: center; justify-content: center; gap: clamp(40px, 7vw, 120px); }
  .gm-daily--two .gm-land-l { order: 1; flex: 0 1 460px; }
  .gm-daily--two .gm-land-r { order: 2; flex: 0 1 460px; gap: 22px; }
  .gm-land-art { width: clamp(220px, 23vw, 330px); }
  .gm-daily--two .gm-brand-1 { font-size: clamp(38px, 4.2vw, 64px); }
  .gm-daily--two .gm-season-big { margin-top: 0; }
  .gm-daily--two .gm-archive { grid-column: auto; max-width: 1000px; margin: clamp(30px, 6vh, 64px) auto 0; }
  .gm-daily--two .gm-archive .gm-section-h { text-align: center; }
}
@media (max-width: 640px), (max-height: 480px) and (orientation: landscape) {
  .gm-daily--two .gm-land-r { margin-top: clamp(46px, 7vh, 64px); }
}
@media (min-width: 900px) and (min-height: 481px) {
  .gm-daily--two .gm-season-big { font-size: clamp(30px, 3.1vw, 46px); white-space: nowrap; }
}
@media (min-width: 900px) and (min-height: 481px) {
  .gm-daily--two .gm-play-now { font-size: clamp(22px, 2.1vw, 30px); white-space: nowrap; }
}
@media (max-width: 640px), (max-height: 480px) and (orientation: landscape) {
  .gm-daily--two .gm-today.gm-today--single { max-width: 318px; }
  .gm-daily--two .gm-day-tile { padding: 12px 14px 11px; border-radius: 16px; }
  .gm-daily--two .gm-dt-k { font-size: 10px; }
  .gm-daily--two .gm-dt-date { font-size: clamp(18px, 4.9vw, 22px); }
  .gm-daily--two .gm-dt-rounds { font-size: 13.5px; margin-top: 2px; }
}

/* v5.3.2 (round 5) — desktop landing: everything a size up, and the two
   columns centred in the window below the corner title rather than
   pressed up under it */
@media (min-width: 900px) and (min-height: 481px) {
  .gm-daily.gm-daily--two { max-width: 1400px; padding-left: clamp(24px, 4vw, 64px); padding-right: clamp(24px, 4vw, 64px); }
  .gm-daily--two .gm-land {
    min-height: calc(100vh - var(--evz-head-h, 100px) - 40px);
    align-items: center; justify-content: center; gap: clamp(48px, 8vw, 150px);
  }
  .gm-daily--two .gm-land-l { flex: 0 1 540px; max-width: 540px; }
  .gm-daily--two .gm-land-r { flex: 0 1 560px; gap: 28px; }

  .gm-daily--two .gm-season-big { font-size: clamp(34px, 3.6vw, 56px); }
  .gm-daily--two .gm-play-daily { margin: clamp(18px, 3.4vh, 34px) 0 6px; font-size: clamp(14px, 1.15vw, 18px); }
  .gm-daily--two .gm-play-now { font-size: clamp(26px, 2.5vw, 38px); }
  .gm-daily--two .gm-today.gm-today--single { max-width: 460px; }
  .gm-daily--two .gm-day-tile { padding: 22px 26px 20px; margin-top: 14px; gap: 6px; }
  .gm-daily--two .gm-dt-k { font-size: 12px; }
  .gm-daily--two .gm-dt-date { font-size: clamp(24px, 2.2vw, 32px); }
  .gm-daily--two .gm-dt-season { font-size: 13px; }
  .gm-daily--two .gm-dt-rounds { font-size: 17px; }
  .gm-daily--two .gm-diff-land { margin-top: clamp(20px, 3.4vh, 32px); }
  .gm-daily--two .gm-diff-land-h { font-size: 12.5px; }
  .gm-daily--two .gm-diff-land .gm-diff-choose button { padding: 9px 20px; font-size: 13px; }
  .gm-daily--two .gm-diff-land-d { font-size: 15px; max-width: 400px; }

  .gm-land-art { width: clamp(260px, 28vw, 420px); }
  .gm-daily--two .gm-brand-1 { font-size: clamp(44px, 4.8vw, 76px); }
  .gm-daily--two .gm-brand-by { font-size: clamp(16px, 1.4vw, 21px); }
  .gm-daily--two .gm-brand .gm-stack-2 { font-size: clamp(20px, 1.9vw, 28px); }

  .gm-daily--two .gm-archive { max-width: 1100px; margin-top: clamp(20px, 4vh, 48px); }
}
@media (min-width: 900px) and (min-height: 481px) {
  .gm-daily--two .gm-land { gap: clamp(40px, 5.5vw, 120px); }
  .gm-daily--two .gm-season-big { font-size: clamp(30px, 3.05vw, 56px); }
  .gm-daily--two .gm-brand-1 { font-size: clamp(40px, 3.9vw, 76px); }
  .gm-land-art { width: clamp(240px, 25vw, 420px); }
}
