/* Full-app theme preview uses confirmed type and shared macaron surfaces. */
#screen-themes .worlds-select-body {padding:14px 14px 30px;overflow-y:auto;min-height:0;}
#learning-theme-tabs {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:0 0 16px;}
#learning-theme-tabs .learning-theme-tab {min-width:0;padding:8px 3px;border-radius:20px;border:1px solid #cae6f0;background:#f5fcff;color:#3b485c;font:700 12px/1.25 Nunito,sans-serif;}
#learning-theme-tabs .learning-theme-tab img {width:56px;height:56px;object-fit:contain;max-width:100%;}
#learning-theme-tabs .learning-theme-tab[aria-pressed=true] {background:linear-gradient(#fffce5,#fff3a9);border-color:#9ccfe8;box-shadow:inset 0 2px 1px white;}
#learning-themes-grid {display:flex;flex-direction:column;gap:16px;}
.theme-review-summary {border:1px solid #d3e9f3;border-radius:26px;padding:18px;background:linear-gradient(145deg,#fff,#eefaff);color:#3b485c;box-shadow:inset 0 2px 1px #fff;}
.theme-review-summary-top {display:flex;align-items:center;justify-content:space-between;gap:8px;}
.theme-review-summary h2,#learning-themes-grid .learning-task h2 {font:600 24px/1.25 Fredoka,sans-serif;margin:0;}
.theme-review-summary p {font:400 15px/1.5 Nunito,sans-serif;margin:12px 0;}
.theme-star-balance {flex-shrink:0;color:#725410;background:#fff3a5;border:1px solid #f4e7a1;padding:8px 10px;border-radius:20px;font:800 16px/1 Nunito,sans-serif;}
.theme-review-progress {display:flex;justify-content:space-between;gap:8px;font:800 14px Nunito,sans-serif;}
.theme-review-summary progress {display:block;width:100%;height:10px;margin:10px 0;border:0;border-radius:12px;overflow:hidden;appearance:none;}
.theme-review-summary progress::-webkit-progress-bar {background:#e1f2f9;border-radius:12px;}
.theme-review-summary progress::-webkit-progress-value {background:#7ad9b3;border-radius:12px;}
.theme-review-summary .theme-review-status {font-weight:800;color:#32705c;margin-bottom:0;}
.theme-review-summary .theme-unlock {width:100%;margin-top:12px;background:linear-gradient(160deg,#fffde4,#ffed83);color:#71501c;}
#learning-themes-grid .learning-task {padding:14px;border:1px solid #cde4ee;background:linear-gradient(145deg,#fff,#f0faff);border-radius:26px;box-shadow:inset 0 2px 1px white;}
#learning-themes-grid .learning-task>img {width:100%;height:auto;aspect-ratio:4/3;object-fit:contain;background:#f9fcff;border-radius:18px;margin-bottom:12px;}
#learning-themes-grid .learning-task>p {font:700 14px/1.5 Nunito,sans-serif;color:#53657a;}
#learning-themes-grid .learning-core-strip {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;padding:8px 0 12px;}
#learning-themes-grid .learning-core-strip>div {min-width:0;opacity:.52;}
#learning-themes-grid .learning-core-strip>div.is-owned {opacity:1;}
#learning-themes-grid .learning-core-strip img {height:44px;width:100%;object-fit:contain;}
#learning-themes-grid .learning-core-strip small {font:400 11px/1.3 Andika,sans-serif;overflow-wrap:anywhere;}
#learning-themes-grid .worlds-button {display:block;width:100%;min-height:46px;margin-top:8px;font:800 16px/1.2 Nunito,sans-serif;border:1px solid #b2dcf0;border-radius:20px;padding:12px 10px;}
#learning-themes-grid .worlds-button:disabled {color:#6e7f89;background:#edf2f4;border-color:#d3e0e6;box-shadow:none;opacity:1;}
.theme-preview-dialog {box-sizing:border-box;width:min(380px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:24px;border:1px solid white;border-radius:30px;background:linear-gradient(145deg,#fff,#fffdf9 70%,#f7f2ff);color:#3b485c;box-shadow:0 16px 44px #35578022;}
.theme-preview-dialog::backdrop {background:#24354b52;backdrop-filter:blur(3px);}
.theme-dialog-star {display:grid;place-items:center;width:64px;height:64px;margin:0 auto 18px;font-size:39px;line-height:1;background:linear-gradient(#fffbe1,#ffef8a);border-radius:22px;color:#f5c729;text-shadow:0 2px white;}
.theme-preview-dialog h2 {font:600 26px/1.25 Fredoka,sans-serif;margin:0 0 14px;text-align:center;}
.theme-preview-dialog p {font:400 16px/1.55 Nunito,sans-serif;}
.theme-dialog-balance {display:flex;justify-content:center;align-items:center;gap:20px;padding:14px;background:#fff8ce;border-radius:18px;color:#76571e;font:800 23px Nunito,sans-serif;}
.theme-dialog-actions {display:flex;gap:10px;margin-top:20px;}
.theme-dialog-actions button {flex:1;min-width:0;min-height:50px;border-radius:20px;border:1px solid #aedbf1;background:linear-gradient(#f9feff,#d3f1ff);color:#315f7a;font:800 16px/1.2 Nunito,sans-serif;padding:12px 8px;}
.theme-dialog-actions button[data-confirm] {background:linear-gradient(#fffde5,#ffec7c);border-color:#f1db74;color:#71501c;}
.theme-dialog-actions button:disabled {opacity:.6;}
.theme-preview-save-error {color:#a53758;background:#fff0f4;border-radius:12px;padding:10px;}
@media(max-width:350px){.theme-review-summary{padding:14px;}.theme-review-summary h2{font-size:22px;}.theme-star-balance{padding:8px;font-size:14px;}.theme-preview-dialog{padding:20px;}}

.theme-preview-dialog{margin:auto;inset:0;}

/* Each original room keeps its own task + five-sticker gate. */
.theme-review-summary h2,#learning-themes-grid .learning-task h2{color:var(--theme-accent,#ad4774);}
.theme-room-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;}
.theme-room-heading h2{min-width:0;overflow-wrap:anywhere;}
.theme-room-lock{display:grid;place-items:center;width:30.8px;height:30.8px;flex:0 0 30.8px;color:var(--theme-accent,#ad4774);}
.theme-room-lock svg{width:18.2px;height:18.2px;}
.theme-preview-dialog h2{overflow-wrap:anywhere;}

/* v1.34: three original circular logos are the complete theme tabs. */
body #learning-theme-tabs .learning-theme-tab{
 display:flex;align-items:center;justify-content:center;min-height:104px;padding:4px;
 border:0;border-radius:50%;background:transparent;box-shadow:none;
}
body #learning-theme-tabs .learning-theme-tab img{display:block;width:min(100%,96px);height:96px;object-fit:contain;}
body #learning-theme-tabs .learning-theme-tab[aria-pressed=true]{background:transparent;border:0;box-shadow:none;}
body #learning-theme-tabs .learning-theme-tab[aria-pressed=true] img{filter:drop-shadow(0 3px 0 #efc754) drop-shadow(0 0 4px #fff5aa);}
body #learning-theme-tabs .learning-theme-tab:focus-visible{outline:2px solid #3989ac;outline-offset:2px;}
/* Each row still reads the existing room gate; no second disabled action bar. */
#learning-themes-grid .theme-room-heading{display:block;margin-bottom:8px;}
#learning-themes-grid .theme-room-progress{display:flex;align-items:center;gap:6px;min-height:44px;text-align:left;}
#learning-themes-grid .theme-room-count{flex:none;font:800 13px/1.2 Nunito,sans-serif;color:#526a80;white-space:nowrap;}
#learning-themes-grid .learning-core-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));flex:1;min-width:0;gap:2px;padding:0;}
#learning-themes-grid .learning-core-strip>span{display:block;min-width:0;opacity:.22;filter:grayscale(.8);}
#learning-themes-grid .learning-core-strip>span.is-owned{opacity:1;filter:none;}
#learning-themes-grid .learning-core-strip img{display:block;width:100%;height:27px;object-fit:contain;}
#learning-themes-grid .theme-room-lock{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;margin:0;padding:6px;border:0;background:transparent;box-shadow:none;border-radius:12px;color:var(--theme-accent,#ad4774);}
#learning-themes-grid .theme-room-lock svg{width:26px;height:26px;}
#learning-themes-grid .theme-room-lock:disabled{opacity:1;cursor:default;}
#learning-themes-grid .theme-room-lock:not(:disabled){cursor:pointer;}
#learning-themes-grid .theme-room-lock.has-new-sticker svg{animation:themeNewStickerLock .5s ease-in-out var(--theme-lock-delay,0s);transform-origin:50% 35%;}
@keyframes themeNewStickerLock{0%,100%{transform:rotate(0)}20%,60%{transform:rotate(-12deg)}40%,80%{transform:rotate(12deg)}}
#learning-themes-grid .theme-room-action{
 display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:52px;min-height:52px;margin-top:12px;padding:8px;
 border:1px solid #f2d96a;border-radius:21px;box-shadow:inset 0 3px white,0 4px #f0dc59;
 background:linear-gradient(115deg,#fffbc4,#ffeb75);color:#67532b;font:900 18px/1.2 Nunito,sans-serif;
}
#learning-themes-grid .theme-room-action>.theme-currency-star{width:27px;height:27px;}
.theme-room-next{font:900 27px/1 Nunito,sans-serif;}
.theme-dialog-star>.theme-currency-star{width:48px;height:48px;}
.theme-dialog-balance span{display:flex;align-items:center;justify-content:center;gap:5px;}
.theme-dialog-balance .theme-currency-star{display:inline-block;width:25px;height:25px;}
.theme-dialog-balance.is-low{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:15px 8px;}
.theme-dialog-balance.is-low>div{display:flex;flex-direction:column;align-items:center;gap:9px;min-width:0;}
.theme-dialog-balance.is-low>div>span{font:800 12px/1.2 Nunito,sans-serif;white-space:nowrap;}
.theme-dialog-balance.is-low strong{display:flex;align-items:center;justify-content:center;gap:3px;font:900 23px/1 Nunito,sans-serif;}
@media(max-width:350px){
 body #learning-theme-tabs .learning-theme-tab{min-height:88px;}
 body #learning-theme-tabs .learning-theme-tab img{height:82px;}
 #learning-themes-grid .theme-room-progress{gap:3px;}
 #learning-themes-grid .theme-room-count{font-size:12px;}
 #learning-themes-grid .theme-room-action{font-size:17px;}
 .theme-dialog-balance.is-low strong{font-size:20px;}
 .theme-dialog-balance.is-low .theme-currency-star{width:22px;height:22px;}
}
@media(prefers-reduced-motion:reduce){#learning-themes-grid .theme-room-lock.has-new-sticker svg{animation:none;}}

.theme-room-progress-arrow{flex:none;color:#96a7b1;font:800 21px/1 Nunito,sans-serif;}
#learning-themes-grid .learning-core-strip>span.is-new-sticker{animation:themeStickerLight .35s ease-out calc(var(--theme-sticker-step,0) * .1s) backwards;}
@keyframes themeStickerLight{from{opacity:.22;filter:grayscale(.8);transform:scale(.9)}to{opacity:1;filter:none;transform:scale(1)}}
@media(prefers-reduced-motion:reduce){#learning-themes-grid .learning-core-strip>span.is-new-sticker{animation:none;}}
