:root {
  --nf-black: #000000;
  --nf-bg: #0F0F0F;
  --nf-surface: #181818;
  --nf-elevated: #232323;
  --nf-red: #E50914;
  --nf-red-hover: #F40612;
  --nf-red-dark: #B20710;

  --nf-white: #FFFFFF;
  --nf-silver: #D4D4D4;
  --nf-muted: #8C8C8C;
  --nf-border: rgba(255, 255, 255, 0.12);
  --nf-border-bright: rgba(255, 255, 255, 0.28);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(229, 9, 20, 0.14) 0%, rgba(0, 0, 0, 0) 55%),
    linear-gradient(180deg, #000000 0%, #141414 50%, #080808 100%);
  color: var(--nf-white);
  font-family: var(--font-sans);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* ========================================================================= */
/* MINIMAL NETFLIX HEADER                                                    */
/* ========================================================================= */
.nf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.85rem 1.75rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(15, 15, 15, 0.88) 100%);
  border-bottom: 1px solid var(--nf-border);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.nf-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

.nf-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--nf-red) 0%, var(--nf-red-dark) 100%);
  color: var(--nf-white);
  font-weight: 800;
  font-size: 1.15rem;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(229, 9, 20, 0.45);
}

.nf-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #FFFFFF 0%, #BDBDBD 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.nf-divider {
  width: 1px;
  height: 18px;
  background: var(--nf-border);
}

.nf-tagline {
  font-size: 0.8rem;
  color: var(--nf-muted);
  white-space: nowrap;
}

/* HERO SELECTOR PILLS */
.nf-hero-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  flex: 1;
  min-width: 0;
}

.star-category-tab { flex: none; position: sticky; z-index: 2; left: 0; border: 1px solid var(--nf-border-bright); border-radius: 999px; background: #171717; color: var(--nf-silver); padding: .42rem .7rem; font: 800 .7rem var(--font-sans); cursor: pointer; }
.star-category-tab:nth-child(2) { left: 66px; }
.star-category-tab.active { background: #fff; color: #111; }

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem 0.35rem 0.4rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #1E1E1E 0%, #121212 100%);
  border: 1px solid var(--nf-border);
  color: var(--nf-silver);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.hero-pill:hover {
  border-color: var(--nf-border-bright);
  color: var(--nf-white);
}

.hero-pill.active {
  background: linear-gradient(180deg, var(--nf-red) 0%, var(--nf-red-dark) 100%);
  border-color: var(--nf-red);
  color: var(--nf-white);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(229, 9, 20, 0.35);
}

.hero-pill-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* RIGHT CONTROLS */
.nf-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.secondary-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.nf-mode-switch {
  display: flex;
  background: #111111;
  padding: 0.2rem;
  border-radius: 7px;
  border: 1px solid var(--nf-border);
}

.nf-mode-btn {
  background: transparent;
  color: var(--nf-muted);
  border: none;
  padding: 0.32rem 0.7rem;
  border-radius: 5px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.nf-mode-btn.active {
  background: linear-gradient(180deg, #FFFFFF 0%, #D9D9D9 100%);
  color: #000000;
  font-weight: 700;
}

.nf-select {
  background: #141414;
  color: var(--nf-white);
  border: 1px solid var(--nf-border);
  padding: 0.42rem 0.7rem;
  border-radius: 7px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.nf-icon-btn, .nf-btn-ghost {
  background: linear-gradient(180deg, #242424 0%, #161616 100%);
  color: var(--nf-white);
  border: 1px solid var(--nf-border);
  padding: 0.42rem 0.75rem;
  border-radius: 7px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.nf-icon-btn:hover, .nf-btn-ghost:hover {
  border-color: var(--nf-border-bright);
  background: linear-gradient(180deg, #2E2E2E 0%, #1E1E1E 100%);
}

/* ========================================================================= */
/* MAIN 3-COLUMN ARENA                                                       */
/* ========================================================================= */
.nf-arena {
  max-width: 1480px;
  width: 100%;
  flex: 1;
  margin: 0 auto;
  padding: 1.25rem 1.75rem 2rem;
}

.site-credit {
  padding: 1rem 1.75rem 1.25rem;
  border-top: 1px solid var(--nf-border);
  text-align: center;
}

.site-legal-intro {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem .65rem;
  margin-bottom: .65rem;
  color: var(--nf-silver);
  font-size: .72rem;
}

.site-legal-intro strong { color: var(--nf-white); }

.site-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem .85rem;
  max-width: 1050px;
  margin: 0 auto 1.1rem;
}

.site-legal-links a {
  color: var(--nf-silver);
  font-size: .72rem;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .35);
  text-underline-offset: 3px;
}

.site-legal-links a:hover { color: var(--nf-white); }
.site-legal-links a:focus-visible { outline: 2px solid var(--nf-red); outline-offset: 4px; }

.creator-button {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  max-width: 100%;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  background: #fff;
  color: #111;
  text-decoration: none;
  text-align: left;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.creator-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 22px rgba(0, 0, 0, 0.38);
}

.creator-button:focus-visible {
  outline: 3px solid var(--nf-red);
  outline-offset: 3px;
}

.creator-button svg {
  width: 23px;
  height: 23px;
  flex: none;
}

.creator-copy {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  line-height: 1.3;
}

.creator-copy strong {
  font-size: 0.8rem;
  font-weight: 800;
}

.creator-copy span {
  font-size: 0.7rem;
  font-weight: 600;
}

.nf-grid {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 200px;
  gap: 1rem;
  align-items: start;
}

/* ========================================================================= */
/* PLAYER SIDE PANELS (BLACK & WHITE GRADIENTS)                              */
/* ========================================================================= */
.player-panel {
  background: linear-gradient(180deg, #1A1A1A 0%, #101010 100%);
  border: 1px solid var(--nf-border);
  border-radius: 14px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

.player-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.player-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--nf-muted);
  margin-bottom: 0.15rem;
}

.player-name-input {
  background: transparent;
  border: 1px solid transparent;
  color: var(--nf-white);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 800;
  padding: 0.15rem 0.3rem;
  margin-left: -0.3rem;
  border-radius: 5px;
  width: 100%;
  min-width: 0;
}

.player-top > div:first-child {
  flex: 1;
  min-width: 0;
}

.player-name-input:hover, .player-name-input:focus {
  border-color: var(--nf-border);
  background: rgba(255, 255, 255, 0.04);
  outline: none;
}

.budget-pill {
  background: linear-gradient(180deg, #0A0A0A 0%, #161616 100%);
  border: 1px solid var(--nf-border-bright);
  border-radius: 10px;
  padding: 0.35rem 0.5rem;
  text-align: right;
  min-width: 68px;
}

.budget-pill.budget-zero {
  border-color: var(--nf-red);
  background: rgba(229, 9, 20, 0.12);
}

.budget-label {
  display: block;
  font-size: 0.65rem;
  color: var(--nf-muted);
  font-weight: 600;
}

.budget-num {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--nf-white);
}

.budget-pill.budget-zero .budget-num {
  color: var(--nf-red);
}

.budget-track {
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
}

.budget-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--nf-red) 0%, #FFFFFF 100%);
  transition: width 0.35s ease;
}

/* 5 Draft Slots */
.slots-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.draft-slot {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 68px;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  background: linear-gradient(180deg, #161616 0%, #111111 100%);
  border: 1px solid var(--nf-border);
}

.draft-slot.empty-slot {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.015);
}

.draft-slot.filled-slot {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0%, #151515 100%);
  border-color: rgba(255, 255, 255, 0.24);
}

.slot-num {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--nf-silver);
  width: 22px;
  flex-shrink: 0;
}

.slot-thumb {
  width: 40px;
  height: 54px;
  border-radius: 5px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.slot-details {
  flex: 1;
  min-width: 0;
}

.slot-movie-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--nf-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slot-movie-sub {
  font-size: 0.72rem;
  color: var(--nf-muted);
}

.slot-price-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  background: linear-gradient(180deg, #FFFFFF 0%, #D4D4D4 100%);
  color: #000000;
  flex-shrink: 0;
}

.slot-empty-label {
  font-size: 0.78rem;
  color: var(--nf-muted);
}

/* ========================================================================= */
/* CENTER STAGE (MOVIE SPOTLIGHT & BIDDING)                                  */
/* ========================================================================= */
.center-stage {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.stage-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.1rem;
  background: linear-gradient(180deg, #1B1B1B 0%, #121212 100%);
  border: 1px solid var(--nf-border);
  border-radius: 12px;
}

.active-hero-heading {
  font-size: 1.2rem;
  font-weight: 800;
  background: linear-gradient(90deg, #FFFFFF 0%, #B3B3B3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stage-meta-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.round-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.22rem 0.55rem;
  border-radius: 5px;
  background: var(--nf-red);
  color: var(--nf-white);
}

.status-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--nf-silver);
}

.spotlight-wrap {
  position: relative;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 55%),
    linear-gradient(180deg, #1A1A1A 0%, #0E0E0E 100%);
  border: 1px solid var(--nf-border);
  border-radius: 16px;
  padding: 1.35rem;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.movie-showcase {
  display: grid;
  grid-template-columns: minmax(205px, 240px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
}

.poster-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.poster-frame {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.8);
  background: #080808;
}

.poster-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.details-column {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-width: 0;
}

.movie-title {
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 800;
  line-height: 1.16;
  text-align: center;
  text-wrap: balance;
}

.bidding-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1fr);
  gap: 0.5rem;
}

.bid-col {
  background: linear-gradient(180deg, #1E1E1E 0%, #121212 100%);
  border: 1px solid var(--nf-border);
  border-radius: 12px;
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.bid-col.leading-bidder {
  border-color: var(--nf-white);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.12);
}

.bid-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--nf-white);
}

.bid-col-budget {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--nf-muted);
}

.bid-btn-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
}

/* Primary Netflix Red Button */
.nf-btn-red {
  background: linear-gradient(180deg, var(--nf-red) 0%, var(--nf-red-dark) 100%);
  color: var(--nf-white);
  border: none;
  border-radius: 8px;
  padding: 0.68rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.1s ease;
  box-shadow: 0 4px 14px rgba(229, 9, 20, 0.35);
}

.nf-btn-red:hover:not(:disabled) {
  background: linear-gradient(180deg, var(--nf-red-hover) 0%, var(--nf-red) 100%);
}

.nf-btn-red:active:not(:disabled) {
  transform: scale(0.98);
}

.nf-btn-plus {
  background: linear-gradient(180deg, #2B2B2B 0%, #1A1A1A 100%);
  color: var(--nf-white);
  border: 1px solid var(--nf-border-bright);
  border-radius: 8px;
  padding: 0 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.nf-btn-teesko {
  background: linear-gradient(180deg, #FFFFFF 0%, #D9D9D9 100%);
  color: #000000;
  border: none;
  border-radius: 8px;
  padding: 0.52rem 0.65rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.nf-btn-teesko:hover:not(:disabled) {
  filter: brightness(0.92);
}

.nf-btn-red:disabled, .nf-btn-plus:disabled, .nf-btn-teesko:disabled {
  opacity: 0.32;
  cursor: not-allowed;
  box-shadow: none;
}

.nf-btn-ghost:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

button:focus-visible, select:focus-visible, input:focus-visible {
  outline: 2px solid var(--nf-white);
  outline-offset: 3px;
}

.bid-history-col {
  background: #0B0B0B;
  border: 1px solid var(--nf-border);
  border-radius: 12px;
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.history-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--nf-muted);
  text-align: center;
}

.history-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  justify-content: center;
  max-height: 96px;
  overflow-y: auto;
}

.bid-chip {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.09);
  color: var(--nf-white);
}

.empty-trail {
  font-size: 0.72rem;
  color: var(--nf-muted);
}

/* Special Rule Banner */
.special-banner {
  background: linear-gradient(90deg, rgba(229, 9, 20, 0.18) 0%, rgba(255, 255, 255, 0.06) 100%);
  border: 1px solid var(--nf-red);
  border-radius: 10px;
  padding: 0.7rem 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.special-banner p {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--nf-white);
}

.special-actions {
  display: flex;
  gap: 0.5rem;
}

.stage-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.25rem;
}

.keys-hint {
  font-size: 0.74rem;
  color: var(--nf-muted);
}

kbd {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: #222222;
  border: 1px solid var(--nf-border-bright);
  color: var(--nf-white);
}

.nf-btn-skip {
  background: #262626;
  border: 1px solid var(--nf-border-bright);
  border-radius: 8px;
  color: var(--nf-white);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 800;
  min-height: 46px;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
}

.nf-btn-skip:hover:not(:disabled) {
  background: #383838;
}

/* Sold Stamp Overlay */
.sold-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(5px);
  z-index: 20;
  display: grid;
  place-items: center;
}

.sold-box {
  background: linear-gradient(180deg, #1E1E1E 0%, #0D0D0D 100%);
  border: 2px solid var(--nf-red);
  padding: 1.6rem 2.8rem;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
}

.sold-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--nf-red);
}

.sold-box h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0.25rem 0;
}

.sold-box p {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--nf-silver);
}

/* ========================================================================= */
/* FINAL COMPLETE PANEL                                                      */
/* ========================================================================= */
.complete-panel {
  background: linear-gradient(180deg, #1A1A1A 0%, #0E0E0E 100%);
  border: 1px solid var(--nf-border-bright);
  border-radius: 16px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.complete-head {
  text-align: center;
}

.complete-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: var(--nf-red);
  color: var(--nf-white);
}

.complete-head h3 {
  font-size: 1.65rem;
  font-weight: 800;
  margin: 0.4rem 0 0.2rem;
}

.complete-head p {
  font-size: 0.86rem;
  color: var(--nf-muted);
}

.poll-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.poll-box {
  background: linear-gradient(180deg, #222222 0%, #141414 100%);
  border: 1px solid var(--nf-border);
  border-radius: 12px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.poll-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.poll-box-head h4 {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 1.12rem;
}

.result-player-tag {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 5px;
  background: var(--nf-red);
  color: var(--nf-white);
}

.result-lineup {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.result-film {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  padding: 0.4rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
}

.result-film img, .result-film-empty {
  width: 38px;
  height: 56px;
  flex: none;
  object-fit: cover;
  border-radius: 4px;
  background: #303030;
}

.result-film-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.result-film-details strong {
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.result-film-details small, .result-budget {
  color: var(--nf-muted);
  font-size: 0.74rem;
}

.share-help, .share-status {
  color: var(--nf-silver);
  text-align: center;
  font-size: 0.82rem;
}

.share-preview {
  text-align: center;
}

.share-preview summary {
  color: var(--nf-silver);
  font-size: 0.82rem;
  cursor: pointer;
}

.share-preview img {
  display: block;
  width: min(100%, 360px);
  height: auto;
  margin: 0.85rem auto 0;
  border-radius: 10px;
  border: 1px solid var(--nf-border-bright);
}

.complete-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ========================================================================= */
/* MULTIPLAYER ROOMS & LIVE STRIP                                           */
/* ========================================================================= */
.nf-btn-mp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: linear-gradient(180deg, var(--nf-red) 0%, var(--nf-red-dark) 100%);
  color: var(--nf-white);
  border: 1px solid #FF3440;
  border-radius: 8px;
  padding: 0.55rem 1rem;
  font: 800 0.84rem var(--font-sans);
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 5px 18px rgba(229, 9, 20, 0.32);
}

.nf-btn-mp:hover {
  filter: brightness(1.12);
}

.online-room .nf-btn-mp {
  background: #171717;
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: none;
}

.online-room #local-mode-switch {
  display: none;
}

.nf-select:disabled,
.nf-btn-ghost:disabled,
.nf-btn-skip:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.mp-live-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--nf-white);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.mp-live-dot.connected {
  background: #22C55E;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
  animation: pulse-green 2s infinite ease-in-out;
}

.mp-live-dot.waiting {
  background: #F59E0B;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.7);
  animation: pulse-amber 1.5s infinite ease-in-out;
}

@keyframes pulse-green {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.75; }
}

@keyframes pulse-amber {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.8; }
}

/* Room Status Strip */
.room-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.55rem 0.9rem;
  background: linear-gradient(90deg, rgba(229, 9, 20, 0.18) 0%, rgba(20, 20, 20, 0.9) 100%);
  border: 1px solid rgba(229, 9, 20, 0.4);
  border-radius: 9px;
  margin-bottom: 0.9rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.room-strip-left, .room-strip-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.room-live-pill {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--nf-white);
  background: var(--nf-red);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.room-code-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--nf-white);
  background: #000000;
  border: 1px solid var(--nf-border-bright);
  padding: 0.2rem 0.55rem;
  border-radius: 5px;
  letter-spacing: 0.05em;
}

.room-role-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: #10B981;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.strip-info-text {
  font-size: 0.78rem;
  color: var(--nf-silver);
}

.nf-btn-ghost-sm {
  background: #1E1E1E;
  border: 1px solid var(--nf-border);
  color: var(--nf-white);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.nf-btn-ghost-sm:hover {
  border-color: var(--nf-border-bright);
  background: #2E2E2E;
}

/* Waiting for P2 Banner */
.waiting-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  background: linear-gradient(180deg, #241808 0%, #171106 100%);
  border: 1px solid #D97706;
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.2);
}

.waiting-icon {
  font-size: 1.8rem;
}

.waiting-text h4 {
  font-size: 0.95rem;
  color: #FBBF24;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.waiting-text p {
  font-size: 0.8rem;
  color: var(--nf-silver);
}

.highlight-code {
  font-family: var(--font-mono);
  color: var(--nf-white);
  background: #000;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.nf-btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  white-space: nowrap;
}

/* Reaction Bar */
.reaction-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--nf-border);
}

.reaction-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--nf-muted);
  margin-right: 0.2rem;
}

.btn-react {
  background: #1A1A1A;
  border: 1px solid var(--nf-border);
  border-radius: 6px;
  font-size: 0.95rem;
  padding: 0.25rem 0.45rem;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.btn-react:hover {
  transform: scale(1.18);
  background: #2A2A2A;
  border-color: var(--nf-border-bright);
}

.btn-react:active {
  transform: scale(0.95);
}

.btn-react-text {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--nf-silver);
  font-family: var(--font-sans);
  padding: 0.3rem 0.6rem;
}

/* Floating Reactions */
.reactions-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 120;
  overflow: hidden;
}

.floating-reaction {
  position: absolute;
  bottom: 80px;
  font-size: 2.4rem;
  animation: float-up-fade 2.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
}

@keyframes float-up-fade {
  0% {
    transform: translateY(0) scale(0.6) rotate(-5deg);
    opacity: 0;
  }
  15% {
    transform: translateY(-40px) scale(1.15) rotate(5deg);
    opacity: 1;
  }
  75% {
    transform: translateY(-240px) scale(1) rotate(-3deg);
    opacity: 0.9;
  }
  100% {
    transform: translateY(-340px) scale(0.8) rotate(4deg);
    opacity: 0;
  }
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-card {
  background: linear-gradient(180deg, #1C1C1C 0%, #101010 100%);
  border: 1px solid var(--nf-border-bright);
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  padding: 1.5rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85), 0 0 32px rgba(229, 9, 20, 0.15);
  animation: modal-pop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-pop {
  0% { transform: scale(0.94); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.modal-logo {
  width: 28px;
  height: 28px;
  font-size: 0.95rem;
}

.modal-head h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--nf-white);
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--nf-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

.modal-close:hover {
  color: var(--nf-white);
  background: #252525;
}

.modal-tabs {
  display: flex;
  background: #111111;
  padding: 0.25rem;
  border-radius: 9px;
  border: 1px solid var(--nf-border);
  margin-bottom: 1.25rem;
}

.modal-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--nf-muted);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.modal-tab.active {
  background: linear-gradient(180deg, var(--nf-red) 0%, var(--nf-red-dark) 100%);
  color: var(--nf-white);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.4);
}

.modal-body-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.modal-form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--nf-silver);
}

.modal-input, .modal-select {
  background: #0E0E0E;
  border: 1px solid var(--nf-border);
  color: var(--nf-white);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s ease;
}

.modal-input:focus, .modal-select:focus {
  border-color: var(--nf-red);
  box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.25);
}

.code-input {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.modal-submit-btn {
  width: 100%;
  padding: 0.75rem;
  font-size: 0.92rem;
  margin-top: 0.35rem;
}

/* Active Room In Modal */
.active-room-box {
  background: #0A0A0A;
  border: 1px solid var(--nf-border-bright);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
}

.active-room-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--nf-muted);
  letter-spacing: 0.1em;
}

.active-room-code-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0.4rem 0 0.6rem;
}

.active-code-display {
  font-family: var(--font-mono);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--nf-white);
  letter-spacing: 0.12em;
}

.active-room-hint {
  font-size: 0.76rem;
  color: var(--nf-muted);
}

.active-room-roster {
  background: #141414;
  border: 1px solid var(--nf-border);
  border-radius: 9px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.roster-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
}

.roster-role {
  color: var(--nf-silver);
  font-weight: 600;
}

.roster-name {
  color: #10B981;
  font-weight: 700;
}

.modal-leave-btn {
  width: 100%;
  padding: 0.65rem;
  color: #EF4444;
  border-color: rgba(239, 68, 68, 0.4);
}

.modal-leave-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #EF4444;
}

/* Inactive paddle indicator for player on remote device */
.paddle-disabled-notice {
  font-size: 0.74rem;
  color: var(--nf-muted);
  text-align: center;
  padding: 0.4rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  margin-top: 0.35rem;
}

/* Mobile Mini HUD */
.mobile-hud {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: linear-gradient(180deg, #181818 0%, #0E0E0E 100%);
  border: 1px solid var(--nf-border);
  border-radius: 10px;
  padding: 0.45rem 0.85rem;
  margin-bottom: 0.85rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.mobile-hud-player {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.m-hud-name {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--nf-silver);
}

.m-hud-budget {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--nf-white);
  background: #000000;
  border: 1px solid var(--nf-border-bright);
  padding: 0.15rem 0.45rem;
  border-radius: 5px;
}

.m-hud-slots {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #10B981;
  background: rgba(16, 185, 129, 0.15);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
}

.m-hud-vs {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--nf-red);
  letter-spacing: 0.05em;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast-item {
  background: linear-gradient(180deg, #222222 0%, #121212 100%);
  border-left: 4px solid var(--nf-red);
  color: var(--nf-white);
  padding: 0.7rem 1rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.75);
}

.hidden {
  display: none !important;
}

/* Sponsor units sit in reserved, non-interactive parts of the draft. */
.ad-slot[hidden] { display: none !important; }
.home-ad-region { width: min(1480px, 100%); margin: 0 auto; padding: .7rem 1.75rem 0; }
.home-ad-region:has(.ad-slot[hidden]) { display: none; }
.party-active .home-ad-region { display: none; }
.ad-slot-live { margin-top: 1rem; }
.ad-slot-waiting { margin-bottom: 1rem; }
.ad-slot-results { margin-top: 1rem; }
.party-layout-complete .party-sidebar { order: 0; }
.sponsor-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: .85rem;
  padding: .55rem .7rem;
  min-height: 88px;
  border: 1px solid #5a4a4c;
  border-radius: 13px;
  background: linear-gradient(110deg, #242020, #171717);
  box-shadow: 0 7px 22px #0005;
  color: #fff;
}
.sponsor-media { width: 72px; height: 72px; display: block; overflow: hidden; border-radius: 8px; background: #090909; }
.sponsor-media[href]:hover, .sponsor-media[href]:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.sponsor-card-video { grid-template-columns: 160px minmax(0, 1fr) auto; }
.sponsor-card-video .sponsor-media { width: 160px; height: 90px; }
.sponsor-media img, .sponsor-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.sponsor-copy { display: flex; flex-direction: column; min-width: 0; gap: .07rem; color: #fff; text-decoration: none; }
.sponsor-copy:hover strong, .sponsor-copy:focus-visible strong { text-decoration: underline; }
.sponsor-copy:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.sponsor-label { color: #f5b1b5; text-transform: uppercase; letter-spacing: .12em; font: 800 .61rem var(--font-mono); }
.sponsor-copy strong { font-size: .9rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sponsor-copy > span:last-child { color: var(--nf-silver); font-size: .72rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sponsor-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: .5rem .75rem; border: 1px solid #7c7777; border-radius: 8px; color: #fff; font-size: .73rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.sponsor-cta:hover, .sponsor-cta:focus-visible { border-color: #fff; background: #313131; }
@media (max-width: 600px) {
  .home-ad-region { padding: .55rem .7rem 0; }
  .sponsor-card { grid-template-columns: 60px minmax(0, 1fr) auto; gap: .5rem; min-height: 76px; padding: .45rem; }
  .sponsor-media { width: 60px; height: 60px; }
  .sponsor-card-video { grid-template-columns: 112px minmax(0, 1fr); }
  .sponsor-card-video .sponsor-media { width: 112px; height: 72px; }
  .sponsor-card-video .sponsor-cta { grid-column: 2; justify-self: start; min-height: 30px; }
  .sponsor-copy strong { font-size: .76rem; }
  .sponsor-copy > span:last-child { font-size: .65rem; }
  .sponsor-cta { min-height: 38px; padding: .35rem .48rem; font-size: .65rem; }
}

/* Online rooms keep the same dark/red arena, with one paddle per device. */
.party-active .nf-hero-pills,
.party-active .secondary-actions { display: none !important; }
.party-form-note { color: var(--nf-muted); font-size: .78rem; margin-top: .4rem; }
.party-arena { width: min(1480px, 100%); margin: 0 auto; padding: 1.2rem 1.75rem 2rem; flex: 1; }
.party-room-strip { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: #1b1b1b; border: 1px solid var(--nf-border); border-radius: 12px; padding: .65rem .85rem; margin-bottom: 1rem; }
.party-room-strip > div { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; }
.party-room-strip strong { font-family: var(--font-mono); letter-spacing: .08em; }
.party-room-strip span:not(.room-live-pill) { color: var(--nf-silver); font-size: .8rem; }
.party-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1rem; align-items: start; }
.party-main { min-width: 0; }
.party-sidebar, .party-stage, .party-wait, .party-results { background: linear-gradient(160deg, #1c1c1c, #111); border: 1px solid var(--nf-border); border-radius: 16px; box-shadow: 0 12px 32px #0008; }
.party-sidebar { padding: 1rem; min-width: 0; }
.party-sidebar h3 { font-size: .88rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .8rem; color: var(--nf-silver); }
.party-scoreboard { display: grid; gap: .6rem; }
.party-player { position: relative; padding: .72rem; border: 1px solid var(--nf-border); border-radius: 12px; background: #202020; }
.party-player.mine { border-color: var(--nf-red); box-shadow: inset 0 0 0 1px #e5091440; }
.party-player.pending { opacity: .65; }
.party-player-head { display: flex; align-items: center; gap: .45rem; min-width: 0; }
.party-player-head strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .84rem; }
.party-role { flex: none; color: var(--nf-red); font: 800 .68rem var(--font-mono); }
.party-budget { margin-left: auto; color: #fff; font: 800 .83rem var(--font-mono); }
.party-player-progress { height: 3px; border-radius: 4px; background: #333; margin: .48rem 0; overflow: hidden; }
.party-player-progress span { display: block; height: 100%; background: var(--nf-red); }
.party-picks { display: flex; align-items: center; gap: .25rem; }
.party-pick { flex: 1 1 0; height: 50px; min-width: 0; overflow: hidden; border-radius: 4px; position: relative; background: #303030; }
.party-pick img { display: block; width: 100%; height: 100%; object-fit: cover; }
.party-pick span { position: absolute; inset: auto 0 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .48rem; background: linear-gradient(transparent, #000); padding: 9px 2px 2px; }
.party-pick.party-empty { display: grid; place-items: center; color: #777; border: 1px dashed #555; font: 700 .75rem var(--font-mono); }
.party-slot-count { display: block; text-align: right; color: var(--nf-muted); font-size: .65rem; margin-top: .25rem; }
.party-stage { padding: 1rem 1.2rem 1.35rem; }
.party-round { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: .9rem; }
.party-round strong { font-size: 1.15rem; }
.party-round span { border: 1px solid var(--nf-border-bright); border-radius: 999px; padding: .3rem .6rem; color: var(--nf-silver); font: 700 .7rem var(--font-mono); white-space: nowrap; }
.party-showcase { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(235px, .9fr); gap: 1.2rem; align-items: center; }
.party-poster { display: flex; align-items: center; flex-direction: column; text-align: center; min-width: 0; }
.party-poster img { display: block; width: min(100%, 270px); aspect-ratio: 5 / 7; object-fit: cover; border-radius: 9px; border: 2px solid #333; box-shadow: 0 12px 35px #000a; }
.party-poster h2 { font-size: clamp(1.1rem, 2.2vw, 1.8rem); margin-top: .7rem; line-height: 1.2; }
.party-bidding { background: #111; border: 1px solid #333; border-radius: 12px; padding: 1rem; display: flex; flex-direction: column; align-items: stretch; gap: .75rem; }
.party-live-label { color: var(--nf-red); font: 800 .7rem var(--font-mono); letter-spacing: .1em; }
.party-high { display: flex; flex-direction: column; }
.party-high strong { font: 800 clamp(2rem, 5vw, 3.3rem) var(--font-mono); }
.party-high span { color: var(--nf-silver); font-size: .85rem; }
.party-bid-trail { display: flex; flex-wrap: wrap; gap: .3rem; min-height: 40px; color: var(--nf-muted); font-size: .76rem; align-content: center; }
.party-bid-trail span { border-radius: 99px; background: #2b2b2b; color: #fff; padding: .25rem .5rem; font: 700 .68rem var(--font-mono); }
.party-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(94px, auto); gap: .45rem; }
.party-controls button { min-height: 46px; }
.party-controls .nf-btn-teesko { grid-column: 1; }
.party-controls .nf-btn-skip { grid-column: 2; }
.party-controls [data-party="claim"] { grid-column: 1 / -1; }
.party-controls button:disabled { opacity: .45; cursor: not-allowed; }
.party-bid-help { color: var(--nf-silver); font-size: .75rem; }
.party-reactions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .45rem; margin-top: .8rem; }
.party-reactions > span { color: var(--nf-muted); font-size: .78rem; margin-right: .3rem; }
.party-last-sale { text-align: center; color: var(--nf-silver); font-size: .78rem; min-height: 1.2rem; margin-top: .5rem; }
.party-wait { padding: 3rem 1.5rem; min-height: 450px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .85rem; }
.party-big-icon { font-size: 3rem; }
.party-wait h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.party-wait p { color: var(--nf-silver); }
.party-code { font: 800 1.6rem var(--font-mono); color: var(--nf-red); letter-spacing: .13em; }
.party-wait button { min-height: 44px; min-width: 190px; }
.party-wait button:disabled { opacity: .5; }
.party-wait small { color: var(--nf-muted); }
.party-lobby-players { width: min(100%, 420px); display: grid; gap: .4rem; padding: 0; margin: .3rem 0; list-style: none; }
.party-lobby-players li { display: flex; align-items: center; gap: .5rem; min-width: 0; padding: .55rem .7rem; border: 1px solid var(--nf-border); border-radius: 9px; background: #242424; text-align: left; font-size: .78rem; }
.party-lobby-players li > span:first-child { color: var(--nf-red); font-weight: 800; white-space: nowrap; }
.party-lobby-players strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.party-lobby-players li > span:last-child { margin-left: auto; color: #6ed891; white-space: nowrap; }
.party-lobby-players li.waiting > span:last-child { color: var(--nf-muted); }
.party-lobby-status { color: var(--nf-silver); font-weight: 700; }
.party-results { padding: 1.5rem; }
.party-results > h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: .65rem 0 .2rem; }
.party-results > p { color: var(--nf-silver); font-size: .9rem; }
.party-results-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin: 1rem 0; }
.party-result { background: #242424; border: 1px solid var(--nf-border); border-radius: 10px; padding: .8rem; min-width: 0; }
.party-result > span { color: var(--nf-red); font: 800 .75rem var(--font-mono); margin-right: .4rem; }
.party-result > strong { font-size: .9rem; }
.party-result > small { display: block; color: var(--nf-muted); margin: .2rem 0 .4rem; }
.party-result ol { padding-left: 1.2rem; font-size: .75rem; }
.party-result li { margin: .12rem 0; }
.party-result em { color: var(--nf-muted); font-style: normal; }
.party-result-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.party-result-actions button { min-height: 44px; }
.party-result-actions button:disabled { opacity: .5; }
.party-results > small { display: block; margin-top: .6rem; color: var(--nf-muted); }

@media (max-width: 1000px) {
  .party-layout { grid-template-columns: minmax(0, 1fr); }
  .party-sidebar { order: -1; }
  .party-scoreboard { display: flex; width: 100%; min-width: 0; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .25rem; }
  .party-player { flex: 0 0 min(250px, 65vw); scroll-snap-align: start; }
}
@media (max-width: 650px) {
  .party-arena { padding: .65rem .7rem 1.5rem; }
  .party-room-strip { padding: .5rem .6rem; font-size: .72rem; }
  .party-room-strip > div { gap: .4rem; }
  .party-room-strip .room-live-pill { display: none; }
  .party-room-strip .nf-btn-ghost-sm { min-height: 38px; }
  .party-sidebar { padding: .7rem; }
  .party-sidebar h3 { margin-bottom: .45rem; }
  .party-stage { padding: .75rem; }
  .party-round { align-items: flex-start; }
  .party-round strong { font-size: .93rem; }
  .party-round span { font-size: .61rem; }
  .party-showcase { display: flex; flex-direction: column; gap: .8rem; }
  .party-poster img { width: min(46vw, 185px); max-height: 34svh; }
  .party-poster h2 { font-size: 1.2rem; margin-top: .4rem; }
  .party-bidding { width: 100%; padding: .7rem; gap: .45rem; }
  .party-high { flex-direction: row; gap: .6rem; align-items: baseline; }
  .party-high strong { font-size: 2rem; }
  .party-bid-trail { min-height: 24px; }
  .party-controls button { font-size: .75rem; min-height: 48px; padding: .35rem; }
  .party-reactions { gap: .3rem; }
  .party-reactions > span { flex-basis: 100%; text-align: center; }
  .party-results { padding: 1rem; }
  .party-results-grid { grid-template-columns: 1fr; }
  .party-result-actions button { flex: 1 1 45%; }
}

/* ========================================================================= */
/* RESPONSIVE & MOBILE DESIGN                                                */
/* ========================================================================= */
@media (max-width: 1199px) {
  .nf-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .center-stage {
    order: 1;
  }

  #board-p1 {
    order: 2;
  }

  #board-p2 {
    order: 3;
  }

  .mobile-hud {
    display: flex;
  }

  .movie-showcase {
    grid-template-columns: minmax(210px, 300px) minmax(0, 1fr);
  }
}

@media (max-width: 1380px) {
  .nf-divider, .nf-tagline {
    display: none;
  }
}

@media (min-width: 960px) and (max-width: 1380px) {
  .nf-header {
    display: grid;
    grid-template-columns: 1fr auto;
    row-gap: 0.65rem;
  }

  .nf-brand { grid-column: 1; grid-row: 1; }
  .nf-actions { grid-column: 2; grid-row: 1; }
  .nf-hero-pills { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 959px) {
  .nf-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    position: static;
  }

  .nf-brand { order: 1; }
  .nf-actions {
    order: 2;
    flex-direction: column;
    align-items: stretch;
  }
  .nf-hero-pills { order: 3; }
  .nf-btn-mp {
    width: 100%;
    min-height: 48px;
  }
  .secondary-actions {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }
  .secondary-actions > * { flex: none; }
}

@media (max-width: 768px) {
  .online-room .room-strip {
    display: none;
  }

  .online-room.role-p2 .secondary-actions,
  .online-room.role-p2 .nf-hero-pills {
    display: none;
  }

  .nf-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
  }

  .nf-brand {
    order: 1;
  }

  .nf-hero-pills {
    order: 3;
    padding-bottom: 0.25rem;
  }

  .nf-actions {
    order: 2;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }

  .nf-btn-mp {
    width: 100%;
    min-height: 48px;
    font-size: 0.95rem;
  }

  .secondary-actions {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
  }

  .secondary-actions > * {
    flex: none;
  }

  .nf-arena {
    padding: 0.75rem 0.85rem 2rem;
  }

  .movie-showcase {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .poster-column {
    max-width: min(54vw, 270px);
    margin: 0 auto;
    width: 100%;
  }

  .poster-frame {
    max-height: 38svh;
  }

  .poster-img {
    max-height: 38svh;
  }

  .stage-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .bidding-box {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .bid-history-col {
    grid-column: 1 / -1;
    grid-row: 1;
    padding: 0.35rem;
  }

  .history-label {
    display: none;
  }

  .history-list {
    max-height: 2.1rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .online-room.role-p1 #paddle-p2,
  .online-room.role-p2 #paddle-p1 {
    display: none;
  }

  .online-room .bidding-box {
    grid-template-columns: 1fr;
  }

  .online-room .bid-history-col {
    grid-column: 1;
  }

  .details-column {
    gap: 0.65rem;
  }

  .movie-title {
    font-size: 1.35rem;
  }

  .stage-footer {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .reaction-bar {
    justify-content: center;
    flex-wrap: wrap;
  }

  .complete-panel {
    padding: 1rem;
  }

  .poll-grid {
    grid-template-columns: 1fr;
  }

  .complete-actions > button {
    flex: 1 1 46%;
    min-height: 44px;
  }

  .modal-card {
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
  }
}

@media (max-width: 480px) {
  .nf-header {
    padding: 0.6rem 0.75rem;
  }

  .nf-tagline {
    display: none;
  }

  .bidding-box {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .poster-column {
    max-width: min(54vw, 190px);
  }

  .modal-card {
    padding: 1.15rem;
    max-width: 92vw;
  }

  .room-strip-right {
    width: 100%;
    justify-content: space-between;
  }

  .waiting-banner {
    flex-wrap: wrap;
  }

  .waiting-banner .nf-btn-sm {
    width: 100%;
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 650px) {
  .party-active .nf-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: .4rem;
    padding: .45rem .7rem;
  }
  .party-active .nf-brand { width: auto; flex: none; }
  .party-active .nf-title { font-size: .76rem; }
  .party-active .nf-logo-mark { width: 27px; height: 27px; font-size: 1rem; }
  .party-active .nf-actions { width: auto; flex: none; display: block; }
  .party-active .nf-btn-mp { width: auto; min-height: 36px; padding: .35rem .55rem; font-size: .68rem; }
  .party-active .mp-live-dot { width: 6px; height: 6px; }
  .party-arena { padding-top: .5rem; }
  .party-sidebar { padding: .55rem; }
  .party-sidebar h3 { font-size: .72rem; }
  .party-player { flex-basis: min(210px, 58vw); padding: .5rem; }
  .party-pick { height: 38px; }
  .party-poster img { width: min(40vw, 150px); max-height: 26svh; }
  .party-results-grid { grid-template-columns: minmax(0, 1fr); }
}
