/* Optional mobile-first visual theme. The existing website theme remains the default. */
/* Atlas cells are actual pictures: inline spans must have their own layout box. */
.story-game-shell .story-scene{display:block;aspect-ratio:1}
.story-game-shell>.story-scene{max-width:280px;margin-inline:auto}
html[data-vibe-theme="app"] .auth-card .auth-mascot{display:grid!important}
html[data-vibe-theme="app"]{
  --vibe-app-navy:#061743;
  --vibe-app-blue:#123f91;
  --vibe-app-cyan:#20c9ff;
  --vibe-app-purple:#753cff;
  --vibe-app-gold:#ffc83d;
  --vibe-app-cream:#fffdf5;
  color-scheme:dark;
}
html[data-vibe-theme="app"] body{
  background:
    radial-gradient(circle at 50% -12%,#2658d7 0,transparent 34%),
    radial-gradient(circle at 5% 48%,#6736c855 0,transparent 32%),
    linear-gradient(180deg,#071743 0,#071331 50%,#040b20 100%);
  color:#f8fbff;
}
html[data-vibe-theme="app"] body::before{
  content:"";position:fixed;inset:0;pointer-events:none;opacity:.42;z-index:-1;
  background-image:radial-gradient(circle,#64d9ff 1px,transparent 1.7px),radial-gradient(circle,#ffd35d 1px,transparent 1.7px);
  background-size:67px 67px,103px 103px;background-position:0 0,31px 17px;
}
html[data-vibe-theme="app"] .app{
  max-width:620px;padding:max(14px,env(safe-area-inset-top)) 14px max(28px,env(safe-area-inset-bottom));
  background:linear-gradient(180deg,#1028688c,#071332d9 28%,#08112af2);
  box-shadow:0 0 70px #0008;min-height:100vh;
}
html[data-vibe-theme="app"] .screen.active{animation:vibeAppEnter .28s cubic-bezier(.2,.8,.2,1)}
@keyframes vibeAppEnter{from{opacity:.2;transform:translateY(10px) scale(.99)}to{opacity:1;transform:none}}

html[data-vibe-theme="app"] .auth-screen{min-height:calc(100vh - max(28px,env(safe-area-inset-top)));padding:4px 0 18px}
html[data-vibe-theme="app"] .auth-card{
  position:relative;overflow:hidden;color:#f8fbff;border:3px solid #42d8ff;border-radius:32px;padding:24px 20px 22px;
  background:radial-gradient(circle at 50% -15%,#566fff90,transparent 34%),linear-gradient(155deg,#123c8f,#111a59 52%,#321267);
  box-shadow:inset 0 0 0 3px #ffffff13,0 9px 0 #092d77,0 28px 55px #0009,0 0 25px #2fd5ff30;
}
html[data-vibe-theme="app"] .auth-card::before{content:"";position:absolute;inset:auto -110px -130px auto;width:290px;height:290px;border-radius:50%;background:radial-gradient(circle,#d346ce55,transparent 68%);pointer-events:none}
html[data-vibe-theme="app"] .auth-card>*{position:relative;z-index:1}
html[data-vibe-theme="app"] .auth-logo{width:78px;height:78px;border:3px solid #ffe579;border-radius:26px;background:linear-gradient(145deg,#24d9ff,#6547f5 60%,#f4b92f);font-family:Arial,sans-serif;font-weight:1000;font-size:40px;text-shadow:0 3px 0 #17246e;box-shadow:inset 0 2px 3px #fff8,0 11px 24px #0006}
html[data-vibe-theme="app"] .auth-card h1{font-size:28px;color:#fff;text-shadow:0 3px 12px #0008}
html[data-vibe-theme="app"] .auth-card>p{color:#c7dcff;font-size:14px;line-height:1.7}
html[data-vibe-theme="app"] .auth-mascot{display:grid!important;grid-template-columns:68px minmax(0,1fr);align-items:center;gap:7px;margin:14px 0;padding:7px 12px 7px 7px;border:1px solid #6ce4ff;border-radius:21px;background:#071d54aa;box-shadow:inset 0 1px 0 #fff3}
html[data-vibe-theme="app"] .auth-mascot img{width:68px;height:72px;object-fit:contain;filter:drop-shadow(0 8px 7px #0007)}
html[data-vibe-theme="app"] .auth-mascot b,html[data-vibe-theme="app"] .auth-mascot span{display:block}
html[data-vibe-theme="app"] .auth-mascot b{color:#fff4b4;font-size:14px}
html[data-vibe-theme="app"] .auth-mascot span{margin-top:3px;color:#bfe8ff;font-size:10px}
html[data-vibe-theme="app"] .auth-tabs{margin:13px 0 14px;padding:5px;border:1px solid #4b7dc5;background:#071b50}
html[data-vibe-theme="app"] .auth-tab{min-height:44px;color:#bcd3f8;font-weight:800;font-size:15px}
html[data-vibe-theme="app"] .auth-tab.active{color:#3b2500;background:linear-gradient(180deg,#ffe477,#ffc137);box-shadow:inset 0 2px 2px #fff9,0 4px 0 #ba7112}
html[data-vibe-theme="app"] .auth-field label{color:#edf6ff;font-size:14px}
html[data-vibe-theme="app"] .auth-field .text-input{min-height:50px;border:2px solid #bcd2ec;background:#fff;color:#10204b;box-shadow:inset 0 2px 7px #132f6715}
html[data-vibe-theme="app"] .auth-field .text-input::placeholder{color:#8490a9;opacity:1}
html[data-vibe-theme="app"] .auth-field .text-input:focus{border-color:#4ad8ff;box-shadow:0 0 0 4px #31d5ff25,inset 0 2px 7px #132f6715}
html[data-vibe-theme="app"] .password-rules{color:#c3d6f4}
html[data-vibe-theme="app"] .password-rules .good{color:#78f0b6}
html[data-vibe-theme="app"] .password-rules .bad{color:#ffb3bf}
html[data-vibe-theme="app"] .remember-login,html[data-vibe-theme="app"] .legal-consent{border:1px solid #426eb6;border-radius:14px;background:#071c50a8;color:#d6e5ff;padding:10px}
html[data-vibe-theme="app"] .legal-consent a{color:#ffe179}
html[data-vibe-theme="app"] .auth-link{display:block;color:#cbe8ff;min-height:44px;padding:11px 24px;font-size:13px;line-height:1.6;text-align:center}
html[data-vibe-theme="app"] .auth-message.error{color:#ffb6c1}
html[data-vibe-theme="app"] .auth-message.ok{color:#76efb3}
html[data-vibe-theme="app"] .auth-card .primary{font-size:17px;min-height:52px}
html[data-vibe-theme="app"] .auth-card .remember-login{font-size:14px;line-height:1.5}

html[data-vibe-theme="app"] .app-theme-only{display:block!important}
.app-theme-only{display:none!important}
.item-icon-inline{width:19px;height:19px;display:inline-block;vertical-align:middle;object-fit:contain;filter:drop-shadow(0 2px 2px #0003)}
.case-chest img{width:56px;height:56px;display:block;object-fit:contain;filter:drop-shadow(0 7px 7px #0005)}
html[data-vibe-theme="app"] .app-theme-intro,
html[data-vibe-theme="app"] .app-games-intro{
  position:relative;display:grid!important;grid-template-columns:112px minmax(0,1fr);align-items:center;gap:4px;
  min-height:142px;margin:0 0 14px;padding:12px 15px;border:2px solid #36cfff;border-radius:31px;
  background:radial-gradient(circle at 22% 15%,#4d72ff80,transparent 35%),linear-gradient(145deg,#173e93,#171462 62%,#3e1773);
  box-shadow:inset 0 0 0 3px #ffffff12,0 18px 48px #0007,0 0 24px #29c8ff35;overflow:hidden;
}
html[data-vibe-theme="app"] .app-theme-intro::after,
html[data-vibe-theme="app"] .app-games-intro::after{
  content:"";position:absolute;inset:auto -22px -45px auto;width:160px;height:160px;border-radius:50%;
  background:radial-gradient(circle,#ffd14d44,transparent 67%);pointer-events:none;
}
html[data-vibe-theme="app"] .app-theme-mascot{
  position:relative;z-index:2;width:110px;height:118px;object-fit:contain;filter:drop-shadow(0 12px 10px #0008);
}
html[data-vibe-theme="app"] .app-theme-bubble{
  position:relative;z-index:2;background:#fff;color:#10235d;border:4px solid #d9efff;border-radius:25px;padding:15px 16px;
  box-shadow:0 9px 0 #0a51a8,0 16px 28px #0005;text-align:right;
}
html[data-vibe-theme="app"] .app-theme-bubble::after{
  content:"";position:absolute;right:-14px;bottom:16px;width:24px;height:24px;background:#fff;border-right:4px solid #d9efff;border-bottom:4px solid #d9efff;transform:rotate(-45deg);
}
html[data-vibe-theme="app"] .app-theme-bubble b{display:block;font-size:19px;line-height:1.2}
html[data-vibe-theme="app"] .app-theme-bubble span{display:block;margin-top:5px;color:#5d688b;font-size:11px;line-height:1.5}

html[data-vibe-theme="app"] .hero{
  border:2px solid #48d6ff;border-radius:31px;
  background:radial-gradient(circle at 8% 2%,#754cff 0,transparent 37%),linear-gradient(135deg,#133f9c,#552bcb 62%,#df49ad);
  box-shadow:inset 0 0 0 3px #ffffff14,0 20px 45px #0007,0 0 22px #2dcfff35;
}
html[data-vibe-theme="app"] .hero h1{font-size:30px;text-shadow:0 3px 0 #15276780}
html[data-vibe-theme="app"] .hero .stats-row{background:#071b4b80;border-color:#8ce8ff70;box-shadow:inset 0 0 18px #46d7ff1f}
html[data-vibe-theme="app"] .hero .avatar{border:2px solid #ffe078;background:#0a2d77;box-shadow:0 0 20px #ffd95555}
html[data-vibe-theme="app"] .hero .bar{border:1px solid #79e5ff;background:#071d4f}
html[data-vibe-theme="app"] .hero .bar>div{background:linear-gradient(90deg,#24d8ff,#7149ff,#ffd14d);box-shadow:0 0 12px #44dfff}
html[data-vibe-theme="app"] .usage-chip{border:1px solid #ffe17a;background:#10286dcc;color:#fff5bd}

html[data-vibe-theme="app"] .section-head h2,
html[data-vibe-theme="app"] .topbar h2{color:#fff;text-shadow:0 2px 8px #0008}
html[data-vibe-theme="app"] .section-head span,
html[data-vibe-theme="app"] .topbar p{color:#c7d8ff}
html[data-vibe-theme="app"] .topbar{
  position:sticky;top:0;z-index:40;margin:-14px -14px 16px;padding:13px 15px;
  background:linear-gradient(180deg,#102d79f5,#0a1d53f0);border-bottom:2px solid #5ad8ff;box-shadow:0 8px 22px #0007;
  backdrop-filter:blur(13px);
}
html[data-vibe-theme="app"] .topbar .back{
  min-width:48px;min-height:48px;border:2px solid #8de9ff;border-radius:16px;background:linear-gradient(180deg,#774cff,#3a25a7);
  color:#fff;box-shadow:inset 0 2px 2px #fff5,0 6px 0 #16156c,0 10px 18px #0005;font-weight:900;
}

html[data-vibe-theme="app"] .level-btn,
html[data-vibe-theme="app"] .tile,
html[data-vibe-theme="app"] .game-card,
html[data-vibe-theme="app"] .phrase-card,
html[data-vibe-theme="app"] .lesson-card,
html[data-vibe-theme="app"] .song-card,
html[data-vibe-theme="app"] .daily-card,
html[data-vibe-theme="app"] .case-banner,
html[data-vibe-theme="app"] .profile-card,
html[data-vibe-theme="app"] .profile-design-panel,
html[data-vibe-theme="app"] .visual-theme-panel{
  color:#f8fbff;border:1px solid #367fd8;border-radius:23px;
  background:linear-gradient(145deg,#123879,#0b255b 54%,#171347);
  box-shadow:inset 0 1px 0 #ffffff29,0 14px 30px #0005,0 0 18px #3dcfff16;
}
html[data-vibe-theme="app"] .tile small,
html[data-vibe-theme="app"] .game-card small,
html[data-vibe-theme="app"] .phrase-card .he,
html[data-vibe-theme="app"] .lesson-card p,
html[data-vibe-theme="app"] .profile-card .muted,
html[data-vibe-theme="app"] .profile-design-panel p,
html[data-vibe-theme="app"] .visual-theme-panel p{color:#bed2ff!important}
html[data-vibe-theme="app"] .level-btn.active{
  color:#fff8ca;border-color:#ffd64f;background:linear-gradient(145deg,#3c2fbd,#1669bf);box-shadow:inset 0 0 0 2px #fff3a82e,0 0 18px #ffd54e44;
}
html[data-vibe-theme="app"] .level-btn small{color:#bcd4ff}
html[data-vibe-theme="app"] .tile-icon{border:1px solid #81eaff;background:linear-gradient(145deg,#38d5ff,#7044f1)!important;box-shadow:inset 0 2px 2px #fff7,0 7px 14px #0005}
html[data-vibe-theme="app"] .tile .go{color:#ffd95b}
html[data-vibe-theme="app"] .game-list{gap:12px}
html[data-vibe-theme="app"] .game-card{min-height:88px;padding:13px 15px;border-width:2px;transition:transform .16s,box-shadow .16s}
html[data-vibe-theme="app"] .game-card:active{transform:scale(.98)}
html[data-vibe-theme="app"] .game-card .badge{margin-right:auto;border:1px solid #ffd95d;background:#4b2d9e;color:#fff2ad;box-shadow:inset 0 1px 1px #fff5}
html[data-vibe-theme="app"] .case-banner{border-color:#725cff}
html[data-vibe-theme="app"] .case-banner strong{color:#fff}
html[data-vibe-theme="app"] .case-banner p{color:#bfd2ff}
html[data-vibe-theme="app"] .case-key-count{color:#ffe47b}
html[data-vibe-theme="app"] .learning-index-launch{border:2px solid #ffd75c;background:linear-gradient(135deg,#142c74,#6535cd 60%,#0eaac7)}

html[data-vibe-theme="app"] .quiz-box,
html[data-vibe-theme="app"] #gameArea{
  color:#10204b;border:3px solid #48cfff;border-radius:28px;background:linear-gradient(180deg,#fff,#f5f8ff);
  box-shadow:0 10px 0 #123a91,0 22px 46px #0007;
}
html[data-vibe-theme="app"] .quiz-meta{border:1px solid #cbd7f3;background:#eef4ff;color:#173078}
html[data-vibe-theme="app"] .answer,
html[data-vibe-theme="app"] .match-btn,
html[data-vibe-theme="app"] .fight-answer{
  color:#14245a;border:2px solid #c7d8f2;background:linear-gradient(180deg,#fff,#edf3ff);box-shadow:0 4px 0 #aebddd;
}
html[data-vibe-theme="app"] .answer.correct,
html[data-vibe-theme="app"] .match-btn.done{color:#093d22;border-color:#39bb67;background:#dffff0;box-shadow:0 4px 0 #198b48}
html[data-vibe-theme="app"] .answer.wrong,
html[data-vibe-theme="app"] .match-btn.wrong{color:#6f1625;border-color:#f06d7b;background:#ffe6e9;box-shadow:0 4px 0 #c63f54}
html[data-vibe-theme="app"] .primary,
html[data-vibe-theme="app"] .find-match,
html[data-vibe-theme="app"] .play-btn{
  border:2px solid #fff0a0!important;background:linear-gradient(180deg,#ffd85b,#ffac18)!important;color:#4b2600!important;
  box-shadow:inset 0 2px 2px #fff9,0 5px 0 #bd6810,0 10px 18px #0004!important;text-shadow:0 1px #fff6;
}
html[data-vibe-theme="app"] .secondary,
html[data-vibe-theme="app"] .ghost{
  border:1px solid #62dcff!important;background:linear-gradient(180deg,#244a9e,#172b6c)!important;color:#fff!important;
}
html[data-vibe-theme="app"] .pill{border-color:#5da6ee;background:#112d69;color:#dff7ff}
html[data-vibe-theme="app"] .pill.active{border-color:#ffd65b;background:linear-gradient(180deg,#7648ee,#4226a3);color:#fff4c0}

html[data-vibe-theme="app"] .bottom{
  border-top:2px solid #48d7ff;background:#071942ee;box-shadow:0 -9px 28px #0009;backdrop-filter:blur(14px);
}
html[data-vibe-theme="app"] .bottom-inner{background:transparent}
html[data-vibe-theme="app"] .nav{color:#aac4f0}
html[data-vibe-theme="app"] .nav b{filter:drop-shadow(0 2px 4px #0007)}
html[data-vibe-theme="app"] .nav.active{color:#ffe16a;background:linear-gradient(180deg,#193a84,#352080);box-shadow:inset 0 0 0 1px #ffd95c55}

html[data-vibe-theme="app"] .profile-card .stats-row{background:#071c4c!important;color:#fff!important;border:1px solid #4edcff}
html[data-vibe-theme="app"] .profile-email{color:#c2d6ff}
html[data-vibe-theme="app"] .plan-badge,.theme-choice.active{background:#ffe06a;color:#352000}
html[data-vibe-theme="app"] .profile-design-panel,
html[data-vibe-theme="app"] .visual-theme-panel{padding:17px;margin-top:13px}
.visual-theme-panel{background:white;border-radius:22px;padding:16px;box-shadow:var(--soft);margin-top:13px}
.visual-theme-panel h3{margin:0 0 5px}.visual-theme-panel p{margin:0 0 12px;color:var(--muted);font-size:12px;line-height:1.5}
.theme-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.theme-choice{min-height:68px;border:2px solid #e2e2ef;border-radius:16px;background:#fff;color:#23263e;padding:10px;text-align:center;font-weight:900}
.theme-choice span,.theme-choice small{display:block}.theme-choice span{font-size:20px;margin-bottom:4px}.theme-choice small{font-size:9px;color:#777c93;margin-top:3px}
.theme-choice.active{border-color:#6c4dff;background:#efedff;color:#5131cf;box-shadow:0 0 0 3px #6c4dff18}
html[data-vibe-theme="app"] .theme-choice{border-color:#396fc6;background:#0b245b;color:#e7f5ff}
html[data-vibe-theme="app"] .theme-choice small{color:#aec7ef}
html[data-vibe-theme="app"] .theme-choice.active{border-color:#ffd35c;background:linear-gradient(145deg,#5434cf,#164f9e);color:#fff4b1;box-shadow:0 0 18px #ffd34f38}

.picture-game-shell{display:grid;gap:12px}
.picture-progress{height:13px;border-radius:99px;background:#dbe6fa;overflow:hidden;border:1px solid #bdd0ed}
.picture-progress i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2fd1ff,#704aff,#ffc83d);transition:width .28s ease}
.picture-stage{position:relative;min-height:235px;display:grid;place-items:center;border-radius:25px;overflow:hidden;background:radial-gradient(circle at 50% 35%,#c9f4ff,#7eb9ff 52%,#7352df);border:3px solid #fff;box-shadow:inset 0 0 0 3px #225bb0,0 10px 24px #17377b42}
.picture-stage::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 63%,#15356d47),radial-gradient(circle at 15% 20%,#fff9 0 2px,transparent 3px),radial-gradient(circle at 85% 28%,#fff8 0 3px,transparent 4px);background-size:auto,55px 55px,75px 75px}
.picture-visual{position:relative;z-index:1;font-size:104px;line-height:1;filter:drop-shadow(0 13px 8px #17366b55);transform:translateY(-3px)}
.picture-scene{position:absolute;z-index:1;inset:0;background-image:url("assets/learning/story-scenes-v79.png");background-repeat:no-repeat;background-size:300% 200%;background-position:var(--scene-position);transform:scale(1.012)}
.picture-hebrew{position:absolute;z-index:2;right:13px;bottom:12px;border-radius:99px;background:#081a4bd9;color:#fff;padding:7px 12px;font-size:11px;font-weight:900;box-shadow:0 4px 12px #0004}
.picture-speak{position:absolute;z-index:3;left:12px;top:12px;width:49px;height:49px;border:2px solid #fff;border-radius:50%;background:linear-gradient(180deg,#2dd6ff,#2776dc);color:#fff;font-size:22px;box-shadow:0 5px 0 #15509e}
.picture-question{margin:2px 0 0;text-align:center;color:#15275c}
.picture-options{display:grid;grid-template-columns:1fr 1fr;gap:9px;direction:ltr}
.picture-option{min-height:58px;border:2px solid #bed0ef;border-radius:16px;background:linear-gradient(180deg,#fff,#eef4ff);color:#17306d;font-weight:900;font-size:17px;box-shadow:0 4px 0 #9fafcf}
.picture-option.correct{border-color:#31b960;background:#dcffea;color:#174e29;box-shadow:0 4px 0 #198546}
.picture-option.wrong{border-color:#ef6474;background:#ffe3e7;color:#7b2030;box-shadow:0 4px 0 #bf3d51}
.picture-score-row{display:flex;justify-content:space-between;align-items:center;color:#1b3270;font-size:12px;font-weight:900}
.story-game-shell{gap:10px}.story-scene{width:100%;aspect-ratio:3/2;border:3px solid #fff;border-radius:24px;background-image:url("assets/learning/story-scenes-v79.png");background-repeat:no-repeat;background-size:300% 200%;background-position:var(--scene-position);box-shadow:inset 0 0 0 2px #1b4fa2,0 10px 24px #17377b42}.story-hebrew{text-align:center;color:#334875;font-size:12px;font-weight:900}.story-options{display:grid;grid-template-columns:1fr 1fr;gap:9px;direction:ltr}.story-option{font-size:14px;line-height:1.35;padding:9px}.story-write-label{display:block;color:#1c3168;font-size:13px;font-weight:900;text-align:right}.story-writing-input{margin:0 0 9px!important;min-height:52px}.story-writing-input.correct{border-color:#31b960;background:#dcffea}.story-writing-input.wrong{border-color:#ef6474;background:#ffe3e7}
.pronunciation-shell{display:grid;gap:10px}.pronunciation-record{position:relative;overflow:hidden}.pronunciation-record.listening{background:linear-gradient(180deg,#ff6380,#d82e5d)!important;color:#fff!important;border-color:#ffd0d8!important;box-shadow:0 5px 0 #921b40,0 0 22px #ff4e7790!important;animation:recordPulse .85s ease-in-out infinite alternate}.pronunciation-meter{height:32px;display:flex;justify-content:center;align-items:center;gap:5px;opacity:.28}.pronunciation-meter i{width:6px;height:8px;border-radius:99px;background:linear-gradient(#7049f5,#27d5ff);transition:.2s}.pronunciation-meter.active{opacity:1}.pronunciation-meter.active i{animation:voiceBar .65s ease-in-out infinite alternate}.pronunciation-meter.active i:nth-child(2){animation-delay:.12s}.pronunciation-meter.active i:nth-child(3){animation-delay:.24s}.pronunciation-meter.active i:nth-child(4){animation-delay:.08s}.pronunciation-meter.active i:nth-child(5){animation-delay:.19s}.speech-check{display:inline-grid;place-items:center;width:31px;height:31px;margin-left:5px;border-radius:50%;background:#24ba6c;color:#fff;font-size:22px;font-weight:900;box-shadow:0 0 0 4px #39c77b2c}.pronunciation-fallback{border:1px solid #cbd7ee;border-radius:15px;background:#f4f7ff;color:#33456f;padding:10px}.pronunciation-fallback summary{cursor:pointer;font-size:11px;font-weight:900}.pronunciation-fallback .text-input{margin:9px 0}.speech-privacy{margin:0;color:#65718b;font-size:9px;line-height:1.55;text-align:center}@keyframes recordPulse{to{transform:scale(1.015)}}@keyframes voiceBar{to{height:27px}}

@media(max-width:430px){
  html[data-vibe-theme="app"] .app{padding:10px 10px 24px}
  html[data-vibe-theme="app"] .topbar{margin:-10px -10px 13px;padding:11px 10px}
  html[data-vibe-theme="app"] .app-theme-intro,
  html[data-vibe-theme="app"] .app-games-intro{grid-template-columns:88px minmax(0,1fr);min-height:120px;padding:9px;border-radius:24px}
  html[data-vibe-theme="app"] .app-theme-mascot{width:86px;height:102px}
  html[data-vibe-theme="app"] .app-theme-bubble{padding:12px;border-radius:19px}
  html[data-vibe-theme="app"] .app-theme-bubble b{font-size:16px}
  html[data-vibe-theme="app"] .hero h1{font-size:25px}
  html[data-vibe-theme="app"] .grid{gap:9px}
  html[data-vibe-theme="app"] .tile{min-height:135px;padding:13px}
  html[data-vibe-theme="app"] .game-card{min-height:82px}
  .picture-stage{min-height:205px}.picture-visual{font-size:90px}.picture-option{font-size:15px;min-height:54px}.story-options{grid-template-columns:1fr}.story-option{font-size:13px;min-height:50px}
}
@media(max-width:350px){.theme-choice-grid,.picture-options{grid-template-columns:1fr}}
html.vibe-high-contrast[data-vibe-theme="app"] body{background:#000;color:#fff}
html.vibe-high-contrast[data-vibe-theme="app"] .game-card,
html.vibe-high-contrast[data-vibe-theme="app"] .tile,
html.vibe-high-contrast[data-vibe-theme="app"] .hero{border-color:#fff!important;box-shadow:none!important}
html.vibe-reduced-motion[data-vibe-theme="app"] *,
html.vibe-reduced-motion[data-vibe-theme="app"] *::before,
html.vibe-reduced-motion[data-vibe-theme="app"] *::after{animation:none!important;transition:none!important}
/* Illustrated story modes: interactive picture cards, not a static poster. */
.story-picture-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}.story-picture-option{padding:5px;border:3px solid #568ce5;border-radius:22px;background:#10275b;color:white;position:relative;overflow:hidden;cursor:pointer;min-width:0}.story-picture-option .story-scene{width:100%;margin:0;border:0;border-radius:15px;aspect-ratio:1;max-height:none}.story-picture-option.correct{border-color:#61d748;box-shadow:0 0 0 3px #61d74844}.story-picture-option.wrong{border-color:#f16b87}.story-option-number{position:absolute;bottom:9px;right:9px;width:32px;height:32px;display:grid;place-items:center;background:#072452e8;border:1px solid #fff6;border-radius:50%;font-weight:900}.story-listen-hero{text-align:center;color:#10204b}.story-listen-hero>img{width:76px;height:76px;object-fit:contain;float:left}.story-listen-hero h3{margin:8px 0 18px}.story-listen-hero details{text-align:start;margin-top:12px;font-size:13px;line-height:1.7}.story-listen-hero .ghost{margin-top:8px}.story-game-shell #gameFeedback .primary{margin-top:14px}.story-game-shell>small{display:block;margin-top:10px;color:#445a80}.story-picture-option:focus-visible{outline:3px solid #ffca4b;outline-offset:3px}
@media(prefers-reduced-motion:reduce){.pronunciation-record,.pronunciation-meter i,.speech-check{animation:none!important}}
