/* === BASE STYLES === */
:root {
  --bg-primary: #0a0a1a;
  --bg-secondary: #1a1a2e;
  --bg-tertiary: #16213e;
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0a0;
  --text-accent: #ffd700;
  --health-red: #e74c3c;
  --btn-primary: #4a90d9;
  --btn-primary-hover: #357abd;
  --btn-secondary: #555;
  --btn-secondary-hover: #666;
  --font-main: 'Press Start 2P', monospace;
  --border-color: #333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-main);
  font-size: 10px;
  background: var(--bg-primary);
  color: var(--text-primary);
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* === TYPOGRAPHY === */
h1 {
  font-size: 2.4rem;
  color: var(--text-accent);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

h2 {
  font-size: 1.6rem;
  color: var(--text-accent);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

p {
  font-size: 0.7rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* === BUTTONS === */
.btn {
  font-family: var(--font-main);
  font-size: 0.9rem;
  padding: 0.8rem 1.5rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  min-width: 160px;
  text-align: center;
}

.btn:active {
  transform: scale(0.95);
}

.btn-primary {
  background: var(--btn-primary);
  color: white;
  border-color: var(--btn-primary);
}

.btn-primary:hover,
.btn-primary:active {
  background: var(--btn-primary-hover);
}

.btn-secondary {
  background: var(--btn-secondary);
  color: var(--text-primary);
  border-color: var(--btn-secondary);
}

.btn-secondary:hover,
.btn-secondary:active {
  background: var(--btn-secondary-hover);
}

.btn-icon {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.3rem;
  opacity: 0.8;
  transition: opacity 0.15s;
}

.btn-icon:hover {
  opacity: 1;
}

/* === UTILITY === */
.hidden {
  display: none !important;
}

.scrollable {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

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

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

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}
