﻿:root {
  --bg1: #0f1b24;
  --bg2: #1d2f3a;
  --accent: #f5b842;
  --accent2: #ff6b6b;
  --text: #f2f4f7;
  --muted: #9fb2c0;
  --panel: #16242d;
  --seat: #203642;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
  background: radial-gradient(120% 120% at 50% 0%, var(--bg2), var(--bg1));
  color: var(--text);
  min-height: 100vh;
}

a {
  color: var(--accent);
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.header .room-id {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.button {
  background: var(--accent);
  color: #111;
  border: 0;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.button.secondary {
  background: #2c4756;
  color: var(--text);
}

.table {
  background: var(--panel);
  border-radius: 18px;
  padding: 16px;
  position: relative;
  min-height: 360px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

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

.seat {
  background: var(--seat);
  padding: 10px;
  border-radius: 12px;
  min-height: 64px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}

.seat.me {
  outline: 2px solid var(--accent);
}

.seat.offline::after {
  content: 'offline';
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 10px;
  color: var(--accent2);
  text-transform: uppercase;
}

.seat .name {
  font-weight: 700;
}

.seat .chips {
  color: var(--muted);
  font-size: 12px;
}

.board {
  margin: 12px 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.card {
  width: 44px;
  height: 60px;
  border-radius: 8px;
  background: #fff;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.pot {
  text-align: center;
  color: var(--accent);
  margin: 6px 0 12px 0;
}

.controls {
  position: sticky;
  bottom: 0;
  background: rgba(15,27,36,0.9);
  backdrop-filter: blur(8px);
  padding: 12px;
  border-top: 1px solid #223744;
}

.controls .actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.controls .range {
  display: flex;
  align-items: center;
  gap: 8px;
}

input[type="range"] {
  width: 100%;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 15, 20, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.overlay .panel {
  background: var(--panel);
  padding: 20px;
  border-radius: 16px;
  width: min(90vw, 360px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

input, select {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #2b3e49;
  background: #0f1b24;
  color: var(--text);
}

.chat {
  margin-top: 12px;
}

.chat-messages {
  max-height: 160px;
  overflow-y: auto;
  font-size: 13px;
  color: var(--muted);
  background: #0f1b24;
  border-radius: 8px;
  padding: 8px;
}

@media (min-width: 720px) {
  .seats {
    grid-template-columns: repeat(3, 1fr);
  }
}
