:root {
  --felt-bg: radial-gradient(circle at 50% 35%, #1d8842 0%, #0e5628 100%);
  --surface-glass: rgba(8, 36, 18, 0.72);
  --surface-card: #ffffff;
  --ink-light: #f5f9f6;
  --ink-dark: #14181f;
  --accent: #22c55e;
  --accent-strong: #16a34a;
  --gold: #fbbf24;
  --danger: #ef4444;
  --card-radius: 10px;
  --card-shadow: 0 4px 10px rgba(0, 0, 0, 0.28);
  --anim-speed: 180ms;
  --slot-w: clamp(42px, 12.2vw, 76px);
  --slot-h: calc(var(--slot-w) * 1.42);
}

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

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  background: #092914;
  color: var(--ink-light);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}

.hidden {
  display: none !important;
}

.app-shell {
  max-width: 540px;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--felt-bg);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.55);
}

.app-shell.gold-frame {
  border: 4px solid var(--gold);
  box-shadow: inset 0 0 0 2px rgba(255, 213, 79, 0.35), 0 0 36px rgba(0, 0, 0, 0.65);
}

body.theme-felt-classic { --felt-bg: radial-gradient(circle at 50% 35%, #1d8842 0%, #0e5628 100%); }
body.theme-emerald-night { --felt-bg: radial-gradient(circle at 50% 25%, #136f63 0%, #072b2f 100%); }
body.theme-royal-blue { --felt-bg: radial-gradient(circle at 50% 30%, #1d4ed8 0%, #0b193d 100%); }
body.theme-crimson-velvet { --felt-bg: radial-gradient(circle at 50% 30%, #991b1b 0%, #3b0707 100%); }
body.theme-sunset-amber { --felt-bg: linear-gradient(160deg, #b45309 0%, #451a03 100%); }
body.theme-slate-pro { --felt-bg: linear-gradient(180deg, #1e293b 0%, #0f172a 100%); }

body.left-hand-mode .sol-bottom-nav {
  flex-direction: row-reverse;
}

.screen {
  display: none;
  flex: 1;
  flex-direction: column;
  padding: 12px;
  gap: 12px;
  position: relative;
}

.screen.active {
  display: flex;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 120ms ease, background 150ms ease;
}

.icon-btn:active {
  transform: scale(0.93);
}

.header-actions-group {
  display: flex;
  gap: 6px;
}

/* ACCUEIL */
.home-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-brand-pill {
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.home-hero {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  padding: 20px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.app-icon-frame {
  width: 112px;
  height: 112px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  border: 2px solid rgba(255, 215, 90, 0.7);
}

.icon-svg, .icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-title {
  margin: 4px 0 0;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.home-subtitle {
  margin: 0;
  font-size: 13px;
  opacity: 0.85;
}

.btn-primary, .btn-secondary, .btn-danger, .btn-autofill {
  border: none;
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease, opacity 150ms ease, box-shadow 150ms ease;
}

.btn-primary {
  background: linear-gradient(180deg, #2bd467 0%, #159947 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(21, 153, 71, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.22);
  color: #fecaca;
  border: 1px solid rgba(239, 68, 68, 0.45);
}

.btn-sm {
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 10px;
}

.btn-hero {
  width: 100%;
  max-width: 280px;
  margin-top: 6px;
}

.btn-primary:active, .btn-secondary:active, .btn-autofill:not(:disabled):active {
  transform: scale(0.97);
}

.home-games-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-header-row h2 {
  margin: 0;
  font-size: 17px;
}

.badge-count {
  font-size: 12px;
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 10px;
  border-radius: 999px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.game-tile {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 12px;
  text-align: left;
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 130ms ease, background 150ms ease;
}

.game-tile:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.game-tile-emoji { font-size: 24px; }
.game-tile-name { font-weight: 700; font-size: 14px; }
.game-tile-tag { font-size: 11px; opacity: 0.75; }

/* HUD SOLITAIRE */
.sol-top-hud, .game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.game-header h2 {
  margin: 0;
  font-size: 19px;
}

.sol-stats-strip {
  display: flex;
  gap: 12px;
  background: rgba(0, 0, 0, 0.24);
  padding: 6px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-label {
  font-size: 10px;
  font-weight: 700;
  opacity: 0.75;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 15px;
  font-weight: 800;
}

.sol-sub-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.btn-autofill {
  background: linear-gradient(135deg, #f59e0b, #eab308);
  color: #111827;
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.35);
}

.btn-autofill:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.75);
}

.pill-info {
  font-size: 11px;
  background: rgba(0, 0, 0, 0.25);
  padding: 5px 10px;
  border-radius: 999px;
  opacity: 0.9;
}

.sol-upper-board {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}

.sol-upper-board.stock-left {
  flex-direction: row-reverse;
}

.foundations-group, .stock-waste-group {
  display: flex;
  gap: 6px;
}

.slot {
  width: var(--slot-w);
  height: var(--slot-h);
  border-radius: var(--card-radius);
  border: 2px dashed rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.16);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(18px, 5vw, 28px);
  color: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

.stock-slot {
  cursor: pointer;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.35);
}

/* DOS DE CARTE SUR LA PIOCHE */
.stock-back-card {
  position: absolute;
  inset: 0;
  border-radius: calc(var(--card-radius) - 2px);
  border: 2px solid #ffffff;
  background: repeating-linear-gradient(45deg, #1d4ed8, #1d4ed8 6px, #2563eb 6px, #2563eb 12px);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25);
}

body.back-crimson .stock-back-card {
  background: repeating-linear-gradient(45deg, #991b1b, #991b1b 6px, #dc2626 6px, #dc2626 12px);
}
body.back-gold .stock-back-card {
  background: linear-gradient(135deg, #d97706, #f59e0b, #78350f);
}
body.back-emerald .stock-back-card {
  background: radial-gradient(circle, #10b981, #064e3b);
}

.stock-back-card.empty-recycle {
  background: rgba(0, 0, 0, 0.25);
  border: 2px dashed rgba(255, 255, 255, 0.35);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 22px;
}

.stock-count {
  position: absolute;
  bottom: 4px;
  left: 4px;
  z-index: 3;
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.78);
  padding: 2px 6px;
  border-radius: 6px;
}

.tableau-board {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  flex: 1;
  min-height: 340px;
  align-items: start;
  padding-bottom: 12px;
}

.tableau-col {
  position: relative;
  min-height: calc(var(--slot-h) + 140px);
}

.card {
  width: var(--slot-w);
  height: var(--slot-h);
  border-radius: var(--card-radius);
  background: #ffffff;
  color: var(--ink-dark);
  box-shadow: var(--card-shadow);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5px;
  font-weight: 800;
  cursor: grab;
  touch-action: none;
  transition: transform var(--anim-speed) ease, box-shadow 140ms ease;
}

.card.red { color: #dc2626; }
.card.black { color: #111827; }

body.face-classic .card { background: #ffffff; }
body.face-ivory .card { background: #fdf6e3; border: 1px solid #e6d5a8; }
body.face-dark .card { background: #1e293b; color: #f8fafc; border: 1px solid rgba(255,255,255,0.22); }
body.face-dark .card.red { color: #ff6b6b; }

.card.face-down {
  color: transparent !important;
  border: 2px solid #ffffff;
  background: repeating-linear-gradient(45deg, #1d4ed8, #1d4ed8 6px, #2563eb 6px, #2563eb 12px);
}

body.back-crimson .card.face-down {
  background: repeating-linear-gradient(45deg, #991b1b, #991b1b 6px, #dc2626 6px, #dc2626 12px);
}
body.back-gold .card.face-down {
  background: linear-gradient(135deg, #d97706, #f59e0b, #78350f);
}
body.back-emerald .card.face-down {
  background: radial-gradient(circle, #10b981, #064e3b);
}

.card-corner-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  font-size: clamp(11px, 3.2vw, 15px);
}

.card-center-pip {
  align-self: center;
  font-size: clamp(18px, 5.2vw, 28px);
  line-height: 1;
}

.card-corner-bottom {
  align-self: flex-end;
  transform: rotate(180deg);
  line-height: 1;
  font-size: clamp(11px, 3.2vw, 15px);
}

.card.selected {
  outline: 3px solid var(--gold);
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
}

.card.dragging, .drag-ghost {
  position: fixed !important;
  z-index: 99999 !important;
  pointer-events: none;
  transform: scale(1.07) rotate(1.5deg) !important;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.55) !important;
}

.slot-highlight {
  outline: 2.5px solid #fde047;
  background: rgba(253, 224, 71, 0.16);
}

.sol-footer-tag {
  text-align: center;
  font-size: 12px;
  opacity: 0.7;
  letter-spacing: 1px;
}

.sol-bottom-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 6px;
}

.bottom-nav-btn {
  background: transparent;
  border: none;
  color: #fff;
  border-radius: 12px;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.bottom-nav-btn.accent {
  background: rgba(34, 197, 94, 0.25);
  color: #bbf7d0;
}

.nav-ico { font-size: 18px; }

.popover {
  position: fixed;
  top: 58px;
  left: 16px;
  background: #0f2918;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 6px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
}

.popover-item {
  background: transparent;
  border: none;
  color: #fff;
  text-align: left;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.popover-item:hover { background: rgba(255, 255, 255, 0.12); }

/* BELOTE */
.belote-scoreboard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 10px;
  border-radius: 14px;
  font-size: 12px;
}

.team-score { display: flex; align-items: center; gap: 6px; }
.team-dot { width: 10px; height: 10px; border-radius: 50%; }
.team-ns .team-dot { background: #38bdf8; }
.team-ew .team-dot { background: #fb7185; }

.belote-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
  opacity: 0.9;
}

.belote-table {
  flex: 1;
  background: rgba(0, 0, 0, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.belote-middle-row {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  gap: 6px;
  align-items: center;
}

.belote-seat {
  background: rgba(0, 0, 0, 0.28);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.belote-seat.active-turn {
  border-color: var(--gold);
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.45);
  transform: scale(1.02);
}

.team-ns-badge {
  font-size: 10px;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.22);
  color: #bae6fd;
  padding: 2px 8px;
  border-radius: 999px;
}

.team-ew-badge {
  font-size: 10px;
  font-weight: 700;
  background: rgba(251, 113, 133, 0.22);
  color: #fecdd3;
  padding: 2px 8px;
  border-radius: 999px;
}

.seat-name-row {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  flex-wrap: wrap;
  justify-content: center;
}

.seat-style-tag {
  font-size: 10px;
  opacity: 0.8;
  background: rgba(255, 255, 255, 0.12);
  padding: 1px 6px;
  border-radius: 8px;
}

.seat-cards-count { font-size: 11px; opacity: 0.85; }

.belote-trick-zone {
  min-height: 118px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.belote-status {
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  color: #fef08a;
}

.belote-trick-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.belote-bidding-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.belote-hand {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  margin-top: 4px;
}

.belote-bottom-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* JEUX ARCADE */
.arcade-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.28);
  padding: 8px 12px;
  border-radius: 14px;
  gap: 8px;
}

.arcade-stage {
  flex: 1;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.arcade-banner-box {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.candy-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.candy-cell {
  aspect-ratio: 1;
  border-radius: 12px;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.12);
  font-size: 22px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 140ms ease;
}

.candy-cell.selected {
  border-color: #fde047;
  transform: scale(1.08);
}

.mahjong-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.mahjong-tile {
  background: #fffbeb;
  color: #1c1917;
  border-radius: 10px;
  padding: 12px 6px;
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 0 #b45309;
}

.mahjong-tile.selected { outline: 3px solid #22c55e; transform: translateY(-3px); }
.mahjong-tile.matched { opacity: 0.15; pointer-events: none; }

/* MODALES */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.modal-card {
  width: 100%;
  max-width: 480px;
  max-height: 86dvh;
  overflow-y: auto;
  background: #102a19;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
}

.modal-confirm p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  opacity: 0.92;
}

.confirm-options-box {
  background: rgba(255, 255, 255, 0.07);
  padding: 10px 12px;
  border-radius: 12px;
}

.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 { margin: 0; font-size: 18px; }

.custom-preview-strip {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: var(--felt-bg);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
}

.mini-card {
  width: 48px;
  height: 68px;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.mini-card.red-card { color: #dc2626; }

body.face-ivory .mini-card.preview-face { background: #fdf6e3; }
body.face-dark .mini-card.preview-face { background: #1e293b; color: #f8fafc; }
body.face-dark .mini-card.preview-face.red-card { color: #ff6b6b; }

.mini-card.back-card {
  background: repeating-linear-gradient(45deg, #1d4ed8, #1d4ed8 5px, #2563eb 5px, #2563eb 10px);
  color: #fff;
  border: 2px solid #fff;
}
body.back-crimson .mini-card.preview-back {
  background: repeating-linear-gradient(45deg, #991b1b, #991b1b 5px, #dc2626 5px, #dc2626 10px);
}
body.back-gold .mini-card.preview-back {
  background: linear-gradient(135deg, #d97706, #f59e0b, #78350f);
}
body.back-emerald .mini-card.preview-back {
  background: radial-gradient(circle, #10b981, #064e3b);
}

.tabs-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  padding: 8px 4px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.tab-btn.active { background: var(--accent-strong); }
.custom-tab-panel { display: none; }
.custom-tab-panel.active { display: block; }

.preset-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.preset-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 12px;
  padding: 10px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
}

.preset-btn.active {
  border-color: var(--gold);
  background: rgba(251, 191, 36, 0.2);
}

.settings-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.07);
  padding: 10px 12px;
  border-radius: 14px;
}

.setting-row.col {
  flex-direction: column;
  align-items: stretch;
}

.setting-row p {
  margin: 2px 0 0;
  font-size: 12px;
  opacity: 0.78;
}

.text-input, .select-input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 14px;
}

.bots-config-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bot-card-editor {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.bot-card-editor-title {
  grid-column: 1 / -1;
  font-weight: 800;
  font-size: 14px;
}

.stats-grid, .rewards-list, .rules-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-row-item, .reward-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
}

.modal-footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.modal-alert { border-color: rgba(239, 68, 68, 0.65); }

.alert-badge {
  align-self: flex-start;
  background: rgba(239, 68, 68, 0.25);
  color: #fecaca;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
}

.win-badge {
  align-self: flex-start;
  background: rgba(34, 197, 94, 0.25);
  color: #bbf7d0;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
}
