/* Word Weeder: game CSS. Tokens from /design/garden.css. The page is a column: app bar, the scene (a canvas with the
   hedgehog and the pest, HUD laid over it), then the play panel (the word you are spelling, 12 letter tiles in two
   rows of 6, Swap / Hint / Attack). Short landscape phones put the scene and the panel side by side. Nothing scrolls. */
html, body { height: 100%; }
body { display: flex; flex-direction: column; height: 100svh; overflow: hidden; overscroll-behavior: none; background: var(--gg-cream); }
.ww-appbar { position: relative; z-index: 5; flex: none; }
.ww-appbar .gg-wordmark { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.ww-namechip { min-height: 30px; }
@media (max-width: 480px) { .ww-namechip { display: none; } }
@media (max-width: 370px) { .ww-appbar .gg-wordmark span { display: none; } }
@media (orientation: landscape) and (max-height: 500px) {
  .ww-appbar .gg-appbar__in { min-height: 50px; }
  .ww-appbar .gg-wordmark { font-size: 19px; }
  .ww-appbar .gg-wordmark svg { width: 30px; height: 30px; }
}

:root { --ww-sun: #FFF3C4; --ww-dew: #DDF0FF; --ww-leaf: #E3F5D2; --ww-gap: 8px; --ww-tile: 54px; }

.ww-main {
  flex: 1 1 auto; min-height: 0; width: 100%; max-width: 980px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 10px;
  padding: 10px max(12px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
}

/* ---------- the scene ---------- */
.ww-scene {
  position: relative; flex: 1 1 auto; min-height: 150px; max-height: 500px;
  border: var(--gg-border); border-radius: var(--gg-r-lg); overflow: hidden; background: #E9F6FF;
  box-shadow: var(--gg-shadow);
}
.ww-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ww-fight { position: absolute; top: 8px; left: 8px; z-index: 2; font-weight: 800; font-size: var(--gg-text-sm); }
.ww-fight.is-boss { background: var(--gg-tangerine); }
.ww-mon { position: absolute; z-index: 2; display: flex; flex-direction: column; align-items: stretch; gap: 3px; }
.ww-mon__name { align-self: center; font-family: var(--gg-font-display); font-weight: 800; font-size: 14px; line-height: 1; color: var(--gg-cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; text-shadow: 1px 1px 0 var(--gg-ink); }
.ww-bar { position: relative; display: block; height: 18px; border: var(--gg-border); border-radius: var(--gg-r-pill); background: var(--gg-paper); overflow: hidden; }
.ww-bar i { position: absolute; inset: 0 auto 0 0; width: 100%; background: var(--gg-pink); transition: width var(--gg-dur-lg) var(--gg-ease-out); }
.ww-bar--hero i { background: var(--gg-green-500); }
.ww-bar.is-low i { background: var(--gg-tangerine); }
.ww-bar em { position: relative; display: block; text-align: center; font-style: normal; font-weight: 800; font-size: 13px; line-height: 14px; color: var(--gg-ink); }
.ww-bar--mon { width: 100%; }
.ww-hero { position: absolute; z-index: 2; width: 120px; display: flex; flex-direction: column; align-items: stretch; gap: 3px; }
.ww-bar--hero { width: 100%; }
.ww-hero.has-leaf .ww-bar { box-shadow: 0 0 0 3px var(--gg-green-300); }

.ww-intent {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 6px;
  min-height: 34px; padding: 4px 12px 4px 6px; border: var(--gg-border); border-radius: 14px;
  background: var(--gg-paper); box-shadow: var(--gg-shadow-sm);
  font-family: var(--gg-font-display); font-weight: 800; font-size: var(--gg-text-sm); white-space: nowrap;
  width: max-content; transform: translate(-50%, 0);
}
.ww-intent::after { content: ''; position: absolute; left: 50%; bottom: -8px; width: 12px; height: 12px; background: var(--gg-paper); border-right: var(--gg-border); border-bottom: var(--gg-border); transform: translateX(-50%) rotate(45deg); }
.ww-intent.is-big { background: var(--gg-pink-100); }
.ww-intent.is-big::after { background: var(--gg-pink-100); }
.ww-intent.is-shell { background: var(--gg-sand); }
.ww-intent.is-shell::after { background: var(--gg-sand); }
.ww-intent[hidden] { display: none; }
.ww-intent__ico { flex: none; width: 24px; height: 24px; }
.ww-intent__ico svg { width: 24px; height: 24px; display: block; }
.ww-intent.is-pulse { animation: ww-pulse calc(1.1s * var(--gg-time)) ease-in-out 3; }

.ww-fx { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.ww-float {
  position: absolute; transform: translate(-50%, -50%); font-family: var(--gg-font-display); font-weight: 800;
  font-size: 30px; color: var(--gg-ink); -webkit-text-stroke: 0; text-shadow: 2px 2px 0 var(--gg-paper), -2px -2px 0 var(--gg-paper), 2px -2px 0 var(--gg-paper), -2px 2px 0 var(--gg-paper);
  white-space: nowrap;
}
.ww-float--heal { color: var(--gg-green-600); font-size: 24px; }
.ww-float--hurt { color: #C2185B; font-size: 26px; }
.ww-float--note { font-size: 18px; }

.ww-won {
  position: absolute; left: 50%; top: 50%; z-index: 5; transform: translate(-50%, -50%);
  width: min(300px, calc(100% - 24px)); padding: 14px 16px 16px; text-align: center;
  background: var(--gg-paper); border: var(--gg-border); border-radius: var(--gg-r-lg); box-shadow: var(--gg-shadow-lg);
}
.ww-won[hidden] { display: none; }
.ww-won__title { margin: 0; font-family: var(--gg-font-display); font-weight: 800; font-size: var(--gg-text-xl); line-height: 1.1; }
.ww-won__line { margin: 6px 0 12px; color: var(--gg-ink-2); font-size: var(--gg-text-sm); font-weight: 600; }
.ww-won__saved { margin: -6px 0 12px; color: var(--gg-ink-2); font-size: var(--gg-text-xs, 12px); font-weight: 700; line-height: 1.35; }
.ww-won__saved[hidden] { display: none; }
.ww-won__name { display: flex; align-items: center; min-height: 44px; margin: 0 auto -8px; padding: 0 10px; border: 0; background: none; color: inherit; font: inherit; font-weight: 800; text-decoration: underline; cursor: pointer; }

/* ---------- the play panel ---------- */
.ww-play { flex: none; display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 560px; margin: 0 auto; }
.ww-coach {
  margin: 0; padding: 8px 14px; border: var(--gg-border); border-radius: 14px; background: var(--gg-butter-100);
  font-weight: 700; font-size: var(--gg-text-sm); line-height: 1.3; text-align: center;
}
.ww-coach[hidden] { display: none; }
.ww-word {
  display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 3px 3px 3px 8px;
  border: 2px dashed rgba(17,17,17,.35); border-radius: 16px; background: var(--gg-paper);
}
.ww-word.is-valid { border-style: solid; border-color: var(--gg-ink); background: var(--gg-lime-100); }
.ww-word.is-bad { border-style: solid; border-color: var(--gg-ink); }
.ww-word__tiles { display: flex; gap: 4px; flex: 0 1 auto; min-width: 0; overflow: hidden; }
.ww-word__note { flex: 1 1 auto; min-width: 0; font-size: var(--gg-text-sm); font-weight: 700; color: var(--gg-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ww-word.is-empty .ww-word__note { text-align: center; }
.ww-back { flex: none; box-shadow: var(--gg-shadow-sm); }
.ww-back:disabled { visibility: hidden; }
.ww-mini {
  display: grid; place-items: center; width: 34px; height: 38px; flex: none; padding: 0;
  border: var(--gg-border); border-radius: 8px; background: var(--gg-paper); color: var(--gg-ink);
  font-family: var(--gg-font-display); font-weight: 800; font-size: 20px; line-height: 1;
}
.ww-mini.is-qu { font-size: 16px; }
.ww-mini.sp-sun { background: var(--ww-sun); }
.ww-mini.sp-dew { background: var(--ww-dew); }
.ww-mini.sp-leaf { background: var(--ww-leaf); }
.ww-word.is-long .ww-mini { width: 30px; height: 36px; font-size: 18px; }
.ww-word.is-long .ww-word__note { display: none; }
.ww-word.is-long .ww-word__tiles { flex: 1 1 auto; }
.ww-word__tiles { flex-shrink: 0; }

.ww-hand { display: grid; grid-template-columns: repeat(6, var(--ww-tile)); gap: var(--ww-gap); justify-content: center; }
.ww-tile {
  position: relative; width: var(--ww-tile); height: var(--ww-tile); padding: 0; display: grid; place-items: center;
  border: var(--gg-border); border-radius: 12px; background: var(--gg-paper); color: var(--gg-ink);
  box-shadow: var(--gg-shadow); cursor: pointer; touch-action: manipulation;
  font-family: var(--gg-font-display); font-weight: 800; font-size: calc(var(--ww-tile) * .5); line-height: 1;
  transition: transform var(--gg-dur-sm) var(--gg-ease-spring), box-shadow var(--gg-dur-sm) var(--gg-ease-spring), background-color var(--gg-dur-sm) ease, opacity var(--gg-dur-sm) ease;
}
.ww-tile__l { display: block; transform: translateY(-2px); }
.ww-tile.is-qu .ww-tile__l { font-size: .78em; }
.ww-tile__pips { position: absolute; left: 0; right: 0; bottom: 5px; display: flex; justify-content: center; gap: 3px; }
.ww-tile__pips i { width: 5px; height: 5px; border-radius: 50%; background: var(--gg-ink); }
.ww-tile__sp { position: absolute; top: -9px; right: -9px; width: 24px; height: 24px; }
.ww-tile__sp svg { width: 24px; height: 24px; display: block; }
.ww-tile.sp-sun { background: var(--ww-sun); }
.ww-tile.sp-dew { background: var(--ww-dew); }
.ww-tile.sp-leaf { background: var(--ww-leaf); }
@media (hover: hover) { .ww-tile:hover:not(.is-picked) { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--gg-ink); } }
.ww-tile:active:not(.is-picked) { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--gg-ink); }
.ww-tile.is-picked { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--gg-ink); background: var(--gg-sand); color: rgba(17,17,17,.35); border-color: rgba(17,17,17,.35); }
.ww-tile.is-picked .ww-tile__pips i { background: rgba(17,17,17,.3); }
.ww-tile.is-picked .ww-tile__sp { opacity: .45; }
.ww-tile.is-hint:not(.is-picked) { animation: ww-glow calc(1s * var(--gg-time)) ease-in-out infinite; }
.ww-tile.is-new { animation: ww-drop calc(.42s * var(--gg-time)) var(--gg-ease-soft) both; }
.ww-tile:disabled { cursor: default; }
@keyframes ww-glow { 0%, 100% { box-shadow: 3px 3px 0 var(--gg-ink), 0 0 0 0 rgba(156,255,30,.0); } 50% { box-shadow: 3px 3px 0 var(--gg-ink), 0 0 0 5px var(--gg-lime); } }
@keyframes ww-drop { from { transform: translateY(-18px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ww-pulse { 0%, 100% { box-shadow: var(--gg-shadow-sm); } 50% { box-shadow: var(--gg-shadow-sm), 0 0 0 5px var(--gg-lime); } }

.ww-actions { display: grid; grid-template-columns: auto 52px 1fr; gap: 10px; align-items: center; }
.ww-swap { padding-inline: 16px; min-height: 52px; font-size: var(--gg-text-sm); white-space: nowrap; }
.ww-hintbtn { width: 52px; height: 52px; min-height: 52px; }
.ww-hintbtn svg { width: 26px; height: 26px; }
.ww-attack { min-height: 52px; height: 52px; font-size: var(--gg-text-lg); font-weight: 800; gap: 10px; white-space: nowrap; padding-inline: 14px; }
.ww-attack b { display: inline-grid; place-items: center; min-width: 34px; height: 30px; padding: 0 8px; border: var(--gg-border); border-radius: var(--gg-r-pill); background: var(--gg-paper); font-size: var(--gg-text-md); }
.ww-attack.is-pulse:not(:disabled), .ww-hintbtn.is-pulse, .ww-swap.is-pulse { animation: ww-pulse calc(1.1s * var(--gg-time)) ease-in-out infinite; }
.ww-play.is-locked .ww-tile, .ww-play.is-locked .gg-btn { pointer-events: none; }

/* tile size: fill the width on a phone (6 across), cap on bigger screens, shrink on short screens */
@media (max-width: 430px) { :root { --ww-tile: min(56px, calc((100vw - 24px - 5 * var(--ww-gap)) / 6)); } }
@media (max-width: 340px) { .ww-swap { padding-inline: 12px; gap: 6px; } .ww-attack { font-size: var(--gg-text-md); gap: 6px; } .ww-actions { gap: 8px; } }
@media (max-width: 340px) { :root { --ww-gap: 6px; } .ww-main { padding-left: max(10px, env(safe-area-inset-left)); padding-right: max(10px, env(safe-area-inset-right)); } }
@media (min-width: 600px) and (min-height: 700px) { :root { --ww-tile: 68px; --ww-gap: 10px; } .ww-play { max-width: 520px; } }
@media (max-height: 640px) and (orientation: portrait) { :root { --ww-tile: max(44px, min(50px, calc((100vw - 20px - 5 * var(--ww-gap)) / 6))); --ww-gap: 6px; } .ww-play { gap: 8px; } .ww-word { min-height: 48px; } }

/* short landscape phones: scene left, panel right */
@media (orientation: landscape) and (max-height: 500px) {
  :root { --ww-tile: min(50px, calc((100svh - 50px - 196px) / 2)); --ww-gap: 7px; }
  .ww-main { flex-direction: row; gap: 12px; padding-top: 8px; max-width: none; }
  .ww-scene { max-height: none; min-height: 0; }
  .ww-play { width: calc(6 * var(--ww-tile) + 5 * var(--ww-gap) + 4px); max-width: none; margin: 0; gap: 8px; justify-content: center; }
  .ww-word { min-height: 46px; }
  .ww-coach { font-size: 13px; padding: 5px 10px; }
  .ww-mini { width: 28px; height: 32px; font-size: 17px; }
  .ww-actions { grid-template-columns: auto 48px 1fr; gap: 8px; }
  .ww-swap, .ww-attack, .ww-hintbtn { min-height: 48px; height: 48px; }
  .ww-hintbtn { width: 48px; }
  .ww-swap { padding-inline: 12px; }
  .ww-attack { font-size: var(--gg-text-md); }
}

/* ---------- cards ---------- */
.ww-card { width: min(440px, 100%); }
.ww-title { font-size: var(--gg-text-3xl); margin: 4px 0 8px; }
.ww-titleart { display: block; width: 100%; height: auto; aspect-ratio: 640 / 240; margin: 4px 0 10px; border: var(--gg-border); border-radius: var(--gg-r-md); }
.ww-lede { margin: 0 0 16px; color: var(--gg-ink-2); font-size: var(--gg-text-md); line-height: 1.45; }
.ww-btns { display: grid; gap: 10px; }
.ww-btns .gg-btn { width: 100%; }
.ww-best { margin: 12px 0 0; font-weight: 700; color: var(--gg-ink-3); font-size: var(--gg-text-sm); }
.ww-best:empty { display: none; }
.ww-h2 { font-size: var(--gg-text-2xl); margin: 4px 0 12px; }
.ww-h2--big { font-size: var(--gg-text-3xl); }
.ww-howlist { text-align: left; margin: 0 0 18px; padding-left: 20px; display: grid; gap: 8px; font-size: var(--gg-text-sm); line-height: 1.45; }
.ww-sp { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--gg-ink); border-radius: 5px; vertical-align: -2px; }
.ww-sp--sun { background: var(--gg-butter); }
.ww-sp--dew { background: var(--gg-sky); }
.ww-sp--leaf { background: var(--gg-green-500); }
.ww-rows { display: grid; gap: 6px; margin: 4px 0 8px; text-align: left; }
.ww-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border: var(--gg-border); border-radius: 12px; background: var(--gg-cream); font-weight: 700; font-size: var(--gg-text-sm); }
.ww-row b { font-family: var(--gg-font-display); font-weight: 800; font-size: var(--gg-text-md); }
@media (orientation: landscape) and (max-height: 500px) {
  .ww-card { width: min(560px, 100%); padding-top: 18px; }
  .ww-titleart { display: none; }
  .ww-title { font-size: 32px; }
  .ww-lede { font-size: var(--gg-text-sm); margin-bottom: 12px; }
  .ww-btns { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .ww-howlist { gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .ww-tile, .ww-bar i { transition: none; }
  .ww-tile.is-new, .ww-tile.is-hint, .ww-intent.is-pulse, .ww-attack.is-pulse, .ww-hintbtn.is-pulse { animation: none; }
  .ww-tile.is-hint:not(.is-picked) { box-shadow: 3px 3px 0 var(--gg-ink), 0 0 0 4px var(--gg-lime); }
}

/* live 11-13: the leaderboard row on the result card, the You chip and the trophy in the app bar */
.ww-rgg { margin: 12px 0 0; }
.ww-rgg[hidden] { display: none; }
@media (max-width: 560px) { .ww-ggchip { display: none; } }
@media (max-width: 420px) { .ww-appbar .gg-wordmark span { display: none; } }

/* ---------- the Duel (src/duel-ui.js): the title's Duel button, the picker + join form, the other hedgehog's sign ---------- */
.ww-duelbtn { gap: 10px; }
.ww-duelbtn svg { width: 32px; height: 24px; flex: none; }
.ww-dnote { margin-top: 10px; }
.ww-dback { margin-top: 6px; }
.ww-join { display: grid; gap: 8px; margin: 12px 0 0; text-align: left; }
.ww-join[hidden] { display: none; }
.ww-join__label { font-weight: 700; font-size: var(--gg-text-sm); color: var(--gg-ink-2); }
.ww-join__row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.ww-join__input {
  min-height: 48px; min-width: 0; padding: 0 12px; border: var(--gg-border); border-radius: var(--gg-r-md); background: var(--gg-paper);
  font-family: var(--gg-font-display); font-weight: 800; font-size: 22px; letter-spacing: .12em; text-transform: uppercase; color: var(--gg-ink);
}
.ww-join__input:focus-visible { outline: 3px solid var(--gg-lime); outline-offset: 1px; }
.ww-join__msg { margin: 0; font-weight: 700; font-size: var(--gg-text-sm); background: var(--gg-pink-100); border: 2px solid var(--gg-ink); border-radius: 10px; padding: 8px 10px; }
.ww-join__msg[hidden] { display: none; }
.ww-fight.is-you { background: var(--gg-lime); }
.ww-mon.has-leaf .ww-bar { box-shadow: 0 0 0 3px var(--gg-green-300); }
.ww-say { padding: 4px 12px; gap: 0; }
.ww-say .ww-intent__ico { display: none; }
.ww-say.is-word { background: var(--gg-butter-100); font-size: var(--gg-text-md); letter-spacing: .04em; }
.ww-say.is-word::after { background: var(--gg-butter-100); }
.ww-play.is-duel.is-wait .ww-attack { background: var(--gg-sand); }
@media (orientation: landscape) and (max-height: 500px) {
  .ww-join { margin-top: 8px; }
  .ww-dnote { margin-top: 6px; }
}
/* short landscape phones: the duel cards and the shared room sheet (platform/table.css) fit without scrolling */
@media (orientation: landscape) and (max-height: 500px) {
  #title .ww-duelbtn { grid-column: 1 / -1; }
  #duelpick.is-joining .ww-lede, #duelpick.is-joining .ww-dnote { display: none; }
  #duelpick .ww-h2 { margin-bottom: 6px; }
  #dresult .ww-h2--big { font-size: 30px; margin: 0 0 8px; }
  #dresult .ww-rows { grid-template-columns: repeat(3, 1fr); }
  #dresult .ww-row { flex-direction: column; gap: 2px; padding: 6px 10px; }
  #dresult .ww-best { margin-top: 6px; }
  .tb-lobby .tb-lobby__card { gap: 8px; padding-top: 16px; padding-bottom: 16px; }
  .tb-lobby .tb-lobby__title { font-size: var(--gg-text-xl); }
  .tb-lobby .tb-lobby__hint { line-height: 1.25; }
  .tb-lobby .tb-code { font-size: 32px; padding: 6px 10px 6px calc(10px + .14em); }
  .tb-lobby .tb-lobby__codebox { gap: 8px; }
  .tb-lobby .tb-lobby__how { display: none; }
}

/* ---------- the duel's Words sheet and hearts (gamefactory-155). The heart colour is pinned here, never a token:
   template H recolours the lime and pink tokens site-wide. ---------- */
:root { --ww-heart: #FF4D7A; }
.ww-wordsbtn { position: absolute; top: 6px; right: 6px; z-index: 4; min-height: 44px; padding: 0 12px; gap: 6px; font-weight: 800; }
.ww-wordsbtn[hidden] { display: none; }
.ww-wordsbtn__got { display: inline-flex; align-items: center; gap: 3px; color: var(--ww-heart); font-weight: 800; }
.ww-wordsbtn__got[hidden] { display: none; }
.ww-wordsbtn__got svg, .ww-wlist svg { width: 18px; height: 18px; display: block; }
.ww-wordscard { display: flex; flex-direction: column; max-height: min(640px, calc(100svh - 32px)); text-align: left; }
.ww-wordscard .ww-h2 { margin-bottom: 4px; text-align: center; }
.ww-wordshint { margin: 0 0 8px; text-align: center; }
.ww-wlist { list-style: none; margin: 0 0 10px; padding: 2px; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; gap: 6px; align-content: start; }
.ww-wlist__empty { text-align: center; color: var(--gg-ink-2); font-weight: 700; padding: 14px 4px; }
.ww-w { display: grid; grid-template-columns: minmax(0, 5.5em) minmax(0, 1fr) auto 44px; align-items: center; gap: 8px; min-height: 48px; padding: 2px 4px 2px 10px; border: 2px solid var(--gg-ink); border-radius: 12px; background: var(--gg-paper); }
.ww-w.is-me { background: var(--gg-cream); }
.ww-w__who { font-weight: 700; font-size: var(--gg-text-sm); color: var(--gg-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ww-w__word { font-family: var(--gg-font-display); font-weight: 800; font-size: 18px; letter-spacing: .04em; overflow-wrap: anywhere; }
.ww-w__word.is-masked { font-family: inherit; font-weight: 700; font-size: var(--gg-text-sm); letter-spacing: 0; color: var(--gg-ink-2); font-style: italic; }
.ww-w__hit { font-weight: 800; font-size: var(--gg-text-sm); white-space: nowrap; text-align: right; }
.ww-w__sun { display: inline-block; margin-left: 4px; padding: 0 5px; border: 2px solid var(--gg-ink); border-radius: 8px; background: var(--ww-sun); font-size: 12px; }
.ww-w__heart { width: 44px; height: 44px; display: grid; place-items: center; }
.ww-w__heart svg { width: 24px; height: 24px; }
button.ww-w__heart { padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; }
button.ww-w__heart:focus-visible { outline: 3px solid var(--gg-ink); outline-offset: -3px; }
.ww-w__heart path { fill: none; stroke: var(--gg-ink); stroke-width: 2; stroke-linejoin: round; }
.ww-w__heart.is-on path, .ww-wordsbtn__got path { fill: var(--ww-heart); stroke: var(--gg-ink); }
@media (prefers-reduced-motion: no-preference) { button.ww-w__heart.is-pop svg { animation: ww-heart .32s var(--gg-ease-out, ease-out); } }
@keyframes ww-heart { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: none; } }
@media (orientation: landscape) and (max-height: 500px) {
  .ww-wordscard { max-height: calc(100svh - 16px); padding-top: 12px; padding-bottom: 12px; }
  .ww-wordscard .ww-h2 { margin: 0; }
  .ww-wordshint { margin-bottom: 4px; }
}
