/* PERLAGGEN COMIC — styles */

:root {
  --paper: #f1e7d0;
  --paper-2: #e8dcc0;
  --paper-dark: #d9c89e;
  --ink: #1f160d;
  --ink-soft: #3a2a1a;
  --red: #b8302a;
  --red-dark: #8a1f1c;
  --green: #2f5f33;
  --green-dark: #1f3f22;
  --gold: #c89a3c;
  --gold-dark: #9a7322;
  --blue: #2a4a78;
  --skin: #f0c8a0;
  --skin-2: #d9a87a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Bricolage Grotesque', sans-serif;
  color: var(--ink);
  background: #1a1208;
}

deck-stage > section {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255,240,200,0.4), transparent 60%),
    radial-gradient(ellipse at 80% 90%, rgba(180,140,80,0.2), transparent 60%),
    var(--paper);
  background-color: var(--paper);
  position: relative;
  overflow: hidden;
  padding: 56px 72px;
  display: flex;
  flex-direction: column;
}

/* paper grain noise overlay */
deck-stage > section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(60,40,20,0.06) 1px, transparent 0),
    radial-gradient(circle at 7px 11px, rgba(60,40,20,0.04) 1px, transparent 0);
  background-size: 4px 4px, 13px 13px;
  pointer-events: none;
  z-index: 0;
}

/* page edges — slight shadow inside */
deck-stage > section::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 80px rgba(80,50,20,0.25), inset 0 0 200px rgba(80,50,20,0.1);
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* ====== TITLES ====== */
.page-title {
  font-family: 'Bangers', sans-serif;
  font-size: 100px;
  letter-spacing: 2px;
  line-height: 0.95;
  color: var(--ink);
  margin: 0;
  text-shadow: 4px 4px 0 var(--gold);
}
.page-title .accent {
  color: var(--red);
}
.page-subtitle {
  font-family: 'Patrick Hand', cursive;
  font-size: 34px;
  color: var(--ink-soft);
  margin: 0;
}
.page-number {
  position: absolute;
  top: 24px;
  right: 36px;
  font-family: 'Bangers', sans-serif;
  font-size: 28px;
  color: var(--ink);
  background: var(--gold);
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 3px solid var(--ink);
  transform: rotate(-6deg);
  z-index: 10;
  box-shadow: 3px 3px 0 var(--ink);
}
.page-chapter {
  position: absolute;
  top: 32px;
  left: 72px;
  font-family: 'Bangers', sans-serif;
  font-size: 22px;
  letter-spacing: 3px;
  color: var(--red);
  z-index: 10;
}

/* ====== PANELS ====== */
.panels {
  display: grid;
  gap: 18px;
  flex: 1;
}
.panels.cols-2 { grid-template-columns: 1fr 1fr; }
.panels.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.panels.cols-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.panels.r-2-1 { grid-template-rows: 1fr 0.7fr; }
.panels.r-1-1 { grid-template-rows: 1fr 1fr; }

.panel {
  position: relative;
  background: #faf2dc;
  border: 4px solid var(--ink);
  border-radius: 6px;
  padding: 18px 20px;
  overflow: hidden;
  box-shadow: 5px 5px 0 rgba(31,22,13,0.6);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.panel.span-2 { grid-column: span 2; }
.panel.span-3 { grid-column: span 3; }
.panel.span-row-2 { grid-row: span 2; }

.panel.cream { background: #f9efd4; }
.panel.wood { background: #e8c98c; }
.panel.green { background: #b7c69a; }
.panel.red-tint { background: #e9b8a8; }
.panel.dark { background: var(--ink); color: var(--paper); }
.panel.dark .caption { color: var(--paper); }
.panel.blue-tint { background: #aec3d7; }

.panel-label {
  font-family: 'Bangers', sans-serif;
  font-size: 34px;
  letter-spacing: 1.5px;
  color: var(--red);
  line-height: 1;
}
.panel-label.green { color: var(--green); }
.panel-label.gold { color: var(--gold-dark); }
.panel-label.ink { color: var(--ink); }

.caption {
  font-family: 'Patrick Hand', cursive;
  font-size: 26px;
  line-height: 1.25;
  color: var(--ink);
}
.caption b, .caption strong {
  font-family: 'Bangers', sans-serif;
  font-weight: normal;
  letter-spacing: 1px;
  color: var(--red);
}
.caption .green-word { color: var(--green-dark); font-family:'Bangers'; letter-spacing: 1px;}
.caption .ink-word { color: var(--ink); font-family:'Bangers'; letter-spacing: 1px;}

.caption-box {
  background: #fff4d2;
  border: 3px solid var(--ink);
  padding: 10px 16px;
  font-family: 'Patrick Hand', cursive;
  font-size: 26px;
  color: var(--ink);
  align-self: flex-start;
  box-shadow: 3px 3px 0 var(--ink);
  max-width: 100%;
}
.caption-box b {
  color: var(--red);
  font-family: 'Bangers', sans-serif;
  font-weight: normal;
  letter-spacing: 1px;
}
.caption-box.top-left {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
}

/* ====== SPEECH BUBBLES ====== */
.bubble {
  position: relative;
  background: #fffaf0;
  border: 3px solid var(--ink);
  border-radius: 24px;
  padding: 12px 18px;
  font-family: 'Patrick Hand', cursive;
  font-size: 26px;
  line-height: 1.2;
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  max-width: 380px;
}
.bubble.shout {
  font-family: 'Bangers', sans-serif;
  font-size: 42px;
  letter-spacing: 1px;
  color: var(--red);
  background: #fff4d2;
  border-radius: 8px;
  transform: rotate(-3deg);
}
.bubble.thought {
  border-radius: 60% 40% 50% 50%;
  background: #f5ebd8;
}
.bubble.small { font-size: 22px; padding: 8px 14px; max-width: 260px; }
.bubble strong { color: var(--red); font-family: 'Bangers', sans-serif; font-weight: normal; letter-spacing: 1px;}

.bubble .tail {
  position: absolute;
  width: 28px;
  height: 28px;
  background: #fffaf0;
  border: 3px solid var(--ink);
  border-top: none;
  border-right: none;
  bottom: -14px;
  left: 30px;
  transform: rotate(-30deg);
  border-bottom-left-radius: 24px;
}
.bubble .tail.right { left: auto; right: 30px; transform: rotate(60deg); }
.bubble .tail.top { top: -14px; bottom: auto; transform: rotate(150deg); }

/* ====== CHARACTERS ====== */
.character {
  position: relative;
  width: 120px;
  height: 190px;
  display: inline-block;
  flex-shrink: 0;
}
.character .head {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 70px;
  background: var(--skin);
  border: 3px solid var(--ink);
  border-radius: 50% 50% 45% 45%;
  z-index: 2;
}
.character .head::before, .character .head::after {
  /* eyes */
  content: "";
  position: absolute;
  width: 4px;
  height: 6px;
  background: var(--ink);
  border-radius: 50%;
  top: 28px;
}
.character .head::before { left: 18px; }
.character .head::after { right: 18px; }
.character .mouth {
  position: absolute;
  width: 16px;
  height: 6px;
  border-bottom: 3px solid var(--ink);
  border-radius: 0 0 50% 50%;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
}
.character .mouth.smile { border-bottom-width: 3px; }
.character .mouth.flat { border-bottom: none; border-top: 3px solid var(--ink); height: 0; width: 14px;}
.character .mouth.o {
  border: 3px solid var(--ink);
  width: 10px;
  height: 12px;
  border-radius: 50%;
  background: var(--red-dark);
  top: 60px;
}
.character .mouth.shout {
  border: 3px solid var(--ink);
  width: 18px;
  height: 18px;
  border-radius: 40%;
  background: var(--red-dark);
  top: 58px;
}

.character .body {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 105px;
  background: var(--red);
  border: 3px solid var(--ink);
  border-radius: 50% 50% 12px 12px / 60% 60% 12px 12px;
  z-index: 1;
}
.character .body.green-shirt { background: var(--green); }
.character .body.red-shirt { background: var(--red); }
.character .body.gold-shirt { background: var(--gold); }
.character .body.blue-shirt { background: var(--blue); color: white;}
.character .body.dark-shirt { background: #4a3220; }

/* Tirol hat — felt hat with feather */
.character .hat {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 82px;
  height: 34px;
  background: var(--green-dark);
  border: 3px solid var(--ink);
  border-radius: 50% 50% 8px 8px / 80% 80% 8px 8px;
  z-index: 3;
}
.character .hat::before {
  /* hat brim */
  content: "";
  position: absolute;
  bottom: -8px;
  left: -8px;
  width: 96px;
  height: 12px;
  background: var(--green-dark);
  border: 3px solid var(--ink);
  border-radius: 50%;
}
.character .hat::after {
  /* feather */
  content: "";
  position: absolute;
  top: -6px;
  right: 4px;
  width: 6px;
  height: 24px;
  background: var(--red);
  border: 2px solid var(--ink);
  border-radius: 50% 50% 0 0;
  transform: rotate(20deg);
}
.character .hat.red { background: var(--red); }
.character .hat.red::before { background: var(--red); }
.character .hat.gold { background: var(--gold); }
.character .hat.gold::before { background: var(--gold); }
.character .hat.scarf {
  background: var(--red);
  border-radius: 50% 50% 12px 12px;
  height: 42px;
  width: 74px;
  top: 38px;
}
.character .hat.scarf::before { display: none; }
.character .hat.scarf::after { display: none; }

/* Hair option (no hat) */
.character .hair {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 74px;
  height: 32px;
  background: #3a2410;
  border: 3px solid var(--ink);
  border-radius: 50% 50% 0 0;
  z-index: 3;
}
.character .hair.blond { background: #c89a3c; }
.character .hair.gray { background: #aaa5a0; }
.character .hair.dark { background: #2a1a0a; }
.character .hair.long {
  height: 60px;
  border-radius: 50% 50% 40% 40% / 30% 30% 60% 60%;
  top: 38px;
}

/* Mustache */
.character .mustache {
  position: absolute;
  width: 30px;
  height: 9px;
  background: #eee;
  border: 2px solid var(--ink);
  border-radius: 50%;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
.character .mustache.dark { background: #2a1a0a; }

/* Hand holding cards */
.character .arm {
  position: absolute;
  width: 14px;
  height: 50px;
  background: inherit;
  bottom: 30px;
  z-index: 0;
}

.character.small { transform: scale(0.85); transform-origin: bottom center; }
.character.tiny { transform: scale(0.6); transform-origin: bottom center; }
.character.flip { transform: scaleX(-1); }
.character.flip.small { transform: scaleX(-1) scale(0.85); }

.character.shrug .arms { display: block; }

/* ====== PLAYING CARDS ====== */
.card {
  width: 104px;
  height: 150px;
  background: #fffdf5;
  border: 3px solid var(--ink);
  border-radius: 8px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 10px;
  font-family: 'Bangers', sans-serif;
  font-size: 26px;
  color: var(--ink);
  position: relative;
  box-shadow: 2px 2px 0 var(--ink);
  flex-shrink: 0;
}
.card .rank-top {
  font-size: 28px;
  line-height: 1;
}
.card .rank-bottom {
  font-size: 28px;
  line-height: 1;
  align-self: flex-end;
  transform: rotate(180deg);
}
.card .suit-big {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 58px;
  pointer-events: none;
}

/* ====== SUIT ICONS (deutsches Blatt) ====== */
/* Inline-Symbol als SVG background-image — multi-color, näher am Original */
.suit {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.18em;
  background-color: transparent;
  -webkit-mask-image: none;
          mask-image: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.suit.eichel {
  width: 0.78em;
  height: 1.1em;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 38'><path d='M5 23 L5 12 Q5 3 14 3 Q23 3 23 12 L23 23 Z' fill='%23f5c34e' stroke='%231f160d' stroke-width='1.4' stroke-linejoin='round'/><g stroke='%23b8302a' stroke-width='1' fill='none' stroke-linecap='round'><line x1='13' y1='4.2' x2='13' y2='21.5'/><line x1='15' y1='4.2' x2='15' y2='21.5'/><line x1='17' y1='4.5' x2='17' y2='21.5'/><line x1='19' y1='5.5' x2='19' y2='21.5'/><line x1='21' y1='8' x2='21' y2='21.5'/></g><path d='M5 23 C1.5 26 1.5 32 14 37 C26.5 32 26.5 26 23 23 Z' fill='%232f5f33' stroke='%231f160d' stroke-width='1.4' stroke-linejoin='round'/><g stroke='%231f3f22' stroke-width='1' fill='none' stroke-linecap='round'><path d='M8 25 Q7 30 10.5 33'/><path d='M12 25 Q12 30 13 35.5'/><path d='M16 25 Q15.5 30 15 35.5'/><path d='M20 25 Q21 30 17.5 33'/></g><rect x='5' y='22' width='18' height='2.2' fill='%232a4a78'/><path d='M14 37 Q14 40 11 40' fill='none' stroke='%231f160d' stroke-width='1.6' stroke-linecap='round'/></svg>");
}
.suit.laub {
  width: 0.85em;
  height: 1.05em;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 35'><path d='M14 30.5 C15.2 32.8 16.8 33.4 18.8 32.8' fill='none' stroke='%231f160d' stroke-width='1.5' stroke-linecap='round'/><path d='M14 3.5 L11 6.5 L8.5 5.2 C6.5 7.8 6 11 6.6 14 C7 18 3.5 21 4 25 C5 29 10 31 14 31 Z' fill='%23f5c34e' stroke='%231f160d' stroke-width='1.3' stroke-linejoin='round'/><path d='M14 3.5 L17 6.5 L19.5 5.2 C21.5 7.8 22 11 21.4 14 C21 18 24.5 21 24 25 C23 29 18 31 14 31 Z' fill='%232f5f33' stroke='%231f160d' stroke-width='1.3' stroke-linejoin='round'/><g stroke='%231f3f22' stroke-width='1' stroke-linecap='round'><line x1='16' y1='7' x2='16' y2='29.5'/><line x1='18' y1='9' x2='18' y2='29'/><line x1='20' y1='13' x2='20' y2='27'/><line x1='22' y1='18' x2='22' y2='24.5'/></g><path d='M14 3.5 L17 6.5 L19.5 5.2 C21.5 7.8 22 11 21.4 14 C21 18 24.5 21 24 25 C23 29 18 31 14 31 Z' fill='none' stroke='%231f160d' stroke-width='1.3' stroke-linejoin='round'/><line x1='14' y1='4.5' x2='14' y2='30' stroke='%231f160d' stroke-width='1.3' stroke-linecap='round'/><g stroke='%237a5a1c' stroke-width='0.9' fill='none' stroke-linecap='round'><path d='M14 12 L8 11'/><path d='M14 17 L6.8 17'/><path d='M14 22 L7 23'/><path d='M14 26 L9 27.5'/></g></svg>");
}
.suit.schell {
  width: 0.78em;
  height: 1.05em;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'><circle cx='12' cy='15' r='10' fill='%23f5c34e' stroke='%231f160d' stroke-width='1.4'/><path d='M2.97 19.3 A10 10 0 0 0 21.03 19.3 Z' fill='%232f5f33' stroke='%231f160d' stroke-width='1.4' stroke-linejoin='round'/><g stroke='%23c89a3c' stroke-width='0.7' fill='none'><line x1='5' y1='10' x2='19' y2='10'/><line x1='4' y1='12' x2='20' y2='12'/><line x1='3.6' y1='14' x2='20.4' y2='14'/></g><circle cx='12' cy='7.5' r='1.8' fill='%231f160d'/><path d='M2.2 15 L21.8 15 L21 19.3 L3 19.3 Z' fill='%23b8302a' stroke='%231f160d' stroke-width='1'/><g fill='%231f160d'><ellipse cx='7' cy='17.1' rx='1.6' ry='1.3'/><ellipse cx='12' cy='17.1' rx='1.6' ry='1.3'/><ellipse cx='17' cy='17.1' rx='1.6' ry='1.3'/></g><path d='M9 24.5 Q12 30 15 24.5 Q14 27.5 12 27.5 Q10 27.5 9 24.5 Z' fill='%232f5f33' stroke='%231f160d' stroke-width='1' stroke-linejoin='round'/></svg>");
}
.suit.herz {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 21.6 C12 21.6 2.8 15.5 2.8 9 C2.8 5.5 5.3 3 8.6 3 C10.4 3 11.6 4 12 5.5 C12.4 4 13.6 3 15.4 3 C18.7 3 21.2 5.5 21.2 9 C21.2 15.5 12 21.6 12 21.6 Z' fill='%23b8302a' stroke='%231f160d' stroke-width='1.2' stroke-linejoin='round'/><g stroke='%238a1f1c' stroke-width='0.9' fill='none' stroke-linecap='round'><line x1='12.8' y1='5' x2='12.8' y2='18'/><line x1='14.5' y1='4' x2='14.5' y2='18'/><line x1='16.2' y1='4' x2='16.2' y2='16.5'/><line x1='17.8' y1='5.5' x2='17.8' y2='14.5'/><line x1='19.2' y1='8' x2='19.2' y2='12'/></g></svg>");
}

/* Weli: Joker mit Schellen, Eichel und Herz — neue detaillierte Variante */
.suit.weli {
  background-color: transparent;
  -webkit-mask-image: none;
          mask-image: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 70'><defs><symbol id='s' viewBox='0 0 24 32'><circle cx='12' cy='15' r='10' fill='%23f5c34e' stroke='%231f160d' stroke-width='1.6'/><path d='M2.97 19.3 A10 10 0 0 0 21.03 19.3 Z' fill='%232f5f33' stroke='%231f160d' stroke-width='1.6' stroke-linejoin='round'/><circle cx='12' cy='8.5' r='2' fill='%231f160d'/><path d='M2.2 15 L21.8 15 L21 19.3 L3 19.3 Z' fill='%23b8302a' stroke='%231f160d' stroke-width='1.2'/><path d='M9 24.5 Q12 30 15 24.5 Q14 27.5 12 27.5 Q10 27.5 9 24.5 Z' fill='%232f5f33' stroke='%231f160d' stroke-width='1.2'/></symbol></defs><use href='%23s' x='1' y='1' width='17' height='22'/><use href='%23s' x='1' y='24' width='17' height='22'/><use href='%23s' x='1' y='47' width='17' height='22'/><use href='%23s' x='32' y='1' width='17' height='22'/><use href='%23s' x='32' y='24' width='17' height='22'/><use href='%23s' x='32' y='47' width='17' height='22'/><g transform='translate(17.3 10.5) scale(0.55)'><path d='M5 23 L5 12 Q5 3 14 3 Q23 3 23 12 L23 23 Z' fill='%23f5c34e' stroke='%231f160d' stroke-width='1.6' stroke-linejoin='round'/><g stroke='%23b8302a' stroke-width='1.4' fill='none' stroke-linecap='round'><line x1='13' y1='4.2' x2='13' y2='21.5'/><line x1='15' y1='4.2' x2='15' y2='21.5'/><line x1='17' y1='4.5' x2='17' y2='21.5'/><line x1='19' y1='5.5' x2='19' y2='21.5'/><line x1='21' y1='8' x2='21' y2='21.5'/></g><path d='M5 23 C1.5 26 1.5 32 14 37 C26.5 32 26.5 26 23 23 Z' fill='%232f5f33' stroke='%231f160d' stroke-width='1.6' stroke-linejoin='round'/><g stroke='%231f3f22' stroke-width='1.4' fill='none' stroke-linecap='round'><path d='M8 25 Q7 30 10.5 33'/><path d='M12 25 Q12 30 13 35.5'/><path d='M16 25 Q15.5 30 15 35.5'/><path d='M20 25 Q21 30 17.5 33'/></g><rect x='5' y='22' width='18' height='2.2' fill='%232a4a78'/><path d='M14 37 Q14 40 11 40' fill='none' stroke='%231f160d' stroke-width='1.8' stroke-linecap='round'/></g><g transform='translate(17.2 40.2) scale(0.65)'><path d='M12 21.6 C12 21.6 2.8 15.5 2.8 9 C2.8 5.5 5.3 3 8.6 3 C10.4 3 11.6 4 12 5.5 C12.4 4 13.6 3 15.4 3 C18.7 3 21.2 5.5 21.2 9 C21.2 15.5 12 21.6 12 21.6 Z' fill='%23b8302a' stroke='%231f160d' stroke-width='1.4' stroke-linejoin='round'/><g stroke='%238a1f1c' stroke-width='1.2' fill='none' stroke-linecap='round'><line x1='12.8' y1='5' x2='12.8' y2='18'/><line x1='14.5' y1='4' x2='14.5' y2='18'/><line x1='16.2' y1='4' x2='16.2' y2='16.5'/><line x1='17.8' y1='5.5' x2='17.8' y2='14.5'/><line x1='19.2' y1='8' x2='19.2' y2='12'/></g></g></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  width: 1em;
  height: 1.4em;
  vertical-align: middle;
}

/* Wenn der Weli mittig auf der Karte sitzt, soll er fast die ganze Karte ausfüllen */
.card.weli .suit-big {
  font-size: 76px;
}
.card.small.weli .suit-big {
  font-size: 56px;
}
.card.tiny.weli .suit-big {
  font-size: 40px;
}
.card.eichel { color: #6b3a13;}
.card.eichel .suit-big { color: #6b3a13; }
.card.laub { color: var(--green-dark); }
.card.laub .suit-big { color: var(--green-dark); }
.card.schell { color: var(--gold-dark); }
.card.schell .suit-big { color: var(--gold-dark); }
.card.herz { color: var(--red); }
.card.herz .suit-big { color: var(--red); }

.card.small { width: 78px; height: 114px; font-size: 22px; padding: 6px 8px;}
.card.small .suit-big { font-size: 44px; }
.card.small .rank-top, .card.small .rank-bottom { font-size: 22px; }

.card.tiny { width: 56px; height: 82px; font-size: 16px; padding: 4px 6px; border-width: 2px;}
.card.tiny .suit-big { font-size: 30px; }
.card.tiny .rank-top, .card.tiny .rank-bottom { font-size: 16px; }

.card.back {
  background: repeating-linear-gradient(45deg, var(--red-dark) 0 8px, var(--red) 8px 16px);
  color: transparent;
}
.card.back::after {
  content: "P";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-family: 'Bangers', sans-serif;
  font-size: 36px;
}

.card.weli {
  background: linear-gradient(180deg, #fff4d0 0%, #ffe49a 100%);
}
.card.weli .suit-big {
  font-size: 38px;
  color: var(--gold-dark);
}

.card.highlight {
  outline: 4px solid var(--gold);
  outline-offset: 3px;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { outline-color: var(--gold); }
  50% { outline-color: var(--red); }
}
.card.tilt-l { transform: rotate(-6deg); }
.card.tilt-r { transform: rotate(5deg); }
.card.tilt-l2 { transform: rotate(-12deg); }
.card.tilt-r2 { transform: rotate(11deg); }

.card-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.card-row.fan {
  gap: -10px;
}
.card-row.fan .card:not(:first-child) {
  margin-left: -28px;
}

/* "BOOM" stickers */
.sticker {
  position: absolute;
  font-family: 'Bangers', sans-serif;
  font-size: 40px;
  color: var(--paper);
  background: var(--red);
  padding: 8px 16px;
  border: 4px solid var(--ink);
  transform: rotate(-8deg);
  box-shadow: 4px 4px 0 var(--ink);
  letter-spacing: 2px;
  z-index: 10;
}
.sticker.gold { background: var(--gold); color: var(--ink); }
.sticker.green { background: var(--green); color: var(--paper); }
.sticker.tilt-r { transform: rotate(8deg); }
.sticker.big { font-size: 60px; padding: 12px 24px; }

/* general flex helpers */
.row { display: flex; gap: 12px; align-items: center; }
.col { display: flex; flex-direction: column; gap: 12px; }
.center { align-items: center; justify-content: center; }
.between { justify-content: space-between; }
.end { align-items: flex-end; }
.grow { flex: 1; }
.gap-4 { gap: 4px;}
.gap-8 { gap: 8px;}
.gap-16 { gap: 16px;}
.gap-24 { gap: 24px;}
.mt-auto { margin-top: auto; }
.center-self { align-self: center; }

/* table scene background */
.table-scene {
  background:
    radial-gradient(ellipse at center, #6b3a13 0%, #4a2410 100%);
  border-radius: 50% / 30%;
  padding: 30px;
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Footnote / arrow */
.arrow {
  font-family: 'Bangers', sans-serif;
  color: var(--ink);
  font-size: 30px;
}

/* small starburst */
.burst {
  position: absolute;
  width: 120px;
  height: 120px;
  background:
    conic-gradient(from 0deg,
      var(--gold) 0deg 22deg, transparent 22deg 45deg,
      var(--gold) 45deg 67deg, transparent 67deg 90deg,
      var(--gold) 90deg 112deg, transparent 112deg 135deg,
      var(--gold) 135deg 157deg, transparent 157deg 180deg,
      var(--gold) 180deg 202deg, transparent 202deg 225deg,
      var(--gold) 225deg 247deg, transparent 247deg 270deg,
      var(--gold) 270deg 292deg, transparent 292deg 315deg,
      var(--gold) 315deg 337deg, transparent 337deg 360deg);
  border-radius: 50%;
  z-index: 0;
}

/* COVER specific */
.cover {
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}
.cover-title {
  font-family: 'Bangers', sans-serif;
  font-size: 220px;
  letter-spacing: 4px;
  line-height: 0.9;
  color: var(--red);
  text-shadow:
    6px 6px 0 var(--gold),
    12px 12px 0 var(--ink);
  margin: 0;
}
.cover-sub {
  font-family: 'Patrick Hand', cursive;
  font-size: 40px;
  color: var(--ink);
  margin: 12px 0 0;
}
.cover-kicker {
  font-family: 'Bangers', sans-serif;
  font-size: 30px;
  letter-spacing: 8px;
  color: var(--green-dark);
  margin: 0 0 24px;
}

/* Tirol decorative border */
.tirol-band {
  height: 16px;
  background:
    repeating-linear-gradient(90deg,
      var(--red) 0 24px,
      var(--paper) 24px 30px,
      var(--green) 30px 54px,
      var(--paper) 54px 60px);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}
