/* Samio vocabulary activities - mode-specific interface */
:root {
  --game-ink: #162033;
  --game-muted: #667085;
  --game-line: #dfe6ef;
  --game-surface: #ffffff;
  --game-soft: #f4f7fb;
  --mode-accent: #2367c9;
  --mode-accent-dark: #174b96;
  --mode-tint: #eef4ff;
  --mode-warm: #f59e0b;
  --success: #15803d;
  --danger: #dc2626;
}

* { box-sizing: border-box; }
body.mode-game {
  min-height: 100vh;
  margin: 0;
  background: #f4f7fb;
  color: var(--game-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.mode-quiz3, body.mode-quiz4 { --mode-accent: #2563a9; --mode-accent-dark: #174778; --mode-tint: #edf5fc; --mode-warm: #e98a15; }
body.mode-quiz5, body.mode-quiz7 { --mode-accent: #087f8c; --mode-accent-dark: #075d68; --mode-tint: #eaf8f8; --mode-warm: #ef8f23; }
body.mode-fillin2, body.mode-fillin5 { --mode-accent: #18794e; --mode-accent-dark: #11613e; --mode-tint: #edf8f2; --mode-warm: #2563a9; }
body.mode-fillin3, body.mode-fillin6 { --mode-accent: #0e7490; --mode-accent-dark: #155e75; --mode-tint: #ecf8fb; --mode-warm: #e8791b; }
body.mode-unscramble1, body.mode-unscramble2 { --mode-accent: #b45309; --mode-accent-dark: #8f3f08; --mode-tint: #fff7ed; --mode-warm: #2563a9; }
body.mode-matching1 { --mode-accent: #be4b63; --mode-accent-dark: #98364c; --mode-tint: #fff1f3; --mode-warm: #087f8c; }
body.mode-memory2 { --mode-accent: #7656a8; --mode-accent-dark: #5f438d; --mode-tint: #f5f1fb; --mode-warm: #d58a0d; }
body.mode-connect2 { --mode-accent: #2367c9; --mode-accent-dark: #174b96; --mode-tint: #eef4ff; --mode-warm: #16856f; }
body.mode-vowel1, body.mode-vowel2 { --mode-accent: #c2415d; --mode-accent-dark: #9f3049; --mode-tint: #fff1f4; --mode-warm: #e17b16; }
body.mode-wordsearch1 { --mode-accent: #16805b; --mode-accent-dark: #0f6245; --mode-tint: #edf9f3; --mode-warm: #2563a9; }

.yh-game-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto minmax(220px, 360px) auto 40px;
  align-items: center;
  gap: 16px;
  min-height: 70px;
  padding: 10px clamp(14px, 3vw, 36px);
  color: #fff;
  background: #183153;
  border-bottom: 3px solid var(--mode-accent);
  box-shadow: 0 10px 24px -22px rgba(15, 23, 42, .9);
}
.yh-game-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  max-width: 360px;
  padding: 0 !important;
  color: #fff !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: 14px !important;
  font-weight: 750 !important;
  text-decoration: none;
}
.yh-game-logo span:first-child { flex: 0 0 auto; font-size: 22px; line-height: 1; }
.yh-game-logo span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yh-game-title { color: rgba(255, 255, 255, .72); font-size: 12px; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.yh-game-progress { display: flex; align-items: center; gap: 10px; margin: 0; color: #fff; font-size: 13px; font-weight: 800; }
.yh-bar { width: 100%; height: 8px; overflow: hidden; background: rgba(255, 255, 255, .18); border-radius: 4px; }
.yh-bar-fill { height: 100%; background: #5ee2b7; border-radius: inherit; transition: width .3s ease; }
.yh-game-score { display: flex; align-items: baseline; gap: 6px; padding: 7px 10px; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 7px; font-weight: 850; white-space: nowrap; }
.yh-score-label { color: rgba(255,255,255,.66); font-size: 11px; font-weight: 750; text-transform: uppercase; }
.yh-game-close { display: grid; width: 38px; height: 38px; place-items: center; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 7px; font-size: 25px; line-height: 1; text-decoration: none; }
.yh-game-close:hover, .yh-game-close:focus-visible { background: rgba(255,255,255,.18); outline: none; }

.yh-game-main { width: min(1080px, 100%); max-width: 1080px !important; margin: 0 auto; padding: 24px 18px 72px; }
.yh-mode-intro {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
  padding: 16px 18px;
  background: var(--game-surface);
  border: 1px solid var(--game-line);
  border-left: 4px solid var(--mode-accent);
  border-radius: 8px;
  box-shadow: 0 12px 26px -26px rgba(15, 23, 42, .72);
}
.yh-mode-number { display: grid; width: 48px; height: 48px; place-items: center; color: #fff; background: var(--mode-accent); border-radius: 8px; font-size: 15px; font-weight: 900; }
.yh-mode-kicker { margin-bottom: 2px; color: var(--mode-accent); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.yh-mode-copy h1 { margin: 0; color: var(--game-ink); font-size: clamp(19px, 2.2vw, 26px); line-height: 1.25; letter-spacing: 0; }
.yh-mode-copy p { margin: 4px 0 0; color: var(--game-muted); font-size: 14px; line-height: 1.45; }
.yh-mode-count { display: flex; flex-direction: column; align-items: center; min-width: 58px; padding-left: 16px; border-left: 1px solid var(--game-line); color: var(--game-muted); font-size: 11px; text-transform: uppercase; }
.yh-mode-count strong { color: var(--mode-accent); font-size: 23px; line-height: 1.05; }

body.mode-game #yhStage { min-height: 320px !important; padding: 0 !important; background: transparent !important; border: 0 !important; border-radius: 8px !important; box-shadow: none !important; }
body.mode-game .ant-card,
body.mode-game .yhw-card,
body.mode-game .yhw-memory-card-wrapper,
body.mode-game .yhw-vowel-card {
  overflow: hidden;
  background: #fff !important;
  border: 1px solid var(--game-line) !important;
  border-radius: 8px !important;
  box-shadow: 0 20px 44px -36px rgba(15, 23, 42, .62) !important;
}
body.mode-game .ant-card-body { padding: clamp(18px, 3vw, 30px) !important; }
.yh-game-actions { display: flex; justify-content: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.yh-game-main .btn,
.yh-game-main button.btn,
.yh-game-main a.btn,
.yh-done .btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 17px;
  color: #fff;
  background: var(--mode-accent);
  border: 1px solid var(--mode-accent);
  border-radius: 7px !important;
  box-shadow: none;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.yh-game-main .btn:hover, .yh-done .btn:hover { background: var(--mode-accent-dark); border-color: var(--mode-accent-dark); transform: translateY(-1px); }
.yh-game-main .btn-ghost, .yh-done .btn-ghost { color: var(--game-ink) !important; background: #fff !important; border-color: #cfd8e5 !important; }
.yh-game-main .btn-ghost:hover, .yh-done .btn-ghost:hover { color: var(--mode-accent) !important; background: var(--mode-tint) !important; border-color: var(--mode-accent) !important; }
.yh-game-main .btn:disabled { opacity: .48; transform: none; }

/* Flashcard */
.mode-flashcard .yh-fc { max-width: 650px; }
.mode-flashcard .yh-fc-card { height: 350px; }
.mode-flashcard .yh-fc-face { padding: 32px; border: 1px solid #d9e4f1; border-radius: 8px; box-shadow: 0 20px 48px -34px rgba(24,49,83,.75); }
.mode-flashcard .yh-fc-face:first-child { background: #fff; border-top: 5px solid var(--mode-accent); }
.mode-flashcard .yh-fc-back { background: #edf8f3; border-top: 5px solid #16805b; }
.mode-flashcard .yh-fc-face h2 { color: #183153; letter-spacing: 0; }

/* Quiz */
.mode-quiz .yhw-quiz-card > .ant-card-body { padding: clamp(18px, 3vw, 30px) !important; }
.mode-quiz .yhw-quiz-main { gap: 18px; }
.mode-quiz .yhw-quiz-prompt { min-height: 130px; margin: 0; padding: 20px; background: var(--mode-tint); border: 1px solid color-mix(in srgb, var(--mode-accent) 22%, white); border-radius: 8px; }
.mode-quiz .yhw-quiz-prompt h2 { color: var(--game-ink); font-size: clamp(28px, 4vw, 42px) !important; letter-spacing: 0; }
.mode-quiz .yhw-quiz-option { min-height: 116px; padding: 18px 16px; background: #fff; border: 1px solid var(--game-line); border-radius: 8px; box-shadow: 0 12px 28px -26px rgba(15,23,42,.7); }
.mode-quiz .yhw-quiz-option:hover { border-color: var(--mode-accent); background: var(--mode-tint); box-shadow: 0 16px 34px -28px rgba(15,23,42,.78); }
.mode-quiz .yhw-quiz-option-text { color: var(--game-ink); font-size: clamp(18px, 2.5vw, 26px); font-weight: 750; letter-spacing: 0; }
.mode-quiz .yhw-quiz-option-letter-badge { background: var(--mode-accent); border-radius: 6px; box-shadow: none; }
.mode-quiz .yhw-quiz-option--correct { color: #fff; background: #16805b !important; border-color: #16805b; }
.mode-quiz .yhw-quiz-option--wrong { color: #fff; background: #c93434 !important; border-color: #c93434; }
.mode-quiz .yhw-quiz-option--correct .yhw-quiz-option-text,
.mode-quiz .yhw-quiz-option--wrong .yhw-quiz-option-text { color: #fff; }
.mode-quiz .yhw-quiz-audio-button,
.mode-quiz .yhw-sound-btn { width: 78px; height: 78px; color: #fff; background: var(--mode-accent) !important; border: 5px solid #fff; box-shadow: 0 0 0 1px var(--mode-accent), 0 16px 34px -22px var(--mode-accent) !important; }

/* Fill in */
.mode-fillin2 .yhw-quiz-prompt, .mode-fillin3 .yhw-quiz-prompt,
.mode-fillin5 .yhw-quiz-prompt, .mode-fillin6 .yhw-quiz-prompt { min-height: 150px; margin-bottom: 4px; background: var(--mode-tint); border: 1px solid #dbe9e3; border-radius: 8px; }
.mode-fillin2 .yhw-quiz-prompt h2, .mode-fillin3 .yhw-quiz-prompt h2,
.mode-fillin5 .yhw-quiz-prompt h2, .mode-fillin6 .yhw-quiz-prompt h2 { font-size: clamp(28px, 4vw, 42px) !important; letter-spacing: 0; }
.yhw-fillin-input-wrapper { padding: 14px 0 4px; }
.yhw-fillin-input { height: 72px; max-width: 720px; color: var(--game-ink); background: #fff; border: 2px solid #cfd8e5; border-radius: 8px; font-size: clamp(24px, 4vw, 36px) !important; font-weight: 750; letter-spacing: 0; }
.yhw-fillin-input:focus { border-color: var(--mode-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mode-accent) 14%, transparent); }
.yhw-fillin-slots { gap: 8px; margin: 6px 0; }
.yhw-fillin-slot { min-width: 48px; height: 58px; color: var(--game-ink); background: var(--mode-tint); border: 2px solid color-mix(in srgb, var(--mode-accent) 35%, #dfe6ef); border-radius: 7px; font-size: 34px; font-weight: 800; }
.yhw-quiz-feedback { justify-content: center; }
.yh-prog-fill { background: var(--mode-accent); }

/* Unscramble */
.mode-unscramble1 .yhw-unscramble-top, .mode-unscramble2 .yhw-unscramble-top { padding: 22px 18px; background: var(--mode-tint); border: 1px solid #f2ddc9; border-radius: 8px; }
.mode-unscramble1 .yhw-unscramble-top h2, .mode-unscramble2 .yhw-unscramble-top h2 { color: var(--mode-accent-dark); font-size: clamp(28px, 5vw, 45px); letter-spacing: 5px; overflow-wrap: anywhere; }
.mode-unscramble1 .yhw-unscramble-prompt h3, .mode-unscramble2 .yhw-unscramble-prompt h3 { margin-top: 8px; color: var(--game-ink); font-size: clamp(20px, 3vw, 30px); letter-spacing: 0; }
.yhw-unscramble-tile { min-width: 52px; height: 60px; color: #fff; background: var(--mode-accent); border: 2px solid transparent; border-radius: 7px; box-shadow: 0 10px 20px -16px rgba(143,63,8,.9); font-size: 34px; font-weight: 850; }
.yhw-unscramble-tile.sel { color: var(--mode-accent-dark); background: #fff; border-color: var(--mode-accent); outline: 3px solid #fbd6ad; }

/* Matching */
.mode-matching1 .yhw-match-top-section { padding: 16px; background: #fff7f8; border: 1px solid #f2d8de; border-radius: 8px; }
.mode-matching1 .yhw-match-bottom-section { padding: 16px; background: #eef8f8; border: 1px solid #cfe8e8; border-radius: 8px; }
.mode-matching1 .yhw-match-top-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mode-matching1 .yhw-match-top-card { min-height: 118px; padding: 13px; background: #fff; border: 1px solid #eadde1; border-radius: 8px; }
.mode-matching1 .yhw-match-top-word-text { font-size: clamp(18px, 2.3vw, 24px); font-weight: 800; }
.mode-matching1 .yhw-match-bottom-card { min-height: 42px; padding: 8px 14px; background: #fff; border: 1px solid #bcdede; border-radius: 7px; box-shadow: none; font-size: 17px; }
.mode-matching1 .yhw-match-bottom-card--active { color: #fff; background: var(--mode-warm); border-color: var(--mode-warm); box-shadow: 0 0 0 3px rgba(8,127,140,.16); }

/* Memory */
.mode-memory2 .yhw-memory-card-wrapper { max-width: 820px; padding: 22px; }
.mode-memory2 .yhw-memory-stats { display: inline-flex; margin: 0 0 16px; padding: 7px 12px; color: var(--mode-accent-dark); background: var(--mode-tint); border: 1px solid #e0d7ee; border-radius: 7px; font-weight: 800; }
.mode-memory2 .yhw-memory-grid { max-width: 680px; gap: 12px; }
.mode-memory2 .yhw-memory-card, .mode-memory2 .yhw-memory-card-face { border-radius: 8px; }
.mode-memory2 .yhw-memory-card-face { border: 1px solid #d9d2e6; box-shadow: 0 12px 24px -20px rgba(47,38,67,.8); }
.mode-memory2 .yhw-memory-card-front { background: var(--mode-accent); }
.mode-memory2 .yhw-memory-card-back { color: var(--game-ink); background: #fffaf0; }
.mode-memory2 .yhw-memory-card.is-matched .yhw-memory-card-back { background: #ecf8f1; border-color: #83c7a3; }

/* Connect */
.mode-connect2 .yhw-match-board-wrapper { padding: 18px; background: #f8fafc; border: 1px solid var(--game-line); border-radius: 8px; }
.mode-connect2 .yhw-match-board { gap: 58px; }
.mode-connect2 .yhw-match-item { min-height: 58px; padding: 11px 12px; background: #fff; border: 1px solid #cfd8e5; border-radius: 8px; box-shadow: 0 8px 18px -18px rgba(15,23,42,.7); }
.mode-connect2 .yhw-match-item--center { background: var(--mode-tint); border-color: #bfd2ee; }
.mode-connect2 .yhw-match-item--side { background: #eff9f5; border-color: #bddfd2; }
.mode-connect2 .yhw-match-item--pending { border-color: var(--mode-accent); box-shadow: 0 0 0 3px rgba(35,103,201,.15); }
.mode-connect2 #cInfo { display: block; max-width: 720px; padding: 9px 13px; text-align: center; background: #fff; border: 1px solid var(--game-line); border-radius: 7px; }

/* Vowels */
.mode-vowel1 .yhw-vowel-card, .mode-vowel2 .yhw-vowel-card { padding: clamp(20px, 3vw, 32px); }
.mode-vowel1 .yhw-vowel-word, .mode-vowel2 .yhw-vowel-word { margin: 12px 0; font-size: clamp(32px, 6vw, 52px); letter-spacing: 0; }
.mode-vowel1 .yhw-vowel-word-char, .mode-vowel2 .yhw-vowel-word-char { min-width: 34px; }
.mode-vowel1 .yhw-vowel-word-char--blank, .mode-vowel2 .yhw-vowel-word-char--blank { color: var(--mode-accent); border-bottom: 4px solid var(--mode-accent); }
.mode-vowel1 .yhw-vowel-hint { padding: 16px; background: var(--mode-tint); border: 1px solid #f0d7dd; border-radius: 8px; }
.yhw-vowel-letter { min-width: 54px; height: 54px; color: var(--game-ink) !important; background: #fff !important; border: 2px solid var(--game-line); border-radius: 8px; box-shadow: none; font-size: 25px; }
.yhw-vowel-letter:hover { color: #fff !important; background: var(--mode-accent) !important; border-color: var(--mode-accent); }

/* Word search */
.mode-wordsearch1 #yhStage { padding: 18px !important; background: #fff !important; border: 1px solid var(--game-line) !important; }
.mode-wordsearch1 .yhw-ws-layout { gap: 24px; flex-wrap: nowrap; }
.mode-wordsearch1 .yhw-ws-grid { flex: 0 0 auto; gap: 3px; padding: 10px; background: #f8fafc; border: 1px solid var(--game-line); border-radius: 8px; box-shadow: none; }
.mode-wordsearch1 .yhw-ws-row { gap: 3px; }
.mode-wordsearch1 .yhw-ws-cell { width: 36px; height: 36px; color: #20324b; background: #fff; border: 1px solid #dfe6ef; border-radius: 5px; font-size: 17px; font-weight: 750; }
.mode-wordsearch1 .yhw-ws-cell--preview { color: #fff; background: var(--mode-accent); border-color: var(--mode-accent); }
.mode-wordsearch1 .yhw-ws-cell--found { color: #fff; background: #2367c9; border-color: #2367c9; }
.mode-wordsearch1 .yhw-ws-wordlist { min-width: 220px; padding: 14px; background: var(--mode-tint); border: 1px solid #cae8da; border-radius: 8px; }
.mode-wordsearch1 .yhw-ws-wordlist-item { padding: 7px 10px; background: #fff; border: 1px solid #dce9e3; border-radius: 6px; }
.mode-wordsearch1 .yhw-ws-wordlist-item--found { color: #fff; background: var(--mode-accent); border-color: var(--mode-accent); }

/* Completion dialog */
.yh-done { padding: 18px; background: rgba(15, 23, 42, .68); backdrop-filter: blur(7px); }
.yh-done-card { width: min(460px, 100%); padding: 30px; background: #fff; border: 1px solid rgba(255,255,255,.8); border-top: 5px solid var(--mode-accent); border-radius: 8px; box-shadow: 0 28px 70px -30px rgba(15,23,42,.88); }
.yh-done-mark { display: grid; width: 52px; height: 52px; margin: 0 auto 12px; place-items: center; color: #fff; background: #16805b; border-radius: 50%; font-size: 28px; font-weight: 900; }
.yh-done-kicker { color: var(--mode-accent); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.yh-done-card h2 { margin: 4px 0; color: var(--game-ink); background: none; font-size: 28px; -webkit-text-fill-color: initial; letter-spacing: 0; }
.yh-done-score { margin: 8px 0 4px; color: var(--mode-accent); font-size: 50px; }
.yh-done-sub { margin-bottom: 20px; color: var(--game-muted); }
.yh-done-btns { gap: 9px; }

@media (max-width: 840px) {
  .yh-game-header { grid-template-columns: minmax(0, 1fr) minmax(160px, 280px) auto 38px; gap: 10px; }
  .yh-game-title { display: none; }
  .yh-game-logo { max-width: none; }
  .mode-matching1 .yhw-match-top-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mode-wordsearch1 .yhw-ws-layout { flex-wrap: wrap; }
  .mode-wordsearch1 .yhw-ws-wordlist { width: min(100%, 520px); }
}

@media (max-width: 620px) {
  .yh-game-header { grid-template-columns: minmax(0, 1fr) auto; padding: 9px 12px 10px; }
  .yh-game-logo { order: 1; }
  .yh-game-close { order: 2; }
  .yh-game-progress { order: 3; grid-column: 1 / -1; }
  .yh-game-score { position: absolute; top: 13px; right: 58px; padding: 5px 8px; }
  .yh-score-label { display: none; }
  .yh-game-main { padding: 14px 10px 54px; }
  .yh-mode-intro { grid-template-columns: 42px minmax(0,1fr); gap: 12px; padding: 13px; }
  .yh-mode-number { width: 42px; height: 42px; }
  .yh-mode-copy h1 { font-size: 18px; }
  .yh-mode-copy p { font-size: 13px; }
  .yh-mode-count { display: none; }
  body.mode-game #yhStage { min-height: 260px !important; }
  body.mode-game .ant-card-body { padding: 14px 11px !important; }
  .mode-flashcard .yh-fc-card { height: 285px; }
  .mode-flashcard .yh-fc-face { padding: 18px; }
  .mode-quiz .yhw-quiz-prompt { min-height: 108px; padding: 14px 10px; }
  .mode-quiz .yhw-quiz-grid { row-gap: 9px !important; }
  .mode-quiz .yhw-quiz-option { min-height: 70px; padding: 10px 8px; }
  .mode-quiz .yhw-quiz-option-text { padding: 0 28px; font-size: 18px; }
  .mode-quiz .yhw-quiz-option-letter { inset: auto auto 8px 8px; }
  .mode-quiz .yhw-quiz-option-letter-badge { width: 23px; height: 23px; }
  .yhw-fillin-input { height: 60px; }
  .yhw-fillin-slot { min-width: 32px; height: 44px; font-size: 25px; }
  .yhw-unscramble-tile { min-width: 40px; height: 48px; font-size: 27px; }
  .mode-matching1 .yhw-match-top-section, .mode-matching1 .yhw-match-bottom-section { padding: 9px; }
  .mode-matching1 .yhw-match-top-grid { gap: 7px; }
  .mode-matching1 .yhw-match-top-card { min-height: 98px; padding: 8px; }
  .mode-matching1 .yhw-match-bottom-card { min-height: 40px; padding: 7px 10px; font-size: 15px; }
  .mode-memory2 .yhw-memory-card-wrapper { padding: 12px; }
  .mode-memory2 .yhw-memory-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .mode-memory2 .yhw-memory-card-text { padding: 4px; font-size: 15px; }
  .mode-memory2 .yhw-memory-card-front-number { font-size: 23px; }
  .mode-connect2 .yhw-match-board-wrapper { padding: 7px; overflow: visible; }
  .mode-connect2 .yhw-match-board { min-width: 0; grid-template-columns: 1fr 1.06fr 1fr; gap: 9px; }
  .mode-connect2 .yhw-match-column { gap: 7px; }
  .mode-connect2 .yhw-match-item { min-height: 50px; padding: 6px 4px; overflow-wrap: anywhere; }
  .mode-connect2 .yhw-match-item-word, .mode-connect2 .yhw-match-item-text { font-size: 12.5px; line-height: 1.25; }
  .yhw-vowel-letter { min-width: 43px; height: 46px; font-size: 21px; }
  .mode-wordsearch1 #yhStage { padding: 10px !important; overflow: visible; }
  .mode-wordsearch1 .yhw-ws-layout { width: 100%; min-width: 0; flex-direction: column; align-items: stretch; }
  .mode-wordsearch1 .yhw-ws-grid { display: block; width: 100%; max-width: 100%; overflow-x: auto; }
  .mode-wordsearch1 .yhw-ws-row { width: max-content; margin: 0 auto 3px; }
  .mode-wordsearch1 .yhw-ws-row:last-child { margin-bottom: 0; }
  .mode-wordsearch1 .yhw-ws-cell { width: 28px; height: 28px; font-size: 14px; }
  .mode-wordsearch1 .yhw-ws-wordlist { width: 100%; min-width: 0; }
  .mode-wordsearch1 .yhw-ws-wordlist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yh-done-card { padding: 24px 16px; }
  .yh-done-btns { flex-direction: column; }
  .yh-done-btns .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
