:root {
  --gold: #ffd700;
  --neon-green: #00ff88;
  --neon-red: #ff3366;
  --glass: rgba(0, 0, 0, 0.8);
}

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

body {
  font-family: 'Outfit', sans-serif;
  background-color: #121212; color: #fff;
  overflow: hidden; height: 100vh;
}

#app {
  width: 100vw; height: 100vh;
  background: url('bg.png') center/cover no-repeat;
  display: flex; flex-direction: column; position: relative;
}

#app::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.8) 100%);
  z-index: 1;
}

.back-link {
  position: absolute; top: 20px; left: 20px; z-index: 100;
  background: var(--gold); color: #000; padding: 5px 15px;
  border-radius: 20px; font-weight: 800; text-decoration: none;
}

.casino-table {
  position: relative; z-index: 2;
  flex: 1; display: flex; flex-direction: column;
  justify-content: space-around; align-items: center;
  padding: 40px 20px;
}

.card-row {
  display: flex; gap: 10px; min-height: 120px;
  justify-content: center; align-items: center;
}

.card {
  width: 80px; height: 120px; background: #fff;
  border-radius: 8px; color: #000; font-weight: 900;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 8px; font-size: 1.2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
  animation: deal-anim 0.3s ease-out;
}

.card.red { color: var(--neon-red); }
.card.back { background: var(--neon-red); color: transparent; border: 4px solid #fff; }

@keyframes deal-anim {
  from { transform: translateY(-100px) rotate(20deg); opacity: 0; }
  to { transform: translateY(0) rotate(0); opacity: 1; }
}

.score-badge {
  background: var(--glass); border: 2px solid var(--gold);
  padding: 5px 20px; border-radius: 15px; font-weight: 900;
  margin-top: 10px; box-shadow: 0 0 15px var(--gold);
}

.center-info { text-align: center; }
#status-msg { font-size: 1.5rem; font-weight: 900; color: var(--gold); text-shadow: 0 0 10px var(--gold); }
#pot-display {
  margin-top: 8px;
  color: rgba(255,255,255,0.82);
  font-weight: 900;
}

.session-stats {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 10px;
  color: rgba(255,255,255,0.72);
  font-size: 0.78rem;
  font-weight: 900;
}
.session-stats b { color: var(--gold); }

.hand-history {
  display: grid;
  gap: 4px;
  width: min(520px, 92vw);
  margin: 12px auto 0;
}

.history-row {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(0,0,0,0.45);
  color: rgba(255,255,255,0.76);
  font-size: 0.76rem;
  font-weight: 800;
}

.history-row.win { color: var(--gold); }
.empty-history {
  color: rgba(255,255,255,0.45);
  font-size: 0.78rem;
  font-weight: 800;
}

.controls {
  position: relative; z-index: 10;
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
  padding: 30px; background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
}

.btn {
  border: none; padding: 15px 30px; border-radius: 12px;
  font-weight: 900; cursor: pointer; transition: 0.2s;
  min-width: 100px; font-size: 1rem;
}

.hit { background: var(--neon-green); color: #000; }
.stand { background: var(--neon-red); color: #fff; }
.deal { background: var(--gold); color: #000; }
.double { background: #7c3cff; color: #fff; }
.utility {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
}
.utility.daily {
  background: var(--gold);
  color: #111;
  border-color: rgba(255,215,0,0.5);
}

.btn:disabled { opacity: 0.3; cursor: not-allowed; }
.hidden { display: none; }

/* Mobile */
@media (max-width: 600px) {
  .card { width: 60px; height: 90px; font-size: 1rem; }
  .casino-table { padding: 52px 12px 20px; }
  .card-row { min-height: 94px; }
  #status-msg { font-size: 1.08rem; }
  .session-stats { flex-wrap: wrap; gap: 8px; }
  .controls { gap: 8px; padding: 12px; }
  .btn { padding: 10px 12px; min-width: 74px; font-size: 0.86rem; }
}


/* --- GLOBAL NYANTREPRENEUR OVERRIDES --- */
.back-link, .hub-btn {
  position: absolute !important; top: 15px !important; left: 15px !important; z-index: 9999 !important;
  background: rgba(18, 18, 18, 0.8) !important; color: #ffd700 !important;
  padding: 8px 16px !important; border-radius: 20px !important; font-weight: 800 !important;
  text-decoration: none !important; font-size: 0.8rem !important;
  border: 1px solid rgba(255, 215, 0, 0.3) !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3) !important;
  transition: all 0.2s ease !important;
}
