﻿:root {
  --core-top: #d8923a;
  --core-mid: #e7b055;
  --core-bottom: #efc273;
  --text-main: #4b331b;
  --text-soft: #725031;
  --line-soft: rgba(121, 78, 27, 0.28);
  --accent: #7fcf3d;
  --accent-deep: #5aa325;
  --accent-glow: rgba(127, 207, 61, 0.34);
  --accent-rgb: 127, 207, 61;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  min-height: 100vh;
  padding: 16px;
  display: grid;
  place-items: center;
  overflow-x: hidden;
  font-family: 'Rajdhani', sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at top, #ffffff 0%, #d6d6d6 58%, #b7b7b7 100%);
}

button, input, textarea { font: inherit; }

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.25;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.025), rgba(255,255,255,0.025) 1px, transparent 1px, transparent 3px);
  mix-blend-mode: soft-light;
}

.dashboard-shell {
  width: min(1280px, 100%);
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 92px;
}

.blade-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 18px 10px;
  background: linear-gradient(180deg, #f8f8f8, #dadada 55%, #ededed);
  border: 1px solid #bcbcbc;
  box-shadow: inset 0 0 18px rgba(255,255,255,0.78);
}

.blade-rail--left { border-radius: 38px 0 0 38px; }
.blade-rail--right { border-radius: 0 38px 38px 0; }

.blade-rail::before,
.blade-rail::after {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  width: 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(186,186,186,0.84));
}

.blade-rail--left::before,
.blade-rail--left::after { right: 10px; }
.blade-rail--left::after { right: 28px; }
.blade-rail--right::before,
.blade-rail--right::after { left: 10px; }
.blade-rail--right::after { left: 28px; }

.blade-button {
  position: relative;
  z-index: 1;
  border: none;
  background: transparent;
  color: #727272;
  cursor: pointer;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  text-transform: lowercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  min-height: 96px;
  padding: 10px 0;
}

.blade-button:hover,
.blade-button:focus-visible {
  color: color-mix(in srgb, var(--text-main) 78%, #ffffff 22%);
  outline: none;
}

.blade-button.active {
  color: var(--text-main);
  font-weight: 700;
}

.blade-button.active::after {
  content: '';
  position: absolute;
  inset: -6px -4px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  background: rgba(255,255,255,0.18);
  box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.18);
  z-index: -1;
}

.mobile-blades {
  display: none;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 14px;
}

.mobile-blade {
  writing-mode: initial;
  transform: none;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(141,100,47,0.2);
  background: rgba(255,248,235,0.45);
  font-size: 0.95rem;
}

.dashboard-core {
  position: relative;
  padding: 18px 24px 20px;
  background: radial-gradient(circle at top center, rgba(255,255,255,0.34), transparent 20%), linear-gradient(180deg, var(--core-top) 0%, var(--core-mid) 36%, var(--core-bottom) 100%);
  border-top: 1px solid rgba(255,255,255,0.64);
  border-bottom: 1px solid rgba(153,102,40,0.42);
  box-shadow: inset 0 0 36px rgba(255,244,212,0.46), inset 0 -12px 28px rgba(146,84,18,0.12);
  transition: background 320ms ease, box-shadow 320ms ease;
}

.dashboard-core::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 62%, rgba(0,0,0,0.08) 100%);
  pointer-events: none;
}

.dashboard-core::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.18) 25%, rgba(255,255,255,0.04) 50%, transparent 72%);
}

.dashboard-core.is-switching::after {
  animation: blade-sheen 460ms ease;
}

.dashboard-core[data-blade="xbox-live"] {
  --core-top: #d8923a;
  --core-mid: #e7b055;
  --core-bottom: #efc273;
  --text-main: #4b331b;
  --text-soft: #725031;
  --line-soft: rgba(121, 78, 27, 0.28);
  --accent: #7fcf3d;
  --accent-deep: #5aa325;
  --accent-glow: rgba(127, 207, 61, 0.34);
  --accent-rgb: 127, 207, 61;
}

.dashboard-core[data-blade="games"] {
  --core-top: #7343ab;
  --core-mid: #9660cc;
  --core-bottom: #c08bf0;
  --text-main: #2f1845;
  --text-soft: #5f3c82;
  --line-soft: rgba(71, 37, 108, 0.28);
  --accent: #c7a0ff;
  --accent-deep: #8957cc;
  --accent-glow: rgba(199, 160, 255, 0.34);
  --accent-rgb: 199, 160, 255;
}

.dashboard-core[data-blade="media"] {
  --core-top: #c76d9e;
  --core-mid: #dd8ab4;
  --core-bottom: #f0b4d0;
  --text-main: #55263a;
  --text-soft: #7d465e;
  --line-soft: rgba(108, 54, 77, 0.28);
  --accent: #ffb0d2;
  --accent-deep: #cf5f9a;
  --accent-glow: rgba(255, 176, 210, 0.34);
  --accent-rgb: 255, 176, 210;
}

.dashboard-core[data-blade="system"] {
  --core-top: #6f9c47;
  --core-mid: #8bb858;
  --core-bottom: #b7d984;
  --text-main: #233c17;
  --text-soft: #4b6e33;
  --line-soft: rgba(53, 86, 29, 0.28);
  --accent: #b9f06d;
  --accent-deep: #5a902b;
  --accent-glow: rgba(185, 240, 109, 0.34);
  --accent-rgb: 185, 240, 109;
}

.dashboard-core[data-blade="community"] {
  --core-top: #4d86ba;
  --core-mid: #68a2d3;
  --core-bottom: #9cc3eb;
  --text-main: #19344f;
  --text-soft: #3b628d;
  --line-soft: rgba(36, 72, 111, 0.28);
  --accent: #9fd6ff;
  --accent-deep: #3e78b3;
  --accent-glow: rgba(159, 214, 255, 0.34);
  --accent-rgb: 159, 214, 255;
}

.dashboard-core[data-blade="archive"] {
  --core-top: #4e9ea7;
  --core-mid: #6ec0c8;
  --core-bottom: #9ce2e7;
  --text-main: #173f44;
  --text-soft: #3c7077;
  --line-soft: rgba(30, 82, 89, 0.28);
  --accent: #9ef6f7;
  --accent-deep: #2b7d84;
  --accent-glow: rgba(158, 246, 247, 0.34);
  --accent-rgb: 158, 246, 247;
}

.topbar,
.topbar-left,
.topbar-right,
.hero-panel,
.hero-panel__right,
.game-info-panel,
.game-info-actions,
.footer-bar {
  display: flex;
  align-items: center;
}

.topbar,
.hero-panel {
  justify-content: space-between;
}

.topbar {
  gap: 14px;
  color: rgba(255,248,230,0.96);
  margin-bottom: 10px;
}

.topbar-left,
.topbar-right {
  gap: 14px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.header-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #6a4a1f;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(232,222,198,0.8));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.header-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.back-btn,
.action-btn,
.blade-placeholder-btn {
  border: 1px solid rgba(172,129,69,0.65);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,245,226,0.96), rgba(223,170,81,0.58));
  color: var(--text-main);
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.back-btn:hover,
.action-btn:hover,
.blade-placeholder-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.2);
}

.back-btn {
  padding: 8px 14px;
  font-weight: 600;
}

.gamerscore,
.user-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}

.gamerscore-icon { color: #f5d13d; font-weight: 700; }
.user-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.user-name { font-weight: 700; }
.user-status { font-size: 0.85rem; color: #f7f4de; }

.hero-panel {
  gap: 22px;
  padding: 8px 0 18px;
  border-bottom: 1px solid rgba(142,95,34,0.24);
}

.hero-panel__left {
  width: min(410px, 100%);
  display: grid;
  gap: 10px;
}

.hero-card,
.dashboard-box,
.progress-shell,
.blade-placeholder {
  border-radius: 14px;
}

.hero-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(255,249,239,0.96), rgba(239,225,195,0.8));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

.hero-card--dark {
  background: linear-gradient(180deg, rgba(109,111,121,0.96), rgba(84,84,91,0.94));
  color: #f5efe8;
}

.hero-card--dark p,
.hero-card--dark strong { color: #f5efe8; }

.hero-card--stacked p + p {
  margin-top: 4px;
}

.hero-card__avatar,
.featured-ring,
.nav-arrow {
  display: grid;
  place-items: center;
}

.hero-card__avatar {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(var(--accent-rgb), 0.62);
}

.featured-ring {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 4px solid rgba(var(--accent-rgb), 0.78);
  border-right-color: rgba(var(--accent-rgb), 0.18);
  box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.45);
}

.hero-panel__right {
  flex: 1;
  gap: 26px;
}

.hero-panel__right--logo-only {
  justify-content: center;
}

.logo-block {
  min-width: 170px;
  display: grid;
  place-items: center;
}

.logo-mark {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 210px;
  min-height: 150px;
}

.logo-mark__x {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -52%);
  font-size: clamp(5rem, 12vw, 8.5rem);
  line-height: 1;
  font-weight: 700;
  color: rgba(var(--accent-rgb), 0.16);
  -webkit-text-stroke: 1px rgba(var(--accent-rgb), 0.22);
  pointer-events: none;
}

.logo-wordmark {
  position: relative;
  z-index: 1;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 0.9;
  font-weight: 700;
  color: transparent;
  text-align: center;
  letter-spacing: 0.06em;
  -webkit-text-stroke: 1px rgba(var(--accent-rgb), 0.3);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 78%, #ffffff 22%), color-mix(in srgb, var(--core-mid) 76%, #d0a049 24%) 65%, color-mix(in srgb, var(--accent) 70%, var(--core-bottom) 30%));
  background-clip: text;
  -webkit-background-clip: text;
}

.blade-stage {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  padding-top: 16px;
}

.blade-panel {
  position: absolute;
  inset: 16px 0 0;
  display: block;
  opacity: 0;
  pointer-events: none;
  transform: translateX(0);
}

.blade-panel.active,
.blade-panel.is-entering,
.blade-panel.is-leaving {
  display: block;
}

.blade-panel.active {
  position: relative;
  inset: auto;
  opacity: 1;
  pointer-events: auto;
}

.blade-panel.is-entering,
.blade-panel.is-leaving {
  position: absolute;
  inset: 16px 0 0;
}

.blade-panel.is-entering {
  opacity: 0;
}

.blade-panel.is-entering.from-right { transform: translateX(14%); }
.blade-panel.is-entering.from-left { transform: translateX(-14%); }
.blade-panel.is-leaving.to-right { transform: translateX(0); opacity: 1; }
.blade-panel.is-leaving.to-left { transform: translateX(0); opacity: 1; }

.blade-panel.is-entering.is-animating,
.blade-panel.is-leaving.is-animating {
  transition: transform 420ms cubic-bezier(0.2, 0.78, 0.15, 1), opacity 420ms ease;
}

.blade-panel.is-entering.is-animating {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.blade-panel.is-leaving.to-left.is-animating {
  transform: translateX(-14%);
  opacity: 0;
}

.blade-panel.is-leaving.to-right.is-animating {
  transform: translateX(14%);
  opacity: 0;
}

.blade-progress-frame {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(172,129,69,0.34);
  background: linear-gradient(180deg, rgba(255,246,224,0.42), rgba(207,152,60,0.2));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}

.blade-progress-copy {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(91,58,24,0.9);
}

.progress-shell {
  width: 100%;
  height: 18px;
  border: 1px solid rgba(178,129,57,0.48);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,237,194,0.74), rgba(220,177,97,0.35));
}

.progress-fill {
  width: 0;
  min-width: 8%;
  height: 100%;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 88%, #ffffff 12%) 0%, var(--accent-deep) 100%);
  box-shadow: inset 0 0 8px rgba(255,255,255,0.35), 0 0 14px rgba(var(--accent-rgb), 0.18);
  transition: width 240ms ease, background 240ms ease, box-shadow 240ms ease;
}

.games-layout { display: grid; grid-template-columns: 1fr; gap: 16px; }

.dashboard-box {
  padding: 14px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(255,244,221,0.8), rgba(230,186,105,0.42));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
}

.inner-box { margin-top: 14px; }

.dashboard-box--games {
  width: calc(100% - 18px);
  margin-right: 18px;
  border-radius: 20px;
  overflow: hidden;
}

.dashboard-box--games .inner-box {
  border-radius: 18px;
  overflow: hidden;
}

.box-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(141,100,47,0.18);
}

.section-title { font-size: 1.2rem; color: #fff6e2; text-shadow: 0 1px 0 rgba(113,67,15,0.34); }
.section-caption { font-size: 0.92rem; color: color-mix(in srgb, var(--text-soft) 88%, #ffffff 12%); }

.carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 56px;
  min-height: 360px;
}

.carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  perspective: 1100px;
}

.game-case {
  position: relative;
  width: 176px;
  height: 236px;
  cursor: pointer;
  transition: transform 0.35s ease, opacity 0.35s ease;
  transform-style: preserve-3d;
  opacity: 0.75;
}

.game-case.active {
  transform: scale(1.12);
  opacity: 1;
  z-index: 3;
}

.game-case:hover {
  transform: scale(1.05);
  opacity: 1;
}

.case-3d {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateY(-15deg);
  transition: transform 0.35s ease;
}

.game-case:hover .case-3d,
.game-case.active .case-3d {
  transform: rotateY(-6deg);
}

.case-front,
.case-front img {
  width: 100%;
  height: 100%;
}

.case-front {
  position: absolute;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: -6px 6px 20px rgba(0,0,0,0.35);
  background: #eee;
}

.case-front img { object-fit: cover; }

.case-spine {
  position: absolute;
  top: 0;
  right: -20px;
  width: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 0 5px 5px 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-deep) 88%, #ffffff 12%) 0%, color-mix(in srgb, var(--accent-deep) 82%, #111111 18%) 50%, color-mix(in srgb, var(--accent-deep) 88%, #ffffff 12%) 100%);
  transform: rotateY(90deg);
  transform-origin: left center;
}

.spine-logo {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--accent-deep);
  font-size: 0.5rem;
  font-weight: 700;
}

.spine-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.48rem;
  letter-spacing: 0.1em;
  color: #fff;
  text-transform: uppercase;
  font-weight: 700;
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent-deep) 0%, color-mix(in srgb, var(--accent-deep) 80%, #111111 20%) 100%);
  color: #fff;
  cursor: pointer;
}

.nav-arrow:hover { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 72%, #ffffff 28%) 0%, var(--accent-deep) 100%); }
.nav-arrow.prev { left: 10px; }
.nav-arrow.next { right: 10px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border: none;
  background: rgba(107,77,40,0.32);
  cursor: pointer;
  border-radius: 50%;
}

.dot.active {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.game-info-panel {
  gap: 18px;
  align-items: flex-start;
}

.game-info-cover {
  width: 150px;
  height: 200px;
  overflow: hidden;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  background: rgba(0,0,0,0.08);
}

.game-info-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: rgba(0,0,0,0.1);
}

.game-info-title { font-size: 1.55rem; color: var(--accent-deep); margin-bottom: 6px; }
.game-info-meta { margin-bottom: 12px; font-size: 1rem; color: var(--text-soft); }
.game-info-description { line-height: 1.3; margin-bottom: 14px; font-size: 1.05rem; color: var(--text-soft); }
.game-info-actions { gap: 10px; flex-wrap: wrap; }
.action-btn { padding: 10px 16px; font-weight: 700; }
.action-btn.secondary { background: transparent; color: var(--accent-deep); border-color: rgba(var(--accent-rgb), 0.55); }

.blade-placeholder {
  padding: 24px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(255,247,231,0.82), rgba(233,190,110,0.38));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
}

.placeholder-title { font-size: clamp(1.8rem, 4vw, 2.7rem); margin-bottom: 10px; color: rgba(91,58,24,0.96); }
.placeholder-copy { max-width: 620px; line-height: 1.25; font-size: 1.08rem; margin-bottom: 16px; color: var(--text-soft); }
.placeholder-list { display: grid; gap: 10px; margin-bottom: 16px; color: var(--text-soft); font-size: 1rem; }
.placeholder-list div { padding: 10px 12px; border-radius: 12px; background: rgba(255,250,240,0.62); border: 1px solid rgba(141,100,47,0.16); }
.blade-placeholder-btn { padding: 10px 16px; font-weight: 700; }

.footer-bar {
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 8px;
  color: rgba(255,243,217,0.98);
  font-size: 0.98rem;
}

.keycap {
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(172,129,69,0.65);
  background: linear-gradient(180deg, rgba(255,245,226,0.96), rgba(223,170,81,0.58));
  color: #60461d;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}

.footer-text {
  margin-right: 10px;
  color: rgba(255,243,217,0.98);
}

@keyframes blade-sheen {
  0% { opacity: 0; transform: translateX(-36%); }
  12% { opacity: 1; }
  100% { opacity: 0; transform: translateX(36%); }
}

@media (max-width: 1120px) {
  .dashboard-shell { grid-template-columns: 1fr; }
  .blade-rail { display: none; }
  .mobile-blades { display: flex; }
}

@media (max-width: 760px) {
  body { padding: 8px; }
  .dashboard-core { padding: 14px; }
  .topbar, .topbar-left, .topbar-right, .hero-panel, .hero-panel__right, .game-info-panel { flex-direction: column; align-items: flex-start; }
  .hero-panel__left, .topbar-right { width: 100%; }
  .logo-block { min-width: 0; justify-items: start; }
  .blade-stage { min-height: 680px; }
  .carousel-container { min-height: 290px; padding: 12px 42px; }
  .game-case { width: 118px; height: 160px; }
  .nav-arrow { width: 36px; height: 36px; }
  .game-info-cover { width: 120px; height: 160px; }
}






#panel-games.active,
#panel-games.is-entering,
#panel-games.is-leaving {
  height: min(810px, calc(100vh - 220px));
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--accent-rgb), 0.72) rgba(255,255,255,0.18);
}

#panel-games.active::-webkit-scrollbar,
#panel-games.is-entering::-webkit-scrollbar,
#panel-games.is-leaving::-webkit-scrollbar {
  width: 10px;
}

#panel-games.active::-webkit-scrollbar-track,
#panel-games.is-entering::-webkit-scrollbar-track,
#panel-games.is-leaving::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
}

#panel-games.active::-webkit-scrollbar-thumb,
#panel-games.is-entering::-webkit-scrollbar-thumb,
#panel-games.is-leaving::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 84%, #ffffff 16%), var(--accent-deep));
}

.games-layout {
  gap: 22px;
  padding-bottom: 24px;
}

.dashboard-box--goodies {
  width: calc(100% - 18px);
  margin-right: 18px;
  border-radius: 20px;
  overflow: hidden;
}

.carousel-container--goodies {
  min-height: 240px;
  padding: 14px 52px;
}

.carousel--goodies {
  gap: 10px;
  perspective: 900px;
}

.goodie-case {
  position: relative;
  width: 110px;
  height: 148px;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-style: preserve-3d;
  opacity: 0.72;
}

.goodie-case.active {
  transform: scale(1.08);
  opacity: 1;
  z-index: 3;
}

.goodie-case:hover {
  transform: scale(1.03);
  opacity: 1;
}

.goodie-case .case-3d {
  transform: rotateY(-15deg);
}

.goodie-case:hover .case-3d,
.goodie-case.active .case-3d {
  transform: rotateY(-7deg);
}

.goodie-case .case-front {
  box-shadow: -5px 5px 16px rgba(0,0,0,0.3);
}

.goodie-case .case-spine {
  right: -14px;
  width: 14px;
  background: linear-gradient(180deg, #f4a2ae 0%, #d66d7d 50%, #f0a7b0 100%);
}

.goodie-case .spine-logo {
  width: 10px;
  height: 10px;
  font-size: 0.4rem;
  color: #b74d5d;
}

.goodie-case .spine-text {
  font-size: 0.34rem;
  letter-spacing: 0.08em;
}

.goodies-arrow,
.nav-arrow {
  z-index: 6;
}

.carousel-dots--goodies {
  margin-top: 6px;
}

.game-info-panel--goodies {
  gap: 14px;
}

.inner-box--goodies {
  margin-top: 12px;
}

.game-info-panel--goodies .game-info-cover {
  width: 106px;
  height: 142px;
}

.game-info-panel--goodies .game-info-title {
  font-size: 1.2rem;
}

.game-info-panel--goodies .game-info-meta {
  font-size: 0.92rem;
}

.game-info-panel--goodies .game-info-description {
  font-size: 0.98rem;
  margin-bottom: 10px;
}

@media (max-width: 760px) {
  #panel-games.active,
  #panel-games.is-entering,
  #panel-games.is-leaving {
    height: min(760px, calc(100vh - 180px));
  }

  .carousel-container--goodies {
    min-height: 180px;
    padding: 10px 38px;
  }

  .goodie-case {
    width: 76px;
    height: 104px;
  }

  .goodie-case .case-spine {
    right: -10px;
    width: 10px;
  }

  .game-info-panel--goodies .game-info-cover {
    width: 82px;
    height: 110px;
  }
}

.case-viewer {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 30;
}

.case-viewer.is-open {
  display: flex;
}

.case-viewer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 12, 42, 0.56);
  backdrop-filter: blur(2px);
}

.case-viewer__dialog {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 80px));
  max-height: calc(100% - 80px);
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.22);
  background: linear-gradient(180deg, rgba(255,244,221,0.92), rgba(214,176,109,0.82));
  box-shadow: 0 18px 50px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.46);
}

.case-viewer[data-tone="favorite"] .case-viewer__dialog {
  box-shadow: 0 18px 50px rgba(47, 22, 70, 0.34), inset 0 1px 0 rgba(255,255,255,0.46);
}

.case-viewer[data-tone="goodie"] .case-viewer__dialog {
  box-shadow: 0 18px 50px rgba(93, 28, 40, 0.34), inset 0 1px 0 rgba(255,255,255,0.46);
}

.case-viewer__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(172,129,69,0.65);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,245,226,0.96), rgba(223,170,81,0.58));
  color: var(--text-main);
  font-weight: 700;
  cursor: pointer;
}

.case-viewer__frame {
  display: grid;
  place-items: center;
  min-height: 420px;
  max-height: calc(100vh - 180px);
  overflow: hidden;
}

.case-viewer__image {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 220px);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.28);
  object-fit: contain;
}

@media (max-width: 760px) {
  .case-viewer__dialog {
    width: min(94%, calc(100% - 24px));
    max-height: calc(100% - 24px);
    padding: 14px;
  }

  .case-viewer__frame {
    min-height: 300px;
  }
}

.game-info-panel--goodies .game-info-cover img {
  object-fit: contain;
  object-position: center;
}



.carousel-dots--goodies {
  display: none !important;
}

.carousel-container--goodies {
  min-height: 210px !important;
  padding: 10px 44px !important;
}

.carousel--goodies {
  gap: 6px !important;
}

.goodie-case {
  width: 88px !important;
  height: 118px !important;
  opacity: 0.62 !important;
}

.game-info-panel--goodies {
  gap: 10px !important;
  align-items: center !important;
}

.inner-box--goodies {
  margin-top: 8px !important;
  padding: 10px 12px !important;
}

.game-info-panel--goodies .game-info-cover {
  width: 72px !important;
  height: 96px !important;
}

.game-info-panel--goodies .game-info-cover img {
  object-fit: contain !important;
  object-position: center !important;
}

.game-info-panel--goodies .game-info-title {
  font-size: 1.02rem !important;
  color: #c85f71 !important;
}

.game-info-panel--goodies .game-info-meta {
  margin-bottom: 6px !important;
  font-size: 0.82rem !important;
  color: #d88593 !important;
}

.game-info-panel--goodies .game-info-description {
  font-size: 0.88rem !important;
  line-height: 1.2 !important;
  margin-bottom: 8px !important;
  color: #a1636f !important;
}

@media (max-width: 760px) {
  .goodie-case {
    width: 70px !important;
    height: 96px !important;
  }

  .game-info-panel--goodies .game-info-cover {
    width: 62px !important;
    height: 84px !important;
  }
}

.goodie-case {
  opacity: 0.82 !important;
}

.goodie-case.active {
  opacity: 1 !important;
}

.goodie-case .case-front {
  background: #ffffff !important;
  box-shadow: -4px 5px 14px rgba(0,0,0,0.26) !important;
}

.goodie-case .case-front img {
  image-rendering: auto;
  filter: saturate(1.16) contrast(1.12) brightness(1.02) !important;
}

.goodie-case:not(.active) .case-front img {
  filter: saturate(1.05) contrast(1.06) brightness(1.01) !important;
}

.goodie-case .case-3d {
  transform: rotateY(-12deg) !important;
}

.goodie-case:hover .case-3d,
.goodie-case.active .case-3d {
  transform: rotateY(-5deg) !important;
}

.carousel-dots--goodies {
  display: none !important;
}

.carousel-container--goodies {
  min-height: 210px !important;
  padding: 10px 44px !important;
}

.carousel--goodies {
  gap: 6px !important;
}

.goodie-case {
  width: 88px !important;
  height: 118px !important;
  opacity: 0.82 !important;
}

.goodie-case.active {
  opacity: 1 !important;
}

.goodie-case .case-3d {
  transform: rotateY(-12deg) !important;
}

.goodie-case:hover .case-3d,
.goodie-case.active .case-3d {
  transform: rotateY(-5deg) !important;
}

.goodie-case .case-front {
  background: #ffffff !important;
  box-shadow: -4px 5px 14px rgba(0,0,0,0.26) !important;
}

.goodie-case .case-front img {
  image-rendering: auto;
  filter: saturate(1.16) contrast(1.12) brightness(1.02) !important;
}

.goodie-case .case-spine {
  right: -14px !important;
  width: 14px !important;
  background: linear-gradient(180deg, #f4a2ae 0%, #d66d7d 50%, #f0a7b0 100%) !important;
}

.goodie-case .spine-logo {
  width: 10px !important;
  height: 10px !important;
  font-size: 0.4rem !important;
  color: #b74d5d !important;
}

.goodie-case .spine-text {
  font-size: 0.34rem !important;
  letter-spacing: 0.08em !important;
}

.game-info-panel--goodies {
  gap: 10px !important;
  align-items: center !important;
}

.inner-box--goodies {
  margin-top: 8px !important;
  padding: 10px 12px !important;
}

.game-info-panel--goodies .game-info-cover {
  width: 72px !important;
  height: 96px !important;
}

.game-info-panel--goodies .game-info-cover img {
  object-fit: contain !important;
  object-position: center !important;
}

.game-info-panel--goodies .game-info-title {
  font-size: 1.02rem !important;
  color: #c85f71 !important;
}

.game-info-panel--goodies .game-info-meta {
  margin-bottom: 6px !important;
  font-size: 0.82rem !important;
  color: #d88593 !important;
}

.game-info-panel--goodies .game-info-description {
  font-size: 0.88rem !important;
  line-height: 1.2 !important;
  margin-bottom: 8px !important;
  color: #a1636f !important;
}

.goodies-arrow:disabled {
  opacity: 0.38;
  cursor: default;
  filter: saturate(0.7);
  box-shadow: none;
}

.goodies-arrow:disabled:hover {
  background: linear-gradient(180deg, var(--accent-deep) 0%, color-mix(in srgb, var(--accent-deep) 80%, #111111 20%) 100%);
}


/* Final tuning: games blade height + goodies distinct panel */
#panel-games.active,
#panel-games.is-entering,
#panel-games.is-leaving {
  height: min(720px, calc(100vh - 250px)) !important;
}

.dashboard-box--goodies {
  border-color: rgba(185, 98, 116, 0.42) !important;
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 229, 235, 0.82), rgba(225, 155, 168, 0.44)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.58),
    inset 0 -22px 30px rgba(169, 79, 98, 0.14),
    0 10px 20px rgba(122, 52, 66, 0.08) !important;
}

.dashboard-box--goodies .box-header {
  border-bottom-color: rgba(183, 101, 116, 0.24) !important;
}

.dashboard-box--goodies .section-title {
  color: #fff0dc !important;
  text-shadow: 0 1px 0 rgba(120, 54, 67, 0.32) !important;
}

.dashboard-box--goodies .section-caption {
  color: #8f6170 !important;
}

.carousel-container--goodies {
  min-height: 224px !important;
  padding: 12px 44px !important;
}

.goodie-case {
  width: 94px !important;
  height: 126px !important;
}

.inner-box--goodies {
  border-color: rgba(191, 113, 127, 0.38) !important;
  background: linear-gradient(180deg, rgba(255,242,233,0.92), rgba(236,189,176,0.78)) !important;
}

@media (max-width: 760px) {
  #panel-games.active,
  #panel-games.is-entering,
  #panel-games.is-leaving {
    height: min(680px, calc(100vh - 190px)) !important;
  }

  .goodie-case {
    width: 74px !important;
    height: 100px !important;
  }
}

/* Podio dos favoritos */
.game-case.podium-gold .case-front {
  border: 3px solid #d9b44a;
  box-shadow: -6px 6px 22px rgba(122, 89, 22, 0.34), 0 0 18px rgba(217, 180, 74, 0.26);
}

.game-case.podium-silver .case-front {
  border: 3px solid #c7ccd6;
  box-shadow: -6px 6px 22px rgba(100, 106, 117, 0.32), 0 0 18px rgba(199, 204, 214, 0.24);
}

.game-case.podium-bronze .case-front {
  border: 3px solid #b97a47;
  box-shadow: -6px 6px 22px rgba(102, 59, 29, 0.32), 0 0 18px rgba(185, 122, 71, 0.24);
}

.dot-medal {
  width: 26px !important;
  height: 26px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 700;
  color: #4c3317;
  border: 1px solid rgba(255,255,255,0.48);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 4px 10px rgba(0,0,0,0.12);
}

.dot-medal.podium-gold {
  background: linear-gradient(180deg, #f8de7a, #d6a62f);
}

.dot-medal.podium-silver {
  background: linear-gradient(180deg, #f1f4fa, #b9c0cb);
}

.dot-medal.podium-bronze {
  background: linear-gradient(180deg, #ddb088, #ad6d3c);
}

.dot-medal.active {
  transform: scale(1.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 0 14px rgba(255,255,255,0.18), 0 4px 10px rgba(0,0,0,0.16);
}

.goodies-counter {
  margin-left: auto;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(184, 96, 111, 0.32);
  background: linear-gradient(180deg, rgba(255, 239, 241, 0.76), rgba(232, 177, 186, 0.32));
  color: #cb6174;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.dot-medal {
  position: relative;
  top: -3px;
}

.game-case.podium-gold .case-front {
  border: 3px solid #d9b44a !important;
  outline: 2px solid rgba(255, 226, 129, 0.72);
  outline-offset: -2px;
  box-shadow: -6px 6px 22px rgba(122, 89, 22, 0.34), 0 0 18px rgba(217, 180, 74, 0.26) !important;
}

.game-case.podium-silver .case-front {
  border: 3px solid #c7ccd6 !important;
  outline: 2px solid rgba(246, 248, 252, 0.74);
  outline-offset: -2px;
  box-shadow: -6px 6px 22px rgba(100, 106, 117, 0.32), 0 0 18px rgba(199, 204, 214, 0.24) !important;
}

.game-case.podium-bronze .case-front {
  border: 3px solid #b97a47 !important;
  outline: 2px solid rgba(230, 176, 132, 0.68);
  outline-offset: -2px;
  box-shadow: -6px 6px 22px rgba(102, 59, 29, 0.32), 0 0 18px rgba(185, 122, 71, 0.24) !important;
}

.game-case.podium-gold .case-front {
  border: none !important;
  box-shadow: inset 0 0 0 4px #d9b44a, inset 0 0 0 6px rgba(255, 230, 148, 0.56), -6px 6px 22px rgba(122, 89, 22, 0.34), 0 0 18px rgba(217, 180, 74, 0.26) !important;
}

.game-case.podium-silver .case-front {
  border: none !important;
  box-shadow: inset 0 0 0 4px #c7ccd6, inset 0 0 0 6px rgba(248, 250, 255, 0.56), -6px 6px 22px rgba(100, 106, 117, 0.32), 0 0 18px rgba(199, 204, 214, 0.24) !important;
}

.game-case.podium-bronze .case-front {
  border: none !important;
  box-shadow: inset 0 0 0 4px #b97a47, inset 0 0 0 6px rgba(233, 182, 141, 0.48), -6px 6px 22px rgba(102, 59, 29, 0.32), 0 0 18px rgba(185, 122, 71, 0.24) !important;
}
