@font-face {
  font-family: Fredoka;
  src: url("./fonts/fredoka.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --felt-1: #1f725b;
  --felt-2: #145040;
  --felt-3: #0b3328;
  --cream: #f6ead9;
  --cream-card: #fff9ef;
  --ink: #3b2a22;
  --muted: #7a6254;
  --gold: #ffe27a;
  --gold-d: #e0b422;
  --purple: #6d3ec4;
  --purple-d: #542a9e;
  --suit-black: #1e2330;
  --suit-red: #d63042;
  --card-w: 84px;
  --card-h: 118px;
  --col-gap: 8px;
  --card-r: 8px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--felt-3);
  color: #fff;
  font-family: Fredoka, "Trebuchet MS", "Segoe UI", sans-serif;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.app {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100dvh;
  background:
    radial-gradient(circle at 20% 25%, rgba(255,255,255,0.04) 0, transparent 45%),
    radial-gradient(ellipse at 50% 35%, var(--felt-1) 0%, var(--felt-2) 58%, var(--felt-3) 100%);
}

/* subtiele vilttextuur */
.app::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.25;
  background-image:
    radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    radial-gradient(rgba(0,0,0,0.12) 1px, transparent 1px);
  background-size: 18px 18px;
  background-position: 0 0, 9px 9px;
}

/* ---------- Topbar ---------- */
.topbar {
  position: relative;
  z-index: 15;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: max(6px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) 6px max(10px, env(safe-area-inset-left));
  background: rgba(9, 39, 31, 0.72);
  border-bottom: 1.5px solid rgba(255, 235, 195, 0.16);
  backdrop-filter: blur(8px);
}

.back-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 34px;
  padding: 0 11px 0 7px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.22);
  transition: transform 100ms ease;
}
.back-btn:active { transform: translateY(1px); }
.back-btn svg { width: 16px; height: 16px; }

.hud-pills {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
}

.hud-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
  line-height: 30px;
  white-space: nowrap;
}
.hud-lbl {
  opacity: 0.78;
  font-weight: 500;
  font-size: 11px;
}
.hud-pill strong {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.hud-score {
  background: rgba(255, 226, 122, 0.18);
  border-color: rgba(255, 226, 122, 0.42);
  color: var(--gold);
}

.top-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  color: #fff;
  transition: background 120ms ease, transform 100ms ease;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.18); }
.icon-btn:active { transform: scale(0.95); }
.icon-btn svg { width: 18px; height: 18px; display: block; }
.icon-btn .ico-sound-off { display: none; }
.icon-btn.muted .ico-sound-on { display: none; }
.icon-btn.muted .ico-sound-off { display: block; color: #ff9c9c; }

@media (max-width: 430px) {
  .topbar { gap: 5px; padding-left: 8px; padding-right: 8px; }
  .back-btn { padding: 0 8px 0 5px; font-size: 12px; height: 32px; }
  .hud-pill { padding: 0 7px; height: 28px; line-height: 28px; font-size: 11.5px; gap: 3px; }
  .hud-lbl { display: none; }
  .hud-score::before { content: "★"; font-size: 11px; margin-right: 1px; }
  .icon-btn { width: 32px; height: 32px; }
}

/* ---------- Speeltafel ---------- */
.table {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 8px max(8px, env(safe-area-inset-right)) 6px max(8px, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.top-felt {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 46px;
}

/* Aflegstapels (8 slots) */
.foundations {
  display: flex;
  align-items: center;
  gap: 4px;
}

.found-slot {
  width: var(--found-w, 28px);
  height: var(--found-h, 40px);
  border-radius: 6px;
  border: 1.5px dashed rgba(255, 255, 255, 0.24);
  background: rgba(0, 0, 0, 0.14);
  display: grid;
  place-items: center;
  position: relative;
  transition: transform 200ms ease, border-color 200ms ease;
}
.found-slot::after {
  content: "A";
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.18);
}
.found-slot.filled {
  border-style: solid;
  border-color: rgba(255, 226, 122, 0.85);
  background: #fffdf8;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(0,0,0,0.06);
}
.found-slot.filled::after { content: none; }
.found-slot.pop { animation: foundPop 420ms cubic-bezier(.22,1.35,.36,1); }
@keyframes foundPop {
  0% { transform: scale(0.7); }
  55% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.found-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-weight: 700;
  font-size: 11px;
}
.found-mini svg {
  width: 13px;
  height: 13px;
  margin-top: 1px;
}

.difficulty-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255, 247, 234, 0.9);
  white-space: nowrap;
}

@media (max-width: 520px) {
  .difficulty-tag { display: none; }
}

/* Voorraadstapel */
.stock-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  transition: transform 100ms ease;
}
.stock-wrap:active:not(:disabled) { transform: scale(0.95); }
.stock-wrap:disabled { opacity: 0.45; cursor: default; }

.stock-pile {
  position: relative;
  width: calc(var(--found-w, 28px) + 18px);
  height: var(--found-h, 40px);
}

.stock-card {
  position: absolute;
  top: 0;
  width: var(--found-w, 28px);
  height: var(--found-h, 40px);
  border-radius: 6px;
  border: 1.5px solid #fff6e5;
  background: linear-gradient(135deg, #2b3e78 0%, #1b2854 100%);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
}
.stock-card svg {
  width: 48%;
  height: 48%;
  opacity: 0.9;
}

.stock-empty {
  width: var(--found-w, 28px);
  height: var(--found-h, 40px);
  border-radius: 6px;
  border: 1.5px dashed rgba(255, 255, 255, 0.26);
  display: grid;
  place-items: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.35);
}

.stock-count {
  min-width: 24px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--gold);
  color: #5b3406;
  font-weight: 700;
  font-size: 12px;
  line-height: 22px;
  text-align: center;
  box-shadow: 0 2px 0 rgba(0,0,0,0.22);
}

.stock-wrap.hint-glow .stock-pile {
  filter: drop-shadow(0 0 10px rgba(255, 226, 122, 0.95));
  animation: hintPulse 1s ease-in-out infinite;
}

/* ---------- Tableau ---------- */
.tableau {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: var(--col-gap);
  align-items: start;
  touch-action: none;
}

.col {
  position: relative;
  height: 100%;
  min-width: 0;
}

.col-slot {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--card-w);
  height: var(--card-h);
  border-radius: var(--card-r);
  border: 1.5px dashed rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.12);
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.col.drop-valid .col-slot,
.col.drop-valid .card:last-child {
  box-shadow: 0 0 0 2.5px var(--gold), 0 0 14px rgba(255, 226, 122, 0.55);
}
.col.drop-valid .col-slot {
  border-color: var(--gold);
  background: rgba(255, 226, 122, 0.14);
}

.col.hint-target .col-slot,
.col.hint-target .card:last-child {
  box-shadow: 0 0 0 3px #7cffb2, 0 0 16px rgba(124, 255, 178, 0.7);
}

/* ---------- Kaarten ---------- */
.card {
  position: absolute;
  left: 0;
  width: var(--card-w);
  height: var(--card-h);
  border-radius: var(--card-r);
  background: #fffdf8;
  border: 1px solid #d9cbb8;
  box-shadow: 0 2px 5px rgba(8, 22, 16, 0.34), 0 1px 0 rgba(255, 255, 255, 0.6) inset;
  overflow: hidden;
  transition: top 160ms cubic-bezier(.22,.9,.32,1), transform 120ms ease, box-shadow 120ms ease;
  will-change: top, transform;
}

.card.red { color: var(--suit-red); }
.card.black { color: var(--suit-black); }

.card.movable { cursor: grab; }
.card.movable:hover { filter: brightness(1.015); }
.card.dragging-source { opacity: 0.15; }

/* Kaartachterkant met sterrenmotief */
.card.down {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 226, 122, 0.12) 0%, transparent 64%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.045) 0 4px, transparent 4px 8px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.045) 0 4px, transparent 4px 8px),
    linear-gradient(155deg, #2c417d 0%, #1c2a56 100%);
  border: 2px solid #fff6e6;
  cursor: default;
}

.card-back-art {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 4px;
}
.card-back-inner {
  width: 100%;
  height: 100%;
  border-radius: calc(var(--card-r) - 4px);
  border: 1px solid rgba(255, 226, 122, 0.36);
  display: grid;
  place-items: center;
}
.card-back-star {
  width: 44%;
  max-width: 28px;
  height: auto;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

/* Kaartvoorkant - volledige layout (desktop / tablet) */
.card-face {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 2px 3px 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  line-height: 1;
}

/* Rang + kleur altijd naast elkaar in de zichtbare bovenstrook */
.corner-tl {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1px;
  line-height: 0.82;
  font-weight: 700;
  font-size: var(--rank-size, calc(var(--card-w) * 0.32));
  letter-spacing: -0.03em;
  min-width: 0;
}
.corner-tl .rank-lbl {
  display: block;
  line-height: 0.82;
  font-variant-numeric: lining-nums;
}
.corner-tl .rank-10 {
  letter-spacing: -0.12em;
  font-size: 0.86em;
}
.corner-tl .suit-sm {
  width: var(--suit-size, calc(var(--card-w) * 0.24));
  height: var(--suit-size, calc(var(--card-w) * 0.24));
  margin-top: 0;
  flex: 0 0 auto;
}

.corner-tr-suit {
  display: none;
}

.card-center {
  position: absolute;
  inset: 24% 16% 20%;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.card-center svg.pip-lg {
  width: 72%;
  max-width: 44px;
  height: auto;
}
.court-badge {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  border: 1.5px solid currentColor;
  background: rgba(255, 226, 122, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  opacity: 0.9;
}
.court-badge svg { width: 52%; height: auto; }

.corner-br {
  display: flex;
  flex-direction: row;
  align-items: center;
  align-self: flex-end;
  transform: rotate(180deg);
  gap: 1px;
  line-height: 0.82;
  font-weight: 700;
  font-size: var(--rank-size, calc(var(--card-w) * 0.32));
  letter-spacing: -0.03em;
}
.corner-br .suit-sm {
  width: var(--suit-size, calc(var(--card-w) * 0.24));
  height: var(--suit-size, calc(var(--card-w) * 0.24));
  margin-top: 0;
}

/* Compacte kaartweergave voor smalle mobiele schermen (< 54px breed) */
.app.is-compact .card {
  border-radius: 5px;
}
.app.is-compact .card.down {
  border-width: 1.5px;
}
.app.is-compact .card-face {
  padding: 1px 2px 2px;
}
.app.is-compact .corner-tl,
.app.is-compact .corner-br {
  font-size: var(--rank-size, 18px);
  letter-spacing: -0.04em;
  gap: 0;
}
.app.is-compact .card-center {
  inset: 38% 10% 8%;
}
.app.is-compact .card-center svg.pip-lg {
  width: 68%;
}
.app.is-compact .court-badge {
  border-width: 1px;
  border-radius: 4px;
}
.app.is-compact .corner-br {
  display: none;
}

/* Hint & schudden */
.card.hint-source {
  box-shadow: 0 0 0 2.5px var(--gold), 0 0 16px rgba(255, 226, 122, 0.9);
  animation: hintPulse 1s ease-in-out infinite;
  z-index: 40;
}

@keyframes hintPulse {
  0%, 100% { filter: brightness(1); transform: translateY(0); }
  50% { filter: brightness(1.07); transform: translateY(-2px); }
}

.card.shake {
  animation: cardShake 260ms ease;
}
@keyframes cardShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.card.flip-in {
  animation: cardFlipIn 220ms ease-out;
}
@keyframes cardFlipIn {
  0% { transform: scaleX(0.15); }
  100% { transform: scaleX(1); }
}

/* ---------- Sleep & Animatie lagen ---------- */
.drag-layer,
.anim-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
}
.anim-layer { z-index: 55; }

.drag-stack {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--card-w);
  will-change: transform;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.42));
}
.drag-stack .card {
  transition: none;
}

/* ---------- Toast ---------- */
.toast {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 50;
  max-width: min(92%, 420px);
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(59, 42, 34, 0.94);
  color: var(--cream);
  border: 1.5px solid rgba(255, 226, 122, 0.45);
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  animation: toastIn 180ms ease;
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- Onderbalk ---------- */
.bottom-bar {
  position: relative;
  z-index: 15;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px max(12px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: rgba(9, 39, 31, 0.72);
  border-top: 1.5px solid rgba(255, 235, 195, 0.16);
  backdrop-filter: blur(8px);
}

.act-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 0;
  background: var(--cream);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25);
  transition: transform 90ms ease, opacity 120ms ease;
}
.act-btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); }
.act-btn:disabled { opacity: 0.42; cursor: default; }
.act-btn svg { width: 18px; height: 18px; flex: 0 0 auto; }

.act-primary {
  background: linear-gradient(#7d50e0, var(--purple));
  color: #fff;
  box-shadow: 0 3px 0 var(--purple-d);
}
.act-primary:active:not(:disabled) { box-shadow: 0 1px 0 var(--purple-d); }

@media (max-width: 420px) {
  .bottom-bar { gap: 8px; padding-left: 8px; padding-right: 8px; }
  .bottom-bar .act-btn { flex: 1 1 0; padding: 0 10px; height: 40px; font-size: 13px; gap: 5px; }
}

/* ---------- Modals ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(14, 24, 20, 0.62);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 16px;
}
.modal-backdrop[hidden] { display: none; }

.modal-card {
  width: 100%;
  max-width: 400px;
  max-height: 86dvh;
  overflow-y: auto;
  background: var(--cream-card);
  color: var(--ink);
  border-radius: 24px;
  border: 3px solid #f0c3a0;
  padding: 18px 18px 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
}

.modal-head {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}
.modal-head h2 {
  margin: 0;
  font-size: 22px;
  color: var(--purple);
}
.modal-close {
  margin-left: auto;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 28px;
  line-height: 1;
  display: grid;
  place-items: center;
}
.modal-close:hover { background: #f3e2c8; }

.modal-sub {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.diff-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.diff-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 2px solid #ead4b8;
  background: #fff;
  text-align: left;
  transition: transform 100ms ease, border-color 120ms ease, background 120ms ease;
}
.diff-btn:hover { border-color: var(--purple); background: #faf4ff; }
.diff-btn:active { transform: scale(0.98); }
.diff-btn.active {
  border-color: var(--purple);
  background: #f3ebff;
}

.diff-suits {
  min-width: 58px;
  text-align: center;
  font-size: 20px;
  line-height: 1;
}
.suit-b { color: var(--suit-black); }
.suit-r { color: var(--suit-red); }

.diff-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.diff-info strong { font-size: 16px; color: var(--ink); }
.diff-info small { font-size: 12.5px; color: var(--muted); font-weight: 500; }

.modal-divider {
  height: 1.5px;
  background: #edd8bd;
  margin: 14px 0;
}

.secondary-btn {
  width: 100%;
  height: 42px;
  border-radius: 999px;
  border: 2px solid #e2c5a1;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  transition: background 120ms ease;
}
.secondary-btn:hover { background: #f6ead9; }

/* Stats & Rules */
.stats-box h3, .rules-box h3 {
  margin: 0 0 8px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--purple);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.stat-tile {
  background: #fff;
  border: 1.5px solid #ead4b8;
  border-radius: 14px;
  padding: 9px 8px;
  text-align: center;
}
.stat-tile strong { display: block; font-size: 16px; color: var(--ink); }
.stat-tile span { display: block; font-size: 11px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.stat-tile small { display: block; font-size: 11px; color: var(--purple); font-weight: 600; margin-top: 3px; }

.rules-box ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.45;
  color: #4d392e;
}
.rules-box li { margin-bottom: 7px; }

/* ---------- Win Overlay ---------- */
.win-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(10, 32, 24, 0.55);
}
.win-overlay[hidden] { display: none; }

.win-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.win-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 360px;
  background: var(--cream-card);
  color: var(--ink);
  border-radius: 26px;
  border: 3.5px solid var(--gold);
  padding: 24px 20px 20px;
  text-align: center;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
  animation: foundPop 360ms cubic-bezier(.22,1.35,.36,1);
}
.win-crown {
  width: 56px;
  height: 56px;
  margin: -48px auto 8px;
  border-radius: 50%;
  background: var(--gold);
  color: #7c4a03;
  border: 3px solid #fff;
  display: grid;
  place-items: center;
  font-size: 28px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
.win-card h2 {
  margin: 0;
  font-size: 28px;
  color: var(--purple);
}
.win-sub {
  margin: 4px 0 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.win-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.win-stats > div {
  background: #fff;
  border: 1.5px solid #ead4b8;
  border-radius: 14px;
  padding: 8px;
}
.win-stats span { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
.win-stats strong { display: block; font-size: 18px; color: var(--ink); }

.win-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.win-actions .act-btn { width: 100%; }
.win-back {
  display: inline-block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.win-back:hover { text-decoration: underline; }

/* Lage landscape-schermen: compactere balken, meer ruimte voor de kolommen */
.app.is-short .topbar {
  padding-top: max(2px, env(safe-area-inset-top));
  padding-bottom: 2px;
}
.app.is-short .hud-pill { height: 26px; line-height: 26px; }
.app.is-short .icon-btn, .app.is-short .back-btn { height: 28px; }
.app.is-short .icon-btn { width: 28px; }
.app.is-short .table { padding-top: 4px; padding-bottom: 2px; gap: 4px; }
.app.is-short .top-felt { min-height: 0; }
.app.is-short .bottom-bar {
  padding-top: 4px;
  padding-bottom: max(4px, env(safe-area-inset-bottom));
}
.app.is-short .act-btn { height: 34px; }
