/* ========================================
   Omok - styles
   ======================================== */

/* Google Fonts - Outfit for headings, Inter for body */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&family=Noto+Sans+KR:wght@400;500;600;700&display=swap');

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0F172A;
  --bg2: #0f1424;
  --surface: #151a2e;
  --surface2: #1e2542;
  --surface3: #283058;
  --accent: #22D3EE;
  --accent2: #00b8d4;
  --accent-dim: rgba(0, 229, 255, 0.08);
  --accent-mid: rgba(0, 229, 255, 0.15);
  --win: #00e676;
  --win-dim: rgba(0, 230, 118, 0.12);
  --lose: #ff5252;
  --lose-dim: rgba(255, 82, 82, 0.1);
  --warn: #ffab40;
  --text: #e8ecf4;
  --text-dim: #7a8599;
  --text-mid: #9ca8be;
  --board-bg: #1c1814;
  --board-line: rgba(0, 229, 255, 0.18);
  --board-line-bright: rgba(0, 229, 255, 0.35);
  --black-stone: #1a1a1a;
  --white-stone: #f0f0f0;
  --radius: 16px;
  --radius-sm: 10px;
  --font-heading: 'Outfit', 'Noto Sans KR', sans-serif;
  --font-body: 'Inter', 'Noto Sans KR', -apple-system, sans-serif;
  --glow: 0 0 24px rgba(0, 229, 255, 0.25);
  --glow-strong: 0 0 48px rgba(0, 229, 255, 0.35);
  --border-glow: 1px solid rgba(0, 229, 255, 0.12);
  --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

/* Subtle background pattern */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(0, 229, 255, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 80%, rgba(0, 230, 118, 0.03) 0%, transparent 60%),
    repeating-linear-gradient(0deg, transparent, transparent 80px, rgba(0, 229, 255, 0.015) 80px, rgba(0, 229, 255, 0.015) 81px),
    repeating-linear-gradient(90deg, transparent, transparent 80px, rgba(0, 229, 255, 0.015) 80px, rgba(0, 229, 255, 0.015) 81px);
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #67f0ff; }

/* Layout */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
}

/* ========================================
   Navigation
   ======================================== */
nav {
  background: rgba(15, 20, 36, 0.92);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid rgba(0, 229, 255, 0.08);
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

nav .logo {
  font-family: var(--font-heading);
  font-size: 1.4em;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 3px;
  text-shadow: var(--glow);
  text-transform: uppercase;
}

nav .logo:hover { color: #67f0ff; text-shadow: var(--glow-strong); }

nav .nav-links {
  display: flex;
  gap: 2px;
  align-items: center;
}

nav .nav-links a {
  color: var(--text-dim);
  font-size: 0.82em;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

nav .nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

nav .nav-links a.active {
  color: var(--accent);
  background: var(--accent-dim);
  font-weight: 600;
}

/* Lang toggle */
.lang-toggle {
  background: transparent;
  color: var(--text-mid);
  border: 1px solid var(--surface3);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.78em;
  font-weight: 600;
  font-family: var(--font-body);
  transition: all var(--transition);
  margin-left: 8px;
  white-space: nowrap;
}

.lang-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* Sound toggle */
.sound-toggle {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 1.05em;
  padding: 6px 8px;
  transition: color var(--transition);
  margin-left: 4px;
}

.sound-toggle:hover { color: var(--accent); }

/* ========================================
   Hero Section
   ======================================== */
.hero {
  text-align: center;
  padding: 80px 24px 48px;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.8em, 6vw, 4em);
  font-weight: 800;
  letter-spacing: 6px;
  color: var(--accent);
  text-shadow: var(--glow-strong);
  text-transform: uppercase;
  line-height: 1.1;
}

.hero-compact { padding: 40px 20px 30px; }

.hero p {
  color: var(--text-dim);
  font-size: 1.1em;
  max-width: 420px;
  margin: 20px auto 0;
  font-weight: 400;
  letter-spacing: 0.3px;
}

/* ========================================
   Cards
   ======================================== */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
  border: 1px solid var(--surface2);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), transparent 50%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover::before { opacity: 1; }

.card:hover {
  border-color: rgba(0, 229, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.card h2 {
  font-family: var(--font-heading);
  margin-bottom: 12px;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.25em;
  letter-spacing: 0.5px;
}

/* ========================================
   Forms
   ======================================== */
input[type="text"], input[type="number"], textarea, select {
  background: var(--bg2);
  border: 1px solid var(--surface2);
  color: var(--text);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95em;
  font-family: var(--font-body);
  width: 100%;
  outline: none;
  transition: all var(--transition);
}

input:focus, textarea:focus, select:focus {
  border-color: var(--accent2);
  box-shadow: 0 0 0 3px var(--accent-dim), 0 0 16px rgba(0, 229, 255, 0.08);
}

input::placeholder { color: var(--text-dim); font-weight: 400; }

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a8599' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* Checkbox styled */
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--lose-dim);
  border: 1px solid rgba(255, 82, 82, 0.2);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.92em;
  font-weight: 600;
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  white-space: nowrap;
  min-width: fit-content;
  gap: 6px;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
}

.btn-primary:hover {
  background: #33ebff;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 229, 255, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 229, 255, 0.2);
}

.btn-secondary {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--surface3);
}

.btn-secondary:hover {
  background: var(--surface3);
  border-color: rgba(0, 229, 255, 0.2);
  transform: translateY(-1px);
}

.btn-danger {
  background: var(--lose);
  color: white;
}

.btn-danger:hover {
  background: #ff6b6b;
  transform: translateY(-1px);
}

.btn-glow {
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.25);
  animation: btn-glow-pulse 2.5s ease-in-out infinite;
}

@keyframes btn-glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 229, 255, 0.2); }
  50% { box-shadow: 0 0 36px rgba(0, 229, 255, 0.4); }
}

.btn-small {
  padding: 7px 14px;
  font-size: 0.82em;
}

.btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ========================================
   Lobby
   ======================================== */
.lobby-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.nickname-section {
  text-align: center;
  margin-bottom: 8px;
}

.nickname-section input {
  max-width: 340px;
  display: inline-block;
  text-align: center;
  font-size: 1em;
  background: var(--surface);
  border-color: var(--surface3);
}

.room-code {
  font-family: var(--font-heading);
  font-size: 2.4em;
  font-weight: 800;
  letter-spacing: 8px;
  color: var(--accent);
  text-align: center;
  padding: 20px;
  background: var(--bg2);
  border-radius: var(--radius-sm);
  margin: 16px 0;
  text-shadow: var(--glow);
  border: 1px solid rgba(0, 229, 255, 0.15);
}

.copy-btn {
  background: none;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85em;
  transition: all var(--transition);
}

.copy-btn:hover { background: var(--accent); color: var(--bg); }

/* Offline modes (computer / pass-and-play) */
.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.mode-card {
  display: flex;
  flex-direction: column;
}

.mode-card .btn-block { margin-top: auto; }

.card-desc {
  color: var(--text-dim);
  margin-bottom: 16px;
}

.form-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.form-row label {
  flex: 0 0 84px;
  font-size: 0.85em;
  color: var(--text-mid);
  font-weight: 600;
}

.form-row select { padding-top: 9px; padding-bottom: 9px; }

.mode-card .form-row:last-of-type { margin-bottom: 20px; }

.btn-block { width: 100%; }

.section-title {
  font-family: var(--font-heading);
  color: var(--text);
  font-weight: 700;
  font-size: 1.2em;
  margin: 48px 0 16px;
  letter-spacing: 0.5px;
}

.code-input {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: var(--font-heading);
}

.online-status {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9em;
  margin-bottom: 16px;
}

.online-status.checking {
  color: var(--text-dim);
  background: var(--surface);
}

.online-status.offline {
  color: var(--warn);
  background: rgba(255, 171, 64, 0.08);
  border: 1px solid rgba(255, 171, 64, 0.25);
}

#online-section.is-offline .lobby-grid,
#online-section.is-offline .nickname-section {
  opacity: 0.45;
}

.flex-1 { flex: 1; }

.bet-agree-title {
  color: var(--accent);
  font-family: var(--font-heading);
  margin-bottom: 16px;
}

.notice-text {
  color: var(--text-mid);
  margin-top: 12px;
}

.waiting-box .copy-btn { margin: 4px; }

.waiting-box .modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.rematch-offer {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 250;
  text-align: center;
  border-color: var(--accent);
  box-shadow: var(--glow);
}

.rematch-offer p {
  margin-bottom: 12px;
  font-weight: 600;
}

.modal-taunts {
  border-top: none;
  padding-top: 12px;
}

.cell .stone.pending { opacity: 0.45; }

.local-controls {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.local-controls .btn { flex: 1; }

/* Join section layout fix */
.join-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.join-row input {
  flex: 1;
  min-width: 0;
}

.join-row .btn {
  flex-shrink: 0;
  min-width: 72px;
}

/* ========================================
   Room List
   ======================================== */
.room-list {
  margin-top: 32px;
}

.room-list h2 {
  font-family: var(--font-heading);
  color: var(--accent);
  font-weight: 700;
  font-size: 1.2em;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.room-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  border: 1px solid var(--surface2);
  transition: all var(--transition);
}

.room-item:hover {
  border-color: rgba(0, 229, 255, 0.2);
  background: rgba(21, 26, 46, 0.8);
}

.room-item .room-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.room-item .room-code-tag {
  font-family: var(--font-heading);
  background: var(--accent-dim);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.82em;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.room-item .room-rules-tag {
  font-size: 0.72em;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--win-dim);
  color: var(--win);
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  animation: status-pulse 2s infinite;
}

.status-dot.waiting { background: var(--win); box-shadow: 0 0 8px rgba(0, 230, 118, 0.4); }
.status-dot.playing { background: var(--warn); }

@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ========================================
   Room Creation Modal
   ======================================== */
.create-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 150;
}

.create-modal {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 36px;
  max-width: 420px;
  width: 90%;
  border: 1px solid var(--surface3);
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.6), 0 0 1px rgba(0, 229, 255, 0.1);
}

.create-modal h2 {
  font-family: var(--font-heading);
  color: var(--accent);
  margin-bottom: 24px;
  text-align: center;
  font-weight: 700;
  font-size: 1.3em;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85em;
  color: var(--text-mid);
  margin-bottom: 8px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Bet agreement modal */
.bet-agree-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 180;
}

.bet-agree-box {
  background: var(--surface);
  border: 2px solid var(--lose);
  border-radius: var(--radius);
  padding: 36px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 0 48px rgba(255, 82, 82, 0.15);
}

.bet-display {
  background: var(--bg2);
  border: 1px solid var(--surface2);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin: 14px 0;
  font-size: 0.95em;
  color: var(--accent);
  font-weight: 500;
}

/* ========================================
   Game Board
   ======================================== */
.game-container {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  padding: 20px;
  min-height: calc(100vh - 56px);
}

.board-wrapper {
  position: relative;
}

#board, .replay-board {
  display: grid;
  grid-template-columns: repeat(15, 1fr);
  gap: 0;
  background: var(--board-bg);
  border-radius: var(--radius-sm);
  padding: 16px;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.7),
    inset 0 0 80px rgba(0, 0, 0, 0.3),
    0 0 2px rgba(0, 229, 255, 0.08);
  width: min(85vw, 540px);
  height: min(85vw, 540px);
}

.replay-board {
  width: min(70vw, 400px);
  height: min(70vw, 400px);
}

.cell {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Board grid lines */
.cell::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  top: 50%;
  left: 0;
  background: var(--board-line);
}

.cell::after {
  content: '';
  position: absolute;
  width: 1px;
  height: 100%;
  left: 50%;
  top: 0;
  background: var(--board-line);
}

/* Edge cells - half lines */
.cell[data-x="0"]::before { width: 50%; left: 50%; }
.cell[data-x="14"]::before { width: 50%; left: 0; }
.cell[data-y="0"]::after { height: 50%; top: 50%; }
.cell[data-y="14"]::after { height: 50%; top: 0; }

/* Star points */
.cell.star-point .dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--board-line-bright);
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 0 6px rgba(0, 229, 255, 0.25);
}

/* Stones - 3D */
.cell .stone {
  width: 82%;
  height: 82%;
  border-radius: 50%;
  z-index: 2;
  position: relative;
  transition: box-shadow 0.2s;
}

.cell .stone.black {
  background: radial-gradient(circle at 32% 32%, #555, #333 35%, var(--black-stone) 65%);
  box-shadow:
    2px 3px 8px rgba(0, 0, 0, 0.8),
    inset 0 -2px 5px rgba(0, 0, 0, 0.5),
    inset 0 2px 5px rgba(255, 255, 255, 0.08);
}

.cell .stone.white {
  background: radial-gradient(circle at 32% 32%, #fff, #eee 35%, #c8c8c8 65%);
  box-shadow:
    2px 3px 8px rgba(0, 0, 0, 0.5),
    inset 0 -2px 5px rgba(0, 0, 0, 0.08),
    inset 0 2px 5px rgba(255, 255, 255, 0.9);
}

.cell .stone.last-move {
  box-shadow:
    0 0 0 2.5px var(--accent),
    0 0 16px rgba(0, 229, 255, 0.5),
    2px 3px 8px rgba(0, 0, 0, 0.5);
}

.cell .stone.winning-stone {
  animation: winning-glow 1s ease-in-out infinite alternate;
}

@keyframes winning-glow {
  from { box-shadow: 0 0 10px var(--accent), 0 0 0 2.5px var(--accent); }
  to { box-shadow: 0 0 24px var(--accent), 0 0 0 2.5px var(--accent), 0 0 40px rgba(0, 229, 255, 0.3); }
}

/* Stone drop animation - enhanced with Mizuguchi-style impact */
@keyframes stone-drop {
  0% { transform: scale(0) translateY(-10px); opacity: 0; }
  50% { transform: scale(1.2) translateY(0); opacity: 1; }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

/* Keyboard cursor, only while the board has keyboard focus */
#board:focus { outline: none; }
#board:focus-visible { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7), 0 0 0 2px var(--accent-mid); }
#board:focus-visible .cell.cursor {
  box-shadow: inset 0 0 0 2px var(--accent);
  border-radius: 50%;
}

/* Hover preview */
.cell:hover .hover-preview {
  width: 82%;
  height: 82%;
  border-radius: 50%;
  z-index: 2;
  opacity: 0.3;
}

.hover-preview.black { background: var(--black-stone); }
.hover-preview.white { background: var(--white-stone); }

/* Forbidden move marker (Renju) */
.forbidden-marker {
  position: absolute;
  width: 60%;
  height: 60%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lose);
  font-weight: bold;
  font-size: 0.9em;
  opacity: 0.55;
  z-index: 3;
  pointer-events: none;
}

/* ========================================
   Game Info Panel
   ======================================== */
.game-info {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  min-width: 260px;
  border: 1px solid var(--surface2);
}

.game-info h3 {
  font-family: var(--font-heading);
  margin-bottom: 16px;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1em;
  letter-spacing: 0.5px;
}

.player-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  background: var(--bg2);
  border: 2px solid transparent;
  transition: all 0.3s;
}

.player-info.active {
  border-color: var(--accent);
  background: var(--accent-dim);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.08);
}

.player-stone {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
}

.player-stone.black {
  background: radial-gradient(circle at 30% 30%, #555, var(--black-stone));
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.player-stone.white {
  background: radial-gradient(circle at 30% 30%, #fff, #c8c8c8);
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.25);
}

.turn-indicator {
  text-align: center;
  padding: 12px;
  margin: 16px 0;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95em;
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  transition: all 0.3s;
}

.turn-indicator.my-turn {
  background: var(--win-dim);
  color: var(--win);
  border: 1px solid rgba(0, 230, 118, 0.25);
}

.turn-indicator.opponent-turn {
  background: rgba(255, 171, 64, 0.1);
  color: var(--warn);
  border: 1px solid rgba(255, 171, 64, 0.2);
}

.turn-indicator.black-turn {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--surface2);
}

.turn-indicator.white-turn {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--surface2);
}

/* Bet display in game */
.game-bet-display {
  background: var(--lose-dim);
  border: 1px solid rgba(255, 82, 82, 0.2);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin: 12px 0;
  text-align: center;
  font-size: 0.88em;
}

.game-bet-display .bet-label {
  color: var(--lose);
  font-weight: 700;
  font-size: 0.75em;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-family: var(--font-heading);
}

.game-bet-display .bet-content {
  color: var(--text);
  margin-top: 4px;
}

/* Rules badge */
.rules-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.78em;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  margin: 8px 0;
}

.rules-badge.freestyle {
  background: var(--accent-dim);
  color: var(--accent);
}

.rules-badge.renju {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
}

/* ========================================
   Taunt Panel
   ======================================== */
.taunt-panel {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--surface2);
}

.taunt-panel h4 {
  font-family: var(--font-heading);
  color: var(--accent);
  font-size: 0.92em;
  margin-bottom: 8px;
  font-weight: 700;
}

.taunt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}

.taunt-btn {
  background: var(--bg2);
  border: 1px solid var(--surface2);
  color: var(--text-dim);
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 0.7em;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.taunt-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.taunt-custom {
  display: flex;
  gap: 6px;
}

.taunt-custom input {
  font-size: 0.85em;
  padding: 8px 10px;
}

.taunt-custom button {
  white-space: nowrap;
}

/* ========================================
   Waiting Overlay
   ======================================== */
.waiting-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.waiting-box {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  max-width: 400px;
  border: 1px solid var(--surface3);
}

.waiting-box h2 {
  font-family: var(--font-heading);
  font-weight: 700;
}

.waiting-box .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--surface3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 24px auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========================================
   Win/Lose Modal
   ======================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  animation: modal-fade-in 0.35s ease;
}

@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 44px 40px;
  text-align: center;
  max-width: 440px;
  width: 90%;
  max-height: 92vh;
  overflow-y: auto;
  border: 1px solid var(--surface3);
  animation: modal-scale-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modal-scale-in {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal h2 {
  font-family: var(--font-heading);
  font-size: 2em;
  margin-bottom: 12px;
  font-weight: 800;
}

.modal .result {
  font-size: 1.05em;
  color: var(--text-dim);
  margin-bottom: 28px;
}

.modal .modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.modal .btn { margin: 4px; }

/* Victory modal */
.victory-modal {
  border-color: var(--win) !important;
  box-shadow: 0 0 48px rgba(0, 230, 118, 0.15);
}

.victory-text {
  color: var(--win) !important;
  text-shadow: 0 0 24px rgba(0, 230, 118, 0.5);
}

/* Defeat modal */
.defeat-modal {
  border-color: var(--lose) !important;
  box-shadow: 0 0 48px rgba(255, 82, 82, 0.15);
  animation: modal-scale-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), defeat-shake 0.5s ease 0.4s;
}

@keyframes defeat-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.defeat-text {
  color: var(--lose) !important;
  text-shadow: 0 0 24px rgba(255, 82, 82, 0.5);
}

/* CSS Confetti for victory */
.confetti-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 199;
  overflow: hidden;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  top: -10px;
  animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
  to { top: 110vh; transform: rotate(720deg); }
}

/* Enshrine section */
.enshrine-section {
  margin: 16px 0 20px;
  padding-top: 16px;
  border-top: 1px solid var(--surface2);
}

.enshrine-section input {
  margin-bottom: 8px;
}

/* You owe display */
.you-owe-display {
  margin: 16px 0;
  padding: 16px;
  background: var(--lose-dim);
  border: 2px solid var(--lose);
  border-radius: var(--radius-sm);
  text-align: center;
}

.you-owe-display .owe-label {
  font-family: var(--font-heading);
  font-size: 0.85em;
  color: var(--lose);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.you-owe-display .owe-content {
  font-size: 1.3em;
  font-weight: 600;
  color: var(--text);
  margin-top: 6px;
}

/* ========================================
   Hall of Fame
   ======================================== */
.hall-entry {
  background: var(--surface);
  border: 1px solid var(--surface2);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 16px;
  transition: all var(--transition);
}

.hall-entry:hover {
  border-color: rgba(0, 229, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: var(--card-shadow);
}

.hall-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.hall-players {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hall-winner-name {
  color: var(--win);
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 1.2em;
}

.hall-vs {
  color: var(--text-dim);
  font-size: 0.82em;
}

.hall-loser-name {
  color: var(--lose);
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 1.05em;
}

.hall-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.hall-tag {
  font-size: 0.72em;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 600;
  font-family: var(--font-heading);
}

.hall-date {
  font-size: 0.72em;
  color: var(--text-dim);
}

.hall-bet {
  padding: 8px 12px;
  background: var(--lose-dim);
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 0.88em;
}

.hall-bet .label {
  color: var(--lose);
  font-weight: 600;
}

.hall-message {
  color: var(--text-mid);
  font-style: italic;
  font-size: 0.92em;
  padding: 4px 0;
}

.hall-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.empty-msg {
  text-align: center;
  color: var(--text-dim);
  padding: 48px 20px;
  font-size: 0.95em;
}

/* Replay modal */
.replay-modal {
  max-width: 500px;
}

.replay-board-wrapper {
  display: flex;
  justify-content: center;
  margin: 16px 0;
}

.replay-controls {
  text-align: center;
  color: var(--text-dim);
  font-family: var(--font-heading);
  margin-bottom: 12px;
}

/* ========================================
   Content Pages
   ======================================== */
.content-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px;
}

.content-page h1 {
  font-family: var(--font-heading);
  font-size: 2em;
  margin-bottom: 28px;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.5px;
}

.content-page h2 {
  font-family: var(--font-heading);
  font-size: 1.3em;
  margin: 32px 0 14px;
  color: var(--text);
  font-weight: 700;
}

.content-page h3 {
  font-size: 1.05em;
  margin: 24px 0 10px;
  color: var(--text);
  font-weight: 600;
}

.content-page p {
  color: var(--text-mid);
  margin-bottom: 16px;
  line-height: 1.75;
}

.content-page ul, .content-page ol {
  color: var(--text-mid);
  margin: 12px 0 20px 24px;
  line-height: 1.75;
}

.content-page li {
  margin-bottom: 8px;
}

.content-page strong {
  color: var(--text);
  font-weight: 600;
}

/* CSS Mini-board for rules page */
.mini-board {
  display: inline-grid;
  grid-template-columns: repeat(7, 22px);
  gap: 0;
  background: var(--board-bg);
  padding: 12px;
  border-radius: var(--radius-sm);
  margin: 12px 0;
}

.mini-board .mini-cell {
  width: 22px;
  height: 22px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-board .mini-cell::before,
.mini-board .mini-cell::after {
  content: '';
  position: absolute;
  background: var(--board-line);
}

.mini-board .mini-cell::before {
  width: 100%;
  height: 1px;
  top: 50%;
}

.mini-board .mini-cell::after {
  width: 1px;
  height: 100%;
  left: 50%;
}

.mini-board .mini-stone {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  z-index: 1;
  position: relative;
}

.mini-board .mini-stone.black {
  background: radial-gradient(circle at 30% 30%, #555, #1a1a1a);
}

.mini-board .mini-stone.white {
  background: radial-gradient(circle at 30% 30%, #fff, #ccc);
}

.mini-board .mini-mark {
  color: var(--lose);
  font-weight: 700;
  font-size: 0.85em;
  z-index: 1;
}

.diagrams {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin: 16px 0 24px;
}

.diagrams figure {
  margin: 0;
  width: 178px;
}

.diagrams .mini-board { margin: 0 0 8px; }

.diagrams figcaption {
  color: var(--text-dim);
  font-size: 0.85em;
  line-height: 1.5;
}

.content-page code {
  font-family: 'Courier New', monospace;
  background: var(--bg2);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--text);
  white-space: nowrap;
}

.content-page .note {
  margin-top: 28px;
  padding: 14px 16px;
  border-left: 3px solid var(--surface3);
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.92em;
}

/* ========================================
   Footer
   ======================================== */
footer {
  background: var(--surface);
  border-top: 1px solid var(--surface2);
  padding: 28px 24px;
  margin-top: 64px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.82em;
}

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

footer .footer-links a {
  color: var(--text-dim);
  transition: color var(--transition);
}

footer .footer-links a:hover {
  color: var(--accent);
}

/* ========================================
   Toast Messages
   ======================================== */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  color: var(--text);
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.9em;
  z-index: 300;
  border: 1px solid var(--accent2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 16px rgba(0, 229, 255, 0.15);
  animation: toast-in 0.35s ease;
  font-weight: 500;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ========================================
   Taunt Effects
   ======================================== */
.taunt-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 500;
}

@keyframes taunt-flash {
  0% { opacity: 0.8; }
  100% { opacity: 0; }
}

.taunt-flicker {
  animation: taunt-flicker-anim 0.15s steps(2) infinite;
}

@keyframes taunt-flicker-anim {
  0% { opacity: 1; }
  50% { opacity: 0.3; }
  100% { opacity: 1; }
}

.taunt-shockwave {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  animation: shockwave-expand 1s ease-out infinite;
}

@keyframes shockwave-expand {
  0% { width: 10px; height: 10px; opacity: 1; }
  100% { width: 600px; height: 600px; opacity: 0; margin: -300px 0 0 -300px; }
}

@keyframes taunt-float {
  0% { transform: translateY(0); }
  100% { transform: translateY(-15px); }
}

@keyframes taunt-ghost {
  0% { opacity: 0.3; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0.3; transform: scale(0.95); }
}

@keyframes taunt-pulse {
  0%, 100% { text-shadow: 0 0 40px rgba(0, 229, 255, 0.8); }
  50% { text-shadow: 0 0 80px rgba(0, 229, 255, 1), 0 0 120px rgba(0, 229, 255, 0.5); }
}

@keyframes taunt-shatter {
  0% { transform: scale(3); opacity: 0; }
  60% { transform: scale(0.9); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes taunt-chronos {
  0% { transform: scale(1); filter: blur(0); }
  50% { transform: scale(1.1); filter: blur(1px); }
  100% { transform: scale(1); filter: blur(0); }
}

@keyframes taunt-static {
  0% { background-position: 0 0; }
  100% { background-position: 100px 100px; }
}

.matrix-char {
  position: absolute;
  color: var(--accent);
  font-family: monospace;
  font-size: 14px;
  animation: matrix-fall linear infinite;
  opacity: 0.7;
}

@keyframes matrix-fall {
  0% { top: -20px; opacity: 1; }
  100% { top: 100vh; opacity: 0; }
}

/* ========================================
   Stone Impact Effects (Tetsuya Mizuguchi style)
   ======================================== */

/* Level 1: Subtle ripple on placed stone */
.stone.impact-ripple {
  animation: stone-drop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), impact-ripple 0.6s ease-out !important;
}

@keyframes impact-ripple {
  0% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.4); }
  100% { box-shadow: 0 0 0 12px rgba(0, 229, 255, 0); }
}

/* Chain glow - stones in a consecutive chain */
.stone.chain-glow {
  animation: chain-glow-pulse 0.8s ease-in-out 2 !important;
}

@keyframes chain-glow-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(0, 229, 255, 0.3), 0 0 0 2px rgba(0, 229, 255, 0.2); }
  50% { box-shadow: 0 0 20px rgba(0, 229, 255, 0.7), 0 0 0 4px rgba(0, 229, 255, 0.4); }
}

/* Board impact level 2: 3 in a row - glow pulse */
#board.impact-2 {
  animation: board-glow-2 0.5s ease-out;
}

@keyframes board-glow-2 {
  0% { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7), inset 0 0 80px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 229, 255, 0.3); }
  100% { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7), inset 0 0 80px rgba(0, 0, 0, 0.3), 0 0 2px rgba(0, 229, 255, 0.08); }
}

/* Board impact level 3: 4 in a row - pulse wave + shake */
#board.impact-3 {
  animation: board-shake-3 0.4s ease-out;
}

@keyframes board-shake-3 {
  0% { transform: translate(0, 0); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 229, 255, 0.5); }
  15% { transform: translate(-3px, 1px); }
  30% { transform: translate(3px, -1px); }
  45% { transform: translate(-2px, 0); }
  60% { transform: translate(2px, 1px); }
  75% { transform: translate(-1px, 0); }
  100% { transform: translate(0, 0); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7), 0 0 2px rgba(0, 229, 255, 0.08); }
}

/* Board impact level 4: WIN - massive shockwave + vibrate + screen flash */
#board.impact-4 {
  animation: board-vibrate-4 0.6s ease-out;
}

@keyframes board-vibrate-4 {
  0% { transform: translate(0, 0) scale(1.02); box-shadow: 0 0 80px rgba(0, 229, 255, 0.8), 0 0 160px rgba(0, 229, 255, 0.3); }
  10% { transform: translate(-4px, 2px) scale(1.01); }
  20% { transform: translate(4px, -2px) scale(1.01); }
  30% { transform: translate(-3px, -1px) scale(1.005); }
  40% { transform: translate(3px, 1px) scale(1.005); }
  50% { transform: translate(-2px, 1px); }
  60% { transform: translate(2px, -1px); }
  70% { transform: translate(-1px, 0); }
  80% { transform: translate(1px, 0); }
  100% { transform: translate(0, 0) scale(1); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7), 0 0 2px rgba(0, 229, 255, 0.08); }
}

/* Winning stone special neon pulse */
.stone.winning-impact-stone {
  animation: winning-neon-pulse 0.5s ease-in-out 4 !important;
  z-index: 5;
}

@keyframes winning-neon-pulse {
  0%, 100% {
    box-shadow: 0 0 10px var(--accent), 0 0 0 3px var(--accent);
    filter: brightness(1);
  }
  50% {
    box-shadow: 0 0 30px var(--accent), 0 0 60px rgba(0, 229, 255, 0.5), 0 0 0 5px var(--accent);
    filter: brightness(1.3);
  }
}

/* Screen flash overlay for winning impact */
.screen-flash {
  position: fixed;
  inset: 0;
  background: rgba(0, 229, 255, 0.15);
  z-index: 90;
  pointer-events: none;
  animation: screen-flash-anim 0.4s ease-out forwards;
}

@keyframes screen-flash-anim {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

/* Shockwave ring from winning stone */
.shockwave-ring {
  position: absolute;
  border: 2px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 8;
  animation: shockwave-ring-expand 0.8s ease-out forwards;
}

@keyframes shockwave-ring-expand {
  0% { width: 10px; height: 10px; opacity: 1; transform: translate(-50%, -50%); }
  100% { width: 300px; height: 300px; opacity: 0; transform: translate(-50%, -50%); }
}

/* Defeat modal countdown timer */
.defeat-countdown {
  display: block;
  color: var(--lose);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1em;
  margin-top: 8px;
  letter-spacing: 1px;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
  .lobby-grid, .mode-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 { font-size: clamp(2em, 8vw, 2.8em); }
  .hero { padding: 56px 20px 36px; }

  .game-container {
    flex-direction: column;
    align-items: center;
  }

  .game-info {
    width: 100%;
    min-width: unset;
  }

  nav { padding: 0 16px; height: auto; min-height: 56px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  nav .nav-links { gap: 2px; }
  nav .nav-links a { padding: 6px 10px; font-size: 0.78em; }

  .taunt-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 400px) {
  #board, .replay-board { padding: 8px; }
  .room-code { font-size: 1.6em; letter-spacing: 4px; }
  .hero h1 { font-size: 1.8em; }
}

/* ========================================
   Utility
   ======================================== */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.gap-8 { gap: 8px; }
.gap-6 { gap: 6px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* ========================================
   Stone Impact Animations
   Inspired by Tetsuya Mizuguchi's synesthesia
   design philosophy (Rez, Lumines)
   ======================================== */

/* --- 1. Board impact shake levels --- */
#board.impact-3 { animation: board-shake 0.3s ease-out; }
#board.impact-4 { animation: board-heavy-shake 0.5s ease-out; }

@keyframes board-shake {
  0%, 100% { transform: translate(0); }
  25% { transform: translate(-2px, 1px); }
  50% { transform: translate(2px, -1px); }
  75% { transform: translate(-1px, 2px); }
}

@keyframes board-heavy-shake {
  0%, 100% { transform: translate(0); }
  10% { transform: translate(-4px, 2px); }
  20% { transform: translate(4px, -3px); }
  30% { transform: translate(-3px, 4px); }
  40% { transform: translate(3px, -2px); }
  50% { transform: translate(-2px, 3px); }
  60% { transform: translate(2px, -1px); }
  80% { transform: translate(-1px, 1px); }
}

/* --- 2. Chain glow on consecutive stones --- */
.stone.chain-glow.black {
  box-shadow: 0 0 12px 4px rgba(34, 211, 238, 0.6), inset 0 0 8px rgba(34, 211, 238, 0.3);
  animation: chain-pulse 0.8s ease-in-out;
}
.stone.chain-glow.white {
  box-shadow: 0 0 12px 4px rgba(16, 185, 129, 0.6), inset 0 0 8px rgba(16, 185, 129, 0.3);
  animation: chain-pulse 0.8s ease-in-out;
}

@keyframes chain-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* --- 3. Defeat modal buttons disabled state & countdown --- */
.modal-actions .btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.defeat-countdown {
  color: #EF4444;
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 1.2em;
  font-weight: 700;
  margin-top: 8px;
  animation: countdown-pulse 1s ease-in-out infinite;
}

@keyframes countdown-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
