:root{--aig-green:#0f9d68;--aig-green2:#087b53;--aig-mint:#eafbf3;--aig-mint2:#d9f7e9;--aig-text:#10231d;--aig-muted:#66746f;--aig-line:#e1ebe6;--aig-amber:#ffb31a;--aig-purple:#7857e8;--aig-blue:#3588f5}.aig-wrap{max-width:1280px;margin:0 auto;padding:24px 18px 54px;color:var(--aig-text);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.aig-wrap *{box-sizing:border-box}.aig-wrap button{font:inherit}.aig-wrap svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.aig-hero{display:grid;grid-template-columns:1.05fr .95fr;gap:22px;align-items:stretch;background:linear-gradient(135deg,#f4fffa 0%,#eafbf3 55%,#dff7f2 100%);border:1px solid #d9eee5;border-radius:28px;padding:28px;box-shadow:0 16px 48px rgba(22,96,67,.08);overflow:hidden}.aig-hero-copy{padding:8px 4px}.aig-kicker,.aig-section-label{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:800;color:var(--aig-green2)}.aig-kicker{padding:8px 12px;border-radius:999px;background:#dff7ea}.aig-hero h1{font-size:clamp(34px,4vw,58px);line-height:1.06;letter-spacing:-1.5px;margin:18px 0 14px}.aig-hero p{font-size:18px;line-height:1.65;color:#42544d;max-width:600px;margin:0}.aig-hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin:24px 0 22px}.aig-btn{min-height:46px;border:0;border-radius:14px;padding:0 20px;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;gap:9px}.aig-btn-primary{background:linear-gradient(135deg,var(--aig-green),var(--aig-green2));color:#fff;box-shadow:0 10px 25px rgba(15,157,104,.24)}.aig-btn-soft{background:#fff;color:#1d3b31;border:1px solid #dfeae5}.aig-mini-features{display:flex;gap:14px;flex-wrap:wrap}.aig-mini-features span{display:flex;align-items:center;gap:7px;font-size:13px;color:#3e5a50;font-weight:700}.aig-mini-features svg{color:var(--aig-green)}.aig-runner-preview{position:relative;min-height:330px;border-radius:22px;background:linear-gradient(#72d1f7 0 54%,#96df87 54% 100%);overflow:hidden;box-shadow:0 20px 42px rgba(23,89,83,.16);border:6px solid rgba(255,255,255,.8);cursor:pointer}.aig-preview-top{position:absolute;z-index:8;left:16px;right:16px;top:14px;display:flex;justify-content:space-between;color:#fff;font-weight:800}.aig-preview-top span{background:rgba(15,44,46,.62);backdrop-filter:blur(8px);padding:8px 11px;border-radius:12px}.aig-preview-scene{position:absolute;inset:0}.aig-cloud{position:absolute;background:#fff;border-radius:60px;width:92px;height:28px;opacity:.85}.aig-cloud:before,.aig-cloud:after{content:"";position:absolute;background:#fff;border-radius:50%}.aig-cloud:before{width:36px;height:36px;left:18px;bottom:6px}.aig-cloud:after{width:44px;height:44px;right:12px;bottom:5px}.aig-cloud.c1{left:18%;top:24%}.aig-cloud.c2{right:12%;top:35%;transform:scale(.7)}.aig-ground{position:absolute;left:0;right:0;bottom:0;height:78px;background:linear-gradient(#4fb85f,#2e8c48)}.aig-ground:before{content:"";position:absolute;left:0;right:0;top:0;height:16px;background:#8bd76f}.aig-bot{position:absolute;left:28%;bottom:78px;width:64px;height:54px;background:#fff;border:5px solid #dfeff1;border-radius:20px;transform:rotate(-8deg);box-shadow:0 8px 18px rgba(0,0,0,.16);z-index:5}.aig-bot:before{content:"";position:absolute;left:7px;right:7px;top:7px;bottom:10px;border-radius:14px;background:#163d40}.aig-bot:after{content:"";position:absolute;width:12px;height:14px;background:var(--aig-green);left:26px;top:-16px;border-radius:8px}.aig-bot .eye{position:absolute;z-index:2;top:23px;width:7px;height:11px;background:#60efbf;border-radius:8px}.aig-bot .eye:first-child{left:20px}.aig-bot .eye:last-child{right:20px}.aig-coin{position:absolute;width:37px;height:37px;border-radius:50%;display:grid;place-items:center;font-weight:900;color:#a86a00;background:radial-gradient(circle at 35% 30%,#fff4a3 0 10%,#ffd34f 11% 50%,#ffad0d 51% 100%);border:3px solid #fff0a6;box-shadow:0 5px 14px rgba(185,116,0,.25);z-index:4}.aig-coin.p1{left:52%;bottom:132px}.aig-coin.p2{left:67%;bottom:185px}.aig-coin.p3{left:81%;bottom:125px}.aig-obstacle{position:absolute;bottom:72px;z-index:4;padding:13px 9px;background:#614a42;color:#fff;border-radius:8px 8px 2px 2px;font-size:12px;font-weight:900;text-align:center;box-shadow:0 8px 12px rgba(0,0,0,.2)}.aig-obstacle.o1{left:45%}.aig-obstacle.o2{left:64%;background:#36434d}.aig-obstacle.o3{right:5%;background:#63368c}.aig-preview-cta{position:absolute;z-index:9;left:16px;bottom:15px;background:#fff;color:#174b3d;padding:9px 13px;border-radius:12px;font-weight:800}.aig-stats{display:grid;grid-template-columns:repeat(3,1fr) 1.6fr;gap:12px;margin:16px 0 24px}.aig-stats>div{border:1px solid var(--aig-line);background:#fff;border-radius:18px;padding:15px 17px;display:grid;grid-template-columns:auto 1fr;column-gap:11px;align-items:center}.aig-stats strong{font-size:20px}.aig-stats small{grid-column:2;color:var(--aig-muted)}.aig-stat-icon{grid-row:1/3;width:42px;height:42px;border-radius:13px;display:grid;place-items:center}.aig-stat-icon.green{background:#e1f7ed;color:var(--aig-green)}.aig-stat-icon.amber{background:#fff2cf;color:#d88b00}.aig-stat-icon.purple{background:#eee9ff;color:var(--aig-purple)}.aig-daily-progress{display:block!important}.aig-daily-progress small{display:block}.aig-daily-progress strong{display:block;margin:4px 0 8px}.aig-daily-progress>div{height:7px;background:#edf1ef;border-radius:99px;overflow:hidden}.aig-daily-progress i{display:block;height:100%;background:linear-gradient(90deg,var(--aig-green),#46c991);border-radius:99px}.aig-section{margin-top:26px;padding:22px;border:1px solid var(--aig-line);border-radius:24px;background:linear-gradient(180deg,#fbfffd,#fff)}.aig-learn-section{background:linear-gradient(180deg,#f9fffc,#f4fbf8)}.aig-section-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-end;margin-bottom:16px}.aig-section-head h2{font-size:28px;margin:5px 0 2px}.aig-section-head p{margin:0;color:var(--aig-muted)}.aig-grid{display:grid;gap:14px}.aig-grid-4{grid-template-columns:repeat(4,1fr)}.aig-card{position:relative;border:1px solid var(--aig-line);background:#fff;border-radius:19px;overflow:hidden;transition:.2s ease;min-width:0}.aig-card:hover{transform:translateY(-3px);box-shadow:0 13px 28px rgba(18,76,55,.11)}.aig-card-hit{position:absolute;inset:0;z-index:5;background:transparent;border:0;cursor:pointer}.aig-card-thumb{height:142px;position:relative;overflow:hidden;background:linear-gradient(135deg,#9de8d2,#dff8ef)}.thumb-runner{background:linear-gradient(180deg,#7fd4f3 0 58%,#7bd774 58%)}.thumb-dash{background:linear-gradient(135deg,#1c68e6,#7c5cf0)}.thumb-jump{background:linear-gradient(180deg,#7ed8fb,#c8f0db)}.thumb-memory{background:linear-gradient(135deg,#40265f,#7e4dac)}.thumb-quiz{background:linear-gradient(135deg,#6d8ff0,#b6c8ff)}.thumb-prompt{background:linear-gradient(135deg,#dff5e8,#8cdfb7)}.thumb-realai{background:linear-gradient(135deg,#ffd6c8,#a5d6ff)}.thumb-daily{background:linear-gradient(135deg,#ffdfab,#fff2d1)}.aig-thumb-bot{position:absolute;width:58px;height:49px;background:#fff;border-radius:16px;left:22%;bottom:27px;border:4px solid #dceeee;box-shadow:0 8px 14px rgba(0,0,0,.14)}.aig-thumb-bot:before{content:"";position:absolute;inset:8px 7px 11px;background:#163d40;border-radius:11px}.aig-thumb-bot:after{content:"••";position:absolute;left:17px;top:8px;color:#6ef0bf;letter-spacing:5px;z-index:2}.aig-thumb-coin{position:absolute;right:22%;top:25px;width:35px;height:35px;border-radius:50%;background:#ffc53d;border:3px solid #ffe891;color:#9d6500;display:grid;place-items:center;font-weight:900}.aig-card-body{padding:15px}.aig-card h3{margin:0 0 6px;font-size:17px}.aig-card p{margin:0;color:var(--aig-muted);font-size:14px;line-height:1.5;min-height:42px}.aig-card-foot{display:flex;align-items:center;justify-content:space-between;margin-top:14px}.aig-reward{display:flex;align-items:center;gap:5px;font-size:12px;font-weight:800;color:#a76b00;background:#fff4d7;padding:6px 8px;border-radius:999px}.aig-reward svg{width:14px;height:14px}.aig-go{width:31px;height:31px;border:1px solid #dce8e3;border-radius:50%;display:grid;place-items:center;color:var(--aig-green);font-weight:900}.aig-bottom-grid{display:grid;grid-template-columns:1fr 1fr 1.15fr;gap:14px;margin-top:24px}.aig-panel{border:1px solid var(--aig-line);border-radius:20px;background:#fff;padding:18px}.aig-panel-head h3{display:flex;align-items:center;gap:8px;margin:0 0 14px;font-size:18px}.aig-panel-head svg{color:var(--aig-green)}.aig-lb-row{display:grid;grid-template-columns:28px 36px 1fr auto;align-items:center;gap:8px;padding:9px 0;border-bottom:1px solid #eef3f1}.aig-lb-row:last-child{border:0}.aig-lb-row .rank{width:26px;height:26px;border-radius:8px;background:#f2f6f4;display:grid;place-items:center;font-weight:800}.aig-lb-row .avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#e6f8ef;color:var(--aig-green2);font-weight:900}.aig-lb-row b{display:flex;gap:5px;align-items:center;font-size:13px}.aig-lb-row b svg{width:14px;color:#d88b00}.aig-streak-row{display:grid;grid-template-columns:repeat(7,1fr);gap:7px}.aig-streak-row span{background:#f3f6f5;border-radius:11px;padding:8px 3px;text-align:center;color:#89938f}.aig-streak-row span.done{background:#e4f8ef;color:var(--aig-green2)}.aig-streak-row b,.aig-streak-row small{display:block}.aig-streak-row small{font-size:10px}.aig-muted{color:var(--aig-muted);font-size:13px;line-height:1.55}.aig-earn-row{display:grid;grid-template-columns:1fr auto;gap:2px;padding:9px 0;border-bottom:1px solid #eef3f1}.aig-earn-row:last-child{border:0}.aig-earn-row b{color:var(--aig-green);font-size:13px}.aig-earn-row small{grid-column:1/3;color:#8c9692;font-size:11px}.aig-modal{position:fixed;inset:0;z-index:999999;background:rgba(7,26,20,.56);backdrop-filter:blur(8px);display:none;align-items:center;justify-content:center;padding:18px}.aig-modal.open{display:flex}.aig-modal-card{width:min(920px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:24px;box-shadow:0 35px 100px rgba(0,0,0,.28);position:relative}.aig-modal-close{position:sticky;float:right;top:12px;right:12px;z-index:20;width:42px;height:42px;border-radius:50%;border:1px solid #e1e8e4;background:#fff;cursor:pointer;font-size:25px;color:#29453b}.aig-game-shell{padding:28px}.aig-game-head{padding-right:50px}.aig-game-head h2{font-size:28px;margin:0 0 6px}.aig-game-head p{margin:0;color:var(--aig-muted)}.aig-game-meta{display:flex;gap:10px;flex-wrap:wrap;margin:15px 0}.aig-pill{padding:7px 10px;border-radius:999px;background:#eef8f3;color:var(--aig-green2);font-size:12px;font-weight:800}.aig-canvas-wrap{background:linear-gradient(#8ed9f6 0 58%,#8bd67f 58%);border-radius:18px;overflow:hidden;border:1px solid #d9e9e2}.aig-canvas-wrap canvas{display:block;width:100%;max-height:460px;touch-action:none}.aig-game-actions{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-top:14px;flex-wrap:wrap}.aig-score{font-weight:900;font-size:18px}.aig-control-row{display:flex;gap:8px}.aig-control{min-width:48px;height:44px;border:1px solid #dce8e3;border-radius:12px;background:#f8fbfa;font-weight:900;cursor:pointer}.aig-question{font-size:20px;font-weight:900;margin:18px 0 12px}.aig-options{display:grid;gap:9px}.aig-option{padding:14px 15px;border:1px solid #dce7e2;border-radius:13px;background:#fff;text-align:left;cursor:pointer;font-weight:700}.aig-option:hover{border-color:#8ed6ba;background:#f6fffb}.aig-option.correct{border-color:#42bd84;background:#e8fbf2;color:#0b6d49}.aig-option.wrong{border-color:#e58b8b;background:#fff1f1;color:#a33838}.aig-feedback{margin-top:12px;padding:13px 14px;border-radius:13px;background:#eef9f4;color:#1d5e48}.aig-memory{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:18px}.aig-memory-card{aspect-ratio:1;border:1px solid #dbe9e3;border-radius:14px;background:#eef8f3;display:grid;place-items:center;font-size:28px;font-weight:900;color:var(--aig-green2);cursor:pointer}.aig-memory-card.revealed,.aig-memory-card.matched{background:#fff}.aig-memory-card.matched{border-color:#72cda8;background:#e5f8ef}.aig-puzzle-bank,.aig-puzzle-answer{display:flex;flex-wrap:wrap;gap:8px;padding:14px;border:1px dashed #bedbce;border-radius:14px;margin-top:12px;min-height:62px}.aig-puzzle-chip{padding:9px 12px;border-radius:10px;border:1px solid #dce8e3;background:#fff;cursor:pointer;font-weight:700}.aig-puzzle-answer{background:#f8fffb}.aig-real-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}.aig-real-card{min-height:170px;border-radius:16px;border:1px solid #dbe8e2;background:linear-gradient(135deg,#e8f4ff,#e9fbf2);display:grid;place-items:center;font-size:58px;cursor:pointer;position:relative;overflow:hidden}.aig-real-card span{position:absolute;bottom:10px;left:10px;background:#fff;padding:6px 9px;border-radius:9px;font-size:12px;font-weight:800}.aig-toast{position:fixed;z-index:1000000;left:50%;bottom:28px;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:#103e30;color:#fff;border-radius:13px;padding:12px 17px;font-weight:800;box-shadow:0 14px 40px rgba(0,0,0,.25);transition:.25s}.aig-toast.show{opacity:1;transform:translate(-50%,0)}@media(max-width:980px){.aig-hero{grid-template-columns:1fr}.aig-stats{grid-template-columns:1fr 1fr}.aig-grid-4{grid-template-columns:1fr 1fr}.aig-bottom-grid{grid-template-columns:1fr 1fr}.aig-bottom-grid .aig-panel:last-child{grid-column:1/-1}}@media(max-width:640px){.aig-wrap{padding:12px 10px 40px}.aig-hero{padding:18px;border-radius:20px}.aig-hero h1{font-size:38px}.aig-hero p{font-size:15px}.aig-runner-preview{min-height:255px}.aig-stats{grid-template-columns:1fr 1fr}.aig-stats>div{padding:12px}.aig-daily-progress{grid-column:1/-1}.aig-section{padding:14px;border-radius:18px}.aig-grid-4{grid-template-columns:1fr 1fr;gap:10px}.aig-card-thumb{height:100px}.aig-card-body{padding:11px}.aig-card h3{font-size:15px}.aig-card p{font-size:12px;min-height:54px}.aig-reward{font-size:10px}.aig-bottom-grid{grid-template-columns:1fr}.aig-bottom-grid .aig-panel:last-child{grid-column:auto}.aig-game-shell{padding:18px 14px}.aig-memory{gap:7px}.aig-real-grid{grid-template-columns:1fr}.aig-section-head h2{font-size:23px}}


/* AI Runner v0.3 */
.aig-runner-hud{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0 10px}.aig-runner-hud-left{display:flex;gap:8px;flex-wrap:wrap}.aig-runner-chip{min-width:78px;border:1px solid #dceae4;background:#fff;border-radius:14px;padding:8px 12px;display:flex;flex-direction:column;box-shadow:0 5px 18px rgba(18,76,55,.05)}.aig-runner-chip b{font-size:18px;color:#123d31;line-height:1.1}.aig-runner-chip small{font-size:10px;color:#7a8b84;margin-top:3px}.aig-runner-lives{display:flex;gap:5px;font-size:20px;color:#ee5b68}.aig-runner-lives span{transition:.2s}.aig-runner-lives span.lost{color:#dfe7e4;transform:scale(.82)}
.aig-runner-powerbar{display:flex;gap:7px;align-items:center;flex-wrap:wrap;min-height:34px;margin-bottom:9px}.aig-runner-tip,.aig-power-chip{border-radius:999px;padding:6px 9px;font-size:11px;font-weight:800;background:#f2f8f5;color:#547067}.aig-power-chip{color:#fff;box-shadow:0 4px 12px rgba(0,0,0,.08)}.aig-power-chip.shield{background:#22b77b}.aig-power-chip.magnet{background:#438ff0}.aig-power-chip.double{background:#875ce0}.aig-power-chip b{margin-left:4px}
.aig-runner-stage{position:relative;background:#dff8ff;border-color:#cfe8df;box-shadow:inset 0 0 0 1px rgba(255,255,255,.55)}.aig-runner-stage canvas{aspect-ratio:2/1;max-height:none}.aig-runner-countdown{position:absolute;inset:0;display:grid;place-items:center;font-size:72px;font-weight:950;color:#fff;text-shadow:0 5px 22px rgba(11,69,48,.35);pointer-events:none}.aig-runner-countdown[hidden]{display:none}.aig-runner-pause-card{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);min-width:220px;text-align:center;background:rgba(255,255,255,.94);border:1px solid #d9e8e2;border-radius:18px;padding:18px 22px;box-shadow:0 20px 55px rgba(12,69,49,.18)}.aig-runner-pause-card[hidden]{display:none}.aig-runner-pause-card b,.aig-runner-pause-card span{display:block}.aig-runner-pause-card b{font-size:22px;color:#163e33}.aig-runner-pause-card span{font-size:12px;color:#73847d;margin-top:4px}
.aig-runner-actions{border:1px solid #e2ece8;background:#fbfefc;border-radius:16px;padding:10px 12px}.aig-runner-status{display:grid;grid-template-columns:10px auto;column-gap:7px;align-items:center}.aig-runner-status .dot{width:8px;height:8px;border-radius:50%;background:#2ac486;box-shadow:0 0 0 4px rgba(42,196,134,.12)}.aig-runner-status b{font-size:14px;color:#173e33}.aig-runner-status small{grid-column:2;color:#788a82;font-size:11px}.aig-runner-jump,.aig-runner-slide{min-width:104px;height:46px}.aig-runner-jump span,.aig-runner-slide span{margin-left:5px}
.aig-runner-result{margin-top:12px;border:1px solid #dbeae4;border-radius:17px;background:linear-gradient(135deg,#f8fffb,#f1fbf7);padding:13px;display:grid;grid-template-columns:auto auto 1fr auto;gap:12px;align-items:center}.aig-runner-result[hidden]{display:none}.aig-runner-result>div:not(.aig-runner-result-message){min-width:92px}.aig-runner-result strong,.aig-runner-result span{display:block}.aig-runner-result strong{font-size:20px;color:#143e32}.aig-runner-result span{font-size:10px;color:#7c8d86}.aig-runner-result-message{font-size:12px;color:#657a72}.aig-runner-result-message.success{color:#0a7b50}.aig-runner-result-message.success b{display:inline;font-size:14px;color:#0a7b50}
@media(max-width:640px){.aig-runner-hud{margin-top:13px}.aig-runner-chip{min-width:64px;padding:7px 9px}.aig-runner-chip b{font-size:16px}.aig-runner-tip{display:none}.aig-runner-stage{border-radius:14px}.aig-runner-countdown{font-size:56px}.aig-runner-actions{align-items:stretch}.aig-runner-status{width:100%}.aig-runner-actions .aig-control-row{width:100%;display:grid;grid-template-columns:1fr 1.35fr .65fr}.aig-runner-jump,.aig-runner-slide{min-width:0;width:100%;height:48px}.aig-runner-result{grid-template-columns:1fr 1fr}.aig-runner-result-message{grid-column:1/-1}.aig-runner-result .aig-btn{grid-column:1/-1;width:100%}}

/* AmarAI Games v1.0 full arcade + learning polish */
.aig-game-head{padding-right:56px;display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.aig-game-head>div{min-width:0}.aig-sound-toggle{flex:0 0 auto;border:1px solid #dce8e3;background:#f8fbfa;color:#31594b;border-radius:999px;padding:8px 11px;font-size:11px;font-weight:800;cursor:pointer}.aig-sound-toggle[aria-pressed="false"]{color:#81918a;background:#f4f6f5}
.aig-arcade-hud{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:16px 0 10px}.aig-arcade-hud>div,.aig-memory-hud>span{border:1px solid #deebe5;background:#fff;border-radius:14px;padding:9px 11px;box-shadow:0 5px 18px rgba(18,76,55,.045)}.aig-arcade-hud b,.aig-arcade-hud small,.aig-memory-hud b,.aig-memory-hud small{display:block}.aig-arcade-hud b,.aig-memory-hud b{font-size:18px;color:#143e32;line-height:1.05}.aig-arcade-hud small,.aig-memory-hud small{font-size:10px;color:#7c8d86;margin-top:4px}
.aig-power-strip{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 9px}.aig-power-strip span{border-radius:999px;padding:6px 9px;background:#f1f8f5;color:#5c726a;font-size:10px;font-weight:800}
.aig-dash-stage,.aig-jump-stage{position:relative;overflow:hidden}.aig-dash-stage canvas,.aig-jump-stage canvas{aspect-ratio:1.915/1;max-height:none;touch-action:none}.aig-stage-message{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;color:#fff;font-size:70px;font-weight:950;text-shadow:0 8px 28px rgba(12,55,43,.28)}.aig-stage-message[hidden]{display:none}
.aig-arcade-actions{border:1px solid #e2ece8;background:#fbfefc;border-radius:16px;padding:10px 12px}.aig-arcade-actions .aig-control{min-width:70px;height:46px}
.aig-result-card{margin-top:12px;border:1px solid #dbeae4;border-radius:17px;background:linear-gradient(135deg,#f8fffb,#f1fbf7);padding:13px;display:grid;grid-template-columns:auto auto 1fr auto;gap:12px;align-items:center}.aig-result-card[hidden]{display:none}.aig-result-card strong,.aig-result-card span{display:block}.aig-result-card strong{font-size:20px;color:#143e32}.aig-result-card span{font-size:10px;color:#7c8d86}.aig-result-message{font-size:12px;color:#657a72}.aig-result-message.success{color:#0a7b50;font-weight:800}
.aig-memory-hud{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:16px 0 10px}.aig-memory-12{grid-template-columns:repeat(4,1fr)}.aig-memory-12 .aig-memory-card{min-height:82px;font-size:15px;letter-spacing:.4px}.aig-memory-card.selected,.aig-puzzle-chip.selected{border-color:#6ecba5;background:#edf9f4}
.aig-progress{height:8px;border-radius:999px;background:#edf3f0;overflow:hidden;margin:16px 0 10px}.aig-progress i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#16a66e,#68d5ad);transition:width .25s}
.aig-result-large{text-align:center;border:1px solid #deebe5;border-radius:20px;background:linear-gradient(135deg,#f8fffb,#f0faf6);padding:28px 18px;margin-top:16px}.aig-result-large strong{font-size:48px;color:#109765}.aig-result-large h3{margin:6px 0 4px;font-size:22px}.aig-result-large p{margin:0 0 16px;color:#71847c}.aig-result-mini{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;padding:12px 14px;border-radius:14px;background:#eef9f4;color:#0b6d49;font-weight:800}
.aig-real-scene{position:relative;min-height:240px;border-radius:18px;overflow:hidden;border:1px solid #dbe8e2;background:linear-gradient(135deg,#ecf8f3,#e9f2ff);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:34px}.aig-real-pattern{position:absolute;inset:0;opacity:.42;background-image:radial-gradient(circle at 20% 20%,rgba(22,166,110,.18) 0 2px,transparent 3px),radial-gradient(circle at 80% 65%,rgba(93,107,226,.14) 0 2px,transparent 3px);background-size:38px 38px,52px 52px}.aig-real-scene strong,.aig-real-scene small{position:relative;z-index:1}.aig-real-scene strong{max-width:620px;font-size:20px;line-height:1.5;color:#173f33}.aig-real-scene small{margin-top:9px;color:#71847c}.aig-choice-actions{justify-content:center}.aig-choice-actions .aig-btn{min-width:150px}.aig-daily-card{margin-top:16px;border:1px solid #dbe9e3;border-radius:20px;padding:20px;background:linear-gradient(135deg,#fbfffd,#effaf5)}
.aig-feedback.success{border:1px solid #bde8d4}.aig-puzzle-chip{transition:transform .12s,border-color .12s}.aig-puzzle-chip:active{transform:scale(.98)}
@media(max-width:640px){.aig-game-head{padding-right:44px;display:block}.aig-sound-toggle{margin-top:10px}.aig-arcade-hud{grid-template-columns:1fr 1fr}.aig-arcade-actions{align-items:stretch}.aig-arcade-actions .aig-runner-status{width:100%}.aig-arcade-actions .aig-control-row{display:grid;grid-template-columns:1fr 1fr 1fr;width:100%}.aig-arcade-actions .aig-control{width:100%;min-width:0;height:48px}.aig-stage-message{font-size:54px}.aig-result-card{grid-template-columns:1fr 1fr}.aig-result-message{grid-column:1/-1}.aig-result-card .aig-btn{grid-column:1/-1;width:100%}.aig-memory-12{grid-template-columns:repeat(3,1fr)}.aig-memory-12 .aig-memory-card{min-height:70px}.aig-result-mini{align-items:stretch;flex-direction:column}.aig-choice-actions{display:grid;grid-template-columns:1fr 1fr}.aig-choice-actions .aig-btn{min-width:0}.aig-real-scene{min-height:200px;padding:26px 18px}.aig-real-scene strong{font-size:17px}}

/* v1.1.0 — full-width hub + immersive gameplay */
.aig-disabled{width:100%;padding:44px 20px;text-align:center;background:#f4fbf8;border:1px solid #dcebe4;border-radius:18px;color:#33564a;font-weight:800}
.aig-full-hub{width:100vw;max-width:none;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);padding:28px clamp(16px,3vw,52px) 64px;background:linear-gradient(180deg,#fbfffd 0,#fff 520px);overflow:hidden}
.aig-full-hub>.aig-hero,.aig-full-hub>.aig-stats,.aig-full-hub>.aig-section,.aig-full-hub>.aig-bottom-grid{max-width:1580px;margin-left:auto;margin-right:auto;width:100%}
.aig-full-hub>.aig-stats{margin-top:18px;margin-bottom:26px}
.aig-full-hub>.aig-section{margin-top:26px}
.aig-full-hub>.aig-bottom-grid{margin-top:26px}
.aig-full-hub .aig-hero{min-height:min(560px,60vh);grid-template-columns:minmax(0,1fr) minmax(460px,.92fr);align-items:center;padding:clamp(28px,4vw,62px)}
.aig-full-hub .aig-runner-preview{min-height:420px}
.aig-full-hub .aig-grid-4{grid-template-columns:repeat(4,minmax(220px,1fr))}
.aig-full-hub .aig-card-thumb{height:170px}

.aig-game-fullscreen .aig-modal{padding:0;background:#f5fbf8;backdrop-filter:none;align-items:stretch;justify-content:stretch}
.aig-game-fullscreen .aig-modal-card{width:100vw;height:100dvh;max-height:none;border-radius:0;box-shadow:none;overflow:auto;background:radial-gradient(circle at 50% -10%,#effcf6 0,#fff 44%,#f8fbfa 100%)}
.aig-game-fullscreen .aig-game-shell{width:min(1480px,100%);min-height:100dvh;margin:0 auto;padding:clamp(22px,3vw,48px) clamp(16px,3.5vw,58px) 48px;display:flex;flex-direction:column;justify-content:center}
.aig-game-fullscreen .aig-modal-close{position:fixed;float:none;top:max(14px,env(safe-area-inset-top));right:max(14px,env(safe-area-inset-right));width:48px;height:48px;box-shadow:0 10px 26px rgba(14,72,52,.12)}
.aig-game-fullscreen .aig-canvas-wrap{width:100%;box-shadow:0 20px 60px rgba(17,87,62,.12)}
.aig-game-fullscreen .aig-runner-stage canvas,.aig-game-fullscreen .aig-dash-stage canvas,.aig-game-fullscreen .aig-jump-stage canvas{max-height:min(62vh,720px);object-fit:contain}
.aig-game-fullscreen .aig-game-head h2{font-size:clamp(28px,3vw,42px)}
.aig-game-fullscreen .aig-game-head p{font-size:15px;max-width:860px}

.aig-modal.open .aig-modal-card{animation:aig-modal-in .22s cubic-bezier(.2,.8,.2,1)}
.aig-card,.aig-btn,.aig-control,.aig-puzzle-chip,.aig-option{transition:transform .18s cubic-bezier(.2,.8,.2,1),box-shadow .18s ease,border-color .18s ease,background-color .18s ease}
.aig-btn:active,.aig-control:active,.aig-puzzle-chip:active,.aig-option:active{transform:scale(.975)}
.aig-runner-preview{transform:translateZ(0);will-change:transform}
.aig-canvas-wrap canvas{transform:translateZ(0);backface-visibility:hidden}
@keyframes aig-modal-in{from{opacity:.35;transform:scale(.985) translateY(8px)}to{opacity:1;transform:none}}
.aig-motion-off *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
@media(prefers-reduced-motion:reduce){.aig-wrap *{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}}

@media(max-width:1100px){.aig-full-hub .aig-hero{grid-template-columns:1fr;min-height:0}.aig-full-hub .aig-runner-preview{min-height:360px}.aig-full-hub .aig-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.aig-full-hub{padding:12px 10px 42px}.aig-full-hub .aig-hero{padding:20px;min-height:0}.aig-full-hub .aig-runner-preview{min-height:270px}.aig-full-hub .aig-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}.aig-full-hub .aig-card-thumb{height:108px}.aig-game-fullscreen .aig-game-shell{min-height:100dvh;padding:66px 10px 24px;justify-content:flex-start}.aig-game-fullscreen .aig-modal-close{width:44px;height:44px}.aig-game-fullscreen .aig-runner-stage canvas,.aig-game-fullscreen .aig-dash-stage canvas,.aig-game-fullscreen .aig-jump-stage canvas{max-height:none}}
body.amarai-games-page .entry-content:has(#amarai-games-app),body.amarai-games-page .post-content:has(#amarai-games-app),body.amarai-games-page .page-content:has(#amarai-games-app){max-width:none!important;width:100%!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;background:transparent!important}
body.amarai-games-page article:has(#amarai-games-app),body.amarai-games-page main:has(#amarai-games-app){max-width:none!important;width:100%!important;margin-left:0!important;margin-right:0!important;border:0!important;box-shadow:none!important;background:transparent!important}


/* v1.1.1 — true immersive game viewport on mobile/PWA */
html.aig-game-open,body.aig-game-open{overflow:hidden!important;overscroll-behavior:none!important}
body.aig-game-open .aig-modal{
  position:fixed!important;
  inset:0!important;
  z-index:2147483600!important;
  width:100vw!important;
  height:100dvh!important;
  min-height:100dvh!important;
  margin:0!important;
  padding:0!important;
  align-items:stretch!important;
  justify-content:stretch!important;
  background:#f7fbf9!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  overscroll-behavior:none!important;
}
body.aig-game-open .aig-modal-card{
  position:relative!important;
  width:100vw!important;
  max-width:none!important;
  height:100dvh!important;
  min-height:100dvh!important;
  max-height:none!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
  background:radial-gradient(circle at 50% -10%,#effcf6 0,#fff 42%,#f8fbfa 100%)!important;
}
body.aig-game-open .aig-modal-close{
  position:fixed!important;
  z-index:2147483630!important;
  top:max(10px,env(safe-area-inset-top))!important;
  left:12px!important;
  right:auto!important;
  float:none!important;
  width:44px!important;
  height:44px!important;
  margin:0!important;
  border:1px solid #dce9e3!important;
  background:rgba(255,255,255,.96)!important;
  box-shadow:0 8px 24px rgba(17,78,58,.12)!important;
}
body.aig-game-open .aig-toast{z-index:2147483647!important}

@media(max-width:640px){
  body.aig-game-open .aig-modal-card:before{
    content:"";
    position:fixed;
    z-index:2147483610;
    top:0;left:0;right:0;
    height:calc(max(10px,env(safe-area-inset-top)) + 54px);
    background:rgba(255,255,255,.94);
    border-bottom:1px solid #e2ece7;
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
    pointer-events:none;
  }
  body.aig-game-open .aig-game-shell{
    width:100vw!important;
    max-width:none!important;
    min-height:100dvh!important;
    margin:0!important;
    padding:calc(max(10px,env(safe-area-inset-top)) + 66px) 0 max(16px,env(safe-area-inset-bottom))!important;
    justify-content:flex-start!important;
  }
  body.aig-game-open .aig-game-head{
    display:flex!important;
    align-items:flex-start!important;
    justify-content:space-between!important;
    gap:10px!important;
    margin:0 12px 10px!important;
    padding:0 52px 0 0!important;
  }
  body.aig-game-open .aig-game-head h2{
    margin:0 0 3px!important;
    font-size:24px!important;
    line-height:1.12!important;
    letter-spacing:-.45px!important;
  }
  body.aig-game-open .aig-game-head p{
    max-width:calc(100vw - 88px)!important;
    margin:0!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:12px!important;
    line-height:1.35!important;
  }
  body.aig-game-open .aig-sound-toggle{
    position:fixed!important;
    z-index:2147483630!important;
    top:max(14px,env(safe-area-inset-top))!important;
    right:12px!important;
    margin:0!important;
    min-height:36px!important;
    padding:7px 10px!important;
    background:rgba(255,255,255,.96)!important;
    box-shadow:0 6px 18px rgba(17,78,58,.08)!important;
  }
  body.aig-game-open .aig-runner-hud,
  body.aig-game-open .aig-arcade-hud,
  body.aig-game-open .aig-memory-hud,
  body.aig-game-open .aig-runner-powerbar,
  body.aig-game-open .aig-game-actions,
  body.aig-game-open .aig-runner-result,
  body.aig-game-open .aig-result-card,
  body.aig-game-open .aig-question,
  body.aig-game-open .aig-options,
  body.aig-game-open .aig-feedback,
  body.aig-game-open .aig-puzzle-bank,
  body.aig-game-open .aig-puzzle-answer,
  body.aig-game-open .aig-real-scene,
  body.aig-game-open .aig-choice-actions,
  body.aig-game-open .aig-daily-card{
    margin-left:12px!important;
    margin-right:12px!important;
  }
  body.aig-game-open .aig-runner-hud,
  body.aig-game-open .aig-arcade-hud{margin-top:6px!important;margin-bottom:8px!important}
  body.aig-game-open .aig-canvas-wrap{
    width:100vw!important;
    max-width:none!important;
    margin-left:0!important;
    margin-right:0!important;
    border-left:0!important;
    border-right:0!important;
    border-radius:0!important;
    box-shadow:0 10px 32px rgba(17,87,62,.10)!important;
  }
  body.aig-game-open .aig-canvas-wrap canvas{
    width:100vw!important;
    max-width:none!important;
    max-height:none!important;
  }
  body.aig-game-open .aig-game-actions{
    margin-top:10px!important;
    padding-bottom:2px!important;
  }
}

/* v1.1.3 — mobile arcade games use a true portrait-native canvas inside the scroll-free viewport */
@media(max-width:640px){
  body.aig-game-open .aig-modal-card{
    overflow:hidden!important;
    overscroll-behavior:none!important;
  }
  body.aig-game-open .aig-game-shell{
    position:relative!important;
    display:flex!important;
    flex-direction:column!important;
    width:100vw!important;
    height:100dvh!important;
    min-height:0!important;
    max-height:100dvh!important;
    overflow:hidden!important;
    padding:calc(env(safe-area-inset-top) + 56px) 0 max(8px,env(safe-area-inset-bottom))!important;
  }
  body.aig-game-open .aig-modal-card:before{
    height:calc(env(safe-area-inset-top) + 56px)!important;
  }
  body.aig-game-open .aig-modal-close{
    top:calc(env(safe-area-inset-top) + 8px)!important;
    left:10px!important;
    width:40px!important;
    height:40px!important;
  }
  body.aig-game-open .aig-sound-toggle{
    top:calc(env(safe-area-inset-top) + 9px)!important;
    right:10px!important;
    min-height:38px!important;
    padding:7px 11px!important;
  }
  body.aig-game-open .aig-game-head{
    position:fixed!important;
    z-index:2147483620!important;
    top:calc(env(safe-area-inset-top) + 8px)!important;
    left:58px!important;
    right:102px!important;
    height:40px!important;
    margin:0!important;
    padding:0!important;
    display:flex!important;
    align-items:center!important;
    pointer-events:none!important;
  }
  body.aig-game-open .aig-game-head>div{width:100%!important;min-width:0!important}
  body.aig-game-open .aig-game-head h2{
    margin:0!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:18px!important;
    line-height:1!important;
    text-align:center!important;
  }
  body.aig-game-open .aig-game-head p{display:none!important}
  body.aig-game-open .aig-game-head .aig-sound-toggle{pointer-events:auto!important}

  /* Arcade games: HUD + flexible stage + controls = exactly one viewport */
  body.aig-game-runner .aig-game-shell,
  body.aig-game-dash .aig-game-shell,
  body.aig-game-jump .aig-game-shell{justify-content:flex-start!important}

  body.aig-game-runner .aig-runner-hud,
  body.aig-game-dash .aig-arcade-hud,
  body.aig-game-jump .aig-arcade-hud{
    flex:0 0 58px!important;
    min-height:58px!important;
    width:auto!important;
    margin:6px 10px!important;
    gap:6px!important;
    align-items:stretch!important;
  }
  body.aig-game-runner .aig-runner-hud{display:flex!important}
  body.aig-game-runner .aig-runner-hud-left{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;flex:1 1 auto!important;min-width:0!important}
  body.aig-game-runner .aig-runner-chip{
    min-width:0!important;
    height:58px!important;
    padding:7px 9px!important;
    justify-content:center!important;
    border-radius:14px!important;
  }
  body.aig-game-runner .aig-runner-chip b{font-size:17px!important}
  body.aig-game-runner .aig-runner-chip small{font-size:9px!important}
  body.aig-game-runner .aig-runner-lives{
    flex:0 0 80px!important;
    justify-content:center!important;
    align-items:center!important;
    gap:4px!important;
    font-size:18px!important;
  }
  body.aig-game-dash .aig-arcade-hud,
  body.aig-game-jump .aig-arcade-hud{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important}
  body.aig-game-dash .aig-arcade-hud>div,
  body.aig-game-jump .aig-arcade-hud>div{
    min-width:0!important;
    padding:7px 5px!important;
    border-radius:13px!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
  }
  body.aig-game-dash .aig-arcade-hud b,
  body.aig-game-jump .aig-arcade-hud b{font-size:15px!important}
  body.aig-game-dash .aig-arcade-hud small,
  body.aig-game-jump .aig-arcade-hud small{font-size:8px!important;margin-top:2px!important}

  body.aig-game-runner .aig-runner-powerbar,
  body.aig-game-dash .aig-power-strip{display:none!important}

  body.aig-game-runner .aig-canvas-wrap,
  body.aig-game-dash .aig-canvas-wrap,
  body.aig-game-jump .aig-canvas-wrap{
    flex:1 1 0!important;
    min-height:0!important;
    height:auto!important;
    width:100vw!important;
    margin:0!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    overflow:hidden!important;
  }
  body.aig-game-runner .aig-canvas-wrap canvas,
  body.aig-game-dash .aig-canvas-wrap canvas,
  body.aig-game-jump .aig-canvas-wrap canvas{
    display:block!important;
    width:100%!important;
    height:100%!important;
    min-height:100%!important;
    max-height:none!important;
    aspect-ratio:auto!important;
    object-fit:fill!important;
    touch-action:none!important;
  }

  body.aig-game-runner .aig-game-actions,
  body.aig-game-dash .aig-game-actions,
  body.aig-game-jump .aig-game-actions{
    flex:0 0 auto!important;
    width:100%!important;
    margin:0!important;
    padding:8px 10px!important;
    border:0!important;
    border-top:1px solid #dfeae5!important;
    border-radius:0!important;
    background:rgba(255,255,255,.97)!important;
    box-shadow:0 -8px 24px rgba(17,78,58,.06)!important;
  }
  body.aig-game-runner .aig-runner-status,
  body.aig-game-dash .aig-runner-status,
  body.aig-game-jump .aig-runner-status{display:none!important}
  body.aig-game-runner .aig-control-row,
  body.aig-game-dash .aig-control-row,
  body.aig-game-jump .aig-control-row{
    display:grid!important;
    grid-template-columns:1fr 1.25fr .72fr!important;
    gap:8px!important;
    width:100%!important;
  }
  body.aig-game-dash .aig-control-row,
  body.aig-game-jump .aig-control-row{grid-template-columns:1fr .72fr 1fr!important}
  body.aig-game-runner .aig-control,
  body.aig-game-runner .aig-runner-jump,
  body.aig-game-dash .aig-control,
  body.aig-game-jump .aig-control{
    min-width:0!important;
    width:100%!important;
    height:52px!important;
    min-height:52px!important;
    border-radius:15px!important;
    font-size:16px!important;
  }

  /* Results float over the game instead of creating a second screen below it */
  body.aig-game-runner .aig-runner-result,
  body.aig-game-dash .aig-result-card,
  body.aig-game-jump .aig-result-card{
    position:fixed!important;
    z-index:2147483640!important;
    left:10px!important;
    right:10px!important;
    bottom:calc(env(safe-area-inset-bottom) + 10px)!important;
    width:auto!important;
    max-height:min(52dvh,430px)!important;
    overflow:auto!important;
    margin:0!important;
    padding:16px!important;
    border-radius:20px!important;
    background:rgba(248,255,251,.98)!important;
    box-shadow:0 24px 70px rgba(7,50,35,.25)!important;
    backdrop-filter:blur(16px)!important;
    -webkit-backdrop-filter:blur(16px)!important;
  }
  body.aig-game-runner .aig-runner-result[hidden],
  body.aig-game-dash .aig-result-card[hidden],
  body.aig-game-jump .aig-result-card[hidden]{display:none!important}
}


/* =========================================================
   v1.2.1 — PREMIUM ARCADE CONTROL DOCK
   Visual-only control polish; gameplay and performance logic unchanged.
   ========================================================= */
.aig-game-control{
  position:relative;
  isolation:isolate;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px!important;
  border:1px solid #d8e8e1!important;
  outline:0!important;
  overflow:hidden;
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
  user-select:none;
  -webkit-user-select:none;
  box-shadow:0 7px 18px rgba(17,78,58,.08),inset 0 1px 0 rgba(255,255,255,.82)!important;
  transition:transform .14s ease,box-shadow .14s ease,border-color .14s ease,background .14s ease!important;
}
.aig-game-control::after{
  content:"";
  position:absolute;
  z-index:-1;
  inset:0;
  pointer-events:none;
  background:linear-gradient(115deg,rgba(255,255,255,.34),transparent 42%);
}
.aig-game-control:active{
  transform:translateY(1px) scale(.975)!important;
  box-shadow:0 3px 9px rgba(17,78,58,.08),inset 0 1px 2px rgba(15,83,59,.05)!important;
}
.aig-game-control:focus-visible{
  box-shadow:0 0 0 3px rgba(15,157,104,.17),0 7px 18px rgba(17,78,58,.08)!important;
}
.aig-game-control-soft{
  color:#126348!important;
  background:linear-gradient(180deg,#ffffff 0%,#f0fbf6 100%)!important;
  border-color:#d5e9df!important;
}
.aig-game-control-primary{
  color:#fff!important;
  background:linear-gradient(135deg,#12aa70 0%,#07855a 100%)!important;
  border-color:#078b5d!important;
  box-shadow:0 10px 23px rgba(10,145,94,.24),inset 0 1px 0 rgba(255,255,255,.25)!important;
}
.aig-game-control-primary::after{
  background:linear-gradient(115deg,rgba(255,255,255,.22),transparent 44%);
}
.aig-control-icon{
  width:31px;
  height:31px;
  flex:0 0 31px;
  display:grid;
  place-items:center;
  border-radius:11px;
  background:rgba(15,157,104,.09);
}
.aig-game-control-primary .aig-control-icon{background:rgba(255,255,255,.16)}
.aig-control-icon svg,
.aig-game-control-pause svg{
  width:18px!important;
  height:18px!important;
  margin:0!important;
  stroke:currentColor!important;
  fill:none!important;
  stroke-width:2.15!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}
.aig-control-label{
  font-size:15px;
  font-weight:850;
  letter-spacing:-.01em;
  line-height:1;
}
.aig-game-control-pause{
  width:58px!important;
  min-width:58px!important;
  max-width:58px!important;
  padding:0!important;
  color:#325c4e!important;
  background:linear-gradient(180deg,#fff,#f5f9f7)!important;
  border-color:#d7e6e0!important;
}
.aig-game-control-pause .aig-play-icon{display:none}
.aig-game-control-pause.is-paused{
  color:#fff!important;
  background:linear-gradient(135deg,#18ad75,#07865b)!important;
  border-color:#07865b!important;
  box-shadow:0 9px 20px rgba(10,145,94,.2)!important;
}
.aig-game-control-pause.is-paused .aig-pause-icon{display:none}
.aig-game-control-pause.is-paused .aig-play-icon{display:block}

@media(max-width:640px){
  body.aig-game-runner .aig-game-actions,
  body.aig-game-dash .aig-game-actions,
  body.aig-game-jump .aig-game-actions{
    padding:9px 12px calc(9px + env(safe-area-inset-bottom))!important;
    background:linear-gradient(180deg,rgba(250,255,252,.97),rgba(245,251,248,.99))!important;
    box-shadow:0 -10px 28px rgba(12,76,53,.075)!important;
  }
  body.aig-game-runner .aig-control-row,
  body.aig-game-dash .aig-control-row,
  body.aig-game-jump .aig-control-row{
    align-items:center!important;
    gap:10px!important;
    max-width:620px!important;
    margin:0 auto!important;
  }
  body.aig-game-runner .aig-control-row{grid-template-columns:1fr 1.28fr 58px!important}
  body.aig-game-dash .aig-control-row,
  body.aig-game-jump .aig-control-row{grid-template-columns:1fr 58px 1fr!important}
  body.aig-game-runner .aig-game-control,
  body.aig-game-dash .aig-game-control,
  body.aig-game-jump .aig-game-control{
    height:58px!important;
    min-height:58px!important;
    border-radius:18px!important;
    font-size:15px!important;
  }
  body.aig-game-runner .aig-game-control-pause,
  body.aig-game-dash .aig-game-control-pause,
  body.aig-game-jump .aig-game-control-pause{
    width:58px!important;
    min-width:58px!important;
    max-width:58px!important;
    border-radius:18px!important;
  }
}

/* =========================================================
   v1.3.0 — FULLSCREEN LEARNING GAMES + PREMIUM LEARNING FLOW
   Site-first: CSS is loaded only on the AmarAI Games page.
   ========================================================= */
.aig-learning-screen{
  position:relative;
  min-height:0;
  animation:aig-learn-in .22s cubic-bezier(.2,.8,.2,1) both;
}
.aig-learning-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 0 12px}
.aig-learning-top .aig-progress{flex:1;margin:0}
.aig-learning-top .aig-game-meta{margin:0;flex:0 0 auto}
.aig-learning-main{min-height:0}
.aig-learning-feedback{animation:aig-feedback-in .2s cubic-bezier(.2,.8,.2,1) both}
.aig-feedback-status{display:inline-flex;align-items:center;min-height:28px;padding:5px 10px;border-radius:999px;font-size:11px;font-weight:900;margin-bottom:9px}
.aig-feedback-status.is-correct{background:#dff8ec;color:#08744d}
.aig-feedback-status.is-wrong{background:#fff0f0;color:#a44040}
.aig-correct-answer{display:grid;gap:3px;padding:11px 12px;border:1px solid #cde7da;border-radius:13px;background:#fff}
.aig-correct-answer small{font-size:10px;color:#73867e;font-weight:750}
.aig-correct-answer strong{font-size:14px;line-height:1.45;color:#113f31}
.aig-learning-feedback p{margin:10px 0 12px!important;line-height:1.55;color:#49665b}
.aig-learning-next{width:100%;justify-content:center;min-height:50px;border-radius:15px!important}
.aig-learn-reward{margin:9px 0;padding:9px 11px;border-radius:11px;background:#e7f9f0;color:#08744d;font-size:12px;font-weight:850}
.aig-learning-result{margin:auto!important;width:min(560px,100%)}

.aig-option{
  position:relative;
  display:grid!important;
  grid-template-columns:38px minmax(0,1fr);
  align-items:center;
  gap:10px;
  min-height:56px;
  padding:8px 12px!important;
  border:1px solid #dce8e3!important;
  border-radius:16px!important;
  background:linear-gradient(180deg,#fff,#f9fcfb)!important;
  box-shadow:0 6px 16px rgba(17,78,58,.045);
  text-align:left;
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
}
.aig-option>span{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;background:#eaf8f2;color:#0c8559;font-size:12px;font-weight:900}
.aig-option>b{font-size:13px;line-height:1.35;color:#183d32;font-weight:800}
.aig-option.correct{border-color:#4ac28a!important;background:linear-gradient(180deg,#effcf6,#e4f8ef)!important}
.aig-option.correct>span{background:#14a36d;color:#fff}
.aig-option.wrong{border-color:#e59999!important;background:linear-gradient(180deg,#fff6f6,#fff0f0)!important}
.aig-option.wrong>span{background:#d95b5b;color:#fff}
.aig-option:disabled{cursor:default;opacity:1}

.aig-choice-premium{min-height:54px!important;border-radius:16px!important;justify-content:center!important;box-shadow:0 8px 20px rgba(17,78,58,.08)}
.aig-choice-premium.is-answer-correct{outline:2px solid #43bd84;outline-offset:2px}
.aig-choice-premium.is-answer-wrong{outline:2px solid #df8585;outline-offset:2px}

.aig-prompt-actions{display:grid!important;grid-template-columns:1.3fr .7fr!important;gap:9px!important}
.aig-prompt-actions .aig-btn{width:100%;justify-content:center;border-radius:15px}
.aig-prompt-solution strong{font-size:12px;line-height:1.55;font-weight:750}
.aig-puzzle-chip{min-height:42px;border-radius:12px!important;box-shadow:0 4px 12px rgba(17,78,58,.035);touch-action:manipulation}
.aig-puzzle-chip.selected{box-shadow:0 5px 14px rgba(15,157,104,.08)}

.aig-memory-tip{margin:10px 0 0;text-align:center;color:#7a8b84;font-size:10px;font-weight:700}
.aig-memory-card{position:relative;overflow:hidden;box-shadow:0 6px 16px rgba(17,78,58,.05);transition:transform .14s ease,background .18s ease,border-color .18s ease,box-shadow .18s ease!important;touch-action:manipulation}
.aig-memory-card:active{transform:scale(.96)}
.aig-memory-card.revealed,.aig-memory-card.matched{transform:translateY(-1px);box-shadow:0 9px 20px rgba(17,78,58,.08)}
.aig-memory-card.matched{animation:aig-match-pop .24s cubic-bezier(.2,.8,.2,1)}

@keyframes aig-learn-in{from{opacity:.25;transform:translateY(7px)}to{opacity:1;transform:none}}
@keyframes aig-feedback-in{from{opacity:0;transform:translateY(8px) scale(.99)}to{opacity:1;transform:none}}
@keyframes aig-match-pop{50%{transform:scale(1.045)}}

@media(max-width:640px){
  /* Every non-arcade game uses the same true 100dvh shell as arcade games. */
  body.aig-game-memory .aig-game-shell,
  body.aig-game-quiz .aig-game-shell,
  body.aig-game-prompt .aig-game-shell,
  body.aig-game-realai .aig-game-shell,
  body.aig-game-daily .aig-game-shell{
    justify-content:flex-start!important;
    overflow:hidden!important;
  }
  body.aig-game-memory .aig-learning-screen,
  body.aig-game-quiz .aig-learning-screen,
  body.aig-game-prompt .aig-learning-screen,
  body.aig-game-realai .aig-learning-screen,
  body.aig-game-daily .aig-learning-screen{
    flex:1 1 0!important;
    min-height:0!important;
    width:100%!important;
    margin:0!important;
    padding:10px 12px calc(12px + env(safe-area-inset-bottom))!important;
    overflow:auto!important;
    overscroll-behavior:contain!important;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  body.aig-game-memory .aig-learning-screen::-webkit-scrollbar,
  body.aig-game-quiz .aig-learning-screen::-webkit-scrollbar,
  body.aig-game-prompt .aig-learning-screen::-webkit-scrollbar,
  body.aig-game-realai .aig-learning-screen::-webkit-scrollbar,
  body.aig-game-daily .aig-learning-screen::-webkit-scrollbar{display:none}

  .aig-learning-top{margin:0 0 8px!important;position:sticky;top:0;z-index:3;padding:2px 0 6px;background:linear-gradient(180deg,#f8fcfa 75%,rgba(248,252,250,0))}
  .aig-learning-main{padding-bottom:2px}
  .aig-game-meta{gap:5px!important}
  .aig-pill{font-size:9px!important;padding:5px 8px!important}
  .aig-progress{height:6px!important}
  .aig-question{margin:8px 0 10px!important;font-size:clamp(19px,5.5vw,25px)!important;line-height:1.25!important;letter-spacing:-.025em}
  .aig-options{gap:8px!important}
  .aig-option{min-height:54px!important;border-radius:15px!important;padding:8px 10px!important;grid-template-columns:36px minmax(0,1fr)!important}
  .aig-option>span{width:32px;height:32px}
  .aig-option>b{font-size:12.5px}
  .aig-feedback{margin-top:10px!important;padding:12px!important;border-radius:16px!important}
  .aig-learning-next{min-height:52px!important;font-size:14px!important}

  /* Memory Match fills the available screen rather than behaving like a page. */
  body.aig-game-memory .aig-memory-stage{display:flex!important;flex-direction:column!important;overflow:hidden!important}
  body.aig-game-memory .aig-memory-hud{flex:0 0 52px!important;margin:0 0 8px!important;gap:7px!important}
  body.aig-game-memory .aig-memory-hud>span{padding:7px 8px!important;border-radius:13px!important;display:flex!important;flex-direction:column!important;justify-content:center!important}
  body.aig-game-memory .aig-memory-hud b{font-size:15px!important}
  body.aig-game-memory .aig-memory-hud small{font-size:8px!important;margin-top:2px!important}
  body.aig-game-memory .aig-memory-12{flex:1 1 0!important;min-height:0!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:repeat(4,minmax(0,1fr))!important;gap:7px!important;margin:0!important}
  body.aig-game-memory .aig-memory-12 .aig-memory-card{min-height:0!important;aspect-ratio:auto!important;border-radius:15px!important;font-size:13px!important}
  body.aig-game-memory .aig-memory-tip{flex:0 0 auto;margin:7px 0 0!important;font-size:8.5px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body.aig-game-memory .aig-result-card{
    position:fixed!important;z-index:2147483640!important;left:10px!important;right:10px!important;bottom:calc(env(safe-area-inset-bottom) + 10px)!important;width:auto!important;max-height:min(52dvh,430px)!important;overflow:auto!important;margin:0!important;padding:16px!important;border-radius:20px!important;background:rgba(248,255,251,.985)!important;box-shadow:0 24px 70px rgba(7,50,35,.25)!important
  }
  body.aig-game-memory .aig-result-card[hidden]{display:none!important}

  /* Real or AI scene remains large but leaves room for learning feedback. */
  body.aig-game-realai .aig-real-scene{min-height:clamp(170px,31dvh,260px)!important;margin:0!important;padding:22px 17px!important;border-radius:19px!important}
  body.aig-game-realai .aig-real-scene strong{font-size:16px!important;line-height:1.4!important}
  body.aig-game-realai .aig-choice-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:9px!important;margin:9px 0 0!important}
  body.aig-game-realai .aig-choice-actions .aig-btn{min-width:0!important;margin:0!important}

  /* Prompt puzzle uses a compact two-zone builder. */
  body.aig-game-prompt .aig-puzzle-bank,
  body.aig-game-prompt .aig-puzzle-answer{margin:8px 0 0!important;padding:10px!important;min-height:54px!important;gap:6px!important;border-radius:15px!important}
  body.aig-game-prompt .aig-puzzle-chip{min-height:38px!important;padding:7px 9px!important;font-size:10.5px!important}
  body.aig-game-prompt .aig-prompt-actions{margin:9px 0 0!important}

  body.aig-game-daily .aig-daily-card{border:0!important;background:transparent!important;border-radius:0!important}
  body.aig-game-daily .aig-learning-top{padding-top:4px}
}

/* Premium shared sound control */
body .aig-game-head .aig-sound-toggle{display:inline-flex!important;align-items:center!important;justify-content:center;gap:9px!important;min-height:42px!important;padding:8px 14px!important;border:1px solid #168762!important;border-radius:14px!important;background:linear-gradient(135deg,#12694f,#0a4537)!important;color:#effff8!important;font:700 12px/1.2 system-ui,sans-serif!important;box-shadow:0 6px 18px rgba(9,79,56,.20),inset 0 1px 0 rgba(255,255,255,.16)!important;cursor:pointer;touch-action:manipulation;transition:background .18s,box-shadow .18s,transform .18s;white-space:nowrap}
body .aig-game-head .aig-sound-toggle[aria-pressed="false"]{background:linear-gradient(135deg,#f8faf9,#e9efed)!important;color:#596b63!important;border-color:#d1ddd7!important;box-shadow:0 3px 10px rgba(25,52,41,.07)!important}
.aig-sound-icon{display:inline-flex;align-items:center}.aig-sound-icon svg{width:19px!important;height:19px!important;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.aig-sound-led{width:6px;height:6px;border-radius:50%;background:#7effc6;box-shadow:0 0 8px #53e6a6}.aig-sound-toggle[aria-pressed="false"] .aig-sound-led{background:#9aa9a2;box-shadow:none}body .aig-game-head .aig-sound-toggle:hover{transform:translateY(-1px)}body .aig-game-head .aig-sound-toggle:active{transform:scale(.97)}body .aig-game-head .aig-sound-toggle:focus-visible{outline:3px solid #5ad6a2;outline-offset:3px}
@media(max-width:640px){body.aig-game-open .aig-game-head .aig-sound-toggle{min-height:40px!important;padding:8px 11px!important;gap:7px!important;font-size:11px!important}}
@media(prefers-reduced-motion:reduce){body .aig-game-head .aig-sound-toggle{transition:none;transform:none!important}}

/* Game hub: distinct art, reward availability, levels and results */
.aig-card-thumb{display:grid;place-items:center}.aig-game-art{width:92%!important;height:120px!important;max-width:240px;fill:none;stroke:#fff!important;stroke-width:3!important;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 5px 8px rgba(0,0,0,.17))}.thumb-runner .aig-game-art,.thumb-jump .aig-game-art,.thumb-prompt .aig-game-art,.thumb-daily .aig-game-art{stroke:#176b50!important}.aig-card-quota{display:grid;gap:4px;margin-top:12px;padding-top:11px;border-top:1px solid #edf2ef;color:#087b53;font-size:12px;font-weight:700;line-height:1.5}.aig-card-quota small{font-weight:400;font-size:10px;color:#7a8981}.aig-card-quota.is-limited{color:#a5681b}.aig-level-stat .aig-xp-track{grid-column:2;height:6px;border-radius:99px;overflow:hidden;background:#eee9fb;margin-top:8px}.aig-xp-track i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#7957dc,#b59bed);transition:width .2s}.aig-level-note{font-size:10px;margin-top:5px}.aig-daily-progress [data-reset-label]{font-size:10px;margin-top:7px}.aig-lb-filters{display:flex;gap:5px;padding:4px;border-radius:12px;background:#f1f6f3;margin:0 0 15px}.aig-lb-filters button{flex:1;min-height:35px;border:0;border-radius:9px;background:transparent;color:#60786c;font:700 12px system-ui;cursor:pointer}.aig-lb-filters button[aria-pressed="true"]{background:#fff;color:#087b53;box-shadow:0 2px 7px #133e3010}.aig-lb-filters button:focus-visible{outline:2px solid #149f70;outline-offset:2px}.aig-lb-caption{display:flex;justify-content:space-between;font-size:10px;color:#7b8a81;padding:0 0 7px}.aig-lb-row b{white-space:nowrap;font-size:11px}.aig-lb-empty{font-size:13px;line-height:1.7;color:#708177;padding:18px 8px;text-align:center;background:#f9fcfa;border:1px dashed #d9e6de;border-radius:12px}.aig-lb-note{font-size:11px}.aig-leaderboard[aria-busy="true"]{opacity:.55}.aig-play-quota{margin:8px 0 12px!important;padding:8px 11px;border:1px solid #dfebe4;border-radius:10px;color:#526d5d;font-size:11px!important;background:#f5fbf7;line-height:1.5!important}
body .aig-unified-result{display:block!important;position:relative!important;margin-top:15px!important;padding:20px!important;border:1px solid #dceae2!important;border-radius:20px!important;background:linear-gradient(145deg,#fcfffd,#eff9f3)!important;color:#153d2d!important;text-align:left!important;box-shadow:0 10px 30px #174b3510}.aig-unified-result .aig-result-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin-bottom:15px}.aig-result-heading span{font-size:15px;font-weight:800;color:#087b53}.aig-result-heading strong{font-size:12px!important;color:#6c8174!important}.aig-result-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.aig-result-metrics>div{padding:12px 10px;background:#fff;border:1px solid #e2ece5;border-radius:13px;min-width:0}.aig-result-metrics b{display:block;font-size:25px;color:#174d34}.aig-result-metrics small{display:block;font-size:10px;color:#74877b;margin-top:5px}.aig-unified-result .aig-result-reason{font-size:13px!important;line-height:1.65!important;padding:11px 13px;border-radius:11px;background:#fff8e9;color:#8d661e;margin:12px 0!important}.aig-unified-result .aig-result-reason.success{background:#ddf5e8;color:#08764e}.aig-result-buttons{display:flex;gap:9px;flex-wrap:wrap}.aig-result-buttons .aig-btn{min-height:43px;font-size:13px}.aig-result-buttons .aig-btn:disabled{opacity:.5;cursor:wait}
body .aig-unified-result[hidden]{display:none!important}
.aig-level-badge{grid-column:2;justify-self:start;margin-top:7px;padding:3px 7px;border-radius:7px;background:#f0eafe;color:#7153ae;font-size:10px;font-weight:700}
.aig-prompt-complete .aig-question,.aig-prompt-complete .aig-puzzle-bank,.aig-prompt-complete .aig-puzzle-answer,.aig-prompt-complete .aig-prompt-actions{display:none!important}
@media(max-width:640px){body.aig-game-open .aig-play-quota{position:relative;flex:0 0 auto;margin:5px 0 8px!important;font-size:10px!important;padding:6px 8px}.aig-stats .aig-level-stat{padding:12px}.aig-stats [data-xp]{font-size:10px}body .aig-unified-result{padding:14px!important;max-height:60dvh;overflow:auto;flex:0 0 auto}.aig-result-metrics{gap:6px}.aig-result-metrics>div{padding:9px 7px}.aig-result-metrics b{font-size:21px}.aig-result-metrics small{font-size:9px}.aig-result-buttons{display:grid;grid-template-columns:1fr 1fr}.aig-result-buttons .aig-btn{justify-content:center;padding:0 11px}.aig-card-quota{font-size:11px}.aig-game-art{height:112px!important}}

/* Live 3D game dioramas */
.aig-card .aig-card-thumb{height:208px!important;position:relative;display:block;isolation:isolate;background:radial-gradient(ellipse at 45% 12%,#fff 0%,#effaf4 48%,#d5eadd 100%)}
.aig-card .thumb-dash{background:radial-gradient(ellipse at 40% 15%,#f7faff,#e8edfb 45%,#d0dbf1)}
.aig-card .thumb-jump{background:radial-gradient(ellipse at 40% 15%,#f6fffc,#e0f3ee 50%,#c4e4db)}
.aig-card .thumb-memory{background:radial-gradient(ellipse at 40% 15%,#faf7ff,#eee7f8 50%,#dcd0ee)}
.aig-card .thumb-quiz{background:radial-gradient(ellipse at 40% 15%,#f8fbff,#e8edf9 50%,#d3dff0)}
.aig-card .thumb-prompt{background:radial-gradient(ellipse at 40% 15%,#f7fffb,#e3f4ed 50%,#cce5d9)}
.aig-card .thumb-realai{background:radial-gradient(ellipse at 40% 15%,#fbfaff,#eaeaf5 50%,#d8ddec)}
.aig-card .thumb-daily{background:radial-gradient(ellipse at 40% 15%,#fffdf8,#faf1e2 50%,#eeddbc)}
.aig-3d-canvas{position:absolute;inset:0;width:100%!important;height:100%!important;display:block!important;z-index:2;pointer-events:none;opacity:0;transition:opacity .3s}
.aig-3d-ready .aig-3d-canvas{opacity:1}
.aig-3d-backdrop{position:absolute;inset:0;background:radial-gradient(ellipse at 50% 75%,rgba(32,82,59,.08),transparent 50%);z-index:0}
.aig-3d-fallback{position:absolute;inset:0;display:grid;place-items:center;transition:opacity .3s}.aig-3d-ready .aig-3d-fallback{opacity:0;visibility:hidden}
.aig-scene-play{position:absolute;right:13px;bottom:12px;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.8);backdrop-filter:blur(8px);border:1px solid #ffffffb3;box-shadow:0 4px 12px #154c3214;color:#237958;z-index:3;opacity:0;transform:translateY(4px);transition:opacity .2s,transform .2s}
.aig-card:hover .aig-scene-play,.aig-card:focus-within .aig-scene-play{opacity:1;transform:none}.aig-scene-play svg{width:15px!important;height:15px!important;fill:currentColor!important;stroke:none!important}
.aig-card{border-color:#e3ebe7;box-shadow:0 3px 15px #19452d04}.aig-card:hover{box-shadow:0 16px 35px #19452d12}
@media(max-width:640px){.aig-card .aig-card-thumb{height:166px!important}.aig-scene-play{width:28px;height:28px;right:9px;bottom:9px}}
@media(prefers-reduced-motion:reduce){.aig-3d-canvas,.aig-3d-fallback,.aig-scene-play{transition:none}}
