/* ===== JCB TREASURE HUNT — STYLES ===== */

:root {
  --yellow: #FFC200;
  --yellow-dark: #E5AE00;
  --yellow-light: #FFD84D;
  --black: #0A0A0A;
  --card-dark: #161616;
  --steel: #242424;
  --steel2: #2E2E2E;
  --white: #FFFFFF;
  --text-mid: #A0A0A0;
  --text-dim: #606060;
  --green: #00D97E;
  --alert: #FF6B35;
  --rare: #A855F7;
  --epic: #3B82F6;
  --legendary: #F59E0B;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

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

html, body {
  font-family: 'Inter', sans-serif;
  background: var(--black);
  color: var(--white);
  height: 100%;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== SCREEN SYSTEM ===== */
.screen {
  position: fixed;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1;
}
.screen.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
  z-index: 10;
}
.hidden { display: none !important; }

/* ===== TYPOGRAPHY ===== */
.label-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--yellow);
  text-transform: uppercase;
}
.screen-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-top: 8px;
}
.screen-sub {
  color: var(--text-dim);
  font-size: 14px;
  margin-top: 8px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-10px); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,194,0,0.5); }
  50%       { box-shadow: 0 0 0 14px rgba(255,194,0,0); }
}
@keyframes pingRing {
  0%   { transform: translate(-50%,-50%) scale(1); opacity: 0.8; }
  100% { transform: translate(-50%,-50%) scale(3); opacity: 0; }
}
@keyframes scanLine {
  0%   { top: 0%; }
  100% { top: 100%; }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}
@keyframes boxReveal {
  0%   { transform: scale(0) rotate(-15deg); opacity: 0; }
  60%  { transform: scale(1.15) rotate(5deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
@keyframes confettiFall {
  0%   { transform: translateY(-30px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}
@keyframes radarSweep {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes statusBlink {
  0%,100% { opacity:1; } 50% { opacity:0.2; }
}

.fade-up   { animation: fadeUp 0.7s ease both; }
.delay-1   { animation-delay: 0.15s; }
.delay-2   { animation-delay: 0.3s; }
.delay-3   { animation-delay: 0.45s; }

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--yellow);
  color: var(--black);
  border: none;
  border-radius: var(--radius-sm);
  padding: 16px 24px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s, transform 0.15s;
  display: block;
  position: relative;
  overflow: hidden;
}
.btn-primary:hover  { background: var(--yellow-dark); }
.btn-primary:active { transform: scale(0.98); }

.btn-primary-dark {
  background: var(--black);
  color: var(--yellow);
  border: none;
  border-radius: var(--radius-sm);
  padding: 16px 24px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s;
}
.btn-primary-dark:hover { background: #111; }

.btn-ghost-dark {
  background: transparent;
  color: rgba(0,0,0,0.45);
  border: none;
  padding: 10px 0;
  font-size: 13px;
  cursor: pointer;
  width: 100%;
  text-decoration: underline;
  font-family: 'Inter', sans-serif;
}

.btn-secondary {
  background: transparent;
  color: var(--yellow);
  border: 1.5px solid rgba(255,194,0,0.25);
  border-radius: var(--radius-sm);
  padding: 13px 24px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  width: 100%;
  transition: border-color 0.2s, background 0.2s;
  display: block;
  margin-top: 10px;
}
.btn-secondary:hover { border-color: var(--yellow); background: rgba(255,194,0,0.05); }

.btn-back {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 22px;
  padding: 0;
  line-height: 1;
}

.btn-nav {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-sm);
  color: var(--text-mid);
  cursor: pointer;
  padding: 9px 4px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
.btn-nav:hover { background: rgba(255,255,255,0.08); color: var(--white); }

.btn-primary-sm {
  background: var(--yellow);
  color: var(--black);
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.btn-primary-sm:hover { background: var(--yellow-dark); }

.btn-secondary-sm {
  background: transparent;
  color: var(--yellow);
  border: 1px solid rgba(255,194,0,0.3);
  border-radius: 4px;
  padding: 8px 14px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}
.btn-admin-exit {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  color: var(--text-dim);
  cursor: pointer;
  padding: 6px 14px;
  font-size: 12px;
}

/* ===== FORMS ===== */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #888;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.form-input {
  background: var(--steel);
  border: 1.5px solid #333;
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  font-size: 16px;
  color: var(--white);
  width: 100%;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
  outline: none;
  -webkit-appearance: none;
}
.form-input:focus  { border-color: var(--yellow); }
.form-input::placeholder { color: #555; }
select.form-input option { background: #1a1a1a; }

.form-error {
  background: rgba(255,45,45,0.1);
  border: 1px solid rgba(255,45,45,0.3);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #FF6B6B;
  font-size: 13px;
  margin-bottom: 14px;
}
.form-row { display: flex; gap: 10px; }
.form-row .form-group { flex: 1; }
.form-sub-heading {
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

/* ===== SHARED LAYOUT ===== */
.screen-dark {
  background: var(--black);
  min-height: 100vh;
  padding: 0 0 80px;
}
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 12px;
}
.top-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px;
  font-weight: 700;
}
.top-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--yellow);
}
.top-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--yellow);
}

/* ===== JCB LOGO ===== */
.jcb-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--black);
  border-radius: 10px;
  padding: 14px 22px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.jcb-badge {
  background: var(--yellow);
  border-radius: 4px;
  padding: 4px 8px;
  border: 2px solid var(--black);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: var(--black);
  letter-spacing: 0.5px;
}
.jcb-badge-sm {
  background: var(--yellow);
  border-radius: 3px;
  padding: 2px 5px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  font-size: 10px;
  color: var(--black);
  letter-spacing: 0.5px;
}
.jcb-wordmark {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  font-size: 48px;
  color: var(--white);
  letter-spacing: -2px;
  line-height: 1;
}

/* ===== SPLASH SCREEN ===== */
.splash-bg {
  background: var(--yellow);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.splash-stripes {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(0,0,0,0.04) 0, rgba(0,0,0,0.04) 2px, transparent 2px, transparent 22px);
  pointer-events: none;
}
.splash-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  z-index: 1;
}
.splash-logo-wrap { margin-top: 40px; }
.event-tag {
  margin-top: 24px;
  display: inline-block;
  background: var(--black);
  color: var(--yellow);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  padding: 6px 14px;
  border-radius: 4px;
  text-transform: uppercase;
}
.splash-headline {
  font-family: 'Rajdhani', sans-serif;
  font-size: 60px;
  font-weight: 800;
  color: var(--black);
  line-height: 1;
  text-transform: uppercase;
  margin-top: 28px;
}
.splash-sub {
  font-size: 15px;
  color: rgba(0,0,0,0.55);
  margin-top: 14px;
  line-height: 1.6;
}
.splash-actions {
  margin-top: auto;
  padding-top: 32px;
  padding-bottom: 20px;
}
.prize-icons {
  display: flex;
  gap: 14px;
  padding-bottom: 32px;
  margin-top: 12px;
}
.prize-icons span { font-size: 22px; opacity: 0.7; }
.excavator-deco {
  position: absolute;
  right: -24px;
  bottom: 200px;
  font-size: 130px;
  opacity: 0.12;
  transform: scaleX(-1);
  pointer-events: none;
}

/* ===== REGISTER SCREEN ===== */
.radar-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.radar-grid::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  top: 20%;
  left: -50%;
  background:
    radial-gradient(circle, rgba(255,194,0,0.05) 1px, transparent 1px) 0 0 / 40px 40px,
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(255,194,0,0.03) 0%, transparent 70%);
}
.register-content {
  padding: 8px 20px 40px;
  position: relative;
}
.prize-preview {
  background: var(--steel);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 20px;
  border: 1px solid #333;
}
.preview-label {
  font-size: 11px;
  letter-spacing: 2px;
  color: #888;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.prize-row { display: flex; gap: 12px; font-size: 22px; }

/* ===== AR HUNT SCREEN ===== */
.ar-container {
  position: fixed;
  inset: 0;
  background: #0a1208;
  overflow: hidden;
  touch-action: none;
}
#ar-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}
.ar-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, #1C2B1A 0%, #0D1A0B 50%, #050A04 100%);
}
.ar-fallback::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,194,0,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,194,0,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}
.scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent 0%, rgba(255,194,0,0.6) 50%, transparent 100%);
  animation: scanLine 4s linear infinite;
  pointer-events: none;
  z-index: 5;
}
/* Corner brackets */
.bracket {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: rgba(255,194,0,0.7);
  border-style: solid;
  z-index: 5;
}
.bracket.tl { top:16px; left:16px; border-width:2px 0 0 2px; border-radius: 3px 0 0 0; }
.bracket.tr { top:16px; right:16px; border-width:2px 2px 0 0; border-radius: 0 3px 0 0; }
.bracket.bl { bottom:150px; left:16px; border-width:0 0 2px 2px; border-radius: 0 0 0 3px; }
.bracket.br { bottom:150px; right:16px; border-width:0 2px 2px 0; border-radius: 0 0 3px 0; }

/* HUD Top */
.hud-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.88), transparent);
  padding: 16px 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 20;
}
.hud-logo { display:flex; align-items:center; gap:8px; }
.hud-jcb {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--white);
}
.hud-status { display:flex; align-items:center; gap:6px; }
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #00FF7F;
  display: inline-block;
  animation: statusBlink 1.5s infinite;
}
.status-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #00FF7F;
  letter-spacing: 2px;
}
.hud-count {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(0,0,0,0.55);
  border-radius: 20px;
  padding: 4px 10px;
  border: 1px solid rgba(255,194,0,0.25);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--yellow);
  cursor: pointer;
}

.user-strip {
  position: absolute;
  top: 60px; left: 16px; right: 16px;
  display: flex;
  justify-content: space-between;
  z-index: 20;
}
.user-label {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}
.heading-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(255,255,255,0.25);
}

/* AR Box elements */
#ar-boxes {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}
.ar-box {
  position: absolute;
  top: 38%;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: float 3s ease-in-out infinite;
  pointer-events: all;
  cursor: pointer;
  transition: left 0.4s ease, top 0.4s ease;
  transform-origin: bottom center;
}
.ar-box .box-card {
  background: rgba(0,0,0,0.72);
  border-radius: 12px;
  padding: 8px 12px;
  border: 1.5px solid rgba(255,194,0,0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  backdrop-filter: blur(6px);
  gap: 2px;
}
.ar-box .box-emoji { font-size: 2.2rem; }
.ar-box .box-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--yellow);
  letter-spacing: 1px;
}
.ar-box .box-dist {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
}
.ar-box .box-claim {
  margin-top: 6px;
  background: var(--yellow);
  color: var(--black);
  border-radius: 4px;
  padding: 4px 12px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1px;
  animation: blink 0.8s infinite;
}
.ar-box .ping-ring {
  position: absolute;
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 2px solid var(--yellow);
  top: 50%; left: 50%;
  animation: pingRing 1.5s ease-out infinite;
  pointer-events: none;
}
.ar-box .ping-ring-2 {
  animation-delay: 0.5s;
}

/* HUD Bottom */
.hud-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.97) 70%, transparent);
  padding: 16px 16px 32px;
  z-index: 20;
}
.hud-info-row {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  align-items: center;
}
#radar-canvas { display: block; }
.nearest-info { flex: 1; min-width: 0; }
.nearest-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--text-dim);
  letter-spacing: 1.5px;
  margin-bottom: 3px;
}
.nearest-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.proximity-row { display:flex; align-items:center; gap:8px; margin-top:4px; }
.proximity-bar {
  flex: 1;
  height: 3px;
  background: #222;
  border-radius: 2px;
  overflow: hidden;
}
.proximity-fill {
  height: 100%;
  background: var(--yellow);
  border-radius: 2px;
  transition: width 0.5s ease, background 0.5s;
  width: 0%;
}
.proximity-dist {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--yellow);
  min-width: 36px;
  text-align: right;
}
.nearest-section {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-scan {
  position: relative;
  overflow: hidden;
  margin-bottom: 10px;
}
#scan-progress-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: rgba(255,255,255,0.15);
  width: 0%;
  transition: width 0.08s linear;
  pointer-events: none;
}
.hud-nav { display:flex; gap:8px; }

.gps-notice {
  position: absolute;
  bottom: 200px; left: 20px; right: 20px;
  background: rgba(255,194,0,0.12);
  border: 1px solid rgba(255,194,0,0.4);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  text-align: center;
  z-index: 30;
}
.gps-notice p { font-size: 14px; margin-bottom: 10px; color: var(--yellow); }
.gps-notice button {
  background: var(--yellow); color: var(--black);
  border: none; border-radius: 4px; padding: 8px 20px;
  font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 14px;
  cursor: pointer;
}

/* ===== FOUND SCREEN ===== */
.found-bg {
  min-height: 100vh;
  background: radial-gradient(circle at center, rgba(255,194,0,0.15) 0%, var(--black) 65%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
#confetti-container { position:fixed; inset:0; pointer-events:none; z-index:100; }
.found-content { position: relative; z-index: 1; width: 100%; max-width: 360px; }
.found-badge {
  display: inline-block;
  background: rgba(0,217,126,0.12);
  color: var(--green);
  border: 1px solid rgba(0,217,126,0.3);
  border-radius: 20px;
  padding: 6px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  animation: fadeUp 0.5s ease both;
}
.found-box-wrap {
  margin: 24px 0;
  animation: boxReveal 0.8s cubic-bezier(0.34,1.56,0.64,1) 0.2s both;
}
.found-box {
  width: 140px; height: 140px;
  margin: 0 auto;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-dark) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 62px;
  box-shadow: 0 0 50px rgba(255,194,0,0.4), 0 20px 60px rgba(0,0,0,0.6);
}
.found-rarity {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
  animation: fadeUp 0.5s ease 0.4s both;
}
.found-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 38px;
  font-weight: 800;
  color: var(--white);
  animation: fadeUp 0.5s ease 0.45s both;
}
.found-location {
  color: var(--text-dim);
  font-size: 14px;
  margin-top: 8px;
  animation: fadeUp 0.5s ease 0.5s both;
}
.found-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #444;
  margin-top: 4px;
  animation: fadeUp 0.5s ease 0.5s both;
}
.found-actions { margin-top: 36px; animation: fadeUp 0.5s ease 0.7s both; }
.found-note { color: #444; font-size: 12px; margin-top: 24px; animation: fadeUp 0.5s ease 0.9s both; }

/* ===== PRIZES SCREEN ===== */
.prizes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px;
}
.prize-card {
  background: var(--card-dark);
  border-radius: var(--radius-md);
  border: 1px solid #222;
  padding: 16px;
  animation: fadeUp 0.4s ease both;
}
.prize-card .pc-icon { font-size: 36px; margin-bottom: 8px; }
.prize-card .pc-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
}
.prize-card .pc-loc { font-size: 11px; color: #555; margin-top: 3px; }
.rarity-badge {
  display: inline-block;
  margin-top: 8px;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.empty-state {
  text-align: center;
  padding: 60px 20px;
}
.empty-icon { font-size: 54px; opacity: 0.2; margin-bottom: 16px; }
.empty-title { font-family: 'Rajdhani', sans-serif; font-size: 20px; font-weight: 600; color: #555; }
.empty-sub { color: #444; font-size: 13px; margin-top: 8px; }

/* ===== LEADERBOARD ===== */
.leaderboard-list { padding: 0 16px; display: flex; flex-direction: column; gap: 10px; }
.lb-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card-dark);
  border-radius: var(--radius-md);
  border: 1px solid #222;
  padding: 12px 14px;
  animation: slideIn 0.4s ease both;
}
.lb-rank {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 800;
  min-width: 28px;
}
.lb-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.lb-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 600;
  flex: 1;
}
.lb-prizes {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--yellow);
}
.lb-me { border-color: rgba(255,194,0,0.3) !important; }

/* ===== ADMIN DASHBOARD ===== */
.admin-layout {
  background: #0D0D0D;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.admin-header {
  background: #111;
  border-bottom: 1px solid #222;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
}
.admin-header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 700;
}
.admin-stats {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: #111;
  border-bottom: 1px solid #1a1a1a;
  overflow-x: auto;
}
.stat-card {
  flex: 1;
  min-width: 70px;
  background: var(--steel);
  border-radius: 8px;
  padding: 8px 10px;
  text-align: center;
}
.stat-value {
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--yellow);
}
.stat-label {
  font-size: 9px;
  color: var(--text-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 1px;
}
.admin-tabs {
  display: flex;
  background: #111;
  border-bottom: 1px solid #1a1a1a;
}
.admin-tab {
  padding: 11px 18px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-dim);
  cursor: pointer;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s, border-color 0.2s;
}
.admin-tab.active { color: var(--yellow); border-bottom-color: var(--yellow); }

.tab-content { padding: 16px; }
.tab-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.tab-heading {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}
.add-box-form {
  background: var(--card-dark);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,194,0,0.2);
  padding: 16px;
  margin-bottom: 16px;
}
.boxes-table { display: flex; flex-direction: column; gap: 8px; }
.box-row {
  background: var(--card-dark);
  border-radius: 8px;
  border: 1px solid #222;
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.box-row-main { flex: 1; min-width: 0; }
.box-row-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--yellow);
  margin-bottom: 2px;
}
.box-row-prize {
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
}
.box-row-loc {
  font-size: 11px;
  color: #555;
  margin-top: 2px;
}
.box-row-status { font-size: 11px; margin-top: 3px; }
.box-row-actions { display: flex; gap: 6px; flex-shrink: 0; align-items: flex-start; }
.action-btn {
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 11px;
  cursor: pointer;
  border: 1px solid;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.participants-list { display: flex; flex-direction: column; gap: 8px; }
.participant-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card-dark);
  border-radius: 8px;
  padding: 12px;
  border: 1px solid #222;
}
.p-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
  flex-shrink: 0;
}
.p-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 600;
}
.p-mobile { font-size: 11px; color: #555; margin-top: 1px; }
.p-prizes {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--yellow);
  margin-left: auto;
}
.admin-login-content { padding: 8px 20px 60px; }

/* Confetti */
.confetti-piece {
  position: absolute;
  border-radius: 2px;
  animation: confettiFall linear forwards;
}

/* ===== EDGE ARROWS ===== */
#edge-arrows {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
}
.edge-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 6px;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,194,0,0.35);
  border-radius: 10px;
  backdrop-filter: blur(4px);
}
.edge-arrow.edge-left  { left: 6px; }
.edge-arrow.edge-right { right: 6px; }
.edge-icon    { font-size: 20px; }
.edge-chevron { font-size: 18px; color: #FFC200; font-weight: 900; line-height: 1; }
.edge-dist    { font-size: 10px; color: rgba(255,255,255,0.6); font-family: 'JetBrains Mono', monospace; }

/* ===== AR BOX — close state ===== */
.ar-box-close .box-card {
  box-shadow: 0 0 20px rgba(255,194,0,0.4);
}
.box-claim-btn {
  margin-top: 6px;
  background: #FFC200;
  color: #0A0A0A;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  animation: claimPulse 0.8s ease-in-out infinite alternate;
  white-space: nowrap;
}
@keyframes claimPulse {
  from { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,194,0,0.5); }
  to   { transform: scale(1.06); box-shadow: 0 0 0 8px rgba(255,194,0,0); }
}
.box-dist-tag {
  margin-top: 4px;
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  font-family: 'JetBrains Mono', monospace;
  background: rgba(0,0,0,0.4);
  padding: 2px 8px;
  border-radius: 8px;
}

/* ===== GPS ACCURACY BADGE ===== */
.gps-accuracy {
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  color: rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.3);
  padding: 2px 6px;
  border-radius: 6px;
}

/* ===== ADMIN — Capture Location Button ===== */
.btn-capture-loc {
  width: 100%;
  background: rgba(255,194,0,0.1);
  border: 1.5px dashed rgba(255,194,0,0.5);
  color: #FFC200;
  padding: 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background 0.2s;
}
.btn-capture-loc:active {
  background: rgba(255,194,0,0.2);
}

/* ===== GPS HELP MODAL ===== */
.gps-help-modal {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  padding: 0 0 16px;
  backdrop-filter: blur(3px);
}
.gps-help-modal.hidden { display: none; }

.gps-help-card {
  background: #141414;
  border: 1px solid rgba(255,194,0,0.2);
  border-radius: 20px 20px 14px 14px;
  padding: 20px 20px 16px;
  width: 100%;
  position: relative;
  animation: slideUp 0.22s cubic-bezier(0.22,1,0.36,1);
}
@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.gps-help-title {
  font-size: 15px;
  font-weight: 700;
  color: #FFC200;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  font-family: 'Rajdhani', sans-serif;
  text-transform: uppercase;
}
.gps-help-close {
  position: absolute;
  top: 16px;
  right: 16px;
  color: rgba(255,255,255,0.4);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
}

.gps-dot-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  line-height: 1.4;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 3px;
}
.dot-green  { background: #00D97E; box-shadow: 0 0 6px #00D97E88; }
.dot-orange { background: #FFA500; box-shadow: 0 0 6px #FFA50088; }
.dot-red    { background: #FF4444; box-shadow: 0 0 6px #FF444488; }

.gps-help-note {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 10px;
  margin-top: 4px;
}
.gps-help-tip {
  font-size: 12px;
  color: #FFC200;
  background: rgba(255,194,0,0.07);
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 10px;
  line-height: 1.5;
}
.gps-help-btn {
  display: block;
  width: 100%;
  margin-top: 14px;
  background: #FFC200;
  color: #0A0A0A;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
}

/* gps-accuracy badge — make it look tappable */
.gps-accuracy {
  cursor: pointer;
  text-decoration: underline dotted rgba(255,255,255,0.3);
}
