/* Shared responsive overrides, loaded after both themes. No learning state changes. */
html { -webkit-text-size-adjust:100%; text-size-adjust:100%; }
body, #app, .wm-shell, .app-main, .main-inner { min-width:0; }
.app-shell, .ipad-shell { min-height:100svh; }
button, a, input, select, textarea { touch-action:manipulation; }
button:focus-visible, a:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.library-card, .library-word-list article>div, .library-search { min-width:0; }
.library-card h2, .library-page-head h1, .library-word-list strong,
.library-word-list span, .library-sources, .member-current p { overflow-wrap:anywhere; }
.compact-settings { display:none!important; }
.library-filters button, .library-toolbar button, .library-pagination button,
.library-word-list article>button, .library-card .wm-btn { min-height:44px; }
.library-search input { min-width:0; }
.library-toolbar input, .camp-field input { font-size:16px; }
.library-word-list article>div { flex:1; }
.ch-quit, .speak-inline { min-width:44px; min-height:44px; }
.q-prompt, .preview-word, .q-phonetic, .preview-example, .adventure-typed { overflow-wrap:anywhere; }
.adventure-typed { display:block; }
.challenge-screen { min-height:100svh; min-height:100dvh; padding-bottom:env(safe-area-inset-bottom,0px); }
.modal, .modal-box { max-width:calc(100vw - 24px); max-height:calc(100dvh - 24px); overflow-y:auto; }
@media (min-width:1024px) and (max-width:1199px) {
 html[data-theme="objectshow"] .wm-shell { grid-template-columns:190px minmax(0,1fr); }
 html[data-theme="objectshow"] .wm-main { padding:26px 24px 40px; }
 .side-nav { width:190px; padding-inline:12px; }
}
/* Tablet portrait and phones share a compact header; navigation scrolls within its row. */
@media (max-width:1023px) {
 .ipad-shell, html[data-theme="objectshow"] .wm-shell { display:block; min-height:100svh; }
 .side-nav, html[data-theme="objectshow"] .wm-sidebar {
  display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center;
  position:relative; width:100%; height:auto; overflow:visible; gap:10px 12px;
  padding:12px max(16px,env(safe-area-inset-right,0px)) 10px max(16px,env(safe-area-inset-left,0px));
  border-right:0; border-bottom:1px solid var(--line);
 }
 .side-brand, html[data-theme="objectshow"] .wm-sidebar>.wm-brand { display:flex; gap:8px; min-width:0; }
 .side-title, html[data-theme="objectshow"] .wm-brand-name b { font-size:18px; white-space:nowrap; }
 .app-logo, html[data-theme="objectshow"] .wm-brand-icon { width:30px; height:34px; }
 .camp-account { margin:0; padding:4px 8px; gap:8px; max-width:230px; border:0; background:transparent; }
 .camp-account small:not(.camp-account-tier) { display:none; }
 .camp-account strong { font-size:12px; max-width:130px; }
 .camp-account button { min-height:44px; padding:4px 6px; font-size:11px; }
 .side-stats, html[data-theme="objectshow"] .wm-side-stats, .wm-return,
 html[data-theme="objectshow"] .wm-side-bottom { display:none; }
 .side-nav>nav { grid-column:1/-1; min-width:0; }
 .side-menu-wrap { flex-direction:row; gap:6px; overflow-x:auto; }
 .side-menu, html[data-theme="objectshow"] .wm-nav {
  display:flex; flex-direction:row; flex-wrap:nowrap; gap:6px; overflow-x:auto;
  margin:0; padding:2px 2px 6px; overscroll-behavior-x:contain; scrollbar-width:thin;
 }
 .side-item, html[data-theme="objectshow"] .wm-nav-button {
  flex-shrink:0; width:auto; min-height:44px; padding:9px 12px; gap:6px;
  font-size:13px; white-space:nowrap;
 }
 .side-item .si, html[data-theme="objectshow"] .wm-nav-button svg { width:18px; height:18px; font-size:17px; }
 .side-menu-wrap>.side-settings { margin:0; border:0; align-self:flex-start; }
 .compact-settings { display:flex!important; }
 .main-inner, html[data-theme="objectshow"] .wm-main { padding:22px 24px calc(32px + env(safe-area-inset-bottom,0px)); }
 html[data-theme="objectshow"] .main-inner { padding:0; }
 html[data-theme="objectshow"] .wm-topline { margin-bottom:16px; }
 html[data-theme="objectshow"] .wm-topline .wm-date { display:none; }
 .library-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .library-card { padding:20px; }
 .library-page-head { margin:6px 0 20px; }
 .library-page-actions .wm-btn { white-space:normal; }
 .member-plans { grid-template-columns:repeat(3,minmax(0,1fr)); }
 .member-plan { padding:18px; }
 .member-plan.selected { padding:17px; }
 .camp-auth { grid-template-columns:1fr; max-width:540px; gap:24px; padding:30px 24px; min-height:100svh; }
 .camp-brand { margin-bottom:18px; }
 .camp-intro h1 { font-size:28px; margin:8px 0; }
 .camp-intro #hero-art, .camp-pills { display:none; }
}
@media (max-width:599px) {
 .side-nav, html[data-theme="objectshow"] .wm-sidebar { gap:6px 8px; padding:8px max(12px,env(safe-area-inset-right,0px)) 6px max(12px,env(safe-area-inset-left,0px)); }
 .camp-account { max-width:155px; padding:0; gap:4px; }
 .camp-account strong { max-width:74px; }
 .camp-account-tier { font-size:9px!important; }
 .camp-account button { font-size:10px; padding:4px; }
 .side-title, html[data-theme="objectshow"] .wm-brand-name b { font-size:16px; }
 .side-item, html[data-theme="objectshow"] .wm-nav-button { padding:8px 10px; font-size:12px; }
 .main-inner, html[data-theme="objectshow"] .wm-main { padding:18px max(14px,env(safe-area-inset-right,0px)) calc(28px + env(safe-area-inset-bottom,0px)) max(14px,env(safe-area-inset-left,0px)); }
 html[data-theme="objectshow"] .main-inner { padding:0; }
 .library-grid { grid-template-columns:1fr; gap:14px; }
 .library-card { padding:18px; }
 .library-card h2 { font-size:18px; }
 .library-filters { gap:6px; margin-top:16px; }
 .library-filters button { padding:9px 13px; font-size:13px; }
 .library-page-head h1 { font-size:24px; }
 .library-page-actions { gap:8px; }
 .library-page-actions>.wm-btn { flex:1 1 130px; padding:10px 12px; }
 .library-toolbar { gap:8px; }
 .library-search { flex-basis:100%; gap:8px; }
 .library-search input { flex:1; width:0; }
 .library-pagination { gap:10px; flex-wrap:wrap; }
 .library-word-list article { padding:14px 12px; gap:8px; align-items:flex-start; }
 .library-word-list article>div { display:flex; flex-direction:column; gap:5px; }
 .library-word-list strong { font-size:19px; line-height:1.45; }
 .library-word-list span { font-size:14px; line-height:1.6; }
 .library-word-list article>button { padding:9px 12px; }
 .library-sources { padding:18px; }
 .member-plans { grid-template-columns:1fr; gap:12px; }
 .member-table { min-width:0; table-layout:fixed; font-size:12px; }
 .member-table th, .member-table td { padding:12px 7px; overflow-wrap:anywhere; }
 .member-table th:first-child { width:43%; }
 .member-current, .member-hero { padding:20px; }
 .member-gate { padding:20px; }
 .camp-auth { padding:22px 16px; gap:20px; align-content:start; }
 .camp-form-card { padding:24px 20px; box-shadow:3px 4px 0 #dce1cf; }
 .adventure-level-card { padding:18px; }
 .adventure-level-heading { gap:9px; }
 .adventure-level-badge { flex-basis:42px; height:42px; }
 html[data-theme="objectshow"] .ch-head { padding:10px 12px 8px; }
 html[data-theme="objectshow"] .ch-chips { padding:0 12px 6px; gap:5px; }
 html[data-theme="objectshow"] .ch-body { padding:12px 10px 20px; }
 html[data-theme="objectshow"] .q-card { padding:20px 12px; }
 html[data-theme="objectshow"] .preview-word { font-size:clamp(26px,7vw,34px); }
 .adventure-keyboard { margin-top:14px; gap:7px; }
 .keyboard-row { gap:3px; }
 .keyboard-row button, html[data-theme="objectshow"] .keyboard-row button { height:48px; font-size:15px; border-radius:6px; padding:0; }
 .adventure-typed { font-size:22px; min-height:54px; padding:10px; }
 .tile-answer, .tile-pool { flex-wrap:wrap; }
 .spell-submit { min-height:48px; }
 .ch-chip { max-width:100%; overflow-wrap:anywhere; white-space:normal; }
}
@media (max-height:500px) and (orientation:landscape) {
 html[data-theme="objectshow"] .ch-body { padding:10px 14px; }
 html[data-theme="objectshow"] .q-card { padding:12px 18px; }
 .wm-practice-buddy { display:none; }
 .adventure-keyboard { margin:10px 0; gap:5px; }
 .keyboard-row button { height:44px; }
}

/* Mobile drawer replaces the long horizontal menu. Desktop sidebar is unchanged. */
.mobile-header, .mobile-drawer { display:none; }
.my-page h1 { font-size:26px; margin-bottom:22px; }
.my-account { padding:22px; border:1px solid var(--line); background:var(--card); border-radius:18px; margin-bottom:18px; }
.my-account h2 { font-size:21px; margin-bottom:10px; overflow-wrap:anywhere; }
.my-account p { color:var(--ink-2); font-size:14px; line-height:1.8; overflow-wrap:anywhere; }
.my-links { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.my-links .wm-btn { min-height:52px; border:1px solid var(--line); background:var(--card); border-radius:12px; white-space:normal; padding:12px; font-size:14px; }
@media (max-width:1023px) {
 .side-nav, html[data-theme="objectshow"] .wm-sidebar { display:none; }
 .mobile-header {
  display:flex; align-items:center; gap:10px; position:sticky; top:0; z-index:100;
  background:var(--card); border-bottom:1px solid var(--line);
  padding:max(8px,env(safe-area-inset-top,0px)) max(14px,env(safe-area-inset-right,0px)) 8px max(14px,env(safe-area-inset-left,0px));
 }
 .mobile-brand { font-size:18px; font-weight:700; }
 .mobile-menu-button { display:grid; place-items:center; width:44px; height:44px; border:1px solid var(--line); border-radius:10px; flex-shrink:0; }
 .mobile-menu-button svg { width:22px; height:22px; }
 body.mobile-nav-open { overflow:hidden; }
 .mobile-drawer[open] {
  display:flex; flex-direction:column; gap:22px; position:fixed;
  inset:0 auto 0 0; margin:0; width:min(320px,86vw); max-width:86vw;
  height:100%; height:100dvh; max-height:100dvh;
  padding:max(16px,env(safe-area-inset-top,0px)) 18px max(24px,env(safe-area-inset-bottom,0px)) max(18px,env(safe-area-inset-left,0px));
  border:0; border-right:1px solid var(--line); border-radius:0 18px 18px 0;
  color:var(--ink); background:var(--card); overflow-y:auto; overscroll-behavior:contain;
  box-shadow:8px 0 30px #0002; touch-action:pan-y; animation:drawer-enter .18s ease-out;
 }
 .mobile-drawer::backdrop { background:rgb(18 31 28 / 42%); }
 .mobile-drawer-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; }
 .mobile-drawer-heading strong { font-size:19px; }
 .mobile-drawer-heading button { min-width:44px; min-height:44px; border:1px solid var(--line); border-radius:10px; }
 .mobile-drawer-account { display:flex; flex-direction:column; gap:5px; padding:0 10px 22px; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
 .mobile-drawer-account strong { font-size:17px; }
 .mobile-drawer-account span { font-size:12px; color:var(--ink-2); }
 .mobile-drawer nav { display:flex; flex-direction:column; gap:10px; }
 .mobile-drawer nav button { display:flex; align-items:center; gap:14px; width:100%; min-height:54px; padding:12px 16px; font:inherit; font-weight:600; border:1px solid transparent; border-radius:12px; text-align:left; }
 .mobile-drawer nav button>span { width:24px; font-size:23px; font-weight:400; text-align:center; }
 .mobile-drawer nav button[aria-current="page"] { background:var(--accent-soft); color:var(--accent); border-color:var(--line); }
}
@keyframes drawer-enter { from { transform:translateX(-100%); } to { transform:translateX(0); } }
@media (prefers-reduced-motion:reduce) { .mobile-drawer[open] { animation:none; } }
@media (max-width:359px) { .my-links { grid-template-columns:1fr; } }

.mobile-drawer nav button svg { width:24px; height:24px; }

.mobile-study-link { display:none!important; }
@media (max-width:1023px) { .mobile-study-link { display:inline-flex!important; } }

/* Phone practice: keep the prompt, keyboard and confirmation together. */
@media (max-width:760px), (max-width:1023px) and (max-height:500px) {
 .challenge-screen { height:100dvh; min-height:0; padding:0; }
 .challenge-screen .ch-head, html[data-theme="objectshow"] .challenge-screen .ch-head {
  flex-shrink:0; gap:10px;
  padding:max(4px,env(safe-area-inset-top,0px)) max(10px,env(safe-area-inset-right,0px)) 3px max(10px,env(safe-area-inset-left,0px));
 }
 .challenge-screen .ch-quit { width:44px; height:44px; flex-shrink:0; }
 .challenge-screen .ch-count { font-size:12px; white-space:nowrap; }
 .challenge-screen .ch-chips, html[data-theme="objectshow"] .challenge-screen .ch-chips {
  flex-shrink:0; flex-wrap:nowrap; gap:6px;
  padding:0 max(12px,env(safe-area-inset-right,0px)) 4px max(12px,env(safe-area-inset-left,0px));
 }
 .challenge-screen .ch-chip { font-size:11px; padding:2px 6px; line-height:18px; min-width:0; white-space:nowrap; }
 .challenge-screen .ch-title { flex:1; overflow:hidden; text-overflow:ellipsis; }
 .challenge-screen .ch-chip.stage { flex-shrink:0; }
 .challenge-screen .ch-reward, .challenge-screen .ch-plan-stats, .challenge-screen .ch-chip.fire { display:none; }
 .challenge-screen .ch-body, html[data-theme="objectshow"] .challenge-screen .ch-body {
  min-height:0; gap:8px; padding:4px max(8px,env(safe-area-inset-right,0px)) max(8px,env(safe-area-inset-bottom,0px)) max(8px,env(safe-area-inset-left,0px));
  overscroll-behavior-y:contain; scroll-padding-bottom:12px;
 }
 .challenge-screen .q-card, html[data-theme="objectshow"] .challenge-screen .q-card { flex-shrink:0; gap:8px; padding:12px; border-radius:16px; }
 .challenge-screen .q-type-tag { font-size:11px; padding:2px 8px; line-height:18px; }
 .challenge-screen .q-prompt { font-size:28px; line-height:1.35; padding:4px 0; }
 .challenge-screen .q-prompt.small { font-size:22px; }
 .challenge-screen .q-prompt.sentence { font-size:18px; line-height:1.5; }
 .challenge-screen .q-phonetic { margin:0; font-size:14px; line-height:1.4; }
 .challenge-screen .wm-practice-buddy { display:none; }
 .challenge-screen .preview-word, html[data-theme="objectshow"] .challenge-screen .preview-word { font-size:clamp(26px,7vw,34px); padding-top:4px; line-height:1.3; }
 .challenge-screen .preview-meaning { font-size:20px; line-height:1.5; }
 .challenge-screen .preview-example { font-size:15px; line-height:1.5; padding:8px 10px; }
 .challenge-screen .preview-tip { font-size:12px; line-height:1.4; }
 .challenge-screen .spell-submit, html[data-theme="objectshow"] .challenge-screen .spell-submit { min-height:48px; padding:10px; font-size:16px; line-height:1.25; }
 .challenge-screen .spelling-question { flex:1 0 auto; }
 .challenge-screen .spelling-question .q-prompt { flex:1; display:flex; align-items:center; justify-content:center; min-height:36px; }
 .challenge-screen .tile-context { padding:6px 8px; font-size:16px; line-height:1.4; }
 .challenge-screen .adventure-spelling { display:grid; grid-template-columns:minmax(0,1fr) 76px; gap:6px; margin:4px 0 0; }
 .challenge-screen .adventure-typed { grid-column:1/-1; min-height:46px; padding:7px 10px; font-size:22px; line-height:1.3; margin-bottom:2px; }
 .challenge-screen .adventure-keyboard { display:contents; }
 .challenge-screen .keyboard-row { grid-column:1/-1; gap:3px; }
 .challenge-screen .keyboard-row:last-child { grid-column:1; }
 .challenge-screen .keyboard-row button, html[data-theme="objectshow"] .challenge-screen .keyboard-row button { height:48px; min-height:44px; font-size:16px; padding:0; }
 .challenge-screen .adventure-spelling>.spell-submit, html[data-theme="objectshow"] .challenge-screen .adventure-spelling>.spell-submit { grid-column:2; height:48px; min-height:44px; font-size:14px; padding:6px 3px; border-radius:8px; }
 .challenge-screen .opt-grid { gap:8px; }
 .challenge-screen .opt-btn, html[data-theme="objectshow"] .challenge-screen .opt-btn { min-height:48px; padding:10px 12px; font-size:16px; line-height:1.4; }
 .challenge-screen .tile-instruction, .challenge-screen .tile-placeholder-hint { font-size:12px; line-height:1.4; }
 .challenge-screen .tile-selected { min-height:52px; padding:6px; gap:6px; }
 .challenge-screen .tile-bank { padding:2px 0 4px; gap:6px; }
 .challenge-screen .tile-choice, .challenge-screen .tile-slot { min-height:44px; min-width:42px; font-size:16px; padding:8px 10px; }
 .challenge-screen .spell-input { padding:10px; font-size:20px; }
 .challenge-screen .speak-big { width:60px; height:60px; font-size:28px; }
 .challenge-screen .feedback-card { padding:18px 16px; }
 .challenge-screen .fb-next { min-height:48px; }
}
@media (max-width:760px) and (max-height:699px), (max-width:1023px) and (max-height:500px) {
 .challenge-screen .keyboard-row button, html[data-theme="objectshow"] .challenge-screen .keyboard-row button,
 .challenge-screen .adventure-spelling>.spell-submit, html[data-theme="objectshow"] .challenge-screen .adventure-spelling>.spell-submit { height:44px; }
 .challenge-screen .adventure-spelling { gap:5px; }
 .challenge-screen .adventure-typed { min-height:44px; font-size:20px; }
}

body.practice-open { overflow:hidden; }

@media (max-width:1023px) and (max-height:500px) and (orientation:landscape) {
 .challenge-screen .spelling-question { display:grid; grid-template-columns:minmax(0,1fr) minmax(280px,1.4fr); grid-template-rows:auto minmax(0,1fr) auto; gap:8px 16px; align-items:center; }
 .challenge-screen .spelling-question>.q-type-tag { grid-column:1; grid-row:1; }
 .challenge-screen .spelling-question>.q-prompt { grid-column:1; grid-row:2; }
 .challenge-screen .spelling-question>.tile-context { grid-column:1; grid-row:3; }
 .challenge-screen .spelling-question>.adventure-spelling { grid-column:2; grid-row:1/span 3; margin:0; align-self:end; }
}

@media (max-width:1023px) and (max-height:520px) {
 .challenge-screen .q-card, html[data-theme="objectshow"] .challenge-screen .q-card { padding:10px; gap:6px; }
 .challenge-screen .q-prompt.small { font-size:20px; }
}
@media (max-width:1023px) and (max-height:500px) and (orientation:landscape) {
 .challenge-screen .opt-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* Tablet practice uses the available viewport and retains large touch targets. */
@media (min-width:700px) and (max-width:1400px) and (min-height:540px) {
 .challenge-screen { height:100dvh; min-height:0; padding:0; }
 .challenge-screen .ch-head, html[data-theme="objectshow"] .challenge-screen .ch-head {
  flex-shrink:0; max-width:1240px; gap:14px;
  padding:max(8px,env(safe-area-inset-top,0px)) max(20px,env(safe-area-inset-right,0px)) 4px max(20px,env(safe-area-inset-left,0px));
 }
 .challenge-screen .ch-quit { flex-shrink:0; width:48px; height:48px; }
 .challenge-screen .ch-count { font-size:14px; white-space:nowrap; }
 .challenge-screen .ch-chips, html[data-theme="objectshow"] .challenge-screen .ch-chips {
  flex-shrink:0; flex-wrap:nowrap; max-width:1240px; gap:8px;
  padding:0 max(22px,env(safe-area-inset-right,0px)) 6px max(22px,env(safe-area-inset-left,0px));
 }
 .challenge-screen .ch-chip { min-width:0; padding:3px 8px; font-size:12px; line-height:20px; white-space:nowrap; }
 .challenge-screen .ch-title { flex:1; overflow:hidden; text-overflow:ellipsis; }
 .challenge-screen .ch-chip.stage { flex-shrink:0; }
 .challenge-screen .ch-reward, .challenge-screen .ch-plan-stats, .challenge-screen .ch-chip.fire { display:none; }
 .challenge-screen .ch-body, html[data-theme="objectshow"] .challenge-screen .ch-body {
  min-height:0; max-width:1240px; gap:12px;
  padding:6px max(18px,env(safe-area-inset-right,0px)) max(16px,env(safe-area-inset-bottom,0px)) max(18px,env(safe-area-inset-left,0px));
  overscroll-behavior-y:contain; scroll-padding-bottom:16px;
 }
 .challenge-screen .q-card, html[data-theme="objectshow"] .challenge-screen .q-card { flex-shrink:0; padding:20px; gap:12px; border-radius:20px; }
 .challenge-screen .q-type-tag { font-size:13px; padding:3px 10px; line-height:20px; }
 .challenge-screen .q-prompt { font-size:36px; line-height:1.4; padding:6px 0; }
 .challenge-screen .q-prompt.small { font-size:28px; }
 .challenge-screen .q-prompt.sentence { font-size:24px; line-height:1.5; }
 .challenge-screen .q-phonetic { margin:0; font-size:18px; line-height:1.4; }
 .challenge-screen .wm-practice-buddy { display:none; }
 .challenge-screen .preview-word, html[data-theme="objectshow"] .challenge-screen .preview-word { font-size:40px; padding-top:4px; line-height:1.3; }
 .challenge-screen .preview-meaning { font-size:26px; line-height:1.5; }
 .challenge-screen .preview-example { font-size:20px; line-height:1.5; padding:10px 14px; }
 .challenge-screen .preview-tip { font-size:15px; line-height:1.5; }
 .challenge-screen .spell-submit, html[data-theme="objectshow"] .challenge-screen .spell-submit { min-height:56px; padding:12px 16px; font-size:20px; line-height:1.25; }
 .challenge-screen .spelling-question { flex:1 0 auto; }
 .challenge-screen .spelling-question>.q-prompt { flex:1; display:flex; align-items:center; justify-content:center; min-height:48px; }
 .challenge-screen .tile-context { padding:10px 12px; font-size:21px; line-height:1.4; }
 .challenge-screen .adventure-spelling { display:grid; grid-template-columns:minmax(0,1fr) 112px; gap:8px; width:100%; max-width:940px; align-self:center; margin:8px 0 0; }
 .challenge-screen .adventure-typed { grid-column:1/-1; min-height:56px; padding:10px 14px; font-size:28px; line-height:1.3; margin-bottom:4px; }
 .challenge-screen .adventure-keyboard { display:contents; }
 .challenge-screen .keyboard-row { grid-column:1/-1; gap:6px; }
 .challenge-screen .keyboard-row:last-child { grid-column:1; }
 .challenge-screen .keyboard-row button, html[data-theme="objectshow"] .challenge-screen .keyboard-row button { height:clamp(56px,6.5dvh,64px); min-height:56px; max-width:72px; font-size:22px; padding:0; border-radius:10px; }
 .challenge-screen .keyboard-row:last-child button, html[data-theme="objectshow"] .challenge-screen .keyboard-row:last-child button, .challenge-screen .keyboard-row button.keyboard-space, html[data-theme="objectshow"] .challenge-screen .keyboard-row button.keyboard-space { max-width:none; }
 .challenge-screen .keyboard-row button.keyboard-space, html[data-theme="objectshow"] .challenge-screen .keyboard-row button.keyboard-space { font-size:18px; }
 .challenge-screen .adventure-spelling>.spell-submit, html[data-theme="objectshow"] .challenge-screen .adventure-spelling>.spell-submit { grid-column:2; height:clamp(56px,6.5dvh,64px); min-height:56px; font-size:19px; padding:8px 6px; border-radius:10px; }
 .challenge-screen .opt-grid { gap:12px; }
 .challenge-screen .opt-btn, html[data-theme="objectshow"] .challenge-screen .opt-btn { min-height:56px; padding:12px 16px; font-size:20px; line-height:1.4; }
 .challenge-screen .tile-instruction, .challenge-screen .tile-placeholder-hint { font-size:16px; line-height:1.5; }
 .challenge-screen .tile-selected { min-height:64px; padding:8px; gap:8px; }
 .challenge-screen .tile-bank { padding:4px 0 6px; gap:10px; }
 .challenge-screen .tile-choice, .challenge-screen .tile-slot { min-height:54px; min-width:54px; font-size:21px; padding:10px 14px; }
 .challenge-screen .spell-input { padding:12px; font-size:26px; }
 .challenge-screen .feedback-card { padding:22px; }
 .challenge-screen .fb-next { min-height:56px; font-size:20px; }
}
@media (min-width:1000px) and (max-width:1400px) and (min-height:540px) and (orientation:landscape) {
 .challenge-screen .spelling-question { display:grid; grid-template-columns:minmax(180px,.65fr) minmax(0,1.5fr); grid-template-rows:auto minmax(0,1fr) auto; gap:12px 24px; align-items:center; }
 .challenge-screen .spelling-question>.q-type-tag { grid-column:1; grid-row:1; }
 .challenge-screen .spelling-question>.q-prompt { grid-column:1; grid-row:2; }
 .challenge-screen .spelling-question>.tile-context { grid-column:1; grid-row:3; }
 .challenge-screen .spelling-question>.adventure-spelling { grid-column:2; grid-row:1/span 3; align-self:center; margin:0; }
 .challenge-screen .opt-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (min-width:700px) and (max-width:1400px) and (min-height:540px) and (max-height:680px) {
 .challenge-screen .q-card, html[data-theme="objectshow"] .challenge-screen .q-card { padding:16px; row-gap:8px; }
 .challenge-screen .adventure-spelling { gap:6px; }
}
