/* Page-specific presentation for main.html. Keep behavior in assets/js. */
:root {
  --ink: #07080f;
  --panel: #10121c;
  --line: rgba(255, 255, 255, 0.12);
  --muted: #a8acba;
  --blue: #69aaff;
  --mint: #b8ffda;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--ink);
  color: #f8f9ff;
  font-family: Manrope, Arial, sans-serif;
}
.shell {
  max-width: 1240px;
  margin: auto;
  padding: 0 28px;
}
.topline {
  background: #b8ffda;
  color: #072317;
  font:
    500 11px/1 'DM Mono',
    monospace;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 12px 18px;
}
nav {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  color: white;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.055em;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #07101f;
  background: var(--mint);
  border-radius: 8px;
  font-size: 15px;
}
.links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.links a {
  color: #c8cad4;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.links a:hover {
  color: white;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cart {
  border: 1px solid var(--line);
  width: auto;
  min-width: 40px;
  height: 40px;
  border-radius: 10px;
  padding: 0 14px;
  display: grid;
  place-items: center;
  color: white;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}
.button {
  border: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  padding: 14px 19px;
  border-radius: 10px;
  background: #f7f8fc;
  color: #11131d;
  font:
    800 13px/1 Manrope,
    sans-serif;
  transition: 0.2s;
}
.button[hidden],
.cart[hidden] {
  display: none !important;
}
.button:hover {
  transform: translateY(-2px);
}
.menu {
  display: none;
  background: none;
  border: 0;
  color: white;
  font-size: 23px;
}
.hero {
  min-height: 590px;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #10121c;
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateX(7%);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
  pointer-events: none;
}
.hero-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.hero-slide .hero-img {
  z-index: -2;
}
.hero-slide .hero-copy {
  z-index: 1;
}
.hero-controls {
  position: absolute;
  right: 25px;
  bottom: 24px;
  z-index: 4;
  display: flex;
  gap: 8px;
}
.hero-control {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(7, 8, 15, 0.55);
  color: white;
  cursor: pointer;
  font-size: 18px;
}
.hero-dots {
  position: absolute;
  bottom: 40px;
  left: 64px;
  z-index: 4;
  display: flex;
  gap: 7px;
}
.hero-dot {
  width: 7px;
  height: 7px;
  border: 0;
  border-radius: 99px;
  background: #fff6;
  cursor: pointer;
  transition: 0.2s;
}
.hero-dot.active {
  width: 25px;
  background: var(--mint);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(7, 8, 15, 0.98) 0%,
      rgba(7, 8, 15, 0.82) 37%,
      rgba(7, 8, 15, 0.12) 74%
    ),
    linear-gradient(0deg, rgba(7, 8, 15, 0.62), transparent 48%);
}
.hero-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-copy {
  width: 600px;
  padding: 64px;
}
.eyebrow {
  color: var(--mint);
  font:
    500 11px/1 'DM Mono',
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  display: flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 14px var(--mint);
}
h1 {
  font-size: clamp(42px, 6.1vw, 78px);
  letter-spacing: -0.075em;
  line-height: 0.96;
  margin: 21px 0;
  max-width: 590px;
}
h1 em {
  font-style: normal;
  color: #82b6ff;
}
.hero p {
  color: #c1c5d0;
  max-width: 445px;
  line-height: 1.7;
  font-size: 16px;
  margin: 0 0 30px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-slide.game-hero .hero-copy {
  position: absolute;
  inset: auto 0 28px;
  width: auto;
  padding: 0 24px;
  display: flex;
  justify-content: center;
}
.hero-slide.game-hero .hero-actions {
  justify-content: center;
}
.promo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
  padding: 24px 28px;
  border: 1px solid rgba(184, 255, 218, 0.28);
  border-radius: 18px;
  background: linear-gradient(110deg, rgba(184, 255, 218, 0.13), rgba(105, 170, 255, 0.1));
}
.promo-banner .eyebrow {
  margin-bottom: 9px;
}
.promo-banner h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -0.055em;
}
.promo-banner p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.promo-banner p strong {
  color: var(--mint);
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.04em;
}
.promo-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.promo-code {
  display: grid;
  gap: 3px;
  min-width: 138px;
  padding: 10px 14px;
  border: 1px dashed rgba(184, 255, 218, 0.7);
  border-radius: 10px;
  background: rgba(7, 8, 15, 0.4);
  color: white;
  cursor: pointer;
  text-align: left;
}
.promo-code span {
  color: var(--mint);
  font: 500 13px 'DM Mono', monospace;
  letter-spacing: 0.05em;
}
.promo-code small {
  color: #aab2c3;
  font: 11px Manrope, sans-serif;
}
.button.primary {
  background: var(--mint);
}
.button.secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: white;
}
.trust {
  display: flex;
  gap: 27px;
  padding: 22px 0 0;
  color: #d9dce5;
  font-size: 12px;
  font-weight: 700;
}
.trust span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.trust b {
  color: var(--mint);
  font-size: 16px;
}
.section-head {
  padding: 88px 0 27px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
}
.section-head h2 {
  font-size: 30px;
  margin: 8px 0 0;
  letter-spacing: -0.055em;
}
.text-link {
  color: var(--mint);
  text-decoration: none;
  font:
    500 12px 'DM Mono',
    monospace;
}
.games {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(245px, 280px);
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 0 0 16px;
  scrollbar-color: #b8ffda #151824;
}
.games::-webkit-scrollbar {
  height: 7px;
}
.games::-webkit-scrollbar-thumb {
  background: var(--mint);
  border-radius: 99px;
}
.recently-viewed-games {
  padding-bottom: 16px;
}
.game {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 16px;
  min-width: 0;
  color: white;
  text-decoration: none;
  transition:
    transform 0.2s,
    border-color 0.2s;
  cursor: pointer;
  scroll-snap-align: start;
}
.game:hover {
  transform: translateY(-4px);
  border-color: #82b6ff;
}
.cover {
  height: 210px;
  border-radius: 10px;
  display: flex;
  align-items: end;
  padding: 16px;
  position: relative;
}
.cover-image {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
  object-position: center top;
  border-radius: 10px;
  background: #202431;
}
.cover::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, transparent 22%, rgba(0, 0, 0, 0.72));
}
.cover span {
  z-index: 1;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.92;
  max-width: 130px;
}
.cover.one {
  background:
    radial-gradient(circle at 72% 22%, #e66bc7, transparent 24%),
    linear-gradient(135deg, #19153a, #4d1754 58%, #ef8f57);
}
.cover.two {
  background:
    radial-gradient(circle at 40% 15%, #8de5ff, transparent 18%),
    linear-gradient(135deg, #102847, #106a8a 51%, #edcf9c);
}
.cover.three {
  background:
    radial-gradient(circle at 70% 20%, #ffe17c, transparent 16%),
    linear-gradient(135deg, #1f1109, #944223 58%, #223929);
}
.cover.four {
  background:
    radial-gradient(circle at 23% 16%, #c9a1ff, transparent 17%),
    linear-gradient(135deg, #100e25, #342782 57%, #e13359);
}
.game-info {
  padding: 14px 4px 3px;
}
.reviews {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(285px, 360px);
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 0 0 17px;
  scrollbar-color: #b8ffda #151824;
}
.reviews::-webkit-scrollbar {
  height: 7px;
}
.reviews::-webkit-scrollbar-thumb {
  background: var(--mint);
  border-radius: 99px;
}
.review {
  min-height: 192px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, #141724, #0d0f18);
  scroll-snap-align: start;
}
.stars {
  color: var(--mint);
  font-size: 14px;
  letter-spacing: 2px;
}
.review blockquote {
  margin: 17px 0 21px;
  color: #d7dae4;
  font-size: 14px;
  line-height: 1.65;
}
.review footer {
  border: 0;
  padding: 0;
  display: block;
  color: #8f96a6;
  font-size: 12px;
}
.review strong {
  color: white;
  display: block;
  font-size: 13px;
  margin-bottom: 3px;
}
.game-info small {
  color: #9197a8;
  font:
    500 10px 'DM Mono',
    monospace;
  text-transform: uppercase;
}
.game h3 {
  font-size: 14px;
  letter-spacing: -0.035em;
  margin: 7px 0 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.price {
  display: flex;
  justify-content: space-between;
  color: var(--mint);
  font-size: 13px;
  font-weight: 800;
}
.price span:last-child {
  color: #9298a8;
  font-weight: 600;
  font-size: 11px;
}
.how {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 16px;
  padding-bottom: 86px;
}
.how-intro,
.steps {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  background: linear-gradient(135deg, #151827, #0c0e17);
}
.how-intro h2 {
  margin: 14px 0;
  font-size: 37px;
  letter-spacing: -0.065em;
  line-height: 1;
  max-width: 370px;
}
.how-intro p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
  max-width: 400px;
}
.steps {
  display: grid;
  gap: 20px;
}
.step {
  display: flex;
  gap: 17px;
  align-items: start;
}
.number {
  font:
    500 12px 'DM Mono',
    monospace;
  color: #081224;
  background: var(--blue);
  border-radius: 7px;
  padding: 7px 8px;
}
.step h3 {
  margin: 3px 0 5px;
  font-size: 15px;
}
.step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.account-type-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.account-type-button {
  appearance: none;
  min-height: 68px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px;
  background: #0a0d16;
  color: #dce3f0;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
.account-type-button:hover,
.account-type-button:focus-visible {
  border-color: var(--mint);
  outline: none;
  transform: translateY(-1px);
}
.account-type-button.active {
  border-color: var(--mint);
  background: linear-gradient(135deg, rgba(119, 255, 209, 0.18), rgba(45, 105, 255, 0.16));
}
.account-type-button span,
.account-type-button small {
  display: block;
}
.account-type-button span {
  font-size: 12px;
  font-weight: 800;
}
.account-type-button small {
  margin-top: 4px;
  color: #aab2c3;
  font-size: 11px;
}
.account-type-info {
  margin-top: 10px;
  border: 1px solid rgba(119, 255, 209, 0.24);
  border-radius: 12px;
  padding: 13px;
  background: rgba(119, 255, 209, 0.06);
}
.account-type-info h4 {
  margin: 0 0 5px;
  color: var(--mint);
  font-size: 12px;
}
.account-type-info p {
  color: #c6ccda;
}
.console-note {
  margin: 14px 0 0;
  border: 1px solid rgba(105, 170, 255, 0.45);
  border-left: 3px solid var(--blue);
  border-radius: 12px;
  padding: 12px;
  background: rgba(105, 170, 255, 0.09);
  color: #c6d6ef;
  font-size: 11px;
  line-height: 1.55;
}
.console-note strong {
  display: block;
  margin-bottom: 4px;
  color: #9bc6ff;
  font-size: 10px;
  letter-spacing: 0.07em;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 22px;
  background: linear-gradient(180deg, #0d1019, #080910);
  color: #868b9a;
  font-size: 12px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 1.15fr 1fr;
  gap: 42px;
}
.footer-brand p,
.footer-note p {
  max-width: 280px;
  color: var(--muted);
  line-height: 1.65;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links strong,
.footer-note strong {
  color: white;
  font-size: 13px;
  margin-bottom: 4px;
}
.footer-links a {
  color: #a9afbe;
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--mint);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 35px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
@media (max-width: 780px) {
  .shell {
    padding: 0 18px;
  }
  nav {
    height: 72px;
    gap: 10px;
  }
  .links {
    display: none;
  }
  .brand {
    font-size: 17px;
  }
  .nav-actions {
    gap: 6px;
  }
  .nav-actions .button {
    min-height: 44px;
    padding: 10px 11px;
    font-size: 11px;
  }
  .menu {
    display: none;
  }
  .hero {
    width: 100%;
    min-height: 0;
    height: clamp(530px, 135vw, 650px);
    align-items: end;
    border-radius: 20px;
  }
  .hero-img {
    object-position: center top;
  }
  .hero::after {
    background: linear-gradient(
      0deg,
      rgba(7, 8, 15, 0.99) 4%,
      rgba(7, 8, 15, 0.76) 52%,
      rgba(7, 8, 15, 0.05) 100%
    );
  }
  .hero-copy {
    width: auto;
    padding: 30px 22px 82px;
  }
  h1 {
    font-size: clamp(38px, 12vw, 56px);
  }
  .hero-slide.game-hero .hero-copy {
    inset: auto 0 74px;
    padding: 0 18px;
  }
  .hero-slide.game-hero .hero-actions {
    width: 100%;
  }
  .hero-actions .button {
    flex: 1;
    min-height: 46px;
  }
  .hero-dots {
    left: 20px;
    bottom: 30px;
  }
  .hero-controls {
    right: 16px;
    bottom: 14px;
  }
  .hero p {
    font-size: 14px;
  }
  .promo-banner {
    align-items: flex-start;
    flex-direction: column;
    padding: 21px;
  }
  .promo-actions {
    width: 100%;
  }
  .promo-actions > * {
    flex: 1;
  }
  .trust {
    gap: 16px;
    flex-wrap: wrap;
  }
  .games {
    grid-auto-columns: minmax(180px, 74vw);
    gap: 10px;
  }
  .reviews {
    grid-auto-columns: minmax(250px, 82vw);
    gap: 10px;
  }
  .cover {
    height: 170px;
  }
  .cover-image {
    height: 170px;
  }
  .cover span {
    font-size: 19px;
  }
  .game {
    padding: 8px;
  }
  .game-info {
    padding: 10px 3px 2px;
  }
  .section-head {
    padding: 58px 0 21px;
  }
  .how {
    grid-template-columns: 1fr;
    padding-bottom: 58px;
  }
  .how-intro,
  .steps {
    padding: 24px;
  }
  .how-intro h2 {
    font-size: 32px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}
@media (max-width: 480px) {
  .shell {
    padding-inline: 14px;
  }
  .topline {
    padding-inline: 10px;
    font-size: 9px;
  }
  .brand {
    max-width: 145px;
    font-size: 15px;
    line-height: 1.05;
  }
  .brand-mark {
    flex: 0 0 28px;
  }
  .nav-actions .button {
    padding-inline: 9px;
  }
  .hero {
    height: 520px;
    border-radius: 16px;
  }
  .hero-copy {
    padding-inline: 18px;
  }
  .hero p {
    line-height: 1.55;
    margin-bottom: 20px;
  }
  .trust {
    display: none;
  }
  .hero-control {
    width: 44px;
    height: 44px;
  }
  .section-head {
    align-items: flex-start;
    gap: 12px;
  }
  .section-head h2 {
    font-size: 26px;
  }
  .account-type-picker {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
