/* ===== POKER TABLE STYLES — Ponto de Decisão ===== */

/* Import Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* CSS Custom Properties */
:root {
  --deep-indigo: #1a1a2e;
  --midnight-blue: #16213e;
  --alchemy-gold: #c9a227;
  --warm-amber: #d4a053;
  --sage-green: #2d6a4f;
  --signal-red: #c1121f;
  --steel-gray: #8d99ae;
  --smoke-white: #edf2f4;
  --obsidian: #0f0f1a;
  --felt-dark: #1a4d2e;
  --felt-light: #2d6a4f;
  --transition-smooth: 0.3s ease;
  --transition-snappy: 0.2s ease;
}

/* ===== POKER TABLE ===== */

.poker-table {
  position: relative;
  width: 100%;
  max-width: clamp(500px, 85vw, 1100px);
  aspect-ratio: 16 / 10;
  background: radial-gradient(
    ellipse 50% 45% at 50% 45%,
    var(--felt-light) 0%,
    var(--felt-dark) 70%,
    #0d2e1f 100%
  );
  border: 4px solid var(--midnight-blue);
  border-radius: 50%;
  box-shadow:
    inset 0 0 40px rgba(0, 0, 0, 0.6),
    inset 0 0 20px rgba(201, 162, 39, 0.1),
    0 12px 40px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  margin: 0 auto;
}

/* Subtle Felt Texture */
.poker-table::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.02) 0px,
      rgba(0, 0, 0, 0.02) 2px,
      transparent 2px,
      transparent 4px
    );
  pointer-events: none;
  border-radius: 50%;
}

/* ===== SEATS CONTAINER ===== */

.seats-container {
  position: relative;
  width: 90%;
  height: 85%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: 1fr;
  row-gap: 20px;
  align-items: stretch;
  justify-items: center;
  z-index: 2;
  padding: clamp(20px, 4vw, 80px) clamp(40px, 6vw, 120px);
}

/* ===== INDIVIDUAL SEAT ===== */

.seat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
}

.seat.villain {
  justify-self: center;
  margin-top: 10px;
  animation: seatEnter 0.6s ease-out;
}

.seat.hero {
  justify-self: center;
  margin-bottom: 10px;
  animation: seatEnter 0.6s ease-out 0.1s both;
}

@keyframes seatEnter {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== SEAT INFO (Player Details) ===== */

/* Seat Info — Ponto de Decisão */
.seat-info {
  background: linear-gradient(135deg, rgba(22, 33, 62, 0.9), rgba(26, 26, 46, 0.85));
  border: 1px solid rgba(141, 153, 174, 0.2);
  border-radius: 10px;
  padding: 14px 20px;
  text-align: center;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  min-width: 160px;
  transition: all var(--transition-smooth);
}

.seat-info:hover {
  border-color: rgba(201, 162, 39, 0.3);
  box-shadow: 0 8px 20px rgba(201, 162, 39, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Player Name — Premium styling */
.player-name {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--alchemy-gold);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.player-stack {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(12px, 1.8vw, 18px);
  font-weight: 600;
  color: var(--sage-green);
  margin-bottom: 2px;
}

.current-bet {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(10px, 1.6vw, 16px);
  color: var(--signal-red);
  display: none;
  font-weight: 600;
}

.current-bet.active {
  display: block;
  animation: betPulse 0.6s ease-out;
}

@keyframes betPulse {
  0% {
    transform: scale(1.2);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ===== HOLE CARDS ===== */

.hole-cards-container {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 8px 12px;
  background-color: rgba(15, 15, 26, 0.6);
  border-radius: 6px;
  backdrop-filter: blur(3px);
  animation: cardsSlideIn 0.5s ease-out;
}

@keyframes cardsSlideIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== COMMUNITY SECTION (CENTER) ===== */

.community-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 3;
}

/* ===== POT DISPLAY ===== */

/* Pot Display — Decision Point */
.pot-display {
  text-align: center;
  padding: 14px 28px;
  background: linear-gradient(135deg, rgba(22, 33, 62, 0.85), rgba(26, 26, 46, 0.8));
  border: 2px solid rgba(201, 162, 39, 0.4);
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  animation: potAppear 0.4s ease-out;
}

@keyframes potAppear {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.pot-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--steel-gray);
  margin-bottom: 4px;
}

.pot-amount {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(20px, 3.5vw, 36px);
  font-weight: 700;
  color: var(--alchemy-gold);
  text-shadow: 0 2px 8px rgba(201, 162, 39, 0.3);
}

/* ===== COMMUNITY CARDS ===== */

.community-cards {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 8px;
}

.community-card {
  transition: all var(--transition-smooth);
}

.community-card:hover {
  transform: translateY(-4px);
}

/* ===== ACTION PANEL ===== */

.action-panel {
  background-color: var(--midnight-blue);
  border: 1px solid var(--steel-gray);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 600px;
  animation: panelSlideUp 0.5s ease-out;
}

@keyframes panelSlideUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Action Status Indicator */
.action-panel.hero-turn::before {
  content: 'Sua Vez';
  position: absolute;
  top: -28px;
  left: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--sage-green);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: statusBlink 1s ease-in-out infinite;
}

@keyframes statusBlink {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.action-panel.opponent-turn::before {
  content: 'Oponente está pensando...';
  position: absolute;
  top: -28px;
  left: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--steel-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== ACTION BUTTONS ROW ===== */

.action-buttons-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-action {
  background-color: var(--deep-indigo);
  color: var(--smoke-white);
  border: 2px solid var(--steel-gray);
  border-radius: 6px;
  padding: 10px 18px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition-smooth);
  min-width: 90px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

.btn-action::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: rgba(201, 162, 39, 0.1);
  transition: left var(--transition-smooth);
  z-index: -1;
}

.btn-action:hover:not(:disabled)::before {
  left: 0;
}

.btn-action:hover:not(:disabled) {
  border-color: var(--alchemy-gold);
  color: var(--alchemy-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(201, 162, 39, 0.2);
}

.btn-action:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: var(--steel-gray);
  color: var(--steel-gray);
}

.btn-action.active {
  border-color: var(--alchemy-gold);
  background-color: rgba(201, 162, 39, 0.15);
  color: var(--alchemy-gold);
  box-shadow: 0 0 12px rgba(201, 162, 39, 0.3);
}

/* Fold Button — Danger State */
.btn-action.fold:not(:disabled):hover {
  border-color: var(--signal-red);
  color: var(--signal-red);
  box-shadow: 0 4px 12px rgba(193, 18, 31, 0.2);
}

/* Check/Call Button — Success State */
.btn-action.check:not(:disabled):hover,
.btn-action.call:not(:disabled):hover {
  border-color: var(--sage-green);
  color: var(--sage-green);
  box-shadow: 0 4px 12px rgba(45, 106, 79, 0.2);
}

/* Raise Button — Primary State */
.btn-action.raise:not(:disabled):hover {
  border-color: var(--alchemy-gold);
  color: var(--alchemy-gold);
  box-shadow: 0 4px 12px rgba(201, 162, 39, 0.3);
}

/* ===== RAISE SECTION ===== */

.raise-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  background-color: var(--deep-indigo);
  border: 1px solid var(--steel-gray);
  border-radius: 6px;
  animation: raiseSectionSlide 0.3s ease-out;
}

@keyframes raiseSectionSlide {
  0% {
    opacity: 0;
    max-height: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    max-height: 300px;
    transform: translateY(0);
  }
}

/* Raise Presets */
.raise-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.preset-btn {
  padding: 8px;
  font-size: 11px;
  font-weight: 600;
  background-color: rgba(201, 162, 39, 0.05);
  border: 1px solid var(--steel-gray);
  color: var(--steel-gray);
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-smooth);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.preset-btn:hover {
  border-color: var(--warm-amber);
  color: var(--warm-amber);
  background-color: rgba(201, 162, 39, 0.1);
  transform: translateY(-1px);
}

.preset-btn.active {
  border-color: var(--alchemy-gold);
  background-color: rgba(201, 162, 39, 0.2);
  color: var(--alchemy-gold);
}

/* Raise Slider Input */
.raise-input-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.raise-input-row input[type="range"] {
  flex: 1;
  min-width: 120px;
  height: 6px;
  background: linear-gradient(
    to right,
    var(--steel-gray) 0%,
    var(--alchemy-gold) 100%
  );
  border: none;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
}

.raise-input-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--alchemy-gold);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(201, 162, 39, 0.4);
  transition: all var(--transition-smooth);
  border: 2px solid var(--midnight-blue);
}

.raise-input-row input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(201, 162, 39, 0.6);
}

.raise-input-row input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--alchemy-gold);
  cursor: pointer;
  border: 2px solid var(--midnight-blue);
  box-shadow: 0 2px 8px rgba(201, 162, 39, 0.4);
  transition: all var(--transition-smooth);
}

.raise-input-row input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(201, 162, 39, 0.6);
}

.raise-amount {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--alchemy-gold);
  min-width: 70px;
  text-align: right;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Raise Button in Section */
.raise-section .btn-primary {
  width: 100%;
  margin-top: 4px;
}

/* ===== HAND HISTORY SIDEBAR ===== */

.hand-history-sidebar {
  position: relative;
  width: 100%;
  max-width: 240px;
  background-color: var(--midnight-blue);
  border: 1px solid var(--steel-gray);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  max-height: 500px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hand-history-sidebar::-webkit-scrollbar {
  width: 6px;
}

.hand-history-sidebar::-webkit-scrollbar-track {
  background-color: var(--deep-indigo);
  border-radius: 3px;
}

.hand-history-sidebar::-webkit-scrollbar-thumb {
  background-color: var(--steel-gray);
  border-radius: 3px;
}

.hand-history-sidebar::-webkit-scrollbar-thumb:hover {
  background-color: var(--alchemy-gold);
}

.sidebar-title {
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--steel-gray);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--steel-gray);
}

/* ===== HAND HISTORY ITEMS ===== */

.hand-history-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-item {
  font-size: 12px;
  padding: 8px 10px;
  background-color: var(--deep-indigo);
  border-left: 2px solid var(--alchemy-gold);
  border-radius: 3px;
  color: var(--smoke-white);
  transition: all var(--transition-smooth);
  animation: historyItemAppear 0.3s ease-out;
}

@keyframes historyItemAppear {
  0% {
    opacity: 0;
    transform: translateX(-10px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.history-item:hover {
  background-color: rgba(26, 26, 46, 0.8);
  border-left-color: var(--warm-amber);
  padding-left: 12px;
}

.history-actor {
  font-weight: 700;
  color: var(--alchemy-gold);
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
}

.history-action {
  color: var(--steel-gray);
  font-style: italic;
}

/* ===== RESPONSIVE TABLE ===== */

@media (max-width: 1200px) {
  /* poker-table max-width handled by clamp() globally */

  .hand-history-sidebar {
    width: 100%;
    max-width: 100%;
    max-height: 160px;
    margin-top: 16px;
  }

  .action-panel {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .poker-table {
    aspect-ratio: 4 / 3;
    max-width: 100%;
  }

  .seats-container {
    row-gap: 12px;
    padding: 20px 15px;
  }

  /* Tablet: action panel fixed to bottom */
  .action-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    padding: 16px;
    gap: 10px;
    border-radius: 12px 12px 0 0;
    max-height: 45vh;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.6);
  }

  .action-buttons-row {
    gap: 8px;
  }

  .btn-action {
    padding: 8px 12px;
    font-size: 12px;
    min-width: 80px;
  }

  .raise-presets {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Hand history sidebar: fixed drawer above action panel */
  .hand-history-sidebar {
    position: fixed;
    bottom: calc(45vh + 1px);
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    max-height: 20vh;
    border-radius: 12px 12px 0 0;
    padding: 12px;
    border: 1px solid var(--steel-gray);
    border-bottom: none;
    overflow-y: auto;
    z-index: 99;
    background-color: var(--midnight-blue);
  }

  .sidebar-title {
    font-size: 10px;
  }

  .history-item {
    font-size: 11px;
    padding: 6px 8px;
  }
}

/* ===== ACCESSIBILITY ===== */

.action-panel:focus-within {
  border-color: var(--alchemy-gold);
  box-shadow: 0 0 16px rgba(201, 162, 39, 0.2);
}

.btn-action:focus {
  outline: 2px solid var(--alchemy-gold);
  outline-offset: 2px;
}

/* ===== DARK MODE COMPATIBILITY ===== */

@media (prefers-color-scheme: dark) {
  .poker-table {
    border-color: var(--steel-gray);
  }

  .seat-info {
    background-color: rgba(15, 15, 26, 0.8);
  }

  .action-panel {
    background-color: var(--deep-indigo);
  }
}

/* ===== PRINT STYLES ===== */

/* ===== MOBILE RESPONSIVE BREAKPOINT: 480px and below ===== */

@media (max-width: 480px) {
  /* Root adjustments for small screens */
  :root {
    font-size: 14px;
  }

  /* Poker table scaling for mobile */
  .poker-table {
    aspect-ratio: 1 / 1.2;
    max-width: 100%;
    width: 100%;
    border: 3px solid var(--midnight-blue);
    padding: 8px;
  }

  .seats-container {
    width: 95%;
    height: 90%;
    row-gap: 8px;
  }

  /* Seat adjustments */
  .seat {
    gap: 6px;
  }

  .seat.villain {
    margin-top: 4px;
  }

  .seat.hero {
    margin-bottom: 4px;
  }

  /* Seat info card */
  .seat-info {
    min-width: 120px;
    padding: 8px 12px;
    border-radius: 6px;
  }

  .player-name {
    font-size: 12px;
    margin-bottom: 4px;
  }
  /* player-stack, current-bet: clamp() handles responsive sizing automatically */

  /* Hole cards sizing */
  .hole-cards-container {
    gap: 6px;
    padding: 6px 8px;
  }

  /* Card size reduction for small screens */
  .playing-card {
    width: 60px;
    height: 84px;
  }

  /* Community section adjustments */
  .community-section {
    gap: 12px;
  }

  /* Pot display */
  .pot-display {
    padding: 8px 16px;
    border: 2px solid var(--alchemy-gold);
  }

  .pot-label {
    font-size: 9px;
    letter-spacing: 0.4px;
    margin-bottom: 2px;
  }
  /* pot-amount: clamp(20px, 3.5vw, 36px) — minimum 20px already correct at 480px */

  /* Community cards */
  .community-cards {
    gap: 4px;
    padding: 4px;
  }

  .community-card {
    width: 60px;
    height: 84px;
  }

  /* Action panel — full width on mobile */
  .action-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    padding: 12px;
    gap: 10px;
    border-radius: 12px 12px 0 0;
    max-height: 45vh;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.6);
  }

  /* Action panel indicator text positioning */
  .action-panel.hero-turn::before,
  .action-panel.opponent-turn::before {
    top: -24px;
    font-size: 10px;
    left: 12px;
  }

  /* Action buttons — full width, stacked */
  .action-buttons-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .btn-action {
    width: 100%;
    padding: 12px 16px;
    font-size: 12px;
    min-width: unset;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    letter-spacing: 0.5px;
  }

  /* Raise section — full width */
  .raise-section {
    padding: 10px;
    gap: 10px;
    border-radius: 6px;
  }

  /* Raise presets — 2x2 grid on mobile */
  .raise-presets {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .preset-btn {
    padding: 8px;
    font-size: 10px;
    min-height: 36px;
    border-radius: 4px;
  }

  /* Raise input row — full width slider */
  .raise-input-row {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }

  .raise-input-row input[type="range"] {
    min-width: 100%;
    width: 100%;
    flex: 1;
    height: 8px;
  }

  .raise-input-row input[type="range"]::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
  }

  .raise-input-row input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
  }

  .raise-amount {
    font-size: 13px;
    min-width: auto;
    text-align: center;
    width: 100%;
  }

  /* Hand history sidebar — collapse to bottom drawer */
  .hand-history-sidebar {
    position: fixed;
    bottom: 45vh;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    max-height: 25vh;
    border-radius: 12px 12px 0 0;
    padding: 12px;
    border: 1px solid var(--steel-gray);
    border-bottom: none;
    overflow-y: auto;
    z-index: 99;
    background-color: var(--midnight-blue);
  }

  .sidebar-title {
    font-size: 9px;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    padding-bottom: 6px;
  }

  .history-item {
    font-size: 10px;
    padding: 6px 8px;
    border-left: 2px solid var(--alchemy-gold);
    margin-bottom: 4px;
  }

  .history-actor {
    font-size: 9px;
    margin-bottom: 1px;
  }

  .history-action {
    font-size: 10px;
  }

  /* Minimum font sizes for readability */
  body {
    font-size: 12px;
  }

  p, a, span, li {
    font-size: 12px;
  }

  h3, h4 {
    font-size: 13px;
  }

  h2 {
    font-size: 14px;
  }

  h1 {
    font-size: 16px;
  }

  /* Lobby single column layout */
  .lobby-grid,
  .games-grid,
  .tournaments-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .game-card,
  .tournament-card,
  .lobby-item {
    padding: 12px;
    min-height: 80px;
  }

  /* Drills single column cards */
  .drills-container,
  .drill-grid,
  .scenarios-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .drill-card,
  .scenario-card {
    padding: 12px;
    border-radius: 8px;
  }

  .drill-card h3,
  .scenario-card h3 {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .drill-card p,
  .scenario-card p {
    font-size: 11px;
    line-height: 1.4;
  }

  /* Touch-friendly tap targets (minimum 44px) */
  button,
  .btn-action,
  .btn-primary,
  .btn-secondary,
  a.button,
  input[type="button"],
  input[type="submit"],
  .clickable-item,
  .card,
  .menu-item {
    min-height: 44px;
    min-width: 44px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
  }

  /* Card visibility at small sizes */
  .playing-card {
    border-radius: 3px;
    font-size: 10px;
  }

  .card-rank {
    font-size: 12px;
    font-weight: bold;
  }

  .card-suit {
    font-size: 10px;
  }

  /* Ensure card text remains readable */
  .card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  }

  /* Reduced spacing for compact layout */
  * {
    margin: 0;
    padding: 0;
  }

  /* Navigation adjustments */
  nav {
    padding: 8px;
    font-size: 11px;
  }

  /* Modal/Dialog adjustments */
  .modal,
  .dialog,
  .popup {
    max-width: 90vw;
    max-height: 85vh;
    padding: 16px 12px;
  }

  /* Alert/notification sizing */
  .alert,
  .notification,
  .toast {
    padding: 10px 12px;
    font-size: 11px;
    border-radius: 6px;
  }

  /* Stats and info display */
  .stats-container,
  .info-box {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
  }

  .stat-item,
  .info-item {
    padding: 8px;
    font-size: 11px;
  }

  /* Scrollbar visibility (thicker on mobile for easier interaction) */
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }

  ::-webkit-scrollbar-track {
    background-color: var(--deep-indigo);
  }

  ::-webkit-scrollbar-thumb {
    background-color: var(--steel-gray);
    border-radius: 4px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background-color: var(--alchemy-gold);
  }

  /* Prevent zoom on input focus */
  input,
  textarea,
  select {
    font-size: 16px;
    padding: 10px;
  }
}

/* ===== REFINED 768px BREAKPOINT ===== */

@media (max-width: 768px) {
  .poker-table {
    aspect-ratio: 4 / 3;
    max-width: 100%;
  }

  .seats-container {
    row-gap: 12px;
    padding: 20px 15px;
  }

  .action-panel {
    padding: 16px;
    max-width: 100%;
  }

  .action-buttons-row {
    gap: 8px;
  }

  .btn-action {
    padding: 10px 14px;
    font-size: 12px;
    min-width: 85px;
    min-height: 40px;
  }

  .raise-presets {
    grid-template-columns: repeat(2, 1fr);
  }

  .hand-history-sidebar {
    max-height: 120px;
    padding: 12px;
  }

  .sidebar-title {
    font-size: 10px;
  }

  .history-item {
    font-size: 11px;
    padding: 6px 8px;
  }

  /* Medium screen cards */
  .playing-card {
    width: 65px;
    height: 90px;
  }

  .community-card {
    width: 65px;
    height: 90px;
  }

  /* More readable on tablets — sizes handled by clamp() globally */
  .player-name {
    font-size: 13px;
  }
  /* player-stack, current-bet, pot-amount: clamp() adapts automatically */
}

/* ===== PRINT STYLES ===== */

@media print {
  .poker-table {
    box-shadow: none;
    border: 2px solid #000;
  }

  .action-panel,
  .hand-history-sidebar {
    display: none;
  }
}
