


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

:root {
  --bg-deep:        #0a0a0f;
  --bg-surface:     #1a1a2e;
  --bg-lighter:     #16213e;
  --bg-panel:       #12121f;
  --accent-primary: #22c55e;
  --accent-primary-soft: rgba(34, 197, 94, 0.32);
  --accent-primary-glow: rgba(46, 220, 120, 0.55);
  --accent-gold:    #ffd700;
  --text-primary:   #e8e8e8;
  --text-secondary: #a0a0b0;
  --text-dim:       #606075;
  --hp-red:         #e74c3c;
  --mana-blue:      #3498db;
  --success:        #2ecc71;
  --danger:         #e74c3c;

  --rarity-common:    #808080;
  --rarity-uncommon:  #2ecc71;
  --rarity-rare:      #3498db;
  --rarity-epic:      #9b59b6;
  --rarity-legendary: #ffd700;

  --card-w:    140px;
  --card-h:    200px;
  --card-hand-w: 150px;
  --card-hand-h: 218px;
  --card-radius: 10px;
  --hand-card-offset: 0px;

  --transition-fast: 0.15s ease;
  --transition-med:  0.25s ease;
  --transition-slow: 0.4s ease;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button {
  font-family: 'Rajdhani', sans-serif;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

input {
  font-family: 'Rajdhani', sans-serif;
  outline: none;
}

.hidden {
  display: none !important;
}


::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-panel);
}
::-webkit-scrollbar-thumb {
  background: #333350;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}


.screen {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.screen.active {
  display: flex;
  flex-direction: column;
}



.connection-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px rgba(46, 204, 113, 0.6);
  display: inline-block;
}

.connection-dot.offline {
  background: var(--danger);
  box-shadow: 0 0 6px rgba(231, 76, 60, 0.6);
}


