@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Noto+Sans+TC:wght@400;500;600;700;800;900&display=swap');
:root{font-family:'DM Sans','Noto Sans TC',system-ui,sans-serif;color:#283149;background:#fffaf2;font-size:16px;--sun:#ffc857;--sun-dark:#d88b2c;--sky:#b9e5f8;--mint:#c9ebd5;--cream:#fffaf2;--peach:#ffe4d7;--navy:#263552;--text:#283149;--muted:#707b8f;--line:#e8eaf0;--paper:#fff;--danger:#c96363;--success:#3f9170;--info:#4d83b8;--r-sm:12px;--r-md:18px;--r-lg:28px;--shadow:0 14px 40px #24324e0e}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-width:320px}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #277ab7;outline-offset:3px}h1,h2,h3,h4,p{margin-top:0}h1{font-size:clamp(2rem,3vw,3rem);line-height:1.25;letter-spacing:-.03em}h2{font-size:1.5rem;line-height:1.35}h3{font-size:1.13rem}p{line-height:1.7}.muted{color:var(--muted)}.small{font-size:.84rem}.strong{font-weight:800}.eyebrow{font-size:.76rem;font-weight:900;letter-spacing:.15em;color:#b37630;text-transform:uppercase}.button{border:0;border-radius:13px;padding:11px 17px;min-height:43px;background:var(--navy);color:white;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 2px 0 #0000000c;transition:transform .18s,filter .18s}.button:hover{transform:translateY(-2px);filter:brightness(1.05)}.button.sun{background:var(--sun);color:#3c392a}.button.soft{background:#f0f3f9;color:var(--navy)}.button.outline{background:white;color:var(--navy);border:1px solid #cbd2df}.button.danger{background:#fff0ef;color:#b75555}.button.large{font-size:1.08rem;min-height:54px;padding:13px 24px;border-radius:17px}.button.icon{width:42px;padding:0}.button:disabled:hover{transform:none;filter:none}.link-button{border:0;background:none;color:#366f9e;font-weight:800;padding:6px}.pill,.badge{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:6px 10px;font-size:.76rem;font-weight:800;white-space:nowrap}.pill{background:#f4f6fa;color:#54627b}.badge.green{background:#e2f5e9;color:#2c805a}.badge.amber{background:#fff0d4;color:#9b6b20}.badge.red{background:#ffe7e4;color:#a84d4d}.badge.blue{background:#e8f2fc;color:#3e75a6}.badge.gray{background:#eef0f5;color:#69758b}.badge.purple{background:#f0eafd;color:#7758a5}.avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;font-size:.82rem;font-weight:900;background:#dbe9ef;color:#34576c;flex:none}.avatar.sunny{background:#ffe09a;color:#9d611e;font-size:1.25rem}.icon-circle{width:44px;height:44px;border-radius:15px;display:grid;place-items:center;background:#f2f5fa;font-size:1.3rem;flex:none}.icon-circle.peach{background:#ffe9dc}.icon-circle.mint{background:#def2e5}.icon-circle.sky{background:#e0f3fd}.icon-circle.sun{background:#fff0c8}.divider{height:1px;background:var(--line);margin:18px 0}.stack{display:grid;gap:16px}.stack.sm{gap:9px}.row{display:flex;align-items:center;gap:12px}.row.between{justify-content:space-between}.row.wrap{flex-wrap:wrap}.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.grid-4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.span-2{grid-column:span 2}.span-3{grid-column:span 3}.surface{background:white;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow)}.panel{padding:22px}.panel-title{font-size:1.05rem;font-weight:900;margin:0}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.metric{padding:20px;min-height:135px;display:flex;flex-direction:column;justify-content:space-between}.metric .value{font-weight:900;font-size:2rem;letter-spacing:-.04em}.metric .label{font-weight:700;color:#667187;font-size:.88rem}.metric .delta{font-size:.78rem;font-weight:800;color:var(--success)}.metric.warm{background:#fff4dd;border-color:#ffe4ad}.metric.blue{background:#edf7fc;border-color:#d3ebf6}.metric.green{background:#eef9f2;border-color:#d5efdc}.metric.rose{background:#fff1ee;border-color:#f9ddd6}.section-title{font-size:1.14rem;font-weight:900;margin-bottom:14px}.mini-chart{height:122px;display:flex;align-items:end;gap:9px;padding-top:12px}.mini-chart .bar{flex:1;min-width:0;border-radius:8px 8px 3px 3px;background:#a9c9e3;position:relative}.mini-chart .bar:last-child{background:#f8c869}.chart-labels{display:flex;justify-content:space-between;gap:5px;color:#8792a3;font-size:.72rem;margin-top:9px}.line-chart{width:100%;height:140px;overflow:visible}.progress{height:10px;border-radius:99px;background:#edf0f5;overflow:hidden}.progress>span{display:block;height:100%;border-radius:99px;background:#ebb95b}.progress.mint>span{background:#75c99a}.progress.blue>span{background:#81bde6}.list{display:grid;gap:0}.list-item{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid var(--line)}.list-item:last-child{border-bottom:0}.list-item .grow{flex:1;min-width:0}.list-item strong{display:block;font-size:.91rem}.list-item small{color:var(--muted);display:block;margin-top:3px;font-size:.78rem}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse;min-width:650px;text-align:left}.data-table th{font-size:.76rem;color:#758095;font-weight:800;background:#f8fafc}.data-table td,.data-table th{padding:13px 14px;border-bottom:1px solid #eef0f4}.data-table td{font-size:.86rem}.data-table tr:last-child td{border-bottom:0}.field{display:grid;gap:7px}.field label{font-weight:800;font-size:.84rem;color:#48546a}.field input,.field select,.field textarea{width:100%;background:white;color:var(--text);border:1px solid #cfd5df;border-radius:11px;padding:11px 12px;min-height:43px}.field textarea{min-height:96px;resize:vertical}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}.radio-row{display:flex;gap:8px;flex-wrap:wrap}.choice{border:1px solid #d6dce7;background:white;border-radius:12px;padding:10px 13px;color:#41506a;font-weight:800}.choice[aria-pressed=true]{background:#fff0ca;border-color:#e9bc59;color:#774f14}.notice{display:flex;align-items:flex-start;gap:10px;padding:13px 15px;border-radius:14px;background:#f5f8fc;color:#556477;font-size:.87rem;line-height:1.55}.notice.warning{background:#fff3e0;color:#845d22}.notice.danger{background:#fff0ec;color:#9e5550}.notice.success{background:#eaf7ee;color:#367254}.empty{padding:32px;text-align:center;color:#758197;border:1px dashed #cfd5dd;border-radius:16px}.timeline{display:grid;gap:0}.timeline-item{display:flex;gap:14px;padding:0 0 19px}.timeline-item:last-child{padding-bottom:0}.timeline-dot{width:12px;height:12px;border-radius:50%;background:#eab768;margin-top:5px;box-shadow:0 0 0 5px #fff3df;flex:none}.timeline-copy{border-left:2px solid #e9edf3;margin-left:-20px;padding-left:22px;flex:1}.timeline-item:last-child .timeline-copy{border-left:0}.timeline-copy strong{display:block}.timeline-copy p{margin:3px 0;color:#728097;font-size:.83rem}.ai-card{border:1px solid #d9e6f3;background:linear-gradient(145deg,#f5f9ff,#ffffff);border-radius:17px;padding:18px}.ai-card .confidence{font-size:1.7rem;font-weight:900;color:#467caa}.ai-card .ai-top{display:flex;justify-content:space-between;align-items:start;gap:10px}.ai-card p{font-size:.86rem;margin:9px 0 12px;color:#4e5c71}.ai-card .ai-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:.77rem;color:#697b91}.tabs{display:flex;gap:5px;padding:5px;border-radius:14px;background:#eef1f6;width:max-content;max-width:100%;overflow:auto}.tab{border:0;background:transparent;padding:9px 15px;border-radius:10px;color:#647189;font-size:.84rem;font-weight:800;white-space:nowrap}.tab.active{background:white;color:#273852;box-shadow:0 2px 8px #202c3d14}.role-gateway{min-height:100vh;background:radial-gradient(circle at 85% 2%,#fff0c5 0,transparent 38%),linear-gradient(160deg,#fffbf4,#f4f8f9);padding:26px max(24px,calc((100vw - 1320px)/2));}.gateway-nav{display:flex;justify-content:space-between;align-items:center;gap:16px}.logo{display:inline-flex;align-items:center;gap:10px;font-weight:900;color:#2e3d54;font-size:1.1rem}.logo-mark{width:39px;height:39px;border-radius:14px;background:#ffcc67;display:grid;place-items:center;color:#a86418;font-size:1.5rem;box-shadow:0 3px 0 #ebb356}.gateway-hero{display:grid;grid-template-columns:1fr 320px;align-items:center;gap:30px;padding:55px 0 35px}.gateway-hero h1{font-size:clamp(2.7rem,5.3vw,5.1rem);margin:11px 0 15px;color:#263550}.gateway-hero h1 em{font-style:normal;color:#dd9235}.gateway-hero p{max-width:580px;color:#617085;font-size:1.02rem}.gateway-mascot{height:270px;background:#fff4d4;border-radius:50%;display:grid;place-items:center;overflow:hidden;box-shadow:0 24px 70px #e6c88433}.gateway-mascot img{height:100%;width:100%;object-fit:cover;mask-image:radial-gradient(circle,#000 50%,transparent 75%)}.role-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.role-card{border:1px solid #e8e8e3;border-radius:22px;background:#fff;padding:20px;display:flex;align-items:center;gap:15px;text-align:left;min-height:105px;box-shadow:0 10px 28px #42536f0b;transition:transform .18s,border .18s}.role-card:hover{transform:translateY(-3px);border-color:#efc06b}.role-card .role-icon{font-size:1.6rem;width:53px;height:53px;display:grid;place-items:center;border-radius:16px;background:#fff1d3;flex:none}.role-card strong{font-size:1.02rem;color:#27354b}.role-card small{display:block;color:#7b8796;margin-top:4px;font-size:.77rem}.gateway-footer{margin:24px 0;color:#86919e;font-size:.78rem;display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap}.gateway-footer a{font-weight:800;color:#547797}.child-app{min-height:100vh;background:#fff9ec;color:#35465a}.child-topbar{max-width:1300px;margin:auto;padding:21px 30px;display:flex;align-items:center;justify-content:space-between;gap:15px}.child-logo{font-size:1.12rem;font-weight:900;display:flex;align-items:center;gap:9px}.child-logo span{font-size:1.6rem}.child-nav{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.child-nav a{border-radius:99px;padding:10px 16px;font-weight:900;color:#56677c}.child-nav a.active{background:#fff0c3;color:#9a671b}.child-page{max-width:1300px;margin:auto;padding:16px 30px 50px}.child-splash{min-height:calc(100vh - 100px);display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:30px}.sunrise-scene{height:min(66vh,540px);position:relative;display:grid;place-items:center;border-radius:40px;overflow:hidden;background:linear-gradient(#bce8fa 0,#e7f8f9 60%,#fff1d1 100%)}.sunrise-scene:before{content:"";position:absolute;width:360px;height:360px;border-radius:50%;background:#ffce69;left:50%;bottom:5%;transform:translate(-50%,48%);animation:sunrise 2s ease-out forwards;box-shadow:0 0 0 36px #ffe19a70,0 0 0 80px #ffe9b970}.sunrise-scene img{z-index:1;width:min(73%,360px);height:auto;mask-image:radial-gradient(circle,#000 55%,transparent 77%);animation:float 4s ease-in-out infinite}.child-splash h1{font-size:clamp(2.7rem,5vw,5rem);color:#33465c}.child-splash p{font-size:1.15rem;color:#708095}.child-hero{display:grid;grid-template-columns:1fr 260px;gap:20px;align-items:center;background:linear-gradient(100deg,#fff0c5,#ffe2bb);border-radius:32px;min-height:270px;padding:30px 37px;overflow:hidden}.child-hero h1{font-size:clamp(2rem,3.2vw,3.2rem);margin:7px 0 10px}.child-hero p{font-weight:700;color:#746649}.child-hero img{height:230px;width:100%;object-fit:cover;mask-image:radial-gradient(circle,#000 50%,transparent 75%)}.child-card{background:white;border:1px solid #eee7d8;border-radius:28px;padding:21px;box-shadow:0 10px 30px #aa8e5512}.child-card h3{margin:10px 0 5px;font-size:1.2rem}.child-card p{color:#778697;font-size:.89rem;margin-bottom:15px}.child-card .emoji{font-size:3rem;line-height:1.2}.child-card .button{width:100%;border-radius:15px;min-height:48px}.child-stat{background:#fff;border-radius:23px;padding:19px;border:1px solid #f0e8d8;display:flex;align-items:center;gap:13px}.child-stat .emoji{font-size:2.5rem}.child-stat strong{font-size:1.4rem}.mood-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}.mood{border:2px solid #e8e3d8;background:#fff;border-radius:24px;padding:20px 12px;text-align:center;font-weight:900;color:#425269;min-height:130px}.mood span{display:block;font-size:3rem;margin-bottom:10px}.mood.selected{border-color:#edae4d;background:#fff1cc}.reward-card{border-radius:25px;background:#fff;padding:24px;border:1px solid #eee5d7;text-align:center}.reward-card .emoji{font-size:3.5rem}.game-tile{border-radius:27px;padding:22px;min-height:235px;display:flex;flex-direction:column;justify-content:space-between}.game-tile:nth-child(4n+1){background:#ffddb4}.game-tile:nth-child(4n+2){background:#caebfa}.game-tile:nth-child(4n+3){background:#d7f0dd}.game-tile:nth-child(4n+4){background:#e9dcf5}.game-tile .emoji{font-size:3.5rem}.game-tile h3{font-size:1.2rem;margin:5px 0}.game-tile p{font-size:.88rem;margin-bottom:12px;color:#5b6980}.app-shell{display:grid;grid-template-columns:252px minmax(0,1fr);min-height:100vh;background:#f6f8fb}.app-shell.admin{background:#f2f4f8}.sidebar{background:#fff;border-right:1px solid #e7ebf0;padding:23px 15px;display:flex;flex-direction:column;gap:22px;min-height:100vh}.admin .sidebar{background:#23324c;color:#f8fafc;border:0}.sidebar .logo{padding:0 10px;font-size:1rem}.admin .sidebar .logo{color:white}.sidebar-group-title{font-size:.7rem;letter-spacing:.13em;font-weight:900;color:#98a1af;padding:0 13px;margin-bottom:7px}.sidebar-nav{display:grid;gap:4px}.sidebar-nav a{display:flex;align-items:center;gap:10px;padding:11px 13px;border-radius:12px;color:#69778b;font-size:.84rem;font-weight:800}.sidebar-nav a:hover,.sidebar-nav a.active{background:#eef5fa;color:#356e97}.sidebar-nav a .nav-emoji{font-size:1.08rem;width:20px;text-align:center}.admin .sidebar-nav a{color:#bdc9d8}.admin .sidebar-nav a:hover,.admin .sidebar-nav a.active{background:#364967;color:#fff}.sidebar-bottom{margin-top:auto;border-top:1px solid #e8ebef;padding:16px 10px 0}.admin .sidebar-bottom{border-color:#475976}.sidebar-bottom .small{line-height:1.5}.main-col{min-width:0}.topbar{height:72px;background:#ffffffdf;border-bottom:1px solid #e8ebef;display:flex;justify-content:space-between;align-items:center;padding:0 30px;gap:14px;position:sticky;top:0;z-index:10;backdrop-filter:blur(14px)}.admin .topbar{background:#ffffffeb}.topbar .breadcrumb{font-weight:800;color:#506179;font-size:.85rem}.topbar .top-actions{display:flex;gap:13px;align-items:center}.topbar .role-name{font-size:.84rem;font-weight:800}.workspace{padding:30px;max-width:1500px;margin:auto}.page-heading{display:flex;justify-content:space-between;gap:15px;align-items:start;margin-bottom:25px}.page-heading h1{font-size:1.8rem;margin:3px 0 7px}.page-heading p{color:#748198;margin:0;font-size:.87rem}.page-heading .actions{display:flex;gap:9px;flex-wrap:wrap}.hero-strip{background:linear-gradient(100deg,#fff2d9,#f7fbff);border:1px solid #fae8c8;border-radius:22px;padding:23px 27px;margin-bottom:20px;display:flex;justify-content:space-between;gap:16px;align-items:center}.hero-strip h2{font-size:1.35rem;margin:0 0 5px}.hero-strip p{font-size:.86rem;color:#6f7d8e;margin:0}.callout{border-left:4px solid #f3bd61;padding:14px 16px;background:#fff9ed;border-radius:0 12px 12px 0;font-size:.85rem;color:#6a5a3c}.patient-banner{display:flex;align-items:center;gap:13px;padding:15px 19px;background:#fff;border:1px solid var(--line);border-radius:18px;margin-bottom:20px}.patient-banner .avatar{width:47px;height:47px}.patient-banner .grow{flex:1}.patient-banner h2{font-size:1.05rem;margin:0}.patient-banner p{font-size:.8rem;margin:2px 0;color:#718098}.report-paper{background:#fff;padding:30px;border:1px solid #e1e6ed;border-radius:18px;box-shadow:var(--shadow)}.report-paper h2{border-bottom:2px solid #f5d181;padding-bottom:13px}.report-block{padding:17px 0;border-bottom:1px solid #e9edf2}.report-block:last-child{border-bottom:0}.report-block h3{font-size:.94rem;color:#415676;margin-bottom:7px}.report-block p{font-size:.88rem;color:#57647b;margin:0}.two-col-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px}.info-pair{padding:11px 0;border-bottom:1px solid var(--line)}.info-pair small{display:block;color:#8a95a5;font-size:.74rem}.info-pair strong{display:block;margin-top:4px;font-size:.88rem}.module-card{display:flex;align-items:flex-start;gap:12px;padding:15px;border:1px solid #e9edf2;border-radius:15px;background:#fff}.module-card strong{display:block;font-size:.89rem}.module-card p{font-size:.79rem;color:#748093;margin:4px 0 0}.module-card .grow{flex:1}.attachment{display:flex;align-items:center;gap:10px;border:1px dashed #cbd5e1;border-radius:13px;padding:17px;background:#f9fbfd;color:#63728a;font-size:.83rem;font-weight:700}.video-placeholder{background:linear-gradient(135deg,#a3cee0,#ddeef4);border-radius:17px;height:175px;display:grid;place-items:center;color:#326079;font-size:2.5rem}.video-placeholder small{display:block;font-size:.8rem;font-weight:900;margin-top:4px}.screen-guide{display:grid;grid-template-columns:240px 1fr;gap:20px}.token-swatch{height:66px;border-radius:13px;border:1px solid #0000000a}.component-demo{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.toast{position:fixed;right:22px;bottom:22px;background:#263754;color:#fff;padding:13px 18px;border-radius:14px;font-size:.86rem;font-weight:800;box-shadow:0 16px 38px #26375439;z-index:99}.modal-backdrop{position:fixed;inset:0;background:#12223a9c;display:grid;place-items:center;z-index:80;padding:16px}.modal{width:min(100%,640px);max-height:90vh;overflow:auto;background:white;border-radius:24px;padding:25px;box-shadow:0 30px 70px #0005}.modal-head{display:flex;justify-content:space-between;align-items:start;gap:12px}.modal h2{margin:3px 0 11px}.locked{max-width:570px;margin:12vh auto;padding:37px;text-align:center;background:#fff;border:1px solid #e7eaf0;border-radius:28px}.locked .big{font-size:3rem}.locked h1{font-size:1.6rem}.print-only{display:none}@keyframes sunrise{from{transform:translate(-50%,110%)}to{transform:translate(-50%,48%)}}@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}@media(max-width:1100px){.grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}.role-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.app-shell{grid-template-columns:210px minmax(0,1fr)}.workspace{padding:23px}.sidebar{padding:18px 10px}}@media(max-width:800px){.app-shell{display:block}.sidebar{min-height:0;position:sticky;top:0;z-index:20;padding:10px 15px;display:block}.sidebar>.logo,.sidebar-group-title,.sidebar-bottom{display:none}.sidebar-nav{display:flex;overflow:auto;gap:4px}.sidebar-nav a{white-space:nowrap;padding:9px 11px}.topbar{height:61px;padding:0 18px}.workspace{padding:18px}.grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}.gateway-hero{grid-template-columns:1fr 220px}.child-splash{grid-template-columns:1fr 1fr}.child-topbar,.child-page{padding-left:19px;padding-right:19px}.screen-guide{grid-template-columns:1fr}}@media(max-width:620px){.role-gateway{padding:17px}.gateway-hero{grid-template-columns:1fr;padding:34px 0 20px}.gateway-mascot{display:none}.role-grid{grid-template-columns:1fr}.role-card{min-height:80px}.child-topbar{display:block;padding:16px}.child-nav{overflow:auto;white-space:nowrap;flex-wrap:nowrap;margin-top:11px}.child-nav a{padding:8px 11px;font-size:.82rem}.child-page{padding:15px 16px 35px}.child-splash{grid-template-columns:1fr;min-height:0}.sunrise-scene{height:280px;order:-1}.child-splash h1{font-size:2.5rem}.child-hero{grid-template-columns:1fr 110px;min-height:0;padding:22px}.child-hero img{height:125px}.child-hero h1{font-size:1.75rem}.child-hero p{font-size:.83rem}.grid-2,.grid-3,.grid-4,.form-grid{grid-template-columns:1fr}.span-2,.span-3{grid-column:auto}.mood-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mood{min-height:105px;padding:10px}.mood span{font-size:2.4rem}.page-heading{display:block}.page-heading .actions{margin-top:14px}.hero-strip{display:block}.hero-strip .button{margin-top:12px}.topbar .role-name{display:none}.metric{min-height:110px}.report-paper{padding:19px}.two-col-list{grid-template-columns:1fr}}@media print{body{background:white!important}.sidebar,.topbar,.page-heading .actions,.button,.link-button,.tabs,.gateway-nav,.child-nav,.toast{display:none!important}.app-shell{display:block}.workspace{max-width:none;padding:0}.surface,.report-paper{box-shadow:none;border-color:#dce2e8}.report-paper{border:0;padding:0}.print-only{display:block}.page-heading{margin-bottom:18px}.page-heading h1{font-size:1.5rem}.ai-card{break-inside:avoid}*{print-color-adjust:exact;-webkit-print-color-adjust:exact}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
.game-tile .button{min-height:52px;border-radius:16px}.child-app .button:focus-visible{outline-color:#bc7618}
@page{size:A4 portrait;margin:18mm}@media print{.report-block{break-inside:avoid}.patient-banner{break-inside:avoid;margin-bottom:10mm}}
@media(max-width:800px){.topbar{position:static}}
.modal.game-modal{width:min(96vw,920px);padding:24px}.game-intro>p:first-child{font-weight:800;color:#52647b}.game-intro-instruction{display:flex;align-items:center;gap:16px;background:#eef8fc;border-radius:22px;padding:15px 18px;margin:10px 0}.game-intro-icon{font-size:2.7rem;line-height:1}.game-intro-instruction strong,.game-intro-instruction span,.game-intro-instruction small{display:block}.game-intro-instruction span{font-size:1.05rem;font-weight:800}.game-intro-instruction small{color:#64778d;margin-top:3px}.game-rules{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.game-rules span{padding:7px 12px;border-radius:999px;background:#fff2d4;color:#705322;font-weight:800;font-size:.85rem}.game-privacy{font-size:.82rem;color:#64778d;margin:10px 0}.game-hud{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#2f4c66;color:#fff;border-radius:15px;padding:11px 16px;margin:13px 0 10px;font-weight:800}.game-hud strong{font-size:1.3rem}.game-area{min-height:360px;aspect-ratio:4/3;max-height:58vh;display:grid;place-items:center;border-radius:25px;background:linear-gradient(145deg,#caedf9,#fff1ce);overflow:hidden}.game-area>span{font-size:4rem}.game-stage{width:100%;height:100%;min-height:360px;position:relative;overflow:hidden;background:#112f40}.game-camera,.game-canvas{width:100%;height:100%;position:absolute;inset:0;object-fit:cover}.game-camera{transform:scaleX(-1)}.game-canvas{pointer-events:none}.game-stage-hint{position:absolute;left:50%;bottom:18px;transform:translateX(-50%);padding:10px 19px;border-radius:999px;background:#fffefaed;color:#30475e;font-size:1rem;font-weight:900;text-align:center;white-space:nowrap;max-width:92%;box-shadow:0 8px 25px #0003}.game-loading,.game-error{text-align:center;padding:30px;color:#435a70;font-size:1.05rem;font-weight:800}.game-loading small{display:block;font-size:.85rem;color:#6e7f90;margin-top:7px}.game-error span{display:block;font-size:3rem}.game-error strong{display:block;font-size:1.2rem}.game-result{text-align:center;padding:18px;width:100%}.game-result-emoji{font-size:3.4rem}.game-result h3{font-size:1.5rem;margin:6px}.game-result-score{font-size:3.3rem;line-height:1.1;font-weight:900;color:#a46a19}.game-result-score small{font-size:1rem}.game-result-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin:19px 0}.game-result-grid div{display:grid;gap:2px;background:white;border-radius:15px;padding:12px 6px}.game-result-grid strong{font-size:1.35rem}.game-result-grid span,.game-result>small{font-size:.82rem;color:#637284}.game-result p{font-weight:800}.game-history{margin-top:24px;padding:24px;background:white;border:1px solid #eee7d8;border-radius:26px}.game-history h2{margin:0 0 14px}.game-history h3{margin:22px 0 12px}.game-best-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.game-best-card{display:grid;grid-template-columns:auto 1fr;gap:2px 8px;align-items:center;background:#fff7e6;border-radius:16px;padding:12px}.game-best-card span{font-size:1.5rem;grid-row:span 2}.game-best-card strong{font-size:.88rem}.game-best-card small{color:#7a653d}.game-recent{display:grid;gap:8px}.game-recent>div{display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:center;background:#f8fafb;border-radius:13px;padding:11px}.game-recent small{color:#6d7a8c}.game-modal .form-actions{flex-wrap:wrap}@media(max-width:620px){.modal.game-modal{padding:15px;max-height:96vh}.game-intro-instruction{padding:10px}.game-rules span{font-size:.76rem}.game-area{min-height:260px;max-height:45vh}.game-stage{min-height:260px}.game-hud{font-size:.8rem;padding:9px}.game-hud strong{font-size:1rem}.game-stage-hint{font-size:.82rem;white-space:normal}.game-result-grid{grid-template-columns:repeat(2,1fr)}.game-best-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.game-recent>div{grid-template-columns:1fr auto}.game-recent small{grid-column:1/-1}.game-history{padding:16px}}
.game-intro:not(.playing):not(.completed) .game-area{aspect-ratio:auto;min-height:145px;max-height:165px}.game-intro.completed .game-area{aspect-ratio:auto;min-height:340px;max-height:none;height:auto}.game-intro.playing .game-area{width:100%}
.game-tracking{font-size:.84rem;font-weight:800;color:#55748b;margin:9px 0 0;text-align:center}.game-intro.completed .game-tracking{display:none}
.gateway-hero{grid-template-columns:minmax(0,1fr) minmax(360px,520px)}.gateway-mascot{height:350px;border-radius:30px;background:#1a1d2e;box-shadow:0 24px 70px #28345230}.gateway-mascot img{width:100%;height:100%;object-fit:cover;object-position:center;mask-image:none}.sunrise-scene{background:#1b2339}.sunrise-scene:before{display:none}.sunrise-scene img{width:100%;height:100%;object-fit:cover;object-position:center;mask-image:none;animation:none}.child-hero{grid-template-columns:minmax(0,1fr) minmax(330px,44%);background:linear-gradient(100deg,#fff0c5,#ffe9c9)}.child-hero img{height:270px;object-fit:cover;object-position:center;border-radius:23px;mask-image:none}.logo-mark{background:#263552;color:#ffd46a;box-shadow:0 3px 0 #1a2840}.child-logo span{font-size:1.5rem}@media(max-width:800px){.gateway-hero{grid-template-columns:1fr 260px}.gateway-mascot{height:230px}.child-hero{grid-template-columns:1fr 260px}.child-hero img{height:230px}}@media(max-width:620px){.gateway-mascot{display:block;height:210px;order:-1}.gateway-hero{display:flex;flex-direction:column;align-items:stretch}.child-hero{grid-template-columns:1fr}.child-hero img{height:180px;order:-1}}
.workflow-panel{margin-top:20px}.workflow-panel>.panel-head{margin-bottom:14px}.workflow-panel .data-table{min-width:520px}.reward-card .button{margin-top:11px;min-height:42px}.demo-steps ol{padding-left:24px;line-height:1.85;color:#46576d}.demo-steps li{margin:6px 0}.demo-balance{height:160px;border-radius:18px;background:linear-gradient(#d8f1fa,#fff1cf);display:grid;place-items:center;position:relative;overflow:hidden}.demo-balance>span{font-size:3.8rem;animation:demo-sway 2.8s ease-in-out infinite}.demo-arms{position:absolute;top:56px;color:#d58a47;letter-spacing:.15em;animation:demo-sway 2.8s ease-in-out infinite}.demo-ground{position:absolute;bottom:12px;width:80%;height:8px;background:#86caa7;border-radius:99px}.training-countdown{text-align:center;font-size:2.6rem;font-weight:900;color:#bc7b24;margin:13px}.activity-prompt{font-size:1.35rem;font-weight:900;background:#e8f5fc;border-radius:17px;padding:27px;text-align:center;line-height:1.6}@keyframes demo-sway{0%,100%{transform:rotate(-4deg)}50%{transform:rotate(4deg)}}@media print{.workflow-panel{break-inside:avoid}}
.child-nav{scrollbar-width:none}.child-nav::-webkit-scrollbar{display:none}
.goal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.goal-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:21px;box-shadow:var(--shadow)}.goal-card-top{display:flex;gap:14px;align-items:flex-start}.goal-card h3{font-size:1.05rem;margin:0}.goal-card p{color:#718098;font-size:.84rem;margin:5px 0}.goal-icon{width:52px;height:52px;border-radius:16px;background:#fff1d5;display:grid;place-items:center;font-size:1.65rem;flex:none}.goal-progress-head{display:flex;justify-content:space-between;margin:17px 0 7px;font-size:.8rem;color:#6c7c91}.goal-details{display:grid;gap:10px;margin:16px 0}.goal-details>div{background:#f8fafc;border-radius:13px;padding:11px 13px}.goal-details dt{font-size:.72rem;color:#7e8998;font-weight:900}.goal-details dd{margin:4px 0 0;font-size:.82rem;line-height:1.55;color:#44536a}.goal-child-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:20px}.goal-card-child{text-align:center;border-radius:28px;background:linear-gradient(145deg,#fff,#fff8e8)}.goal-card-child .goal-card-top{display:block}.goal-card-child .goal-icon{width:78px;height:78px;border-radius:24px;font-size:2.7rem;margin:0 auto 13px}.goal-card-child h3{font-size:1.18rem}.goal-card-child .form-actions{justify-content:center}.child-choice{margin-top:20px;background:#e8f6ed;border-radius:19px;padding:18px;font-weight:900;text-align:center}.care-inbox{display:grid;gap:10px}.care-inbox-item{display:flex;align-items:center;gap:15px;border:1px solid #e6eaf0;border-radius:15px;padding:14px}.care-inbox-item p{margin:5px 0;color:#57677c;font-size:.84rem}.care-inbox-item small{color:#8994a3}.care-inbox-actions{display:flex;gap:7px;flex-wrap:wrap}.care-reply{margin-top:8px;padding:9px 11px;background:#eef7f1;border-radius:10px;color:#39634c;font-size:.8rem}.task-goal-link{display:block;color:#9a671b;margin-top:4px;font-weight:800}@media(max-width:800px){.goal-child-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.goal-grid,.goal-child-grid{grid-template-columns:1fr}.care-inbox-item{align-items:flex-start;flex-direction:column}.care-inbox-actions{width:100%}.care-inbox-actions .button{flex:1}}
.video-placeholder .button{font-size:1rem;line-height:1.3;max-width:calc(100% - 24px);white-space:normal;text-align:center}
@media(max-width:620px){.patient-banner{display:grid;grid-template-columns:47px minmax(0,1fr);align-items:start}.patient-banner>.avatar{grid-row:span 2}.patient-banner>.grow{min-width:0}.patient-banner>.badge{grid-column:2;justify-self:start}.patient-banner h2{display:flex;flex-wrap:wrap;gap:6px}.workflow-panel .list-item{flex-wrap:wrap}.workflow-panel .list-item>.grow{flex-basis:calc(100% - 56px)}.workflow-panel .list-item>.badge{margin-left:56px}}

/* Non-camera occupational games */
.ot-library{--ot-size:1rem;max-width:1240px;margin:0 auto}.ot-library.age-3-5{--ot-size:1.12rem}.ot-library.age-9-12{--ot-size:.96rem}.ot-library-hero{display:grid;grid-template-columns:1.5fr .8fr;align-items:center;gap:28px;padding:28px 34px;border-radius:28px;background:linear-gradient(135deg,#fff3cc,#e7f8f4 55%,#e3f1ff);overflow:hidden}.ot-library-hero h1{font-size:clamp(2rem,4vw,3.4rem);margin:.2rem 0}.ot-library-hero p{font-size:1.08rem}.ot-library-hero img{width:100%;max-height:230px;object-fit:contain}.ot-assignment-callout{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px;margin-top:18px;background:#fff8df;border:2px solid #ffd56b;border-radius:20px}.ot-assignment-callout p{margin:4px 0 0}.ot-library-toolbar{display:flex;align-items:end;gap:16px;flex-wrap:wrap;margin:24px 0 16px}.ot-library-toolbar label,.ot-assign-form label{display:grid;gap:6px;font-weight:750}.ot-library-toolbar select,.ot-assign-form select,.ot-assign-form input{min-height:44px;padding:8px 12px;border:1px solid #d8e0e8;border-radius:12px;background:#fff;font:inherit}.ot-series-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:22px}.ot-series-chip{display:grid;grid-template-columns:auto 1fr;gap:2px 10px;text-align:left;align-items:center;padding:12px;border:1px solid #dfe8ed;background:#fff;border-radius:16px;color:inherit;cursor:pointer}.ot-series-chip>span{grid-row:1/3;font-size:1.6rem}.ot-series-chip small{color:#65717d}.ot-series-chip.active{border-color:#f4a72c;box-shadow:0 0 0 3px #ffedbd}.ot-game-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.ot-game-card{display:flex;flex-direction:column;min-height:270px;padding:20px;background:#fff;border:1px solid #e1e8ec;border-top:6px solid #73c9c2;border-radius:22px;box-shadow:0 8px 22px rgba(54,72,89,.08)}.ot-game-card.tone-coral{border-top-color:#ff9578}.ot-game-card.tone-sky,.ot-game-card.tone-blue{border-top-color:#69b8ea}.ot-game-card.tone-violet{border-top-color:#a68bde}.ot-game-card.tone-amber{border-top-color:#ffc857}.ot-game-card.tone-rose{border-top-color:#f29eb5}.ot-game-card.tone-green,.ot-game-card.tone-mint{border-top-color:#68c89c}.ot-game-card.locked{opacity:.65;background:#f5f6f7}.ot-card-top{display:flex;align-items:center;gap:8px}.ot-card-top .badge{margin-left:auto}.ot-series-icon{font-size:2rem}.ot-level{font-size:.72rem;font-weight:850;letter-spacing:.08em;color:#687480}.ot-game-card h3{font-size:calc(var(--ot-size)*1.2);margin:16px 0 7px}.ot-game-card p{font-size:var(--ot-size);color:#5f6b75;line-height:1.55;flex:1}.ot-tags{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0 14px}.ot-tags span{padding:5px 8px;border-radius:999px;background:#f1f5f6;font-size:.74rem}.ot-history{margin-top:28px}.ot-history h2{margin:3px 0}.ot-history-list>div,.ot-assignment-list>div{display:flex;align-items:center;gap:12px;padding:12px 0;border-top:1px solid #edf0f2}.ot-history-list>div>span{font-size:1.7rem}.ot-history-list>div>div,.ot-assignment-list>div>div{display:grid;flex:1}.ot-history-list small,.ot-assignment-list small{color:#6c7780;margin-top:3px}.ot-history-list b{color:#f0a21a;letter-spacing:2px;white-space:nowrap}.ot-game-shell{font-size:var(--ot-size,1rem)}.ot-intro{text-align:center;max-width:700px;margin:0 auto}.ot-level-badge{display:inline-flex;padding:7px 12px;background:#253653;color:#fff;border-radius:999px;font-weight:800;font-size:.76rem;letter-spacing:.1em}.ot-intro h3{font-size:clamp(1.45rem,3vw,2.15rem);margin:18px 0 8px}.ot-support-row{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin:18px 0}.ot-support-row span{padding:8px 10px;border-radius:10px;background:#eff6f7;font-size:.86rem}.ot-play-head{display:flex;justify-content:space-between;margin-bottom:12px;color:#66727c;font-size:.9rem}.ot-play-area{min-height:310px;padding:24px;border-radius:22px;background:linear-gradient(145deg,#f7fbff,#fff9e9);text-align:center}.ot-question{font-size:1.35em;font-weight:800;margin:4px 0 22px}.ot-option-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:720px;margin:0 auto 20px}.ot-answer,.ot-rating-grid button{min-height:64px;padding:14px;border:2px solid #dce7eb;border-radius:16px;background:#fff;color:#263552;font:inherit;font-weight:760;cursor:pointer}.ot-answer:hover,.ot-answer:focus-visible,.ot-rating-grid button:hover,.ot-rating-grid button:focus-visible{border-color:#f4ad32;box-shadow:0 0 0 4px #ffedbd;outline:none}.ot-answer.selected{border-color:#f0a229;background:#fff4cd}.ot-target-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;max-width:620px;margin:auto}.ot-target{min-height:92px;border:3px solid #fff;background:#dff5f1;border-radius:24px;font:700 2rem/1 sans-serif;box-shadow:0 5px 0 #a8dcd4;cursor:pointer}.ot-target:focus-visible{outline:5px solid #f7bd3b;outline-offset:3px}.ot-feedback{min-height:28px;margin-top:20px;color:#4a5963;font-weight:700}.ot-game-controls{display:flex;justify-content:space-between;gap:12px;margin-top:16px}.ot-scene{display:flex;align-items:center;justify-content:center;gap:14px;max-width:650px;margin:0 auto 20px;padding:20px;border-radius:18px;background:#fff}.ot-scene span{font-size:2.2rem}.ot-scene p{font-size:1.15em;font-weight:800;margin:0}.ot-reflection{text-align:center;padding:30px 10px}.ot-celebrate{font-size:4.2rem}.ot-reflection h3{font-size:2rem;margin:8px 0}.ot-rating-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:24px auto 0;max-width:720px}.ot-assign-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:end}.ot-assign-form .wide{grid-column:1/-1}.ot-assign-form .button{min-height:44px}.mini-stat{display:grid;gap:4px;padding:14px;border-radius:15px;background:#f5f8f8}.mini-stat strong{font-size:1.7rem}.mini-stat span{font-size:.82rem;color:#66717a}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1000px){.ot-game-grid{grid-template-columns:repeat(2,1fr)}.ot-series-summary{grid-template-columns:repeat(2,1fr)}}
@media(max-width:680px){.ot-library-hero{grid-template-columns:1fr;padding:22px}.ot-library-hero img{max-height:170px}.ot-game-grid,.ot-series-summary,.ot-option-grid,.ot-rating-grid,.ot-assign-form{grid-template-columns:1fr}.ot-target-grid{grid-template-columns:repeat(2,1fr)}.ot-game-card{min-height:auto}.ot-library-toolbar{align-items:stretch}.ot-library-toolbar label{width:100%}.ot-game-controls{flex-direction:column}.ot-assignment-callout{align-items:flex-start}.ot-history-list>div{align-items:flex-start;flex-wrap:wrap}.ot-history-list b{margin-left:45px}.ot-play-area{padding:18px 12px}}
.ot-round-progress{height:8px;background:#edf1f2;border-radius:99px;overflow:hidden;margin-bottom:14px}.ot-round-progress span{display:block;height:100%;background:#f4b43d;border-radius:99px}.ot-round-scene{font-size:1.15rem;font-weight:800;color:#45566a}.ot-game-shell.low-sensory .ot-play-area{background:#f7f9f8}.ot-game-shell.low-sensory .ot-target{background:#eef3f2;box-shadow:none}.ot-game-shell.low-sensory *{animation:none!important}.ot-game-shell.lively .ot-play-area{background:linear-gradient(145deg,#dff5ff,#fff0c5,#edffe8)}.ot-plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.ot-plan-grid article{display:flex;flex-direction:column;padding:16px;border:1px solid #e2e7eb;border-radius:16px;background:#fff}.ot-plan-grid h3{margin:12px 0 6px}.ot-plan-grid p{font-size:.82rem;color:#59697a;flex:1}.ot-plan-grid small{color:#7a8490}.ot-plan-summary{display:flex;align-items:flex-start;gap:16px;padding:18px;border-radius:18px;background:#fff5d8;margin-bottom:18px}.ot-plan-summary h3{margin:3px 0}.ot-plan-detail h4{margin:22px 0 9px}.ot-plan-detail section{padding:14px;border-radius:14px;background:#f7f9fa}.ot-flow{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.ot-flow div{display:grid;gap:4px;padding:12px;border-radius:13px;background:#eef6f7}.ot-flow span,.ot-flow small{font-size:.75rem;color:#64717d}.ot-bank-list{display:flex;gap:7px;flex-wrap:wrap}.ot-bank-list span{padding:7px 10px;background:#f1f4f5;border-radius:999px;font-size:.8rem}
.switch-help{margin:12px 0;text-align:center}#ot-game-stage .switch-focus{outline:5px solid #263552;outline-offset:4px;box-shadow:0 0 0 9px rgba(255,200,87,.62);transform:translateY(-2px)}
@media(max-width:1000px){.ot-plan-grid{grid-template-columns:repeat(2,1fr)}.ot-flow{grid-template-columns:repeat(3,1fr)}}
@media(max-width:680px){.ot-plan-grid,.ot-flow{grid-template-columns:1fr}.ot-plan-summary{display:block}.ot-plan-summary .ot-series-icon{display:block;margin-bottom:8px}}

/* Motion adventure v2 */
.game-session-map{display:grid;grid-template-columns:repeat(6,1fr);gap:7px;margin:14px 0}.game-session-map span{padding:9px 6px;border-radius:11px;background:#eef6f8;color:#486278;text-align:center;font-size:.76rem;font-weight:850}.game-safety-check{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px;border:1px solid #eadfbf;border-radius:18px;padding:15px 17px;margin:13px 0;background:#fffdf7}.game-safety-check legend{font-weight:900;color:#6f572d;padding:0 7px}.game-safety-check label{display:flex;align-items:center;gap:8px;font-size:.86rem;font-weight:750;color:#4e5e71}.game-safety-check input{width:20px;height:20px}.game-safety-check select{min-height:40px;margin-left:auto;border:1px solid #d4dbe3;border-radius:10px;padding:7px;background:#fff}.game-phase-banner{position:absolute;left:16px;right:16px;top:14px;display:flex;justify-content:space-between;align-items:center;gap:10px;pointer-events:none}.game-phase-banner>*{padding:8px 13px;border-radius:999px;background:#fffefaed;color:#30475e;box-shadow:0 6px 18px #0002;font-size:.82rem}.game-summary-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:0 0 16px}.game-summary-strip>div{display:grid;gap:2px;padding:13px 15px;border-radius:15px;background:#f3f8fa}.game-summary-strip strong{font-size:1.55rem;color:#344b63}.game-summary-strip span{font-size:.78rem;color:#687789}.game-quality{display:flex;align-items:center;justify-content:center;gap:10px;margin:12px auto;padding:10px 14px;border-radius:13px;max-width:560px}.game-quality.green{background:#e8f7ed;color:#397153}.game-quality.amber{background:#fff1d8;color:#885e20}.game-quality span{font-size:.8rem}.game-after-report{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:17px 0}.game-after-report label{display:grid;gap:5px;text-align:left;font-size:.77rem;font-weight:850;color:#59687a}.game-after-report select{width:100%;min-height:42px;padding:8px;border:1px solid #d5dce3;border-radius:10px;background:#fff}.game-hud{display:grid;grid-template-columns:auto 1fr auto auto}.game-hud span:nth-child(2),.game-hud span:nth-child(3){text-align:center}.game-tile .pill{background:#ffffffa8}.game-tile p{min-height:43px}.care-inbox-item .mini-stat{min-width:90px}
@media(max-width:760px){.game-session-map{grid-template-columns:repeat(3,1fr)}.game-safety-check{grid-template-columns:1fr}.game-hud{grid-template-columns:1fr 1fr}.game-hud>*{text-align:center!important}.game-after-report{grid-template-columns:1fr}.game-summary-strip{grid-template-columns:1fr 1fr 1fr}}
@media(max-width:440px){.game-session-map{grid-template-columns:repeat(2,1fr)}.game-summary-strip{grid-template-columns:1fr}.game-quality{align-items:flex-start;flex-direction:column}}
.game-tile.assigned-game{outline:3px solid rgba(245,174,55,.28);background:linear-gradient(160deg,#fffdf7,#fff7dd)}
.game-tile.assigned-game .badge{margin-bottom:8px}

/* Playable occupational game boards */
.ot-workbench{display:grid;gap:18px;max-width:820px;margin:auto}.ot-object-shelf{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:12px}.ot-object-card{display:grid;place-items:center;gap:5px;min-height:122px;padding:12px;border:2px solid #dce7eb;border-radius:18px;background:#fff;color:#263552;font:inherit;cursor:grab;box-shadow:0 5px 0 #dce7eb;transition:transform .16s,border-color .16s,opacity .16s}.ot-object-card>span{font-size:2rem}.ot-object-card small{font-size:.7rem;color:#6d7884}.ot-object-card:hover,.ot-object-card:focus-visible{transform:translateY(-3px);border-color:#f3ad35;outline:4px solid #ffedbd}.ot-object-card.in-tray{opacity:.55;box-shadow:none}.ot-object-card.dragging{opacity:.35}.ot-activity-tray{display:grid;grid-template-columns:auto 1fr;gap:3px 12px;align-items:center;min-height:118px;padding:16px 20px;border:3px dashed #69bdb1;border-radius:22px;background:#eafbf7;text-align:left}.ot-activity-tray>span{grid-row:1/3;font-size:2.5rem}.ot-activity-tray small{display:block;color:#59736f}.ot-tray-items{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:7px;margin-top:5px}.ot-tray-items button{padding:7px 10px;border:0;border-radius:99px;background:#fff;color:#375b55;font-weight:750}.ot-tray-items em{color:#6e817e}.drop-ready{border-color:#ef9f25!important;background:#fff4cf!important;transform:scale(1.015)}
.ot-carry-card{display:grid;place-items:center;gap:5px;width:min(260px,80%);min-height:135px;margin:auto;padding:15px;border:3px solid #76c6b7;border-radius:24px;background:#fff;box-shadow:0 9px 0 #b9e7de;color:#263552;font:inherit;cursor:grab}.ot-carry-card>span{font-size:2.8rem}.ot-carry-card.held{transform:rotate(-2deg) translateY(-4px);border-color:#f1a938;box-shadow:0 12px 0 #ffe0a2}.ot-bin-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.ot-drop-bin{display:grid;place-items:center;gap:5px;min-height:130px;padding:16px;border:3px dashed #94aeb8;border-radius:18px;background:#eef7fa;color:#263552;font:inherit;cursor:pointer}.ot-drop-bin>span{font-size:2.7rem}.ot-drop-bin:hover,.ot-drop-bin:focus-visible{border-color:#f2aa31;outline:4px solid #ffedbd}
.ot-sequence-track{display:grid;gap:10px}.ot-sequence-card{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:12px;padding:13px 15px;border:2px solid #dbe6ea;border-radius:16px;background:#fff;text-align:left;cursor:grab;box-shadow:0 4px 0 #e2eaed}.ot-sequence-card>span{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#ffdb79;font-weight:900}.ot-sequence-card>div{display:flex;gap:5px}.ot-sequence-card button{width:38px;height:38px;border:1px solid #d9e2e6;border-radius:10px;background:#f6f9fa;font-size:1.2rem}.ot-sequence-card button:disabled{opacity:.3}
.ot-search-mission{display:flex;justify-content:center;align-items:center;gap:14px}.ot-search-mission>span{font-size:2.5rem}.ot-search-mission div{display:grid;text-align:left}.ot-search-mission strong{font-size:1.35rem}.ot-search-board{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;padding:20px;border-radius:24px;background:radial-gradient(circle at 20% 15%,#fff8d8,#dff5f2 50%,#e8e5ff);box-shadow:inset 0 0 0 3px #fff}.ot-search-object{min-height:94px;padding:10px;border:2px solid #fff;border-radius:20px;background:#ffffffd9;color:#263552;font:inherit;font-weight:800;font-size:1.05rem;line-height:1.3;cursor:pointer;transform:rotate(calc((var(--delay) - 2)*1.2deg));box-shadow:0 6px 14px #48616c1a}.ot-search-object:hover,.ot-search-object:focus-visible{transform:scale(1.07);outline:5px solid #ffc84f}
.ot-route-board{position:relative;height:360px;border:3px solid #cfebea;border-radius:28px;background:linear-gradient(160deg,#effcff,#fff7d7);overflow:hidden;touch-action:none;user-select:none}.ot-route-board:before{content:'';position:absolute;inset:0;background-image:radial-gradient(#a9dcd6 2px,transparent 2px);background-size:28px 28px;opacity:.45}.ot-route-board svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.ot-route-board polyline{fill:none;stroke:#f1a72d;stroke-width:12;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 3px 2px #9c641733)}.ot-route-node{position:absolute;z-index:2;transform:translate(-50%,-50%);display:grid;place-items:center;min-width:72px;min-height:72px;padding:8px;border:4px solid #fff;border-radius:50%;background:#67c5b6;color:#fff;font:inherit;font-weight:800;font-size:.78rem;line-height:1.1;box-shadow:0 5px 0 #38998b;cursor:pointer}.ot-route-node>span{font-size:.7rem}.ot-route-node.start{background:#f2a82d;box-shadow:0 5px 0 #c67b08}.ot-route-node.visited{background:#6f8ee8}.ot-route-node:focus-visible{outline:6px solid #ffd25c;outline-offset:3px}
.ot-memory-game{display:grid;gap:22px;max-width:760px;margin:auto}.ot-memory-strip{display:flex;justify-content:center;flex-wrap:wrap;gap:12px}.ot-memory-strip>div{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:10px;min-width:150px;padding:16px;border:2px solid #a999df;border-radius:18px;background:#f0ecff;box-shadow:0 6px 0 #d8cff8}.ot-memory-strip span{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#785fc1;color:#fff;font-weight:900}.ot-memory-slots{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}.ot-memory-slots span{min-width:120px;padding:10px;border:2px dashed #a999df;border-radius:12px;background:#faf8ff;font-weight:800}
.ot-story-world{position:relative;display:grid;grid-template-columns:110px 1fr;gap:16px;align-items:center;max-width:820px;margin:auto;padding:26px;border-radius:28px;background:linear-gradient(#cceeff 0 55%,#d9efb5 55%);overflow:hidden}.ot-story-character{font-size:5rem;filter:drop-shadow(0 7px 2px #2442)}.ot-story-bubble{position:relative;padding:18px;border-radius:18px;background:#fff;font-size:1.08rem;font-weight:800;text-align:left;box-shadow:0 7px 18px #36566a22}.ot-story-bubble:before{content:'';position:absolute;left:-14px;top:32px;border:8px solid transparent;border-right-color:#fff}.ot-story-paths{grid-column:1/-1;display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}.ot-story-paths button{display:grid;place-items:center;gap:6px;min-height:120px;padding:14px;border:3px solid #fff;border-radius:20px;background:#ffffffdc;color:#263552;font:inherit;cursor:pointer;box-shadow:0 6px 0 #bad593}.ot-story-paths span{font-size:2rem}.ot-story-paths small{color:#66727c}.ot-story-paths button:hover,.ot-story-paths button:focus-visible{border-color:#f4ad32;outline:4px solid #ffedbd;transform:translateY(-3px)}
@media(max-width:680px){.ot-object-shelf{grid-template-columns:repeat(2,minmax(0,1fr))}.ot-bin-row{grid-template-columns:1fr 1fr}.ot-route-board{height:310px}.ot-route-node{min-width:60px;min-height:60px}.ot-story-world{grid-template-columns:70px 1fr;padding:18px}.ot-story-character{font-size:3.5rem}.ot-sequence-card{grid-template-columns:36px 1fr}.ot-sequence-card>div{grid-column:2}.ot-search-board{gap:8px;padding:12px}.ot-search-object{min-height:78px;font-size:.9rem}}

/* Child focused game presentation */
.ot-game-card{min-height:340px;position:relative;overflow:hidden;transition:transform .2s ease,box-shadow .2s ease}.ot-game-card:not(.locked):hover{transform:translateY(-6px) rotate(.25deg);box-shadow:0 15px 30px rgba(54,72,89,.14)}.ot-game-card:not(.locked):after{content:'✦';position:absolute;right:-8px;bottom:48px;font-size:4rem;color:#ffc8571f;transform:rotate(18deg);pointer-events:none}.ot-card-preview{display:grid;place-items:center;gap:2px;min-height:72px;margin:12px 0 2px;border-radius:16px;background:linear-gradient(135deg,#eefaff,#fff5d6);font-weight:900;color:#3e5670;overflow:hidden}.ot-card-preview>span{font-size:1.28rem;letter-spacing:.12em}.ot-card-preview small{font-size:.7rem;color:#718091}.preview-route{background:linear-gradient(135deg,#e4f8ef,#e7eeff)}.preview-memory{background:linear-gradient(135deg,#f0ebff,#fff0d8)}.preview-story{background:linear-gradient(#dff4ff 0 58%,#e4f3ca 58%)}.preview-sorting{background:linear-gradient(135deg,#e8faf6,#fff1db)}
.ot-intro-scene{position:relative;width:min(520px,100%);min-height:190px;margin:0 auto 16px;border-radius:28px;background:radial-gradient(circle at 50% 100%,#fff1ae,#dff5ff 58%,#ebe5ff);overflow:hidden}.ot-intro-scene img{position:relative;z-index:2;width:100%;height:190px;object-fit:contain;filter:drop-shadow(0 10px 8px #31455c26);animation:otMascotFloat 3s ease-in-out infinite}.ot-intro-scene .ot-level-badge{position:absolute;z-index:3;left:50%;bottom:10px;transform:translateX(-50%);white-space:nowrap}.ot-intro-decor span{position:absolute;font-size:1.8rem;animation:otFloat 4s ease-in-out infinite}.ot-intro-decor span:nth-child(1){left:7%;top:18%}.ot-intro-decor span:nth-child(2){right:10%;top:13%;animation-delay:-1.2s}.ot-intro-decor span:nth-child(3){right:17%;bottom:16%;animation-delay:-2.2s}.ot-intro.started{display:none}
.ot-game-world{position:relative;isolation:isolate;padding:14px;border-radius:26px;background:linear-gradient(145deg,#f6fbff,#fffaf0);overflow:hidden;animation:otWorldEnter .36s ease-out}.ot-game-world.theme-coral{--world-accent:#ff9275;--world-soft:#fff0e9}.ot-game-world.theme-mint{--world-accent:#4fc1a9;--world-soft:#e9faf6}.ot-game-world.theme-sky{--world-accent:#55afe5;--world-soft:#e8f6ff}.ot-game-world.theme-violet{--world-accent:#9275d6;--world-soft:#f0ebff}.ot-game-world.theme-amber{--world-accent:#efa927;--world-soft:#fff5d7}.ot-game-world.theme-rose{--world-accent:#e98da8;--world-soft:#fff0f5}.ot-game-world.theme-blue{--world-accent:#668fe0;--world-soft:#ebf1ff}.ot-game-world.theme-green{--world-accent:#54b77c;--world-soft:#eaf8ee}.ot-play-head{position:relative;z-index:2;padding:4px 6px;color:#506174;font-weight:850}.ot-star-path{position:relative;z-index:2;display:flex;align-items:center;justify-content:center;gap:7px;margin:5px 0 12px}.ot-star-path span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#fff;color:#b9c3ca;border:2px solid #e2e9ec;transition:.2s}.ot-star-path span.done{background:#fff0ad;color:#ef9c13;border-color:#ffd15d;animation:otStarPop .42s ease-out}.ot-star-path span.current{color:var(--world-accent);border-color:var(--world-accent);box-shadow:0 0 0 5px color-mix(in srgb,var(--world-accent) 18%,transparent);animation:otPulse 1.6s ease-in-out infinite}
.ot-kid-hud{position:relative;z-index:2;display:grid;grid-template-columns:92px 1fr auto;align-items:center;gap:12px;margin-bottom:12px;padding:10px 14px;border-radius:20px;background:#ffffffdb;border:2px solid #fff;box-shadow:0 8px 20px #35516b12}.ot-kid-hud img{width:92px;height:70px;object-fit:cover;object-position:42% 45%;border-radius:18px;background:var(--world-soft)}.ot-mascot-speech{position:relative;padding:12px 15px;border-radius:16px;background:var(--world-soft);font-weight:800;color:#405468;text-align:left}.ot-mascot-speech:before{content:'';position:absolute;left:-12px;top:23px;border:7px solid transparent;border-right-color:var(--world-soft)}.ot-live-reward{display:grid;place-items:center;min-width:74px;padding:9px;border-radius:15px;background:#fff7d5;color:#7d5b19}.ot-live-reward strong{font-size:1.2rem}.ot-live-reward small{font-size:.68rem}.ot-live-reward b{margin-top:3px;color:#e27636;font-size:.7rem;animation:otPulse 1s ease-in-out infinite}.ot-floating-decor{position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.18}.ot-floating-decor span{position:absolute;font-size:2.4rem;animation:otFloat calc(4s + var(--i)*.7s) ease-in-out infinite}.ot-floating-decor span:nth-child(1){left:2%;top:28%}.ot-floating-decor span:nth-child(2){right:3%;top:40%}.ot-floating-decor span:nth-child(3){left:8%;bottom:5%}.ot-game-world .ot-play-area{position:relative;z-index:1;border:3px solid #fff;box-shadow:0 8px 25px #35516b12}.ot-game-world.fx-success .ot-play-area{animation:otSuccessGlow .5s ease-out}.ot-game-world.fx-retry .ot-play-area{animation:otGentleShake .32s ease-out}.ot-game-controls{position:relative;z-index:2;padding:0 4px}.ot-game-controls .button{min-width:120px}
.ot-reflection{position:relative;overflow:hidden;min-height:500px;border-radius:26px;background:radial-gradient(circle at 50% 45%,#fff6c9,#e4f8f3 55%,#e8edff);display:grid;place-items:center;align-content:center}.ot-reflection>img{width:min(360px,72%);height:170px;object-fit:contain;animation:otMascotFloat 2.5s ease-in-out infinite}.ot-reflection .ot-celebrate{position:absolute;top:28px;right:12%;animation:otStarPop .7s ease-out}.ot-reflection h3,.ot-reflection p,.ot-reflection .ot-rating-grid{position:relative;z-index:2}.ot-confetti{position:absolute;inset:0;pointer-events:none}.ot-confetti i{position:absolute;left:calc(12% + var(--i)*14%);top:-10%;font-style:normal;font-size:1.8rem;animation:otConfetti calc(2.6s + var(--i)*.16s) linear infinite;animation-delay:calc(var(--i)*-.33s)}.ot-reflection.paused .ot-confetti{display:none}.ot-rating-grid button{background:#ffffffdc;transition:transform .2s}.ot-rating-grid button:hover{transform:translateY(-4px) scale(1.02)}
@keyframes otWorldEnter{from{opacity:0;transform:translateY(12px) scale(.985)}to{opacity:1;transform:none}}@keyframes otMascotFloat{0%,100%{transform:translateY(0) rotate(-.6deg)}50%{transform:translateY(-7px) rotate(.7deg)}}@keyframes otFloat{0%,100%{transform:translateY(0) rotate(-8deg)}50%{transform:translateY(-12px) rotate(8deg)}}@keyframes otStarPop{0%{transform:scale(.4) rotate(-25deg)}70%{transform:scale(1.25) rotate(8deg)}100%{transform:scale(1)}}@keyframes otPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}@keyframes otSuccessGlow{0%{box-shadow:0 0 0 0 #ffd05c99}100%{box-shadow:0 0 0 24px #ffd05c00}}@keyframes otGentleShake{0%,100%{transform:translateX(0)}35%{transform:translateX(-5px)}70%{transform:translateX(5px)}}@keyframes otConfetti{0%{transform:translateY(-20px) rotate(0);opacity:0}10%{opacity:1}100%{transform:translateY(560px) rotate(540deg);opacity:.25}}
@media(max-width:680px){.ot-game-card{min-height:auto}.ot-kid-hud{grid-template-columns:64px 1fr}.ot-kid-hud img{width:64px;height:58px}.ot-live-reward{grid-column:1/-1;display:flex;justify-content:center;gap:7px}.ot-star-path{gap:3px}.ot-star-path span{width:28px;height:28px}.ot-game-controls .button{width:100%}.ot-intro-scene{min-height:155px}.ot-intro-scene img{height:155px}}
@media(prefers-reduced-motion:reduce){.ot-game-shell *,.ot-game-card{animation:none!important;transition:none!important}.ot-confetti{display:none}}

/* Occupational games V2: child-first flagship worlds */
.ot-privacy-choice{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:18px 0;padding:16px 19px;border:2px solid #dce8ec;border-radius:20px;background:#fff}.ot-privacy-choice>div{display:flex;align-items:center;gap:12px}.ot-privacy-choice>div>span{font-size:2rem}.ot-privacy-choice p{margin:3px 0 0;color:#687786;font-size:.82rem}.ot-privacy-choice.is-on{border-color:#85cbb0;background:#effaf5}.ot-game-card.featured{border-width:2px;border-top-width:7px;background:linear-gradient(165deg,#fff,#fffaf0);box-shadow:0 12px 28px #57677418}.ot-game-card.featured .ot-card-preview{min-height:88px}.ot-mode-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:16px 0}.ot-mode-picker button{display:grid;place-items:center;gap:5px;min-height:72px;padding:10px;border:2px solid #dfe7eb;border-radius:17px;background:#fff;color:#405268;font-size:1.25rem}.ot-mode-picker button strong{font-size:.8rem}.ot-mode-picker button[aria-pressed=true]{border-color:#f0a72f;background:#fff3ca;box-shadow:0 0 0 4px #fff0b6}.ot-round-meta{display:flex;justify-content:center;gap:7px;flex-wrap:wrap;margin:-4px 0 8px}.ot-round-meta span{padding:5px 9px;border-radius:99px;background:#ffffffd9;color:#607083;font-size:.7rem;font-weight:800}.flagship-board{position:relative;display:grid;gap:17px;max-width:850px;margin:auto}.flagship-title,.route-mission{display:flex;align-items:center;justify-content:center;gap:11px}.flagship-title>span,.route-mission>span{font-size:2.4rem}.flagship-title>div,.route-mission>div{display:grid;text-align:left}.flagship-title small,.route-mission small{color:#71808f}.flagship-title strong,.route-mission strong{font-size:1.15rem}.tuner-preview{display:flex;align-items:center;justify-content:center;gap:20px;padding:16px;border-radius:22px;background:linear-gradient(135deg,#232f5a,#6055a4);color:#fff}.tuner-preview>div{display:grid;text-align:left}.tuner-preview small{color:#dad9f8}.tuner-ship{font-size:4.4rem;filter:drop-shadow(0 8px 4px #1118);animation:otShipHover 2s ease-in-out infinite}.tuner-controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:11px}.tuner-controls button,.comfort-controls button{display:grid;place-items:center;gap:4px;min-height:112px;padding:13px;border:3px solid #fff;border-radius:21px;background:#fff;color:#34475c;box-shadow:0 6px 0 #d8e4ea;font:inherit}.tuner-controls button span,.comfort-controls button span{font-size:2rem}.tuner-controls button:hover,.tuner-controls button:focus-visible,.comfort-controls button:hover,.comfort-controls button:focus-visible{transform:translateY(-4px);outline:5px solid #ffd369}.comic-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.comic-strip>div{display:grid;place-items:center;gap:6px;min-height:105px;padding:12px;border:4px solid #fff;border-radius:18px;background:#e7f6ff;box-shadow:0 6px 0 #b8ddeb}.comic-strip>div:nth-child(2){background:#fff0c9;transform:rotate(-1deg)}.comic-strip .comic-question{background:#eaf7df;transform:rotate(1deg)}.comic-strip span{font-size:2.6rem}.comic-character{display:flex;align-items:center;justify-content:center;gap:14px}.comic-character>span{font-size:4rem;animation:otMascotFloat 2.5s ease-in-out infinite}.comic-character p{position:relative;max-width:590px;margin:0;padding:14px 18px;border-radius:18px;background:#fff;font-weight:850;text-align:left}.story-choice-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px}.story-choice-cards button{display:grid;place-items:center;gap:5px;min-height:120px;padding:13px;border:3px solid #fff;border-radius:20px;background:#ffffffdf;color:#34475c;box-shadow:0 6px 0 #bedaa7;font:inherit}.story-choice-cards span{font-size:2rem}.rule-card{display:flex;align-items:center;justify-content:center;gap:13px;width:min(580px,100%);margin:auto;padding:14px 20px;border-radius:18px;background:#302b58;color:#fff;box-shadow:0 7px 0 #1f1b3f}.rule-card>span{font-size:2.5rem;animation:otRuleFlip 1.1s ease-out}.rule-card>div{display:grid;text-align:left}.rule-card small{color:#d8d2ff}.rule-switch .conveyor{position:relative;padding:15px;border-radius:24px;background:repeating-linear-gradient(90deg,#dbe3e8 0 24px,#c4d0d8 24px 48px);background-size:96px 100%;animation:otConveyor 3s linear infinite}.rule-switch .ot-workbench{padding:15px;border-radius:20px;background:#ffffffea}.comfort-room{position:relative;display:grid;place-items:center;align-content:end;min-height:200px;padding:20px;border-radius:28px;background:linear-gradient(#dcefff 0 64%,#edddc4 64%);overflow:hidden;transition:filter .35s,background .35s}.comfort-room.adjusted{background:linear-gradient(#e9e4ff 0 64%,#dbeccc 64%);filter:saturate(.9)}.comfort-room.overstimulated{background:repeating-linear-gradient(135deg,#fff1bc 0 18px,#ffd4c4 18px 36px);filter:saturate(1.25)}.comfort-room>span{position:absolute;font-size:2.8rem;transition:transform .35s}.comfort-light{top:18px;left:18%}.comfort-seat{bottom:28px;left:18%;font-size:4rem!important}.comfort-plant{bottom:30px;right:16%}.comfort-friend{bottom:35px;left:50%}.comfort-room.adjusted>span{transform:scale(1.08)}.comfort-room>div{position:relative;z-index:2;margin-top:110px;padding:8px 14px;border-radius:14px;background:#ffffffd9;display:grid}.comfort-controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px}.comfort-controls button[aria-pressed=true]{background:#fff1bd;border-color:#f2b23d;box-shadow:0 6px 0 #e5aa34}.coop-scene{display:grid;grid-template-columns:1fr 1.4fr 1fr;align-items:center;gap:12px}.coop-scene>div{display:grid;place-items:center;min-height:110px;padding:12px;border-radius:22px;background:#fff}.coop-scene span{font-size:3.6rem}.coop-project{font-size:3.5rem;background:linear-gradient(135deg,#fff1bd,#e5f8ef)!important}.coop-project strong{font-size:1rem}.coop-note{padding:10px 13px;border-radius:14px;background:#eef8ff;color:#557086;font-size:.8rem}.energy-meter{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}.energy-meter span{padding:8px 11px;border-radius:99px;background:#fff;font-weight:850}.energy-meter i{width:45px;height:5px;border-radius:9px;background:linear-gradient(90deg,#68c99c,#ffcf60)}.timeline-board{display:grid;gap:10px}.timeline-card{display:grid;grid-template-columns:48px 1fr auto;align-items:center;gap:12px;padding:13px;border:3px solid #fff;border-radius:18px;background:#fff;box-shadow:0 5px 0 #cadbe2;text-align:left}.timeline-card>span{font-size:2rem}.timeline-card>div{display:flex;gap:5px}.timeline-card button{width:42px;height:42px;border:0;border-radius:12px;background:#eef3f5;font-size:1.2rem}.route-scenery{display:flex;justify-content:space-between;margin:0 9%;font-size:2rem}.city-route .ot-route-board{background:linear-gradient(155deg,#e9f3db,#e2f3ff 58%,#fff0c8)}.glow-trail .ot-route-board{background:radial-gradient(circle at 50% 50%,#fff9c8,#dff5ff 58%,#e8e4ff)}.glow-trail .ot-route-board polyline{stroke:#64b9ef;filter:drop-shadow(0 0 8px #6ed8ff)}.ot-summary-card{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:15px 0;padding:15px;border:1px solid #d8e7ee;border-radius:17px;background:#f5fbfd}.ot-summary-card>div{display:grid;margin-right:auto}.ot-summary-card>span{padding:6px 9px;border-radius:99px;background:#fff;font-size:.76rem;font-weight:800}.ot-summary-card p{width:100%;margin:3px 0 0;display:flex;gap:5px;flex-wrap:wrap}
@keyframes otShipHover{0%,100%{transform:translateY(3px) rotate(-4deg)}50%{transform:translateY(-8px) rotate(4deg)}}@keyframes otRuleFlip{0%{transform:rotateY(90deg)}100%{transform:none}}@keyframes otConveyor{to{background-position:96px 0}}
@media(max-width:680px){.ot-privacy-choice{align-items:stretch;flex-direction:column}.ot-mode-picker{grid-template-columns:1fr}.comic-strip{gap:5px}.comic-strip>div{min-height:86px;padding:7px}.comic-strip span{font-size:2rem}.story-choice-cards,.tuner-controls,.comfort-controls{grid-template-columns:1fr 1fr}.coop-scene{grid-template-columns:1fr 1fr}.coop-project{grid-column:1/-1;grid-row:1}.timeline-card{grid-template-columns:40px 1fr}.timeline-card>div{grid-column:2}.route-scenery{font-size:1.5rem}.ot-round-meta{justify-content:flex-start}}
@media(prefers-reduced-motion:reduce){.rule-switch .conveyor{animation:none!important}.tuner-ship{animation:none!important}}

/* Epic occupational adventures: Phaser play surface, progression and accessible controls */
.epic-hub{display:grid;gap:26px}.epic-hero{position:relative;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(260px,.75fr);align-items:center;min-height:320px;padding:38px;border-radius:32px;overflow:hidden;background:radial-gradient(circle at 82% 24%,#ffe073 0 8%,transparent 30%),linear-gradient(135deg,#203d73,#382d73 68%,#683b80);color:#fff;box-shadow:0 20px 50px #2837552c}.epic-hero:before,.epic-hero:after{content:'✦';position:absolute;color:#ffe482;font-size:2.2rem;animation:epicTwinkle 2.6s ease-in-out infinite}.epic-hero:before{left:48%;top:16%}.epic-hero:after{right:5%;bottom:11%;animation-delay:-1.2s}.epic-hero h1{margin:.35rem 0 .6rem;font-size:clamp(2rem,5vw,3.7rem);line-height:1.08;color:#fff}.epic-hero p{max-width:720px;color:#e9f3ff;font-size:1.06rem}.epic-hero img{position:relative;z-index:2;width:100%;max-height:270px;object-fit:contain;filter:drop-shadow(0 18px 20px #090f294d);animation:epicHover 4s ease-in-out infinite}.epic-pills{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.epic-pills span{padding:8px 12px;border:1px solid #ffffff42;border-radius:99px;background:#ffffff17;color:#fff;font-size:.78rem;font-weight:850;backdrop-filter:blur(8px)}
.epic-world-card{--epic-accent:#ffc857;display:grid;gap:18px;padding:26px;border:2px solid #e7edf1;border-top:8px solid var(--epic-accent);border-radius:30px;background:linear-gradient(165deg,#fff,#fbfdff);box-shadow:0 14px 34px #30465e16}.epic-world-card.tone-sky{--epic-accent:#66bce8}.epic-world-card.tone-mint{--epic-accent:#62c4a3}.epic-world-card.tone-rose{--epic-accent:#ee8fa8}.epic-world-head{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:17px}.epic-world-head>span{display:grid;place-items:center;width:76px;height:76px;border-radius:24px;background:color-mix(in srgb,var(--epic-accent) 18%,white);font-size:2.7rem;box-shadow:inset 0 0 0 2px #fff}.epic-world-head h2{margin:2px 0;font-size:1.45rem}.epic-world-head p,.epic-world-head small{margin:0;color:#708092}.epic-world-progress{display:grid;place-items:end;min-width:110px}.epic-world-progress strong{font-size:1.45rem;color:#293a54}.epic-world-progress span{margin-top:5px;color:#db8b00;font-weight:900}.epic-system-tags{display:flex;gap:7px;flex-wrap:wrap}.epic-system-tags span{padding:6px 9px;border-radius:99px;background:#f0f5f7;color:#506578;font-size:.71rem;font-weight:800}.epic-chapters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.epic-chapters>section{padding:15px;border:1px solid #e4ecef;border-radius:22px;background:#fbfdfe}.epic-chapters header{display:flex;align-items:center;gap:10px;margin-bottom:12px}.epic-chapters header>span{display:grid;place-items:center;width:43px;height:43px;border-radius:14px;background:color-mix(in srgb,var(--chapter) 20%,white);font-size:1.35rem}.epic-chapters header>div{display:grid}.epic-chapters header small{color:#8795a2;font-size:.65rem;font-weight:850;letter-spacing:.12em}.epic-mission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.epic-mission{display:grid;grid-template-columns:29px 1fr;gap:1px 7px;min-height:68px;padding:9px;border:2px solid #e7eef1;border-radius:14px;background:#fff;color:#3b4c62;text-decoration:none;transition:.18s}.epic-mission>span{grid-row:1/3;display:grid;place-items:center;width:29px;height:29px;border-radius:10px;background:#fff3c7;color:#d48a08}.epic-mission strong{font-size:.78rem}.epic-mission small{color:#82909e;font-size:.66rem}.epic-mission:not(.locked):hover,.epic-mission:not(.locked):focus-visible{border-color:var(--epic-accent);transform:translateY(-2px);box-shadow:0 7px 15px #40596e17;outline:none}.epic-mission.done{background:#f3fbf5;border-color:#bfe5cc}.epic-mission.locked{opacity:.55;cursor:not-allowed;filter:grayscale(.4)}
.epic-play-page{display:grid;gap:15px;max-width:1280px;margin:auto}.epic-play-nav{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px}.epic-play-nav>div{display:grid}.epic-play-nav small{color:#718193}.epic-game-shell{position:relative;display:grid;gap:13px;padding:16px;border:2px solid #e2eaf0;border-radius:28px;background:linear-gradient(145deg,#fff,#f5f9fb);box-shadow:0 18px 46px #2941531c}.epic-hud{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:12px;padding:12px 15px;border-radius:19px;background:#263552;color:#fff}.epic-hud>div{display:grid}.epic-hud small{color:#bac9d8;font-size:.68rem}.epic-hud strong{font-size:.92rem}.epic-score{min-width:125px;padding:7px 14px;border-radius:14px;background:#ffffff16;text-align:center}.epic-score strong{display:inline;color:#ffdb70;font-size:1.45rem}.epic-score span{color:#b9c7d6;font-size:.7rem}.epic-stage-wrap{position:relative;aspect-ratio:16/9;min-height:300px;border-radius:23px;background:#172952;overflow:hidden;box-shadow:inset 0 0 0 4px #fff,0 10px 24px #29415e23}.epic-stage-wrap canvas{display:block;width:100%!important;height:100%!important;touch-action:none}.epic-pause-layer{position:absolute;inset:0;z-index:8;place-items:center;align-content:center;padding:25px;background:#182846e8;color:#fff;text-align:center;backdrop-filter:blur(7px)}.epic-pause-layer:not([hidden]){display:grid}.epic-pause-layer>span{font-size:3rem}.epic-pause-layer h2{color:#fff}.epic-pause-layer p{color:#d6e5f3}.epic-message{display:grid;grid-template-columns:92px 1fr;align-items:center;gap:13px;padding:10px 15px;border:2px solid #f3df9d;border-radius:20px;background:#fff9df}.epic-message img{width:92px;height:68px;border-radius:15px;object-fit:cover;object-position:45% 47%}.epic-message>div{display:grid}.epic-message small{color:#8e712c;font-size:.67rem;font-weight:850}.epic-message strong{color:#4e4328}.epic-semantic-controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:9px}.epic-action-card{display:grid;grid-template-columns:43px 1fr;grid-template-rows:auto auto;align-items:center;gap:1px 9px;min-height:72px;padding:10px 12px;border:2px solid #dce7ec;border-radius:17px;background:#fff;color:#33475d;text-align:left;font:inherit;cursor:pointer;box-shadow:0 4px 0 #dce5e9;transition:.15s}.epic-action-card>span{grid-row:1/3;display:grid;place-items:center;width:43px;height:43px;border-radius:13px;background:#eef7fa;font-size:1.4rem}.epic-action-card strong{font-size:.8rem}.epic-action-card small{color:#738393;font-size:.66rem}.epic-action-card:hover,.epic-action-card:focus-visible{border-color:#f2b33e;transform:translateY(-2px);outline:4px solid #ffecae}.epic-controls{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}.epic-score-buckets{display:grid;grid-template-columns:repeat(6,1fr);gap:7px}.epic-score-buckets>div{position:relative;display:grid;gap:2px;padding:9px 10px 13px;border-radius:13px;background:#eef4f6;overflow:hidden}.epic-score-buckets span{color:#68798a;font-size:.64rem}.epic-score-buckets strong{font-size:.82rem}.epic-score-buckets i{position:absolute;left:0;bottom:0;width:var(--value);height:4px;background:linear-gradient(90deg,#65c8ae,#ffd05b);transition:width .25s}.epic-reflection{display:grid;grid-template-columns:1fr auto;align-items:center;gap:15px;padding:16px;border:2px solid #ffe090;border-radius:20px;background:linear-gradient(135deg,#fff7cc,#eefaf3)}.epic-reflection>div:first-child{display:flex;align-items:center;gap:12px}.epic-reflection>div:first-child>span{font-size:2.4rem}.epic-reflection>div:first-child>div{display:grid}.epic-reflection small{color:#7e724c}.epic-rating{display:flex;gap:6px;flex-wrap:wrap}.epic-rating button{padding:10px;border:2px solid #fff;border-radius:13px;background:#fff;color:#405267;font-weight:850;cursor:pointer}.epic-rating button:hover,.epic-rating button:focus-visible{border-color:#f1af35;outline:3px solid #ffe8a0}.epic-settings{grid-column:1/-1;display:flex;align-items:end;justify-content:center;gap:12px;padding:15px;border:2px solid #d8e6eb;border-radius:18px;background:#f4fafb}.epic-settings label{display:grid;gap:5px;color:#536679;font-size:.74rem;font-weight:850}.epic-settings select{min-width:150px;padding:10px;border:2px solid #cddde3;border-radius:12px;background:#fff;color:#2e4258;font:inherit}
.epic-result{position:relative;display:grid;place-items:center;gap:10px;min-height:650px;padding:38px;border-radius:24px;background:radial-gradient(circle at 50% 18%,#fff4ab,#e3f7ef 45%,#e9eeff);text-align:center;overflow:hidden}.epic-result:before,.epic-result:after{content:'✦';position:absolute;color:#f4b62f;font-size:5rem;animation:epicTwinkle 2s infinite}.epic-result:before{left:8%;top:12%}.epic-result:after{right:9%;top:21%;animation-delay:-.7s}.epic-result-icon{font-size:5rem;filter:drop-shadow(0 8px 6px #4c56642d)}.epic-result h2{margin:0}.epic-result>strong{font-size:3rem;color:#263552}.epic-result>strong em{font-size:1rem;font-style:normal}.epic-result-stars{color:#efa617;font-size:2rem;letter-spacing:.15em}.epic-result-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;width:min(670px,100%)}.epic-result-grid>div{display:grid;padding:10px;border-radius:14px;background:#ffffffc9}.epic-result-grid small{color:#738292}.epic-new-best{position:absolute;right:22px;top:22px;padding:9px 13px;border-radius:99px;background:#273653;color:#ffdb69;transform:rotate(4deg)}
body:has(.epic-game-shell) .child-page{max-width:1320px}.epic-play-page:has(.epic-settings) .epic-settings{animation:epicSlide .25s ease-out}
@keyframes epicHover{0%,100%{transform:translateY(2px) rotate(-1deg)}50%{transform:translateY(-9px) rotate(1deg)}}@keyframes epicTwinkle{0%,100%{transform:scale(.8) rotate(-8deg);opacity:.45}50%{transform:scale(1.25) rotate(8deg);opacity:1}}@keyframes epicSlide{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
@media(max-width:900px){.epic-hero{grid-template-columns:1fr;min-height:auto;padding:28px}.epic-hero img{max-height:210px}.epic-chapters{grid-template-columns:1fr}.epic-hud{grid-template-columns:1fr 1fr}.epic-hud>div:first-child{grid-column:1/-1}.epic-score-buckets{grid-template-columns:repeat(3,1fr)}.epic-reflection{grid-template-columns:1fr}.epic-play-nav{grid-template-columns:auto 1fr}.epic-play-nav>button{grid-column:1/-1}.epic-world-head{grid-template-columns:auto 1fr}.epic-world-progress{grid-column:1/-1;grid-template-columns:auto 1fr auto;place-items:center start;gap:8px}}
@media(max-width:600px){.epic-hero{padding:22px;border-radius:24px}.epic-hero h1{font-size:2.25rem}.epic-world-card{padding:15px;border-radius:23px}.epic-world-head>span{width:58px;height:58px;font-size:2rem}.epic-world-head h2{font-size:1.08rem}.epic-mission-grid{grid-template-columns:1fr}.epic-play-nav{grid-template-columns:1fr}.epic-play-nav>a,.epic-play-nav>button{width:100%}.epic-game-shell{padding:9px;border-radius:20px}.epic-stage-wrap{min-height:210px}.epic-hud{grid-template-columns:1fr 1fr}.epic-hud>div:first-child{grid-column:1/-1}.epic-message{grid-template-columns:62px 1fr}.epic-message img{width:62px;height:55px}.epic-semantic-controls{grid-template-columns:1fr 1fr}.epic-action-card{grid-template-columns:34px 1fr;padding:8px}.epic-action-card>span{width:34px;height:34px}.epic-score-buckets{grid-template-columns:repeat(2,1fr)}.epic-controls .button{flex:1 1 42%}.epic-settings{align-items:stretch;flex-direction:column}.epic-settings select{width:100%}.epic-result{min-height:570px;padding:24px 13px}.epic-result-grid{grid-template-columns:repeat(2,1fr)}}
@media(prefers-reduced-motion:reduce){.epic-hub *,.epic-game-shell *{animation:none!important;transition:none!important}}

/* WarmSun Game System V3 */
.v3-picker{display:grid;gap:18px}.v3-picker-world,.v3-live-world{overflow:hidden;border-radius:24px;background:#172454;min-height:150px}.v3-picker-world canvas,.v3-live-world canvas{display:block!important;width:100%!important;height:auto!important}.v3-live-world{margin:0 0 16px;min-height:110px}.v3-picker-head{display:flex;align-items:center;justify-content:space-between;gap:22px}.v3-picker-head h3{font-size:1.65rem;margin:8px 0}.v3-picker-head p{margin:0;color:var(--muted)}.v3-picker-progress{display:grid;min-width:132px;padding:16px;text-align:center;border-radius:22px;background:#fff7d9;border:1px solid #f4d76b}.v3-picker-progress strong{font-size:1.8rem;color:#513d80}.v3-picker-progress span{color:#8a6418;font-weight:800}.v3-picker-settings{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:14px;border-radius:20px;background:#f7f8ff}.v3-picker-settings label{display:grid;gap:7px;font-weight:800}.v3-picker-settings select{min-height:46px;border:1px solid #cfd6e7;border-radius:14px;background:white;padding:0 12px;font:inherit}.v3-mission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-height:55vh;overflow:auto;padding:2px}.v3-mission-card{display:grid;grid-template-columns:52px 1fr;gap:12px;text-align:left;border:1px solid #dfe4f1;background:#fff;border-radius:20px;padding:14px;color:#27324b;cursor:pointer;box-shadow:0 8px 22px rgba(37,48,82,.07);transition:transform .18s,box-shadow .18s,border-color .18s}.v3-mission-card:hover,.v3-mission-card:focus-visible{transform:translateY(-2px);border-color:#7564c8;box-shadow:0 12px 28px rgba(61,47,124,.15)}.v3-mission-card>span{display:grid;place-items:center;width:48px;height:48px;border-radius:16px;background:#ede9ff;color:#563f9a;font-size:1.2rem;font-weight:900}.v3-mission-card.done>span{background:#fff0a8;color:#805b00}.v3-mission-card div{display:grid;gap:3px}.v3-mission-card strong{font-size:1.02rem}.v3-mission-card small{color:#6f6a9e;font-weight:800}.v3-mission-card p{margin:2px 0;color:#5f687c;line-height:1.45}.v3-mission-card em{font-style:normal;color:#237b68;font-weight:800;font-size:.82rem}
.v3-score-hud{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:14px;margin:12px 0;padding:12px 14px;border-radius:18px;background:rgba(20,28,73,.88);color:#fff;position:relative;z-index:2}.v3-score-hud>strong{font-size:1.45rem;color:#ffe36e}.v3-score-hud>strong small{font-size:.72rem;color:#fff}.v3-score-hud>div{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}.v3-score-hud span{padding:6px;border-radius:9px;background:rgba(255,255,255,.1);font-size:.72rem;text-align:center}.v3-result-buckets{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:12px 0}.v3-result-buckets span{display:flex;justify-content:space-between;gap:8px;padding:9px 11px;border-radius:12px;background:#f3f0ff;color:#51467b}.game-quality summary{cursor:pointer}.game-quality[open]{display:grid;gap:7px;text-align:left}.game-quality[open] span{display:block}
.v3-base{display:grid;gap:22px}.v3-base-hero{display:grid;grid-template-columns:1.2fr .8fr;align-items:center;overflow:hidden;min-height:300px;padding:34px;border-radius:30px;color:#fff;background:radial-gradient(circle at 76% 20%,#ffd865 0 4%,transparent 18%),linear-gradient(135deg,#28205c,#4d4194 58%,#1e7891);box-shadow:0 18px 45px rgba(41,35,91,.2)}.v3-base-hero h1{font-size:clamp(2rem,5vw,3.5rem);margin:6px 0;color:#fff}.v3-base-hero p{max-width:590px;color:#f1efff}.v3-base-hero img{width:100%;max-height:280px;object-fit:contain;filter:drop-shadow(0 18px 26px rgba(0,0,0,.28))}.v3-base-light{display:inline-grid;margin-top:15px;padding:12px 20px;border-radius:18px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.28)}.v3-base-light strong{font-size:2rem;color:#ffe477}.v3-base-buildings{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.v3-base-buildings article{padding:18px 12px;text-align:center;border:1px solid #dfe3ef;border-radius:22px;background:#fff}.v3-base-buildings article span{font-size:2.5rem}.v3-base-buildings article h3{margin:8px 0 4px}.v3-base-buildings article p{margin:0;color:#737b8d;font-size:.84rem}.v3-base-buildings article.locked{filter:grayscale(.75);opacity:.62}.v3-base-buildings article.open{background:linear-gradient(#fffdf3,#fff8ce);border-color:#efd267;box-shadow:0 10px 28px rgba(139,106,20,.12)}
@media(max-width:760px){.v3-picker-head{align-items:flex-start;flex-direction:column}.v3-picker-progress{width:100%}.v3-picker-settings,.v3-mission-grid{grid-template-columns:1fr}.v3-mission-grid{max-height:none}.v3-live-world{min-height:80px}.v3-score-hud{grid-template-columns:1fr}.v3-score-hud>div{grid-template-columns:repeat(3,1fr)}.v3-base-hero{grid-template-columns:1fr;padding:24px}.v3-base-hero img{max-height:190px}.v3-base-buildings{grid-template-columns:repeat(2,1fr)}.v3-result-buckets{grid-template-columns:repeat(2,1fr)}}
@media(prefers-reduced-motion:reduce){.v3-mission-card:hover{transform:none}.v3-picker-world,.v3-live-world{scroll-behavior:auto}}

/* First three choice games: full play surfaces */
.choice-v3-game{display:grid;gap:12px;padding:14px;border-radius:26px;background:linear-gradient(145deg,#f8fbff,#fff8df);box-shadow:0 14px 34px rgba(33,49,81,.13)}.choice-v3-game>header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 15px;border-radius:18px;background:#27365f;color:#fff}.choice-v3-game>header>div{display:grid;gap:2px}.choice-v3-game>header>div:last-child{justify-items:end}.choice-v3-game>header small{color:#cbd8ea;font-weight:800}.choice-v3-game>header strong{font-size:1.15rem}.choice-v3-game>header b{color:#ffe27a;font-size:1.25rem}.choice-v3-game>header span{font-size:.76rem;color:#d9e3ef}.choice-v3-canvas{position:relative;width:100%;aspect-ratio:16/9;min-height:320px;overflow:hidden;border:5px solid #fff;border-radius:24px;background:#203966;box-shadow:0 10px 26px rgba(25,48,75,.2)}.choice-v3-canvas canvas{display:block;width:100%!important;height:100%!important;touch-action:none}.choice-v3-message{min-height:54px;padding:13px 17px;border:2px solid #f1ce6c;border-radius:17px;background:#fff7cf;color:#4d4427;font-size:1rem;font-weight:850;text-align:center}.choice-v3-controls{display:flex;align-items:center;justify-content:center;gap:9px;flex-wrap:wrap}.choice-v3-controls>button,.choice-dpad button{min-height:50px;padding:10px 15px;border:2px solid #d8e3e9;border-radius:15px;background:#fff;color:#30465c;font:inherit;font-weight:850;cursor:pointer;box-shadow:0 4px 0 #d7e0e5}.choice-v3-controls button:hover,.choice-v3-controls button:focus-visible{transform:translateY(-2px);border-color:#f2b743;outline:4px solid #ffe9a4}.choice-v3-controls .primary{background:#ffcf58;border-color:#efb62d;color:#483616}.choice-dpad{display:grid;grid-template-columns:repeat(4,50px);gap:5px}.choice-dpad button{min-width:50px;padding:8px;font-size:1.25rem}.choice-v3-help{margin:0;text-align:center;color:#647487;font-size:.76rem}.ot-game-card:has(button[data-game-id="choice-l1"]),.ot-game-card:has(button[data-game-id="choice-l2"]),.ot-game-card:has(button[data-game-id="choice-l3"]){border-top:7px solid #ffbd45;background:linear-gradient(155deg,#fff,#fff5d3)}
@media(max-width:700px){.choice-v3-game{padding:8px}.choice-v3-game>header{align-items:flex-start;flex-direction:column}.choice-v3-game>header>div:last-child{justify-items:start}.choice-v3-canvas{min-height:235px;border-width:3px}.choice-v3-controls{display:grid;grid-template-columns:1fr 1fr}.choice-dpad{grid-column:1/-1;grid-template-columns:repeat(4,1fr)}.choice-v3-controls>button{width:100%}.choice-v3-message{text-align:left;font-size:.9rem}}
@media(prefers-reduced-motion:reduce){.choice-v3-game *{transition:none!important}.choice-v3-controls button:hover{transform:none}}

/* Star Cargo Factory: upper-limb MediaPipe flagship game */
.cargo-start-options{display:grid;grid-template-columns:minmax(180px,1fr) repeat(2,minmax(0,1fr));gap:10px;margin:14px 0;padding:13px;border-radius:18px;background:linear-gradient(120deg,#eefcff,#fff7d6);border:1px solid #cde8eb}.cargo-start-options label{display:grid;gap:5px;color:#344c67;font-size:.82rem;font-weight:900}.cargo-start-options select{min-height:43px;border:1px solid #bdd4df;border-radius:12px;background:#fff;padding:8px 11px;color:#2b415b;font-weight:800}.cargo-start-options span{display:flex;align-items:center;padding:10px 12px;border-radius:13px;background:#ffffffc9;color:#4e6175;font-size:.8rem;font-weight:800}
.cargo-stage{isolation:isolate;background:radial-gradient(circle at 50% 40%,#225980 0,#132b58 46%,#101735 100%);border:5px solid #d4fbff;box-shadow:inset 0 0 50px #66e5ff3f,0 14px 34px #142c5752}.cargo-stage:before{content:"";position:absolute;z-index:1;inset:3%;border-radius:50%;border:8px solid #79e2e7;box-shadow:inset 0 0 30px #61dce688,0 0 24px #52d3e577;pointer-events:none;animation:cargo-portal 2.4s ease-in-out infinite}.cargo-stage:after{content:"";position:absolute;z-index:1;inset:0;pointer-events:none;background:linear-gradient(90deg,#101735a8,transparent 15% 85%,#101735a8),linear-gradient(#10173575,transparent 22% 78%,#10173580)}.cargo-stage .game-camera{z-index:0;opacity:.72;filter:saturate(.62) contrast(1.08)}.cargo-stage.portal-view .game-camera{opacity:.16;filter:saturate(.2) contrast(1.4) blur(1px)}.cargo-stage .game-canvas{z-index:2}.cargo-stage .game-phase-banner{z-index:4;right:245px}.cargo-stage .game-phase-banner>*{background:#14274de6;color:#f5fcff;border:1px solid #8ce9ef;box-shadow:0 5px 18px #081c3f80}.cargo-order{position:absolute;z-index:5;right:15px;top:14px;display:grid;min-width:220px;padding:10px 13px;border-radius:17px;background:#fff9dff0;color:#283b55;box-shadow:0 7px 22px #071a3b55;border:2px solid #ffe07b}.cargo-order span,.cargo-order small{font-size:.7rem;font-weight:900;color:#82651f}.cargo-order strong{margin:2px 0;font-size:.86rem}.cargo-stage-actions{position:absolute;z-index:6;left:16px;bottom:68px;display:flex;gap:7px;flex-wrap:wrap}.cargo-stage-actions button{min-height:40px;border:2px solid #b9f5f1;border-radius:13px;padding:8px 12px;background:#14284ddd;color:#fff;font-weight:900;box-shadow:0 5px 14px #08173580}.cargo-stage-actions button:hover,.cargo-stage-actions button:focus-visible{background:#245085;transform:translateY(-2px)}.cargo-stage .game-stage-hint{z-index:7;background:#fffceff2;border:2px solid #ffe174;color:#34435a}.cargo-result-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:13px 0}.cargo-result-strip span{display:grid;gap:2px;padding:10px 8px;border-radius:14px;background:linear-gradient(145deg,#eefcff,#fff7dd);color:#53667c;font-size:.76rem}.cargo-result-strip b{font-size:1.25rem;color:#293f5b}.motion-prescription{margin:16px 0;border:1px solid #cfe2ea;border-radius:17px;background:#f5fbfd;padding:0 15px}.motion-prescription summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;cursor:pointer;color:#35536b}.motion-prescription summary span{font-size:.76rem;color:#77889a}.motion-prescription[open]{padding-bottom:16px}.motion-rx-summary{margin-top:7px;padding:8px 10px;border-radius:10px;background:#eef9fb;color:#41657a;font-size:.76rem;font-weight:800}
@keyframes cargo-portal{0%,100%{border-color:#79e2e7;box-shadow:inset 0 0 26px #61dce677,0 0 18px #52d3e566}50%{border-color:#ffe27a;box-shadow:inset 0 0 42px #79e2e799,0 0 32px #ffe27a88}}
@media(max-width:700px){.cargo-start-options{grid-template-columns:1fr}.cargo-stage .game-phase-banner{right:12px;top:8px;align-items:flex-start}.cargo-stage .game-phase-banner>*{padding:6px 9px;font-size:.68rem}.cargo-order{top:54px;right:9px;min-width:0;max-width:64%;padding:7px 9px}.cargo-order strong{font-size:.72rem}.cargo-stage-actions{left:9px;right:9px;bottom:66px}.cargo-stage-actions button{flex:1;padding:7px 5px;font-size:.72rem}.cargo-result-strip{grid-template-columns:repeat(2,1fr)}.motion-prescription summary{align-items:flex-start;flex-direction:column}}
@media(prefers-reduced-motion:reduce){.cargo-stage:before{animation:none}.cargo-stage-actions button:hover{transform:none}}

/* Motion Games V4 */
.motion-v4-stage{isolation:isolate;background:radial-gradient(circle at 50% 42%,#275d83,#172852 50%,#101633);border:5px solid #d2f7ff;box-shadow:inset 0 0 55px #69e5f344,0 16px 38px #13274c55}.motion-v4-stage:before{content:"";position:absolute;z-index:1;inset:2.8%;border-radius:48%;border:8px solid #74e3e6;box-shadow:inset 0 0 30px #5bdae780,0 0 26px #4ed7e777;pointer-events:none;animation:motion-v4-portal 2.7s ease-in-out infinite}.motion-v4-stage:after{content:"";position:absolute;z-index:1;inset:0;pointer-events:none;background:linear-gradient(90deg,#101733aa,transparent 14% 86%,#101733aa),linear-gradient(#10173366,transparent 20% 78%,#10173377)}.motion-v4-stage .game-camera{z-index:0;opacity:.7;filter:saturate(.65) contrast(1.08)}.motion-v4-stage.portal-view .game-camera{opacity:.15;filter:saturate(.25) contrast(1.35) blur(1px)}.motion-v4-canvas{position:absolute;z-index:2;inset:0;width:100%;height:100%}.motion-v4-canvas canvas{display:block!important;width:100%!important;height:100%!important;object-fit:contain}.motion-v4-stage .game-phase-banner{z-index:5;right:250px}.motion-v4-stage .game-phase-banner>*{background:#13264de6;color:#f5fcff;border:1px solid #86e8ee}.motion-v4-order{position:absolute;z-index:6;right:15px;top:14px;display:grid;min-width:225px;padding:10px 13px;border:2px solid #ffe07a;border-radius:17px;background:#fff9dff0;color:#2b3e57;box-shadow:0 7px 22px #071a3b55}.motion-v4-order span,.motion-v4-order small{font-size:.7rem;font-weight:900;color:#82651f}.motion-v4-order strong{margin:2px 0;font-size:.86rem}.motion-v4-actions{z-index:7}.motion-v4-stage .game-stage-hint{z-index:8;border:2px solid #ffe17a}.motion-v4-stage.low-stimulation:before{animation-duration:5s;opacity:.62}.motion-v4-stage.low-stimulation .game-camera{filter:saturate(.35)}.motion-v4-stage.reduced:before{animation:none;opacity:.45}.motion-v4-stage.reduced *{transition:none!important}.motion-v4-stage.reduced .game-camera{filter:grayscale(.25)}
@keyframes motion-v4-portal{0%,100%{border-color:#74e3e6;box-shadow:inset 0 0 26px #5bdae766,0 0 18px #4ed7e766}50%{border-color:#ffe278;box-shadow:inset 0 0 42px #75e3e899,0 0 34px #ffe27877}}
@media(max-width:700px){.motion-v4-stage .game-phase-banner{right:9px;top:7px}.motion-v4-order{top:53px;right:8px;max-width:68%;min-width:0;padding:7px 9px}.motion-v4-order strong{font-size:.72rem}.motion-v4-actions{left:8px;right:8px}.motion-v4-actions button{font-size:.72rem;padding:7px 4px}}
@media(prefers-reduced-motion:reduce){.motion-v4-stage:before{animation:none}.motion-v4-stage *{transition:none!important}}

/* OT PLAY V4 — direct manipulation games */
.ot-v4-game{display:grid;gap:11px;padding:13px;border-radius:27px;background:linear-gradient(145deg,#f8fbff,#fff7d9);box-shadow:0 16px 38px #21315120}.ot-v4-game>header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 16px;border-radius:18px;background:#23375f;color:#fff}.ot-v4-game>header>div{display:grid;gap:2px}.ot-v4-game>header>div:last-child{justify-items:end}.ot-v4-game header small{color:#cfe0ed;font-weight:850}.ot-v4-game header strong{font-size:1.14rem}.ot-v4-game header b{color:#ffe47a;font-size:1.22rem}.ot-v4-game header span{font-size:.75rem;color:#dbe6ef}.ot-v4-resource-bar{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}.ot-v4-resource-bar span{padding:7px 11px;border-radius:99px;background:#fff;color:#4a5c70;font-size:.76rem;font-weight:850;box-shadow:0 3px 9px #33475c12}.ot-v4-resource-bar b{color:#dd783d}.ot-v4-progress{height:9px;border-radius:99px;background:#e5edf0;overflow:hidden}.ot-v4-progress i{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#4fc9ac,#ffd15d);transition:width .3s ease}.ot-v4-canvas{position:relative;width:100%;aspect-ratio:16/9;min-height:320px;overflow:hidden;border:5px solid #fff;border-radius:25px;background:#173451;box-shadow:0 11px 27px #19365035}.ot-v4-canvas canvas{display:block;width:100%!important;height:100%!important;touch-action:none}.ot-v4-message{min-height:55px;padding:13px 17px;border:2px solid #f0cb65;border-radius:17px;background:#fff7cf;color:#4d4427;font-size:1rem;font-weight:850;text-align:center}.ot-v4-controls{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}.ot-v4-controls button,.ot-v4-dpad button{min-height:49px;padding:9px 14px;border:2px solid #d8e3e9;border-radius:15px;background:#fff;color:#30465c;font:inherit;font-weight:850;cursor:pointer;box-shadow:0 4px 0 #d2dde3;transition:transform .15s,box-shadow .15s}.ot-v4-controls button:hover,.ot-v4-controls button:focus-visible{transform:translateY(-3px);outline:4px solid #ffe99c}.ot-v4-controls .primary{background:#ffd15e;border-color:#efb72d;color:#493716}.ot-v4-dpad{display:grid;grid-template-columns:repeat(4,48px);gap:5px}.ot-v4-dpad button{min-width:48px;padding:7px;font-size:1.18rem}.ot-v4-help{margin:0;text-align:center;color:#637487;font-size:.76rem}.ot-game-card:has(button[data-game-id="choice-l5"]),.ot-game-card:has(button[data-game-id="routine-l5"]),.ot-game-card:has(button[data-game-id="executive-l3"]),.ot-game-card:has(button[data-game-id="regulation-l5"]),.ot-game-card:has(button[data-game-id="social-l3"]),.ot-game-card:has(button[data-game-id="social-l4"]),.ot-game-card:has(button[data-game-id="social-l5"]),.ot-game-card:has(button[data-game-id="school-l2"]),.ot-game-card:has(button[data-game-id="school-l4"]),.ot-game-card:has(button[data-game-id="school-l5"]),.ot-game-card:has(button[data-game-id="community-l2"]),.ot-game-card:has(button[data-game-id="community-l4"]),.ot-game-card:has(button[data-game-id="community-l5"]){border-top:7px solid #56c8b1;background:linear-gradient(155deg,#fff,#effff9)}
@media(max-width:700px){.ot-v4-game{padding:8px}.ot-v4-game>header{align-items:flex-start;flex-direction:column}.ot-v4-game>header>div:last-child{justify-items:start}.ot-v4-canvas{min-height:235px;border-width:3px}.ot-v4-controls{display:grid;grid-template-columns:1fr 1fr}.ot-v4-dpad{grid-column:1/-1;grid-template-columns:repeat(4,1fr)}.ot-v4-controls>button{width:100%}.ot-v4-message{text-align:left;font-size:.9rem}}
@media(prefers-reduced-motion:reduce){.ot-v4-game *{transition:none!important}.ot-v4-controls button:hover{transform:none}}

/* Touch OT V5 — phone and tablet direct play */
.ot-touch-v5-game{--touch-accent:#ffc84f;display:grid;gap:12px;max-width:1120px;margin:auto;padding:14px;border-radius:28px;background:linear-gradient(145deg,#f5fbff,#fff5d6);box-shadow:0 18px 42px #20365324;overflow:clip}.ot-touch-v5-game.kind-wardrobe{--touch-accent:#ff9fae;background:linear-gradient(145deg,#fff7f2,#eefaff)}.ot-touch-v5-game.kind-rhythm{--touch-accent:#8ddbb7;background:linear-gradient(145deg,#f0fff8,#f1efff)}
.ot-touch-v5-game>header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 17px;border-radius:19px;background:#22375f;color:#fff}.ot-touch-v5-game>header>div{display:grid;gap:2px}.ot-touch-v5-game>header>div:last-child{justify-items:end}.ot-touch-v5-game header small{color:#cee1ef;font-weight:850}.ot-touch-v5-game header strong{font-size:1.14rem}.ot-touch-v5-game header b{color:#ffe57a;font-size:1.25rem}.ot-touch-v5-game header span{font-size:.76rem;color:#dbe8f0}
.touch-v5-resource{display:flex;align-items:center;justify-content:center;gap:9px;flex-wrap:wrap}.touch-v5-resource span{padding:7px 12px;border-radius:99px;background:#fff;color:#465b70;font-size:.77rem;font-weight:850;box-shadow:0 3px 10px #33475c14}.touch-v5-resource b{color:#d87832}.touch-v5-progress{height:10px;border-radius:99px;background:#dfeaec;overflow:hidden}.touch-v5-progress i{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#52c9ad,var(--touch-accent));transition:width .28s ease}
.touch-v5-canvas{position:relative;width:100%;aspect-ratio:16/9;min-height:320px;overflow:hidden;border:5px solid #fff;border-radius:26px;background:#173755;box-shadow:0 12px 28px #19365035;touch-action:none;overscroll-behavior:contain}.touch-v5-canvas canvas{display:block;width:100%!important;height:100%!important;touch-action:none}.touch-v5-message{min-height:56px;padding:13px 18px;border:2px solid #efcc69;border-radius:18px;background:#fff8d3;color:#4e4529;font-size:1rem;font-weight:850;text-align:center}.touch-v5-controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:12px}.touch-v5-controls button{min-width:56px;min-height:56px;padding:10px 14px;border:2px solid #d4e1e7;border-radius:16px;background:#fff;color:#2f475e;font:inherit;font-weight:850;cursor:pointer;box-shadow:0 5px 0 #cfdae0;transition:transform .15s,box-shadow .15s,border-color .15s}.touch-v5-controls button:hover,.touch-v5-controls button:focus-visible{transform:translateY(-3px);border-color:var(--touch-accent);outline:4px solid #ffe99c}.touch-v5-controls .primary{background:var(--touch-accent);border-color:#eeb434;color:#493716}.touch-v5-help{margin:0;text-align:center;color:#607386;font-size:.77rem}
.ot-game-card:has(button[data-game-id="hands-l6"]),.ot-game-card:has(button[data-game-id="routine-l6"]),.ot-game-card:has(button[data-game-id="regulation-l6"]){border-top:8px solid #ffc84f;background:linear-gradient(155deg,#fff,#fff7d5);box-shadow:0 15px 32px #4c617424}.ot-game-card:has(button[data-game-id="routine-l6"]){border-top-color:#ff98a9}.ot-game-card:has(button[data-game-id="regulation-l6"]){border-top-color:#69cfa8}
.ot-touch-v5-game.phone-portrait .touch-v5-message{border-radius:16px}.ot-touch-v5-game.phone-landscape{max-width:980px}.ot-touch-v5-game.tablet-landscape{max-width:1120px}
@media(max-width:700px){.ot-touch-v5-game{padding:8px;border-radius:21px}.ot-touch-v5-game>header{align-items:flex-start;flex-direction:column;padding:10px 13px}.ot-touch-v5-game>header>div:last-child{justify-items:start}.touch-v5-canvas{min-height:260px;aspect-ratio:4/3;border-width:3px}.touch-v5-message{text-align:left;font-size:.92rem}.touch-v5-controls{position:sticky;z-index:6;bottom:0;grid-template-columns:1fr 1fr;padding:8px 2px max(8px,env(safe-area-inset-bottom));background:linear-gradient(#fff0,#fff7e9 14%)}.touch-v5-controls button{width:100%;min-height:56px}.touch-v5-help{padding-bottom:max(4px,env(safe-area-inset-bottom))}}
@media(max-width:430px) and (orientation:portrait){.touch-v5-canvas{min-height:280px;aspect-ratio:1/1}.touch-v5-resource span:first-child{display:none}.touch-v5-controls{gap:9px}.touch-v5-controls button{padding:9px 7px;font-size:.86rem}}
@media(min-width:701px) and (orientation:portrait){.ot-touch-v5-game.tablet-portrait .touch-v5-canvas{aspect-ratio:4/3;min-height:420px}.ot-touch-v5-game.tablet-portrait .touch-v5-controls{grid-template-columns:repeat(3,1fr)}}
@media(orientation:landscape) and (max-height:600px){.ot-touch-v5-game{gap:7px;padding:8px}.ot-touch-v5-game>header{padding:7px 12px}.touch-v5-canvas{min-height:230px;aspect-ratio:16/7}.touch-v5-message{min-height:46px;padding:9px 13px}.touch-v5-controls button{min-height:56px;padding:7px 10px}.touch-v5-help{display:none}}
@media(prefers-reduced-motion:reduce){.ot-touch-v5-game *{animation:none!important;transition:none!important}.touch-v5-controls button:hover{transform:none}}
