/* =========================================================
   Dude's Arcade — Midnight Amber Redesign
   Palette: black / oxford-blue / amber / platinum / white
   ========================================================= */

:root {
  /* Brand palette */
  --black:     #000000;
  --navy:      #14213d;
  --amber:     #fca311;
  --platinum:  #e5e5e5;
  --white:     #ffffff;

  /* Tinted surfaces */
  --bg:         #0a1024;
  --bg-2:       #0f1830;
  --bg-card:    #14213d;
  --bg-elev:    #1a2a4d;
  --bg-soft:    #20305c;

  /* Ink */
  --ink:        var(--white);
  --ink-soft:   var(--platinum);
  --ink-mute:   rgba(229, 229, 229, 0.62);
  --ink-faint:  rgba(229, 229, 229, 0.36);

  /* Lines */
  --line:        rgba(229, 229, 229, 0.10);
  --line-strong: rgba(229, 229, 229, 0.22);

  /* Accent tints */
  --amber-soft:  rgba(252, 163, 17, 0.18);
  --amber-faint: rgba(252, 163, 17, 0.08);
  --amber-glow:  rgba(252, 163, 17, 0.30);
  --amber-deep:  #b87a0d;
  --amber-bronze:#a06a0a;

  /* Medals — 1st gold (amber), 2nd silver (platinum), 3rd bronze (deep amber) */
  --rank-1: var(--amber);
  --rank-2: var(--platinum);
  --rank-3: var(--amber-deep);

  /* Shadows — cool, sit on dark surfaces */
  --shadow-sm:  0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md:  0 8px 22px -10px rgba(0, 0, 0, 0.65);
  --shadow-lg:  0 24px 48px -22px rgba(0, 0, 0, 0.85);

  /* Legacy alias */
  --accent-lime: var(--amber);

  /* Bulma overrides */
  --bulma-body-background-color: var(--bg) !important;
  --bulma-text: var(--ink) !important;
  --bulma-card-background-color: var(--bg-card) !important;
  --bulma-card-color: var(--ink) !important;

  /* Type tokens */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

/* =========================================================
   Global
   ========================================================= */
html, body {
  background-color: var(--bg) !important;
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  background-image:
    radial-gradient(50vw 45vh at 88% -8%, var(--amber-soft), transparent 70%),
    radial-gradient(55vw 55vh at -6% 6%,  rgba(20, 33, 61, 0.85), transparent 75%),
    radial-gradient(70vw 60vh at 50% 110%, rgba(20, 33, 61, 0.55), transparent 70%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* Bulma column safety */
.columns { display: flex; flex-wrap: wrap; margin-left: -0.75rem; margin-right: -0.75rem; }
.column { display: block; flex-basis: 0; flex-grow: 1; flex-shrink: 1; padding: 0.75rem; }
.columns.is-multiline { display: flex !important; flex-wrap: wrap !important; }

/* =========================================================
   Lebowski Bar & Grill — Navbar
   ========================================================= */
.lb-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(
    180deg,
    rgba(10, 16, 36, 0.94) 0%,
    rgba(10, 16, 36, 0.86) 100%
  );
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
  box-shadow:
    0 2px 24px rgba(0, 0, 0, 0.4),
    inset 0 -1px 0 rgba(252, 163, 17, 0.06);
}
.lb-navbar::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--amber-glow) 50%,
    transparent 100%
  );
  opacity: 0.5;
}

.lb-nav-container {
  max-width: 1400px;
  margin: 0 auto;
  /* padding: 0 1.5rem; */
  height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Brand: composite mark + two-line wordmark */
.lb-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
  flex: 1 1 auto;
  transition: transform 0.25s ease;
}
.lb-brand:hover { transform: translateY(-1px); }

.lb-mark {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  display: block;
}
.lb-ball {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%,
      #4a3d6e 0%,
      #2a2350 40%,
      #15102e 75%,
      #0a0820 100%);
  box-shadow:
    0 0 0 2px rgba(252, 163, 17, 0.55),
    0 0 14px var(--amber-glow),
    inset -3px -4px 8px rgba(0, 0, 0, 0.6),
    inset 2px 2px 6px rgba(255, 255, 255, 0.08);
}
.lb-ball-hole {
  position: absolute;
  background: #050310;
  border-radius: 50%;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.8);
}
.lb-ball-hole-1 { top: 22%; left: 30%; width: 0.32rem; height: 0.32rem; }
.lb-ball-hole-2 { top: 18%; left: 50%; width: 0.32rem; height: 0.32rem; transform: translateX(-50%); }
.lb-ball-hole-3 { top: 22%; right: 30%; width: 0.32rem; height: 0.32rem; }
.lb-ball-shine {
  position: absolute;
  top: 12%;
  left: 18%;
  width: 28%;
  height: 22%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.35) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.lb-glass {
  position: absolute;
  bottom: -2px;
  right: -3px;
  width: 1.15rem;
  height: 1.4rem;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(229, 229, 229, 0.18) 100%
  );
  border: 1.5px solid rgba(229, 229, 229, 0.55);
  border-radius: 2px 2px 4px 4px;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.5),
    inset 1px 0 0 rgba(255, 255, 255, 0.25);
  overflow: hidden;
  transform: rotate(-4deg);
}
.lb-glass-liquid {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70%;
  background: linear-gradient(
    180deg,
    #d4b896 0%,
    #b89a72 50%,
    #8a6f4a 100%
  );
}
.lb-glass-foam {
  position: absolute;
  left: 0;
  right: 0;
  top: 30%;
  height: 14%;
  background: linear-gradient(180deg, #f5ead4 0%, #e0d0a8 100%);
  border-radius: 50%;
}

.lb-brand:hover .lb-mark { animation: lb-mark-bounce 0.5s ease; }
@keyframes lb-mark-bounce {
  0%, 100% { transform: rotate(0); }
  30% { transform: rotate(-8deg); }
  70% { transform: rotate(6deg); }
}

.lb-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
  min-width: 0;
}
.lb-wordmark-top {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.015em;
  color: var(--white);
  font-variation-settings: "SOFT" 100, "opsz" 144;
  background: linear-gradient(135deg, #ffffff 0%, var(--platinum) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}
.lb-wordmark-bot {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--amber);
  margin-top: 0.2rem;
  text-shadow: 0 0 8px var(--amber-glow);
  white-space: nowrap;
}

/* Search — collapsed icon, expands on click */
.lb-nav-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 0 0 auto;
}

/* Site / Admin segmented toggle (front-end) */
.lb-mode-toggle {
  display: inline-flex;
  padding: 0.2rem;
  border-radius: 999px;
  background: rgba(10, 16, 36, 0.6);
  border: 1px solid var(--line-strong);
  gap: 0.15rem;
}
.lb-mode-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-decoration: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-body);
}
.lb-mode-toggle-btn:hover { color: var(--ink); }
.lb-mode-toggle-btn.is-active {
  background: linear-gradient(180deg, var(--amber) 0%, var(--amber-deep) 100%);
  color: #14213d;
  box-shadow: 0 4px 10px -4px var(--amber-glow), inset 0 1px 0 rgba(255,255,255,0.18);
  cursor: default;
}
.lb-mode-toggle-btn i { font-size: 0.7rem; }
@media (max-width: 700px) {
  .lb-mode-toggle-btn span { display: none; }
}
.lb-search {
  position: relative;
  display: flex;
  align-items: center;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0.25rem;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    padding 0.3s ease,
    box-shadow 0.3s ease;
}
.lb-search[data-open="true"] {
  background: rgba(20, 33, 61, 0.85);
  border-color: var(--line-strong);
  padding: 0.3rem 0.35rem 0.3rem 1.1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.lb-search[data-open="true"]:focus-within {
  border-color: var(--amber);
  background: rgba(20, 33, 61, 0.95);
  box-shadow:
    0 0 0 3px var(--amber-soft),
    0 0 20px var(--amber-glow);
}

.lb-search-input {
  border: none;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  outline: none;
  width: 0;
  min-width: 0;
  padding: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition:
    width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.2s ease 0.05s,
    margin 0.3s ease;
}
.lb-search[data-open="true"] .lb-search-input {
  width: 240px;
  opacity: 1;
  pointer-events: auto;
  margin-right: 0.5rem;
}
.lb-search-input::placeholder {
  color: var(--ink-mute);
  font-weight: 400;
}

.lb-search-btn {
  border: none;
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-deep) 100%);
  color: var(--navy);
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow:
    0 2px 10px rgba(252, 163, 17, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.lb-search-btn:hover {
  transform: scale(1.08);
  box-shadow:
    0 4px 14px rgba(252, 163, 17, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.lb-search-btn:active { transform: scale(0.96); }
.lb-search-btn i {
  font-size: 0.95rem;
  transition: transform 0.25s ease;
}
.lb-search[data-open="true"] .lb-search-btn i {
  transform: rotate(90deg);
}

/* Body offset for the fixed navbar */
body { padding-top: 4.25rem; }

/* Mobile navbar */
@media (max-width: 768px) {
  .lb-nav-container {
    padding: 0 1rem;
    height: 3.75rem;
    gap: 0.75rem;
  }
  .lb-mark { width: 2.4rem; height: 2.4rem; }
  .lb-wordmark-top { font-size: 1.15rem; }
  .lb-wordmark-bot { font-size: 0.55rem; letter-spacing: 0.28em; }
  .lb-search[data-open="true"] .lb-search-input { width: 170px; }
  .lb-search-btn { width: 2.15rem; height: 2.15rem; }
  body { padding-top: 3.75rem; }
}
@media (max-width: 480px) {
  .lb-wordmark-bot { display: none; }
  .lb-wordmark-top { font-size: 1.05rem; }
  .lb-search[data-open="true"] .lb-search-input { width: 130px; }
}
@media (max-width: 360px) {
  .lb-wordmark { display: none; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  background: transparent !important;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(38% 70% at 92% 10%, var(--amber-faint), transparent 70%),
    radial-gradient(40% 80% at 5% 95%,  rgba(20, 33, 61, 0.6), transparent 75%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(229, 229, 229, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229, 229, 229, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 25%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 25%, transparent 85%);
  pointer-events: none;
  opacity: 0.6;
}
.hero .hero-body { padding: 4.5rem 1.5rem 3rem; position: relative; z-index: 1; }

.hero .title,
.hero .title.has-text-white {
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  font-size: clamp(2rem, 5vw, 3.4rem) !important;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 0.85rem !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: none !important;
  background-clip: border-box !important;
  -webkit-background-clip: border-box !important;
  text-shadow: none;
  position: relative;
  display: inline-block;
  font-variation-settings: "SOFT" 60, "opsz" 144;
}
.hero .title::after {
  content: "";
  display: block;
  margin-top: 0.65rem;
  width: 110px;
  height: 4px;
  border-radius: 99px;
  background: var(--amber);
  box-shadow: 0 0 14px var(--amber-glow);
}
.hero .subtitle,
.hero .subtitle.has-text-grey-lighter {
  color: var(--ink-mute) !important;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0;
}

/* =========================================================
   Section
   ========================================================= */
.section { padding: 2rem 1.5rem 5rem; }

/* Reserve right gutter on desktop so cards don't sit under the fixed alphabet rail */
@media (min-width: 769px) {
  .section { padding-right: 4rem; }
}

/* =========================================================
   Jump Rail — fixed vertical alphabet on right edge
   (replaces the old sticky horizontal bar)
   ========================================================= */
.jump-menu {
  position: fixed;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  z-index: 50;

  background: rgba(20, 33, 61, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 5px;
  box-shadow: var(--shadow-md);

  /* override existing layout */
  margin: 0 !important;
  text-align: center !important;
}
.jump-menu .is-inline-block {
  display: flex !important;
  flex-direction: column;
  gap: 1px;
}

.jump-link {
  /* reset Bulma .button defaults */
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;

  color: var(--ink-soft) !important;
  font-family: var(--font-mono) !important;
  font-weight: 700;
  font-size: 0.72rem !important;
  letter-spacing: 0;
  border-radius: 50% !important;
  cursor: pointer;

  transition:
    background-color 0.12s ease,
    color 0.12s ease,
    transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.jump-link:hover,
.jump-link:focus-visible {
  background: var(--amber) !important;
  color: var(--navy) !important;
  transform: scale(1.25);
  outline: none;
}

/* Mobile: rail becomes a horizontal scroll strip pinned under the navbar */
@media (max-width: 768px) {
  .jump-menu {
    top: 3.25rem;       /* sit flush under fixed navbar */
    right: 0;
    left: 0;
    transform: none;
    width: 100%;

    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    padding: 6px 8px;

    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .jump-menu::-webkit-scrollbar { display: none; }

  .jump-menu .is-inline-block {
    flex-direction: row !important;
    gap: 2px;
    width: max-content;
    margin: 0 auto;
  }

  .jump-link {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    font-size: 0.78rem !important;
  }
  .jump-link:hover,
  .jump-link:focus-visible { transform: scale(1.15); }
}

/* Keep navbar + hero + main content clear of the fixed jump rail on the right
   and aligned to the same .container width. The navbar gets the same 1.5rem
   horizontal padding as .hero-body / .section so its inner .lb-nav-container
   (max-width 1400px) sits in lockstep with the Bulma .container used below. */
@media (min-width: 769px) {
  .lb-navbar { padding: 0 1.5rem; }
  .lb-nav-container { padding-right: 60px; }
  .hero .hero-body > .container,
  section.section > .container {
    padding-right: 60px;
  }
}

/* =========================================================
   Footer Bar — fixed bottom, pacman chasing ghosts
   ========================================================= */
.footer-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36px;
  z-index: 40;
  background: rgba(10, 16, 36, 0.82) !important;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.footer-bar::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--amber) 50%, transparent 100%);
  opacity: 0.9;
  pointer-events: none;
}

/* The chase row */
.pm-row {
  position: absolute;
  top: 50%;
  left: 0;
  display: flex;
  align-items: center;
  gap: 22px;
  padding-right: 22px;
  white-space: nowrap;
  animation: pm-chase 16s linear infinite;
  will-change: transform;
}
@keyframes pm-chase {
  from { transform: translate(-100%, -50%); }
  to   { transform: translate(100vw, -50%); }
}

/* Pacman (two semicircles that chomp) */
.pm-pacman {
  position: relative;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(252, 163, 17, 0.35));
}
.pm-pacman-top,
.pm-pacman-bot {
  position: absolute;
  left: 0;
  width: 22px;
  height: 11px;
  background: var(--amber);
}
.pm-pacman-top {
  top: 0;
  border-radius: 22px 22px 0 0;
  transform-origin: 0 100%;
  animation: pm-chomp-top 0.42s ease-in-out infinite alternate;
}
.pm-pacman-bot {
  bottom: 0;
  border-radius: 0 0 22px 22px;
  transform-origin: 0 0;
  animation: pm-chomp-bot 0.42s ease-in-out infinite alternate;
}
@keyframes pm-chomp-top {
  from { transform: rotate(0); }
  to   { transform: rotate(-32deg); }
}
@keyframes pm-chomp-bot {
  from { transform: rotate(0); }
  to   { transform: rotate(32deg); }
}

/* Ghosts */
.pm-ghost {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  animation: pm-bob 1.1s ease-in-out infinite alternate;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}
.pm-ghost:nth-of-type(2) { animation-delay: -0.20s; }
.pm-ghost:nth-of-type(3) { animation-delay: -0.45s; }
.pm-ghost:nth-of-type(4) { animation-delay: -0.70s; }
@keyframes pm-bob {
  from { transform: translateY(0); }
  to   { transform: translateY(-2px); }
}

/* Body clearance + jump-to-top above the bar */
body.has-navbar-fixed-top { padding-bottom: 36px; }

/* =========================================================
   Letter anchor — invisible scroll target on the first card
   of each letter group. Powers the jump-menu links.
   ========================================================= */
.letter-anchor {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
  opacity: 0;
  scroll-margin-top: 5.5rem;
}
.game-col { position: relative; }

/* =========================================================
   Game Cards
   ========================================================= */
.game-col { scroll-margin-top: 150px; }

.game-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--line);
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.22s ease,
              border-color 0.22s ease,
              box-shadow 0.25s ease;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--amber);
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px var(--amber-soft);
}

/* Featured (favorite) — amber halo */
.game-card:has(.card-header-title .mr-2) {
  border-color: var(--amber);
  box-shadow:
    var(--shadow-sm),
    0 0 0 4px var(--amber-soft);
}
.game-card:has(.card-header-title .mr-2)::before {
  content: "FEATURED";
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--navy);
  background: var(--amber);
  padding: 4px 8px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

/* Marquee image — sized for marquee aspect ratio with a top strip for pill badges */
.card-image {
  background:
    radial-gradient(circle at 50% 40%, var(--bg-elev) 0%, var(--bg-card) 100%);
  aspect-ratio: 3 / 1;
  height: auto !important;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--line);
  padding: 36px 8px 8px;
}
.card-image img {
  display: block;
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: auto;
  transition: transform 0.4s ease;
  position: relative;
  z-index: 1;
}
.game-card:hover .card-image img { transform: scale(1.05) rotate(-0.5deg); }

.year-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(10, 16, 36, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  z-index: 4;
}

/* Card header */
.card-header { box-shadow: none !important; background: transparent; }
.card-header-title {
  color: var(--ink) !important;
  background: transparent !important;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display) !important;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  padding: 0.95rem 1.1rem;
  min-height: auto;
  line-height: 1.3;
  display: flex;
  align-items: center;
  font-variation-settings: "SOFT" 80, "opsz" 144;
}
.card-header-title .mr-2 {
  color: var(--amber) !important;
  margin-right: 0.5rem !important;
  font-size: 1em;
  text-shadow: 0 0 8px var(--amber-glow);
}

/* Card content */
.card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  padding: 0.95rem 1.1rem 1.1rem;
  background: transparent;
}

/* Tags */
.tags { margin-bottom: 0.95rem !important; gap: 4px; }
.tag {
  font-family: var(--font-body) !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  padding: 0 0.7rem !important;
  height: 1.65rem !important;
  border-radius: 999px !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
}
/* Company tag — platinum on navy elev */
.tag.is-info {
  background: var(--bg-elev) !important;
  color: var(--ink-soft) !important;
  border-color: var(--line-strong) !important;
}
/* Genre tag — amber soft */
.tag.is-success,
.tag.is-success.is-light {
  background: var(--amber-soft) !important;
  color: var(--amber) !important;
  border-color: rgba(252, 163, 17, 0.35) !important;
  font-style: normal !important;
}
.tag.is-white {
  background: transparent !important;
  color: var(--ink-mute) !important;
  border-color: var(--line) !important;
  font-style: normal !important;
}

/* =========================================================
   Score Box — scoreboard panel
   ========================================================= */
.score-box {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.05) 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 12px 10px;
  margin-top: auto;
  min-height: 130px;
  position: relative;
  overflow: hidden;
}
.score-box::before {
  content: "HIGH SCORES";
  display: block;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--ink-mute);
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--line);
}

.score-table { background: transparent !important; }
.score-table tbody { counter-reset: rank; }
.score-table tr { border: none !important; counter-increment: rank; }
.score-table tr + tr td { border-top: 1px dashed var(--line) !important; }
.score-table td {
  border: none !important;
  padding: 0.5rem 0.25rem !important;
  vertical-align: middle !important;
  color: var(--ink) !important;
}

/* Override the inline player-color style — keep palette consistent. */
.score-table tbody tr td { color: var(--ink) !important; }

/* Player initials — left col w/ medal */
.score-table tbody tr td:first-child {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding-left: 34px !important;
  position: relative;
}
.score-table tbody tr td:first-child::before {
  content: counter(rank);
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--navy);
  background: var(--ink-faint);
}
.score-table tbody tr:nth-child(1) td:first-child::before {
  background: var(--rank-1);
  color: var(--navy);
  box-shadow: 0 0 0 3px var(--amber-soft);
}
.score-table tbody tr:nth-child(2) td:first-child::before {
  background: var(--rank-2);
  color: var(--navy);
}
.score-table tbody tr:nth-child(3) td:first-child::before {
  background: var(--rank-3);
  color: var(--navy);
}

/* Score numbers — right col */
.score-table td:last-child {
  font-family: var(--font-mono) !important;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink) !important;
  text-align: right;
}
.score-table tbody tr:nth-child(1) td:last-child {
  color: var(--amber) !important;
  font-weight: 800;
  font-size: 0.98rem;
}
.score-table tbody tr:nth-child(2) td:last-child { color: var(--platinum) !important; }
.score-table tbody tr:nth-child(3) td:last-child { color: var(--amber-deep) !important; }

/* =========================================================
   Ghost Cards (search results not in local list)
   ========================================================= */
.ghost-card {
  opacity: 0.92;
  background: var(--bg-card) !important;
  border-style: dashed !important;
  border-color: var(--line-strong) !important;
}
.ghost-card .card-header-title { color: var(--ink-mute) !important; }

/* "No scores recorded" */
.notification.is-warning,
.notification.is-warning.is-light {
  background: var(--amber-faint) !important;
  color: var(--amber) !important;
  border: 1px solid var(--amber-soft);
  border-radius: 10px;
  font-size: 0.74rem !important;
  font-weight: 600;
  padding: 0.7rem 0.85rem !important;
  margin-top: auto;
}

/* =========================================================
   Marquee placeholder — stand-in for missing styled marquee
   ========================================================= */
.marquee-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background:
    radial-gradient(120% 80% at 50% 30%, rgba(252, 163, 17, 0.10) 0%, transparent 60%),
    linear-gradient(135deg, #0a1024 0%, #14213d 55%, #1a2a4d 100%);
  box-shadow:
    inset 0 0 0 1px rgba(252, 163, 17, 0.18),
    inset 0 0 24px rgba(252, 163, 17, 0.05);
  overflow: hidden;
}
.marquee-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 3px,
      rgba(0, 0, 0, 0.18) 3px,
      rgba(0, 0, 0, 0.18) 4px
    );
  mix-blend-mode: overlay;
  opacity: 0.55;
  pointer-events: none;
}
.marquee-placeholder::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(252, 163, 17, 0.28);
  border-radius: 6px;
  pointer-events: none;
}
.marquee-placeholder-meta {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 100%;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  text-shadow: 0 0 10px rgba(252, 163, 17, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================================================
   No-scores toggle (hero pill)
   ========================================================= */
.lb-pill-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(20, 33, 61, 0.55);
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.18s ease, color 0.18s ease,
              background-color 0.18s ease, transform 0.18s ease;
}
.lb-pill-toggle:hover {
  border-color: var(--amber);
  color: var(--ink);
  transform: translateY(-1px);
}
.lb-pill-toggle.is-on {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--navy);
  box-shadow: 0 0 0 4px var(--amber-soft);
}
.lb-pill-toggle-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-mute);
  box-shadow: 0 0 0 3px rgba(229, 229, 229, 0.08);
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}
.lb-pill-toggle.is-on .lb-pill-toggle-dot {
  background: var(--navy);
  box-shadow: 0 0 0 3px rgba(20, 33, 61, 0.25);
}

/* Hidden by default; revealed when body has .show-no-scores.
   !important needed to beat Bulma's .is-flex utility on .game-col. */
.game-col.no-scores { display: none !important; }
body.show-no-scores .game-col.no-scores { display: flex !important; }
body.favs-only .game-col:not(.is-fav) { display: none !important; }
.game-card.is-unscored { opacity: 0.78; }
.game-card.is-unscored:hover { opacity: 1; }

/* =========================================================
   Jump to top
   ========================================================= */
#jump-to-top {
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  position: fixed;
  bottom: 56px;
  right: 25px;
  z-index: 100;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
#jump-to-top:hover {
  border-color: var(--amber);
  background: var(--amber);
  transform: translateY(-3px);
}
#jump-to-top i { color: var(--ink); font-size: 1rem; transition: color 0.15s; }
#jump-to-top:hover i { color: var(--navy); }

/* =========================================================
   Focus
   ========================================================= */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

/* =========================================================
   Scrollbar
   ========================================================= */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--bg-soft);
  border-radius: 10px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--amber); }

/* =========================================================
   Mobile / responsive
   ========================================================= */
@media (max-width: 768px) {

  /* --- Push content below the new horizontal jump strip --- */
  body.has-navbar-fixed-top {
    padding-top: calc(3.25rem + 44px); /* navbar + jump strip */
  }

  /* All scroll anchors need extra clearance for the fixed strip */
  .game-col,
  .letter-anchor,
  [id^="letter-"] { scroll-margin-top: 7.5rem; }

  /* --- Section padding tighter on mobile --- */
  .section { padding: 1.25rem 0.75rem 4rem; }

  /* --- Hero spacing --- */
  .hero .hero-body { padding: 2.5rem 1rem 2rem; }
  .hero .title::after { width: 70px; height: 3px; }

  /* --- Game cards: tighten card text on mobile --- */
  .card-header-title { font-size: 1rem; padding: 0.85rem 0.95rem; }
  .card-content { padding: 0.85rem 0.95rem 0.95rem; }

  /* --- Jump-to-top out of the way of the rail/strip --- */
  #jump-to-top {
    bottom: 50px;
    right: 16px;
    width: 46px;
    height: 46px;
  }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
