:root {
  --felt-primary: #155e2b;
  --felt-secondary: #0d431d;
  --felt-dark: #072911;
  --gold-accent: #f3c663;
  --card-width: clamp(68px, 17vw, 88px);
  --card-height: calc(var(--card-width) * 1.4);
  --pile-card-w: var(--card-width);
  --pile-card-h: var(--card-height);
  --card-radius: 9px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

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

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background-color: #051c0b;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #ffffff;
  touch-action: none;
}

.app-shell {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Tryb wymuszonego podglądu na desktopie */
.app-shell.sim-portrait .table-viewport {
  width: min(100vw, 440px);
  height: min(100dvh, 932px);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 0 3px rgba(255, 255, 255, 0.12);
}

.app-shell.sim-landscape .table-viewport {
  width: min(100vw, 932px);
  height: min(100dvh, 430px);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 0 3px rgba(255, 255, 255, 0.12);
}

@media (max-width: 960px) {
  .app-shell.sim-portrait .table-viewport,
  .app-shell.sim-landscape .table-viewport {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }
}

/* Właściwy stół karciany z suknem w stylu App Store */
.table-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--felt-primary);
  background-image:
    radial-gradient(ellipse at 50% 45%, rgba(34, 128, 62, 0.55) 0%, rgba(12, 62, 26, 0.75) 68%, rgba(5, 30, 12, 0.95) 100%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.022) 0px, rgba(255, 255, 255, 0.022) 2px, transparent 2px, transparent 18px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.022) 0px, rgba(255, 255, 255, 0.022) 2px, transparent 2px, transparent 18px),
    radial-gradient(circle at 25px 25px, rgba(0, 0, 0, 0.09) 2px, transparent 3px);
  background-size: 100% 100%, 36px 36px, 36px 36px, 36px 36px;
  padding:
    calc(var(--safe-top) + 8px)
    calc(var(--safe-right) + 12px)
    calc(var(--safe-bottom) + 4px)
    calc(var(--safe-left) + 12px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ============================================================================
   KARTY PRZECIWNIKÓW PRZY KRAWĘDZIACH EKRANU
   Schowane w 2/3 za krawędzią ekranu (zero przerwy od brzegu, wystaje tylko ~14px!)
   ============================================================================ */
.opponents-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  overflow: hidden;
}

.opponent-fan {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Górny przeciwnik: wysokość karty 48px, schowane 34px za górną krawędzią -> wystaje 14px */
.opponent-fan.top {
  top: -34px;
  left: 54%;
  transform: translateX(-50%);
  flex-direction: row;
}

.opponent-fan.top .opp-card {
  width: 34px;
  height: 48px;
  margin-left: -23px;
}

.opponent-fan.top .opp-card:first-child {
  margin-left: 0;
}

/* Lewy i Prawy przeciwnik: natywna kolumna pionowa przyklejona do samej krawędzi ekranu!
   Szerokość karty 48px, schowane 34px za boczną krawędzią -> wystaje tylko 14px (mniej niż 1/3)! */
.opponent-fan.left {
  left: -34px;
  top: 47%;
  transform: translateY(-50%);
  flex-direction: column;
}

.opponent-fan.right {
  right: -34px;
  top: 47%;
  transform: translateY(-50%);
  flex-direction: column;
}

.opponent-fan.left .opp-card,
.opponent-fan.right .opp-card {
  width: 48px;
  height: 34px;
  margin-top: -23px;
  margin-left: 0;
}

.opponent-fan.left .opp-card:first-child,
.opponent-fan.right .opp-card:first-child {
  margin-top: 0;
}

.opp-card {
  border-radius: 5px;
  background: #ffffff;
  padding: 2px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.45);
}

.opp-card-inner {
  width: 100%;
  height: 100%;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background:
    repeating-linear-gradient(45deg, #1b5c9e 0px, #1b5c9e 2px, #e8f1fa 2px, #e8f1fa 4px);
}

.opp-card.red-back .opp-card-inner {
  background:
    repeating-linear-gradient(45deg, #b8252b 0px, #b8252b 2px, #fcebeb 2px, #fcebeb 4px);
}

/* Główna przestrzeń robocza stołu */
.table-workspace {
  position: relative;
  z-index: 15;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  width: 100%;
}

/* Górny wiersz w Pionie (Stosy po lewej, Przyciski po prawej) */
.table-header-controls {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 2px 4px 0 4px;
  z-index: 40;
}

/* Strefa stosów (Draw & Discard) */
.decks-zone {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}

.pile-slot {
  position: relative;
  width: var(--pile-card-w);
  height: var(--pile-card-h);
  border-radius: var(--card-radius);
  border: 2px dashed rgba(255, 255, 255, 0.24);
  background: rgba(0, 0, 0, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.pile-slot .playing-card.static-card {
  width: 100%;
  height: 100%;
}

.pile-slot:hover,
.pile-slot.drop-target-active {
  border-color: var(--gold-accent);
  box-shadow: 0 0 18px rgba(243, 198, 99, 0.45);
}

.pile-slot:active {
  transform: scale(0.96);
}

.pile-label {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  padding: 4px;
  line-height: 1.25;
}

.pile-badge {
  position: absolute;
  bottom: -8px;
  right: -6px;
  z-index: 10;
  background: rgba(8, 36, 16, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* Efekt 3D grubości stosu zakrytego */
.stock-3d-layer {
  position: absolute;
  inset: 0;
  border-radius: var(--card-radius);
  background: #ffffff;
  border: 1px solid #cfd6de;
  box-shadow:
    1px 2px 0 #e2e7ec,
    2px 4px 0 #cbd2d9,
    3px 6px 0 #e2e7ec,
    4px 8px 0 #b8c0c8,
    5px 10px 14px rgba(0, 0, 0, 0.65);
  padding: 4px;
}

.stock-back-pattern {
  width: 100%;
  height: 100%;
  border-radius: calc(var(--card-radius) - 3px);
  border: 1.5px solid #2b6cb0;
  background-color: #ebf4ff;
  background-image:
    radial-gradient(#1e4e8c 1.2px, transparent 1.2px),
    radial-gradient(#2b6cb0 1.2px, #ebf4ff 1.2px);
  background-size: 10px 10px;
  background-position: 0 0, 5px 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stock-emblem {
  width: 24px;
  height: 24px;
  border: 1.5px solid #2b6cb0;
  transform: rotate(45deg);
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stock-emblem span {
  transform: rotate(-45deg);
  font-weight: 800;
  font-size: 11px;
  color: #1e4e8c;
}

/* Szklane przyciski akcji w stylu App Store */
.side-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.action-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.glass-btn {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  border: 1.5px solid rgba(255, 255, 255, 0.34);
  background: linear-gradient(180deg, rgba(52, 118, 72, 0.92) 0%, rgba(18, 66, 33, 0.96) 52%, rgba(9, 44, 19, 0.98) 100%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.45),
    0 4px 10px rgba(0, 0, 0, 0.5);
  color: #e6f4ea;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.15s ease, border-color 0.15s ease;
}

.glass-btn.active {
  border-color: var(--gold-accent);
  background: linear-gradient(180deg, #d99b26 0%, #8f5b08 100%);
}

.glass-btn:active {
  transform: scale(0.92);
}

.glass-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.v-icon {
  font-size: 16px;
  font-weight: 800;
  line-height: 22px;
}

.glass-btn-sub {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  margin-top: 1px;
  color: #b7e4c7;
}

/* Rozwijany panel spod przycisku V (Dropdown Menu) */
.dropdown-v-panel {
  position: absolute;
  top: 56px;
  right: 4px;
  z-index: 90;
  width: min(300px, calc(100vw - 24px));
  max-height: calc(100dvh - 70px);
  overflow-y: auto;
  background: rgba(8, 38, 17, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(243, 198, 99, 0.45);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: popIn 0.16s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.dropdown-v-panel.hidden {
  display: none;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dropdown-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dropdown-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #9ec5ab;
}

.segmented-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: rgba(0, 0, 0, 0.35);
  padding: 4px;
  border-radius: 10px;
}

.seg-btn {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: #cfe8d5;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 8px;
  border-radius: 7px;
  cursor: pointer;
}

.seg-btn.active {
  background: linear-gradient(180deg, #2b7fff 0%, #1557c0 100%);
  border-color: #7ab3ff;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.dropdown-select {
  width: 100%;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
}

.sliders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sliders-grid label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
  color: #d5ece0;
}

.sliders-grid input[type="range"] {
  width: 100%;
  accent-color: var(--gold-accent);
}

.dropdown-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.dropdown-action-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 7px 10px;
  border-radius: 9px;
  cursor: pointer;
}

.dropdown-action-btn.gold {
  background: linear-gradient(180deg, #e09f2d 0%, #9e6509 100%);
  border-color: #ffd984;
  font-weight: 700;
}

.dropdown-action-btn.full-width {
  width: 100%;
  text-align: center;
}

/* Okienko instrukcji pełnego ekranu Safari iOS */
.ios-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ios-modal.hidden {
  display: none;
}

.ios-modal-card {
  max-width: 380px;
  width: 100%;
  background: #0b3518;
  border: 1.5px solid var(--gold-accent);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.ios-modal-card h3 {
  margin: 0 0 10px 0;
  font-size: 15px;
  color: var(--gold-accent);
}

.ios-modal-card ol {
  margin: 0 0 14px 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.45;
  color: #e2f2e7;
}

.ios-modal-card li + li {
  margin-top: 8px;
}

/* SZEROKA CENTRALNA ARENA STOŁU */
.play-arena {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 110px;
  margin: 0 auto;
  border-radius: 18px;
  border: 1.5px dashed rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  overflow-y: auto;
  touch-action: none;
}

.play-arena.drop-target-active {
  background: rgba(243, 198, 99, 0.15);
  border-color: var(--gold-accent);
  box-shadow: inset 0 0 28px rgba(243, 198, 99, 0.25);
}

.arena-hint {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  pointer-events: none;
  max-width: 290px;
  line-height: 1.4;
}

.thrown-cards-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  position: static !important;
}

.thrown-card-wrapper {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Specjalny układ stołu dla gry TYSIĄC (1000) */
.tysiac-table-layout {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: static !important;
  box-sizing: border-box;
  gap: 8px;
}

.tysiac-score-mini {
  background: rgba(9, 45, 19, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  overflow: hidden;
  font-size: 11px;
  min-width: 130px;
}

.tysiac-score-head {
  background: #0d7a22;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  text-align: center;
  font-weight: 700;
  padding: 3px 4px;
}

.tysiac-score-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  text-align: center;
  padding: 4px;
  color: #cfe8d5;
  font-weight: 600;
}

.tysiac-round-live-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  text-align: center;
  padding: 2px 4px;
  background: rgba(16, 185, 129, 0.22);
  color: #86efac;
  font-size: 10px;
  font-weight: 800;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
}

.tysiac-round-live-row .live-player {
  color: #ffd984;
}

.tysiac-hud-pill.goal-reached {
  background: rgba(16, 185, 129, 0.45);
  border-color: #86efac;
  color: #86efac;
}

.tysiac-ribbon {
  background: linear-gradient(180deg, #fff8dc 0%, #f5deb3 100%);
  border: 1.5px solid #c87d55;
  color: #5c2612;
  font-weight: 800;
  font-size: 14px;
  padding: 4px 14px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
}

.tysiac-center-slots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tysiac-action-btns {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.tysiac-btn {
  appearance: none;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.tysiac-btn.purple {
  background: linear-gradient(180deg, #9333ea 0%, #6b21a8 100%);
}

.tysiac-btn.gold {
  background: linear-gradient(180deg, #e09f2d 0%, #9e6509 100%);
  border-color: #ffd984;
}

.tysiac-btn.green {
  background: linear-gradient(180deg, #16a34a 0%, #15803d 100%);
  border-color: #86efac;
}

.tysiac-btn.red {
  background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%);
  border-color: #fca5a5;
}

.tysiac-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.8);
}

.tysiac-hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 700;
  color: #ffffff;
}

.playing-card.legal-move {
  box-shadow: 0 0 0 2.5px #10b981, 0 8px 18px rgba(16, 185, 129, 0.45);
  animation: legalPulse 1.8s infinite alternate;
}

@keyframes legalPulse {
  from {
    transform-origin: 50% 100%;
    filter: drop-shadow(0 0 2px rgba(16, 185, 129, 0.6));
  }
  to {
    transform-origin: 50% 100%;
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.95));
  }
}

.trick-card-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  animation: cardThrowIn 0.35s cubic-bezier(0.18, 0.89, 0.32, 1.28) both;
  will-change: transform, opacity;
}

@keyframes cardThrowIn {
  from {
    opacity: 0;
    transform: translateY(-24px) scale(0.65) rotate(-8deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

.trick-card-wrap.throw-from-left {
  animation: throwFromLeft 0.38s cubic-bezier(0.18, 0.89, 0.32, 1.25) both;
}

@keyframes throwFromLeft {
  from {
    opacity: 0;
    transform: translate(-100px, -40px) scale(0.5) rotate(-22deg);
  }
  to {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
}

.trick-card-wrap.throw-from-right {
  animation: throwFromRight 0.38s cubic-bezier(0.18, 0.89, 0.32, 1.25) both;
}

@keyframes throwFromRight {
  from {
    opacity: 0;
    transform: translate(100px, -40px) scale(0.5) rotate(22deg);
  }
  to {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
}

.trick-card-wrap.throw-from-player {
  animation: throwFromPlayer 0.38s cubic-bezier(0.18, 0.89, 0.32, 1.25) both;
}

@keyframes throwFromPlayer {
  from {
    opacity: 0;
    transform: translate(0, 80px) scale(0.6) rotate(6deg);
  }
  to {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
}

.trick-card-wrap.winning-trick-card {
  z-index: 10;
  animation: winningCardPop 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.25) both;
}

.trick-card-wrap.winning-trick-card .playing-card {
  box-shadow: 0 0 0 3px #f59e0b, 0 0 25px rgba(245, 158, 11, 0.95) !important;
  transform: scale(1.08) translateY(-4px) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@keyframes winningCardPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.15) translateY(-8px); }
  100% { transform: scale(1.08) translateY(-4px); }
}

.trick-player-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffd984;
  letter-spacing: 0.2px;
}

.trick-player-tag.winning-tag {
  background: linear-gradient(180deg, #d97706 0%, #b45309 100%);
  color: #fff;
  border-color: #fde68a;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.8);
  font-weight: 900;
}

.trick-winner-banner {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid #f59e0b;
  border-radius: 999px;
  padding: 4px 14px;
  color: #ffd984;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 16px rgba(245, 158, 11, 0.35);
  animation: popIn 0.25s ease both;
  margin-bottom: 6px;
}

.giveaway-card-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #15803d 0%, #166534 100%);
  border: 1.5px solid #86efac;
  color: #ffffff;
  font-size: 9.5px;
  line-height: 1.15;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
  z-index: 80;
  pointer-events: none;
  letter-spacing: 0.2px;
}

.giveaway-slot {
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.giveaway-slot:hover {
  transform: translateY(-2px);
}

.giveaway-slot.filled {
  background: rgba(16, 185, 129, 0.18) !important;
  border-color: #86efac !important;
}

/* Dolna strefa ręki gracza (Wachlarz kart) */
.hand-zone {
  position: relative;
  z-index: 25;
  width: 100%;
  height: clamp(135px, 24dvh, 185px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible !important;
}

.hand-fan-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible !important;
}

/* Pojedyncza karta do gry (stała proporcja 1 : 1.4 — nigdy się nie rozciąga!) */
.playing-card {
  position: absolute;
  width: var(--card-width);
  height: var(--card-height);
  aspect-ratio: 1 / 1.4;
  border-radius: var(--card-radius);
  background: linear-gradient(165deg, #ffffff 0%, #f6f7f9 100%);
  border: 1px solid #aeb8c2;
  box-shadow: -3px 2px 10px rgba(0, 0, 0, 0.42);
  color: #14171a;
  cursor: grab;
  touch-action: none;
  transform-origin: 50% 100%;
  transition:
    transform 0.24s cubic-bezier(0.2, 0.9, 0.25, 1),
    left 0.24s cubic-bezier(0.2, 0.9, 0.25, 1),
    top 0.24s cubic-bezier(0.2, 0.9, 0.25, 1),
    box-shadow 0.18s ease;
  will-change: transform, left, top;
  overflow: visible !important;
}

.playing-card.red-suit {
  color: #dc2626;
}

.playing-card.black-suit {
  color: #111827;
}

.playing-card.selected {
  box-shadow: 0 0 0 2.5px #f59e0b, -4px 8px 18px rgba(0, 0, 0, 0.6);
}

.playing-card.dragging {
  transition: box-shadow 0.12s ease !important;
  cursor: grabbing;
  z-index: 999 !important;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.68), 0 0 0 2px rgba(243, 198, 99, 0.9);
}

.card-corner-tl {
  position: absolute;
  top: 4px;
  left: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.92;
}

.card-rank {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -1px;
  font-stretch: condensed;
}

.card-suit-small {
  font-size: 16px;
  margin-top: 1px;
}

.card-corner-br {
  position: absolute;
  bottom: 4px;
  right: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.92;
  transform: rotate(180deg);
}

.card-center-art {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  opacity: 0.92;
  pointer-events: none;
}

.playing-card.static-card {
  position: relative;
  left: auto !important;
  top: auto !important;
  transform: none !important;
}

/* Powiadomienie (Toast) — wysoko na górze stołu (domyślnie) lub poniżej stołu (.pos-bottom) */
.status-toast {
  position: absolute;
  top: calc(var(--safe-top) + 3px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 95;
  background: rgba(5, 28, 12, 0.92);
  border: 1px solid rgba(243, 198, 99, 0.55);
  color: #fef3c7;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 99px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  white-space: nowrap;
  max-width: calc(100vw - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.status-toast.pos-bottom {
  top: auto;
  bottom: calc(clamp(135px, 24dvh, 185px) + 5px);
}

.table-viewport.mode-landscape .status-toast.pos-bottom {
  bottom: calc(clamp(105px, 34dvh, 145px) + 5px);
}

.status-toast.visible {
  opacity: 1;
}

/* ============================================================================
   POZYCJONOWANIE NAPISÓW I KOMUNIKATÓW STOŁU (GÓRA / POD STOŁEM / UKRYTE)
   ============================================================================ */
.table-hud-bar {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  width: auto;
  pointer-events: none;
  transition: all 0.22s ease;
}

.table-hud-bar > * {
  pointer-events: auto;
}

/* 1. TRYB: GÓRA (Domyślny) — paski statusu na samej górze areny (na szczycie stołu) */
.table-viewport.hud-pos-top .table-hud-bar,
.table-viewport:not(.hud-pos-bottom):not(.mode-silent) .table-hud-bar {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  z-index: 35;
  margin: 0 !important;
}

.table-viewport.hud-pos-top .play-arena,
.table-viewport:not(.hud-pos-bottom):not(.mode-silent) .play-arena {
  padding-top: 48px;
  box-sizing: border-box;
}

/* 2. TRYB: POD STOŁEM — paski statusu na samym dole areny (pod stołem, tuż nad kartami ręki) */
.table-viewport.hud-pos-bottom .table-hud-bar {
  position: absolute;
  top: auto;
  bottom: 8px;
  left: 8px;
  right: 8px;
  z-index: 35;
  margin: 0 !important;
}

.table-viewport.hud-pos-bottom .play-arena {
  padding-bottom: 48px;
  box-sizing: border-box;
}

/* W trybie poziomym (Landscape) bardziej zwarte odstępy */
.table-viewport.mode-landscape.hud-pos-top .play-arena,
.table-viewport.mode-landscape:not(.hud-pos-bottom):not(.mode-silent) .play-arena {
  padding-top: 36px;
}
.table-viewport.mode-landscape.hud-pos-bottom .play-arena {
  padding-bottom: 36px;
}
.table-viewport.mode-landscape.hud-pos-top .table-hud-bar,
.table-viewport.mode-landscape:not(.hud-pos-bottom):not(.mode-silent) .table-hud-bar {
  top: 4px;
}
.table-viewport.mode-landscape.hud-pos-bottom .table-hud-bar {
  bottom: 4px;
}

/* 3. TRYB: UKRYTE / SILENT — czysty stół bez komunikatów, dymków i podpowiedzi */
.table-viewport.mode-silent .table-hud-bar,
.table-viewport.mode-silent .remik-hud-row,
.table-viewport.mode-silent .makao-hud-banner,
.table-viewport.mode-silent .trick-winner-banner,
.table-viewport.mode-silent .arena-hint,
.table-viewport.mode-silent .status-toast {
  display: none !important;
}

/* ============================================================================
   UKŁAD POZIOMY (LANDSCAPE) — Prawidłowe proporcje kart (1 : 1.4)!
   ============================================================================ */
.table-viewport.mode-landscape {
  --card-width: clamp(66px, 9.2vw, 82px);
  --card-height: calc(var(--card-width) * 1.4);
  --pile-card-w: clamp(58px, 8vw, 72px);
  --pile-card-h: calc(var(--pile-card-w) * 1.4);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 1fr auto;
  gap: 8px 14px;
  align-items: stretch;
}

.table-viewport.mode-landscape .table-workspace {
  display: contents;
}

.table-viewport.mode-landscape .table-header-controls {
  grid-column: 1;
  grid-row: 1 / span 2;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  width: auto;
  height: 100%;
  padding: 4px 0 4px 6px;
  z-index: 45;
}

.table-viewport.mode-landscape .decks-zone {
  flex-direction: row;
  gap: 10px;
}

.table-viewport.mode-landscape .side-controls {
  align-items: flex-start;
}

.table-viewport.mode-landscape .play-arena {
  grid-column: 2;
  grid-row: 1;
  min-height: 85px;
  height: 100%;
  margin-right: 6px;
}

.table-viewport.mode-landscape .hand-zone {
  grid-column: 2;
  grid-row: 2;
  height: clamp(105px, 34dvh, 145px);
}

.table-viewport.mode-landscape .dropdown-v-panel {
  left: 16px;
  right: auto;
  top: 10px;
}

/* ==========================================================================
   STYLIZACJA STOŁU I UKŁADÓW DLA GRY REMIK
   ========================================================================== */
.remik-table-layout {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  padding: 4px;
  gap: 6px;
  position: static !important;
}

.remik-hud-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

.remik-hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #e2e8f0;
}

.remik-hud-pill.active-turn {
  background: rgba(16, 185, 129, 0.35);
  border-color: #34d399;
  color: #86efac;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.3);
}

.remik-hud-pill.opened {
  background: rgba(59, 130, 246, 0.35);
  border-color: #60a5fa;
  color: #93c5fd;
}

.remik-score-mini {
  background: rgba(9, 45, 19, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  overflow: hidden;
  font-size: 11px;
  min-width: 130px;
}

.remik-score-head {
  background: #0d7a22;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  text-align: center;
  font-weight: 700;
  padding: 3px 4px;
}

.remik-score-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  text-align: center;
  padding: 4px;
  color: #cfe8d5;
  font-weight: 600;
}

.remik-melds-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-content: flex-start;
  width: 100%;
  flex: 1;
  overflow-y: auto;
  padding: 4px;
  box-sizing: border-box;
  scrollbar-width: thin;
}

.remik-meld-group {
  background: rgba(6, 40, 18, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 5px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  position: relative;
}

.remik-meld-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  color: #bbf7d0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
  padding-bottom: 2px;
}

.remik-meld-cards {
  display: flex;
  align-items: center;
  padding: 2px 0;
}

.remik-mini-card {
  width: 32px;
  height: 45px;
  border-radius: 4px;
  background: #ffffff;
  color: #111;
  border: 1px solid #bbb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 11px;
  margin-right: -12px;
  box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.3);
  position: relative;
  user-select: none;
}

.remik-mini-card:last-child {
  margin-right: 0;
}

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

.remik-mini-card.black {
  color: #1e293b;
}

.remik-mini-card.joker-card {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.5);
}

.remik-mini-card .joker-rep-sub {
  position: absolute;
  bottom: 1px;
  font-size: 7.5px;
  color: #92400e;
  font-weight: 800;
}

.remik-meld-quick-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 9.5px;
  font-weight: 700;
  cursor: pointer;
  background: rgba(16, 185, 129, 0.25);
  color: #86efac;
  transition: all 0.15s;
}

.remik-meld-quick-btn:hover {
  background: rgba(16, 185, 129, 0.5);
  color: #fff;
}

.remik-meld-quick-btn.swap {
  background: rgba(245, 158, 11, 0.3);
  border-color: #fbbf24;
  color: #fde68a;
}

.remik-meld-quick-btn.swap:hover {
  background: rgba(245, 158, 11, 0.6);
  color: #fff;
}

.remik-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 4px;
}

.remik-btn {
  appearance: none;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: linear-gradient(180deg, #10b981 0%, #047857 100%);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: transform 0.1s, box-shadow 0.1s;
}

.remik-btn:active {
  transform: scale(0.97);
}

.remik-btn.gold {
  background: linear-gradient(180deg, #f59e0b 0%, #b45309 100%);
  border-color: #fcd34d;
}

.remik-btn.purple {
  background: linear-gradient(180deg, #8b5cf6 0%, #6d28d9 100%);
  border-color: #c4b5fd;
}

.remik-btn.red {
  background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
  border-color: #fca5a5;
}

.remik-btn.gray {
  background: linear-gradient(180deg, #475569 0%, #334155 100%);
  border-color: #94a3b8;
}

.remik-round-end-card {
  background: rgba(5, 35, 15, 0.95);
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 14px 18px;
  text-align: center;
  max-width: 380px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: popIn 0.3s ease-out;
}

.remik-end-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
  margin: 4px 0;
}

.remik-end-table th {
  background: #0d7a22;
  color: #fff;
  padding: 4px;
}

.remik-end-table td {
  padding: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
}

.pile-slot.pulse-highlight {
  box-shadow: 0 0 0 2.5px #34d399, 0 0 15px rgba(52, 211, 153, 0.6);
  animation: pilePulse 1.4s infinite alternate;
}

.pile-slot.discard-ready-highlight {
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.7), 0 0 14px rgba(245, 158, 11, 0.45);
}

.remik-hud-pill.staged-open {
  background: rgba(245, 158, 11, 0.35);
  border-color: #fbbf24;
  color: #fde68a;
}

.remik-meld-group.staged-meld {
  border: 1.5px dashed #fbbf24;
  background: rgba(120, 53, 15, 0.55);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.35);
}

.playing-card.in-ready-meld.meld-group-0 {
  border-top: 3px solid #10b981;
}

.playing-card.in-ready-meld.meld-group-1 {
  border-top: 3px solid #3b82f6;
}

.playing-card.in-ready-meld.meld-group-2 {
  border-top: 3px solid #a855f7;
}

.card-tag-meld-group {
  position: absolute;
  top: -11px;
  left: 4px;
  background: linear-gradient(180deg, #059669 0%, #047857 100%);
  border: 1px solid #6ee7b7;
  color: #ffffff;
  font-size: 8.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.65);
  z-index: 40;
  cursor: pointer;
}

.card-tag-meld-group.group-1 {
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  border-color: #93c5fd;
}

.card-tag-meld-group.group-2 {
  background: linear-gradient(180deg, #9333ea 0%, #7e22ce 100%);
  border-color: #d8b4fe;
}

@keyframes pilePulse {
  from { box-shadow: 0 0 0 2px #34d399, 0 0 8px rgba(52, 211, 153, 0.4); }
  to { box-shadow: 0 0 0 3px #10b981, 0 0 18px rgba(16, 185, 129, 0.85); }
}

.card-tag-discard-lock {
  position: absolute;
  top: 2px;
  left: 2px;
  background: rgba(220, 38, 38, 0.85);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 4px;
  pointer-events: none;
}

.card-tag-must-use {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(245, 158, 11, 0.95);
  color: #000;
  font-size: 8px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 4px;
  pointer-events: none;
  animation: pulseMustUse 1.2s infinite alternate;
}

@keyframes pulseMustUse {
  from { transform: scale(0.95); opacity: 0.85; }
  to { transform: scale(1.08); opacity: 1; }
}

/* Wskaźnik wersji aplikacji (nad kartami w widoku mobilnym, niezasłaniający kart) */
.app-version-badge {
  position: fixed;
  bottom: calc(clamp(135px, 24dvh, 185px) + 8px);
  right: 8px;
  font-size: 10px;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.55);
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
  z-index: 90;
  letter-spacing: 0.4px;
}

.table-viewport.mode-landscape .app-version-badge {
  bottom: calc(clamp(105px, 34dvh, 145px) + 6px);
  right: 12px;
}

/* ==========================================================================
   MAKAO — Style Stołu, HUDu, Modali i Akcji (v1.3.0)
   ========================================================================== */
.makao-score-mini {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(243, 198, 99, 0.4);
  border-radius: 8px;
  padding: 4px 8px;
  min-width: 130px;
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.makao-score-head {
  display: flex;
  justify-content: space-between;
  font-size: 9.5px;
  color: #9ec5ab;
  text-transform: uppercase;
  font-weight: 700;
}

.makao-score-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
  color: #ffd984;
}

.makao-score-cards-row,
.makao-score-taken-row {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #cfe8d5;
  border-top: 1px dotted rgba(255, 255, 255, 0.15);
  padding-top: 2px;
}

.makao-score-cards-row .seat-stat.live-player,
.makao-score-taken-row .seat-stat.live-player {
  color: #ffd984;
  font-weight: 700;
}

.makao-score-taken-row {
  font-size: 9px;
  color: #9ec5ab;
}

.makao-score-taken-row small {
  color: rgba(255, 255, 255, 0.55);
}

.opp-fan-badge {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(5, 33, 14, 0.92);
  border: 1px solid rgba(243, 198, 99, 0.6);
  border-radius: 8px;
  padding: 3px 6px;
  font-size: 10.5px;
  font-weight: 700;
  color: #ffd984;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
  z-index: 10;
  white-space: nowrap;
}

.opp-fan-badge small {
  font-size: 8.5px;
  color: #9ec5ab;
  font-weight: 600;
}

.opp-fan-badge.left {
  left: 48px;
}

.opp-fan-badge.right {
  right: 48px;
}

.makao-end-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  margin-bottom: 12px;
}

.makao-end-table th,
.makao-end-table td {
  padding: 5px 6px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.makao-end-table th {
  color: #9ec5ab;
  font-size: 9.5px;
  text-transform: uppercase;
}

.makao-end-table tr.winner-row {
  background: rgba(243, 198, 99, 0.15);
  color: #ffd984;
}

.makao-table-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 380px;
  position: static !important;
}

.makao-hud-banner {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-bottom: 4px;
}

.makao-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cfe8d5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.makao-pill.gold {
  background: rgba(243, 198, 99, 0.25);
  border-color: var(--gold-accent);
  color: #ffd984;
}

.makao-pill.red {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #fca5a5;
}

.makao-pill.yellow {
  background: rgba(245, 158, 11, 0.25);
  border-color: #f59e0b;
  color: #fde68a;
}

.makao-pill.blue {
  background: rgba(59, 130, 246, 0.25);
  border-color: #3b82f6;
  color: #bfdbfe;
}

.makao-pill.purple {
  background: rgba(168, 85, 247, 0.25);
  border-color: #a855f7;
  color: #e9d5ff;
}

.makao-pill.pulse {
  animation: pulseWar 1.1s infinite alternate;
}

@keyframes pulseWar {
  from { transform: scale(0.97); }
  to { transform: scale(1.05); }
}

.makao-actions-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: 6px;
}

.makao-action-btn {
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.18s ease;
}

.makao-action-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.makao-action-btn.gold {
  background: rgba(243, 198, 99, 0.3);
  border-color: var(--gold-accent);
  color: #ffd984;
}

.makao-action-btn.green {
  background: rgba(16, 185, 129, 0.3);
  border-color: #10b981;
  color: #a7f3d0;
}

.makao-action-btn.red {
  background: rgba(239, 68, 68, 0.35);
  border-color: #ef4444;
  color: #fecaca;
}

.makao-action-btn.yellow {
  background: rgba(245, 158, 11, 0.35);
  border-color: #f59e0b;
  color: #fef3c7;
}

.makao-action-btn.gray {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  cursor: not-allowed;
}

.makao-declaration-modal {
  background: rgba(7, 41, 17, 0.95);
  border: 1.5px solid var(--gold-accent);
  border-radius: 14px;
  padding: 12px 18px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75);
  max-width: 330px;
}

.makao-declaration-modal h3 {
  margin: 0 0 6px 0;
  font-size: 14px;
  color: var(--gold-accent);
}

.makao-declaration-modal p {
  margin: 0 0 10px 0;
  font-size: 11.5px;
  color: #cfe8d5;
}

.makao-decl-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.makao-decl-btn {
  font-size: 13px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  cursor: pointer;
}

.makao-decl-btn.red {
  color: #f87171;
}

.makao-decl-btn.black {
  color: #ffffff;
}

.makao-decl-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.makao-round-over-box {
  background: rgba(7, 41, 17, 0.96);
  border: 2px solid var(--gold-accent);
  border-radius: 16px;
  padding: 16px 20px;
  text-align: center;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8);
  max-width: 320px;
}


