/**
 * C-Games homepage - gold poster layout
 * Clean left copy / right art, friendly mobile stack, fast-first paint.
 */

body.index-page {
  background: #0a0c10;
}

#hero.cgames-hero {
  min-height: 100dvh;
  min-height: 100svh;
  height: 100dvh;
  height: 100svh;
  max-height: 100dvh;
  max-height: 100svh;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: stretch;
  overflow: hidden;
  isolation: isolate;
}

#hero.cgames-hero > img.cgames-hero__bg {
  object-position: center center !important;
  filter: saturate(1.05) contrast(1.08) brightness(0.88);
}

.cgames-hero__shade {
  background:
    radial-gradient(ellipse 70% 55% at 50% 35%, rgba(232, 185, 35, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(8, 10, 14, 0.55) 0%, rgba(8, 10, 14, 0.25) 35%, rgba(8, 10, 14, 0.88) 100%) !important;
}

#hero.cgames-hero.is-auth .cgames-hero__shade,
#hero.cgames-hero.is-sheet-open .cgames-hero__shade {
  background:
    linear-gradient(90deg, rgba(8, 10, 14, 0.55) 0%, rgba(8, 10, 14, 0.28) 40%, rgba(8, 10, 14, 0.92) 100%),
    linear-gradient(180deg, rgba(8, 10, 14, 0.3), transparent 50%, rgba(8, 10, 14, 0.85)) !important;
}

.cgames-hero__frame,
.cgames-hero__rail,
.cgames-hero__mark,
.cgames-hero__scan {
  display: none !important;
}

#hero.cgames-hero .cgames-hero__stage {
  display: none !important;
}

#hero.cgames-hero .cgames-hero__char-wrap,
#hero.cgames-hero .cgames-hero__char-wrap.is-posed-left {
  left: 0 !important;
  width: 100% !important;
}

#hero.cgames-hero img.cgames-hero__char {
  object-position: center bottom !important;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 28px rgba(232, 185, 35, 0.18));
}

/* Bottom brand bar */
.cgames-center {
  position: relative !important;
  inset: auto !important;
  left: auto !important;
  top: auto !important;
  bottom: auto !important;
  transform: none !important;
  z-index: 6 !important;
  width: auto !important;
  max-width: none;
  margin: 0;
  padding: 12px clamp(16px, 2.5vw, 28px);
  text-align: left !important;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) auto auto;
  align-items: center;
  gap: 12px 20px;
  grid-column: 1;
  grid-row: 2;
  min-height: 0;
  overflow: visible;
  background:
    linear-gradient(180deg, rgba(7, 9, 12, 0.2) 0%, rgba(7, 9, 12, 0.88) 40%, rgba(7, 9, 12, 0.96) 100%);
  border-top: 1px solid rgba(232, 185, 35, 0.14);
}

.cgames-center__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-width: 0;
}

#hero.cgames-hero.is-auth .cgames-center,
#hero.cgames-hero.is-sheet-open .cgames-center {
  opacity: 0.28;
  pointer-events: none;
  filter: none;
  visibility: visible !important;
  transform: none !important;
}

.hero .cgames-center .cgames-center__live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(232, 185, 35, 0.35);
  background: rgba(232, 185, 35, 0.1);
  color: var(--accent-color, #E8B923);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  clip-path: none;
}

.hero .cgames-center .cgames-center__live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3dff9a;
  box-shadow: 0 0 8px #3dff9a;
  animation: cg-live-blink 1.8s ease-in-out infinite;
}

.cgames-center__kicker {
  margin: 0 0 8px !important;
  color: rgba(232, 185, 35, 0.72) !important;
  font-family: "IBM Plex Mono", monospace !important;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  max-width: none !important;
}

@keyframes cg-live-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero .cgames-center h1 {
  margin: 0 0 6px !important;
  color: #fff !important;
  font-family: "Archivo Black", Impact, sans-serif !important;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem) !important;
  font-weight: 400 !important;
  letter-spacing: -0.03em !important;
  line-height: 0.92 !important;
  text-transform: uppercase !important;
  -webkit-text-stroke: 0 !important;
  background: none !important;
  filter: none !important;
  animation: none !important;
  text-align: left !important;
  max-width: 100%;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65) !important;
}

.hero .cgames-center h1 .cgames-center__brand {
  display: inline-block;
  white-space: nowrap;
}

.hero .cgames-center h1::after {
  content: "EPISODE 2";
  display: block;
  margin-top: 0.16em;
  color: #E8B923;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.22em;
  letter-spacing: 0.35em;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.cgames-center__kicker { display: none !important; }

.cgames-center__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.cgames-center__meta li {
  color: rgba(243, 240, 232, 0.55);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cgames-center__meta strong {
  color: #E8B923;
  margin-right: 4px;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.cgames-schools__total { display: none !important; }

/* Right loadout board - fills empty space */
.cgames-sideboard {
  display: none;
}

@media (min-width: 992px) {
  .cgames-sideboard {
    display: block;
    position: absolute;
    top: 50%;
    right: clamp(42px, 5vw, 72px);
    z-index: 7;
    width: min(300px, 28vw);
    padding: 18px 16px 16px;
    transform: translateY(-42%);
    border: 1px solid rgba(232, 185, 35, 0.38);
    background: linear-gradient(155deg, rgba(18, 20, 28, 0.88), rgba(8, 10, 14, 0.82));
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(12px);
  }

  .cgames-sideboard__chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
    color: #E8B923;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .cgames-sideboard__chip i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3dff9a;
    box-shadow: 0 0 8px #3dff9a;
    animation: cg-live-blink 1.8s ease-in-out infinite;
  }

  .cgames-sideboard h2 {
    margin: 0 0 6px;
    color: #fff;
    font-family: "Archivo Black", Impact, sans-serif;
    font-size: 1.45rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }

  .cgames-sideboard > p {
    margin: 0 0 14px;
    color: rgba(243, 240, 232, 0.62);
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .cgames-sideboard__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
  }

  .cgames-sideboard__list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-top: 1px solid rgba(232, 185, 35, 0.18);
  }

  .cgames-sideboard__list span {
    color: rgba(243, 240, 232, 0.45);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .cgames-sideboard__list strong {
    color: #E8B923;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  #hero.cgames-hero.is-auth .cgames-sideboard,
  #hero.cgames-hero.is-sheet-open .cgames-sideboard {
    opacity: 0.2;
    pointer-events: none;
  }
}

.hero .cgames-center > p:not(.cgames-center__kicker),
.hero .cgames-center .cgames-center__lead {
  margin: 0 !important;
  color: rgba(255, 250, 240, 0.92) !important;
  font-family: "IBM Plex Sans", sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 550 !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75) !important;
  border: 0 !important;
  max-width: 42ch;
  line-height: 1.45;
}

.cgames-center__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.cgames-center__tags li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(232, 185, 35, 0.22);
  background: rgba(8, 10, 14, 0.55);
  color: rgba(243, 240, 232, 0.78);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
}

.cgames-center__tags span {
  color: #E8B923;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.cgames-warline {
  width: min(100%, 420px);
  margin: 18px 0 0;
  padding: 12px;
  border: 1px solid rgba(232, 185, 35, 0.28);
  background:
    linear-gradient(145deg, rgba(16, 18, 24, 0.78), rgba(8, 10, 14, 0.7));
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.cgames-warline__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.cgames-warline__head span {
  color: rgba(232, 185, 35, 0.8);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cgames-warline__head strong {
  color: #fff;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
}

.cgames-warline ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cgames-warline li {
  display: grid;
  grid-template-columns: 36px 1fr;
  grid-template-rows: auto auto;
  gap: 2px 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.cgames-warline img {
  grid-row: 1 / span 2;
  position: static !important;
  inset: auto !important;
  width: 36px !important;
  height: 36px !important;
  max-width: none !important;
  object-fit: contain !important;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4)) !important;
  opacity: 1 !important;
  z-index: auto !important;
}

.cgames-warline__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.cgames-warline__meta span {
  color: rgba(243, 240, 232, 0.7);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cgames-warline__meta strong {
  color: #E8B923;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1;
}

.cgames-warline__bar {
  grid-column: 2;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.cgames-warline__bar i {
  display: block;
  width: var(--pct, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #F5D76E, #E8B923 55%, #B8860B);
  box-shadow: 0 0 10px rgba(232, 185, 35, 0.45);
}

#hero.cgames-hero.is-auth .cgames-warline,
#hero.cgames-hero.is-sheet-open .cgames-warline {
  opacity: 0.35;
}

.cgames-center__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0;
  justify-content: center;
}

.cgames-enter {
  margin-top: 0;
  min-width: 0 !important;
  padding: 12px 20px !important;
  border-radius: 999px !important;
  clip-path: none !important;
  font-family: "IBM Plex Sans", sans-serif !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: #111 !important;
  background: linear-gradient(135deg, #F5D76E, #E8B923 55%, #B8860B) !important;
  box-shadow: 0 12px 32px rgba(232, 185, 35, 0.28) !important;
  animation: none !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.cgames-enter::after { display: none !important; }
.cgames-enter:hover {
  color: #111 !important;
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.cgames-enter--ghost {
  color: #E8B923 !important;
  background: transparent !important;
  border: 1px solid rgba(232, 185, 35, 0.45) !important;
  box-shadow: none !important;
}

.cgames-enter--ghost:hover {
  color: #fff1a8 !important;
  background: rgba(232, 185, 35, 0.12) !important;
  filter: none;
}

.cgames-quick-links {
  margin-top: 14px !important;
  justify-content: flex-start !important;
  gap: 8px 16px !important;
}

.cgames-quick-links a {
  font-family: "IBM Plex Sans", sans-serif !important;
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: rgba(243, 240, 232, 0.72) !important;
}

.cgames-quick-links a:hover { color: #E8B923 !important; }
.cgames-quick-links a::after { background: #E8B923; }

/* Single school row - bottom bar */
.cgames-schools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: min(100%, 320px);
  max-width: 320px;
  margin: 0;
  padding: 0;
  list-style: none;
  justify-self: end;
}

.cgames-schools li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid rgba(232, 185, 35, 0.28);
  background:
    linear-gradient(145deg, rgba(18, 20, 28, 0.82), rgba(8, 10, 14, 0.72));
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.cgames-schools img {
  position: static !important;
  inset: auto !important;
  width: 32px !important;
  height: 32px !important;
  max-width: none !important;
  object-fit: contain !important;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45)) !important;
  opacity: 1 !important;
  z-index: auto !important;
  flex: 0 0 auto;
}

.cgames-schools div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cgames-schools strong {
  color: #E8B923;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
}

.cgames-schools span {
  color: rgba(255, 250, 240, 0.78);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- EP2 Class Board: dominant top of hero ---------- */
.cgames-pathboard {
  position: relative;
  z-index: 7;
  grid-column: 1;
  grid-row: 1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(72px, 10vh, 110px) clamp(16px, 2.5vw, 32px) 12px;
  background: transparent;
  border-top: 0;
  min-width: 0;
  min-height: 0;
}

.cgames-pathboard__inner {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.cgames-pathboard__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 18px;
  text-align: left;
  margin-bottom: 12px;
  flex: 0 0 auto;
}

.cgames-pathboard__eyebrow {
  margin: 0;
  width: 100%;
  color: #E8B923;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cgames-pathboard h2 {
  margin: 0;
  color: #fff;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1;
}

.cgames-pathboard h2 span { color: #E8B923; }

.cgames-pathboard__lead {
  margin: 0;
  max-width: none;
  color: rgba(243, 240, 232, 0.55);
  font-size: 0.86rem;
  line-height: 1.35;
}

.cgames-pathboard__rail {
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  overflow: visible;
}

.cgames-pathcard {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #10141c;
  overflow: hidden;
  cursor: pointer;
  color: inherit;
  font: inherit;
  text-align: left;
  transition: flex 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.cgames-pathcard > img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center top !important;
  filter: grayscale(1) brightness(0.55) contrast(1.05) !important;
  opacity: 1 !important;
  transition: filter 0.35s ease, transform 0.45s ease;
  transform: scale(1.02);
}

/* Shaman: same bust framing as other class cards */
.cgames-pathcard[data-class="shaman"] > img {
  object-position: center 20% !important;
  transform: scale(1.02);
  transform-origin: center center;
}

.cgames-pathcard__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, transparent 50%, rgba(7, 9, 12, 0.55) 78%, rgba(7, 9, 12, 0.92) 100%);
  pointer-events: none;
}

.cgames-pathcard__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  padding: 14px 14px 16px;
  max-height: none;
}

.cgames-pathcard strong {
  color: #fff;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
  font-style: italic;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
}

.cgames-pathcard em {
  color: #E8B923;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.cgames-pathcard__desc,
.cgames-pathcard__stats,
.cgames-pathcard__condition,
.cgames-pathcard__count {
  display: none;
}

.cgames-pathcard.is-active {
  flex: 2.5 1 0;
  border-color: rgba(232, 185, 35, 0.75);
  box-shadow: 0 0 0 1px rgba(232, 185, 35, 0.3), 0 18px 44px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  z-index: 4;
}

.cgames-pathcard.is-active > img {
  filter: none !important;
  transform: scale(1.04);
  object-position: center 8% !important;
}

.cgames-pathcard[data-class="shaman"].is-active > img {
  transform: scale(1.04);
  object-position: center 14% !important;
  transform-origin: center center;
}

.cgames-pathcard.is-active .cgames-pathcard__shade {
  background:
    linear-gradient(90deg, rgba(7, 9, 12, 0.55) 0%, rgba(7, 9, 12, 0.15) 48%, transparent 72%),
    linear-gradient(180deg, transparent 45%, rgba(7, 9, 12, 0.35) 68%, rgba(7, 9, 12, 0.92) 100%);
}

.cgames-pathcard.is-active .cgames-pathcard__content {
  max-height: none;
  min-height: 48%;
  padding: 18px 16px 14px;
  gap: 8px;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.cgames-pathcard.is-active strong {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  order: 1;
}

.cgames-pathcard.is-active em {
  font-size: 0.78rem;
  order: 2;
  margin-top: -4px;
}

.cgames-pathcard.is-active .cgames-pathcard__desc,
.cgames-pathcard.is-active .cgames-pathcard__stats,
.cgames-pathcard.is-active .cgames-pathcard__condition,
.cgames-pathcard.is-active .cgames-pathcard__count {
  display: block !important;
}

.cgames-pathcard.is-active .cgames-pathcard__desc {
  order: 3;
  margin: 4px 0 0;
  max-width: 26ch;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.45;
  border-left: 3px solid #E8B923;
  padding-left: 12px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
  display: block !important;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.cgames-pathcard.is-active .cgames-pathcard__stats {
  order: 4;
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  margin: 8px 0 0;
  padding: 10px 8px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.cgames-pathcard.is-active .cgames-pathcard__condition {
  order: 5;
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  margin: 0;
  padding: 10px 8px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 0;
}

.cgames-pathcard__stats > div,
.cgames-pathcard__condition > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.cgames-pathcard__stats dt,
.cgames-pathcard__condition dt {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cgames-pathcard__stats dd,
.cgames-pathcard__condition dd {
  margin: 0;
  color: #E8B923;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 1.05rem;
  line-height: 1;
  white-space: nowrap;
}

.cgames-pathcard__condition dd {
  font-size: 0.95rem;
}

.cgames-pathcard.is-active .cgames-pathcard__count {
  order: 6;
  margin-top: 2px;
  color: rgba(243, 240, 232, 0.45);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.04em;
}

#hero.cgames-hero.is-auth .cgames-pathboard,
#hero.cgames-hero.is-sheet-open .cgames-pathboard {
  opacity: 0.22;
  pointer-events: none;
}

@media (max-width: 991.98px) {
  .cgames-pathboard {
    grid-column: auto;
    grid-row: auto;
    order: 1;
    padding: 20px 16px 12px;
    background: transparent;
    justify-content: flex-start;
  }

  .cgames-pathboard__inner {
    flex: 0 0 auto;
  }

  .cgames-pathboard__head {
    display: block;
    text-align: center;
    margin-bottom: 14px;
  }

  .cgames-pathboard h2 {
    font-size: clamp(1.7rem, 6vw, 2.4rem);
    margin-bottom: 8px;
  }

  .cgames-pathboard__lead {
    margin: 0 auto;
    max-width: 36ch;
    font-size: 0.88rem;
  }

  .cgames-pathboard__rail {
    flex-direction: column;
    height: auto;
    min-height: 0;
    flex: 0 0 auto;
  }

  .cgames-pathcard {
    min-height: 160px;
    flex: 0 0 auto !important;
  }

  .cgames-pathcard.is-active {
    min-height: 360px;
  }

  .cgames-pathcard > img {
    object-position: center 18% !important;
  }

  #hero.cgames-hero.is-auth .cgames-pathboard,
  #hero.cgames-hero.is-sheet-open .cgames-pathboard {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 575.98px) {
  .cgames-pathcard {
    min-height: 140px;
  }

  .cgames-pathcard.is-active {
    min-height: 340px;
  }
}

.cgames-sex {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: min(100%, 440px);
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.cgames-sex li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 8px 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 10, 14, 0.5);
  text-align: center;
}

.cgames-sex img {
  position: static !important;
  inset: auto !important;
  width: 78px !important;
  height: 30px !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center top !important;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4)) !important;
  opacity: 1 !important;
  z-index: auto !important;
}

.cgames-sex strong {
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
}

.cgames-sex span {
  color: rgba(243, 240, 232, 0.62);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cgames-sex--m {
  color: #6ec8ff;
  border-color: rgba(110, 200, 255, 0.28);
}

.cgames-sex--f {
  color: #ff8ec8;
  border-color: rgba(255, 142, 200, 0.28);
}

.cgames-schools__total {
  margin: 10px 0 0 !important;
  color: rgba(243, 240, 232, 0.5) !important;
  font-family: "IBM Plex Mono", monospace !important;
  font-size: 0.62rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  max-width: none !important;
}

.cgames-community__link {
  text-decoration: none;
}

.cgames-center .cgames-metrics,
.cgames-center__tags,
.cgames-warline,
.cgames-arena {
  display: none !important;
}

.cgames-arena__glow {
  position: absolute;
  inset: auto -20% -40% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 185, 35, 0.22), transparent 68%);
  pointer-events: none;
}

.cgames-arena__head { position: relative; margin-bottom: 12px; }

.cgames-arena__chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: #E8B923;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cgames-arena__chip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3dff9a;
  box-shadow: 0 0 8px #3dff9a;
  animation: cg-live-blink 1.8s ease-in-out infinite;
}

.cgames-arena__head h2 {
  margin: 0 0 4px;
  color: #fff;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.cgames-arena__head p {
  margin: 0;
  color: rgba(243, 240, 232, 0.62);
  font-size: 0.8rem;
  line-height: 1.4;
}

.cgames-arena__schools {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.cgames-arena__schools li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  border: 1px solid rgba(232, 185, 35, 0.18);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.cgames-arena__schools img {
  position: static !important;
  inset: auto !important;
  width: 42px !important;
  height: 42px !important;
  max-width: none !important;
  object-fit: contain !important;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45)) !important;
  opacity: 1 !important;
  z-index: auto !important;
}

.cgames-arena__schools strong {
  color: #E8B923;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1;
}

.cgames-arena__schools span {
  color: rgba(243, 240, 232, 0.72);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cgames-arena__stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0 0 12px;
}

.cgames-arena__stats div {
  padding: 8px 6px;
  border-top: 1px solid rgba(232, 185, 35, 0.35);
  background: linear-gradient(180deg, rgba(232, 185, 35, 0.08), transparent);
}

.cgames-arena__stats dt {
  margin: 0 0 2px;
  color: rgba(243, 240, 232, 0.45);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cgames-arena__stats dd {
  margin: 0;
  color: #E8B923;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
}

.cgames-arena__foot {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.cgames-arena__foot span {
  color: rgba(243, 240, 232, 0.48);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cgames-arena__foot span::before {
  content: "//";
  margin-right: 6px;
  color: rgba(232, 185, 35, 0.55);
}

#hero.cgames-hero.is-auth .cgames-arena,
#hero.cgames-hero.is-sheet-open .cgames-arena {
  opacity: 0.2;
  pointer-events: none;
}

.cgames-center .cgames-metrics { display: none !important; }

/* Online chip — desktop + mobile */
.cgames-status {
  position: absolute !important;
  top: calc(var(--cg-dock-h, 68px) + 12px) !important;
  right: clamp(16px, 2.8vw, 40px) !important;
  left: auto !important;
  z-index: 8 !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: min(280px, calc(100vw - 32px)) !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(232, 185, 35, 0.28) !important;
  border-radius: 0 !important;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px) !important;
  background:
    linear-gradient(145deg, rgba(14, 16, 22, 0.92), rgba(8, 10, 14, 0.88)) !important;
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35) !important;
}

.cgames-status__head {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 0 8px !important;
  color: #E8B923 !important;
  font-family: "IBM Plex Mono", monospace !important;
  letter-spacing: 0.14em !important;
  font-size: 0.58rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
}

.cgames-status__head i {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: #3dff9a !important;
  box-shadow: 0 0 8px #3dff9a !important;
  flex: 0 0 auto !important;
}

.cgames-status__rows {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.cgames-status__item {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
  flex: 1 1 0 !important;
}

.cgames-status__item > i {
  display: grid !important;
  place-items: center !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 0 !important;
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px) !important;
  font-size: 0.9rem !important;
  color: #E8B923 !important;
  background: rgba(232, 185, 35, 0.1) !important;
  border: 1px solid rgba(232, 185, 35, 0.28) !important;
  flex: 0 0 auto !important;
}

.cgames-status__meta {
  min-width: 0 !important;
}

.cgames-status__meta strong {
  display: block !important;
  color: #fff !important;
  font-family: "Archivo Black", Impact, sans-serif !important;
  font-weight: 400 !important;
  font-size: 1.15rem !important;
  line-height: 1 !important;
  letter-spacing: -0.02em !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55) !important;
}

.cgames-status__meta span {
  display: block !important;
  margin-top: 2px !important;
  color: rgba(255, 250, 240, 0.62) !important;
  font-family: "IBM Plex Mono", monospace !important;
  font-size: 0.52rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}

.cgames-status__divider {
  width: 1px !important;
  align-self: stretch !important;
  min-height: 28px !important;
  background: rgba(232, 185, 35, 0.28) !important;
  flex: 0 0 auto !important;
}

.cgames-utility {
  position: absolute !important;
  top: auto !important;
  bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
  left: clamp(20px, 4vw, 48px) !important;
  z-index: 6;
}

.cgames-utility__label {
  font-family: "IBM Plex Mono", monospace !important;
  letter-spacing: 0.12em !important;
  color: #a8a294 !important;
  transform: none !important;
}

.cgames-utility a {
  border-radius: 999px !important;
  clip-path: none !important;
  border-color: rgba(232, 185, 35, 0.25) !important;
}

/* Auth sheet */
.cgames-left-rail {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: auto !important;
  width: min(100vw, 400px) !important;
  max-height: none !important;
  z-index: 10030 !important;
  padding: 16px 14px 92px !important;
  transform: translateX(105%) !important;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1) !important;
  background: rgba(10, 12, 16, 0.96) !important;
  border-left: 1px solid rgba(232, 185, 35, 0.18);
  backdrop-filter: blur(16px);
  overflow: auto !important;
  -webkit-overflow-scrolling: touch;
  pointer-events: auto !important;
}

#hero.cgames-hero.is-auth,
#hero.cgames-hero.is-sheet-open {
  isolation: auto !important;
}

#hero.cgames-hero.is-auth .cgames-left-rail,
#hero.cgames-hero.is-sheet-open .cgames-left-rail {
  transform: translateX(0) !important;
  top: 0 !important;
  left: auto !important;
  right: 0 !important;
  width: min(100vw, 400px) !important;
  max-height: none !important;
  z-index: 10030 !important;
}

#hero.cgames-hero.is-auth .cgames-discord { display: none !important; }

.cgames-community {
  border: 1px solid rgba(232, 185, 35, 0.2) !important;
  border-radius: 18px !important;
  background: rgba(20, 24, 32, 0.95) !important;
  clip-path: none !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4) !important;
  width: 100% !important;
  max-width: none !important;
  overflow: visible !important;
  flex: 0 0 auto !important;
  min-height: auto !important;
  max-height: none !important;
}

.cgames-community__eyebrow {
  color: #E8B923 !important;
  font-family: "IBM Plex Mono", monospace !important;
}

.cgames-community h2 {
  font-family: "Archivo Black", Impact, sans-serif !important;
  font-size: 1.55rem !important;
  letter-spacing: -0.02em !important;
}

.cgames-panel-form button[type="submit"],
.cgames-community__link {
  font-family: "IBM Plex Sans", sans-serif !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  border-radius: 999px !important;
  clip-path: none !important;
  background: linear-gradient(135deg, #F5D76E, #E8B923) !important;
  color: #111 !important;
  border: 0 !important;
  font-weight: 700 !important;
}

.cgames-sheet-close {
  display: none;
  width: 100%;
  margin-bottom: 10px;
  min-height: 42px;
  border: 1px solid rgba(232, 185, 35, 0.25);
  border-radius: 999px;
  background: transparent;
  color: #f3f0e8;
  font-weight: 600;
}

#hero.cgames-hero.is-auth .cgames-sheet-close,
#hero.cgames-hero.is-sheet-open .cgames-sheet-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cgames-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10020;
  border: 0;
  background: rgba(0, 0, 0, 0.62);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

#hero.cgames-hero.is-auth .cgames-sheet-backdrop,
#hero.cgames-hero.is-sheet-open .cgames-sheet-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 10020;
}

/* Community board */
.cg-ops {
  position: relative;
  z-index: 2;
  padding: 40px 16px calc(110px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, #0a0c10, #10141c 45%, #0a0c10);
}

.cg-ops__grid {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
}

.cg-ops__card {
  border: 1px solid rgba(232, 185, 35, 0.16);
  border-radius: 18px;
  background: rgba(20, 24, 32, 0.88);
  padding: 18px;
  overflow: hidden;
}

.cg-ops__card h2 {
  margin: 0 0 6px;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
}

.cg-ops__card p {
  margin: 0 0 14px;
  color: #a8a294;
}

.cg-ops__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.cg-ops__actions .cgames-enter,
.cg-ops__actions a.cgames-enter,
.cg-ops__actions button.cgames-enter {
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

.cg-ops__actions .cgames-enter--ghost {
  background: transparent !important;
  color: #E8B923 !important;
  border: 1px solid rgba(232, 185, 35, 0.4) !important;
  box-shadow: none !important;
}

/* =========================================================
   DESKTOP / LAPTOP - Class Board first, clean bottom bar
   (overrides cgames-index absolute hero layout)
   ========================================================= */
@media (min-width: 992px) {
  body.index-page {
    background: #080a0e;
  }

  #hero.cgames-hero {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: minmax(0, 1fr) auto !important;
    height: 100dvh !important;
    height: 100svh !important;
    max-height: 100dvh !important;
    max-height: 100svh !important;
    overflow: hidden !important;
    isolation: isolate;
  }

  #hero.cgames-hero::before,
  #hero.cgames-hero::after {
    display: none !important;
  }

  .cgames-hero__frame,
  .cgames-hero__rail,
  .cgames-hero__mark,
  .cgames-hero__scan,
  #hero.cgames-hero .cgames-hero__stage {
    display: none !important;
  }

  .cgames-status {
    display: block !important;
    top: calc(var(--cg-dock-h, 68px) + 14px) !important;
    right: clamp(18px, 2.6vw, 40px) !important;
    left: auto !important;
  }

  .cgames-pathboard {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    z-index: 5 !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: clamp(72px, 8vh, 92px) clamp(16px, 2.5vw, 32px) 8px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: stretch !important;
    min-height: 0 !important;
    height: 100% !important;
    background: transparent !important;
  }

  .cgames-pathboard__inner {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .cgames-pathboard__rail {
    flex: 1 1 auto;
    min-height: 0 !important;
    height: auto !important;
  }

  .cgames-center {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    grid-column: 1 !important;
    grid-row: 2 !important;
    z-index: 6 !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 12px clamp(16px, 2.5vw, 32px) 14px !important;
    text-align: left !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1.2fr) auto auto !important;
    align-items: center !important;
    gap: 12px 22px !important;
    visibility: visible !important;
    opacity: 1 !important;
    background:
      linear-gradient(180deg, rgba(7, 9, 12, 0.55) 0%, rgba(7, 9, 12, 0.96) 55%) !important;
    border-top: 1px solid rgba(232, 185, 35, 0.16) !important;
    overflow: visible !important;
  }

  .cgames-center__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
  }

  .hero .cgames-center .cgames-center__live {
    margin: 0 0 2px !important;
    border-radius: 999px !important;
    clip-path: none !important;
  }

  .hero .cgames-center h1 {
    position: static !important;
    margin: 0 !important;
    font-size: clamp(1.55rem, 2.8vw, 2.25rem) !important;
    line-height: 0.95 !important;
    letter-spacing: -0.03em !important;
    color: #fff !important;
    -webkit-text-stroke: 0 !important;
    text-shadow: none !important;
    background: none !important;
    filter: none !important;
  }

  .hero .cgames-center h1::before {
    display: none !important;
  }

  .hero .cgames-center h1::after {
    margin-top: 0.2em !important;
    letter-spacing: 0.28em !important;
    font-size: 0.28em !important;
    color: #E8B923 !important;
  }

  .hero .cgames-center .cgames-center__lead {
    margin: 0 !important;
    max-width: 44ch !important;
    font-size: 0.9rem !important;
    line-height: 1.45 !important;
    color: rgba(255, 250, 240, 0.94) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
    text-transform: none !important;
    letter-spacing: 0.01em !important;
    font-weight: 550 !important;
  }

  .cgames-center__actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 10px !important;
    margin: 0 !important;
  }

  .cgames-enter {
    position: relative !important;
    min-width: 0 !important;
    width: auto !important;
    padding: 11px 18px !important;
    border-radius: 999px !important;
    clip-path: none !important;
    font-family: "IBM Plex Sans", sans-serif !important;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    animation: none !important;
  }

  .cgames-enter::after {
    display: none !important;
    animation: none !important;
  }

  .cgames-enter--ghost {
    min-width: 0 !important;
  }

  .cgames-schools {
    width: min(100%, 300px) !important;
    max-width: 300px !important;
    margin: 0 !important;
    justify-self: end !important;
  }

  .cgames-schools li {
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  }

  .cgames-schools strong {
    font-size: 1rem !important;
  }

  .cgames-center__meta,
  .cgames-quick-links {
    display: none !important;
  }

  #hero.cgames-hero.is-auth .cgames-center,
  #hero.cgames-hero.is-sheet-open .cgames-center {
    opacity: 0.28 !important;
    visibility: visible !important;
    pointer-events: none !important;
    transform: none !important;
  }

  .cgames-community,
  .cgames-left-rail {
    border-radius: 0 !important;
  }

  .cgames-community {
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  }

  .cgames-panel-form button[type="submit"],
  .cgames-community__link,
  .cgames-sheet-close {
    border-radius: 0 !important;
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
    font-family: "IBM Plex Mono", monospace !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    font-size: 0.78rem !important;
  }

  .cg-ops {
    padding-top: 56px;
    padding-bottom: 72px;
  }

  .cg-ops__card {
    border-radius: 4px;
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
    border-color: rgba(232, 185, 35, 0.28);
    background:
      linear-gradient(160deg, rgba(22, 26, 34, 0.95), rgba(10, 12, 16, 0.92));
  }

  .cg-ops__actions .cgames-enter {
    border-radius: 0 !important;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%) !important;
    font-family: "IBM Plex Mono", monospace !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    font-size: 0.72rem !important;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .cgames-center {
    grid-template-columns: 1fr auto !important;
    grid-template-areas:
      "copy actions"
      "schools schools" !important;
  }

  .cgames-center__copy { grid-area: copy; }
  .cgames-center__actions { grid-area: actions; justify-content: flex-end !important; }
  .cgames-schools {
    grid-area: schools;
    max-width: none !important;
    margin: 0 !important;
    justify-self: stretch !important;
  }
}

@media (min-width: 992px) and (max-height: 860px) {
  .cgames-center__lead {
    display: none !important;
  }

  .cgames-pathboard__lead {
    display: none !important;
  }

  .cgames-pathboard__rail {
    min-height: 0 !important;
  }
}

@media (min-width: 992px) and (max-height: 740px) {
  .cgames-center__live {
    display: none !important;
  }

  .hero .cgames-center h1 {
    font-size: clamp(1.35rem, 2.4vw, 1.85rem) !important;
  }

  .cgames-pathboard__rail {
    min-height: 0 !important;
  }
}

/* ---------- Mobile: clean vertical stack ---------- */
@media (max-width: 991.98px) {
  #hero.cgames-hero {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    min-height: auto !important;
    height: auto !important;
    overflow: visible !important;
    padding: 12px 0 0 !important;
    gap: 0 !important;
    max-height: none !important;
  }

  #hero.cgames-hero .cgames-hero__shade {
    display: block !important;
    opacity: 0.85 !important;
  }

  #hero.cgames-hero .cgames-hero__stage {
    display: none !important;
  }

  .cgames-status {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    order: 0;
    margin: 8px 16px 0 !important;
    width: calc(100% - 32px) !important;
    max-width: none !important;
    align-self: stretch !important;
    padding: 10px 12px !important;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px) !important;
    background:
      linear-gradient(145deg, rgba(14, 16, 22, 0.94), rgba(8, 10, 14, 0.9)) !important;
    border: 1px solid rgba(232, 185, 35, 0.26) !important;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28) !important;
  }

  .cgames-status__head {
    margin-bottom: 8px !important;
    font-size: 0.56rem !important;
  }

  .cgames-status__rows {
    gap: 10px !important;
  }

  .cgames-status__item > i {
    width: 30px !important;
    height: 30px !important;
  }

  .cgames-status__meta strong {
    font-size: 1.2rem !important;
  }

  .cgames-status__meta span {
    font-size: 0.5rem !important;
  }

  .cgames-center {
    order: 2;
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 18px 16px calc(28px + var(--cg-dock-h, 68px) + env(safe-area-inset-bottom, 0px)) !important;
    text-align: left !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0 !important;
    background: transparent;
    border-top: 1px solid rgba(232, 185, 35, 0.12);
    grid-template-columns: none;
  }

  .cgames-center__copy {
    width: 100%;
  }

  .hero .cgames-center h1,
  #hero.cgames-hero .cgames-center h1 {
    font-size: clamp(2.1rem, 11vw, 3.2rem) !important;
    line-height: 0.95 !important;
    margin: 10px 0 8px !important;
  }

  .hero .cgames-center p,
  #hero.cgames-hero .cgames-center > p,
  #hero.cgames-hero .cgames-center .cgames-center__lead {
    font-size: 0.92rem !important;
    line-height: 1.45 !important;
    max-width: 36ch !important;
    margin: 0 0 14px !important;
  }

  .cgames-center__actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: stretch;
    margin: 0 0 4px;
  }

  .cgames-center__actions .cgames-enter,
  .cgames-center__actions a {
    width: 100% !important;
    min-height: 48px;
    justify-content: center;
    text-align: center;
  }

  .cgames-schools {
    width: 100%;
    max-width: none;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 16px 0 0;
    justify-self: stretch;
  }

  .cgames-schools li {
    min-height: 56px;
    padding: 12px 14px;
  }

  .cgames-schools img {
    width: 44px !important;
    height: 44px !important;
  }

  .cgames-schools strong {
    font-size: 1.25rem;
  }

  .cgames-schools span {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }

  .cgames-center__meta {
    width: 100%;
    max-width: none;
    gap: 10px 14px;
    font-size: 0.78rem !important;
  }

  .cgames-quick-links {
    width: 100%;
    max-width: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 14px;
  }

  .cgames-quick-links a {
    font-size: 0.82rem !important;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .cgames-arena {
    order: 3;
    margin: 8px 16px 0;
  }

  .cgames-utility {
    position: relative !important;
    inset: auto !important;
    order: 4;
    margin: 16px 16px 0;
    left: auto !important;
    bottom: auto !important;
  }

  #hero.cgames-hero.is-auth .cgames-center,
  #hero.cgames-hero.is-sheet-open .cgames-center,
  #hero.cgames-hero.is-auth .cgames-arena,
  #hero.cgames-hero.is-sheet-open .cgames-arena,
  #hero.cgames-hero.is-auth .cgames-status,
  #hero.cgames-hero.is-sheet-open .cgames-status,
  #hero.cgames-hero.is-auth .cgames-pathboard,
  #hero.cgames-hero.is-sheet-open .cgames-pathboard {
    display: none !important;
  }

  .cg-ops__grid { grid-template-columns: 1fr; }

  /* Full-screen login sheet above bottom dock */
  .cgames-left-rail,
  #hero.cgames-hero .cgames-left-rail,
  #hero.cgames-hero.is-auth .cgames-left-rail,
  #hero.cgames-hero.is-sheet-open .cgames-left-rail {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: none !important;
    max-height: none !important;
    z-index: 10030 !important;
    padding:
      calc(12px + env(safe-area-inset-top, 0px))
      16px
      calc(var(--cg-dock-h, 68px) + 20px + env(safe-area-inset-bottom, 0px))
      16px !important;
    border-left: 0 !important;
    background: rgba(8, 10, 14, 0.98) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  #hero.cgames-hero.is-auth .cgames-left-rail,
  #hero.cgames-hero.is-sheet-open .cgames-left-rail {
    transform: none !important;
  }

  .cgames-sheet-close {
    position: sticky !important;
    top: 0 !important;
    z-index: 2 !important;
    flex: 0 0 auto !important;
    background: rgba(10, 12, 16, 0.96) !important;
  }

  #hero.cgames-hero.is-auth .cgames-community,
  #hero.cgames-hero.is-sheet-open .cgames-community,
  .cgames-left-rail > .cgames-community {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 16px !important;
    border-radius: 14px !important;
  }

  #hero.cgames-hero .cgames-community__eyebrow {
    font-size: 0.7rem !important;
    letter-spacing: 0.14em !important;
  }

  #hero.cgames-hero .cgames-community h2 {
    font-size: clamp(1.35rem, 6vw, 1.7rem) !important;
    margin: 6px 0 8px !important;
  }

  #hero.cgames-hero .cgames-community p,
  #hero.cgames-hero .cgames-community__intro {
    font-size: 0.92rem !important;
    line-height: 1.45 !important;
    color: rgba(255, 250, 240, 0.82) !important;
    text-align: left !important;
    max-width: none !important;
  }

  #hero.cgames-hero .cgames-panel-form {
    display: grid !important;
    gap: 12px !important;
  }

  #hero.cgames-hero .cgames-panel-form label {
    font-size: 0.78rem !important;
    letter-spacing: 0.04em !important;
    color: rgba(255, 250, 240, 0.78) !important;
  }

  #hero.cgames-hero .cgames-panel-form input,
  #hero.cgames-hero .cgames-panel-form .password-toggle-wrap input {
    min-height: 48px !important;
    width: 100% !important;
    padding: 12px 14px !important;
    font-size: 16px !important;
    border-radius: 10px !important;
  }

  #hero.cgames-hero .cgames-captcha-row {
    display: grid !important;
    grid-template-columns: 96px minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: stretch !important;
  }

  #hero.cgames-hero .cgames-captcha-display {
    min-height: 48px !important;
    display: grid !important;
    place-items: center !important;
    font-size: 1.15rem !important;
  }

  #hero.cgames-hero .cgames-panel-form button[type="submit"],
  #hero.cgames-hero .cgames-community__link {
    min-height: 48px !important;
    width: 100% !important;
    font-size: 0.95rem !important;
    border-radius: 999px !important;
  }

  #hero.cgames-hero .auth-switch {
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
  }

  body.cgames-auth-open {
    overflow: hidden !important;
  }

  body.cgames-auth-open .header.cg-dock {
    opacity: 0.35;
    pointer-events: none;
  }
}

@media (max-width: 575.98px) {
  #hero.cgames-hero .cgames-hero__stage {
    height: min(48vw, 220px) !important;
    min-height: 180px !important;
  }

  .cgames-center {
    padding: 14px 14px 6px !important;
  }

  .hero .cgames-center h1,
  #hero.cgames-hero .cgames-center h1 {
    font-size: clamp(1.9rem, 12vw, 2.6rem) !important;
  }

  .cgames-enter { width: 100%; text-align: center; justify-content: center; }
  .cgames-center__actions { width: 100%; }
  .cgames-center__actions .cgames-enter { flex: 1 1 auto; }
  .cgames-quick-links { width: 100%; }
  .cgames-arena__stats { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  #hero.cgames-hero::after,
  .cgames-hero__scan::before,
  .cgames-arena {
    animation: none !important;
  }
}

/* Language dropdown: dock-aligned + click-only */
.header .nav-right-items,
.header .lang-dropdown {
  display: flex !important;
  align-items: center !important;
  align-self: center !important;
  position: relative !important;
  top: auto !important;
  bottom: auto !important;
  float: none !important;
  transform: none !important;
}

.header .lang-dropdown > a {
  position: relative !important;
  top: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  align-self: center !important;
  min-height: 38px !important;
}

/* Desktop top header: open downward */
.header .lang-dropdown > ul,
.header .lang-dropdown .lang-dropdown__menu,
.header .navmenu .lang-dropdown > ul {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  bottom: auto !important;
  right: 0 !important;
  left: auto !important;
  margin: 0 !important;
}

.header .lang-dropdown:not(.active):hover > ul,
.header .navmenu .lang-dropdown:not(.active):hover > ul {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.header .lang-dropdown.active > ul,
.header .lang-dropdown.active > .lang-dropdown__menu {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 10050 !important;
  top: calc(100% + 8px) !important;
  bottom: auto !important;
}

/* Mobile bottom dock: open upward */
@media (max-width: 991.98px) {
  .header .lang-dropdown > ul,
  .header .lang-dropdown .lang-dropdown__menu,
  .header .navmenu .lang-dropdown > ul,
  .header .lang-dropdown.active > ul,
  .header .lang-dropdown.active > .lang-dropdown__menu {
    top: auto !important;
    bottom: calc(100% + 8px) !important;
  }
}
