/* ===== E.D.I.T.H. GAME CENTRE v2 — CONSOLE STOREFRONT, 3:4 POSTER CARDS & TROPHY ROOM ===== */

.egc-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 1120px;
  margin: 0 auto;
  padding-bottom: 22px;
}

/* 1. Compact Console Top Bar */
.egc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 11px 14px;
  border-radius: 20px;
  background:
    radial-gradient(ellipse 68% 90% at 6% 0%, rgba(56, 189, 248, 0.16), transparent 62%),
    radial-gradient(ellipse 56% 80% at 94% 0%, rgba(168, 85, 247, 0.14), transparent 60%),
    var(--card);
  border: 1.5px solid var(--line);
  box-shadow: var(--card-shadow);
}
.egc-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  flex: 1 1 220px;
}
.egc-orb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 2px;
  background: conic-gradient(#38BDF8 0deg 130deg, #A855F7 130deg 250deg, #EF4444 250deg 360deg);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.34);
  flex-shrink: 0;
}
.egc-orb img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #060912;
}
.egc-brand-txt { min-width: 0; }
.egc-kicker {
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--sky);
  display: flex;
  align-items: center;
  gap: 6px;
}
.egc-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--wh);
  margin-top: 1px;
}
.egc-top-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.egc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  background: var(--tile);
  border: 1px solid var(--line);
  color: var(--wh);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--tile-shadow);
  transition: transform 0.11s ease, border-color 0.14s ease, filter 0.14s ease;
}
.egc-btn:hover { border-color: var(--line-strong); }
.egc-btn:active { transform: scale(0.96); }
.egc-btn.pri {
  background: var(--pri);
  color: var(--pri-fg);
  border-color: var(--pri-border);
  box-shadow: var(--pri-shadow);
}
.egc-btn.icon-only { padding: 0 10px; }
.egc-crown-cnt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--sky) 24%, transparent);
  border: 1px solid color-mix(in srgb, var(--sky) 56%, transparent);
  color: var(--wh);
  font-size: 10.5px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

/* 2. Sticky Command Bar (Search + World Pills + Mood/Genre Chips) */
.egc-cmd {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 17px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
}
.egc-cmd-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.egc-search-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
}
.egc-search-ic {
  position: absolute;
  left: 11px;
  font-size: 13px;
  opacity: 0.72;
  pointer-events: none;
}
.egc-search {
  width: 100%;
  height: 38px;
  padding: 0 34px 0 32px;
  border-radius: 12px;
  background: var(--input-bg);
  border: 1px solid var(--line);
  color: var(--wh);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  outline: none;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}
.egc-search::placeholder { color: var(--mut); font-weight: 600; }
.egc-search:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--sky) 24%, transparent);
}
.egc-search-clr {
  position: absolute;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--tile2);
  color: var(--wh);
  font-size: 11px;
  font-weight: 900;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.egc-view-seg {
  display: inline-flex;
  padding: 2px;
  border-radius: 12px;
  background: var(--input-bg);
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.egc-view-btn {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--mut);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s ease, color 0.12s ease;
}
.egc-view-btn.on {
  background: var(--pri);
  color: var(--pri-fg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.egc-worlds,
.egc-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 1px 0;
}
.egc-worlds::-webkit-scrollbar,
.egc-chips::-webkit-scrollbar { display: none; }

.egc-chip {
  flex-shrink: 0;
  min-height: 31px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--tile);
  border: 1px solid var(--line);
  color: var(--txt);
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: transform 0.1s ease, border-color 0.14s ease;
}
.egc-chip:hover { border-color: var(--line-strong); }
.egc-chip:active { transform: scale(0.95); }
.egc-chip.on {
  background: var(--pri);
  color: var(--pri-fg);
  border-color: var(--pri-border);
  box-shadow: var(--pri-shadow);
}
.egc-chip-n {
  font-size: 10px;
  opacity: 0.78;
  font-variant-numeric: tabular-nums;
}

/* 3. Cinematic Hero Spotlight Carousel */
.egc-spot {
  --cab-accent: #38BDF8;
  --cab-accent2: #A855F7;
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 158px;
  border: 1.5px solid color-mix(in srgb, var(--cab-accent) 55%, transparent);
  background:
    radial-gradient(ellipse 85% 95% at 15% 10%, color-mix(in srgb, var(--cab-accent) 34%, #070B14), transparent 65%),
    radial-gradient(ellipse 75% 85% at 92% 90%, color-mix(in srgb, var(--cab-accent2) 32%, #070B14), #060913 78%);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.48),
    0 0 24px color-mix(in srgb, var(--cab-accent) 18%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: stretch;
}
.egc-spot-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.egc-spot-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  opacity: 0.46;
  filter: saturate(1.18) contrast(1.06);
  transform: scale(1.03);
}
.egc-spot-bg.is-contain img {
  width: 190px;
  height: 190px;
  position: absolute;
  right: 26px;
  top: 50%;
  transform: translateY(-50%) rotate(-6deg);
  object-fit: contain;
  opacity: 0.34;
}
.egc-wordle-bg {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%) rotate(-5deg);
  display: flex;
  gap: 6px;
  opacity: 0.36;
  pointer-events: none;
}
.egc-wordle-bg span {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: #FFFFFF;
  background: rgba(51, 65, 85, 0.9);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}
.egc-wordle-bg span.g { background: #10B981; }
.egc-wordle-bg span.y { background: #A855F7; }
.egc-spot-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(96deg, rgba(5, 8, 16, 0.94) 0%, rgba(5, 8, 16, 0.78) 54%, rgba(5, 8, 16, 0.36) 100%),
    linear-gradient(180deg, transparent 58%, rgba(5, 8, 16, 0.76) 100%);
}
.egc-spot-body {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  padding: 16px 18px 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.egc-spot-copy {
  min-width: 0;
  max-width: 560px;
  flex: 1 1 250px;
}
.egc-spot-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--cab-accent) 28%, rgba(4, 7, 15, 0.85));
  border: 1px solid color-mix(in srgb, var(--cab-accent) 75%, #FFFFFF);
  color: #FFFFFF;
}
.egc-spot-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.12;
  color: #FFFFFF;
  margin-top: 7px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}
.egc-spot-desc {
  font-size: 12.5px;
  font-weight: 600;
  color: #CBD5E1;
  margin-top: 5px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.egc-spot-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.egc-play-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--cab-accent), var(--cab-accent2));
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--cab-accent) 36%, rgba(0, 0, 0, 0.55));
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 900;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.egc-play-cta:hover { filter: brightness(1.08); }
.egc-play-cta:active { transform: scale(0.96); }
.egc-spot-ghost {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 40px;
  padding: 0 13px;
  border-radius: 13px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #F8FAFC;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.egc-spot-nav {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 5px;
}
.egc-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
  transition: width 0.16s ease, background 0.16s ease;
}
.egc-dot.on {
  width: 20px;
  background: #FFFFFF;
}
.egc-spot-arr {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 900;
  display: grid;
  place-items: center;
  cursor: pointer;
}

/* 4. Curated Horizontal Shelves */
.egc-shelves {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.egc-shelf {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.egc-shelf-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px;
}
.egc-shelf-l {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.egc-shelf-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  color: var(--wh);
  letter-spacing: -0.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.egc-shelf-cnt {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--tile);
  border: 1px solid var(--line);
  color: var(--mut);
  font-variant-numeric: tabular-nums;
}
.egc-shelf-r {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.egc-rail-btn {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--tile);
  border: 1px solid var(--line);
  color: var(--wh);
  font-size: 14px;
  font-weight: 900;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.egc-rail-btn:hover { border-color: var(--line-strong); }
.egc-see-all {
  padding: 4px 10px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--sky);
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.egc-see-all:hover { background: var(--tile); }

.egc-rail {
  display: flex;
  gap: 11px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-left: 2px;
  padding: 3px 2px 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.egc-rail::-webkit-scrollbar { display: none; }
.egc-rail .egc-poster {
  flex: 0 0 158px;
  scroll-snap-align: start;
}

/* 5. Collectible 3:4 Portrait Poster Card */
.egc-poster {
  --cab-accent: #38BDF8;
  --cab-accent2: #A855F7;
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 17px;
  overflow: hidden;
  cursor: pointer;
  background:
    radial-gradient(circle at 30% 18%, color-mix(in srgb, var(--cab-accent) 44%, #0B1224), transparent 62%),
    radial-gradient(circle at 80% 82%, color-mix(in srgb, var(--cab-accent2) 38%, #070B14), #070B14 78%);
  border: 1.5px solid color-mix(in srgb, var(--cab-accent) 52%, rgba(255, 255, 255, 0.16));
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.42),
    0 0 18px color-mix(in srgb, var(--cab-accent) 16%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.30);
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.16s ease, box-shadow 0.16s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  user-select: none;
  -webkit-user-select: none;
}
.egc-poster::before {
  content: '';
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(118deg, transparent 40%, rgba(255, 255, 255, 0.18) 50%, transparent 60%);
  transform: translateX(-65%);
  transition: transform 0.55s ease;
  pointer-events: none;
  z-index: 3;
}
.egc-poster:hover {
  transform: translateY(-4px) scale(1.015);
  border-color: color-mix(in srgb, var(--cab-accent) 90%, #FFFFFF);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.52),
    0 0 26px color-mix(in srgb, var(--cab-accent) 34%, transparent);
}
.egc-poster:hover::before { transform: translateX(65%); }
.egc-poster:active { transform: scale(0.965); }

/* Bottom hero accent trim bar */
.egc-poster::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cab-accent), var(--cab-accent2));
  z-index: 5;
}

.egc-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.egc-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
  display: block;
  transition: transform 0.32s ease;
}
.egc-poster:hover .egc-art img { transform: scale(1.05); }

/* Distinct Noir/Web treatment for duplicate character posters (e.g. Spider-Man Solitaire) */
.egc-poster.is-alt-web .egc-art img {
  filter: hue-rotate(-14deg) saturate(1.22) contrast(1.12);
}
.egc-poster.is-alt-web .egc-art::after {
  content: '♠ ♥ ♣ ♦';
  position: absolute;
  top: 44px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.38em;
  color: rgba(255, 255, 255, 0.42);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

/* Collector Variant Poster Backdrop for SVG-emblem / non-photo cabinets */
.egc-poster.is-variant .egc-art {
  background:
    radial-gradient(circle at 50% 34%, color-mix(in srgb, var(--cab-accent) 52%, transparent), transparent 62%),
    radial-gradient(circle at 82% 80%, color-mix(in srgb, var(--cab-accent2) 48%, transparent), transparent 60%),
    repeating-radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.045) 0 1.5px, transparent 1.5px 9px),
    linear-gradient(162deg, #0D1426 0%, #060913 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 34%;
}
.egc-var-crest {
  width: 78px;
  height: 78px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.24), transparent 55%),
    linear-gradient(145deg, color-mix(in srgb, var(--cab-accent) 44%, #0B1222), color-mix(in srgb, var(--cab-accent2) 44%, #090D18));
  border: 1.5px solid color-mix(in srgb, var(--cab-accent) 78%, #FFFFFF);
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.56),
    0 0 26px color-mix(in srgb, var(--cab-accent) 42%, transparent);
  display: grid;
  place-items: center;
  position: relative;
}
.egc-var-crest img {
  width: 64%;
  height: 64%;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.55));
}
.egc-var-emoji {
  font-size: 38px;
  line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.65));
}
.egc-var-subem {
  position: absolute;
  right: -7px;
  bottom: -7px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(7, 11, 20, 0.92);
  border: 1.5px solid color-mix(in srgb, var(--cab-accent) 80%, #FFFFFF);
  display: grid;
  place-items: center;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.55);
}

.egc-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(4, 7, 15, 0.42) 0%, transparent 26%, rgba(4, 7, 15, 0.14) 46%, rgba(4, 7, 15, 0.84) 74%, rgba(3, 6, 12, 0.97) 100%);
  pointer-events: none;
}

.egc-card-top {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 5px;
  padding: 8px 8px 0;
}
.egc-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(5, 8, 18, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid color-mix(in srgb, var(--cab-accent) 68%, rgba(255, 255, 255, 0.3));
  color: #FFFFFF;
}
.egc-badge.is-new {
  background: linear-gradient(135deg, #EC4899, #8B5CF6);
  border-color: rgba(255, 255, 255, 0.65);
}
.egc-badge.is-done {
  background: rgba(16, 185, 129, 0.88);
  border-color: rgba(255, 255, 255, 0.6);
}
.egc-card-acts {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.egc-mini-act {
  width: 27px;
  height: 27px;
  border-radius: 999px;
  background: rgba(4, 7, 16, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: rgba(248, 250, 252, 0.90);
  font-size: 12px;
  font-weight: 900;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.12s ease, border-color 0.12s ease;
}
.egc-mini-act:hover {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(255, 255, 255, 0.56);
}
.egc-mini-act:active { transform: scale(0.88); }
.egc-mini-act.is-fav {
  background: linear-gradient(135deg, #EC4899, #F59E0B);
  border-color: #FFFFFF;
  color: #FFFFFF;
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.55);
}

.egc-card-foot {
  position: relative;
  z-index: 4;
  padding: 0 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.egc-card-genre {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--cab-accent) 76%, #FFFFFF);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.egc-card-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.15;
  color: #FFFFFF;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.egc-crown {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  font-size: 10.5px;
  font-weight: 800;
  color: #E2E8F0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}
.egc-crown.is-me {
  color: #7DD3FC;
}
.egc-crown.is-open {
  color: #94A3B8;
}

/* 6. Filtered / Search / All-Games Poster Grid */
.egc-grid-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 2px;
}
.egc-grid-stat {
  font-size: 12px;
  font-weight: 800;
  color: var(--mut);
}
.egc-grid-stat b { color: var(--wh); }
.egc-sort {
  height: 32px;
  padding: 0 10px;
  border-radius: 10px;
  background: var(--tile);
  border: 1px solid var(--line);
  color: var(--wh);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
}
.egc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(154px, 1fr));
  gap: 12px;
}

.egc-empty {
  border-radius: 18px;
  padding: 26px 18px;
  text-align: center;
  background: var(--card);
  border: 1px dashed var(--line-strong);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}
.egc-empty-ic { font-size: 32px; }
.egc-empty-t {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  color: var(--wh);
}
.egc-empty-s {
  font-size: 12.5px;
  color: var(--mut);
  max-width: 340px;
}

/* 7. Collapsible Hangar Footer */
.egc-hangar-details {
  border-radius: 16px;
  background: var(--tile);
  border: 1px dashed var(--line-strong);
  padding: 9px 12px;
}
.egc-hangar-details summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--wh);
}
.egc-hangar-details summary::-webkit-details-marker { display: none; }
.egc-hangar-details[open] .egc-hangar-grid { margin-top: 10px; }

/* 8. Modals: Trophy Room, Game Info Sheet & Quick Switcher */
.egc-m-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin-top: 11px;
  padding: 3px;
  border-radius: 13px;
  background: var(--input-bg);
  border: 1px solid var(--line);
}
.egc-m-tab {
  min-height: 32px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--mut);
  cursor: pointer;
}
.egc-m-tab.on {
  background: var(--pri);
  color: var(--pri-fg);
}
.egc-m-scroll {
  margin-top: 12px;
  max-height: 58dvh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 2px;
}
.egc-podium-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.egc-pod-card {
  padding: 10px 8px;
  border-radius: 15px;
  background: var(--tile);
  border: 1px solid var(--line);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.egc-pod-card.is-lead {
  border-color: var(--sky);
  box-shadow: 0 0 16px color-mix(in srgb, var(--sky) 24%, transparent);
}
.egc-pod-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--line-strong);
}
.egc-pod-name { font-size: 12px; font-weight: 900; color: var(--wh); }
.egc-pod-pts {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
  color: var(--wh);
  font-variant-numeric: tabular-nums;
}
.egc-pod-sub { font-size: 10px; font-weight: 700; color: var(--mut); }

.egc-rival-list { display: flex; flex-direction: column; gap: 6px; }
.egc-rival-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 11px;
  border-radius: 13px;
  background: var(--tile);
  border: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
}
.egc-rival-row:hover { border-color: var(--line-strong); }
.egc-rival-t { font-size: 12.5px; font-weight: 900; color: var(--wh); }
.egc-rival-s { font-size: 11px; font-weight: 600; color: var(--mut); }

/* Game Info Sheet Modal */
.egc-info-hero {
  --cab-accent: #38BDF8;
  --cab-accent2: #A855F7;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  padding: 14px;
  min-height: 116px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  background:
    radial-gradient(ellipse 80% 90% at 15% 0%, color-mix(in srgb, var(--cab-accent) 44%, #070B14), transparent 65%),
    linear-gradient(155deg, #0E1629, #060913);
  border: 1.5px solid color-mix(in srgb, var(--cab-accent) 62%, transparent);
}
.egc-info-thumb {
  width: 68px;
  height: 90px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1.5px solid color-mix(in srgb, var(--cab-accent) 80%, #FFFFFF);
  background: #070B14;
  display: grid;
  place-items: center;
}
.egc-info-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.egc-info-thumb.is-contain img { width: 70%; height: 70%; object-fit: contain; }
.egc-info-meta { min-width: 0; flex: 1; }
.egc-info-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.15;
}
.egc-info-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}
.egc-info-pill {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #E2E8F0;
}
.egc-info-desc {
  margin-top: 11px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--txt);
  font-weight: 600;
}

/* Quick Switcher Modal */
.egc-sw-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.egc-sw-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 12px;
  background: var(--tile);
  border: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
  min-width: 0;
}
.egc-sw-item:hover { border-color: var(--line-strong); }
.egc-sw-item.is-cur { border-color: var(--sky); }
.egc-sw-ic {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  overflow: hidden;
  flex-shrink: 0;
  background: #070B14;
  display: grid;
  place-items: center;
  font-size: 17px;
}
.egc-sw-ic img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.egc-sw-ic.is-contain img { width: 72%; height: 72%; object-fit: contain; }
.egc-sw-nm {
  font-size: 11.5px;
  font-weight: 900;
  color: var(--wh);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.egc-sw-tg {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--mut);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* On-Demand Lazy Loader Stage */
.egc-loading-stage {
  min-height: 280px;
  border-radius: 20px;
  background: var(--card);
  border: 1.5px solid color-mix(in srgb, var(--cab-accent, #38BDF8) 45%, transparent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
}
.egc-loading-ring {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  border: 3px solid color-mix(in srgb, var(--cab-accent, #38BDF8) 25%, transparent);
  border-top-color: var(--cab-accent, #38BDF8);
  display: grid;
  place-items: center;
  font-size: 28px;
  animation: egcSpin 0.95s linear infinite;
}
.egc-loading-ring span { animation: egcSpinRev 0.95s linear infinite; }
.egc-loading-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  color: var(--wh);
}
.egc-loading-sub { font-size: 12px; color: var(--mut); font-weight: 600; }
@keyframes egcSpin { to { transform: rotate(360deg); } }
@keyframes egcSpinRev { to { transform: rotate(-360deg); } }

/* 9. Light Pastel Theme Polish (Bronwin Blush/Sage & Riley Pastel — Zero Gold!) */
.dev.theme-bronwin:not(.bronwin-velvet) .egc-cmd,
.dev.theme-riley:not(.riley-dark) .egc-cmd {
  background: color-mix(in srgb, var(--bg) 86%, #FFFFFF);
  box-shadow: 0 8px 20px rgba(92, 38, 82, 0.11);
}
.dev.theme-bronwin:not(.bronwin-velvet) .egc-poster,
.dev.theme-riley:not(.riley-dark) .egc-poster {
  box-shadow:
    0 10px 22px rgba(72, 32, 68, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.dev.theme-bronwin:not(.bronwin-velvet) .egc-top {
  background:
    radial-gradient(ellipse 75% 70% at 12% 0%, rgba(244, 114, 182, 0.24), transparent 62%),
    radial-gradient(ellipse 70% 65% at 92% 10%, rgba(168, 85, 247, 0.18), transparent 60%),
    var(--card);
}
.dev.theme-bronwin.bronwin-sage .egc-top {
  background:
    radial-gradient(ellipse 75% 70% at 12% 0%, rgba(65, 124, 96, 0.22), transparent 62%),
    radial-gradient(ellipse 70% 65% at 92% 10%, rgba(236, 174, 200, 0.28), transparent 60%),
    var(--card);
}

/* 10. Responsive Mobile Handheld Tuning */
@media (max-width: 760px) {
  .egc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
  .egc-rail .egc-poster { flex: 0 0 140px; }
}
@media (max-width: 640px) {
  .egc-shell { gap: 10px; }
  .egc-top { padding: 8px 10px; border-radius: 16px; }
  .egc-orb { width: 34px; height: 34px; }
  .egc-kicker { display: none; }
  .egc-title { font-size: 15.5px; }
  .egc-btn { min-height: 32px; padding: 0 9px; font-size: 11.5px; border-radius: 10px; }
  .egc-cmd { padding: 7px 8px; border-radius: 14px; gap: 6px; }
  .egc-search { height: 34px; font-size: 12.5px; }
  .egc-view-btn { min-height: 28px; padding: 0 8px; font-size: 11px; }
  .egc-spot { min-height: 126px; border-radius: 18px; }
  .egc-spot-body { padding: 12px 12px 11px; gap: 10px; }
  .egc-spot-title { font-size: 17px; }
  .egc-spot-desc { font-size: 11.5px; -webkit-line-clamp: 2; }
  .egc-play-cta { min-height: 34px; padding: 0 13px; font-size: 12px; border-radius: 11px; }
  .egc-spot-ghost { min-height: 34px; padding: 0 10px; font-size: 11.5px; border-radius: 11px; }
  .egc-rail-btn { display: none; }
  .egc-shelf-title { font-size: 14.5px; }
  .egc-rail { gap: 8px; }
  .egc-rail .egc-poster { flex: 0 0 130px; }
  .egc-card-title { font-size: 12.5px; }
  .egc-crown { font-size: 10px; }
  .egc-mini-act { width: 25px; height: 25px; font-size: 11px; }
  .egc-var-crest { width: 62px; height: 62px; border-radius: 17px; }
  .egc-var-emoji { font-size: 30px; }
}
@media (max-width: 480px) {
  .egc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .egc-sw-grid { grid-template-columns: 1fr; }
}
