@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@500;600;700&family=Noto+Color+Emoji&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --bg:               #0a8077;
  --surface:          rgba(255, 255, 255, 0.16);
  --surface-solid:    rgba(255, 255, 255, 0.22);
  --surface-hover:    rgba(255, 255, 255, 0.24);
  --border:           rgba(255, 255, 255, 0.22);
  --border-hover:     rgba(255, 255, 255, 0.45);
  --border-focus:     rgba(255, 255, 255, 0.8);

  --primary:          #ccfbf1;
  --primary-hover:    #ffffff;
  --primary-glow:     rgba(204, 251, 241, 0.3);
  --primary-subtle:   rgba(255, 255, 255, 0.1);

  --text:             rgba(255, 255, 255, 0.88);
  --text-muted:       rgba(255, 255, 255, 0.52);
  --text-heading:     #ffffff;

  --success:          #6ee7b7;
  --success-bg:       rgba(110, 231, 183, 0.15);
  --success-border:   rgba(110, 231, 183, 0.35);

  --warning:          #fcd34d;
  --warning-bg:       rgba(252, 211, 77, 0.15);
  --warning-border:   rgba(252, 211, 77, 0.35);

  --danger:           #fca5a5;
  --danger-bg:        rgba(252, 165, 165, 0.15);
  --danger-border:    rgba(252, 165, 165, 0.35);

  --font-body:    'Inter', 'Noto Color Emoji', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Noto Color Emoji', system-ui, sans-serif;

  --r-sm:   10px;
  --r:      16px;
  --r-lg:   22px;
  --r-xl:   30px;
  --r-full: 9999px;

  --shadow-sm: 0 2px 8px  rgba(0,0,0,0.18), 0 1px 3px rgba(0,0,0,0.12);
  --shadow:    0 6px 24px rgba(0,0,0,0.22), 0 2px 8px rgba(0,0,0,0.14);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.28), 0 4px 16px rgba(0,0,0,0.16);
}

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

html { scroll-behavior: smooth; }

/* Emoji sizing and alignment */
img.emoji {
  height: 1.1em;
  width: 1.1em;
  margin: 0 0.15em 0 0;
  vertical-align: -0.15em;
}

::-webkit-scrollbar              { width: 4px; height: 4px; }
::-webkit-scrollbar-track        { background: rgba(255,255,255,0.08); }
::-webkit-scrollbar-thumb        { background: rgba(255,255,255,0.3); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover  { background: rgba(255,255,255,0.55); }

/* ============================================================
   BODY + BACKGROUND
   ============================================================ */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(24px, 5vh, 48px) clamp(16px, 5vw, 40px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 0%   0%,   rgba(20,  184, 166, 0.7)  0%, transparent 55%),
    radial-gradient(ellipse 60% 55% at 100% 100%,  rgba(6,   182, 212, 0.6)  0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 0%,    rgba(52,  211, 153, 0.45) 0%, transparent 50%),
    radial-gradient(ellipse 45% 40% at 0%   100%,  rgba(45,  212, 191, 0.4)  0%, transparent 50%),
    linear-gradient(150deg, #0d9488 0%, #0a8e90 40%, #0e7490 100%);
}

body.rumble-theme::before {
  background:
    radial-gradient(ellipse 70% 60% at 0%   0%,   rgba(217, 119,  6, 0.65) 0%, transparent 55%),
    radial-gradient(ellipse 60% 55% at 100% 100%,  rgba(180,  60,  0, 0.55) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 0%,    rgba(234, 150, 40, 0.45) 0%, transparent 50%),
    radial-gradient(ellipse 45% 40% at 0%   100%,  rgba(161,  72,  6, 0.40) 0%, transparent 50%),
    linear-gradient(150deg, #7c2d12 0%, #92400e 45%, #78350f 100%);
}

/* ============================================================
   MAIN CONTAINER CARD
   ============================================================ */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 540px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: clamp(24px, 6vw, 48px);
  text-align: center;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* ============================================================
   HEADER
   ============================================================ */
.header { margin-bottom: 24px; }

.header h1 {
  font-family: var(--font-display);
  font-size: clamp(20px, 4.5vw, 28px);
  font-weight: 700;
  letter-spacing: -0.6px;
  line-height: 1.15;
  color: var(--text-heading);
  margin-bottom: 6px;
}

.subtitle {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 500;
}

/* ============================================================
   HERO IMAGE (login page)
   ============================================================ */
.hero-image {
  width: 100%;
  max-height: 210px;
  object-fit: cover;
  border-radius: var(--r-lg);
  margin-bottom: 28px;
  display: block;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* ============================================================
   LOGIN BOX
   ============================================================ */
.login-box {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(20px, 5vw, 32px);
}

.login-box h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 18px;
  letter-spacing: -0.3px;
}

.login-box form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.login-box input {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--r-sm);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.login-box input::placeholder { color: rgba(255, 255, 255, 0.45); }

.login-box input:focus {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

.login-box button[type="submit"] {
  padding: 13px;
  margin-top: 4px;
  background: #ffffff;
  color: #0a6e67;
  border: none;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  transition: transform 0.14s, box-shadow 0.18s, background 0.18s;
}

.login-box button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.24);
  background: #f0fdfb;
}

.login-box button[type="submit"]:active { transform: translateY(0); }

#login-error {
  font-size: 13px;
  color: #fca5a5;
  padding: 10px 14px;
  background: rgba(252, 165, 165, 0.15);
  border: 1px solid rgba(252, 165, 165, 0.35);
  border-radius: var(--r-sm);
  margin-top: 0;
}

/* ============================================================
   TEAM PAGE
   ============================================================ */
.team-page {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 8px 0 4px;
}

.team-page h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 6vw, 34px);
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.6px;
  line-height: 1.2;
  margin-bottom: 16px;
  text-align: center;
}

.team-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 24px;
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  color: var(--text-heading);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.1px;
  transition: background 0.18s, border-color 0.18s, transform 0.14s, box-shadow 0.18s;
}

.team-link:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.team-link:active { transform: translateY(0); }

#logout-btn {
  padding: 12px 24px;
  margin-top: 4px;
  background: transparent;
  border: 1px solid rgba(252, 165, 165, 0.45);
  border-radius: var(--r);
  color: #fca5a5;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}

#logout-btn:hover {
  background: rgba(252, 165, 165, 0.12);
  border-color: rgba(252, 165, 165, 0.65);
}

/* ============================================================
   BACK BUTTON
   ============================================================ */
.back-button { margin-top: 20px; }

.back-button a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.18s;
}

.back-button a:hover { color: var(--text-heading); }

/* ============================================================
   CHALLENGES LIST
   ============================================================ */
.challenges-list {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.challenge-item {
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: clamp(14px, 3vw, 20px);
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.challenge-item:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 16px rgba(0,0,0,0.14);
}

.challenge-item h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

.challenge-item textarea {
  width: 100%;
  padding: 11px 13px;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--r-sm);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.55;
  resize: vertical;
  min-height: 68px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.challenge-item textarea::placeholder { color: rgba(255,255,255,0.4); }

.challenge-item textarea:focus {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

/* ============================================================
   PACKING LIST
   ============================================================ */
.paklijst-intro {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px 18px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text);
  text-align: left;
  line-height: 1.55;
}

.paklijst-intro strong {
  color: var(--text-heading);
}

.packing-list {
  text-align: left;
  padding: 4px 0;
}

.packing-list ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.packing-list li {
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.packing-list li:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 16px rgba(0,0,0,0.14);
}

.packing-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  color: var(--text-heading);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.18s;
}

.packing-list a:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ============================================================
   IMAGE MODAL
   ============================================================ */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
}

.modal-content {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: min(90vw, 820px);
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
}

.close {
  position: absolute;
  top: 18px;
  right: 24px;
  color: rgba(255,255,255,0.65);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.18s;
}

.close:hover { color: #fff; }

/* ============================================================
   PROOF SUBMISSION — challenge card UI
   ============================================================ */
.submission-area {
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--r-sm);
  color: var(--text-heading);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, transform 0.14s;
  letter-spacing: 0.1px;
}

.upload-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.upload-btn:active { transform: translateY(0); }

.submission-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.submission-status.pending  { background: var(--warning-bg); border: 1px solid var(--warning-border); color: var(--warning); }
.submission-status.approved { background: var(--success-bg); border: 1px solid var(--success-border); color: var(--success); }
.submission-status.rejected { background: var(--danger-bg);  border: 1px solid var(--danger-border);  color: var(--danger); }

.proof-thumb {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.upload-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.upload-loading::before {
  content: '';
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.upload-error { font-size: 13px; color: var(--danger); }

/* ============================================================
   JUDGE PAGE
   ============================================================ */
body.judge-page {
  align-items: flex-start;
  padding-top: clamp(20px, 4vw, 44px);
  padding-bottom: 60px;
}

.judge-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

.judge-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: clamp(18px, 4vw, 28px) clamp(20px, 5vw, 36px);
  margin-bottom: 20px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.judge-header h2 {
  font-family: var(--font-display);
  font-size: clamp(17px, 2.5vw, 22px);
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.4px;
  margin-bottom: 4px;
}

.judge-header p {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.pending-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fca5a5;
  color: #7f1d1d;
  border-radius: var(--r-full);
  padding: 1px 9px;
  font-size: 12px;
  font-weight: 700;
  min-width: 26px;
  box-shadow: 0 0 14px rgba(252,165,165,0.4);
}

.logout-btn {
  padding: 9px 18px;
  background: transparent;
  border: 1px solid rgba(252, 165, 165, 0.45);
  border-radius: var(--r-sm);
  color: #fca5a5;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.18s, border-color 0.18s;
}

.logout-btn:hover {
  background: rgba(252, 165, 165, 0.12);
  border-color: rgba(252, 165, 165, 0.65);
}

.no-submissions {
  text-align: center;
  color: var(--text-muted);
  padding: 80px 20px;
  font-size: 17px;
}

.submission-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid rgba(255,255,255,0.2);
  border-radius: var(--r-lg);
  padding: clamp(16px, 3vw, 24px);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color 0.18s, box-shadow 0.18s;
}

.submission-card.status-pending  { border-left-color: var(--warning); }
.submission-card.status-approved { border-left-color: var(--success); }
.submission-card.status-rejected { border-left-color: var(--danger);  }

.submission-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.team-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 11px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.team-badge.team-blue   { background: linear-gradient(135deg,#3b82f6,#1d4ed8); box-shadow: 0 2px 10px rgba(59,130,246,0.4);  }
.team-badge.team-red    { background: linear-gradient(135deg,#ef4444,#b91c1c); box-shadow: 0 2px 10px rgba(239,68,68,0.4);   }
.team-badge.team-green  { background: linear-gradient(135deg,#22c55e,#15803d); box-shadow: 0 2px 10px rgba(34,197,94,0.4);   }
.team-badge.team-purple { background: linear-gradient(135deg,#a855f7,#7e22ce); box-shadow: 0 2px 10px rgba(168,85,247,0.4); }
.team-badge.team-orange { background: linear-gradient(135deg,#f97316,#c2410c); box-shadow: 0 2px 10px rgba(249,115,22,0.4);  }

.challenge-title {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-heading);
  letter-spacing: -0.2px;
}

.status-badge {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.badge-pending  { background: var(--warning-bg); border: 1px solid var(--warning-border); color: var(--warning); }
.badge-approved { background: var(--success-bg); border: 1px solid var(--success-border); color: var(--success); }
.badge-rejected { background: var(--danger-bg);  border: 1px solid var(--danger-border);  color: var(--danger);  }

.proof-photo {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: var(--r);
  cursor: zoom-in;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  margin-bottom: 14px;
  transition: max-height 0.4s ease, border-color 0.18s;
  display: block;
}

.proof-photo:hover    { border-color: var(--border-hover); }
.proof-photo.expanded { max-height: none; cursor: zoom-out; }

.judge-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.approve-btn,
.reject-btn {
  padding: 12px;
  border: none;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1px;
  cursor: pointer;
  transition: transform 0.14s, box-shadow 0.18s, opacity 0.18s;
}

.approve-btn:disabled,
.reject-btn:disabled { opacity: 0.38; cursor: default; transform: none !important; }

.approve-btn                      { background: linear-gradient(135deg,#22c55e,#16a34a); color:#fff; box-shadow: 0 4px 16px rgba(34,197,94,0.3); }
.approve-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(34,197,94,0.45); }

.reject-btn                       { background: linear-gradient(135deg,#ef4444,#dc2626); color:#fff; box-shadow: 0 4px 16px rgba(239,68,68,0.3); }
.reject-btn:hover:not(:disabled)  { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(239,68,68,0.45); }

/* ============================================================
   GAME PAGE
   ============================================================ */
#game-canvas {
  display: block;
  width: 100%;
  border-radius: var(--r-lg);
  margin-bottom: 16px;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

#quick-restart-btn {
  padding: 8px 14px;
  font-size: 12px;
  background: rgba(29, 209, 161, 0.2);
  border: 1px solid rgba(29, 209, 161, 0.5);
  color: #1dd1a1;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.18s;
  font-family: var(--font-body);
}

#quick-restart-btn:hover {
  background: rgba(29, 209, 161, 0.35);
  border-color: rgba(29, 209, 161, 0.8);
  transform: scale(1.05);
}

.game-restart-btn {
  display: inline-block;
  padding: 12px 28px;
  margin-bottom: 16px;
  background: #ffffff;
  color: #0a6e67;
  border: none;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  transition: transform 0.14s, box-shadow 0.18s;
}

.game-restart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.24);
}

/* ============================================================
   ADMIN PAGES
   ============================================================ */
.admin-page {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.admin-page h2 {
  font-size: 28px;
  color: var(--text-heading);
  margin: 0;
}

.admin-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  color: var(--text-heading);
  text-decoration: none;
  transition: all 0.18s;
  cursor: pointer;
}

.admin-link:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.admin-link span:first-child {
  font-weight: 600;
  font-size: 16px;
}

.admin-link .admin-desc {
  font-size: 13px;
  color: var(--text-muted);
}

.admin-btn {
  padding: 12px 24px;
  background: var(--primary);
  color: #0a6e67;
  border: none;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.14s, box-shadow 0.18s;
}

.admin-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(204, 251, 241, 0.3);
}

.admin-btn.danger-btn {
  background: var(--danger);
  color: #fff;
}

.admin-btn.danger-btn:hover {
  box-shadow: 0 6px 20px rgba(252, 165, 165, 0.4);
}

.settings-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.settings-section h3 {
  font-size: 18px;
  color: var(--text-heading);
  margin: 0;
}

.highscore-box {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  text-align: center;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.highscore-box p {
  margin: 0;
}

/* ============================================================
   JOKES PAGE
   ============================================================ */
.jokes-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
  padding: 24px 0;
}

.joke-card {
  background: linear-gradient(135deg, var(--surface-solid) 0%, rgba(255, 255, 255, 0.08) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px 32px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.joke-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

#joke-text {
  color: var(--text-heading);
  font-weight: 500;
  letter-spacing: 0.3px;
  margin-bottom: 32px;
  font-size: clamp(16px, 4vw, 20px);
}

.joke-btn {
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--primary), #a0f3d8);
  color: #0a6e67;
  border: none;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(204, 251, 241, 0.3);
}

.joke-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(204, 251, 241, 0.5);
}

.joke-btn:active:not(:disabled) {
  transform: translateY(-1px);
}

.joke-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ============================================================
   WEATHER PAGE
   ============================================================ */
.weather-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 20px 0;
}

.weather-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.weather-card {
  background: linear-gradient(135deg, var(--surface-solid) 0%, rgba(255, 255, 255, 0.08) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.weather-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.weather-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.weather-header h2 {
  font-size: 24px;
  margin: 0;
  color: var(--text-heading);
}

.weather-icon {
  font-size: 48px;
  line-height: 1;
}

.weather-condition {
  margin-bottom: 24px;
  text-align: center;
}

.condition-text {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0;
  text-transform: capitalize;
  letter-spacing: 0.3px;
}

.temperature-section {
  background: rgba(204, 251, 241, 0.08);
  border: 1px solid rgba(204, 251, 241, 0.2);
  border-radius: var(--r-sm);
  padding: 20px;
  margin-bottom: 24px;
  text-align: center;
}

.temp-display {
  margin-bottom: 12px;
}

.temp-main {
  font-size: 48px;
  font-weight: 700;
  color: #ccfbf1;
  line-height: 1;
  margin-bottom: 8px;
}

.temp-range {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.feels-like {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

.weather-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.detail-item {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--r-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.detail-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-heading);
}

@media (max-width: 420px) {
  .weather-card {
    padding: 20px;
  }

  .weather-icon {
    font-size: 36px;
  }

  .temp-main {
    font-size: 40px;
  }

  .weather-details {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   FEEDBACK MODAL
   ============================================================ */
#feedback-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

#feedback-modal .modal-content {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  max-width: 500px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s;
}

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

#feedback-modal h3 {
  margin: 0 0 16px 0;
  font-size: 20px;
  color: var(--text-heading);
}

#feedback-modal textarea {
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid var(--border) !important;
  color: var(--text);
  padding: 12px !important;
  border-radius: var(--r-sm) !important;
  font-family: var(--font-body);
  transition: border-color 0.2s;
}

#feedback-modal textarea:focus {
  outline: none;
  border-color: #1dd1a1 !important;
  background: rgba(255, 255, 255, 0.12);
}

#feedback-modal button {
  padding: 12px 20px;
  border: none;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: var(--primary);
  color: #0a6e67;
  transition: all 0.18s;
}

#feedback-modal button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(29, 209, 161, 0.3);
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.18s;
}

.back-link:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateX(-2px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 420px) {
  body                   { padding: 12px; }
  .container             { border-radius: var(--r-lg); }
  .login-box             { padding: 18px; }
  .judge-buttons         { grid-template-columns: 1fr; }
  .team-page h2          { font-size: 24px; }
}
