/* Club Ops — mockup-faithful landscape board (dark-locked, no scroll) */

@font-face {
  font-family: "RcsOpsHud";
  src: url("/assets/fonts/BarlowSemiCondensed-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

.rcs-club-ops-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: #05070c;
  color: #f8fafc;
  overflow: hidden;
  font-family: "Segoe UI", system-ui, Roboto, sans-serif;
}

.rcs-club-ops-boot,
.rcs-club-ops-gate {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.rcs-club-ops-boot[hidden],
.rcs-club-ops-gate[hidden],
#ops-main[hidden] {
  display: none !important;
}

.rcs-club-ops-gate__card {
  max-width: 420px;
  padding: 28px 24px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.92);
}

.rcs-club-ops-gate__card h1 {
  margin: 0 0 10px;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rcs-club-ops {
  --ops-green: #45ff7a;
  --ops-green-dim: rgba(69, 255, 122, 0.18);
  --ops-panel: rgba(12, 18, 32, 0.72);
  --ops-panel-border: rgba(148, 163, 184, 0.22);
  /* Sampled from night backdrop ground edge — FS surplus below photo */
  --ops-bg-ground: #000b24;
  /* Main KPI/roster board; chip rails sit one chip-width outside it */
  --ops-board-max: 980px;
  --ops-chip-w: 168px;
  position: relative;
  box-sizing: border-box;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 22px 12px;
  padding-left: max(22px, env(safe-area-inset-left));
  padding-right: max(22px, env(safe-area-inset-right));
  padding-top: max(16px, env(safe-area-inset-top));
  padding-bottom: max(14px, env(safe-area-inset-bottom));
  overflow: hidden;
  background: var(--ops-bg-ground, #000b24);
}

.rcs-club-ops--airborne {
  box-shadow: inset 0 0 0 1px rgba(69, 255, 122, 0.28);
}

/* Field photo backdrop — night only for now; day layer can crossfade later */
.rcs-club-ops__backdrop {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background-color: var(--ops-bg-ground, #000b24); /* extends under photo when FS frame is shorter than viewport */
}

.rcs-club-ops__backdrop-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-color: var(--ops-bg-ground, #000b24);
  opacity: 0;
  transition: opacity 1.4s ease;
}

.rcs-club-ops__backdrop-layer.is-on {
  opacity: 1;
}

.rcs-club-ops__backdrop-fx {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

/*
 * Full-bleed cover frame (same aspect as club_ops_night.webp).
 * min-width/min-height 100% + aspect-ratio = object-fit: cover math
 * so the mast strobe % stays on the tip without pillarboxing the photo.
 */
.rcs-club-ops__backdrop-media {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  aspect-ratio: 1671 / 941;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  background-color: var(--ops-bg-ground, #000b24);
  background-image: url("/assets/club-ops/club_ops_night.webp");
  background-position: center center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.rcs-club-ops__backdrop-media--fx {
  background: none;
  background-color: transparent;
}

/* Day backdrop: re-add day url on media when day mode ships */

/* Clubhouse mast — aircraft-style double strobe every 3s */
.rcs-club-ops__nav-strobe {
  position: absolute;
  left: 2.2%;
  top: 15.4%;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 calc(-3.5px - 2px); /* center + 2px left */
  border-radius: 50%;
  background:
    radial-gradient(circle at center,
      #fff 0 1.1px,
      rgba(255, 255, 255, 0.55) 1.6px,
      rgba(255, 40, 30, 0.95) 2.4px,
      #ff1a14 3.2px,
      transparent 55%);
  box-shadow:
    0 0 3px 1px rgba(255, 255, 255, 0.35),
    0 0 6px 2px rgba(255, 220, 200, 0.2),
    0 0 4px 1px rgba(255, 40, 30, 0.95),
    0 0 12px 4px rgba(255, 30, 20, 0.75),
    0 0 28px 10px rgba(255, 20, 10, 0.35);
  opacity: 0;
  pointer-events: none;
  animation: rcs-club-ops-nav-strobe 3s linear infinite;
  will-change: opacity;
}

@keyframes rcs-club-ops-nav-strobe {
  /* ~60ms flash, ~120ms dark, ~60ms flash, then dark for the rest of 3s */
  0%,
  1% {
    opacity: 0;
  }
  1.5%,
  3.5% {
    opacity: 1;
  }
  4%,
  8% {
    opacity: 0;
  }
  8.5%,
  10.5% {
    opacity: 1;
  }
  11%,
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rcs-club-ops__nav-strobe {
    animation: none;
    opacity: 0;
  }
}

.rcs-club-ops__backdrop-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(4, 6, 10, 0.55) 0%, rgba(4, 6, 10, 0.28) 28%, rgba(4, 6, 10, 0.45) 62%, rgba(4, 6, 10, 0.82) 100%),
    radial-gradient(90% 50% at 50% 0%, rgba(69, 255, 122, 0.06), transparent 55%);
}

/* Lighter veil so the day field photo reads */
.rcs-club-ops__backdrop--day .rcs-club-ops__backdrop-scrim {
  background:
    linear-gradient(180deg, rgba(4, 6, 10, 0.42) 0%, rgba(4, 6, 10, 0.18) 30%, rgba(4, 6, 10, 0.35) 58%, rgba(4, 6, 10, 0.72) 100%),
    radial-gradient(90% 50% at 50% 0%, rgba(69, 255, 122, 0.05), transparent 55%);
}

.rcs-club-ops > *:not(.rcs-club-ops__backdrop):not(.rcs-club-ops__settings) {
  position: relative;
  z-index: 1;
  min-width: 0;
  flex-shrink: 0;
}

/* Lower stage: far gutters beside KPIs + roster (full remaining height) */
.rcs-club-ops > .rcs-club-ops__stage {
  flex: 1 1 auto;
  flex-shrink: 1;
  min-height: 0;
}

/* ——— PC side wings: text-only in lower left/right gutters ——— */
.rcs-club-ops__stage {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, var(--ops-board-max, 980px))
    minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  column-gap: 14px;
  width: 100%;
}

.rcs-club-ops__wing {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  max-width: 300px;
  align-self: stretch;
  overflow: hidden;
  padding: 2px 10px 0;
  pointer-events: none;
  /* Center each side-block in its gutter */
  justify-self: center;
  text-align: left;
}

.rcs-club-ops__wing-stack {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  will-change: transform;
}

/*
 * Wing fades — snappy ease-in-out.
 * If companion must move: full stack wipe → layout in the dark → staggered fade-in.
 * Else: post-only crossfade.
 */
.rcs-club-ops__wing-block.is-wing-in .rcs-club-ops__wing-item {
  animation: rcs-club-ops-wing-in var(--wing-enter-ms, 0.86s) ease-in-out both;
  animation-delay: var(--wing-enter-delay, 0ms);
}

.rcs-club-ops__wing-block.is-wing-out .rcs-club-ops__wing-item {
  animation: rcs-club-ops-wing-out var(--wing-exit-ms, 0.78s) ease-in-out both;
}

.rcs-club-ops__wing-block.is-wing-hold .rcs-club-ops__wing-item {
  opacity: 0;
  animation: none;
}

.rcs-club-ops__wing-stack.is-wing-stack-out > .rcs-club-ops__wing-block .rcs-club-ops__wing-item,
.rcs-club-ops__wing-stack.is-wing-stack-out > .rcs-club-ops__wing-tail {
  animation: rcs-club-ops-wing-out var(--wing-exit-ms, 0.78s) ease-in-out both;
}

.rcs-club-ops__wing-stack.is-wing-stack-hold > .rcs-club-ops__wing-block .rcs-club-ops__wing-item,
.rcs-club-ops__wing-stack.is-wing-stack-hold > .rcs-club-ops__wing-tail {
  opacity: 0;
  animation: none;
}

.rcs-club-ops__wing-stack.is-wing-stack-in > .rcs-club-ops__wing-block .rcs-club-ops__wing-item {
  animation: rcs-club-ops-wing-in var(--wing-enter-ms, 0.86s) ease-in-out both;
  animation-delay: var(--wing-post-delay, 0ms);
}

.rcs-club-ops__wing-stack.is-wing-stack-in > .rcs-club-ops__wing-tail {
  animation: rcs-club-ops-wing-in var(--wing-enter-ms, 0.86s) ease-in-out both;
  animation-delay: var(--wing-tail-delay, 0ms);
}

/* Companion group (sep + chat/cam) under the flipping post */
.rcs-club-ops__wing-tail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

@media (prefers-reduced-motion: reduce) {
  .rcs-club-ops__wing-block.is-wing-in .rcs-club-ops__wing-item,
  .rcs-club-ops__wing-stack.is-wing-stack-in > .rcs-club-ops__wing-block .rcs-club-ops__wing-item,
  .rcs-club-ops__wing-stack.is-wing-stack-in > .rcs-club-ops__wing-tail {
    animation: rcs-club-ops-wing-in-reduced 0.2s ease both;
    animation-delay: 0ms;
  }

  .rcs-club-ops__wing-block.is-wing-out .rcs-club-ops__wing-item,
  .rcs-club-ops__wing-stack.is-wing-stack-out > .rcs-club-ops__wing-block .rcs-club-ops__wing-item,
  .rcs-club-ops__wing-stack.is-wing-stack-out > .rcs-club-ops__wing-tail {
    animation: rcs-club-ops-wing-out-reduced 0.16s ease both;
  }
}

.rcs-club-ops__wing-item {
  margin: 0;
  max-width: 100%;
}

.rcs-club-ops__wing-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 10px;
  margin: 0 0 8px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.rcs-club-ops__wing-head .rcs-club-ops__wing-kicker {
  margin: 0;
  flex: 0 1 auto;
  min-width: 0;
}

.rcs-club-ops__wing-by {
  margin: 0;
  margin-left: auto;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 55%;
  text-align: right;
  font-family: "RcsOpsHud", "Segoe UI", system-ui, sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  color: #fff;
  overflow-wrap: anywhere;
}

.rcs-club-ops__wing-kicker {
  margin: 0 0 8px;
  font-family: "RcsOpsHud", "Segoe UI", system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ops-green);
  text-shadow: 0 0 14px rgba(69, 255, 122, 0.35);
}

.rcs-club-ops__wing-byline {
  margin: 4px 0 8px;
  font-size: 0.78rem;
  color: var(--rcs-muted, #94a3b8);
}

.rcs-club-ops__wing-title {
  margin: 0;
  font-family: "RcsOpsHud", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(1.05rem, 1.5vw, 1.45rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: #f8fafc;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65);
}

.rcs-club-ops__wing-scroll {
  margin-top: 10px;
  max-height: min(38vh, 260px);
  overflow: hidden;
}

.rcs-club-ops__wing-scroll.is-scrolling,
.rcs-club-ops__card-scroll.is-scrolling {
  mask-image: linear-gradient(180deg, #000 0%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 92%, transparent 100%);
}

/* Thin edge only while more days sit below. The last day stays solid. */
.rcs-club-ops__planner-days.is-scrolling:not(.is-scroll-end) {
  mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 14px), transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 14px), transparent 100%);
}

.rcs-club-ops__wing-body,
.rcs-club-ops__wing-meta,
.rcs-club-ops__wing-empty {
  margin: 10px 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
  color: #94a3b8;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}

.rcs-club-ops__wing-scroll .rcs-club-ops__wing-body {
  margin: 0;
}

.rcs-club-ops__wing-item--pic .rcs-club-ops__wing-kicker {
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.72);
}

.rcs-club-ops__wing-photo {
  margin: 8px 0 0;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  background: rgba(8, 12, 22, 0.65);
}

.rcs-club-ops__wing-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Live PotW: louder kicker */
.rcs-club-ops__wing-item--pic.is-current-potw .rcs-club-ops__wing-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--ops-green);
  text-shadow: 0 0 18px rgba(69, 255, 122, 0.55);
}

.rcs-club-ops__wing-item--pic.is-current-potw .rcs-club-ops__wing-photo {
  border-color: rgba(69, 255, 122, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(69, 255, 122, 0.2);
}

/* Archive / previous / steward-kept */
.rcs-club-ops__wing-item--pic.is-archive-pic .rcs-club-ops__wing-kicker {
  color: #94a3b8;
  text-shadow: none;
  letter-spacing: 0.16em;
}

.rcs-club-ops__wing-meta {
  color: #86efac;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Sharp-tip stripe between different wing blocks */
.rcs-club-ops__wing-sep {
  height: 1px;
  width: 100%;
  margin: 10px 0 8px;
  border: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(69, 255, 122, 0.15) 8%,
    rgba(226, 232, 240, 0.55) 50%,
    rgba(69, 255, 122, 0.15) 92%,
    transparent 100%
  );
  flex-shrink: 0;
}

.rcs-club-ops__chat-sliver {
  min-width: 0;
  max-width: 100%;
}

.rcs-club-ops__chat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rcs-club-ops__chat-line {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  min-width: 0;
  font-size: 0.72rem;
  line-height: 1.25;
  color: #94a3b8;
}

.rcs-club-ops__chat-who {
  flex: 0 0 auto;
  font-weight: 800;
  color: #86efac;
  letter-spacing: 0.04em;
}

.rcs-club-ops__chat-body {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

.rcs-club-ops__chat-empty {
  margin: 4px 0 0;
  font-size: 0.72rem;
}

.rcs-club-ops__cam {
  min-width: 0;
  width: 100%;
}

.rcs-club-ops__cam-frame {
  margin-top: 6px;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #000;
  aspect-ratio: 16 / 9;
  max-height: min(22vh, 180px);
}

.rcs-club-ops__cam-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.rcs-club-ops__wing-item--pic.is-with-cam .rcs-club-ops__wing-photo {
  max-height: min(28vh, 220px);
}

.rcs-club-ops__wing-item--pic.is-with-cam .rcs-club-ops__wing-photo img {
  max-height: min(28vh, 220px);
  object-fit: cover;
}

.rcs-club-ops__wing-empty {
  font-style: italic;
  color: #64748b;
}

/* Snappy settle — opacity + tiny lift, ease-in-out */
@keyframes rcs-club-ops-wing-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rcs-club-ops-wing-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-3px);
  }
}

@keyframes rcs-club-ops-wing-in-reduced {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes rcs-club-ops-wing-out-reduced {
  from { opacity: 1; }
  to { opacity: 0; }
}

@media (max-width: 1100px) {
  .rcs-club-ops__wing {
    display: none;
  }
  .rcs-club-ops__stage {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }
  .rcs-club-ops__stage .rcs-club-ops__body {
    width: 100%;
    max-width: var(--ops-board-max, 980px);
  }
}

/* ——— Header (logo | title | crest) — full width; day/date overlay chip gutters ——— */
.rcs-club-ops__head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(0, 2.2fr) minmax(120px, 1fr);
  align-items: center;
  gap: 12px 18px;
  flex-shrink: 0;
  width: 100%;
}

/* Same centered frame as .rcs-club-ops__hud — stamps sit in chip columns only */
.rcs-club-ops__head-stamps {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, calc(var(--ops-board-max, 980px) + 2 * var(--ops-chip-w, 168px)));
  pointer-events: none;
  z-index: 2;
}

.rcs-club-ops__brand {
  justify-self: start;
}

.rcs-club-ops__brand img {
  display: block;
  height: 30px;
  width: auto;
  max-width: 180px;
}

.rcs-club-ops__title-block {
  text-align: center;
  min-width: 0;
}

.rcs-club-ops__kicker {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ops-green);
  text-shadow: 0 0 16px rgba(69, 255, 122, 0.45);
}

.rcs-club-ops__club {
  margin: 4px 0 0;
  font-size: clamp(1.35rem, 3vw, 2.05rem);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.rcs-club-ops__crest {
  justify-self: end;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(248, 250, 252, 0.18);
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.12), transparent 55%),
    rgba(15, 23, 42, 0.9);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/*
 * HUD: [chip-rail | board-width center | chip-rail]
 * Left chip RIGHT edge == board LEFT edge (and body/KPI left edge).
 * Right chip LEFT edge == board RIGHT edge.
 */
.rcs-club-ops__hud {
  display: grid;
  grid-template-columns:
    var(--ops-chip-w, 168px)
    minmax(0, 1fr)
    var(--ops-chip-w, 168px);
  align-items: center;
  justify-content: center;
  column-gap: 0;
  row-gap: 8px;
  width: 100%;
  max-width: calc(var(--ops-board-max, 980px) + 2 * var(--ops-chip-w, 168px));
  margin: 0 auto;
  flex-shrink: 0;
  box-sizing: border-box;
}

.rcs-club-ops__hud--solo {
  grid-template-columns: minmax(0, 1fr);
  max-width: min(720px, var(--ops-board-max, 980px));
}

.rcs-club-ops__hud-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  width: 100%;
}

.rcs-club-ops__rail {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  width: var(--ops-chip-w, 168px);
  min-width: 0;
  box-sizing: border-box;
}

.rcs-club-ops__rail--left {
  justify-self: stretch;
}

.rcs-club-ops__rail--right {
  justify-self: stretch;
}

.rcs-club-ops__rail > * {
  width: 100%;
  box-sizing: border-box;
}

/* Day / date: chip-column overlays on the logo row (no box, no layout shift) */
.rcs-club-ops__rail-day,
.rcs-club-ops__rail-date {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  padding: 0 4px;
  width: var(--ops-chip-w, 168px);
  box-sizing: border-box;
  font-family: "RcsOpsHud", "Segoe UI", system-ui, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  color: #f8fafc;
  text-align: center;
  line-height: 1.1;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}

.rcs-club-ops__rail-day {
  left: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  letter-spacing: 0.14em;
  overflow-wrap: anywhere;
}

.rcs-club-ops__rail-date {
  right: 0;
  font-size: clamp(0.95rem, 1.9vw, 1.28rem);
  letter-spacing: 0.12em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.rcs-club-ops__crest img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rcs-club-ops__crest-mono {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #86efac;
}

/* ——— Status band (LIVE | clock | phase) ——— */
.rcs-club-ops__status-stack {
  --ops-status-w: min(420px, 92%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  flex-shrink: 0;
}

.rcs-club-ops__status-stack .rcs-club-ops__rule {
  width: var(--ops-status-w);
}

.rcs-club-ops__status-band {
  position: relative;
  width: var(--ops-status-w);
  padding: 8px 0 10px;
  /* Fade tips align with hairline tip zones (~0–8% / 92–100%) */
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(2, 6, 14, 0.2) 8%,
    rgba(2, 6, 14, 0.72) 22%,
    rgba(2, 6, 14, 0.82) 50%,
    rgba(2, 6, 14, 0.72) 78%,
    rgba(2, 6, 14, 0.2) 92%,
    transparent 100%
  );
}

.rcs-club-ops__clock-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  min-height: 44px;
  gap: 0;
}

.rcs-club-ops__status-slot {
  display: flex;
  align-items: center;
  min-width: 0;
}

.rcs-club-ops__status-slot--live {
  justify-content: flex-end;
  padding-right: 18px;
}

.rcs-club-ops__status-slot--clock {
  position: relative;
  justify-content: center;
  padding: 0 22px;
}

.rcs-club-ops__status-slot--clock::before,
.rcs-club-ops__status-slot--clock::after {
  content: "";
  position: absolute;
  top: 12%;
  bottom: 12%;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(226, 232, 240, 0.5) 28%,
    rgba(226, 232, 240, 0.5) 72%,
    transparent
  );
  pointer-events: none;
}

.rcs-club-ops__status-slot--clock::before { left: 0; }
.rcs-club-ops__status-slot--clock::after { right: 0; }

.rcs-club-ops__status-slot--phase {
  justify-content: flex-start;
  padding-left: 18px;
}

.rcs-club-ops__live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "RcsOpsHud", "Segoe UI", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ops-green);
  text-shadow: 0 0 14px rgba(69, 255, 122, 0.45);
}

.rcs-club-ops__live-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ops-green);
  box-shadow: 0 0 12px rgba(69, 255, 122, 0.95);
  animation: rcs-club-ops-pulse 2.1s ease-in-out infinite;
}

.rcs-club-ops__clock {
  font-family: "RcsOpsHud", "Segoe UI", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.85rem, 4.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  color: #f8fafc;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

.rcs-club-ops__phase {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(10, 14, 24, 0.88);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  font-family: "RcsOpsHud", "Segoe UI", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e2e8f0;
}

.rcs-club-ops__phase::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.9;
  flex: 0 0 auto;
}

.rcs-club-ops__phase--daylight {
  border-color: rgba(250, 204, 21, 0.5);
  color: #fde68a;
}
.rcs-club-ops__phase--daylight::before {
  background: radial-gradient(circle at 35% 35%, #fff7ad, #facc15 55%, #ca8a04);
  box-shadow: 0 0 8px rgba(250, 204, 21, 0.65);
}

.rcs-club-ops__phase--dawn { border-color: rgba(251, 146, 60, 0.5); color: #fdba74; }
.rcs-club-ops__phase--dusk,
.rcs-club-ops__phase--sunset { border-color: rgba(249, 115, 22, 0.55); color: #fdba74; }

.rcs-club-ops__phase--night {
  border-color: rgba(148, 163, 184, 0.45);
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.92);
}
.rcs-club-ops__phase--night::before {
  width: 11px;
  height: 11px;
  background: transparent;
  box-shadow: inset -3px 0 0 0 #e2e8f0;
  border-radius: 50%;
  opacity: 1;
}

/* ——— Sun / moon arc ——— */
.rcs-club-ops__sunarc {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  column-gap: 0;
  row-gap: 0;
  width: min(480px, 100%);
  margin: 2px auto 4px;
  flex-shrink: 0;
}

.rcs-club-ops__sunarc-end {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 1px;
  min-width: 0;
  max-width: 4.6rem;
  line-height: 1.05;
  text-align: center;
  position: relative;
  z-index: 1;
}

.rcs-club-ops__sunarc-end--left {
  margin-right: -6px;
}

.rcs-club-ops__sunarc-end--right {
  margin-left: -6px;
}

.rcs-club-ops__sunarc-lbl {
  font-family: "RcsOpsHud", "Segoe UI", system-ui, sans-serif;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e2e8f0;
  white-space: nowrap;
}

.rcs-club-ops__sunarc-time {
  font-family: "RcsOpsHud", "Segoe UI", system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: #e2e8f0;
  line-height: 1;
  white-space: nowrap;
}

.rcs-club-ops__sunarc-track {
  min-width: 0;
  height: 44px;
  margin: 0 -2px;
}

.rcs-club-ops__sunarc-svg {
  display: block;
  width: 100%;
  height: 44px;
  overflow: visible;
}

.rcs-club-ops__sunarc-path {
  filter: drop-shadow(0 0 4px rgba(250, 204, 21, 0.2));
}

.rcs-club-ops__sunarc--night .rcs-club-ops__sunarc-path {
  filter: drop-shadow(0 0 4px rgba(165, 180, 252, 0.25));
}

.rcs-club-ops__sunarc-marker {
  transform-box: fill-box;
  transform-origin: center;
}

.rcs-club-ops__sunarc-sun {
  fill: rgba(250, 204, 21, 0.35);
  stroke: #facc15;
  stroke-width: 1.2;
  filter: drop-shadow(0 0 6px rgba(250, 204, 21, 0.75));
}

.rcs-club-ops__sunarc-sun-core {
  fill: #fef9c3;
}

.rcs-club-ops__sunarc-moon {
  fill: #e2e8f0;
  filter: drop-shadow(0 0 6px rgba(199, 210, 254, 0.65));
}

.rcs-club-ops__sunarc--night .rcs-club-ops__sunarc-lbl {
  color: #e2e8f0;
}

.rcs-club-ops__meta-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.rcs-club-ops__weather {
  margin: 0;
  max-width: 720px;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  font-size: 0.88rem;
  font-weight: 700;
  color: #cbd5e1;
  text-align: center;
  overflow-wrap: anywhere;
}

/* ——— Hairlines + glare clipped TO the line (no floating blob) ——— */
.rcs-club-ops__rule {
  position: relative;
  width: min(760px, 94%);
  /* Tight clip window = only the hairline slice of the slanted streak shows */
  height: 3px;
  margin: 4px auto;
  flex-shrink: 0;
  overflow: hidden;
  pointer-events: none;
}

.rcs-club-ops__rule::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  margin-top: -0.5px;
  /* Same tip fade on every rule (3 lines × 2 ends = 6) */
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(69, 255, 122, 0.08) 4%,
    rgba(226, 232, 240, 0.45) 12%,
    rgba(226, 232, 240, 0.75) 50%,
    rgba(226, 232, 240, 0.45) 88%,
    rgba(69, 255, 122, 0.08) 96%,
    transparent 100%
  );
}

.rcs-club-ops__rule-glare {
  position: absolute;
  top: 50%;
  left: -12%;
  z-index: 2;
  /* Tall + slanted — parent overflow crops to the hairline */
  width: 100px;
  height: 80px;
  margin-top: -40px;
  margin-left: -50px; /* center streak on left% point */
  border-radius: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.25) 28%,
    rgba(255, 255, 255, 1) 48%,
    #fff 50%,
    rgba(69, 255, 122, 0.9) 56%,
    rgba(255, 255, 255, 0.2) 72%,
    transparent 100%
  );
  filter: blur(0.4px);
  opacity: 0;
  transform: translateY(0) rotate(var(--ops-glare-slant, 20deg));
  pointer-events: none;
}

.rcs-club-ops__rule-glare.is-flying {
  will-change: left, opacity, transform;
}

.rcs-club-ops__rule-glare.is-flying.is-glare-dash {
  animation: rcs-club-ops-glare-dash var(--ops-glare-dur, 1.2s) cubic-bezier(0.33, 0.05, 0.25, 1) forwards;
}
.rcs-club-ops__rule-glare.is-flying.is-glare-zip {
  animation: rcs-club-ops-glare-zip var(--ops-glare-dur, 0.7s) cubic-bezier(0.15, 0.85, 0.35, 1) forwards;
}
.rcs-club-ops__rule-glare.is-flying.is-glare-crawl {
  animation: rcs-club-ops-glare-crawl var(--ops-glare-dur, 3.4s) linear forwards;
}
.rcs-club-ops__rule-glare.is-flying.is-glare-pulse {
  animation: rcs-club-ops-glare-pulse var(--ops-glare-dur, 2s) ease-in-out forwards;
}
.rcs-club-ops__rule-glare.is-flying.is-glare-bounce {
  animation: rcs-club-ops-glare-bounce var(--ops-glare-dur, 1.8s) cubic-bezier(0.34, 1.2, 0.4, 1) forwards;
}
.rcs-club-ops__rule-glare.is-flying.is-glare-weave {
  animation: rcs-club-ops-glare-weave var(--ops-glare-dur, 2.2s) cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
}
.rcs-club-ops__rule-glare.is-flying.is-glare-comet {
  animation: rcs-club-ops-glare-comet var(--ops-glare-dur, 1.7s) cubic-bezier(0.22, 0.7, 0.25, 1) forwards;
}
.rcs-club-ops__rule-glare.is-flying.is-glare-skip {
  animation: rcs-club-ops-glare-skip var(--ops-glare-dur, 1.5s) cubic-bezier(0.55, 0.05, 0.35, 1) forwards;
}
.rcs-club-ops__rule-glare.is-flying.is-glare-drift {
  animation: rcs-club-ops-glare-drift var(--ops-glare-dur, 2.6s) ease-in-out forwards;
}

.rcs-club-ops__rule-glare.is-glare-big {
  width: 140px;
  height: 96px;
  margin-top: -48px;
  margin-left: -70px;
  filter: blur(0.55px);
}

.rcs-club-ops__rule-glare.is-glare-sm {
  width: 64px;
  height: 56px;
  margin-top: -28px;
  margin-left: -32px;
  opacity: 0;
  filter: blur(0.35px);
}

/* Continuous sweep — no mid stop */
@keyframes rcs-club-ops-glare-dash {
  0% { opacity: 0; left: var(--ops-glare-from, -14%); transform: rotate(var(--ops-glare-slant, 16deg)); }
  8% { opacity: 1; }
  100% { opacity: 0; left: var(--ops-glare-to, 114%); transform: rotate(var(--ops-glare-slant, 16deg)); }
}

/* Quick bright zip */
@keyframes rcs-club-ops-glare-zip {
  0% { opacity: 0; left: var(--ops-glare-from, -14%); transform: rotate(var(--ops-glare-slant, 10deg)) scaleX(0.7); }
  15% { opacity: 1; transform: rotate(var(--ops-glare-slant, 10deg)) scaleX(1.15); }
  100% { opacity: 0; left: var(--ops-glare-to, 114%); transform: rotate(var(--ops-glare-slant, 10deg)) scaleX(0.8); }
}

/* Very slow crawl */
@keyframes rcs-club-ops-glare-crawl {
  0% { opacity: 0; left: var(--ops-glare-from, -14%); transform: rotate(var(--ops-glare-slant, 12deg)); }
  6% { opacity: 0.85; }
  92% { opacity: 0.55; }
  100% { opacity: 0; left: var(--ops-glare-to, 114%); transform: rotate(var(--ops-glare-slant, 12deg)); }
}

/* Bloom in place — almost no travel */
@keyframes rcs-club-ops-glare-pulse {
  0% { opacity: 0; left: var(--ops-glare-park, 48%); transform: rotate(var(--ops-glare-slant, 8deg)) scaleX(0.4); }
  22% { opacity: 1; transform: rotate(var(--ops-glare-slant, 8deg)) scaleX(1.15); }
  48% { opacity: 0.55; transform: rotate(var(--ops-glare-slant-mid, 4deg)) scaleX(0.85); }
  72% { opacity: 0.95; transform: rotate(var(--ops-glare-slant, 8deg)) scaleX(1.05); }
  100% { opacity: 0; left: var(--ops-glare-park, 48%); transform: rotate(var(--ops-glare-slant, 8deg)) scaleX(0.5); }
}

/* Go mid, reverse back out the entrance */
@keyframes rcs-club-ops-glare-bounce {
  0% { opacity: 0; left: var(--ops-glare-from, -14%); transform: rotate(var(--ops-glare-slant, 14deg)); }
  12% { opacity: 1; }
  48% { left: var(--ops-glare-mid, 46%); opacity: 1; transform: rotate(var(--ops-glare-slant-mid, 6deg)); }
  100% { opacity: 0; left: var(--ops-glare-from, -14%); transform: rotate(var(--ops-glare-slant, 14deg)); }
}

/* Continuous weave — never parks */
@keyframes rcs-club-ops-glare-weave {
  0% { opacity: 0; left: var(--ops-glare-from, -14%); transform: rotate(var(--ops-glare-slant, 18deg)) translateY(0); }
  10% { opacity: 1; }
  28% { left: var(--ops-glare-mid, 34%); transform: rotate(var(--ops-glare-slant-mid, 8deg)) translateY(-1px); }
  52% { left: var(--ops-glare-mid2, 62%); transform: rotate(var(--ops-glare-slant, 18deg)) translateY(1px); }
  78% { opacity: 0.7; transform: rotate(var(--ops-glare-slant-mid, 8deg)) translateY(-0.5px); }
  100% { opacity: 0; left: var(--ops-glare-to, 114%); transform: rotate(var(--ops-glare-slant, 18deg)) translateY(0); }
}

/* Soft long comet */
@keyframes rcs-club-ops-glare-comet {
  0% { opacity: 0; left: var(--ops-glare-from, -14%); transform: rotate(var(--ops-glare-slant, 20deg)) scaleX(1.4); }
  14% { opacity: 0.95; }
  100% { opacity: 0; left: var(--ops-glare-to, 114%); transform: rotate(var(--ops-glare-slant, 20deg)) scaleX(0.6); }
}

/* Two short hops — skip along the line */
@keyframes rcs-club-ops-glare-skip {
  0% { opacity: 0; left: var(--ops-glare-from, -14%); transform: rotate(var(--ops-glare-slant, 12deg)) scaleY(0.7); }
  8% { opacity: 1; }
  22% { left: var(--ops-glare-mid, 36%); opacity: 0.15; transform: rotate(var(--ops-glare-slant-mid, 4deg)) scaleY(0.4); }
  30% { opacity: 1; transform: rotate(var(--ops-glare-slant, 12deg)) scaleY(1); }
  48% { left: var(--ops-glare-mid2, 68%); opacity: 0.12; transform: rotate(var(--ops-glare-slant-mid, 4deg)) scaleY(0.4); }
  58% { opacity: 1; transform: rotate(var(--ops-glare-slant, 12deg)) scaleY(1); }
  100% { opacity: 0; left: var(--ops-glare-to, 114%); transform: rotate(var(--ops-glare-slant, 12deg)) scaleY(0.7); }
}

/* Lazy side drift with gentle fade */
@keyframes rcs-club-ops-glare-drift {
  0% { opacity: 0; left: var(--ops-glare-from, -14%); transform: rotate(var(--ops-glare-slant, 10deg)); }
  18% { opacity: 0.9; }
  55% { left: var(--ops-glare-mid, 50%); opacity: 0.75; transform: rotate(var(--ops-glare-slant-mid, 4deg)); }
  100% { opacity: 0; left: var(--ops-glare-to, 114%); transform: rotate(var(--ops-glare-slant, 10deg)); }
}

@media (prefers-reduced-motion: reduce) {
  .rcs-club-ops__rule-glare,
  .rcs-club-ops__rule-glare.is-flying {
    animation: none !important;
    display: none;
  }
  .rcs-club-ops__vane-needle {
    transition: none !important;
  }
}

/* Rail chips share the same card language */

.rcs-club-ops__vane {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  min-width: 0;
  min-height: 76px;
  padding: 6px 8px;
  border-radius: 14px;
  border: 1px solid rgba(250, 204, 21, 0.35);
  background:
    linear-gradient(120deg, rgba(250, 204, 21, 0.12), transparent 42%),
    linear-gradient(145deg, rgba(12, 18, 32, 0.88), rgba(6, 10, 18, 0.75));
  box-shadow:
    inset 3px 0 0 #facc15,
    0 10px 28px rgba(0, 0, 0, 0.35);
}

.rcs-club-ops__vane-dial {
  position: relative;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.1), transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.2), rgba(2, 6, 23, 0.85));
  box-shadow:
    inset 0 0 0 1px rgba(148, 163, 184, 0.25),
    0 0 18px rgba(69, 255, 122, 0.12);
}

.rcs-club-ops__vane-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.rcs-club-ops__vane-ring {
  fill: none;
  stroke: rgba(148, 163, 184, 0.45);
  stroke-width: 1.2;
}

.rcs-club-ops__vane-ring--inner {
  stroke: rgba(69, 255, 122, 0.28);
  stroke-width: 0.8;
}

.rcs-club-ops__vane-ticks {
  fill: none;
  stroke: rgba(226, 232, 240, 0.75);
  stroke-width: 1.4;
  stroke-linecap: round;
}

.rcs-club-ops__vane-cardinal {
  fill: #94a3b8;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-family: "Segoe UI", system-ui, sans-serif;
}

.rcs-club-ops__vane-needle {
  transform-box: view-box;
  transform-origin: 50px 52px;
  transform: rotate(var(--ops-wd, 0deg));
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  fill: var(--ops-green);
  filter: drop-shadow(0 0 4px rgba(69, 255, 122, 0.65));
}

.rcs-club-ops__vane-tail {
  fill: #e2e8f0;
  opacity: 0.9;
  filter: none;
}

.rcs-club-ops__vane-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 0;
}

.rcs-club-ops__vane-lbl {
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #64748b;
}

.rcs-club-ops__vane-deg {
  font-size: 1.25rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  color: #f8fafc;
  text-shadow: 0 0 12px rgba(69, 255, 122, 0.25);
}

.rcs-club-ops__vane-spd {
  font-size: 0.88rem;
  font-weight: 800;
  color: #86efac;
}

.rcs-club-ops__vane-hint {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

.rcs-club-ops__rwy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-sizing: border-box;
  min-width: 0;
  min-height: 76px;
  padding: 6px 8px;
  text-align: center;
  border-radius: 14px;
  border: 1px solid rgba(250, 204, 21, 0.35);
  background:
    linear-gradient(120deg, rgba(250, 204, 21, 0.12), transparent 42%),
    linear-gradient(145deg, rgba(12, 18, 32, 0.88), rgba(6, 10, 18, 0.75));
  box-shadow:
    inset 3px 0 0 #facc15,
    0 10px 28px rgba(0, 0, 0, 0.35);
}

.rcs-club-ops__rwy-lbl {
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fde68a;
}

.rcs-club-ops__rwy-num {
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: 0.04em;
  color: #fefce8;
  text-shadow: 0 0 16px rgba(250, 204, 21, 0.35);
}

.rcs-club-ops__rwy-meta {
  font-size: 0.75rem;
  font-weight: 700;
  color: #cbd5e1;
  overflow-wrap: anywhere;
  text-align: center;
}

.rcs-club-ops__thermo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-sizing: border-box;
  min-width: 0;
  min-height: 76px;
  padding: 6px 8px;
  text-align: center;
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  background:
    linear-gradient(120deg, rgba(56, 189, 248, 0.14), transparent 42%),
    linear-gradient(145deg, rgba(12, 18, 32, 0.88), rgba(6, 10, 18, 0.75));
  box-shadow:
    inset 3px 0 0 #38bdf8,
    0 10px 28px rgba(0, 0, 0, 0.35);
}

.rcs-club-ops__thermo-lbl {
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.rcs-club-ops__rain {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-sizing: border-box;
  min-width: 0;
  min-height: 76px;
  padding: 6px 8px;
  text-align: center;
  border-radius: 14px;
  border: 1px solid rgba(96, 165, 250, 0.45);
  background:
    linear-gradient(120deg, rgba(59, 130, 246, 0.16), transparent 42%),
    linear-gradient(145deg, rgba(12, 18, 32, 0.88), rgba(6, 10, 18, 0.75));
  box-shadow:
    inset 3px 0 0 #60a5fa,
    0 10px 28px rgba(0, 0, 0, 0.35);
}

.rcs-club-ops__rain-lbl {
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #93c5fd;
}

.rcs-club-ops__rain-now {
  font-family: "RcsOpsHud", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: #eff6ff;
  text-shadow: 0 0 14px rgba(96, 165, 250, 0.4);
}

.rcs-club-ops__rain-next {
  font-size: 0.7rem;
  font-weight: 700;
  color: #bfdbfe;
  overflow-wrap: anywhere;
  text-align: center;
}

.rcs-club-ops__thermo-temp {
  font-family: "RcsOpsHud", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: #f0f9ff;
  text-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
}

.rcs-club-ops__thermo-dew {
  font-size: 0.75rem;
  font-weight: 700;
  color: #bae6fd;
  overflow-wrap: anywhere;
  text-align: center;
}

@media (max-width: 820px) {
  .rcs-club-ops__hud {
    grid-template-columns: 1fr;
    max-width: var(--ops-board-max, 980px);
    gap: 8px;
  }
  .rcs-club-ops__rail {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }
  .rcs-club-ops__rail > * {
    flex: 1 1 140px;
  }
  .rcs-club-ops__head-stamps {
    display: none;
  }
}

/* ——— KPI tiles ——— */
.rcs-club-ops__body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
}

.rcs-club-ops__stage > .rcs-club-ops__body {
  min-width: 0;
}

.rcs-club-ops__counts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.rcs-club-ops__count {
  box-sizing: border-box;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  align-self: start;
  aspect-ratio: 1200 / 365;
  height: auto;
  min-height: 0;
  padding: 12px 16px 14px 6%;
  border-radius: 16px;
  border: 0;
  background-color: #04060a;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
}

/* KPI art: 960≈2× desktop tile (~482×147); 720≈3× phone tile (~190×58) */
.rcs-club-ops__count--onfield {
  background-image: url("/assets/club-ops/club-ops-onfield-960.webp");
}

.rcs-club-ops__count--air {
  background-image: url("/assets/club-ops/club-ops-airborne-960.webp");
  box-shadow:
    0 0 0 1px rgba(69, 255, 122, 0.2),
    0 0 36px rgba(69, 255, 122, 0.18),
    0 16px 40px rgba(0, 0, 0, 0.4);
}

.rcs-club-ops__count-num {
  position: relative;
  z-index: 1;
  margin-top: -0.15em;
  font-size: clamp(2.8rem, 9vw, 4.6rem);
  font-weight: 900;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.75);
}

.rcs-club-ops__count-num--air {
  color: var(--ops-green);
  text-shadow:
    0 0 22px rgba(69, 255, 122, 0.55),
    0 2px 18px rgba(0, 0, 0, 0.75);
  animation: rcs-club-ops-pulse 2.4s ease-in-out infinite;
}

.rcs-club-ops__count-num--air.is-zero {
  color: #f8fafc;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.75);
  animation: none;
}

/* ——— Roster pills (2-col) ——— */
.rcs-club-ops__roster-wrap {
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

/* Quiet-field bonus grid under the KPIs. Cells stretch — never a thin bar. */
.rcs-club-ops__bonus {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: 100%;
  display: grid;
  gap: 12px;
  align-content: stretch;
}

.rcs-club-ops__bonus.is-empty {
  visibility: hidden;
}

.rcs-club-ops__bonus--1 {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
}

.rcs-club-ops__bonus--2 {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
}

.rcs-club-ops__bonus--3 {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1.15fr) minmax(0, 1fr);
}

.rcs-club-ops__bonus--3 > :first-child {
  grid-column: 1 / -1;
}

.rcs-club-ops__bonus--4 {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
}

.rcs-club-ops__bonus-cell {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.rcs-club-ops__bonus-cell > .rcs-club-ops__mash-card,
.rcs-club-ops__bonus-cell > .rcs-club-ops__planner {
  height: 100%;
  max-height: none;
}

.rcs-club-ops__bonus .rcs-club-ops__mash-photo {
  margin-top: 8px;
  border-radius: 10px;
  overflow: hidden;
}

.rcs-club-ops__bonus .rcs-club-ops__mash-photo img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.rcs-club-ops__bonus--1 .rcs-club-ops__mash-photo img {
  height: min(32vh, 260px);
}

.rcs-club-ops:fullscreen .rcs-club-ops__bonus--1 .rcs-club-ops__mash-photo img,
.rcs-club-ops:-webkit-full-screen .rcs-club-ops__bonus--1 .rcs-club-ops__mash-photo img {
  height: min(40vh, 380px);
}

.rcs-club-ops__bonus .rcs-club-ops__planner--feature,
.rcs-club-ops:fullscreen .rcs-club-ops__bonus .rcs-club-ops__planner--feature,
.rcs-club-ops:-webkit-full-screen .rcs-club-ops__bonus .rcs-club-ops__planner--feature {
  max-height: none;
  height: 100%;
}

.rcs-club-ops__mash-card--when.is-soon {
  border-color: rgba(69, 255, 122, 0.55);
  box-shadow:
    0 0 0 1px rgba(69, 255, 122, 0.22),
    0 14px 32px rgba(0, 0, 0, 0.4);
}

.rcs-club-ops__bonus-date {
  margin: 6px 0 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #86efac;
}

.rcs-club-ops__bonus-place {
  margin: 8px 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #94a3b8;
}

.rcs-club-ops__card-scroll {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 8px;
  overflow: hidden;
}

.rcs-club-ops__card-scroll .rcs-club-ops__mash-body {
  display: block;
  margin: 0;
  overflow: visible;
  -webkit-line-clamp: unset;
}

/* Per-row swap only — stable airborne/pinned rows stay put */
.rcs-club-ops__row.is-row-fade-out {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.rcs-club-ops__row.is-row-fade-in {
  animation: rcs-club-ops-row-in 0.7s ease both;
}

@keyframes rcs-club-ops-row-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.rcs-club-ops__roster-title {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #64748b;
}

/* ——— Quiet-field mashup + Flight Planner card ——— */
.rcs-club-ops__mashup {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
  width: 100%;
}

.rcs-club-ops__mashup--slim {
  flex: 0 0 auto;
  margin-bottom: 4px;
}

.rcs-club-ops__mashup.is-mash-board-hold {
  opacity: 1;
}

.rcs-club-ops__mashup.is-mash-board-in {
  animation: rcs-club-ops-mash-board-in 1.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.rcs-club-ops__mashup.is-mash-out {
  animation: rcs-club-ops-mash-board-out 1.05s cubic-bezier(0.4, 0, 0.2, 1) both;
  pointer-events: none;
}

.rcs-club-ops__mash-slot {
  min-width: 0;
  min-height: 0;
}

.rcs-club-ops__mash-slot--copy {
  flex: 1 1 0;
  overflow: hidden;
}

.rcs-club-ops__mash-slot--planner,
.rcs-club-ops__mash-slot--pic {
  flex: 0 0 auto;
}

.rcs-club-ops__mash-slot.is-mash-hold {
  opacity: 1;
  transform: none;
}

.rcs-club-ops__mash-slot.is-mash-in {
  opacity: 0;
  animation: rcs-club-ops-mash-in 1.35s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(180ms + var(--mash-i, 0) * 160ms);
}

.rcs-club-ops__mash-slot.is-mash-soft-out {
  animation: rcs-club-ops-mash-soft-out 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.rcs-club-ops__mash-slot.is-mash-soft-in {
  animation: rcs-club-ops-mash-soft-in 1.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rcs-club-ops-mash-board-in {
  from { opacity: 0.35; filter: blur(1px); }
  to { opacity: 1; filter: none; }
}

@keyframes rcs-club-ops-mash-board-out {
  from { opacity: 1; filter: none; transform: translateY(0); }
  to { opacity: 0; filter: blur(1.5px); transform: translateY(6px); }
}

@keyframes rcs-club-ops-mash-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes rcs-club-ops-mash-soft-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(8px); }
}

@keyframes rcs-club-ops-mash-soft-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.rcs-club-ops__mash-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  padding: 10px 12px 11px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(4, 8, 14, 0.72);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  overflow: hidden;
}

.rcs-club-ops__mash-title {
  margin: 4px 0 0;
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  font-weight: 800;
  line-height: 1.2;
  color: #f8fafc;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rcs-club-ops__mash-body {
  margin: 8px 0 0;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.4;
  color: #94a3b8;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rcs-club-ops__mash-by {
  margin: 4px 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #86efac;
}

.rcs-club-ops__mash-photo {
  margin: 8px 0 0;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(8, 12, 22, 0.65);
  flex-shrink: 0;
}

.rcs-club-ops__mash-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hard cap — never let a photo own the no-scroll board */
.rcs-club-ops__mash-photo--compact {
  margin-top: 0;
  max-width: 140px;
  max-height: 78px;
  height: 78px;
}

.rcs-club-ops__mash-photo--compact img {
  aspect-ratio: auto;
  max-height: 78px;
}

.rcs-club-ops__mash-pic-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.rcs-club-ops__mash-pic-meta {
  min-width: 0;
  flex: 1 1 auto;
}

.rcs-club-ops__chat-sliver--feature {
  box-sizing: border-box;
  height: 100%;
  max-height: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(4, 8, 14, 0.7);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.rcs-club-ops__chat-sliver--feature .rcs-club-ops__chat-list {
  gap: 4px;
  flex: 1 1 auto;
  min-height: 0;
  max-height: min(16vh, 140px);
  overflow: hidden;
}

.rcs-club-ops__chat-sliver--feature .rcs-club-ops__chat-line {
  font-size: 0.82rem;
}

.rcs-club-ops__planner--feature {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: min(36vh, 300px);
  overflow: hidden;
}

.rcs-club-ops:fullscreen .rcs-club-ops__planner--feature,
.rcs-club-ops:-webkit-full-screen .rcs-club-ops__planner--feature {
  max-height: min(44vh, 380px);
}

.rcs-club-ops__planner {
  box-sizing: border-box;
  padding: 12px 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(69, 255, 122, 0.28);
  background:
    linear-gradient(180deg, rgba(69, 255, 122, 0.08), rgba(4, 8, 14, 0.78));
  box-shadow:
    0 0 0 1px rgba(69, 255, 122, 0.08),
    0 14px 32px rgba(0, 0, 0, 0.42);
  animation: rcs-club-ops-planner-breathe 7.5s ease-in-out infinite;
}

.rcs-club-ops__wing-stack.is-planner-fit {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  box-sizing: border-box;
  padding-bottom: 0;
}

.rcs-club-ops__wing-stack.is-planner-fit > .rcs-club-ops__wing-block {
  flex: 0 0 auto;
}

.rcs-club-ops__wing-stack.is-planner-fit > .rcs-club-ops__wing-tail {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.rcs-club-ops__wing-stack.is-planner-fit [data-ops-planner] {
  flex: 1 1 auto;
  min-height: 0;
}

.rcs-club-ops__planner--wing {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  padding: 10px 11px 12px;
  animation-duration: 9s;
  /* No hard vh cap when fitted — JS max-height on the stack owns the space */
  max-height: none;
  overflow: hidden;
  box-sizing: border-box;
}

/* Keep PotW readable when planner shares the wing */
.rcs-club-ops__wing-block.is-with-planner .rcs-club-ops__wing-photo img {
  max-height: min(26vh, 200px);
  aspect-ratio: 4 / 3;
}

.rcs-club-ops:fullscreen .rcs-club-ops__wing-block.is-with-planner .rcs-club-ops__wing-photo img,
.rcs-club-ops:-webkit-full-screen .rcs-club-ops__wing-block.is-with-planner .rcs-club-ops__wing-photo img {
  max-height: min(36vh, 280px);
}

.rcs-club-ops__planner-kicker {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ops-green, #45ff7a);
  text-shadow: 0 0 16px rgba(69, 255, 122, 0.45);
}

.rcs-club-ops__planner-title {
  margin: 4px 0 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.25;
}

/* Sharp-end rule under the planner header. The list scrolls beneath it. */
.rcs-club-ops__planner-head-sep {
  flex-shrink: 0;
  width: calc(100% + 22px);
  margin: 10px -11px 0;
}

.rcs-club-ops__planner--feature .rcs-club-ops__planner-head-sep {
  width: calc(100% + 28px);
  margin-left: -14px;
  margin-right: -14px;
}

.rcs-club-ops__planner-empty,
.rcs-club-ops__planner-count {
  margin: 8px 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #94a3b8;
}

.rcs-club-ops__planner-days {
  margin-top: 10px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.rcs-club-ops__planner-days-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.rcs-club-ops__planner-day {
  padding: 2px 0 12px;
}

.rcs-club-ops__planner-day-sep {
  margin: 10px 0 14px;
}

.rcs-club-ops__planner-day-head {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px 8px;
  min-width: 0;
}

.rcs-club-ops__planner-day-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e2e8f0;
}

.rcs-club-ops__planner-day-count {
  font-size: 0.78rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--ops-green, #45ff7a);
}

.rcs-club-ops__planner-pilots {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rcs-club-ops__planner-pilot {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 10px;
  min-width: 0;
}

.rcs-club-ops__planner-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.84rem;
  font-weight: 700;
  color: #f1f5f9;
  overflow-wrap: anywhere;
}

.rcs-club-ops__planner-pilot.is-self .rcs-club-ops__planner-name {
  color: var(--ops-green, #45ff7a);
}

.rcs-club-ops__planner-bands {
  flex: 0 0 auto;
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #86efac;
}

@keyframes rcs-club-ops-planner-breathe {
  0%, 100% {
    border-color: rgba(69, 255, 122, 0.22);
    box-shadow: 0 0 0 1px rgba(69, 255, 122, 0.06), 0 14px 32px rgba(0, 0, 0, 0.42);
  }
  50% {
    border-color: rgba(69, 255, 122, 0.42);
    box-shadow: 0 0 0 1px rgba(69, 255, 122, 0.14), 0 16px 36px rgba(0, 0, 0, 0.46), 0 0 24px rgba(69, 255, 122, 0.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rcs-club-ops__mash-slot.is-mash-in,
  .rcs-club-ops__mash-slot.is-mash-soft-out,
  .rcs-club-ops__mash-slot.is-mash-soft-in,
  .rcs-club-ops__mashup.is-mash-board-in,
  .rcs-club-ops__mashup.is-mash-out,
  .rcs-club-ops__planner {
    animation: none !important;
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.rcs-club-ops__roster {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  min-height: 0;
  overflow: hidden;
  opacity: 1;
}

.rcs-club-ops__row {
  min-width: 0;
  padding: 10px 12px 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(10, 14, 24, 0.78);
  backdrop-filter: blur(6px);
}

.rcs-club-ops__row--airborne {
  border-color: rgba(69, 255, 122, 0.28);
  background: linear-gradient(90deg, rgba(69, 255, 122, 0.14), rgba(10, 14, 24, 0.82) 28%);
  box-shadow: inset 3px 0 0 var(--ops-green);
}

.rcs-club-ops__name {
  font-size: clamp(0.95rem, 1.5vw, 1.12rem);
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.rcs-club-ops__flight {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  min-width: 0;
}

.rcs-club-ops__flight-dot {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ops-green);
  box-shadow: 0 0 8px rgba(69, 255, 122, 0.85);
  animation: rcs-club-ops-pulse 2.1s ease-in-out infinite;
}

.rcs-club-ops__flight-meta {
  flex: 1;
  min-width: 0;
  font-size: 0.78rem;
  font-weight: 600;
  font-style: italic;
  color: #86efac;
  overflow-wrap: anywhere;
}

.rcs-club-ops__quiet,
.rcs-club-ops__more {
  margin: 0;
  color: #94a3b8;
  font-weight: 700;
  font-size: 0.95rem;
}

/* ——— Footer ——— */
.rcs-club-ops__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 2px;
  flex-shrink: 0;
}

.rcs-club-ops__updated {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

.rcs-club-ops__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.rcs-club-ops__cog-btn {
  appearance: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.88);
  color: #e2e8f0;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rcs-club-ops__cog-btn:hover {
  filter: brightness(1.08);
}

.rcs-club-ops__cog-ico {
  display: block;
  width: 18px;
  height: 18px;
}

.rcs-club-ops__fs-btn {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.88);
  color: #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  white-space: normal;
  min-width: 0;
  overflow-wrap: anywhere;
}

.rcs-club-ops__back-btn.rcs-back-btn {
  text-decoration: none;
}

/* Board settings overlay */
.rcs-club-ops__settings {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.rcs-club-ops__settings-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(2, 6, 14, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}

.rcs-club-ops__settings-panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  max-height: min(86vh, 640px);
  overflow: auto;
  padding: 22px 20px 20px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(10, 14, 24, 0.96);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
}

.rcs-club-ops__settings-x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #e2e8f0;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.rcs-club-ops__settings-title {
  margin: 0 36px 16px 0;
  font-family: "RcsOpsHud", "Segoe UI", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f8fafc;
}

.rcs-club-ops__settings-label {
  display: block;
  margin: 14px 0 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94a3b8;
}

.rcs-club-ops__settings-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rcs-club-ops__settings-chip {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.9);
  color: #e2e8f0;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  white-space: normal;
  min-width: 0;
  overflow-wrap: anywhere;
}

.rcs-club-ops__settings-chip.is-on {
  border-color: rgba(69, 255, 122, 0.55);
  color: #86efac;
  box-shadow: 0 0 0 1px rgba(69, 255, 122, 0.25);
}

.rcs-club-ops__settings-select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.95);
  color: #f8fafc;
  font-size: 0.9rem;
}

.rcs-club-ops__settings-check {
  margin-top: 16px;
  color: #e2e8f0;
}

.rcs-club-ops__settings-hint {
  margin: 14px 0 0;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.4;
}

.rcs-club-ops__fs-btn {
  border-color: rgba(250, 204, 21, 0.55);
  color: #facc15;
  background: #0a0a0a;
}

.rcs-club-ops__fs-btn:hover,
.rcs-club-ops__back-btn:hover {
  filter: brightness(1.08);
}

@keyframes rcs-club-ops-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.72; transform: scale(0.9); }
}

@media (orientation: portrait) and (max-width: 900px) {
  .rcs-club-ops__count--onfield {
    background-image: url("/assets/club-ops/club-ops-onfield-720.webp");
  }
  .rcs-club-ops__count--air {
    background-image: url("/assets/club-ops/club-ops-airborne-720.webp");
  }
  /*
   * Pack chrome from the top; pin foot to the bottom of the viewport.
   * Quiet field: leftover height becomes the newspaper billboard under KPIs
   * (short page scroll OK if a card needs a little more room).
   * --rcs-safe-top/bottom stay 0 in the app WebView (native shell already
   * clears system bars); raw env(safe-area-inset-top) there double-pads.
   */
  .rcs-club-ops-page {
    min-height: 100svh;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .rcs-club-ops {
    gap: 6px;
    height: auto;
    min-height: 100svh;
    max-height: none;
    justify-content: flex-start;
    padding: 0 12px 6px;
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
    padding-top: max(2px, var(--rcs-safe-top, env(safe-area-inset-top, 0px)));
    padding-bottom: max(6px, var(--rcs-safe-bottom, env(safe-area-inset-bottom, 0px)));
    box-sizing: border-box;
    overflow: visible;
  }
  .rcs-club-ops > .rcs-club-ops__stage,
  .rcs-club-ops__body,
  .rcs-club-ops__roster-wrap {
    flex: 0 1 auto;
    min-height: auto;
  }
  /* Quiet + content: stretch into a live club newspaper billboard */
  .rcs-club-ops--quiet.rcs-club-ops--has-bonus > .rcs-club-ops__stage {
    flex: 1 1 auto;
    min-height: clamp(168px, 36vh, 360px);
    width: 100%;
  }
  .rcs-club-ops--quiet.rcs-club-ops--has-bonus .rcs-club-ops__body {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
  }
  .rcs-club-ops--quiet.rcs-club-ops--has-bonus .rcs-club-ops__roster-wrap {
    flex: 1 1 auto;
    min-height: clamp(168px, 34vh, 340px);
    overflow: hidden;
  }
  .rcs-club-ops--quiet.rcs-club-ops--has-bonus .rcs-club-ops__bonus {
    min-height: clamp(160px, 32vh, 320px);
  }
  .rcs-club-ops--quiet .rcs-club-ops__bonus--2 {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 10px;
  }
  .rcs-club-ops--quiet .rcs-club-ops__bonus .rcs-club-ops__mash-card {
    padding: 12px 14px 14px;
    border-radius: 16px;
    border-color: rgba(148, 163, 184, 0.34);
    background:
      linear-gradient(165deg, rgba(18, 28, 44, 0.9), rgba(4, 8, 14, 0.84));
    box-shadow:
      0 0 0 1px rgba(69, 255, 122, 0.08),
      0 16px 36px rgba(0, 0, 0, 0.45);
  }
  .rcs-club-ops--quiet .rcs-club-ops__bonus .rcs-club-ops__mash-title {
    font-size: clamp(1.05rem, 4.8vw, 1.4rem);
    -webkit-line-clamp: 3;
  }
  .rcs-club-ops--quiet .rcs-club-ops__bonus .rcs-club-ops__mash-body {
    font-size: 0.88rem;
    line-height: 1.45;
    -webkit-line-clamp: 5;
  }
  .rcs-club-ops--quiet .rcs-club-ops__bonus--1 .rcs-club-ops__mash-photo img {
    height: min(26vh, 210px);
  }
  .rcs-club-ops--quiet .rcs-club-ops__bonus--2 .rcs-club-ops__mash-photo img {
    height: 92px;
  }
  .rcs-club-ops--quiet .rcs-club-ops__bonus .rcs-club-ops__mash-card--pic .rcs-club-ops__mash-photo img {
    height: min(30vh, 240px);
  }
  /* Logo replaces green CLUB OPS; club name under it */
  .rcs-club-ops__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
  }
  .rcs-club-ops__brand {
    justify-self: unset;
    line-height: 0;
  }
  .rcs-club-ops__brand img {
    height: 16px;
    max-width: 100px;
    width: auto;
  }
  .rcs-club-ops__kicker {
    display: none;
  }
  .rcs-club-ops__title-block {
    grid-column: unset;
    justify-self: unset;
    padding-inline: 0;
    text-align: center;
    width: 100%;
    min-width: 0;
  }
  .rcs-club-ops__club {
    margin-top: 0;
  }
  .rcs-club-ops__crest {
    display: none;
  }
  .rcs-club-ops__foot {
    margin-top: auto;
    flex-shrink: 0;
  }
  .rcs-club-ops__fs-btn {
    display: none;
  }
  .rcs-club-ops__count-num {
    font-size: clamp(2.2rem, 14vw, 3.2rem);
  }
  .rcs-club-ops__roster {
    grid-template-columns: 1fr;
  }
}

/* Fullscreen: same chrome rhythm as windowed — backdrop top crop is locked via --ops-bg-frame-h */
.rcs-club-ops:fullscreen,
.rcs-club-ops:-webkit-full-screen {
  padding: 12px 28px;
  padding-top: max(16px, env(safe-area-inset-top));
  padding-bottom: max(14px, env(safe-area-inset-bottom));
  padding-left: max(28px, env(safe-area-inset-left));
  padding-right: max(28px, env(safe-area-inset-right));
  gap: 8px;
}

/*
 * Keep the photo framed like windowed height (JS sets --ops-bg-frame-h).
 * Extra FS height shows as solid dark below — not more sky above.
 */
.rcs-club-ops:fullscreen .rcs-club-ops__backdrop-layer,
.rcs-club-ops:-webkit-full-screen .rcs-club-ops__backdrop-layer,
.rcs-club-ops:fullscreen .rcs-club-ops__backdrop-fx,
.rcs-club-ops:-webkit-full-screen .rcs-club-ops__backdrop-fx {
  top: 0;
  left: 0;
  right: 0;
  bottom: auto;
  height: var(--ops-bg-frame-h, 100%);
  max-height: 100%;
}
