@font-face { font-family: 'Gabarito'; src: url('./fonts/gabarito.woff2') format('woff2'); font-weight: 400 900; font-display: swap; }
:root {
  --ink: #1d1530; --cream: #fff6e6; --cream2: #ffeccc; --pink: #ff2e88; --pink2: #d4136a; --yellow: #ffd23f; --teal: #19c3c0; --teal2: #0d8f8d; --lilac: #8e6bff;
  --st: env(safe-area-inset-top, 0px); --sb: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { background: var(--cream); color: var(--ink); font-family: 'Gabarito', system-ui, sans-serif; overflow: hidden; overscroll-behavior: none; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
h1, h2, p { margin: 0; }

.btn { border: 3px solid var(--ink); border-radius: 16px; padding: 12px 20px; font-weight: 800; font-size: 18px; min-height: 52px; background: #fff; box-shadow: 0 5px 0 var(--ink); transition: transform .08s ease, box-shadow .08s ease, filter .12s; }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.btn:focus-visible, .seg button:focus-visible, .names input:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.btn.primary { background: var(--yellow); }
.btn.primary:hover { filter: brightness(1.04); }
.btn.big { font-size: 22px; padding: 14px 24px; min-height: 60px; }
.btn.ghost { background: transparent; box-shadow: none; border-color: transparent; text-decoration: underline; text-underline-offset: 4px; }
.btn.icon { width: 46px; height: 46px; min-height: 46px; padding: 0; display: grid; place-items: center; font-size: 22px; border-radius: 14px; box-shadow: 0 3px 0 var(--ink); }
.btn.icon svg { width: 22px; height: 22px; fill: currentColor; }

.screen { position: fixed; inset: 0; display: flex; flex-direction: column; }
.back { position: absolute; top: calc(12px + var(--st)); left: 14px; z-index: 3; color: var(--ink); font-weight: 800; text-decoration: none; background: #fff; border: 3px solid var(--ink); border-radius: 12px; padding: 6px 12px; box-shadow: 0 3px 0 var(--ink); }

/* Start */
#menu { overflow-y: auto; }
.art { display: block; width: 100%; flex: 0 0 auto; }
.art img { display: block; width: 100%; height: min(46vh, 440px); object-fit: cover; object-position: 36% 45%; }
.menu-body { padding: 18px 22px calc(26px + var(--sb)); display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
.kicker { font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: 14px; color: var(--pink2); }
h1 { font-size: clamp(54px, 15vw, 104px); line-height: .86; font-weight: 900; letter-spacing: -.03em; text-transform: uppercase; }
h1 span { display: block; color: var(--pink); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 0 6px 0 var(--ink); }
.lead { font-size: 19px; line-height: 1.4; max-width: 34ch; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.col { flex-direction: column; align-items: stretch; width: min(420px, 100%); }
@media (min-width: 900px) {
  #menu { flex-direction: row; align-items: center; }
  .art { position: absolute; inset: 0; }
  .art img { width: 100%; height: 100%; max-height: none; object-position: 20% 50%; }
  .menu-body { position: relative; margin-left: auto; margin-right: 6vw; width: 460px; background: var(--cream); border: 4px solid var(--ink); border-radius: 28px; box-shadow: 0 10px 0 var(--ink); padding: 34px; }
}

/* Bögen */
.sheet { position: fixed; inset: 0; z-index: 30; background: rgba(29, 21, 48, .55); display: grid; place-items: center; padding: 18px; }
.card { background: var(--cream); border: 4px solid var(--ink); border-radius: 24px; box-shadow: 0 8px 0 var(--ink); padding: 24px; width: min(480px, 100%); max-height: calc(100vh - 36px); overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.card h2 { font-size: 30px; font-weight: 900; }
.rules { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 17px; line-height: 1.4; }
.hint { font-size: 15px; line-height: 1.4; color: #4a4060; }

/* Seiten */
.page { background: var(--cream); }
.bar { display: flex; align-items: center; gap: 12px; padding: calc(12px + var(--st)) 16px 10px; }
.bar h2 { font-size: 26px; font-weight: 900; }
.page-body { flex: 1; overflow-y: auto; padding: 6px 16px 16px; display: flex; flex-direction: column; gap: 14px; max-width: 560px; width: 100%; margin: 0 auto; }
.page-body.center { align-items: center; justify-content: flex-start; text-align: center; }
.page-body > * { flex-shrink: 0; }
.page-body.center > :first-child { margin-top: auto; }
.page-body.center > :last-child { margin-bottom: auto; }
.foot { padding: 10px 16px calc(14px + var(--sb)); max-width: 560px; width: 100%; margin: 0 auto; }
.foot .btn { width: 100%; }

.names { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.names li { display: flex; gap: 10px; align-items: center; }
.names .dot { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--ink); flex: 0 0 auto; display: grid; place-items: center; font-weight: 900; font-size: 15px; }
.names input { flex: 1; min-width: 0; font: inherit; font-size: 19px; font-weight: 700; padding: 11px 14px; border: 3px solid var(--ink); border-radius: 14px; background: #fff; color: var(--ink); }
.names .del { width: 44px; height: 44px; min-height: 44px; padding: 0; font-size: 22px; box-shadow: 0 3px 0 var(--ink); }
.add { align-self: flex-start; }
.opts { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.opt > span { font-weight: 800; font-size: 17px; }
.seg { display: inline-flex; border: 3px solid var(--ink); border-radius: 14px; overflow: hidden; background: #fff; }
.seg button { border: 0; background: transparent; padding: 10px 14px; font-weight: 800; font-size: 15px; min-height: 44px; }
.seg button + button { border-left: 3px solid var(--ink); }
.seg button.on { background: var(--teal); color: #fff; }

/* Spiel */
#play { transition: background-color .5s ease; }
#play.whisper { background: #2a2140; color: #fff; }
.play-bar { padding-bottom: 4px; }
.chips { list-style: none; margin: 0; padding: 2px 2px 8px; display: flex; gap: 8px; overflow-x: auto; flex: 1; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips li { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 10px; border: 3px solid var(--ink); border-radius: 14px; background: #fff; color: var(--ink); font-weight: 800; font-size: 14px; transition: transform .2s, background .2s; }
.chips li.cur { background: var(--yellow); transform: translateY(-2px); }
.chips li.out { opacity: .35; text-decoration: line-through; }
.chips .hearts { display: flex; gap: 2px; }
.chips .hearts svg { width: 12px; height: 12px; fill: var(--pink); }
.chips .hearts svg.lost { fill: #d8cfe0; }
.stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 0 16px; min-height: 0; }
.bomb-wrap { position: relative; width: min(56vw, 38vh, 280px); aspect-ratio: 200 / 220; }
.bomb { width: 100%; height: 100%; overflow: visible; transform-origin: 50% 60%; animation: wob 1.1s ease-in-out infinite; }
.bomb .spark { animation: spk .18s steps(2) infinite; }
.ring { position: absolute; left: 50%; top: 60%; width: 76%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%) scale(.9); border: 4px solid var(--pink); opacity: 0; pointer-events: none; }
.ring.pulse { animation: ring .5s ease-out; }
@keyframes wob { 0%, 100% { transform: rotate(-3deg) } 50% { transform: rotate(3deg) } }
@keyframes spk { 0% { transform: translate(160px, 12px) scale(1) } 100% { transform: translate(160px, 12px) scale(1.25) rotate(20deg) } }
@keyframes ring { 0% { opacity: .9; transform: translate(-50%, -50%) scale(.9) } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.35) } }
.task { width: min(520px, 100%); background: #fff; color: var(--ink); border: 4px solid var(--ink); border-radius: 22px; box-shadow: 0 7px 0 var(--ink); padding: 14px 18px 16px; text-align: center; position: relative; }
.task.flip { animation: flip .35s ease; }
@keyframes flip { 0% { transform: scale(.9) rotate(-2deg) } 60% { transform: scale(1.04) rotate(1deg) } 100% { transform: none } }
.task-kind { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--teal2); }
.task-text { font-size: clamp(28px, 8vw, 44px); line-height: 1.05; font-weight: 900; margin-top: 4px; text-wrap: balance; }
.task-badge { position: absolute; top: -16px; right: -8px; background: var(--pink); color: #fff; border: 3px solid var(--ink); border-radius: 12px; padding: 4px 10px; font-weight: 900; font-size: 15px; transform: rotate(6deg); }
.play-foot { text-align: center; display: flex; flex-direction: column; gap: 8px; }
.holder { font-size: 20px; font-weight: 700; }
.holder span { font-weight: 900; font-size: 26px; color: var(--pink2); }
#play.whisper .holder span { color: var(--yellow); }
.pass { background: var(--pink); color: #fff; font-size: 26px; min-height: 84px; border-radius: 22px; letter-spacing: .01em; }
.pass:disabled { filter: grayscale(.6) brightness(.9); }
.pass.ready { background: var(--yellow); color: var(--ink); }
.btn:disabled { opacity: .55; cursor: default; }
.btn:disabled:active { transform: none; box-shadow: 0 5px 0 var(--ink); }
.next { font-size: 15px; opacity: .75; font-weight: 700; }
.twist { position: fixed; inset: 0; z-index: 25; display: grid; place-items: center; align-content: center; gap: 8px; background: rgba(255, 46, 136, .92); color: #fff; text-align: center; padding: 20px; animation: tw .3s ease; }
.twist p { font-size: clamp(36px, 10vw, 64px); font-weight: 900; text-transform: uppercase; line-height: 1; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 0 5px 0 var(--ink); }
.twist-ic { width: 90px; height: 90px; color: #fff; }
.twist .twist-big { font-size: clamp(80px, 24vw, 140px); line-height: .9; }
.twist .twist-sub { font-size: 21px; font-weight: 800; text-transform: none; -webkit-text-stroke: 0; text-shadow: none; max-width: 26ch; line-height: 1.3; }
@keyframes tw { 0% { opacity: 0; transform: scale(1.15) } 100% { opacity: 1; transform: none } }
.shake { animation: shake .45s linear; }
@keyframes shake { 0%, 100% { transform: none } 20% { transform: translate(-10px, 4px) } 40% { transform: translate(9px, -6px) } 60% { transform: translate(-7px, 5px) } 80% { transform: translate(5px, -3px) } }

/* Knall */
.boom { background: var(--yellow); align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.burst { position: absolute; left: 50%; top: 40%; width: 160vmax; height: 160vmax; transform: translate(-50%, -50%); background: repeating-conic-gradient(from 0deg, #ffb21f 0 10deg, var(--yellow) 10deg 20deg); animation: spin 18s linear infinite; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg) } }
.boom-body { position: relative; display: flex; flex-direction: column; gap: 14px; align-items: center; padding: 20px; width: min(480px, 100%); }
.boom-word { font-size: clamp(90px, 28vw, 170px); line-height: .85; font-weight: 900; text-transform: uppercase; color: var(--pink); -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; text-shadow: 0 10px 0 var(--ink); animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { 0% { transform: scale(.2) rotate(-12deg) } 100% { transform: rotate(-4deg) } }
.boom-who { font-size: 24px; background: #fff; border: 3px solid var(--ink); border-radius: 16px; padding: 8px 14px; box-shadow: 0 4px 0 var(--ink); }
.boom-hearts { display: flex; gap: 6px; justify-content: center; }
.boom-hearts svg { width: 34px; height: 34px; fill: var(--pink); stroke: var(--ink); stroke-width: 1.5; }
.boom-hearts svg.lost { fill: #fff; animation: lose .6s ease .3s both; }
@keyframes lose { 0% { fill: var(--pink); transform: scale(1) } 50% { transform: scale(1.5) } 100% { fill: #fff; transform: scale(1) } }
.dare { background: var(--teal); color: #fff; border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 5px 0 var(--ink); padding: 12px 16px; transform: rotate(-1.5deg); }
.dare-kicker { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .9; }
#dareText { font-size: 21px; font-weight: 800; line-height: 1.25; margin-top: 4px; }
.boom-body .btn { width: 100%; }

/* Ende */
.end { overflow: hidden; }
.crown { width: 84px; height: 84px; fill: var(--yellow); stroke: var(--ink); stroke-width: 1.5; }
.winner { font-size: clamp(48px, 14vw, 88px); font-weight: 900; line-height: .95; color: var(--pink); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 0 6px 0 var(--ink); overflow-wrap: anywhere; hyphens: none; }
.winner.long { font-size: clamp(34px, 9.5vw, 64px); text-shadow: 0 4px 0 var(--ink); }
.ranking { margin: 6px 0 10px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; width: min(360px, 100%); }
.ranking li { display: flex; justify-content: space-between; background: #fff; border: 3px solid var(--ink); border-radius: 12px; padding: 8px 12px; font-weight: 700; }
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg) } }

@media (prefers-reduced-motion: reduce) {
  .bomb, .bomb .spark, .burst, .boom-word, .twist, .task.flip { animation: none !important; }
  .shake { animation: none; }
}

.boom-hearts svg.gone { animation: none; }

.legal { font-size: 13px; color: #6d5a78; margin-top: 2px; }
.legal a { color: inherit; }
.legal a[data-consent-settings]::before { content: '·'; margin: 0 .4em; display: inline-block; }
