:root {
  --cd-ink: #17201f;
  --cd-ink-soft: #26302f;
  --cd-cream: #ead7ad;
  --cd-cream-light: #f8e8c2;
  --cd-parchment: #dfbf83;
  --cd-gold: #bd8127;
  --cd-gold-light: #d5a345;
  --cd-red: #a33b2a;
  --cd-red-dark: #6d241d;
  --cd-card: rgba(248, 232, 194, 0.94);
  --cd-card-soft: rgba(239, 217, 176, 0.96);
  --cd-shadow: rgba(0, 0, 0, 0.34);
}

.home-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, rgba(248, 232, 194, 0.55), transparent 30%),
    radial-gradient(circle at 86% 10%, rgba(163, 59, 42, 0.20), transparent 24%),
    linear-gradient(180deg, #efdcb4 0%, #d9b776 42%, #5b351e 76%, #1a1713 100%);
  color: var(--cd-ink);
}

/* Top panel/menu uses your existing structure. These are only light home-page helpers. */
.home-top-bar {
  background:
    linear-gradient(90deg, var(--cd-ink) 0%, #271d16 50%, var(--cd-ink) 100%) !important;
  color: var(--cd-cream-light) !important;
  border-bottom: 4px solid var(--cd-gold);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.30);
}

.home-logo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.top-league-title {
  color: var(--cd-cream-light);
  font-family: Impact, Haettenschweiler, 'Arial Black', sans-serif;
  font-size: clamp(24px, 3.8vw, 52px);
  line-height: 0.95;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  text-shadow:
    3px 3px 0 var(--cd-red-dark),
    5px 5px 0 rgba(0, 0, 0, 0.28);
}

.top-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  padding: 4px;
}

/* CHAMPIONS RAFTERS */
.champion-rafters {
  background:
    linear-gradient(180deg, rgba(23, 32, 31, 0.98) 0%, rgba(31, 29, 24, 0.96) 100%);
  border-bottom: 5px solid var(--cd-gold);
  padding: 0 12px 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.38);
}

.rafters-bar {
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--cd-cream-light);
  font-family: Impact, Haettenschweiler, 'Arial Black', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 18px;
  text-shadow: 2px 2px 0 #000;
}

.rafters-bar span {
  border-left: 3px solid var(--cd-gold-light);
  border-right: 3px solid var(--cd-gold-light);
  padding: 0 14px;
}

.champion-list {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(11, minmax(74px, 1fr));
  gap: 7px;
  align-items: flex-start;
  overflow-x: auto;
  padding: 18px 4px 4px;
}

.champion-list::-webkit-scrollbar {
  height: 8px;
}

.champion-list::-webkit-scrollbar-thumb {
  background: rgba(248, 232, 194, 0.45);
  border-radius: 999px;
}

.champion-banner {
  position: relative;
  overflow: visible;
  min-width: 74px;
  min-height: 108px;
  color: var(--cd-cream-light);
  background:
    linear-gradient(180deg, var(--cd-red) 0%, var(--cd-red-dark) 100%);
  border: 2px solid var(--cd-ink);
  border-top: 5px solid var(--cd-gold-light);
  border-radius: 5px 5px 10px 10px;
  padding: 13px 5px 20px;
  box-shadow:
    0 8px 14px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(248, 232, 194, 0.22);
  clip-path: polygon(0 0, 100% 0, 100% 82%, 50% 100%, 0 82%);
}

.banner-top-rod {
  position: absolute;
  top: -10px;
  left: -4px;
  right: -4px;
  height: 6px;
  border-radius: 999px;
  background: var(--cd-gold-light);
  border: 1px solid var(--cd-ink);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.38);
}

.banner-hook {
  position: absolute;
  top: -26px;
  width: 2px;
  height: 20px;
  background: var(--cd-gold-light);
  z-index: 3;
}

.left-hook { left: 16px; }
.right-hook { right: 16px; }

.banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 2px 22px;
}

.champion-year {
  display: inline-block;
  background: var(--cd-ink);
  color: var(--cd-cream-light);
  font-size: 10px;
  font-weight: 1000;
  border-radius: 999px;
  padding: 3px 7px;
  letter-spacing: 0.5px;
  border: 1px solid var(--cd-gold-light);
}

.champion-owner {
  margin-top: 9px;
  font-family: Impact, Haettenschweiler, 'Arial Black', sans-serif;
  font-size: clamp(15px, 1.35vw, 23px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--cd-cream-light);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.58);
}

.champion-label {
  font-size: 7px;
  text-transform: uppercase;
  font-weight: 900;
  color: #f2cf84;
  letter-spacing: 0.4px;
  margin-top: 6px;
}

.first-place-medal {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 3px;
}

.medal-ribbon {
  background: var(--cd-ink);
  color: var(--cd-cream-light);
  font-size: 7px;
  font-weight: 1000;
  padding: 2px 4px;
  border-radius: 4px;
  border: 1px solid rgba(248, 232, 194, 0.85);
}

.medal-face {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 25%, #fff5b8 0%, #ffd95a 36%, #d39a13 100%);
  border: 2px solid #fff0a8;
  color: #5b3900;
  font-size: 12px;
  font-weight: 1000;
  box-shadow:
    0 4px 7px rgba(0, 0, 0, 0.28),
    inset 0 -3px 5px rgba(0, 0, 0, 0.14);
}

.medal-placeholder {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 3;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cd-cream-light);
  border: 2px dashed var(--cd-ink);
  color: var(--cd-ink);
  font-size: 14px;
  font-weight: 1000;
}

.open-year {
  background:
    linear-gradient(180deg, #efdfbd 0%, #bd985c 100%);
  color: var(--cd-ink);
  border-style: dashed;
}

.open-year .champion-year {
  background: var(--cd-cream-light);
  color: var(--cd-ink);
}

.open-year .champion-owner {
  color: var(--cd-ink);
  text-shadow: none;
}

.open-year .champion-label {
  color: #4a2b1f;
}

/* NEW TWO-COLUMN HOME BODY */
.home-split-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(360px, 1fr);
  gap: 24px;
  padding: 24px;
  max-width: 1440px;
  margin: 0 auto;
  box-sizing: border-box;
}

.home-logo-half,
.home-feed-half {
  min-width: 0;
}

.home-logo-half {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.logo-stage-card {
  width: 100%;
  min-height: calc(100vh - 310px);
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at center, rgba(248, 232, 194, 0.74), rgba(223, 191, 131, 0.42) 52%, rgba(23, 32, 31, 0.32) 100%);
  border: 4px solid rgba(23, 32, 31, 0.92);
  border-radius: 26px;
  padding: 18px;
  box-shadow: 0 14px 34px var(--cd-shadow);
  box-sizing: border-box;
}

.main-league-logo {
  width: min(100%, 650px);
  max-height: 70vh;
  object-fit: contain;
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.26);
}

.home-feed-half {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feed-card {
  background: var(--cd-card);
  border: 3px solid rgba(23, 32, 31, 0.92);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}

.feed-card h2 {
  margin: 0 0 8px;
  color: var(--cd-red-dark);
  font-family: Impact, Haettenschweiler, 'Arial Black', sans-serif;
  font-size: 30px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.feed-card p,
.card-note {
  line-height: 1.5;
  color: #2e241d;
}

.feed-kicker {
  color: var(--cd-ink);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  opacity: 0.76;
  margin-bottom: 4px;
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.small-pill {
  background: var(--cd-ink);
  color: var(--cd-cream-light);
  border: 2px solid var(--cd-gold);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.event-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.event-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  background: rgba(255, 241, 207, 0.72);
  border-left: 7px solid var(--cd-red);
  border-radius: 12px;
  padding: 12px;
  box-shadow: inset 0 0 0 1px rgba(23, 32, 31, 0.10);
}

.event-title {
  font-weight: 900;
  color: var(--cd-red-dark);
}

.event-detail {
  font-size: 13px;
  color: #4d4037;
  margin-top: 3px;
}

.countdown-box {
  min-width: 78px;
  text-align: center;
  background: var(--cd-ink);
  color: var(--cd-cream-light);
  border: 2px solid var(--cd-gold);
  border-radius: 12px;
  padding: 9px 10px;
  font-weight: 900;
}

.event-past {
  opacity: 0.62;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.nav-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-action {
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 14px;
  border: 2px solid var(--cd-ink);
  color: var(--cd-ink);
  font-weight: 900;
  background: var(--cd-cream-light);
  text-align: center;
}

.home-action:hover,
.sleeper-logo-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.primary-action {
  background: var(--cd-red);
  color: var(--cd-cream-light);
  border-color: var(--cd-ink);
}

.sleeper-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  text-decoration: none;
  background: var(--cd-ink);
  color: var(--cd-cream-light);
  border: 3px solid var(--cd-gold);
  border-radius: 16px;
  padding: 13px 14px;
  font-weight: 1000;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sleeper-logo-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 12px;
  background: #ffffff;
  padding: 4px;
}

.sleeper-logo-text {
  font-size: 18px;
  letter-spacing: 0.3px;
}

@media (max-width: 980px) {
  .home-split-layout {
    grid-template-columns: 1fr;
  }

  .logo-stage-card {
    min-height: auto;
  }

  .main-league-logo {
    max-height: 460px;
  }
}

@media (max-width: 760px) {
  .home-split-layout {
    padding: 14px;
    gap: 16px;
  }

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

  .champion-list {
    grid-template-columns: repeat(11, minmax(70px, 82px));
    justify-content: flex-start;
  }

  .top-bar {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .top-bar-left,
  .top-bar-center,
  .top-bar-right {
    justify-content: center;
    text-align: center;
  }
}

/* FEED-ONLY SCROLL UPDATE
   The browser page itself does not scroll. Top panel, champion banners, and logo remain stationary.
   Only the right-side feed column scrolls when its content is taller than the available space. */
html,
body {
  height: 100%;
  overflow: hidden;
}

.home-page {
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.home-top-bar,
.champion-rafters {
  flex: 0 0 auto;
}

.home-split-layout {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.home-logo-half,
.home-feed-half {
  min-height: 0;
  max-height: 100%;
}

.home-logo-half {
  overflow: hidden;
}

.logo-stage-card {
  height: 100%;
  min-height: 0;
}

.main-league-logo {
  max-height: 100%;
}

.home-feed-half {
  overflow-y: auto;
  padding-right: 10px;
  overscroll-behavior: contain;
}

.home-feed-half::-webkit-scrollbar {
  width: 10px;
}

.home-feed-half::-webkit-scrollbar-track {
  background: rgba(23, 32, 31, 0.18);
  border-radius: 999px;
}

.home-feed-half::-webkit-scrollbar-thumb {
  background: var(--cd-red-dark);
  border: 2px solid rgba(248, 232, 194, 0.55);
  border-radius: 999px;
}

@media (max-width: 900px) {
  html,
  body,
  .home-page {
    height: auto;
    min-height: 100vh;
    overflow: auto;
  }

  .home-split-layout {
    overflow: visible;
  }

  .home-feed-half {
    overflow: visible;
    padding-right: 0;
  }
}
