@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;700&family=Special+Elite&display=swap');

:root {
  --bg: #14100d;
  --bg-alt: #1f1a15;
  --gold: #c9a227;
  --gold-bright: #e6c65c;
  --blood: #8b1e1e;
  --paper: #e8dfc8;
  --line: #3a3128;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: radial-gradient(ellipse at center, var(--bg-alt) 0%, var(--bg) 70%);
  color: var(--paper);
  font-family: 'Special Elite', 'Oswald', monospace;
  overflow-x: hidden;
}

h1, h2, h3, .display-font {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.center-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.gold { color: var(--gold-bright); }
.blood { color: var(--blood); }

.card {
  background: rgba(0,0,0,0.35);
  border: 2px solid var(--gold);
  border-radius: 10px;
  padding: 28px 32px;
  box-shadow: 0 0 40px rgba(201,162,39,0.15);
}

button {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--gold);
  color: #14100d;
  border: none;
  border-radius: 6px;
  padding: 14px 20px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

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

button.secondary {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}

button.danger {
  background: var(--blood);
  color: var(--paper);
}

input, select, textarea {
  font-family: 'Special Elite', monospace;
  background: #0e0b09;
  color: var(--paper);
  border: 2px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 16px;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.title-xl {
  font-size: clamp(40px, 8vw, 90px);
  color: var(--gold-bright);
  margin: 0 0 8px 0;
  text-shadow: 0 0 24px rgba(201,162,39,0.4);
}

.subtitle {
  font-size: clamp(16px, 2.5vw, 24px);
  color: var(--paper);
  opacity: 0.85;
}

@keyframes scorePulse {
  0% { transform: scale(1); }
  30% { transform: scale(1.2); text-shadow: 0 0 24px var(--gold-bright); }
  100% { transform: scale(1); }
}
.score-pulse { animation: scorePulse 0.7s ease; display: inline-block; }

@keyframes floatUp {
  0% { opacity: 0; transform: translate(-50%, 0); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -40px); }
}
.score-float {
  position: absolute;
  left: 50%;
  top: -10px;
  animation: floatUp 1.2s ease-out forwards;
  font-weight: bold;
  pointer-events: none;
  white-space: nowrap;
}

@keyframes flashAlert {
  0%, 100% { background-color: transparent; }
  50% { background-color: rgba(139,30,30,0.55); }
}
.flash-alert { animation: flashAlert 0.5s ease 3; }
.flash-alert-long { animation: flashAlert 1s ease infinite; }

@keyframes flashSuccess {
  0%, 100% { background-color: transparent; }
  50% { background-color: rgba(31,122,61,0.55); }
}
.flash-success { animation: flashSuccess 0.5s ease 3; }

.flag-icon {
  vertical-align: middle;
  border-radius: 2px;
  margin-right: 8px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.3);
}
