/* Chicken Checkers - halm, traeaeg og hoens. Telefonen foerst. */

:root {
  --bg: #f4e6c3;
  --card: #fffaf0;
  --ink: #3b2a1a;
  --muted: #7a6650;
  --line: #e2cfa0;
  --primary: #5a3d22;
  --primary-ink: #fff8ea;
  --red: #d9483a;
  --green: #45a852;
  --cell-a: #f2dfac;
  --cell-b: #ead196;
  --frame: #b88a4a;
  --gold: #e9b52c;
  color-scheme: light;
}

* { box-sizing: border-box; }

/* hidden skal vinde over display: flex/grid laengere nede. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

main {
  max-width: 560px;
  margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) 16px 32px;
}

h1, h2, h3 { margin: 0 0 .4em; line-height: 1.2; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.2rem; }
p { margin: 0 0 .6em; }
.small { font-size: .85rem; color: var(--muted); }
.loading { text-align: center; margin-top: 30vh; color: var(--muted); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
}

.stack { display: grid; gap: 8px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.row > * { flex: 1 1 0; }

button, .button {
  font: inherit;
  font-weight: 600;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 2px solid var(--primary);
  background: var(--card);
  color: var(--primary);
  cursor: pointer;
  touch-action: manipulation;
}
button.primary { background: var(--primary); color: var(--primary-ink); }
button.danger { border-color: #a33; color: #a33; }
button:disabled { opacity: .45; cursor: default; }
button.link { border: 0; background: none; min-height: 0; padding: 4px; text-decoration: underline; font-weight: 500; }

input, select, textarea {
  font: inherit;
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 96px; resize: vertical; }
label { display: block; font-weight: 600; margin-bottom: 10px; }
label > input, label > select, label > textarea { margin-top: 4px; font-weight: 400; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--gold); outline-offset: 1px; }

/* ---------- Forside ---------- */

.hero { text-align: center; padding: 18px 0 8px; }
.hero .hen { font-size: 4rem; line-height: 1; }
.code-input { text-transform: uppercase; letter-spacing: .3em; text-align: center; font-size: 1.4rem; font-weight: 700; }
.code-input::placeholder { color: #d6c49a; font-weight: 500; }
.error { color: #a33; font-weight: 600; }

/* ---------- Lobby ---------- */

.room-code { font-size: 2.6rem; font-weight: 800; letter-spacing: .25em; text-align: center; margin: 4px 0 10px; }
.seats { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.seats li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.seats .tag { margin-left: auto; font-size: .8rem; color: var(--muted); }
.dot { width: 18px; height: 18px; border-radius: 50%; flex: none; background: var(--pc); }
.offline { opacity: .5; }
.settings-view dt { font-weight: 600; }
.settings-view dd { margin: 0 0 8px; color: var(--muted); }

/* ---------- Hoensene ---------- */

/* Hver brik er en hoene paa en rede: en SVG i spillerens farve (henSvg i
   app.js). Paa diamanten drejes den tilbage, saa den staar op. Feltet staar paa
   spidsen, saa hoenen maa gaa lidt ud over det - den tegnes over felterne
   (z-index), ellers daekker nabofeltet kanten. */
.coin {
  position: absolute;
  inset: -3%;
  z-index: 1;
  color: var(--pc);
  transform: rotate(var(--rot, 0deg)) scale(var(--scale, 1));
  transition: transform .15s;
}
.hen-svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .3)); }
.diamond .coin { --rot: 45deg; }
/* Det hoenen ruger paa (kun ens egne), foran paa reden - inden for hoenens
   egen tegning, saa hverken nabofeltet eller braettets kant daekker det. */
.coin .under {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  font-size: .66em;
  line-height: 1;
  filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff);
}
.coin.dead { opacity: .35; filter: grayscale(.6); }
/* Hoensene i live: kappen vajer, oejnene blinker, og vingen blafrer, naar
   hoenen vaelges eller lander efter et traek. Faserne (--cape, --blink) saettes
   af henSvg, saa intet hopper, naar braettet tegnes forfra. */
.hen-svg .cape { transform-box: fill-box; transform-origin: 100% 20%; animation: cape 2.6s ease-in-out infinite var(--cape, 0s); }
.hen-svg .eye { transform-box: fill-box; transform-origin: 50% 50%; animation: blink 5.2s linear infinite var(--blink, 0s); }
.hen-svg .wing { transform-box: fill-box; transform-origin: 95% 25%; }
.coin.selected .wing, .cell.last-to .coin .wing { animation: flap .32s ease-in-out 3; }
@keyframes cape {
  0%, 100% { transform: rotate(0deg) skewX(0deg); }
  50% { transform: rotate(6deg) skewX(-5deg); }
}
@keyframes blink {
  0%, 95%, 100% { transform: scaleY(1); }
  97.5% { transform: scaleY(.1); }
}
@keyframes flap {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(34deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hen-svg .cape, .hen-svg .eye, .hen-svg .wing { animation: none !important; }
}
.hen-icon { display: inline-block; width: 1.5em; height: 1.5em; vertical-align: -.4em; color: var(--pc); }
.hero .hen .hen-icon { width: 1.15em; height: 1.15em; vertical-align: 0; }

/* ---------- Opstilling ---------- */

.brushes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.brushes button { display: flex; align-items: center; gap: 8px; text-align: left; font-size: .95rem; padding: 8px 10px; border-color: var(--line); }
.brushes button.on { border-color: var(--primary); background: #fff3d6; box-shadow: inset 0 0 0 1px var(--primary); }
.brushes .count { margin-left: auto; font-size: .8rem; color: var(--muted); font-weight: 600; }
.brushes .count.done { color: var(--green); }

.setup-diamond { max-width: 300px; margin: 0 auto 4px; }
.block .slot:disabled { opacity: 1; }

.ready-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.ready-list li { display: flex; gap: 8px; align-items: center; }

/* ---------- Braettet ---------- */

.players { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; align-items: stretch; }
.chip {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 9px 4px 5px; border-radius: 999px;
  background: var(--card); border: 2px solid var(--line);
  font-size: .9rem; font-weight: 600;
}
.chip.turn { border-color: var(--pc); box-shadow: 0 0 0 2px var(--pc); }
.chip.out { opacity: .5; text-decoration: line-through; }
.chip .eggs { font-weight: 500; letter-spacing: -.1em; }
.chip .stolen { font-size: .8rem; color: var(--muted); }
.topbar { display: flex; gap: 8px; align-items: flex-start; }
.topbar .players { flex: 1; }
.topbar .menu-btn { flex: none; min-height: 40px; padding: 4px 12px; font-size: 1.2rem; }

/* Braettet er et kvadrat drejet 45 grader. Diamantens bredde er kvadratets
   diagonal, saa kvadratet faar 1/sqrt(2) af pladsen. */
.diamond {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.diamond > .board, .diamond > .block { width: 70.7%; transform: rotate(-45deg); }
/* Kvadratet: det samme braet, bare ikke drejet (flatView i app.js). */
.diamond.flat { aspect-ratio: auto; }
.diamond.flat > .board, .diamond.flat > .block { width: 100%; transform: none; }
.diamond.flat .coin { --rot: 0deg; inset: 1%; }
.play-board.flat { width: calc(100% + 24px); margin: 0 -12px; }
.board { --n: 8; }
.block { --n: 3; }
.board, .block {
  display: grid;
  grid-template-columns: repeat(var(--n), 1fr);
  aspect-ratio: 1;
  border: 4px solid var(--frame);
  border-radius: 10px;
  overflow: hidden;
  container-type: inline-size;
  background: var(--cell-a);
  user-select: none;
}
.cell {
  position: relative;
  border: 0;
  padding: 0;
  min-height: 0;
  border-radius: 0;
  background: var(--cell-a);
  font-size: calc(100cqw / var(--n) * .42);
  cursor: default;
}
.cell.alt { background: var(--cell-b); }
.cell.home { background-image: linear-gradient(var(--home), var(--home)); }
.cell.last-from::before {
  content: ""; position: absolute; inset: 30%; border-radius: 50%;
  border: 2px dashed rgba(59, 42, 26, .45);
}
.cell.target { cursor: pointer; }
.cell.target::after {
  content: ""; position: absolute; inset: 34%; border-radius: 50%;
  background: rgba(59, 42, 26, .42);
}
.cell.target.hit::after {
  inset: 2%; background: none; border: 3px dashed #b3261e; z-index: 2;
  animation: pulse 1s ease-in-out infinite alternate;
}
.cell.pick { cursor: pointer; }
/* Markeringerne foelger hoenens form: en hvid kant og en farvet gloed. */
.coin.movable .hen-svg { filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff) drop-shadow(0 0 2px rgba(59, 42, 26, .9)); }
.coin.selected { --scale: 1.15; z-index: 2; }
.coin.selected .hen-svg { filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 2px #fff) drop-shadow(0 0 3px var(--ink)) drop-shadow(0 0 2px var(--ink)); }
.coin.upgradable .hen-svg {
  filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 3px var(--gold)) drop-shadow(0 0 3px var(--gold));
  animation: pulse 1s ease-in-out infinite alternate;
}
.cell.last-to .coin { animation: land .35s ease-out; }

@keyframes pulse { from { opacity: 1; } to { opacity: .55; } }
@keyframes land {
  from { transform: rotate(var(--rot, 0deg)) scale(1.35); }
  to { transform: rotate(var(--rot, 0deg)) scale(1); }
}

.legend { text-align: center; margin: 2px 0 0; }
.view-row { text-align: center; margin: 2px 0 0; }

.panel {
  display: flex; align-items: center; gap: 12px;
  min-height: 76px; margin: 10px 0;
  padding: 10px 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
}
.panel .grow { flex: 1; }
.panel p { margin: 0; }
.panel button.primary { flex: 1; font-size: 1.1rem; }
.die {
  width: 54px; height: 54px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px; border: 2px solid var(--ink); background: #fff;
  font-size: 1.7rem; font-weight: 800;
}
.pips { display: grid; grid-template-columns: repeat(3, 11px); grid-template-rows: repeat(3, 11px); gap: 3px; }
.pips .on { border-radius: 50%; background: var(--ink); }

.log { list-style: none; padding: 0; margin: 0; font-size: .9rem; display: grid; gap: 3px; }
.log li { padding: 4px 8px; border-radius: 8px; }
.log li.quiet { color: var(--muted); }
.log li.big { background: var(--card); font-weight: 600; }

.results { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.results li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.results .place { width: 2em; font-size: 1.2rem; }
.results .meta { margin-left: auto; font-weight: 500; color: var(--muted); font-size: .9rem; }

.stars { display: flex; gap: 6px; margin: 4px 0 10px; }
.stars button { flex: 1; min-height: 44px; padding: 0; font-size: 1.1rem; border-color: var(--line); }
.stars button.on { border-color: var(--primary); background: #fff3d6; }

/* ---------- Beskeder ---------- */

#toast {
  position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(520px, calc(100% - 32px));
  padding: 12px 16px; border-radius: 14px;
  background: var(--ink); color: var(--primary-ink);
  font-weight: 600; text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
  z-index: 10;
}
#toast.error { background: #8e2a1e; }
#offline {
  position: fixed; top: 0; left: 0; right: 0;
  padding: 8px; text-align: center; font-weight: 600;
  background: #8e2a1e; color: #fff; z-index: 11;
}

dialog {
  width: min(480px, calc(100% - 32px));
  max-height: calc(100% - 48px);
  border: 0; border-radius: 16px; padding: 18px;
  background: var(--card); color: var(--ink);
}
dialog::backdrop { background: rgba(40, 25, 10, .45); }
dialog form[method="dialog"] { margin-top: 12px; display: flex; }
dialog form[method="dialog"] button { flex: 1; }

/* ---------- Reglerne som billeder (showRules i app.js) ---------- */

.rules-intro { font-weight: 700; margin: 0 0 4px; }
.rule { padding: 12px 0; border-top: 1px solid var(--line); }
.rule h3 { font-size: 1.05rem; margin: 0 0 4px; }
.rule p { margin: 6px 0 0; font-size: .93rem; }
/* To billeder pr. raekke; er der fire, bliver det to raekker. */
.pics { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: center; }
.pic { flex: 1 1 40%; max-width: 190px; margin: 0; text-align: center; }
.pic.block-pic { max-width: 150px; }
.pic figcaption { margin-top: -6px; font-size: .85rem; font-weight: 700; color: var(--muted); }
.board.mini { border-width: 3px; border-radius: 6px; }
.outcomes { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; font-size: .93rem; }
.outcomes li { display: flex; align-items: center; gap: 12px; }
.rule-face {
  flex: none; display: grid; place-items: center;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: #fffaf0; border: .22rem solid var(--pc);
  font-size: 1.3rem; line-height: 1;
}
.rule-face.empty::after { content: ""; width: 52%; height: 52%; border-radius: 50%; border: .14rem dashed #b39a6c; }
.rule-coin { position: relative; display: inline-block; width: 2.3rem; height: 2.3rem; vertical-align: middle; font-size: .9rem; }
.rule p.ranks { white-space: nowrap; text-align: center; }
.rule-list { margin: 6px 0 0; padding-left: 1.2em; font-size: .93rem; }
.rule-list li { margin-bottom: 4px; }
.add-robot { width: 100%; margin-bottom: 12px; }

/* ---------- Introduktionen for nye (openTour i app.js) ---------- */

#tour { width: min(440px, calc(100% - 16px)); max-height: calc(100% - 16px); padding: 16px; }
.teaser, .tour-end { text-align: center; }
.teaser .hens { display: flex; justify-content: center; gap: 2px; margin-top: 4px; }
.teaser .hens .hen-icon { width: 5.2rem; height: 5.2rem; }
.teaser .hens .hen-icon:nth-child(2) { width: 6.4rem; height: 6.4rem; }
.teaser h2, .tour-end h2 { font-size: 1.6rem; margin: 6px 0 2px; }
.teaser h2 { margin-top: 0; }
.teaser .welcome { margin: 4px 0 0; font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.teaser .pitch { margin: 8px 0; line-height: 1.4; }
.teaser h2 + .pitch { font-weight: 600; }
.sell { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 10px; text-align: left; font-weight: 600; }
.sell li { display: flex; gap: 10px; align-items: center; }
.sell .ico { font-size: 1.5rem; width: 2rem; text-align: center; flex: none; }
.tour-end .sell { font-weight: 500; font-size: .95rem; }
.teaser .sell { font-weight: 500; }
.teaser .sell b { font-weight: 800; }
.tour-end label { text-align: left; }
.tour-go { width: 100%; font-size: 1.15rem; margin-top: 8px; }
.tour-skip { text-align: center; margin: 8px 0 0; }
.tour-top { display: flex; justify-content: space-between; align-items: center; }
.tour-progress { display: flex; gap: 6px; }
.tour-progress i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--muted); }
.tour-progress i.on { background: var(--muted); }
.tour-basket { font-size: 1.15rem; }
.coach { display: flex; align-items: center; gap: 12px; margin: 10px 0 4px; min-height: 70px; }
.coach .hen-icon { width: 3.4rem; height: 3.4rem; flex: none; vertical-align: 0; }
.coach-bubble {
  position: relative; flex: 1;
  padding: 9px 13px; border-radius: 16px;
  background: #fff; border: 2px solid var(--line);
  font-size: .95rem; font-weight: 600; line-height: 1.35;
}
.coach-bubble::before, .coach-bubble::after {
  content: ""; position: absolute; top: 50%; transform: translateY(-50%);
  border: 9px solid transparent; border-left: 0;
}
.coach-bubble::before { left: -10px; border-right-color: var(--line); }
.coach-bubble::after { left: -7px; border-right-color: #fff; }
/* Braettet maa ikke skubbe knapperne ud af en lille skaerm. */
.tour-board { max-width: 320px; max-width: min(320px, calc(100svh - 390px)); margin: 0 auto; }
.tour-actions { display: flex; gap: 12px; align-items: center; justify-content: center; min-height: 60px; }
.tour-actions button { min-width: 130px; }
.tour-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-top: 6px; }
.tour-nav > :first-child { justify-self: start; }
.tour-nav > :last-child { justify-self: end; }
.tour-end .tour-nav { margin-top: 12px; }
/* De tre slags hoens under hjaelpehoenen. */
.tour-ranks { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 4px 0 0; }
.tr-item { display: flex; align-items: center; gap: 3px; font-size: .78rem; line-height: 1.15; }
.tr-item .hen-icon { width: 2.2rem; height: 2.2rem; flex: none; vertical-align: 0; }
.tr-item b, .tr-item small { display: block; }
.tr-item small { color: var(--muted); font-size: .72rem; }
.tr-arrow { color: var(--muted); font-weight: 700; }
/* Opgraderingen: ikonet over teksten, ellers er der ikke plads til pilene. */
.tour-ranks.look { align-items: flex-start; }
.tour-ranks.look .tr-item { flex-direction: column; text-align: center; width: 6.2rem; }
.tour-ranks.look .tr-arrow { margin-top: .7rem; }
.tr-note { margin: 2px 0 0; text-align: center; font-size: .78rem; color: var(--muted); }
/* Hvad prikken, ringen og en egen hoene betyder. */
.tour-key { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 12px; margin: 4px 0 0; font-size: .78rem; font-weight: 600; }
.tour-key > span { display: flex; align-items: center; gap: 4px; min-height: 1.6rem; }
.tour-key .hen-icon { width: 1.6rem; height: 1.6rem; vertical-align: 0; }
.key-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(59, 42, 26, .42); }
.key-ring { width: 18px; height: 18px; border-radius: 50%; border: 3px dashed #b3261e; }
/* Rummet og opstillingen forklaret: smaa kopier af det, man ser i spillet. */
.tour-page h2 { font-size: 1.3rem; margin: 8px 0 2px; }
.tour-page p { margin: 6px 0; }
.tour-legend { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; }
.tour-legend li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 10px; align-items: center; font-size: .9rem; line-height: 1.3; }
.mock {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 2.3rem;
  padding: 4px 8px; border-radius: 10px; font-size: .8rem; font-weight: 700; text-align: center; line-height: 1.15;
}
.mock.code { font-size: 1.3rem; font-weight: 900; letter-spacing: .3em; padding-left: calc(8px + .3em); }
.mock.primary { background: var(--primary); color: var(--primary-ink); }
.mock.plain { border: 2px solid var(--primary); background: var(--card); }
.mock.select { justify-content: space-between; border: 2px solid var(--line); background: #fff; font-weight: 500; }
.mock.select i { font-style: normal; color: var(--muted); }
.setup-intro { display: grid; grid-template-columns: 7.5rem 1fr; gap: 10px; align-items: center; }
.setup-intro p { font-size: .9rem; line-height: 1.3; }
.tour-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 6px 0; }
.tour-tile {
  display: grid; gap: 4px; align-content: start;
  padding: 6px 8px 8px; border: 2px solid var(--line); border-radius: 12px; background: var(--card);
  font-size: .8rem; line-height: 1.25; color: var(--muted);
}
.tour-brush { display: flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--ink); }
.tour-brush .ico { font-size: 1.3rem; width: 1.9rem; text-align: center; flex: none; }
.tour-brush .hen-icon { width: 1.9rem; height: 1.9rem; flex: none; vertical-align: 0; }
.tour-brush small { margin-left: auto; color: var(--green); font-weight: 700; }
#lobby-tour { width: 100%; }
.nowrap { white-space: nowrap; }
/* Pilen, der peger paa det, man skal trykke paa (pointAt i app.js), og
   knapperne under braettet, der vipper. */
#tour-body { position: relative; }
.tour-point { position: absolute; z-index: 5; transform: translate(-50%, -100%); pointer-events: none; }
.tour-point > div { display: flex; flex-direction: column; align-items: center; animation: point .6s ease-in-out infinite alternate; }
.tour-point span {
  padding: 3px 10px; border-radius: 999px;
  background: var(--primary); color: var(--primary-ink);
  font-size: .8rem; font-weight: 700; white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}
.tour-point svg {
  width: 22px; height: 28px; margin-top: 1px; overflow: visible;
  fill: var(--gold); stroke: var(--primary); stroke-width: 2; stroke-linejoin: round;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .3));
}
@keyframes point { from { transform: translateY(-7px); } to { transform: translateY(0); } }
.nudge { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge {
  0%, 70%, 100% { transform: scale(1) rotate(0deg); }
  78% { transform: scale(1.08) rotate(-3deg); }
  86% { transform: scale(1.08) rotate(3deg); }
  94% { transform: scale(1.04) rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .tour-point > div, .nudge { animation: none; }
}

/* ---------- Effekter (se playHit i app.js) ---------- */

#fx { position: fixed; inset: 0; pointer-events: none; z-index: 9; overflow: hidden; }
.fx { position: fixed; transform: translate(-50%, -50%); line-height: 1; }
.fx-coin {
  display: grid; place-items: center;
  width: calc(var(--size) * .82); height: calc(var(--size) * .82);
  border-radius: 50%; background: var(--pc); color: #fff;
  border: calc(var(--size) * .05) solid rgba(0, 0, 0, .28);
  font-weight: 800; font-size: calc(var(--size) * .42);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .45);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}
/* Reden, hoenen lettede fra: halm med en tynd ring i ejerens farve. */
.fx-coin.face {
  background: radial-gradient(circle at 50% 55%, #f6e3b0 0 40%, #d3a45a 43% 66%, #9a6c2e 70%);
  border: calc(var(--size) * .05) solid var(--pc);
  font-size: calc(var(--size) * .5); text-shadow: none;
}
.fx-coin.face.empty::after {
  content: ""; width: 52%; height: 52%; border-radius: 50%;
  border: calc(var(--size) * .045) dashed #b39a6c;
}
.fx-hen { display: block; width: var(--size); height: var(--size); color: var(--pc); }
.fx-hen.sick { filter: sepia(.6) hue-rotate(50deg) saturate(1.6); }
.fx-ring {
  width: var(--size); height: var(--size); border-radius: 50%;
  border: calc(var(--size) * .12) solid var(--gold); box-shadow: 0 0 18px var(--gold);
}
.fx-ring.green { border-color: var(--green); box-shadow: 0 0 18px var(--green); }
.fx-spark { font-size: calc(var(--size) * .5); }
.fx-egg { font-size: calc(var(--size) * .9); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .35)); }
.fx-big { font-size: calc(var(--size) * 1.7); filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .35)); }
.fx-small { font-size: calc(var(--size) * .55); }
.fx-puff {
  width: var(--size); height: var(--size); border-radius: 50%;
  background: radial-gradient(circle, rgba(118, 176, 52, .85) 0, rgba(118, 176, 52, .45) 45%, rgba(118, 176, 52, 0) 70%);
}
.fx-puff.dust {
  background: radial-gradient(circle, rgba(165, 140, 100, .7) 0, rgba(165, 140, 100, .3) 45%, rgba(165, 140, 100, 0) 70%);
}
.fx-flash {
  width: var(--size); height: var(--size); border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 170, 40, .5), rgba(110, 170, 40, 0) 70%);
}

/* ---------- Mailliste ---------- */

hr.split { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
.signup label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .92rem; }
.signup label.check input { width: 22px; height: 22px; flex: none; margin: 2px 0 0; accent-color: var(--primary); }

/* ---------- Feedback og braetspilsspoergsmaalet ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { min-height: 40px; padding: 6px 12px; font-size: .92rem; border-color: var(--line); }
.chips button.on { border-color: var(--primary); background: #fff3d6; box-shadow: inset 0 0 0 1px var(--primary); }
.chips button:disabled:not(.on) { opacity: .45; }
.chips button.on:disabled { opacity: 1; }
.interest .signup { margin-top: 12px; }

/* ---------- Hurtig feedback efter et spil ---------- */

.survey .chips.faces { gap: 4px; }
.survey .chips.faces button { flex: 1; font-size: 1.6rem; padding: 4px 0; min-height: 52px; }
.survey .survey-progress { display: flex; gap: 6px; margin: 0 0 8px; }
.survey .survey-progress i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--muted); }
.survey .survey-progress i.on { background: var(--muted); }
.survey textarea { min-height: 72px; }

/* ---------- Ventehumor: hoenen med talebobblen ---------- */

.hen-talk { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 14px 0 6px; }
.hen-talk-hen { font-size: 2.8rem; line-height: 1; transform-origin: 50% 90%; animation: bob 1.8s ease-in-out infinite; }
.hen-talk-bubble {
  position: relative; max-width: 70%;
  padding: 9px 14px; border-radius: 16px;
  background: #fff; border: 2px solid var(--line);
  font-weight: 700; text-align: center;
}
/* Halen paa bobblen, der peger ind mod hoenen: en kant og en hvid indermand. */
.hen-talk-bubble::before, .hen-talk-bubble::after {
  content: ""; position: absolute; top: 50%; transform: translateY(-50%);
  border: 9px solid transparent; border-left: 0;
}
.hen-talk-bubble::before { left: -10px; border-right-color: var(--line); }
.hen-talk-bubble::after { left: -7px; border-right-color: #fff; }
.hen-talk-bubble.pop { animation: pop .35s ease-out; }

@keyframes bob {
  0%, 100% { transform: rotate(-5deg) translateY(0); }
  50% { transform: rotate(5deg) translateY(-3px); }
}
@keyframes pop { from { transform: scale(.85); opacity: .3; } to { transform: scale(1); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .hen-talk-hen, .hen-talk-bubble.pop { animation: none; }
}
