/* YamGames Studio arcade kit: parts shared by Pulsebreak, Embertrail and Foldscape on top of each game's style.css
   (HUD details, boosts bar, touch stick and buttons, rotate hint, accent lines that follow the rounded corners). */
:root{--sat:env(safe-area-inset-top,0px);--sar:env(safe-area-inset-right,0px);--sab:env(safe-area-inset-bottom,0px);--sal:env(safe-area-inset-left,0px)}
html,body,#shell,canvas,.arc-touch,.arc-btn,.tb{touch-action:none;overscroll-behavior:none}
#hud{padding:max(8px,var(--sat)) max(10px,var(--sar)) 0 max(10px,var(--sal));text-shadow:0 1px 4px rgba(0,0,0,.55)}
#hud .stat b{font-size:17px}#hud .stat b.good{color:var(--ok)}#hud .stat b.bad{color:var(--bad)}#hud .stat b.warn{color:var(--gold)}
#hud .stat .hp-bar{display:block;width:100%;height:4px;margin-top:4px;border-radius:3px;background:rgba(255,255,255,.12);overflow:hidden}
#hud .stat .hp-bar>i{display:block;height:100%;border-radius:3px;background:linear-gradient(90deg,var(--neon),var(--neon2));box-shadow:0 0 8px var(--neon)}
#hud .stat .hp-bar.cool>i{background:linear-gradient(90deg,var(--cyan),#fff)}#hud .stat .hp-bar.hot>i{background:linear-gradient(90deg,#ff5d7a,#ffb36b)}
#hud.two-row .hud-top{flex-wrap:wrap}#hud.two-row .hud-stats{order:3;width:100%;justify-content:space-around}#hud.two-row .stat{min-width:0;padding:0 6px}
#hud.two-row .level-card small{display:none}#hud.two-row .level-card b{max-width:46vw}
#hud.short .hud-btn{width:44px;height:44px}#hud.short .stat b{font-size:14px}#hud.short .stat small{font-size:9px}#hud.short .level-card{padding:4px 10px}#hud.short .level-card b{font-size:13px}#hud.short .hud-stats{padding:4px 2px}
#hud.hard .level-card{border-color:rgba(255,93,122,.55)}#hud.endless .level-card{border-color:rgba(197,164,255,.55)}
/* boosts bar (bottom centre) */
.arc-boosts{position:absolute;left:50%;bottom:max(10px,var(--sab));transform:translateX(-50%);z-index:4;display:flex;gap:8px;pointer-events:none}
.arc-boosts .tb{position:relative;width:56px;height:56px;pointer-events:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;padding:4px 2px;border-radius:15px;border:1px solid var(--line);background:var(--glass);color:#fff;box-shadow:0 8px 22px rgba(0,0,0,.4),inset 0 1px rgba(255,255,255,.08);cursor:pointer}
.arc-boosts .tb .ic{font-size:20px;line-height:1}.arc-boosts .tb b{font:800 8px system-ui;letter-spacing:.3px;max-width:52px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.arc-boosts .tb kbd{position:absolute;top:2px;left:3px;font-size:8px;padding:0 3px}.arc-boosts .tb em{position:absolute;top:2px;right:4px;font:900 9px system-ui;font-style:normal;color:var(--neon2)}
.arc-boosts .tb.used{opacity:.35}.arc-boosts .tb:active{transform:scale(.93)}
/* touch: floating stick on the left half, action buttons bottom right */
.arc-touch{position:absolute;inset:0;z-index:3;pointer-events:none}
.arc-stick-zone{position:absolute;left:0;bottom:0;width:50%;top:30%;pointer-events:auto}
.arc-stick{position:absolute;left:22%;top:62%;width:112px;height:112px;margin:-56px 0 0 -56px;border-radius:50%;border:2px solid rgba(255,255,255,.18);background:radial-gradient(circle,rgba(255,255,255,.08),rgba(255,255,255,.02));opacity:.55;transition:opacity .15s}
.arc-stick.on{opacity:1}.arc-stick>i{position:absolute;left:50%;top:50%;width:48px;height:48px;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(circle at 40% 35%,#fff,var(--neon2) 45%,var(--neon));box-shadow:0 0 18px var(--neon)}
.arc-stick-zone.dpad-off .arc-stick{display:none}
.arc-pad{position:absolute;bottom:max(18px,var(--sab));width:66px;height:66px;border-radius:18px;border:1px solid var(--line);background:var(--glass);color:#fff;font:900 24px system-ui;pointer-events:auto;box-shadow:0 8px 22px rgba(0,0,0,.4)}
.arc-pad-l{left:max(16px,var(--sal))}.arc-pad-r{left:calc(max(16px,var(--sal)) + 78px)}.arc-pad.down{transform:scale(.93);border-color:var(--neon)}
.arc-btns{position:absolute;right:max(16px,var(--sar));bottom:max(18px,var(--sab));display:flex;gap:12px;align-items:flex-end;pointer-events:none}
.arc-btn{pointer-events:auto;width:74px;height:74px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:2px solid var(--line);background:var(--glass);color:#fff;box-shadow:0 10px 26px rgba(0,0,0,.45),inset 0 1px rgba(255,255,255,.1);cursor:pointer}
.arc-btn .arc-btn-ic{font-size:24px;line-height:1}.arc-btn b{font:900 8.5px system-ui;letter-spacing:.6px;max-width:66px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.arc-btn-a{width:86px;height:86px;border-color:var(--neon);box-shadow:0 0 0 3px rgba(255,255,255,.04),0 0 22px var(--neon),0 10px 26px rgba(0,0,0,.45)}
.arc-btn.down{transform:scale(.92);filter:brightness(1.25)}
@media (max-height:460px){.arc-btn{width:62px;height:62px}.arc-btn-a{width:72px;height:72px}.arc-pad{width:58px;height:58px}.arc-pad-r{left:calc(max(16px,var(--sal)) + 68px)}}
.arc-rotate{position:absolute;left:50%;bottom:22%;transform:translateX(-50%);z-index:6;max-width:86vw;padding:9px 16px;border-radius:12px;background:var(--glass);border:1px solid var(--line);font:800 13px system-ui;text-align:center;display:none;pointer-events:none}
.arc-rotate.show{display:block}
.result-stars .fail-icon{color:#ff6f86}
.hint-bar{z-index:5}
/* accent lines follow the rounded corners instead of being cut by them */
.menu-stat-card{border-top-width:1px!important;box-shadow:inset 0 2px 0 var(--c,var(--neon)),inset 0 1px rgba(255,255,255,.06),0 8px 20px rgba(0,0,0,.16)!important}
.controls-group::before{display:none!important}.controls-group{box-shadow:inset 0 2px 0 var(--ga,var(--neon)),inset 0 1px 0 rgba(255,255,255,.055)!important}
#dailyBtn span,.menu-grid .tile span{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:420px){.menu-grid .endless-btn span{white-space:normal;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.15;text-align:left}}
@media (prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;transition-duration:.01ms!important}}
/* controls help: keys never squeeze the label into broken words; Share & Earn: reward and status columns keep their distance */
.controls-list .control-entry{gap:10px}.controls-list .key-combo{flex:0 0 auto}.controls-list .control-label{flex:1 1 auto;min-width:0;overflow-wrap:normal;word-break:normal;hyphens:none}
.share-reward-entry{column-gap:22px}.share-entry-reward{margin-right:6px}.share-entry-unit{white-space:nowrap}.share-entry-progress{min-width:150px}
