.game-screen {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  padding: max(18px, env(safe-area-inset-top)) var(--mobile-shell-gutter) max(18px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  justify-items: center;
  gap: clamp(14px, 2dvh, 22px);
  background: transparent;
}

.game__sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.game__cloud,
.game__cloud::before,
.game__cloud::after {
  position: absolute;
  content: "";
  display: block;
  background: rgba(255,255,255,.84);
  border-radius: 999px;
}

.game__cloud {
  width: clamp(96px, 12vw, 168px);
  height: clamp(29px, 3.5vw, 50px);
  filter: drop-shadow(0 8px 12px rgba(38, 84, 110, .12));
  animation: gameCloud 18s ease-in-out infinite;
}

.game__cloud::before {
  left: 14px;
  bottom: 8px;
  width: 47%;
  height: 150%;
}

.game__cloud::after {
  right: 8%;
  bottom: 22%;
  width: 60%;
  height: 194%;
}

.game__cloud--one { left: 5vw; top: 12dvh; }
.game__cloud--two { right: 6vw; bottom: 24dvh; transform: scale(.78); animation-delay: -4s; }
.game__cloud--three { left: 12vw; bottom: 10dvh; transform: scale(.62); animation-delay: -9s; opacity: .72; }

.game__sky-letter {
  position: absolute;
  z-index: 0;
  display: grid;
  place-items: center;
  width: clamp(34px, 4.2vw, 54px);
  height: clamp(40px, 4.8vw, 62px);
  border-radius: 10px;
  background: var(--brand-tile-bg);
  border: 2px solid rgba(189, 72, 37, .7);
  box-shadow: 0 6px 0 rgba(169, 58, 34, .58), 0 12px 16px rgba(47, 63, 93, .12), inset 0 4px 0 rgba(255,255,255,.28);
  color: rgba(255, 248, 219, .92);
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.6vw, 32px);
  font-weight: 900;
  line-height: 1;
  text-shadow: var(--brand-tile-text-shadow);
  opacity: .38;
  animation: gameLetterFall 15s linear infinite;
}

.game__sky-letter--1 { left: 14vw; top: -10vh; animation-delay: -2s; transform: rotate(-10deg); }
.game__sky-letter--2 { left: 76vw; top: -18vh; animation-delay: -6s; transform: rotate(12deg); }
.game__sky-letter--3 { left: 45vw; top: -14vh; animation-delay: -10s; transform: rotate(-4deg); }
.game__sky-letter--4 { left: 88vw; top: -22vh; animation-delay: -13s; transform: rotate(8deg); }
.game__sky-letter--5 { left: 6vw; top: -16vh; animation-delay: -8s; transform: rotate(15deg); }
.game__sky-letter--6 { left: 62vw; top: -12vh; animation-delay: -4s; transform: rotate(-14deg); }

.game__hud {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 9px;
  width: var(--mobile-panel-width);
}

.game__hud-top {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 9px;
  width: 100%;
}

.game__home {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,.78);
}

.game__loading-home {
  position: absolute;
  left: var(--mobile-shell-gutter);
  top: max(18px, env(safe-area-inset-top));
  z-index: 3;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,.78);
}

.game__mode-title {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 1px;
  padding: 7px 12px 9px;
  border-radius: var(--radius-control);
  background: var(--surface-pill);
  box-shadow: var(--shadow-game-control);
  color: #21314a;
  text-align: center;
}

.game__mode-title strong {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-heading);
  font-size: clamp(16px, 4.4vw, 20px);
  font-weight: 900;
  line-height: 1.05;
}

.game__mode-kicker {
  color: #5d6b84;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.game__hud-spacer {
  width: 48px;
  height: 48px;
}

.game__hud-pills {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.game__player-status {
  width: 100%;
}

.game__hud .player-status__chip {
  min-height: 42px;
  padding: 5px 8px;
}

.game__hud .player-status__label {
  font-size: 8px;
}

.game__hud .player-status__value {
  font-size: clamp(14px, 3.4vw, 18px);
}

.game__hud-pill {
  position: relative;
  min-width: 62px;
  min-height: 48px;
  display: grid;
  align-items: center;
  justify-content: center;
  justify-items: center;
  gap: 2px;
  padding: 6px 11px 7px;
  border-radius: var(--radius-control);
  background: var(--surface-card);
  box-shadow: var(--shadow-game-control);
  color: #21314a;
}

.game__hud-label {
  color: rgba(45, 59, 81, .68);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.game__hud-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
}

.game__hud-value {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 19px;
  line-height: 1;
}

.game__hud-pill--timer {
  color: #255071;
}

.game__hud-pill--score {
  background: rgba(255, 244, 173, .86);
  color: #754414;
}

.game__hud-pill--coins {
  color: #5f3b10;
}

.game__coin-mark {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd96b, #f79a2e);
  box-shadow: inset 0 -2px 0 rgba(146, 84, 20, .22);
}

.game__coin-mark .app-icon {
  width: 11px;
  height: 11px;
  color: rgba(129, 80, 17, .58);
}

.game__hud-pill--words {
  color: #255071;
}

.game__hud-pill--difficulty {
  background: rgba(240, 230, 255, .88);
  color: #5b3a9e;
}

.game__hud-pill--lives {
  color: #9d2640;
  background: rgba(255, 232, 238, .88);
}

.game__hud-pill--warning {
  background: rgba(255, 232, 122, .9);
  color: #8a5512;
}

.game__hud-pill--danger {
  background: rgba(255, 95, 94, .92);
  color: white;
  animation: timerPulse 500ms infinite;
}

.game__timer {
  position: relative;
  z-index: 2;
  width: var(--mobile-panel-width);
  height: 8px;
  justify-self: center;
  background: rgba(255,255,255,.42);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(38, 63, 92, .16);
}

.game__timer-fill {
  display: block;
  width: 100%;
  height: 100%;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  overflow: hidden;
}

.game__timer-fill::-webkit-progress-bar {
  background: transparent;
}

.game__timer-fill::-webkit-progress-value {
  border-radius: 999px;
  background: var(--gradient-primary);
  transition: width 100ms linear;
}

.game__timer-fill::-moz-progress-bar {
  border-radius: 999px;
  background: var(--gradient-primary);
  transition: width 100ms linear;
}

.game__timer-fill--warning::-webkit-progress-value { background: #f6a828; }
.game__timer-fill--warning::-moz-progress-bar { background: #f6a828; }
.game__timer-fill--danger { animation: timerPulse 500ms infinite; }
.game__timer-fill--danger::-webkit-progress-value { background: #ff5d55; }
.game__timer-fill--danger::-moz-progress-bar { background: #ff5d55; }

.game__playfield {
  position: relative;
  z-index: 1;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  align-content: start;
  align-self: stretch;
  justify-items: center;
  gap: clamp(10px, 1.7dvh, 18px);
  width: var(--mobile-panel-width);
  margin: 0 auto;
  padding: clamp(8px, 1.8dvh, 18px) 0 0;
}

.game__streak {
  position: absolute;
  top: 42%;
  right: 4px;
  z-index: 5;
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 0 14px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(8px) scale(.9);
  transition: opacity 160ms ease, transform 160ms ease;
  color: white;
  background: linear-gradient(135deg, #ff5d55, #ff9b36);
  box-shadow: inset 0 -3px 0 rgba(137, 53, 32, .22), 0 8px 18px rgba(84, 64, 59, .18);
  font-family: var(--font-heading);
  font-weight: 900;
}

.game__streak--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.game__input-area {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: var(--letter-word-gap, var(--letter-gap));
  width: var(--mobile-panel-width);
  max-width: 100%;
  min-width: 0;
  min-height: 58px;
}

.game__input-slot,
.game__input-letter {
  flex: 0 0 var(--letter-slot-width);
  width: var(--letter-slot-width);
  height: auto;
  aspect-ratio: .82;
  border-radius: var(--letter-radius);
  min-width: 0;
}

.game__input-slot {
  background: rgba(255,255,255,.36);
  border: var(--letter-border) dashed rgba(39, 69, 103, .32);
  box-shadow: inset 0 3px 8px rgba(35, 59, 87, .08);
}

.game__input-slot--receiving {
  background: rgba(255,255,255,.42);
  border-style: solid;
  box-shadow: inset 0 3px 8px rgba(35, 59, 87, .08), 0 0 0 3px rgba(255,255,255,.18);
}

.game__input-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-tile-bg);
  border: var(--letter-border) solid var(--brand-tile-border);
  color: var(--brand-tile-text);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: var(--letter-input-font);
  line-height: .9;
  text-transform: uppercase;
  cursor: pointer;
  text-shadow: var(--brand-tile-text-shadow);
  box-shadow: 0 8px 14px rgba(47, 63, 93, .18), inset 0 -4px 0 rgba(152, 62, 29, .18);
  transition: transform var(--transition-fast);
}

.game__input-letter:active { transform: translateY(3px) scale(.94); }

.game__reset-word {
  appearance: none;
  min-height: 30px;
  margin-top: clamp(-8px, -1dvh, -4px);
  padding: 5px 12px;
  border: 1px solid rgba(39, 69, 103, .18);
  border-radius: 999px;
  background: rgba(255,255,255,.56);
  color: rgba(31, 52, 78, .76);
  font: 800 12px/1 var(--font-body);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(35, 59, 87, .08);
  touch-action: manipulation;
}

.game__reset-word:active {
  transform: translateY(1px) scale(.97);
}

.game__reset-word:disabled {
  cursor: default;
  opacity: .45;
  transform: none;
}

.game__board {
  --letter-board-pad: clamp(12px, 2.1dvh, 20px);
  --letter-gap: clamp(8px, 1.7dvh, 12px);
  --letter-tile-size: clamp(42px, calc((var(--mobile-content-width) - 76px) / 5), 88px);
  --letter-tile-font: clamp(25px, 7.4vw, 50px);
  --letter-tile-border: 4px;
  --letter-radius: 16px;
  display: grid;
  align-items: center;
  justify-content: center;
  gap: var(--letter-gap);
  width: var(--mobile-panel-width);
  max-width: 100%;
  min-width: 0;
  padding: var(--letter-board-pad);
  border-radius: var(--radius-panel);
  background: rgba(255,255,255,.24);
  box-shadow: inset 0 2px 8px rgba(55, 79, 103, .12);
}

.game__board--single {
  align-content: center;
}

.game__tile-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--letter-gap);
  min-width: 0;
  max-width: 100%;
}

.game__board--shake {
  animation: tileShake 400ms ease;
}

.game__tile {
  flex: none;
  width: var(--letter-tile-size);
  height: var(--letter-tile-size);
  min-width: 0;
  border-radius: var(--letter-radius);
  background: var(--brand-tile-bg);
  border: var(--letter-tile-border) solid var(--brand-tile-border);
  box-shadow: 0 9px 14px rgba(47, 63, 93, .2), inset 0 -6px 0 rgba(152, 62, 29, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: var(--letter-tile-font);
  color: var(--brand-tile-text);
  text-shadow: var(--brand-tile-text-shadow);
  cursor: pointer;
  touch-action: manipulation;
  transition: transform var(--transition-fast), opacity var(--transition-fast), filter var(--transition-fast);
  text-transform: uppercase;
}

.game__tile--fly {
  position: fixed;
  z-index: var(--z-toast);
  pointer-events: none;
  margin: 0;
  transform-origin: center center;
  will-change: left, top, width, height, font-size, border-radius, border-width, box-shadow;
}

.game__tile:hover {
  transform: translateY(-3px) rotate(-1deg);
}

.game__tile:active {
  transform: translateY(4px) scale(.94);
}

.game__tile--assist {
  position: relative;
  z-index: 1;
  animation: letterAssistPrompt 720ms ease-in-out infinite;
  box-shadow:
    0 16px 24px rgba(47, 63, 93, .28),
    0 0 0 6px rgba(36, 167, 158, .26),
    inset 0 -6px 0 rgba(152, 62, 29, .18);
}

.game__tile--used {
  opacity: .38;
  filter: grayscale(.3);
  pointer-events: none;
  transform: none;
}

.game__tile--used.game__tile--assist {
  animation: none;
}

.game__board--count-11,
.game__board--count-12 {
  --letter-board-pad: clamp(10px, 1.7dvh, 16px);
  --letter-gap: clamp(4px, 1.1dvh, 8px);
  --letter-tile-size: clamp(34px, calc((var(--mobile-content-width) - 64px) / 6), 76px);
  --letter-tile-font: clamp(20px, 6.1vw, 42px);
  --letter-tile-border: 3px;
  --letter-radius: 14px;
}

.game__letters--short {
  --letter-gap: 12px;
  --letter-word-gap: 10px;
  --letter-slot-width: clamp(52px, calc((100% - 30px) / 4), 90px);
  --letter-slot-height: clamp(62px, 14vw, 86px);
  --letter-input-font: clamp(38px, calc((var(--mobile-content-width) - 30px) / 4 - 4px), 64px);
  --letter-border: 3px;
  --letter-radius: 16px;
}

.game__letters--medium {
  --letter-gap: 10px;
  --letter-word-gap: 8px;
  --letter-slot-width: clamp(44px, calc((100% - 32px) / 5), 84px);
  --letter-slot-height: clamp(56px, 13vw, 80px);
  --letter-input-font: clamp(34px, calc((var(--mobile-content-width) - 32px) / 5 - 6px), 62px);
  --letter-border: 3px;
  --letter-radius: 15px;
}

.game__letters--long {
  --letter-gap: 8px;
  --letter-word-gap: 7px;
  --letter-slot-width: clamp(36px, calc((100% - 35px) / 6), 78px);
  --letter-slot-height: clamp(52px, 12vw, 74px);
  --letter-input-font: clamp(29px, calc((var(--mobile-content-width) - 35px) / 6 - 7px), 58px);
  --letter-border: 3px;
  --letter-radius: 14px;
}

.game__letters--xlong {
  --letter-gap: 6px;
  --letter-word-gap: 6px;
  --letter-slot-width: clamp(34px, calc((100% - 42px) / 8), 82px);
  --letter-slot-height: clamp(46px, 10.8vw, 66px);
  --letter-input-font: clamp(28px, calc((var(--mobile-content-width) - 42px) / 8 - 7px), 62px);
  --letter-border: 2px;
  --letter-radius: 12px;
}

.game__letters--xxlong {
  --letter-gap: 5px;
  --letter-word-gap: 5px;
  --letter-slot-width: clamp(22px, calc((100% - 55px) / 12), 68px);
  --letter-slot-height: clamp(42px, 9.4vw, 54px);
  --letter-input-font: clamp(20px, calc((var(--mobile-content-width) - 55px) / 12 - 5px), 54px);
  --letter-border: 2px;
  --letter-radius: 10px;
}

.game__letters--count-3 {
  --letter-word-gap: 12px;
  --letter-slot-width: clamp(58px, calc((100% - 24px) / 3), 94px);
  --letter-input-font: clamp(40px, calc((var(--mobile-content-width) - 24px) / 3 - 6px), 66px);
}

.game__letters--count-4 {
  --letter-word-gap: 10px;
  --letter-slot-width: clamp(52px, calc((100% - 30px) / 4), 88px);
  --letter-input-font: clamp(38px, calc((var(--mobile-content-width) - 30px) / 4 - 4px), 64px);
}

.game__letters--count-5 {
  --letter-word-gap: 8px;
  --letter-slot-width: clamp(44px, calc((100% - 32px) / 5), 82px);
  --letter-input-font: clamp(34px, calc((var(--mobile-content-width) - 32px) / 5 - 6px), 62px);
}

.game__letters--count-6 {
  --letter-word-gap: 7px;
  --letter-slot-width: clamp(36px, calc((100% - 35px) / 6), 76px);
  --letter-input-font: clamp(29px, calc((var(--mobile-content-width) - 35px) / 6 - 7px), 58px);
}

.game__letters--count-7 {
  --letter-word-gap: 6px;
  --letter-slot-width: clamp(34px, calc((100% - 36px) / 7), 76px);
  --letter-input-font: clamp(28px, calc((var(--mobile-content-width) - 36px) / 7 - 6px), 60px);
}

.game__letters--count-8 {
  --letter-word-gap: 5px;
  --letter-slot-width: clamp(32px, calc((100% - 35px) / 8), 78px);
  --letter-input-font: clamp(28px, calc((var(--mobile-content-width) - 35px) / 8 - 5px), 60px);
}

.game__letters--count-9 {
  --letter-word-gap: 5px;
  --letter-slot-width: clamp(28px, calc((100% - 40px) / 9), 78px);
  --letter-input-font: clamp(26px, calc((var(--mobile-content-width) - 40px) / 9 - 8px), 64px);
}

.game__letters--count-10 {
  --letter-word-gap: 4px;
  --letter-slot-width: clamp(25px, calc((100% - 36px) / 10), 72px);
  --letter-input-font: clamp(23px, calc((var(--mobile-content-width) - 36px) / 10 - 7px), 58px);
}

.game__letters--count-11 {
  --letter-word-gap: 4px;
  --letter-slot-width: clamp(22px, calc((100% - 40px) / 11), 66px);
  --letter-input-font: clamp(20px, calc((var(--mobile-content-width) - 40px) / 11 - 6px), 50px);
}

.game__letters--count-12 {
  --letter-word-gap: 3px;
  --letter-slot-width: clamp(21px, calc((100% - 33px) / 12), 58px);
  --letter-input-font: clamp(18px, calc((var(--mobile-content-width) - 33px) / 12 - 5px), 42px);
}

.game__hint {
  min-height: 46px;
  width: var(--mobile-panel-width);
  max-width: var(--mobile-panel-width);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: var(--radius-control);
  background: rgba(255,255,255,.72);
  color: #314564;
  font-family: var(--font-heading);
  font-size: clamp(.95rem, 3.7vw, 1.1rem);
  font-weight: 900;
  text-align: center;
  overflow-wrap: anywhere;
  hyphens: auto;
  box-shadow: inset 0 -2px 0 rgba(36, 51, 70, .08);
}

.game__hint--empty {
  visibility: hidden;
}

.game__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: var(--mobile-panel-width);
}

.game__actions .game__skip-btn,
.game__actions .game__stop-btn {
  flex: 1 1 auto;
  min-width: 0;
}

/* In-game consumable bonuses (💡 hint / ⏱️ +10 s) */
.game__bonus-btn {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: clamp(58px, 8dvh, 72px);
  height: clamp(62px, 8dvh, 76px);
  border-radius: var(--radius-control);
  border: 4px solid rgba(255,255,255,.82);
  background: var(--surface-panel);
  box-shadow: inset 0 4px 0 rgba(255,255,255,.36), inset 0 -5px 0 rgba(36, 51, 70, .12), 0 10px 0 #b9a37f, 0 18px 24px rgba(44, 50, 78, .16);
  cursor: pointer;
}

.game__bonus-btn:active {
  transform: translateY(3px);
  box-shadow: inset 0 4px 0 rgba(255,255,255,.36), inset 0 -5px 0 rgba(36, 51, 70, .12), 0 6px 0 #b9a37f, 0 12px 18px rgba(44, 50, 78, .16);
}

.game__bonus-btn--empty {
  opacity: .55;
  filter: grayscale(.5);
}

.game__bonus-emoji {
  font-size: clamp(22px, 3.4dvh, 28px);
  line-height: 1;
}

.game__bonus-count {
  position: absolute;
  bottom: -7px;
  right: -7px;
  min-width: 26px;
  padding: 2px 6px;
  border-radius: var(--radius-icon-badge);
  background: var(--gradient-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 3px 6px rgba(43, 61, 91, .28);
}

.game__bonus-btn--empty .game__bonus-count {
  background: #9aa7b8;
}

.game__skip-btn,
.game__stop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  height: clamp(62px, 8dvh, 76px);
  padding: 0 18px;
  border-radius: var(--radius-control);
  border: 4px solid rgba(255,255,255,.82);
  box-shadow: inset 0 4px 0 rgba(255,255,255,.36), inset 0 -5px 0 rgba(132, 80, 22, .16), 0 10px 0 #b9a37f, 0 18px 24px rgba(44, 50, 78, .16);
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 5.4vw, 1.75rem);
  font-weight: 900;
}

.game__skip-btn {
  background: var(--gradient-action-alt);
  color: #5b3712;
}

.game__stop-btn {
  background: linear-gradient(135deg, #1A9A8B, #2E6BCB);
  color: #ffffff;
  box-shadow: inset 0 4px 0 rgba(255,255,255,.32), inset 0 -5px 0 rgba(8, 61, 103, .22), 0 10px 0 #b9a37f, 0 18px 24px rgba(44, 50, 78, .16);
}

.game__skip-icon,
.game__stop-icon {
  width: 26px;
  height: 26px;
}

.game__ad-space {
  width: var(--mobile-panel-width);
  height: 100%;
  min-height: clamp(58px, 12dvh, 180px);
  border-radius: var(--radius-panel);
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  border: 2px dashed rgba(255,255,255,.16);
  box-shadow: inset 0 2px 10px rgba(55, 79, 103, .05);
}

.game__score-fly {
  position: absolute;
  right: -6px;
  top: -18px;
  color: #28a36e;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 900;
  animation: scoreFly 800ms ease forwards;
  pointer-events: none;
  white-space: nowrap;
}

@keyframes gameCloud {
  0%, 100% { translate: 0 0; }
  50% { translate: 26px 0; }
}

@keyframes gameLetterFall {
  0% { translate: 0 -18vh; opacity: 0; }
  12% { opacity: .36; }
  82% { opacity: .36; }
  100% { translate: 0 128vh; opacity: 0; }
}

@keyframes letterAssistPrompt {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  28% { transform: translate3d(0, -9px, 0) scale(1.14) rotate(-3deg); }
  54% { transform: translate3d(6px, -3px, 0) scale(1.09) rotate(3deg); }
  78% { transform: translate3d(-5px, 1px, 0) scale(1.11) rotate(-2deg); }
}

@media (prefers-reduced-motion: reduce) {
  .game__tile--assist {
    animation: none;
    transform: scale(1.06);
  }
}

@media (max-height: 700px) {
  .game-screen {
    gap: 9px;
  }

  .game__playfield {
    grid-template-rows: auto auto auto auto minmax(0, 1fr);
    gap: 8px;
    padding-top: 8px;
  }

  .game__board {
    padding: 10px;
  }

  .game__ad-space {
    min-height: 48px;
  }
}

@media (min-width: 640px) {
  .game-screen {
    padding: clamp(22px, 3dvh, 34px) var(--mobile-shell-gutter);
    gap: clamp(16px, 2dvh, 24px);
  }

  .game__hud-pill {
    min-width: 70px;
    min-height: 50px;
  }

  .game__board {
    --letter-tile-size: clamp(68px, calc((var(--mobile-content-width) - 84px) / 5), 92px);
    --letter-tile-font: clamp(34px, 5.4vw, 52px);
  }

  .game__board--count-11,
  .game__board--count-12 {
    --letter-tile-size: clamp(56px, calc((var(--mobile-content-width) - 78px) / 6), 84px);
    --letter-tile-font: clamp(30px, 4.6vw, 46px);
  }
}

@media (min-width: 1024px) {
  .game__hud-top {
    grid-template-columns: 54px minmax(0, 1fr) 54px;
  }

  .game__home,
  .game__loading-home,
  .game__hud-spacer {
    width: 54px;
    height: 54px;
  }

  .game__hud-pills {
    gap: 10px;
  }

  .game__hud-pill {
    min-width: 78px;
    min-height: 56px;
  }

  .game__playfield {
    width: var(--mobile-panel-width);
    gap: clamp(14px, 2dvh, 24px);
    padding-block: clamp(12px, 2.5dvh, 34px) 0;
  }

  .game__board {
    width: var(--mobile-panel-width);
    padding: clamp(16px, 2.4dvh, 24px);
  }
}

@media (max-height: 700px) {
  .game-screen {
    gap: 8px;
    padding: max(12px, env(safe-area-inset-top)) var(--mobile-shell-gutter) max(12px, env(safe-area-inset-bottom));
  }

  .game__hud {
    gap: 6px;
  }

  .game__hud-top {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 8px;
  }

  .game__home,
  .game__loading-home,
  .game__hud-spacer {
    width: 48px;
    height: 48px;
  }

  .game__hud-pill {
    min-width: 64px;
    min-height: 44px;
  }

  .game__playfield {
    gap: 8px;
    padding-top: 6px;
  }

  .game__input-area {
    min-height: 50px;
  }

  .game__hint {
    min-height: 40px;
    padding: 6px 12px;
  }

  .game__board {
    --letter-board-pad: 10px;
    --letter-gap: 6px;
    --letter-tile-size: clamp(40px, calc((var(--mobile-content-width) - 70px) / 5), 68px);
    --letter-tile-font: clamp(24px, 6.5vw, 39px);
    padding: 10px;
  }

  .game__skip-btn {
    height: 52px;
  }

  .game__ad-space {
    min-height: 0;
  }
}
