/* ==========================================================================
   Game: Word Search
   Self-contained — every class is prefixed .ws-. The game panel is always a
   dark "stage" in both site themes. Uses site tokens from common.css.
   ========================================================================== */

.ws {
  --ws-bg: #13213a;
  --ws-card: rgba(255, 255, 255, .06);
  --ws-card-hover: rgba(255, 255, 255, .11);
  --ws-line: rgba(255, 255, 255, .13);
  --ws-text: #fff;
  --ws-sub: rgba(255, 255, 255, .72);
  --ws-good: #19c28f;
  --ws-bad: #ff5c8a;
  --ws-warn: #ffb547;
  --ws-accent: var(--hot);
  --ws-tile: #f7f4ea;

  position: relative;
  margin: 10px 0 40px;
  padding: 36px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(110% 90% at 100% 0%, rgba(18, 163, 127, .34), transparent 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(91, 61, 245, .42), transparent 60%),
    var(--ws-bg);
  color: var(--ws-text);
  isolation: isolate;
  min-height: 520px;
}

:root[data-theme="dark"] .ws { border: 1px solid var(--line); }

/* Decorative letter tiles drifting in the corner */
.ws::before {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  z-index: -1;
  width: 300px;
  height: 300px;
  background:
    repeating-linear-gradient(0deg, transparent 0 34px, rgba(255, 255, 255, .07) 34px 36px),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(255, 255, 255, .07) 34px 36px);
  transform: rotate(-12deg);
  mask-image: radial-gradient(circle at 70% 70%, #000 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 70% 70%, #000 30%, transparent 70%);
}

.ws-screen[hidden] { display: none !important; }
.ws-screen { animation: ws-fade .35s var(--ease); }

@keyframes ws-fade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.ws-ico {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Shared buttons ---------- */
.ws-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 18px;
  border: 1px solid var(--ws-line);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ws-text);
  font: 600 .875rem/1.2 var(--font);
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.ws-ghost:hover { background: var(--ws-card-hover); }
.ws-ghost--danger { color: var(--ws-sub); }
.ws-ghost--danger.is-confirm { border-color: var(--ws-bad); color: var(--ws-bad); }
.ws-ghost .ws-ico--off { display: none; }
.ws-ghost.is-off .ws-ico--on { display: none; }
.ws-ghost.is-off .ws-ico--off { display: block; }

.ws-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  padding: 0;
  border: 1px solid var(--ws-line);
  border-radius: 50%;
  background: var(--ws-card);
  color: var(--ws-text);
  cursor: pointer;
  transition: background-color .2s var(--ease);
}
.ws-icon-btn:hover { background: var(--ws-card-hover); }

.ws .btn-pill { min-height: 46px; padding: 11px 24px; }
.ws .btn-pill:not(.btn-pill--hot) { background: var(--brand-soft); color: var(--night); }

.ws button:focus-visible,
.ws select:focus-visible { outline: 3px solid var(--ws-accent); outline-offset: 2px; }

/* ==========================================================================
   Screen 1: home
   ========================================================================== */
.ws-home__head {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  max-width: 760px;
}

.ws-logo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  flex: none;
  width: 80px;
  height: 80px;
  padding: 8px;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--c-life), var(--brand));
  box-shadow: 0 12px 30px rgba(18, 163, 127, .35);
}
.ws-logo span {
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: rgba(255, 255, 255, .92);
  color: var(--night);
  font-size: .7rem;
  font-weight: 800;
  line-height: 1;
}
.ws-logo span:nth-child(1), .ws-logo span:nth-child(5), .ws-logo span:nth-child(9) {
  background: var(--hot);
  animation: ws-glow 2.4s ease-in-out infinite;
}
.ws-logo span:nth-child(5) { animation-delay: .25s; }
.ws-logo span:nth-child(9) { animation-delay: .5s; }
@keyframes ws-glow { 50% { transform: scale(1.12); } }

.ws-kicker {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 216, 77, .14);
  color: var(--ws-accent);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ws-title {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4.4vw, 3rem);
  letter-spacing: -.035em;
  line-height: 1.05;
}
.ws-lead { margin: 0; color: var(--ws-sub); }

.ws-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 28px 0 20px;
}
.ws-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ws-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--ws-line);
  border-radius: var(--radius-pill);
  background: var(--ws-card);
}
.ws-chip__label { color: var(--ws-sub); font-size: .78rem; font-weight: 500; }
.ws-chip strong { color: var(--ws-accent); font-size: 1rem; }
.ws-toolbar__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Daily card + theme picker */
.ws-daily-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 280px);
  gap: 14px;
  margin-bottom: 28px;
}
.ws-daily {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid rgba(255, 216, 77, .4);
  border-radius: var(--radius-md);
  background: linear-gradient(120deg, rgba(255, 216, 77, .16), rgba(255, 216, 77, .03));
  color: var(--ws-text);
  font-family: var(--font);
  text-align: left;
  cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.ws-daily:hover { transform: translateY(-2px); }
.ws-daily__cal {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 14px;
  background: var(--ws-accent);
  color: var(--night);
}
.ws-daily__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ws-daily__title { font-weight: 700; }
.ws-daily__meta { color: var(--ws-sub); font-size: .84rem; }
.ws-daily__go {
  flex: none;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: var(--ws-accent);
  color: var(--night);
  font-size: .84rem;
  font-weight: 700;
}
.ws-daily.is-done .ws-daily__go { background: rgba(255, 255, 255, .14); color: var(--ws-text); }
.ws-daily.is-done .ws-daily__go::before { content: "✓ "; }

.ws-theme-pick {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid var(--ws-line);
  border-radius: var(--radius-md);
  background: var(--ws-card);
}
.ws-theme-pick__label {
  color: var(--ws-sub);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ws-select {
  width: 100%;
  min-height: 40px;
  padding: 6px 34px 6px 12px;
  border: 1px solid var(--ws-line);
  border-radius: 10px;
  background: #0e1a2e url("../../svg/icons/chevron-down-gold.svg") no-repeat right 10px center / 16px;
  color: var(--ws-text);
  font: 600 .9rem/1.2 var(--font);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.ws-select option { background: #0e1a2e; color: #fff; }

.ws-subtitle {
  margin: 0 0 14px;
  font-size: 1rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ws-sub);
}

.ws-stages {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ws-stage {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  height: 100%;
  padding: 18px;
  border: 1px solid var(--ws-line);
  border-radius: var(--radius-md);
  background: var(--ws-card);
  color: var(--ws-text);
  font-family: var(--font);
  text-align: left;
  cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease);
}
.ws-stage:hover:not(:disabled) {
  transform: translateY(-3px);
  border-color: rgba(255, 216, 77, .55);
  background: var(--ws-card-hover);
}
.ws-stage.is-cleared { border-color: rgba(25, 194, 143, .45); }
.ws-stage.is-locked { cursor: not-allowed; opacity: .5; }
.ws-stage__num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--ws-accent);
  color: var(--night);
  font-size: 1.1rem;
  font-weight: 700;
}
.ws-stage.is-locked .ws-stage__num { background: rgba(255, 255, 255, .14); color: var(--ws-text); }
.ws-stage__body { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.ws-stage__name { font-size: 1rem; font-weight: 700; line-height: 1.3; }
.ws-stage__blurb { color: var(--ws-sub); font-size: .82rem; line-height: 1.45; }
.ws-stage__tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.ws-tag {
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .08);
  color: var(--ws-sub);
  font-size: .68rem;
  font-weight: 600;
}
.ws-stage__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--ws-line);
}
.ws-stage__best { color: var(--ws-sub); font-size: .78rem; font-weight: 600; }

.ws-star { color: rgba(255, 255, 255, .22); font-size: 1.05rem; line-height: 1; }
.ws-star.is-on { color: var(--ws-accent); text-shadow: 0 0 12px rgba(255, 216, 77, .5); }

.ws-noscript { margin: 16px 0 0; padding: 14px 18px; border-radius: var(--radius-sm); background: rgba(255, 92, 138, .15); }

/* ==========================================================================
   Screen 2: playing
   ========================================================================== */
.ws-play { position: relative; }

.ws-hud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-bottom: 18px;
}
.ws-hud__info { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.ws-hud__stage {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 216, 77, .14);
  color: var(--ws-accent);
  font-size: .8rem;
  font-weight: 700;
}
.ws-hud__theme {
  padding: 6px 14px;
  border: 1px solid var(--ws-line);
  border-radius: var(--radius-pill);
  font-size: .8rem;
  font-weight: 600;
}
.ws-hud__stats { display: flex; gap: 22px; margin-left: auto; }
.ws-stat { display: flex; flex-direction: column; line-height: 1.2; }
.ws-stat__label { color: var(--ws-sub); font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.ws-stat strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.ws-stat--time.is-over strong { color: var(--ws-warn); }
.ws-hud__actions { display: flex; align-items: center; gap: 8px; }

.ws-tool {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 16px 8px 12px;
  border: 1px dashed rgba(255, 255, 255, .35);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ws-text);
  font: 600 .85rem/1.2 var(--font);
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), opacity .2s var(--ease);
}
.ws-tool .ws-ico { color: var(--ws-accent); }
.ws-tool:hover:not(:disabled) { border-style: solid; border-color: var(--ws-accent); background: rgba(255, 216, 77, .1); }
.ws-tool:disabled { cursor: not-allowed; opacity: .4; }
.ws-tool__badge {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--ws-accent);
  color: var(--night);
  font-size: .75rem;
  font-weight: 800;
}

/* Board */
.ws-board {
  display: grid;
  grid-template-columns: minmax(0, 600px) minmax(220px, 1fr);
  align-items: start;
  gap: 26px;
}

.ws-gridwrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  background: var(--ws-tile);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(0, 0, 0, .06);
  container-type: inline-size;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  outline: none;
}
.ws-gridwrap.has-focus:focus-visible { box-shadow: 0 0 0 3px var(--ws-accent), 0 18px 40px rgba(0, 0, 0, .35); }

.ws-svg,
.ws-grid {
  position: absolute;
  inset: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
}
.ws-svg { overflow: visible; pointer-events: none; }
.ws-grid {
  display: grid;
  grid-template-columns: repeat(var(--n, 10), minmax(0, 1fr));
  grid-template-rows: repeat(var(--n, 10), minmax(0, 1fr));
}
.ws-row { display: contents; }
.ws-cell {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  color: #1d2340;
  font-family: var(--font);
  font-size: calc((100cqw - 20px) / var(--n, 10) * .5);
  font-weight: 700;
  line-height: 1;
  transition: color .2s var(--ease), transform .15s var(--ease);
}
.ws-cell.is-sel { color: #000; transform: scale(1.12); }
.ws-cell.is-found { color: #10142a; }
.ws-cell.is-revealed { color: #6a6f88; }
.ws-cell.is-hint { color: #b5179e; }
.ws-cell.is-anchor { color: #000; }
.ws-gridwrap.has-focus.is-kb .ws-cell.is-cursor::after,
.ws-gridwrap:focus-visible .ws-cell.is-cursor::after {
  content: "";
  position: absolute;
  inset: 8%;
  border: 2px solid var(--brand);
  border-radius: 6px;
}

/* SVG lines are in cell units (1 = one cell) */
.ws-found-line {
  stroke-width: .74;
  stroke-linecap: round;
  opacity: .62;
  animation: ws-draw .35s var(--ease);
}
.ws-found-line.is-revealed { stroke: #9aa0b8 !important; opacity: .45; stroke-dasharray: .3 .2; stroke-width: .6; }
@keyframes ws-draw { from { opacity: 0; stroke-width: .2; } }
.ws-sel {
  stroke: var(--brand);
  stroke-width: .78;
  stroke-linecap: round;
  opacity: .32;
}
.ws-sel.is-miss { stroke: var(--ws-bad); opacity: .4; animation: ws-miss .26s ease; }
@keyframes ws-miss { 50% { opacity: .1; } }
.ws-hint-ring {
  fill: rgba(181, 23, 158, .12);
  stroke: #b5179e;
  stroke-width: .07;
  animation: ws-pulse 1.1s ease-in-out infinite alternate;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes ws-pulse { to { transform: scale(1.12); } }

/* Word list */
.ws-side {
  padding: 18px;
  border: 1px solid var(--ws-line);
  border-radius: var(--radius-md);
  background: var(--ws-card);
}
.ws-side__title {
  margin: 0 0 12px;
  color: var(--ws-sub);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ws-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ws-word {
  --wc: transparent;
  position: relative;
  padding: 6px 12px;
  border: 1px solid var(--ws-line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .05);
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: .05em;
  transition: opacity .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease);
}
.ws-word.is-hinted .ws-word__first { color: var(--ws-accent); text-decoration: underline; text-underline-offset: 3px; }
.ws-word.is-found {
  border-color: var(--wc);
  background: rgba(255, 255, 255, .02);
  color: var(--ws-sub);
  text-decoration: line-through;
  text-decoration-color: var(--wc);
  text-decoration-thickness: 2px;
  animation: ws-pop .35s var(--ease);
}
.ws-word.is-found::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--wc);
  vertical-align: 1px;
}
.ws-word.is-revealed { opacity: .5; text-decoration: line-through; }
@keyframes ws-pop { 50% { transform: scale(1.08); } }

.ws-side__par {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--ws-line);
  color: var(--ws-sub);
  font-size: .82rem;
}
.ws-side__par strong { color: var(--ws-text); }
.ws-side__par .ws-star { font-size: .8rem; letter-spacing: 1px; }

.ws-toast {
  position: absolute;
  left: 50%;
  top: 70px;
  z-index: 4;
  margin: 0;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(10, 14, 30, .9);
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  transform: translateX(-50%);
  pointer-events: none;
  animation: ws-fade .2s var(--ease);
}
.ws-toast[hidden] { display: none; }

/* Pause overlay hides the grid */
.ws-play.is-paused .ws-board { filter: blur(16px); pointer-events: none; user-select: none; }
.ws-play.is-done .ws-gridwrap { cursor: default; }
.ws-paused {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 16px;
}
.ws-paused[hidden] { display: none; }
.ws-paused { place-items: start center; padding-top: 90px; }
.ws-paused__card {
  max-width: 400px;
  padding: 28px;
  border: 1px solid var(--ws-line);
  border-radius: var(--radius-md);
  background: rgba(19, 33, 58, .95);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
  text-align: center;
}
.ws-paused__title { margin: 0 0 6px; font-size: 1.6rem; }
.ws-paused__card p { margin: 0 0 20px; color: var(--ws-sub); font-size: .9rem; }
.ws-paused__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ==========================================================================
   Screen 3: results
   ========================================================================== */
.ws-result { max-width: 640px; margin: 0 auto; padding: 10px 0; text-align: center; }
.ws-result__stars { display: flex; justify-content: center; gap: 10px; margin-bottom: 8px; }
.ws-star--big { font-size: clamp(3rem, 9vw, 4.25rem); opacity: 0; animation: ws-star-in .5s var(--ease) forwards; }
@keyframes ws-star-in {
  from { opacity: 0; transform: scale(.3) rotate(-30deg); }
  to   { opacity: 1; transform: none; }
}
.ws-result__title { margin: 0 0 6px; font-size: clamp(1.8rem, 4vw, 2.5rem); }
.ws-result__new {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  background: var(--ws-accent);
  color: var(--night);
  font-size: .8rem;
  font-weight: 700;
}
.ws-result__new[hidden] { display: none; }
.ws-result__text { margin: 0 auto 24px; max-width: 460px; color: var(--ws-sub); }
.ws-result__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 26px; }
.ws-result__stats div { padding: 14px 8px; border: 1px solid var(--ws-line); border-radius: var(--radius-sm); background: var(--ws-card); }
.ws-result__stats dt { color: var(--ws-sub); font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.ws-result__stats dd { margin: 2px 0 0; font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.ws-result__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ws-result__actions [hidden] { display: none; }

/* ==========================================================================
   How-to-play section (site theme)
   ========================================================================== */
.ws-guide { margin: 0 0 56px; }
.ws-guide .section-head__title { margin-bottom: 22px; }
.ws-guide__item {
  height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.ws-guide__item h3 { margin: 12px 0 6px; font-size: 1.05rem; }
.ws-guide__item p { margin: 0; color: var(--sub); font-size: .9rem; }
.ws-guide__num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand);
  color: var(--onbrand);
  font-weight: 700;
}
.ws-guide__back { margin: 24px 0 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991.98px) {
  .ws-board { grid-template-columns: 1fr; gap: 18px; }
  .ws-gridwrap { max-width: 600px; margin: 0 auto; }
}

@media (max-width: 767.98px) {
  .ws { padding: 24px 20px; min-height: 0; }
  .ws-daily-row { grid-template-columns: 1fr; }
  .ws-result__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-hud__stats { margin-left: 0; }
  .ws-hud__actions { margin-left: auto; }
}

@media (max-width: 575.98px) {
  .ws { margin-left: -4px; margin-right: -4px; padding: 20px 12px; border-radius: var(--radius-md); }
  .ws-home__head { flex-direction: column; gap: 16px; }
  .ws-logo { width: 64px; height: 64px; padding: 6px; gap: 3px; border-radius: 16px; }
  .ws-toolbar { flex-direction: column; align-items: stretch; }
  .ws-toolbar__actions .ws-ghost { flex: 1; }
  .ws-stages { grid-template-columns: 1fr; }
  .ws-hud { gap: 10px 12px; margin-bottom: 12px; }
  .ws-hud__info { width: 100%; }
  .ws-hud__stats { gap: 16px; }
  .ws-tool { padding: 8px 12px 8px 10px; }
  .ws-tool__text { display: none; }
  .ws-svg, .ws-grid { inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px); }
  .ws-cell { font-size: calc((100cqw - 10px) / var(--n, 10) * .54); }
  .ws-gridwrap { border-radius: var(--radius-sm); }
  .ws-side { padding: 14px; }
  .ws-word { padding: 5px 10px; font-size: .8rem; }
  .ws-daily { padding: 14px; gap: 12px; }
  .ws-daily__go { display: none; }
  .ws-paused__actions .btn-pill, .ws-paused__actions .ws-ghost { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .ws-logo span, .ws-hint-ring, .ws-found-line, .ws-word.is-found, .ws-screen { animation: none; }
  .ws-star--big { opacity: 1; animation: none; }
  .ws-cell { transition: none; }
}
