/* Gargoyle Jump: ink, paper and a red arcade marquee. */
@font-face{font-family:GargoyleDisplay;src:url('/assets/fonts/Anton-Regular.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
.clean-shell{--paper:#ede6d6;--ink:#252824;--red:#b7372d;--muted:#65665b;color:var(--ink);background:var(--paper);font-family:Arial,Helvetica,sans-serif}
.clean-shell::before{content:"";position:fixed;inset:0;pointer-events:none;background:repeating-linear-gradient(0deg,#493d2010 0 1px,transparent 1px 5px);opacity:.22;z-index:-1}
.clean-shell .topbar,.clean-shell.run-started .topbar{height:68px;max-width:1080px;margin:auto;padding:8px 28px;border:0;gap:12px}
.clean-shell .brand{gap:9px;color:var(--ink);font-size:11px;letter-spacing:1.5px}
.clean-shell .brand b{color:var(--muted)}
.clean-shell .brand-mark,.clean-shell.run-started .topbar .brand-mark{width:44px;height:44px;clip-path:none;background:transparent;filter:none}
.clean-shell .topbar nav{align-items:center;gap:8px}
.clean-shell .icon-button,.clean-shell.run-started .topbar .icon-button{border:0;background:transparent;color:var(--ink);width:44px;height:44px;font-size:22px}
.clean-shell .slash{color:var(--red);top:7px;left:18px}
.help-button{background:none;border:0;border-bottom:1px solid #25282460;color:var(--ink);padding:10px 0;min-height:44px;font-size:12px;font-weight:700}
.language-button{border:0;border-radius:0;background:none;color:var(--ink);min-height:44px;min-width:56px;padding:0 6px;font:bold 10px Arial;letter-spacing:.4px;white-space:nowrap}
.clean-shell .ranking-panel{width:min(100%,540px);padding:24px 4px}
.ranking-panel .ranking-heading{padding-bottom:22px;border-bottom:2px solid var(--ink)}
.ranking-panel .ranking-columns{position:sticky;top:38px;z-index:3;background:var(--paper);text-transform:uppercase;letter-spacing:1px;font-size:9px;padding-top:12px;padding-bottom:12px}
.ranking-panel .leaderboard li:not(.empty-board){min-height:62px;align-items:center;border-bottom:1px solid #25282420}
.ranking-panel .leaderboard .rank{font:18px GargoyleDisplay;color:#797669}
.ranking-panel .leaderboard .name{font-size:14px}
.ranking-panel .leaderboard li[data-rank="1"] .rank{color:#896014}
.ranking-panel .leaderboard li[data-rank="2"] .rank{color:#646d74}
.ranking-panel .leaderboard li[data-rank="3"] .rank{color:#996641}
.ranking-panel .leaderboard .is-you{position:sticky;top:74px;bottom:0;z-index:2;box-shadow:0 1px 0 #28605030}
.ranking-panel:has(.own-standing:not([hidden])) .ranking-columns{position:static}
@media(min-width:1000px){html[lang=en] .clean-shell:after{content:"KEEP\A CLIMBING."}}
@media(max-width:600px){.ranking-panel .ranking-columns{top:34px}.ranking-panel .leaderboard .is-you{top:70px}}
@media(max-width:380px){.clean-shell .brand>span,.clean-shell.run-started .topbar .brand>span{display:none}.clean-shell .topbar nav{gap:4px}}
.campaign-bar{display:flex;align-items:center;justify-content:center;gap:18px;height:38px;background:var(--ink);color:var(--paper);position:sticky;top:0;z-index:20}
.campaign-bar>span{font-size:10px;letter-spacing:1.3px}
.campaign-bar strong{font-size:19px;font-variant-numeric:tabular-nums;white-space:nowrap}
.campaign-bar[data-status=open] strong{color:#f4c979}
#campaign-sync{font-size:18px}
.game-tabs{display:flex;justify-content:center;gap:32px;margin:0 auto;width:max-content;border:0;background:none;padding:0}
.game-tabs button{position:relative;background:none;border:0;border-radius:0;min-height:48px;padding:0 8px;color:var(--muted);font-size:13px;font-weight:700}
.game-tabs [aria-selected=true]{color:var(--ink)}
.game-tabs [aria-selected=true]::after{content:"";position:absolute;bottom:5px;left:8px;right:8px;height:3px;background:var(--red);transform:rotate(-2deg)}
.clean-shell .layout,.clean-shell.run-started .layout{display:flex;justify-content:center;align-items:flex-start;gap:0;padding:8px 14px 12px}
.clean-shell .game-column,.clean-shell.run-started .game-column,html:not(.touch-input) .clean-shell.run-started .game-column{position:relative;width:min(100%,420px,calc((100svh - 204px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) * .6))}
.clean-shell.run-started .game-column,html:not(.touch-input) .clean-shell.run-started .game-column{width:min(100%,420px,calc((100svh - 248px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) * .6))}
.clean-shell .stage{container-type:inline-size;border:0;border-radius:2px;outline:1px solid #25282433;outline-offset:5px;box-shadow:0 12px 26px #29261924;background:#111b29}
.clean-shell .stage::before,.clean-shell .stage::after{display:none}
.clean-shell .overlay{padding:22px;background:linear-gradient(180deg,#101b2c50,#101b2c22 50%,#101b2cd9);color:var(--paper)}
.clean-shell .start-panel{justify-content:center;gap:0}
/* The whole wordmark scales with the playfield, including tracking and outline.
   Separate line boxes leave room for both contours instead of colliding. */
.game-title{display:flex;flex-direction:column;align-items:center;flex-shrink:0;gap:0;margin:0 0 .2em;max-width:100%;font-size:clamp(12px,8cqw,32px);line-height:1;transform:rotate(-3deg);color:#f7ebcf;filter:drop-shadow(0 .1em .08em #060f1b50)}
.game-title .title-name{display:block;font-size:1.38em;line-height:1.15;letter-spacing:.065em;padding-left:.065em;color:#f4d7a0;-webkit-text-stroke:.11em #101c2a;paint-order:stroke fill;text-shadow:0 .075em 0 #101c2a}
.game-title .title-jump{display:flex;align-items:baseline;gap:.035em;margin-top:-.07em;font-size:3.35em;line-height:1.1;font-weight:400;letter-spacing:.025em;padding-left:.025em;-webkit-text-stroke:.07em #101c2a;paint-order:stroke fill;text-shadow:0 .055em 0 #101c2a}
.game-title .title-dot{display:inline-block;color:#ee694b;transform:rotate(5deg);margin-left:.015em}
.clean-shell .hero-goblin{width:49%;max-width:190px;height:auto;margin:12px 0 4px;filter:drop-shadow(0 12px 7px #0007);animation:bob 4s ease-in-out infinite}
.clean-shell .primary{border:0;border-radius:1px;background:var(--red);color:#fff1da;box-shadow:0 4px 0 #71281f;font:bold 15px Arial;letter-spacing:.3px;min-height:48px;clip-path:polygon(2% 0,100% 3%,98% 100%,0 96%)}
.clean-shell .secondary{border:1px solid #eee1c45c;border-radius:0;background:transparent;color:#eee1c4;box-shadow:none;min-height:44px}
.clean-shell .overlay>.primary,.clean-shell .overlay>.secondary{max-width:280px;flex-shrink:0;min-height:44px;padding:11px 16px;font-size:14px;margin-top:14px}
.clean-shell .start-panel>p{font-size:11px;line-height:1.5;margin:16px 0 0;color:#e7dfcd}
.clean-shell .stage-caption,.clean-shell.run-started .stage-caption{min-height:30px;padding-top:6px;gap:8px;color:var(--muted);text-align:center}
.clean-shell .stage-caption .caption-status,.clean-shell.run-started .stage-caption .caption-status{display:block}
.clean-shell #run-label{font-size:10px;line-height:1.4;white-space:normal;color:var(--muted)}
.clean-shell #zone{display:none}
.clean-shell .clean-hud{position:relative;inset:auto;height:44px;border:0;border-radius:0;padding:0 5px 7px;background:none;box-shadow:none}
.clean-shell .clean-hud #height{font:bold 23px Arial;color:var(--ink);font-variant-numeric:tabular-nums;letter-spacing:-1px}
.clean-shell .gold-total{color:#826126}
.clean-shell .clean-hud .pause-button{width:44px;height:44px;flex-basis:44px;border:0;background:none;color:var(--ink)}
.clean-shell .control-dock,.clean-shell.run-started .control-dock,.touch-input .clean-shell.run-started .control-dock{position:absolute;right:12px;bottom:44px;min-height:0;padding:0;z-index:8}
.clean-shell .control-dock .watch-button{color:#f4d292;border-color:#dcc998;background:#202c32c9}
.clean-shell .end-panel,.clean-shell .pause-panel{background:#152129ee;backdrop-filter:blur(5px);overflow:auto}
.clean-shell .overlay h2{font-family:Impact,'Arial Narrow',Arial,sans-serif;font-weight:900;font-style:normal;letter-spacing:-1px;color:#f0e5cc}
.clean-shell .end-panel h2{font:bold 54px/1 Arial;margin:12px 0}
.clean-shell .end-panel h2 small{font:12px Arial;letter-spacing:1px}
.clean-shell .end-panel #death-message{font-size:12px;line-height:1.5;margin-top:12px}
.clean-shell .end-panel .record-message{font-size:11px;min-height:0}
.clean-shell .end-panel .validation-message{font-size:10px;min-height:0;line-height:1.4}
.clean-shell .text-button{color:var(--red);font-size:12px;min-height:44px}
.clean-shell .overlay .text-button{color:#eedcc1}
.ranking-panel{width:min(100%,580px);padding:28px 8px;background:none;border:0;border-radius:0}
.ranking-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}
.ranking-heading .eyebrow{color:var(--red);font-size:10px;letter-spacing:2px}
.ranking-heading h1{font:900 clamp(26px,4vw,40px)/1.06 Impact,'Arial Narrow',Arial,sans-serif;letter-spacing:-1px;color:var(--ink);margin:8px 0 0;max-width:340px}
.ranking-panel .ranking-rule{color:var(--ink);font-size:13px;line-height:1.6;margin:20px 0 4px}
.ranking-panel .small-note{color:var(--muted);font-size:12px;line-height:1.6}
.ranking-panel .leaderboard{margin:25px 0 12px;border-top:2px solid var(--ink)}
.ranking-panel .leaderboard li{padding:17px 0;border-bottom:1px solid #25282430;color:var(--ink)}
.ranking-panel .leaderboard .empty-board{font-size:14px;line-height:1.7;color:var(--muted);padding:30px 0}
.ranking-panel .leaderboard li>*{color:inherit}
.ranking-panel .personal-best{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:30px 0 0;padding:20px 0;border-top:2px solid var(--ink)}
.ranking-panel .personal-best>span{color:var(--ink);font-size:11px;font-weight:700;letter-spacing:1px}
.ranking-panel .personal-best>span small{color:var(--muted);font-weight:400}
.ranking-panel .personal-best strong{font:bold 28px Arial;text-align:right;margin:0;color:var(--red)}
.ranking-panel .personal-best strong small{font:11px Arial;color:var(--muted)}
.ranking-panel .personal-best strong .record-coins{font:10px Arial;color:var(--muted)}
.clean-shell dialog{background:var(--paper);color:var(--ink);border:0;border-top:5px solid var(--red);border-radius:0;box-shadow:0 20px 90px #0006;width:min(520px,calc(100% - 28px));max-height:calc(100dvh - 28px);padding:30px;overflow:auto}
.clean-shell dialog::backdrop{background:#101b28bf;backdrop-filter:blur(3px)}
.clean-shell dialog h2{font:900 32px/1.05 Impact,'Arial Narrow',Arial,sans-serif;letter-spacing:-.7px;color:var(--ink);margin:9px 0 20px}
.clean-shell dialog .eyebrow{color:var(--red)}
.clean-shell dialog p,.clean-shell dialog label{color:var(--muted);font-size:13px;line-height:1.65}
.clean-shell dialog .dialog-close{background:none;border:0;border-radius:0;color:var(--ink);width:44px;height:44px;top:10px;right:10px}
.clean-shell dialog input{background:#fff8eb;color:var(--ink);border:0;border-bottom:1px solid #75776c;border-radius:0;font-size:16px;accent-color:var(--red)}
.clean-shell dialog .secondary{color:var(--ink);border-color:#25282450}
.quick-rules{list-style:none;padding:0;margin:20px 0;display:grid;gap:16px;counter-reset:rules}
.quick-rules li{position:relative;padding-left:30px;counter-increment:rules}
.quick-rules li::before{content:counter(rules,decimal-leading-zero);position:absolute;left:0;top:2px;font:bold 11px Arial;color:var(--red)}
.quick-rules strong{font-size:14px;color:var(--ink)}
.quick-rules p,.help-lead,.help-footnote{font-size:13px;line-height:1.65;margin:4px 0 0;color:var(--muted)}
.help-footnote{border-top:1px solid #25282430;padding-top:15px;margin-bottom:20px}
.help-document{max-width:600px;margin:auto;padding:30px 22px}.help-document h1{font:bold 40px Arial}
.clean-shell :focus-visible{outline:3px solid #32808c;outline-offset:4px}
@media(min-width:1000px){.clean-shell:after{content:"HOCH\A HINAUS.";white-space:pre;position:fixed;left:max(28px,calc(50% - 520px));top:48%;transform:rotate(-90deg) translateX(-50%);transform-origin:left top;font:900 64px/.85 Impact,'Arial Narrow',Arial,sans-serif;letter-spacing:-2px;color:#25282412;pointer-events:none;z-index:-1}}
@media(max-width:600px){
 .clean-shell .topbar,.clean-shell.run-started .topbar{height:calc(56px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 14px 0}
 .clean-shell .brand>span,.clean-shell.run-started .topbar .brand>span{display:block;font-size:9px;letter-spacing:1px}
 .clean-shell .brand-mark,.clean-shell.run-started .topbar .brand-mark{width:34px;height:34px}
 .campaign-bar{height:34px;gap:14px}.campaign-bar>span{font-size:9px;letter-spacing:.8px}.campaign-bar strong{font-size:17px}
 .game-tabs button{min-height:44px}.game-tabs{gap:28px}
 .clean-shell .layout,.clean-shell.run-started .layout{padding:8px 14px 8px}
 .clean-shell .game-column{width:min(100%,420px,calc((100svh - 180px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) * .6))}
 .clean-shell.run-started .game-column,html:not(.touch-input) .clean-shell.run-started .game-column{width:min(100%,420px,calc((100svh - 224px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) * .6))}
 .clean-shell .overlay{padding:18px}.clean-shell .hero-goblin{width:49%;margin:14px 0 4px}
 .ranking-panel{padding:22px 6px}.ranking-heading{align-items:flex-start}.ranking-heading h1{font-size:30px}
 .clean-shell dialog{padding:28px 22px}.clean-shell dialog h2{font-size:29px}
}
@media(max-height:680px){
 .clean-shell .hero-goblin{width:42%;margin:8px 0 0}
 .clean-shell .overlay{padding:14px}.clean-shell .overlay>.primary,.clean-shell .overlay>.secondary{font-size:12px;margin-top:10px}
 .clean-shell .start-panel>p{font-size:10px;margin-top:12px}
 .clean-shell .end-panel h2{font-size:36px;margin:8px 0}.clean-shell .end-panel #death-message{font-size:10px;margin-top:7px}
 .clean-shell .end-panel .record-message{font-size:9px;margin-top:7px}.clean-shell .end-panel .validation-message{font-size:9px;margin-top:7px}
}
@media(max-height:500px) and (orientation:landscape){
 .clean-shell .topbar,.clean-shell.run-started .topbar{height:48px}
 .game-tabs{position:absolute;left:25px;top:116px;flex-direction:column;gap:5px}
 .clean-shell .game-column{width:calc((100svh - 125px) * .6)}
 .clean-shell.run-started .game-column,html:not(.touch-input) .clean-shell.run-started .game-column{width:calc((100svh - 169px) * .6)}
 .clean-shell .overlay{padding:10px;overflow:auto;justify-content:flex-start}
 .clean-shell .hero-goblin{width:36%;margin:5px 0 0}.clean-shell .start-panel>p{display:none}
 .clean-shell:has(#ranking-panel:not([hidden])) .layout{padding-left:165px}
 .clean-shell .control-dock,.clean-shell.run-started .control-dock,.touch-input .clean-shell.run-started .control-dock{right:-80px;bottom:30px}
}
@media(prefers-reduced-motion:reduce){.clean-shell .hero-goblin{animation:none}}
.game-title,.ranking-heading h1,.clean-shell .overlay h2,.clean-shell dialog h2,.clean-shell:after{font-family:GargoyleDisplay,Impact,'Arial Narrow',Arial,sans-serif;font-weight:400;font-synthesis:none}
.ranking-heading h1{margin:0}
#board-refresh{font:30px Arial;width:44px;padding:0}
.own-standing{position:sticky;top:38px;z-index:10;display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:10px;align-items:center;padding:18px 12px;margin:24px 0 18px;border-block:2px solid var(--red);background:var(--paper);box-shadow:0 6px 0 var(--paper)}
#personal-rank{font:26px GargoyleDisplay;color:var(--red)}
#personal-name{display:block;font-size:14px;overflow-wrap:anywhere}
#personal-best{font:bold 23px Arial;text-align:right;white-space:nowrap;color:var(--ink);font-variant-numeric:tabular-nums}
#personal-best small{display:block;font:10px Arial;color:var(--muted);margin-top:4px}
.ranking-columns,.ranking-panel .leaderboard li:not(.empty-board){display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:10px;padding:15px 12px}
.ranking-columns{font-size:10px;color:var(--muted);padding-top:8px;padding-bottom:8px}
.ranking-columns>:last-child{text-align:right}
.ranking-panel .leaderboard{margin:0;border-top:1px solid #25282440}
.ranking-panel .leaderboard .name{overflow-wrap:anywhere}
.ranking-panel .leaderboard .value{font:bold 14px Arial;font-variant-numeric:tabular-nums}
.own-standing.is-you{background:#dbe8df;border-color:#286050;color:#204d42}
.own-standing.is-you #personal-rank,.own-standing.is-you #personal-best{color:#204d42}
.ranking-panel .leaderboard .is-you{background:#dbe8df;border-left:3px solid #286050;padding-left:9px;font-weight:700;color:#204d42}
.ranking-panel .leaderboard li.is-you .rank,.ranking-panel .leaderboard li.is-you .value,.ranking-panel .leaderboard li.is-you .name{color:#204d42}
#board-status:empty{display:none}
@media(max-width:600px){.own-standing{top:34px}.ranking-panel{padding-top:14px}.own-standing{margin-top:20px}}

/* While playing on touch devices, the whole browser viewport is the game.
   Contain preserves the full competitive playfield on every screen shape. */
.touch-input .clean-shell.is-playing{overflow:hidden;overscroll-behavior:none;background:#101b29}
.touch-input .clean-shell.is-playing .topbar,
.touch-input .clean-shell.is-playing .game-tabs,
.touch-input .clean-shell.is-playing .stage-caption{display:none}
.touch-input .clean-shell.is-playing .layout{padding:0;margin:0}
.touch-input .clean-shell.is-playing .game-column{position:fixed;inset:0;width:100%;height:100dvh;z-index:10}
.touch-input .clean-shell.is-playing .stage{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;border:0;border-radius:0;outline:0;box-shadow:none;background:linear-gradient(#101b29,#152030 50%,#101b29)}
.touch-input .clean-shell.is-playing #game{width:100%;height:100%;object-fit:contain}
.touch-input .clean-shell.is-playing .clean-hud{position:absolute;inset:0 0 auto;height:calc(60px + env(safe-area-inset-top));padding:env(safe-area-inset-top) max(14px,env(safe-area-inset-right)) 0 max(14px,env(safe-area-inset-left));gap:12px;z-index:15;background:linear-gradient(#101b29eb,#101b2900);pointer-events:none}
.touch-input .clean-shell.is-playing .clean-hud #height{font-size:25px;color:#f0e5cc;text-shadow:0 2px 3px #0008}
.touch-input .clean-shell.is-playing .gold-total{color:#f4cf85;text-shadow:0 2px 3px #0008}
.touch-input .clean-shell.is-playing .clean-hud .pause-button{pointer-events:auto;color:#f0e5cc;background:#101b29a8;border:1px solid #f0e5cc50;border-radius:50%;width:44px;height:44px;flex-basis:44px}
.touch-input .clean-shell.is-playing .campaign-bar{position:fixed;top:auto;bottom:calc(10px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100vw - 30px);height:28px;gap:8px;padding:0 12px;border-radius:20px;background:#101b29d9;box-shadow:none;z-index:20;pointer-events:none}
.touch-input .clean-shell.is-playing .campaign-bar>span{font-size:8px;letter-spacing:.3px}
.touch-input .clean-shell.is-playing .campaign-bar strong{font-size:13px}
.touch-input .clean-shell.is-playing .control-dock{position:absolute;right:max(16px,env(safe-area-inset-right));bottom:calc(50px + env(safe-area-inset-bottom));z-index:16}
.touch-input .clean-shell.is-playing .toast{position:fixed;top:calc(65px + env(safe-area-inset-top));left:16px;right:16px;z-index:18;pointer-events:none}
@media(max-width:380px){.clean-shell .brand>span,.clean-shell.run-started .topbar .brand>span{display:none}.clean-shell .topbar nav{gap:4px}.help-button{white-space:nowrap}}

/* Small permanent legal navigation, full readable text on demand. */
.clean-shell .legal-footer{display:block;padding:0 14px max(12px,env(safe-area-inset-bottom));text-align:center}
.legal-links{display:flex;justify-content:center;align-items:center;gap:16px;flex-wrap:wrap}
.legal-links a{display:inline-flex;align-items:center;min-height:36px;color:var(--muted);font:11px Arial;text-underline-offset:3px}
.clean-shell.is-playing .legal-footer{display:none}
#legal-dialog{width:min(580px,calc(100% - 28px))}
#legal-dialog h2{padding-right:28px;font-size:clamp(22px,6.6vw,29px);overflow-wrap:anywhere}
#legal-copy{overflow-wrap:anywhere}
#legal-copy p{font:13px/1.65 Arial;color:var(--ink);margin:0 0 16px}
#legal-copy a,.submit-privacy a{color:inherit;text-underline-offset:3px;text-decoration:underline}
#legal-copy strong{font-weight:700}
#legal-copy p:last-child{margin-bottom:0}
.legal-state{border-left:3px solid var(--red);padding-left:12px}
.clean-shell dialog .submit-privacy{font-size:11px;line-height:1.6;margin:14px 0}
.legal-page #legal-document{max-width:600px;padding:24px 22px 40px;margin:auto}
.legal-page-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.legal-page-header a{color:var(--ink);font:13px Arial}
.legal-page h1{overflow-wrap:anywhere;font:32px GargoyleDisplay,Arial;margin:28px 0 20px}
.legal-page:after{display:none}
@media(max-width:380px){.legal-links{gap:12px}.legal-links a{font-size:10px}}
