/* ============================================================
   Running The Gauntlet — page styles (SNS 2.3 theme)
   Wraps football_v17.html in an iframe under SNS chrome.
   ============================================================ */
:root {
  --red-primary: #FF1A1A;
  --red-bright:  #FF3B30;
  --red-crimson: #8B0000;
  --red-glow:    #FF2D2D;
  --orange-accent: #FF6A00;
  --gold:        #F0BD30;
  --gold-soft:   #D4A847;

  --black-pure: #000000;
  --black-bg:   #050505;
  --black-card: #0A0A0A;
  --black-soft: #111111;
  --gray-border:#2A2A2A;
  --gray-light: #8A8A8A;
  --white-bright:#F5F5F5;
  --hairline:   rgba(255,255,255,0.06);
  --hairline-2: rgba(255,255,255,0.10);

  --f-display: 'Bebas Neue', 'Oswald', sans-serif;
  --f-body:    'Inter', system-ui, sans-serif;
  --f-numeral: 'Rajdhani', 'Inter', sans-serif;
  --f-pixel:   'Press Start 2P', 'Rajdhani', monospace;

  --sidebar-w: 140px;
  --row-gap: 18px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--black-bg);
  color: var(--white-bright);
  font-family: var(--f-body);
  font-size: 16px;
  min-height: 100vh;
}
html { color-scheme: dark; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
kbd {
  font-family: var(--f-pixel);
  font-size: 9px; padding: 2px 5px;
  background: var(--black-soft); border: 1px solid var(--hairline-2);
  border-radius: 3px; color: var(--gold);
}

.skip { position: absolute; top: -100px; left: 0; padding: 8px 16px; background: var(--red-primary); color: #fff; z-index: 100; }
.skip:focus { top: 0; }

/* ===== App grid (sidebar + content) ===== */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
  max-width: 1440px;
  margin: 0 auto;
}
.content {
  display: grid;
  grid-auto-rows: min-content;
  gap: var(--row-gap);
  padding: 24px 24px 32px;
  min-width: 0;
}

/* ===== Sidebar ===== */
.sidebar {
  background: var(--black-pure);
  border-right: 1px solid var(--red-primary);
  box-shadow: 4px 0 16px rgba(255, 0, 0, 0.25);
  padding: 28px 18px 0;
  display: flex; flex-direction: column;
  position: sticky; top: 0;
  height: 100vh;
}
.nav-brand {
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  filter: brightness(1.3) saturate(1.4) drop-shadow(0 0 8px rgba(255, 0, 0, 0.4));
  padding: 6px; height: 64px; margin-bottom: 8px;
}
.nav-brand img { width: 100%; height: 100%; object-fit: contain; }
.nav-list { display: flex; flex-direction: column; gap: 18px; padding: 18px 0 0; flex: 1; overflow-y: auto; min-height: 0; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  font-family: var(--f-display); font-weight: 400; font-size: 17px;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--gray-light); border-radius: 8px;
  transition: color .2s, background-color .2s;
}
.nav-item .nav-ic {
  width: 16px; height: 16px; display: inline-block;
  background: currentColor;
  -webkit-mask: var(--ic, none) center/contain no-repeat;
          mask: var(--ic, none) center/contain no-repeat;
  flex: 0 0 16px;
}
.ic-home   { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M3 11l9-8 9 8M5 10v10h14V10'/></svg>"); }
.ic-trophy { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M7 4h10v4a5 5 0 0 1-10 0V4z'/><path d='M5 4H3v3a3 3 0 0 0 3 3'/><path d='M19 4h2v3a3 3 0 0 1-3 3'/><path d='M9 20h6v-4H9z'/></svg>"); }
.ic-tree   { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M4 6h6M4 12h6M4 18h6M14 9h6M14 15h6M10 6v6M20 9v6'/></svg>"); }
.ic-users  { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><circle cx='9' cy='8' r='3'/><circle cx='17' cy='9' r='2.5'/><path d='M3 20c0-3 3-5 6-5s6 2 6 5'/><path d='M14 20c0-2 2-3.5 4-3.5s3 1 3 3.5'/></svg>"); }
.ic-star   { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><polygon points='12,3 14.6,9 21,9.6 16.2,13.8 17.7,20 12,16.8 6.3,20 7.8,13.8 3,9.6 9.4,9'/></svg>"); }
.ic-feed   { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M4 5h16M4 11h12M4 17h8'/></svg>"); }
.ic-dice   { --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><rect x='4' y='4' width='16' height='16' rx='3'/><circle cx='8.5' cy='8.5' r='1.2' fill='black'/><circle cx='15.5' cy='15.5' r='1.2' fill='black'/><circle cx='12' cy='12' r='1.2' fill='black'/></svg>"); }
.nav-item:hover, .nav-item:focus-visible { background: rgba(255,26,26,0.10); color: var(--white-bright); outline: none; }
.nav-item.is-active {
  background: var(--red-primary); color: var(--white-bright);
  box-shadow: inset 0 0 12px rgba(255, 80, 80, 0.55), 0 0 10px rgba(255, 0, 0, 0.35);
}
.nav-bottom { display: flex; flex-direction: column; gap: 8px; padding: 12px 0 16px; border-top: 1px solid rgba(255,26,26,0.18); margin-top: 8px; }
.nav-user { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--black-soft); border: 1px solid rgba(255,26,26,0.25); border-radius: 10px; }
.nu-avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--red-primary), var(--orange-accent)); flex: 0 0 28px; box-shadow: 0 0 0 2px var(--black-card); }
.nu-meta { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; gap: 3px; min-width: 0; }
.nu-hi { font-size: 11px; color: var(--gray-light); white-space: nowrap; }
.nu-pro { font-family: var(--f-display); font-size: 10px; background: var(--red-primary); color: #fff; padding: 1px 5px; border-radius: 3px; letter-spacing: .14em; }

.mob-nav-toggle { position: absolute; left: -9999px; }
.mob-nav-burger {
  display: none; position: fixed; top: 12px; left: 12px; z-index: 60;
  width: 40px; height: 40px; align-items: center; justify-content: center;
  background: var(--black-card); border: 1px solid var(--red-primary); border-radius: 8px;
  color: var(--red-bright); cursor: pointer;
}
.mob-nav-scrim { display: none; }

/* ===== Eyebrow ===== */
.card-eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px; color: var(--orange-accent);
  letter-spacing: .14em;
  padding: 2px 6px; border: 1px solid rgba(255,106,0,0.35); border-radius: 3px;
  display: inline-block;
}

/* ===== Hero ===== */
.rtg-hero {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 24px; align-items: center;
  background: linear-gradient(135deg, #0D0D0D 0%, #050505 50%, #110000 100%);
  border: 1px solid rgba(255,26,26,0.55);
  border-radius: 12px;
  box-shadow: 0 0 18px rgba(255,0,0,0.25), inset 0 0 8px rgba(255,0,0,0.08);
  padding: 22px 26px;
  position: relative; overflow: hidden;
  animation: rtg-card-in .55s ease-out both;
}
.rtg-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(800px 200px at 80% -10%, rgba(255,42,42,0.18), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 3px);
}
.rtg-hero-art {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  min-height: 200px;
}
.rtg-logo {
  width: 100%; max-width: 300px; height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 16px rgba(255,26,26,0.55)) drop-shadow(0 8px 22px rgba(0,0,0,0.65));
  animation: rtg-logo-bob 4s ease-in-out infinite;
}
@keyframes rtg-logo-bob {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-6px); }
}
.rtg-hero-text { position: relative; z-index: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.rtg-hero-text .card-eyebrow { align-self: flex-start; }
.rtg-title {
  font-family: var(--f-display); margin: 4px 0 0;
  font-size: clamp(36px, 5vw, 64px); letter-spacing: .04em; line-height: 1;
  text-transform: uppercase; color: var(--white-bright);
  text-shadow: 0 0 12px rgba(255,42,42,0.55), 0 4px 0 rgba(0,0,0,0.5);
}
.rtg-sub { margin: 6px 0 0; color: var(--gray-light); max-width: 56ch; line-height: 1.5; font-size: 14px; }
.rtg-meta { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.rtg-chip {
  font-family: var(--f-pixel); font-size: 9px;
  padding: 6px 9px; background: rgba(240,189,48,0.08);
  border: 1px solid rgba(240,189,48,0.45); color: var(--gold);
  border-radius: 4px; letter-spacing: .08em;
}

/* ===== Rotate prompt (mobile portrait only) ===== */
.rotate-prompt {
  display: none;
  text-align: center;
  padding: 48px 24px;
  background: linear-gradient(180deg, #0D0D0D, #050505);
  border: 1px solid rgba(255,26,26,0.45);
  border-radius: 12px;
  box-shadow: 0 0 14px rgba(255,0,0,0.22);
  animation: rtg-card-in .5s ease-out both;
}
.rotate-prompt svg {
  margin: 0 auto 18px;
  animation: rtg-rotate 2.4s ease-in-out infinite;
  transform-origin: 50% 50%;
}
@keyframes rtg-rotate {
  0%, 50%, 100% { transform: rotate(0); }
  20%           { transform: rotate(-90deg); }
  35%           { transform: rotate(-90deg); }
}
.rotate-prompt h2 {
  font-family: var(--f-display); font-size: 28px; letter-spacing: .04em;
  margin: 0 0 8px; color: var(--red-bright);
}
.rotate-prompt p { margin: 0; color: var(--gray-light); }

/* ===== Game stage — iframe wrapper ===== */
.rtg-stage {
  animation: rtg-card-in .65s ease-out both;
}
.rtg-game-wrap {
  position: relative;
  background: #1a1a1a;
  border: 1px solid rgba(255,26,26,0.55);
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(255,0,0,0.2), inset 0 0 6px rgba(255,0,0,0.08);
  overflow: hidden;
  min-height: 720px;
}
#rtg-game {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 720px;
  border: 0;
  background: #1a1a1a;
}

/* ===== Footnote ===== */
.rtg-footnote { margin: 6px 4px 0; color: var(--gray-light); font-size: 12px; line-height: 1.6; }

/* ===== Animations ===== */
@keyframes rtg-card-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Breakpoints ===== */
@media (max-width: 900px) {
  .content { padding: 12px; }
  .rtg-hero { grid-template-columns: 1fr; padding: 18px; }
  .rtg-hero-art { min-height: 160px; }
  .rtg-logo { max-width: 240px; }
}

/* ===== Mobile landscape: iframe is the whole screen, sidebar collapsed ===== */
@media (max-width: 900px) and (orientation: landscape) {
  .sidebar, .nav-bottom { display: none; }
  .app { grid-template-columns: 1fr; max-width: none; }
  .content {
    padding: 0; gap: 0;
    height: 100vh; height: 100dvh;
    overflow: hidden;
    display: flex; flex-direction: column;
    grid-auto-rows: initial;
  }
  .rtg-hero, .rtg-footnote { display: none; }
  .rtg-stage { flex: 1 1 0; min-height: 0; }
  .rtg-game-wrap {
    border: 0; border-radius: 0; box-shadow: none;
    min-height: 0; height: 100%;
  }
  #rtg-game { height: 100%; min-height: 0; }
  .mob-nav-burger { display: inline-flex; }
}

/* ===== Mobile portrait: rotate prompt only ===== */
@media (max-width: 900px) and (orientation: portrait) {
  .sidebar { display: none; }
  .app { grid-template-columns: 1fr; }
  .content { padding: 16px; }
  .rotate-prompt { display: block; }
  .rtg-hero, .rtg-stage, .rtg-footnote { display: none; }
  .mob-nav-burger { display: inline-flex; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .rtg-logo { animation: none; }
  .rtg-hero, .rtg-stage, .rotate-prompt { animation: none; }
}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
/* ======================================================
   v2.10 — Dashboard chrome polish (2026-05-17)
   Items: #2 border-4-sides  #3 max-width  #1 collapse
          #6 MORE icons       #4 card overflow
   ====================================================== */

/* ── #2  Sidebar border: all 4 sides ─────────────────── */
.sidebar {
  border: 1px solid var(--red-primary);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.28), inset 0 0 6px rgba(255, 0, 0, 0.06);
  overflow: hidden;          /* needed for collapse animation  */
}

/* ── #3  Max-width centering: body holds the app centred */
body {
  display: flex;
  flex-direction: column;
  align-items: stretch;     /* full-width children by default */
}
.app {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* ── #1  Sidebar collapse — CSS transitions ──────────── */
.app {
  transition: grid-template-columns 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.app.sidebar-collapsed {
  grid-template-columns: 0px minmax(0, 1fr) !important;
}

/* Sidebar fades+shrinks when collapsed */
.sidebar {
  min-width: 0;
  transition:
    min-width  0.28s cubic-bezier(0.4, 0, 0.2, 1),
    opacity    0.20s ease,
    padding    0.25s ease,
    border     0.25s ease;
}
.app.sidebar-collapsed .sidebar {
  min-width: 0 !important;
  opacity: 0;
  padding: 0 !important;
  border-width: 0 !important;
  pointer-events: none;
}

/* Collapse toggle button (injected by chrome.js) */
.nav-collapse-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 30px;
  background: transparent;
  border: 1px solid var(--hairline, #2a2a2a);
  border-radius: 6px;
  color: var(--gray-mid, #666);
  cursor: pointer;
  font-family: var(--f-body, 'Inter', sans-serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 6px 0 8px;
  flex-shrink: 0;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.nav-collapse-btn:hover {
  color: var(--white-bright, #fff);
  border-color: var(--red-primary, #FF1A1A);
  background: rgba(255, 26, 26, 0.08);
}
/* Chevron icon inside button */
.nc-chev {
  width: 12px; height: 12px;
  flex-shrink: 0;
  display: inline-block;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='15 18 9 12 15 6'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='15 18 9 12 15 6'/></svg>") center/contain no-repeat;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-collapse-btn.is-collapsed .nc-chev { transform: rotate(180deg); }
.nc-lbl { font-size: 9px; letter-spacing: .14em; }

/* Restore tab — thin red tab on left edge when sidebar is collapsed */
.sidebar-restore-btn {
  display: none;          /* shown via JS */
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 90;
  width: 18px;
  height: 52px;
  background: var(--red-primary, #FF1A1A);
  border: 1px solid var(--red-bright, #FF3B30);
  border-left: none;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, width .15s ease;
  padding: 0;
}
.sidebar-restore-btn:hover { background: var(--red-bright, #FF3B30); width: 22px; }
.sr-chev {
  width: 10px; height: 10px;
  display: inline-block;
  background: #fff;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='9 18 15 12 9 6'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='9 18 15 12 9 6'/></svg>") center/contain no-repeat;
}

/* Hide collapse button on mobile (mobile uses checkbox-hack burger) */
@media (max-width: 880px) {
  .nav-collapse-btn  { display: none !important; }
  .sidebar-restore-btn { display: none !important; }
}

/* ── #6  MORE sub-list new icon definitions ───────────── */
/* Pick'ems — crosshair */
.nav-item .ic-target {
  --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><circle cx='12' cy='12' r='6'/><circle cx='12' cy='12' r='2'/><line x1='2' y1='12' x2='22' y2='12'/><line x1='12' y1='2' x2='12' y2='22'/></svg>");
}
/* Duels — shield */
.nav-item .ic-shield {
  --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/></svg>");
}
/* Standings — bar chart */
.nav-item .ic-bar {
  --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='12' y1='20' x2='12' y2='10'/><line x1='18' y1='20' x2='18' y2='4'/><line x1='6' y1='20' x2='6' y2='16'/></svg>");
}
/* Matchups — bolt */
.nav-item .ic-bolt {
  --ic: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polygon points='13 2 3 14 12 14 11 22 21 10 12 10 13 2'/></svg>");
}

/* ── #4  Long card-title overflow ────────────────────── */
.card-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
/* Allow 2-line wrap in the hero card (ML) where there is plenty of room */
.card-hero .card-title {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Scoreboard sb-team-name: ellipsis at narrow widths */
.sb-team-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 8ch;
}
