/* ============================================
   POK3R — Landing Page
   Premium dark casino design
   ============================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0b0f19;
  --surface: rgba(18,24,40,0.85);
  --surface-solid: #121828;
  --surface-2: #182036;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --text: #e2e8f0;
  --text-secondary: #8b95a8;
  --text-muted: #5a647a;
  --gold: #c9a84c;
  --gold-light: #e0c36a;
  --gold-glow: rgba(201,168,76,0.25);
  --gold-dim: rgba(201,168,76,0.1);
  --green: #4ade80;
  --green-glow: rgba(74,222,128,0.3);
  --red: #f87171;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,0.25);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.35);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background canvas */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Online count pill */
#online-count {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

#online-count .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green-glow);
  animation: pulse-dot 2.5s ease-in-out infinite;
}

/* Main container */
#main-container {
  position: relative;
  z-index: 10;
  max-width: 420px;
  margin: 0 auto;
  padding: 80px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  min-height: 100dvh;
}

/* Logo */
#logo {
  text-align: center;
  animation: fadeInUp 0.5s ease-out;
}

#logo h1 {
  font-size: 72px;
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 1;
  background: linear-gradient(180deg, #fff 20%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px var(--gold-glow));
}

#logo .accent {
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Card */
.card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  animation: fadeInUp 0.5s ease-out 0.08s both;
}

/* Inputs */
input[type="text"] {
  width: 100%;
  padding: 13px 16px;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

input[type="text"]::placeholder {
  color: var(--text-muted);
}

/* Toggle */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.toggle-row input[type="checkbox"] { display: none; }

.toggle-slider {
  width: 40px;
  height: 22px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 11px;
  position: relative;
  transition: background 0.25s, border-color 0.25s;
}

.toggle-slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), background 0.25s;
}

.toggle-row input:checked + .toggle-slider {
  background: var(--gold);
  border-color: var(--gold);
}

.toggle-row input:checked + .toggle-slider::after {
  transform: translateX(18px);
  background: #fff;
}

/* Buttons */
button {
  padding: 13px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
  color: var(--text);
  background: var(--surface-2);
}

button:active { transform: scale(0.97); }

#create-btn {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #0b0f19;
  box-shadow: 0 4px 20px var(--gold-glow);
  font-size: 15px;
  letter-spacing: 0.3px;
}

#create-btn:hover {
  box-shadow: 0 6px 28px rgba(201,168,76,0.35);
  filter: brightness(1.05);
}

/* Casino list */
#casino-list {
  width: 100%;
  animation: fadeInUp 0.5s ease-out 0.16s both;
}

#casino-list h3 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  color: var(--text-muted);
}

#casinos-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.empty-msg {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  padding: 28px;
}

.casino-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.casino-item:hover {
  border-color: var(--border-hover);
  background: rgba(24,32,54,0.9);
  transform: translateY(-1px);
}

.casino-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.casino-name { font-weight: 600; font-size: 14px; }
.casino-host { font-size: 12px; color: var(--text-muted); }

.casino-players {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}

/* Join modal */
.join-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s;
}

.join-modal {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.25s ease-out;
}

.join-modal h3 { font-size: 17px; font-weight: 700; }
.join-modal-info { font-size: 13px; color: var(--text-secondary); }

.join-btn {
  background: linear-gradient(135deg, #3ecf8e, #2ba866);
  color: #fff;
  font-weight: 700;
}

/* Option row (dropdown selects) */
.option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.option-row select {
  padding: 6px 10px;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  cursor: pointer;
}

.option-row select:focus {
  border-color: var(--gold);
}

/* Alpha banner */
.alpha-banner {
  width: 100%;
  text-align: center;
  padding: 14px 18px;
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: var(--radius);
  animation: fadeInUp 0.5s ease-out 0.24s both;
}

.alpha-badge {
  display: inline-block;
  background: var(--gold);
  color: #0b0f19;
  font-size: 9px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

.alpha-banner p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.alpha-banner a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 700;
}

.alpha-banner a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  margin-top: 12px;
  text-align: center;
  animation: fadeInUp 0.5s ease-out 0.3s both;
}

.site-footer a {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover {
  color: var(--text-secondary);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--green-glow); }
  50% { opacity: 0.6; box-shadow: 0 0 12px var(--green-glow); }
}

/* Mobile */
@media (max-width: 480px) {
  #logo h1 { font-size: 56px; letter-spacing: -2px; }
  #main-container { padding: 50px 16px 32px; gap: 24px; }
  .card { padding: 20px; }
}
