:root {
  --black: #111;
  --text: #121212;
  --muted: #555;
  --line: #e6e6e6;
  --blue: #95bff4;
  --selected: #b4d7f5;
  --active: #f8df67;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  height: 56px;
  border-bottom: 1px solid #d9d9d9;
  background: #fff;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 20;
}

.hamburger {
  width: 56px;
  height: 56px;
  border: 0;
  background: transparent;
  display: grid;
  place-content: center;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 3px;
  background: #111;
  border-radius: 1px;
}

.brand {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
  color: #000;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 28px;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.brand-word {
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 16px;
}

.nav-button {
  height: 36px;
  min-width: 109px;
  padding: 0 30px;
  border: 1px solid #111;
  border-radius: 4px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  background: #fff;
}

.nav-button-dark {
  min-width: 135px;
  color: #fff;
  background: #000;
}

.top-ad {
  height: 330px;
  padding-top: 31px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(260px, 35.2%) minmax(420px, 38.4%) minmax(250px, 26.4%);
  align-content: start;
  overflow: hidden;
}

.ad-media,
.ad-message,
.ad-portraits {
  height: 268px;
}

.ad-media {
  position: relative;
  background: #c9c2b8;
  overflow: hidden;
}

.ad-photo {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 39% 19%, #f1d7b4 0 9%, transparent 10%),
    linear-gradient(90deg, #8f755d 0 24%, #cda884 25% 43%, #d9c7bd 44% 69%, #6c5f58 70% 100%);
  filter: saturate(0.75);
  opacity: 0.85;
}

.play-button {
  position: absolute;
  left: 13px;
  bottom: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
}

.play-button::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 9px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid #fff;
}

.ad-message {
  background: #aaa2d0;
  text-align: center;
  padding-top: 42px;
}

.ad-message.banner-only {
  display: grid;
  place-items: center;
  padding-top: 0;
}

.ad-kicker {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 18px;
}

.ad-title {
  color: #fff;
  text-transform: uppercase;
  font-weight: 900;
  font-size: 32px;
  line-height: 0.95;
}

.ad-title.banner-line {
  text-transform: none;
  font-size: 64px;
  line-height: 1;
}

.ad-copy {
  margin-top: 8px;
  font-size: 16px;
}

.ad-cta {
  margin-top: 24px;
  height: 30px;
  padding: 0 14px;
  border: 0;
  border-radius: 3px;
  color: #fff;
  background: #111;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
}

.ad-portraits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #e6d0d9;
}

.portrait {
  display: block;
  position: relative;
  overflow: hidden;
}

.portrait::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%);
  width: 92px;
  height: 132px;
  border-radius: 46px 46px 18px 18px;
  background: #222;
}

.portrait::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 24px;
  transform: translateX(-50%);
  width: 58px;
  height: 70px;
  border-radius: 46% 46% 44% 44%;
  background: #e3c4a9;
}

.portrait-a { background: #d9eef0; }
.portrait-b { background: #f5bad2; }
.portrait-c { background: #edc8cc; }
.portrait-d { background: #cbe7ef; }
.portrait-a::before { background: #ebe8e0; }
.portrait-b::before { background: #111; }
.portrait-c::before { background: #f0d8ba; }
.portrait-d::before { background: #191919; }

.title-strip {
  height: 146px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
}

.title-wrap {
  max-width: 1122px;
  width: 100%;
  margin: 0 auto;
  padding-left: 0;
}

.title-line {
  display: flex;
  align-items: baseline;
  gap: 19px;
}

.title-line h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 46px;
  line-height: 1;
  font-weight: 900;
}

.title-line time {
  font-size: 30px;
  line-height: 1.2;
}

.title-wrap p {
  margin: 10px 0 0;
  font-size: 13px;
}

.toolbar {
  height: 47px;
  border-bottom: 1px solid var(--line);
}

.mobile-play-toolbar,
.mobile-clue-strip,
.mobile-keyboard-panel {
  display: none;
}

.toolbar-inner {
  max-width: 1220px;
  height: 47px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: center;
}

.icon-button {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  position: relative;
}

.settings span,
.settings span::before,
.settings span::after {
  position: absolute;
  display: block;
  content: "";
  border-radius: 50%;
}

.settings span {
  left: 18px;
  top: 18px;
  width: 8px;
  height: 8px;
  background: #666;
}

.settings span::before {
  left: -8px;
  top: -8px;
  width: 24px;
  height: 24px;
  border: 5px dashed #666;
}

.timer {
  text-align: center;
  font-size: 16px;
  color: #444;
}

.tools {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #555;
}

.tools button {
  border: 0;
  background: transparent;
  color: #555;
  font-size: 16px;
  min-width: 40px;
  height: 40px;
}

.round-icon {
  width: 32px;
  min-width: 32px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 20px;
}

.game-zone {
  max-width: 1090px;
  min-height: 661px;
  margin: 0 auto;
  padding-top: 10px;
  position: relative;
}

.answer-bar {
  width: 100%;
  min-height: 59px;
  background: #f6e7a0;
  margin-bottom: 12px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.game-layout {
  display: grid;
  grid-template-columns: 470px 1fr;
  gap: 40px;
}

.board-panel {
  position: relative;
}

.crossword {
  --puzzle-size: 5;
  width: 470px;
  height: 470px;
  border: 3px solid #565656;
  display: grid;
  grid-template-columns: repeat(var(--puzzle-size), 1fr);
  grid-template-rows: repeat(var(--puzzle-size), 1fr);
  background: #555;
}

.cell {
  position: relative;
  border: 1px solid #aaa;
  background: #fff;
  color: #111;
  display: grid;
  place-items: center;
  user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.cell.black {
  background: #565656;
}

.cell.selected {
  background: var(--selected);
}

.cell.active-word:not(.black):not(.selected) {
  background: #d8ecfb;
}

body.locked .cell.selected,
body.locked .cell.active-word:not(.black):not(.selected) {
  background: #fff;
}

.cell.checked.wrong:not(.black) {
  background: #ffd8d8;
}

.cell.checked.correct:not(.black) {
  background: #e7f4dd;
}

.number {
  position: absolute;
  left: 5px;
  top: 3px;
  font-size: clamp(12px, calc(160px / var(--puzzle-size)), 32px);
  line-height: 1;
  color: #555;
}

.letter {
  font-size: clamp(24px, calc(190px / var(--puzzle-size)), 38px);
  line-height: 1;
  font-weight: 600;
  text-transform: uppercase;
}

.clues {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding-top: 26px;
}

.clue-column h2 {
  margin: 0 0 14px;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 800;
}

.clue-column ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.clue-column li {
  display: grid;
  grid-template-columns: 26px 1fr;
  min-height: 44px;
  padding: 7px 0;
  border-top: 1px solid #ececec;
  font-size: 15px;
  line-height: 1.25;
}

.clue-number {
  font-weight: 700;
}

.clue-column li.active {
  background: #f6e7a0;
}

.paywall {
  position: absolute;
  left: 50%;
  top: -26px;
  width: 668px;
  height: 664px;
  transform: translateX(-50%);
  z-index: 10;
}

.paywall-inner {
  width: 100%;
  height: 100%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 156px;
}

.mini-icon {
  width: 76px;
  height: 76px;
  border: 4px solid #111;
  border-radius: 9px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  overflow: hidden;
  margin-bottom: 10px;
}

.mini-icon span {
  background: #fff;
  border: 2px solid #111;
}

.mini-icon span:nth-child(3) {
  background: #000;
}

.paywall h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 48px;
  line-height: 1.1;
  font-weight: 900;
}

.paywall p {
  margin: 27px 0 38px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1.1;
}

.paywall-actions {
  display: grid;
  gap: 10px;
}

.pill-button {
  width: 234px;
  height: 46px;
  border-radius: 25px;
  font-weight: 800;
  font-size: 15px;
}

.pill-dark {
  border: 1px solid #111;
  color: #fff;
  background: #111;
}

.pill-light {
  border: 2px solid #111;
  color: #111;
  background: #fff;
}

body:not(.locked) .paywall {
  display: none;
}

.mobile-keyboard-input {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  border: 0;
  padding: 0;
  opacity: 0.01;
  pointer-events: none;
  font-size: 16px;
}

.win-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.72);
}

.win-modal[hidden] {
  display: none;
}

.win-card {
  position: relative;
  width: min(360px, calc(100vw - 48px));
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.24);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 42px 32px 34px;
}

.win-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #333;
  font-size: 28px;
  line-height: 1;
}

.result-icon {
  width: 58px;
  height: 58px;
  border-width: 3px;
  border-radius: 7px;
  margin-bottom: 18px;
}

.win-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  line-height: 1;
}

.win-card p {
  margin: 12px 0 24px;
  font-size: 22px;
  font-weight: 800;
}

.bottom-ad {
  height: 329px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  place-items: center;
}

.bottom-ad span {
  border: 1px solid #ccc;
  color: #bbb;
  font-size: 12px;
  padding: 9px 12px;
}

.footer {
  background: #f8f8f8;
  min-height: 520px;
  padding: 62px 74px 20px;
  display: grid;
  grid-template-columns: minmax(420px, 1.2fr) 180px 150px 190px;
  gap: 30px;
  position: relative;
}

.footer h2,
.footer h3 {
  margin: 0 0 18px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
}

.footer-about p {
  max-width: 590px;
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.25;
}

.footer-about a {
  color: #1a57d6;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
}

.footer-list.compact a {
  gap: 0;
}

.subhead {
  margin-top: 26px;
}

.game-icon {
  width: 18px;
  height: 18px;
  border: 1px solid #111;
  display: inline-block;
  flex: 0 0 18px;
}

.icon-crossplay { background: #9cc4ff; border-radius: 4px; }
.icon-crossword { background: repeating-linear-gradient(90deg, #fff 0 4px, #111 4px 8px); }
.icon-midi { background: conic-gradient(#111 0 25%, #fff 0 50%, #111 0 75%, #fff 0); }
.icon-mini { background: linear-gradient(90deg, #111 0 50%, #fff 0); }
.icon-bee { background: #ffd83e; border-radius: 50%; }
.icon-wordle { background: conic-gradient(#6aaa64 0 25%, #c9b458 0 50%, #6aaa64 0 75%, #c9b458 0); }
.icon-pips { background: #eee; transform: rotate(45deg); }
.icon-strands { background: #bde3ff; }
.icon-connections { background: #b264c9; }
.icon-tiles { background: #7ac66f; border-radius: 50%; }
.icon-letter { background: #e8354b; transform: skew(-8deg); }
.icon-sudoku { background: repeating-linear-gradient(0deg, #fff 0 5px, #f0aa49 5px 9px); }

.legal {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: min(760px, calc(100% - 40px));
  font-size: 10px;
}

.legal a,
.legal span {
  white-space: nowrap;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  padding: 10px 16px;
  background: #111;
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 30;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 900px) {
  :root {
    --mobile-blue: #a8d8fb;
    --mobile-keyboard-height: 247px;
    --mobile-clue-height: 78px;
    --mobile-toolbar-height: 100px;
    --mobile-board-size: min(
      100vw,
      calc(100dvh - var(--mobile-toolbar-height) - var(--mobile-clue-height) - var(--mobile-keyboard-height) - 16px)
    );
  }

  html,
  body {
    min-height: 100dvh;
    overflow-x: hidden;
  }

  .top-actions,
  .top-ad,
  .title-strip,
  .toolbar,
  .bottom-ad,
  .footer,
  .mobile-play-toolbar,
  .mobile-clue-strip,
  .mobile-keyboard-panel {
    display: none;
  }

  .game-zone {
    display: block;
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: 0;
  }

  body.locked {
    background: var(--blue);
  }

  body.locked .answer-bar,
  body.locked .game-layout,
  body.locked .mobile-clue-strip,
  body.locked .mobile-keyboard-panel {
    display: none;
  }

  .topbar {
    height: 48px;
    position: sticky;
    top: 0;
    z-index: 35;
  }

  .hamburger {
    width: 50px;
    height: 48px;
    position: absolute;
    left: 0;
    top: 0;
  }

  .hamburger span {
    width: 20px;
    height: 3px;
  }

  .brand {
    margin: 0 auto;
    height: 48px;
    gap: 0;
  }

  .brand-word {
    font-size: 27px;
  }

  .paywall {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    top: 48px;
    bottom: 0;
    transform: none;
    width: auto;
    height: auto;
    background: var(--blue);
    z-index: 15;
  }

  .paywall-inner {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding-top: 228px;
  }

  .mini-icon {
    width: 76px;
    height: 76px;
    margin-bottom: 10px;
  }

  .paywall h2 {
    font-size: 37px;
  }

  .paywall p {
    margin: 17px 0 22px;
    font-size: 22px;
  }

  .pill-button {
    width: 228px;
    height: 46px;
  }

  .paywall-actions {
    gap: 10px;
  }

  body:not(.locked) {
    height: 100dvh;
    overflow: hidden;
    background: #fff;
  }

  body:not(.locked) .topbar,
  body:not(.locked) .answer-bar,
  body:not(.locked) .clues {
    display: none;
  }

  body:not(.locked) .mobile-play-toolbar {
    height: var(--mobile-toolbar-height);
    padding: 22px 12px 8px;
    display: flex;
    align-items: center;
    position: relative;
    background: #fff;
  }

  .mobile-timer {
    position: absolute;
    left: 50%;
    top: 52px;
    transform: translateX(-50%);
    color: #000;
    font-size: 24px;
    line-height: 1;
    letter-spacing: 0;
  }

  .mobile-play-brand {
    position: absolute;
    left: 50%;
    top: 18px;
    transform: translateX(-50%);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
  }

  .mobile-toolbar-actions {
    display: none;
  }

  .mobile-control {
    width: 40px;
    height: 44px;
    border: 0;
    background: transparent;
    color: #4c82e6;
    position: relative;
    display: grid;
    place-items: center;
  }

  .mobile-chevron::before,
  .mobile-chevron::after {
    content: "";
    position: absolute;
  }

  .mobile-chevron::before {
    left: 7px;
    top: 4px;
    width: 25px;
    height: 25px;
    border-right: 6px solid currentColor;
    border-bottom: 6px solid currentColor;
    background: transparent;
    border-radius: 2px;
    transform: rotate(45deg);
  }

  .mobile-chevron::after {
    display: none;
  }

  .mobile-list::before,
  .mobile-list::after {
    content: "";
    position: absolute;
    top: 11px;
    background: currentColor;
  }

  .mobile-list::before {
    left: 7px;
    width: 5px;
    height: 5px;
    box-shadow: 0 10px 0 currentColor, 0 20px 0 currentColor;
  }

  .mobile-list::after {
    left: 17px;
    width: 25px;
    height: 5px;
    box-shadow: 0 10px 0 currentColor, 0 20px 0 currentColor;
  }

  .mobile-pencil::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 19px;
    width: 32px;
    height: 8px;
    border-radius: 2px;
    background: currentColor;
    transform: rotate(-45deg);
  }

  .mobile-pencil::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 31px;
    border-top: 6px solid currentColor;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    transform: rotate(-45deg);
  }

  .mobile-life::before {
    content: "";
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background:
      radial-gradient(circle, #fff 0 30%, currentColor 31% 49%, transparent 50%),
      conic-gradient(currentColor 0 12%, transparent 12% 25%, currentColor 25% 37%, transparent 37% 50%, currentColor 50% 62%, transparent 62% 75%, currentColor 75% 87%, transparent 87%);
  }

  .mobile-info {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 40px;
    font-weight: 900;
    line-height: 1;
  }

  .mobile-gear::before {
    content: "";
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background:
      radial-gradient(circle, #fff 0 20%, currentColor 21% 39%, transparent 40%),
      repeating-conic-gradient(currentColor 0 13deg, transparent 13deg 27deg);
  }

  body:not(.locked) .game-zone {
    height: calc(100dvh - var(--mobile-toolbar-height));
    padding: 0 0 calc(var(--mobile-clue-height) + var(--mobile-keyboard-height) + env(safe-area-inset-bottom));
  }

  body:not(.locked) .game-layout {
    display: block;
  }

  body:not(.locked) .board-panel {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  body:not(.locked) .crossword {
    width: var(--mobile-board-size);
    height: var(--mobile-board-size);
    margin: 0;
    border: 3px solid #111;
    background: #000;
  }

  body:not(.locked) .cell {
    border: 1px solid #8b8d99;
  }

  body:not(.locked) .cell.black {
    background: #000;
  }

  body:not(.locked) .cell.selected {
    background: #ffd800;
  }

  body:not(.locked) .cell.active-word:not(.black):not(.selected) {
    background: var(--mobile-blue);
  }

  body:not(.locked) .number {
    left: 7px;
    top: 6px;
    color: #000;
    font-size: clamp(18px, calc(var(--mobile-board-size) / 10), 31px);
    font-weight: 400;
  }

  body:not(.locked) .letter {
    font-size: clamp(30px, calc(var(--mobile-board-size) / 8), 44px);
    font-weight: 500;
  }

  body:not(.locked) .mobile-clue-strip {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(var(--mobile-keyboard-height) + env(safe-area-inset-bottom));
    z-index: 26;
    height: var(--mobile-clue-height);
    display: grid;
    grid-template-columns: 46px 1fr 46px;
    align-items: center;
    background: var(--mobile-blue);
    color: #000;
  }

  .mobile-clue-text {
    min-width: 0;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    font-size: clamp(15px, 4.5vw, 19px);
    line-height: 1.15;
    letter-spacing: 0;
  }

  .mobile-clue-nav {
    width: 46px;
    height: var(--mobile-clue-height);
    border: 0;
    background: transparent;
    position: relative;
  }

  .mobile-clue-nav::before {
    content: "";
    position: absolute;
    top: 50%;
    margin-top: -13px;
    width: 26px;
    height: 26px;
    border-top: 3px solid #000;
    border-left: 3px solid #000;
  }

  .mobile-prev::before {
    left: 20px;
    transform: rotate(-45deg);
  }

  .mobile-next::before {
    right: 20px;
    transform: rotate(135deg);
  }

  body:not(.locked) .mobile-keyboard-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: env(safe-area-inset-bottom);
    z-index: 25;
    height: var(--mobile-keyboard-height);
    padding: 7px 4px 14px;
    display: grid;
    gap: 8px;
    background: #d7d7d7;
  }

  .keyboard-row {
    display: grid;
    gap: 6px;
  }

  .row-top {
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }

  .row-home {
    grid-template-columns: repeat(9, minmax(0, 1fr));
    padding: 0 24px;
  }

  .row-bottom {
    grid-template-columns: 1.35fr repeat(7, minmax(0, 1fr)) 1.35fr;
    padding: 0 6px;
  }

  .mobile-keyboard-panel button {
    min-width: 0;
    height: 62px;
    border: 0;
    border-radius: 7px;
    background: #fff;
    color: #000;
    box-shadow: 0 2px 0 #8c8c8c;
    font-size: clamp(28px, 9vw, 43px);
    line-height: 1;
    touch-action: manipulation;
  }

  .mobile-keyboard-panel .keyboard-more,
  .mobile-keyboard-panel .keyboard-delete {
    background: #bdc1c6;
    font-size: 18px;
  }

  .keyboard-delete {
    position: relative;
  }

  .keyboard-delete::before {
    content: "⌫";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #000;
    font-size: 32px;
    line-height: 1;
  }

  body.native-keyboard-open:not(.locked) .mobile-keyboard-panel {
    display: none;
  }

  body.native-keyboard-open:not(.locked) .mobile-clue-strip {
    bottom: env(safe-area-inset-bottom);
  }

  .win-modal {
    background: rgba(149, 191, 244, 0.78);
  }

  .win-card {
    width: min(330px, calc(100vw - 32px));
  }
}

@media (max-width: 900px) and (max-height: 720px) {
  :root {
    --mobile-keyboard-height: 219px;
    --mobile-clue-height: 66px;
    --mobile-toolbar-height: 82px;
  }

  body:not(.locked) .mobile-play-toolbar {
    padding-top: 14px;
  }

  .mobile-play-brand {
    top: 8px;
    font-size: 22px;
  }

  .mobile-timer {
    top: 42px;
  }

  body:not(.locked) .crossword {
    width: var(--mobile-board-size);
    height: var(--mobile-board-size);
  }

  .mobile-keyboard-panel button {
    height: 54px;
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .title-wrap,
  .toolbar-inner,
  .game-zone {
    margin-left: 72px;
    margin-right: 72px;
  }

  .game-layout {
    grid-template-columns: 420px 1fr;
    gap: 28px;
  }

  .crossword {
    width: 420px;
    height: 420px;
  }
}
