/* =========================================================
   STYLESHEET (OPTIMIZED)
   - Struktur: Variables -> Base -> Components -> Utilities -> Pages -> FSF Theme -> Responsive
   - Målet er samme look med færre gentagelser og færre "side effects"
   ========================================================= */

/* =========================================================
   1) GLOBAL VARIABLES (App Dark Theme)
   ========================================================= */
:root {
  /* Core palette */
  --c-bg-top: #111827;
  --c-bg-bottom: #03061a;

  --c-surface-0: #020617; /* navbar / list items */
  --c-surface-1: #111827; /* cards */
  --c-border-0: #111827;
  --c-border-1: #1f2937;

  --c-text: #e5e7eb;
  --c-text-strong: #f9fafb;
  --c-text-muted: #9ca3af;

  --c-accent: #dfbc38; /* star/gold */
  --c-danger: #c63636; /* red */
  --c-danger-2: #c63636; /* beholdt for kompatibilitet (bruges i btn-reset-danger) */

  /* Effects */
  --shadow-soft: 0 18px 60px rgba(0, 0, 0, 0.45);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 18px;
}

/* =========================================================
   2) BASE (Global)
   ========================================================= */
body {
  background: linear-gradient(var(--c-bg-top), var(--c-bg-bottom));
  background-attachment: fixed;
  color: var(--c-text);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Links in navbar */
a.nav-link,
a.nav-link:visited {
  color: var(--c-text-muted);
}
a.nav-link:hover {
  color: var(--c-text);
}
a.nav-link.active {
  color: var(--c-accent) !important;
  font-weight: 600;
}

/* =========================================================
   3) COMMON COMPONENTS (Bootstrap-ish overrides)
   ========================================================= */
.navbar {
  background-color: var(--c-surface-0);
}
.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.03em;
}

.card {
  background-color: var(--c-surface-1);
  color: var(--c-text);
  border: 1px solid var(--c-border-1);
}

.list-group-item {
  background-color: var(--c-surface-0);
  color: var(--c-text);
  border-color: var(--c-border-0);
}

/* Accent helpers */
.star-color {
  color: var(--c-accent);
}

/* stars.html */
.btn-fsf-ghost-star {
  background: var(--fsf-glass-1);

  color: var(--fsf-text);
  border: 2px solid var(--c-accent);
  border-radius: var(--radius-md);
}

/* winner-btn */
.btn-fsf-ghost-winner {
  background: var(--fsf-glass-1);

  color: var(--fsf-text);

  border-radius: var(--radius-md);
}

/* powerup */
.btn-fsf-ghost-powerup {
  background: var(--fsf-glass-1);
  color: var(--fsf-text);
}

.btn-fsf-ghost-powerup:hover {
  color: inherit;
  background: var(--fsf-glass-1);

  border-color: #6c757d;
}

/* =========================================================
   4) UTILITIES / MICRO-INTERACTIONS
   ========================================================= */

/* Stars-side specifikt */
.star-row-label {
  min-width: 4.5rem;
}

/* Fade utilities */
.fade-out {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.fade-fast {
  transition: opacity 0.2s ease;
}
.fade-fast.fade-out {
  opacity: 0.2;
}

/* Fade-in helper */
.fade-in {
  animation: leaderboardFadeIn 0.25s ease-out;
}
@keyframes leaderboardFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading dots */
.loading-dots {
  /* display: inline-flex; */
  margin-left: 2px;
}
.loading-dots span {
  display: inline-block;
  opacity: 0;
  animation: dotBlink 1.2s infinite;
}
.loading-dots span:nth-child(1) {
  animation-delay: 0s;
}
.loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
}
.loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes dotBlink {
  0% {
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  60% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/* Live indicator */
.live-indicator {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #31d6ff; /* beholdt som "brand" for live */
  animation: livePulse 1s ease-in-out infinite;
}
@keyframes livePulse {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(1.02);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* =========================================================
   5) SCORE / ROUND UI
   ========================================================= */
.round-points-badge {
  min-width: 110px;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: linear-gradient(180deg, var(--c-surface-1), var(--c-surface-0));
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}
.round-points-value {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}
.round-points-label {
  font-size: 0.75rem;
  opacity: 0.9;
}

/* =========================================================
   6) LEADERBOARD TABLE (Neutral / white)
   ========================================================= */
.leaderboard-table {
  border-collapse: collapse;
  background-color: #ffffff;
}

.leaderboard-table th,
.leaderboard-table td {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e2e6f0;
  font-size: 0.95rem;
}

/* Sidste række uden border */
.leaderboard-table tr:last-child td {
  border-bottom: none;
}

/* Current user highlight */
.leaderboard-row-current td {
  font-weight: 600;
}
.leaderboard-row-current td:first-child {
  border-left: 3px solid var(--c-accent);
  padding-left: calc(0.5rem - 3px);
}

/* Deleted users */
.leaderboard-row-deleted {
  opacity: 0.55;
}
.leaderboard-deleted-user {
  font-style: italic;
  cursor: default;
}

/* =========================================================
   7) STARS PAGE (stars.html)
   ========================================================= */
.game-card {
  border-radius: var(--radius-md);
}

.star-chip {
  min-width: 52px;
}
.star-chip-used {
  opacity: 0.35;
}

#star-status .badge {
  border-radius: 999px;
}

/* Kandidat til fjernelse hvis ubrugt (beholdt for kompatibilitet) */
.test-farve {
  background-color: var(--c-accent);
}

/* =========================================================
   8) BADGES / BUTTONS (Reusable – no inline styles)
   - Vi ændrer ikke HTML: vi "samler" gentagne props via grouped selectors
   ========================================================= */

/* Base-ish: samme shape/padding for badges */
.badge-finished-round,
.badge-current-round,
.badge-upcoming-round {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

/* Colors */
.badge-finished-round {
  background: var(--c-danger);
  color: #fff;
}
.badge-current-round {
  background: var(--c-accent);
  color: #fff;
}

.badge-current-round:hover {
  background: var(--c-accent);
  color: #fff;
}

/* Admin locked button */
.btn-admin-locked {
  background: var(--c-danger);
  color: #fff;
  padding: 6px; /* samme som 6px 6px, men mere læsbart */
  border-radius: var(--radius-sm);
}
.btn-admin-locked.disabled,
.btn-admin-locked:disabled {
  opacity: 1;
}

/* Dashboard reset danger */
.btn-reset-danger {
  background: var(--c-danger-2) !important; /* beholdt præcis farve som før */
  color: #fff;
}

/* =========================================================
   9) FSF LANDING THEME (Scoped to body.fsf-theme)
   ========================================================= */
body.fsf-theme {
  --fsf-bg: #0b1220;
  --fsf-card: rgba(255, 255, 255, 0.06);
  --fsf-border: rgba(255, 255, 255, 0.12);
  --fsf-text: rgba(255, 255, 255, 0.92);
  --fsf-muted: rgba(255, 255, 255, 0.65);

  --fsf-glass-1: rgba(255, 255, 255, 0.06);
  --fsf-glass-2: rgba(255, 255, 255, 0.1);
  --fsf-blue: #1a73e8;
  --fsf-link: rgba(147, 197, 253, 0.95);

  background:
    radial-gradient(1200px 700px at 20% 0%, rgba(110, 66, 255, 0.2), transparent 60%),
    radial-gradient(900px 600px at 100% 20%, rgba(40, 168, 255, 0.18), transparent 55%), var(--fsf-bg);
  color: var(--fsf-text);
  background-attachment: fixed;
}

/* Links */
body.fsf-theme a {
  color: var(--fsf-text);
}
body.fsf-theme a:hover {
  color: #fff;
}
body.fsf-theme .fsf-muted {
  color: var(--fsf-muted);
}

/* Navbar (FSF glass) */
body.fsf-theme .fsf-navbar {
  background: rgba(10, 16, 30, 0.72);
  border-bottom: 1px solid var(--fsf-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Hero */
body.fsf-theme .fsf-hero {
  border: 1px solid var(--fsf-border);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
body.fsf-theme .fsf-hero-left {
  padding: 26px;
  min-height: 240px;
}
body.fsf-theme .fsf-hero-right {
  padding: 28px;
  background: rgba(10, 16, 30, 0.92);
}
body.fsf-theme .fsf-hero-title {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.05;
}
body.fsf-theme .fsf-hero-lead {
  color: var(--fsf-text);
  max-width: 420px;
}

/* Badge (FSF) */
body.fsf-theme .fsf-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.2);
  color: var(--fsf-text);
  font-size: 12px;
  font-weight: 700;
}
body.fsf-theme .fsf-badge-sep {
  opacity: 0.75;
}

/* Cards / sections */
body.fsf-theme .fsf-card {
  border: 1px solid var(--fsf-border);
  background: var(--fsf-card);
  border-radius: var(--radius-lg);
}
body.fsf-theme .fsf-section-title {
  font-size: 18px;
}
body.fsf-theme .fsf-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Buttons */
body.fsf-theme .btn-fsf-primary {
  background: var(--c-accent);

  color: #fff;
  font-weight: 700;
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
body.fsf-theme .btn-fsf-ghost {
  background: var(--fsf-glass-1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--fsf-text);
  font-weight: 700;
  border-radius: var(--radius-md);
  padding: 8px 8px;
}

.fsf-actions-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fsf-actions-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1 1 auto; /* må gerne tage plads */
  min-width: 0; /* vigtigt i flex layouts */
}

.fsf-actions-right {
  display: flex;
  justify-content: flex-end;
  margin-left: auto; /* skub den til højre */
  flex: 0 0 auto; /* må IKKE krympe */
}

.fsf-save-btn {
  white-space: nowrap; /* "Gem valg" må ikke bryde */
}

/* Kun ved 355px og under: hop ned + fuld bredde */
@media (max-width: 319px) {
  .fsf-actions-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .fsf-actions-right {
    width: 100%;
  }

  .fsf-save-btn {
    width: 100%;
  }
}

/* Brand */
body.fsf-theme .fsf-logo-box {
  width: 100px;
  height: 100px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
body.fsf-theme .fsf-logo-box--hero {
  background-color: #0f152c;
}
body.fsf-theme .fsf-logo-box img {
  width: 100%;
}

body.fsf-theme .fsf-brand-mark {
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #fff;
}
body.fsf-theme .fsf-brand-lines {
  line-height: 1.05;
}

/* =========================================================
   10) FSF BETA PILL (Single source of truth)
   - Fjernet duplikat. Scoped overrides kan komme senere hvis nødvendigt.
   ========================================================= */
.fsf-beta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(110, 66, 255, 0.18);
  border: 1px solid rgba(110, 66, 255, 0.28);
  line-height: 1;
  white-space: nowrap;
}

/* Pulsende dot */
.fsf-beta-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(110, 66, 255, 0.95);
  animation: fsf-pulse 1.8s ease-out infinite;
}

/* Pulse animation */
@keyframes fsf-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(110, 66, 255, 0.45);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(110, 66, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(110, 66, 255, 0);
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fsf-beta-pill::before {
    animation: none;
    box-shadow: 0 0 0 3px rgba(110, 66, 255, 0.18);
  }
}

/* Optional: select width helper */
.fsf-select {
  max-width: 260px;
}

/* =========================================================
   11) FSF BOTTOM NAV (Single source of truth)
   - Komponent-styles er globale
   - VISNING (display:flex) + body padding er kun i fsf-theme (fixer den gamle bug)
   ========================================================= */
.fsf-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(10, 16, 30, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: none;
  justify-content: space-around;
  align-items: center;
  z-index: 2000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.fsf-bottom-nav .nav-item {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 64px;
  user-select: none;
}

.fsf-bottom-nav .nav-item .icon {
  font-size: 18px;
  line-height: 1;
}

.fsf-bottom-nav .nav-item.active {
  color: #fff;
}

/* FSF bottom nav icons */
.fsf-bottom-nav .nav-item .fsf-icon {
  width: 22px;
  height: 22px;
  stroke-width: 1.75;
  color: rgba(255, 255, 255, 0.65);
}
.fsf-bottom-nav .nav-item.active .fsf-icon {
  color: #fff;
}
/* Stars = altid highlight */
.fsf-bottom-nav .nav-item[data-nav="stars"] .fsf-icon {
  color: var(--c-accent);
}

/* =========================================================
   12) FSF TOPBAR ICON BUTTON
   ========================================================= */
.fsf-navbar .fsf-icon-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--fsf-glass-1);
  color: var(--fsf-text);
  text-decoration: none;
}
.fsf-navbar .fsf-icon-btn:hover {
  background: var(--fsf-glass-2);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}
.fsf-navbar .fsf-icon-btn .fsf-icon {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

/* =========================================================
   13) FSF PROFILE: EMAIL VERIFY
   ========================================================= */
body.fsf-theme .fsf-verify-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  background: var(--fsf-glass-1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
}
body.fsf-theme .fsf-verify-badge .fsf-icon {
  width: 14px;
  height: 14px;
  stroke-width: 2;
  color: rgba(255, 255, 255, 0.9);
}
body.fsf-theme .fsf-verify-badge.is-verified {
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.12);
}
body.fsf-theme .fsf-verify-badge.is-unverified {
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.12);
}
body.fsf-theme .fsf-verify-badge.is-loading {
  opacity: 0.8;
}

body.fsf-theme .fsf-verify-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--fsf-link);
  font-weight: 800;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
}
body.fsf-theme .fsf-verify-link:hover {
  text-decoration: underline;
}
body.fsf-theme .fsf-verify-link .fsf-icon {
  width: 14px;
  height: 14px;
  stroke-width: 2;
  color: var(--fsf-link);
}

/* =========================================================
   14) FSF MODAL (glass)
   ========================================================= */
body.fsf-theme .modal.fsf-modal .modal-content {
  background: rgba(10, 16, 30, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: var(--radius-lg) !important;
  color: var(--fsf-text) !important;
  box-shadow: var(--shadow-soft) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
body.fsf-theme .modal.fsf-modal .modal-header,
body.fsf-theme .modal.fsf-modal .modal-footer {
  border-color: rgba(255, 255, 255, 0.1) !important;
}
body.fsf-theme .modal.fsf-modal .form-label {
  color: rgba(255, 255, 255, 0.78) !important;
}
body.fsf-theme .modal.fsf-modal .text-muted {
  color: var(--fsf-muted) !important;
}
body.fsf-theme .modal.fsf-modal .form-control {
  background: var(--fsf-glass-1) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: var(--fsf-text) !important;
  border-radius: var(--radius-md) !important;
}
body.fsf-theme .modal.fsf-modal .form-control::placeholder {
  color: rgba(255, 255, 255, 0.45) !important;
}

/* Inline message blocks */
.fsf-inline-msg {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.35;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--fsf-glass-1);
  color: rgba(255, 255, 255, 0.86);
}
.fsf-inline-msg--error {
  border-color: rgba(184, 48, 73, 0.55);
  background: rgba(184, 48, 73, 0.16);
  color: rgba(255, 255, 255, 0.92);
}
.fsf-inline-msg--ok {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.14);
}
.fsf-inline-msg a {
  color: var(--fsf-link);
  text-decoration: underline;
}

/* Prevent auth flicker */
body.fsf-auth-loading #btn-login,
body.fsf-auth-loading #btn-profile,
body.fsf-auth-loading #user-display {
  visibility: hidden !important;
}

/* =========================================================
   15) FSF TABS
   ========================================================= */
body.fsf-theme .fsf-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border-radius: 14px;
  background: var(--fsf-glass-1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
body.fsf-theme .fsf-tab-btn {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  transition:
    transform 120ms ease,
    background 120ms ease,
    color 120ms ease;
  white-space: nowrap;
}
body.fsf-theme .fsf-tab-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
  transform: translateY(-1px);
}
body.fsf-theme .fsf-tab-btn[aria-selected="true"] {
  background: rgba(59, 130, 246, 0.22);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: rgba(255, 255, 255, 0.94);
}
.fsf-tab-panel[hidden] {
  display: none !important;
}

/* =========================================================
   16) FSF TROPHIES + EXAMPLES
   ========================================================= */
.fsf-trophies-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 992px) {
  .fsf-trophies-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 420px) {
  .fsf-trophies-grid {
    grid-template-columns: 1fr;
  }
}

.fsf-trophy-tile {
  position: relative;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  min-height: 118px;
}
.fsf-trophy-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fsf-trophy-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--fsf-glass-1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.82);
  flex: 0 0 auto;
}
.fsf-trophy-title {
  margin: 0;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: -0.1px;
  color: rgba(255, 255, 255, 0.92);
}
.fsf-trophy-sub {
  margin-top: 2px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.35;
}

/* "Kommer snart" overlay */
.fsf-trophy-soon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(10, 16, 30, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: var(--radius-lg);
}
.fsf-trophy-soon span {
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.3px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
}
.fsf-trophies-hint {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  line-height: 1.45;
}

/* Examples: slider on mobile, 3-col grid on desktop */
.fsf-examples {
  position: relative;
  margin-top: 6px;
}
.fsf-examples-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 88%;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.fsf-examples-track::-webkit-scrollbar {
  height: 8px;
}
.fsf-example-card {
  scroll-snap-align: start;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-lg);
  padding: 14px;
}
.fsf-example-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
@media (min-width: 992px) {
  .fsf-examples-track {
    grid-auto-flow: unset;
    grid-auto-columns: unset;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
  }
}

/* Small UX: make "Point:" tappable */
.fsf-points-tap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  text-align: left;
}
.fsf-points-tap:hover {
  opacity: 0.92;
  text-decoration: underline;
}
.fsf-points-tap:disabled {
  opacity: 0.6;
  text-decoration: none;
  cursor: default;
}

.fsf-info-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  line-height: 1;
  opacity: 0.9;
  font-weight: 800;
}

.fsf-match-score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
  margin-left: 2px;
  white-space: nowrap;
}

/* =========================================================
   17) RESPONSIVE (FSF-only bottom nav + mobile topbar tweaks)
   ========================================================= */
@media (max-width: 991px) {
  /* Show bottom nav ONLY in fsf-theme */
  body.fsf-theme .fsf-bottom-nav {
    display: flex;
  }
  /* Avoid content under bottom nav (FSF only) */
  body.fsf-theme {
    padding-bottom: 80px;
  }

  /* Mobile topbar (no burger) */
  body.fsf-theme .navbar .navbar-toggler,
  body.fsf-theme .navbar .navbar-collapse {
    display: none !important;
  }
  body.fsf-theme .navbar.fsf-navbar {
    padding: 10px 12px !important;
    min-height: 54px;
  }
  body.fsf-theme .fsf-mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }
  body.fsf-theme .fsf-mobile-brand .fsf-logo-box {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }
  body.fsf-theme .fsf-mobile-brand .brand-title {
    font-weight: 900;
    font-size: 14px;
    white-space: nowrap;
  }
  body.fsf-theme .fsf-mobile-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  body.fsf-theme #user-display {
    display: none !important;
  }
  body.fsf-theme .navbar .navbar-brand {
    margin: 0 !important;
  }
}

/* Buttons in header (FSF) */
body.fsf-theme #btn-login.btn,
body.fsf-theme #logout-btn.btn {
  padding: 8px 10px !important;
  border-radius: var(--radius-md) !important;
  font-weight: 800 !important;
  font-size: 12px !important;
  line-height: 1 !important;
  white-space: nowrap;
}

/* Leaderboard: ensure readable black text in white table (FSF)
   - beholdt robusthed: wrapper kan have dark text ellers */
body.fsf-theme .leaderboard-table-wrapper,
body.fsf-theme .leaderboard-table-wrapper table,
body.fsf-theme .leaderboard-table-wrapper th,
body.fsf-theme .leaderboard-table-wrapper td {
  color: #000 !important;
}
body.fsf-theme .leaderboard-table-wrapper a,
body.fsf-theme .leaderboard-table-wrapper .leaderboard-player-link {
  color: #000 !important;
  text-decoration: none;
}
body.fsf-theme .leaderboard-table-wrapper a:hover,
body.fsf-theme .leaderboard-table-wrapper .leaderboard-player-link:hover {
  text-decoration: underline;
}

/* Bottom-sheet-ish feel on mobile for the breakdown modal */
@media (max-width: 576px) {
  .fsf-bottom-sheet .modal-dialog {
    margin: 0;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 100%;
  }
  .fsf-bottom-sheet .modal-content {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
}

/* 5 items: lidt smallere så teksten ikke knækker */
.fsf-bottom-nav .nav-item {
  min-width: 56px;
  font-size: 11px;
}

/* Sørg for at button-varianten ligner links */
.fsf-bottom-nav .fsf-nav-more {
  border: 0;
  background: transparent;
  padding: 0;
}

.picks-color {
  background-color: var(--c-accent);
  color: white;
}

.picks-color:hover {
  background-color: var(--c-accent);
  color: white;
}

@media (max-width: 400px) {
  .btn-arrow {
    display: none;
  }
}

@media (max-width: 359px) {
  #round-summary .fsf-card > .d-flex {
    justify-content: center !important;
    text-align: center;
  }

  #round-summary .round-points-badge {
    margin-left: auto;
    margin-right: auto;
  }
}

.star-label {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  line-height: 1;
  color: var(--c-accent);
}

/* Kun stjernerne i star-label */
.star-label .fsf-star-icon {
  width: 22px;
  height: 22px;
  display: inline-block;
}

/* SVG stars (brugt i star-label både i liste og i pb-meta) */
.star-label-modal {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  line-height: 1;
  color: #dfbc38; /* samme guld som din UI-stjerne */
  vertical-align: middle;
}

.star-label-modal .fsf-star-icon {
  width: 16px;
  height: 16px;
  display: block;
  margin: 0;
  padding: 0;
}

.btn-fsf-border-red {
  border: 2px solid var(--c-danger) !important;
}

.pb-meta-row {
  display: inline-flex;
  align-items: center; /* samme baseline */
  gap: 3px;
}

.pb-meta-text {
  position: relative; /* finjustér 1-2px hvis nødvendigt */
}

/* SVG stars (placeholder) */
.placeholder-stars {
  display: inline-flex;
  gap: 1px;
  color: #6c757d;
  padding-top: 2px;
}

.fsf-star-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: -2px;
}

/* Kun når de venter */
.placeholder-stars.is-pending {
  color: var(--c-accent);
  animation: fsf-placeholder-pulse 2.2s ease-in-out infinite;
}

@keyframes fsf-placeholder-pulse {
  0% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.9;
  }
  100% {
    opacity: 0.45;
  }
}

/* Respektér reduced motion */
@media (prefers-reduced-motion: reduce) {
  .placeholder-stars.is-pending {
    animation: none;
    opacity: 0.7;
  }
}

/* Default: top-line layout er roligt stablet */
.fsf-upcoming-top {
  display: flex;
  align-items: center;
  /* justify-content: space-between; */
  gap: 10px;
  margin-bottom: 4px;
}

/* Under 375px: stjernerne skal ligge ved siden af "Kamp" (samme linje) */
@media (max-width: 375px) {
  .fsf-upcoming-top .small {
    margin-bottom: 0;
  }
  .fsf-upcoming-top {
    justify-content: flex-start;
  }
}

@media (max-width: 500px) {
  .fsf-msg-cta {
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 430px) {
  .fsf-example-top-wrap-430 {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
}

.fsf-group-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.fsf-group-footer #group-hint {
  flex: 1;
  min-width: 0; /* så lange tekster kan wrappe uden at skubbe knapper ud */
}

.fsf-group-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

footer a {
  text-decoration: underline var(--c-accent);
}
