/* Zündung – Browser-Version. Feste Bühne 1280×720, per Transform ins Fenster skaliert. */
@font-face { font-family: 'Zuend'; src: url('../assets/fonts/zuendung_pixel.ttf') format('truetype'); font-display: block; }

:root {
  --walnut: #2b1a12;
  --walnut-2: #3a2418;
  --walnut-dark: #170d08;
  --felt: #17493a;
  --felt-dark: #0d2f25;
  --ivory: #f3e9d2;
  --ivory-dim: #cbbd9c;
  --burgundy: #7c1f1c;
  --red: #d2452f;
  --brass: #c79a3f;
  --brass-dark: #8a6524;
  --ember: #f08a24;
  --ember-hot: #ffd75e;
  --ink: #16110f;
  --good: #8fe0a0;
  --px: 'Zuend', 'Trebuchet MS', sans-serif;
  --px-wide: 'Zuend', 'Trebuchet MS', sans-serif;
  --text: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0b0706; color: var(--ivory); font-family: var(--text); font-weight: 600; font-size: 14px; user-select: none; -webkit-user-select: none; }
button { font: inherit; color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--px-wide); font-weight: normal; letter-spacing: 1px; }

#bg { position: fixed; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
#bg.fallback { background: radial-gradient(ellipse at 50% 80%, #6b2414, #1c0f0b 70%); }
#viewport { position: fixed; inset: 0; overflow: hidden; }
#stage { position: absolute; left: 50%; top: 50%; width: 1280px; height: 720px; transform-origin: 50% 50%; }
#screen, #overlay, #pops { position: absolute; inset: 0; }
#screen { z-index: 1; }
#overlay, #pops { pointer-events: none; }
#screen.enter { animation: screen-in .32s ease-out; }
@keyframes screen-in { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
#fxcanvas { position: absolute; inset: 0; pointer-events: none; z-index: 40; image-rendering: pixelated; }
#overlay { z-index: 50; }
#pops { z-index: 60; }

#crt { position: fixed; inset: 0; pointer-events: none; z-index: 100;
  background:
    repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0, rgba(0,0,0,0) 2px, rgba(0,0,0,.16) 3px, rgba(0,0,0,0) 4px),
    radial-gradient(ellipse at center, rgba(0,0,0,0) 55%, rgba(0,0,0,.42) 100%);
  animation: crt-flicker 6s steps(60) infinite; }
#crt.off { display: none; }
@keyframes crt-flicker { 0%, 100% { opacity: 1; } 48% { opacity: .93; } 50% { opacity: 1; } 91% { opacity: .96; } }

/* ---------- Bausteine ---------- */
.grow { flex: 1 1 auto; }
.label { font-family: var(--px); font-size: 12px; color: var(--ivory-dim); letter-spacing: 1px; opacity: .85; }
.unit { font-family: var(--px); font-size: 12px; color: var(--ivory-dim); }
.ico { display: inline-block; background-size: contain; background-repeat: no-repeat; background-position: center; image-rendering: pixelated; flex: none; }
.ico.coin { width: 24px; height: 24px; }
.ico.match { width: 12px; height: 36px; }
.ico.flame { width: 24px; height: 30px; }
.ico.deckico { width: 24px; height: 27px; }
.ico.lockico { width: 24px; height: 24px; }

.panel { position: absolute; background: linear-gradient(180deg, var(--walnut-2), var(--walnut)); border: 3px solid var(--brass-dark); border-radius: 14px;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.45), inset 0 2px 0 3px rgba(255,220,150,.07), 0 6px 0 rgba(0,0,0,.45); padding: 14px; display: flex; flex-direction: column; gap: 8px; }

.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 9px 16px 8px;
  font-family: var(--px); font-size: 16px; letter-spacing: 1px; color: var(--ivory); cursor: pointer; background: #5a4634;
  box-shadow: 0 5px 0 #2b2018, 0 8px 0 rgba(0,0,0,.35), inset 0 2px 0 rgba(255,255,255,.18); text-shadow: 0 2px 0 rgba(0,0,0,.45);
  transition: transform .06s, box-shadow .06s, filter .1s; white-space: nowrap; }
.btn:hover:not(:disabled) { filter: brightness(1.14); transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 #2b2018, 0 2px 0 rgba(0,0,0,.35), inset 0 2px 0 rgba(255,255,255,.1); }
.btn:disabled { filter: grayscale(.75) brightness(.62); cursor: default; }
.btn.big { font-size: 20px; padding: 13px 22px 12px; border-radius: 12px; }
.btn.small { font-size: 13px; padding: 6px 10px 5px; border-radius: 8px; box-shadow: 0 3px 0 #2b2018, inset 0 2px 0 rgba(255,255,255,.18); }
.btn.small:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 0 0 #2b2018; }
.btn.ember { background: linear-gradient(180deg, #ff9f3a, #e36a16); box-shadow: 0 5px 0 #8a3508, 0 8px 0 rgba(0,0,0,.35), inset 0 2px 0 rgba(255,255,255,.35); }
.btn.ember:active:not(:disabled) { box-shadow: 0 1px 0 #8a3508, 0 2px 0 rgba(0,0,0,.35); }
.btn.felt { background: linear-gradient(180deg, #2f8a68, #1f6349); box-shadow: 0 5px 0 #0e3426, 0 8px 0 rgba(0,0,0,.35), inset 0 2px 0 rgba(255,255,255,.25); }
.btn.felt:active:not(:disabled) { box-shadow: 0 1px 0 #0e3426, 0 2px 0 rgba(0,0,0,.35); }
.btn.danger { background: linear-gradient(180deg, #c8402f, #8f2419); box-shadow: 0 3px 0 #4f120c; }
.btn.icon { width: 38px; height: 34px; padding: 0; font-size: 22px; font-family: var(--text); font-weight: 900; }
.btn.on { background: linear-gradient(180deg, #e2b23c, #b88422); color: #2a1a0a; text-shadow: none; }
.btn.ready { animation: ready-pulse 1s ease-in-out infinite; }
@keyframes ready-pulse { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.22) drop-shadow(0 0 10px rgba(255,170,60,.7)); } }
.btnrow { display: flex; gap: 14px; justify-content: center; align-items: center; margin-top: 6px; }

.punch { animation: punch .28s cubic-bezier(.3,1.6,.5,1); }
@keyframes punch { 0% { transform: scale(1); } 35% { transform: scale(1.35) rotate(-3deg); } 100% { transform: scale(1); } }
.trigger { animation: trigger .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes trigger { 0% { transform: scale(1) rotate(0); } 25% { transform: scale(1.4) rotate(-9deg); } 55% { transform: scale(1.15) rotate(7deg); } 100% { transform: scale(1) rotate(0); } }
.fizzle { animation: fizzle .5s ease-out; }
@keyframes fizzle { 0% { transform: scale(1); filter: none; } 30% { transform: scale(.7) rotate(8deg); filter: grayscale(1) brightness(.6); } 100% { transform: scale(1); filter: none; } }
.shake { animation: shake .3s linear; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(4px); } }
.dropin { animation: dropin .45s cubic-bezier(.3,1.5,.5,1) backwards; }
@keyframes dropin { 0% { transform: translateY(-40px) scale(.7) rotate(-6deg); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* ---------- Trinkets, Porträts ---------- */
.trinkets { display: flex; gap: 8px; flex-wrap: wrap; }
.trinket { position: relative; width: 54px; height: 54px; border-radius: 10px; background: #1b110c; border: 3px solid #6b5536; box-shadow: inset 0 0 0 2px rgba(0,0,0,.5), 0 3px 0 rgba(0,0,0,.45); flex: none; }
.trinket .tk-img { position: absolute; inset: 3px; background-size: contain; background-repeat: no-repeat; background-position: center; image-rendering: pixelated; }
.trinket.empty { border-style: dashed; border-color: rgba(199,154,63,.28); background: rgba(0,0,0,.25); box-shadow: none; }
.trinket.r0 { border-color: #8d7a5c; }
.trinket.r1 { border-color: #3aa58f; }
.trinket.r2 { border-color: #e2b23c; }
.trinket.r3 { border-color: #ff7b3a; box-shadow: 0 0 12px rgba(255,120,50,.6), 0 3px 0 rgba(0,0,0,.45); }
.trinket.big { width: 84px; height: 84px; border-radius: 14px; }
.trinket.huge { width: 132px; height: 132px; border-radius: 18px; border-width: 4px; }
.trinket.clickable { cursor: pointer; transition: transform .1s; }
.trinket.clickable:hover { transform: scale(1.12) rotate(-4deg); }
.trinket:not(.empty) { animation: bob 3.4s ease-in-out infinite; }
.trinket:nth-child(2n) { animation-delay: -1.2s; }
.trinket:nth-child(3n) { animation-delay: -2.1s; }
.trinket.trigger { animation: trigger .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes bob { 0%, 100% { translate: 0 0; rotate: -1.2deg; } 50% { translate: 0 -3px; rotate: 1.2deg; } }

.portrait { position: relative; width: 96px; height: 96px; border-radius: 12px; background: var(--pbg, #244); border: 3px solid var(--brass); overflow: hidden; box-shadow: inset 0 -30px 30px rgba(0,0,0,.35), 0 4px 0 rgba(0,0,0,.45); flex: none; }
.portrait.big { width: 164px; height: 164px; align-self: center; }
.portrait .pt-react, .portrait .pt-bob, .portrait .pt-img { position: absolute; inset: 0; }
.portrait .pt-react { transform-origin: 50% 100%; transition: transform .5s, filter .5s; }
.portrait .pt-bob { animation: breathe 3.4s ease-in-out infinite; transform-origin: 50% 100%; }
.portrait .pt-img { background-size: 600% 100%; background-position: 0 100%; background-repeat: no-repeat; image-rendering: pixelated; transform-origin: 50% 100%; }
@keyframes breathe { 0%, 100% { transform: scale(1) rotate(-.6deg); } 50% { transform: scale(1.025, 1.04) rotate(.6deg); } }
.portrait.talk .pt-img { animation: talk .26s ease-in-out infinite; }
@keyframes talk { 0%, 100% { transform: translateY(0) scaleY(1); } 50% { transform: translateY(-3px) scaleY(1.03); } }
.portrait.thinking .pt-react { animation: think 1.8s ease-in-out infinite; }
@keyframes think { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg) translateY(-2px); } }
.portrait.react-smug .pt-react { animation: react-smug .7s cubic-bezier(.3,1.5,.5,1); }
@keyframes react-smug { 0% { transform: translateY(0) scale(1); } 20% { transform: translateY(-12px) scale(1.07); } 40% { transform: translateY(0) scale(1); } 60% { transform: translateY(-7px) scale(1.04); } 100% { transform: none; } }
.portrait.react-angry .pt-react { animation: react-angry .55s linear; }
@keyframes react-angry { 0%, 100% { transform: translateX(0); } 12% { transform: translateX(-9px) rotate(-3deg); } 30% { transform: translateX(9px) rotate(3deg); } 48% { transform: translateX(-7px); } 66% { transform: translateX(6px); } 84% { transform: translateX(-3px); } }
.portrait.react-shocked .pt-react { animation: react-shocked .6s cubic-bezier(.2,1.8,.4,1); }
@keyframes react-shocked { 0% { transform: scale(1); } 18% { transform: translateY(-16px) scale(1.14, 1.2); } 55% { transform: translateY(0) scale(.97, 1.02); } 100% { transform: none; } }
.portrait.react-defeated .pt-react { animation: react-defeated .8s ease-out; }
@keyframes react-defeated { 0% { transform: none; } 35% { transform: translateY(-6px) rotate(4deg); } 100% { transform: translateY(8px) rotate(-5deg); } }
.portrait.ko .pt-react { transform: translateY(8px) rotate(-5deg); filter: grayscale(.6) brightness(.8); }
.portrait.gloating .pt-react { animation: gloat .5s ease-in-out infinite; }
@keyframes gloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px) scale(1.04); } }
.portrait.k-boss { border-color: #ff7b3a; box-shadow: inset 0 -30px 30px rgba(0,0,0,.35), 0 0 18px rgba(255,90,40,.55), 0 4px 0 rgba(0,0,0,.45); }
.portrait.k-elite { border-color: #7fb6d6; }

.kindtag { align-self: center; font-family: var(--px); font-size: 14px; letter-spacing: 2px; padding: 3px 12px 2px; border-radius: 6px; background: #2f7d5b; color: #eafff2; box-shadow: 0 3px 0 rgba(0,0,0,.4); }
.kindtag.k-elite { background: #2f6f9d; color: #eaf6ff; }
.kindtag.k-boss { background: #b3261e; color: #fff0d8; }
.ename { font-family: var(--px-wide); font-size: 17px; text-align: center; color: var(--ember-hot); text-shadow: 0 2px 0 rgba(0,0,0,.6); line-height: 1.15; }
.erole { font-family: var(--px); font-size: 12px; letter-spacing: 1px; text-align: center; color: var(--ivory-dim); margin-top: -5px; }
.epassive { font-size: 12.5px; line-height: 1.35; text-align: center; color: var(--ivory-dim); }

.chip { font-family: var(--px); font-size: 12px; letter-spacing: .5px; padding: 3px 8px 2px; border-radius: 6px; background: #3b2a1e; box-shadow: 0 2px 0 rgba(0,0,0,.4); animation: punch .3s; }
.chip.good { background: #1f6349; color: #d9ffe6; }
.chip.bad { background: #8f2419; color: #ffe1d6; }
.chip.gold { background: #a8782a; color: #fff6d8; }
.chip.none { background: transparent; box-shadow: none; opacity: .4; animation: none; }
.statusrow { display: flex; flex-wrap: wrap; gap: 5px; min-height: 22px; justify-content: center; }

.bubble { position: absolute; left: 258px; top: 138px; max-width: 250px; padding: 9px 13px; border-radius: 12px 12px 12px 2px; background: var(--ivory); color: var(--ink); font-size: 14px; line-height: 1.3;
  box-shadow: 0 4px 0 rgba(0,0,0,.4); opacity: 0; transform: scale(.6); transform-origin: 0 100%; pointer-events: none; z-index: 30; transition: opacity .25s, transform .25s; }
.bubble.on { opacity: 1; transform: none; animation: bubble-in .3s cubic-bezier(.3,1.6,.5,1); }
@keyframes bubble-in { from { transform: scale(.4) rotate(-6deg); } to { transform: none; } }

/* ---------- Popups und Banner ---------- */
.pop { position: absolute; transform: translate(-50%, -50%); font-family: var(--px-wide); font-size: 26px; color: var(--ivory); white-space: nowrap; pointer-events: none;
  text-shadow: 0 3px 0 #000, 3px 0 0 #000, -3px 0 0 #000, 0 -3px 0 #000, 0 6px 0 rgba(0,0,0,.5); animation: pop-rise 1.1s cubic-bezier(.2,.9,.3,1) forwards; }
.pop.small { font-size: 16px; font-family: var(--px); letter-spacing: 1px; }
.pop.score { color: var(--ember-hot); font-size: 34px; }
.pop.score.hot { color: #fff; font-size: 44px; text-shadow: 0 3px 0 #b3261e, 3px 0 0 #b3261e, -3px 0 0 #b3261e, 0 -3px 0 #b3261e, 0 0 22px #ff7b3a; }
.pop.good { color: var(--good); }
.pop.bad { color: #ff7a66; }
.pop.gold { color: var(--ember-hot); }
.pop.heart { color: #ff8f8f; }
@keyframes pop-rise {
  0% { transform: translate(-50%, -50%) scale(.2) rotate(var(--tilt, 0deg)); opacity: 0; }
  12% { transform: translate(-50%, -50%) scale(1.4) rotate(var(--tilt, 0deg)); opacity: 1; }
  24% { transform: translate(-50%, -50%) scale(1) rotate(var(--tilt, 0deg)); }
  70% { opacity: 1; }
  100% { transform: translate(-50%, calc(-50% - 62px)) scale(.95) rotate(var(--tilt, 0deg)); opacity: 0; }
}
.banner { position: absolute; left: 0; right: 0; top: 262px; height: 140px; display: flex; align-items: center; justify-content: center; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,.82) 18%, rgba(0,0,0,.82) 82%, transparent); animation: banner 1.3s cubic-bezier(.2,.9,.3,1) forwards; }
.banner span { font-family: var(--px-wide); font-size: 76px; color: var(--ember-hot); letter-spacing: 3px; text-shadow: 0 6px 0 #8a3508, 0 0 40px rgba(255,140,40,.8); animation: banner-text 1.3s cubic-bezier(.3,1.5,.5,1) forwards; animation-duration: inherit; }
.banner.lose span { color: #b9b3ab; text-shadow: 0 6px 0 #33302c; }
.banner.swap span { color: var(--ivory); font-size: 56px; text-shadow: 0 5px 0 var(--burgundy); }
@keyframes banner { 0% { transform: scaleY(0); opacity: 0; } 12% { transform: scaleY(1); opacity: 1; } 82% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(0); opacity: 0; } }
@keyframes banner-text { 0% { transform: scale(3) rotate(-4deg); opacity: 0; } 16% { transform: scale(1) rotate(0); opacity: 1; } 22% { transform: scale(1.08); } 28% { transform: scale(1); } 100% { transform: scale(1.04); } }
.ghost { position: absolute; pointer-events: none; z-index: 5; }

#tooltip { position: absolute; z-index: 70; max-width: 280px; padding: 10px 12px; border-radius: 10px; background: #1d120c; border: 2px solid var(--brass); color: var(--ivory); font-size: 13px; line-height: 1.38;
  box-shadow: 0 5px 0 rgba(0,0,0,.5); pointer-events: none; opacity: 0; transform: translateY(4px) scale(.96); transition: opacity .09s, transform .09s; }
#tooltip.on { opacity: 1; transform: none; }
#tooltip b { font-family: var(--px-wide); font-weight: normal; font-size: 14px; color: var(--ember-hot); letter-spacing: .5px; }
#tooltip p b, .modal-text b, .help b { font-family: var(--text); font-weight: 800; font-size: inherit; color: #ffe9b0; letter-spacing: 0; }
#tooltip p { margin-top: 5px; }
#tooltip .rar { display: block; font-style: normal; font-family: var(--px); font-size: 11px; letter-spacing: 1px; margin-top: 2px; }
.rar.common { color: #b5a98d; } .rar.uncommon { color: #5fd0b6; } .rar.rare { color: #f0c24a; } .rar.legendary { color: #ff8a4a; }
.dim { opacity: .62; font-size: 12px; }

/* ---------- Karten ---------- */
.card { position: absolute; inset: 0; border-radius: 9px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.card.front { background: linear-gradient(160deg, #fbf3df, #ecdfc0); box-shadow: inset 0 0 0 2px #fffaf0, inset 0 0 0 4px #cdbb92; }
.card.red { color: #b3261e; }
.card.black { color: #1f2a2c; }
.card .corner { position: absolute; left: 9px; top: 8px; width: 24px; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.card .corner b { font-family: var(--px-wide); font-weight: normal; font-size: 21px; line-height: 1; }
.card .corner b.two { font-family: var(--px); font-size: 21px; letter-spacing: -1px; }
.card .corner.br { left: auto; top: auto; right: 9px; bottom: 8px; transform: rotate(180deg); }
.card .pip { width: 18px; height: 18px; background-size: contain; background-repeat: no-repeat; image-rendering: pixelated; display: block; }
.card .center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; }
.card .bigpip { width: 45px; height: 45px; background-size: contain; background-repeat: no-repeat; image-rendering: pixelated; display: block; }
.card .bigpip.ace { width: 63px; height: 63px; filter: drop-shadow(0 3px 0 rgba(0,0,0,.18)); }
.card .court { width: 50px; height: 70px; border-radius: 6px; border: 3px solid currentColor; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: repeating-linear-gradient(45deg, rgba(0,0,0,.05) 0 4px, transparent 4px 8px); }
.card .court b { font-family: var(--px-wide); font-weight: normal; font-size: 26px; line-height: 1; }
.card .fxmark { position: absolute; left: 50%; bottom: 9px; transform: translateX(-50%); font-family: var(--px); font-size: 12px; padding: 2px 6px 1px; border-radius: 5px; background: var(--ember); color: #3a1602; }
.card .shine { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.34) 46%, transparent 60%); opacity: 0; transition: opacity .15s; pointer-events: none; }

.card.special { background: linear-gradient(170deg, #f8eed6, #e6d3a8); box-shadow: inset 0 0 0 4px var(--burgundy), inset 0 0 0 6px var(--brass); }
.card.special.r1 { box-shadow: inset 0 0 0 4px #1f6f66, inset 0 0 0 6px var(--brass); }
.card.special.r2 { box-shadow: inset 0 0 0 4px #b8842a, inset 0 0 0 6px #ffe08a; }
.card.special.r3 { background: linear-gradient(170deg, #3a2418, #170d08); box-shadow: inset 0 0 0 4px #ff7b3a, inset 0 0 0 6px #ffd75e; }
.card .sp-title { position: absolute; left: 6px; right: 6px; top: 11px; text-align: center; font-family: var(--px); font-size: 14px; letter-spacing: .5px; color: var(--burgundy); white-space: nowrap; }
.card.special.r1 .sp-title { color: #17544d; }
.card.special.r2 .sp-title { color: #7a5210; }
.card.special.r3 .sp-title { color: var(--ember-hot); }
.card .sp-art { position: absolute; left: 50%; top: 28px; width: 84px; height: 84px; transform: translateX(-50%); background-size: contain; background-repeat: no-repeat; image-rendering: pixelated; }
.card .sp-tag { position: absolute; left: 10px; right: 10px; bottom: 11px; text-align: center; font-family: var(--px); font-size: 11px; letter-spacing: .5px; padding: 3px 2px 2px; border-radius: 5px; background: var(--burgundy); color: var(--ivory); white-space: nowrap; }
.card.special.r1 .sp-tag { background: #1f6f66; }
.card.special.r2 .sp-tag { background: #9a6c1c; }
.card.special.r3 .sp-tag { background: #ff7b3a; color: #2a1202; }

.card.back { background: #123c30; box-shadow: inset 0 0 0 4px var(--burgundy), inset 0 0 0 6px var(--brass); }
.card .back-inner { position: absolute; inset: 10px; border-radius: 4px;
  background: repeating-linear-gradient(45deg, rgba(199,154,63,.5) 0 2px, transparent 2px 11px), repeating-linear-gradient(-45deg, rgba(199,154,63,.5) 0 2px, transparent 2px 11px), #17493a; }
.card .back-emblem { position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; transform: translate(-50%, -50%) rotate(45deg); background: var(--burgundy); border: 3px solid var(--brass); box-shadow: 0 0 0 3px #123c30; }
.card .back-emblem::after { content: ''; position: absolute; inset: 7px; background: var(--ember); border-radius: 2px; }

/* Sprites auf dem Tisch */
.cards-layer { position: absolute; inset: 0; pointer-events: none; }
.spr { position: absolute; left: 0; top: 0; width: 104px; height: 146px; perspective: 620px; pointer-events: auto; will-change: transform; cursor: default; }
.spr-tilt, .spr-flip { position: absolute; inset: 0; transform-style: preserve-3d; }
.spr-flip .back { transform: rotateY(180deg); }
.spr-shadow { position: absolute; inset: 2px; border-radius: 10px; background: rgba(0,0,0,.42); filter: blur(3px); }
.spr-badge { position: absolute; left: -8px; top: -10px; width: 26px; height: 26px; border-radius: 50%; background: var(--ember); color: #2a1202; font-family: var(--px-wide); font-size: 14px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 0 #8a3508; transform: scale(0); transition: transform .14s cubic-bezier(.3,1.8,.5,1); z-index: 3; }
.spr-badge.on { transform: scale(1); }
.spr:hover .shine { opacity: 1; }
.spr.playable, .spr.chainable, .spr.option, .spr.selected { cursor: pointer; }
.spr.playable .card.front { box-shadow: inset 0 0 0 2px #fffaf0, inset 0 0 0 4px #cdbb92, 0 0 0 2px rgba(255,170,60,.0); }
.spr.playable .spr-flip::after, .spr.chainable .spr-flip::after, .spr.option .spr-flip::after, .spr.selected .spr-flip::after {
  content: ''; position: absolute; inset: -4px; border-radius: 12px; border: 3px solid rgba(255,160,60,.75); pointer-events: none; animation: glow 1.3s ease-in-out infinite; }
.spr.chainable .spr-flip::after { border-color: #ffe08a; border-style: dashed; }
.spr.option .spr-flip::after { border-color: #8fe0a0; }
.spr.selected .spr-flip::after { border-color: #fff3c4; box-shadow: 0 0 18px rgba(255,190,80,.9); animation: none; }
@keyframes glow { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
.spr.unplayable .card.front, .spr.dimmed .card.front { filter: brightness(.66) saturate(.7); }

/* Statische Karten */
.cardstatic { position: relative; width: 104px; height: 146px; perspective: 600px; flex: none; }
.cardstatic .cs-inner { position: absolute; inset: 0; transition: transform .1s ease-out; transform-style: preserve-3d; }
.cardstatic .cs-shadow { position: absolute; inset: 4px 0 -8px 8px; border-radius: 10px; background: rgba(0,0,0,.4); filter: blur(3px); }
.cardstatic:hover .shine { opacity: 1; }
.cardstatic.mini { zoom: .46; }
.cardstatic.large { zoom: 1.45; }
.cardstatic.clickable { cursor: pointer; }
.cardstatic.burnable:hover .card.front { box-shadow: inset 0 0 0 4px var(--red), inset 0 0 0 6px var(--ember); }
.cardstatic.burning { animation: burning .42s ease-in forwards; }
@keyframes burning { to { transform: scale(.2) rotate(18deg); filter: brightness(3) sepia(1) saturate(6) hue-rotate(-20deg); opacity: 0; } }

/* ---------- Duell ---------- */
.duel { position: absolute; inset: 0; }
.tablefelt { position: absolute; left: 252px; right: 252px; top: 14px; bottom: 14px; border-radius: 26px; background: radial-gradient(ellipse at 50% 45%, rgba(26,92,70,.62), rgba(8,36,28,.72));
  border: 3px solid var(--brass-dark); box-shadow: inset 0 0 0 3px rgba(0,0,0,.45), inset 0 0 90px rgba(0,0,0,.55), 0 6px 0 rgba(0,0,0,.4); }
.kind-elite .tablefelt { background: radial-gradient(ellipse at 50% 45%, rgba(34,74,104,.62), rgba(10,26,40,.74)); }
.kind-boss .tablefelt { background: radial-gradient(ellipse at 50% 45%, rgba(110,30,24,.6), rgba(34,8,8,.76)); border-color: #b3521e; }
.p-left { left: 14px; top: 14px; width: 224px; bottom: 14px; align-items: stretch; }
.p-right { right: 14px; top: 14px; width: 224px; bottom: 14px; }
.ecount { text-align: center; font-family: var(--px); font-size: 13px; color: var(--ivory-dim); }
.ecount b { font-family: var(--px-wide); font-weight: normal; font-size: 18px; color: var(--ivory); margin-left: 4px; }
.turnflag { text-align: center; font-family: var(--px-wide); font-size: 15px; padding: 9px 4px 7px; border-radius: 10px; background: rgba(0,0,0,.35); color: var(--ivory-dim); transition: background .2s, color .2s; }
.turnflag.me { background: linear-gradient(180deg, #ff9f3a, #e36a16); color: #2a1202; box-shadow: 0 4px 0 #8a3508; animation: punch .3s; }
.turnflag.opp { background: #3b2a1e; color: #d8c7a2; }
.turncount { text-align: center; font-family: var(--px); font-size: 12px; color: var(--ivory-dim); min-height: 16px; }
.turncount.warn { color: #ff7a66; animation: glow .7s infinite; }
.sortrow { display: flex; gap: 8px; }
.sortrow .btn { flex: 1 1 0; min-width: 0; padding-left: 4px; padding-right: 4px; }
.multirow { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: rgba(0,0,0,.3); border-radius: 10px; padding: 7px 10px; }
.btn.switch { min-width: 56px; }
.runline { display: flex; align-items: center; justify-content: space-between; font-family: var(--px); font-size: 12px; letter-spacing: 0; white-space: nowrap; color: var(--ivory-dim); }
.statline { display: flex; align-items: center; gap: 7px; background: rgba(0,0,0,.3); border-radius: 10px; padding: 7px 10px; min-height: 48px; }
.statline b { font-family: var(--px-wide); font-weight: normal; font-size: 22px; color: var(--ember-hot); }
.statline.bank b { font-size: 18px; }
.statline .mult { font-family: var(--px); font-size: 12px; color: #ffb36b; margin-left: auto; }
.lives { display: flex; gap: 5px; align-items: flex-end; }
.p-right .btn.big { width: 100%; font-size: 17px; padding: 15px 6px 13px; }

.stockpile { position: absolute; width: 104px; height: 146px; pointer-events: auto; z-index: 200; transition: transform .1s; }
.stockpile .card { box-shadow: inset 0 0 0 4px var(--burgundy), inset 0 0 0 6px var(--brass), 0 2px 0 rgba(0,0,0,.5); }
.stockpile .card:nth-child(1) { transform: translate(6px, 6px); }
.stockpile .card:nth-child(2) { transform: translate(3px, 3px); }
.stockpile.low .card:nth-child(1) { display: none; }
.stockpile.empty .card { opacity: .18; }
.stockpile.active { cursor: pointer; }
.stockpile.active:hover { transform: translateY(-5px) rotate(-2deg); }
.stocknum { position: absolute; left: 50%; bottom: -30px; transform: translateX(-50%); font-family: var(--px-wide); font-size: 15px; color: var(--ivory); background: rgba(0,0,0,.5); padding: 3px 10px 1px; border-radius: 8px; }

.scoreboard { position: absolute; left: 770px; top: 236px; width: 210px; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; row-gap: 8px; padding: 12px 14px; border-radius: 14px; background: rgba(0,0,0,.34); border: 2px solid rgba(199,154,63,.35); }
.chain { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 4px 12px 2px 8px; border-radius: 10px; background: #3b2a1e; transform-origin: 20% 50%; }
.chain b { font-family: var(--px-wide); font-weight: normal; font-size: 26px; color: var(--ivory); }
.chain .flame { filter: grayscale(.8) brightness(.8); transition: filter .2s; }
.chain.c1 { background: #8a3508; } .chain.c1 .flame { filter: none; }
.chain.c2 { background: #c8402f; box-shadow: 0 0 14px rgba(255,110,50,.6); } .chain.c2 .flame { filter: none; animation: flick .35s steps(2) infinite; }
.chain.c3 { background: linear-gradient(180deg, #ffd75e, #f08a24); box-shadow: 0 0 24px rgba(255,170,60,.9); } .chain.c3 b { color: #2a1202; } .chain.c3 .flame { filter: none; animation: flick .2s steps(2) infinite; }
@keyframes flick { 0% { transform: scale(1) rotate(-4deg); } 100% { transform: scale(1.18) rotate(4deg); } }
.glutnum { font-family: var(--px-wide); font-weight: normal; font-size: 30px; color: var(--ember-hot); text-shadow: 0 3px 0 rgba(0,0,0,.6); justify-self: start; transform-origin: 0 50%; }

.prompt { position: absolute; left: 50%; top: 448px; transform: translate(-50%, 0) scale(.8); max-width: 640px; padding: 9px 18px; border-radius: 12px; background: var(--ivory); color: var(--ink); font-size: 15px; text-align: center; box-shadow: 0 5px 0 rgba(0,0,0,.45); opacity: 0; pointer-events: none; z-index: 35; transition: opacity .2s, transform .2s cubic-bezier(.3,1.6,.5,1); }
.prompt.on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.stagedim { position: absolute; left: 252px; right: 252px; top: 14px; bottom: 14px; border-radius: 26px; background: rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .25s; }
.stagedim.on { opacity: 1; }
.duel .stagedim.on ~ .cards-layer .stockpile { filter: brightness(.5); }

/* ---------- Dialoge ---------- */
.modal-wrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(8,4,3,.72); pointer-events: auto; animation: fade-in .18s; }
@keyframes fade-in { from { opacity: 0; } }
.modal { width: 640px; max-height: 660px; display: flex; flex-direction: column; gap: 12px; padding: 22px 26px; border-radius: 18px; background: linear-gradient(180deg, var(--walnut-2), var(--walnut)); border: 3px solid var(--brass);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.5), 0 10px 0 rgba(0,0,0,.5); animation: modal-in .3s cubic-bezier(.3,1.5,.5,1); }
@keyframes modal-in { from { transform: scale(.75) translateY(30px); opacity: 0; } }
.modal.small { width: 460px; }
.modal.wide { width: 980px; }
.modal h2 { font-size: 24px; color: var(--ember-hot); text-align: center; text-shadow: 0 3px 0 rgba(0,0,0,.6); }
.modal-text { text-align: center; color: var(--ivory-dim); line-height: 1.45; }
.pickrow { display: flex; gap: 18px; justify-content: center; padding: 8px 0; }
.pickitem { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 96px; text-align: center; font-size: 12px; }
.deckgrid { display: flex; flex-wrap: wrap; gap: 14px 12px; justify-content: center; padding: 12px 6px 16px; overflow-y: auto; max-height: 420px; }
.help { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 34px; font-size: 14px; line-height: 1.45; color: #e6dabd; }
.help h3 { font-size: 15px; color: var(--ember); margin: 4px 0 6px; }
.help p { margin-bottom: 8px; }
.setrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 4px 2px; }
.setrow > span { font-family: var(--px); font-size: 15px; letter-spacing: 1px; }
.setrow input[type=range] { width: 220px; accent-color: var(--ember); }
.segmented { display: flex; gap: 6px; }
.paymeta { text-align: center; font-family: var(--px); font-size: 13px; color: var(--ivory-dim); letter-spacing: 1px; }
.paylines { display: flex; flex-direction: column; gap: 6px; min-height: 150px; }
.payline { display: flex; justify-content: space-between; align-items: center; padding: 6px 12px; border-radius: 8px; background: rgba(0,0,0,.3); animation: dropin .3s cubic-bezier(.3,1.5,.5,1); }
.payline b { font-family: var(--px-wide); font-weight: normal; font-size: 18px; color: var(--ember-hot); }
.paytotal { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px; border-top: 2px dashed rgba(199,154,63,.5); }
.paytotal > span:first-child { font-family: var(--px); font-size: 16px; letter-spacing: 1px; margin-right: 8px; }
.paytotal b { font-family: var(--px-wide); font-weight: normal; font-size: 38px; color: var(--ember-hot); text-shadow: 0 4px 0 rgba(0,0,0,.6); }
.paywallet { text-align: center; color: var(--ivory-dim); }
.paywallet b { color: var(--ivory); font-family: var(--px-wide); font-weight: normal; }

/* ---------- Kopfzeile ---------- */
.hud { position: absolute; left: 16px; right: 16px; top: 12px; height: 70px; display: flex; align-items: center; gap: 16px; padding: 0 16px; border-radius: 14px; background: linear-gradient(180deg, var(--walnut-2), var(--walnut)); border: 3px solid var(--brass-dark);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.45), 0 6px 0 rgba(0,0,0,.45); z-index: 5; }
.hud-title { display: flex; flex-direction: column; gap: 1px; min-width: 190px; }
.hud-title b { font-family: var(--px-wide); font-weight: normal; font-size: 19px; color: var(--ember-hot); }
.hud-title span { font-family: var(--px); font-size: 12px; color: var(--ivory-dim); letter-spacing: 1px; }
.hud-score, .hud-money { display: flex; align-items: center; gap: 7px; background: rgba(0,0,0,.3); border-radius: 10px; padding: 6px 12px; height: 46px; }
.hud-score b, .hud-money b { font-family: var(--px-wide); font-weight: normal; font-size: 20px; color: var(--ember-hot); }
.hud .trinket { width: 48px; height: 48px; }
.deckbtn { height: 46px; padding: 6px 12px; }
.deckbtn b { font-family: var(--px-wide); font-weight: normal; font-size: 17px; color: var(--ember-hot); }

/* ---------- Screens ---------- */
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; }
.screen h1 { font-size: 34px; color: var(--ember-hot); text-shadow: 0 4px 0 rgba(0,0,0,.6); margin-top: 102px; text-align: center; }
.screen .sub { margin-top: 8px; color: var(--ivory-dim); font-size: 15px; text-align: center; }

.menu { justify-content: center; gap: 6px; }
.menu .logo { width: 480px; image-rendering: pixelated; filter: drop-shadow(0 10px 0 rgba(0,0,0,.45)); animation: logo-float 4s ease-in-out infinite; margin-top: -30px; pointer-events: none; }
@keyframes logo-float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
.tagline { font-family: var(--px); font-size: 18px; letter-spacing: 3px; color: var(--ivory); text-shadow: 0 3px 0 rgba(0,0,0,.6); margin-top: 2px; }
.menu-buttons { display: flex; flex-direction: column; align-items: stretch; gap: 14px; width: 320px; margin-top: 22px; z-index: 2; }
.menu-save { text-align: center; font-family: var(--px); font-size: 12px; letter-spacing: 1px; color: var(--ivory-dim); margin: -6px 0 4px; }
.menu-stats { position: absolute; bottom: 22px; font-family: var(--px); font-size: 13px; letter-spacing: 1px; color: var(--ivory-dim); text-shadow: 0 2px 0 rgba(0,0,0,.6); }
.menu-deco { position: absolute; inset: 0; pointer-events: none; }
.deco-card { position: absolute; width: 104px; height: 146px; animation: deco-float 7s ease-in-out infinite; filter: drop-shadow(8px 14px 0 rgba(0,0,0,.35)); }
.deco-card.d0 { left: 96px; top: 110px; --r: -16deg; } .deco-card.d1 { left: 210px; top: 400px; --r: 11deg; } .deco-card.d2 { left: 60px; top: 520px; --r: -7deg; }
.deco-card.d3 { right: 110px; top: 96px; --r: 14deg; } .deco-card.d4 { right: 220px; top: 380px; --r: -12deg; } .deco-card.d5 { right: 70px; top: 510px; --r: 8deg; }
@keyframes deco-float { 0%, 100% { transform: translateY(0) rotate(var(--r)); } 50% { transform: translateY(-16px) rotate(calc(var(--r) + 4deg)); } }

.starter h1 { margin-top: 44px; }
.boxes { display: flex; gap: 22px; margin-top: 30px; }
.matchbox { width: 270px; height: 440px; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0 16px 18px; border-radius: 14px; background: linear-gradient(180deg, #f3e9d2, #dcc99c); color: var(--ink);
  border: 4px solid var(--box); box-shadow: 0 8px 0 rgba(0,0,0,.5), inset 0 0 0 3px rgba(255,255,255,.4); animation: dropin .5s cubic-bezier(.3,1.5,.5,1) backwards; transition: transform .12s; }
.matchbox:hover { transform: translateY(-8px) rotate(-1deg); }
.box-top { align-self: stretch; margin: 0 -16px; padding: 16px 10px 12px; background: var(--box); border-radius: 8px 8px 0 0; text-align: center; }
.box-name { font-family: var(--px-wide); font-size: 20px; color: #fff6e0; text-shadow: 0 3px 0 rgba(0,0,0,.45); }
.box-strip { height: 10px; margin: 10px 20px 0; border-radius: 3px; background: repeating-linear-gradient(90deg, #3a2418 0 3px, #5a3a26 3px 6px); }
.box-preview { height: 100px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.box-plain { font-family: var(--px-wide); font-size: 26px; color: #8a7a58; }
.matchbox p { text-align: center; font-size: 14px; line-height: 1.4; flex: 1; }
.box-money { display: flex; align-items: center; gap: 6px; }
.box-money b { font-family: var(--px-wide); font-weight: normal; font-size: 22px; color: #8a4a08; }
.box-money .unit { color: #6b5a3a; }
.btn.back { position: absolute; left: 30px; bottom: 26px; }

.invites { display: flex; gap: 26px; margin-top: 26px; perspective: 1200px; }
.invite { width: 320px; height: 470px; display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 16px 18px 18px; border-radius: 16px; background: linear-gradient(180deg, var(--walnut-2), var(--walnut)); border: 3px solid var(--brass-dark);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.45), 0 8px 0 rgba(0,0,0,.5); animation: dropin .5s cubic-bezier(.3,1.5,.5,1) backwards; transition: transform .12s ease-out; }
.invite.current { border-color: var(--ember); box-shadow: inset 0 0 0 2px rgba(0,0,0,.45), 0 0 34px rgba(255,140,40,.45), 0 8px 0 rgba(0,0,0,.5); }
.invite.locked { filter: brightness(.6) saturate(.6); }
.invite.done { filter: brightness(.72); }
.invite.done .portrait { filter: grayscale(1); }
.invite .epassive { min-height: 52px; }
.rewards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; align-items: center; font-size: 13px; color: #e6dabd; flex: 1; }
.rewards li { display: flex; align-items: center; gap: 6px; }
.rewards .ico.coin { width: 16px; height: 16px; } .rewards .ico.match { width: 8px; height: 24px; }
.stamp { font-family: var(--px-wide); font-size: 24px; color: #ff7a66; border: 4px solid #ff7a66; border-radius: 10px; padding: 6px 14px 3px; transform: rotate(-9deg); opacity: .9; }
.locked-note { display: flex; align-items: center; gap: 8px; font-family: var(--px); font-size: 14px; color: var(--ivory-dim); letter-spacing: 1px; height: 50px; }

.reward-row { display: flex; gap: 28px; margin: 24px 0 22px; }
.reward-item { width: 270px; height: 390px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 10px; padding: 22px 18px 18px; border-radius: 16px; background: linear-gradient(180deg, var(--walnut-2), var(--walnut)); border: 3px solid var(--brass-dark);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.45), 0 8px 0 rgba(0,0,0,.5); animation: dropin .5s cubic-bezier(.3,1.5,.5,1) backwards; }
.reward-item p { text-align: center; font-size: 13px; line-height: 1.4; color: #e6dabd; min-height: 56px; }

.shop-left { position: absolute; left: 22px; bottom: 16px; width: 300px; height: 520px; }
.manfred { position: absolute; left: 22px; bottom: 44px; width: 256px; height: 256px; background-size: contain; background-repeat: no-repeat; background-position: center bottom; image-rendering: pixelated; animation: breathe 3.2s ease-in-out infinite; transform-origin: 50% 100%; filter: drop-shadow(0 8px 0 rgba(0,0,0,.35)); }
.shop-sign { position: absolute; left: 20px; right: 20px; bottom: 0; text-align: center; font-family: var(--px-wide); font-size: 17px; color: #2a1202; padding: 9px 4px 6px; border-radius: 10px; background: linear-gradient(180deg, #e2b23c, #b88422); box-shadow: 0 5px 0 #6b4a12; }
.bubble.shopbubble { left: 30px; top: 96px; max-width: 250px; border-radius: 12px 12px 12px 2px; z-index: 3; }
.shop-main { position: absolute; left: 340px; right: 22px; top: 100px; display: flex; flex-direction: column; gap: 26px; }
.shelf { position: relative; padding: 26px 18px 14px; border-radius: 14px; }
.shelf-label { position: absolute; left: 16px; top: -13px; font-family: var(--px); font-size: 14px; letter-spacing: 2px; padding: 4px 12px 2px; border-radius: 6px; box-shadow: 0 3px 0 rgba(0,0,0,.4); z-index: 2; }
.shelf-row { display: flex; gap: 24px; align-items: flex-end; justify-content: center; min-height: 150px; }
.shelf-pair { display: flex; gap: 20px; align-items: stretch; }

/* Kartenregal: grüner Filz */
.cards-shelf { background: linear-gradient(180deg, rgba(23,73,58,.92), rgba(13,47,37,.92)); border: 3px solid #2f7d5b; box-shadow: inset 0 0 0 2px rgba(0,0,0,.4), inset 0 0 40px rgba(0,0,0,.45), 0 6px 0 rgba(0,0,0,.4); padding-right: 190px; }
.cards-shelf .shelf-label { background: #2f7d5b; color: #eafff2; }
/* Trinket-Vitrine: Burgund-Samt */
.trinket-shelf { flex: 0 0 330px; background: linear-gradient(180deg, rgba(110,28,34,.92), rgba(62,14,20,.94)); border: 3px solid #b3262e; box-shadow: inset 0 0 0 2px rgba(0,0,0,.4), inset 0 0 40px rgba(0,0,0,.45), 0 6px 0 rgba(0,0,0,.4); }
.trinket-shelf .shelf-label { background: #b3262e; color: #ffe9e0; }
.trinket-shelf .shelf-row { min-height: 0; gap: 18px; }
.pedestal { width: 96px; height: 10px; margin-top: -4px; border-radius: 3px; background: linear-gradient(180deg, #e2b23c, #8a6524); box-shadow: 0 3px 0 rgba(0,0,0,.45); }
/* Dienste: Werkbank */
.service-shelf { flex: 1; background: linear-gradient(180deg, rgba(58,36,24,.94), rgba(30,18,12,.95)); border: 3px solid var(--brass-dark); box-shadow: inset 0 0 0 2px rgba(0,0,0,.4), 0 6px 0 rgba(0,0,0,.4); }
.service-shelf .shelf-label { background: var(--brass); color: #2a1a0a; }
.services { display: flex; flex-direction: column; gap: 12px; }
.service { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 12px; min-height: 76px; }
.service .svc-body { flex: 1; }
.service .svc-name { font-family: var(--px); font-size: 17px; letter-spacing: 1px; margin-bottom: 3px; }
.service p { font-size: 12.5px; line-height: 1.35; }
.service .svc-ico { width: 40px; height: 50px; flex: none; }
.service.off { filter: grayscale(.7) brightness(.72); }
.service.burn { background: linear-gradient(180deg, #2a1410, #170a08); border: 2px solid #c8402f; box-shadow: inset 0 -14px 22px rgba(240,138,36,.28), 0 4px 0 rgba(0,0,0,.4); }
.service.burn .svc-name { color: #ffb36b; }
.service.burn p { color: #e6c9b4; }
.service.burn .svc-ico { animation: flick .4s steps(2) infinite; }
.service.heal { background: linear-gradient(180deg, #f3e9d2, #dcc99c); border: 2px solid #8a6524; color: var(--ink); box-shadow: inset 8px 0 0 #b3261e, 0 4px 0 rgba(0,0,0,.4); padding-left: 22px; }
.service.heal .svc-name { color: #7c1f1c; }
.service.heal p { color: #4a3b28; }
.service.heal .svc-ico { width: 16px; height: 48px; margin: 0 12px; filter: drop-shadow(2px 0 0 #3a2418) drop-shadow(-2px 0 0 #3a2418) drop-shadow(0 2px 0 #3a2418) drop-shadow(0 -2px 0 #3a2418); }

.offer { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; width: 132px; animation: dropin .4s cubic-bezier(.3,1.5,.5,1) backwards; }
.offer.tk { width: 132px; gap: 7px; }
.offer.sold { justify-content: center; height: 150px; }
.soldout { font-family: var(--px); font-size: 14px; letter-spacing: 2px; color: var(--ivory-dim); opacity: .5; transform: rotate(-8deg); border: 2px dashed currentColor; border-radius: 8px; padding: 5px 10px 3px; }
.offer-name { font-family: var(--px); font-size: 12px; letter-spacing: .5px; text-align: center; color: var(--ivory); min-height: 15px; white-space: nowrap; }
.discount { position: absolute; right: 2px; top: -10px; font-family: var(--px-wide); font-size: 13px; padding: 4px 7px 2px; border-radius: 8px; background: #2f9d6b; color: #eafff2; transform: rotate(9deg); box-shadow: 0 3px 0 rgba(0,0,0,.4); z-index: 2; }

/* Preisschilder: je Angebotsart eine eigene Farbe */
.btn.price { min-width: 84px; padding: 6px 12px 5px; font-family: var(--px-wide); font-size: 16px; text-shadow: none; }
.btn.price .ico.coin { width: 18px; height: 18px; }
.btn.price.tag { background: linear-gradient(180deg, #f3e9d2, #d6c59c); color: #2a1a0a; box-shadow: 0 4px 0 #7d6c48, 0 6px 0 rgba(0,0,0,.3); border-radius: 4px 14px 14px 4px; }
.btn.price.gold { background: linear-gradient(180deg, #ffd75e, #d79a1e); color: #3a2408; box-shadow: 0 4px 0 #7a5210, 0 6px 0 rgba(0,0,0,.3); border-radius: 18px; }
.btn.price.red { background: linear-gradient(180deg, #e4572e, #a82a16); color: #fff0e0; box-shadow: 0 4px 0 #5a1208, 0 6px 0 rgba(0,0,0,.3); }
.btn.price.green { background: linear-gradient(180deg, #2f9d6b, #1f6349); color: #eafff2; box-shadow: 0 4px 0 #0e3426, 0 6px 0 rgba(0,0,0,.3); }
.btn.price.poor span { text-decoration: line-through; opacity: .75; }
.btn.price:active:not(:disabled) { box-shadow: 0 0 0 transparent; }

/* Neue Auslage: runde Messingglocke */
.rerollbox { position: absolute; right: 26px; top: 50%; transform: translateY(-46%); width: 140px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.reroll { width: 88px; height: 88px; border-radius: 50%; border: 4px solid #6b4a12; background: radial-gradient(circle at 35% 30%, #fff1b8, #e2b23c 45%, #a8782a 100%); cursor: pointer;
  box-shadow: 0 6px 0 #5a3d0c, 0 10px 0 rgba(0,0,0,.4), inset 0 3px 0 rgba(255,255,255,.5); display: flex; align-items: center; justify-content: center; transition: transform .08s, box-shadow .08s, filter .1s; }
.reroll:hover { filter: brightness(1.1); }
.reroll:hover .rerollico { transform: rotate(60deg); }
.reroll:active { transform: translateY(5px); box-shadow: 0 1px 0 #5a3d0c, 0 2px 0 rgba(0,0,0,.4); }
.reroll.poor { filter: grayscale(.6) brightness(.8); }
.reroll .rerollico { width: 44px; height: 44px; transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.reroll.spin .rerollico { animation: spin .5s cubic-bezier(.3,1.2,.5,1); }
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.reroll-name { font-family: var(--px); font-size: 13px; letter-spacing: 1px; color: #eafff2; text-shadow: 0 2px 0 rgba(0,0,0,.5); }
.reroll-price { display: flex; align-items: center; gap: 5px; background: rgba(0,0,0,.4); border-radius: 12px; padding: 3px 12px 2px; }
.reroll-price .ico.coin { width: 16px; height: 16px; }
.reroll-price b { font-family: var(--px-wide); font-weight: normal; font-size: 16px; color: var(--ember-hot); }

.manfred.hop { animation: hop .4s cubic-bezier(.3,1.6,.5,1); }
@keyframes hop { 0% { transform: translateY(0) scale(1); } 35% { transform: translateY(-14px) scale(1.04, .97); } 100% { transform: none; } }
.shop-next { position: absolute; right: 26px; bottom: 22px; }

.endscreen { justify-content: center; gap: 14px; }
.endscreen h1.huge { margin: 0; font-size: 62px; text-shadow: 0 6px 0 #8a3508, 0 0 40px rgba(255,140,40,.7); animation: banner-text 1s cubic-bezier(.3,1.5,.5,1); }
.endscreen.lose h1.huge { color: #c9c2b8; text-shadow: 0 6px 0 #33302c; }
.endstats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; width: 620px; margin: 14px 0 12px; }
.endstat { display: flex; justify-content: space-between; align-items: center; padding: 9px 14px; border-radius: 10px; background: rgba(0,0,0,.42); }
.endstat b { font-family: var(--px-wide); font-weight: normal; font-size: 17px; color: var(--ember-hot); }
.deadmatches { display: flex; gap: 16px; }
.deadmatches .ico.match { width: 20px; height: 60px; }
