﻿/* ============================================================
   MPSC AUCTION HOUSE — Design tokens
   Concept: a stadium at night, floodlights up, scoreboard live.
   Premium spatial redesign — v2
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Teko:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

:root{
  --bg:            #050D1A;
  --bg-alt:        #071525;
  --surface:       #0B1D35;
  --surface-hi:    #0E2940;
  --line:          rgba(201,164,106,0.28);
  --text:          #F3F1E7;
  --text-dim:      #9FB6A8;
  --text-faint:    #6C8577;

  --gold:          #C9A46A;
  --gold-bright:   #D8B985;
  --gold-dim:      #7B6540;

  --crimson:       #C7443B;
  --crimson-bright:#E8615A;

  --turf:          #2F7A44;
  --turf-bright:   #47A363;

  --unsold:        #6B7A72;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --shadow-deep: 0 20px 50px -20px rgba(0,0,0,0.6);
  --shadow-soft: 0 8px 24px -12px rgba(0,0,0,0.45);
  --shadow-glow: 0 0 0 1px rgba(232,163,61,0.10), 0 20px 60px -24px rgba(0,0,0,0.7);

  --font-display: 'Teko', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Space Mono', monospace;

  /* Fluid spacing scale — used by new utility classes only,
     none of the original spacing values below were removed. */
  --sp-1: clamp(4px, 0.4vw, 6px);
  --sp-2: clamp(8px, 0.8vw, 12px);
  --sp-3: clamp(14px, 1.4vw, 20px);
  --sp-4: clamp(20px, 2vw, 30px);
  --sp-5: clamp(32px, 3.2vw, 48px);
  --sp-6: clamp(48px, 4.8vw, 72px);

  /* Content width scales with viewport so large monitors / TVs
     use the extra space instead of leaving it empty. */
  --content-max: 1240px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: #12161A;

  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; cursor: pointer; }
input, select, textarea{ font-family: inherit; }
::selection{ background: var(--gold); color: #17110a; }

/* Accessible focus ring — keyboard users only, doesn't affect mouse clicks */
:focus-visible{
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Typography scale ---------- */
h1,h2,h3,h4{ font-family: var(--font-display); font-weight:600; letter-spacing:0.3px; margin:0; }
.h-display{ font-size: clamp(2.6rem, 6vw, 5rem); line-height:0.95; }
.h-xl{ font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height:1.02; }
.h-lg{ font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.h-md{ font-size: clamp(1.2rem, 1.6vw, 1.35rem); }
.eyebrow{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
}
.mono{ font-family: var(--font-mono); }
.muted{ color: var(--text-dim); }
.faint{ color: var(--text-faint); }

/* ---------- Layout helpers ---------- */
/* .wrap now scales fluidly: phones get tight padding, ultra-wide
   monitors/TVs get a wider stage instead of a narrow centered column. */
.wrap{
  max-width: min(1600px, 96vw);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 40px);
}
@media (min-width: 1800px){
  .wrap{ max-width: 1760px; }
}

.grid{ display:grid; gap: clamp(14px, 1.6vw, 20px); }
.g-2{ grid-template-columns: repeat(2,1fr); }
.g-3{ grid-template-columns: repeat(3,1fr); }
.g-4{ grid-template-columns: repeat(4,1fr); }
.flex{ display:flex; }
.between{ justify-content: space-between; }
.center{ align-items:center; }
.gap-8{ gap:8px; } .gap-12{ gap:12px; } .gap-16{ gap:16px; } .gap-24{ gap:24px; }
.stack{ display:flex; flex-direction:column; }

@media (min-width: 1500px){
  .g-4{ grid-template-columns: repeat(5,1fr); }
}
@media (max-width: 980px){
  .g-4{ grid-template-columns: repeat(2,1fr); }
  .g-3{ grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px){
  .g-2, .g-3, .g-4{ grid-template-columns: 1fr; }
}

#teamsGrid.grid.g-4 {
  display: flex;
  flex-wrap: wrap;
}

#teamsGrid .team-card {
  flex: 1 1 300px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  #teamsGrid.grid.g-4 {
    flex-direction: column;
  }
  #teamsGrid .team-card {
    flex: none;
    width: 100%;
  }
  #teamsGrid .team-card .team-owner {
    white-space: normal !important;
    word-break: break-word;
  }
  #teamsGrid .team-card img {
    width: 56px !important;
    height: 56px !important;
    flex-shrink: 0;
  }
}

/* ---------- Teams grid: desktop 4-column layout ---------- */

@media (min-width: 641px) {

  /* Each column is at least as wide as its content (nowrap name),
     then all columns share remaining space equally. */
  #teamsGrid.grid.g-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(min-content, 1fr));
    align-items: start;
  }

  #teamsGrid .team-card {
    width: auto; max-width: none; min-width: 0;
    box-sizing: border-box;
    overflow: visible;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  /* Logo swatch 56px */
  #teamsGrid .team-card [style*="width:72px"] {
    width: 56px !important;
    height: 56px !important;
    flex-shrink: 0 !important;
    font-size: 1.1rem !important;
  }

  /* Owner photo 56px */
  #teamsGrid .team-card img[style*="width:72px"] {
    width: 56px !important;
    height: 56px !important;
    flex-shrink: 0 !important;
  }

  /* Outer header row */
  #teamsGrid .team-card .flex.between.center.gap-12 {
    gap: 8px;
    overflow: visible;
  }

  /* Inner left group: logo + text */
  #teamsGrid .team-card .flex.center.gap-12 {
    gap: 8px;
    flex: 1;
    min-width: 0;
    overflow: visible;
  }

  /* Text div: centered between the two images */
  #teamsGrid .team-card .flex.center.gap-12 > div {
    flex: 1;
    min-width: 0;
    overflow: visible;
    text-align: center;
  }

  /* Team name: single line, never clipped */
  #teamsGrid .team-card .h-md {
    white-space: nowrap;
    overflow: visible;
    overflow-wrap: normal;
    word-break: normal;
  }

  /* Owner name: single line */
  #teamsGrid .team-card .team-owner {
    white-space: nowrap;
    overflow: visible;
  }

  /* Bar track still needs its own clip */
  #teamsGrid .team-card .bar-track { overflow: hidden; }

}
  #teamsGrid .team-card .team-owner {
    white-space: nowrap;
    overflow: visible;
  }

  /* Bar track still needs its own clip */
  #teamsGrid .team-card .bar-track { overflow: hidden; }

}





/* Auto-fit grids for player/team listings — fills the row on
   any screen width without needing extra hand-tuned breakpoints.
   Opt-in class, doesn't change existing .grid usages. */
.grid-auto{
  display:grid;
  gap: clamp(14px, 1.6vw, 20px);
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/* ---------- Card / surface ---------- */
.card{
  background: linear-gradient(135deg, #071525 0%, #0B1D35 55%, #0E2940 100%);
  border: 1px solid rgba(201,164,106,0.30);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 28px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.03);
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.card-pad{ padding: clamp(18px, 2vw, 22px); }

/* ---------- Buttons ---------- */

.btn-block{ width:100%; }


.header-btn{
  font-size:0.72rem;
  padding:4px 10px;
  font-weight:600;
  min-height:30px;
  border-radius:6px;
}

.topnav .btn{
  padding: 7px 16px;
  font-size: 0.78rem;
  min-height: 34px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.topnav .btn-gold{
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #201404;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.topnav .btn-ghost{
  border: 1px solid var(--gold-dim);
  color: var(--gold-bright);
  background: transparent;
}
.topnav .btn-ghost:hover{
  border-color: var(--gold);
  background: rgba(232,163,61,0.08);
}


.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  padding: 11px 20px;
  font-weight:600;
  font-size: 0.92rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px) scale(0.99); }


.btn-gold{

  background:
    linear-gradient(
      180deg,
      var(--gold-bright),
      var(--gold)
    );

  color:#201404;

  box-shadow:
    0 3px 8px rgba(0,0,0,0.18);

}


.btn-gold:hover{ box-shadow: 0 10px 26px -8px rgba(232,163,61,0.75); transform: translateY(-1px); }
.btn-crimson{
  background: linear-gradient(180deg, var(--crimson-bright), var(--crimson));
  color: #2a0806;
}
.btn-turf{
  background: linear-gradient(180deg, var(--turf-bright), var(--turf));
  color: #06170b;
}
.btn-ghost{
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover{ border-color: var(--gold); color: var(--gold-bright); }
.btn-sm{ padding: 7px 13px; font-size: 0.8rem; }

#acceptHighestBidBtn{
  padding: 6px 14px;
  font-size: 0.78rem;
  min-height: 32px;
  margin-top: 12px;
  border-radius: 6px;
}

.btn-block{ width:100%; }
.btn:disabled{ opacity:0.4; cursor:not-allowed; }

.btn-danger {
  border: 1px solid #ef4444;
  color: #0f0f0f;
}
.btn-danger:hover {
  background-color: #f05b5b;
  color: rgb(165, 32, 32);
}



/* ---------- Badges / pills ---------- */
.pill{
  display:inline-flex; align-items:center; gap:6px;
  padding: 4px 11px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 1px; text-transform: uppercase;
  border: 1px solid var(--line);
}
.pill-live{ background: rgba(199,68,59,0.16); border-color: var(--crimson); color: var(--crimson-bright); }
.pill-sold{ background: rgba(47,122,68,0.18); border-color: var(--turf); color: var(--turf-bright); }
.pill-unsold{ background: rgba(107,122,114,0.18); border-color: var(--unsold); color: var(--text-dim); }
.pill-gold{ background: rgba(232,163,61,0.15); border-color: var(--gold); color: var(--gold-bright); }
.dot{ width:6px; height:6px; border-radius:50%; background: currentColor; }
.blink{ animation: blink 1.4s infinite; }
@keyframes blink{ 0%,100%{opacity:1} 50%{opacity:0.25} }

/* ---------- Nav ---------- */
.topnav{
  position:sticky; top:0; z-index:50;
  background:rgba(5,18,14,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  /* Needed so the mobile dropdown panel anchors correctly */
  overflow: visible;
}

.topnav .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:72px;
  gap:20px;
  flex-wrap:nowrap;
}

.brand{ display:flex; align-items:center; gap:10px; flex-shrink:0; }
.brand-mark{
  width:38px; height:38px; border-radius:8px;
  background: conic-gradient(from 210deg, var(--gold), var(--crimson), var(--turf), var(--gold));
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-display); font-weight:700; font-size:1.2rem; color:#0A1E17;
}

.brand-name{
  font-family:var(--font-display);
  font-size:1.55rem;
  letter-spacing:0.4px;
}

.brand-name span{ color: var(--gold); }

.navlinks{
  display:flex;
  align-items:center;
  justify-content:center;
  flex:1;
  gap:18px;
  flex-wrap:nowrap;
  white-space:nowrap;
}


.navlinks a{
  position:relative;
  transition:all .2s ease;
  font-size:1.05rem;
  font-weight:900;
  color:rgba(255,255,255,0.88);
}

.navlinks a:hover{color:var(--gold);}

.navlinks a::after{ content:""; position:absolute; left:0; bottom:-8px; width:0; height:2px; background:var(--gold); transition:width .2s ease;}

.navlinks a:hover::after{ width:100%;}


/* ---------- Scoreboard (signature element) ---------- */
.scoreboard{
  position: relative;
  background:
    repeating-linear-gradient(180deg, rgba(0,0,0,0.18) 0 2px, transparent 2px 4px),
    linear-gradient(180deg, #071525, #050D1A);
  border: 1px solid rgba(201,164,106,0.25);
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 40px rgba(0,0,0,0.6), var(--shadow-deep);
  padding: clamp(18px, 2vw, 26px);
}
.scoreboard::before{
  content:"";
  position:absolute; inset:0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(232,163,61,0.06);
  pointer-events:none;
}
.sb-label{ font-family: var(--font-mono); font-size:0.7rem; letter-spacing:3px; color: var(--turf-bright); text-transform:uppercase; }
.sb-digits{
  font-family: var(--font-mono); font-weight:700;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  color: var(--gold-bright);
  text-shadow: 0 0 18px rgba(247,196,99,0.55), 0 0 2px rgba(247,196,99,0.9);
  letter-spacing: 2px;
}
.sb-digits.rolling{ animation: roll .35s ease; }
@keyframes roll{ 0%{ transform: translateY(6px); opacity:0.3 } 100%{ transform: translateY(0); opacity:1 } }
.sb-sub{ font-family: var(--font-mono); font-size:0.78rem; color: var(--text-dim); }
#lb_team{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.2vw, 2.98rem);
  letter-spacing: 0.5px;
  color: var(--crimson-bright);  
}

/* ---------- Player card ---------- */
.player-card{
  background: linear-gradient(180deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  cursor: pointer;
}
.player-card:hover{ transform: translateY(-4px); border-color: rgba(201,164,106,0.55); box-shadow: var(--shadow-deep); }
.player-photo{
  aspect-ratio: 1/1; width:100%;
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, #0B1D35, #071525);
  font-family: var(--font-display); font-size: 3rem; color: var(--gold-dim);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.role-tag{
  position:absolute; top:10px; left:10px;
  font-family: var(--font-mono); font-size:0.62rem; letter-spacing:1px; text-transform:uppercase;
  background: rgba(10,30,23,0.75); border:1px solid var(--gold-dim); color: var(--gold-bright);
  padding: 3px 8px; border-radius: 999px;
}
.player-body{ padding: 14px 16px 16px; }
.player-name{ font-family: var(--font-display); font-size: clamp(1.2rem, 1.6vw, 1.35rem); }
.player-meta{ font-size:0.8rem; color: var(--text-dim); margin-top:2px; }
.player-price{ font-family: var(--font-mono); font-weight:700; color: var(--gold-bright); font-size:1.05rem; }

.role-tag-bottom{
  top:auto !important;
  bottom:8px !important;
  left:8px !important;
}

/* ---------- Forms ---------- */
.field{ display:flex; flex-direction:column; gap:6px; margin-bottom:16px; }
.field label{ font-size:0.78rem; color: var(--text-dim); letter-spacing:0.3px; }
.field input, .field select, .field textarea{
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  color: var(--text);
  font-size: 0.92rem;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(232,163,61,0.18);
}
.field textarea{ resize: vertical; min-height: 80px; }
.field-row{ display:grid; grid-template-columns: 1fr 1fr; gap:14px; }
@media (max-width:640px){ .field-row{ grid-template-columns: 1fr; } }

.upload-box{
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align:center;
  color: var(--text-dim);
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.upload-box:hover{ border-color: var(--gold); color: var(--gold-bright); }

/* ---------- Table ---------- */
table{ width:100%; border-collapse: collapse; font-size:0.88rem; }
th{
  text-align:left; font-family: var(--font-mono); font-size:0.68rem; letter-spacing:1.5px;
  text-transform:uppercase; color: var(--text-faint); padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
td{ padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:hover td{ background: rgba(255,255,255,0.02); }

/* Wide tables scroll horizontally on small screens instead of
   squashing columns unreadably. Wrap a table in .table-scroll
   where convenient — existing bare <table> markup still works. */
.table-scroll{ overflow-x:auto; -webkit-overflow-scrolling:touch; }

/* ---------- Modal ---------- */
.modal-backdrop{
  position: fixed; inset:0; background: rgba(4,10,7,0.78);
  backdrop-filter: blur(4px);
  display:none; align-items:center; justify-content:center;
  z-index: 200; padding: 20px;
}
.modal-backdrop.open{ display:flex; }
.modal{
  background: linear-gradient(180deg, var(--surface-hi), var(--bg-alt));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  max-width: 720px; width:100%;
  max-height: 88vh; overflow-y:auto;
  box-shadow: var(--shadow-deep);
  padding: clamp(20px, 3vw, 28px);
  position: relative;
}
.modal-close{
  position:absolute; top:16px; right:16px;
  width:32px; height:32px; border-radius:50%;
  background: var(--bg-alt); border:1px solid var(--line); color: var(--text-dim);
  display:flex; align-items:center; justify-content:center; font-size:1.1rem;
  transition: color .15s ease, border-color .15s ease;
}
.modal-close:hover{ color: var(--crimson-bright); border-color: var(--crimson); }

/* ---------- Bars / progress ---------- */
.bar-track{ height:8px; border-radius:99px; background: var(--bg-alt); border:1px solid var(--line); overflow:hidden; }
.bar-fill{ height:100%; background: linear-gradient(90deg, var(--turf), var(--turf-bright)); border-radius:99px; transition: width .35s ease; }
.bar-fill.warn{ background: linear-gradient(90deg, var(--gold), var(--gold-bright)); }
.bar-fill.danger{ background: linear-gradient(90deg, var(--crimson), var(--crimson-bright)); }

/* ---------- Divider ---------- */
.divider{ height:1px; background: var(--line); border:none; margin: 28px 0; }
.section-head{ display:flex; align-items:baseline; justify-content:space-between; margin-bottom:18px; gap:12px; flex-wrap:wrap; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar{ width:10px; height:10px; }
::-webkit-scrollbar-track{ background: var(--bg); }
::-webkit-scrollbar-thumb{ background: var(--surface-hi); border-radius: 99px; border: 2px solid var(--bg); }
*{ scrollbar-width: thin; scrollbar-color: var(--surface-hi) var(--bg); }

/* ---------- Footer ---------- */
footer{ border-top:1px solid var(--line); padding: clamp(28px, 4vw, 34px) 0; margin-top: 60px; }

/* ---------- Utility ---------- */
.text-center{ text-align:center; }
.w-full{ width:100%; }
.toast{
  position: fixed; bottom: 24px; right:24px; z-index:300;
  background: var(--surface-hi); border:1px solid var(--gold); border-radius: var(--radius-md);
  padding: 14px 20px; box-shadow: var(--shadow-deep);
  font-size:0.88rem; transform: translateY(20px); opacity:0; pointer-events:none;
  transition: all .25s ease;
  max-width: min(360px, calc(100vw - 48px));
}
.toast.show{ transform: translateY(0); opacity:1; }


/* ---------- SOLD Celebration ---------- */

#soldCelebrationOverlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.90);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: clamp(16px, 4vw, 40px);
    text-align: center;
    overflow-y: auto;
    z-index: 9999;
}


#soldCelebrationOverlay.show{
    display: flex;
}

.sold-banner{

    font-family: var(--font-display);

    font-size: clamp(2.8rem, 9vw, 7rem);

    color: var(--gold-bright);

    text-shadow:
        0 0 15px var(--gold),
        0 0 35px var(--gold);

    animation:
        soldPulse 0.8s infinite;

    letter-spacing: 4px;

    text-transform: uppercase;
}

#soldPlayerPhoto{
    width: min(400px, 70vw, 40vh);
    height: min(400px, 70vw, 40vh);
    aspect-ratio: 1 / 1;
    margin: 20px auto 0;
    border-radius: 20px;
    overflow: hidden;
    border: 4px solid var(--gold);
    position: relative;
    animation: photoGlow 0.8s infinite;
}

#soldPlayerPhoto img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    transform: scale(1.15);
}

#soldPlayerName{

    font-size: clamp(1.6rem, 6vh, 6rem);

    margin-top: 20px;
}




#soldTeamName{
    font-size: clamp(1.8rem, 7vh, 8rem);
    font-family:var(--font-display);
    text-transform:uppercase;
}




#soldWinningBid{

    font-size: clamp(1.6rem, 5vw, 4rem);

    font-family: var(--font-mono);

    margin-top: 20px;
}

@keyframes soldPulse{

    0%{
        transform: scale(1);
    }

    50%{
        transform: scale(1.08);
    }

    100%{
        transform: scale(1);
    }
}


@keyframes photoGlow{

    0%{
        box-shadow:
            0 0 10px var(--gold);
    }

    50%{
        box-shadow:
            0 0 30px var(--gold),
            0 0 60px orange,
            0 0 100px yellow;
    }

    100%{
        box-shadow:
            0 0 10px var(--gold);
    }
}

@keyframes emojiFlash{

    0%{
        opacity:1;
        transform:scale(1);
        filter:drop-shadow(0 0 5px gold);
    }

    50%{
        opacity:0.2;
        transform:scale(1.5);
        filter:
            drop-shadow(0 0 15px gold)
            drop-shadow(0 0 30px yellow);
    }

    100%{
        opacity:1;
        transform:scale(1);
        filter:drop-shadow(0 0 5px gold);
    }
}


#soldPlayerPhoto,
#soldPlayerName,
#soldTeamName,
#soldWinningBid{

    animation:
        winnerPop 0.6s ease;
}

@keyframes winnerPop{

    0%{
        transform:scale(0.3);
        opacity:0;
    }

    60%{
        transform:scale(1.15);
    }

    100%{
        transform:scale(1);
        opacity:1;
    }
}


@media (max-width:900px){

  .topnav .wrap{

    flex-wrap:wrap;

    justify-content:center;

    padding:12px 16px;

  }

  .navlinks{

    width:100%;

    justify-content:center;

    flex-wrap:wrap;

  }

}


/* ABOUT — premium auction card */
.about-wrap{
  --gold-400:#e8c468;
  --gold-500:#cda23f;
  --emerald:#1f6e52;
  --navy-900:#080b12;
  --navy-700:#131a27;
  --cream:#f3ead9;
  --cream-dim:#c9c0ad;
}
.about-eyebrow{
  font-size:12px; font-weight:600; letter-spacing:.25em;
  text-transform:uppercase; color:var(--gold-400); margin:0 0 8px;
}
.about-wrap .h-xl{
  text-transform:uppercase; letter-spacing:.02em;
}
.about-rule{ display:flex; align-items:center; gap:14px; margin:14px 0 22px; }
.about-rule .line{ height:1px; flex:1; background:linear-gradient(90deg,var(--gold-500),transparent); }
.about-rule .line.rev{ background:linear-gradient(270deg,var(--gold-500),transparent); }
.about-rule svg{ width:24px; height:24px; color:var(--gold-400); flex:none; }

.about-card{
  position:relative;
  background:
    linear-gradient(135deg, #071525 0%, #0B1D35 55%, #0E2940 100%);
  border:1px solid rgba(232,196,104,.28);
  border-radius:4px;
  padding: clamp(28px, 4vw, 44px) clamp(20px, 4vw, 48px);
  overflow:hidden;
}
.about-card::before,.about-card::after{
  content:""; position:absolute; width:34px; height:34px; border:1px solid var(--gold-500);
}
.about-card::before{ top:14px; left:14px; border-right:none; border-bottom:none; }
.about-card::after{ bottom:14px; right:14px; border-left:none; border-top:none; }

.about-card p{ font-size:16.5px; line-height:1.75; color:var(--cream-dim); margin:0 0 20px; position:relative; z-index:1; }
.about-card p:last-of-type{ margin-bottom:0; }
.about-card .lede{ font-size:19px; color:var(--cream); font-weight:500; }
.about-card strong{ color:var(--cream); font-weight:600; }

.about-stats{
  display:grid; grid-template-columns:repeat(3,1fr); gap:1px;
  background:rgba(232,196,104,.2); margin-top:34px; border-radius:3px; overflow:hidden; position:relative; z-index:1;
}
.about-stat{ background:var(--navy-900); padding:20px 18px; text-align:center; }
.about-stat .num{ font-size:22px; font-weight:600; color:var(--gold-400); display:block; }
.about-stat .label{ font-size:11.5px; letter-spacing:.08em; text-transform:uppercase; color:var(--cream-dim); margin-top:4px; }

@media (max-width:560px){
  .about-card{ padding:30px 24px; }
  .about-stats{ grid-template-columns:1fr; }
}

/* SUPPORT — premium contact card */
.support-wrap .h-xl{ text-transform:uppercase; letter-spacing:.02em; }

.support-card{
  position:relative;
  background:
    linear-gradient(135deg, #071525 0%, #0B1D35 55%, #0E2940 100%);
  border:1px solid rgba(232,196,104,.28);
  border-radius:4px;
  padding: clamp(24px, 4vw, 36px) clamp(18px, 4vw, 44px);
  overflow:hidden;
}
.support-card::before,.support-card::after{
  content:""; position:absolute; width:34px; height:34px; border:1px solid var(--gold-500,#cda23f);
}
.support-card::before{ top:14px; left:14px; border-right:none; border-bottom:none; }
.support-card::after{ bottom:14px; right:14px; border-left:none; border-top:none; }

.support-row{
  display:flex; align-items:center; gap:14px;
  padding:14px 0;
  position:relative; z-index:1;
}
.support-row + .support-row{ border-top:1px solid rgba(232,196,104,.14); }

.support-icon{
  width:38px; height:38px; flex:none;
  display:flex; align-items:center; justify-content:center;
  border-radius:50%;
  background:rgba(232,196,104,.12);
  border:1px solid rgba(232,196,104,.3);
  color:var(--gold-400,#e8c468);
}
.support-icon svg{ width:18px; height:18px; }

.support-text .label{
  font-size:11px; letter-spacing:.08em; text-transform:uppercase;
  color:var(--cream-dim,#c9c0ad); margin:0 0 2px;
}
.support-text .value{
  font-size:15.5px; font-weight:500; color:var(--cream,#f3ead9); margin:0;
}
.support-text .value a{ color:inherit; text-decoration:none; }
.support-text .value a:hover{ color:var(--gold-400,#e8c468); }

@media (max-width:560px){
  .support-card{ padding:26px 22px; }
}


/* TEAMS & OWNERS — premium team card */
.teams-wrap .h-xl{ text-transform:uppercase; letter-spacing:.02em; }
.teams-wrap .about-eyebrow{
  font-size:15px;
  letter-spacing:.2em;
}

.team-card{
  position:relative;
  background:
    linear-gradient(135deg, #071525 0%, #0B1D35 55%, #0E2940 100%);
  border:1px solid rgba(232,196,104,.28);
  border-radius:4px;
  padding: clamp(18px, 2vw, 22px) clamp(18px, 2.4vw, 24px);
  overflow:hidden;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.team-card:hover{ transform: translateY(-3px); border-color: rgba(232,196,104,.5); box-shadow: var(--shadow-deep); }
.team-card::after{
  content:"";
  position:absolute; top:0; left:0; right:0; height:2px;
  background:linear-gradient(90deg,var(--gold-500,#cda23f),transparent);
}

.team-card .h-md{ color:var(--cream,#f3ead9); font-weight:600; }
.team-card .team-owner{
  font-size:14px; color:var(--gold-400,#e8c468); margin-top:2px;
}

.team-card .divider{ border-color:rgba(232,196,104,.16); }

.team-card .row-label{
  font-size:11px; letter-spacing:.06em; text-transform:uppercase;
  color:var(--cream-dim,#c9c0ad);
}
.team-card .row-value{ font-family:inherit; color:var(--cream,#f3ead9); }

.team-card .bar-track{
  background:rgba(232,196,104,.12);
  border-radius:3px; height:6px; overflow:hidden;
}
.team-card .bar-fill{
  background:linear-gradient(90deg,var(--emerald,#1f6e52),var(--gold-500,#cda23f));
  height:100%;
}
.team-card .bar-fill.warn{ background:linear-gradient(90deg,#a97f22,#e8c468); }
.team-card .bar-fill.danger{ background:linear-gradient(90deg,#8a2f2f,#d85a30); }

.team-card .pill-gold{ color:var(--gold-400,#e8c468); font-weight:600; }

/* ---------- Large screens / TV displays ---------- */
@media (min-width: 1920px){
  html{ font-size: 18px; }
  .wrap{ max-width: 1900px; }
}


/* ---------- Mobile layout fixes ---------- */
@media (max-width: 900px){
  /* Compact nav: brand + login buttons on one row,
     nav links become a horizontal scroll strip below —
     instead of every link stacking on its own line. */
  .topnav .wrap{
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 10px 16px;
    row-gap: 10px;
  }
  .brand-name{ font-size: 1.25rem; }
  .navlinks{
    order: 3;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    padding-bottom: 4px;
  }
  .navlinks::-webkit-scrollbar{ display:none; }
  .navlinks a{ font-size: 0.92rem; }

  /* Hero: force the banner/scoreboard grid to stack —
     overrides the inline style="grid-template-columns:1.3fr 1fr" */
  header .grid{
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Venue / Date & Time / Organizer row: stack instead of
     cramming three labels across one line */
  header .flex.gap-24{
    flex-direction: column !important;
    gap: 14px !important;
  }

  /* Keep SOLD / UNSOLD / REMAINING as 3 columns even on
     phones — the numbers are small enough to fit fine */
  .scoreboard .g-3{
    grid-template-columns: repeat(3,1fr) !important;
  }
}

@media (max-width: 480px){
  .header-btn{ font-size: 0.68rem; padding: 4px 8px; }
}

#heroSection { opacity: 0; transition: opacity 0.3s ease; }
#heroSection.is-ready { opacity: 1; }

/* ========================================
   LIVE AUCTION HERO CTA
======================================== */

.live-auction-cta-wrap{
    margin-top:30px;
    display:flex;
    justify-content:center;
}

.live-auction-cta{

    display:inline-flex;
    align-items:center;
    gap:18px;

    padding:22px 46px;

    border-radius:999px;

    background:
        linear-gradient(
            180deg,
            #08150F,
            #050D09
        );

    border:2px solid #E8615A;

    color:white;

    text-decoration:none;

    box-shadow:
        0 0 0 1px rgba(232,97,90,.15),
        0 12px 30px rgba(0,0,0,.45);

    transition:.3s;
}

.live-auction-cta:hover{

    transform:translateY(-4px);

    box-shadow:
        0 0 15px rgba(232,97,90,.5),
        0 20px 40px rgba(0,0,0,.55);
}

.live-auction-pulse{

    width:16px;
    height:16px;

    border-radius:50%;

    background:#ff3b30;

    box-shadow:
    0 0 10px #ff3b30,
    0 0 20px #ff3b30;
    

    animation:
        liveAuctionPulse
        1.2s infinite;
}


.live-auction-small{

    font-size:0.75rem;
    font-weight:700;

    letter-spacing:3px;

    opacity:0.85;
}

.live-auction-title{

    font-family: var(--font-display);

    font-size: 2rem;

    font-weight: 600;

    letter-spacing: 0.5px;

    line-height: 1;
}

@keyframes liveAuctionPulse{

    0%{
        transform:scale(1);
        opacity:1;
    }

    50%{
        transform:scale(1.5);
        opacity:0.4;
    }

    100%{
        transform:scale(1);
        opacity:1;
    }
}


/* ============================================================
   TOURNAMENT MARKETPLACE — v4.5.0
   Additive only. No existing rules modified.
   ============================================================ */

/* ── Group (Today / Upcoming / Past) ── */
.mkt-group {
  margin-bottom: 48px;
}

.mkt-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.mkt-group-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.mkt-dot-today    { background: var(--crimson-bright); box-shadow: 0 0 8px var(--crimson-bright); animation: blink 1.4s infinite; }
.mkt-dot-upcoming { background: var(--gold-bright); }
.mkt-dot-past     { background: var(--unsold); }

.mkt-group-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 600;
  color: var(--text);
  margin: 0;
  letter-spacing: 0.3px;
}

/* ── Card grid ── */
.mkt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
}

/* ── Tournament card ── */
.mkt-card {
  background: linear-gradient(180deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.mkt-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201,164,106,0.55);
  box-shadow: var(--shadow-deep);
}

/* ── Banner ── */
.mkt-card-banner {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--line);
}
.mkt-card-banner-placeholder {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, #0E2940, #071525);
  border-bottom: 1px solid var(--line);
  color: var(--gold-dim);
}

/* ── Card body ── */
.mkt-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.mkt-card-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.mkt-card-name {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.5vw, 1.3rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.mkt-card-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mkt-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: var(--font-body);
}
.mkt-meta-row svg {
  flex-shrink: 0;
  color: var(--gold-dim);
}

/* ── View button ── */
.mkt-card-btn {
  margin-top: auto;
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  padding: 7px 15px;
  border-radius: 8px;
  background: linear-gradient(160deg, #0A1C32, #112A4A);
  border: 1px solid rgba(201,164,106,0.45);
  color: #F3D49D;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.45), 0 0 0 1px rgba(201,164,106,0.08);
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.mkt-card-btn:hover {
  border-color: rgba(201,164,106,0.8);
  box-shadow: 0 6px 22px -4px rgba(201,164,106,0.35), 0 2px 10px rgba(0,0,0,0.5);
  transform: translateY(-1px);
}

/* ── Status badges ── */
.mkt-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
  border: 1px solid transparent;
}
.mkt-badge-live {
  background: rgba(199,68,59,0.18);
  border-color: var(--crimson);
  color: var(--crimson-bright);
  animation: blink 1.4s infinite;
}
.mkt-badge-paused {
  background: rgba(232,163,61,0.15);
  border-color: var(--gold-dim);
  color: var(--gold-bright);
}
.mkt-badge-today {
  background: rgba(232,163,61,0.15);
  border-color: var(--gold);
  color: var(--gold-bright);
}
.mkt-badge-upcoming {
  background: rgba(47,122,68,0.15);
  border-color: var(--turf);
  color: var(--turf-bright);
}
.mkt-badge-ended {
  background: rgba(107,122,114,0.15);
  border-color: var(--unsold);
  color: var(--text-dim);
}

/* ── Empty state ── */
.mkt-empty {
  color: var(--text-faint);
  font-size: 0.88rem;
  font-family: var(--font-mono);
  padding: 20px 0;
  margin: 0;
}

/* ── Loading skeleton ── */
.mkt-skeleton {
  height: 280px;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-hi) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: mkt-shimmer 1.4s infinite;
  border: 1px solid var(--line);
}
@keyframes mkt-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .mkt-grid {
    grid-template-columns: 1fr;
  }
  .mkt-card-banner,
  .mkt-card-banner-placeholder {
    height: 140px;
  }
}

/* ── Tournament Detail Page ──────────────────────────────────────────────── */

.trn-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.18s ease;
}
.trn-back-link svg { flex-shrink: 0; transition: transform 0.18s ease; }
.trn-back-link:hover { color: var(--gold-bright); }
.trn-back-link:hover svg { transform: translateX(-3px); }

/* ── v4.5.2 Tournament Summary ───────────────────────────────────────────── */

.rc-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(10px, 1.2vw, 16px);
}

.rc-stat-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: clamp(20px, 2.4vw, 28px) clamp(14px, 1.6vw, 20px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--surface), var(--bg-alt));
  text-align: center;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.rc-stat-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-deep);
}

/* Accent top-edge bar */
.rc-stat-tile::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.rc-tile-gold::before    { background: linear-gradient(90deg, var(--gold), var(--gold-bright)); }
.rc-tile-turf::before    { background: linear-gradient(90deg, var(--turf), var(--turf-bright)); }
.rc-tile-unsold::before  { background: linear-gradient(90deg, var(--unsold), var(--text-dim)); }
.rc-tile-crimson::before { background: linear-gradient(90deg, var(--crimson), var(--crimson-bright)); }

.rc-tile-icon {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  line-height: 1;
}

.rc-tile-value {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}
.rc-tile-gold    .rc-tile-value { color: var(--gold-bright); }
.rc-tile-turf    .rc-tile-value { color: var(--turf-bright); }
.rc-tile-unsold  .rc-tile-value { color: var(--text-dim); }
.rc-tile-crimson .rc-tile-value { color: var(--crimson-bright); }

.rc-tile-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--text-faint);
  line-height: 1.3;
}

/* Responsive: 3 cols on tablet, 2 on mobile */
@media (max-width: 1000px) {
  .rc-summary-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 540px) {
  .rc-summary-grid { grid-template-columns: repeat(2, 1fr); }
  /* Total Auction Value spans full width on 2-col layout */
  .rc-stat-tile:last-child { grid-column: 1 / -1; }
}

/* ── v4.5.2 Phase 2 — Highlight Cards ───────────────────────────────────── */

.rc-highlights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 1.6vw, 22px);
}

.rc-highlight-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(24px, 3vw, 36px) clamp(20px, 2.5vw, 32px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--surface), var(--bg-alt));
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.rc-highlight-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-deep);
}

/* Gold accent top bar */
.rc-highlight-player { border-top: 3px solid var(--gold); }
.rc-highlight-team   { border-top: 3px solid var(--crimson); }

/* Subtle radial glow behind the card */
.rc-highlight-player::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(201,164,106,0.08), transparent 70%);
  pointer-events: none;
}
.rc-highlight-team::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(199,68,59,0.07), transparent 70%);
  pointer-events: none;
}

.rc-hl-crown {
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  line-height: 1;
  margin-bottom: 6px;
}

.rc-hl-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.rc-highlight-team .rc-hl-eyebrow { color: var(--crimson-bright); }

/* Photo circle */
.rc-hl-photo-wrap { margin-bottom: 16px; }

.rc-hl-photo {
  width: clamp(88px, 10vw, 112px);
  height: clamp(88px, 10vw, 112px);
  border-radius: 50%;
  border: 3px solid var(--gold-dim);
  background: linear-gradient(135deg, #0E2940, #071525);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 auto;
  box-shadow: 0 0 0 4px rgba(201,164,106,0.12);
}

/* Team swatch: centred, no extra wrapper needed */
.rc-hl-swatch {
  display: flex;
  justify-content: center;
}

.rc-hl-name {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 4px;
}

.rc-hl-role {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 2px;
}

.rc-hl-team-name {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gold-bright);
  letter-spacing: 0.5px;
}

/* Stat row */
.rc-hl-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.rc-hl-stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 10px;
}

.rc-hl-stat-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 5px;
}

.rc-hl-stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.rc-hl-gold { color: var(--gold-bright); }

/* Responsive: stack on mobile */
@media (max-width: 640px) {
  .rc-highlights-grid { grid-template-columns: 1fr; }
}

/* ── v4.5.2 Phase 3 — Sold & Unsold Tables ───────────────────────────────── */

/* ── Sold table: desktop ── */
.rc-table-wrap  { overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.rc-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.rc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 560px;
}
.rc-table thead tr {
  background: linear-gradient(180deg, #0E2940, #0B1D35);
}
.rc-table th {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.rc-table th:first-child { width: 44px; text-align: center; }
.rc-table th:last-child  { text-align: right; }

.rc-table-row td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
}
.rc-table-row:last-child td { border-bottom: none; }
.rc-table-row:hover td { background: rgba(255,255,255,0.025); }

/* Rank badge */
.rc-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(201,164,106,0.12);
  border: 1px solid var(--gold-dim);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold-bright);
  font-weight: 700;
}
.rc-table-row:first-child .rc-rank {
  background: rgba(201,164,106,0.22);
  border-color: var(--gold-bright);
  box-shadow: 0 0 8px rgba(201,164,106,0.3);
}

/* Player cell */
.rc-player-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.rc-player-name {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

/* Role cell */
.rc-role-cell {
  font-size: 0.8rem;
  color: var(--text-dim);
  white-space: nowrap;
}

/* Team cell */
.rc-team-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Winning bid */
.rc-bid-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--gold-bright);
  white-space: nowrap;
}
.rc-table th:last-child + td,
.rc-table td:last-child { text-align: right; }

/* ── Mobile card list (shown only on small screens) ── */
.rc-mobile-list  { display: none; }

.rc-mobile-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.rc-mobile-row:last-child { border-bottom: none; }

.rc-mobile-rank {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold-bright);
  font-weight: 700;
  width: 20px;
  flex-shrink: 0;
  text-align: center;
}
.rc-mobile-avatar { flex-shrink: 0; }
.rc-mobile-info   { flex: 1; min-width: 0; }
.rc-mobile-sub    { font-size: 0.75rem; color: var(--text-dim); margin-top: 2px; }
.rc-mobile-prices { text-align: right; flex-shrink: 0; }
.rc-mobile-base   { font-size: 0.72rem; color: var(--text-faint); margin-top: 2px; }

/* ── Unsold grid ── */
.rc-unsold-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: clamp(10px, 1.2vw, 14px);
}

.rc-unsold-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--surface), var(--bg-alt));
  transition: border-color 0.18s ease;
}
.rc-unsold-card:hover { border-color: rgba(201,164,106,0.45); }
.rc-unsold-avatar { flex-shrink: 0; }
.rc-unsold-info   { flex: 1; min-width: 0; }

/* ── Responsive: swap table → mobile cards at 640px ── */
@media (max-width: 640px) {
  .rc-table-wrap   { border: none; border-radius: 0; }
  .rc-table-scroll { display: none; }
  .rc-mobile-list  { display: block; }
  .rc-unsold-grid  { grid-template-columns: 1fr; }
}

/* ── v4.5.2 Phase 4 — Hall Of Fame ──────────────────────────────────────── */

.rc-hof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
  align-items: end; /* rank-1 card taller, sits at bottom of row */
}

/* Base card */
.rc-hof-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--surface), var(--bg-alt));
  overflow: hidden;
  padding: clamp(20px, 2.8vw, 32px) clamp(16px, 2vw, 24px) clamp(18px, 2.4vw, 28px);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.rc-hof-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-deep); }

/* Rank-specific accent top bars and sizing */
.hof-gold {
  border-top: 3px solid var(--gold-bright);
  padding-top: clamp(24px, 3.4vw, 40px); /* taller = visually "raised" */
}
.hof-gold::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 45% at 50% 0%, rgba(201,164,106,0.13), transparent 65%);
  pointer-events: none;
}

.hof-silver {
  border-top: 3px solid #9FB6A8;
}
.hof-silver::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 45% at 50% 0%, rgba(159,182,168,0.09), transparent 65%);
  pointer-events: none;
}

.hof-bronze {
  border-top: 3px solid #b87333;
}
.hof-bronze::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 45% at 50% 0%, rgba(184,115,51,0.09), transparent 65%);
  pointer-events: none;
}

/* Medal emoji */
.rc-hof-medal {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1;
  margin-bottom: 12px;
}

/* Player photo */
.rc-hof-photo {
  width: clamp(72px, 9vw, 100px);
  height: clamp(72px, 9vw, 100px);
  border-radius: 50%;
  border: 2px solid var(--gold-dim);
  background: linear-gradient(135deg, #0E2940, #071525);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.hof-gold .rc-hof-photo {
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(201,164,106,0.18), 0 0 16px rgba(201,164,106,0.22);
  width: clamp(84px, 10vw, 116px);
  height: clamp(84px, 10vw, 116px);
}

/* Text */
.rc-hof-name {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 4px;
}
.hof-gold .rc-hof-name { font-size: clamp(1.2rem, 2vw, 1.6rem); }

.rc-hof-role {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.rc-hof-team {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  color: var(--gold-bright);
  margin-bottom: 12px;
}
.hof-silver .rc-hof-team { color: #9FB6A8; }
.hof-bronze .rc-hof-team { color: #c8956a; }

.rc-hof-bid {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: var(--gold-bright);
  line-height: 1;
}
.hof-silver .rc-hof-bid { color: #c8d8d0; }
.hof-bronze .rc-hof-bid { color: #d4a57a; }

.rc-hof-base {
  font-size: 0.7rem;
  color: var(--text-faint);
  margin-top: 4px;
}

/* Responsive: stack on mobile */
@media (max-width: 640px) {
  .rc-hof-grid {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  /* Restore equal padding on mobile — no visual "podium" height difference */
  .hof-gold { padding-top: clamp(20px, 2.8vw, 32px); }
}




/* ============================================================

/* ============================================================

/* ============================================================

/* ============================================================

/* ============================================================

/* ============================================================

/* ============================================================
   SAAS HERO SLIDESHOW � v4.5.7
   Split layout: image left, feature panel right.
   Panel zones: label ? title ? desc | checks | modules + CTA
   ============================================================ */

/* -- Section -- */
.ss-section {
  width: 100%;
  background: transparent;
  padding: 0 clamp(12px, 2vw, 28px) clamp(12px, 1.6vw, 20px);
  box-sizing: border-box;
}

/* -- Wrap -- */
.ss-wrap {
  position: relative;
  max-width: min(1600px, 96vw);
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.07);
  background: #071525;
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

/* -- Left column -- */
.ss-image-col {
  position: relative;
  flex: 0 0 60%;
  min-width: 0;
  line-height: 0;
  display: flex;
  flex-direction: column;
}

/* -- Track -- */
.ss-track {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  flex: 1 1 auto;
}

/* -- Slides -- */
.ss-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  will-change: opacity;
  transform: translateZ(0);
  transition: opacity 1s ease-in-out;
  pointer-events: none;
}
.ss-slide-active { opacity: 1; pointer-events: auto; }
.ss-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  user-select: none; -webkit-user-drag: none;
}

/* -- Arrows -- */
.ss-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 10;
  width: clamp(32px, 3vw, 42px);
  height: clamp(32px, 3vw, 42px);
  border-radius: 50%;
  background: rgba(5,15,10,0.72);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-dim);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.ss-arrow:hover {
  background: rgba(201,164,106,0.18);
  border-color: rgba(201,164,106,0.5);
  color: var(--gold-bright);
}
.ss-arrow svg { width: clamp(13px, 1.4vw, 17px); height: clamp(13px, 1.4vw, 17px); }
.ss-arrow-prev { left:  clamp(8px, 1vw, 14px); }
.ss-arrow-next { right: clamp(8px, 1vw, 14px); }

/* -- Dots -- */
.ss-dots {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; padding: 10px 0;
  background: #071525; flex-shrink: 0; line-height: 1;
}
.ss-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--line); border: none; cursor: pointer; padding: 0;
  transition: background 0.2s ease, width 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}
.ss-dot-active { background: var(--gold-bright); width: 20px; border-radius: 4px; }
.ss-dot:hover:not(.ss-dot-active) { background: var(--gold-dim); transform: scale(1.2); }

/* -- Right column: panel -- */
.ss-panel {
  flex: 1 1 40%;
  min-width: 0;
  display: flex;
  align-items: stretch;
  background: linear-gradient(135deg, #071525, #0E213B);
  border-left: 1px solid rgba(255,255,255,0.10);
  overflow: hidden;
}

/* -- Panel animations -- */
.ss-panel-exit { animation: ss-panel-out 0.5s ease-in-out forwards; }
.ss-panel-enter { animation: ss-panel-in 0.5s ease-in-out forwards; }
@keyframes ss-panel-out {
  from { opacity: 1; transform: translateY(0);     }
  to   { opacity: 0; transform: translateY(-12px); }
}
@keyframes ss-panel-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* -- Panel inner: content centred, not stretched -- */
.ss-panel-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(16px, 2vw, 28px) clamp(16px, 2vw, 26px);
  gap: clamp(10px, 1.1vw, 14px);
}

/* -- Zone 1: label + title + desc -- */
.ss-panel-top {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ss-panel-label {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.57rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201,164,106,0.1);
  border: 1px solid rgba(201,164,106,0.22);
  border-radius: 999px;
  padding: 3px 10px;
  margin: 0;
  align-self: flex-start;
}

.ss-panel-title {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.7vw, 1.5rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.12;
  margin: 0;
}

.ss-panel-desc {
  font-size: clamp(0.74rem, 0.88vw, 0.83rem);
  color: var(--text-dim);
  line-height: 1.5;
  margin: 0;
}

/* -- Shared zone heading -- */
.ss-section-heading {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 6px;
}

/* -- Zone 2: checkmark benefits (2-col grid) -- */
.ss-panel-mid {
  padding-top: clamp(10px, 1.1vw, 14px);
  border-top: 1px solid rgba(255,255,255,0.09);
}

.ss-check-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 10px;
}
.ss-check-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(0.72rem, 0.85vw, 0.8rem);
  color: var(--text-dim);
  line-height: 1.35;
}
.ss-check-icon {
  font-size: 0.72rem;
  flex-shrink: 0;
  line-height: 1;
}

/* -- Zone 3: module grid + CTA -- */
.ss-panel-bot {
  padding-top: clamp(10px, 1.1vw, 14px);
  border-top: 1px solid rgba(255,255,255,0.09);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ss-mod-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 8px;
}
.ss-mod-item {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(14,33,59,0.6);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 6px;
  padding: 5px 8px;
}
.ss-mod-icon {
  font-size: 0.82rem;
  line-height: 1;
  flex-shrink: 0;
}
.ss-mod-text {
  font-size: clamp(0.68rem, 0.82vw, 0.76rem);
  color: var(--text-dim);
  font-family: var(--font-body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* -- CTA button -- */
.ss-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  padding: 7px 15px;
  border-radius: 8px;
  background: linear-gradient(160deg, #0A1C32, #112A4A);
  border: 1px solid rgba(201,164,106,0.45);
  color: #F3D49D;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.45), 0 0 0 1px rgba(201,164,106,0.08);
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.ss-cta-btn:hover {
  border-color: rgba(201,164,106,0.8);
  box-shadow: 0 6px 22px -4px rgba(201,164,106,0.35), 0 2px 10px rgba(0,0,0,0.5);
  transform: translateY(-1px);
}
.ss-cta-arrow { font-size: 0.9rem; }

/* -- Mobile: stack -- */
@media (max-width: 720px) {
  .ss-wrap { flex-direction: column; }
  .ss-image-col { flex: none; width: 100%; }
  .ss-track { aspect-ratio: 16 / 9; }
  .ss-panel {
    flex: none; width: 100%;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.06);
  }
  .ss-panel-inner { padding: 14px 15px; gap: 10px; }
  .ss-panel-top   { gap: 4px; }
  .ss-panel-title { font-size: clamp(1rem, 4vw, 1.2rem); }
  .ss-panel-desc  { font-size: 0.76rem; }
  .ss-panel-mid   { padding-top: 10px; }
  .ss-check-list  { grid-template-columns: 1fr; gap: 4px; }
  .ss-panel-bot   { padding-top: 10px; gap: 6px; }
  .ss-mod-grid    { grid-template-columns: 1fr 1fr; gap: 4px; }
  .ss-mod-text    { font-size: 0.7rem; }
}

@media (max-width: 380px) {
  .ss-arrow { display: none; }
  .ss-mod-grid { grid-template-columns: 1fr; }
}
