/* Gierhals – Comic-Stil */
@font-face { font-family: 'Lilita One'; src: url(fonts/lilita-one.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Nunito'; src: url(fonts/nunito.woff2) format('woff2'); font-weight: 200 1000; font-display: swap; }

:root {
  --y: #FFD23F; --y-dot: #F0BF1C; --ink: #1B1B1B; --cream: #FFF6E0; --white: #FFFFFF;
  --red: #D9381E; --red-d: #B52A12; --blue: #2457E6; --green: #1F8F5A; --purple: #7B3FE4;
  --pink: #FF9EB0; --pink-d: #FF6F8A; --gold: #FFB627; --sky: #7FD3FF;
  --display: 'Lilita One', 'Arial Black', sans-serif;
  --body: 'Nunito', system-ui, sans-serif;
  --seg: 18px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background-color: var(--y);
  background-image: radial-gradient(var(--y-dot) 1.6px, transparent 1.8px);
  background-size: 14px 14px;
  color: var(--ink); font-family: var(--body); font-weight: 700;
  overscroll-behavior: none; -webkit-user-select: none; user-select: none;
}
button { font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; }
#app { max-width: 480px; margin: 0 auto; min-height: 100dvh; }

.screen {
  min-height: 100dvh; display: flex; flex-direction: column; gap: 12px;
  padding: max(12px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
}
.screen.fixed { height: 100dvh; overflow: hidden; }
.center { align-items: center; justify-content: center; text-align: center; }
.grow { flex: 1 1 auto; min-height: 0; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.muted { opacity: .75; }
.small { font-size: 13px; }
.tiny { font-size: 11px; }
.hl { color: var(--red-d); }
.nowrap { white-space: nowrap; }

/* Type */
.logo {
  font-family: var(--display); color: var(--cream); letter-spacing: .5px;
  -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-2deg); line-height: 1;
}
.logo.xl { font-size: 58px; -webkit-text-stroke: 3px var(--ink); text-shadow: 5px 5px 0 var(--ink); }
.logo.md { font-size: 28px; }
.h-display { font-family: var(--display); font-weight: 400; line-height: 1; margin: 0; }
.stroke { -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }

/* Buttons & cards */
.btn {
  border: 3px solid var(--ink); border-radius: 16px; background: var(--cream);
  box-shadow: 4px 4px 0 var(--ink); min-height: 48px; padding: 8px 14px;
  font-weight: 900; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .06s, box-shadow .06s;
}
.btn:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: 2px 2px 0 var(--ink); }
.btn.red { background: var(--red); color: var(--white); }
.btn.blue { background: var(--blue); color: var(--white); }
.btn.white { background: var(--white); }
.btn.ink { background: var(--ink); color: var(--y); }
.btn.ghost { background: transparent; box-shadow: none; border-style: dashed; }
.btn.icon { width: 46px; height: 46px; padding: 0; border-radius: 13px; box-shadow: 3px 3px 0 var(--ink); }
.btn.big { min-height: 66px; border-radius: 18px; box-shadow: 5px 5px 0 var(--ink); flex-direction: column; gap: 0; }
.btn.big .t { font-family: var(--display); font-weight: 400; font-size: 25px; line-height: 1.05; }
.btn.big .s { font-size: 12px; font-weight: 800; }
.btn.full { width: 100%; }
.tilt-l { transform: rotate(-1.5deg); }
.tilt-r { transform: rotate(1.5deg); }

.card { background: var(--cream); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 4px 4px 0 var(--ink); padding: 14px; }
.card.white { background: var(--white); }
.chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border: 2.5px solid var(--ink);
  border-radius: 10px; background: var(--white); font-size: 12px; font-weight: 900;
}
.coin { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); border: 2px solid var(--ink); vertical-align: -2px; }

/* Top bar */
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 46px; }
.roundchip { height: 46px; padding: 0 12px; border: 3px solid var(--ink); border-radius: 13px; background: var(--cream); box-shadow: 3px 3px 0 var(--ink); display: flex; align-items: center; font-weight: 900; font-size: 14px; }

/* Players strip */
.players { display: grid; gap: 8px; padding-top: 6px; }
.pcard {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px 8px;
  border: 3px solid var(--ink); border-radius: 14px; background: var(--cream); box-shadow: 3px 3px 0 var(--ink); min-width: 0;
  transition: transform .2s;
}
.pcard { transform: rotate(var(--rot, 0deg)); }
.pcard.active { background: var(--white); box-shadow: 5px 5px 0 var(--ink); transform: rotate(var(--rot, 0deg)) scale(1.06); animation: activeBob 1.6s ease-in-out infinite; }
.pcard.off { opacity: .55; }
.pcard.gainglow { animation: gainGlow 1.4s ease-out; }
.pcard.lossglow { animation: lossGlow 1.2s ease-out; }
.badge.off { left: 50%; right: auto; top: auto; bottom: -10px; transform: translateX(-50%); background: #6B6B6B; color: #fff; }
.you { display: inline-block; font-size: 9px; font-weight: 900; padding: 1px 4px; border-radius: 5px; background: var(--ink); color: var(--y); vertical-align: 2px; }
.pcard .nm { font-weight: 900; font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.pcard .sc { font-family: var(--display); font-size: 22px; line-height: 1; }
.pcard .bar { width: 70%; height: 6px; border-radius: 3px; border: 2px solid var(--ink); }
.pcard .meta { font-size: 11px; font-weight: 800; display: flex; align-items: center; gap: 3px; }
.badge { position: absolute; top: -11px; right: -6px; background: var(--ink); color: var(--y); font-size: 10px; font-weight: 900; padding: 2px 6px; border-radius: 8px; transform: rotate(10deg); }
.badge.curse { left: -6px; right: auto; background: #6A1FB8; color: var(--white); transform: rotate(-10deg); }

/* Event pill */
.event {
  align-self: center; display: flex; align-items: center; gap: 8px; padding: 6px 12px; max-width: 100%;
  border: 3px solid var(--ink); border-radius: 12px; background: var(--blue); color: var(--white);
  box-shadow: 4px 4px 0 var(--ink); transform: rotate(-1.5deg);
}
.event b { font-family: var(--display); font-weight: 400; font-size: 16px; white-space: nowrap; }
.event span { font-size: 12px; font-weight: 800; }

/* Stage */
.stage { display: flex; gap: 6px; align-items: stretch; }
.stage-left { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(6px, 1.6dvh, 14px); min-width: 0; }
.label { font-weight: 900; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }

.pot { position: relative; width: 180px; height: clamp(110px, 17dvh, 146px); }
.pot .c { position: absolute; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); border: 3px solid var(--ink); transition: transform .3s; }
.pot .hl1, .pot .hl2 { position: absolute; top: 46%; width: 22px; height: 20px; background: var(--ink); border: 3px solid var(--ink); }
.pot .hl1 { left: 0; border-right: none; border-radius: 10px 0 0 10px; }
.pot .hl2 { right: 0; border-left: none; border-radius: 0 10px 10px 0; }
.pot .lid { position: absolute; left: 14px; right: 14px; top: 26px; height: 16px; border: 3px solid var(--ink); border-radius: 8px; background: var(--red-d); }
.pot .body {
  position: absolute; left: 20px; right: 20px; top: 38px; bottom: 0; border: 3px solid var(--ink); border-top: none;
  border-radius: 0 0 34px 34px; background: var(--red); box-shadow: 5px 5px 0 var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.pot .num { font-family: var(--display); font-size: clamp(44px, 7.5dvh, 62px); color: var(--cream); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; line-height: 1; }
.pot.bump .body { animation: bump .35s; }

.dierow { display: flex; align-items: center; gap: 12px; min-height: 80px; }
.die {
  width: 76px; height: 76px; border-radius: 16px; border: 3px solid var(--ink); background: var(--cream);
  box-shadow: 4px 4px 0 var(--ink); padding: 11px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  transform: rotate(10deg); flex: none;
}
.die .p { width: 12px; height: 12px; border-radius: 50%; background: var(--ink); justify-self: center; align-self: center; opacity: 0; }
.die .p.on { opacity: 1; }
.die.bust { background: var(--ink); }
.die.bust .p { background: var(--red); }
.die.gold { background: var(--gold); }
.die.empty .p { opacity: 0; }
.diewrap { position: relative; width: 82px; height: 82px; display: flex; align-items: center; justify-content: center; flex: none; }
.diewrap .die { position: relative; z-index: 1; }
.dshadow { position: absolute; bottom: -6px; left: 14px; right: 14px; height: 10px; border-radius: 50%; background: rgba(27,27,27,.25); }
.dshadow.rolling { animation: shadowRoll .38s ease-in-out infinite; }
.die.rolling { animation: dieRoll .38s cubic-bezier(.3,.6,.4,1) infinite; }
.die.land { animation: dieLand .45s cubic-bezier(.2,1.6,.4,1); }
.gain { display: flex; flex-direction: column; gap: 2px; transform: rotate(-4deg); min-width: 92px; }
.gain .big { font-family: var(--display); font-size: 36px; color: var(--red); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; line-height: 1; }
.gain .why { font-size: 12px; font-weight: 800; }
.gain.pop { animation: pop .35s; }

.history { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; min-height: 28px; }
.history .h { width: 28px; height: 28px; border-radius: 8px; border: 2.5px solid var(--ink); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 15px; background: var(--cream); }
.history .h.last { background: var(--red); color: var(--white); }
.history .h.saved { background: var(--green); color: var(--white); }

/* Neck */
.neckcol { width: 112px; flex: none; display: flex; flex-direction: column; align-items: center; position: relative; min-height: 0; }
.neckcol .ghosts, .neckcol .filled { display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 0; }
.neckcol .ghosts { flex: 1 1 auto; justify-content: flex-end; }
.seg { position: relative; width: 30px; height: var(--seg); border: 2.5px solid var(--ink); border-radius: 9px; background: var(--pink); flex: none; }
.seg.top { background: var(--pink-d); }
.seg.new { animation: grow .35s ease-out; }
.seg.ghost { background: transparent; border-style: dashed; opacity: .45; }
.seg .mk { position: absolute; left: 38px; top: 50%; transform: translateY(-50%); font-family: var(--display); font-size: 13px; white-space: nowrap; opacity: 1; }
.seg.ghost .mk { opacity: 1; color: var(--ink); }
.head { width: 88px; height: 70px; flex: none; margin: 2px 0 -6px; z-index: 1; }
.head.wobble { animation: wobble .5s; }
.collar { width: 92px; height: 38px; flex: none; }
.necklabel { font-weight: 900; font-size: 11px; text-align: center; margin-top: 2px; }
.bubble {
  position: absolute; right: 74px; width: 124px; padding: 7px 9px; background: var(--white); border: 3px solid var(--ink);
  border-radius: 16px; font-weight: 900; font-size: 13px; line-height: 1.2; box-shadow: 3px 3px 0 var(--ink); z-index: 2;
}
.bubble::after { content: ''; position: absolute; right: -11px; top: 14px; border: 8px solid transparent; border-left: 10px solid var(--ink); }

/* Info + items */
.info { display: flex; justify-content: center; gap: 10px; font-weight: 800; font-size: 13px; flex-wrap: wrap; text-align: center; }
.items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.item { min-height: 50px; padding: 4px 6px; font-size: 13px; border-radius: 14px; box-shadow: 3px 3px 0 var(--ink); white-space: nowrap; gap: 5px; }
@media (max-width: 380px) { .item { font-size: 12px; gap: 3px; } .item svg { width: 18px; height: 18px; } }
.item.armed { background: var(--gold); animation: glow 1s infinite alternate; }
.item.passive { cursor: default; }
.actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

/* Setup */
.hero { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 8px; }
.hero svg { width: 120px; height: 120px; }
.tagline { font-weight: 900; font-size: 15px; text-align: center; }
.field { display: flex; align-items: center; gap: 8px; }
.field .dot { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--ink); flex: none; }
.field input {
  flex: 1; min-width: 0; height: 50px; padding: 0 14px; border: 3px solid var(--ink); border-radius: 14px; background: var(--white);
  font-weight: 800; font-size: 17px; color: var(--ink); outline: none; -webkit-user-select: text; user-select: text;
}
.field input:focus { box-shadow: 0 0 0 4px var(--blue); }
.seg-ctl { display: grid; gap: 6px; }
.seg-ctl .btn { min-height: 44px; font-size: 14px; box-shadow: 2px 2px 0 var(--ink); padding: 4px; }
.seg-ctl .btn.on { background: var(--ink); color: var(--y); }
.opt-label { font-weight: 900; font-size: 13px; margin: 4px 0 6px; }

/* Turn intro & bets */
.passbig { font-family: var(--display); font-size: 46px; line-height: 1; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; color: var(--white); text-shadow: 4px 4px 0 var(--ink); word-break: break-word; }
.betrow { display: flex; flex-direction: column; gap: 8px; padding: 10px 0; border-top: 2.5px dashed var(--ink); }
.betrow:first-of-type { border-top: none; }
.betbtns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.betbtns .btn, .stakes .btn { min-height: 44px; font-size: 13px; padding: 4px; box-shadow: 2px 2px 0 var(--ink); }
.betbtns .btn.on, .stakes .btn.on { background: var(--ink); color: var(--y); }
.stakes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }

/* Overlay */
.overlay { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(27,27,27,.55); animation: fade .2s; }
.modal { width: 100%; max-width: 420px; max-height: calc(100dvh - 36px); overflow: auto; display: flex; flex-direction: column; gap: 12px; animation: popin .3s; }
.modal h2 { font-family: var(--display); font-weight: 400; font-size: 34px; margin: 0; line-height: 1; }
.modal p { margin: 0; line-height: 1.4; font-weight: 700; }
.modal ul { margin: 0; padding-left: 18px; line-height: 1.45; font-weight: 700; }
.bang { font-family: var(--display); font-size: 64px; line-height: .95; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 5px 5px 0 var(--ink); transform: rotate(-4deg); }
.bang.red { color: var(--red); }
.bang.green { color: #3CCB7F; }
.bang.white { color: var(--white); }
.shake { animation: shake .45s; }
.reslist { display: flex; flex-direction: column; gap: 6px; text-align: left; font-size: 14px; }
.reslist .r { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; border: 2.5px solid var(--ink); border-radius: 10px; background: var(--white); }
.plus { color: var(--green); }
.minus { color: var(--red-d); }

/* Event reveal */
.evcard { width: 100%; max-width: 330px; padding: 22px 18px; background: var(--blue); color: var(--white); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 6px 6px 0 var(--ink); display: flex; flex-direction: column; align-items: center; gap: 10px; transform: rotate(-2deg); animation: flipin .5s; }
.evcard .t { font-family: var(--display); font-size: 36px; line-height: 1; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
.evcard p { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.35; }
.evicon { width: 64px; height: 64px; border-radius: 50%; background: var(--y); border: 3px solid var(--ink); display: flex; align-items: center; justify-content: center; color: var(--ink); }

/* Shop */
.shoplist { display: flex; flex-direction: column; gap: 10px; }
.shopitem { display: grid; grid-template-columns: 46px 1fr auto; gap: 10px; align-items: center; padding: 10px; }
.shopitem .ic { width: 46px; height: 46px; border-radius: 12px; border: 3px solid var(--ink); background: var(--white); display: flex; align-items: center; justify-content: center; }
.shopitem .nm { font-family: var(--display); font-size: 19px; line-height: 1.1; }
.shopitem .ds { font-size: 12.5px; font-weight: 700; line-height: 1.3; }
.shopitem .own { font-size: 11px; font-weight: 900; }
.shopitem .btn { min-height: 46px; padding: 4px 10px; font-size: 14px; white-space: nowrap; }
.targets { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.targets .btn { min-height: 42px; font-size: 13px; box-shadow: 2px 2px 0 var(--ink); }
.wallet { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 3px solid var(--ink); border-radius: 12px; background: var(--white); font-family: var(--display); font-size: 22px; box-shadow: 3px 3px 0 var(--ink); }

/* End */
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 8px; width: 100%; }
.podium .col { flex: 1; max-width: 120px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.podium .blk { width: 100%; border: 3px solid var(--ink); border-radius: 12px 12px 0 0; box-shadow: 4px 4px 0 var(--ink); display: flex; align-items: flex-start; justify-content: center; padding-top: 6px; font-family: var(--display); font-size: 28px; color: var(--white); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
.podium .pn { font-weight: 900; font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium .ps { font-family: var(--display); font-size: 20px; }
.awards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; }
.award { padding: 10px; text-align: left; }
.award .k { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .5px; }
.award .v { font-family: var(--display); font-size: 18px; line-height: 1.1; }

/* Confetti */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 14px; border: 2px solid var(--ink); animation: fall linear forwards; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 70; padding: 10px 16px; background: var(--ink); color: var(--y); border-radius: 14px; font-weight: 900; font-size: 14px; animation: popin .25s; max-width: 90vw; text-align: center; }

@keyframes tumble { 0% { transform: rotate(0) scale(1); } 50% { transform: rotate(180deg) scale(.92); } 100% { transform: rotate(360deg) scale(1); } }
@keyframes pop { 0% { transform: rotate(-4deg) scale(.4); opacity: 0; } 70% { transform: rotate(-4deg) scale(1.2); opacity: 1; } 100% { transform: rotate(-4deg) scale(1); } }
@keyframes bump { 0%,100% { transform: scale(1); } 40% { transform: scale(1.08, .94); } }
@keyframes grow { 0% { transform: scaleY(0); opacity: 0; } 100% { transform: scaleY(1); opacity: 1; } }
@keyframes wobble { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-10deg); } 75% { transform: rotate(8deg); } }
@keyframes glow { from { box-shadow: 3px 3px 0 var(--ink); } to { box-shadow: 3px 3px 0 var(--ink), 0 0 0 5px rgba(255,182,39,.7); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes popin { 0% { transform: scale(.7); opacity: 0; } 70% { transform: scale(1.04); } 100% { transform: scale(1); opacity: 1; } }
@keyframes flipin { 0% { transform: rotateY(90deg) rotate(-2deg); } 100% { transform: rotateY(0) rotate(-2deg); } }
@keyframes shake { 0%,100% { transform: translateX(0) rotate(-4deg); } 20% { transform: translateX(-12px) rotate(-8deg); } 40% { transform: translateX(10px) rotate(2deg); } 60% { transform: translateX(-8px) rotate(-6deg); } 80% { transform: translateX(6px) rotate(-2deg); } }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

@media (max-height: 700px) {
  :root { --seg: 12px; }
  .screen { gap: 8px; }
  .pcard .bar { display: none; }
  .btn.big { min-height: 58px; }
  .btn.big .t { font-size: 22px; }
  .die { width: 64px; height: 64px; padding: 9px; }
  .die .p { width: 10px; height: 10px; }
  .dierow { min-height: 66px; }
  .head { width: 72px; height: 58px; }
  .collar { height: 30px; }
  .bubble { font-size: 11px; width: 100px; padding: 5px 7px; right: 70px; }
  .pot { width: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


/* ===== Mehrspieler & Animationen ===== */
.hero-bird { width: 120px; height: 150px; overflow: visible; }
.hero-bird .hb-head { animation: heroBob 2.2s ease-in-out infinite; transform-origin: 66px 60px; }
.hero-bird .hb-s:nth-of-type(1) { animation: segPulse 2.2s ease-in-out infinite; }
.ordiv { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 13px; }
.ordiv::before, .ordiv::after { content: ''; flex: 1; border-top: 3px dashed var(--ink); }
.codein { text-transform: uppercase; letter-spacing: 8px; text-align: center; font-family: var(--display) !important; font-size: 26px !important; }
.connbad { background: var(--red); color: #fff; border: 3px solid var(--ink); border-radius: 12px; padding: 6px 10px; font-weight: 900; font-size: 13px; text-align: center; animation: blink 1s infinite alternate; }
.dots::after { content: ''; display: inline-block; width: 1.2em; text-align: left; animation: dots 1.2s steps(4) infinite; }
.waitcard { padding: 18px; }

.lobbycode { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.tiles { display: flex; gap: 8px; }
.tile { width: 58px; height: 66px; display: flex; align-items: center; justify-content: center; border: 3px solid var(--ink); border-radius: 14px; background: var(--y); box-shadow: 4px 4px 0 var(--ink); font-family: var(--display); font-size: 42px; transform: rotate(calc((var(--i) - 1.5) * 3deg)); animation: tileIn .5s calc(var(--i) * .08s) both cubic-bezier(.2,1.5,.4,1), tileFloat 2.4s calc(var(--i) * .2s + .6s) ease-in-out infinite; }
.qrwrap { display: flex; align-items: center; gap: 12px; text-align: left; }
.qr { width: 128px; height: 128px; border: 3px solid var(--ink); border-radius: 12px; background: #fff; flex: none; }
.plist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.pl { display: flex; align-items: center; gap: 8px; padding: 8px; border: 3px solid var(--ink); border-radius: 14px; background: var(--white); box-shadow: 3px 3px 0 var(--ink); min-width: 0; position: relative; }
.pl .av { width: 32px; height: 32px; flex: none; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--c, #ccc); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 17px; }
.pl .pn { font-weight: 900; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl .tagc { position: absolute; top: -10px; right: 6px; display: inline-flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 900; background: var(--ink); color: var(--y); padding: 1px 6px; border-radius: 8px; }
.pl.empty { border-style: dashed; background: transparent; box-shadow: none; opacity: .6; }
.pl.empty .av { background: transparent; color: var(--ink); }
.pl.new { animation: plIn .6s cubic-bezier(.2,1.6,.4,1); }
.pl.off { opacity: .55; }

.turnhero { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 16px 10px; }
.turnhero .bang { font-size: 46px; animation: slamIn .5s cubic-bezier(.2,1.6,.4,1); }
.turnhero .passbig { animation: slamIn .5s cubic-bezier(.2,1.6,.4,1); }
.chip.curse { background: #6A1FB8; color: #fff; }
.chip.betred { background: #FFD9D2; }
.chip.betgreen { background: #CFF5DF; }
.chip.info { background: var(--blue); color: #fff; align-self: center; max-width: 100%; white-space: normal; text-align: center; }
.betbtns .btn.bp.on { background: var(--red); color: #fff; }
.betbtns .btn.b3.on { background: var(--green); color: #fff; }
.wallet.sm { font-size: 18px; padding: 2px 10px; box-shadow: 2px 2px 0 var(--ink); }
.reslist .r.mine { background: #FFF1B8; }

.spect { display: flex; flex-direction: column; gap: 8px; }
.spect > .small { display: flex; align-items: center; justify-content: center; gap: 4px; }
.spect > .small svg { width: 16px; height: 16px; }
.reacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.btn.react { min-height: 48px; font-family: var(--display); font-weight: 400; font-size: 16px; padding: 4px; box-shadow: 3px 3px 0 var(--ink); }
.btn.react:nth-child(1) { background: #FFD9D2; } .btn.react:nth-child(2) { background: #CFF5DF; } .btn.react:nth-child(3) { background: #FFC2CF; }
.btn.react:nth-child(4) { background: #FFF1B8; } .btn.react:nth-child(5) { background: #D7E3FF; } .btn.react:nth-child(6) { background: #E8DAFF; }

.pulse { animation: pulse 1.1s ease-in-out infinite; }
.btn.big.red.tilt-l.pulse { animation: pulseTilt 1.1s ease-in-out infinite; }
.head.idle { animation: breathe 2.4s ease-in-out infinite; transform-origin: 50% 90%; }
.pot .c.drop { animation: coinDrop .5s cubic-bezier(.3,1.5,.5,1); }
.pot.broken .body { background: #7A2010; }
.history .h { animation: none; }
.history .h:last-child { animation: hIn .35s cubic-bezier(.2,1.6,.4,1); }
.history .h.busted { background: var(--ink); color: var(--red); }
.boomwrap { position: relative; display: flex; align-items: center; justify-content: center; padding: 34px 0 26px; }
.starburst { position: absolute; width: 190px; height: 190px; z-index: 0; animation: starIn .6s cubic-bezier(.2,1.5,.4,1), spin 8s linear infinite; }
.boomwrap .bang { position: relative; z-index: 1; }
.deadhead { animation: deadFall .8s cubic-bezier(.2,1.4,.4,1); }
.happyhead { animation: happyJump .8s ease-in-out 2; }
.timerbar { width: 100%; height: 12px; border: 3px solid var(--ink); border-radius: 8px; background: var(--white); overflow: hidden; }
.timerbar i { display: block; height: 100%; background: var(--red); transform-origin: left; animation: shrink linear forwards; }
.overlay.soft { background: rgba(27,27,27,.35); }
.evov { background: rgba(27,27,27,.7); cursor: pointer; }
.evstack { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.evov .evcard { animation: evIn .7s cubic-bezier(.2,1.4,.4,1); }
.evov .evicon { animation: spinIn .8s .2s both cubic-bezier(.2,1.6,.4,1); }
.flash { position: fixed; inset: 0; pointer-events: none; z-index: 80; }
.banner { position: fixed; left: 0; right: 0; top: 38%; z-index: 90; display: flex; justify-content: center; pointer-events: none; }
.banner span { font-family: var(--display); font-size: 40px; padding: 10px 22px; border: 4px solid var(--ink); border-radius: 16px; box-shadow: 6px 6px 0 var(--ink); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-align: center; max-width: 92vw; animation: bannerIn 2.4s cubic-bezier(.2,1.4,.4,1) forwards; }
.fly-num { position: fixed; z-index: 85; pointer-events: none; font-family: var(--display); font-size: 40px; color: var(--red); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
.fly-coin { position: fixed; z-index: 85; pointer-events: none; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: var(--gold); border: 3px solid var(--ink); }
.spark { position: fixed; z-index: 85; pointer-events: none; width: 12px; height: 12px; border: 2px solid var(--ink); border-radius: 3px; }
.react-float { position: fixed; bottom: 120px; z-index: 75; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 2px; animation: floatUp 2.4s cubic-bezier(.2,.8,.4,1) forwards; }
.react-float .rw { font-family: var(--display); font-size: 26px; color: #fff; padding: 6px 12px; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 4px 4px 0 var(--ink); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; }
.react-float .rn { font-weight: 900; font-size: 12px; background: var(--white); border: 2px solid var(--ink); border-radius: 8px; padding: 0 6px; }
.shopitem.bought { animation: bought .5s cubic-bezier(.2,1.6,.4,1); }
.podium .col { animation: rise .7s var(--d, 0s) both cubic-bezier(.2,1.4,.4,1); transform-origin: bottom; }
.winner { animation: slamIn .7s 1.1s both cubic-bezier(.2,1.6,.4,1); }
.boomshake { animation: none; }

@keyframes dieRoll {
  0% { transform: translateY(0) rotate(0deg) scale(1); }
  35% { transform: translateY(-34px) rotate(140deg) scale(1.08, .94); }
  70% { transform: translateY(-8px) rotate(250deg) scale(.95, 1.05); }
  100% { transform: translateY(0) rotate(360deg) scale(1.05, .95); }
}
@keyframes shadowRoll { 0%,100% { transform: scaleX(1); opacity: .9; } 35% { transform: scaleX(.55); opacity: .4; } }
@keyframes dieLand { 0% { transform: rotate(40deg) scale(1.25, .8); } 50% { transform: rotate(4deg) scale(.92, 1.08); } 100% { transform: rotate(10deg) scale(1); } }
@keyframes activeBob { 0%,100% { translate: 0 0; } 50% { translate: 0 -3px; } }
@keyframes gainGlow { 0%,100% { box-shadow: 3px 3px 0 var(--ink); } 30% { box-shadow: 3px 3px 0 var(--ink), 0 0 0 6px #3CCB7F; } }
@keyframes lossGlow { 0%,100% { box-shadow: 3px 3px 0 var(--ink); } 30% { box-shadow: 3px 3px 0 var(--ink), 0 0 0 6px var(--red); } }
@keyframes heroBob { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-5px) rotate(-4deg); } }
@keyframes segPulse { 0%,100% { fill: #FF6F8A; } 50% { fill: #FF9EB0; } }
@keyframes blink { from { opacity: 1; } to { opacity: .6; } }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
@keyframes tileIn { from { transform: translateY(-40px) rotate(-30deg) scale(.4); opacity: 0; } }
@keyframes tileFloat { 0%,100% { translate: 0 0; } 50% { translate: 0 -4px; } }
@keyframes plIn { 0% { transform: scale(.3) rotate(-12deg); opacity: 0; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes slamIn { 0% { transform: scale(2.6) rotate(-8deg); opacity: 0; } 100% { transform: scale(1) rotate(-3deg); opacity: 1; } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes pulseTilt { 0%,100% { transform: rotate(-1.5deg) scale(1); } 50% { transform: rotate(-1.5deg) scale(1.045); } }
@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04, .97); } }
@keyframes coinDrop { 0% { transform: translateY(-50px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
@keyframes hIn { 0% { transform: scale(0) rotate(-30deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes starIn { 0% { transform: scale(0) rotate(-90deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes deadFall { 0% { transform: translateY(-60px) rotate(-40deg); opacity: 0; } 100% { transform: translateY(0) rotate(0); opacity: 1; } }
@keyframes happyJump { 0%,100% { transform: translateY(0); } 40% { transform: translateY(-14px) rotate(-6deg); } }
@keyframes shrink { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes evIn { 0% { transform: rotateY(90deg) scale(.5) rotate(-2deg); opacity: 0; } 100% { transform: rotateY(0) scale(1) rotate(-2deg); opacity: 1; } }
@keyframes spinIn { 0% { transform: scale(0) rotate(-180deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes bannerIn {
  0% { transform: translateX(-120vw) rotate(-6deg) scale(.8); }
  18% { transform: translateX(0) rotate(-3deg) scale(1.1); }
  26% { transform: translateX(0) rotate(-3deg) scale(1); }
  78% { transform: translateX(0) rotate(-3deg) scale(1); opacity: 1; }
  100% { transform: translateX(120vw) rotate(4deg) scale(.8); opacity: .8; }
}
@keyframes floatUp {
  0% { transform: translateY(40px) scale(.3); opacity: 0; }
  15% { transform: translateY(0) scale(1.15); opacity: 1; }
  25% { transform: translateY(-10px) scale(1); }
  80% { opacity: 1; }
  100% { transform: translateY(-46vh) scale(.9) rotate(-6deg); opacity: 0; }
}
@keyframes bought { 0% { transform: scale(1); } 40% { transform: scale(1.05) rotate(-1deg); background: #CFF5DF; } 100% { transform: scale(1); } }
@keyframes rise { 0% { transform: scaleY(0); opacity: 0; } 100% { transform: scaleY(1); opacity: 1; } }

/* ===== Jackpot & Hellseher ===== */
.jpbar { display: flex; align-items: center; justify-content: center; gap: 8px; align-self: center; padding: 4px 6px 4px 12px; border: 3px solid var(--ink); border-radius: 12px; background: var(--ink); color: var(--y); box-shadow: 3px 3px 0 #6B4A00; transform: rotate(1deg); }
.jpbar .jpl { font-weight: 900; font-size: 11px; letter-spacing: 1.5px; }
.jpbar .jpv { font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--gold); line-height: 1; min-width: 34px; }
.jpbar.grow .jpv { animation: jpGrow .9s cubic-bezier(.2,1.6,.4,1); }
.jpbar.hit { background: var(--gold); color: var(--ink); animation: jpHit .5s ease-in-out infinite alternate; }
.jpbar.hit .jpv { color: var(--ink); }
.jslots { display: flex; gap: 4px; }
.jslot { width: 24px; height: 24px; border-radius: 6px; border: 2.5px dashed var(--y); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 14px; color: var(--ink); }
.jslot.on { border-style: solid; border-color: var(--ink); background: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.jslot.pop { animation: slotPop .6s cubic-bezier(.2,1.8,.4,1); }
.chip.jpchip { background: var(--ink); color: var(--gold); }
.chip.tipchip { background: #6A1FB8; color: #fff; }
.tipcard { background: #EFE3FF; }
.tipgrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.tipgrid .btn { min-height: 44px; padding: 2px; font-family: var(--display); font-weight: 400; font-size: 18px; box-shadow: 2px 2px 0 var(--ink); }
.tipgrid .btn.on { background: #6A1FB8; color: #fff; transform: scale(1.08) rotate(-3deg); }
.tipreveal { width: 100%; display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 3px solid var(--ink); border-radius: 14px; background: #EFE3FF; }
.tiprow { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.tipcardr { display: flex; flex-direction: column; align-items: center; min-width: 78px; padding: 6px; border: 3px solid var(--ink); border-radius: 12px; background: #fff; box-shadow: 3px 3px 0 var(--ink); animation: tipFlip .6s calc(.5s + var(--k) * .35s) both cubic-bezier(.2,1.4,.4,1); }
.tipcardr .tn { font-family: var(--display); font-size: 30px; line-height: 1; }
.tipcardr .tw { font-weight: 900; font-size: 12px; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tipcardr .tr { font-size: 12px; font-weight: 900; }
.tipcardr.exact { background: #3CCB7F; }
.tipcardr.close { background: #CFF5DF; }
.tipcardr.mine { outline: 3px dashed #6A1FB8; outline-offset: 2px; }
.confetti i.rc { width: 18px; height: 18px; border-radius: 50%; background: var(--gold); border: 3px solid var(--ink); }
@keyframes jpGrow { 0% { transform: scale(1); } 40% { transform: scale(1.6) rotate(-6deg); color: #fff; } 100% { transform: scale(1); } }
@keyframes jpHit { from { transform: rotate(1deg) scale(1); } to { transform: rotate(-1deg) scale(1.06); } }
@keyframes slotPop { 0% { transform: scale(0) rotate(-90deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes tipFlip { 0% { transform: rotateY(90deg) scale(.6); opacity: 0; } 100% { transform: rotateY(0) scale(1); opacity: 1; } }
@media (max-height: 700px) { .jpbar { padding: 2px 4px 2px 10px; } .jpbar .jpv { font-size: 18px; } .jslot { width: 20px; height: 20px; } }

/* ===== v4: neuer Geier, 2 Würfel, klare Bilanz ===== */
.neckcol { width: 120px; }
.bird { width: 100%; flex: 1 1 auto; min-height: 0; overflow: visible; }
.bird .ring { transform-box: fill-box; transform-origin: 50% 100%; }
.bird .ring.new { animation: ringGrow .5s cubic-bezier(.2,1.7,.4,1); }
.bird .bhead { transform-box: fill-box; transform-origin: 50% 85%; }
.bird .bhead.idle { animation: breathe 2.4s ease-in-out infinite; }
.bird .bhead.bob { animation: headBob .7s cubic-bezier(.2,1.6,.4,1); }
.bird .bbody { transform-box: fill-box; transform-origin: 50% 100%; animation: bodyBreath 3.2s ease-in-out infinite; }
.necklabel { font-family: var(--display); font-weight: 400; font-size: 14px; letter-spacing: .5px; }
.bubble { right: 82px; }

.items.four { grid-template-columns: 1fr 1fr 1fr 1.7fr; gap: 8px; }
.items.four .item { padding: 2px 4px; font-size: 13px; gap: 4px; }
.item.mode { font-weight: 900; }
.item.mode.on2 { background: var(--blue); color: #fff; }

.dierow { flex-wrap: wrap; justify-content: center; row-gap: 4px; }
.diewrap.two { width: 148px; gap: 10px; }
.diewrap.two .die { width: 62px; height: 62px; padding: 9px; }
.diewrap.two .die .p { width: 10px; height: 10px; }
.diewrap.two .die:nth-of-type(2) { transform: rotate(-9deg); }
.diewrap.two .dshadow { left: 10px; right: 10px; }
.die.paschd { box-shadow: 4px 4px 0 var(--ink), 0 0 0 5px var(--blue); }

.balance { width: 100%; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.bal { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border: 3px solid var(--ink); border-left-width: 10px; border-left-color: var(--c); border-radius: 12px; background: #fff; }
.bal .bn { font-weight: 900; font-size: 16px; }
.bal .bv { display: flex; gap: 10px; font-family: var(--display); font-size: 22px; }
.bal .bv b { font-weight: 400; display: inline-flex; align-items: center; gap: 3px; }
.bal.mine { background: #FFF1B8; transform: scale(1.03); box-shadow: 3px 3px 0 var(--ink); animation: balIn .6s .2s both cubic-bezier(.2,1.5,.4,1); }
.bal.mine .bn { font-family: var(--display); font-size: 20px; }
.betres { width: 100%; }
.betres .r { font-size: 13px; align-items: center; }
.wl { font-weight: 900; font-size: 12px; padding: 3px 8px; border-radius: 8px; border: 2px solid var(--ink); white-space: nowrap; }
.wl.win { background: #3CCB7F; }
.wl.lose { background: #FFD9D2; }
.ackbtn { margin-top: 4px; }
.timerbar.slim { height: 8px; border-width: 2px; }
.modal .plus { color: #138A4E; }

@keyframes ringGrow { 0% { transform: scaleY(0) scaleX(1.4); } 100% { transform: scale(1); } }
@keyframes headBob { 0% { transform: translateY(14px) rotate(6deg); } 60% { transform: translateY(-6px) rotate(-6deg); } 100% { transform: translateY(0) rotate(0); } }
@keyframes bodyBreath { 0%,100% { transform: scale(1); } 50% { transform: scale(1.03, .98); } }
@keyframes balIn { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1.03); opacity: 1; } }
@media (max-height: 700px) { .neckcol { width: 104px; } .items.four .item { font-size: 12px; } .diewrap.two .die { width: 54px; height: 54px; padding: 7px; } }
/* Meldungen oben und durchklickbar – nie über den Spielknöpfen */
.toast { bottom: auto; top: max(70px, calc(env(safe-area-inset-top) + 60px)); pointer-events: none; box-shadow: 4px 4px 0 rgba(0,0,0,.25); }
/* kleine Handys: alles in eine Bühne pressen, nichts überlappt */
.stage-left { overflow: hidden; }
@media (max-height: 700px) {
  .stage-left { gap: 4px; }
  .history { display: none; }
  .dierow { flex-wrap: nowrap; gap: 6px; min-height: 0; }
  .diewrap { width: 66px; height: 66px; }
  .diewrap.two { width: 112px; gap: 6px; }
  .diewrap.two .die { width: 50px; height: 50px; padding: 6px; gap: 2px; }
  .diewrap.two .die .p { width: 8px; height: 8px; }
  .gain { min-width: 60px; }
  .gain .big { font-size: 26px; }
  .gain .why { font-size: 10px; }
  .pot { width: 150px; height: 96px; }
  .pot .num { font-size: 40px; }
  .label { font-size: 12px; }
  .event { padding: 4px 10px; }
  .event span { display: none; }
  .bubble { font-size: 11px; width: 96px; }
}
