/* Walk the Hole (2026-11-04). */
/* Vollbild-Welt im Tour-Stil des Atlas-Schilds: weiße Karten, Navy, Salbei und Bronze über der 3D-Bahn. Bewusst nur ein Look. */
:root { color-scheme: light; --navy: #12263a; --ink: #1c2a3a; --sage: #79a89c; --bronze: #c19566; --paper: #f8fafc; --red: #e8455a; --blue: #4aa3df; --sky: #cfe0e0;
  --disp: "Big Shoulders", "Arial Narrow", Impact, sans-serif; --body: Karla, Arial, sans-serif; --mono: "JetBrains Mono", Consolas, monospace; }
html, body { height: 100%; margin: 0; overflow: hidden; background: var(--sky); color: var(--ink); font-family: var(--body); -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; overscroll-behavior: none; }
[hidden] { display: none !important; }
#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; }
.card { background: var(--paper); border-radius: 14px; box-shadow: 0 6px 18px rgba(10, 26, 40, .28); }
#hole { position: fixed; left: calc(10px + env(safe-area-inset-left, 0px)); top: calc(10px + env(safe-area-inset-top, 0px)); display: flex; align-items: center; gap: 8px; padding: 6px 9px 6px 10px; border-radius: 14px; text-align: left; }
#hole i { font: 700 13px/1 var(--mono); font-style: normal; color: #5b6b7b; }
#hole b { font: 900 46px/1 var(--disp); color: var(--navy); font-style: italic; }
#hole .par { font: 800 15px/1.15 var(--disp); letter-spacing: .4px; color: var(--navy); text-transform: uppercase; }
#hole .par span { display: block; }
#hole .par #hLen { font: 700 11px/1.3 var(--mono); color: #5b6b7b; letter-spacing: 0; text-transform: none; }
#dist { position: fixed; left: 50%; transform: translateX(-50%); top: calc(10px + env(safe-area-inset-top, 0px)); padding: 7px 14px 8px; text-align: center; background: var(--navy); color: #fff; min-width: 96px; }
#dist small { display: block; font: 700 10px/1.2 var(--mono); letter-spacing: 1.3px; color: #a9c7bf; }
#dist b { font: 900 34px/1 var(--disp); font-variant-numeric: tabular-nums; }
#dist i { font: 700 12px/1 var(--mono); font-style: normal; color: var(--bronze); margin-left: 5px; }
#perf { position: fixed; right: calc(10px + env(safe-area-inset-right, 0px)); top: calc(12px + env(safe-area-inset-top, 0px)); font: 700 10px/1.35 var(--mono); color: #fff; background: rgba(18, 38, 58, .68); padding: 4px 7px; border-radius: 7px; text-align: right; font-variant-numeric: tabular-nums; }
#score { position: fixed; right: calc(10px + env(safe-area-inset-right, 0px)); top: calc(62px + env(safe-area-inset-top, 0px)); font: 800 13px/1.3 var(--body); color: var(--navy); padding: 5px 10px; }
#level { position: fixed; right: calc(10px + env(safe-area-inset-right, 0px)); top: calc(78px + env(safe-area-inset-top, 0px)); display: grid; grid-template-columns: 32px 44px 32px; grid-template-rows: 18px 44px 18px; align-items: center; justify-items: center; padding: 5px 3px; border-radius: 14px; background: rgba(18, 38, 58, .66); color: #fff; pointer-events: none; }
#level[hidden] { display: none; }
#score:not([hidden]) ~ #level { top: calc(98px + env(safe-area-inset-top, 0px)); }
#level .lv { font: 800 12px/1 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
#level .lv.ok { color: #b9ecc8; }
#level .lv.mid { color: #ffd98a; }
#level .lv.steep { color: #ffa39b; }
#lvF { grid-column: 2; grid-row: 1; }
#lvL { grid-column: 1; grid-row: 2; }
#level .bub { grid-column: 2; grid-row: 2; position: relative; width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle, #e9f3c6 0%, #c6dc8c 100%); box-shadow: inset 0 0 0 2px rgba(18, 38, 58, .55); }
#level .cross { position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; border: 1.5px solid rgba(18, 38, 58, .55); }
#lvDot { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px rgba(18, 38, 58, .8); }
#lvDot.mid { background: #ffd24d; }
#lvDot.steep { background: #ff7468; }
#lvR { grid-column: 3; grid-row: 2; }
#lvB { grid-column: 2; grid-row: 3; }
#bar { position: fixed; left: calc(10px + env(safe-area-inset-left, 0px)); right: calc(104px + env(safe-area-inset-right, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
button, .wbtn { font: 800 14px/1 var(--body); text-decoration: none; display: inline-block; border: 0; cursor: pointer; color: var(--navy); background: var(--paper); border-radius: 10px; padding: 10px 11px; box-shadow: 0 3px 10px rgba(10, 26, 40, .3); touch-action: manipulation; pointer-events: auto; }
button:focus-visible, .wbtn:focus-visible { outline: 3px solid var(--bronze); outline-offset: 2px; }
button.on { background: var(--navy); color: #fff; }
#throw { position: fixed; right: calc(14px + env(safe-area-inset-right, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); width: 84px; height: 84px; border-radius: 50%; padding: 0; background: conic-gradient(var(--red) calc(var(--p, 0) * 1%), var(--bronze) 0); color: var(--navy); font: 900 19px/1 var(--disp); letter-spacing: .4px; text-transform: uppercase; touch-action: none; }
#throw span { display: grid; place-items: center; position: absolute; inset: 7px; background: var(--paper); border-radius: 50%; }
#cartHud { position: fixed; right: calc(10px + env(safe-area-inset-right, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: 84px; padding: 6px 0 7px; text-align: center; background: var(--navy); color: #fff; pointer-events: none; }
#cartHud b { display: block; font: 900 34px/1 var(--disp); font-variant-numeric: tabular-nums; }
#cartGo { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(190px + env(safe-area-inset-bottom, 0px)); background: var(--bronze); color: #fff; font-size: 17px; padding: 13px 20px; white-space: nowrap; box-shadow: 0 6px 18px rgba(10, 26, 40, .35); }
#photoGo:not([hidden]) ~ #cartGo { bottom: calc(244px + env(safe-area-inset-bottom, 0px)); }
#cartHud small { display: block; font: 700 10px/1.2 var(--mono); letter-spacing: 1px; color: #a9c7bf; }
#toast { position: fixed; left: 50%; top: 27%; transform: translate(-50%, -50%) rotate(-3deg); font: 900 clamp(38px, 10vw, 76px)/1 var(--disp); color: #ffd21f; text-align: center; text-shadow: 0 3px 0 #10202c, 3px 0 0 #10202c, -3px 0 0 #10202c, 0 -3px 0 #10202c, 0 8px 18px rgba(0,0,0,.4); pointer-events: none; opacity: 0; transition: opacity .25s; width: 94%; text-transform: uppercase; }
#toast small { display: block; font: 800 clamp(15px, 4vw, 22px)/1.3 var(--body); color: #fff; text-transform: none; text-shadow: 0 2px 6px rgba(0,0,0,.75); margin-top: 8px; }
#toast.show { opacity: 1; }
#hint { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(118px + env(safe-area-inset-bottom, 0px)); background: rgba(18, 38, 58, .86); color: #fff; font: 700 14px/1.35 var(--body); padding: 9px 13px; border-radius: 10px; text-align: center; width: max-content; max-width: 88vw; pointer-events: none; transition: opacity .5s; }
#stick { position: fixed; width: 112px; height: 112px; margin: -56px 0 0 -56px; border-radius: 50%; background: rgba(255,255,255,.2); border: 2px solid rgba(255,255,255,.65); pointer-events: none; }
#stick i { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: rgba(255,255,255,.88); box-shadow: 0 2px 8px rgba(0,0,0,.3); }
#fade { position: fixed; inset: 0; background: #fff; opacity: 0; pointer-events: none; transition: opacity .28s; }
#cap { position: fixed; left: 0; right: 0; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); text-align: center; color: #fff; font: 900 clamp(30px, 8vw, 58px)/1.04 var(--disp); text-shadow: 0 3px 16px rgba(0,0,0,.55); pointer-events: none; padding: 0 16px; }
#cap small { display: block; font: 700 clamp(11px, 2.8vw, 14px)/1.6 var(--mono); letter-spacing: 2px; color: #ffe9b0; }
#skip { position: fixed; right: calc(10px + env(safe-area-inset-right, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
#signbox { position: fixed; inset: 0; background: rgba(8, 18, 28, .84); padding: 14px; }
#signbox > div { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; height: 100%; min-height: 0; }
#signHolder { flex: none; aspect-ratio: 2 / 3; width: min(100%, calc((100vh - 120px) * 2 / 3)); width: min(100%, calc((100dvh - 120px) * 2 / 3)); border-radius: 10px; overflow: hidden; box-shadow: 0 14px 40px rgba(0,0,0,.5); background: #fff; }
#signHolder > svg { display: block; width: 100%; height: 100%; }
#signbox p { color: #dfe8ef; font: 700 13px/1.4 var(--body); margin: 0; text-align: center; flex: none; }
#signbox button { flex: none; }
.sbtns { display: flex; gap: 8px; flex: none; flex-wrap: wrap; justify-content: center; }
#signMiniBox { position: fixed; left: calc(10px + env(safe-area-inset-left, 0px)); top: calc(84px + env(safe-area-inset-top, 0px)); width: clamp(112px, 15vw, 200px); }
#signMini { display: block; width: 100%; aspect-ratio: 2 / 3; padding: 0; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 6px 18px rgba(10, 26, 40, .4); }
#signMiniX { position: absolute; right: -10px; top: -10px; width: 30px; height: 30px; padding: 0; border-radius: 50%; background: var(--navy); color: #fff; font: 800 18px/1 var(--body); box-shadow: 0 2px 6px rgba(10, 26, 40, .4); }
@media (max-height: 480px) { #signMiniBox { width: 84px; } }
#signMini > svg { display: block; width: 100%; height: 100%; pointer-events: none; }
#near { position: fixed; left: 50%; transform: translateX(-50%); top: calc(84px + env(safe-area-inset-top, 0px)); background: var(--navy); color: #fff; white-space: nowrap; max-width: calc(100vw - 24px); overflow: hidden; text-overflow: ellipsis; }
#goNext { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(136px + env(safe-area-inset-bottom, 0px)); background: var(--bronze); color: #fff; font-size: 17px; padding: 13px 20px; white-space: nowrap; box-shadow: 0 6px 18px rgba(10, 26, 40, .35); }
#wholeOffer { box-sizing: border-box; position: fixed; left: 50%; transform: translateX(-50%); top: calc(84px + env(safe-area-inset-top, 0px)); width: min(380px, calc(100vw - 24px)); background: var(--navy); color: #fff; border-radius: 12px; padding: 12px; box-shadow: 0 6px 18px rgba(10, 26, 40, .35); }
#wholeOffer p { margin: 0 0 10px; font: 600 14px/1.35 var(--body); }
#wholeOffer button { margin-right: 6px; }
#woYes { background: var(--bronze); color: #fff; }
#photoGo { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(190px + env(safe-area-inset-bottom, 0px)); background: var(--navy); color: #fff; white-space: nowrap; }
#photoView { position: fixed; inset: 0; z-index: 5; background: rgba(8, 18, 28, var(--ph-bg, .86)); transition: opacity .45s; }
#phImg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: var(--ph-op, 1); }
.phbar { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px calc(12px + env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) calc(12px + env(safe-area-inset-left, 0px)); background: linear-gradient(transparent, rgba(8, 18, 28, .8)); color: #fff; }
.phbar p { margin: 0 0 8px; font: 700 15px/1.35 var(--body); }
.phtools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.phtools label { font: 700 13px/1 var(--body); }
.phtools input { flex: 1 1 110px; min-width: 90px; }
#kind { position: fixed; right: calc(14px + env(safe-area-inset-right, 0px)); bottom: calc(108px + env(safe-area-inset-bottom, 0px)); font-size: 12px; padding: 7px 10px; }
#kindBox { position: fixed; right: calc(14px + env(safe-area-inset-right, 0px)); bottom: calc(146px + env(safe-area-inset-bottom, 0px)); background: var(--paper); border-radius: 14px; padding: 10px; display: grid; gap: 8px; box-shadow: 0 6px 18px rgba(10, 26, 40, .3); max-width: calc(100vw - 28px); }
#kindBox div { display: flex; flex-wrap: wrap; gap: 5px; }
#kindBox button { box-shadow: none; background: #e7edf1; font-size: 12px; padding: 8px 10px; }
#kindBox button.on { background: var(--navy); color: #fff; }
#planBox { position: fixed; left: calc(10px + env(safe-area-inset-left, 0px)); right: calc(10px + env(safe-area-inset-right, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 3; max-width: 560px; margin: 0 auto; background: var(--paper); border-radius: 14px; padding: 12px; box-shadow: 0 6px 18px rgba(10, 26, 40, .3); }
#planBox p { margin: 0 0 8px; font: 700 13px/1.35 var(--body); color: var(--ink); }
.pbtns { display: flex; flex-wrap: wrap; gap: 6px; }
.pbtns button { box-shadow: none; background: #e7edf1; font-size: 13px; }
#pPlay { background: var(--bronze); color: #fff; }
#bLive.on { background: var(--blue); color: #fff; }
@media (max-width: 560px) { #wholeOffer { top: calc(264px + env(safe-area-inset-top, 0px)); } #near { top: calc(118px + env(safe-area-inset-top, 0px)); left: auto; right: calc(10px + env(safe-area-inset-right, 0px)); transform: none; max-width: calc(100vw - 150px); white-space: normal; text-align: left; } }
#pick { position: fixed; inset: 0; background: rgba(8, 18, 28, .84); display: grid; place-items: center; padding: 14px; }
.pbox { background: var(--paper); border-radius: 16px; padding: 14px; width: min(520px, 100%); max-height: 100%; overflow: auto; }
.pbox header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pbox header b { font: 900 26px/1 var(--disp); color: var(--navy); }
.pbox header span { flex: 1; min-width: 0; font: 700 12px/1.2 var(--mono); color: #5b6b7b; }
#pGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 7px; }
#pGrid button { display: grid; gap: 3px; padding: 8px 4px; box-shadow: none; background: #e7edf1; }
#pGrid button.cur { background: var(--navy); color: #fff; }
#pGrid b { font: 900 25px/1 var(--disp); font-style: italic; }
#pGrid small { font: 700 10px/1.2 var(--mono); }
#pGrid em { font: 800 11px/1 var(--body); font-style: normal; color: #2f8a5c; min-height: 11px; }
#pGrid button.cur em { color: #9fe0bc; }
#load { position: fixed; inset: 0; background: var(--navy); color: #fff; display: grid; place-content: center; justify-items: center; gap: 6px; transition: opacity .3s; }
#load b { font: 900 92px/1 var(--disp); font-style: italic; }
#load span { font: 700 15px/1.3 var(--body); color: #a9c7bf; }
#err { position: fixed; inset: 0; z-index: 9; display: grid; place-content: center; justify-items: center; gap: 16px; padding: 24px; background: var(--navy); color: #fff; font: 700 17px/1.45 var(--body); text-align: center; }
#err p { margin: 0; max-width: 46ch; }
#bMore { display: none; }
@media (max-width: 720px) { #bMore { display: inline-block; } #bar .x { display: none; } #bar.more .x { display: inline-block; } #hint { bottom: calc(158px + env(safe-area-inset-bottom, 0px)); } }
@media (max-width: 560px) { #dist { left: auto; right: calc(10px + env(safe-area-inset-right, 0px)); transform: none; } #perf { top: calc(72px + env(safe-area-inset-top, 0px)); } #score { top: calc(112px + env(safe-area-inset-top, 0px)); } }
@media (max-width: 480px) { #hole b { font-size: 38px; } button, .wbtn { font-size: 13px; padding: 9px 9px; } #perf { font-size: 9px; } #dist { min-width: 84px; } }
/* Branding (2026-11-09): "Präsentiert von" - Bahnpate oder Hauptsponsor, im Ladebildschirm und ein paar Sekunden oben in der Mitte */
#presented { position: fixed; left: 50%; top: calc(84px + env(safe-area-inset-top, 0px)); translate: -50% 0; padding: 6px 12px 7px; max-width: min(340px, 70vw); text-align: center;
  opacity: 0; pointer-events: none; }
#presented.go { animation: presIn .5s ease-out .6s both, presOut .8s ease-in 10s forwards; }
#presented small, #load .lspon small { display: block; font: 700 9.5px/1.2 var(--mono); letter-spacing: 1.2px; text-transform: uppercase; color: #5b6b7b; margin-bottom: 3px; }
#presented span, #load .lspon span { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#presented img { height: 28px; max-width: 120px; object-fit: contain; }
#presented b { font: 800 14px/1.2 var(--body); color: var(--navy); }
#presented span { justify-content: center; }
@media (max-width: 560px) { #presented { top: calc(118px + env(safe-area-inset-top, 0px)); } }
#load .lspon { margin: 4px 0 6px; padding: 10px 16px 12px; border-radius: 12px; background: #fff; text-align: center; }
#load .lspon span { justify-content: center; }
#load .lspon img { height: 40px; max-width: 160px; object-fit: contain; }
#load .lspon b { font: 800 16px/1.2 var(--body); color: var(--navy); }
@keyframes presIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes presOut { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { #presented.go { opacity: 1; animation: presOut .01s linear 10s forwards; } }
