/* Friendly bilingual choices keep the same grade permissions and actions. */
body[data-view=home] .homecard{border:5px solid var(--ink);border-radius:38px;background:#fffaf0;box-shadow:0 8px 0 #2b1d14,inset 0 0 0 7px #fff,0 16px 26px #2b1d1417;padding:clamp(18px,2.2vw,28px)}
body[data-view=home] .homecard:before{border-radius:29px;border:2px dashed #f3cea1;inset:10px;opacity:.8}
body[data-view=home] .ctitle{font-size:clamp(44px,6vw,74px);margin-bottom:0}
.home-name45{font:900 18px/1.4 var(--f-num);color:#39758d;letter-spacing:1px;margin:3px 0 10px}
body[data-view=home] .home-intro45{font-size:18px;line-height:1.45;margin:6px 0}.home-intro45>span{display:block;font:700 14px/1.5 var(--f-body);color:#70664f}
.home-subjects45{display:flex;flex-wrap:wrap;gap:6px;margin:9px 0 14px}.home-subjects45>span{display:inline-flex;align-items:center;gap:5px;padding:4px 9px;border:2px solid #a1bcad;border-radius:12px;background:#edf8e9;font-size:14px;font-weight:900}.home-subjects45 small{color:#536253;font-size:11px}
body #grades .gbtn{border:3px solid var(--ink);border-radius:24px;min-height:130px;padding:10px 7px;box-shadow:inset 0 5px 0 #fff9,0 5px 0 #6b583c;background:linear-gradient(160deg,#fff8,var(--c));transition:transform .15s;animation:none}
body #grades .gbtn:before{border-radius:18px;inset:6px;opacity:.6}body #grades .gbtn>b{font-size:33px;line-height:1.1}body #grades .gbtn>span{font-size:21px;line-height:1.35}body #grades .gbtn>span em{display:block;font:900 14px/1.3 var(--f-num);color:#4c574b;font-style:normal}body #grades .gbtn>small{display:block;font-size:12px;line-height:1.4}body #grades .gbtn>.home-status-en45{font-size:10px;color:#4c574b}body #grades .gbtn.locked{opacity:1;filter:none}body #grades .gbtn.sel{outline:4px solid #ffdf6f;outline-offset:3px}
body[data-view=home] .fx-entry{border:3px solid var(--ink);border-radius:24px;box-shadow:0 5px 0 #6b583c;margin-top:17px}body[data-view=home] .fx-entry-in{padding:10px 14px}.fx-entry-go small{display:block;color:inherit;font-size:14px;line-height:1.1}.fx-entry-go{font-size:21px!important;padding:8px 14px!important}.fx-entry-t>b{font-size:23px!important}.fx-entry-t>small{font-size:13px!important}
/* A single transparent sky aperture, without a frame, rings, runes or surrounding ornaments. */
#v-workbooks .dg-sky-portal.dg-sky-only45{--vortex-size:230px;position:absolute;left:50%;top:clamp(95px,13vh,160px);width:var(--vortex-size);transform:translateX(-50%);border:0;background:none;box-shadow:none;overflow:visible;gap:0}
.dg-sky-only45 .dg-sky-eye{position:relative;left:auto;top:auto;width:var(--vortex-size);height:var(--vortex-size);border:0;border-radius:0;overflow:visible;background:none;box-shadow:none;animation:none;filter:none;margin:auto}
.dg-sky-only45 .dg-sky-spin{inset:0;width:100%;height:100%;border:0;background:none;animation:dg-sky-rotate 13s linear infinite;mask-image:radial-gradient(ellipse,#000 35%,#000e 52%,#0008 63%,transparent 73%)}
.dg-sky-only45 .dg-sky-spin:after{display:none}.dg-sky-only45 .dg-sky-spin img{width:100%;height:100%;object-fit:contain;filter:none;border:0}
.dg-portal-particles49{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;border-radius:50%}
.dg-sky-only45 .dg-sky-eye{transition:transform .2s ease-out}.dg-sky-interacting49 .dg-sky-eye{transform:scale(1.055)}
.dg-sky-only45.dg-sky-paused .dg-sky-spin{animation-play-state:paused}
#v-workbooks .dg-sky-only45 .dg-portal-caption{position:relative;display:grid;margin:0 auto;padding:7px 11px;border:2px solid #726790;border-radius:16px;background:#f5efffe8;color:#3e3455;box-shadow:0 3px 0 #b7a9c5;text-shadow:none;white-space:normal;min-width:180px}
#v-workbooks .dg-sky-only45 .dg-portal-caption :is(b,small,strong,em){color:#3e3455;text-shadow:none}
.dg-sky-only45 .dg-portal-caption em{display:block;font:800 11px/1.3 var(--f-body);font-style:normal}.dg-sky-only45:focus-visible{outline:3px solid #577aa5;outline-offset:4px;border-radius:26px}
/* The subject illustration fills wide screens without stretching or side margins. */
body.subject-backdrop-visible #subjectBackdrop{inset:0;width:100%;transform:none}
body.dungeon-explore #bg,body.dungeon-battle #bg{visibility:hidden}
body.dungeon-explore #bg *,body.dungeon-battle #bg *{animation-play-state:paused!important}
@media(min-width:1400px){body.subject-backdrop-visible #subjectBackdrop>.subject-backdrop-ground{width:100%;height:100%;max-height:none;object-fit:cover;object-position:center bottom;mask-image:none}body.subject-backdrop-visible #subjectBackdrop>.subject-backdrop-sky{opacity:0}body.subject-backdrop-visible #bg{visibility:hidden!important}body.subject-backdrop-visible :is(#v-map,#v-module-map,#v-game){background:transparent!important}}
@media(max-width:740px){body[data-view=home] .homecard{padding:16px;border-radius:29px}.home-name45{font-size:15px}.home-subjects45{gap:4px;margin:8px 0}.home-subjects45>span{font-size:12px;padding:3px 6px;gap:3px}.home-subjects45 small{font-size:10px}body #grades .gbtn{min-height:121px;padding:7px 4px;border-radius:20px}body #grades .gbtn>span{font-size:17px}body #grades .gbtn>small{font-size:10px}.fx-entry-t>b{font-size:19px!important}.fx-entry-t>small{font-size:11px!important}body[data-view=home] .fx-entry-in{padding:9px;gap:8px}.fx-entry-go{font-size:17px!important;padding:7px 10px!important}}
@media(max-width:700px){#v-workbooks .dg-sky-portal.dg-sky-only45{position:relative;left:auto;top:auto;transform:none;--vortex-size:168px;flex-direction:row;align-self:center;width:min(100%,390px);justify-content:center;gap:6px;margin:0}.dg-sky-only45 .dg-portal-caption em{font-size:10px}#v-workbooks .dg-sky-only45 .dg-portal-caption{min-width:136px;max-width:180px;padding:7px;flex:1}.dg-sky-only45 .dg-portal-caption small{font-size:10px}}
@media(prefers-reduced-motion:reduce){.dg-sky-only45 *{animation:none!important;transition:none!important}}

@media(orientation:portrait) and (max-width:740px){body[data-view=home] .home{grid-template-rows:auto auto;align-content:start;gap:10px}body[data-view=home] .home .coach{min-height:132px;flex-shrink:0;padding-bottom:0}body[data-view=home] .home .coach .bhost{width:80px}body[data-view=home] .homecard{max-height:none;overflow:visible}body[data-view=home] .home .coach .bubble{font-size:13px;margin-bottom:16px}body #grades .gbtn>.home-status-en45{font-size:9px}}
