:root{--ink:#182033;--muted:#5b6477;--paper:#fffdf7;--line:#d7dfef;--blue:#246bfe;--sky:#61d7ff;--green:#2fbf71;--yellow:#ffd166;--pink:#ff6b9a;--dark:#101828}
*{box-sizing:border-box}body{margin:0;font-family:"Noto Sans Thai",system-ui,sans-serif;background:#f7fbff;color:var(--ink)}a{color:inherit;text-decoration:none}img{max-width:100%;display:block}main{min-height:70vh}.site-header{position:sticky;top:0;z-index:20;display:flex;gap:22px;align-items:center;justify-content:space-between;padding:14px clamp(16px,4vw,56px);background:rgba(255,255,255,.9);border-bottom:1px solid var(--line);backdrop-filter:blur(14px)}.brand{display:flex;align-items:center;gap:12px}.brand-mark{display:grid;place-items:center;width:48px;height:48px;background:var(--dark);color:#fff;border:4px solid var(--yellow);box-shadow:4px 4px 0 var(--blue);font-weight:800}.brand-logo-img{width:66px;height:66px;object-fit:contain;border-radius:16px;background:#fff;filter:drop-shadow(0 8px 14px rgba(13,91,215,.16))}.brand small{display:block;color:var(--muted);font-size:12px}.main-nav,.auth-actions{display:flex;align-items:center;gap:14px}.main-nav a{font-weight:700;color:#334155}.button{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:8px;background:var(--blue);color:#fff;padding:10px 16px;font-weight:800;cursor:pointer;box-shadow:0 4px 0 #1648ad}.button:hover{transform:translateY(1px);box-shadow:0 3px 0 #1648ad}.button.ghost{background:#fff;color:var(--blue);border:1px solid #b8c8ff;box-shadow:none}.button.large{padding:13px 20px}.button.small{padding:7px 12px;font-size:13px}.hero{display:grid;grid-template-columns:1.05fr .95fr;gap:34px;align-items:center;min-height:78vh;padding:54px clamp(16px,5vw,70px);background:linear-gradient(135deg,#e7f8ff 0%,#fff7d6 48%,#ffe5ef 100%)}.hero h1{margin:0;font-size:clamp(42px,7vw,92px);line-height:1.02;color:#111827}.hero p{font-size:20px;max-width:680px;color:#334155}.eyebrow,.pixel-label{font-family:"Press Start 2P",monospace;font-size:11px;color:#d12d69;letter-spacing:0}.hero-actions{display:flex;gap:14px;flex-wrap:wrap}.hero-scene{position:relative;min-height:420px;border:6px solid #182033;background:linear-gradient(#79dcff 0 54%,#7fe08c 54%);box-shadow:12px 12px 0 #182033;overflow:hidden}.sun{position:absolute;right:38px;top:34px;width:76px;height:76px;background:var(--yellow);box-shadow:0 0 0 12px rgba(255,209,102,.35)}.pixel-board{position:absolute;left:11%;top:20%;width:52%;height:34%;display:grid;place-items:center;background:#163b2f;border:8px solid #8b5e34;color:#8fffc1;font-family:"Press Start 2P";font-size:18px}.pixel-character{position:absolute;left:50%;bottom:72px;width:80px;height:112px;background:linear-gradient(#ff6b9a 0 30%,#246bfe 30% 72%,#182033 72%);box-shadow:0 -36px 0 #ffd166,22px -58px 0 #182033,-22px -58px 0 #182033}.pixel-desk{position:absolute;left:18%;right:12%;bottom:34px;height:46px;background:#b7793b;border:6px solid #68401d}.section-grid{display:grid;grid-template-columns:1.5fr .7fr;gap:28px;padding:54px clamp(16px,5vw,70px)}.section-heading h2,.page-title h1{font-size:34px;margin:4px 0 16px}.news-list,.content-stack{display:grid;gap:18px}.news-card,.quick-panel,.content-card,.auth-card,.profile-panel,.admin-form{background:#fff;border:1px solid var(--line);border-radius:8px;padding:22px;box-shadow:0 12px 30px rgba(16,24,40,.06)}.news-card time{color:var(--pink);font-weight:800}.embed-box{margin-top:14px;position:relative;overflow:hidden;border-radius:8px}.embed-box iframe{max-width:100%;width:100%;aspect-ratio:16/9;height:auto}.stage-link{display:grid;grid-template-columns:42px 1fr;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}.stage-link span,.level-number{display:grid;place-items:center;width:42px;height:42px;background:var(--yellow);border:3px solid var(--ink);font-weight:900}.course-band,.page-title,.game-hero,.character-strip,.level-map,.lesson-layout,.dashboard,.auth-page{padding:48px clamp(16px,5vw,70px)}.course-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.course-grid.wide{grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}.course-card{background:#fff;border:1px solid var(--line);border-radius:8px;padding:18px;transition:.18s}.course-card:hover{transform:translateY(-4px);box-shadow:0 15px 30px rgba(36,107,254,.12)}.course-card img{height:150px;width:100%;object-fit:contain;background:#eef7ff;border-radius:6px}.split-title{display:grid;grid-template-columns:1fr 260px;align-items:center;gap:20px}.game-body{background:#101828;color:#f8fafc}.game-body .site-header,.lesson-body .site-header{color:var(--ink)}.game-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;background:#172554;color:#fff;border-bottom:6px solid var(--yellow)}.game-hero h1{font-size:44px}.character-grid,.level-map{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:18px}.character-card,.level-card{background:#fff;color:var(--ink);border:4px solid #25304a;border-radius:8px;padding:18px;box-shadow:6px 6px 0 var(--yellow)}.character-card img{height:120px;margin:auto}.level-card.done{border-color:var(--green);box-shadow:6px 6px 0 var(--green)}.level-meta{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.level-meta span{background:#edf2ff;padding:5px 8px;border-radius:999px;font-size:13px}.lesson-layout{display:grid;grid-template-columns:1fr 420px;gap:24px}.lesson-main,.challenge-panel{background:#fff;color:var(--ink);border-radius:8px;padding:24px;border:1px solid var(--line)}.lead{font-size:19px;color:#334155}.mission-box{background:#fff8dc;border-left:6px solid var(--yellow);padding:16px;margin-top:20px}.challenge-panel fieldset{border:1px solid var(--line);border-radius:8px;margin:0 0 16px;padding:14px}.challenge-panel label,.admin-form label,.auth-card label{display:grid;gap:7px;margin-bottom:13px;font-weight:700}.challenge-panel textarea,.admin-form textarea,.admin-form input,.admin-form select,.auth-card input{width:100%;border:1px solid #cbd5e1;border-radius:8px;padding:11px;font:inherit}.challenge-panel textarea{font-family:Consolas,monospace;background:#0b1220;color:#d4f8e8}.result-box{margin-top:14px;padding:14px;border-radius:8px;font-weight:800}.result-box.success{background:#dcfce7;color:#166534}.result-box.fail,.alert{background:#ffe4e6;color:#9f1239;padding:12px;border-radius:8px}.auth-page{display:grid;place-items:center}.auth-card{width:min(430px,100%)}.dashboard{display:grid;grid-template-columns:300px 1fr;gap:22px}.profile-panel img{height:150px;margin:auto}.admin-shell{display:grid;grid-template-columns:230px 1fr;gap:24px;padding:28px clamp(16px,4vw,56px)}.admin-menu{display:grid;align-content:start;gap:8px}.admin-menu a{background:#fff;border:1px solid var(--line);border-radius:8px;padding:12px;font-weight:800}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:18px 0}.stat-card{background:#fff;border:1px solid var(--line);border-radius:8px;padding:18px}.stat-card strong{display:block;font-size:34px}.admin-table{width:100%;border-collapse:collapse;background:#fff;margin-top:18px;border-radius:8px;overflow:hidden}.admin-table th,.admin-table td{padding:12px;border-bottom:1px solid var(--line);text-align:left}.thumb{width:58px;height:58px;object-fit:contain}.site-footer{display:flex;justify-content:space-between;gap:16px;padding:28px clamp(16px,4vw,56px);background:#111827;color:#fff}.muted,.empty-state{color:var(--muted)}.install-page{display:grid;place-items:center;min-height:100vh}.install-box{width:min(620px,92vw);background:#fff;border-radius:8px;padding:30px;border:1px solid var(--line)}
@media (max-width:900px){.site-header{align-items:flex-start;flex-direction:column}.main-nav,.auth-actions{flex-wrap:wrap}.hero,.section-grid,.lesson-layout,.dashboard,.split-title,.admin-shell{grid-template-columns:1fr}.hero-scene{min-height:320px}.course-grid{grid-template-columns:1fr}.game-hero{align-items:flex-start;flex-direction:column}.stat-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:520px){.hero h1{font-size:40px}.game-hero h1{font-size:30px}.site-footer{flex-direction:column}.stat-grid{grid-template-columns:1fr}}
.challenge-panel fieldset label{display:flex;align-items:center;gap:10px;margin:10px 0;font-weight:600}.challenge-panel fieldset input{width:auto}.code-preview{white-space:pre-wrap;font-family:Consolas,monospace;background:#f1f5f9;border:1px solid var(--line);border-radius:8px;padding:12px}
body{background:
linear-gradient(rgba(36,107,254,.035) 1px,transparent 1px),
linear-gradient(90deg,rgba(36,107,254,.035) 1px,transparent 1px),
#f7fbff;background-size:28px 28px}
.hero{position:relative;overflow:hidden;border-bottom:1px solid #d9e6f7}
.hero:after{content:"";position:absolute;left:0;right:0;bottom:0;height:10px;background:repeating-linear-gradient(90deg,#246bfe 0 28px,#ffd166 28px 56px,#2fbf71 56px 84px,#ff6b9a 84px 112px)}
.hero-copy{position:relative;z-index:1}.hero-copy:before{content:"บทเรียน • ข่าว • เกม • โค้ด";display:inline-flex;margin-bottom:14px;padding:7px 12px;border:2px solid #182033;background:#fff;box-shadow:4px 4px 0 #ffd166;font-weight:800;color:#182033}
.section-heading.center{text-align:center;max-width:760px;margin:0 auto 24px}.section-heading.center p:last-child{color:var(--muted);font-size:18px}.feature-band{padding:58px clamp(16px,5vw,70px);background:#fff}.feature-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.feature-card{position:relative;min-height:230px;border:1px solid var(--line);border-radius:8px;padding:22px;background:#fff;box-shadow:0 14px 30px rgba(16,24,40,.07);overflow:hidden}.feature-card:before{content:"";position:absolute;inset:0 0 auto 0;height:8px;background:var(--blue)}.feature-card span{display:grid;place-items:center;width:44px;height:44px;margin-bottom:18px;border:3px solid #182033;background:#fff;font-family:"Press Start 2P";font-size:12px}.feature-card h3{font-size:22px;margin:0 0 10px}.feature-card p{color:#475569}.feature-card.accent-green:before{background:var(--green)}.feature-card.accent-pink:before{background:var(--pink)}.feature-card.accent-yellow:before{background:var(--yellow)}.learning-path{display:grid;grid-template-columns:.9fr 1.1fr;gap:26px;align-items:center;padding:54px clamp(16px,5vw,70px);background:#111827;color:#fff}.learning-path h2{font-size:36px;margin:8px 0}.learning-path p{color:#dbeafe;font-size:18px}.path-steps{display:grid;gap:14px}.path-steps div{display:grid;grid-template-columns:170px 1fr;gap:18px;align-items:center;padding:18px;border:1px solid rgba(255,255,255,.18);border-radius:8px;background:rgba(255,255,255,.06)}.path-steps strong{color:#ffd166;font-family:"Press Start 2P";font-size:12px}.path-steps span{color:#f8fafc}.news-card{border-left:6px solid var(--pink)}.quick-panel{position:relative;border-top:6px solid var(--yellow)}.course-band{background:linear-gradient(180deg,#f7fbff,#eef7ff)}.course-card{border-bottom:5px solid #246bfe}.course-card:nth-child(2n){border-bottom-color:#2fbf71}.course-card:nth-child(3n){border-bottom-color:#ff6b9a}.game-info-band{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;padding:26px clamp(16px,5vw,70px);background:#0b1220;color:#fff;border-bottom:1px solid rgba(255,255,255,.08)}.game-info-band article{display:grid;gap:6px;padding:16px;border:1px solid rgba(255,255,255,.16);border-radius:8px;background:rgba(255,255,255,.05)}.game-info-band strong{color:#ffd166;font-family:"Press Start 2P";font-size:12px}.game-info-band span{color:#dbeafe}.level-card{position:relative;overflow:hidden}.level-card:before{content:"";position:absolute;top:0;left:0;right:0;height:8px;background:repeating-linear-gradient(90deg,#246bfe 0 16px,#61d7ff 16px 32px)}.level-card:nth-child(2n):before{background:repeating-linear-gradient(90deg,#2fbf71 0 16px,#ffd166 16px 32px)}.level-card:nth-child(3n):before{background:repeating-linear-gradient(90deg,#ff6b9a 0 16px,#ffd166 16px 32px)}.character-card{transition:.18s}.character-card:hover{transform:translateY(-3px);box-shadow:8px 8px 0 #61d7ff}.lesson-main{border-top:8px solid #246bfe}.challenge-panel{border-top:8px solid #ffd166}.rich-text{line-height:1.8}.admin-content h1,.page-title h1,.section-heading h2{letter-spacing:0}
@media (max-width:1000px){.feature-grid,.game-info-band{grid-template-columns:repeat(2,minmax(0,1fr))}.learning-path{grid-template-columns:1fr}}
@media (max-width:620px){.feature-grid,.game-info-band{grid-template-columns:1fr}.path-steps div{grid-template-columns:1fr}.hero-copy:before{font-size:13px}}
.home-portal{background:
radial-gradient(circle at 16% 12%,rgba(36,107,254,.16),transparent 28%),
radial-gradient(circle at 86% 22%,rgba(97,215,255,.28),transparent 24%),
linear-gradient(135deg,#eaf6ff 0%,#f7fbff 45%,#dfefff 100%)}
.home-portal .site-header{display:none}.portal-wrap{padding:34px clamp(14px,4vw,58px) 46px;min-height:86vh}.portal-card{max-width:1220px;margin:auto;background:rgba(255,255,255,.92);border:1px solid rgba(165,190,230,.8);border-radius:30px;box-shadow:0 28px 70px rgba(20,84,170,.18);overflow:hidden}.portal-card>*{transform:none}.portal-topbar{display:grid;grid-template-columns:auto 1fr auto;gap:20px;align-items:center;padding:20px 26px}.portal-logo{display:flex;align-items:center;gap:10px;font-weight:900;color:#0d2b63}.portal-logo img{width:54px;height:54px;object-fit:contain}.portal-menu{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}.portal-menu a{padding:9px 15px;border-radius:999px;font-weight:800;color:#334155}.portal-menu a.active,.portal-menu a:hover{background:#e8f2ff;color:#0d5bd7}.portal-login{display:flex;align-items:center;justify-content:center;border:1px solid #d8e5fb;border-radius:999px;padding:10px 15px;font-weight:800;color:#0d2b63;background:#fff}.portal-hero{display:grid;grid-template-columns:1fr .92fr;gap:20px;align-items:center;margin:0 26px 18px;padding:46px 48px;border-radius:22px;background:linear-gradient(110deg,#f7fbff 0%,#eef7ff 52%,#0d7cff 52%,#6bcfff 100%);position:relative;overflow:hidden}.portal-hero:before{content:"";position:absolute;right:-90px;top:-110px;width:360px;height:360px;background:repeating-linear-gradient(45deg,rgba(255,255,255,.24) 0 16px,transparent 16px 32px);border-radius:50%}.portal-hero:after{content:"";position:absolute;inset:auto 0 0 0;height:9px;background:linear-gradient(90deg,#0d5bd7,#61d7ff,#ffd166)}.portal-copy{position:relative;z-index:2}.portal-badge{display:inline-flex;margin:0 0 18px;padding:9px 13px;border-radius:999px;background:#fff;color:#0d5bd7;font-weight:900;box-shadow:0 8px 18px rgba(13,91,215,.12)}.portal-copy h1{margin:0;font-size:clamp(42px,6vw,78px);line-height:1.02;color:#0b1f4d;letter-spacing:0}.portal-copy>p:not(.portal-badge){font-size:19px;color:#36506f;max-width:610px}.portal-actions{display:flex;gap:13px;flex-wrap:wrap;margin:24px 0}.portal-stats{display:flex;gap:10px;flex-wrap:wrap}.portal-stats span{display:inline-flex;align-items:center;gap:7px;padding:9px 12px;border-radius:999px;background:#fff;color:#26405f;font-weight:800;border:1px solid #d8e5fb}.portal-stats strong{color:#0d5bd7}.portal-art{position:relative;z-index:1;display:flex;align-items:flex-end;justify-content:center;min-height:340px}.portal-art img{max-height:390px;width:100%;object-fit:contain;filter:drop-shadow(0 28px 34px rgba(6,32,84,.28))}.popular-strip{padding:0 26px 26px}.strip-heading{display:flex;align-items:center;justify-content:space-between;margin:8px 0 14px}.strip-heading h2{margin:0;font-size:24px}.strip-heading a{color:#0d5bd7;font-weight:900}.popular-list{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}.popular-item{display:grid;gap:9px;justify-items:center;text-align:center;color:#182033;font-size:13px;font-weight:800}.popular-item img{width:86px;height:86px;object-fit:contain;border-radius:20px;background:linear-gradient(135deg,#eef7ff,#fff);border:1px solid #d8e5fb;box-shadow:0 12px 24px rgba(13,91,215,.12);padding:8px}.portal-section{background:transparent}.home-portal .feature-band{background:rgba(255,255,255,.72)}.home-portal .site-footer{margin-top:0}
@media (max-width:980px){.portal-card,.portal-card>*{transform:none}.portal-topbar,.portal-hero{grid-template-columns:1fr}.portal-menu{justify-content:flex-start}.portal-login{justify-self:start}.portal-hero{background:linear-gradient(180deg,#f7fbff 0%,#eef7ff 54%,#3fa1ff 54%,#83d8ff 100%)}.popular-list{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:560px){.portal-wrap{padding:16px}.portal-card{border-radius:20px}.portal-topbar,.portal-hero,.popular-strip{padding-left:16px;padding-right:16px;margin-left:0;margin-right:0}.portal-copy h1{font-size:38px}.portal-art{min-height:260px}.popular-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
.home-portal .portal-section{max-width:1220px;margin:26px auto 0;padding:34px 32px;background:rgba(255,255,255,.9);border:1px solid rgba(165,190,230,.72);border-radius:30px;box-shadow:0 22px 52px rgba(20,84,170,.12)}
.home-portal .feature-band.portal-section{background:rgba(255,255,255,.9)}
.home-portal .section-heading h2{color:#0b1f4d;font-size:clamp(28px,3vw,40px);line-height:1.2}
.home-portal .section-heading.center{margin-bottom:28px}
.home-portal .section-heading.center p:last-child{color:#526b8d;max-width:720px;margin-left:auto;margin-right:auto}
.home-portal .feature-grid{gap:18px}
.home-portal .feature-card{min-height:210px;border-color:#d8e5fb;border-radius:22px;background:linear-gradient(180deg,#fff,#f7fbff);box-shadow:0 16px 34px rgba(13,91,215,.09)}
.home-portal .feature-card:before{height:6px;background:linear-gradient(90deg,#0d5bd7,#61d7ff)}
.home-portal .feature-card.accent-green:before{background:linear-gradient(90deg,#18b87a,#8fffc1)}
.home-portal .feature-card.accent-pink:before{background:linear-gradient(90deg,#ff5b93,#ffc0d5)}
.home-portal .feature-card.accent-yellow:before{background:linear-gradient(90deg,#ffd166,#fff0ad)}
.home-portal .feature-card span{border:0;border-radius:15px;background:#e8f2ff;color:#0d5bd7;font-family:"Noto Sans Thai",system-ui,sans-serif;font-size:15px;box-shadow:inset 0 0 0 1px #d8e5fb}
.home-portal .feature-card h3{color:#0b1f4d}
.home-portal .feature-card p{color:#526b8d;line-height:1.7}
.home-portal .section-grid.portal-section{grid-template-columns:1.35fr .65fr;gap:22px}
.home-portal .news-list{gap:14px}
.home-portal .news-card,.home-portal .quick-panel{border-color:#d8e5fb;border-radius:22px;background:linear-gradient(180deg,#fff,#f8fbff);box-shadow:0 14px 30px rgba(13,91,215,.08)}
.home-portal .news-card{border-left:0;position:relative;overflow:hidden}
.home-portal .news-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:6px;background:linear-gradient(#0d5bd7,#61d7ff)}
.home-portal .news-card time{color:#0d5bd7;background:#e8f2ff;border-radius:999px;padding:5px 10px;display:inline-flex;margin-bottom:8px}
.home-portal .news-card h3{margin:4px 0 8px;color:#0b1f4d}
.home-portal .news-card p{color:#526b8d;line-height:1.7}
.home-portal .quick-panel{border-top:0;align-self:start;position:sticky;top:18px}
.home-portal .quick-panel h2{margin-top:0;color:#0b1f4d}
.home-portal .stage-link{border-bottom:1px solid #d8e5fb;border-radius:16px;padding:12px;margin-bottom:8px;background:#fff}
.home-portal .stage-link:hover{background:#eaf5ff}
.home-portal .stage-link span{border:0;border-radius:15px;background:#0d5bd7;color:#fff;box-shadow:0 8px 18px rgba(13,91,215,.22)}
.home-portal .learning-path{max-width:1220px;margin:26px auto 46px;padding:38px 34px;border:1px solid rgba(165,190,230,.72);border-radius:30px;background:linear-gradient(120deg,#fff 0%,#f2f8ff 48%,#dff3ff 100%);color:#0b1f4d;box-shadow:0 22px 52px rgba(20,84,170,.12);overflow:hidden;position:relative}
.home-portal .learning-path:after{content:"";position:absolute;right:-70px;top:-90px;width:300px;height:300px;border-radius:50%;background:repeating-linear-gradient(45deg,rgba(13,91,215,.12) 0 14px,transparent 14px 28px)}
.home-portal .learning-path h2{color:#0b1f4d}
.home-portal .learning-path p{color:#526b8d}
.home-portal .path-copy,.home-portal .path-steps{position:relative;z-index:1}
.home-portal .path-steps div{border:1px solid #d8e5fb;border-radius:20px;background:#fff;box-shadow:0 12px 26px rgba(13,91,215,.08)}
.home-portal .path-steps strong{color:#0d5bd7;font-family:"Noto Sans Thai",system-ui,sans-serif;font-size:15px}
.home-portal .path-steps span{color:#334155}
.home-portal .site-footer{max-width:1220px;margin:0 auto 30px;border-radius:24px;background:#0b1f4d}
@media (max-width:900px){.home-portal .portal-section,.home-portal .learning-path{margin-left:16px;margin-right:16px;padding:24px 18px;border-radius:22px}.home-portal .section-grid.portal-section{grid-template-columns:1fr}.home-portal .quick-panel{position:relative;top:auto}}
body:not(.home-portal):not(.game-body){background:
radial-gradient(circle at 12% 10%,rgba(36,107,254,.14),transparent 24%),
radial-gradient(circle at 88% 8%,rgba(97,215,255,.18),transparent 24%),
linear-gradient(rgba(36,107,254,.035) 1px,transparent 1px),
linear-gradient(90deg,rgba(36,107,254,.035) 1px,transparent 1px),
#f7fbff;background-size:auto,auto,28px 28px,28px 28px,auto}
body:not(.home-portal) .site-header{max-width:1220px;margin:18px auto 0;border:1px solid rgba(165,190,230,.78);border-radius:26px;background:rgba(255,255,255,.92);box-shadow:0 18px 44px rgba(20,84,170,.12)}
body:not(.home-portal) main{max-width:1220px;margin:0 auto}
body:not(.home-portal) .site-footer{max-width:1220px;margin:28px auto;border-radius:24px;background:#0b1f4d}
body:not(.home-portal) .page-title,body:not(.home-portal) .game-hero{margin:24px 0 20px;border:1px solid rgba(165,190,230,.72);border-radius:30px;background:linear-gradient(120deg,#fff 0%,#f2f8ff 52%,#dff3ff 100%);box-shadow:0 22px 52px rgba(20,84,170,.12);overflow:hidden}
body:not(.home-portal) .page-title h1,body:not(.home-portal) .game-hero h1{color:#0b1f4d;font-size:clamp(34px,5vw,58px);line-height:1.1}
body:not(.home-portal) .page-title p,body:not(.home-portal) .game-hero p{color:#526b8d;font-size:18px}
body:not(.home-portal) .split-title img{background:#e8f2ff;border-radius:24px;border:1px solid #d8e5fb;padding:18px;box-shadow:0 16px 34px rgba(13,91,215,.1)}
body:not(.home-portal) .course-grid.wide,body:not(.home-portal) .course-grid{padding-left:0;padding-right:0}
body:not(.home-portal) .course-card,body:not(.home-portal) .content-card,body:not(.home-portal) .auth-card,body:not(.home-portal) .profile-panel{border-color:#d8e5fb;border-radius:24px;background:linear-gradient(180deg,#fff,#f8fbff);box-shadow:0 16px 34px rgba(13,91,215,.09)}
body:not(.home-portal) .course-card img{border-radius:20px;background:#e8f2ff;border:1px solid #d8e5fb}
body:not(.home-portal) .content-stack{padding:0 0 36px}
body:not(.home-portal) .auth-page,body:not(.home-portal) .dashboard{padding-left:0;padding-right:0}
body:not(.home-portal) .auth-card input,body:not(.home-portal) .admin-form input,body:not(.home-portal) .admin-form textarea,body:not(.home-portal) .admin-form select{border-color:#cfe0f7;background:#fbfdff}
.game-body{background:
radial-gradient(circle at 15% 8%,rgba(36,107,254,.28),transparent 25%),
linear-gradient(135deg,#08111f,#10244c 45%,#0b1220)}
.game-body .site-header{max-width:1220px;margin:18px auto 0;border:1px solid rgba(165,190,230,.28);border-radius:26px;background:rgba(255,255,255,.95);box-shadow:0 18px 44px rgba(0,0,0,.22)}
.game-body main{max-width:1220px;margin:0 auto}
.game-body .game-hero{margin:24px 0 0;border:1px solid rgba(97,215,255,.35);border-radius:30px;background:linear-gradient(120deg,#122b63 0%,#0d5bd7 56%,#61d7ff 100%);box-shadow:0 26px 60px rgba(0,0,0,.28);border-bottom:0}
.game-body .game-hero h1{color:#fff}.game-body .game-hero p{color:#dbeafe}
.game-body .game-info-band,.game-body .character-strip,.game-body .level-map{max-width:1220px;margin:20px auto 0;border:1px solid rgba(165,190,230,.22);border-radius:28px;background:rgba(255,255,255,.06);box-shadow:0 18px 44px rgba(0,0,0,.18)}
.game-body .game-info-band{padding:20px}.game-body .character-strip,.game-body .level-map{padding:32px}
.game-body .character-card,.game-body .level-card{border-color:#d8e5fb;border-radius:24px;box-shadow:0 18px 34px rgba(0,0,0,.2)}
.game-body .level-card{border-width:1px}.game-body .character-card{border-width:1px}
.lesson-body{background:
radial-gradient(circle at 12% 8%,rgba(36,107,254,.13),transparent 24%),
linear-gradient(rgba(36,107,254,.035) 1px,transparent 1px),
linear-gradient(90deg,rgba(36,107,254,.035) 1px,transparent 1px),
#f7fbff;background-size:auto,28px 28px,28px 28px,auto}
.lesson-body main{max-width:1220px;margin:0 auto}.lesson-body .lesson-layout{padding-left:0;padding-right:0;margin-top:24px}
.lesson-body .lesson-main,.lesson-body .challenge-panel{border-color:#d8e5fb;border-radius:28px;background:linear-gradient(180deg,#fff,#f8fbff);box-shadow:0 18px 42px rgba(13,91,215,.1)}
.lesson-body .lesson-main{border-top:0;position:relative;overflow:hidden}.lesson-body .lesson-main:before{content:"";position:absolute;left:0;right:0;top:0;height:8px;background:linear-gradient(90deg,#0d5bd7,#61d7ff)}
.lesson-body .challenge-panel{border-top:0;position:relative;overflow:hidden}.lesson-body .challenge-panel:before{content:"";position:absolute;left:0;right:0;top:0;height:8px;background:linear-gradient(90deg,#ffd166,#61d7ff)}
.admin-body main{max-width:1220px;margin:0 auto}.admin-body .admin-shell{padding-left:0;padding-right:0}
.admin-body .admin-menu a,.admin-body .admin-form,.admin-body .content-card,.admin-body .stat-card,.admin-body .admin-table{border-color:#d8e5fb;border-radius:22px;background:rgba(255,255,255,.92);box-shadow:0 14px 30px rgba(13,91,215,.08)}
.admin-body .admin-menu a:hover{background:#e8f2ff;color:#0d5bd7}
.admin-body .admin-table{overflow:hidden;border-collapse:separate;border-spacing:0}
.admin-body .admin-table th{background:#e8f2ff;color:#0b1f4d}
@media (max-width:1260px){body:not(.home-portal) .site-header,body:not(.home-portal) main,body:not(.home-portal) .site-footer,.game-body .site-header,.game-body main{margin-left:16px;margin-right:16px}.game-body .game-info-band,.game-body .character-strip,.game-body .level-map{margin-left:0;margin-right:0}.lesson-body .lesson-layout,.admin-body .admin-shell{padding-left:0;padding-right:0}}
.portal-logo img{width:76px;height:76px;border-radius:18px;filter:drop-shadow(0 10px 16px rgba(13,91,215,.2))}
.portal-logo span{font-size:18px}
@media (max-width:760px){.portal-logo img{width:62px;height:62px}.brand-logo-img{width:56px;height:56px}}
.course-status-list{display:grid;gap:14px}.course-status-row{display:grid;grid-template-columns:84px 1fr auto;gap:16px;align-items:center;padding:16px;border:1px solid #d8e5fb;border-radius:22px;background:#fff;box-shadow:0 10px 24px rgba(13,91,215,.07)}.course-status-row img{width:84px;height:84px;object-fit:contain;border-radius:18px;background:#e8f2ff;border:1px solid #d8e5fb;padding:8px}.course-status-row h3{margin:0 0 8px;color:#0b1f4d}.course-status-row p{margin:7px 0 0;color:#526b8d}.progress-track{height:12px;background:#e8f2ff;border-radius:999px;overflow:hidden;border:1px solid #d8e5fb}.progress-track span{display:block;height:100%;background:linear-gradient(90deg,#0d5bd7,#61d7ff);border-radius:999px}.course-status-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.status-pill{display:inline-flex;padding:8px 12px;border-radius:999px;background:#fff7d6;color:#8a5a00;font-weight:800}.muted-pill{background:#eef2f7;color:#64748b}.profile-history{max-width:1220px;margin:0 auto 30px}.certificate-page{display:grid;gap:20px;justify-items:center;padding:32px 0}.certificate-sheet{width:min(980px,100%);min-height:620px;display:grid;align-content:center;justify-items:center;text-align:center;padding:60px;border:12px solid #0d5bd7;border-radius:30px;background:linear-gradient(135deg,#fff,#eef7ff);background-size:cover;background-position:center;box-shadow:0 26px 60px rgba(20,84,170,.18)}.certificate-sheet h1{font-size:54px;margin:10px 0;color:#0b1f4d}.certificate-sheet h2{font-size:42px;margin:12px 0;color:#0d5bd7}.certificate-sheet p{font-size:22px;line-height:1.8;max-width:780px;color:#334155}.certificate-meta{display:flex;gap:60px;margin-top:30px;align-items:end}.certificate-meta strong{font-size:22px;color:#0b1f4d}.course-complete-card{border-left:6px solid #0d5bd7}@media(max-width:760px){.course-status-row{grid-template-columns:1fr}.course-status-actions{justify-content:flex-start}.certificate-sheet{padding:28px;min-height:520px}.certificate-sheet h1{font-size:36px}.certificate-sheet h2{font-size:30px}.certificate-sheet p{font-size:18px}.certificate-meta{display:grid;gap:12px}}
@media print{body *{visibility:hidden}.certificate-sheet,.certificate-sheet *{visibility:visible}.certificate-sheet{position:absolute;left:0;top:0;width:100%;min-height:100vh;box-shadow:none}.site-header,.site-footer,.certificate-page>.button{display:none}}

/* Admin redesign */
.admin-body{background:
radial-gradient(circle at 10% 0%,rgba(13,91,215,.18),transparent 30%),
radial-gradient(circle at 90% 8%,rgba(97,215,255,.22),transparent 26%),
linear-gradient(rgba(36,107,254,.035) 1px,transparent 1px),
linear-gradient(90deg,rgba(36,107,254,.035) 1px,transparent 1px),
#f7fbff;background-size:auto,auto,28px 28px,28px 28px,auto}
.admin-body .site-header{position:relative;max-width:1240px;margin:18px auto 0;padding:14px 22px;border:1px solid rgba(165,190,230,.85);border-radius:28px;background:rgba(255,255,255,.94);box-shadow:0 20px 50px rgba(20,84,170,.12)}
.admin-body main{max-width:1240px;margin:0 auto}
.admin-body .admin-shell{display:grid;grid-template-columns:260px minmax(0,1fr);gap:22px;padding:24px 0 38px}
.admin-body .admin-menu{position:sticky;top:18px;align-self:start;display:grid;gap:10px;padding:14px;border:1px solid rgba(165,190,230,.85);border-radius:28px;background:rgba(255,255,255,.92);box-shadow:0 18px 42px rgba(20,84,170,.11)}
.admin-body .admin-menu:before{content:"Admin Panel";display:block;padding:10px 12px 14px;color:#0b1f4d;font-size:22px;font-weight:900;border-bottom:1px solid #d8e5fb}
.admin-body .admin-menu a{display:flex;align-items:center;gap:10px;min-height:48px;padding:12px 14px;border:1px solid transparent;border-radius:18px;background:transparent;color:#334155;box-shadow:none;font-weight:900;transition:.16s}
.admin-body .admin-menu a:before{content:"";width:9px;height:9px;border-radius:999px;background:#9ec5ff;box-shadow:0 0 0 4px #e8f2ff}
.admin-body .admin-menu a:hover{background:#e8f2ff;border-color:#cfe0f7;color:#0d5bd7;transform:translateX(2px)}
.admin-body .admin-content{min-width:0;padding:28px;border:1px solid rgba(165,190,230,.85);border-radius:30px;background:rgba(255,255,255,.86);box-shadow:0 22px 55px rgba(20,84,170,.12)}
.admin-body .admin-content>h1{margin:0 0 22px;color:#0b1f4d;font-size:clamp(32px,4vw,48px);line-height:1.1}
.admin-body .admin-content>h1:after{content:"";display:block;width:86px;height:6px;margin-top:12px;border-radius:999px;background:linear-gradient(90deg,#0d5bd7,#61d7ff)}
.admin-body .stat-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0 0 20px}
.admin-body .stat-card{position:relative;overflow:hidden;min-height:132px;padding:22px;border:1px solid #d8e5fb;border-radius:24px;background:linear-gradient(135deg,#fff 0%,#f2f8ff 100%);box-shadow:0 16px 34px rgba(13,91,215,.09)}
.admin-body .stat-card:after{content:"";position:absolute;right:-22px;top:-26px;width:92px;height:92px;border-radius:50%;background:rgba(13,91,215,.1)}
.admin-body .stat-card span{color:#526b8d;font-weight:900}
.admin-body .stat-card strong{color:#0d5bd7;font-size:46px;line-height:1.1}
.admin-body .content-card,.admin-body .admin-form{margin:0 0 22px;padding:24px;border:1px solid #d8e5fb;border-radius:26px;background:linear-gradient(180deg,#fff,#f8fbff);box-shadow:0 16px 36px rgba(13,91,215,.09)}
.admin-body .content-card h2,.admin-body .admin-form h2{margin-top:0;color:#0b1f4d;font-size:25px}
.admin-body .admin-form{display:grid;gap:12px}
.admin-body .admin-form label{margin:0;color:#243b5a;font-weight:900}
.admin-body .admin-form input,.admin-body .admin-form textarea,.admin-body .admin-form select{margin-top:6px;border:1px solid #cfe0f7;border-radius:16px;background:#fbfdff;padding:13px 14px;outline:none;transition:.15s}
.admin-body .admin-form textarea{min-height:110px;resize:vertical}
.admin-body .admin-form input:focus,.admin-body .admin-form textarea:focus,.admin-body .admin-form select:focus{border-color:#0d5bd7;box-shadow:0 0 0 4px rgba(13,91,215,.12);background:#fff}
.admin-body .admin-form input[type=file]{background:#fff;border-style:dashed}
.admin-body .button{border-radius:16px;box-shadow:0 5px 0 #1648ad}
.admin-body .button.small{min-height:34px;border-radius:12px;padding:7px 11px}
.admin-body .admin-table{width:100%;margin:18px 0 24px;border:1px solid #d8e5fb;border-radius:24px;border-collapse:separate;border-spacing:0;background:#fff;box-shadow:0 16px 36px rgba(13,91,215,.08);overflow:hidden}
.admin-body .admin-table th{padding:15px 16px;background:linear-gradient(180deg,#e8f2ff,#dff0ff);color:#0b1f4d;font-weight:900}
.admin-body .admin-table td{padding:14px 16px;border-bottom:1px solid #e7eefb;color:#334155;vertical-align:middle}
.admin-body .admin-table tr:last-child td{border-bottom:0}
.admin-body .admin-table tr:hover td{background:#f7fbff}
.admin-body .admin-table a{display:inline-flex;margin:2px 4px 2px 0;padding:7px 10px;border-radius:999px;background:#e8f2ff;color:#0d5bd7;font-weight:900}
.admin-body .thumb{width:70px;height:70px;border:1px solid #d8e5fb;border-radius:18px;background:#f7fbff;padding:6px}
.admin-body .result-box{border-radius:18px}
.admin-body .muted{padding:10px 12px;border-radius:16px;background:#f7fbff;border:1px solid #d8e5fb}
.admin-body code{padding:2px 6px;border-radius:8px;background:#e8f2ff;color:#0d5bd7;font-weight:900}
.admin-body .site-footer{max-width:1240px;margin:0 auto 26px;border-radius:26px;background:#0b1f4d}
@media(max-width:980px){.admin-body .site-header,.admin-body main,.admin-body .site-footer{margin-left:14px;margin-right:14px}.admin-body .admin-shell{grid-template-columns:1fr}.admin-body .admin-menu{position:relative;top:auto;grid-template-columns:repeat(2,minmax(0,1fr))}.admin-body .admin-menu:before{grid-column:1/-1}.admin-body .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-body .admin-content{padding:20px}}
@media(max-width:620px){.admin-body .admin-menu,.admin-body .stat-grid{grid-template-columns:1fr}.admin-body .admin-content{padding:16px;border-radius:22px}.admin-body .admin-table{display:block;overflow-x:auto}.admin-body .site-header{border-radius:22px}.admin-body .admin-shell{padding-top:16px}}

/* C game redesign */
.game-body{background:
radial-gradient(circle at 12% 8%,rgba(97,215,255,.22),transparent 22%),
radial-gradient(circle at 86% 14%,rgba(255,209,102,.14),transparent 20%),
linear-gradient(135deg,#06111f 0%,#10244c 48%,#0a1220 100%)}
.game-body .site-header{border-color:rgba(97,215,255,.25)}
.game-body .game-hero{position:relative;overflow:hidden;background:
linear-gradient(120deg,rgba(13,91,215,.96),rgba(97,215,255,.74)),
url('../img/game-classroom.png');background-size:cover;background-position:center 45%;min-height:260px}
.game-body .game-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(6,17,31,.9),rgba(6,17,31,.25));pointer-events:none}
.game-body .game-hero>*{position:relative;z-index:1}.game-body .game-hero .button{background:#ffd166;color:#0b1f4d;box-shadow:0 5px 0 #ad7b12}
.game-dashboard{max-width:1220px;margin:22px auto 0;padding:24px;border:1px solid rgba(97,215,255,.28);border-radius:30px;background:rgba(255,255,255,.07);box-shadow:0 24px 58px rgba(0,0,0,.24);color:#fff}
.game-dashboard-head{display:grid;grid-template-columns:1fr auto;gap:18px;align-items:end;margin-bottom:18px}.game-dashboard-head h2{font-size:34px;margin:5px 0;color:#fff}.game-dashboard-head p:not(.pixel-label){color:#dbeafe;margin:0}
.game-dashboard-tools{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.game-icon-chip{display:inline-flex;align-items:center;gap:8px;padding:9px 12px;border:1px solid rgba(255,255,255,.22);border-radius:999px;background:rgba(255,255,255,.1);font-weight:800}.game-icon-chip b{display:grid;place-items:center;min-width:30px;height:30px;border-radius:10px;background:#ffd166;color:#0b1f4d}
.game-room{position:relative;min-height:520px;border:4px solid #2f405b;border-radius:24px;overflow:hidden;background:
linear-gradient(180deg,rgba(5,10,18,.08),rgba(5,10,18,.1)),
url('../img/game-classroom.png');background-size:cover;background-position:center;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);cursor:crosshair}
.room-hint{position:absolute;left:18px;top:16px;z-index:5;padding:9px 13px;border-radius:999px;background:rgba(5,15,30,.78);border:1px solid rgba(97,215,255,.28);color:#dbeafe;font-weight:800;backdrop-filter:blur(8px)}
.room-online-panel{position:absolute;right:18px;top:16px;z-index:5;display:grid;gap:2px;max-width:280px;padding:9px 13px;border-radius:16px;background:rgba(5,15,30,.78);border:1px solid rgba(97,215,255,.28);color:#fff;backdrop-filter:blur(8px);text-align:right}.room-online-panel strong{color:#ffd166}.room-online-panel small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#dbeafe}
.room-player{position:absolute;z-index:3;display:grid;justify-items:center;transform:translate(-50%,-100%);transition:left .28s ease,top .28s ease,filter .18s;filter:drop-shadow(0 16px 18px rgba(0,0,0,.5));pointer-events:none}.room-player img{width:86px;height:104px;object-fit:contain}.room-player span{order:-1;max-width:160px;margin-bottom:4px;padding:5px 9px;border-radius:999px;background:rgba(5,15,30,.82);border:1px solid rgba(255,255,255,.24);color:#fff;font-size:13px;font-weight:900;white-space:nowrap}.room-player.is-me{z-index:6}.room-player.is-me img{width:104px;height:126px}.room-player.is-me span{background:#ffd166;color:#0b1f4d;border-color:#fff}.room-player.is-me:after{content:"";width:54px;height:14px;margin-top:-10px;border-radius:50%;background:rgba(0,0,0,.35);filter:blur(2px)}
.room-login-callout{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:8;padding:14px 18px;border-radius:18px;background:#ffd166;color:#0b1f4d;font-weight:900;box-shadow:0 10px 24px rgba(0,0,0,.28)}
.room-controls{display:flex;justify-content:center;gap:10px;margin-top:14px}.room-controls button{border:1px solid rgba(255,255,255,.24);border-radius:14px;background:rgba(255,255,255,.12);color:#fff;padding:10px 15px;font-weight:900;cursor:pointer}.room-controls button:hover{background:#ffd166;color:#0b1f4d}
.game-body .game-info-band article{border-radius:22px;background:linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,.05))}.game-body .game-info-band article:before{content:"";display:block;width:42px;height:42px;border-radius:14px;background:#ffd166;margin-bottom:10px;box-shadow:0 8px 18px rgba(0,0,0,.25)}.game-body .game-info-band article:nth-child(1):before{background:linear-gradient(135deg,#61d7ff,#0d5bd7)}.game-body .game-info-band article:nth-child(2):before{background:linear-gradient(135deg,#ffd166,#ff9f1c)}.game-body .game-info-band article:nth-child(3):before{background:linear-gradient(135deg,#2fbf71,#8fffc1)}.game-body .game-info-band article:nth-child(4):before{background:linear-gradient(135deg,#ff6b9a,#ffd1dc)}
.game-body .character-strip h2,.game-body .level-map h2{color:#fff}.game-body .character-card img{height:170px;width:100%;object-fit:contain;border-radius:18px;background:radial-gradient(circle,#f7fbff,#dff3ff);padding:8px}.game-body .character-card h3{color:#0b1f4d}.game-body .character-card p{color:#526b8d}.game-body .level-card .button{border-radius:14px}
@media(max-width:900px){.game-dashboard{margin-left:0;margin-right:0}.game-dashboard-head{grid-template-columns:1fr}.game-dashboard-tools{justify-content:flex-start}.game-room{min-height:380px}.room-player img{width:64px;height:80px}.room-player.is-me img{width:78px;height:96px}}
.game-body .game-hero h1{color:#fff;text-shadow:0 6px 22px rgba(0,0,0,.45)}
.game-body .game-hero p{color:#eaf6ff;text-shadow:0 3px 12px rgba(0,0,0,.42)}
.game-body .game-hero .pixel-label{color:#61d7ff;text-shadow:0 3px 12px rgba(0,0,0,.42)}

/* Game page final polish */
.game-body .nav-score-link{padding:9px 14px;border-radius:999px;background:#ffd166;color:#0b1f4d;box-shadow:0 4px 0 #ad7b12;font-weight:900}
.game-body .game-dashboard{margin-top:22px;padding:24px}
.game-body .game-dashboard-head{align-items:center}
.game-body .game-room{aspect-ratio:16/9;min-height:0;height:auto;max-height:650px;background-size:cover;background-position:center;border-width:3px}
.game-body .room-hint{max-width:min(360px,72%);font-size:14px}
.game-body .room-player img{width:58px;height:74px}
.game-body .room-player.is-me img{width:72px;height:90px}
.game-body .character-strip{padding:24px}
.game-body .character-grid{grid-template-columns:repeat(8,minmax(0,1fr));gap:10px}
.game-body .character-card{padding:10px;border-radius:16px;box-shadow:0 12px 22px rgba(0,0,0,.18)}
.game-body .character-card img{height:86px;border-radius:12px;padding:5px}
.game-body .character-card h3{margin:9px 0 4px;font-size:14px;line-height:1.25}
.game-body .character-card p{display:none}
.game-body .character-card .button{width:100%;padding:6px 10px;font-size:12px;border-radius:10px}
@media(max-width:900px){
  .game-body .game-dashboard{padding:16px;border-radius:22px}
  .game-body .game-dashboard-head h2{font-size:26px}
  .game-body .game-dashboard-tools{gap:8px}
  .game-body .game-icon-chip{font-size:13px;padding:7px 9px}
  .game-body .game-room{aspect-ratio:4/3;max-height:none;background-position:center}
  .game-body .room-player img{width:46px;height:60px}
  .game-body .room-player.is-me img{width:56px;height:72px}
  .game-body .character-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .game-body .character-card img{height:72px}
}
@media(max-width:520px){
  .game-body .character-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .game-body .room-hint{font-size:12px;max-width:84%}
  .game-body .room-online-panel{left:12px;right:12px;top:auto;bottom:12px;max-width:none;text-align:left;font-size:12px}
}

/* Level quest cards */
.game-body .level-map{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;align-items:stretch;background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.035));padding:32px}
.game-body .level-map-heading{grid-column:1/-1;display:flex;align-items:end;justify-content:space-between;gap:16px;margin:0 0 6px;padding-bottom:14px;border-bottom:1px solid rgba(216,229,251,.18)}
.game-body .level-map-heading h2{margin:0;color:#fff;font-size:30px}
.game-body .level-map-heading .pixel-label{margin:0 0 6px;color:#61d7ff}
.game-body .level-map-heading span{max-width:420px;color:#dbeafe;text-align:right}
.game-body .level-card{position:relative;display:grid;grid-template-rows:auto auto 1fr auto auto;gap:12px;min-height:300px;padding:22px 20px 20px;border:1px solid rgba(216,229,251,.9);border-radius:22px;background:linear-gradient(180deg,#ffffff 0%,#f8fbff 64%,#eef5ff 100%);box-shadow:0 18px 34px rgba(0,0,0,.22);overflow:hidden;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.game-body .level-card:hover{transform:translateY(-5px);border-color:#61d7ff;box-shadow:0 26px 42px rgba(0,0,0,.3),0 0 0 1px rgba(97,215,255,.35)}
.game-body .level-card:before{height:9px;background:repeating-linear-gradient(90deg,#246bfe 0 14px,#61d7ff 14px 28px,#ffffff 28px 34px)}
.game-body .level-card:nth-of-type(2n):before{background:repeating-linear-gradient(90deg,#2fbf71 0 14px,#ffd166 14px 28px,#ffffff 28px 34px)}
.game-body .level-card:nth-of-type(3n):before{background:repeating-linear-gradient(90deg,#ff6b9a 0 14px,#ffd166 14px 28px,#ffffff 28px 34px)}
.game-body .level-card:after{content:"C";position:absolute;right:18px;top:22px;display:grid;place-items:center;width:54px;height:54px;border-radius:18px;background:linear-gradient(135deg,#dff3ff,#ffffff);border:1px solid #c7ddff;color:#0d5bd7;font-family:"Press Start 2P",monospace;font-size:16px;box-shadow:0 10px 18px rgba(13,91,215,.12)}
.game-body .level-card:nth-of-type(2):after{content:"int"}.game-body .level-card:nth-of-type(3):after{content:"%"}.game-body .level-card:nth-of-type(4):after{content:"in"}.game-body .level-card:nth-of-type(5):after{content:"+-"}.game-body .level-card:nth-of-type(6):after{content:"if"}.game-body .level-card:nth-of-type(7):after{content:"for"}.game-body .level-card:nth-of-type(8):after{content:"[]"}.game-body .level-card:nth-of-type(9):after{content:"fn"}.game-body .level-card:nth-of-type(10):after{content:"str"}.game-body .level-card:nth-of-type(11):after{content:"ptr"}.game-body .level-card:nth-of-type(12):after{content:"file"}
.game-body .level-number{width:44px;height:44px;border-radius:12px;border:3px solid #0b1f4d;background:#ffd166;color:#0b1f4d;box-shadow:0 5px 0 rgba(11,31,77,.28);font-family:"Press Start 2P",monospace;font-size:12px}
.game-body .level-card h2{width:calc(100% - 58px);margin:4px 0 0;color:#0b1f4d;font-size:20px;line-height:1.28;letter-spacing:0}
.game-body .level-card p{align-self:start;margin:0;color:#35506f;font-size:15px;line-height:1.65}
.game-body .level-meta{margin:2px 0 0;gap:7px}
.game-body .level-meta span{display:inline-flex;align-items:center;gap:5px;border:1px solid #d9e6ff;background:#eef5ff;color:#0b3d91;padding:6px 9px;font-size:12px;font-weight:800}
.game-body .level-meta span:nth-child(1):before{content:"XP";display:inline-grid;place-items:center;min-width:24px;height:20px;border-radius:7px;background:#ffd166;color:#0b1f4d;font-size:10px}
.game-body .level-meta span:nth-child(2):before{content:"Q";display:inline-grid;place-items:center;width:20px;height:20px;border-radius:7px;background:#dff3ff;color:#0d5bd7;font-size:10px}
.game-body .level-meta span:nth-child(3){background:#dcfce7;border-color:#a7f3d0;color:#166534}
.game-body .level-meta span:nth-child(3):before{content:"OK";display:inline-grid;place-items:center;min-width:24px;height:20px;border-radius:7px;background:#2fbf71;color:#fff;font-size:10px}
.game-body .level-card .button{justify-self:start;margin-top:2px;border-radius:13px;background:linear-gradient(180deg,#2f7cff,#1754d8);box-shadow:0 5px 0 #0b3d91}
.game-body .level-card.done{background:linear-gradient(180deg,#ffffff 0%,#f4fff8 65%,#e5fbea 100%);border-color:#8fffc1}
.game-body .level-card.done .level-number{background:#2fbf71;color:#fff}
@media(max-width:1100px){.game-body .level-map{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.game-body .level-map{grid-template-columns:1fr;padding:18px}.game-body .level-map-heading{display:block}.game-body .level-map-heading span{text-align:left;display:block;margin-top:6px}.game-body .level-card{min-height:0}.game-body .level-card h2{font-size:19px}.game-body .level-card:after{width:48px;height:48px;font-size:13px}}
.news-hero-image{width:100%;height:auto;border-radius:20px;border:1px solid #d8e5fb;background:#f7fbff;box-shadow:0 14px 30px rgba(13,91,215,.12)}
.news-card .embed-box{border-radius:20px}
