/* Helpiqo Burgduell – Logik in web/src/burgduell/ (npm run build:burgduell) */
body.bd-body { background: radial-gradient(ellipse at top, #4c9a3a, #1f3d1a 70%); color: #10210d; min-height: 100vh; }
.bd-body .site-header { background: rgba(15,35,12,.75); border-color: rgba(255,255,255,.12); }
.bd-body .site-header a, .bd-body .logo { color: #fff; }
.bd-body .site-footer { background: transparent; border-color: rgba(255,255,255,.15); color: #d9f99d; }
.bd-body .site-footer a { color: #d9f99d; }
.bd-main { max-width: 760px; margin: 0 auto; padding: 16px 16px 40px; }
.bd-menu { display: flex; flex-direction: column; gap: 14px; }
.bd-menu [hidden], .bd-spiel [hidden] { display: none !important; }
.bd-hero { text-align: center; color: #fff; border-radius: 26px; padding: 26px 20px 20px; background: linear-gradient(180deg, rgba(59,130,246,.35), rgba(0,0,0,0) 40%, rgba(239,68,68,.35)), url("/burgduell/og.jpg") center / cover; box-shadow: 0 16px 36px rgba(0,0,0,.35); position: relative; overflow: hidden; }
.bd-hero::before { content: ""; position: absolute; inset: 0; background: rgba(10,25,8,.55); }
.bd-hero > * { position: relative; }
.bd-hero h1 { margin: 0 0 6px; font-size: clamp(2.6rem, 11vw, 4rem); font-weight: 900; letter-spacing: -1px; text-shadow: 0 4px 0 rgba(0,0,0,.35); }
.bd-hero p { max-width: 520px; margin: 0 auto 12px; font-weight: 600; }
.bd-rang { display: flex; gap: 12px; align-items: center; justify-content: center; background: rgba(255,255,255,.14); border-radius: 18px; padding: 10px 14px; max-width: 360px; margin: 6px auto; text-align: left; }
.bd-rang .sym { font-size: 2.4rem; }
.bd-rang b { font-size: 1.15rem; }
.bd-rbar { height: 8px; border-radius: 4px; background: rgba(0,0,0,.35); overflow: hidden; margin: 4px 0; min-width: 200px; }
.bd-rbar i { display: block; height: 100%; background: linear-gradient(90deg, #fde047, #f59e0b); }
.bd-rang small { font-size: .78rem; opacity: .9; }
.bd-stat { font-size: .85rem; opacity: .9; min-height: 1em; }
.bd-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 10px; }
.bd-btn { border: 0; border-radius: 16px; padding: 11px 18px; font: inherit; font-weight: 900; background: #fff; color: #10210d; cursor: pointer; box-shadow: 0 4px 0 rgba(0,0,0,.25); }
.bd-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,.25); }
.bd-btn:disabled { opacity: .5; }
.bd-btn.gold { background: linear-gradient(180deg, #ffe066, #f7b733); color: #4a2a00; }
.bd-btn.big { font-size: 1.3rem; padding: 14px 38px; border-radius: 20px; animation: bdPuls 1.6s ease-in-out infinite; }
@keyframes bdPuls { 50% { transform: scale(1.05); } }
.bd-box { background: #fff; border-radius: 22px; padding: 16px 18px; box-shadow: 0 10px 26px rgba(0,0,0,.25); }
.bd-box h2 { margin: 0 0 6px; font-size: 1.2rem; }
.bd-small { color: #4b5d46; font-size: .88rem; margin: 4px 0 10px; }
.bd-menu > .bd-small, .bd-menu > .bd-small a { color: #d9f99d; }
.bd-how ul { margin: 6px 0 0; padding-left: 18px; line-height: 1.5; }
.bd-gegs { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 10px; }
.bd-geg { position: relative; text-align: left; border: 2px solid #e5ecd9; background: #f6faf0; border-radius: 16px; padding: 10px 10px 10px 46px; font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 2px; min-height: 66px; }
.bd-geg:hover:not(:disabled) { border-color: #f7b733; }
.bd-geg .nr { position: absolute; left: 10px; top: 12px; width: 28px; height: 28px; border-radius: 50%; background: #ef4444; color: #fff; display: grid; place-items: center; font-weight: 900; }
.bd-geg.ok .nr { background: #22c55e; }
.bd-geg small { color: #4b5d46; font-size: .76rem; }
.bd-geg.zu { opacity: .5; cursor: default; }
.bd-sams { display: flex; flex-wrap: wrap; gap: 6px; }
.bd-sam { background: #eef6e4; border-radius: 999px; padding: 5px 11px; font-weight: 800; font-size: .85rem; }
.bd-sam.zu { opacity: .45; }

body.bd-voll { overflow: hidden; }
body.bd-voll .site-header, body.bd-voll .site-footer { display: none !important; }
.bd-spiel { position: fixed; inset: 0; z-index: 60; background: #2c5a24; user-select: none; -webkit-user-select: none; }
#bdCv { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; display: block; }
.bd-top { position: absolute; top: 0; left: 0; right: 0; display: flex; gap: 6px; align-items: center; padding: calc(6px + env(safe-area-inset-top)) 8px 6px; background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,0)); }
.bd-top button { border: 0; border-radius: 12px; background: #fff; font: inherit; font-weight: 900; min-width: 36px; height: 34px; cursor: pointer; box-shadow: 0 3px 0 rgba(0,0,0,.25); }
.bd-hp { flex: 1; min-width: 0; color: #fff; font-weight: 800; font-size: .76rem; text-shadow: 0 1px 2px #000; }
.bd-hp span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-hpbar { position: relative; height: 14px; border-radius: 8px; background: rgba(0,0,0,.45); overflow: hidden; box-shadow: 0 0 0 2px rgba(255,255,255,.7); }
.bd-hpbar i { position: absolute; inset: 0 auto 0 0; transition: width .2s; }
.bd-hp.gegner i { background: linear-gradient(180deg, #f87171, #dc2626); }
.bd-hp.ich i { background: linear-gradient(180deg, #60a5fa, #2563eb); }
.bd-hpbar b { position: relative; display: block; text-align: center; font-size: .7rem; line-height: 14px; }
.bd-zeit { background: #fff; color: #10210d; border-radius: 10px; padding: 6px 8px; font-weight: 900; font-variant-numeric: tabular-nums; box-shadow: 0 3px 0 rgba(0,0,0,.25); }
.bd-zeit.doppelt { background: #7c3aed; color: #fff; animation: bdPuls 1s infinite; }
.bd-tipp { position: absolute; left: 50%; top: calc(58px + env(safe-area-inset-top)); transform: translateX(-50%); width: min(92%, 480px); background: #fffbea; color: #4a3200; border-radius: 16px; padding: 10px 14px; font-weight: 700; font-size: .88rem; box-shadow: 0 6px 18px rgba(0,0,0,.3); pointer-events: none; }
.bd-toast { position: absolute; left: 50%; top: 34%; transform: translate(-50%, -8px); opacity: 0; transition: .25s; background: rgba(16,33,13,.9); color: #fff; padding: 8px 16px; border-radius: 999px; font-weight: 900; pointer-events: none; text-align: center; max-width: 90%; }
.bd-toast.zeig { opacity: 1; transform: translate(-50%, 0); }
.bd-toast.gut { background: #16a34a; }
.bd-toast.schlecht { background: #dc2626; }
.bd-info { position: absolute; left: 50%; bottom: calc(132px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: #fde047; color: #422006; padding: 6px 14px; border-radius: 999px; font-weight: 900; font-size: .84rem; pointer-events: none; white-space: nowrap; box-shadow: 0 4px 10px rgba(0,0,0,.3); }
.bd-unten { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 8px calc(8px + env(safe-area-inset-bottom)); background: linear-gradient(0deg, rgba(0,0,0,.6), rgba(0,0,0,0)); display: flex; flex-direction: column; gap: 5px; }
.bd-mana { display: flex; align-items: center; gap: 6px; }
.bd-mana .tropfen { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #a5f3fc, #0284c7); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: .9rem; box-shadow: 0 2px 0 rgba(0,0,0,.3); }
.bd-mbar { flex: 1; height: 14px; border-radius: 8px; background: rgba(0,0,0,.45); overflow: hidden; box-shadow: 0 0 0 2px rgba(255,255,255,.6); background-image: repeating-linear-gradient(90deg, transparent 0 calc(100% / 14 - 2px), rgba(255,255,255,.35) calc(100% / 14 - 2px) calc(100% / 14)); }
.bd-mbar i { display: block; height: 100%; background: linear-gradient(180deg, #67e8f9, #0891b2); transition: width .1s linear; }
.bd-karten { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.bd-karten::-webkit-scrollbar { display: none; }
.bd-karte { position: relative; flex: 0 0 auto; width: 64px; height: 76px; border: 3px solid #fff; border-radius: 14px; background: linear-gradient(180deg, #fef3c7, #fcd34d); font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 4px 0 rgba(0,0,0,.35); overflow: hidden; padding: 0; }
.bd-karte::after { content: ""; position: absolute; inset: 0; background: rgba(15,23,42,.5); transform-origin: top; transform: scaleY(calc(1 - var(--l, 1))); pointer-events: none; }
.bd-karte .sym { font-size: 1.7rem; line-height: 1; }
.bd-karte small { font-size: .58rem; font-weight: 900; line-height: 1.05; text-align: center; padding: 0 2px; }
.bd-karte em { position: absolute; top: 2px; left: 2px; background: #0284c7; color: #fff; font-style: normal; font-weight: 900; font-size: .72rem; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; z-index: 1; }
.bd-karte-zu { position: relative; flex: 0 0 auto; width: 64px; height: 76px; border: 3px dashed rgba(255,255,255,.55); border-radius: 14px; background: rgba(15,23,42,.45); color: #e2e8f0; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.bd-karte-zu .sym { font-size: 1.7rem; line-height: 1; filter: grayscale(1); opacity: .55; }
.bd-karte-zu small { font-size: .58rem; font-weight: 900; line-height: 1.05; text-align: center; padding: 0 2px; opacity: .8; }
.bd-karte-zu i { position: absolute; top: 1px; right: 3px; font-style: normal; font-size: .8rem; }
.bd-karte[aria-pressed="true"] { border-color: #fde047; transform: translateY(-6px); box-shadow: 0 0 0 3px #f59e0b, 0 8px 0 rgba(0,0,0,.35); }
.bd-pop { position: absolute; width: 240px; background: #fff; border-radius: 18px; padding: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.45); }
.bd-pop h3 { margin: 0 0 8px; font-size: 1rem; padding-right: 26px; }
.bd-pop p { margin: 0 0 6px; font-size: .85rem; color: #4b5d46; }
.bd-pop .bd-btn { width: 100%; margin-top: 6px; padding: 8px; font-size: .88rem; }
.bd-x { position: absolute; right: 8px; top: 8px; border: 0; background: #eef2e8; border-radius: 50%; width: 26px; height: 26px; cursor: pointer; font-weight: 900; }
.bd-wahl { display: grid; grid-template-columns: 30px 1fr auto; grid-template-rows: auto auto; width: 100%; border: 2px solid #e5ecd9; background: #f6faf0; border-radius: 12px; padding: 5px 8px; margin-top: 5px; text-align: left; font: inherit; cursor: pointer; align-items: center; column-gap: 6px; }
.bd-wahl span { grid-row: span 2; font-size: 1.4rem; }
.bd-wahl b { font-size: .88rem; }
.bd-wahl em { font-style: normal; font-weight: 900; color: #0369a1; font-size: .82rem; }
.bd-wahl small { grid-column: 2 / 4; font-size: .72rem; color: #4b5d46; }
.bd-wahl:disabled { opacity: .5; cursor: default; }
.bd-ende { position: absolute; inset: 0; background: rgba(5,15,5,.6); display: grid; place-items: center; padding: 16px; }
.bd-endbox { background: #fff; border-radius: 26px; padding: 22px; width: min(420px, 100%); text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.5); animation: bdRein .4s cubic-bezier(.3,1.5,.5,1); }
@keyframes bdRein { from { transform: scale(.7); opacity: 0; } }
.bd-endbox h2 { margin: 0 0 6px; font-size: 1.8rem; }
.bd-pok { font-size: 1.15rem; font-weight: 900; color: #b45309; }
.bd-neu { background: #ecfccb; border-radius: 12px; padding: 8px; font-weight: 900; color: #3f6212; }
.bd-serie { font-weight: 900; color: #dc2626; min-height: 1em; }
@media (prefers-reduced-motion: reduce) { .bd-btn.big, .bd-zeit.doppelt, .bd-endbox { animation: none; } }
