/* Helpiqo Trupp – Logik in web/src/trupp/ (npm run build:trupp) */
body.tp-body { background: radial-gradient(ellipse at top, #38bdf8, #0c4a6e 55%, #082f49); color: #0f172a; min-height: 100vh; }
.tp-body .site-header { background: rgba(8,47,73,.7); border-color: rgba(255,255,255,.12); }
.tp-body .site-header a, .tp-body .logo { color: #fff; }
.tp-body .site-footer { background: transparent; border-color: rgba(255,255,255,.15); color: #bae6fd; }
.tp-body .site-footer a { color: #bae6fd; }
.tp-main { max-width: 640px; margin: 0 auto; padding: 12px 14px 40px; }
.tp-menu { display: flex; flex-direction: column; gap: 12px; }
.tp-menu [hidden], .tp-spiel [hidden], .tp-pop[hidden] { display: none !important; }
.tp-klein { font-size: .86rem; color: #475569; margin: 6px 0; }
.tp-klein.mitte { text-align: center; } .tp-menu > .tp-klein a { color: #e0f2fe; }

/* Kopfleiste */
.tp-leiste { display: flex; align-items: center; gap: 8px; }
.tp-geld { background: rgba(0,0,0,.35); color: #fde047; font-weight: 900; border-radius: 999px; padding: 7px 14px; font-size: 1.1rem; box-shadow: inset 0 0 0 2px rgba(253,224,71,.4); }
.tp-truhe { flex: 1; display: flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 6px 12px; background: rgba(0,0,0,.35); color: #fff; font: inherit; font-weight: 900; cursor: pointer; }
.tp-tbar { flex: 1; height: 9px; background: rgba(255,255,255,.2); border-radius: 5px; overflow: hidden; }
.tp-tbar i { display: block; height: 100%; background: linear-gradient(90deg, #fde047, #f59e0b); }
.tp-truhe .ico { font-size: 1.25rem; }
.tp-truhe.bereit { animation: tpPuls 1s ease-in-out infinite; box-shadow: 0 0 0 3px #fde047; }
.tp-rund { width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(0,0,0,.35); color: #fff; font-size: 1.15rem; cursor: pointer; flex: none; }
.tp-tagesreihe { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tp-tagesk { position: relative; border: 0; border-radius: 18px; padding: 8px 4px 7px; background: linear-gradient(180deg, #ffffff, #dbeafe); font: inherit; cursor: pointer; box-shadow: 0 4px 0 rgba(0,0,0,.2); display: flex; flex-direction: column; align-items: center; gap: 1px; }
.tp-tagesk span { font-size: 1.6rem; line-height: 1.1; }
.tp-tagesk small { font-weight: 800; font-size: .74rem; color: #0f172a; }
.tp-tagesk.punkt::after { content: "!"; position: absolute; top: -5px; right: -3px; width: 20px; height: 20px; border-radius: 50%; background: #ef4444; color: #fff; font-weight: 900; font-size: .8rem; display: grid; place-items: center; animation: tpHuepf 1.2s ease-in-out infinite; }
.tp-tagesk:active, .tp-btn:active, .tp-up:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,.2); }

/* Held */
.tp-hero { --h1: #7cc4f5; --h2: #2f6f9f; position: relative; text-align: center; color: #fff; border-radius: 26px; padding: 16px 14px 18px; background: linear-gradient(180deg, var(--h1), var(--h2)); box-shadow: 0 14px 30px rgba(0,0,0,.35); overflow: hidden; }
.tp-hero::before { content: ""; position: absolute; left: 50%; bottom: -40%; width: 70%; height: 120%; transform: translateX(-50%) perspective(200px) rotateX(55deg); background: repeating-linear-gradient(180deg, rgba(255,255,255,.18) 0 14px, rgba(255,255,255,.05) 14px 28px); border-radius: 12px; }
.tp-hero > * { position: relative; }
.tp-hero h1 { margin: 4px 0 10px; font-size: clamp(2.1rem, 9vw, 3.1rem); font-weight: 900; letter-spacing: -1px; text-shadow: 0 4px 0 rgba(0,0,0,.3); }
.tp-welt { display: flex; justify-content: space-between; align-items: center; font-weight: 900; text-shadow: 0 2px 0 rgba(0,0,0,.3); }
.tp-welt small { background: rgba(0,0,0,.25); border-radius: 999px; padding: 3px 10px; font-size: .78rem; }
.tp-pfad { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; margin-bottom: 14px; }
.tp-knoten { width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.25); font-weight: 900; font-size: .78rem; color: #fff; border: 2px solid rgba(255,255,255,.5); }
.tp-knoten.ok { background: #22c55e; color: #fde047; font-size: .55rem; letter-spacing: -1px; }
.tp-knoten.jetzt { background: #fde047; color: #713f12; transform: scale(1.25); box-shadow: 0 0 0 4px rgba(253,224,71,.4); animation: tpPuls 1.4s ease-in-out infinite; }
.tp-knoten.boss { background: #7f1d1d; font-size: .95rem; } .tp-knoten.boss.jetzt { background: #ef4444; }
.tp-knoten.riese, .tp-knoten.bonus { font-size: .95rem; }
.tp-play { border: 0; border-radius: 22px; padding: 12px 40px 10px; font: inherit; cursor: pointer; background: linear-gradient(180deg, #ffe066, #f59e0b); color: #4a2a00; box-shadow: 0 6px 0 #b45309, 0 12px 24px rgba(0,0,0,.35); display: inline-flex; flex-direction: column; align-items: center; animation: tpPuls 1.6s ease-in-out infinite; }
.tp-play span { font-size: 1.6rem; font-weight: 900; }
.tp-play small { font-weight: 800; font-size: .82rem; opacity: .85; }
.tp-play:active { transform: translateY(4px); box-shadow: 0 2px 0 #b45309; }

/* Kästen, Knöpfe */
.tp-box { background: #fff; border-radius: 22px; padding: 14px 14px; box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.tp-box h2 { margin: 0 0 10px; font-size: 1.08rem; }
.tp-btn { border: 0; border-radius: 16px; padding: 10px 16px; font: inherit; font-weight: 900; background: #e2e8f0; color: #0f172a; cursor: pointer; box-shadow: 0 4px 0 rgba(0,0,0,.18); }
.tp-btn.gold { background: linear-gradient(180deg, #ffe066, #f7b733); color: #4a2a00; }
.tp-btn.big { font-size: 1.15rem; padding: 12px 22px; }
.tp-btn:disabled { opacity: .5; cursor: default; }
.tp-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.tp-how ul { margin: 10px 0 0; padding-left: 18px; line-height: 1.5; }
.tp-ups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tp-ups.zwei { grid-template-columns: repeat(2, 1fr); margin-top: 8px; }
.tp-up { position: relative; border: 2px solid #e2e8f0; border-radius: 18px; background: linear-gradient(180deg, #f8fafc, #e2e8f0); padding: 8px 6px 6px; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 1px; text-align: center; box-shadow: 0 4px 0 rgba(0,0,0,.15); }
.tp-up .sym { font-size: 1.7rem; line-height: 1.1; }
.tp-up b { font-size: .86rem; } .tp-up .stufe { font-size: .7rem; color: #64748b; font-weight: 800; }
.tp-up .txt { font-size: .68rem; color: #475569; min-height: 2.1em; line-height: 1.15; }
.tp-up .preis { margin-top: 3px; background: #cbd5e1; border-radius: 999px; padding: 3px 9px; font-weight: 900; font-size: .82rem; }
.tp-up.kann { border-color: #22c55e; background: linear-gradient(180deg, #f0fdf4, #bbf7d0); }
.tp-up.kann .preis { background: #22c55e; color: #fff; }
.tp-up.kann::after { content: "⬆"; position: absolute; top: -8px; right: -6px; background: #22c55e; color: #fff; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; animation: tpHuepf 1s ease-in-out infinite; }
.tp-up.klein { padding: 5px 4px; } .tp-up.klein .txt { display: none; } .tp-up.klein .sym { font-size: 1.3rem; }
.tp-up.gekauft { animation: tpGekauft .35s; }
.tp-up.wackel { animation: tpWackel .35s; }
.tp-helme { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.tp-helm { border: 2px solid #e2e8f0; border-radius: 16px; background: #f8fafc; padding: 7px 4px; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.tp-helm .kreis { width: 38px; height: 30px; border-radius: 50% 50% 40% 40%; box-shadow: inset 0 -3px 0 rgba(0,0,0,.2); }
.tp-helm small { font-size: .72rem; font-weight: 800; } .tp-helm small.p { color: #64748b; font-weight: 700; }
.tp-helm.an { border-color: #0284c7; background: #e0f2fe; } .tp-helm.zu { opacity: .8; }

/* Spiel */
body.tp-voll { overflow: hidden; }
body.tp-voll .site-header, body.tp-voll .site-footer { display: none !important; }
body.tp-voll .tp-main { max-width: none; padding: 0; }
.tp-spiel { position: fixed; inset: 0; z-index: 50; background: #0b1220; touch-action: none; user-select: none; -webkit-user-select: none; }
.tp-spiel canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tp-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 8px; padding: calc(8px + env(safe-area-inset-top)) 10px 8px; color: #fff; pointer-events: none; }
.tp-top > * { pointer-events: auto; }
.tp-lvl { display: flex; flex-direction: column; line-height: 1.1; text-shadow: 0 2px 3px rgba(0,0,0,.6); min-width: 82px; }
.tp-lvl b { font-size: 1.05rem; } .tp-lvl small { font-size: .74rem; font-weight: 800; }
.tp-fort { flex: 1; display: flex; align-items: center; gap: 5px; }
.tp-fort .bar { flex: 1; height: 12px; border-radius: 7px; background: rgba(0,0,0,.4); overflow: hidden; border: 2px solid rgba(255,255,255,.55); }
.tp-fort .bar i { display: block; height: 100%; background: linear-gradient(90deg, #38bdf8, #a7f3d0); }
.tp-fort span { font-size: 1.15rem; filter: drop-shadow(0 2px 2px rgba(0,0,0,.5)); }
.tp-kills { background: rgba(0,0,0,.4); border-radius: 999px; padding: 4px 10px; font-weight: 900; font-size: .85rem; }
.tp-boss { position: absolute; left: 50%; top: calc(56px + env(safe-area-inset-top)); transform: translateX(-50%); width: min(86vw, 420px); text-align: center; color: #fff; font-weight: 900; text-shadow: 0 2px 3px #000; }
.tp-boss .bar { height: 14px; border-radius: 8px; background: rgba(0,0,0,.5); border: 2px solid #fff; overflow: hidden; margin-top: 3px; }
.tp-boss .bar i { display: block; height: 100%; background: linear-gradient(90deg, #ef4444, #f97316); transition: width .15s; }
.tp-tipp { position: absolute; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(88vw, 440px); background: rgba(255,251,234,.96); color: #422006; font-weight: 800; border-radius: 16px; padding: 9px 13px; text-align: center; box-shadow: 0 8px 20px rgba(0,0,0,.35); font-size: .92rem; pointer-events: none; }
.tp-ende, .tp-pause, .tp-pop { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: rgba(2,6,23,.55); padding: 14px; overflow-y: auto; }
.tp-pop { z-index: 90; }
.tp-endbox { position: relative; background: #fff; border-radius: 26px; padding: 18px 16px 16px; width: min(94vw, 440px); text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.5); animation: tpRein .3s ease-out; }
.tp-endbox h2 { margin: 2px 0 6px; font-size: 1.5rem; }
.tp-ende.sieg .tp-endbox { background: linear-gradient(180deg, #fffbea, #fff 40%); }
.tp-ende:not(.sieg) .tp-endbox h2 { color: #b91c1c; }
.tp-sterne { font-size: 2.6rem; letter-spacing: 6px; color: #cbd5e1; line-height: 1; }
.tp-sterne span { display: inline-block; }
.tp-sterne span.an { color: #f59e0b; animation: tpStern .45s ease-out both; text-shadow: 0 3px 0 #b45309; }
.tp-lohn { font-size: 2rem; font-weight: 900; color: #b45309; margin: 4px 0; }
.tp-extra { font-weight: 800; color: #ea580c; margin: 2px 0 6px; }
.tp-endups { background: #f1f5f9; border-radius: 16px; padding: 8px; margin: 10px 0 4px; }
.tp-endups .kopf { display: flex; justify-content: space-between; font-size: .85rem; margin: 0 4px 6px; font-weight: 800; }
.tp-endups .kopf b.blink { color: #15803d; animation: tpPuls 1s infinite; }
.tp-x { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 1.3rem; cursor: pointer; }
.tp-toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 30px); opacity: 0; transition: .25s; background: #0f172a; color: #fff; font-weight: 800; padding: 10px 16px; border-radius: 14px; z-index: 100; pointer-events: none; max-width: 90vw; text-align: center; }
.tp-toast.an { opacity: 1; transform: translate(-50%, 0); }
.tp-kal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.tp-tag { border-radius: 14px; background: #f1f5f9; padding: 6px 2px; display: flex; flex-direction: column; align-items: center; font-weight: 800; }
.tp-tag:last-child { grid-column: span 2; background: #fef3c7; }
.tp-tag b { font-size: 1.4rem; } .tp-tag small { font-size: .7rem; color: #64748b; }
.tp-tag.ok { background: #dcfce7; opacity: .7; } .tp-tag.jetzt { background: #fde047; box-shadow: 0 0 0 3px #f59e0b; animation: tpPuls 1.2s infinite; }
.tp-mis { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.tp-mzeile { display: flex; align-items: center; gap: 8px; background: #f8fafc; border-radius: 14px; padding: 8px 10px; }
.tp-mzeile .info { flex: 1; display: flex; flex-direction: column; gap: 3px; } .tp-mzeile small { color: #64748b; font-size: .75rem; }
.tp-mzeile.ok { opacity: .55; } .tp-mzeile.bonus { background: #fef3c7; }
.tp-mbar { height: 8px; border-radius: 4px; background: #e2e8f0; overflow: hidden; } .tp-mbar i { display: block; height: 100%; background: #22c55e; }
.tp-kas .gross, .tp-pop .gross { font-size: 2.2rem; font-weight: 900; color: #b45309; margin: 6px 0; }
.tp-truhe-auf { font-size: 4rem; animation: tpTruhe .7s ease-out; }

@keyframes tpPuls { 50% { transform: scale(1.05); } }
@keyframes tpHuepf { 50% { transform: translateY(-4px); } }
@keyframes tpRein { from { transform: scale(.85); opacity: 0; } }
@keyframes tpStern { from { transform: scale(2.4) rotate(-30deg); opacity: 0; } }
@keyframes tpGekauft { 50% { transform: scale(1.1); } }
@keyframes tpWackel { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes tpTruhe { 0% { transform: scale(.3) rotate(-20deg); } 60% { transform: scale(1.3) rotate(10deg); } }
@media (prefers-reduced-motion: reduce) { .tp-play, .tp-knoten.jetzt, .tp-truhe.bereit, .tp-tagesk.punkt::after, .tp-up.kann::after, .tp-tag.jetzt { animation: none; } }
@media (max-width: 400px) { .tp-up b { font-size: .76rem; } .tp-tagesk small { font-size: .66rem; } }

/* erster Besuch: nur Start und Ziel */
.tp-menu.erst .tp-tagesreihe, .tp-menu.erst .tp-box, .tp-menu.erst .tp-truhe { display: none; }
.tp-erstziel { margin: 12px auto 0; max-width: 30ch; align-self: center; text-align: center; font-weight: 800; font-size: 1.02rem; line-height: 1.35; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.45); }
