/* Shared presentation for the fifth wave's calm, untimed game surfaces. */
.small-talk__hero-card,
.everyday-papers__hero-card,
.beat-of-the-word__hero-card,
.memory-market__hero-card,
.first-to-last__hero-card,
.feeling-finder__hero-card,
.mini-crossword__hero-card {
  border-radius: 1.5rem;
  background: linear-gradient(135deg, oklch(0.27 0.08 255), oklch(0.34 0.09 292));
  box-shadow: 0 1.5rem 3rem rgb(31 41 55 / 16%);
  padding: 2rem;
}

.small-talk__hero-tile,
.everyday-papers__hero-tile,
.beat-of-the-word__hero-tile,
.memory-market__hero-tile,
.first-to-last__hero-tile,
.feeling-finder__hero-tile,
.mini-crossword__hero-tile {
  display: inline-grid;
  min-height: 3.5rem;
  min-width: 3.5rem;
  place-items: center;
  border-radius: 0.9rem;
  padding: 0.55rem;
  font-weight: 900;
}

[class*="__hero-tile--primary"] { background: oklch(0.82 0.14 88); color: oklch(0.24 0.04 255); }
[class*="__hero-tile--secondary"] { background: oklch(0.76 0.12 190); color: oklch(0.22 0.05 255); }
[class*="__hero-tile--accent"] { background: oklch(0.76 0.13 318); color: oklch(0.24 0.04 255); }

.small-talk__scene-grid,
.everyday-papers__paper-grid,
.beat-of-the-word__level-grid,
.memory-market__stall-grid,
.first-to-last__story-grid,
.feeling-finder__set-grid,
.mini-crossword__puzzle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
}

.small-talk__scene,
.everyday-papers__paper,
.beat-of-the-word__level,
.memory-market__stall,
.first-to-last__story,
.feeling-finder__set,
.mini-crossword__puzzle {
  display: flex;
  min-height: 13rem;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid oklch(0.7 0.03 255 / 35%);
  border-radius: 1.25rem;
  background: oklch(1 0 0 / 68%);
  padding: 1.25rem;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.small-talk__scene:hover,
.everyday-papers__paper:hover,
.beat-of-the-word__level:hover,
.memory-market__stall:hover,
.first-to-last__story:hover,
.feeling-finder__set:hover,
.mini-crossword__puzzle:hover {
  border-color: oklch(0.58 0.15 255 / 70%);
  box-shadow: 0 0.75rem 2rem oklch(0.3 0.08 255 / 12%);
  transform: translateY(-2px);
}

.small-talk__scene:focus-visible,
.everyday-papers__paper:focus-visible,
.beat-of-the-word__level:focus-visible,
.memory-market__stall:focus-visible,
.first-to-last__story:focus-visible,
.feeling-finder__set:focus-visible,
.mini-crossword__puzzle:focus-visible {
  outline: 3px solid oklch(0.65 0.16 255);
  outline-offset: 3px;
}

[class*="__scene-mark"],
[class*="__paper-mark"],
[class*="__level-mark"],
[class*="__stall-mark"],
[class*="__story-mark"],
[class*="__set-mark"],
[class*="__puzzle-mark"] {
  display: grid;
  min-height: 2.5rem;
  min-width: 2.5rem;
  place-items: center;
  border-radius: 0.75rem;
  background: oklch(0.93 0.05 255);
  color: oklch(0.38 0.13 255);
  font-weight: 900;
}

.small-talk__game-topbar,
.everyday-papers__game-topbar,
.beat-of-the-word__game-topbar,
.memory-market__game-topbar,
.first-to-last__game-topbar,
.feeling-finder__game-topbar,
.mini-crossword__game-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid oklch(0.7 0.03 255 / 35%);
  padding-bottom: 1.25rem;
}

.small-talk__untimed,
.everyday-papers__untimed,
.beat-of-the-word__untimed,
.memory-market__untimed,
.first-to-last__untimed,
.feeling-finder__untimed,
.mini-crossword__untimed {
  border-radius: 999px;
  background: oklch(0.93 0.05 150);
  color: oklch(0.34 0.09 150);
  padding: 0.4rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 800;
}

.small-talk__progress,
.everyday-papers__progress,
.beat-of-the-word__progress,
.memory-market__progress,
.first-to-last__progress,
.feeling-finder__progress {
  height: 0.45rem;
  margin-top: 1.5rem;
  overflow: hidden;
  border-radius: 999px;
  background: oklch(0.91 0.03 255);
}

.small-talk__progress span,
.everyday-papers__progress span,
.beat-of-the-word__progress span,
.memory-market__progress span,
.first-to-last__progress span,
.feeling-finder__progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, oklch(0.58 0.17 255), oklch(0.7 0.16 315));
  transition: width 220ms ease;
}

.small-talk__stage,
.everyday-papers__stage,
.beat-of-the-word__stage,
.memory-market__stage,
.first-to-last__stage,
.feeling-finder__stage,
.mini-crossword__stage {
  max-width: 62rem;
  margin: 2rem auto 0;
}

.small-talk__prompt,
.everyday-papers__question,
.beat-of-the-word__prompt,
.memory-market__question,
.first-to-last__prompt,
.feeling-finder__prompt,
.mini-crossword__intro {
  border-radius: 1.25rem;
  background: oklch(0.97 0.02 255);
  padding: 1.5rem;
}

.small-talk__line {
  display: grid;
  gap: 0.45rem;
  margin-top: 1rem;
  border-left: 4px solid oklch(0.72 0.13 255);
  border-radius: 0.5rem;
  background: oklch(0.98 0.01 255);
  padding: 1rem 1.1rem;
}

.small-talk__speaker { color: oklch(0.44 0.14 255); font-size: 0.78rem; font-weight: 850; text-transform: uppercase; letter-spacing: 0.08em; }
.small-talk__choice-grid,
.everyday-papers__choice-grid,
.memory-market__choice-grid,
.feeling-finder__choice-grid { display: grid; gap: 0.75rem; margin-top: 1rem; }
.small-talk__choice,
.everyday-papers__choice,
.memory-market__choice,
.feeling-finder__choice { width: 100%; border: 1px solid oklch(0.7 0.03 255 / 40%); border-radius: 0.9rem; background: white; padding: 1rem; text-align: left; }
.small-talk__choice:hover,
.everyday-papers__choice:hover,
.memory-market__choice:hover,
.feeling-finder__choice:hover { border-color: oklch(0.58 0.15 255); }
.small-talk__choice.is-selected,
.everyday-papers__choice.is-selected,
.memory-market__choice.is-selected,
.feeling-finder__choice.is-selected { border-color: oklch(0.58 0.15 255); background: oklch(0.95 0.04 255); }
.small-talk__choice.is-best,
.everyday-papers__choice.is-right,
.memory-market__choice.is-right,
.feeling-finder__choice.is-best { border-color: oklch(0.58 0.15 150); background: oklch(0.95 0.07 150); }
.everyday-papers__choice.is-wrong,
.memory-market__choice.is-wrong { border-color: oklch(0.6 0.16 25); background: oklch(0.97 0.05 25); }
.small-talk__choice-note { display: block; margin-top: 0.35rem; color: oklch(0.44 0.03 255); font-size: 0.78rem; }
.small-talk__reveal,
.everyday-papers__reveal,
.beat-of-the-word__reveal,
.memory-market__reveal,
.feeling-finder__reveal { margin-top: 1rem; border-radius: 1rem; background: oklch(0.96 0.04 150); padding: 1rem; }
.small-talk__best-reply,
.memory-market__answer,
.feeling-finder__answer,
.beat-of-the-word__stressed-word { font-weight: 900; }
.small-talk__feedback,
.everyday-papers__feedback,
.beat-of-the-word__feedback,
.memory-market__feedback,
.first-to-last__feedback,
.feeling-finder__feedback,
.mini-crossword__feedback { min-height: 1.5rem; margin: 1rem auto 0; max-width: 62rem; font-weight: 700; }

.everyday-papers__document { display: grid; gap: 1rem; }
.everyday-papers__paper-document { border: 1px solid oklch(0.7 0.03 255 / 40%); border-radius: 1rem; background: white; padding: 1.25rem; box-shadow: 0 0.75rem 2rem oklch(0.3 0.08 255 / 8%); }
.everyday-papers__document-header { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 2px solid oklch(0.88 0.04 255); padding-bottom: 0.75rem; }
.everyday-papers__menu-row { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed oklch(0.75 0.03 255); padding: 0.7rem 0; }
.everyday-papers__table-wrap { overflow-x: auto; }
.everyday-papers__table { width: 100%; min-width: 28rem; border-collapse: collapse; }
.everyday-papers__table th, .everyday-papers__table td { border-bottom: 1px solid oklch(0.88 0.03 255); padding: 0.65rem; text-align: left; }
.everyday-papers__table th { color: oklch(0.42 0.12 255); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.everyday-papers__paper-document--poster { background: linear-gradient(150deg, oklch(0.97 0.04 85), oklch(0.97 0.04 315)); }
.everyday-papers__tally { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.08em; white-space: nowrap; }
.everyday-papers__bar { display: inline-block; min-width: 0.5rem; height: 0.85rem; border-radius: 999px; background: oklch(0.62 0.14 255); vertical-align: middle; }
.everyday-papers__poster-subtitle { color: oklch(0.42 0.12 255); font-size: 1.25rem; font-weight: 900; }
.everyday-papers__poster-note { margin-top: 1rem; border-radius: 0.75rem; background: white; padding: 0.85rem; font-weight: 700; }
.everyday-papers__question-title { margin-top: 0.5rem; font-size: 1.25rem; font-weight: 900; }
.everyday-papers__explanation { margin-top: 0.6rem; }

.beat-of-the-word__sound-card { display: grid; gap: 1rem; margin-top: 1rem; border-radius: 1.25rem; background: oklch(0.96 0.04 255); padding: 1.25rem; }
.beat-of-the-word__syllable-row { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.25rem; }
.beat-of-the-word__syllable { min-width: 4rem; border: 2px solid oklch(0.7 0.04 255); border-radius: 0.8rem; background: white; padding: 0.85rem 1rem; font-weight: 900; }
.beat-of-the-word__syllable:hover, .beat-of-the-word__syllable.is-selected { border-color: oklch(0.58 0.15 255); background: oklch(0.94 0.05 255); }
.beat-of-the-word__syllable.is-stress { border-color: oklch(0.58 0.15 150); background: oklch(0.95 0.07 150); box-shadow: inset 0 -0.2rem oklch(0.75 0.15 85); }
.beat-of-the-word__fallback { border-radius: 0.75rem; background: oklch(0.96 0.06 85); padding: 0.75rem 1rem; }
.beat-of-the-word__voice-status { min-height: 1.4rem; margin-top: 1rem; color: oklch(0.42 0.05 255); font-size: 0.85rem; }
.beat-of-the-word__explanation { margin-top: 0.6rem; }

.memory-market__art, .memory-market__reveal-art { overflow: hidden; border-radius: 1rem; background: oklch(0.96 0.04 85); }
.memory-market__manifest { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: 0.6rem; margin-top: 1rem; }
.memory-market__manifest-item { border-radius: 0.7rem; background: white; padding: 0.7rem; font-size: 0.85rem; font-weight: 800; }
.memory-market__covered { display: grid; min-height: 18rem; place-items: center; border-radius: 1rem; background: repeating-linear-gradient(135deg, oklch(0.34 0.09 255), oklch(0.34 0.09 255) 1rem, oklch(0.4 0.12 292) 1rem, oklch(0.4 0.12 292) 2rem); color: white; padding: 2rem; text-align: center; }
.memory-market__question-title { margin-top: 0.5rem; font-size: 1.25rem; font-weight: 900; }
.memory-market__explanation { margin-top: 0.6rem; }

.first-to-last__placed-area, .first-to-last__bank { margin-top: 1rem; border-radius: 1rem; background: oklch(0.97 0.02 255); padding: 1rem; }
.first-to-last__area-label { color: oklch(0.44 0.12 255); font-size: 0.78rem; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.first-to-last__placed-list, .first-to-last__bank-list { display: grid; gap: 0.65rem; margin-top: 0.75rem; }
.first-to-last__sentence,
.first-to-last__placed { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.75rem; width: 100%; border: 1px solid oklch(0.72 0.04 255 / 45%); border-radius: 0.8rem; background: white; padding: 0.8rem 1rem; text-align: left; }
.first-to-last__sentence:hover { border-color: oklch(0.58 0.15 255); }
.first-to-last__placed:hover { border-color: oklch(0.58 0.15 255); }
.first-to-last__sentence-number { display: grid; min-height: 1.8rem; min-width: 1.8rem; place-items: center; border-radius: 50%; background: oklch(0.93 0.05 255); color: oklch(0.4 0.13 255); font-size: 0.8rem; font-weight: 900; }
.first-to-last__placed > span { display: grid; min-height: 1.8rem; min-width: 1.8rem; place-items: center; border-radius: 50%; background: oklch(0.93 0.05 255); color: oklch(0.4 0.13 255); font-size: 0.8rem; font-weight: 900; }
.first-to-last__placed.is-reveal { border-color: oklch(0.58 0.15 150); background: oklch(0.96 0.07 150); }
.first-to-last__placed mark { border-radius: 0.25rem; background: oklch(0.82 0.14 85); padding: 0.1rem 0.2rem; font-weight: 900; }
.first-to-last__signal-note { margin-top: 0.5rem; color: oklch(0.4 0.12 150); font-size: 0.8rem; font-weight: 800; }
.first-to-last__controls { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.first-to-last__empty { border: 1px dashed oklch(0.72 0.04 255); border-radius: 0.8rem; padding: 1rem; color: oklch(0.48 0.03 255); }

.feeling-finder__scenario { margin-top: 0.75rem; font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 850; line-height: 1.25; }
.feeling-finder__choice { display: grid; gap: 0.3rem; }
.feeling-finder__choice-word { font-size: 1.1rem; font-weight: 900; }
.feeling-finder__nuance, .feeling-finder__descriptive-note { margin-top: 0.65rem; }
.feeling-finder__descriptive-note { color: oklch(0.4 0.1 255); font-size: 0.85rem; font-weight: 700; }

.mini-crossword__layout { display: grid; grid-template-columns: minmax(18rem, 30rem) minmax(16rem, 1fr); gap: 2rem; align-items: start; }
.mini-crossword__grid { display: grid; grid-template-columns: repeat(5, 1fr); width: min(100%, 30rem); aspect-ratio: 1; border: 3px solid oklch(0.28 0.08 255); background: oklch(0.28 0.08 255); }
.mini-crossword__cell { position: relative; display: grid; min-width: 0; place-items: center; width: 100%; height: 100%; border: 1px solid oklch(0.28 0.08 255); background: white; padding: 0.55rem 0.25rem 0.2rem; text-align: center; font-size: clamp(1.2rem, 4vw, 2rem); font-weight: 900; text-transform: uppercase; }
.mini-crossword__cell input { width: 100%; height: 100%; border: 0; background: transparent; padding: 0; text-align: center; font: inherit; text-transform: uppercase; color: inherit; }
.mini-crossword__cell input { min-width: 0; width: 100%; height: 100%; border: 0; background: transparent; padding: 0; text-align: center; font: inherit; font-weight: 900; text-transform: uppercase; color: inherit; }
.mini-crossword__cell input:focus { outline: none; }
.mini-crossword__cell:focus-within, .mini-crossword__cell.is-selected { z-index: 1; outline: 3px solid oklch(0.65 0.16 255); outline-offset: -3px; }
.mini-crossword__cell.is-right { background: oklch(0.94 0.07 150); }
.mini-crossword__cell.is-wrong { background: oklch(0.97 0.05 25); }
.mini-crossword__cell--blocked { background: oklch(0.28 0.08 255); }
.mini-crossword__cell-number { position: absolute; top: 0.15rem; left: 0.2rem; color: oklch(0.4 0.05 255); font-size: 0.55rem; font-weight: 900; }
.mini-crossword__cell:focus { outline: none; }
.mini-crossword__clues { display: grid; gap: 1rem; }
.mini-crossword__clue-section { border-radius: 1rem; background: oklch(0.97 0.02 255); padding: 1rem; }
.mini-crossword__clue-list { display: grid; gap: 0.5rem; margin-top: 0.65rem; }
.mini-crossword__clue { display: grid; color: oklch(0.32 0.04 255); font-size: 0.9rem; }
.mini-crossword__clue button { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem; width: 100%; padding: 0.25rem; text-align: left; }
.mini-crossword__clue-number { font-weight: 900; }
.mini-crossword__controls { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.25rem; }

.small-talk__results-grid,
.everyday-papers__results-grid,
.beat-of-the-word__results-grid,
.memory-market__results-grid,
.first-to-last__results-grid,
.feeling-finder__results-grid,
.mini-crossword__results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
[class*="__result-card"] { border-radius: 1rem; background: oklch(0.97 0.02 255); padding: 1.25rem; }
.mini-crossword__solved-entries { grid-column: 1 / -1; border-radius: 1rem; background: oklch(0.97 0.02 255); padding: 1.25rem; }
.mini-crossword__solved-entries ul { display: grid; gap: 0.5rem; margin-top: 0.75rem; }
.mini-crossword__solved-entries li { display: grid; grid-template-columns: auto 1fr auto; gap: 0.75rem; align-items: baseline; border-bottom: 1px solid oklch(0.86 0.03 255); padding: 0.45rem 0; }
.mini-crossword__solved-entries li:last-child { border-bottom: 0; }

@media (max-width: 700px) {
  .mini-crossword__layout { grid-template-columns: 1fr; }
  .small-talk__game-topbar,
  .everyday-papers__game-topbar,
  .beat-of-the-word__game-topbar,
  .memory-market__game-topbar,
  .first-to-last__game-topbar,
  .feeling-finder__game-topbar,
  .mini-crossword__game-topbar { align-items: flex-start; flex-direction: column; }
  .first-to-last__sentence,
  .first-to-last__placed { grid-template-columns: auto 1fr; }
  .first-to-last__sentence .btn,
  .first-to-last__placed .btn { grid-column: 2; justify-self: start; }
}
