/* ===== TOKENS & DASAR — Piko - EduFun (dari mockup, dipertahankan) ===== */
:root{--primary:#7955d9;--primary-dark:#6241bd;--primary-soft:#f0eafa;--ink:#272439;--muted:#747281;--line:#e8e6ed;--paper:#fcfbfd;--white:#fff;--sun:#ffce64;--green:#32826c;--font:'Plus Jakarta Sans',sans-serif;--shadow:0 3px 9px #33254806,0 1px 2px #33254805}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:24px}body{margin:0;color:var(--ink);background:var(--paper);font-family:var(--font);font-size:14px;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer;color:inherit}button{border:0}a{color:inherit;text-decoration:none}button:disabled{cursor:not-allowed}h1,h2,h3,h4,p{margin:0}svg{display:block}button{background:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid #9773ed;outline-offset:4px}::selection{background:#e4d5ff}input,select,textarea{color:var(--ink)}[hidden]{display:none!important}.icon{width:19px;height:19px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}.sprite{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}.wrap{width:min(1280px,calc(100% - 8.6vw));margin-inline:auto}.skip-link{position:fixed;top:-80px;left:16px;z-index:200;background:var(--ink);color:white;padding:12px 18px;border-radius:10px}.skip-link:focus{top:12px}.view{animation:appear .26s ease}@keyframes appear{from{opacity:.4;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:41px;padding:10px 17px;border-radius:10px;font-weight:750;font-size:13px;line-height:1.35;transition:background .18s,transform .18s,box-shadow .18s}.btn:hover{transform:translateY(-1px)}.btn:active{transform:translateY(0)}.btn-primary{background:var(--primary);color:white;box-shadow:0 2px 3px #6442b91a}.btn-primary:hover{background:var(--primary-dark)}.btn-light{background:white;border:1px solid var(--line)}.btn-light:hover{background:#f8f5fc;border-color:#d9cee9}.btn-soft{background:var(--primary-soft);color:var(--primary-dark)}.btn-danger{background:#bd435b;color:white}.btn .icon{width:17px;height:17px}.eyebrow{font-size:10px;letter-spacing:1.5px;font-weight:800;color:var(--primary-dark)}.muted{color:var(--muted)}.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}
/* ===== NAVIGASI SISWA ===== */
.site-header{height:76px;background:#fff;border-bottom:1px solid var(--line)}.header-inner{height:100%;display:flex;align-items:center;justify-content:space-between;gap:28px}.brand{display:inline-flex;align-items:center;gap:10px;padding:0;background:transparent;white-space:nowrap}.brand-mark{display:grid;place-items:center;width:41px;height:41px;border-radius:13px;background:linear-gradient(140deg,#9d78ef,#7350d1);box-shadow:inset 0 1px 1px #ffffff4a,0 3px 6px #7552bd22;transform:rotate(-3deg)}.brand-mark svg{width:29px;height:29px;color:white;transform:rotate(3deg)}.brand-name{font-size:25px;font-weight:800;letter-spacing:-1.4px;line-height:1}.brand-name em{color:var(--primary);font-style:normal}.top-nav,.nav-items{display:flex;align-items:center}.top-nav{gap:25px}.nav-items{gap:11px}.nav-link{display:inline-flex;align-items:center;gap:8px;padding:11px 15px;border-radius:10px;color:#686575;font-weight:650;font-size:13px;white-space:nowrap}.nav-link .icon{width:17px;height:17px}.nav-link:hover{background:#f6f3f9;color:var(--primary-dark)}.nav-link.active{background:var(--primary-soft);color:var(--primary-dark)}.nav-divider{height:23px;width:1px;background:var(--line)}.login-button{min-width:98px;min-height:39px}
/* ===== LANDING: HERO & ILUSTRASI ===== */
.hero{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:1.08fr 1fr;align-items:center;margin-top:25px;border:1px solid #e8ddf4;border-radius:23px;background-color:#efe7fa;background-image:linear-gradient(90deg,#eee8fa33,#f1e6fa00 55%,#e4d6f633),linear-gradient(#aa8ec414 1px,transparent 1px),linear-gradient(90deg,#aa8ec414 1px,transparent 1px);background-size:auto,26px 26px,26px 26px}.hero:before{position:absolute;content:'';width:430px;height:430px;border:1px solid #dccdf066;border-radius:50%;left:-310px;bottom:-380px;box-shadow:0 0 0 26px #decef022,0 0 0 50px #e4d4f333;z-index:-1}.hero-copy{padding:31px 0 32px 42px;position:relative;z-index:2}.hero-kicker{display:inline-flex;gap:7px;align-items:center;background:#ffffffb5;color:#7754bc;border:1px solid #ddd0ed;border-radius:20px;font-size:9px;font-weight:800;letter-spacing:1.2px;padding:6px 10px;line-height:1.1}.hero-kicker .icon{width:13px;height:13px;stroke-width:2}.hero h1{margin:13px 0 14px;font-weight:800;font-size:clamp(46px,4.04vw,62px);letter-spacing:-2.7px;line-height:1.075;color:#302741}.hero h1 .highlight{position:relative;display:inline-block;color:var(--primary);z-index:0}.word-underline{position:absolute;bottom:-5px;left:-1px;width:103%;height:12px;z-index:-1}.hero-description{color:#656071;font-size:13.5px;font-weight:500;line-height:1.75;letter-spacing:.01px}.hero-actions{display:flex;align-items:center;gap:22px;margin-top:23px}.start-button{padding:13px 20px;background:var(--sun);color:#3c3022;border:1px solid #efbf55;box-shadow:0 3px 0 #d4aa4f35;font-size:13.5px;min-height:44px}.start-button:hover{background:#ffc64b;box-shadow:0 4px 10px #c39c5030}.start-button .icon{width:14px;height:14px;fill:currentColor;stroke-width:1.5}.social-proof{display:flex;align-items:center;gap:9px}.avatar-stack{display:flex;align-items:center;padding-left:1px}.avatar-stack svg{width:30px;height:30px;position:relative;border:2px solid #f2eafa;border-radius:50%;overflow:hidden}.avatar-stack svg+svg{margin-left:-9px}.proof-copy{font-size:10px;line-height:1.6;color:#686173}.proof-copy strong{display:block;color:#41364e;font-size:11.5px;font-weight:800}.hero-art{position:relative;align-self:stretch;min-width:0}.hero-art>svg{position:absolute;inset:-1% 0 -1% -4%;width:104%;height:102%;overflow:visible}.hero-art .shine{transform-origin:center;animation:twinkle 4.5s ease-in-out infinite}@keyframes twinkle{0%,100%{opacity:1}50%{opacity:.65}}
/* ===== KOLEKSI GAME ===== */
.catalog{padding:32px 0 44px;scroll-margin-top:12px}.catalog-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.section-title{display:flex;align-items:center;gap:10px;font-size:29px;line-height:1.3;letter-spacing:-1.25px;font-weight:800}.title-sparks{width:26px;height:27px;color:#9877dc;transform:rotate(8deg)}.section-description{color:var(--muted);font-size:13px;margin-top:5px;line-height:1.65}.search-box{display:flex;align-items:center;gap:10px;min-width:218px;width:23%;height:40px;background:white;border:1px solid #e0dde7;border-radius:11px;padding:0 11px 0 14px;box-shadow:0 2px 3px #30203c02;color:#96919f}.search-box:focus-within{outline:3px solid #d8c9f6;border-color:#b89be2}.search-box .icon{width:16px;height:16px}.search-box input{border:0;outline:none!important;width:100%;min-width:0;background:transparent;font-size:12px}.search-box input::placeholder{color:#918c9c}.search-box kbd{border:1px solid #e5e2ea;border-radius:4px;color:#9d98a7;background:#f8f7fa;font:11px var(--font);padding:1px 6px}.filter-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:20px 0 18px}.filter-tabs{display:flex;gap:8px;align-items:center}.filter{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:34px;padding:8px 13px;border:1px solid #e3dfe9;border-radius:9px;font-size:11.5px;font-weight:650;background:#fff;color:#666170;transition:.16s}.filter .icon{width:14px;height:14px}.filter:hover{border-color:#bca3df;background:#faf7ff}.filter.active{color:#fff;border-color:var(--primary);background:var(--primary);box-shadow:0 2px 4px #7855c519}.game-count{display:flex;align-items:center;gap:7px;font-size:10.5px;color:#8b8595;white-space:nowrap}.game-count:before{content:'';width:5px;height:5px;border-radius:50%;background:#a69bb6}.game-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:21px}.game-card{min-width:0;background:white;border:1px solid #e6e1ec;border-radius:16px;overflow:hidden;box-shadow:var(--shadow);transition:transform .2s,box-shadow .2s}.game-card:hover{transform:translateY(-3px);box-shadow:0 7px 17px #3523480d}.game-art{height:clamp(146px,12.2vw,184px);position:relative;overflow:hidden;isolation:isolate}.art-math{background:linear-gradient(116deg,#e9ddfa,#d9c9f3)}.art-animal{background:linear-gradient(115deg,#e0f0d6,#b8dfc5)}.art-word{background:linear-gradient(115deg,#fff0d9,#ffddbb)}.art-speed{background:linear-gradient(115deg,#d9eefa,#bfddf4)}.art-shape{background:linear-gradient(115deg,#fbe0e9,#f5cadd)}.art-sound{background:linear-gradient(115deg,#faf0c7,#f7e5aa)}.artwork{position:absolute;inset:0;width:100%;height:100%}.game-art:before{content:'';position:absolute;inset:0;background-image:radial-gradient(#63546e18 .8px,transparent .9px);background-size:14px 14px;opacity:.6}.category-badge{display:inline-flex;align-items:center;gap:5px;font-size:10px;line-height:1.2;font-weight:750;border-radius:7px;padding:6px 9px;background:#f0e9fb;color:#7350ab}.game-art .category-badge{position:absolute;z-index:2;left:13px;top:13px;box-shadow:0 1px 4px #35234a08;background:#fffef9dc}.category-badge em{font-size:11px;font-family:system-ui;font-style:normal;line-height:1}.category-ipa{color:#37735d;background:#e6f4eb}.category-bahasa{color:#a86a35;background:#fff0df}.card-content{padding:16px 18px 0}.card-content h3{font-size:19px;font-weight:800;letter-spacing:-.65px;line-height:1.45}.card-content>p{font-size:12px;line-height:1.7;color:var(--muted);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.card-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #efedf2;margin-top:14px;padding:11px 0 12px}.card-metrics,.card-metric{display:flex;align-items:center}.card-metrics{gap:10px;color:#837d8d;font-size:10.5px;font-weight:550}.card-metric{gap:5px}.card-metric .icon{width:13px;height:13px}.metric-divider{height:10px;width:1px;background:#ddd8e5}.star{color:#dfac43;fill:#f6c45c;stroke-width:1.5}.play-card{color:#7351be;background:#f0eafa;font-size:11px;font-weight:750;min-height:31px;padding:7px 11px;border-radius:8px;gap:6px}.play-card .icon{width:11px;height:11px;fill:currentColor}.play-card:hover{background:#e4d8f8}.empty-state{padding:40px 20px;text-align:center;border:1px dashed #cebfdf;border-radius:14px;background:#faf7fe}.empty-state>.icon{width:30px;height:30px;margin:0 auto 10px;color:var(--primary)}.empty-state p{color:var(--muted);font-size:13px;margin:7px 0 15px}.foot{padding:19px 0 26px;border-top:1px solid var(--line);color:#918b98;display:flex;align-items:center;justify-content:space-between;font-size:11px;gap:20px}.foot strong{font-weight:750;color:#6c637b}.foot span{display:flex;align-items:center;gap:7px}.foot .icon{width:14px;height:14px}
/* ===== PLAYER SISWA ===== */
.player-wrap{max-width:1080px;padding-top:26px;padding-bottom:48px}.breadcrumbs{display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:12px;color:#81798d}.breadcrumbs button{font-size:inherit;padding:3px 0}.breadcrumbs button:hover{color:var(--primary)}.breadcrumbs .icon{width:12px;height:12px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:23px 0}.page-heading h1{font-size:34px;line-height:1.3;letter-spacing:-1.6px;font-weight:800}.page-heading p{font-size:13px;color:var(--muted);line-height:1.7;margin-top:5px}.player-shell,.panel{border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:var(--shadow);overflow:hidden}.screen-top{display:flex;align-items:center;justify-content:space-between;padding:13px 18px;background:#fdfcfe;border-bottom:1px solid var(--line)}.screen-label,.safe-label,.panel-title,.top-label{display:flex;align-items:center;gap:9px}.screen-label{font-size:12px;font-weight:750}.screen-label .icon{color:var(--primary);width:16px;height:16px}.safe-label{font-size:10px;font-weight:600;color:#43866e}.safe-label:before{content:'';width:6px;height:6px;border-radius:50%;background:#64ad91}.player-frame{display:block;width:100%;height:430px;border:0;background:#f0eafa}.player-meta{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;padding:17px 22px}.author,.player-numbers,.player-numbers span{display:flex;align-items:center}.author{gap:10px}.author svg.avatar{width:36px;height:36px;border-radius:50%}.author small{display:block;color:var(--muted);font-size:10px;margin-bottom:3px}.author strong{font-size:12px}.player-numbers{gap:18px;font-size:12px;color:#746d80}.player-numbers span{gap:6px}.player-numbers .icon{width:15px;height:15px}.about-game{display:flex;align-items:flex-start;gap:13px;padding:22px 0}.about-game>.icon{color:var(--primary);width:21px;height:21px}.about-game h3{font-size:15px;letter-spacing:-.3px}.about-game p{font-size:13px;color:var(--muted);margin-top:6px;line-height:1.7}
/* ===== RUANG GURU: SIDEBAR, STATISTIK & TABEL ===== */
.teacher-layout{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:100dvh}.sidebar{position:sticky;top:0;height:100dvh;display:flex;flex-direction:column;border-right:1px solid var(--line);background:#fff;padding:24px 16px 18px}.sidebar .brand{margin:0 4px 36px;gap:9px}.sidebar .brand-mark{width:35px;height:35px;border-radius:11px}.sidebar .brand-mark svg{width:25px;height:25px}.sidebar .brand-name{font-size:22px}.side-label{font-size:9px;font-weight:800;letter-spacing:1.8px;color:#9891a4;margin:0 13px 13px}.side-nav{display:grid;gap:5px}.side-button{width:100%;display:flex;align-items:center;gap:12px;font-size:12.5px;font-weight:650;padding:13px;border-radius:10px;color:#756d80;text-align:left}.side-button:hover{background:#f7f4fa}.side-button.active{color:var(--primary-dark);background:var(--primary-soft)}.side-button .icon{width:18px;height:18px}.side-spacer{flex:1;min-height:30px}.side-profile{border-top:1px solid var(--line);margin-top:12px;padding:17px 6px 0;display:flex;align-items:center;gap:10px}.side-profile>.avatar{width:37px;height:37px;border-radius:50%}.profile-name{font-size:12px;font-weight:800}.profile-role{font-size:10px;color:var(--muted);margin-top:3px}.admin-main{min-width:0;background:#f9f8fc}.admin-bar{height:70px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:0 34px;background:#fff}.admin-bar .breadcrumbs{font-size:11.5px}.demo-label{display:inline-flex;align-items:center;gap:7px;border:1px solid #e2d9ed;background:#faf6ff;color:#8265a4;font-size:10px;font-weight:700;padding:6px 10px;border-radius:20px}.demo-label:before{content:'';width:5px;height:5px;background:#a17dcb;border-radius:50%}.admin-content{padding:28px 34px 76px;max-width:1450px;margin-inline:auto}.admin-content .page-heading{margin:8px 0 22px}.admin-content .page-heading h1{font-size:31px}.stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 23px}.stat-card{display:flex;align-items:center;gap:14px;padding:20px;border-radius:15px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow)}.stat-bubble{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;color:#8056c8;background:#eee5fb;flex-shrink:0}.stat-bubble.mint{color:#4c967f;background:#e6f4ed}.stat-bubble.sun{color:#bd8e31;background:#fff3d9}.stat-bubble .icon{width:22px;height:22px}.stat-card small{font-size:10.5px;font-weight:600;color:#837b8f}.stat-card strong{display:block;font-size:26px;letter-spacing:-1px;margin-top:3px}.panel-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:19px 20px;border-bottom:1px solid var(--line)}.panel-title{font-size:15px;font-weight:800;letter-spacing:-.4px}.panel-title>.icon{color:var(--primary);width:18px;height:18px}.list-count{font-size:10px;font-weight:700;padding:4px 7px;border-radius:7px;background:#f2edf8;color:#806599}.compact-select{padding:7px 9px;border:1px solid var(--line);border-radius:8px;background:#fff;font-size:11px}.table-scroll{overflow-x:auto}.game-table{width:100%;border-collapse:collapse;text-align:left;font-size:11.5px;white-space:nowrap}.game-table th{font-size:10px;letter-spacing:.25px;font-weight:700;color:#8a8195;background:#faf9fc}.game-table td,.game-table th{padding:12px 10px;border-bottom:1px solid #efedf2}.game-table td:first-child,.game-table th:first-child{padding-left:20px}.game-table tr:last-child td{border-bottom:0}.game-table tbody tr:hover{background:#fdfbff}.game-table tr{height:55px}.game-table thead tr{height:36px}.table-art{position:relative;width:54px;height:37px;border-radius:7px;overflow:hidden}.table-title{font-weight:750}.table-cat{color:#746b80}.status{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;font-size:9px;border-radius:20px;font-weight:750}.status:before{content:'';width:5px;height:5px;background:currentColor;border-radius:50%}.published{background:#e7f5ec;color:#3b805a}.draft{background:#fff3d9;color:#967025}.row-actions{display:flex;gap:3px}.icon-button{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:7px;color:#847b91}.icon-button .icon{height:15px;width:15px}.icon-button:hover{color:var(--primary);background:var(--primary-soft)}.icon-button.danger:hover{color:#be4261;background:#faeaf0}.table-foot{padding:12px 20px;background:#fdfcfe;font-size:10px;color:#938a9d;border-top:1px solid var(--line)}
/* ===== FORM PEMBUAT GAME ===== */
.editor{max-width:1050px;margin-inline:auto}.editor .panel{margin-bottom:17px}.form-body{padding:20px}.form-grid{display:grid;grid-template-columns:1.8fr 1fr;gap:17px}.field{display:flex;flex-direction:column;gap:8px}.field.full{grid-column:1/-1}.field label{font-size:12px;font-weight:750}.field label span{color:#9a79bd;font-size:11px}.field input,.field select,.field textarea,.settings-fields input{width:100%;background:#fff;border:1px solid #dcd7e4;border-radius:9px;padding:11px 12px;font-size:12px;line-height:1.6}.field textarea{resize:vertical;min-height:70px}.field input::placeholder,.field textarea::placeholder{color:#a29baa}.editor-tabs{display:flex;gap:4px;background:#f3eff7;border-radius:10px;padding:4px;width:fit-content;margin-bottom:16px}.editor-tab{display:flex;align-items:center;gap:7px;border-radius:7px;padding:8px 12px;font-size:11px;font-weight:650;color:#81758d}.editor-tab[aria-selected=true]{background:white;color:#7855b4;box-shadow:0 1px 4px #3b264c10}.editor-tab .icon{width:14px;height:14px}.code-box{border:1px solid #e0d9e7;border-radius:10px;overflow:hidden}.code-title{background:#f5f2f8;display:flex;align-items:center;gap:8px;padding:8px 13px;font-size:10px;color:#908699}.code-title .icon{width:13px;height:13px}.code-input{display:block;border:0;resize:vertical;width:100%;min-height:165px;line-height:1.65;font:11.5px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;background:#fcfaff;color:#744b9a;padding:13px 15px;tab-size:2}.dropzone{display:flex;align-items:center;justify-content:center;gap:9px;flex-direction:column;min-height:187px;padding:20px;border:2px dashed #cbb8df;background:#faf7fe;border-radius:12px;cursor:pointer;text-align:center}.dropzone:hover,.dropzone.dragging{border-color:var(--primary);background:#f1eafa}.dropzone:focus-within{outline:3px solid #a47bcf;outline-offset:3px}.upload-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#ece3f8;color:var(--primary)}.dropzone strong{font-size:12px}.dropzone small{font-size:10px;color:var(--muted)}.file-note{display:flex;align-items:center;gap:7px;font-size:10px;color:#81758c;margin-top:13px;line-height:1.7}.file-note .icon{width:14px;height:14px}.preview-frame{border:0;width:100%;height:218px;display:block;background:white}.preview-refresh{font-size:10px;min-height:29px;padding:6px 9px}.preview-refresh .icon{width:12px;height:12px}.form-actions{display:flex;justify-content:flex-end;gap:10px}.form-error{font-size:12px;line-height:1.6;color:#bb3f57;margin:12px 0}.form-step{display:grid;place-items:center;width:25px;height:25px;border-radius:8px;background:var(--primary-soft);color:var(--primary);font-size:11px;font-weight:800}
/* ===== DIALOG & NOTIFIKASI ===== */
.dialog{border:1px solid #e2d8eb;border-radius:20px;padding:0;color:var(--ink);width:min(440px,calc(100vw - 32px));max-height:85dvh;background:#fff;box-shadow:0 24px 80px #2a1d4033}.dialog::backdrop{background:#26203266;backdrop-filter:blur(4px)}.dialog-body{padding:28px}.dialog-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.dialog-bubble{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:var(--primary-soft);color:var(--primary)}.dialog-bubble .icon{width:22px;height:22px}.dialog .close{background:#f6f3f9}.dialog h2{font-size:23px;font-weight:800;letter-spacing:-1px}.dialog-desc{color:var(--muted);font-size:12px;line-height:1.8;margin:8px 0 18px}.role-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:18px}.role-option{border:1.5px solid var(--line);border-radius:12px;padding:14px;text-align:center;background:#fff}.role-option[aria-pressed=true]{border-color:var(--primary);background:#f7f2ff;box-shadow:0 0 0 1px var(--primary)}.role-option span{font-size:28px;display:block;margin-bottom:6px}.role-option b{font-size:13px}.dialog-buttons{display:flex;justify-content:flex-end;gap:9px}.wide{width:100%}.dialog-note{text-align:center;color:#908596;font-size:10px;line-height:1.7;margin-top:14px}.student-list{list-style:none;padding:0;margin:0}.student-list li{display:flex;align-items:center;gap:11px;border-top:1px solid var(--line);padding:12px 0}.student-avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;background:#f0e8f8;font-size:19px}.student-details strong,.student-details small{display:block}.student-details strong{font-size:12px}.student-details small{font-size:10px;color:var(--muted);margin-top:3px}.student-score{margin-left:auto;font-size:11px;color:#47836b;font-weight:750}.settings-fields{display:grid;gap:15px;margin:19px 0}.toast{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);max-width:calc(100% - 40px);z-index:100;display:flex;align-items:center;gap:9px;padding:12px 17px;border-radius:12px;background:#302a3c;color:#fff;font-size:12px;line-height:1.5;box-shadow:0 5px 20px #2b1e3f25}.toast .icon{color:#a7e0bc;width:16px;height:16px}
/* ===== RESPONSIF & GERAK YANG DAPAT DIKURANGI ===== */
@media(min-width:1550px){.hero-copy{padding:38px 0 39px 48px}.hero-art>svg{width:101%}.game-art{height:183px}}
@media(max-width:1100px){.wrap{width:calc(100% - 64px)}.hero-copy{padding-left:30px}.hero-actions{gap:14px}.hero h1{font-size:48px}.hero-description{font-size:12.5px}.hero-art>svg{left:-7%;width:110%}.game-grid{gap:16px}.card-content{padding:13px 14px 0}.card-content h3{font-size:17px}.card-content>p{font-size:11px}.teacher-layout{grid-template-columns:194px minmax(0,1fr)}.sidebar{padding-inline:12px}.admin-content{padding:23px 23px 75px}.admin-bar{padding-inline:23px}.stat-card{padding:16px;gap:10px}.stat-bubble{width:36px;height:36px}.table-art{width:45px}.game-table td,.game-table th{padding-inline:7px}}
@media(max-width:850px){.wrap{width:calc(100% - 40px)}.site-header{height:67px}.brand-name{font-size:22px}.brand-mark{height:36px;width:36px;border-radius:11px}.top-nav{gap:13px}.nav-items{gap:3px}.nav-link{padding:10px 11px;font-size:12px}.hero{grid-template-columns:1.1fr 1fr}.hero-copy{padding:26px 0 26px 25px}.hero h1{font-size:43px;letter-spacing:-2px}.hero-kicker{font-size:8px;letter-spacing:.9px}.hero-actions{gap:12px;margin-top:18px}.hero-art>svg{width:117%;left:-10%}.social-proof{gap:6px}.avatar-stack svg{width:24px;height:24px}.proof-copy{font-size:8px}.proof-copy strong{font-size:9px}.start-button{font-size:12px;padding:11px 14px;min-height:39px}.hero-description{font-size:11.5px}.game-grid{gap:13px}.game-art{height:135px}.card-content{padding-inline:12px}.card-metrics{gap:6px;font-size:9.5px}.play-card{font-size:10px;min-height:28px;padding:6px 8px}.game-art .category-badge{left:10px;top:10px;font-size:9px;padding:5px 7px}.card-content h3{font-size:16px}.card-bottom{margin-top:11px}.teacher-layout{grid-template-columns:69px minmax(0,1fr)}.sidebar{padding:20px 10px}.sidebar .brand{margin:0 auto 32px}.sidebar .brand-name,.side-label,.side-button span,.side-profile>div{display:none}.side-button{justify-content:center;padding:12px}.side-profile{justify-content:center;padding-inline:0}.side-nav{gap:7px}.admin-content{padding:23px 20px 70px}.stat-card{padding:14px}.stat-card small{font-size:9.5px}.stat-card strong{font-size:22px}.stat-grid{gap:10px}.game-table{font-size:10.5px}.game-table td:first-child,.game-table th:first-child{padding-left:13px}}
@media(max-width:650px){.wrap{width:calc(100% - 32px)}.site-header{height:auto;min-height:66px}.header-inner{min-height:66px;flex-wrap:wrap;gap:0;padding-top:13px}.header-inner>.brand{padding-bottom:11px}.top-nav{display:contents}.nav-items{order:3;width:100%;border-top:1px solid #f2eef5;justify-content:space-around;gap:3px;padding:7px 0}.nav-link{padding:8px 13px;font-size:11px;gap:6px}.nav-link .icon{width:14px;height:14px}.nav-divider{display:none}.login-button{min-width:79px;min-height:33px;padding:8px 12px;font-size:11px;margin-left:auto;align-self:flex-start}.login-button .icon{width:14px;height:14px}.brand-name{font-size:23px}.brand-mark{width:34px;height:34px}.brand-mark svg{width:25px;height:25px}.hero{margin-top:15px;border-radius:18px;grid-template-columns:1fr;min-height:0;background-size:auto,23px 23px,23px 23px}.hero-copy{padding:25px 24px 8px}.hero h1{font-size:clamp(42px,9.4vw,56px);line-height:1.05;margin:12px 0 14px}.hero-description{font-size:12px;line-height:1.72}.hero-kicker{font-size:8px}.hero-actions{margin-top:17px;gap:20px}.start-button{padding:11px 16px;font-size:12px}.social-proof{gap:8px}.avatar-stack svg{width:26px;height:26px}.proof-copy{font-size:9px}.proof-copy strong{font-size:10px}.hero-art{height:172px;margin:0 0 -4px}.hero-art>svg{width:100%;height:125%;left:0;top:-13%}.catalog{padding-top:25px}.catalog-heading{align-items:flex-start;flex-wrap:wrap;gap:15px}.section-title{font-size:25px}.section-description{font-size:12px}.title-sparks{width:22px;height:22px}.search-box{width:100%;min-width:0;height:38px}.filter-bar{margin:13px 0 15px;gap:0}.filter-tabs{gap:6px;flex-wrap:wrap}.filter{font-size:10px;padding:7px 10px;min-height:31px;gap:5px}.filter .icon{width:12px;height:12px}.game-count{display:none}.game-grid{grid-template-columns:1fr;gap:16px}.game-art{height:clamp(148px,42vw,208px)}.game-art .category-badge{font-size:10px;left:13px;top:13px;padding:6px 9px}.card-content{padding:15px 17px 0}.card-content h3{font-size:19px}.card-content>p{font-size:12px}.card-bottom{padding:11px 0 13px;margin-top:13px}.card-metrics{font-size:11px;gap:10px}.play-card{font-size:11px;min-height:32px;padding:7px 12px}.foot{align-items:flex-start;flex-direction:column;gap:7px;padding-bottom:32px}.page-heading{align-items:flex-start;gap:12px}.page-heading h1{font-size:26px}.page-heading p{font-size:11.5px}.page-heading>.btn{font-size:11px;min-height:33px;padding:8px 10px}.player-wrap{padding-top:20px}.player-frame{height:442px}.player-meta{padding:14px;gap:14px}.player-numbers{font-size:10px;gap:10px}.breadcrumbs{font-size:10px}.screen-top{padding:11px 13px}.safe-label{font-size:9px}.teacher-layout{grid-template-columns:51px minmax(0,1fr)}.sidebar{padding:15px 6px}.sidebar .brand-mark{width:31px;height:31px;border-radius:10px}.sidebar .brand-mark svg{width:22px;height:22px}.sidebar .brand{margin-bottom:25px}.side-button{padding:11px 8px}.side-button .icon{width:17px;height:17px}.side-profile>.avatar{width:30px;height:30px}.admin-bar{height:54px;padding-inline:15px}.admin-bar .breadcrumbs{font-size:9px;gap:5px}.demo-label{font-size:8px;padding:5px 7px}.admin-content{padding:20px 13px 73px}.admin-content>.eyebrow{font-size:8px}.admin-content .page-heading{align-items:flex-start;flex-wrap:wrap;margin:7px 0 16px;gap:10px}.admin-content .page-heading h1{font-size:25px}.stat-grid{gap:7px;margin-bottom:15px}.stat-card{align-items:flex-start;flex-direction:column;gap:8px;border-radius:12px;padding:11px 9px}.stat-bubble{width:28px;height:28px;border-radius:8px}.stat-bubble .icon{width:16px;height:16px}.stat-card small{font-size:8px}.stat-card strong{font-size:19px}.panel{border-radius:13px}.panel-bar{padding:14px 12px;gap:6px}.panel-title{font-size:12px;gap:6px}.compact-select{font-size:9px;padding:6px 5px}.form-body{padding:13px}.form-grid{grid-template-columns:1fr;gap:13px}.form-step{width:22px;height:22px}.editor-tab{padding:8px 7px;font-size:9px;gap:4px}.editor-tab .icon{width:12px;height:12px}.form-actions{flex-wrap:wrap;gap:7px}.form-actions .btn{font-size:10px;min-height:34px;padding:9px 11px}.file-note{font-size:9px}.dropzone strong{font-size:10px}.preview-refresh span{display:none}.preview-frame{height:225px}.toast{bottom:22px;min-width:230px;text-align:center;justify-content:center;font-size:11px}.dialog-body{padding:22px}.dialog h2{font-size:21px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
/* ===== TAMBAHAN APLIKASI CI4 ===== */
a.game-art{display:block;color:inherit}
.card-content h3 a{color:inherit}.card-content h3 a:hover{color:var(--primary-dark)}
.artwork-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.table-art picture,.table-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.catalog-crumbs{padding-top:22px}
.breadcrumbs a{color:inherit;padding:3px 0}.breadcrumbs a:hover{color:var(--primary)}
.draft-banner{display:flex;align-items:center;gap:9px;background:#fff3d9;border:1px solid #eed9a8;color:#967025;font-size:12px;font-weight:650;padding:11px 15px;border-radius:11px;margin-bottom:14px}.draft-banner .icon{width:16px;height:16px}
.related{padding:6px 0 46px}.related .section-title{font-size:22px;margin-bottom:14px}
.login-wrap{max-width:470px;padding:42px 0 84px}.login-card{padding:28px}.login-card h2{font-size:23px;font-weight:800;letter-spacing:-1px}
.login-card .role-option{display:block}a.role-option:hover{border-color:#bca3df;background:#faf7ff}
.login-divider{display:flex;align-items:center;gap:10px;color:#9a93a5;font-size:11px;margin:16px 0}.login-divider:before,.login-divider:after{content:'';flex:1;height:1px;background:var(--line)}
.login-card .settings-fields{margin:14px 0}
.form-error ul{margin:0;padding-left:18px}.form-error li{margin:2px 0}
.field-hint{font-size:10px;color:var(--muted);line-height:1.6}.field-hint code,.file-note code{background:#f3eff7;padding:1px 5px;border-radius:4px;font-size:9.5px}
.char-count{float:right;font-size:10px;color:#9a79bd;font-weight:650}
.small-note{font-size:10px;font-weight:600}
.thumb-preview{display:block;width:100%;max-height:150px;object-fit:cover;border-radius:10px;margin-top:13px;border:1px solid var(--line)}
.dropzone-thumb{min-height:130px}
.side-logout{margin:0}
.toast.error .icon{color:#f0a0b0}
@media(max-width:650px){.login-wrap{padding:22px 0 60px}.login-card{padding:20px}.related .game-grid{grid-template-columns:1fr}.related{padding-bottom:30px}}
/* ===== PEMBUAT GAME AI (Piko - EduFun) ===== */
.ai-box{display:flex;flex-direction:column;gap:14px}
.ai-intro{display:flex;align-items:flex-start;gap:9px;font-size:12.5px;line-height:1.7;color:#5f5670;background:linear-gradient(120deg,#f3ecfd,#fbeef6);border:1px solid #e7d9f5;border-radius:12px;padding:13px 15px}
.ai-intro .icon{width:17px;height:17px;color:var(--primary);margin-top:1px}
.ai-prompt{width:100%;background:#fff;border:1px solid #dcd7e4;border-radius:10px;padding:12px 13px;font-size:13px;line-height:1.7;resize:vertical;min-height:96px}
.ai-prompt::placeholder{color:#a29baa}
.ai-examples{display:flex;flex-wrap:wrap;gap:8px}
.ai-chip{display:inline-flex;align-items:center;gap:6px;border:1px solid #e0d6ee;background:#faf7ff;color:#6d5a86;border-radius:20px;padding:7px 13px;font-size:11.5px;font-weight:650;transition:.16s}
.ai-chip:hover{border-color:#bca3df;background:#f1eafa;color:var(--primary-dark)}
.ai-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.ai-status{font-size:12px;line-height:1.6;color:var(--muted);flex:1;min-width:180px}
.ai-status.loading{color:var(--primary-dark);font-weight:650}
.ai-status.ok{color:var(--green);font-weight:650}
.ai-status.error{color:#bb3f57;font-weight:650}
.btn.loading{opacity:.85;pointer-events:none}
.btn.loading .icon{animation:bp-spin .9s linear infinite}
@keyframes bp-spin{to{transform:rotate(360deg)}}
@media(max-width:650px){.ai-actions{align-items:flex-start;flex-direction:column;gap:10px}.ai-status{min-width:0}.ai-intro{font-size:11.5px}}
@media(prefers-reduced-motion:reduce){.btn.loading .icon{animation:none}}
