.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  color: #020614;
  font-weight: 900;
}
.brand__text strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1;
}
.brand__text small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: .6rem;
}
.search-inline,
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(8,19,42,.34);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 14px;
}
.topbar .search-inline {
  height: 34px;
  min-height: 34px;
  padding: 4px 10px;
}
.topbar .ghost-btn,
.topbar .primary-btn {
  height: 34px;
  min-height: 34px;
  padding: 4px 12px;
  font-size: .9rem;
}
.topbar .status-pill {
  min-height: 32px;
  padding: 6px 10px;
  font-size: .72rem;
}
#menuToggle { width:34px; height:34px; border-radius:11px; }
.search-inline input,
.search-box input {
  background: transparent;
  border: 0;
  outline: none;
  color: var(--text);
  min-width: 0;
  width: 100%;
}
.search-inline input::placeholder,
.search-box input::placeholder {
  color: var(--muted);
}
kbd {
  background: rgba(255,101,0,.18);
  padding: 4px 8px;
  border-radius: 8px;
  font-size: .72rem;
  color: var(--muted);
}
.icon-btn,
.ghost-btn,
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  transition: var(--transition);
}
.icon-btn {
  width: 42px;
  height: 42px;
  background: rgba(8,19,42,.34);
  border: 1px solid var(--border);
  color: var(--text);
}
.ghost-btn {
  padding: 11px 16px;
  color: var(--text);
  background: rgba(8,19,42,.34);
  border: 1px solid var(--border);
}
.primary-btn {
  padding: 11px 16px;
  color: #020614;
  background: linear-gradient(135deg, var(--brand), var(--gold));
}
.small { padding: 9px 12px; font-size: .9rem; }
.icon-btn:hover,
.ghost-btn:hover,
.primary-btn:hover,
.sidebar__link:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}
.status-pill,
.badge {
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: .8rem;
}
.status-pill {
  color: #020614;
  background: linear-gradient(135deg, var(--gold), #ffda82);
  font-weight: 700;
}
.badge {
  background: rgba(255,101,0,.18);
  border: 1px solid rgba(255,101,0,.48);
  color: var(--brand);
}
.muted-badge {
  background: rgba(8,19,42,.3);
  border-color: var(--border);
  color: var(--muted);
}
.sidebar__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(148,163,184,.14);
  border: 0;
  color: #c7cdd6;
  font-size: .9rem;
  font-weight: 700;
  transition: var(--transition);
}
.sidebar-game-link {
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  min-height:46px;
  padding:6px 10px;
  border:0;
  border-radius:12px;
  background:rgba(148,163,184,.14);
  color:#c7cdd6;
  font-size:.9rem;
  font-weight:700;
  transition:var(--transition);
}
.sidebar__link:hover,
.sidebar__link:focus-visible,
.sidebar-game-link:hover,
.sidebar-game-link:focus-visible {
  color:var(--text);
  background:rgba(255,101,0,.2);
  transform:translateY(-1px);
  filter:brightness(1.05);
}
.sidebar-game-link__thumb {
  flex:0 0 34px;
  width:34px;
  height:34px;
  border-radius:9px;
  background-size:cover;
  background-position:center top;
  box-shadow:inset 0 0 0 1px var(--border);
}
.sidebar-game-link span:last-child { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sidebar__promo {
  margin-top: 24px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,101,0,.22), rgba(255,138,31,.14));
  border: 1px solid var(--border);
}
.sidebar__promo-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255,101,0,.18);
  margin-bottom: 10px;
}
.info-card,
.auth-card,
.card,
.category-strip {
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.hero-panel,.section-panel,.discover-bar { border:0; box-shadow:var(--shadow); }
.hero-panel {
  position: relative;
  background: linear-gradient(180deg, rgba(5,13,32,.96), rgba(3,9,27,.98));
  border-radius: var(--radius-xl);
  padding: 16px;
}
.hero-stage {
  position: relative;
  min-height: 523px;
  border-radius: 24px;
  overflow: hidden;
  background: #040b1e;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}
.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.hero-slide__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
}
.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(1,5,18,.94) 0%, rgba(2,7,25,.66) 45%, rgba(2,7,25,.16) 100%);
}
.hero-slide__content {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: end;
  gap: 12px;
  height: 100%;
  padding: 28px 28px 84px;
  max-width: min(52ch, 55%);
}
.hero-slide__content p { color:var(--text); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-toolbar {
  position: absolute;
  z-index: 4;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: calc(100% - 32px);
  margin: 0 auto;
  padding: 6px 8px;
  border-radius: 14px;
  background: rgba(2,8,26,.56);
  backdrop-filter: blur(6px);
}
.hero-dots { display: flex; gap: 8px; }
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,176,0,.52);
}
.hero-dot.is-active { background: var(--brand); width: 28px; }
.discover-bar {
  background: rgba(5,13,32,.88);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.discover-bar > .search-box { flex:1 1 auto; }
.discover-meta {
  flex:0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}
.site-footer {
  margin-top:24px;
  padding:28px;
  border:1px solid var(--border);
  border-radius:var(--radius-xl);
  background:linear-gradient(145deg,rgba(5,13,32,.98),rgba(2,8,24,.99));
  box-shadow:var(--shadow);
}
.site-footer__main {
  display:grid;
  grid-template-columns:minmax(240px,1.5fr) repeat(2,minmax(130px,.75fr)) minmax(220px,1fr);
  gap:clamp(24px,4vw,64px);
}
.site-footer__brand p,.site-footer__about p {
  max-width:42ch;
  margin:18px 0;
  color:var(--muted);
  line-height:1.6;
}
.site-footer__status {
  display:inline-flex;
  padding:7px 10px;
  border:1px solid var(--border);
  border-radius:999px;
  color:var(--brand);
  background:rgba(255,101,0,.16);
  font-size:.75rem;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.site-footer__column { display:flex; flex-direction:column; align-items:flex-start; gap:10px; }
.site-footer__column h2 {
  margin:0 0 4px;
  color:var(--text);
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.12em;
}
.site-footer__column a,.site-footer__list { color:var(--muted); font-size:.9rem; }
.site-footer__column a { transition:var(--transition); }
.site-footer__column a:hover,.site-footer__column a:focus-visible { color:var(--text); transform:translateX(2px); }
.site-footer__list { display:grid; gap:8px; margin:0; padding:0; list-style:none; }
.site-footer__list li::before { content:"•"; margin-right:8px; color:var(--brand); }
.site-footer__about .ghost-btn { margin-top:auto; }
.site-footer__bottom {
  display:flex;
  justify-content:space-between;
  gap:18px;
  margin-top:26px;
  padding-top:18px;
  border-top:1px solid rgba(255,101,0,.32);
  color:var(--muted);
}
.category-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  background: rgba(5,13,32,.88);
  border-radius: 16px;
  padding: 7px;
}
.category-strip__label {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 11px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  color: #020614;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.category-strip__track {
  display: flex;
  flex: 1 1 auto;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scrollbar-width: none;
  touch-action: pan-x;
}
.category-strip__track::-webkit-scrollbar { display:none; }
.category-strip__chip {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 6px;
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(8,19,42,.28);
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
  transition: var(--transition);
}
.category-strip__chip:hover,
.category-strip__chip:focus-visible {
  color: var(--text);
  background: rgba(255,101,0,.22);
}
.category-strip__chip.is-active {
  color: var(--brand);
  border-color: var(--border);
  background: rgba(255,101,0,.22);
}
.category-strip__nav {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(8,19,42,.32);
  color: var(--text);
  font-size: 20px;
}
.category-strip__nav:disabled { opacity:.3; cursor:default; }
.category-strip__nav[hidden] { display:none; }
.section-panel {
  background: linear-gradient(180deg, rgba(5,13,32,.96), rgba(3,9,27,.98));
  border-radius: var(--radius-xl);
  padding: 18px;
}
.hero-panel,.discover-bar,.category-strip,.section-panel { font-weight:700; }
.section-head h2 { margin:0; }
.section-carousel-controls {
  display:flex;
  align-items:center;
  gap:8px;
  flex:0 0 auto;
}
.section-carousel__nav {
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border:1px solid rgba(148,163,184,.32);
  border-radius:10px;
  background:rgba(148,163,184,.1);
  color:#7f8998;
  font-size:1.25rem;
  line-height:1;
  transition:var(--transition);
}
.section-panel.is-scrollable .section-carousel__nav {
  border-color:var(--border);
  color:var(--brand);
  background:rgba(255,101,0,.08);
}
.section-carousel__nav:not(:disabled):hover,
.section-carousel__nav:not(:disabled):focus-visible {
  background:rgba(255,101,0,.22);
  transform:translateY(-1px);
}
.section-panel .section-carousel__nav:disabled {
  border-color:rgba(148,163,184,.32);
  background:rgba(148,163,184,.1);
  color:#7f8998;
  cursor:default;
  opacity:.58;
}
.cards-row {
  min-width: 0;
  max-width: 100%;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 150px;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  overscroll-behavior-inline: contain;
}
.cards-row::-webkit-scrollbar { display:none; }
.cards-row--empty {
  display: block;
  overflow: visible;
  padding-bottom: 0;
}
.empty-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  background: rgba(8,19,42,.2);
}
.empty-state strong { display: block; margin-bottom: 4px; }
.empty-state p { margin: 0; color: var(--muted); font-size: .9rem; }
.card {
  position: relative;
  overflow: hidden;
  width:150px;
  height:200px;
  background: #050d20;
  border-radius:14px;
  transition:transform var(--transition),border-color var(--transition),box-shadow var(--transition);
}
.card:hover,.card:focus-within {
  transform:translateY(-2px);
  border-color:var(--brand);
  box-shadow:0 14px 30px rgba(0,0,0,.34);
}
.card__media { position:relative; height:156px; overflow:hidden; background:#030a1c; }
.card__image {
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center top;
  transition:transform 420ms ease,filter 420ms ease;
}
.card:hover .card__image,.card:focus-within .card__image { transform:scale(1.07); filter:saturate(1.08); }
.card__thumb { position:absolute; z-index:3; inset:0; }
.card__thumb:focus-visible { outline:2px solid var(--brand); outline-offset:-3px; }
.card__shine {
  position:absolute;
  z-index:2;
  top:-35%;
  left:-75%;
  width:38%;
  height:175%;
  pointer-events:none;
  opacity:0;
  transform:rotate(18deg);
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.28),transparent);
  animation:card-shine 14s ease-in-out infinite;
  animation-delay:var(--shine-delay);
}
.card:hover .card__shine,.card:focus-within .card__shine { animation-play-state:paused; opacity:0; }
@keyframes card-shine {
  0%,72% { left:-75%; opacity:0; }
  76% { opacity:.65; }
  86% { left:135%; opacity:.28; }
  90%,100% { left:135%; opacity:0; }
}
.card__footer {
  position:relative;
  display:grid;
  place-items:center;
  height:44px;
  padding:5px 8px;
  overflow:hidden;
  background:linear-gradient(180deg,#061025,#040c1e);
}
.card__footer h3 {
  margin:0;
  max-width:100%;
  color:var(--text);
  font-size:.82rem;
  line-height:1.15;
  text-align:center;
  transition:transform 260ms ease,opacity 180ms ease;
}
.card__play {
  position:absolute;
  left:8px;
  right:8px;
  bottom:6px;
  min-height:32px;
  border-radius:9px;
  color:#020614;
  background:linear-gradient(135deg,var(--brand),var(--gold));
  font-size:.76rem;
  font-weight:700;
  opacity:0;
  transform:translateY(135%);
  transition:transform 260ms ease,opacity 180ms ease;
}
.card:hover .card__footer h3,.card:focus-within .card__footer h3 { transform:translateY(-14px); opacity:0; }
.card:hover .card__play,.card:focus-within .card__play { transform:translateY(0); opacity:1; }
@media (prefers-reduced-motion:reduce) {
  .card,.card__image,.card__footer h3,.card__play { transition:none; }
  .card__shine { display:none; animation:none; }
}
.info-card {
  background: rgba(5,13,32,.9);
  border-radius: var(--radius-lg);
  padding: 18px;
}
.player-info-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.auth-dialog {
  border: 0;
  background: transparent;
  padding: 0;
}
.auth-dialog::backdrop { background: rgba(1,3,13,.84); backdrop-filter: blur(8px); }
.auth-card {
  width: min(520px, calc(100vw - 24px));
  background: linear-gradient(180deg, rgba(5,13,32,.99), rgba(3,9,27,.99));
  color: var(--text);
  border-radius: 26px;
  padding: 22px;
  position: relative;
}
.auth-card__mock {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}
.auth-card__mock label {
  display: grid;
  gap: 8px;
}
.auth-card__mock input {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(8,19,42,.28);
  color: var(--text);
}
.auth-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255,101,0,.2);
  color: var(--text);
}
