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

:root {
  --wwm-bg: #0a0a2e;
  --wwm-bg-light: #12124a;
  --wwm-bg-card: rgba(255, 255, 255, 0.06);
  --wwm-border: rgba(255, 255, 255, 0.1);
  --wwm-gold: #ffd700;
  --wwm-gold-dark: #c7a600;
  --wwm-blue: #1a237e;
  --wwm-blue-light: #283593;

  --success: #4caf50;
  --success-dark: #388e3c;
  --danger: #ef5350;
  --danger-dark: #c62828;

  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.6);
  --text-muted: rgba(255, 255, 255, 0.35);

  --radius: 16px;
  --radius-sm: 10px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html, body {
  font-family: var(--font);
  background: var(--wwm-bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

.hidden {
  display: none !important;
}

.screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(180deg, #0a0a2e 0%, #141450 50%, #0d0d3a 100%);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--wwm-gold) 0%, #ffab00 100%);
  color: #1a1a2e;
  box-shadow: 0 4px 0 var(--wwm-gold-dark), 0 6px 20px rgba(255, 215, 0, 0.25);
  font-weight: 900;
}

.btn-primary:active {
  box-shadow: 0 2px 0 var(--wwm-gold-dark), 0 3px 10px rgba(255, 215, 0, 0.2);
  transform: translateY(2px);
}

.btn-large {
  font-size: 1.3rem;
  padding: 20px 48px;
  border-radius: var(--radius);
}

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

/* ===== Cards ===== */
.card {
  background: var(--wwm-bg-card);
  border: 1px solid var(--wwm-border);
  border-radius: var(--radius);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  padding: 24px;
  backdrop-filter: blur(10px);
}

.title {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--wwm-gold);
  text-align: center;
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text-dim);
  text-align: center;
}

/* ===== Inputs ===== */
input[type="text"] {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--wwm-border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 1.1rem;
  color: white;
  background: rgba(255, 255, 255, 0.06);
  outline: none;
  transition: border-color 0.2s;
}

input[type="text"]:focus {
  border-color: var(--wwm-gold);
}

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

/* ===== Fullscreen Button ===== */
.fullscreen-btn {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 9999;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.fullscreen-btn:hover {
  background: rgba(255, 215, 0, 0.15);
  color: var(--wwm-gold);
}

/* ===== Animations ===== */
.fade-in {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

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

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

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

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.2); }
  50% { box-shadow: 0 0 40px rgba(255, 215, 0, 0.4); }
}
