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

html, body {
  width: 100%;
  min-height: 100vh;
  background: #0d0d0d;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  user-select: none;
  -webkit-user-select: none;
  overflow-x: hidden;
}

#app {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 88px 24px 24px;
}

.ee-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 40%, transparent 100%);
  pointer-events: none;
  z-index: 10;
}

.ee-header a {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  transition: opacity 0.15s;
}

.ee-header a:hover {
  opacity: 1;
}

.ee-header img {
  height: 44px;
  width: auto;
  display: block;
}

.screen {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  text-align: center;
}

.screen.hidden { display: none; }

h1 {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 3px;
  margin-bottom: 4px;
}

h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

.subtitle {
  color: #aaa;
  font-size: 16px;
  margin-bottom: 12px;
}

input {
  font-family: inherit;
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  padding: 14px 16px;
  background: #1a1a1a;
  color: #fff;
  border: 2px solid #333;
  border-radius: 10px;
  outline: none;
  width: 100%;
  letter-spacing: 4px;
}

input:focus { border-color: #00bcd4; }

button {
  font-family: inherit;
  cursor: pointer;
}

.btn-primary {
  font-size: 22px;
  font-weight: 800;
  padding: 18px;
  background: linear-gradient(180deg, #00e676, #00b248);
  color: #062a12;
  border: 2px solid #00e676;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 3px;
  box-shadow: 0 0 18px rgba(0, 230, 118, 0.4);
}

.btn-primary:disabled {
  background: #333;
  color: #777;
  border-color: #444;
  box-shadow: none;
}

.btn-primary:active:not(:disabled) { transform: translateY(2px); }

.btn-secondary {
  font-size: 18px;
  font-weight: 700;
  padding: 14px;
  background: #1a1a1a;
  color: #fff;
  border: 2px solid #444;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.error {
  color: #ff5252;
  font-size: 14px;
  min-height: 20px;
}

/* ---- Team picker ---- */
.teams {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 8px;
}

.team-btn {
  font-size: 18px;
  font-weight: 800;
  padding: 16px 8px;
  border-radius: 10px;
  border: 3px solid transparent;
  background: var(--team-color, #333);
  color: #fff;
  text-shadow: -1px -1px 0 rgba(0,0,0,0.5), 1px 1px 0 rgba(0,0,0,0.5), 0 2px 4px rgba(0,0,0,0.6);
  letter-spacing: 1px;
  min-height: 64px;
}

.team-btn.selected {
  border-color: #fff;
  box-shadow: 0 0 16px rgba(255,255,255,0.5);
  transform: scale(1.04);
}

/* ---- Buzz screen ---- */
.player-id {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: #ddd;
}

.player-id .dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--team-color, #888);
  box-shadow: 0 0 8px var(--team-color, #888);
}

.buzz-button {
  width: min(80vw, 360px);
  height: min(80vw, 360px);
  margin: 24px auto;
  border-radius: 50%;
  border: 8px solid #fff;
  background: radial-gradient(circle at 30% 28%, #ff6b6b, #c10000 60%, #6a0000 100%);
  color: #fff;
  font-size: 56px;
  font-weight: 900;
  letter-spacing: 4px;
  font-family: 'Arial Black', Arial, sans-serif;
  text-shadow: 0 4px 8px rgba(0,0,0,0.6);
  box-shadow: 0 12px 32px rgba(0,0,0,0.6);
  transition: transform 0.06s ease, box-shadow 0.15s, border-color 0.15s;
}

.buzz-button.ready {
  border-color: #00ff5e;
  box-shadow: 0 0 36px rgba(0, 255, 94, 0.7), 0 12px 32px rgba(0,0,0,0.6);
}

.buzz-button:active {
  transform: scale(0.96);
  box-shadow: 0 0 24px rgba(255,50,50,0.4), 0 6px 16px rgba(0,0,0,0.6);
}

.buzz-button.flash {
  animation: buzzFlash 0.5s ease-out;
}

@keyframes buzzFlash {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.8); }
  100% { box-shadow: 0 0 0 60px rgba(255,255,255,0); }
}

.status {
  color: #ddd;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.2;
  min-height: 32px;
  margin-top: 12px;
  padding: 0 8px;
}

.status.go {
  color: #00ff5e;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 4px;
  text-shadow: 0 0 16px rgba(0, 255, 94, 0.7);
}
