/* Shared styles — download hub & setup guides */
:root {
  --carbon: #030508;
  --carbon-blue: #071426;
  --accent: #2b7bff;
  --accent-hot: #5ca0ff;
  --text: #eef2f8;
  --text-muted: #8b9cb8;
  --nav-float-top: clamp(12px, 3vw, 20px);
  --nav-h: calc(var(--nav-float-top) + 58px + clamp(1.45rem, 4.5vw, 2.15rem));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--carbon);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 100% 72% at 50% -28%, rgba(43, 123, 255, 0.15), transparent 58%),
    linear-gradient(180deg, var(--carbon) 0%, var(--carbon-blue) 48%, var(--carbon) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

header.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: max-content;
  max-width: min(1180px, calc(100vw - 1.25rem));
  padding: 0 clamp(0.75rem, 2.5vw, 1.35rem);
  pointer-events: none;
}

.nav-inner {
  pointer-events: auto;
  margin-top: var(--nav-float-top);
  padding: 0.45rem 2rem 0.45rem 1.35rem;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-radius: 999px;
  background: rgba(7, 10, 16, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.25) inset;
}

@media (min-width: 641px) {
  .nav-inner {
    min-width: min(720px, calc(100vw - 1.5rem));
  }
}

nav {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  width: 100%;
  max-width: 38rem;
  gap: 0.35rem;
}

nav a {
  padding: 0.38rem 1.05rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: color 0.18s ease, background 0.18s ease;
}

nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

nav a.active {
  color: var(--text);
  background: rgba(43, 123, 255, 0.14);
  border-color: rgba(43, 123, 255, 0.28);
}

nav a.nav-client-panel {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: rgba(220, 235, 255, 0.95);
  background: rgba(43, 123, 255, 0.14);
  border-color: rgba(43, 123, 255, 0.3);
}

nav a.nav-client-panel:hover {
  color: #fff;
  background: rgba(43, 123, 255, 0.22);
  border-color: rgba(92, 160, 255, 0.42);
}

nav a.nav-client-panel.active {
  color: #fff;
  background: rgba(43, 123, 255, 0.28);
  border-color: rgba(92, 160, 255, 0.5);
}

.nav-client-panel__arrow {
  display: inline-block;
  font-size: 0.9em;
  line-height: 1;
  transition: transform 0.18s ease;
}

nav a.nav-client-panel:hover .nav-client-panel__arrow {
  transform: translateX(2px);
}

main {
  position: relative;
  z-index: 1;
  padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px)) clamp(1rem, 4vw, 1.5rem)
    clamp(2.5rem, 8vw, 4rem);
}

.guide-shell {
  max-width: min(900px, 100%);
  margin: 0 auto;
}

.guide-crumb {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.guide-crumb a {
  color: var(--accent-hot);
}

.guide-crumb a:hover {
  text-decoration: underline;
}

.guide-head {
  margin-bottom: clamp(1.5rem, 4vw, 2rem);
}

.section-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-hot);
  margin-bottom: 0.5rem;
}

.guide-head h1 {
  margin: 0 0 0.5rem;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.guide-lead {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 52ch;
}

/* Client panel sections */
.panel-sections {
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 4vw, 2.5rem);
}

.panel-section__head {
  margin-bottom: 1rem;
}

.panel-section__title {
  margin: 0 0 0.35rem;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.panel-section__desc {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 48ch;
}

.panel-game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 560px) {
  .panel-game-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.panel-game-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 11, 16, 0.72);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.panel-game-card:hover {
  border-color: rgba(139, 108, 255, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(139, 108, 255, 0.1);
}

.panel-game-card__visual {
  aspect-ratio: 4 / 3;
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.panel-game-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.panel-game-card__body {
  padding: 0.75rem 0.8rem 0.85rem;
}

.panel-game-card__body h3 {
  margin: 0 0 0.25rem;
  font-family: "Syne", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.panel-game-card__cta {
  font-size: 0.75rem;
  font-weight: 600;
  color: #b8a4ff;
}

.panel-game-card__cta::after {
  content: " →";
}

.panel-spoof-grid {
  display: grid;
  gap: 0.75rem;
  max-width: 28rem;
}

.panel-spoof-grid--wide {
  max-width: none;
}

.panel-spoof-grid--cheats {
  max-width: min(40rem, 100%);
}

.panel-spoof-card--cheats .panel-spoof-card__visual {
  flex: 0 0 clamp(7.5rem, 32%, 10.5rem);
}

.panel-spoof-card__games {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.45;
  color: #b8a4ff;
}

.panel-spoof-card--cheats:hover {
  border-color: rgba(139, 108, 255, 0.45);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(139, 108, 255, 0.1);
}

.panel-loader-showcase {
  margin: 0 0 1.35rem;
  padding: 0;
}

.panel-loader-showcase__hit {
  position: relative;
  display: block;
  width: 100%;
  max-width: min(26rem, 92%);
  margin: 0 auto;
  border-radius: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.panel-loader-showcase__hit:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(43, 123, 255, 0.2);
}

.panel-loader-showcase__hit:focus-visible {
  outline: 2px solid var(--accent-hot);
  outline-offset: 4px;
}

.panel-loader-showcase__hit img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(139, 108, 255, 0.08);
}

.panel-loader-press-hint {
  position: absolute;
  bottom: 9%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  pointer-events: none;
  z-index: 2;
  animation: panel-loader-hint-bob 1.6s ease-in-out infinite;
}

.panel-loader-press-hint__label {
  padding: 0.32rem 0.7rem;
  border-radius: 8px;
  font-family: "Syne", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(180deg, #5ca0ff, #2b7bff);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 16px rgba(43, 123, 255, 0.45);
  white-space: nowrap;
}

.panel-loader-press-hint__arrow {
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 11px solid #5ca0ff;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

@keyframes panel-loader-hint-bob {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(5px);
  }
}

.panel-loader-showcase figcaption {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 26rem;
  margin-left: auto;
  margin-right: auto;
}

.panel-loader-showcase figcaption strong {
  color: #b8a4ff;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .panel-loader-press-hint {
    animation: none;
  }
}

.panel-spoof-card--body-only {
  display: block;
  max-width: 28rem;
}

.panel-spoof-card--body-only .panel-spoof-card__body {
  padding: 1rem 1.15rem;
}

.guide-supported-games {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.35rem;
}

@media (min-width: 520px) {
  .guide-supported-games {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.guide-supported-games__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.45rem 0.55rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 11, 16, 0.55);
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.guide-supported-games__item:hover {
  border-color: rgba(139, 108, 255, 0.4);
  transform: translateY(-2px);
}

.guide-supported-games__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.guide-supported-games__item span {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(220, 230, 248, 0.95);
}

.panel-spoof-card {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 11, 16, 0.72);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.panel-spoof-card:hover {
  border-color: rgba(43, 123, 255, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

.panel-section--perm .panel-spoof-card:hover {
  border-color: rgba(61, 158, 255, 0.5);
}

.panel-spoof-card__visual {
  flex: 0 0 7.5rem;
  background: rgba(0, 0, 0, 0.35);
}

.panel-spoof-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 5.5rem;
}

.panel-spoof-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.85rem 1rem;
}

.panel-spoof-card__body h3 {
  margin: 0 0 0.3rem;
  font-family: "Syne", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.panel-spoof-card__body p {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.panel-spoof-card__cta {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-hot);
}

.panel-spoof-card__cta::after {
  content: " →";
}

/* Hub cards (legacy) */
.download-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .download-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.download-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.2rem 1.3rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 11, 16, 0.72);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.download-card:hover {
  border-color: rgba(43, 123, 255, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(43, 123, 255, 0.12);
}

.download-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Syne", sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
  background: rgba(43, 123, 255, 0.16);
  border: 1px solid rgba(43, 123, 255, 0.3);
  color: var(--accent-hot);
}

.download-card--temp .download-card__icon {
  background: rgba(43, 123, 255, 0.16);
}

.download-card--perm .download-card__icon {
  background: rgba(61, 158, 255, 0.14);
}

.download-card--cheats .download-card__icon {
  background: rgba(139, 108, 255, 0.14);
  border-color: rgba(139, 108, 255, 0.35);
  color: #b8a4ff;
}

.download-card h2 {
  margin: 0 0 0.4rem;
  font-family: "Syne", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.download-card p {
  margin: 0 0 1rem;
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.download-card__link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-hot);
}

.download-card__link::after {
  content: " →";
}

/* Guide content */
.guide-toc {
  margin: 0 0 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(8, 11, 16, 0.55);
}

.guide-toc h2 {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(180, 200, 228, 0.9);
}

.guide-toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
}

.guide-toc a {
  font-size: 0.875rem;
  color: var(--accent-hot);
}

.guide-toc a:hover {
  text-decoration: underline;
}

.guide-section {
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.guide-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.guide-section h2 {
  margin: 0 0 0.75rem;
  font-family: "Syne", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.guide-section h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(220, 230, 245, 0.95);
}

.guide-section p,
.guide-section li {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(196, 210, 228, 0.92);
}

.guide-section ul,
.guide-section ol {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.guide-section li + li {
  margin-top: 0.35rem;
}

.guide-note {
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(200, 220, 245, 0.9);
  background: rgba(43, 123, 255, 0.1);
  border: 1px solid rgba(43, 123, 255, 0.22);
}

.guide-product {
  margin-top: 1.5rem;
  padding: 1.1rem 1.15rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(6, 9, 14, 0.5);
}

.guide-product:first-of-type {
  margin-top: 0.75rem;
}

.guide-product h3 {
  margin: 0 0 0.65rem;
  font-family: "Syne", sans-serif;
  font-size: 1.05rem;
}

.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.guide-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(180deg, var(--accent-hot), var(--accent));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 20px rgba(43, 123, 255, 0.25);
  transition: filter 0.2s ease;
}

.guide-btn:hover {
  filter: brightness(1.06);
}

.guide-btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.guide-placeholder {
  color: var(--text-muted);
  font-style: italic;
}

.guide-steps-intro {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.guide-steps-list {
  margin: 0;
  padding-left: 1.35rem;
}

.guide-steps-list li {
  margin-bottom: 0.85rem;
  padding-left: 0.2rem;
  line-height: 1.65;
}

.guide-steps-list li:last-child {
  margin-bottom: 0;
}

.guide-video-link {
  display: inline-block;
  margin-top: 0.25rem;
  font-weight: 600;
  color: var(--accent-hot);
}

.guide-video-link:hover {
  text-decoration: underline;
}

.guide-key-format {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 0.875em;
  letter-spacing: 0.06em;
  color: #e8f0ff;
  background: rgba(43, 123, 255, 0.14);
  border: 1px solid rgba(92, 160, 255, 0.28);
}

.guide-step-success {
  padding: 0.65rem 0.85rem;
  margin-top: 0.15rem;
  border-radius: 10px;
  color: rgba(210, 245, 220, 0.98);
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.28);
}

.guide-external p {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(196, 210, 228, 0.92);
}

.guide-external-url {
  margin: 0 0 1.15rem !important;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: rgba(43, 123, 255, 0.1);
  border: 1px solid rgba(43, 123, 255, 0.22);
  word-break: break-all;
}

.guide-external-url a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-hot);
}

.guide-external-url a:hover {
  text-decoration: underline;
}

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
  padding: clamp(2rem, 6vw, 3rem) clamp(1.25rem, 4vw, 2rem);
}

.site-footer__inner {
  max-width: min(520px, 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 1rem;
  font-size: 0.6875rem;
  color: rgba(120, 138, 168, 0.62);
}

.site-footer__inner a:hover {
  color: rgba(200, 214, 235, 0.88);
}
