/* LFF-style predictions preview (client mock) */
:root {
  --lff-bg: #111111;
  --lff-bg-elevated: #1a1a1a;
  --lff-bg-card: #1c1c1c;
  --lff-magenta: #d1005b;
  --lff-magenta-bright: #e31e4f;
  --lff-magenta-soft: rgba(209, 0, 91, 0.12);
  --lff-magenta-border: rgba(209, 0, 91, 0.35);
  --lff-green: #3a8f3a;
  --lff-text: #ffffff;
  --lff-text-muted: #b8b8b8;
  --lff-text-dim: #8a8a8a;
  --lff-radius: 16px;
  --lff-font: 'Montserrat', system-ui, sans-serif;
  --lff-max: 1240px;
  --lff-surface: #f4f4f5;
  --lff-surface-2: #ebebed;
  --lff-ink: #161616;
  --lff-ink-soft: #4a4a4a;
}

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

html { scroll-behavior: smooth; }

body.lff-preview-body {
  margin: 0;
  min-height: 100vh;
  background: var(--lff-bg);
  color: var(--lff-text);
  font-family: var(--lff-font);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--lff-magenta-bright); text-decoration: none; }
a:hover { color: #fff; }

.lff-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top utility bar */
.lff-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 1.5rem;
  background: #1e1e1e;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a9a9a;
  flex-wrap: wrap;
}
.lff-topbar-regions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.lff-topbar-regions a { color: #cfcfcf; font-weight: 500; }
.lff-topbar-regions a:hover { color: #fff; }
.lff-topbar-actions {
  display: flex;
  gap: 0.35rem;
}
.lff-chip-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff !important;
  border-radius: 2px;
}
.lff-chip-btn--green { background: var(--lff-green); }
.lff-chip-btn--magenta { background: var(--lff-magenta-bright); }

/* Main header — flat, like lff.lv */
.lff-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 1.5rem;
  background: #0f0f0f;
  border-bottom: 1px solid #222;
}
.lff-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff !important;
  min-width: 0;
  flex-shrink: 0;
}
.lff-brand-logo {
  object-fit: contain;
  flex-shrink: 0;
}
.lff-brand-logo--lff-only {
  height: 40px;
  width: auto;
  max-width: 160px;
  display: block;
}
@media (max-width: 720px) {
  .lff-brand-logo--lff-only { height: 32px; max-width: 120px; }
}
.lff-nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.lff-nav a {
  color: var(--lff-magenta-bright);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lff-nav a:hover,
.lff-nav a.is-active { color: #fff; }
.lff-nav-icons {
  display: inline-flex;
  gap: 0.65rem;
  margin-left: 0.25rem;
  color: var(--lff-magenta-bright);
  font-size: 0.9rem;
}

/* Page */
.lff-main {
  flex: 1;
  width: 100%;
  max-width: var(--lff-max);
  margin: 0 auto;
  padding: 1.35rem 1.25rem 3rem;
}

/* News carousel — dual LFF-style cards */
.lff-carousel {
  position: relative;
  margin-bottom: 1.35rem;
}
.lff-carousel-viewport {
  overflow: hidden;
  border-radius: 20px;
  padding: 0.15rem 0;
}
.lff-carousel-track {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0.85rem;
  min-height: 290px;
}
.lff-carousel-card {
  position: relative;
  display: block;
  min-height: 290px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(227, 30, 79, 0.4);
  color: #fff !important;
  box-shadow: 0 14px 30px rgba(0,0,0,0.35);
  transform: translateY(0);
  transition: transform 0.25s ease, opacity 0.25s ease, border-color 0.25s ease;
}
.lff-carousel-card.is-active {
  border-color: rgba(227, 30, 79, 0.75);
}
.lff-carousel-card:not(.is-active):not(.is-next) {
  display: none;
}
.lff-carousel-card.is-next {
  opacity: 0.92;
}
.lff-carousel-card:hover {
  transform: translateY(-2px);
  border-color: var(--lff-magenta-bright);
}
.lff-carousel-photo {
  position: absolute;
  inset: 0;
  background: center center / cover no-repeat;
  transform: scale(1.02);
  filter: none;
  image-rendering: auto;
}
.lff-carousel-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.35) 40%, rgba(0,0,0,0.88) 100%);
}
.lff-carousel-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 1.15rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.lff-carousel-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.22rem 0.55rem;
  border-radius: 3px;
  background: var(--lff-magenta-bright);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.lff-carousel-title {
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.lff-carousel-excerpt {
  color: #d5d5d5;
  font-size: 0.82rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lff-carousel-card.is-next .lff-carousel-excerpt {
  display: none;
}
.lff-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.75rem;
}
.lff-carousel-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: #1a1a1a;
  color: #fff;
  cursor: pointer;
}
.lff-carousel-btn:hover { background: var(--lff-magenta-bright); border-color: transparent; }
.lff-carousel-dots { display: flex; gap: 0.35rem; }
.lff-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
}
.lff-carousel-dot.is-active { background: var(--lff-magenta-bright); }

/* Profile widget */
.lff-profile {
  background: linear-gradient(165deg, #241018 0%, #17171a 42%, #141416 100%);
  border: 1px solid rgba(227, 30, 79, 0.35);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 10px 24px rgba(0,0,0,0.28);
  color: #fff;
}
.lff-profile-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}
.lff-profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: #2a2a2e;
  border: 2px solid rgba(227, 30, 79, 0.55);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-weight: 800;
  color: #fff;
}
.lff-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lff-profile-avatar--guest {
  background: rgba(227, 30, 79, 0.15);
  color: var(--lff-magenta-bright);
  font-size: 1.15rem;
}
.lff-profile-name {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
}
.lff-profile-sub {
  margin-top: 0.15rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lff-magenta-bright);
  font-weight: 700;
}
.lff-profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}
.lff-profile-grid > div {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 0.55rem 0.6rem;
}
.lff-profile-grid span {
  display: block;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9a9a9a;
  font-weight: 700;
  margin-bottom: 0.15rem;
}
.lff-profile-grid strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}
.lff-profile-progress {
  margin-top: 0.75rem;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.lff-profile-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--lff-magenta), var(--lff-magenta-bright));
}
.lff-profile-progress-lbl {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: #9a9a9a;
}
.lff-profile-hint {
  margin: 0;
  color: #aaa;
  font-size: 0.82rem;
  line-height: 1.4;
}
.lff-profile-guest {
  text-align: center;
}
.lff-profile-guest .lff-profile-avatar {
  margin: 0 auto 0.75rem;
}
.lff-profile-guest h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.lff-profile-guest p {
  margin: 0 0 0.85rem;
  color: #b5b5b5;
  font-size: 0.8rem;
  line-height: 1.4;
}
.lff-profile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-top: 0.85rem;
}
.lff-profile-actions .lff-btn {
  width: 100%;
  padding: 0.55rem 0.4rem;
  font-size: 0.68rem;
}

/* Dark stats for mine page */
.lff-stats--dark .lff-stat {
  background: #1b1b20;
  border-color: #323238;
  color: #fff;
  box-shadow: none;
}
.lff-stats--dark .lff-stat-lbl { color: #8f8f98; }
.lff-stats--dark .lff-stat-val { color: #fff; }
.lff-stats--dark {
  grid-template-columns: repeat(4, 1fr);
}

.lff-mine-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.lff-mine-filters a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #333;
  background: #17171b;
  color: #cfcfcf;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.lff-mine-filters a span {
  min-width: 1.4rem;
  text-align: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  padding: 0.1rem 0.35rem;
  font-size: 0.68rem;
}
.lff-mine-filters a.active {
  background: var(--lff-magenta-bright);
  border-color: var(--lff-magenta-bright);
  color: #fff;
}
.lff-mine-filters a.active span {
  background: rgba(0,0,0,0.2);
}

.lff-mine-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
.lff-mine-card .lff-mine-labot {
  cursor: pointer;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
}
.lff-mine-card.is-editing {
  box-shadow: 0 0 0 2px rgba(227, 30, 79, 0.45), 0 5px 14px rgba(0,0,0,0.18);
}
.lff-mine-card .lff-mine-edit {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: stretch;
}
.lff-mine-card .lff-mine-edit[hidden] {
  display: none !important;
}
.lff-mine-card .lff-score-inputs {
  align-self: center;
  background: #fff;
  border: 1px solid #cfcfcf;
  border-radius: 9px;
  padding: 0.15rem 0.25rem;
}
.lff-mine-card .lff-score-inputs .lff-score-input {
  width: 1.85rem;
  height: 1.85rem;
  background: #f3f3f3;
  color: #111;
  font-size: 0.95rem;
  border-radius: 6px;
  border: 1px solid transparent;
  text-align: center;
  font-weight: 800;
  font-family: inherit;
  -moz-appearance: textfield;
}
.lff-mine-card .lff-score-inputs .lff-score-input::-webkit-outer-spin-button,
.lff-mine-card .lff-score-inputs .lff-score-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.lff-mine-card .lff-score-sep {
  color: #888;
  font-weight: 800;
}
.lff-mine-card .lff-match-tools {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  border: 0;
}
.lff-mine-card .lff-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.18rem;
  justify-content: center;
}
.lff-mine-card .lff-quick button {
  border: 1px solid #bdbdbd;
  background: #fff;
  color: #444;
  border-radius: 999px;
  padding: 0.15rem 0.38rem;
  font-size: 0.6rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  min-height: 24px;
}
.lff-mine-card .lff-quick button:hover,
.lff-mine-card .lff-quick button.is-active {
  border-color: var(--lff-magenta-bright);
  color: #fff;
  background: var(--lff-magenta-bright);
}

/* legacy mine row styles kept for filters only */

/* Score inputs without steppers */
.lff-score-inputs {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid #2f2f36;
  border-radius: 8px;
  padding: 0.2rem 0.3rem;
}
.lff-score-inputs .lff-score-input {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 6px;
  border: 1px solid transparent;
  background: #101014;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  text-align: center;
  font-family: inherit;
  -moz-appearance: textfield;
}
.lff-score-inputs .lff-score-input::-webkit-outer-spin-button,
.lff-score-inputs .lff-score-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.lff-score-inputs .lff-score-input:focus {
  outline: none;
  border-color: rgba(227, 30, 79, 0.5);
}

@media (max-width: 860px) {
  .lff-stats--dark { grid-template-columns: 1fr 1fr; }
  .lff-mine-list {
    grid-template-columns: 1fr;
  }
}

/* Two-column: game + news */
.lff-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.15rem;
  align-items: start;
}
.lff-layout-main { min-width: 0; }

.lff-panel {
  background: linear-gradient(180deg, #1f1f22 0%, #17171a 100%);
  border: 1px solid #2c2c31;
  border-radius: 18px;
  padding: 1.1rem 1.1rem 1.2rem;
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
}

.lff-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  position: sticky;
  top: 5.5rem;
}
.lff-sidebar-card {
  background: var(--lff-surface);
  color: var(--lff-ink);
  border-radius: 16px;
  padding: 0.95rem;
  border: 1px solid #dedee3;
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}
.lff-sidebar-card--soft {
  background: #fafafa;
}
.lff-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.lff-sidebar-head h2,
.lff-sidebar-card h3 {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--lff-ink);
}
.lff-sidebar-head a {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--lff-magenta-bright);
  text-transform: uppercase;
}
.lff-news-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.lff-news-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  color: inherit !important;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #e4e4e8;
}
.lff-news-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.lff-news-item img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  background: #ddd;
  display: block;
}
.lff-news-item > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.lff-news-tag {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--lff-magenta-bright);
  margin-bottom: 0.15rem;
}
.lff-news-title {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--lff-ink);
}
.lff-news-item:hover .lff-news-title { color: var(--lff-magenta-bright); }
.lff-score-legend {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
}
.lff-score-legend li {
  display: flex;
  gap: 0.55rem;
  align-items: baseline;
  padding: 0.4rem 0;
  border-bottom: 1px solid #ececf0;
  font-size: 0.8rem;
  color: var(--lff-ink-soft);
}
.lff-score-legend li:last-child { border-bottom: 0; }
.lff-score-legend strong {
  color: var(--lff-magenta-bright);
  font-size: 1rem;
  min-width: 1.1rem;
}

/* Quiet page title — no glow card / pills */
.lff-page-head {
  margin-bottom: 1rem;
  padding: 1rem 1.05rem;
  border-bottom: 0;
  background: linear-gradient(180deg, #222226, #19191c);
  border: 1px solid #2f2f34;
  border-radius: 16px;
}
.lff-page-head h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.45rem, 3.2vw, 1.9rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
}
.lff-page-head p {
  margin: 0;
  color: var(--lff-text-muted);
  font-size: 0.88rem;
  line-height: 1.4;
  max-width: 40rem;
}

/* Keep compact hero for secondary pages */
.lff-hero {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #2a2a2a;
  background: none;
  border-radius: 0;
  box-shadow: none;
  min-height: 0;
}
.lff-hero-inner { padding: 0; }
.lff-hero-kicker {
  color: var(--lff-magenta-bright);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.lff-hero h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 800;
  text-transform: uppercase;
}
.lff-hero p {
  margin: 0;
  color: var(--lff-text-muted);
  font-size: 0.88rem;
}
.lff-hero-sm .lff-hero-inner { padding: 0; }

.lff-hero-meta {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.lff-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem;
  border-radius: 3px;
  border: 1px solid #333;
  background: #191919;
  font-size: 0.72rem;
  font-weight: 600;
  color: #ddd;
}
.lff-pill i { color: var(--lff-magenta-bright); }

.lff-points-inline {
  font-size: 0.75rem;
  color: var(--lff-text-dim);
  font-weight: 600;
  white-space: nowrap;
}

/* Subnav */
.lff-subnav {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.lff-subnav a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  border-radius: 3px;
  border: 1px solid #2e2e2e;
  background: transparent;
  color: var(--lff-text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lff-subnav a:hover {
  border-color: #444;
  color: #fff;
}
.lff-subnav a.active {
  background: var(--lff-magenta-bright);
  border-color: var(--lff-magenta-bright);
  color: #fff;
}

/* Points legend (rules page etc.) */
.lff-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.15rem;
}
.lff-point-card {
  border-radius: 8px;
  border: 1px solid #2e2e2e;
  background: var(--lff-bg-card);
  padding: 0.85rem 0.7rem;
  text-align: center;
}
.lff-point-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--lff-magenta-bright);
  line-height: 1;
}
.lff-point-lbl {
  margin-top: 0.35rem;
  font-size: 0.68rem;
  color: var(--lff-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

/* Stats / CTA — lighter widgets */
.lff-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.15rem;
}
.lff-stat {
  border-radius: 14px;
  background: var(--lff-surface);
  border: 1px solid #dedee3;
  padding: 0.9rem 0.95rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.16);
  color: var(--lff-ink);
}
.lff-stat-lbl {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #777;
  margin-bottom: 0.2rem;
  font-weight: 700;
}
.lff-stat-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--lff-ink);
}

.lff-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-radius: 14px;
  border: 1px solid #dedee3;
  background: var(--lff-surface);
  padding: 0.95rem 1rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.14);
}
.lff-cta-copy {
  color: var(--lff-ink-soft);
  font-weight: 600;
  font-size: 0.9rem;
}

.lff-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.05rem;
  border-radius: 3px;
  border: 1px solid var(--lff-magenta-bright);
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.lff-btn:hover {
  background: var(--lff-magenta-bright);
  color: #fff;
}
.lff-btn-solid {
  background: var(--lff-magenta-bright);
  color: #fff;
}
.lff-btn-solid:hover {
  background: #ff3a68;
  color: #fff;
}
.lff-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Sections */
.lff-section {
  margin-bottom: 1.5rem;
}
.lff-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.lff-section-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.lff-section-head p {
  margin: 0.2rem 0 0;
  color: var(--lff-text-muted);
  font-size: 0.82rem;
}

/* Match cards — LFF calendar style, compact 2-up */
.lff-matches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
.lff-match--cal {
  border: 0;
  border-radius: 12px;
  background: #d8d8d8;
  color: #222;
  overflow: hidden;
  box-shadow: 0 5px 14px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.lff-match--hot .lff-cal-date {
  background: var(--lff-magenta-bright);
  color: #fff;
}
.lff-match--cool .lff-cal-date {
  background: #fff;
  color: var(--lff-magenta-bright);
}
.lff-match--saved {
  box-shadow: 0 0 0 2px rgba(61, 155, 61, 0.45), 0 5px 14px rgba(0,0,0,0.18);
}
.lff-cal-date {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.4rem 0.65rem;
  min-height: 42px;
}
.lff-cal-date-main {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}
.lff-cal-day {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.03em;
}
.lff-cal-md {
  display: flex;
  flex-direction: column;
  gap: 0;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.15;
}
.lff-cal-date-side {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  justify-content: flex-end;
}
.lff-match--hot .lff-badge-next {
  background: #fff;
  color: var(--lff-magenta-bright);
  border: 0;
}
.lff-match--hot .lff-badge-open {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.lff-match--hot .lff-badge-saved {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.lff-match--cool .lff-badge-next {
  background: var(--lff-magenta-bright);
  color: #fff;
  border: 0;
}
.lff-match--cool .lff-badge-open {
  background: rgba(227, 30, 79, 0.1);
  color: var(--lff-magenta-bright);
  border-color: rgba(227, 30, 79, 0.3);
}
.lff-match--cool .lff-badge-saved {
  background: rgba(61, 155, 61, 0.12);
  color: #2f7a2f;
  border-color: rgba(61, 155, 61, 0.35);
}
.lff-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.lff-cal-body {
  padding: 0.65rem 0.65rem 0.6rem;
  background: #d8d8d8;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.lff-cal-face {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
}
.lff-cal-flag {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 5px rgba(0,0,0,0.08);
  display: grid;
  place-items: center;
}
.lff-cal-flag img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}
.lff-cal-flag-empty {
  font-size: 1rem;
  font-weight: 800;
  color: var(--lff-magenta-bright);
}
.lff-cal-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-width: 0;
}
.lff-cal-time {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  letter-spacing: 0.02em;
  background: rgba(34, 34, 34, 0.28);
  padding: 0.15rem 0.45rem;
  border-radius: 8px;
}
.lff-cal-score {
  font-size: 1.25rem;
  font-weight: 800;
  color: #222;
  line-height: 1;
}
.lff-cal-time-mini {
  font-size: 0.58rem;
  font-weight: 700;
  color: #666;
  letter-spacing: 0.04em;
}
.lff-cal-title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #2a2a2a;
  line-height: 1.2;
}
.lff-cal-comp {
  margin: 0.2rem 0 0;
  font-size: 0.6rem;
  font-weight: 500;
  color: #555;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lff-match--cal .lff-score-inputs {
  background: #fff;
  border: 1px solid #cfcfcf;
  border-radius: 9px;
  padding: 0.15rem 0.25rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.lff-match--cal .lff-score-inputs .lff-score-input {
  width: 1.85rem;
  height: 1.85rem;
  background: #f3f3f3;
  color: #111;
  font-size: 0.95rem;
  border-radius: 6px;
}
.lff-match--cal .lff-score-inputs .lff-score-input:focus {
  border-color: var(--lff-magenta-bright);
  background: #fff;
}
.lff-match--cal .lff-score-sep {
  color: #888;
  font-size: 0.95rem;
}

.lff-match--cal .lff-match-tools {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0,0,0,0.08);
  text-align: left;
}
.lff-match-save {
  min-width: 0;
  width: 100%;
  min-height: 30px;
  padding: 0.3rem 0.6rem;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
}
.lff-match--cal .lff-match-msg {
  margin-top: 0.45rem;
  padding: 0.35rem 0.2rem 0;
  text-align: center;
  color: #555;
  font-size: 0.68rem;
}
.lff-match--cal .lff-match-msg i {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--lff-magenta-bright);
  font-size: 0.85rem;
}
.lff-match--cal .lff-result-pred {
  margin-top: 0;
  color: #2f7a2f;
  font-weight: 700;
}

/* Crowd on light calendar cards */
.lff-match--cal .lff-crowd {
  margin: 0.45rem 0 0;
  padding: 0.35rem 0.4rem 0.4rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(0,0,0,0.06);
  text-align: left;
}
.lff-match--cal .lff-crowd-label { color: #444; font-size: 0.52rem; }
.lff-match--cal .lff-crowd-count { color: #777; font-size: 0.52rem; }
.lff-match--cal .lff-crowd-col strong { color: #777; font-size: 0.8rem; }
.lff-match--cal .lff-crowd-col span { color: #888; font-size: 0.52rem; }
.lff-match--cal .lff-crowd-col.is-lead strong { color: #111; }
.lff-match--cal .lff-crowd-col.is-lead span { color: #444; }
.lff-match--cal .lff-crowd-bar { background: #c9c9c9; height: 3px; }

.lff-crowd-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}
.lff-crowd-label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lff-crowd-label i { color: var(--lff-magenta-bright); font-size: 0.55rem; }
.lff-crowd-count {
  font-size: 0.58rem;
  font-weight: 600;
  white-space: nowrap;
}
.lff-crowd-pcts {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.35rem;
  align-items: end;
  margin-bottom: 0.35rem;
}
.lff-crowd-col {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
  text-align: center;
}
.lff-crowd-col:first-child { text-align: left; }
.lff-crowd-col:last-child { text-align: right; }
.lff-crowd-col strong {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.1;
}
.lff-crowd-col span {
  font-size: 0.58rem;
  font-weight: 650;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lff-crowd-bar {
  display: flex;
  height: 4px;
  border-radius: 999px;
  overflow: hidden;
}
.lff-crowd-seg {
  display: block;
  height: 100%;
  min-width: 2px;
}
.lff-crowd-seg--home { background: var(--lff-magenta-bright); }
.lff-crowd-seg--draw { background: #8a8a8a; }
.lff-crowd-seg--away { background: #3d9b3d; }
.lff-match-msg i {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--lff-magenta-bright);
}

@media (max-width: 640px) {
  .lff-matches {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }
  .lff-cal-face {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 0.3rem;
  }
  .lff-cal-flag {
    width: 40px;
    height: 40px;
    border-radius: 11px;
  }
  .lff-cal-day { font-size: 1.45rem; }
  .lff-cal-title { font-size: 0.75rem; }
  .lff-cal-time { font-size: 1.15rem; }
  .lff-match--cal .lff-score-inputs .lff-score-input {
    width: 1.9rem;
    height: 1.9rem;
    font-size: 0.95rem;
  }
}

.lff-alert {
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
}
.lff-alert-success {
  background: rgba(61, 155, 61, 0.12);
  border: 1px solid rgba(61, 155, 61, 0.35);
  color: #b6f0b6;
}
.lff-alert-error {
  background: rgba(209, 0, 91, 0.1);
  border: 1px solid var(--lff-magenta-border);
  color: #ffb3d6;
}

/* Leaderboard */
.lff-table-wrap {
  border-radius: 14px;
  border: 1px solid #e2e2e6;
  overflow: hidden;
  background: #fff;
}
.lff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  color: var(--lff-ink);
}
.lff-table th,
.lff-table td {
  padding: 0.75rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid #ececf0;
}
.lff-table th {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #777;
  background: #f7f7f9;
}
.lff-table tr:last-child td { border-bottom: 0; }
.lff-table tr.is-me {
  background: rgba(227, 30, 79, 0.08);
}
.lff-table .pts {
  font-weight: 800;
  color: var(--lff-magenta-bright);
  font-size: 1.05rem;
}

.lff-table-wrap--dark,
.lff-table--dark {
  background: #151519;
  border-color: #323238;
  color: #fff;
}
.lff-table--dark th {
  background: #1c1c22;
  color: #9a9a9a;
  border-bottom-color: #2c2c32;
}
.lff-table--dark td {
  border-bottom-color: #2c2c32;
  color: #eee;
}
.lff-table--dark tr.is-me {
  background: rgba(227, 30, 79, 0.14);
}

.lff-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: #aaa;
  border: 1px solid #323238;
  border-radius: 14px;
  background: #17171b;
}

.lff-my-rank {
  border-radius: 8px;
  border: 1px solid #2e2e2e;
  background: var(--lff-bg-card);
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

/* Rules */
.lff-card {
  border-radius: var(--lff-radius);
  border: 1px solid #2e2e2e;
  background: var(--lff-bg-card);
  padding: 1.25rem;
}
.lff-card h3 {
  margin: 1.25rem 0 0.65rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.lff-card h3:first-child { margin-top: 0; }
.lff-card ul,
.lff-card ol {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--lff-text-muted);
  line-height: 1.55;
}
.lff-card li + li { margin-top: 0.35rem; }

/* Footer CTA strip — like LFF join bar */
.lff-join {
  margin-top: auto;
  border-top: 1px solid #2a2a2a;
  background: linear-gradient(90deg, #2a0a16, #141414 45%);
  padding: 0.95rem 1.5rem;
}
.lff-join-inner {
  max-width: var(--lff-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.lff-join-copy {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--lff-magenta-bright);
  font-weight: 700;
  font-size: 0.95rem;
}

.lff-powered {
  border-top: 1px solid #222;
  background: #0c0c0c;
  padding: 0.75rem 1.5rem 1rem;
  text-align: center;
}
.lff-powered a {
  color: #7a7a7a;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.lff-powered a:hover { color: #fff; }
.lff-powered strong {
  color: #cfcfcf;
  font-weight: 700;
}

.lff-toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 100;
  background: #1a1a1a;
  border: 1px solid #333;
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  display: none;
}
.lff-toast.is-on { display: block; }

@media (max-width: 980px) {
  .lff-layout { grid-template-columns: 1fr; }
  .lff-sidebar { position: static; }
  .lff-nav a:not(.is-active) { display: none; }
  .lff-nav-icons { display: none; }
  .lff-nav a.is-active { display: inline-flex; }
}

@media (max-width: 860px) {
  .lff-topbar-regions { display: none; }
  .lff-points,
  .lff-stats { grid-template-columns: 1fr; }
  .lff-carousel-track {
    grid-template-columns: 1fr;
    min-height: 240px;
  }
  .lff-carousel-card,
  .lff-carousel-card.is-next {
    min-height: 240px;
  }
  .lff-carousel-card:not(.is-active) { display: none; }
}

@media (max-width: 560px) {
  .lff-header { padding: 0.75rem 0.85rem; }
  .lff-main { padding: 1rem 0.75rem 2.5rem; }
  .lff-panel { padding: 0.9rem; }
}

/* Auth (login / register / password) */
.lff-auth {
  display: grid;
  place-items: start center;
  padding: 0.5rem 0 1.5rem;
}
.lff-auth-panel {
  width: min(100%, 520px);
  background: linear-gradient(165deg, #241018 0%, #17171a 42%, #141416 100%);
  border: 1px solid #2c2c31;
  border-radius: 18px;
  padding: 1.6rem 1.45rem 1.5rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.lff-auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lff-magenta-bright);
  margin-bottom: 0.65rem;
}
.lff-auth-title {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}
.lff-auth-lead {
  margin: 0.55rem 0 1.25rem;
  color: var(--lff-text-muted);
  line-height: 1.5;
  font-size: 0.95rem;
}
.lff-auth-form {
  display: grid;
  gap: 0.95rem;
}
.lff-auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.lff-auth-field {
  display: grid;
  gap: 0.4rem;
}
.lff-auth-field label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lff-text-dim);
}
.lff-auth-field input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #35353b;
  background: #101014;
  color: #fff;
  border-radius: 8px;
  padding: 0.78rem 0.9rem;
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.lff-auth-field input:focus {
  border-color: var(--lff-magenta-bright);
  box-shadow: 0 0 0 3px var(--lff-magenta-soft);
}
.lff-auth-field input.is-invalid {
  border-color: #ff5a7a;
}
.lff-auth-error {
  color: #ff7a94;
  font-size: 0.82rem;
  line-height: 1.35;
}
.lff-auth-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  color: var(--lff-text-muted);
  font-size: 0.9rem;
}
.lff-auth-check label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
}
.lff-auth-check input {
  accent-color: var(--lff-magenta-bright);
  width: 1rem;
  height: 1rem;
}
.lff-auth-submit {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.85rem 1.1rem;
  font-weight: 700;
  font-size: 0.95rem;
}
.lff-auth-footer {
  margin: 1.15rem 0 0;
  text-align: center;
  color: var(--lff-text-dim);
  font-size: 0.9rem;
}
.lff-auth-footer a {
  color: #fff;
  font-weight: 600;
  margin-left: 0.2rem;
}
.lff-auth-footer a:hover {
  color: var(--lff-magenta-bright);
}
.lff-auth-status {
  margin-bottom: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  background: rgba(58, 143, 58, 0.15);
  border: 1px solid rgba(58, 143, 58, 0.35);
  color: #9be29b;
  font-size: 0.9rem;
}

@media (max-width: 560px) {
  .lff-auth-row { grid-template-columns: 1fr; }
  .lff-auth-panel { padding: 1.25rem 1rem 1.2rem; }
}
