/* CRILO PONG TOSS — original arcade card / desk-toy art direction */
:root{--pt-ink:#253d4f;--pt-muted:#667887;--pt-coral:#fa888a;--pt-cream:#fffaf1;--pt-line:#63849a;--pt-mint:#9be1c8;--pt-sun:#ffd58b;}
.pt-page{background:radial-gradient(ellipse at 9% 8%,#f9e8df 0%,transparent 30%),radial-gradient(ellipse at 88% 16%,#ccefe9 0%,transparent 34%),#f4f7f3;color:var(--pt-ink);min-height:100dvh;}
.pt-main{width:min(1230px,calc(100% - 34px));margin:19px auto 56px}
.pt-back{display:inline-flex;color:#38627c;text-decoration:none;font:800 12px/1.2 system-ui,sans-serif;padding:10px 2px;margin-bottom:7px;transition:transform .13s}
.pt-back:hover{transform:translateX(-3px);color:#b95e65}
.pt-hero{display:flex;justify-content:space-between;align-items:end;gap:20px;padding:6px 0 23px}
.pt-eyebrow{font:900 11px/1.3 ui-monospace,Consolas,monospace;letter-spacing:.15em;color:#b26f78;margin:0 0 8px}
.pt-hero h1{margin:0;line-height:.98;font:950 clamp(52px,8vw,95px)/1 system-ui,sans-serif;letter-spacing:-.084em;color:#233c57;text-shadow:4px 5px 0 #ffffffa8}
.pt-hero h1 em{font-style:normal;color:#f07b83}
.pt-hero p{max-width:750px;margin:13px 0 0;font:600 15px/1.57 system-ui,sans-serif;color:#617282}
.pt-hero-sticker{width:100px;height:100px;flex:none;display:flex;flex-direction:column;align-items:center;justify-content:center;transform:rotate(9deg);border:2px solid #315975;box-shadow:5px 6px 0 #f5ba7d;border-radius:50%;background:#ffdf96;color:#2a4560}
.pt-hero-sticker strong{font:950 44px/.9 ui-monospace,Consolas,monospace;letter-spacing:-.08em}
.pt-hero-sticker span{font:900 9px/1.1 ui-monospace,Consolas,monospace;letter-spacing:.08em;margin-top:8px}
.pt-shell{border:2px solid #5a7f92;background:#ffffffd9;padding:13px;border-radius:18px;box-shadow:0 7px 0 #98b8b6a0,0 22px 55px #44738f26;overflow:hidden}
.pt-top{display:flex;align-items:stretch;gap:9px;flex-wrap:wrap;padding-bottom:12px}
.pt-stat{display:flex;flex-direction:column;justify-content:center;gap:4px;min-width:113px;min-height:72px;padding:9px 14px;background:#f9fcff;border:1.8px solid #a7c1cf;border-left:5px solid #85d6bf;border-radius:11px}
.pt-stat.secondary{border-left-color:#f6c482}
.pt-stat.tertiary{border-left-color:#c9a7e9}
.pt-stat small{font:850 9px/1.1 ui-monospace,Consolas,monospace;color:#637e8f;letter-spacing:.07em}
.pt-stat strong{font:950 29px/1 ui-monospace,Consolas,monospace;color:#314c66;font-variant-numeric:tabular-nums;letter-spacing:-.06em}
.pt-stat .pt-small-strong{font-size:18px}
.pt-top-actions{margin-left:auto;display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:end}
.pt-action{min-height:38px;border:1.8px solid #7da2b4;border-bottom:3px solid #6d99ad;padding:8px 13px;border-radius:9px;background:#f5fcff;color:#395a73;font:900 10px/1.2 ui-monospace,Consolas,monospace;white-space:nowrap;cursor:pointer;transition:transform .12s,background .12s}
.pt-action:hover:not(:disabled){background:#fff2d6;transform:translateY(-1px);border-color:#d9a576}
.pt-action:disabled{opacity:.35;cursor:default}
.pt-action:focus-visible,.pt-big-button:focus-visible,.pt-level-btn:focus-visible,.pt-chapter:focus-visible{outline:3px solid #e5a67d;outline-offset:2px}
.pt-stage-wrap{position:relative}
.pt-viewport{position:relative;height:clamp(440px,55vw,665px);width:100%;border:3px solid #3e687e;border-radius:14px;overflow:hidden;isolation:isolate;background:linear-gradient(180deg,#e7f8ff,#f4ebdd);touch-action:none;user-select:none;-webkit-user-select:none;cursor:crosshair}
.pt-canvas{width:100%;height:100%;display:block;touch-action:none}
.pt-vignette{pointer-events:none;position:absolute;inset:0;z-index:2;background:radial-gradient(ellipse at center,transparent 53%,#1c526913 100%)}
.pt-viewport-top{pointer-events:none;position:absolute;z-index:3;top:16px;left:18px;right:18px;display:flex;justify-content:space-between;gap:8px;align-items:center}
.pt-tutorial{background:#fffcf7ed;border:1.6px solid #9ab3c0;border-radius:99px;color:#3d6682;font:950 10px/1.2 ui-monospace,Consolas,monospace;letter-spacing:.065em;padding:9px 12px;box-shadow:0 3px 0 #8cabb341}
.pt-weather{display:inline-flex;gap:7px;align-items:center;background:#e6f4ffde;color:#5374a1;border:1.6px solid #8cb9e1;border-radius:99px;padding:8px 13px;font:900 11px/1 ui-monospace,Consolas,monospace;box-shadow:0 3px 0 #708eae40}
.pt-weather[hidden]{display:none}
.pt-weather i{display:inline-block;border-radius:99px;width:7px;height:7px;background:#6a99dd;box-shadow:0 0 0 3px #b0d3fd}
.pt-crosshair{position:absolute;z-index:3;pointer-events:none;left:50%;top:52%;transform:translate(-50%,-50%);width:19px;height:19px;opacity:.65}
.pt-crosshair:before,.pt-crosshair:after{content:"";position:absolute;background:#ffffff;border:1px solid #809fb8;border-radius:9px;box-shadow:0 1px 4px #19466453}
.pt-crosshair:before{width:21px;height:3px;top:8px;left:0}
.pt-crosshair:after{width:3px;height:21px;top:0;left:8px}
.pt-aim-hint{pointer-events:none;position:absolute;z-index:4;left:50%;top:20%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center}
.pt-aim-hint strong{background:#fffbe8e9;border:1.5px solid #e5c995;padding:7px 13px;border-radius:99px;color:#906b45;font:900 10px/1.2 ui-monospace,Consolas,monospace}
.pt-aim-hint small{color:#fff;text-shadow:0 2px 5px #446174;font:900 10px/1.2 ui-monospace,Consolas,monospace}
.pt-viewport-bottom{pointer-events:none;position:absolute;z-index:4;bottom:16px;left:18px;right:18px;display:flex;justify-content:space-between;align-items:end;gap:14px}
.pt-power-wrap{min-width:240px;width:36%;max-width:340px;padding:12px 14px;border:1.6px solid #7c9db1;border-radius:13px;background:#fffdf5ed;box-shadow:0 4px 0 #5c819947}
.pt-power-head{display:flex;align-items:center;justify-content:space-between;gap:6px;font:900 10px/1.2 ui-monospace,Consolas,monospace;color:#55738b}
.pt-power-head strong{color:#e7767c;font-size:14px}
.pt-power-track{height:18px;margin-top:8px;background:#dbe8ef;overflow:hidden;border:1.5px solid #b3c7ce;border-radius:99px;position:relative}
.pt-power-fill{height:100%;display:block;width:35%;background:linear-gradient(90deg,#8cd8b3,#f9d17c 52%,#f48e93);border-radius:99px;transition:width .04s linear}
.pt-aim-readout{background:#fbffffde;border:1.5px solid #a6c6cb;border-radius:99px;padding:9px 11px;color:#466d7b;font:900 10px/1.2 ui-monospace,Consolas,monospace;white-space:nowrap}
.pt-status{position:absolute;bottom:97px;left:50%;z-index:4;transform:translateX(-50%);padding:7px 14px;text-align:center;white-space:nowrap;background:#ffffffe7;border:1.5px solid #b3c9d0;color:#526b82;border-radius:9px;font:900 11px/1 ui-monospace,Consolas,monospace}
.pt-toast{pointer-events:none;position:absolute;z-index:7;top:37%;left:50%;transform:translate(-50%,-50%);white-space:nowrap;font:950 clamp(25px,5vw,49px)/1 system-ui,sans-serif;color:#fffeec;text-shadow:0 3px 0 #9e6e99,0 5px 16px #415f82;letter-spacing:-.065em;animation:ptToast .2s ease-out}
.pt-toast[hidden]{display:none}
@keyframes ptToast{from{opacity:0;transform:translate(-50%,-20%) scale(.7)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
.pt-overlay{position:absolute;inset:0;z-index:8;display:grid;place-items:center;background:#325472a1;backdrop-filter:blur(4px);padding:15px}
.pt-overlay[hidden]{display:none!important}
.pt-overlay-card{width:min(480px,100%);padding:28px 29px 25px;border:3px solid #3d6581;border-radius:16px;background:linear-gradient(145deg,#fffefd,#e7f8f5);text-align:center;color:#314b66;box-shadow:7px 8px 0 #83c6c2,0 28px 52px #1b3e6180}
.pt-overlay-tag{display:inline-flex;background:#e2f5ef;border:1px solid #a0d4c8;border-radius:99px;padding:7px 13px;font:950 10px/1.1 ui-monospace,Consolas,monospace;letter-spacing:.1em;color:#427c75}
.pt-overlay-icon{width:68px;height:68px;margin:17px auto 10px;display:grid;place-items:center;border:2px solid #e39ca5;border-radius:50%;background:radial-gradient(circle at 34% 28%,#fff9e6,#ff9b9e 55%,#ef657b);font-size:36px;color:white;text-shadow:0 2px 1px #ab626b;box-shadow:0 5px 0 #b86e7f6b}
.pt-overlay-card h2{font:950 clamp(30px,5vw,49px)/1.05 system-ui,sans-serif;letter-spacing:-.07em;margin:10px 0;color:#2d4c66}
.pt-overlay-card p{font:600 14px/1.63 system-ui,sans-serif;color:#5a7280;margin:8px 0 18px}
.pt-big-button{min-width:210px;max-width:100%;min-height:47px;padding:11px 22px;border:2px solid #b28458;border-bottom:5px solid #b5844c;border-radius:10px;background:#ffd487;color:#315063;font:950 14px/1.2 system-ui,sans-serif;cursor:pointer;transition:transform .13s,background .13s}
.pt-big-button:hover{background:#ffe3ac;transform:translateY(-2px)}
.pt-secondary-button{display:block;margin:13px auto 0;background:none;border:none;text-decoration:underline;text-underline-offset:4px;cursor:pointer;color:#55788a;font:800 12px/1.3 system-ui,sans-serif}
.pt-secondary-button[hidden]{display:none}
.pt-overlay-help{display:block;margin-top:16px;font:800 10px/1.5 ui-monospace,Consolas,monospace;color:#8695a0;letter-spacing:.045em}
.pt-stage-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 2px 2px;font:850 10px/1.5 ui-monospace,Consolas,monospace;color:#677f91;letter-spacing:.04em}
.pt-stage-nav{display:flex;gap:8px;align-items:center}
.pt-step{min-height:37px;padding:7px 13px;background:#f7fcfe;border:1.5px solid #8cb0c0;border-bottom:3px solid #7e9fb1;border-radius:8px;color:#41627b;font:900 11px/1.2 ui-monospace,Consolas,monospace;cursor:pointer}
.pt-step:disabled{cursor:default;opacity:.45}
.pt-step:hover:not(:disabled){background:#ebffe9}
.pt-selection{margin-top:24px;border:2px solid #a5c5c9;border-radius:16px;padding:17px 18px 20px;background:#ffffffdd;box-shadow:0 5px 0 #bbd4cc5b}
.pt-selection-header{display:flex;justify-content:space-between;gap:13px;align-items:baseline;margin-bottom:16px;flex-wrap:wrap}
.pt-selection-header h2{font:950 22px/1.1 system-ui,sans-serif;letter-spacing:-.035em;color:#34536b;margin:0}
.pt-selection-header p{font:650 12px/1.4 system-ui,sans-serif;color:#7a8b93;margin:0}
.pt-chapter-list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin-bottom:14px}
.pt-chapter{min-height:55px;padding:8px 9px;text-align:left;border:1.6px solid #a0bfc8;border-bottom:3px solid #85aab8;border-radius:9px;background:#f5fbfd;color:#617b8d;cursor:pointer;font:850 11px/1.38 system-ui,sans-serif;transition:background .12s}
.pt-chapter.active{background:#d9f6ea;border-color:#6cbda8;border-bottom-color:#489a84;color:#245f62}
.pt-chapter:not(:disabled):hover{background:#fff3d5}
.pt-chapter:disabled{opacity:.43;cursor:default}
.pt-chapter-description{color:#738692;font:650 12px/1.4 system-ui,sans-serif;margin:0 0 12px}
.pt-level-grid{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:8px}
.pt-level-btn{min-height:70px;background:#f6fbfc;border:1.6px solid #a9c2cb;border-bottom:4px solid #9bb3bf;border-radius:10px;color:#32526e;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;cursor:pointer;transition:transform .12s,background .12s}
.pt-level-btn span{font:950 20px/1 ui-monospace,Consolas,monospace}
.pt-level-btn small{font:900 10px/1 ui-monospace,Consolas,monospace;letter-spacing:.055em}
.pt-level-btn.current{background:#d4f3e6;border-color:#67b8a7;border-bottom-color:#499e8c}
.pt-level-btn.cleared{background:#fff4cf;border-color:#e1bc73;color:#a3763f}
.pt-level-btn.locked{opacity:.42;cursor:not-allowed}
.pt-level-btn:not(:disabled):hover{transform:translateY(-2px);background:#ffe8c3}
.pt-rules{margin:18px 4px 0;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;color:#698093;font:700 11px/1.5 system-ui,sans-serif}
.pt-rule-keys{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.pt-rule-keys kbd{padding:3px 7px;background:white;border:1px solid #afc9cc;border-bottom:3px solid #99aeb8;border-radius:5px;font:900 10px ui-monospace,Consolas,monospace;color:#46667d}
.pt-page .crilo-simple-footer{background:transparent;color:#74808c;border-top:1px solid #aec8c8}
.pt-page .crilo-legal-nav a,.pt-page .crilo-legal-copy{color:#526d7e}
.pt-shell:fullscreen{box-sizing:border-box;width:100vw;height:100dvh;border:0;border-radius:0;box-shadow:none;display:flex;flex-direction:column;padding:9px;background:#effaf8}
.pt-shell:fullscreen .pt-stage-wrap{flex:1;min-height:0;display:flex}
.pt-shell:fullscreen .pt-viewport{flex:1;height:auto;min-height:0;max-height:none}
.pt-shell:fullscreen .pt-top{flex:0 0 auto}
.pt-shell:fullscreen .pt-stage-footer{flex:0 0 auto}
[data-theme="dark"] .pt-page{background:radial-gradient(ellipse at 88% 6%,#244b52,transparent 45%),#171f2d;color:#e1eff0}
[data-theme="dark"] .pt-hero h1{color:#edf9f5;text-shadow:none}
[data-theme="dark"] .pt-hero p,[data-theme="dark"] .pt-selection-header p{color:#b8cbd0}
[data-theme="dark"] .pt-shell,[data-theme="dark"] .pt-selection{background:#243746;border-color:#7297a0}
[data-theme="dark"] .pt-stat,[data-theme="dark"] .pt-action,[data-theme="dark"] .pt-chapter,[data-theme="dark"] .pt-level-btn,[data-theme="dark"] .pt-step{background:#314858;color:#e1f5f0}
[data-theme="dark"] .pt-stat strong,[data-theme="dark"] .pt-stat small,[data-theme="dark"] .pt-selection-header h2{color:#e5f5ee}
[data-theme="dark"] .pt-chapter-description,[data-theme="dark"] .pt-rules{color:#b0c6ce}
[data-theme="dark"] .pt-level-btn.current,[data-theme="dark"] .pt-chapter.active{background:#28645b;color:#eaffef}
[data-theme="dark"] .pt-level-btn.cleared{background:#69533a;color:#ffe4a3}
@media(max-width:990px){.pt-top-actions{width:100%;justify-content:start;margin-left:0}.pt-top .pt-stat{flex:1}.pt-viewport{height:clamp(430px,67vw,620px)}}
@media(max-width:680px){
 .pt-main{width:calc(100% - 16px);margin:11px auto 40px}
 .pt-back{margin-bottom:3px}
 .pt-hero{gap:12px;padding:6px 3px 18px}
 .pt-hero h1{font-size:clamp(45px,12vw,65px)}
 .pt-hero p{font-size:12px;line-height:1.5}
 .pt-hero-sticker{width:65px;height:65px;box-shadow:3px 4px 0 #f5ba7d}
 .pt-hero-sticker strong{font-size:31px}
 .pt-hero-sticker span{font-size:7px;margin-top:4px}
 .pt-eyebrow{font-size:9px}
 .pt-shell{padding:8px;border-radius:12px}
 .pt-top{gap:5px;padding-bottom:9px}
 .pt-stat{min-width:60px;min-height:55px;padding:7px 8px;border-radius:8px;gap:4px}
 .pt-stat strong{font-size:21px}
 .pt-stat .pt-small-strong{font-size:13px}
 .pt-stat small{font-size:8px}
 .pt-action{font-size:9px;min-height:36px;padding:7px 10px}
 .pt-top-actions{gap:6px}
 .pt-viewport{height:min(70dvh,550px);min-height:370px;border-radius:10px;border-width:2px}
 .pt-viewport-top{top:11px;left:10px;right:10px}
 .pt-tutorial{font-size:8px;padding:7px 9px;max-width:73%;white-space:normal}
 .pt-weather{font-size:9px;padding:7px 9px}
 .pt-aim-hint{top:21%}
 .pt-viewport-bottom{left:10px;right:10px;bottom:12px;gap:8px}
 .pt-power-wrap{min-width:0;width:63%;padding:9px}
 .pt-power-head{font-size:8px}
 .pt-power-head strong{font-size:12px}
 .pt-power-track{height:14px;margin-top:6px}
 .pt-aim-readout{font-size:8px;padding:8px;white-space:normal;text-align:right;max-width:35%}
 .pt-status{bottom:88px;font-size:9px}
 .pt-overlay{padding:9px}
 .pt-overlay-card{padding:21px 16px;box-shadow:4px 5px 0 #83c6c2}
 .pt-overlay-card h2{font-size:34px}
 .pt-overlay-card p{font-size:12px}
 .pt-stage-footer{font-size:9px}
 .pt-selection{padding:13px 11px}
 .pt-selection-header h2{font-size:19px}
 .pt-chapter-list{grid-template-columns:repeat(2,minmax(0,1fr))}
 .pt-chapter{min-height:42px;font-size:10px}
 .pt-level-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}
 .pt-level-btn{min-height:57px;border-radius:8px}
 .pt-level-btn span{font-size:18px}
 .pt-rule-keys{gap:4px}
}
@media(max-width:385px){.pt-stat{min-width:55px;padding:6px}.pt-stat strong{font-size:19px}.pt-stat .pt-small-strong{font-size:11px}.pt-hero-sticker{display:none}.pt-viewport{min-height:350px}}
@media(prefers-reduced-motion:reduce){.pt-hero-sticker,.pt-level-btn,.pt-chapter,.pt-action,.pt-power-fill,.pt-big-button{transition:none!important;animation:none!important}}


/* OFFICE HOURS — grounded first-person desk/office presentation
 * Muted office colors, readable projectiles, low-noise UI and clear throw cues.
 * Unique original furniture and props are authored in ping-pong-toss.js.
 */
body.pt-page{
 background:radial-gradient(ellipse at 80% 0%,#435965,#273942 52%,#202b33 100%);
 color:#e7e5db;
}
.pt-page .pt-main{width:min(1180px,calc(100% - 26px));}
.pt-back{color:#c6d3d2}
.pt-back:hover{color:#ffcc9b}
.pt-eyebrow{color:#e5b68b;letter-spacing:.12em}
.pt-hero h1{color:#f2e9d8;text-shadow:0 4px 0 #202b326c}
.pt-hero h1 em{color:#e5ae7b}
.pt-hero p{color:#b5c4c6}
.pt-hero-sticker{
 background:#d5c3a7;border-color:#988d7d;color:#43515b;
 box-shadow:4px 5px 0 #121e2366;transform:rotate(7deg)
}
.pt-shell{
 background:#34444cd9;border:2px solid #788c90;box-shadow:0 6px 0 #1a2a3088,0 23px 60px #12232978;
}
.pt-stat{background:#45565c;border-color:#68828a;border-left-color:#d5b185;box-shadow:inset 0 1px 0 #ffffff0a}
.pt-stat.secondary{border-left-color:#8fb1be}
.pt-stat.tertiary{border-left-color:#a6ac97}
.pt-stat small{color:#c1cfce}
.pt-stat strong{color:#fff0d4}
.pt-action,.pt-step{
 background:#51656a;border-color:#829b9d;border-bottom-color:#334950;
 color:#e6f0eb;border-radius:7px;
}
.pt-action:hover:not(:disabled),.pt-step:hover:not(:disabled){
 background:#677a77;border-color:#cfb792;
}
.pt-viewport{
 background:#677b83;border:3px solid #a9aca0;box-shadow:inset 0 1px 0 #ffffff24;
 cursor:crosshair;
}
.pt-vignette{
 background:radial-gradient(ellipse at 50% 41%,transparent 39%,rgba(19,32,37,.17) 100%);
 box-shadow:inset 0 0 31px #15252d37;
}
.pt-viewport-top{align-items:flex-start}
.pt-tutorial{
 color:#ede4d5;background:#293b45e8;border:1px solid #809ca3;
 border-radius:6px;text-shadow:0 1px 1px #10242a;
 padding:8px 11px;max-width:min(72%,570px);
}
.pt-weather{color:#fff0d5;background:#546e77db;border:1px solid #a6c0c5;box-shadow:0 2px 0 #34444b80}
.pt-weather i{background:#ead094;box-shadow:0 0 0 3px #f0ddb643}
.pt-aim-hint{top:18%}
.pt-aim-hint strong{
 background:#243946b8;color:#fff2db;border:1px solid #819ba0;
 text-shadow:0 1px 1px #10222c;border-radius:4px;letter-spacing:.12em
}
.pt-aim-hint small{color:#f4e4c7;text-shadow:0 2px 3px #233741,0 0 6px #243741}
.pt-crosshair{opacity:.69}
.pt-crosshair:before,.pt-crosshair:after{
 background:#f7c98b;border:1px solid #344750;box-shadow:0 1px 5px #1b2c31
}
.pt-power-wrap{
 background:#303f48e8;border:1px solid #83999c;
 border-radius:8px;box-shadow:0 3px 0 #16272e95;
}
.pt-power-head{color:#e6e5d9}
.pt-power-head strong{color:#f2bf80}
.pt-power-track{background:#202e33;border-color:#829192}
.pt-power-fill{background:linear-gradient(90deg,#6da3a0,#edbb80 52%,#e68a70)}
.pt-aim-readout{color:#e8e1d5;background:#303f48e8;border-color:#82999c;border-radius:7px}
.pt-status{bottom:99px;background:#263840de;color:#d7dfdb;border-color:#708991;border-radius:6px}
.pt-overlay{background:#192e39aa;backdrop-filter:blur(2px)}
.pt-overlay-card{
 background:linear-gradient(145deg,#f0e9dc,#d5dacf);
 border:3px solid #778985;box-shadow:5px 6px 0 #253a3f,0 24px 60px #11212aba;
 color:#334a4f;border-radius:10px;
}
.pt-overlay-tag{color:#526f72;background:#d5ddd3;border-color:#a0b3a9}
.pt-overlay-icon{
 border-color:#b8a58e;background:radial-gradient(circle at 32% 28%,#fff1d0,#e4b987 60%,#bb8766);
 box-shadow:0 4px 0 #86736764;text-shadow:0 2px 2px #725949
}
.pt-overlay-card h2{color:#314850}
.pt-overlay-card p{color:#50666b}
.pt-overlay-help{color:#667a78}
.pt-big-button{background:#e3bd8b;border-color:#967a59;border-bottom-color:#816344;color:#344e58}
.pt-big-button:hover{background:#f1cf9d}
.pt-secondary-button{color:#536e74}
.pt-stage-footer{color:#c1d2d0}
.pt-selection{
 background:#334750f0;border-color:#7e9599;box-shadow:0 4px 0 #17272e78;
}
.pt-selection-header h2{color:#f1e9d8}
.pt-selection-header p,.pt-chapter-description{color:#b5c8c7}
.pt-chapter{
 background:#4a6067;color:#d2dddb;border-color:#798d92;border-bottom-color:#3a5057;
 border-radius:6px;
}
.pt-chapter.active{background:#657b6d;color:#f3edda;border-color:#b3c0ab}
.pt-chapter:not(:disabled):hover{background:#697b7b}
.pt-level-btn{
 background:#455a64;color:#e5e6dc;border-color:#77909a;border-bottom-color:#354e57;
 border-radius:7px;
}
.pt-level-btn.current{background:#667c6a;color:#fff0d7;border-color:#c5bc9b}
.pt-level-btn.cleared{background:#82775d;border-color:#b6a47e;color:#fff1d2}
.pt-level-btn:not(:disabled):hover{background:#617783}
.pt-rules{color:#b7c8c9}
.pt-rule-keys kbd{background:#485b63;color:#f4ebda;border-color:#8299a0;border-bottom-color:#344a53}
.pt-page .crilo-simple-footer{background:#202c34;color:#adbfc2;border-top:1px solid #5d767d}
.pt-page .crilo-legal-nav a,.pt-page .crilo-legal-copy{color:#adbfc2}
.pt-shell:fullscreen{background:#35464c}
@media(max-width:680px){
 .pt-hero h1{font-size:clamp(45px,11vw,67px)}
 .pt-shell{padding:7px}
 .pt-viewport{min-height:415px;height:min(73dvh,650px)}
 .pt-aim-hint{top:23%}
 .pt-power-wrap{padding:9px}
 .pt-tutorial{font-size:8px;line-height:1.45}
 .pt-overlay-card{padding:20px 15px}
 .pt-selection{padding:13px 11px}
 .pt-chapter{min-height:46px}
}

/* Distinct shot-rule plaque: no guessing which levels require a rebound. */
.pt-shot-objective{
 display:inline-block;
 margin:8px auto 0;padding:7px 13px;
 border:1.5px solid #c9b699;border-bottom:3px solid #85735f;
 border-radius:6px;
 background:#283943e8;color:#ffefc8;
 box-shadow:0 2px 9px #17283280;
 font:900 10px/1.1 ui-monospace,Consolas,monospace;
 letter-spacing:.075em;
}
.pt-viewport[data-shot-mode="bank"] .pt-shot-objective{
 background:#775948e8;border-color:#d5aa79;color:#fff3d0;
}
.pt-viewport[data-shot-mode="spring"] .pt-shot-objective{
 background:#526d64ed;border-color:#a9cdb4;color:#ecffdf;
}
.pt-viewport[data-shot-mode="bank"] .pt-tutorial{
 border-color:#d2aa85;color:#ffecdc;
}
.pt-viewport[data-shot-mode="spring"] .pt-tutorial{
 border-color:#a8ceb4;color:#eaffee;
}
.pt-level-btn small{letter-spacing:.03em;}
.pt-level-btn:not(:disabled):has(small){min-width:0}
@media(max-width:680px){
 .pt-shot-objective{font-size:9px;padding:6px 9px;margin-top:6px}
 .pt-aim-hint{top:20%}
}

/* 50 custom-authored stages: display the actual name and shot type directly.
   Five columns offer space for distinct tasks instead of fifty identical tiles. */
.pt-level-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.pt-level-btn{
 min-height:86px;gap:5px;align-items:flex-start;
 padding:10px 12px;text-align:left;position:relative;overflow:hidden;
 border-left-width:5px
}
.pt-level-btn span{font-size:21px;line-height:1.05}
.pt-level-btn .pt-level-name{
 font:850 12px/1.2 system-ui,sans-serif;
 white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
 max-width:100%;text-transform:none;color:inherit;
}
.pt-level-btn .pt-level-status{
 color:#a8c1c2;letter-spacing:.1em;
 font:850 9px/1.2 ui-monospace,Consolas,monospace
}
.pt-level-btn[data-shot="direct"]{border-left-color:#7ab59f}
.pt-level-btn[data-shot="bank"]{border-left-color:#d29d70}
.pt-level-btn[data-shot="spring"]{border-left-color:#a796d2}
.pt-level-btn[data-shot="bank"] .pt-level-status{color:#edc18f}
.pt-level-btn[data-shot="spring"] .pt-level-status{color:#ccb3ee}
.pt-level-btn.current .pt-level-status{color:#eff5cc}
.pt-level-btn.cleared .pt-level-status{color:#fbdca6}
.pt-selection-header h2{letter-spacing:-.045em}
.pt-shot-objective{max-width:min(92vw,540px)}
@media(max-width:770px){
 .pt-level-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 .pt-level-btn{min-height:84px}
 .pt-level-btn .pt-level-name{font-size:11px}
}
@media(max-width:490px){
 .pt-level-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .pt-level-btn{min-height:82px;padding:9px 10px}
 .pt-level-btn span{font-size:19px}
 .pt-level-btn .pt-level-name{font-size:11px}
}

/* Office Atmosphere & Impact Feedback — let the detailed 3D environment
   carry the scene while keeping the small projectile and hints visible. */
.pt-viewport{
 border-color:#758f98;
 box-shadow:inset 0 0 0 1px #ecdec747,0 8px 22px #121e2838;
}
.pt-vignette{
 background:radial-gradient(ellipse at 50% 45%,transparent 48%,rgba(17,31,38,.20) 100%);
 box-shadow:inset 0 0 35px #14232b48;
}
#ptStatus{
 display:block;max-width:min(100%,650px);min-width:0;
 text-align:right;overflow-wrap:anywhere;
 font-weight:800;font-size:11px;line-height:1.55;
 color:#e2e9e0;
}
.pt-stage-footer{align-items:center}
.pt-stage-nav{flex-shrink:0}
@media(max-width:680px){
 #ptStatus{width:100%;max-width:100%;text-align:left;font-size:10px;line-height:1.5}
 .pt-stage-footer{gap:8px}
}
@media(prefers-reduced-motion:reduce){
 .pt-viewport,.pt-vignette{transition:none}
}

/* New tricks appear every few stages: readable visual teaching cues. */
.pt-level-btn[data-new-trick="true"]{
 border-top-color:#d7b980;
 box-shadow:inset 0 2px 0 #f3d89c40,0 2px 0 #0b1e2466;
}
.pt-level-btn[data-new-trick="true"] .pt-level-status{
 color:#e8c68d;letter-spacing:.025em;
}
.pt-level-btn.current[data-new-trick="true"]{
 box-shadow:inset 0 2px 0 #f2dea677,0 0 0 1px #e3ba7680;
}
.pt-viewport[data-lid-state="open"] .pt-shot-objective{
 background:#294d47ed;border-color:#90d7af;color:#e7ffda;
 box-shadow:0 0 12px #4fbb8b3d;
}
.pt-viewport[data-lid-state="closed"] .pt-shot-objective{
 background:#513c40e8;border-color:#c38b8c;color:#ffe3d9;
}
.pt-level-name{overflow:hidden;text-overflow:ellipsis}
@media(max-width:490px){
 .pt-level-btn[data-new-trick="true"] .pt-level-status{font-size:8px}
}

/* Skill-shot details: compact, readable even above a dark 3D background. */
.pt-difficulty{
 display:inline-flex;align-items:center;align-self:center;
 margin:7px auto 0;padding:4px 9px;
 background:#203944db;border:1px solid #acc6c2;
 border-radius:5px;color:#f5e1b2;
 font:800 9px/1.15 ui-monospace,Consolas,monospace;letter-spacing:.08em;
 text-shadow:0 1px 2px #132833;
}
.pt-difficulty[data-rank="1"],.pt-difficulty[data-rank="2"]{
 color:#b8e8cf;border-color:#85bdaa;
}
.pt-difficulty[data-rank="4"],.pt-difficulty[data-rank="5"]{
 color:#f6c5a9;border-color:#d7a388;
}
.pt-level-btn[data-difficulty="5"]{border-bottom-color:#cb8c89}
.pt-level-btn[data-difficulty="4"]{border-bottom-color:#d9b18f}
.pt-viewport[data-shot-mode="direct"] .pt-shot-objective{
 backdrop-filter:blur(4px);
}
.pt-viewport-top{pointer-events:none}
@media(max-width:560px){
 .pt-difficulty{font-size:8px;letter-spacing:.025em;padding:4px 7px}
 .pt-shot-objective{max-width:88vw;font-size:9px}
}

/* Live contact feedback for the new full-scene bounce physics. */
.pt-stat.physics{
 border-left-color:#80b9d4;
 background:linear-gradient(145deg,#f4fafc,#e6f2f6);
}
.pt-stat.physics strong{color:#3b778f}
[data-theme="dark"] .pt-stat.physics{
 background:#36545f;
 border-left-color:#9ad9dc;
}
[data-theme="dark"] .pt-stat.physics strong{color:#e4f7eb}
@media(max-width:680px){
 .pt-stat.physics{flex:1 1 75px}
 .pt-stat.physics strong{font-size:21px}
}

/* ===== Arcade polish: the 3D scene is the hero, not the HUD. ===== */
.pt-page .pt-shell{
 padding:12px;
 border-radius:20px;
 background:linear-gradient(145deg,#d6e2df,#b8c9c9);
 box-shadow:0 10px 35px #142d3d26,0 2px 0 #ffffffa8 inset;
}
.pt-page .pt-top{gap:7px;align-items:center;padding:0 2px 10px}
.pt-page .pt-top .pt-stat{
 padding:7px 11px;min-width:82px;flex:0 0 auto;border-radius:10px;
 border:1px solid #8da4a5;background:#edf5f1;
 box-shadow:0 2px 0 #92a8a24a;
}
.pt-page .pt-top .pt-stat small{font-size:9px;letter-spacing:.02em}
.pt-page .pt-top .pt-stat strong{font-size:18px;line-height:1.15}
.pt-page .pt-top .pt-stat.tertiary,
.pt-page .pt-top .pt-stat:has(#ptBest){display:none}
.pt-page .pt-top-actions{margin-left:auto;gap:5px}
.pt-page .pt-action{
 width:34px;min-width:34px;height:34px;padding:0;display:grid;place-items:center;
 font:800 19px/1 system-ui,sans-serif;letter-spacing:0;
 border-radius:9px;box-shadow:0 2px 0 #132b3652;
}
.pt-page .pt-viewport{
 border:2px solid #3a606c;border-radius:17px;
 height:clamp(460px,56vw,700px);
 background:#374f59;
 box-shadow:0 5px 24px #142a3445,inset 0 0 0 1px #ffffff20;
}
.pt-page .pt-vignette{
 background:radial-gradient(ellipse at 50% 49%,
  transparent 55%,rgba(15,28,38,.18) 100%);
 box-shadow:inset 0 0 24px #152b3334;
}
.pt-page .pt-aim-hint{
 left:13px;top:13px;right:auto;transform:none;
 flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-items:center;
 gap:6px;max-width:min(75%,460px);text-align:left;
 padding:0;background:transparent;border:none;box-shadow:none;
}
.pt-page .pt-aim-hint #ptChapter,
.pt-page .pt-aim-hint #ptDifficulty{display:none!important}
.pt-page .pt-aim-hint #ptStageTitle{
 display:inline-block;margin:0;max-width:225px;
 white-space:nowrap;text-overflow:ellipsis;overflow:hidden;
 border:1px solid #c4d0ce50;border-radius:8px;
 background:#172932cb;padding:7px 10px;
 color:#fff4df;font:750 11px/1.15 system-ui,sans-serif;
 letter-spacing:.01em;text-transform:none;
 text-shadow:none;box-shadow:0 2px 10px #07171e31;
 backdrop-filter:blur(7px);
}
.pt-page .pt-aim-hint .pt-shot-objective{
 display:inline-flex;align-items:center;margin:0;padding:7px 9px;
 max-width:220px;min-height:29px;
 font:760 10px/1.1 system-ui,sans-serif;
 letter-spacing:0;text-transform:none;
 color:#f6edda;background:#26414bbd;
 border:1px solid #7ca2a5a0;border-radius:8px;
 box-shadow:0 2px 10px #07171e28;backdrop-filter:blur(7px);
}
.pt-page .pt-viewport-top{
 top:52px;left:13px;right:13px;align-items:flex-start;
 justify-content:space-between;z-index:5;
}
.pt-page .pt-viewport-top .pt-tutorial{display:none!important}
.pt-page .pt-viewport[data-show-tip="yes"] .pt-viewport-top .pt-tutorial{
 display:block!important;max-width:270px;
 padding:6px 9px;font:650 10px/1.2 system-ui,sans-serif;
 letter-spacing:0;border-radius:7px;
 color:#f0f7f3;background:#243e48cf;border:1px solid #83afb091;
 box-shadow:0 3px 12px #17293138;
}
.pt-page .pt-weather{
 margin-left:auto;padding:7px 9px;font:750 10px/1 system-ui,sans-serif;
 letter-spacing:0;border-radius:8px;
 color:#f5f9ee;background:#263e46c2;border:1px solid #819e9bab;
 backdrop-filter:blur(7px);
}
.pt-page .pt-viewport-bottom{left:13px;right:13px;bottom:13px}
.pt-page .pt-power-wrap{
 min-width:130px;width:clamp(130px,22%,205px);max-width:205px;
 padding:9px 11px;background:#203843d9;
 border:1px solid #aec1ba80;border-radius:10px;
 backdrop-filter:blur(7px);box-shadow:0 4px 16px #051a2240;
}
.pt-page .pt-power-head{font:750 9px/1.15 system-ui,sans-serif;color:#ebf0e8;letter-spacing:0}
.pt-page .pt-power-head strong{font-size:12px;color:#ffdfa0}
.pt-page .pt-power-track{height:9px;margin-top:6px;border-radius:99px;border:0;background:#0f2830}
.pt-page .pt-power-fill{border-radius:99px}
.pt-page .pt-aim-readout{display:none!important}
.pt-page .pt-toast{
 top:auto;bottom:92px;left:50%;width:max-content;max-width:calc(100% - 35px);
 transform:translateX(-50%);padding:9px 15px;min-height:30px;
 color:#f8f6e9;background:#223842df;
 border:1px solid #b1c0b18a;border-radius:10px;
 box-shadow:0 6px 24px #081c254a;
 text-shadow:none;letter-spacing:0;white-space:normal;text-align:center;
 font:750 clamp(11px,1.6vw,14px)/1.2 system-ui,sans-serif;
 animation:ptArcadeToast .15s ease-out;
 backdrop-filter:blur(8px);
}
.pt-page .pt-toast[data-tone="good"]{
 background:#284d43de;color:#e3f8de;border-color:#a7d6b29e;
}
@keyframes ptArcadeToast{
 from{opacity:0;transform:translate(-50%,8px) scale(.96)}
 to{opacity:1;transform:translate(-50%,0) scale(1)}
}
.pt-page .pt-overlay{
 background:#0c252dab;backdrop-filter:blur(5px);
}
.pt-page .pt-overlay-card{
 width:min(365px,100%);max-height:90%;overflow-y:auto;
 padding:22px 22px 20px;border:1px solid #a3c3bd99;
 border-radius:23px;background:linear-gradient(155deg,#f8faf2,#e1ede9);
 box-shadow:0 25px 55px #081c2d8c,0 2px 0 #ffffff inset;
}
.pt-page .pt-overlay-card h2{
 font:850 clamp(23px,4vw,29px)/1.08 system-ui,sans-serif;
 letter-spacing:-.035em;margin:8px 0 9px;
}
.pt-page .pt-overlay-card p{
 font:500 13px/1.55 system-ui,sans-serif;
 max-width:34ch;margin:10px auto 16px;color:#435e60;
}
.pt-page .pt-overlay-icon{width:48px;height:48px;font-size:23px;margin:13px auto 7px}
.pt-page .pt-overlay-tag{
 padding:6px 10px;font:750 10px/1.15 system-ui,sans-serif;
 letter-spacing:.025em;border-radius:9px;
}
.pt-page .pt-overlay-help{display:none}
.pt-page .pt-overlay-card .pt-big-button{border-radius:12px}
.pt-page .pt-stage-footer{gap:10px;align-items:center;padding:10px 3px 2px}
.pt-page #ptStatus{
 font:600 11px/1.4 system-ui,sans-serif;letter-spacing:0;
 color:#47616c;max-width:min(65%,620px);
}
@media(max-width:650px){
 .pt-page .pt-shell{padding:8px}
 .pt-page .pt-top .pt-stat{min-width:70px;padding:6px 9px}
 .pt-page .pt-top .pt-stat small{font-size:8px}
 .pt-page .pt-top .pt-stat strong{font-size:15px}
 .pt-page .pt-action{width:31px;min-width:31px;height:31px;font-size:18px}
 .pt-page .pt-viewport{height:clamp(420px,115vw,645px)}
 .pt-page .pt-aim-hint{left:9px;top:10px;max-width:calc(100% - 18px)}
 .pt-page .pt-aim-hint #ptStageTitle{font-size:10px;max-width:155px;padding:6px 8px}
 .pt-page .pt-aim-hint .pt-shot-objective{font-size:9px;max-width:145px;padding:6px 8px}
 .pt-page .pt-viewport-top{left:9px;right:9px;top:46px}
 .pt-page .pt-power-wrap{min-width:120px;width:150px;padding:7px 9px}
 .pt-page .pt-stage-footer{align-items:flex-start}
 .pt-page #ptStatus{max-width:100%;text-align:left;font-size:10px}
}
@media(prefers-reduced-motion:reduce){
 .pt-page .pt-toast{animation:none}
}

/* Win / pause panels feel like a finished arcade app, not debug dialogs. */
.pt-page .pt-overlay[data-state="win"]{
 background:radial-gradient(ellipse at center,#40685d8a,#102a36bd 75%);
}
.pt-page .pt-overlay[data-state="win"] .pt-overlay-card{
 background:linear-gradient(155deg,#fffaf0,#e0efe4);
 border-color:#a1d0b0;
 box-shadow:0 0 0 1px #fff7de72,0 26px 65px #0b302c8b;
}
.pt-page .pt-overlay[data-state="win"] .pt-overlay-icon{
 background:radial-gradient(circle at 30% 26%,#fff8dc,#f8d289 60%,#e19e67);
 border-color:#eac98c;
 box-shadow:0 0 0 7px #f8d89a1e,0 0 23px #e4c98555;
 animation:ptWinPop .48s cubic-bezier(.17,.9,.27,1.18) both;
}
.pt-page .pt-overlay[data-state="win"] .pt-overlay-card h2{
 color:#3a675b;
}
.pt-page .pt-overlay[data-state="resume"] .pt-overlay-icon{
 background:radial-gradient(circle at 35% 25%,#fff8eb,#c1dcd8 70%,#84b8b1);
}
@keyframes ptWinPop{
 0%{transform:scale(.65) rotate(-12deg);opacity:.3}
 64%{transform:scale(1.11) rotate(3deg);opacity:1}
 100%{transform:scale(1) rotate(0)}
}
@media(prefers-reduced-motion:reduce){
 .pt-page .pt-overlay[data-state="win"] .pt-overlay-icon{animation:none}
}


/* 50-level progression: compact resume/menu buttons, no star-score palette. */
.pt-page .pt-top .pt-stat.tertiary{
 display:flex;min-width:86px;
}
.pt-page .pt-menu-trigger,.pt-page .pt-continue-button{
 display:inline-flex;justify-content:center;align-items:center;gap:6px;
 border:1.5px solid #779d9c;border-bottom:3px solid #688f8a;
 background:#dcefe6;color:#254d54;
 font:900 11px/1.2 ui-monospace,Consolas,monospace;
 border-radius:9px;cursor:pointer;min-height:34px;
 padding:7px 12px;letter-spacing:.015em;
}
.pt-page .pt-menu-trigger:hover,.pt-page .pt-continue-button:hover{
 background:#fff1d8;border-color:#b58a68;
}
.pt-page .pt-menu-trigger:focus-visible,.pt-page .pt-continue-button:focus-visible{
 outline:3px solid #ddae85;outline-offset:3px;
}
.pt-page .pt-continue-button{
 min-height:43px;background:#c4e7da;border-bottom-color:#619a87;
 padding:10px 14px;white-space:nowrap;
}
.pt-page .pt-selection{scroll-margin-top:18px}
.pt-page .pt-selection-header{align-items:center}
.pt-page .pt-selection-header>div{flex:1 1 220px}
.pt-page .pt-selection-header p{margin-top:5px}
.pt-page .pt-level-btn.cleared{
 background:#d9e9df;border-color:#89b49f;border-bottom-color:#629782;
 color:#365f56;
}
.pt-page .pt-level-btn.cleared .pt-level-status{color:#376e60}
.pt-page .pt-level-btn.current{outline:2px solid #d7b77d;outline-offset:1px}
.pt-page .pt-shot-objective{
 max-width:min(380px,calc(100vw - 48px));
 white-space:normal;line-height:1.35;text-wrap:balance;
}
[data-theme="dark"] .pt-page .pt-menu-trigger,
[data-theme="dark"] .pt-page .pt-continue-button{
 background:#365b57;color:#edf6eb;border-color:#7cafa0;
}
[data-theme="dark"] .pt-page .pt-level-btn.cleared{
 background:#38594d;color:#e1f6dc;border-color:#65947f;
}
[data-theme="dark"] .pt-page .pt-level-btn.cleared .pt-level-status{color:#b4e3d0}
@media(max-width:650px){
 .pt-page .pt-top .pt-stat.tertiary{min-width:65px;padding:6px 8px}
 .pt-page .pt-menu-trigger{padding:6px 8px;min-height:32px;font-size:10px}
 .pt-page .pt-continue-button{width:100%;font-size:11px}
 .pt-page .pt-selection-header>div{flex-basis:100%}
 .pt-page .pt-shot-objective{max-width:calc(100vw - 42px);font-size:10px}
}


/* 2026 arcade art-direction pass: a quiet HUD frames the actual shot.
   Strong contrast belongs to interactive objects, not decorative chrome. */
.pt-page .pt-top .pt-stat.physics{display:none}
.pt-page .pt-top .pt-stat{
 min-height:42px;padding:7px 12px;border-radius:11px;
 box-shadow:0 1px 0 #ffffff4d inset;
}
.pt-page .pt-top .pt-stat:first-child{
 border-left:3px solid #72c3b0;
}
.pt-page .pt-top-actions{align-self:center}
.pt-page .pt-viewport{
 border:2px solid #4e7a82;
 box-shadow:0 10px 29px #16384838,inset 0 0 0 1px #ffffff28;
}
.pt-page .pt-vignette{
 background:radial-gradient(ellipse at 50% 43%,transparent 64%,rgba(11,29,40,.10) 100%);
 box-shadow:inset 0 0 18px #132a3230;
}
.pt-page .pt-aim-hint .pt-shot-objective{
 border-left:3px solid var(--pt-stage-accent,#a2dabb);
 background:#193744d9;
 color:#fff9e8;
 font-weight:800;
}
.pt-page .pt-viewport[data-challenge="complex"] .pt-aim-hint #ptStageTitle{
 display:none;
}
.pt-page .pt-viewport[data-challenge="complex"] .pt-aim-hint .pt-shot-objective{
 background:#193744e8;
 border-left-width:4px;
}
.pt-page .pt-level-btn .pt-level-status{
 max-width:calc(100% - 12px);
 overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
 letter-spacing:0;font-size:9px;
}
.pt-page .pt-level-btn .pt-level-name{
 max-width:calc(100% - 12px);
}
@media(max-width:650px){
 .pt-page .pt-top .pt-stat{
  padding:5px 9px;min-width:69px;min-height:38px;
 }
 .pt-page .pt-top .pt-stat strong{font-size:16px}
 .pt-page .pt-viewport{border-width:2px}
 .pt-page .pt-level-btn .pt-level-status{font-size:8px}
 .pt-page .pt-aim-hint .pt-shot-objective{
  max-width:min(245px,calc(100vw - 48px));
  font-size:10px;line-height:1.25;
 }
}
@media(prefers-reduced-motion:reduce){
 .pt-page .pt-viewport{scroll-behavior:auto}
}


/* Stage clarity: one familiar mechanic color, no extra HUD badges. */
.pt-page .pt-viewport[data-mechanic="wall"] .pt-aim-hint .pt-shot-objective{
 border-left-color:#f2b079;color:#fff1dd;
}
.pt-page .pt-viewport[data-mechanic="spring"] .pt-aim-hint .pt-shot-objective{
 border-left-color:#8ce0bc;color:#eaffee;
}
.pt-page .pt-viewport[data-mechanic="bank"] .pt-aim-hint .pt-shot-objective{
 border-left-color:#ffc38a;color:#fff3dc;
}
.pt-page .pt-viewport[data-mechanic="hoop"] .pt-aim-hint .pt-shot-objective{
 border-left-color:#f8de95;color:#fff9df;
}
.pt-page .pt-viewport[data-mechanic="wind"] .pt-aim-hint .pt-shot-objective{
 border-left-color:#8ecfe5;color:#e8f6ff;
}
.pt-page .pt-weather{
 border-left:2px solid #9fd6dc;
 box-shadow:0 2px 8px #091c2233;
}
@media(max-width:650px){
 .pt-page .pt-aim-hint .pt-shot-objective{
  max-width:min(250px,calc(100vw - 40px));
 }
}

/* High-contrast level scoreboard. Previously a cream value on a mint panel
   was almost invisible, particularly at desktop screenshot sizes. */
.pt-page .pt-top .pt-stat{
 background:#e8f3ef;
 border-color:#769ba0;
}
.pt-page .pt-top .pt-stat small{
 color:#365b67;
 opacity:1;
 text-shadow:none;
 font-weight:900;
 letter-spacing:.035em;
}
.pt-page .pt-top .pt-stat strong,
.pt-page .pt-top .pt-stat .pt-small-strong{
 color:#173947;
 opacity:1;
 text-shadow:none;
 font-weight:950;
}
.pt-page .pt-top .pt-stat.secondary{
 background:#edf4ee;
}
.pt-page .pt-top .pt-stat.tertiary{
 background:#e3efe9;
}
[data-theme="dark"] .pt-page .pt-top .pt-stat{
 background:#d7e5df;
 border-color:#76979a;
}
[data-theme="dark"] .pt-page .pt-top .pt-stat small{
 color:#365b67;
}
[data-theme="dark"] .pt-page .pt-top .pt-stat strong,
[data-theme="dark"] .pt-page .pt-top .pt-stat .pt-small-strong{
 color:#173947;
}


/* Optional voice chooser lives in the existing instructions modal, rather
   than adding visual noise to the game HUD. */
.pt-page .pt-voice-settings{
 margin:18px 0 12px;
 padding:14px 16px 12px;
 border:1px solid #8ca9a6;
 border-radius:15px;
 background:#edf5f1;
 color:#253f4a;
}
.pt-page .pt-voice-heading{
 display:flex;justify-content:space-between;align-items:center;
 gap:12px;margin-bottom:12px;
 font-size:14px;
}
.pt-page .pt-voice-heading strong{color:#244654;font-size:15px}
.pt-page .pt-voice-heading span{color:#55717a;font-size:11px}
.pt-page .pt-voice-options{
 display:flex;align-items:center;gap:9px;flex-wrap:wrap;
}
.pt-page .pt-voice-label{font-size:12px;font-weight:800;color:#2b4b56}
.pt-page #ptVoiceSelect{
 min-width:180px;max-width:100%;flex:1;
 font:700 13px/1.35 system-ui,sans-serif;
 padding:10px 12px;
 color:#193f4b;background:#fffef9;
 border:1px solid #749a9d;border-radius:9px;
}
.pt-page .pt-voice-preview{
 flex:0 0 auto;
 padding:10px 13px;border:1px solid #628a8c;border-radius:9px;
 color:#203e4a;background:#d8e9e5;font:800 12px/1.3 system-ui,sans-serif;
 cursor:pointer;
}
.pt-page .pt-voice-preview:hover{background:#c6e3dc}
.pt-page #ptVoiceSelect:focus-visible,
.pt-page .pt-voice-preview:focus-visible{
 outline:3px solid #437e96;outline-offset:2px;
}
.pt-page .pt-voice-help{
 margin:9px 0 0;color:#486770;font-size:12px;line-height:1.45;
}
[data-theme="dark"] .pt-page .pt-voice-settings{
 background:#243943;border-color:#75919a;color:#e2f0ec;
}
[data-theme="dark"] .pt-page .pt-voice-heading strong,
[data-theme="dark"] .pt-page .pt-voice-label{color:#e4f2ed}
[data-theme="dark"] .pt-page .pt-voice-heading span,
[data-theme="dark"] .pt-page .pt-voice-help{color:#bed3d1}
@media(max-width:500px){
 .pt-page .pt-voice-options{align-items:stretch}
 .pt-page .pt-voice-label{flex-basis:100%}
 .pt-page #ptVoiceSelect{min-width:0;width:100%}
}


/* Sound toggle: on/off must be visible, not merely reflected in a tooltip. */
.pt-page .pt-action.pt-sound-toggle{
 display:inline-flex;align-items:center;justify-content:center;gap:4px;
 width:68px;min-width:68px;height:34px;padding:0 7px;
 font:900 11px/1 system-ui,sans-serif;
 letter-spacing:.02em;transition:background .13s,border-color .13s,color .13s;
}
.pt-page .pt-sound-icon{width:19px;height:19px;flex:0 0 19px}
.pt-page .pt-sound-state{min-width:22px;text-align:center}
.pt-page .pt-sound-toggle[data-sound="on"]{
 background:#cdeedd;border-color:#508675;border-bottom-color:#397363;
 color:#1d5544;
}
.pt-page .pt-sound-toggle[data-sound="off"]{
 background:#f6ddd8;border-color:#bc7a72;border-bottom-color:#9b5d55;
 color:#793d36;
}
.pt-page .pt-sound-toggle[data-sound="on"] .pt-sound-slash,
.pt-page .pt-sound-toggle[data-sound="off"] .pt-sound-waves{display:none}
.pt-page .pt-sound-toggle[data-sound="off"] .pt-sound-slash{display:block}
.pt-page .pt-sound-toggle[data-sound="on"]:hover{
 background:#b6e6cb;border-color:#417b6a;
}
.pt-page .pt-sound-toggle[data-sound="off"]:hover{
 background:#edcbc4;border-color:#9f625c;
}
[data-theme="dark"] .pt-page .pt-sound-toggle[data-sound="on"]{
 background:#285947;border-color:#83c7a8;border-bottom-color:#4da27e;
 color:#e5ffed;
}
[data-theme="dark"] .pt-page .pt-sound-toggle[data-sound="off"]{
 background:#593a3e;border-color:#c28b84;border-bottom-color:#a9655d;
 color:#ffe9e4;
}
@media(max-width:650px){
 .pt-page .pt-action.pt-sound-toggle{
  width:59px;min-width:59px;height:31px;padding:0 4px;gap:3px;
  font-size:10px;
 }
 .pt-page .pt-sound-icon{width:17px;height:17px;flex-basis:17px}
}

/* Post-campaign throwable selection and five tiny completion lights. */
.pt-page .pt-projectile-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap;color:#c6e4dd;font:900 11px/1.4 system-ui;margin:0 0 9px}
.pt-page .pt-projectile-heading span{font:650 10px/1.4 system-ui;color:#b5caca}
.pt-page .pt-projectile-list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-bottom:8px}
.pt-page .pt-projectile-option{display:flex;align-items:center;gap:7px;min-width:0;padding:9px 8px;background:#49616a;border:1.5px solid #869b9e;border-bottom:3px solid #354e57;border-radius:8px;color:#e2eeeb;cursor:pointer;font:800 11px/1.2 system-ui,sans-serif}
.pt-page .pt-projectile-option.active{background:#5e8678;border-color:#b7e0c7;color:#ffffff}
.pt-page .pt-projectile-option:disabled{opacity:.40;cursor:not-allowed;filter:grayscale(.75)}
.pt-page .pt-projectile-option:not(:disabled):hover{background:#798570}
.pt-page .pt-projectile-option:focus-visible{outline:3px solid #f1c08e;outline-offset:2px}
.pt-page .pt-projectile-label{flex:1;min-width:0;text-align:left}
.pt-page .pt-projectile-count{font:800 10px/1 ui-monospace,monospace;color:#d4e9e3;white-space:nowrap}
.pt-page .pt-projectile-description{margin:0 0 15px;color:#b6ceca;font:650 11px/1.4 system-ui,sans-serif}
.pt-page .pt-projectile-shape{display:block;flex:0 0 16px;width:16px;height:16px;border:2px solid #b47b53;background:#f8ad71;border-radius:50%}
.pt-page [data-projectile=frisbee]>.pt-projectile-shape{background:#285d62;border:4px solid #89dcc5}
.pt-page [data-projectile=basketball]>.pt-projectile-shape{background:linear-gradient(90deg,transparent 43%,#704b31 44%,#704b31 56%,transparent 57%),#f5aa6c;border-color:#865535}
.pt-page [data-projectile=heavy]>.pt-projectile-shape{background:#a4bbc9;border:3px double #3d5266;border-radius:4px}
.pt-page [data-projectile=light]>.pt-projectile-shape{background:#d0f4e9;border:2px solid #83c9c8;border-radius:4px;transform:rotate(45deg) scale(.8)}
.pt-page .pt-level-btn .pt-completion-marks{display:flex;align-items:center;gap:7px;width:100%;min-height:12px}
.pt-page .pt-completion-mark{display:inline-block;flex:0 0 11px;width:11px;height:11px;background:#61778066;border:1.5px solid #9aabad;border-radius:50%;opacity:.36}
.pt-page .pt-completion-mark[data-projectile=frisbee]{border-width:3px;background:transparent}
.pt-page .pt-completion-mark[data-projectile=basketball]{background:linear-gradient(90deg,transparent 44%,#617780 45%,#617780 56%,transparent 57%),#93a8af}
.pt-page .pt-completion-mark[data-projectile=heavy]{border-radius:3px}
.pt-page .pt-completion-mark[data-projectile=light]{border-radius:3px;transform:rotate(45deg) scale(.8)}
.pt-page .pt-completion-mark[data-lit=true]{opacity:1;background:#ffd79c;border-color:#ffe6b3;box-shadow:0 0 8px #ffdf9c}
.pt-page .pt-completion-mark[data-projectile=frisbee][data-lit=true]{background:#295b5a;border-color:#a5ffde;box-shadow:0 0 8px #a5ffde}
.pt-page .pt-completion-mark[data-projectile=basketball][data-lit=true]{background:linear-gradient(90deg,transparent 44%,#6c4931 45%,#6c4931 56%,transparent 57%),#f3a263;border-color:#ffd6ad;box-shadow:0 0 8px #ffc387}
.pt-page .pt-completion-mark[data-projectile=heavy][data-lit=true]{background:#b7cce0;border-color:#deeeff;box-shadow:0 0 8px #b5d9ff}
.pt-page .pt-completion-mark[data-projectile=light][data-lit=true]{background:#e6fff5;border-color:#e9ffee;box-shadow:0 0 8px #dbfff0}
@media(max-width:810px){.pt-page .pt-projectile-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.pt-page .pt-projectile-option{padding:8px 7px;gap:5px}.pt-page .pt-projectile-count{font-size:9px}}
@media(max-width:440px){.pt-page .pt-projectile-list{grid-template-columns:repeat(2,minmax(0,1fr))}.pt-page .pt-completion-marks{gap:5px}}
[data-theme=dark] .pt-page .pt-projectile-option{background:#374e57;color:#e5f5ef}
[data-theme=dark] .pt-page .pt-projectile-option.active{background:#357365;border-color:#b4e0c8}

/* Frisbee-only bank control; real input, not decoration. */
.pt-page .pt-disc-controls{
 position:absolute;z-index:8;right:13px;bottom:13px;
 width:clamp(185px,23%,230px);padding:10px 12px 9px;
 border:1px solid #90c1bd9c;border-radius:11px;
 background:#213d46ed;color:#edf9f2;pointer-events:auto;
 box-shadow:0 4px 16px #08192066;backdrop-filter:blur(9px)
}
.pt-page .pt-disc-controls[hidden]{display:none!important}
.pt-page .pt-disc-heading,.pt-page .pt-disc-scale{
 display:flex;align-items:center;justify-content:space-between;gap:8px
}
.pt-page .pt-disc-heading label{
 color:#ccede2;font:850 9px/1.25 system-ui,sans-serif;letter-spacing:.035em
}
.pt-page .pt-disc-heading output{
 color:#ffdaa0;font:900 10px/1.25 ui-monospace,monospace;white-space:nowrap
}
.pt-page .pt-disc-tilt-slider{
 -webkit-appearance:none;appearance:none;display:block;width:100%;
 height:22px;background:transparent;margin:5px 0 0;padding:0;
 cursor:ew-resize;touch-action:pan-x;accent-color:#a3ebd1
}
.pt-page .pt-disc-tilt-slider::-webkit-slider-runnable-track{
 height:7px;border-radius:99px;
 background:linear-gradient(90deg,#89baf7,#d4eee5 50%,#ecb28d);
 box-shadow:inset 0 1px 2px #09272a80
}
.pt-page .pt-disc-tilt-slider::-moz-range-track{
 height:7px;border-radius:99px;
 background:linear-gradient(90deg,#89baf7,#d4eee5 50%,#ecb28d)
}
.pt-page .pt-disc-tilt-slider::-webkit-slider-thumb{
 -webkit-appearance:none;width:18px;height:18px;margin-top:-5.5px;
 border:3px solid #f5f9eb;border-radius:50%;background:#39877d;
 box-shadow:0 1px 6px #061a29a6
}
.pt-page .pt-disc-tilt-slider::-moz-range-thumb{
 width:13px;height:13px;border:3px solid #f5f9eb;
 border-radius:50%;background:#39877d;box-shadow:0 1px 6px #061a29a6
}
.pt-page .pt-disc-tilt-slider:focus-visible{
 outline:2px solid #fff5cf;outline-offset:2px;border-radius:8px
}
.pt-page .pt-disc-tilt-slider:disabled{opacity:.5;cursor:default}
.pt-page .pt-disc-scale{
 color:#bfd7d1;font:750 8px/1.1 system-ui,sans-serif;letter-spacing:.04em
}
.pt-page .pt-disc-scale small{
 color:#d7e8dc;font:650 8px/1.2 system-ui,sans-serif;letter-spacing:0
}
[data-theme=dark] .pt-page .pt-disc-controls{
 background:#1b343ee8;border-color:#83adad;color:#e8f8ed
}
@media(max-width:640px){
 .pt-page .pt-disc-controls{
  right:9px;bottom:63px;width:min(218px,calc(100% - 18px));padding:8px 10px 7px
 }
}
@media(max-width:370px){
 .pt-page .pt-disc-controls{bottom:65px;width:190px}
}


/*
 * Theme bridge for the PAGE surrounding Pong Toss (v19).
 * Crilo's theme-bridge.js sets html[data-theme] before first paint.
 * Restrict these rules to page chrome; the 3D canvas, its vignette,
 * on-canvas controls and the in-game overlay keep their own colors.
 */
html[data-theme="light"] body.pt-page{
 background:
  radial-gradient(ellipse at 9% 0%,#faeee6 0%,transparent 39%),
  radial-gradient(ellipse at 87% 10%,#def4ed 0%,transparent 41%),
  #f3f7f6;
 color:#2e4956;
}
html[data-theme="light"] body.pt-page .pt-back{color:#37617a}
html[data-theme="light"] body.pt-page .pt-back:hover{color:#ad6665}
html[data-theme="light"] body.pt-page .pt-eyebrow{color:#a66e72}
html[data-theme="light"] body.pt-page .pt-hero h1{
 color:#24465a;text-shadow:0 3px 0 #fff9f0
}
html[data-theme="light"] body.pt-page .pt-hero h1 em{color:#d77d7c}
html[data-theme="light"] body.pt-page .pt-hero p{color:#5a7180}
html[data-theme="light"] body.pt-page .pt-hero-sticker{
 background:#f9deb1;color:#365269;border-color:#638091;
 box-shadow:4px 5px 0 #dabba179;
}
html[data-theme="light"] body.pt-page .pt-shell{
 background:linear-gradient(150deg,#e8f1ed,#d3e3e0);
 border-color:#83a7a8;
 box-shadow:0 8px 30px #284a4e26,0 2px 0 #ffffffbc inset;
}
html[data-theme="light"] body.pt-page .pt-stage-footer,
html[data-theme="light"] body.pt-page #ptStatus{color:#466775}
html[data-theme="light"] body.pt-page .pt-selection{
 background:#f9fcfa;border-color:#aecac6;
 box-shadow:0 5px 0 #a8c6bd52;
}
html[data-theme="light"] body.pt-page .pt-selection-header h2{color:#2d5160}
html[data-theme="light"] body.pt-page :is(
 .pt-selection-header p,.pt-chapter-description,.pt-projectile-description
){color:#5d7480}
html[data-theme="light"] body.pt-page .pt-projectile-heading{color:#2e5760}
html[data-theme="light"] body.pt-page .pt-projectile-heading span{color:#587581}
html[data-theme="light"] body.pt-page .pt-chapter{
 background:#edf6f2;color:#335c64;
 border-color:#a4c1bb;border-bottom-color:#8aaea7;
}
html[data-theme="light"] body.pt-page .pt-chapter.active{
 background:#d1eee2;color:#245b51;border-color:#76b29c;
}
html[data-theme="light"] body.pt-page .pt-chapter:not(:disabled):hover{
 background:#ffefd6;color:#445669;
}
html[data-theme="light"] body.pt-page .pt-level-btn{
 background:#f1f8f5;color:#335662;
 border-color:#a6c1bd;border-bottom-color:#86a6a2;
}
html[data-theme="light"] body.pt-page .pt-level-btn.current{
 background:#d2efe4;color:#275e53;border-color:#77b7a3;
 outline-color:#d5a96a;
}
html[data-theme="light"] body.pt-page .pt-level-btn.cleared{
 background:#e7f3df;color:#426c53;border-color:#a9c49a;
}
html[data-theme="light"] body.pt-page .pt-level-btn .pt-level-status{color:#69858b}
html[data-theme="light"] body.pt-page .pt-level-btn:not(:disabled):hover{
 background:#fff0d4;
}
html[data-theme="light"] body.pt-page .pt-projectile-option{
 background:#eaf4f0;color:#315661;
 border-color:#9fbab9;border-bottom-color:#789b9d;
}
html[data-theme="light"] body.pt-page .pt-projectile-option.active{
 background:#d5eee1;color:#255b4d;border-color:#7db39d;
}
html[data-theme="light"] body.pt-page .pt-projectile-count{color:#416c6e}
html[data-theme="light"] body.pt-page .pt-projectile-option:not(:disabled):hover{
 background:#fff0da;
}
html[data-theme="light"] body.pt-page .pt-rules{color:#546f7b}
html[data-theme="light"] body.pt-page .pt-rule-keys kbd{
 background:#fffdf8;color:#446272;border-color:#a5c1c2;
 border-bottom-color:#87a8a9;
}
html[data-theme="light"] body.pt-page .crilo-simple-footer{
 background:#f0f5f2;border-top:1px solid #c4d8d1;color:#617681;
}
html[data-theme="light"] body.pt-page .crilo-legal-nav a,
html[data-theme="light"] body.pt-page .crilo-legal-copy{color:#53717c}
html[data-theme="light"] body.pt-page .pt-shell:fullscreen{background:#e4eeeb}

/* Dark mode: calm slate page, without dimming or tinting the office scene. */
html[data-theme="dark"] body.pt-page{
 background:
  radial-gradient(ellipse at 87% 4%,#273f49 0%,transparent 43%),
  radial-gradient(ellipse at 6% 0%,#292e42 0%,transparent 38%),
  #161e27;
 color:#e5edf0;
}
html[data-theme="dark"] body.pt-page .pt-back{color:#c0d8de}
html[data-theme="dark"] body.pt-page .pt-back:hover{color:#f5c2a4}
html[data-theme="dark"] body.pt-page .pt-eyebrow{color:#d6a4a3}
html[data-theme="dark"] body.pt-page .pt-hero h1{
 color:#f3f4ef;text-shadow:none;
}
html[data-theme="dark"] body.pt-page .pt-hero h1 em{color:#f0aba5}
html[data-theme="dark"] body.pt-page .pt-hero p{color:#c1cdd3}
html[data-theme="dark"] body.pt-page .pt-hero-sticker{
 background:#4a4650;color:#ffdfab;
 border-color:#aeb2ad;box-shadow:4px 5px 0 #0d121894;
}
html[data-theme="dark"] body.pt-page .pt-shell{
 background:linear-gradient(145deg,#2b3b44,#223039);
 border-color:#5d7581;
 box-shadow:0 10px 38px #090f1794,0 1px 0 #d2e1e11a inset;
}
html[data-theme="dark"] body.pt-page .pt-top .pt-stat,
html[data-theme="dark"] body.pt-page .pt-top .pt-stat.secondary,
html[data-theme="dark"] body.pt-page .pt-top .pt-stat.tertiary{
 background:#33464e;border-color:#64808b;
 box-shadow:0 1px 0 #e9f4f219 inset;
}
html[data-theme="dark"] body.pt-page .pt-top .pt-stat small{
 color:#bcd0d5;text-shadow:none;
}
html[data-theme="dark"] body.pt-page .pt-top .pt-stat strong,
html[data-theme="dark"] body.pt-page .pt-top .pt-stat .pt-small-strong{
 color:#f1f5f0;text-shadow:none;
}
html[data-theme="dark"] body.pt-page :is(.pt-action,.pt-step,.pt-menu-trigger){
 background:#3b535d;color:#eff4f1;
 border-color:#77959a;border-bottom-color:#55747b;
}
html[data-theme="dark"] body.pt-page :is(
 .pt-action,.pt-step,.pt-menu-trigger
):hover:not(:disabled){
 background:#516b70;color:#fff9ed;border-color:#a0b8b5;
}
html[data-theme="dark"] body.pt-page .pt-continue-button{
 background:#3b665d;color:#f1f9ef;
 border-color:#7cae9c;border-bottom-color:#5b947f;
}
html[data-theme="dark"] body.pt-page .pt-continue-button:hover{
 background:#4a796b;border-color:#9cd1b8;
}
html[data-theme="dark"] body.pt-page .pt-sound-toggle[data-sound="on"]{
 background:#385c50;color:#d4f8e5;border-color:#6cab94;
}
html[data-theme="dark"] body.pt-page .pt-sound-toggle[data-sound="off"]{
 background:#5a4146;color:#ffe1d9;border-color:#a7787b;
}
html[data-theme="dark"] body.pt-page .pt-stage-footer,
html[data-theme="dark"] body.pt-page #ptStatus{color:#c7d9db}
html[data-theme="dark"] body.pt-page .pt-selection{
 background:#25333e;border-color:#57737e;
 box-shadow:0 5px 0 #0b121b7d;
}
html[data-theme="dark"] body.pt-page .pt-selection-header h2{color:#edf4f2}
html[data-theme="dark"] body.pt-page :is(
 .pt-selection-header p,.pt-chapter-description,.pt-projectile-description
){color:#c3d3d8}
html[data-theme="dark"] body.pt-page .pt-projectile-heading{color:#e3eee9}
html[data-theme="dark"] body.pt-page .pt-projectile-heading span{color:#bfced2}
html[data-theme="dark"] body.pt-page .pt-chapter{
 background:#364b56;color:#e6eff1;
 border-color:#66838d;border-bottom-color:#476875;
}
html[data-theme="dark"] body.pt-page .pt-chapter.active{
 background:#326357;color:#f0fff4;border-color:#8dc4a7;
}
html[data-theme="dark"] body.pt-page .pt-chapter:not(:disabled):hover{
 background:#49646d;color:#ffffff;
}
html[data-theme="dark"] body.pt-page .pt-level-btn{
 background:#354a56;color:#edf5f4;
 border-color:#607c89;border-bottom-color:#466776;
}
html[data-theme="dark"] body.pt-page .pt-level-btn.current{
 background:#315e55;color:#ebfff3;border-color:#91c9ae;
 outline-color:#e8c58c;
}
html[data-theme="dark"] body.pt-page .pt-level-btn.cleared{
 background:#4c5947;color:#eaf5d4;border-color:#99b58d;
}
html[data-theme="dark"] body.pt-page .pt-level-btn .pt-level-status{color:#bdd0d5}
html[data-theme="dark"] body.pt-page .pt-level-btn.cleared .pt-level-status{color:#d4e8c8}
html[data-theme="dark"] body.pt-page .pt-level-btn:not(:disabled):hover{
 background:#4c6871;
}
html[data-theme="dark"] body.pt-page .pt-projectile-option{
 background:#364e58;color:#e9f5f4;
 border-color:#748e99;border-bottom-color:#4a6770;
}
html[data-theme="dark"] body.pt-page .pt-projectile-option.active{
 background:#35655b;color:#f1fff6;border-color:#90c9aa;
}
html[data-theme="dark"] body.pt-page .pt-projectile-count{color:#d0e5e3}
html[data-theme="dark"] body.pt-page .pt-projectile-option:not(:disabled):hover{
 background:#4e6a70;
}
html[data-theme="dark"] body.pt-page .pt-rules{color:#bfd0d7}
html[data-theme="dark"] body.pt-page .pt-rule-keys kbd{
 background:#334652;color:#f3f6f2;border-color:#7793a0;
 border-bottom-color:#54717c;
}
html[data-theme="dark"] body.pt-page .crilo-simple-footer{
 background:#1b2530;border-top:1px solid #4c626b;color:#acbec8;
}
html[data-theme="dark"] body.pt-page .crilo-legal-nav a,
html[data-theme="dark"] body.pt-page .crilo-legal-copy{color:#b9cbd2}
html[data-theme="dark"] body.pt-page .pt-shell:fullscreen{background:#273740}

/* This chooser lives in the shared help dialog; its body and options must
   use night colors alongside the already-theme-aware modal chrome. */
html[data-theme="dark"] body.pt-page .pt-voice-settings{
 background:#2b3c48;color:#eff6f2;border-color:#637f8b;
}
html[data-theme="dark"] body.pt-page :is(
 .pt-voice-heading strong,.pt-voice-label
){color:#edf4f3}
html[data-theme="dark"] body.pt-page :is(
 .pt-voice-heading span,.pt-voice-help
){color:#c2d3da}
html[data-theme="dark"] body.pt-page #ptVoiceSelect{
 background:#263540;color:#eef6f1;border-color:#67848f;
 color-scheme:dark;
}
html[data-theme="dark"] body.pt-page .pt-voice-preview{
 background:#3c5862;color:#f2f9f3;border-color:#789ca4;
}
html[data-theme="dark"] body.pt-page .pt-voice-preview:hover{background:#506c71}
html[data-theme="dark"] body.pt-page :is(
 .pt-chapter,.pt-level-btn,.pt-projectile-option,.pt-action,.pt-step,
 .pt-menu-trigger,.pt-continue-button,#ptVoiceSelect,.pt-voice-preview
):focus-visible{outline:3px solid #f3d69b;outline-offset:2px}



/* v20: quiet, tactile finishing touches confined to HTML game chrome.
   The 3D scene and all on-canvas physics remain entirely unchanged. */
.pt-page .pt-action:active:not(:disabled),
.pt-page .pt-step:active:not(:disabled),
.pt-page .pt-menu-trigger:active:not(:disabled),
.pt-page .pt-continue-button:active:not(:disabled),
.pt-page .pt-big-button:active:not(:disabled){
 transform:translateY(1px);
 box-shadow:0 1px 0 rgba(10,32,38,.25);
}
.pt-page .pt-level-btn:active:not(:disabled),
.pt-page .pt-projectile-option:active:not(:disabled){
 transform:translateY(1px);
}
.pt-page .pt-overlay[data-state="win"] .pt-overlay-card{
 animation:ptWinnerArrives .36s cubic-bezier(.15,.78,.3,1.1) both;
}
.pt-page .pt-overlay[data-state="win"] .pt-overlay-icon{
 position:relative;isolation:isolate;
}
.pt-page .pt-overlay[data-state="win"] .pt-overlay-icon::after{
 content:"";pointer-events:none;position:absolute;inset:-12px;
 border:2px dotted rgba(196,149,86,.8);
 border-radius:50%;opacity:.9;
 animation:ptWinnerRing .8s ease-out both;
}
@keyframes ptWinnerArrives{
 0%{opacity:.55;transform:translateY(9px) scale(.97)}
 100%{opacity:1;transform:translateY(0) scale(1)}
}
@keyframes ptWinnerRing{
 0%{opacity:0;transform:scale(.6)}
 40%{opacity:.9}
 100%{opacity:0;transform:scale(1.35)}
}
@media(prefers-reduced-motion:reduce){
 .pt-page .pt-overlay[data-state="win"] .pt-overlay-card,
 .pt-page .pt-overlay[data-state="win"] .pt-overlay-icon::after{
  animation:none!important;
 }
 .pt-page .pt-overlay[data-state="win"] .pt-overlay-icon::after{
  opacity:.25;transform:none;
 }
}


/* v22 — understated Crilo game controls.
   The saturated home-card palette belongs to the illustration, NOT the
   gameplay itself. Preserve the site's native pale/graphite controls,
   with restrained sage and muted brass accents around the 3D canvas. */
body.pt-page{
 --pt-ink:#263a45;
 --pt-muted:#6e7f86;
 --pt-coral:#b98380;
 --pt-cream:#fbf8f0;
 --pt-line:#788f98;
 --pt-mint:#9cbfb8;
 --pt-sun:#d6b783;
}
body.pt-page .pt-viewport{
 border:3px solid #748e97;
 background:#4c6972;
 box-shadow:0 0 0 1px #e9eeee,0 8px 24px #2c3d4633;
}
body.pt-page .pt-power-fill{
 background:linear-gradient(90deg,#8fadb0 0%,#9fbdb1 42%,
  #d6c098 76%,#d09b79 100%);
}
body.pt-page .pt-power-head strong{color:#d6b78d}
body.pt-page .pt-vignette{
 background:radial-gradient(ellipse at 50% 45%,transparent 60%,#26384336 100%);
}
body.pt-page .pt-hero h1 em{color:#b98380}
body.pt-page .pt-eyebrow{color:#82939b}
body.pt-page .pt-aim-readout,
body.pt-page .pt-power-wrap{
 border-color:#99b3b8;
}
body.pt-page .pt-overlay-card{
 background:linear-gradient(145deg,#fffefd,#f2f6f3);
 border-color:#8498a3;
}
body.pt-page .pt-chapter.active,
body.pt-page .pt-level-btn.current{
 background:#dcebe6;border-color:#82aaa5;
 color:#34595b;
}
body.pt-page :is(.pt-action,.pt-step,.pt-big-button,
 .pt-chapter,.pt-level-btn,.pt-projectile-option):focus-visible{
 outline:3px solid #b89471;outline-offset:2px;
}
html[data-theme="dark"] body.pt-page .pt-viewport{
 border-color:#607f88;box-shadow:0 0 0 1px #283b42,0 8px 24px #0004;
}
html[data-theme="dark"] body.pt-page .pt-power-fill{
 background:linear-gradient(90deg,#668c95,#89aea4 48%,#caa979 100%);
}
html[data-theme="dark"] body.pt-page .pt-power-head strong{
 color:#d9c197;
}
@media(prefers-reduced-motion:reduce){
 body.pt-page .pt-overlay-card{animation:none!important}
}


/* Keyboard gameplay must remain discoverable, without trapping Space on
   the toolbar, menu, or other controls. The canvas is a real tab stop. */
body.pt-page .pt-viewport:has(.pt-canvas:focus-visible){
 outline:3px solid #b88652;
 outline-offset:3px;
}
body.pt-page :is(.pt-secondary-button,.pt-back,.pt-step):focus-visible{
 outline:3px solid #b88652;
 outline-offset:3px;
 border-radius:8px;
}
html[data-theme="dark"] body.pt-page .pt-viewport:has(.pt-canvas:focus-visible),
html[data-theme="dark"] body.pt-page :is(.pt-secondary-button,.pt-back,.pt-step):focus-visible{
 outline-color:#f0ca92;
}

/* iOS Safari does not support element fullscreen consistently. This local
   viewport fallback uses the exact same flex geometry as native fullscreen,
   but never blocks the EXIT button or leaves the document scroll-locked. */
html.pt-pseudo-fullscreen-open,html.pt-pseudo-fullscreen-open body{
 overflow:hidden!important;
 overscroll-behavior:none;
}
.pt-shell.pt-pseudo-fullscreen{
 position:fixed!important;
 z-index:9997!important;
 inset:0!important;
 width:100vw!important;
 height:100dvh!important;
 max-width:none!important;
 max-height:none!important;
 margin:0!important;
 border:0!important;
 border-radius:0!important;
 box-shadow:none!important;
 overflow-y:auto!important;
 overscroll-behavior:contain;
 display:flex!important;
 flex-direction:column;
 padding:max(9px,env(safe-area-inset-top)) max(9px,env(safe-area-inset-right))
  max(9px,env(safe-area-inset-bottom)) max(9px,env(safe-area-inset-left))!important;
 background:#35464c;
}
.pt-shell.pt-pseudo-fullscreen .pt-top{flex:0 0 auto}
.pt-shell.pt-pseudo-fullscreen .pt-stage-wrap{display:flex;flex:1 1 auto;min-height:0}
.pt-shell.pt-pseudo-fullscreen .pt-viewport{
 flex:1 1 auto;min-height:0;height:auto;max-height:none
}
.pt-shell.pt-pseudo-fullscreen .pt-stage-footer{flex:0 0 auto}
html[data-theme="light"] .pt-shell.pt-pseudo-fullscreen{background:#e4eeeb}
html[data-theme="dark"] .pt-shell.pt-pseudo-fullscreen{background:#273740}
@media(max-height:480px) and (orientation:landscape){
 .pt-shell.pt-pseudo-fullscreen .pt-top{gap:3px;padding-bottom:4px}
 .pt-shell.pt-pseudo-fullscreen .pt-stat{min-height:37px;padding:3px 7px}
 .pt-shell.pt-pseudo-fullscreen .pt-stage-footer{padding:3px 0}
}
