/* =================================================================
   CALENDAR PREMIUM — Cinematic cells, index-level background,
   smooth animations. Loaded LAST to win cascade.
   ================================================================= */

/* ── 1. PAGE BACKGROUND — matches index aesthetic ─────────────── */

body.category-page--games {
  background: #07070b !important;
}

body.category-page--games::before {
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  pointer-events: none !important;
  z-index: 0 !important;
  background:
    radial-gradient(ellipse 90% 55% at 85% -5%,  rgba(100,210,255,0.22), transparent 55%),
    radial-gradient(ellipse 70% 60% at 5%  8%,   rgba(150,120,255,0.15), transparent 55%),
    radial-gradient(ellipse 80% 50% at 50% 110%,  rgba(255,120,180,0.09), transparent 55%) !important;
}

body.category-page--games::after {
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  pointer-events: none !important;
  z-index: 0 !important;
  background: radial-gradient(ellipse 60% 40% at 70% 55%, rgba(100,210,255,0.05), transparent 60%) !important;
  animation: cal-bg-pulse 8s ease-in-out infinite alternate !important;
}

@keyframes cal-bg-pulse {
  from { opacity: 0.6; }
  to   { opacity: 1; }
}

body.category-page--games > * {
  position: relative !important;
  z-index: 1 !important;
}

/* ── 2. APP CONTAINER ─────────────────────────────────────────── */

.gc-app {
  background: transparent !important;
}

/* ── 3. CHROME — refined glass toolbar ───────────────────────── */

.gc-chrome--pro,
.gc-chrome {
  margin: 0.5rem 0.5rem 0 !important;
  border-radius: 20px !important;
  background: rgba(7, 8, 18, 0.78) !important;
  border: 1px solid rgba(255,255,255,0.09) !important;
  backdrop-filter: blur(48px) saturate(190%) brightness(1.04) !important;
  -webkit-backdrop-filter: blur(48px) saturate(190%) brightness(1.04) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.09),
    inset 0 -1px 0 rgba(0,0,0,0.2),
    0 16px 48px rgba(0,0,0,0.4),
    0 0 0 1px rgba(0,0,0,0.3) !important;
}

/* ── 4. GRID CONTAINER ────────────────────────────────────────── */

.gc-body {
  margin: 0.4rem 0.5rem 0.5rem !important;
  border-radius: 20px !important;
  background: rgba(7,8,18,0.5) !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 24px 60px rgba(0,0,0,0.45) !important;
  overflow: hidden !important;
}

/* ── 5. WEEKDAY HEADERS ───────────────────────────────────────── */

.gc-grid__weekdays {
  position: sticky !important;
  top: 0 !important;
  z-index: 10 !important;
  background: rgba(7,8,18,0.9) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}

.gc-grid__weekday {
  font-size: 0.58rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,0.38) !important;
  padding: 0.55rem 0.5rem !important;
  text-align: center !important;
}

.gc-grid__weekday--sat { color: rgba(120,180,255,0.7) !important; }
.gc-grid__weekday--sun { color: rgba(255,110,155,0.7) !important; }

/* ── 6. DAY CELLS — cinematic base ───────────────────────────── */

.gc-day:not(.gc-day--empty) {
  position: relative !important;
  overflow: hidden !important;
  border-right: 1px solid rgba(255,255,255,0.04) !important;
  border-bottom: 1px solid rgba(255,255,255,0.04) !important;
  background: rgba(255,255,255,0.012) !important;
  transition: background 0.3s ease !important;
  cursor: pointer !important;
}

.gc-day--empty {
  border-right: 1px solid rgba(255,255,255,0.03) !important;
  border-bottom: 1px solid rgba(255,255,255,0.03) !important;
  background: rgba(255,255,255,0.005) !important;
}

/* Day hover glow */
.gc-day:not(.gc-day--empty):hover {
  background: rgba(255,255,255,0.025) !important;
  z-index: 5 !important;
}

/* Day number — glass chip */
.gc-day__num {
  position: relative !important;
  z-index: 6 !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums !important;
  color: rgba(255,255,255,0.75) !important;
  padding: 0.18rem 0.35rem !important;
  border-radius: 6px !important;
  transition: all 0.2s ease !important;
  background: transparent !important;
}

.gc-day__num--has {
  color: rgba(255,255,255,0.9) !important;
}

.gc-day--sat .gc-day__num { color: rgba(120,180,255,0.88) !important; }
.gc-day--sun .gc-day__num { color: rgba(255,110,155,0.88) !important; }

/* TODAY — accent circle */
.gc-day--today .gc-day__num {
  background: linear-gradient(135deg, rgb(100,210,255), rgb(120,140,255)) !important;
  color: #001220 !important;
  font-weight: 900 !important;
  box-shadow:
    0 4px 14px rgba(100,210,255,0.55),
    0 0 0 3px rgba(100,210,255,0.18),
    inset 0 1px 0 rgba(255,255,255,0.4) !important;
}

/* ── 7. SPOTLIGHT CELL — cinematic poster ─────────────────────── */

.gc-day-spotlight {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  overflow: hidden !important;
  cursor: pointer !important;
  text-align: left !important;
}

/* Cover fills entire cell */
.gc-day-spotlight__art {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
}

.gc-day-spotlight__art .gc-cover,
.gc-day-spotlight__art .gc-cover--poster-month-lg {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  aspect-ratio: auto !important;
}

.gc-day-spotlight__art .gc-cover__img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 20% !important;
  filter: saturate(1.1) contrast(1.04) !important;
  transition: transform 0.8s cubic-bezier(0.16,1,0.3,1), filter 0.4s ease !important;
}

.gc-day-spotlight__art .gc-cover__fallback {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
  font-size: clamp(1.8rem, 4vw, 3rem) !important;
  font-weight: 800 !important;
}

/* Cinema gradient overlay */
.gc-day-spotlight::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0) 38%,
    rgba(0,0,0,0.62) 68%,
    rgba(0,0,0,0.94) 100%
  ) !important;
  pointer-events: none !important;
}

/* Top vignette for day number */
.gc-day-spotlight::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.5) 0%,
    rgba(0,0,0,0.1) 18%,
    transparent 36%
  ) !important;
  pointer-events: none !important;
}

/* Footer — title + studio over gradient */
.gc-day-spotlight__footer {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 4 !important;
  padding: 1.2rem 0.6rem 0.5rem !important;
  background: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

.gc-day-spotlight__title {
  font-size: 0.76rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.2 !important;
  color: #fff !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7) !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.gc-day-spotlight__studios {
  font-size: 0.58rem !important;
  font-weight: 600 !important;
  color: rgba(255,255,255,0.65) !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Platform icons — top right floating */
.gc-day-spotlight__platforms {
  position: absolute !important;
  top: 7px !important;
  right: 7px !important;
  z-index: 5 !important;
  display: flex !important;
  gap: 4px !important;
  flex-direction: row !important;
}

.gc-day-spotlight__platforms .gc-day-meta__platform {
  width: 22px !important;
  height: 22px !important;
  border-radius: 999px !important;
  background: rgba(0,0,0,0.6) !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.gc-day-spotlight__platforms .gc-day-meta__platform .gc-platform-mark,
.gc-day-spotlight__platforms .gc-day-meta__platform .gc-platform-mark--img,
.gc-day-spotlight__platforms .gc-day-meta__platform img.gc-platform-mark {
  width: 13px !important;
  height: 13px !important;
  filter: none !important;
}

/* Hover: Ken Burns on cover */
@media (hover: hover) and (pointer: fine) {
  .gc-day-spotlight:hover .gc-day-spotlight__art .gc-cover__img {
    transform: scale(1.07) !important;
    filter: saturate(1.18) contrast(1.06) brightness(1.02) !important;
  }
}

/* ── 8. DUO / TRIO CARDS — stacked covers with overlays ─────── */

.gc-day__body--duo {
  position: absolute !important;
  inset: 0 !important;
  display: grid !important;
  padding: 0 !important;
  gap: 2px !important;
}

.gc-day__body--duo-2 {
  grid-template-columns: 1fr 1fr !important;
}

.gc-day-trio__card {
  position: relative !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: rgba(255,255,255,0.02) !important;
  cursor: pointer !important;
  padding: 0 !important;
  text-align: left !important;
  min-height: 0 !important;
}

/* Cover art fills card */
.gc-day-trio__art {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
}

.gc-day-trio__art .gc-cover,
.gc-day-trio__art .gc-cover--poster-month-trio {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  aspect-ratio: auto !important;
  min-height: 0 !important;
}

.gc-day-trio__art .gc-cover__img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 20% !important;
  filter: saturate(1.05) !important;
  transition: transform 0.7s cubic-bezier(0.16,1,0.3,1), filter 0.35s ease !important;
}

.gc-day-trio__art .gc-cover__fallback {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
  font-size: 1.2rem !important;
  font-weight: 800 !important;
}

/* Gradient overlay */
.gc-day-trio__card::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0) 35%,
    rgba(0,0,0,0.72) 80%,
    rgba(0,0,0,0.95) 100%
  ) !important;
  pointer-events: none !important;
}

.gc-day-trio__copy {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 4 !important;
  padding: 0.85rem 0.4rem 0.35rem !important;
  background: none !important;
}

.gc-day-trio__title {
  font-size: 0.6rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7) !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  letter-spacing: -0.01em !important;
}

.gc-day-trio__studios {
  display: none !important;
}

/* Platform icons for trio */
.gc-day-meta__platforms {
  position: absolute !important;
  top: 5px !important;
  right: 5px !important;
  z-index: 5 !important;
  display: flex !important;
  gap: 3px !important;
  pointer-events: none !important;
}

.gc-day-meta__platform {
  width: 18px !important;
  height: 18px !important;
  border-radius: 999px !important;
  background: rgba(0,0,0,0.6) !important;
  border: 1px solid rgba(255,255,255,0.16) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.gc-day-meta__platform .gc-platform-mark,
.gc-day-meta__platform .gc-platform-mark--img,
.gc-day-meta__platform img.gc-platform-mark {
  width: 11px !important;
  height: 11px !important;
  filter: none !important;
}

.gc-day-meta__platform:nth-child(n+4) { display: none !important; }

/* Hover scale on trio cards */
@media (hover: hover) and (pointer: fine) {
  .gc-day-trio__card:hover .gc-day-trio__art .gc-cover__img {
    transform: scale(1.06) !important;
    filter: saturate(1.15) contrast(1.05) !important;
  }
}

/* ── 9. "+N RELEASES" button ──────────────────────────────────── */

.gc-day__more {
  position: absolute !important;
  bottom: 6px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 6 !important;
  width: calc(100% - 12px) !important;
  padding: 0.28rem 0.5rem !important;
  border-radius: 8px !important;
  background: rgba(0,0,0,0.65) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(100,210,255,0.25) !important;
  color: rgba(100,210,255,0.95) !important;
  font-size: 0.6rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  transition: all 0.2s ease !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5) !important;
}

.gc-day__more:hover {
  background: rgba(100,210,255,0.15) !important;
  border-color: rgba(100,210,255,0.5) !important;
  box-shadow: 0 0 16px rgba(100,210,255,0.2) !important;
}

/* ── 10. ENTRY ANIMATIONS — diagonal stagger ─────────────────── */

@keyframes cal-cell-enter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes cal-slide-in-right {
  from { opacity: 0; transform: translate3d(50px, 0, 0) scale(0.98); filter: blur(6px); }
  to   { opacity: 1; transform: translate3d(0, 0, 0) scale(1); filter: blur(0); }
}

@keyframes cal-slide-in-left {
  from { opacity: 0; transform: translate3d(-50px, 0, 0) scale(0.98); filter: blur(6px); }
  to   { opacity: 1; transform: translate3d(0, 0, 0) scale(1); filter: blur(0); }
}

/* Grid enter — override v6 (.gc-app--month-pro specificity + !important) */
.gc-app--month-pro .gc-grid--month {
  animation: cal-slide-in-right 0.6s cubic-bezier(0.22, 1, 0.36, 1) both !important;
  will-change: transform, opacity, filter !important;
}

/* Previous month navigation */
.gc-app--month-pro[data-cal-dir="prev"] .gc-grid--month {
  animation-name: cal-slide-in-left !important;
}

/* Cells — diagonal stagger by column, beats v6-day-pop */
.gc-app--month-pro .gc-grid--month .gc-day:nth-child(7n+1):not(.gc-day--empty) { animation: cal-cell-enter 0.5s cubic-bezier(0.16,1,0.3,1) 0.10s both !important; }
.gc-app--month-pro .gc-grid--month .gc-day:nth-child(7n+2):not(.gc-day--empty) { animation: cal-cell-enter 0.5s cubic-bezier(0.16,1,0.3,1) 0.14s both !important; }
.gc-app--month-pro .gc-grid--month .gc-day:nth-child(7n+3):not(.gc-day--empty) { animation: cal-cell-enter 0.5s cubic-bezier(0.16,1,0.3,1) 0.18s both !important; }
.gc-app--month-pro .gc-grid--month .gc-day:nth-child(7n+4):not(.gc-day--empty) { animation: cal-cell-enter 0.5s cubic-bezier(0.16,1,0.3,1) 0.22s both !important; }
.gc-app--month-pro .gc-grid--month .gc-day:nth-child(7n+5):not(.gc-day--empty) { animation: cal-cell-enter 0.5s cubic-bezier(0.16,1,0.3,1) 0.26s both !important; }
.gc-app--month-pro .gc-grid--month .gc-day:nth-child(7n+6):not(.gc-day--empty) { animation: cal-cell-enter 0.5s cubic-bezier(0.16,1,0.3,1) 0.30s both !important; }
.gc-app--month-pro .gc-grid--month .gc-day:nth-child(7n+7):not(.gc-day--empty) { animation: cal-cell-enter 0.5s cubic-bezier(0.16,1,0.3,1) 0.34s both !important; }

/* Chrome slide down */
.gc-chrome--pro,
.gc-chrome {
  animation: gc-reveal-down 0.55s cubic-bezier(0.16,1,0.3,1) 0.02s both !important;
}

/* Body slide up */
.gc-body {
  animation: gc-reveal-up 0.6s cubic-bezier(0.16,1,0.3,1) 0.1s both !important;
}

@keyframes gc-reveal-down {
  from { opacity: 0; transform: translateY(-18px) scale(0.98); filter: blur(4px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

@keyframes gc-reveal-up {
  from { opacity: 0; transform: translateY(20px) scale(0.98); filter: blur(4px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

/* Platform chips — spring entry */
.gc-platform-chip:nth-child(1) { animation: cal-chip-pop 0.4s cubic-bezier(0.34,1.56,0.64,1) 0.06s both; }
.gc-platform-chip:nth-child(2) { animation: cal-chip-pop 0.4s cubic-bezier(0.34,1.56,0.64,1) 0.10s both; }
.gc-platform-chip:nth-child(3) { animation: cal-chip-pop 0.4s cubic-bezier(0.34,1.56,0.64,1) 0.14s both; }
.gc-platform-chip:nth-child(4) { animation: cal-chip-pop 0.4s cubic-bezier(0.34,1.56,0.64,1) 0.18s both; }
.gc-platform-chip:nth-child(5) { animation: cal-chip-pop 0.4s cubic-bezier(0.34,1.56,0.64,1) 0.22s both; }
.gc-platform-chip:nth-child(6) { animation: cal-chip-pop 0.4s cubic-bezier(0.34,1.56,0.64,1) 0.26s both; }
.gc-platform-chip:nth-child(7) { animation: cal-chip-pop 0.4s cubic-bezier(0.34,1.56,0.64,1) 0.30s both; }

@keyframes cal-chip-pop {
  from { opacity: 0; transform: scale(0.7) translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* ── 11. TODAY CELL — strong accent glow ─────────────────────── */

.gc-day--today {
  background: rgba(100,210,255,0.04) !important;
  box-shadow: inset 0 0 0 1px rgba(100,210,255,0.18) !important;
}

.gc-day--today::after {
  display: none !important;
}

/* ── 12. HOVER GLOW on cells ─────────────────────────────────── */

@media (hover: hover) and (pointer: fine) {
  .gc-day:not(.gc-day--empty):hover {
    box-shadow: inset 0 0 0 1px rgba(100,210,255,0.2) !important;
    z-index: 5 !important;
  }

  .gc-day:not(.gc-day--empty):hover .gc-day__num {
    color: rgba(255,255,255,1) !important;
  }
}

/* ── 13. REDUCED MOTION ───────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .gc-grid--month,
  .gc-day,
  .gc-chrome--pro, .gc-chrome,
  .gc-body,
  .gc-platform-chip,
  body.category-page--games::before,
  body.category-page--games::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ── 14. LIGHT THEME ──────────────────────────────────────────── */

html[data-theme="light"] body.category-page--games {
  background: #f5f6fc !important;
}

html[data-theme="light"] body.category-page--games::before {
  background:
    radial-gradient(ellipse 90% 55% at 85% -5%, rgba(0,100,220,0.1), transparent 55%),
    radial-gradient(ellipse 70% 60% at 5% 8%, rgba(100,80,220,0.07), transparent 55%) !important;
}

html[data-theme="light"] .gc-body {
  background: rgba(255,255,255,0.72) !important;
  border-color: rgba(0,0,0,0.07) !important;
}

html[data-theme="light"] .gc-day:not(.gc-day--empty) {
  background: rgba(0,0,0,0.012) !important;
}

html[data-theme="light"] .gc-day--today {
  background: rgba(0,100,220,0.04) !important;
  box-shadow: inset 0 0 0 1px rgba(0,100,220,0.18) !important;
}

html[data-theme="light"] .gc-day__num {
  color: rgba(0,0,0,0.72) !important;
}

html[data-theme="light"] .gc-day--today .gc-day__num {
  background: linear-gradient(135deg, #007AFF, #0055d4) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(0,122,255,0.45) !important;
}

html[data-theme="light"] .gc-day--sat .gc-day__num { color: rgb(20,80,200) !important; }
html[data-theme="light"] .gc-day--sun .gc-day__num { color: rgb(200,40,80) !important; }

html[data-theme="light"] .gc-grid__weekday--sat { color: rgba(20,80,200,0.7) !important; }
html[data-theme="light"] .gc-grid__weekday--sun { color: rgba(200,40,80,0.7) !important; }

html[data-theme="light"] .gc-day__more {
  background: rgba(255,255,255,0.85) !important;
  border-color: rgba(0,100,220,0.28) !important;
  color: rgba(0,100,220,0.9) !important;
}

/* =================================================================
   PREMIUM SKELETONS — cinematic loading states matching real cells
   ================================================================= */

.gc-skeleton--premium {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem !important;
  min-height: 600px !important;
  padding: 0 !important;
  animation: sk-fade-in 0.4s ease both !important;
}

@keyframes sk-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Shared shimmer surface — soft diagonal sweep */
.gc-skeleton__poster,
.gc-skeleton__cover,
.gc-skeleton__chip,
.gc-skeleton__eyebrow,
.gc-skeleton__wday,
.gc-skeleton__cell--full,
.gc-skeleton__cell--row,
.gc-skeleton__platforms,
.gc-skeleton__date,
.gc-skeleton__footer-pill {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    100deg,
    rgba(255,255,255,0.04) 0%,
    rgba(255,255,255,0.09) 18%,
    rgba(255,255,255,0.16) 30%,
    rgba(255,255,255,0.09) 42%,
    rgba(255,255,255,0.04) 60%
  );
  background-size: 200% 100%;
  animation: sk-wave 1.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes sk-wave {
  0%   { background-position: 150% 0; }
  100% { background-position: -150% 0; }
}

/* ── Upcoming strip skeleton ──────────────────────────────────── */
.gc-skeleton__upcoming {
  margin: 0.5rem 0.5rem 0 !important;
  padding: 0.85rem 1rem !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  background-image: linear-gradient(
    168deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.02) 48%,
    rgba(120, 160, 255, 0.05) 100%
  ) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 24px -16px rgba(0, 0, 0, 0.45) !important;
}

.gc-skeleton__eyebrow {
  width: 90px !important;
  height: 10px !important;
  border-radius: 4px !important;
  margin-bottom: 0.75rem !important;
}

.gc-skeleton__upcoming-track {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 0.7rem !important;
}

.gc-skeleton__poster {
  aspect-ratio: 2 / 3 !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.gc-skeleton__poster--hero {
  aspect-ratio: 2 / 3 !important;
}

.gc-skeleton__poster:nth-child(2) { animation-delay: 0.1s; }
.gc-skeleton__poster:nth-child(3) { animation-delay: 0.2s; }
.gc-skeleton__poster:nth-child(4) { animation-delay: 0.3s; }
.gc-skeleton__poster:nth-child(5) { animation-delay: 0.4s; }

/* ── Board (grid container) skeleton ──────────────────────────── */
.gc-skeleton__board {
  flex: 1 !important;
  margin: 0.4rem 0.5rem 0.5rem !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  background: rgba(255, 255, 255, 0.03) !important;
  background-image: linear-gradient(
    168deg,
    rgba(255, 255, 255, 0.07) 0%,
    rgba(255, 255, 255, 0.015) 100%
  ) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 28px -16px rgba(0, 0, 0, 0.42) !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Weekday header row */
.gc-skeleton__weekdays {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  gap: 0 !important;
  padding: 0.5rem 0 !important;
  border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}

.gc-skeleton__wday {
  width: 24px !important;
  height: 8px !important;
  border-radius: 3px !important;
  margin: 0 auto !important;
}

/* Grid */
.gc-skeleton__grid {
  display: grid !important;
  flex: 1 !important;
  gap: 0 !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}

.gc-skeleton__grid--month {
  grid-template-columns: repeat(7, 1fr) !important;
  grid-auto-rows: minmax(140px, 1fr) !important;
}

.gc-skeleton__grid--week,
.gc-skeleton__grid--myweek {
  grid-template-columns: repeat(7, 1fr) !important;
  grid-auto-rows: minmax(320px, 1fr) !important;
}

.gc-skeleton__grid--year {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
  gap: 1rem !important;
  padding: 1rem !important;
}

.gc-skeleton__grid--agenda,
.gc-skeleton__grid--day {
  grid-template-columns: 1fr !important;
  gap: 0.6rem !important;
  padding: 0.8rem !important;
}

/* Cells */
.gc-skeleton__cell {
  position: relative !important;
  border-right: 1px solid rgba(255,255,255,0.03) !important;
  border-bottom: 1px solid rgba(255,255,255,0.03) !important;
  background: rgba(255,255,255,0.006) !important;
  overflow: hidden !important;
  animation: sk-cell-rise 0.5s cubic-bezier(0.16,1,0.3,1) both !important;
  animation-delay: calc(var(--sk-i, 0) * 0.025s) !important;
}

@keyframes sk-cell-rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* Full cover cell — poster fills */
.gc-skeleton__cell--full .gc-skeleton__cover {
  position: absolute !important;
  inset: 0 !important;
  border-radius: 0 !important;
  border: 0 !important;
}

/* Duo cell — two stacked chips */
.gc-skeleton__cell--duo {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 2px !important;
}

.gc-skeleton__cell--duo .gc-skeleton__chip {
  border-radius: 0 !important;
}

.gc-skeleton__chip:nth-child(2) { animation-delay: 0.15s !important; }

/* Mute cell — empty, very faint */
.gc-skeleton__cell--mute {
  background: rgba(255,255,255,0.004) !important;
}

/* Year cards */
.gc-skeleton__grid--year .gc-skeleton__cell {
  min-height: 200px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(255,255,255,0.05) !important;
}

.gc-skeleton__grid--year .gc-skeleton__cell--full .gc-skeleton__cover {
  border-radius: 16px !important;
}

/* Agenda rows */
.gc-skeleton__grid--agenda .gc-skeleton__cell--row,
.gc-skeleton__grid--day .gc-skeleton__cell--row {
  min-height: 84px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255,255,255,0.05) !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .gc-skeleton__poster,
  .gc-skeleton__cover,
  .gc-skeleton__chip,
  .gc-skeleton__eyebrow,
  .gc-skeleton__wday,
  .gc-skeleton__cell {
    animation: none !important;
  }
}

/* Light theme */
html[data-theme="light"] .gc-skeleton__poster,
html[data-theme="light"] .gc-skeleton__cover,
html[data-theme="light"] .gc-skeleton__chip,
html[data-theme="light"] .gc-skeleton__eyebrow,
html[data-theme="light"] .gc-skeleton__wday {
  background: linear-gradient(
    100deg,
    rgba(0,0,0,0.03) 0%,
    rgba(0,0,0,0.06) 18%,
    rgba(0,0,0,0.09) 30%,
    rgba(0,0,0,0.06) 42%,
    rgba(0,0,0,0.03) 60%
  );
  background-size: 200% 100%;
}

html[data-theme="light"] .gc-skeleton__upcoming,
html[data-theme="light"] .gc-skeleton__board {
  background: rgba(255,255,255,0.6) !important;
  border-color: rgba(0,0,0,0.06) !important;
}

/* ── Mobile skeleton (legacy grid fallback; mobile-perf.css owns month-fit) ── */
@media (max-width: 900px) {
  .gc-skeleton__upcoming-track {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    overflow: hidden !important;
  }

  .gc-skeleton__poster,
  .gc-skeleton__poster--hero {
    aspect-ratio: 2 / 3 !important;
  }

  .gc-skeleton__grid--month {
    grid-auto-rows: minmax(48px, 1fr) !important;
  }

  .gc-skeleton--premium:not(.gc-skeleton--mobile):not(.gc-skeleton--mobile-month-fit) .gc-skeleton__cell--full .gc-skeleton__cover,
  .gc-skeleton--premium:not(.gc-skeleton--mobile):not(.gc-skeleton--mobile-month-fit) .gc-skeleton__cell--duo .gc-skeleton__chip {
    display: none !important;
  }

  .gc-skeleton--premium:not(.gc-skeleton--mobile):not(.gc-skeleton--mobile-month-fit) .gc-skeleton__cell {
    border: 0 !important;
    background: transparent !important;
  }

  .gc-skeleton--premium:not(.gc-skeleton--mobile):not(.gc-skeleton--mobile-month-fit) .gc-skeleton__cell::after {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 22px !important;
    height: 22px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    animation: sk-wave 1.8s ease infinite !important;
  }
}

/* =================================================================
   DETAIL PANEL MEDIA SKELETON — match premium shimmer
   ================================================================= */

.gc-game-media--loading .gc-game-media__skeleton,
.gc-game-media__track--skeleton .gc-game-media__skeleton {
  flex: 0 0 auto !important;
  width: min(200px, 38vw) !important;
  aspect-ratio: 16 / 9 !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  background: linear-gradient(
    100deg,
    rgba(255,255,255,0.04) 0%,
    rgba(255,255,255,0.09) 18%,
    rgba(255,255,255,0.16) 30%,
    rgba(255,255,255,0.09) 42%,
    rgba(255,255,255,0.04) 60%
  ) !important;
  background-size: 200% 100% !important;
  animation: sk-wave 1.6s cubic-bezier(0.4,0,0.2,1) infinite !important;
}

.gc-game-media__track--skeleton .gc-game-media__skeleton:nth-child(2) { animation-delay: 0.15s !important; }
.gc-game-media__track--skeleton .gc-game-media__skeleton:nth-child(3) { animation-delay: 0.3s !important; }

.gc-game-media__track--skeleton {
  display: flex !important;
  gap: 0.55rem !important;
  overflow: hidden !important;
}

/* Cover shimmer — smoother diagonal sweep on placeholders */
.gc-cover__shimmer {
  background: linear-gradient(
    100deg,
    transparent 30%,
    rgba(255,255,255,0.12) 50%,
    transparent 70%
  ) !important;
  background-size: 200% 100% !important;
  animation: sk-wave 1.8s cubic-bezier(0.4,0,0.2,1) infinite !important;
  transform: none !important;
}

html[data-theme="light"] .gc-game-media--loading .gc-game-media__skeleton,
html[data-theme="light"] .gc-game-media__track--skeleton .gc-game-media__skeleton {
  background: linear-gradient(
    100deg,
    rgba(0,0,0,0.03) 0%,
    rgba(0,0,0,0.07) 18%,
    rgba(0,0,0,0.11) 30%,
    rgba(0,0,0,0.07) 42%,
    rgba(0,0,0,0.03) 60%
  ) !important;
  background-size: 200% 100% !important;
}

/* =================================================================
   SLIM DAY-SHELF HEADER — compact, focused (mobile)
   ================================================================= */
@media (max-width: 900px) {
  /* Head row: back · title · settings */
  .gc-app--mobile-ui.gc-app--mobile-day .gc-toolbar__row--day-shelf-head {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin: 0 0 0.5rem !important;
  }

  .gc-app--mobile-ui.gc-app--mobile-day .gc-toolbar__title--day-shelf {
    margin: 0 !important;
    text-align: center !important;
    font-size: clamp(1.1rem, 5vw, 1.4rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
    background: linear-gradient(110deg, #fff 30%, rgba(100,210,255,0.9) 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* Day-navigation row */
  .gc-app--mobile-ui.gc-app--mobile-day .gc-toolbar__row--day-shelf-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    margin: 0 !important;
  }

  .gc-app--mobile-ui.gc-app--mobile-day .gc-day-nav-btn {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    color: rgba(255,255,255,0.85) !important;
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    transition: transform 0.2s ease, background 0.2s ease !important;
  }

  .gc-app--mobile-ui.gc-app--mobile-day .gc-day-nav-btn:active {
    transform: scale(0.92) !important;
    background: rgba(255,255,255,0.1) !important;
  }

  .gc-app--mobile-ui.gc-app--mobile-day .gc-today--day-shelf {
    flex: 0 0 auto !important;
    min-width: 120px !important;
    height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    font-size: 0.72rem !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
  }

  /* Reduce stage top offset now that header is slim → cards start higher */
  .gc-app--mobile-ui.gc-app--mobile-day .gc-mobile-stage--day {
    padding-top: 0.25rem !important;
  }

  html[data-theme="light"] .gc-app--mobile-ui.gc-app--mobile-day .gc-toolbar__title--day-shelf {
    background: linear-gradient(110deg, #0a1a40 30%, #0b67c8 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
  }

  html[data-theme="light"] .gc-app--mobile-ui.gc-app--mobile-day .gc-day-nav-btn,
  html[data-theme="light"] .gc-app--mobile-ui.gc-app--mobile-day .gc-today--day-shelf {
    color: rgba(0,0,0,0.8) !important;
    background: rgba(0,0,0,0.04) !important;
    border-color: rgba(0,0,0,0.1) !important;
  }
}

/* =================================================================
   MOBILE MONTH SUB-ROW — clean 4-button row w/ search access
   (month nav handled by swipe + bottom footer, so no chevrons here)
   ================================================================= */
@media (max-width: 900px) {
  .gc-app--mobile-ui .gc-toolbar__row--month-sub {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.5rem !important;
    margin-bottom: 0.4rem !important;
  }

  /* TODAY pill grows to fill the centre */
  .gc-app--mobile-ui .gc-toolbar__row--month-sub .gc-today--month {
    flex: 1 1 auto !important;
    max-width: 200px !important;
    min-height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 800 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    font-size: 0.72rem !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
  }

  .gc-app--mobile-ui .gc-toolbar__row--month-sub .gc-today--month:active {
    transform: scale(0.97) !important;
    background: rgba(255,255,255,0.1) !important;
  }

  html[data-theme="light"] .gc-app--mobile-ui .gc-toolbar__row--month-sub .gc-today--month {
    background: rgba(0,0,0,0.04) !important;
    border-color: rgba(0,0,0,0.1) !important;
    color: rgba(0,0,0,0.8) !important;
  }
}

/* =================================================================
   MOBILE WEEK VIEW — vertical day stack (no horizontal clipping)
   ================================================================= */
@media (max-width: 900px) {
  .gc-app--mobile-ui .gc-grid--week,
  .gc-app--mobile-ui .gc-grid--week-pro {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    grid-template-columns: none !important;
    overflow-x: visible !important;
    overflow-y: auto !important;
    padding: 0.5rem !important;
    margin: 0.4rem 0.5rem calc(1rem + var(--mobile-bottom-clear, 32px)) !important;
  }

  /* Each day → full-width card */
  .gc-app--mobile-ui .gc-grid--week .gc-week-col {
    position: relative !important;
    width: 100% !important;
    flex: 0 0 auto !important;
    flex-direction: column !important;
    border-radius: 14px !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    background: rgba(255,255,255,0.02) !important;
    overflow: hidden !important;
    min-height: 0 !important;
  }

  /* Day header bar — weekday name */
  .gc-app--mobile-ui .gc-grid--week .gc-week-col__head {
    width: 100% !important;
    text-align: left !important;
    padding: 0.5rem 0.85rem !important;
    font-size: 0.62rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase !important;
    color: rgba(255,255,255,0.55) !important;
    background: rgba(255,255,255,0.03) !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
  }

  /* Day number → badge top-right of the card */
  .gc-app--mobile-ui .gc-grid--week .gc-week-col .gc-day__num {
    position: absolute !important;
    top: 0.3rem !important;
    right: 0.6rem !important;
    z-index: 5 !important;
    padding: 0.1rem 0.4rem !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    color: rgba(255,255,255,0.85) !important;
    background: transparent !important;
  }

  /* The day cell itself — let it size to content */
  .gc-app--mobile-ui .gc-grid--week .gc-week-col .gc-day {
    position: static !important;
    width: 100% !important;
    border: 0 !important;
    background: transparent !important;
    overflow: visible !important;
  }

  .gc-app--mobile-ui .gc-grid--week .gc-week-col .gc-day__content {
    position: static !important;
    inset: auto !important;
  }

  /* Release body → horizontal poster strip */
  .gc-app--mobile-ui .gc-grid--week .gc-day__body {
    position: static !important;
    inset: auto !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 0.45rem !important;
    overflow-x: auto !important;
    padding: 0.5rem 0.6rem 0.6rem !important;
    grid-template-columns: none !important;
    scrollbar-width: none !important;
  }
  .gc-app--mobile-ui .gc-grid--week .gc-day__body::-webkit-scrollbar { display: none !important; }

  /* Each release → fixed poster card (override absolute cinematic fill) */
  .gc-app--mobile-ui .gc-grid--week .gc-day-spotlight,
  .gc-app--mobile-ui .gc-grid--week .gc-day-trio__card,
  .gc-app--mobile-ui .gc-grid--week .gc-day-lead {
    position: relative !important;
    inset: auto !important;
    flex: 0 0 auto !important;
    width: 92px !important;
    height: 128px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
  }

  /* Hide the per-cell "+N more" inside week strip (cards already shown) */
  .gc-app--mobile-ui .gc-grid--week .gc-day__more {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    flex: 0 0 auto !important;
    width: auto !important;
    align-self: center !important;
    white-space: nowrap !important;
  }

  /* Empty day → slim, just the header */
  .gc-app--mobile-ui .gc-grid--week .gc-week-col:not(:has(.gc-day__body)) .gc-day {
    min-height: 0 !important;
  }
  .gc-app--mobile-ui .gc-grid--week .gc-week-col:not(:has(.gc-day-spotlight, .gc-day-trio__card, .gc-day-lead)) {
    opacity: 0.55 !important;
  }
  .gc-app--mobile-ui .gc-grid--week .gc-week-col:not(:has(.gc-day-spotlight, .gc-day-trio__card, .gc-day-lead)) .gc-day__body::after {
    content: "—" !important;
    color: rgba(255,255,255,0.3) !important;
    padding: 0.3rem 0.6rem !important;
  }

  /* SAT / SUN header accent */
  .gc-app--mobile-ui .gc-grid--week .gc-day--sat ~ .gc-week-col__head,
  .gc-app--mobile-ui .gc-grid--week .gc-week-col:has(.gc-day--sat) .gc-week-col__head { color: rgba(120,180,255,0.75) !important; }
  .gc-app--mobile-ui .gc-grid--week .gc-week-col:has(.gc-day--sun) .gc-week-col__head { color: rgba(255,110,155,0.75) !important; }

  html[data-theme="light"] .gc-app--mobile-ui .gc-grid--week .gc-week-col {
    background: rgba(255,255,255,0.6) !important;
    border-color: rgba(0,0,0,0.06) !important;
  }
  html[data-theme="light"] .gc-app--mobile-ui .gc-grid--week .gc-week-col .gc-day__num {
    color: rgba(0,0,0,0.8) !important;
  }
}

/* =================================================================
   UPCOMING label clip fix
   ================================================================= */
.gc-upcoming__head,
.gc-upcoming__head h2 {
  padding-left: 0.15rem !important;
  overflow: visible !important;
}
.gc-upcoming__head h2 {
  text-indent: 0 !important;
}

/* =================================================================
   POLISH v2 — micro-interactions, scale-view entries, perf
   ================================================================= */

/* ---- A. Universal tap / press feedback ------------------------- */
/* Cards, chips and buttons compress slightly on press for tactile feel */
.gc-day-spotlight:active,
.gc-day-trio__card:active,
.gc-day-lead:active,
.gc-upcoming-card:active,
.gc-mobile-day-card:active,
.gc-game-row:active,
.gc-list-row:active,
.gc-game-media__card:active,
.gc-related-chip:active,
.gc-entity-card:active {
  transform: scale(0.97) !important;
  transition: transform 0.12s cubic-bezier(0.4, 0, 0.6, 1) !important;
}

.gc-platform-chip:active,
.gc-segment:active,
.gc-icon-btn:active,
.gc-nav-btn:active,
.gc-today:active,
.gc-month-footer__link:active,
.gc-day__more:active,
.gc-day-nav-btn:active {
  transform: scale(0.93) !important;
  transition: transform 0.1s ease !important;
}

/* Cover zoom should still win on hover-capable devices */
@media (hover: hover) and (pointer: fine) {
  .gc-day-spotlight:active,
  .gc-day-trio__card:active {
    transform: scale(0.98) !important;
  }
}

/* ---- B. Smooth segmented indicator ----------------------------- */
.gc-segmented__indicator {
  transition:
    transform 0.42s cubic-bezier(0.34, 1.4, 0.5, 1),
    width 0.42s cubic-bezier(0.34, 1.4, 0.5, 1),
    left 0.42s cubic-bezier(0.34, 1.4, 0.5, 1) !important;
  will-change: transform, width, left;
}

.gc-segment {
  transition: color 0.3s ease !important;
}

/* ---- C. Scale-view entry animations ---------------------------- */

/* WEEK — day cards rise in, staggered */
@keyframes gc-week-col-in {
  from { opacity: 0; transform: translateY(16px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}
.gc-grid--week .gc-week-col {
  animation: gc-week-col-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}
.gc-grid--week .gc-week-col:nth-child(1) { animation-delay: 0.04s !important; }
.gc-grid--week .gc-week-col:nth-child(2) { animation-delay: 0.09s !important; }
.gc-grid--week .gc-week-col:nth-child(3) { animation-delay: 0.14s !important; }
.gc-grid--week .gc-week-col:nth-child(4) { animation-delay: 0.19s !important; }
.gc-grid--week .gc-week-col:nth-child(5) { animation-delay: 0.24s !important; }
.gc-grid--week .gc-week-col:nth-child(6) { animation-delay: 0.29s !important; }
.gc-grid--week .gc-week-col:nth-child(7) { animation-delay: 0.34s !important; }

/* YEAR — mini-months fade+scale in, staggered */
@keyframes gc-year-cell-in {
  from { opacity: 0; transform: translateY(18px) scale(0.96); filter: blur(3px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
.gc-grid--year .gc-year-month,
.gc-year-grid > * {
  animation: gc-year-cell-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}
.gc-grid--year .gc-year-month:nth-child(3n+1) { animation-delay: 0.06s !important; }
.gc-grid--year .gc-year-month:nth-child(3n+2) { animation-delay: 0.12s !important; }
.gc-grid--year .gc-year-month:nth-child(3n+3) { animation-delay: 0.18s !important; }

/* AGENDA — rows slide up, staggered */
@keyframes gc-agenda-row-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.gc-agenda__group,
.gc-agenda__day {
  animation: gc-agenda-row-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}
.gc-agenda__group:nth-child(1) { animation-delay: 0.05s !important; }
.gc-agenda__group:nth-child(2) { animation-delay: 0.11s !important; }
.gc-agenda__group:nth-child(3) { animation-delay: 0.17s !important; }
.gc-agenda__group:nth-child(4) { animation-delay: 0.23s !important; }
.gc-agenda__group:nth-child(5) { animation-delay: 0.29s !important; }
.gc-agenda__group:nth-child(n+6) { animation-delay: 0.34s !important; }

/* Day-shelf cards — pop in staggered */
@keyframes gc-shelf-card-in {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
.gc-mobile-day-shelf__grid .gc-mobile-day-card {
  animation: gc-shelf-card-in 0.42s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}
.gc-mobile-day-shelf__grid .gc-mobile-day-card:nth-child(3n+1) { animation-delay: 0.06s !important; }
.gc-mobile-day-shelf__grid .gc-mobile-day-card:nth-child(3n+2) { animation-delay: 0.11s !important; }
.gc-mobile-day-shelf__grid .gc-mobile-day-card:nth-child(3n+3) { animation-delay: 0.16s !important; }

/* ---- D. Upcoming strip — scroll-snap + momentum (mobile) ------- */
@media (max-width: 900px) {
  .gc-upcoming__track,
  .gc-upcoming--fit .gc-upcoming__track {
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-padding-left: 0.5rem !important;
  }
  .gc-upcoming-card {
    scroll-snap-align: start !important;
  }
}

/* ---- E. Performance ------------------------------------------- */

/* Offscreen upcoming cards skip paint until near viewport */
.gc-upcoming-card {
  content-visibility: auto;
  contain-intrinsic-size: 0 200px;
}

/* Year mini-months are cheap but many — let offscreen ones skip paint */
@supports (content-visibility: auto) {
  .gc-grid--year .gc-year-month:nth-child(n+5) {
    content-visibility: auto;
    contain-intrinsic-size: 0 220px;
  }
}

/* Reduce paint cost: the fixed bg layers never need to repaint on scroll */
body.category-page--games::before,
body.category-page--games::after {
  will-change: opacity;
  contain: strict;
}

/* Animating grids hint the compositor only while animating */
.gc-grid--month,
.gc-grid--week {
  will-change: auto;
}

/* ---- F. Reduced motion safety --------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .gc-grid--week .gc-week-col,
  .gc-grid--year .gc-year-month,
  .gc-year-grid > *,
  .gc-agenda__group,
  .gc-agenda__day,
  .gc-mobile-day-shelf__grid .gc-mobile-day-card {
    animation: none !important;
  }
  .gc-segmented__indicator {
    transition: none !important;
  }
}

/* =================================================================
   VIEW TRANSITIONS — scoped crossfade for scale / layout switches
   ================================================================= */
@supports (view-transition-name: x) {
  /* Name the changing region so only it animates (toolbar stays put) */
  .gc-body,
  .gc-mobile-stage {
    view-transition-name: gc-board;
  }

  /* Disable the default full-page root crossfade (prevents flicker) */
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
  }

  ::view-transition-old(gc-board) {
    animation: gc-vt-out 0.22s cubic-bezier(0.4, 0, 0.6, 1) both;
  }
  ::view-transition-new(gc-board) {
    animation: gc-vt-in 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  @keyframes gc-vt-out {
    to { opacity: 0; transform: translateY(-10px) scale(0.99); filter: blur(4px); }
  }
  @keyframes gc-vt-in {
    from { opacity: 0; transform: translateY(14px) scale(0.99); filter: blur(5px); }
    to   { opacity: 1; transform: none; filter: blur(0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(gc-board),
  ::view-transition-new(gc-board) {
    animation: none !important;
  }
}

/* =================================================================
   DESKTOP WEEK VIEW FIX — cinematic cells are absolute-filled (month);
   week columns have no fixed height, so restore natural flow here.
   ================================================================= */
@media (min-width: 901px) {
  .gc-grid--week {
    grid-auto-rows: minmax(440px, 1fr) !important;
  }

  .gc-grid--week .gc-week-col {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
  }

  .gc-grid--week .gc-week-col .gc-day {
    position: relative !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .gc-grid--week .gc-week-col .gc-day__content {
    position: relative !important;
    inset: auto !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* Body → vertical stack of poster cards (override month's absolute fill) */
  .gc-grid--week .gc-day__body,
  .gc-grid--week .gc-day__body--duo,
  .gc-grid--week .gc-day__body--busy,
  .gc-grid--week .gc-day__body--spotlight {
    position: relative !important;
    inset: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    padding: 6px !important;
    grid-template-columns: none !important;
    overflow-y: auto !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    scrollbar-width: thin !important;
  }

  /* Each release → a flowing card with fixed height */
  .gc-grid--week .gc-day-spotlight,
  .gc-grid--week .gc-day-trio__card,
  .gc-grid--week .gc-day-lead {
    position: relative !important;
    inset: auto !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    height: 132px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
  }

  /* Cover art fills each card */
  .gc-grid--week .gc-day-spotlight__art,
  .gc-grid--week .gc-day-trio__art,
  .gc-grid--week .gc-day-lead__art {
    position: absolute !important;
    inset: 0 !important;
  }

  /* "+N" more button flows at the bottom of the column */
  .gc-grid--week .gc-day__more {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    width: 100% !important;
    margin-top: 2px !important;
  }

  /* Day number badge stays pinned over the column top */
  .gc-grid--week .gc-week-col .gc-day__num {
    position: absolute !important;
    top: 6px !important;
    left: 8px !important;
    z-index: 6 !important;
  }
}

/* =================================================================
   MOBILE REFINE v2 — fix day-shelf, upcoming clip, nav contrast,
   richer liquid glass, all-round/pill buttons.  (≤900px)
   ================================================================= */
@media (max-width: 900px) {

  /* ---- A. UPCOMING strip — consistent insets, never clip ------- */
  .gc-app--mobile-ui .gc-upcoming-wrap--mobile,
  .gc-app--mobile-ui .gc-upcoming--mobile {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: visible !important;
  }
  .gc-app--mobile-ui .gc-upcoming--mobile .gc-upcoming__head,
  .gc-app--mobile-ui .gc-upcoming__head {
    padding-left: 14px !important;
    padding-right: 14px !important;
    margin-left: 0 !important;
  }
  .gc-app--mobile-ui .gc-upcoming--mobile .gc-upcoming__track,
  .gc-app--mobile-ui .gc-upcoming__track {
    padding-left: 14px !important;
    padding-right: 14px !important;
    scroll-padding-left: 14px !important;
  }

  /* ---- B. Nav-cluster TODAY — prominent + readable everywhere -- */
  .gc-app--mobile-ui .gc-nav-cluster--mobile .gc-today {
    background: linear-gradient(135deg, rgb(100,210,255), rgb(120,140,255)) !important;
    color: #051018 !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    border: 1px solid rgba(255,255,255,0.45) !important;
    box-shadow:
      0 4px 16px rgba(100,210,255,0.4),
      inset 0 1px 0 rgba(255,255,255,0.5) !important;
  }
  .gc-app--mobile-ui .gc-nav-cluster--mobile .gc-nav-btn {
    color: rgba(255,255,255,0.85) !important;
  }

  /* Nav cluster container — clearer glass pill */
  .gc-app--mobile-ui .gc-nav-cluster--mobile {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08) !important;
  }

  /* ---- C. DAY SHELF — clean vertical list (handles 1..N games) - */
  .gc-app--mobile-ui.gc-app--mobile-day .gc-mobile-day-shelf__grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.55rem !important;
    grid-template-columns: none !important;
    padding: 0.5rem 0.85rem calc(1.5rem + var(--mobile-bottom-clear, 32px)) !important;
  }

  .gc-app--mobile-ui.gc-app--mobile-day .gc-mobile-day-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.85rem !important;
    width: 100% !important;
    padding: 0.6rem 0.7rem !important;
    border-radius: 18px !important;
    text-align: left !important;
    /* Flat fill (no backdrop-filter) — matches mobile perf strategy */
    background: linear-gradient(168deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.025) 100%) !important;
    border: 1px solid rgba(255,255,255,0.09) !important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.08),
      0 8px 24px -12px rgba(0,0,0,0.5) !important;
    min-height: 0 !important;
  }

  .gc-app--mobile-ui.gc-app--mobile-day .gc-mobile-day-card__poster {
    width: 60px !important;
    height: 84px !important;
    min-width: 60px !important;
    flex: 0 0 auto !important;
    aspect-ratio: auto !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4) !important;
  }

  /* Platforms → inline chips in the text column (not on the poster) */
  .gc-app--mobile-ui.gc-app--mobile-day .gc-mobile-day-card__platforms {
    position: static !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    margin-top: 4px !important;
  }
  .gc-app--mobile-ui.gc-app--mobile-day .gc-mobile-day-card__platform {
    width: 22px !important;
    height: 22px !important;
  }

  /* Text column grows */
  .gc-app--mobile-ui.gc-app--mobile-day .gc-mobile-day-card__title {
    text-align: left !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    -webkit-line-clamp: 2 !important;
    line-height: 1.2 !important;
  }
  .gc-app--mobile-ui.gc-app--mobile-day .gc-mobile-day-card__studios {
    text-align: left !important;
    align-items: flex-start !important;
  }
  .gc-app--mobile-ui.gc-app--mobile-day .gc-mobile-day-card__dev,
  .gc-app--mobile-ui.gc-app--mobile-day .gc-mobile-day-card__pub {
    font-size: 0.72rem !important;
    white-space: normal !important;
  }

  /* The text block is everything after the poster — wrap it */
  .gc-app--mobile-ui.gc-app--mobile-day .gc-mobile-day-card > .gc-mobile-day-card__title,
  .gc-app--mobile-ui.gc-app--mobile-day .gc-mobile-day-card > .gc-mobile-day-card__studios {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  /* ---- D. Richer liquid glass on the chrome ------------------- */
  .gc-app--mobile-ui .gc-chrome--mobile .gc-toolbar--mobile {
    /* keep transparent; the rows themselves are the glass pills */
  }

  /* All round icon buttons — guarantee perfect circles + glass */
  .gc-app--mobile-ui .gc-icon-btn--round,
  .gc-app--mobile-ui .gc-day-nav-btn,
  .gc-app--mobile-ui .gc-nav-btn {
    border-radius: 999px !important;
    aspect-ratio: 1 / 1 !important;
  }

  /* ---- E. Day-shelf header centring (back · title · settings) -- */
  .gc-app--mobile-ui.gc-app--mobile-day .gc-toolbar__row--day-shelf-head {
    padding: 0 0.25rem !important;
  }

  /* ---- F. Perf: trim always-on conic to the two clearest cues -- */
  /* (TODAY pill + active platform chip already curated in FX file) */
}
