@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

html[lang="de-DE"] .erun-title-accent{font-size: xx-large!important;}
html[lang="es-ES"] .erun-title-accent{font-size: xx-large!important;}

.erun-wrap{--bg:#0b1022;--bg2:#151b36;--yellow:#ffb703;--yellow-hover:#F2AD00;--purple:#8b5cf6;--purple-light:#6c5ce750;--text:#e8ebff;--muted:#9aa2c7;
	font-family:'Segoe UI',system-ui,sans-serif;background:radial-gradient(ellipse at top,#1c2350,var(--bg));
	color:var(--text);padding:24px;border-radius:0;outline:none;}
.erun-wrap *{box-sizing:border-box;}
.erun-title,.erun-subtitle,.erun-results-title{font-family:'Press Start 2P','Segoe UI',system-ui,sans-serif;}
.erun-title{letter-spacing:1px;line-height:1.6;font-size:1.6em;}
.erun-progress-btn{position:relative;overflow:hidden;padding:0;height:42px;display:flex;align-items:center;justify-content:center;}
.erun-progress-fill{position:absolute;top:0;left:0;height:100%;width:0;background:rgba(255,255,255,.28);transition:width .1s linear;}
.erun-progress-label{position:relative;z-index:1;}
button.erun-full, a.erun-full{display:block;width:100%;margin:8px 0;}
.erun-hero{display:grid;grid-template-columns:1fr 1.6fr 1fr;gap:20px;align-items:start;margin-top:44px;margin-bottom:44px;}
.erun-panel{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:18px;}
.erun-panel-label{font-size:.75em;color:var(--muted);letter-spacing:.05em;margin-bottom:6px;}
.erun-panel-title{font-size:1.3em;font-weight:800;color:var(--yellow);}
.erun-challenge-countdown{font-size:.8em;color:var(--muted);margin-top:2px;}
.erun-challenge-countdown.is-urgent{color:#e5484d;font-weight:700;animation:erun-countdown-pulse 1.4s ease-in-out infinite;}
@keyframes erun-countdown-pulse{0%,100%{opacity:1;}50%{opacity:.55;}}
@media (prefers-reduced-motion:reduce){.erun-challenge-countdown.is-urgent{animation:none;}}
.erun-center{text-align:center;}
.erun-title-light{color:#fff;}
.erun-title-accent{color:var(--yellow);text-shadow:0 0 20px rgba(255,183,3,.5);font-size:1.9em!important;letter-spacing:.1em;}
.erun-subtitle{color:var(--purple);font-weight:700;letter-spacing:.1em;margin-top:-10px;}
.erun-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
.erun-tag{background: #151b3630;    display: inline-block;padding: 10px 20px;line-height: 1;}
button.erun-play-btn{display:none;align-items:center;justify-content:center;gap:10px;margin:18px auto 14px;padding:16px 32px;font-size:1em;letter-spacing:.05em;}
button.erun-play-icon{font-size:.9em;}
.erun-container{background-repeat:no-repeat;background-size:cover;background-position:bottom center;margin-top:-24px;margin-left:-24px;margin-right:-24px;padding:24px;border-radius:12px 12px 0 0;}
.erun-hi{color:var(--muted);font-size:.8em;margin-bottom:14px;}
.erun-leaderboard ol{list-style:none;padding:0;margin:10px 0;}
.erun-leaderboard li{display:flex;align-items:center;gap:8px;padding:6px 0;font-size:.85em;border-top:1px solid rgba(255,255,255,.06);}
.erun-rank{color:var(--yellow);font-weight:800;width:16px;}
.erun-player{flex:1;}
.erun-score{color:var(--muted);}
.erun-prizes-preview{list-style:none;padding:0;margin:14px 0;font-size:.85em;}
.erun-prizes-preview li{display:flex;align-items:center;gap:8px;padding:8px 0;border-top:1px solid rgba(255,255,255,.06);}
.erun-medal{font-size:1.1em;}
.erun-prize-preview-text{color:var(--text);}
.erun-empty-slot{opacity:.55;}
.erun-player-empty{font-style:italic;color:var(--muted);}
.erun-howto{display:grid;grid-template-columns:1.6fr 1fr;gap:20px;margin-top:24px;}
.erun-steps-row{display:flex;gap:16px;flex-wrap:wrap;margin-top:22px;}
.erun-step{flex:1;min-width:120px;font-size:.8em;text-align:center;}
.erun-step-icon{font-size:1.8em;margin-bottom:8px;}
.erun-step strong{display:block;margin-bottom:2px;}
.erun-step small{color:var(--muted);}
.erun-features{display:flex;flex-direction:row;gap:14px;justify-content:center;align-items:center;text-align:center;font-size:.85em;}
.erun-feature{display:flex;flex-direction:column;align-items:center;}
.erun-feature strong {margin-top:16px;}
.erun-feature small{color:var(--muted);}
@media (max-width:900px){.erun-hero,.erun-howto{grid-template-columns:1fr;}}
@media (max-width:900px){
	button.erun-play-btn{display:block;}
	.erun-title-keyboard{display:none;}
}
@media (min-width:901px){.erun-title-touch{display:none;}}
.erun-popup{position:fixed;inset:0;background:rgba(5,8,20,.75);display:flex;align-items:center;justify-content:center;z-index:9999;}
.erun-popup[hidden]{display:none;}
.erun-popup-box{background:var(--bg2);border:1px solid var(--purple);border-radius:14px;padding:32px;max-width:340px;width:90%;text-align:center;position:relative;}
.erun-popup-box h2{margin-top:0;color:var(--yellow);}
.erun-popup-close{position:absolute;top:20px;right:20px;width:30px;height:30px;background:none;border:none;padding:0;color:var(--muted);font-size:1.4em;cursor:pointer;}
.erun-popup-close:hover{background:#1E274D;}
.erun-link-btn{background:none;width:fit-content;border:none;color:var(--muted);padding:0;text-decoration:underline;font-size:.8em;cursor:pointer;margin-top:6px;}
.erun-link-btn:hover,.erun-link-btn:focus{background:none;}
.erun-credits-left{background:rgba(255,183,3,.12);color:var(--yellow);padding:6px 10px;border-radius:6px;font-size:.85em;margin-bottom:14px;}
.erun-fullscreen{position:fixed;inset:0;background:#05070f;z-index:99999;display:flex;align-items:center;justify-content:center;}
.erun-fullscreen[hidden]{display:none;}
.erun-canvas-host{width:min(1100px,94vw);}
.erun-canvas-host canvas{display:block;width:100%;height:auto;border-radius:10px;}
.erun-transition{position:absolute;inset:0;background:rgba(5,7,15,.92);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;color:var(--text);font-size:1.1em;}
.erun-transition[hidden]{display:none;}
body.erun-locked{overflow:hidden;}
.erun-snackbar{position:fixed;left:50%;bottom:28px;z-index:100000;transform:translateX(-50%) translateY(20px);background:var(--bg2);color:var(--text);border:1px solid var(--purple);border-radius:10px;padding:12px 20px;font-size:.9em;font-weight:600;box-shadow:0 8px 24px rgba(0,0,0,.35);opacity:0;transition:opacity .25s ease,transform .25s ease;pointer-events:none;white-space:nowrap;}
.erun-snackbar[hidden]{display:none;}
.erun-snackbar.erun-snackbar-show{opacity:1;transform:translateX(-50%) translateY(0);}
.erun-snackbar strong{color:var(--yellow);}
.erun-results-title{color:var(--yellow);font-size:1.8em;margin:0;}
.erun-results-score{font-size:1.3em;color:#fff;}
.erun-results-score strong{color:var(--yellow);}
.erun-results-best{color:var(--muted);font-size:.95em;max-width:340px;text-align:center;}
.erun-results-best.is-record{color:var(--yellow);font-weight:700;}
#erun-results .erun-btn{margin-top:6px;width:220px;height:42px;padding:0;display:flex;align-items:center;justify-content:center;box-sizing:border-box;}
.erun-explosion{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:min(30vw,130px);pointer-events:none;opacity:0;}
.erun-explosion[hidden]{display:none;}
.erun-explosion-play{animation:erun-boom .9s ease-out forwards;}
@keyframes erun-boom{0%{opacity:0;transform:scale(.2) rotate(-8deg);}25%{opacity:1;transform:scale(1.3) rotate(6deg);}55%{opacity:1;transform:scale(.95) rotate(-3deg);}100%{opacity:0;transform:scale(1.5) rotate(0);}}