/* Wordscapes: letter-wheel + interlocking crossword word game. */

.wordscapes-page {
  --ws-accent: var(--accent, #7c3aed);
  --ws-accent-strong: var(--accent-strong, #5b21b6);
  --ws-tile-border: rgba(91, 33, 182, 0.22);
  --ws-grid-glow-1: rgba(110, 231, 183, 0.35);
  --ws-grid-glow-2: rgba(167, 139, 250, 0.4);
  --ws-wheel-grad-a: #a78bfa;
  --ws-wheel-grad-b: #6366f1;
  --ws-wheel-grad-c: #7c3aed;
  display: flex;
  flex-direction: column;
  width: 100%;
}

[data-theme="dark"] .wordscapes-page {
  --ws-tile-border: rgba(196, 181, 253, 0.28);
  --ws-grid-glow-1: rgba(52, 211, 153, 0.2);
  --ws-grid-glow-2: rgba(139, 92, 246, 0.28);
  --ws-wheel-grad-a: #5b21b6;
  --ws-wheel-grad-b: #4338ca;
  --ws-wheel-grad-c: #6d28d9;
}

/* Shell + chrome: match Arrow Escape (no card / white panel) */
.ws-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 0.65rem 0.75rem 0.5rem;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.ws-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto var(--ws-toolbar-control-height, 2.35rem);
  align-items: center;
  gap: 0.35rem 0.45rem;
  flex: 0 0 auto;
  margin-bottom: 0.5rem;
}

.ws-header-title {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.ws-header .word-search-game-shell__expand-btn {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  align-self: center;
}

.ws-header-title h1 {
  margin: 0;
  font-size: clamp(1.05rem, 3.5vw, 1.45rem);
  line-height: 1.2;
}

.ws-header-actions {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  justify-self: end;
}

.ws-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  flex: 0 0 auto;
  margin-bottom: 0.45rem;
}

.ws-stats {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.ws-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(91, 33, 182, 0.14);
  background: transparent;
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text);
  white-space: nowrap;
}

[data-theme="dark"] .ws-chip {
  border-color: rgba(233, 224, 255, 0.14);
}

.ws-chip--coins.ws-coins--bump {
  animation: ws-bump 0.4s ease;
}

.ws-ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
}

.ws-controls {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  justify-content: flex-end;
}

.ws-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  border-radius: 10px;
  border: 1px solid rgba(31, 51, 89, 0.28);
  min-height: 40px;
  min-width: 44px;
  background: transparent;
  font: inherit;
  padding: 0 0.6rem;
  cursor: pointer;
  font-weight: 800;
  color: var(--text);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.ws-icon-btn:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--accent) 55%, rgba(31, 51, 89, 0.55));
  transform: translateY(-1px);
}

.ws-icon-btn .ws-ico {
  fill: var(--accent);
}

.ws-hint-cost {
  font-size: inherit;
  font-weight: inherit;
  position: static;
  padding: 0;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: inherit;
}

/* ---- Board ---- */
.ws-board-area {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 180px;
  padding: 1rem 0.75rem;
  margin-bottom: 0.35rem;
  border-radius: var(--radius-md, 16px);
  background:
    radial-gradient(ellipse 85% 70% at 25% 15%, var(--ws-grid-glow-1), transparent 58%),
    radial-gradient(ellipse 75% 65% at 85% 75%, var(--ws-grid-glow-2), transparent 55%),
    linear-gradient(155deg, color-mix(in srgb, var(--ws-wheel-grad-b) 18%, transparent), color-mix(in srgb, var(--ws-wheel-grad-c) 12%, transparent));
}

.ws-board {
  display: grid;
  grid-template-columns: repeat(var(--ws-cols, 5), 1fr);
  grid-auto-rows: 1fr;
  gap: clamp(3px, 1.4vw, 7px);
  width: min(100%, calc(var(--ws-cols, 5) * 46px));
}

.ws-cell {
  position: relative;
  aspect-ratio: 1 / 1;
}

.ws-cell--blank {
  visibility: hidden;
}

.ws-cell--tile {
  overflow: visible;
  border-radius: clamp(5px, 1.6vw, 9px);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(237, 228, 255, 0.65) 48%,
    rgba(199, 210, 254, 0.45) 100%
  );
  border: 1px solid var(--ws-tile-border);
  box-shadow:
    0 2px 6px rgba(91, 33, 182, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

[data-theme="dark"] .ws-cell--tile {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(139, 92, 246, 0.22) 55%,
    rgba(99, 102, 241, 0.18) 100%
  );
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.ws-cell__letter {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: clamp(0.9rem, 4.4vw, 1.5rem);
  color: var(--text);
  opacity: 0;
  transform: scale(0.4) rotateX(80deg);
}

.ws-cell--filled {
  background: linear-gradient(145deg, #ffffff 0%, #ede9fe 45%, #ddd6fe 100%);
  border: 1px solid color-mix(in srgb, var(--ws-accent) 45%, transparent);
  box-shadow:
    0 3px 10px rgba(91, 33, 182, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .ws-cell--filled {
  background: linear-gradient(145deg, #3b2f55 0%, #4c3d6e 50%, #5b4a82 100%);
  box-shadow:
    0 3px 12px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.ws-cell--filled .ws-cell__letter {
  opacity: 1;
  transform: none;
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}

.ws-cell--hint .ws-cell__letter {
  color: var(--ws-accent);
}

.ws-cell--justfilled {
  animation: ws-pop 0.4s ease;
}

.ws-cell--word-reveal {
  animation: ws-cell-fill-pop 0.58s cubic-bezier(0.34, 1.2, 0.48, 1);
}

.ws-cell--word-reveal::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  pointer-events: none;
  animation: ws-cell-fill-glow 0.65s ease-out;
}

.ws-cell--word-reveal .ws-cell__letter {
  animation: ws-letter-drop 0.58s cubic-bezier(0.34, 1.35, 0.48, 1) forwards;
  transition: none;
}

/* ---- Bonus toast ---- */
.ws-bonus-toast {
  margin: 0 auto 0.4rem;
  width: fit-content;
  max-width: 90%;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--ws-accent-strong);
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  animation: ws-toast 0.25s ease;
}

[data-theme="dark"] .ws-bonus-toast {
  color: var(--accent-strong);
}

/* ---- Input cluster ---- */
.ws-input {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ws-current-word {
  min-height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  margin-bottom: 0.35rem;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  color: var(--ws-accent-strong);
}

.ws-current-word span {
  display: inline-flex;
  min-width: 1.1em;
  justify-content: center;
}

.ws-current-word--bad {
  animation: ws-shake 0.4s ease;
  color: #dc2626;
}

.ws-current-word--dupe {
  color: var(--text-muted);
}

.ws-wheel-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: min(100%, 24rem);
  margin-inline: auto;
  box-sizing: border-box;
  padding-inline: 0.2rem;
}

.ws-shuffle-btn {
  grid-column: 1;
  justify-self: end;
}

.ws-round-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: none;
  border-radius: 50%;
  background: var(--accent-2, #6366f1);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease, filter 0.12s ease;
}

.ws-round-btn .ws-ico {
  width: 1.5rem;
  height: 1.5rem;
}

.ws-round-btn:hover {
  filter: brightness(1.08);
}

.ws-round-btn:active {
  transform: scale(0.92);
}

.ws-hint-btn {
  grid-column: 3;
  justify-self: start;
  position: relative;
  background: linear-gradient(160deg, #a78bfa 0%, var(--ws-accent) 55%, #5b21b6 100%);
  box-shadow: 0 4px 14px rgba(91, 33, 182, 0.28);
}

.ws-hint-btn .ws-ico {
  fill: #fff;
}

.ws-hint-btn .ws-hint-cost {
  position: absolute;
  bottom: -2px;
  right: -4px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.3rem;
  height: 1.05rem;
  border-radius: 999px;
  background: #f5c518;
  color: #5a4500;
  font-size: 0.66rem;
  font-weight: 800;
}

/* ---- Letter wheel ---- */
.ws-wheel {
  grid-column: 2;
  justify-self: center;
  position: relative;
  width: min(65vw, 268px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.55), transparent 42%),
    radial-gradient(circle at 72% 78%, var(--ws-grid-glow-1), transparent 48%),
    linear-gradient(155deg, var(--ws-wheel-grad-a), var(--ws-wheel-grad-b) 52%, var(--ws-wheel-grad-c));
  border: none;
  box-shadow:
    0 10px 32px rgba(91, 33, 182, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  touch-action: none;
  user-select: none;
}

.ws-wheel__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: #fde047;
  filter: drop-shadow(0 1px 2px rgba(91, 33, 182, 0.35));
  pointer-events: none;
  z-index: 1;
}

.ws-wheel__tiles {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.ws-tile {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff 0%, #f5f0ff 100%);
  border: none;
  color: var(--ws-accent-strong);
  font-weight: 800;
  font-size: clamp(1rem, 5vw, 1.5rem);
  text-transform: uppercase;
  box-shadow: 0 3px 10px rgba(47, 38, 80, 0.18);
  cursor: pointer;
  transition: transform 0.1s ease, background 0.1s ease, color 0.1s ease, box-shadow 0.1s ease;
}

[data-theme="dark"] .ws-tile {
  background: linear-gradient(180deg, #f8f4ff 0%, #e9e0ff 100%);
  color: #4c1d95;
}

.ws-tile--active {
  background: linear-gradient(180deg, #fef08a 0%, #facc15 55%, #eab308 100%);
  color: #713f12;
  box-shadow: 0 4px 14px rgba(234, 179, 8, 0.45);
  transform: translate(-50%, -50%) scale(1.12);
}

.ws-wheel--shuffling .ws-wheel__lines {
  opacity: 0.35;
  transition: opacity 0.25s ease;
}

.ws-wheel--shuffling {
  animation: ws-wheel-shuffle-spin 0.55s ease-in-out;
}

.ws-tile--shuffling {
  z-index: 4;
  transition:
    left 0.52s cubic-bezier(0.34, 1.12, 0.48, 1),
    top 0.52s cubic-bezier(0.34, 1.12, 0.48, 1),
    transform 0.35s cubic-bezier(0.34, 1.2, 0.48, 1),
    box-shadow 0.35s ease;
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 8px 18px rgba(91, 33, 182, 0.32);
}

@keyframes ws-wheel-shuffle-spin {
  0% {
    transform: rotate(0deg);
  }
  45% {
    transform: rotate(-10deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

/* ---- Win celebration card (matches Zip / Word Search / Arrow Escape) ---- */
.ws-win-panel[hidden] {
  display: none !important;
}

.ws-win-panel {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem;
  box-sizing: border-box;
  pointer-events: none;
}

.ws-win-panel__modal {
  position: relative;
  width: min(86%, 450px);
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(115, 76, 226, 0.36);
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 224, 143, 0.32) 0 24px, transparent 25px),
    radial-gradient(circle at 88% 18%, rgba(255, 170, 226, 0.24) 0 20px, transparent 21px),
    radial-gradient(circle at 84% 82%, rgba(132, 214, 255, 0.22) 0 22px, transparent 23px),
    rgba(255, 255, 255, 0.92);
  color: #22133f;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 12px 34px rgba(36, 24, 85, 0.18);
  backdrop-filter: blur(1.5px);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
  overflow: hidden;
  pointer-events: auto;
}

.ws-win-panel:not([hidden]) .ws-win-panel__modal {
  animation: ws-win-pop 0.55s ease-out;
}

.ws-win-panel__modal::before,
.ws-win-panel__modal::after {
  content: "✦";
  position: absolute;
  color: rgba(116, 75, 232, 0.7);
  font-size: 1rem;
  pointer-events: none;
  animation: ws-win-sparkle-float 1.8s ease-in-out infinite;
}

.ws-win-panel__modal::before {
  left: 0.85rem;
  top: 0.5rem;
}

.ws-win-panel__modal::after {
  right: 0.85rem;
  bottom: 0.5rem;
  animation-delay: 0.45s;
}

@keyframes ws-win-pop {
  0% {
    opacity: 0;
    transform: scale(0.94);
    filter: saturate(0.7) brightness(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: saturate(1.08) brightness(1);
  }
}

@keyframes ws-win-sparkle-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.65;
  }
  50% {
    transform: translateY(-4px) rotate(10deg);
    opacity: 1;
  }
}

.ws-win-panel__title,
.ws-win-panel__detail {
  margin: 0;
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}

.ws-win-panel__detail + .ws-win-panel__detail {
  margin-top: 0.25rem;
}

.ws-win-panel__btn {
  margin-top: 0.65rem;
  width: 100%;
  border: 1px solid rgba(115, 76, 226, 0.36);
  background: var(--surface-strong, rgba(255, 255, 255, 0.95));
  border-radius: 10px;
  min-height: 40px;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  color: #22133f;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.ws-win-panel__btn:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, rgba(115, 76, 226, 0.55));
  transform: translateY(-1px);
}

[data-theme="dark"] .ws-win-panel__modal {
  border-color: rgba(185, 160, 255, 0.62);
  color: #f2f5ff;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 224, 143, 0.24) 0 24px, transparent 25px),
    radial-gradient(circle at 88% 18%, rgba(255, 170, 226, 0.18) 0 20px, transparent 21px),
    radial-gradient(circle at 84% 82%, rgba(132, 214, 255, 0.18) 0 22px, transparent 23px),
    rgba(20, 24, 48, 0.9);
  box-shadow: 0 14px 36px rgba(4, 6, 18, 0.5);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .ws-win-panel__title,
[data-theme="dark"] .ws-win-panel__detail {
  color: #f2f5ff;
}

[data-theme="dark"] .ws-win-panel__btn {
  color: #f2f5ff;
  border-color: rgba(185, 160, 255, 0.45);
  background: rgba(31, 38, 72, 0.85);
}

/* ---- Levels modal ---- */
.ws-levels-modal {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 10, 25, 0.55);
  backdrop-filter: blur(3px);
}

.ws-levels-modal[hidden] {
  display: none;
}

.ws-levels-modal__sheet {
  width: 100%;
  max-width: 420px;
  max-height: 80%;
  display: flex;
  flex-direction: column;
  text-align: left;
  background: var(--surface-strong);
  border-radius: var(--radius-md, 16px);
  box-shadow: var(--shadow-md);
  animation: ws-pop 0.3s ease;
}

.ws-levels-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem 0.5rem;
}

.ws-levels-modal__title {
  margin: 0;
  font-weight: 800;
  font-size: 1.1rem;
}

.ws-levels-modal__close {
  border: none;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}

.ws-levels-modal__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  gap: 0.5rem;
  padding: 0.5rem 1rem 1rem;
  overflow-y: auto;
}

.ws-level-chip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--ws-tile-border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.ws-level-chip--done {
  background: var(--accent-soft);
  color: var(--ws-accent-strong);
}

.ws-level-chip--current {
  outline: 2px solid var(--ws-accent);
  outline-offset: 1px;
}

.ws-level-chip--locked {
  opacity: 0.4;
  cursor: not-allowed;
}

.ws-level-chip__star {
  position: absolute;
  top: 2px;
  right: 4px;
  font-size: 0.7rem;
}

/* ---- Animations ---- */
@keyframes ws-pop {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes ws-cell-fill-pop {
  0% {
    transform: scale(0.7);
    filter: brightness(1.1);
  }
  55% {
    transform: scale(1.1);
    filter: brightness(1.22);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

@keyframes ws-cell-fill-glow {
  0% {
    opacity: 0.9;
    box-shadow:
      0 0 0 0 rgba(250, 204, 21, 0.55),
      0 0 14px rgba(167, 139, 250, 0.45);
  }
  100% {
    opacity: 0;
    box-shadow:
      0 0 0 10px rgba(250, 204, 21, 0),
      0 0 0 rgba(167, 139, 250, 0);
  }
}

@keyframes ws-letter-drop {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(-22%);
  }
  58% {
    opacity: 1;
    transform: scale(1.14) translateY(3%);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes ws-bump {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.18); }
}

@keyframes ws-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

@keyframes ws-toast {
  from { transform: translateY(6px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .ws-cell--filled .ws-cell__letter,
  .ws-cell--justfilled,
  .ws-cell--word-reveal,
  .ws-cell--word-reveal::after,
  .ws-cell--word-reveal .ws-cell__letter,
  .ws-coins--bump,
  .ws-current-word--bad,
  .ws-bonus-toast,
  .ws-win-panel__modal,
  .ws-win-panel__modal::before,
  .ws-win-panel__modal::after,
  .ws-levels-modal__sheet,
  .ws-wheel--shuffling,
  .ws-tile--shuffling {
    animation: none !important;
    transition: none !important;
  }
}

/* Mobile / tablet only — desktop layout unchanged above 1024px. */
@media (max-width: 1024px) {
  /* Normal mode: title + fullscreen on row 1; chips on row 2 (no overlap). */
  .wordscapes-page:not(.wordscapes-page--play-focus) .ws-header {
    grid-template-columns: minmax(0, 1fr) var(--ws-toolbar-control-height, 2.35rem);
    gap: 0.35rem 0.5rem;
  }

  .wordscapes-page:not(.wordscapes-page--play-focus) .ws-header-actions {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: end;
    max-width: 100%;
    flex-wrap: nowrap;
    gap: 0.35rem;
  }

  .wordscapes-page:not(.wordscapes-page--play-focus) .ws-chip {
    font-size: 0.85rem;
    padding: 0.35rem 0.6rem;
  }

  /* Center wheel + side buttons as one group on narrow viewports. */
  .ws-wheel-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
    padding-inline: clamp(0.35rem, 3vw, 0.75rem);
  }

  .ws-shuffle-btn,
  .ws-hint-btn {
    grid-column: unset;
    justify-self: unset;
    flex: 0 0 3rem;
  }

  .ws-hint-btn {
    margin-inline-end: 0.35rem;
  }

  .ws-wheel {
    grid-column: unset;
    justify-self: unset;
    flex: 0 0 auto;
    width: min(calc(100vw - 8.5rem), 268px);
  }
}

/* ---- SEO copy spacing ---- */
.wordscapes-page__seo {
  max-width: 820px;
  margin: 1.5rem auto 0;
}
