body{margin:0;background:#f0f5ff;color:#193052;font-family:system-ui,sans-serif}main{max-width:700px;margin:auto;padding:20px}section{background:white;padding:22px;border-radius:20px;margin:18px 0;box-shadow:0 5px 20px #0001}h1{margin-bottom:4px}p{color:#64748b}button,select{font:inherit;padding:12px 15px;border:1px solid #cad8ef;background:white;color:#193052;border-radius:12px;cursor:pointer}button:focus-visible{outline:3px solid orange}.primary{background:#2563eb;color:white}.active{background:#dbeafe;border-color:#2563eb}.row{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.card{display:flex;justify-content:space-between;align-items:center;background:#f3f7ff;padding:12px;margin:8px 0;border-radius:12px;gap:12px}.card button{min-width:125px}.choice{display:block;width:100%;text-align:left;margin:8px 0}.hidden{display:none}select{width:100%;margin:10px 0 18px}.good{background:#dcfce7}.bad{background:#fee2e2}.equation{justify-content:flex-start!important;gap:5px}.equation button{min-width:65px}.profile{font-size:1.1rem;min-width:180px;text-align:left}.gateword{text-align:center;font-size:3.4rem;margin:45px 0}.picture{text-align:center;font-size:7rem;margin:20px}.four{display:grid;grid-template-columns:1fr 1fr;gap:12px}.four button{font-size:1.2rem}.settings label{display:block;margin-top:12px}.settings input[type=text],.settings input[type=number]{font:inherit;padding:10px;width:100%;border:1px solid #cad8ef;border-radius:9px}.settings input[type=checkbox]{width:20px;height:20px}.settings .check{display:flex;gap:8px;align-items:center}.focus section{box-shadow:none}.reading-mode{line-height:1.7;letter-spacing:.025em}.no-color .good,.no-color .bad{border:3px solid #193052!important}.no-color .active{background:white;border:3px solid #193052}.auth-field{display:block;width:100%;box-sizing:border-box;margin:8px 0 15px;padding:13px;border:1px solid #cad8ef;border-radius:12px;font:inherit}.auth-actions{display:flex;flex-wrap:wrap;gap:9px}.status{font-size:.92rem;min-height:1.3em}#sessionBar{display:flex;align-items:center;justify-content:space-between;gap:8px}.line-icon{width:1.5em;height:1.5em;vertical-align:-.35em;stroke:#426783;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.profile .line-icon{width:52px;height:52px;display:block;margin:0 auto 9px;stroke:#406b8b}.profile{text-align:center;min-width:145px}.profile .avatar-name{display:block;font-weight:650}.profile .avatar-grade{display:block;font-size:.78rem;color:#61758a;margin-top:4px}.picture .line-icon{width:min(42vw,180px);height:min(42vw,180px);stroke-width:1.4}.picture{font-size:1rem}.gateword{font-size:1.55rem;margin:24px 0;text-align:center}.four button{min-height:58px}.line-icon{stroke-width:1.5;stroke:#24496b;background:#e8f4ff;border-radius:24%;padding:3px;box-sizing:border-box}.profile .line-icon{background:#d8edff;border:3px solid #fff;border-radius:50%;padding:8px;box-shadow:0 4px 0 #c4def3}.profile:nth-child(2) .line-icon{background:#ffdfeb}.profile:nth-child(3) .line-icon{background:#ffedc8}.profile:nth-child(4) .line-icon{background:#d9f5df}.profile{background:#f8fbff;border:2px solid #dce9f8;padding:18px}.picture .line-icon{background:#e5f3ff;border-radius:28px;padding:25px;stroke:#24527c;fill:#ffdb86;stroke-width:1.7;box-shadow:0 9px 0 #c9e5fb}.picture .line-icon path{vector-effect:non-scaling-stroke}#subjects button{background:#eef6ff;border-color:#cde4fa}#subjects button.active{background:#cce7ff;border-color:#6fa6db}#themeControl{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:8px 0 16px}#themeControl label{font-size:.88rem;font-weight:600}#themeSelect{width:auto;min-width:130px;margin:0;padding:7px 10px}html[data-theme="dark"]{color-scheme:dark}html[data-theme="dark"] body{background:#101827;color:#e7eefb}html[data-theme="dark"] section{background:#1b283b;box-shadow:0 5px 20px #0004}html[data-theme="dark"] p,html[data-theme="dark"] small{color:#b4c5db}html[data-theme="dark"] button,html[data-theme="dark"] select,html[data-theme="dark"] input,html[data-theme="dark"] textarea{background:#25354b;color:#eef5ff;border-color:#516581}html[data-theme="dark"] button.primary{background:#427ce5;color:#fff;border-color:#679aff}html[data-theme="dark"] button.active{background:#36577d;border-color:#79a8f0;color:#fff}html[data-theme="dark"] .card{background:#26384f}html[data-theme="dark"] .profile{background:#253951;border-color:#4a6a8c}html[data-theme="dark"] .profile .avatar-grade{color:#b4c5db}html[data-theme="dark"] #subjects button{background:#29415e;border-color:#4e7298}html[data-theme="dark"] #subjects button.active{background:#3b628e;border-color:#93bfff}html[data-theme="dark"] .good{background:#214f3a;color:#e1ffed;border-color:#4baf7a}html[data-theme="dark"] .bad{background:#602e39;color:#ffe8e8;border-color:#e4828b}html[data-theme="dark"] .no-color .good,html[data-theme="dark"] .no-color .bad{border-color:#f2f6ff!important}html[data-theme="dark"] .no-color .active{background:#25354b;border-color:#f2f6ff}html[data-theme="dark"] .line-icon{background:#3b5875;stroke:#e6f1ff}html[data-theme="dark"] .profile:nth-child(2) .line-icon{background:#775068}html[data-theme="dark"] .profile:nth-child(3) .line-icon{background:#736042}html[data-theme="dark"] .profile:nth-child(4) .line-icon{background:#386657}html[data-theme="dark"] .picture .line-icon{background:#345b7e;fill:#f5bf6a;stroke:#f4f8ff}html[data-theme="dark"] #themeSelect{background:#25354b;color:#fff}html[data-theme="dark"] button:focus-visible,html[data-theme="dark"] input:focus-visible{outline:3px solid #ffcb70}.top-actions{position:relative;display:flex;align-items:center;gap:10px}.version{font-size:.8rem;font-weight:700;color:#526b8e;white-space:nowrap}#menuToggle{font-size:1.65rem;line-height:1;width:43px;height:43px;padding:0;border-radius:12px}.app-menu{position:absolute;right:0;top:calc(100% + 8px);z-index:50;width:min(285px,calc(100vw - 36px));padding:12px;background:#fff;border:1px solid #d2dfef;border-radius:15px;box-shadow:0 12px 35px #0003;box-sizing:border-box}.app-menu.hidden{display:none}.app-menu>button{display:block;width:100%;text-align:left;border:0;padding:13px 12px;background:transparent}.app-menu>button:hover{background:#eef4ff}.app-menu #themeControl{border-top:1px solid #d2dfef;border-bottom:1px solid #d2dfef;margin:4px 0;padding:12px 8px;justify-content:space-between}.app-menu #themeSelect{min-width:120px}html[data-theme="dark"] .app-menu{background:#1b283b;border-color:#526581}html[data-theme="dark"] .app-menu>button{background:transparent}html[data-theme="dark"] .app-menu>button:hover{background:#2d425e}html[data-theme="dark"] .app-menu #themeControl{border-color:#526581}html[data-theme="dark"] .version{color:#b4c5db}#parentPassword{-webkit-text-security:disc;font-variant-numeric:tabular-nums;letter-spacing:.35em}#parentPassword::placeholder{letter-spacing:normal}@supports not (-webkit-text-security:disc){#parentPassword{letter-spacing:.1em}}#historyStage{overflow:hidden;border-radius:20px;background:#d9effb;margin:16px 0}#historyStage>svg{width:100%;height:auto;display:block}.history-route{stroke-dashoffset:150;opacity:.15}.history-dot{opacity:.15}#historyStage.playing .history-route{animation:routeReveal 9s linear forwards}#historyStage.playing .history-dot{animation:dotReveal 9s linear forwards}@keyframes routeReveal{0%{stroke-dashoffset:150;opacity:.15}100%{stroke-dashoffset:0;opacity:1}}@keyframes dotReveal{0%,35%{opacity:.15}75%,100%{opacity:1}}#historyStage.paused *{animation-play-state:paused!important}@media(prefers-reduced-motion:reduce){#historyStage.playing .history-route,#historyStage.playing .history-dot{animation:none;opacity:1}}#historyChoices button{display:block;width:100%;margin:8px 0;text-align:left}#historyStage{position:relative;overflow:hidden;border-radius:18px;background:#b4e4fa;margin:16px 0}#historyStage>svg{display:block;width:100%;height:auto}#historyMapCaption{padding:10px 14px;background:#e6f5ff;color:#244d68;font-weight:650;font-size:.9rem}#historyColonies circle{opacity:.2}#histArrival{opacity:0}html[data-theme="dark"] #historyMapCaption{background:#2a4961;color:#eef6ff}#historyStage:fullscreen,#historyStage.history-expanded{background:#b4e4fa;display:flex;flex-direction:column;justify-content:center;width:100vw;height:100dvh;border-radius:0;padding:0;margin:0;box-sizing:border-box}#historyStage:fullscreen>svg,#historyStage.history-expanded>svg{max-height:calc(100dvh - 100px);flex:1;min-height:0;object-fit:contain}#historyStage.history-expanded{position:fixed;inset:0;z-index:9999}#historyStage:fullscreen #historyMapCaption,#historyStage.history-expanded #historyMapCaption{flex-shrink:0;text-align:center;padding:14px}#historyStage:fullscreen:after,#historyStage.history-expanded:after{content:'Πατήστε Esc ή το κουμπί εξόδου για επιστροφή';position:absolute;top:10px;right:10px;font-size:12px;background:#fff9;padding:5px;border-radius:6px}#historyStage:fullscreen #historyControls,#historyStage.history-expanded #historyControls{display:flex;justify-content:center;flex-wrap:wrap;padding:4px 10px}#historyStage:fullscreen #historyTransport,#historyStage.history-expanded #historyTransport{width:min(90vw,750px);align-self:center;flex-shrink:0}#historyStage:fullscreen #historyControls button,#historyStage.history-expanded #historyControls button{padding:8px 12px}#histShip{filter:drop-shadow(1px 2px 2px #245b7c88)}#histRoute{stroke-dasharray:8 7;animation:historySeaCurrent 1.5s linear infinite}@keyframes historySeaCurrent{to{stroke-dashoffset:-30}}#historyStage>svg{touch-action:pan-y}#historyStage{position:relative;overflow:hidden}#historyMapCaption{padding:9px 12px 82px!important}#historyPlayer{position:absolute;bottom:0;left:0;right:0;z-index:5;background:linear-gradient(transparent,#102638f2 24%);color:#fff;padding:15px 12px 6px;display:flex;flex-direction:column;gap:2px}#historySeek{appearance:none;-webkit-appearance:none;width:100%;height:4px;border-radius:2px;margin:0;cursor:pointer;background:linear-gradient(to right,#f03d3d 0%,#f03d3d var(--progress,0%),#ffffff80 var(--progress,0%),#ffffff80 100%);accent-color:#f03d3d}#historySeek::-webkit-slider-thumb{appearance:none;width:13px;height:13px;border-radius:50%;background:#f03d3d}#historySeek::-moz-range-thumb{width:13px;height:13px;border:0;border-radius:50%;background:#f03d3d}#historyControls{display:flex!important;align-items:center;gap:4px;margin:0!important;padding:0!important;flex-wrap:nowrap!important}#historyControls button{background:transparent!important;color:white!important;border:0!important;border-radius:4px;padding:8px 10px!important;min-width:0!important;font-size:20px;box-shadow:none}#historyControls #historyTime{font-size:12px;white-space:nowrap;margin-left:5px;font-variant-numeric:tabular-nums}#historyControls #historyFullscreen{margin-left:auto}#historyStage:fullscreen,#historyStage.history-expanded{position:fixed;inset:0;z-index:9999;width:100vw;height:100dvh;max-width:none;border-radius:0;display:flex;flex-direction:column;justify-content:center;background:#a8dcf0}#historyStage:fullscreen>svg,#historyStage.history-expanded>svg{width:100%;height:100%;flex:1;min-height:0;object-fit:contain}#historyStage:fullscreen #historyMapCaption,#historyStage.history-expanded #historyMapCaption{position:absolute;bottom:0;left:0;right:0;text-align:center;padding-bottom:95px!important;background:linear-gradient(transparent,#10263890);color:#fff}#historyStage:fullscreen #historyPlayer,#historyStage.history-expanded #historyPlayer{bottom:0}#historyStage:fullscreen:after,#historyStage.history-expanded:after{display:none}#historyModeTabs{margin:14px 0}#historyModeTabs button{flex:1;min-width:190px}#historyAdventurePanel{background:#f3f7ff;border-radius:16px;padding:18px;margin:12px 0}#historyAdventurePanel .choice{white-space:normal;text-align:left;background:#fff;border:1px solid #bdcee6;margin:9px 0}#historyAdventurePanel .choice:hover{border-color:#2563eb}#historyAdventurePanel .adventure-feedback{padding:12px;border-radius:10px;background:#fff2d4;color:#593e0d}#historyAdventurePanel .adventure-feedback.good{background:#dcfce7;color:#155e36}html[data-theme="dark"] #historyAdventurePanel{background:#24364d}html[data-theme="dark"] #historyAdventurePanel .choice{background:#33475f;color:#fff}
/* Ε΄ Δημοτικού: study cards, experiment and city exploration */
.grade5-kicker{color:#366fa5;font-size:.9rem;font-weight:700;margin-bottom:3px}
#grade5Modes{margin:15px 0;gap:8px}#grade5Modes button{flex:1;min-width:125px;padding:11px 7px}
#grade5Body{min-height:235px}#grade5Body .g5-note{background:#f0f6ff;border-left:4px solid #4686d8;padding:14px 16px;border-radius:10px;margin:14px 0;line-height:1.6}
#grade5Body .g5-key{font-weight:800;color:#214d80}#grade5Body .g5-panel{padding:15px;border:1px solid #b8cce8;border-radius:15px;margin:14px 0;background:#f8fbff}
#grade5Body .g5-panel h3{margin-top:0}#grade5Body .g5-panel p{line-height:1.65}
#grade5Body .g5-scene{border-radius:15px;overflow:hidden;background:#e0f1ff;border:1px solid #a6cce5;margin:12px 0}
#grade5Body .g5-scene svg{display:block;width:100%;height:auto;max-height:355px}
#grade5Body .g5-controls{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}
#grade5Body .g5-controls button{flex:1;min-width:105px}
#grade5Body .g5-choice{width:100%;text-align:left;display:block;margin:9px 0;padding:13px}
#grade5Body .g5-choice[disabled]{opacity:.8;cursor:default}
#grade5Body .g5-feedback{background:#fff1d6;border-radius:10px;padding:14px;margin-top:12px;color:#553908;line-height:1.5}
#grade5Body .g5-feedback.good{background:#d9f9e7;color:#145c37}
#grade5Body .g5-metric{display:flex;gap:8px;flex-wrap:wrap}
#grade5Body .g5-metric span{background:#e1efff;border-radius:10px;padding:10px;font-weight:750;flex:1;text-align:center;min-width:95px}
#grade5Body input[type=number]{font:inherit;width:110px;padding:11px;border-radius:10px;border:1px solid #a8c2e1}
#grade5Body .g5-small{font-size:.9rem;color:#55728b}
#grade5Body a{color:#1464a4}
#grade5Body .g5-city-piece{opacity:.12;transition:opacity .45s}
#grade5Body .g5-city-piece.built{opacity:1}
#grade5Body button.g5-built{background:#d9f9e7;border-color:#44a87b;color:#155f39}
html[data-theme="dark"] #grade5Body .g5-note,html[data-theme="dark"] #grade5Body .g5-panel{background:#22354b;color:#edf4ff;border-color:#44617f}
html[data-theme="dark"] #grade5Body .g5-metric span{background:#334d69}
html[data-theme="dark"] #grade5Body .g5-key{color:#8cc7ff}
html[data-theme="dark"] #grade5Body .g5-feedback{background:#684c29;color:#fff3db}
html[data-theme="dark"] #grade5Body .g5-feedback.good{background:#21563b;color:#effff4}
html[data-theme="dark"] #grade5Body button.g5-built{background:#20543d;color:#effff4}
#grade5Body .g5-energy-forms{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px}
#grade5Body .g5-energy-forms>div{border:1px solid #c6d8e9;border-radius:12px;padding:12px;background:#ffffffb8}
#grade5Body .g5-energy-forms span{display:block;font-size:28px;margin-bottom:6px}
#grade5Body .g5-energy-forms strong{display:block;color:#245c85}
#grade5Body .g5-energy-forms p{font-size:.9rem;margin:5px 0 0}
#grade5Body .g5-energy-scene{text-align:center;padding:22px 16px 25px;border-radius:18px;background:linear-gradient(145deg,#d8edff,#f3faff);border:1px solid #b9d9ef}
#grade5Body .g5-energy-scene h3{margin:8px 0}
#grade5Body .g5-energy-scene p{margin:6px 0}
#grade5Body .g5-energy-emoji{font-size:clamp(65px,15vw,115px);line-height:1.4}
#grade5Body .g5-energy-prompt{font-weight:750;text-align:center;margin:19px 0 12px}
#grade5Body .g5-energy-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#grade5Body .g5-energy-options button{margin:0;width:100%;text-align:center;white-space:normal;min-height:52px}
#grade5Body .g5-energy-progress{height:6px;background:#d4e3f3;border-radius:8px;overflow:hidden;margin:9px 0 14px}
#grade5Body .g5-energy-progress>div{background:#438fd8;height:100%;transition:width .25s}
html[data-theme="dark"] #grade5Body .g5-energy-scene,html[data-theme="dark"] #grade5Body .g5-energy-forms>div{background:#25425f;color:#f1f7ff;border-color:#4c769c}
html[data-theme="dark"] #grade5Body .g5-energy-forms strong{color:#b1dfff}
#subjects button[hidden],#allowScience5Row[hidden],#allowHistory5Row[hidden]{display:none!important}#historyControls .line-icon{stroke:#fff;width:22px;height:22px;vertical-align:middle}#historyControls button{min-width:43px!important;min-height:43px!important;display:inline-flex;align-items:center;justify-content:center}