/* Heimattauchen – CI of Heimatwasser (Seeblau, Bernstein, Creme; Fraunces, Barlow Condensed, Manrope, Inter, IBM Plex Mono) */
:root{--lake:#0D3B52;--deep:#092A39;--abyss:#061c26;--amber:#F4A340;--cream:#F8F4E8;--mist:#DDE8E8;--teal:#2B6A79;--moss:#5d8f2f;--red:#e0806f;--good:#7cc49a;
  --panel:rgba(9,42,57,.78);--line:rgba(248,244,232,.18);--muted:#a9b9b6;
  --display:'Fraunces',Georgia,serif;--cond:'Barlow Condensed','Arial Narrow',sans-serif;--brand:'Manrope',Arial,sans-serif;--sans:'Inter',system-ui,-apple-system,'Segoe UI',Arial,sans-serif;--num:'IBM Plex Mono',ui-monospace,monospace}
*{box-sizing:border-box}
html,body{margin:0;height:100%;overflow:hidden;background:var(--abyss);color:var(--cream);font:15px/1.5 var(--sans);-webkit-text-size-adjust:100%;overscroll-behavior:none}
button{font:inherit;cursor:pointer;color:inherit}button:focus-visible{outline:3px solid var(--amber);outline-offset:2px}
a{color:#ffcb81}
.hidden{display:none!important}
.muted{color:var(--muted)}.small{font-size:12px}
#game{position:fixed;inset:0;width:100%;height:100%;display:block;touch-action:none;outline:none}
body:not(.diving) #game{visibility:hidden}
.screen{position:fixed;inset:0;z-index:5}
.eyebrow{font-family:var(--cond);font-size:14px;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:#ffcb81;margin:0 0 4px}
h2{font-family:var(--display);font-weight:800;font-size:28px;line-height:1.1;margin:0 0 10px}
h3{font-family:var(--cond);font-size:18px;letter-spacing:.12em;text-transform:uppercase;font-weight:700;color:var(--mist);margin:22px 0 10px}
h3 small{font-family:var(--num);letter-spacing:0;font-size:12px;color:var(--muted);margin-left:8px;text-transform:none}
.lead{color:#d9e6e2;margin:0 0 14px}
.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:16px}.row.end{justify-content:flex-end}.col{display:flex;flex-direction:column;gap:8px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:10px;padding:11px 16px;font-weight:700;font-size:14px;border:1px solid var(--line);transition:background .15s,transform .1s;user-select:none;-webkit-user-select:none}
.btn:active{transform:scale(.97)}.btn:disabled{opacity:.55;cursor:default}
.btn-primary{background:var(--deep);border-color:rgba(244,163,64,.7);color:var(--cream)}.btn-primary:hover{background:#10465F;border-color:var(--amber)}
.btn-soft{background:rgba(214,236,222,.1)}.btn-soft:hover{background:rgba(214,236,222,.18)}
.btn-ghost{background:transparent;border-style:dashed;color:#c6ddd4}
.btn.small{padding:6px 10px;font-size:13px}.btn.big{padding:15px 24px;font-size:16px}
kbd{font-family:var(--num);font-size:12px;background:rgba(255,255,255,.1);border:1px solid var(--line);border-bottom-width:2px;border-radius:5px;padding:1px 6px}

/* Titel: das Startplakat wie bei Heimatwasser (Fraunces für den Namen, Barlow Condensed für die Beschriftung, Caveat für
   die Notiz vom Tag), das Bild ist eine Szene aus dem Spiel: Jens über der Wasserpest in der Taucherbucht */
.title{display:flex;flex-direction:column;overflow:hidden;color:var(--cream);isolation:isolate}
.title-bg{position:absolute;inset:0;z-index:-2;background:#092A39 url('assets/brand/hero-desktop-1920.webp') center/cover no-repeat;animation:titleDrift 38s ease-in-out infinite alternate;transform-origin:62% 45%}
@keyframes titleDrift{from{transform:scale(1.02)}to{transform:scale(1.09) translate(-1%,-.6%)}}
.title[data-season=winter] .title-bg{filter:hue-rotate(18deg) saturate(.7) brightness(.92)} /* im Winter: kälter und blauer */
.title::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(90deg,rgba(5,31,43,.8) 0%,rgba(5,31,43,.55) 32%,rgba(5,31,43,.06) 68%),linear-gradient(0deg,rgba(4,26,40,.62),transparent 37%,rgba(6,32,48,.13))}
.title::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.22;mix-blend-mode:overlay;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E")}
.bubbles{position:absolute;inset:0;z-index:-1;pointer-events:none;overflow:hidden}
.bubbles i{position:absolute;bottom:-30px;width:10px;height:10px;border-radius:50%;border:1.5px solid rgba(255,255,255,.5);background:radial-gradient(circle at 30% 30%,rgba(255,255,255,.45),transparent 60%);animation:rise 9s linear infinite}
.bubbles i:nth-child(1){left:62%;animation-delay:0s}.bubbles i:nth-child(2){left:66%;width:6px;height:6px;animation-delay:2.4s}.bubbles i:nth-child(3){left:69%;animation-delay:1.1s;width:13px;height:13px}.bubbles i:nth-child(4){left:74%;width:7px;height:7px;animation-delay:3.3s}.bubbles i:nth-child(5){left:79%;animation-delay:5s}.bubbles i:nth-child(6){left:71%;width:5px;height:5px;animation-delay:6.2s}.bubbles i:nth-child(7){left:88%;width:9px;height:9px;animation-delay:4.4s}.bubbles i:nth-child(8){left:84%;width:6px;height:6px;animation-delay:7.5s}
@keyframes rise{from{transform:translateY(0)}50%{transform:translate(8px,-55vh)}to{transform:translate(-4px,-110vh)}}
@media (prefers-reduced-motion:reduce){.title-bg,.bubbles i{animation:none}.bubbles{display:none}}
.masthead{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:max(20px,env(safe-area-inset-top)) max(28px,env(safe-area-inset-right)) 0 max(32px,env(safe-area-inset-left))}
.masthead-brand{display:flex;gap:8px;align-items:center;font-family:var(--cond);font-size:15px;font-weight:700;letter-spacing:.14em}
.masthead-brand .soft{font-weight:500;font-size:14px;letter-spacing:.15em;opacity:.78}
.brand-dot{width:8px;height:8px;display:inline-block;background:var(--amber);border-radius:99px}
.masthead-btns{display:flex;gap:10px}
.sa-icon-btn{display:grid;place-items:center;width:48px;height:48px;border-radius:12px;background:rgba(9,42,57,.48);border:1px solid rgba(248,244,232,.25);color:var(--cream);transition:background .17s ease,transform .17s ease}
.sa-icon-btn svg{width:22px;height:22px}.sa-icon-btn:hover{background:rgba(13,59,82,.95);transform:translateY(-1px)}
.hero{flex:1;width:100%;max-width:1480px;margin:0 auto;display:flex;align-items:center;padding:clamp(12px,min(5vw,5vh),80px) clamp(28px,8vw,124px) clamp(12px,min(4vw,4vh),60px)}
.hero-content{width:100%;max-width:min(100%,680px)}
.title .eyebrow{font-family:var(--cond);font-size:15px;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:#FFCB81;margin:0 0 6px;display:flex;align-items:center;gap:10px}
.title .eyebrow::before{content:"";width:34px;height:2px;background:currentColor;border-radius:2px}
.brand-name{font-family:var(--display);font-weight:900;font-variation-settings:'opsz' 144,'SOFT' 100,'WONK' 1;font-size:clamp(60px,min(8.6vw,14vh),136px);letter-spacing:-.035em;line-height:.88;margin:0;text-shadow:0 3px 0 rgba(4,26,36,.35),0 10px 40px rgba(4,31,42,.45)}
.brand-category{font-family:var(--cond);font-weight:700;font-size:clamp(18px,2.3vw,30px);letter-spacing:.34em;color:var(--amber);margin:10px 0 0 3px;display:flex;align-items:center;gap:.5em}
.brand-category::after{content:"";flex:0 1 120px;height:2px;background:linear-gradient(90deg,var(--amber),transparent)}
.brand-subline{font-family:var(--display);font-style:italic;font-weight:600;font-variation-settings:'opsz' 36,'SOFT' 100;font-size:clamp(18px,1.9vw,24px);margin:10px 0 0 3px}
.title-note{max-width:440px;margin:20px 0 18px 3px;padding:10px 14px 10px 16px;border-left:3px solid var(--amber);background:linear-gradient(90deg,rgba(5,31,43,.55),rgba(5,31,43,0));border-radius:0 10px 10px 0;transform:rotate(-.6deg)}
.note-label{display:block;font-family:var(--cond);font-size:13px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:#FFCB81}
.title-mood{display:block;margin:2px 0 0;font-family:'Caveat','Segoe Print',cursive;font-size:clamp(22px,2vw,27px);font-weight:500;line-height:1.15}
.title-week{display:block;margin-top:6px;font-size:14px;color:#FFCB81}.title-week:empty{display:none}
.hero-actions{max-width:370px;display:flex;flex-direction:column;gap:10px}
.game-button{position:relative;min-height:52px;width:100%;display:flex;align-items:center;gap:13px;text-align:left;padding:11px 18px;border-radius:14px;font-family:var(--cond);font-size:20px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--cream);transition:background .17s ease,border-color .17s ease,transform .17s ease;box-shadow:0 4px 14px rgba(7,28,40,.11)}
.game-button img{width:21px;height:21px;flex:none}.game-button .tail{margin-left:auto;font-size:24px;line-height:1;opacity:.67;font-weight:500}
.game-button .gb-text{display:flex;flex-direction:column;line-height:1.1}.game-button small{font-family:var(--sans);text-transform:none;letter-spacing:0;font-size:13px;font-weight:500;opacity:.78;margin-top:3px}
.game-button--primary{background:linear-gradient(180deg,#F7B256,#E8902A);border:1px solid #FFD08F;color:#10222b;box-shadow:0 6px 0 #9c5a14,0 14px 28px rgba(7,28,40,.4);animation:startPulse 2.8s ease-in-out infinite}
.game-button--primary img{filter:brightness(0) saturate(100%) invert(10%) sepia(20%) saturate(900%) hue-rotate(160deg)}
.game-button--primary:hover{background:linear-gradient(180deg,#FFC06A,#F09A33);border-color:#FFE0B0;transform:translateY(-2px);box-shadow:0 8px 0 #9c5a14,0 18px 32px rgba(7,28,40,.45)}
.game-button--primary:active{transform:translateY(4px);box-shadow:0 2px 0 #9c5a14,0 8px 18px rgba(7,28,40,.4)}
@keyframes startPulse{0%,100%{filter:none}50%{filter:brightness(1.08) saturate(1.05)}}
.game-button--secondary{background:rgba(8,37,52,.42);border:1px solid rgba(248,244,232,.25);backdrop-filter:blur(7px)}
.game-button--secondary:hover{background:rgba(9,42,57,.78);border-color:rgba(248,244,232,.57);transform:translateY(-1px)}
@media (prefers-reduced-motion:reduce){.game-button,.sa-icon-btn{transition:none}.game-button--primary{animation:none}}
.game-button:focus-visible,.sa-icon-btn:focus-visible,.title-icons button:focus-visible,.lake-option:focus-visible{outline:3px solid var(--amber);outline-offset:4px}
.title-icons{display:flex;gap:8px;margin-top:18px;flex-wrap:wrap;max-width:370px}
.title-icons button{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:7px 12px;border-radius:12px;border:1px solid rgba(248,244,232,.25);background:rgba(8,37,52,.42);color:var(--cream);font-family:var(--cond);font-size:16px;font-weight:600;letter-spacing:.04em;backdrop-filter:blur(7px)}
.title-icons button:hover{background:rgba(9,42,57,.78)}
.ic{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.title-foot{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;padding:0 max(32px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(32px,env(safe-area-inset-left));font-size:11px;font-weight:550;letter-spacing:.08em;color:rgba(248,244,232,.72)}
.foot-right{display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.link-btn{background:none;border:0;padding:0;color:var(--cream);font-size:11px;letter-spacing:.08em;text-decoration:underline;text-underline-offset:2px}
@media (pointer:coarse){.link-btn{min-height:44px;padding:0 4px}}
/* Tauchplatz wählen: wie „Revier und Gewässer wählen“ */
.region-h{font:700 13px/1 var(--cond);letter-spacing:.14em;text-transform:uppercase;color:var(--amber);margin:16px 2px 0}
.lake-options{display:grid;gap:8px;margin:10px 0 14px}
.lake-option{width:100%;text-align:left;display:flex;flex-direction:column;padding:14px 16px;min-height:62px;border-radius:12px;color:var(--cream);background:rgba(248,244,232,.06);border:1px solid rgba(248,244,232,.15)}
.lake-option strong{font-size:16px;font-weight:650;display:flex;gap:10px;align-items:center}.lake-option span{font-size:12.5px;margin-top:4px;color:rgba(248,244,232,.62)}
.lake-option em{font:700 13px/1 var(--cond);letter-spacing:.06em;font-style:normal;color:#FFCB81}
.lake-option:hover:not(:disabled),.lake-option[aria-pressed=true]{border-color:var(--amber);background:rgba(244,163,64,.1)}
.lake-option[aria-pressed=true]{box-shadow:0 0 0 3px rgba(244,163,64,.45)}
.lake-option:disabled{opacity:.55;cursor:default}
.site-card-h{font-family:var(--brand);font-weight:800;letter-spacing:-.04em;font-size:32px;margin:4px 0 6px}
.title .soft-note{opacity:.8}
/* Handy hochkant: alles mittig, die Knöpfe unten */
@media (max-width:680px) and (orientation:portrait),(max-aspect-ratio:2/3){
  .title-bg{background-image:url('assets/brand/hero-mobile-1080x1920.webp');background-position:center}
  .title::before{background:linear-gradient(180deg,rgba(6,28,40,.7) 0%,rgba(6,28,40,.5) 31%,rgba(6,28,40,.16) 55%,rgba(6,28,40,.86) 100%)}
  .masthead{padding:calc(12px + env(safe-area-inset-top)) 18px 0}.masthead-brand .soft{display:none}
  .hero{padding:4vh 22px 10px;align-items:stretch;max-width:600px}
  .hero-content{display:flex;flex-direction:column;align-items:center;text-align:center;flex:1}
  .title .eyebrow{justify-content:center;font-size:13px}.title .eyebrow::before{display:none}
  .brand-name{font-size:clamp(34px,11.6vw,62px)}
  .brand-category{justify-content:center;font-size:18px;letter-spacing:.24em}.brand-category::after{display:none}
  .brand-subline{font-size:clamp(15px,4vw,18px)}
  .title-note{margin:14px auto 6px;text-align:left;transform:none}.title-note .title-mood{font-size:22px}
  .hero-actions{width:100%;max-width:420px;margin-top:auto;padding-top:24px}
  .game-button{font-size:18px}
  .title-icons{justify-content:center;margin-left:auto;margin-right:auto}
  .title-foot{justify-content:center;text-align:center;padding:4px 18px calc(10px + env(safe-area-inset-bottom))}.foot-right{justify-content:center}
}
@media (min-width:681px) and (max-width:1300px){.title-bg{background-image:url('assets/brand/hero-tablet-1280.webp')}}
/* breite Schirme: die kleinen Knöpfe gehen nach oben neben den Ton, so bleibt Jens im Bild frei */
@media (min-width:681px) and (orientation:landscape){
  .title-icons{position:absolute;top:max(20px,env(safe-area-inset-top));right:calc(max(28px,env(safe-area-inset-right)) + 60px);margin:0;max-width:none;flex-wrap:nowrap}
  .title-icons button{min-height:48px}
}
/* niedrige Schirme, Handy quer */
@media (max-height:590px) and (min-width:681px){
  .title .eyebrow{display:none}.brand-name{font-size:clamp(40px,9vh,70px)}.brand-subline{margin-top:4px}
  .title-note{margin:8px 0 8px 3px;padding:5px 10px}.title-note .title-mood{font-size:19px}.note-label{font-size:11px}
  .hero{padding-top:8px;padding-bottom:8px}.hero-actions{gap:6px}.game-button{min-height:44px;padding:6px 14px;font-size:17px}
}
@media (max-height:500px) and (orientation:landscape){
  .title-note{display:none}.masthead-brand{visibility:hidden}.sa-icon-btn,.title-icons button{width:auto;min-height:40px;height:40px}
  .hero-actions{flex-direction:row;max-width:560px;margin-top:10px}
}

/* Seiten */
.page{background:linear-gradient(180deg,#0d3b52,#061c26 60%);overflow-y:auto;-webkit-overflow-scrolling:touch}
.page-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:10px;padding:12px 16px;background:rgba(6,28,38,.92);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.page-head h2{font-size:22px;margin:0}.spacer{flex:1}
.page-body{max-width:900px;margin:0 auto;padding:16px 16px 60px}
.progress{display:flex;flex-direction:column;gap:6px;font-family:var(--num);font-size:13px;color:var(--muted)}
.bar{height:6px;border-radius:3px;background:rgba(255,255,255,.1);overflow:hidden}.bar i{display:block;height:100%;background:var(--amber);transition:width .4s}
.lesson-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px}
.lesson{display:flex;align-items:center;gap:12px;text-align:left;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:14px;transition:border-color .15s,transform .1s}
.lesson:hover{border-color:rgba(244,163,64,.6)}.lesson:active{transform:scale(.98)}
.lesson.done{border-color:rgba(124,196,154,.45)}
.l-icon{font-size:26px;width:36px;text-align:center}.l-text{flex:1;display:flex;flex-direction:column}.l-text small{color:var(--muted);font-size:12.5px}
.l-state{font-family:var(--num);color:var(--amber);font-size:14px}.lesson.done .l-state{color:var(--good)}
.species{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:8px}
.sp{background:rgba(255,255,255,.05);border:1px solid var(--line);border-radius:10px;padding:10px;opacity:.55;display:flex;flex-direction:column}.sp.seen{opacity:1;border-color:rgba(124,196,154,.5)}.sp small{color:var(--muted);font-size:12px}
.log-entry{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin-bottom:8px}
.log-entry header{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}.log-entry header small{color:var(--muted)}
.log-entry p{margin:6px 0 0;display:flex;gap:14px;flex-wrap:wrap;font-family:var(--num);font-size:13px}

/* Modal */
.modal{position:fixed;inset:0;z-index:50;background:rgba(3,14,19,.62);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;padding:16px}
.modal-card{background:linear-gradient(180deg,#113a4c,#0a2b39);border:1px solid var(--line);border-radius:18px;padding:22px;max-width:560px;width:100%;max-height:calc(100% - 16px);overflow-y:auto;box-shadow:0 30px 80px rgba(0,0,0,.5);-webkit-overflow-scrolling:touch}
.modal-card.wide{max-width:900px}
/* in the water: the windows (exercises, signals, pause) let the lake show through */
body.diving .modal{background:rgba(3,14,19,.22);backdrop-filter:none}
body.diving .modal-card{background:linear-gradient(180deg,rgba(17,58,76,.8),rgba(10,43,57,.8));backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.modal-card dl,.facts{display:grid;grid-template-columns:max-content 1fr;gap:4px 14px;margin:10px 0}
dt{font-family:var(--cond);font-weight:700;letter-spacing:.06em;color:#ffcb81}dd{margin:0;color:#dfe9e6}
/* Wissen: the lakes folded, one line each */
.lake-fold{border:1px solid var(--line);border-radius:12px;margin:8px 0;padding:0 14px;background:rgba(0,0,0,.15)}
.lake-fold>summary{cursor:pointer;list-style:none;padding:12px 24px 12px 0;display:flex;flex-direction:column;gap:2px}.lake-fold>summary::-webkit-details-marker{display:none}
.lake-fold>summary b{font-family:var(--display);font-size:19px;font-weight:700}.lake-fold>summary small{color:var(--muted);font-size:13px}
.lake-fold>summary::after{content:'›';position:absolute;right:16px;top:16px;color:var(--amber);font-size:20px;transition:transform .2s}.lake-fold{position:relative}.lake-fold[open]>summary::after{transform:rotate(90deg)}
.lake-fold[open]{padding-bottom:6px}
.site-card{border-top:1px solid var(--line);padding-top:12px;margin-top:14px}.site-card h3{margin-top:0;text-transform:none;letter-spacing:0;font-family:var(--display);font-size:22px;color:var(--cream)}
.keys p{color:#d0dfdb;font-size:14px;line-height:2}
.gear-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(128px,1fr));gap:8px;margin:8px 0}
.gear-tile{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;font-size:12.5px;line-height:1.25;background:rgba(255,255,255,.05);border:1px solid var(--line);border-radius:12px;padding:10px 6px;min-height:84px;position:relative}
.gear-tile .g-ic{font-size:26px}
.gear-tile.seen::after{content:'✓';position:absolute;top:4px;right:7px;color:var(--good);font-size:12px}
.gear-tile.sel{border-color:var(--amber)}
.gear-tile.on{background:rgba(244,163,64,.16);border-color:rgba(244,163,64,.8)}
.gear-tile.v-richtig{background:rgba(124,196,154,.2);border-color:var(--good)}
.gear-tile.v-falsch{background:rgba(224,128,111,.25);border-color:var(--red)}
.gear-tile.v-unnoetig{background:rgba(200,200,200,.12);border-color:#aaa}
.gear-tile.v-missing{border:2px dashed var(--red)}
.gear-detail{background:rgba(0,0,0,.18);border-radius:12px;padding:12px 14px;min-height:90px}
.gear-detail h4{margin:0 0 6px;font-size:16px}.gear-detail h4 small{font-family:var(--cond);color:var(--muted);letter-spacing:.1em;text-transform:uppercase;margin-left:6px}
.tags{display:flex;gap:8px;flex-wrap:wrap}.tag{font-size:12px;border-radius:20px;padding:3px 10px;border:1px solid var(--line)}
.st-must{background:rgba(244,163,64,.2);border-color:var(--amber)}.st-good{background:rgba(124,196,154,.18);border-color:var(--good)}.st-opt{background:rgba(255,255,255,.06)}.st-no{opacity:.7}.st-bad{background:rgba(224,128,111,.22);border-color:var(--red)}
.meter{font-family:var(--num);font-size:13px;color:var(--muted)}
.lead-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:10px 0;background:rgba(0,0,0,.18);border-radius:12px;padding:10px 12px}
.lead-row b{font-family:var(--num);font-size:18px;min-width:56px;text-align:center}.lead-row small{flex-basis:100%}
.result{border-radius:12px;padding:12px 14px;background:rgba(224,128,111,.14);border:1px solid rgba(224,128,111,.5);margin-top:10px}
.result.good{background:rgba(124,196,154,.15);border-color:rgba(124,196,154,.6)}
.result ul{margin:8px 0 0;padding-left:18px}.result li{margin:4px 0}.result li.no{opacity:.8}
.choice{display:flex;flex-direction:column;gap:8px;margin:8px 0}
.choice-btn{justify-content:flex-start;text-align:left}
.choice-btn.right{background:rgba(124,196,154,.25);border-color:var(--good)}.choice-btn.wrong{background:rgba(224,128,111,.25);border-color:var(--red)}
.why{background:rgba(0,0,0,.2);border-left:3px solid var(--good);padding:8px 12px;border-radius:6px}.why.bad{border-left-color:var(--red)}
.hold-btn{width:100%;padding:16px;font-size:16px;touch-action:none}.hold-btn.held{background:var(--amber);color:var(--deep)}
.hold-bar{position:relative;height:10px;border-radius:5px;background:rgba(255,255,255,.1);margin:10px 0;overflow:hidden}
.hold-bar i{position:relative;display:block;height:100%;background:var(--amber)}.hold-bar i.in{background:var(--good)}.hold-bar span{position:absolute;top:0;bottom:0;width:2px;background:var(--good)}
.hold-bar .zone{position:absolute;top:0;bottom:0;background:rgba(80,200,140,.28)}
.sk-art.hide-cap figcaption{visibility:hidden}
.sig-show{display:flex;gap:16px;align-items:center;background:rgba(0,0,0,.2);border-radius:12px;padding:12px}.sig-big{font-size:56px}
.sig-table{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px}.sig-table div{display:grid;grid-template-columns:40px 1fr;column-gap:8px;background:rgba(255,255,255,.04);border-radius:10px;padding:8px}.sig-table .sig-ic{grid-row:span 2;font-size:28px}.sig-table small{color:var(--muted)}
.sig-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px}
.sig-btn{display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 8px;border-radius:12px;background:rgba(255,255,255,.06);border:1px solid var(--line);font-size:13px}.sig-btn:hover{border-color:var(--amber)}.sig-btn .sig-ic{font-size:32px}
.check-cards{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}
.check-card{padding:16px 18px;border-radius:12px;background:rgba(244,163,64,.12);border:1px solid rgba(244,163,64,.6);font-size:16px}
.modal-card.top{align-self:flex-start;margin-top:min(8vh,60px)}
.check-card{position:relative}.check-card.used::after{content:'✓';position:absolute;top:2px;right:6px;font-size:13px}
.check-card.used{opacity:.4;cursor:default;background:rgba(124,196,154,.12);border-color:rgba(124,196,154,.5)}
.check-done{padding-left:22px}.check-done li{margin:6px 0;color:#dbe8e3}.check-done b{color:var(--good)}
.shake{animation:shake .35s}@keyframes shake{25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}
.debrief .big-result .stars i.on{display:inline-block;animation:starLand .5s cubic-bezier(.2,1.6,.4,1) both}
@keyframes starLand{from{transform:scale(2.6) rotate(-40deg);opacity:0}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.debrief .big-result .stars i.on{animation:none}}
.bag-note{display:flex;gap:8px;align-items:flex-start;font-size:14px;color:var(--muted);margin:-4px 0 12px}.bag-note .i{width:18px;height:18px;flex:none;margin-top:2px}
.big-result{font-family:var(--display);font-size:26px;font-weight:800;color:#ffcb81;margin:0 0 10px}.big-result.bad{color:#ff9a8a}
.main-fault{background:rgba(255,93,77,.12);border-left:3px solid #ff5d4d;border-radius:8px;padding:8px 12px;margin:0 0 12px}
/* stars: filled amber, empty a faint outline, clearly different */
.stars{display:inline-flex;gap:2px;white-space:nowrap;vertical-align:baseline}.stars i{font-style:normal}.stars i.on{color:#ffc24a;text-shadow:0 0 6px rgba(255,194,74,.45)}.stars i.off{color:transparent;-webkit-text-stroke:1px rgba(248,244,232,.45)}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:10px 0}.stats div{background:rgba(0,0,0,.2);border-radius:10px;padding:10px;text-align:center}.stats b{font-family:var(--num);font-size:18px;display:block}.stats small{color:var(--muted);font-size:11px}
@media (max-width:520px){.stats{grid-template-columns:repeat(2,1fr)}}
.vio{padding-left:18px}.vio li{margin:6px 0}.good-note{color:var(--good)}

/* Laden */
.loading{position:fixed;inset:0;z-index:40;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;background:radial-gradient(circle at 50% 30%,#14495c,#061c26)}
.spinner{width:46px;height:46px;border-radius:50%;border:3px solid rgba(255,255,255,.15);border-top-color:var(--amber);animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}

/* HUD */
.hud{pointer-events:none;z-index:10}
.hud button,.hud .touch-area{pointer-events:auto}
.mask{position:fixed;inset:0;pointer-events:none;background:radial-gradient(ellipse 72% 80% at 50% 48%,transparent 62%,rgba(0,0,0,.55) 82%,rgba(0,0,0,.92) 100%);opacity:0;transition:opacity .5s}
body.underwater .mask{opacity:1}
body.chase.underwater .mask{opacity:.35}
.ear-pain{position:fixed;inset:0;pointer-events:none;box-shadow:inset 0 0 120px 30px rgba(220,40,30,.0);transition:box-shadow .3s}
.ear-pain.on{box-shadow:inset 0 0 80px 16px rgba(220,40,30,.4);animation:pulse 1s infinite}@keyframes pulse{50%{box-shadow:inset 0 0 50px 8px rgba(220,40,30,.25)}}
.touch-area{position:fixed;inset:0;display:none;touch-action:none}
body.touch .touch-area{display:block}
.stick{position:fixed;width:120px;height:120px;margin:-60px 0 0 -60px;border-radius:50%;border:2px solid rgba(255,255,255,.35);background:rgba(255,255,255,.06);display:none;pointer-events:none}
.stick.on{display:block}.stick i{position:absolute;left:35px;top:35px;width:50px;height:50px;border-radius:50%;background:rgba(244,163,64,.6)}
.compass{position:fixed;top:max(10px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:2px}
.compass-win{position:relative;width:320px;max-width:70vw;height:34px;overflow:hidden;border-radius:10px;background:rgb(9,42,57);border:1px solid var(--line)}
.compass-win::before,.compass-win::after{content:'';position:absolute;top:0;bottom:0;width:22%;z-index:1;pointer-events:none}.compass-win::before{left:0;background:linear-gradient(90deg,rgb(9,42,57),rgba(9,42,57,0))}.compass-win::after{right:0;background:linear-gradient(270deg,rgb(9,42,57),rgba(9,42,57,0))}
.compass-strip{position:absolute;left:50%;top:0;height:100%;will-change:transform}
.tick{position:absolute;top:8px;transform:translateX(-50%);font-family:var(--num);font-size:11px;color:var(--muted)}
.tick.major{color:var(--cream);font-weight:600;font-size:13px;top:6px}
.lubber{position:absolute;z-index:2;left:50%;top:0;bottom:0;width:2px;background:var(--red);transform:translateX(-1px)}
.ctarget{position:absolute;z-index:2;left:50%;top:-3px;margin-left:-7px;color:#ffd04a;font-size:14px;text-shadow:0 0 6px #000}
.heading{font-family:var(--num);font-weight:600;font-size:13px;text-shadow:0 1px 4px #000}
.target-info{font-family:var(--num);font-size:12px;color:#ffd04a;text-shadow:0 1px 4px #000}
.top-right{position:fixed;top:max(10px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));display:flex;gap:6px}
.icon-btn{width:38px;height:38px;border-radius:10px;background:var(--panel);border:1px solid var(--line);font-weight:700}
.task{position:fixed;top:max(10px,env(safe-area-inset-top));left:max(12px,env(safe-area-inset-left));width:min(330px,calc(50vw - 180px));min-width:220px;background:var(--panel);border:1px solid var(--line);border-left:3px solid var(--amber);border-radius:12px;padding:10px 12px;backdrop-filter:blur(8px)}
.task small{display:block;font-family:var(--cond);letter-spacing:.14em;text-transform:uppercase;color:#ffcb81;font-size:12px}
.task p{margin:4px 0;font-size:14px;line-height:1.4}
.task .hint{font-family:var(--sans);letter-spacing:0;text-transform:none;color:var(--muted);font-size:12px}
.task .extra{font-family:var(--num);letter-spacing:0;text-transform:none;color:#ffd04a;font-size:12px}
.task .status{font-family:var(--sans);letter-spacing:0;text-transform:none;color:#bff5e4;font-size:13px;font-weight:600;margin-top:4px}.task .status:empty{display:none}
.descent{list-style:none;margin:8px 0 0;padding:8px 0 0;border-top:1px solid var(--line);font-size:13px;line-height:1.35}
.descent li{display:flex;gap:8px;align-items:flex-start;margin:4px 0;transition:opacity .4s}
.descent li i{flex:none;width:20px;height:20px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-family:var(--num);font-size:11px;font-weight:600;background:rgba(255,203,129,.18);color:#ffcb81;border:1px solid rgba(255,203,129,.55)}
.descent li.done{opacity:.55}.descent li.done i{background:#2fbf8f;border-color:#2fbf8f;color:#062a22}
.descent li.d-head{display:block;font-family:var(--cond);letter-spacing:.14em;text-transform:uppercase;color:#ffcb81;font-size:12px;margin:0 0 2px}
.rate-warn.pre{background:rgba(110,80,10,.85);border-color:#ffcb4a;animation:none}
.rate-warn{position:fixed;bottom:calc(max(12px,env(safe-area-inset-bottom)) + 64px);left:50%;transform:translateX(-50%);background:rgba(120,20,15,.88);border:2px solid #ff5d4d;border-radius:14px;padding:8px 16px;text-align:center;max-width:calc(100% - 32px);pointer-events:none;animation:blink 1s infinite}
.rate-warn b{display:block;font-family:var(--num);font-size:20px;color:#fff}.rate-warn small{font-size:12px;color:#ffd9d2}.rate-warn.danger{background:rgba(160,15,10,.94)}
@keyframes blink{50%{opacity:.75}}
.prog{height:6px;border-radius:3px;background:rgba(255,255,255,.12);overflow:hidden;margin-top:6px}.prog i{display:block;height:100%;width:0;background:var(--good);transition:width .2s}
.coach{position:fixed;top:92px;left:50%;transform:translateX(-50%);max-width:min(520px,calc(100% - 32px));background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:8px 14px;font-size:14px;text-align:center;transition:opacity .5s;backdrop-filter:blur(8px)}
.coach.warn{border-color:var(--red);background:rgba(90,25,20,.8)}.coach.quiet,.flash.quiet,.sighting.quiet{opacity:0}
@media (min-width:761px) and (min-height:501px){body.has-loot .coach{top:138px}} /* below the purse and the clock of a quest */
.flash{position:fixed;top:44%;left:50%;transform:translate(-50%,-50%);font-weight:700;font-size:16px;text-shadow:0 2px 8px #000;transition:opacity .4s;text-align:center;max-width:80vw}
.sighting{position:fixed;right:max(12px,env(safe-area-inset-right));top:60px;width:min(300px,40vw);background:var(--panel);border:1px solid rgba(124,196,154,.6);border-radius:12px;padding:10px 12px;transition:opacity .6s;backdrop-filter:blur(8px)}
.sighting small{display:block;font-family:var(--cond);letter-spacing:.14em;text-transform:uppercase;color:var(--good);font-size:12px}.sighting b{display:block;font-family:var(--display);font-size:20px}.sighting span{font-size:12.5px;color:#d5e3df}
/* the dive computer: a wrist unit, black case with four buttons, a grey-green LCD with dark digits */
.computer{position:fixed;left:max(12px,env(safe-area-inset-left));bottom:max(12px,env(safe-area-inset-bottom));width:190px;padding:7px;border-radius:24px;background:linear-gradient(160deg,#3a4043,#15191b 45%,#0a0c0d);border:1px solid #555d60;box-shadow:0 6px 24px rgba(0,0,0,.55),inset 0 1px 0 rgba(255,255,255,.18)}
.computer::before,.computer::after{content:"";position:absolute;top:22%;bottom:22%;width:4px;border-radius:2px;background:linear-gradient(180deg,#8a9396 0 22%,transparent 22% 78%,#8a9396 78%)}
.computer::before{left:-4px}.computer::after{right:-4px}
.c-screen{position:relative;border-radius:17px;padding:6px 24px 5px 10px;background:linear-gradient(170deg,#cfd8c0,#b4bfa3);color:#18221c;box-shadow:inset 0 2px 6px rgba(0,0,0,.45),inset 0 0 0 1px rgba(0,0,0,.35)}
.c-f{display:flex;flex-direction:column;line-height:1}.c-f small{font-family:var(--cond);font-size:10px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#4a5a4c}
.c-f b{font-family:var(--num);font-weight:700;font-size:15px;color:#18221c;display:inline-block;transform:skewX(-6deg);letter-spacing:-.02em}
.c-top{display:flex;justify-content:space-between;align-items:flex-end;border-bottom:1px solid rgba(24,34,28,.35);padding-bottom:3px}
.c-depth b{font-size:36px}.c-time{align-items:flex-end}.c-time b{font-size:22px}
.c-bot{display:flex;justify-content:space-between;gap:6px;padding-top:3px}.c-bot .c-f:last-child{align-items:flex-end}
.c-row{display:flex;justify-content:space-between;font-size:12px;gap:6px}
.c-row.alert{font-family:var(--num);color:#18221c;min-height:0;font-weight:700;flex-direction:column;gap:0;margin-top:2px}.c-row.alert span{white-space:nowrap}.c-row.alert span:empty{display:none}.c-row .warn{color:#a3180c}
.rate{position:absolute;right:7px;top:8px;bottom:8px;width:10px;border-radius:2px;background:rgba(24,34,28,.12);overflow:hidden;-webkit-mask:repeating-linear-gradient(0deg,#000 0 5px,transparent 5px 7px);mask:repeating-linear-gradient(0deg,#000 0 5px,transparent 5px 7px)}
.rate i{position:absolute;left:0;right:0;bottom:0;background:#18221c;height:0}.rate i.warn{background:#c96a00}.rate i.danger{background:#c01a0c}
.rate .limit{position:absolute;left:0;right:0;bottom:55.5%;height:2px;background:#c01a0c}
.side-meters{position:fixed;left:calc(max(12px,env(safe-area-inset-left)) + 200px);bottom:max(12px,env(safe-area-inset-bottom));display:flex;align-items:flex-end;gap:10px}
.meter-col{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:11px;text-shadow:0 1px 3px #000}
.meter-col .net{font-family:var(--num);color:#ffd04a;min-height:14px}
.vbar{width:16px;height:92px;border-radius:8px;background:rgba(0,0,0,.4);border:1px solid var(--line);position:relative;overflow:hidden}
.vbar i{position:absolute;left:0;right:0;bottom:0;background:var(--amber);height:0;transition:height .2s}
.vbar.warm i{background:linear-gradient(0deg,#4aa3ff,#ff9f5a)}.vbar.warm i.cold{background:#4aa3ff}
.ear-icon{font-size:24px;width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--panel);border:2px solid var(--line)}
.ear-icon.e1{border-color:#ffd04a;background:rgba(255,208,74,.25)}.ear-icon.e2,.ear-icon.e3{border-color:#ff5d4d;background:rgba(255,93,77,.35);animation:pulse2 .8s infinite}
@keyframes pulse2{50%{transform:scale(1.1)}}
.finimeter{position:fixed;right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));width:120px;height:120px;font-family:var(--num);text-align:center}
.finimeter svg{position:absolute;inset:0}
.f-face{fill:#f1ece0;stroke:#2f3e42;stroke-width:4}.f-red{fill:none;stroke:#d9483a;stroke-width:7}.f-needle{stroke:#1b1b1b;stroke-width:3;stroke-linecap:round}.f-hub{fill:#1b1b1b}
.f-ticks line{stroke:#333;stroke-width:1.5}.f-ticks text{font-size:8px;fill:#333;text-anchor:middle;font-family:var(--num)}
.finimeter b{position:absolute;left:0;right:0;bottom:24px;color:#1b1b1b;font-size:16px}.finimeter small{position:absolute;left:0;right:0;bottom:12px;color:#555;font-size:9px}
.finimeter.low .f-face{fill:#ffd9d2}
.end-dive{position:fixed;bottom:150px;left:50%;transform:translateX(-50%)}
.tbtns{position:fixed;right:max(12px,env(safe-area-inset-right));bottom:150px;display:none;grid-template-columns:repeat(2,64px);gap:8px}
body.touch .tbtns{display:grid}
.tb{width:64px;height:60px;border-radius:14px;background:var(--panel);border:1px solid var(--line);font-size:11px;line-height:1.2;touch-action:none;user-select:none;-webkit-user-select:none}
.tb b{font-size:20px}.tb.small{height:42px;font-size:18px}.tb.held,.tb.on{background:rgba(244,163,64,.4);border-color:var(--amber)}
@media (max-width:760px){
  .task{width:calc(100vw - 24px);top:auto;bottom:auto;top:calc(max(10px,env(safe-area-inset-top)) + 64px);min-width:0}
  .compass-win{width:220px}.coach{top:auto;bottom:160px}
  .computer{width:150px;padding:6px}.c-screen{padding:5px 20px 4px 8px}.c-f b{font-size:13px}.c-depth b{font-size:28px}.c-time b{font-size:18px}
  .side-meters{left:calc(max(12px,env(safe-area-inset-left)) + 158px)}.vbar{height:70px}
  .finimeter{width:92px;height:92px}.finimeter b{font-size:13px;bottom:18px}.finimeter small{bottom:8px}
  .tbtns{bottom:120px;grid-template-columns:repeat(2,56px)}.tb{width:56px;height:52px}
  .sighting{top:auto;bottom:210px;right:12px;width:min(260px,60vw)}
  .modal-card{padding:16px}
}
/* the description of the chosen piece stays in view under the grid */
.gear-detail{position:sticky;bottom:-22px;box-shadow:0 -10px 24px rgba(4,20,27,.6);background:#0d2f3d;border:1px solid var(--line)}
/* phones held sideways: low screens */
@media (max-height:500px){
  .compass-win{height:28px}.tick{top:5px}.tick.major{top:4px}
  .task{width:min(290px,38vw);min-width:0;top:max(8px,env(safe-area-inset-top));padding:8px 10px}.task p{font-size:12.5px}
  .coach{top:auto;bottom:12px;max-width:min(380px,40vw);font-size:12.5px}
  .computer{width:148px;padding:5px;border-radius:20px}.c-screen{padding:4px 20px 3px 8px;border-radius:15px}.c-f b{font-size:12px}.c-depth b{font-size:26px}.c-time b{font-size:17px}.c-f small{font-size:9px}.c-row{font-size:11px}
  .side-meters{left:calc(max(12px,env(safe-area-inset-left)) + 156px)}.vbar{height:58px}.ear-icon{width:34px;height:34px;font-size:20px}
  .finimeter{width:90px;height:90px}.finimeter b{font-size:13px;bottom:17px}.finimeter small{bottom:7px}
  .tbtns{bottom:max(10px,env(safe-area-inset-bottom));right:calc(max(12px,env(safe-area-inset-right)) + 98px);grid-template-columns:repeat(4,54px);gap:6px}
  .tb,.tb.small{width:54px;height:46px;font-size:10px}.tb b{font-size:16px}
  .sighting{top:56px;width:min(260px,34vw)}.sighting span{display:none}
  .end-dive{bottom:120px}
}
@media (max-width:420px){.page-head .btn.small{padding:5px 8px;font-size:12px}.page-head h2{font-size:19px}}

/* the lamp: battery, warning when it is dark and the lamp is off, failed */
.lamp-info{font-family:var(--num);font-size:12px;background:var(--panel);border:2px solid var(--line);border-radius:10px;padding:4px 8px;display:flex;flex-direction:column;align-items:center;line-height:1.2;text-shadow:none}
.lamp-info.on{border-color:#ffe08a;box-shadow:0 0 12px rgba(255,224,138,.35)}
.lamp-info.warn{border-color:#ffb84a;animation:pulse2 1s infinite}
.lamp-info.failed{border-color:#ff5d4d;color:#ffb0a6}
.lamp-info small{font-size:10px;color:#ffe08a}

/* Tauchen im Vordergrund: der nächste Tauchgang oben im Kursbuch */
.next-dive{display:flex;align-items:center;gap:14px;width:100%;text-align:left;margin:16px 0 4px;padding:16px 18px;border-radius:16px;background:linear-gradient(120deg,rgba(43,106,121,.85),rgba(13,59,82,.9));border:1px solid rgba(244,163,64,.75);box-shadow:0 10px 30px rgba(0,0,0,.3)}
.next-dive:hover{border-color:var(--amber)}.next-dive:active{transform:scale(.99)}
.next-dive .nd-ic{font-size:38px}.next-dive b{font-family:var(--display);font-size:22px;font-weight:800}
.next-dive small:first-child{font-family:var(--cond);letter-spacing:.16em;text-transform:uppercase;color:#ffcb81;font-size:13px}
.nd-go{font-weight:700;color:var(--amber);white-space:nowrap}
@media (max-width:520px){.nd-go{display:none}}

/* So wird getaucht: die Steuerung erklärt */
.how-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:10px;margin:8px 0}
.how-card{background:rgba(0,0,0,.2);border:1px solid var(--line);border-radius:12px;padding:12px 14px}
.how-card h4{margin:0 0 6px;font-size:16px;display:flex;gap:8px;align-items:center}
.how-card p{margin:0 0 8px;font-size:13.5px;color:#d5e3df;line-height:1.45}
.how-card dl{grid-template-columns:auto 1fr;gap:6px 10px;margin:0;font-size:13px;align-items:baseline}
.how-card dt{max-width:8.5em}
/* the briefing: the story of the dive folded under the goal */
.brief-more{margin:0 0 12px}.brief-more summary{cursor:pointer;color:var(--muted);font-size:14px;padding:2px 0}.brief-more p{margin:6px 0 0;font-size:14px;color:#d5e3df;line-height:1.45}
.quick-keys{display:flex;flex-wrap:wrap;gap:8px 16px;background:rgba(0,0,0,.2);border-radius:12px;padding:10px 12px;font-size:13.5px}
.key-legend{position:fixed;left:50%;transform:translateX(-50%);bottom:max(12px,env(safe-area-inset-bottom));display:flex;flex-wrap:wrap;justify-content:center;gap:4px 12px;max-width:calc(100vw - 600px);font-size:12px;color:#dfe9e6;text-shadow:0 1px 3px #000;background:rgba(6,28,38,.55);border-radius:10px;padding:6px 10px}
.key-legend kbd{font-size:11px}
body.touch .key-legend{display:none}
@media (max-width:1279px),(max-height:500px){.key-legend{display:none}}
.tb{font-size:10px}.tb b{display:block;font-size:18px;line-height:1.1}

/* Touren: Packen › Buddy-Check › Tauchen */
.tour-list{display:flex;flex-direction:column;gap:10px}
.tour{display:flex;align-items:center;gap:12px;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:14px;cursor:pointer;transition:border-color .15s}
.tour:hover{border-color:rgba(244,163,64,.6)}.tour.done{border-color:rgba(124,196,154,.45)}.tour.next{border-color:rgba(244,163,64,.8)}
.tour .l-state{font-family:var(--num);color:var(--amber)}.tour.done .l-state{color:var(--good)}
.chips{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;margin-top:8px}
.chips i{font-style:normal;color:var(--muted)}
.chip{font-size:12px;border:1px solid var(--line);border-radius:20px;padding:2px 9px;background:rgba(255,255,255,.05);white-space:nowrap}
.tour .chip:hover{border-color:var(--amber)}
.chip.done{border-color:rgba(124,196,154,.6);background:rgba(124,196,154,.14)}
.next-dive .chips small{display:none}

/* Steuerung wie bei Pilzwelt: festes Steuerkreuz unten links, zwei Ventilknöpfe und hoch/runter rechts */
.stick{display:none}
body.touch .stick{display:block;position:fixed;left:max(18px,env(safe-area-inset-left));bottom:max(18px,env(safe-area-inset-bottom));top:auto;margin:0;width:128px;height:128px;border-radius:50%;border:2px solid rgba(255,255,255,.3);background:rgba(6,28,38,.35);pointer-events:auto;touch-action:none;z-index:2}
body.touch .stick::before,body.touch .stick::after{content:'';position:absolute;left:50%;top:50%;background:rgba(255,255,255,.18);transform:translate(-50%,-50%)}
body.touch .stick::before{width:70%;height:2px}body.touch .stick::after{width:2px;height:70%}
body.touch .stick i{position:absolute;left:39px;top:39px;width:50px;height:50px;border-radius:50%;background:rgba(244,163,64,.65);box-shadow:0 2px 10px rgba(0,0,0,.35)}
body.touch .computer{left:calc(max(18px,env(safe-area-inset-left)) + 140px)}
body.touch .side-meters{left:calc(max(18px,env(safe-area-inset-left)) + 140px + 200px)}
.tb.valve{background:rgba(43,106,121,.75);border-color:rgba(255,255,255,.35)}
.tb.valve b,.tb.fin b{font-size:22px}
.tb.valve.in{border-color:rgba(124,196,154,.8)}.tb.valve.out{border-color:rgba(244,163,64,.8)}
.opts{display:flex;flex-direction:column;gap:8px;background:rgba(0,0,0,.18);border-radius:12px;padding:10px 12px;margin:10px 0}
.opt-row{display:grid;grid-template-columns:140px 1fr auto;gap:4px 10px;align-items:center;font-size:14px}
.opt-row input[type=range]{width:100%;accent-color:var(--amber)}.opt-row input[type=checkbox]{width:20px;height:20px;accent-color:var(--amber);justify-self:start}
.opt-row small{grid-column:1/-1;color:var(--muted);font-size:12px}.opt-row.off{opacity:.45}
/* a phone: the choice under its name, so „Wie im See“ is not cut off */
@media (max-width:520px){.opt-row{grid-template-columns:1fr auto}.opt-row .seg{grid-column:1/-1}}
.seg{grid-column:2/-1;display:flex;border:1px solid var(--line);border-radius:10px;overflow:hidden}.seg button{flex:1;padding:6px 8px;background:transparent;border:0;border-left:1px solid var(--line);font-size:13px;white-space:nowrap}.seg button:first-child{border-left:0}.seg button.on{background:rgba(244,163,64,.35);color:#fff;font-weight:600}
.icon-btn.sicht-btn{width:auto;padding:0 8px;gap:5px}.sicht-btn small{font-size:11px;font-weight:600;white-space:nowrap}
@media (max-width:760px){body.touch .computer{left:calc(max(18px,env(safe-area-inset-left)) + 140px)}body.touch .side-meters{left:calc(max(18px,env(safe-area-inset-left)) + 140px + 158px)}}
@media (max-height:500px){body.touch .stick{width:112px;height:112px}body.touch .stick i{left:31px;top:31px}body.touch .computer{left:calc(max(14px,env(safe-area-inset-left)) + 122px)}body.touch .side-meters{left:calc(max(14px,env(safe-area-inset-left)) + 122px + 156px)}}
/* low phone screens held sideways: the buttons in two rows, the meters over the dive computer */
@media (max-height:500px){
  body.touch .tbtns{grid-template-columns:repeat(5,54px)}
  body.touch .side-meters{left:calc(max(14px,env(safe-area-inset-left)) + 122px);bottom:calc(max(10px,env(safe-area-inset-bottom)) + 96px)}
}

/* Startbildschirm: großer Knopf, darunter Tauchtouren (mit den Grundlagen), Frei tauchen, Quests & Schätze */
.game-button .gb-ic{width:21px;flex:none;font-size:19px;text-align:center}
.tour-panel .tour{padding:12px}
.tour-panel .tour-list{margin-top:6px}
.basics-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:8px;margin-top:10px}
/* three choices under the start button: compact, one line each; on a low screen the hero scrolls instead of cutting off */
.hero{min-height:0;overflow-y:auto;scrollbar-width:none}
.hero-actions .game-button--secondary{min-height:46px;padding-top:7px;padding-bottom:7px;font-size:18px}
.hero-actions .game-button--secondary small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:290px}
@media (min-width:681px) and (max-height:820px){.title .brand-subline{display:none}.title .brand-name{margin-bottom:4px}}

/* Icons: weiße Linien-Icons (icons.js), Größe je nach Ort */
svg.i{width:20px;height:20px;vertical-align:-4px;flex:none}
.game-button svg.gb-ic{width:22px;height:22px}
.tb svg.i{display:block;width:24px;height:24px;margin:2px auto 3px}
.tb.valve svg.i,.tb.fin svg.i{width:26px;height:26px}
.icon-btn{display:inline-flex;align-items:center;justify-content:center}.icon-btn svg.i{width:20px;height:20px}
.ear-icon svg.i{width:24px;height:24px}
.lamp-info svg.i{width:16px;height:16px;vertical-align:-3px}
.l-icon svg.i,.nd-ic svg.i{width:28px;height:28px}
.next-dive .nd-ic svg.i{width:38px;height:38px}
.chip svg.i{width:14px;height:14px;vertical-align:-2px}.chip svg.i.ok{color:var(--good)}
.gear-tile .g-ic svg.i{width:30px;height:30px}
.gear-detail h4 svg.i{width:20px;height:20px}
.sig-ic svg.i{width:32px;height:32px}.sig-big svg.i{width:60px;height:60px}
.sig-table .sig-ic svg.i{width:28px;height:28px}
.how-card h4 svg.i{width:22px;height:22px;color:#ffcb81}
.quick-keys svg.i{width:16px;height:16px;vertical-align:-3px}
.title-week svg.i{width:16px;height:16px;vertical-align:-3px;margin-right:2px}
h2 svg.h-ic{width:28px;height:28px;vertical-align:-4px}
.lesson .l-state svg.i,.good-note svg.i,.result svg.i{width:18px;height:18px;vertical-align:-3px}
@media (max-height:500px){
  body.touch .tbtns{grid-template-columns:repeat(6,52px);gap:5px}
  body.touch .tb,body.touch .tb.small{width:52px}
  body.touch .side-meters{flex-wrap:wrap;max-width:190px;row-gap:6px}
}
@media (max-height:500px){
  body.touch .tb{white-space:nowrap;font-size:9.5px;letter-spacing:-.01em}
  body.touch .side-meters .vbar{height:40px}
  body.touch .side-meters .lamp-info{padding:2px 6px}
}
/* hand signals: illustrations (signalArt.js) */
svg.sig-art{display:block;width:72px;height:72px}
.sig-big svg.sig-art{width:140px;height:140px;background:#113a4c;border-radius:16px}
.sig-table .sig-ic svg.sig-art{width:64px;height:64px}
.sig-table div{grid-template-columns:70px 1fr;align-items:center}
.sig-btn .sig-ic svg.sig-art{width:76px;height:76px}
@media (max-width:760px),(max-height:500px){.icon-btn.sicht-btn{width:38px;padding:0}.sicht-btn small{display:none}}

/* --- quests, treasures and the shop --- */
.game-button--quest{border-color:rgba(244,163,64,.75);background:linear-gradient(100deg,rgba(244,163,64,.28),rgba(8,37,52,.42))}
.purse-n{font-family:var(--num);color:#ffd27a;margin-left:2px}.title-icons i .i,.title-icons .i{width:20px;height:20px}
.purse{display:inline-flex;align-items:center;gap:4px;margin-left:10px;padding:2px 9px;border-radius:999px;background:rgba(244,163,64,.18);color:#ffd27a;letter-spacing:.04em;text-transform:none}
.purse .i{width:15px;height:15px}
.loot-hud{position:fixed;top:calc(max(10px,env(safe-area-inset-top)) + 84px);left:50%;transform:translateX(-50%);display:flex;gap:12px;align-items:center;padding:4px 12px;border-radius:999px;background:rgba(9,42,57,.72);border:1px solid rgba(244,163,64,.55);font-family:var(--num);font-weight:600;color:#ffd27a;pointer-events:none}
.loot-hud span{display:inline-flex;align-items:center;gap:4px}.loot-hud .i{width:17px;height:17px}
.loot-hud.bump{animation:lootBump .35s}@keyframes lootBump{40%{transform:translateX(-50%) scale(1.18)}}
.loot-time{color:var(--cream);padding-left:8px;border-left:1px solid var(--line)}.loot-time.hurry{color:#ff8a76;animation:hurry .8s infinite}@keyframes hurry{50%{opacity:.4}}
.loot-pop{position:absolute;left:50%;top:100%;transform:translateX(-50%);font-size:18px;font-weight:700;white-space:nowrap;color:#ffd27a;text-shadow:0 2px 6px #000;animation:lootPop 1.1s ease-out forwards;display:flex;align-items:center;gap:3px}
.loot-pop .combo{margin-left:5px;font-size:.8em;color:#fff;background:rgba(244,163,64,.9);border-radius:999px;padding:0 6px;text-shadow:none}.loot-pop.edelstein{color:#9fe6ff}.loot-pop.relikt,.loot-pop.truhe,.loot-pop.bonus{color:#fff3b0;font-size:24px}.loot-pop .i{width:18px;height:18px}
@keyframes lootPop{0%{opacity:0;margin-top:30px}20%{opacity:1}100%{opacity:0;margin-top:-10px}}
.detector{position:fixed;right:max(12px,env(safe-area-inset-right));bottom:150px;width:86px;padding:8px 6px;border-radius:14px;background:var(--panel);border:1px solid rgba(244,163,64,.55);text-align:center;font-family:var(--num);pointer-events:none}
.detector i{display:block;font-style:normal;font-size:26px;line-height:1;color:var(--amber);transition:transform .2s}.detector b{display:block;font-size:14px}.detector small{font-family:var(--cond);font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.detector.hot{border-color:#ffd27a;box-shadow:0 0 18px rgba(244,163,64,.6)}.detector.hot i{color:#ffe08a}
.photo-flash{position:fixed;inset:0;background:#fff;opacity:0;pointer-events:none}.photo-flash.go{animation:photoFlash .45s ease-out}@keyframes photoFlash{0%{opacity:.75}100%{opacity:0}}
.quest .q-reward,.tour .q-reward{display:flex;align-items:center;gap:4px;font-family:var(--num);color:#ffd27a;margin-left:auto;white-space:nowrap}.q-reward .i{width:16px;height:16px}
.tour.locked{opacity:.55}.lock{display:block;color:#ffb39f!important}
.shake{animation:shake .35s}@keyframes shake{25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}
.relic-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.relic{border:1px dashed var(--line);border-radius:12px;padding:8px 10px;display:flex;flex-direction:column;gap:2px;color:var(--muted)}.relic .i{width:20px;height:20px}
.relic.has{border-style:solid;border-color:rgba(244,163,64,.6);color:var(--cream);background:rgba(244,163,64,.08)}.relic.has .i{color:#ffd27a}.relic small{font-size:11.5px;color:#c9d8d4}
.shop-grid{display:flex;flex-direction:column;gap:8px}
.shop-item{display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:rgba(214,236,222,.05)}
.shop-item.own{border-color:rgba(124,196,154,.5)}.shop-item .l-icon{position:relative}.shop-item .l-text{flex:1;display:flex;flex-direction:column}.shop-item small{color:#c9d8d4}
.shop-item .btn .i{width:16px;height:16px}.btn-small{padding:7px 12px;font-size:13px;white-space:nowrap}
.swatch{position:absolute;right:-4px;bottom:-4px;width:14px;height:14px;border-radius:50%;border:2px solid var(--deep)}
.loot-sum{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}.loot-sum>div{display:flex;flex-direction:column;align-items:center;min-width:70px;padding:8px 10px;border-radius:12px;background:rgba(244,163,64,.1);border:1px solid rgba(244,163,64,.35)}
.loot-sum .i{width:20px;height:20px;color:#ffd27a}.loot-sum b{font-family:var(--num);font-size:18px}.loot-sum small{font-size:11px;color:var(--muted)}.loot-sum .total{margin-left:auto;background:rgba(244,163,64,.22)}
.sk-art{margin:4px 0 10px}.skill-art{display:block;width:100%;max-width:420px;height:auto;margin:0 auto;border-radius:10px}
@media (max-width:600px){.loot-hud{font-size:13px}.detector{bottom:auto;top:110px}}
.skill-fig{margin:0}.skill-fig figcaption{font-family:var(--cond);font-size:15px;letter-spacing:.03em;color:#cfe6e8;text-align:center;margin-top:6px}
.sk-clock{height:6px;border-radius:3px;background:rgba(255,255,255,.12);overflow:hidden;margin:4px 0 8px}.sk-clock i{display:block;height:100%;width:100%;background:var(--amber);transition:background .2s}.sk-clock i.low{background:#ff6a55}
.result.bad{background:rgba(224,128,111,.18);border:1px solid var(--red);border-radius:10px;padding:10px 12px}
.wheels{display:flex;gap:14px;justify-content:center;margin:14px 0}
.wheel{display:flex;flex-direction:column;align-items:center;gap:4px}.wheel b{font-family:var(--num);font-size:40px;width:64px;text-align:center;padding:6px 0;border-radius:12px;background:#2b3436;border:2px solid rgba(244,163,64,.6);color:#ffd27a}
.wheel button{width:64px;padding:6px;border-radius:10px;border:1px solid var(--line);background:rgba(214,236,222,.1)}
.badge-row{display:flex;flex-wrap:wrap;gap:8px}.badge{border:1px dashed var(--line);border-radius:12px;padding:8px 10px;display:flex;flex-direction:column;gap:2px;color:var(--muted);max-width:220px}
.badge.has{border-style:solid;border-color:rgba(124,196,154,.7);background:rgba(124,196,154,.1);color:var(--cream)}.badge.has .i{color:var(--good)}.badge:not(.has) .i{opacity:.5}
.daily{font-style:normal;font-family:var(--cond);font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#1b1206;background:var(--amber);border-radius:6px;padding:1px 6px;margin-left:6px}

/* der Laden hängt an den Quests */
.game-button .gb-purse{margin-left:auto;display:inline-flex;align-items:center;font-size:17px;letter-spacing:0}
.game-button .gb-purse + .tail{margin-left:10px}
.game-button .gb-text{min-width:0}
/* niedrige Schirme (Laptop 1280×720): die Notiz wird kürzer, damit alle Knöpfe zu sehen sind */
@media (min-width:681px) and (max-height:820px){.title-note{margin:12px 0 10px 3px;padding:6px 12px}.title-week{display:none}.title .eyebrow{display:none}}
/* Handy hochkant: Logbuch und Wissen als kleine Knöpfe oben neben dem Ton, keine Notiz-Zusatzzeile */
@media (max-width:680px) and (orientation:portrait),(max-aspect-ratio:2/3){
  .title-icons{position:absolute;top:calc(12px + env(safe-area-inset-top));right:76px;margin:0;flex-wrap:nowrap}
  .title-icons button{width:48px;height:48px;min-height:48px;padding:0;justify-content:center}.title-icons .ti-label{display:none}
  .title-week{display:none}.title-note{margin:10px auto 4px}.title-note .title-mood{font-size:20px}
  .hero{padding-top:2vh}.hero-actions{padding-top:12px;gap:8px}
}
/* Handy quer: zwei Spalten statt einer zu langen Reihe */
@media (max-height:500px) and (orientation:landscape){
  .hero-actions{display:grid;grid-template-columns:1fr 1fr;flex-direction:initial;max-width:620px;gap:6px}
  .hero-actions .game-button--primary{grid-column:1/-1}
  .hero-actions .game-button{min-height:42px;padding:5px 12px;font-size:16px}
  .hero-actions .game-button small{font-size:12px;max-width:none}
}
.game-button .gb-purse{gap:4px}.game-button .gb-purse .i{width:18px;height:18px}
@media (min-width:681px) and (max-height:820px){.hero-actions{gap:8px}.title-note .title-mood{font-size:21px}}
@media (max-height:700px) and (orientation:portrait){.title-note,.brand-subline{display:none}}
@media (min-width:681px) and (max-height:960px){.title-week{display:none}.title-note{margin:14px 0 12px 3px}}
/* Handy hochkant: die Startseite passt auf einen Schirm, ohne Scrollen. Die Fußzeile wird eine Zeile,
   die Stimmungsnotiz gibt es nur, wenn wirklich Platz ist (z. B. als App auf dem Homescreen) */
@media (max-width:680px) and (orientation:portrait),(max-aspect-ratio:2/3){
  #titleStatus,.title .soft-note{display:none}
  .title-foot{flex-wrap:nowrap;padding:0 18px calc(4px + env(safe-area-inset-bottom))}.foot-right{flex-wrap:nowrap;gap:10px}
  .hero{padding:1.5vh 18px 4px}
  .hero-actions{gap:7px}
  .hero-actions .game-button--secondary{min-height:48px;padding-top:6px;padding-bottom:6px}
  .title-note{display:none}
}
@media (max-width:680px) and (orientation:portrait) and (min-height:800px),(max-aspect-ratio:2/3) and (min-height:800px){
  .title-note{display:block}
}
@media (orientation:portrait) and (max-height:620px){
  .title .eyebrow{display:none}
  .brand-name{font-size:clamp(34px,10vw,48px)}
  .hero-actions{padding-top:8px;gap:6px}
  .hero-actions .game-button--primary{min-height:48px}
  .hero-actions .game-button--secondary{min-height:46px}
}
/* ganz schmale Handys (iPhone SE 1. Generation): Schriftzug oben weicht den Knöpfen, nichts bricht um */
@media (max-width:359px){
  .masthead-brand{visibility:hidden}
  .title-foot{font-size:10px;letter-spacing:.04em;white-space:nowrap}.title-foot .link-btn{font-size:10px;letter-spacing:.04em}
  .hero-actions .game-button{font-size:16px;gap:10px;padding-left:14px;padding-right:14px}
  .hero-actions .game-button .gb-text{white-space:nowrap}
}

/* Handy hochkant beim Tauchen: aufgeräumt. Oben Kompass und zwei Knöpfe (Ansicht, Pause; Startseite, Hilfe und Sicht
   stehen in der Pause), darunter die Aufgabe. Unten eine Reihe Instrumente (Computer, Jacket, Wärme, Ohr, Finimeter),
   darüber Steuerkreuz links und die Knöpfe rechts in zwei Reihen. Die Mitte bleibt frei für den Taucher. */
@media (orientation:portrait) and (max-width:600px){
  #homeBtn,#helpBtn,#sichtBtn{display:none}
  .top-right{gap:6px}
  .compass{left:max(10px,env(safe-area-inset-left));right:calc(max(10px,env(safe-area-inset-right)) + 90px);transform:none;align-items:stretch}
  .compass-win{width:auto;max-width:none;height:30px}
  .compass .heading{position:absolute;left:50%;top:31px;transform:translateX(-50%);font-size:13px}
  .compass .target-info{position:absolute;left:0;right:0;top:48px;text-align:center;font-size:11px}
  .task{left:max(10px,env(safe-area-inset-left));width:auto;right:max(10px,env(safe-area-inset-right));top:calc(max(10px,env(safe-area-inset-top)) + 54px);padding:6px 10px;border-radius:10px}
  .task small{font-size:10.5px}.task p{font-size:13px;line-height:1.3;margin:2px 0}.task .hint{font-size:11px}
  .loot-hud{top:auto;bottom:calc(max(8px,env(safe-area-inset-bottom)) + 248px);left:max(10px,env(safe-area-inset-left));transform:none;font-size:13px;padding:2px 8px;gap:8px}
  .loot-hud.bump{animation:none}
  /* instruments: one row at the bottom */
  .computer,body.touch .computer{left:max(8px,env(safe-area-inset-left));bottom:max(8px,env(safe-area-inset-bottom));width:140px;padding:5px;border-radius:20px}
  .c-screen{padding:4px 18px 3px 8px;border-radius:15px}.c-f b{font-size:12px}.c-depth b{font-size:26px}.c-time b{font-size:17px}.c-f small{font-size:9px}.c-row{font-size:11px}
  .side-meters,body.touch .side-meters{left:calc(max(8px,env(safe-area-inset-left)) + 148px);right:calc(max(8px,env(safe-area-inset-right)) + 86px);bottom:max(8px,env(safe-area-inset-bottom));justify-content:center;gap:6px;flex-wrap:wrap;row-gap:4px}
  .vbar,body.touch .side-meters .vbar{height:62px;width:14px}
  .meter-col{font-size:10px}.meter-col .net{min-height:12px}
  .ear-icon{width:32px;height:32px}.ear-icon svg.i{width:20px;height:20px}
  .lamp-info{font-size:11px;padding:2px 5px}
  .finimeter{right:max(8px,env(safe-area-inset-right));bottom:max(8px,env(safe-area-inset-bottom));width:80px;height:80px}.finimeter b{font-size:12px;bottom:15px}.finimeter small{bottom:6px;font-size:8px}
  /* controls above the instruments */
  body.touch .stick{left:max(10px,env(safe-area-inset-left));bottom:calc(max(8px,env(safe-area-inset-bottom)) + 128px);width:108px;height:108px}
  body.touch .stick i{left:27px;top:27px;width:50px;height:50px}
  .tbtns,body.touch .tbtns{right:max(8px,env(safe-area-inset-right));bottom:calc(max(8px,env(safe-area-inset-bottom)) + 128px);grid-template-columns:repeat(4,minmax(0,54px));gap:6px;max-width:calc(100vw - 140px)}
  .tb,body.touch .tb,.tb.small{width:auto;height:48px;font-size:10px;white-space:nowrap;letter-spacing:-.01em;padding:0}
  .tb svg.i,.tb.valve svg.i,.tb.fin svg.i{width:20px;height:20px;margin:1px auto 2px}
  /* messages between the controls and the task: never on top of the buttons */
  .rate-warn{bottom:calc(max(8px,env(safe-area-inset-bottom)) + 300px);padding:5px 12px;width:max-content;max-width:calc(100% - 24px)}
  .rate-warn b{font-size:16px;white-space:nowrap}.rate-warn small{display:block;font-size:11px;line-height:1.3}
  .coach{top:auto;bottom:calc(max(8px,env(safe-area-inset-bottom)) + 370px);font-size:13px;padding:6px 12px}
  .sighting{top:auto;bottom:calc(max(8px,env(safe-area-inset-bottom)) + 300px);right:max(10px,env(safe-area-inset-right));width:min(260px,70vw)}.sighting span{display:none}
  .detector{top:auto;bottom:calc(max(8px,env(safe-area-inset-bottom)) + 300px)}
  .end-dive{bottom:calc(max(8px,env(safe-area-inset-bottom)) + 300px)}
}
/* Handy quer: die Warnung „Zu schnell!“ oben in der Mitte, nicht über den Knöpfen */
@media (max-height:500px) and (orientation:landscape){.rate-warn{top:44%;bottom:auto;transform:translate(-50%,-50%);padding:5px 12px;max-width:48vw}.rate-warn b{font-size:16px}.rate-warn small{font-size:11px}}
/* Jacket: „+“ und „−“ direkt an der Anzeige (nur mit Knöpfen auf dem Bildschirm), das Ohr ist zum Antippen */
.jk-row{display:flex;align-items:center;gap:5px}
.jk-btns{display:none;flex-direction:column;gap:6px}
body.touch .jk-btns{display:flex}
.jk-btn{width:44px;height:42px;padding:0;border-radius:12px;font-family:var(--num);font-size:26px;font-weight:700;line-height:1;color:#fff;background:rgba(43,106,121,.82);border:2px solid var(--line);touch-action:none;user-select:none;-webkit-user-select:none}
.jk-btn.in{border-color:rgba(124,196,154,.9)}.jk-btn.out{border-color:rgba(244,163,64,.9)}
.jk-btn.held{background:rgba(244,163,64,.5)}
body.touch .jacket-col .vbar{height:90px}
.ear-icon{padding:0;color:inherit;font:inherit;cursor:pointer;touch-action:manipulation}
body.touch .ear-icon{width:46px;height:46px}body.touch .ear-icon svg.i{width:26px;height:26px}
@media (orientation:portrait) and (max-width:600px){
  .computer,body.touch .computer{width:134px}.c-depth b{font-size:24px}.c-time b{font-size:16px}
  .finimeter{width:76px;height:76px}
  .side-meters,body.touch .side-meters{left:calc(max(8px,env(safe-area-inset-left)) + 140px);right:calc(max(8px,env(safe-area-inset-right)) + 80px);gap:5px}
  .meter-col small{font-size:9.5px}
  .jk-btn{width:40px;height:40px}
  body.touch .jacket-col .vbar{height:86px}
  body.touch .ear-icon{width:44px;height:44px}
}
@media (max-height:500px){
  .jk-btn{width:38px;height:32px;font-size:22px}.jk-btns{gap:4px}
  body.touch .jacket-col .vbar{height:68px}
  body.touch .ear-icon{width:40px;height:40px}
}
/* Handy: Lampe und Trockenanzug als kleine Schilder über dem Finimeter, damit die Instrumentenreihe nicht umbricht */
@media (orientation:portrait) and (max-width:600px){
  .side-meters .lamp-info{position:fixed;right:max(8px,env(safe-area-inset-right));bottom:calc(max(8px,env(safe-area-inset-bottom)) + 82px);min-width:76px}
  .side-meters #dryInfo{bottom:calc(max(8px,env(safe-area-inset-bottom)) + 82px);right:calc(max(8px,env(safe-area-inset-right)) + 82px)}
  .side-meters,body.touch .side-meters{flex-wrap:nowrap}
}
@media (max-height:500px){
  .side-meters .lamp-info,body.touch .side-meters .lamp-info{position:fixed;right:max(12px,env(safe-area-inset-right));bottom:calc(max(12px,env(safe-area-inset-bottom)) + 96px);min-width:80px}
  .side-meters #dryInfo,body.touch .side-meters #dryInfo{bottom:calc(max(12px,env(safe-area-inset-bottom)) + 130px)}
}
@media (max-height:500px) and (orientation:landscape){
  body.touch .side-meters{left:calc(max(14px,env(safe-area-inset-left)) + 122px + 156px);bottom:max(10px,env(safe-area-inset-bottom));flex-wrap:nowrap;max-width:none}
}
@media (max-height:500px) and (orientation:landscape){
  body.touch .tbtns{grid-template-columns:repeat(2,54px);gap:6px}
}
/* Lampe und Ersatzlampe oben bei Ansicht und Pause (nur mit Knöpfen auf dem Bildschirm): unten bleibt Platz zum Umsehen */
.lamp-top{display:none}
body.touch .lamp-top{display:inline-flex}
.icon-btn.on{background:rgba(244,163,64,.45);border-color:var(--amber)}
@media (orientation:portrait) and (max-width:600px){
  body.touch .compass{right:calc(max(10px,env(safe-area-inset-right)) + 134px)}
  body.touch:has(#backupBtn:not(.hidden)) .compass{right:calc(max(10px,env(safe-area-inset-right)) + 178px)}
  body.touch:has(#lampBtn.hidden) .compass{right:calc(max(10px,env(safe-area-inset-right)) + 90px)}
}
@media (max-height:500px) and (orientation:landscape){
  body.touch #homeBtn,body.touch #helpBtn,body.touch #sichtBtn{display:none}
}
@media (orientation:portrait) and (max-width:600px){
  .tbtns,body.touch .tbtns{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:54px}
}
/* „+“ und „−“ wie am echten Inflator: dunkler Kopf am Faltenschlauch, roter Knopf Luft rein, grauer Knopf Ablass */
body.touch .jk-btns{position:relative;padding:6px 5px 16px;gap:7px;border-radius:16px 16px 10px 10px;background:linear-gradient(90deg,#15191b,#3a4043 45%,#15191b);border:1px solid #555d60;box-shadow:0 4px 14px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.15)}
body.touch .jk-btns::after{content:"";position:absolute;left:50%;bottom:-14px;width:18px;height:18px;transform:translateX(-50%);border-radius:0 0 6px 6px;background:repeating-linear-gradient(0deg,#1d2224 0 3px,#3b4245 3px 5px)}
.jk-btn{border-radius:50%;border:2px solid rgba(0,0,0,.55);font-size:22px;text-shadow:0 1px 2px rgba(0,0,0,.6)}
.jk-btn.in{background:radial-gradient(circle at 35% 30%,#ff8a7a,#d8382a 55%,#8e1a12);border-color:#5e100a;color:#fff}
.jk-btn.out{background:radial-gradient(circle at 35% 30%,#eef1f2,#a6aeb2 55%,#5f676b);border-color:#3c4245;color:#1b2022;text-shadow:0 1px 0 rgba(255,255,255,.5)}
.jk-btn.in.held{background:radial-gradient(circle at 50% 55%,#ff8a7a,#b52a1e 60%,#6e130c);box-shadow:inset 0 2px 6px rgba(0,0,0,.6)}
.jk-btn.out.held{background:radial-gradient(circle at 50% 55%,#d8dddf,#868e92 60%,#4a5155);box-shadow:inset 0 2px 6px rgba(0,0,0,.6)}
body.touch .jk-btns{margin-bottom:12px}
body.touch .jk-btns::after{bottom:-12px;height:12px}
@media (max-height:500px){.jk-btn{width:36px;height:36px}}

.opts-fold{margin:10px 0}.opts-fold summary{cursor:pointer;color:var(--muted);font-size:14px;padding:4px 0}
.lake-h{margin:8px 0 4px;font-size:13px;color:var(--muted);letter-spacing:.04em}
/* the map of the dive site (map.js): over the picture on the right, the dive goes on behind it */
.map-panel{position:fixed;z-index:20;right:max(12px,env(safe-area-inset-right));top:calc(max(10px,env(safe-area-inset-top)) + 58px);width:min(400px,calc(100vw - 24px));background:rgba(9,42,57,.9);border:1px solid var(--line);border-radius:14px;padding:10px 12px;backdrop-filter:blur(8px);pointer-events:auto}
.map-panel.hidden{display:none}
.map-panel canvas{display:block;width:100%;height:auto;max-height:min(60vh,420px);object-fit:contain;border-radius:8px;cursor:pointer;touch-action:none;image-rendering:auto}
.map-head{display:flex;align-items:baseline;gap:8px;margin-bottom:6px}.map-head small{flex:1;color:var(--muted);font-size:11.5px}
.map-x{background:none;border:0;color:#fff;font-size:22px;line-height:1;cursor:pointer;padding:0 4px}
.map-label{margin:6px 0 0;font-size:13px;color:#e8f4f2;min-height:1.3em}
/* Rüste deinen Taucher aus (ui.js openGearRoom) */
.gd-play{display:grid;grid-template-columns:minmax(220px,1fr) minmax(200px,260px);gap:14px;align-items:start}
.gd-stage{position:relative;max-width:min(270px,48vh);width:100%;margin:0 auto;aspect-ratio:200/340}
.gd-fig{position:absolute;inset:0;width:100%;height:100%}
.gd-zone{position:absolute;transform:translate(-50%,-50%);min-width:64px;padding:4px 8px;border-radius:10px;border:1.5px dashed rgba(255,203,129,.7);background:rgba(9,42,57,.75);color:#ffe2b0;font:600 12px/1.2 var(--sans);cursor:pointer;text-align:center}
.gd-zone.over,.gd-tray.over{border-style:solid;border-color:#ffcb4a;background:rgba(120,90,20,.6)}
.gd-zone.filled{border-style:solid;border-color:var(--good)}
.gd-got{display:flex;flex-wrap:wrap;justify-content:center;gap:2px}.gd-got span{display:inline-flex;width:18px;height:18px}.gd-got span svg{width:18px;height:18px}.gd-got span.late{opacity:.5}
.gd-side{display:flex;flex-direction:column;gap:10px}
.gd-card{min-height:110px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:6px}
.gd-item{display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 14px;border-radius:14px;border:2px solid var(--amber);background:rgba(255,203,129,.1);cursor:grab;touch-action:none;user-select:none;width:100%}
.gd-item .g-ic svg{width:44px;height:44px}.gd-item small{color:var(--muted);font-size:11px}
.gd-ghost{position:fixed;z-index:100;pointer-events:none;transform:translate(-50%,-50%) scale(.85);width:180px;background:rgba(9,42,57,.95)}
.gd-tray{padding:10px;border-radius:12px;border:1.5px dashed rgba(255,255,255,.35);background:rgba(255,255,255,.05);color:#e8f4f2;text-align:left;cursor:pointer;font-size:12.5px}
.gd-tray b{display:block;font-weight:600}
.gd-info{margin-top:12px;min-height:60px}.gd-done{font:800 22px var(--display);color:#ffcb81;margin:0}
@media (max-width:620px){.gd-play{grid-template-columns:1fr}.gd-stage{max-width:260px}}
/* the small ascent sign on the right edge (after the big warning has shown once) */
.rate-chip{position:fixed;z-index:12;right:max(10px,env(safe-area-inset-right));top:46%;display:flex;flex-direction:column;align-items:center;gap:0;min-width:48px;padding:6px 6px 5px;border-radius:12px;background:rgba(9,42,57,.82);border:2px solid #ffcb4a;color:#ffe2a0;font-family:var(--num);pointer-events:none}
.rate-chip.hidden{display:none}.rate-chip b{font-size:20px;line-height:1}.rate-chip span{font-size:17px;font-weight:600;line-height:1.1}.rate-chip small{font-size:9.5px;opacity:.85}
.rate-chip.fast{border-color:#ff7a5c;color:#ffc2b4;background:rgba(90,25,20,.85)}
.rate-chip.danger{border-color:#ff5d4d;color:#fff;background:rgba(150,25,15,.9);animation:blink 1s infinite}
/* the task card in its short form: one small line (Taler-Jagd) */
.task.compact{width:auto;min-width:0;padding:5px 10px}.task.compact p{margin:0;font-size:13px;font-family:var(--num);font-weight:600;color:#ffd27a}
.task.compact small:empty,.task.compact .prog{display:none}

/* the feeling of being in water, also where the picture is very clear and on phones (no extra render pass): light from
   above, darker water towards the edges and below, breathing slowly */
.water-veil{position:fixed;inset:0;pointer-events:none;opacity:0;transition:opacity .6s;
  background:linear-gradient(to bottom,rgba(170,255,230,.13),rgba(170,255,230,0) 38%,rgba(2,24,34,0) 60%,rgba(2,24,34,.3)),radial-gradient(ellipse at 50% 42%,rgba(0,0,0,0) 50%,rgba(3,34,46,.3) 100%)}
body.underwater .water-veil{opacity:1;animation:veil 7s ease-in-out infinite}
@keyframes veil{50%{opacity:.78}}
@media (prefers-reduced-motion:reduce){body.underwater .water-veil{animation:none}}

/* Realismus „Entspannt“: the jacket and the ears look after themselves, their buttons leave the screen */
body.relaxed .jk-btns,body.relaxed #earIcon{display:none}
body.touch .task.aged .hint,body.touch .task.aged #taskNum{display:none}
body.touch .task.aged p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
/* the way into the water is always in reach, however long the briefing is on a small screen */
.brief-go{position:sticky;bottom:-22px;margin-bottom:-22px;padding:14px 0 18px;background:linear-gradient(to bottom,rgba(10,43,57,0),#0a2b39 40%)}

/* --- the phone: a clear view. Instruments show when they have something to say; the guide's words sit under the
   compass, not over the buttons; nothing is shown twice -------------------------------------------------------- */
body.touch .meter-col.calm,body.touch .lamp-info.idle,body.touch #backupBtn.spare{display:none}
body.touch .jk-btn{width:48px;height:46px}
body.touch .coach{top:calc(max(8px,env(safe-area-inset-top)) + 84px);bottom:auto;left:50%;transform:translateX(-50%);max-width:min(480px,calc(100vw - 24px));font-size:12.5px;line-height:1.3;padding:5px 10px;border-radius:10px}
body.touch .flash{font-size:14px}
/* the count and the clock of a quest stand in the small task card already: here only the „+1“ flies up */
body.touch.task-compact .loot-hud{background:none;border-color:transparent;box-shadow:none;backdrop-filter:none}
body.touch.task-compact .loot-hud>span,body.touch.task-compact .loot-hud>b{display:none}
/* a sighting: one small line under the buttons, not a card */
body.touch .sighting{top:calc(max(8px,env(safe-area-inset-top)) + 48px);bottom:auto;right:max(10px,env(safe-area-inset-right));width:auto;max-width:min(250px,46vw);padding:4px 10px;border-radius:999px;display:flex;gap:6px;align-items:baseline;white-space:nowrap;overflow:hidden}
body.touch .sighting small{font-size:10px;letter-spacing:.08em;flex:none}body.touch .sighting b{font-family:var(--sans);font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis}body.touch .sighting span{display:none}
@media (max-height:500px) and (orientation:landscape){
  body.touch .loot-hud{top:calc(max(8px,env(safe-area-inset-top)) + 46px);left:max(12px,env(safe-area-inset-left));transform:none;font-size:13px;padding:2px 9px}
  body.touch .loot-hud.bump{animation:none}
  body.touch .finimeter{width:72px;height:72px}body.touch .finimeter b{font-size:12px;bottom:13px}body.touch .finimeter small{display:none}
  body.touch .computer{width:132px}body.touch .c-depth b{font-size:23px}
  body.touch .coach{max-width:min(440px,52vw)}
}
@media (orientation:portrait) and (max-width:600px){
  body.touch .coach{top:calc(max(8px,env(safe-area-inset-top)) + 150px);max-width:calc(100vw - 20px)}
  body.touch .sighting{top:calc(max(8px,env(safe-area-inset-top)) + 112px)}
}
/* landscape: the left thumb stays on the stick, so the valves of the jacket and the ear move to the right thumb,
   above „Zeichen“ and „Aktion“; the middle of the picture belongs to the dive */
@media (max-height:500px) and (orientation:landscape){
  body.touch .jk-btns{position:fixed;right:max(12px,env(safe-area-inset-right));bottom:calc(max(10px,env(safe-area-inset-bottom)) + 96px);margin:0}
  body.touch .ear-icon{position:fixed;right:calc(max(12px,env(safe-area-inset-right)) + 74px);bottom:calc(max(10px,env(safe-area-inset-bottom)) + 70px)}
  body.touch .side-meters .lamp-info{right:calc(max(12px,env(safe-area-inset-right)) + 74px);bottom:calc(max(10px,env(safe-area-inset-bottom)) + 128px);min-width:0}
  body.touch .jacket-col .vbar{height:54px}
}
@media (orientation:portrait) and (max-width:600px){
  /* the line to the goal under the compass stays readable: the task card begins below it */
  body.touch .task{top:calc(max(8px,env(safe-area-inset-top)) + 82px)}
  body.touch .coach{top:27vh}
  body.touch .sighting{top:calc(max(8px,env(safe-area-inset-top)) + 50px);right:auto;left:max(10px,env(safe-area-inset-left));max-width:calc(100vw - 20px)}
}
@media (orientation:portrait) and (max-width:600px){body.touch .compass .target-info{right:auto;width:max-content;max-width:calc(100vw - 20px);text-align:left;white-space:nowrap}}

/* while the site loads and the briefing is open, the displays of the last dive stay hidden (ui.loading → brief) */
body.briefing #dive>*{visibility:hidden}
.sk-review{margin:8px 0 4px;padding-left:18px;font-size:14px;line-height:1.45}.sk-review li{margin:4px 0}

/* Unterwegs zum Tauchplatz (travel.js), after Sorpe/Heimatwasser: under the briefing (z 50), over the dive and the old spinner */
.travel-screen{position:fixed;inset:0;z-index:45;background:radial-gradient(ellipse at 50% 30%,#14506a 0%,#0b2f40 55%,#071c27 100%);color:var(--cream);overflow:hidden}
.travel-screen.out{animation:tvOut .45s ease-in forwards}@keyframes tvOut{to{opacity:0}}
.travel-map{position:absolute;inset:0}.tv-map{width:100%;height:100%;display:block}
.tv-land{fill:rgba(255,255,255,.06);stroke:rgba(255,255,255,.25);stroke-linejoin:round;vector-effect:non-scaling-stroke}.tv-dot{fill:rgba(255,255,255,.3)}
.tv-route{fill:none;stroke:rgba(255,255,255,.3);stroke-width:1.2;stroke-dasharray:3 3;vector-effect:non-scaling-stroke}
.tv-done{fill:none;stroke:var(--amber);stroke-width:3;stroke-linecap:round;vector-effect:non-scaling-stroke}
.tv-from{fill:rgba(255,255,255,.5)}.tv-name{fill:rgba(255,255,255,.65);text-anchor:middle;font-weight:700;paint-order:stroke;stroke:#0b2f40;stroke-linejoin:round}.tv-name.to{fill:#f6d25a}
.tv-to{fill:var(--amber)}.tv-to-ring{fill:none;stroke:var(--amber);stroke-width:2;vector-effect:non-scaling-stroke;transform-box:fill-box;transform-origin:center;animation:tvRing 1.6s ease-out infinite}
@keyframes tvRing{from{transform:scale(1);opacity:.9}to{transform:scale(3.2);opacity:0}}
.tv-car{fill:#0b2f40;stroke:#fff;stroke-width:1.5;vector-effect:non-scaling-stroke}
.travel-card{position:absolute;left:50%;bottom:max(28px,env(safe-area-inset-bottom));transform:translateX(-50%);width:min(460px,calc(100vw - 32px));padding:18px 20px;border-radius:18px;background:rgba(7,28,39,.82);border:1px solid rgba(244,163,64,.45);backdrop-filter:blur(8px);box-shadow:0 20px 60px rgba(0,0,0,.45);text-align:center}
.travel-eyebrow{letter-spacing:.2em;font-weight:800;font-size:10.5px;color:var(--amber)}
.travel-card h2{margin:6px 0 4px;font:600 clamp(22px,5vw,30px)/1.15 var(--display)}.travel-sub{margin:0;font-size:13.5px;color:var(--muted)}.travel-km{margin:4px 0 12px;font-size:13px;font-weight:700;color:#f0ce95;min-height:1em}
.travel-load{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin:0 2px 6px;font-size:13px;font-weight:700}.travel-load b{font-variant-numeric:tabular-nums;color:#f6d25a}
.travel-bar{position:relative;height:12px;border-radius:99px;background:rgba(255,255,255,.1);overflow:hidden;box-shadow:inset 0 1px 3px rgba(0,0,0,.4)}
.travel-bar i{position:relative;display:block;height:100%;width:0;border-radius:99px;background:repeating-linear-gradient(-45deg,rgba(255,255,255,.22) 0 8px,transparent 8px 16px),linear-gradient(90deg,#f4a340,#f6d25a);background-size:22.6px 22.6px,100% 100%;animation:tvStripes .7s linear infinite;box-shadow:0 0 12px rgba(246,210,90,.55)}
@keyframes tvStripes{to{background-position:22.6px 0,0 0}}
.travel-line{margin:10px 0 0;font-size:13.5px;color:var(--muted);min-height:1.3em}
/* Tarieren üben while it loads (wartespiel.js): a small picture in the card, its band says it is a game to pass the wait */
.travel-game{margin:12px 0 0}.travel-game canvas{display:block;width:100%;height:clamp(130px,22vh,190px);border-radius:12px;touch-action:none;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)}
.tw-say{margin:6px 0 0;font-size:12.5px;color:var(--muted);min-height:1.3em}
.travel-screen.mitSpiel .travel-pic{width:min(220px,46vw)} /* (upright: the card grows by the game, the photo makes room) */
@media (min-aspect-ratio:6/5){.travel-screen.mitSpiel .travel-pic{width:min(360px,30vw)}}
.travel-pic{position:absolute;left:50%;top:max(5vh,env(safe-area-inset-top));width:min(360px,70vw);margin:0;padding:10px 10px 0;background:#f5efe2;border-radius:4px;box-shadow:0 18px 50px rgba(0,0,0,.55);transform:translateX(-50%) rotate(-2deg);opacity:0;transition:opacity .5s}
.travel-pic.shown{opacity:1}.tp-frame{position:relative;aspect-ratio:1;overflow:hidden;background:#0b2f40}.tp-frame img{width:100%;height:100%;object-fit:cover;animation:tpZoom 8s ease-out both}
@keyframes tpZoom{from{transform:scale(1.15)}to{transform:scale(1)}}
.travel-pic figcaption{padding:8px 6px 10px;font-size:17px;font-weight:600;color:#2b3a40;text-align:center}
@media (min-aspect-ratio:6/5){.travel-pic{left:max(4vw,24px);top:max(8vh,24px);width:min(360px,30vw);transform:rotate(-2deg)}.travel-card{left:auto;right:max(4vw,24px);transform:none;width:min(440px,44vw)}}
@media (max-height:640px){.travel-pic{width:min(220px,40vw)}}
@media (max-aspect-ratio:6/5) and (max-height:760px){.travel-pic{display:none}}
@media (prefers-reduced-motion:reduce){.tv-to-ring,.travel-bar i,.tp-frame img{animation:none}.travel-screen.out{animation:none;opacity:0}}
.travel-load span{flex:1;text-align:left}.travel-load b{white-space:nowrap}
/* the mouse is free in a dive (dive.js lockChange): how to look round again, how to pause */
.mouse-free{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(max(12px,env(safe-area-inset-bottom)) + 120px);z-index:12;padding:8px 14px;border-radius:999px;border:1px solid rgba(244,163,64,.6);background:rgba(6,28,38,.86);color:var(--cream);font-size:14px;box-shadow:0 6px 20px rgba(0,0,0,.35);animation:mfIn .25s ease-out}
.mouse-free b{color:var(--amber);margin-right:6px}.mouse-free kbd{font-size:12px}
@keyframes mfIn{from{opacity:0;transform:translate(-50%,8px)}}
body.briefing .mouse-free{display:none}

/* ---------------------------------------------------------------------------------------------------------------------
   Heimattauchen als App (html.app-ui, index.html; appnav.js), aufgebaut wie Heimatwasser und Heimatpilze: unten eine
   Leiste mit fünf Zielen (Start, Touren, Schätze, Logbuch, Mehr), jedes eine ganze Seite darüber. Die Leiste sieht man
   nur auf der Startseite und ihren Seiten (html.app-tabs-on), nicht im Tauchgang und nicht unter einem Fenster. */
.app-tabs{display:none}
.game-button--slim,.pg-back{display:none}
html.app-tabs-on{--app-bar:calc(60px + env(safe-area-inset-bottom,0px))}
html.app-tabs-on .app-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;z-index:90;left:0;right:0;bottom:0;
  padding:5px max(6px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left));
  background:rgba(6,28,38,.97);border-top:1px solid var(--line);box-shadow:0 -8px 24px rgba(3,14,19,.3);backdrop-filter:blur(12px)}
.app-tabs button{position:relative;min-width:0;min-height:50px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:4px 2px;border:0;border-radius:10px;background:none;color:var(--muted);font:600 11px/1.15 var(--sans);letter-spacing:.01em;touch-action:manipulation}
.app-tabs button svg.i{width:23px;height:23px}
.app-tabs button span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.app-tabs button.active{color:#ffcb81;background:rgba(244,163,64,.12)}
.app-tabs button.active::before{content:"";position:absolute;top:-5px;left:calc(50% - 12px);width:24px;height:2px;border-radius:2px;background:var(--amber)}
.app-tabs button:active{background:rgba(244,163,64,.2)}
html.app-tabs-on .screen:not(.hud){bottom:var(--app-bar)}

/* die Seiten: Touren und Logbuch sind die ersten Seiten ihres Reiters, die Leiste ist der Weg zurück */
html.app-ui .page-head [data-back],html.app-ui #bookSites,html.app-ui #bookLog{display:none}
html.app-ui .page-head{padding-top:calc(12px + env(safe-area-inset-top));min-height:56px}
html.app-ui .page-head h2{font-size:24px}
html.app-ui .page-body{padding-bottom:28px}
/* Schätze und Mehr: das Fenster als Seite über der Leiste, ohne „Zurück“ unten; eine Seite weiter drin hat „‹ Zurück“ oben */
html.app-tabs-on #modal.as-page{bottom:var(--app-bar);padding:0;background:linear-gradient(180deg,#0d3b52,#061c26 60%);backdrop-filter:none}
html.app-tabs-on #modal.as-page .modal-card{max-width:none;width:100%;height:100%;max-height:none;margin:0;border:0;border-radius:0;box-shadow:none;background:transparent;
  padding:calc(14px + env(safe-area-inset-top)) max(16px,env(safe-area-inset-right),calc((100vw - 900px) / 2)) 28px max(16px,env(safe-area-inset-left),calc((100vw - 900px) / 2))}
html.app-ui #modal.as-page .pg-close{display:none}
html.app-ui #modal.as-page .pg-back{display:inline-flex;min-height:44px;margin-bottom:10px}

/* die Startseite der App: großer Knopf, „Frei tauchen“ und die Tagesquest. Touren, Quests, Logbuch und Einstellungen sind
   Reiter, ihre Knöpfe fallen weg; Credits stehen unter „Mehr“ */
html.app-ui #toursBtn,html.app-ui #questsBtn,html.app-ui .title-icons,html.app-ui #creditsBtn{display:none}
html.app-ui .game-button--slim{display:flex;min-height:44px;padding:6px 14px;font-size:16px;background:linear-gradient(100deg,rgba(244,163,64,.22),rgba(8,37,52,.42));border:1px solid rgba(244,163,64,.6);backdrop-filter:blur(7px)}
html.app-ui .game-button--slim small{font-size:12px}
html.app-ui.app-tabs-on .title-foot{padding-bottom:8px}
html.app-native .title-foot{display:none}
@media (orientation:portrait){
  html.app-ui .hero-actions{gap:9px}
  html.app-ui .title-note{display:block;margin:12px auto 4px}
  html.app-ui .title-note .title-mood{font-size:19px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
}
@media (orientation:portrait) and (max-height:700px){html.app-ui .title-note{display:none}}
@media (max-height:500px) and (orientation:landscape){
  html.app-tabs-on{--app-bar:calc(48px + env(safe-area-inset-bottom,0px))}
  .app-tabs button{min-height:38px;flex-direction:row;gap:6px}
  .app-tabs button svg.i{width:20px;height:20px}
  html.app-ui .hero-actions .game-button--primary{grid-column:1/-1}
}
@media (max-width:360px){.app-tabs button{font-size:10.5px;padding:4px 0}}

/* die Einstellungen: eine kurze Seite */
.settings h2{margin-bottom:6px}
.opt-fold{margin:10px 0;border-top:1px solid var(--line);padding-top:4px}
.opt-fold>summary{cursor:pointer;min-height:40px;display:flex;align-items:center;font-weight:600;color:var(--mist);list-style:none}
.opt-fold>summary::before{content:"›";display:inline-block;width:18px;color:var(--amber);font-size:20px;transition:transform .15s}
.opt-fold[open]>summary::before{transform:rotate(90deg)}
.opt-fold>summary::-webkit-details-marker{display:none}
.set-links{display:flex;flex-direction:column;gap:8px;margin:12px 0}
.set-links .lesson{width:100%}

/* die Pause: „Weiter tauchen“ zuerst, drei Kacheln, die Sicht; der Rest eingeklappt */
.pause-go{width:100%;margin:2px 0 10px}
.pause-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.pause-tiles .btn{flex-direction:column;gap:4px;padding:10px 4px;font-size:13px;min-height:64px}
.pause-tiles svg.i{width:22px;height:22px}

/* Arcade (Realismus „Arcade“, body.relaxed): die kurze Tastenleiste, ohne Jacket und Ohren */
body.relaxed .key-legend.kl-real,body:not(.relaxed) .key-legend.kl-arcade{display:none}
body.relaxed .jacket-col{display:none}
.lake-option .lake-prog{display:block;margin-top:4px;font-size:12px;color:#ffcb81}
.dive-tip{background:rgba(244,163,64,.1);border:1px solid rgba(244,163,64,.35);border-radius:10px;padding:8px 12px;font-size:14px}.dive-tip svg.i{width:18px;height:18px;vertical-align:-4px;color:#ffcb81}
.seen-list{line-height:1.6}
.lives-h{margin:4px 0 6px;font-family:var(--cond);font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:#ffcb81}
.fish-row{display:flex;flex-wrap:wrap;gap:6px}
.fish-chip{display:inline-flex;align-items:center;gap:3px;font-size:13px;padding:3px 10px;border-radius:999px;border:1px solid var(--line);background:rgba(255,255,255,.05);color:#d5e3df}
.fish-chip.seen{border-color:rgba(124,196,154,.6);background:rgba(124,196,154,.14);color:var(--cream)}.fish-chip svg.i{width:14px;height:14px;color:var(--good)}
/* Arcade: der Tauchcomputer zeigt nur Tiefe und Zeit (Nullzeit, Temperatur und Aufstiegsbalken braucht hier keiner) */
body.relaxed .computer .c-bot,body.relaxed .computer .rate{display:none}
body.relaxed #warmCol.calm{display:none} /* Arcade: die Wärme erst, wenn es kalt wird */

/* an der Oberfläche: ein Knopf zum Abtauchen (dive.js startDescent), unten in der Mitte */
.dive-down{position:fixed;left:50%;bottom:calc(max(16px,env(safe-area-inset-bottom)) + 92px);transform:translateX(-50%);z-index:6;display:inline-flex;align-items:center;gap:10px;
  padding:12px 22px;border-radius:999px;border:1px solid #FFD08F;background:linear-gradient(180deg,#F7B256,#E8902A);color:#10222b;font:700 18px/1 var(--cond);letter-spacing:.06em;text-transform:uppercase;
  box-shadow:0 5px 0 #9c5a14,0 12px 24px rgba(7,28,40,.4);touch-action:manipulation}
.dive-down:active{transform:translateX(-50%) translateY(3px);box-shadow:0 2px 0 #9c5a14}
.dive-down svg.i{width:22px;height:22px}.dive-down kbd{font-size:11px;background:rgba(16,34,43,.15);border-color:rgba(16,34,43,.3);color:#10222b}
body.touch .dive-down kbd{display:none}
body.touch .dive-down{bottom:calc(max(18px,env(safe-area-inset-bottom)) + 150px)}
body.can-end .dive-down{bottom:calc(max(16px,env(safe-area-inset-bottom)) + 206px)}
@media (max-height:500px){body.touch .dive-down{bottom:calc(max(10px,env(safe-area-inset-bottom)) + 64px)}}
/* der Flug zum Einstieg: nur das Bild und der Name des Platzes */
body.flying #dive > :not(.fly-title){visibility:hidden}
.fly-title{position:fixed;left:0;right:0;bottom:12vh;z-index:8;display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;pointer-events:none;text-shadow:0 2px 16px rgba(0,0,0,.6);animation:flyIn 1.2s ease-out}
.fly-title small{font-family:var(--cond);font-size:16px;letter-spacing:.24em;text-transform:uppercase;color:#ffcb81}
.fly-title b{font-family:var(--display);font-weight:900;font-size:clamp(36px,7vw,72px);line-height:1.05;color:var(--cream)}
.fly-title span{margin-top:10px;font-size:13px;color:rgba(248,244,232,.75)}
@keyframes flyIn{from{opacity:0;transform:translateY(12px)}}
@media (prefers-reduced-motion:reduce){.fly-title{animation:none}}
/* Arcade beim Erkunden am Handy: keine Handzeichen (die braucht nur der Kurs); die Ventile des Trockenanzugs nie */
body.relaxed.free-dive .tbtns [data-tap="signal"],body.relaxed #suitInBtn,body.relaxed #suitOutBtn,body.relaxed #dryInfo{display:none!important}
#taskText:empty{display:none}
/* Arcade: „Aktion“ nur, wenn hier etwas zu tun ist (Glocke, Briefkasten, Truhe, Kurs), dann leuchtet sie kurz auf */
body.relaxed:not(.can-act) .tbtns [data-tap="action"]{display:none}
body.relaxed.can-act .tbtns [data-tap="action"]{border-color:var(--amber);animation:actPulse 1.4s ease-in-out infinite}
@keyframes actPulse{50%{box-shadow:0 0 0 6px rgba(244,163,64,.25)}}
@media (prefers-reduced-motion:reduce){body.relaxed.can-act .tbtns [data-tap="action"]{animation:none}}
body.relaxed #cRate{display:none} /* Arcade: keine Steig- und Sinkrate */
