:root {
  /* Active theme (starts as 007) */
  --accent: #cbb891;
  --accent-dark: #907f57;
  --bg-edge: #030303;
  --bg-glow: #b49a6e;
  --bg-bottom: #2e281e;
  --on-accent: #1a1405;
  /* text on the accent button */

  /* Fixed colors */
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.65);

  /* Glass cards */
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-blur: 12px;

  /* Fonts */
  --font-heading: "Archivo", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-brush: "Permanent Marker", cursive;

  /* Sizes and spacing */
  --radius-card: 18px;
  --radius-pill: 999px;
  --gap: 24px;
  --page-padding: 48px;

  /* Motion */
  --transition-theme: 0.6s ease;
}

[data-theme="genshin"] {
  --accent: #9ddbfb;
  --accent-dark: #4a8fb5;
  --bg-edge: #121f3c;
  --bg-glow: #7ba0b5;
  --bg-bottom: #324460;
  --on-accent: #06202e;
}

[data-theme="gow"] {
  --accent: #f1f0f3;
  --accent-dark: #a8a6ad;
  --bg-edge: #130000;
  --bg-glow: #737275;
  --bg-bottom: #2e201f;
  --on-accent: #1a0a0a;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---------- Page ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background: radial-gradient(circle at 50% 40%,
      var(--bg-glow),
      var(--bg-edge) 70%);
  display: flex;
  flex-direction: column;

  padding: var(--page-padding);
  overflow: hidden;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: var(--bg-edge);
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow: hidden;
}

h1 {
  font-family: var(--font-heading);
}

.navbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 16px 48px;
}

.logo {
  justify-content: start;
  color: var(--accent);
}

.logo svg {
  display: block;
  height: 32px;
  width: auto;
}



.nav-links {
  /* links add krna */
  display: flex;
  gap: 8px;
}

.nav-links a {
  color: var(--accent);
  text-decoration: none;
  font-size: 15px;
  transition: opacity 0.2s;
  padding: 5px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
  border-radius: 15px;
}

.nav-links a:hover {
  opacity: 0.7;
}

.icon-bar {
  justify-self: end;
  display: flex;
  gap: 12px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background-color: var(--accent);
  color: var(--on-accent);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition:
    transform 0.2s,
    background 0.2s;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.icon-btn:hover {
  transform: scale(1.1);
  background: var(--accent-dark);
}

.icon-btn:focus-visible,
.nav-links a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.hero {
  /* hero placeholder */
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
}

.info p:nth-child(1) {
  color: var(--accent);
}

.info p:nth-of-type(2) {
  color: var(--text-muted);
  font-size: 0.85rem;
  max-width: none;
}

.add2cart {
  margin-top: 40px;
  border: none;
  background-color: var(--accent);
  color: var(--on-accent);
  padding: 10px 10px;
  border-radius: 20px;
  font-weight: 700;
}

#ring-handle {
  position: absolute;
  left: 50%;
  bottom: calc(2% + 24px);
  transform: translate(-50%, 50%);
  z-index: 2;
  width: 42px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 9px;
  box-shadow: 0 0 16px var(--accent);
  bottom: calc(var(--ring-bottom) + var(--ring-h) / 2);
}

#ring-handle span {
  position: static;
  transform: none;
}

.info h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
}



#gaming {
  color: var(--accent);
  opacity: 0.075;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  font-family: var(--font-brush);
  font-size: clamp(120px, 18vw, 320px);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}

#controller-img {
  z-index: 1;
  position: relative;
  max-height: 55vh;
}



#span-div {
  color: var(--accent);
}



.thumbs {
  max-height: 100%;
  display: flex;
  gap: 20px;
  overflow: hidden;
  align-items: center;
  margin-right: calc(var(--page-padding) * -1);
  overflow: hidden;
  min-width: 0;
  padding: 12px 0;
}

.thumb {
  flex: 0 0 150px;
  height: 180px;
  padding: 24px;
}

.thumb.active {
  flex-basis: 200px;
  height: 220px;
}


.vertical-label {
  transform: rotate(180deg);
}


.footer-btn {
  display: flex;
  gap: 10px;
  align-self: flex-end;
    align-self: auto;
}

.footer-btn button {
  width: 48px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
  border: none;
  background: var(--accent);
  color: var(--on-accent);
}

.footer > :nth-child(2) {
  justify-self: center;
}

.footer-btn button:hover {
  background: var(--accent-dark);
  transform: scale(0.95);
}



#article {
  background: var(--glass-bg);
}

#article h2 {
  color: var(--text);
}

#article p {
  color: var(--text-muted);
}

.main {
  position: relative;
  display: grid;
  grid-template-columns: minmax(230px, 0.9fr) minmax(0, 2.5fr) minmax(260px,
      1fr);
  align-items: center;
  gap: var(--gap);
  flex: 1;
  min-height: 0;
}

.footer {
  display: flex;
  justify-content: space-between;
}

.video-card {
  position: relative;
  display: block;
  width: 180px;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  align-self: flex-end;
  height: fit-content;
}

.video-thumb {
  width: 100%;
  height: auto;
  display: block;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 35px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;

  transform: translate(-50%, -50%);
}

.stats-card {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.stats-card article {
  background: var(--glass-bg);
  border: solid 1px var(--glass-border);
  border-radius: var(--radius-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  padding: 14px 18px;
}

.stats-card article p:last-child {
  color: var(--text-muted);
  font-size: 0.8rem;
}


@media (max-width: 768px) {

  /* Mobile k liye */
  .navbar {
    grid-template-columns: auto 1fr;
    padding: 12px 20px;
    row-gap: 12px;
  }

  .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    overflow-x: auto;
    gap: 20px;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {

  .icon-btn,
  .nav-links a {
    transition: none;
  }
}

/* Static showcase details matching the reference preview */
.info {
  position: relative;
  z-index: 2;
}

.info h1 {
  font-size: clamp(2.2rem, 3.1vw, 3.5rem);
}

.info p:nth-of-type(2) {
  max-width: 29rem;
  line-height: 1.45;
}

#price {
  margin-left: 24px;
  font-size: 1.45rem;
  white-space: nowrap;
}

.add2cart {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}


#controller-img {
  width: min(100%, 760px);
  max-height: 58vh;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px color-mix(in srgb, var(--accent) 25%, transparent));
  margin-bottom: 10px;
}

.hero {
  min-width: 0;
  --ring-h: 64px;
  --ring-bottom: 0px;

}

#glowing-ring {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 2%;
  width: 78%;
  height: var(--ring-h);
  bottom: var(--ring-bottom);
  border: 1px solid var(--accent);
  border-color: color-mix(in srgb, var(--accent) 70%, transparent);
  border-radius: 50%;

box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 45%, transparent);
  z-index: 0;
  pointer-events: none;
}

#glowing-ring::after {
 content: "";
  position: absolute;
  inset: 14%  5%;
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: 0.58;
}




.vertical-label {
  position: absolute;
  right: 0;
  top: 13%;
  writing-mode: vertical-rl;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-size: 0.9rem;
}


.thumb {
  flex: 0 0 150px;
  height: 180px;
  padding: 24px;
  display: grid;
  place-items: center;

  overflow: hidden;
  cursor: pointer;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  clip-path: polygon(14px 0,
      100% 0,
      100% calc(100% - 14px),
      calc(100% - 14px) 100%,
      0 100%,
      0 14px);
  backdrop-filter: blur(var(--glass-blur));
  transition:
    transform 0.2s,
    background 0.2s,
    border-color 0.2s;
}

.thumb.active {
  background: rgba(255, 255, 255, 0.13);
  border-color: color-mix(in srgb, var(--accent), white 25%);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
  flex-basis: 200px;
  height: 220px;
}

.thumb:hover {
  transform: translateY(-4px);
}

.thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-controls {
  align-self: flex-end;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}



.progress {
  width: 86px;
  height: 3px;
  background: var(--glass-border);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  display: block;
  width: 33.333%;
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.video-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  background: #78b7da;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.play-icon {
  background: var(--text);
  padding: 5px;
  box-sizing: content-box;
}

.stats-card article p:first-child {
  color: var(--accent);
}

@media (min-width: 1101px) {
  .footer {
    display: grid;
    grid-template-columns: minmax(230px, 0.9fr) minmax(0, 2.5fr) minmax(260px, 1fr);
    gap: var(--gap);
    align-items: end;
  }

  .footer-controls {
    justify-self: center;
  }

  .stats-card {
    justify-self: end;
  }
}

@media (max-width: 1100px) {
  :root {
    --page-padding: 28px ;
    --gap: 16px;
  }

  .main {
    grid-template-columns: minmax(200px, 0.9fr) minmax(0, 2fr);
  }

  .thumbs {
    grid-column: 2;
    grid-row: 2;
  }

  .hero {
    grid-column: 2;
    grid-row: 1;
  }

  .info {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .thumb {
    flex-basis: 170px;
    height: 170px;
  }
}

@media (max-width: 700px) {
  html {
    overflow: auto;
  }

  body {
    min-height: 100svh;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 16px;
  }

  .navbar {
    padding: 8px 4px 20px;
    grid-template-columns: auto 1fr;
    gap: 12px;
  }

  .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
    flex-wrap: wrap;
  }

  .icon-bar {
    grid-column: 2;
    grid-row: 1;
  }

  .main {
    flex: initial;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 12px 0 20px;
  }

  .hero {
    grid-column: 1;
    grid-row: 1;
    min-height: 38vh;
  }

  #controller-img {
    max-height: 38vh;
  }

  #glowing-ring {
    width: 68%;
  }

  .info {
    grid-column: 1;
    grid-row: 2;
  }

  .info h1 {
    display: inline;
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .info h1+h1 {
    margin-left: 8px;
  }

  .info p:nth-of-type(2) {
    max-width: 100%;
  }

  .thumbs {
    grid-column: 1;
    grid-row: 3;
  }

  .thumb {
    flex-basis: 31%;
    height: 120px;
  }

  .vertical-label {
    right: 2px;
    top: 20%;
  }

  .footer {
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
  }

  .video-card {
    width: 125px;
  }

  .stats-card {
    gap: 7px;
  }

  .stats-card article {
    padding: 9px;
  }

  .stats-card article h1 {
    font-size: 1.2rem;
  }

  .footer-controls {
    margin-left: auto;
  }
}