/* =========================================================
   LK Productions – storefront styles
   Palette taken from the LK logo.
   ========================================================= */
:root {
  --bg: #0b0a10;
  --bg-2: #120f1b;
  --surface: #261d3a;
  --surface-2: #382b56;
  --line: #06040b;            /* outlines: always darker than the face */
  --text: #f7f3ff;
  --muted: #bdb3d3;           /* 9.6:1 on --bg */

  --magenta: #e81cff;
  --purple: #9b30ff;
  --orange: #ff7a1a;
  --yellow: #ffd21a;

  --grad-hot: linear-gradient(135deg, var(--orange) 0%, var(--yellow) 100%);
  --grad-neon: linear-gradient(135deg, var(--magenta) 0%, var(--purple) 100%);
  --grad-mix: linear-gradient(135deg, var(--orange) 0%, var(--magenta) 55%, var(--purple) 100%);

  --font-display: "Sniglet", "Baloo 2", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 1.6rem;
  --border: 3px;
  --plate: 8px;               /* depth of the 3D "base plate" */
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 600 1rem/1.6 var(--font-body);
  overflow-x: hidden;
}
/* soft neon glows behind everything (fixed without background-attachment, which is janky on iOS) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(55% 45% at 50% 18%, rgb(155 48 255 / .22), transparent 70%),
    radial-gradient(45% 40% at 95% 5%, rgb(232 28 255 / .20), transparent 70%),
    radial-gradient(50% 45% at 0% 100%, rgb(255 122 26 / .16), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
img { max-width: 100%; display: block; }
a { color: var(--yellow); text-underline-offset: 3px; }
a:hover { color: #ffe36b; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.05; margin: 0; }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
  border-radius: 10px;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: .6rem 1rem; border-radius: .8rem;
  background: var(--yellow); color: #1a1200; font-weight: 800; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* gradient text with a darker 3D edge */
.grad-hot, .grad-neon {
  background: var(--grad-hot);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* darker 3D edge under the letters, same idea as the frames */
  filter: drop-shadow(0 5px 0 #8a3600) drop-shadow(0 2px 0 var(--line)) drop-shadow(0 0 18px rgb(255 122 26 / .3));
}
.grad-neon {
  background-image: var(--grad-neon);
  filter: drop-shadow(0 5px 0 #5a0f86) drop-shadow(0 2px 0 var(--line)) drop-shadow(0 0 18px rgb(232 28 255 / .35));
}

/* ---------------- entrance animations ---------------- */
.js .reveal { opacity: 0; }
.js .reveal.is-in { animation: reveal-in .75s var(--spring) both; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes reveal-in {
  from { opacity: 0; translate: 0 40px; }
  to { opacity: 1; translate: none; }
}

/* ---------------- hero ---------------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 3rem 1rem 4rem;
  text-align: center;
}
.hero picture { display: block; }
.hero__logo {
  width: clamp(130px, 28vw, 220px); height: auto;
  filter: drop-shadow(0 0 30px rgb(232 28 255 / .35));
  animation: float 5s ease-in-out infinite;
}
@keyframes float { 50% { translate: 0 -8px; } }
.hero__title {
  margin-top: 1rem;
  font-size: clamp(2.5rem, 9vw, 5rem);
  letter-spacing: .01em;
  line-height: 1.12;
}
.hero__title span { display: inline-block; }
.hero__tagline {
  max-width: 30rem; margin: 1.1rem auto 0;
  color: var(--muted);
  font: 800 clamp(.9rem, 2.4vw, 1.05rem)/1.45 var(--font-display);
  text-transform: uppercase; letter-spacing: .03em;
}

/* ---------------- 3D tile buttons ---------------- */
.tiles {
  width: 100%; max-width: 40rem;
  margin-top: clamp(2rem, 6vw, 3rem);
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(.75rem, 3vw, 1.5rem);
}
.tile {
  --glow: rgb(255 122 26 / .55);
  position: relative;
  display: block;
  padding-bottom: var(--plate);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: transform .45s var(--spring);
  -webkit-tap-highlight-color: transparent;
}
.tile--neon { --glow: rgb(232 28 255 / .55); }
.tile--mix { --glow: rgb(155 48 255 / .55); }
/* base plate */
.tile::before {
  content: "";
  position: absolute; inset: var(--plate) 0 0;
  border-radius: inherit;
  background: var(--line);
}
.tile__face {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  aspect-ratio: 1;
  padding: .75rem;
  border: var(--border) solid var(--line);
  border-radius: inherit;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  box-shadow: inset 0 3px 0 rgb(255 255 255 / .16);
  font: 800 clamp(.72rem, 2.6vw, 1rem)/1.1 var(--font-display);
  letter-spacing: .04em;
  transition: transform .09s var(--ease), box-shadow .3s var(--ease);
}
.tile__face img {
  width: clamp(44px, 12vw, 72px); height: auto;
  filter: drop-shadow(0 4px 0 rgb(0 0 0 / .35));
  transition: transform .45s var(--spring);
}
.tile:hover { transform: scale(1.06) rotate(-2.4deg); }
.tile:nth-child(even):hover { transform: scale(1.06) rotate(2.4deg); }
.tile:hover .tile__face { box-shadow: inset 0 3px 0 rgb(255 255 255 / .16), 0 0 34px var(--glow); }
.tile:hover .tile__face img { transform: translateY(-3px) scale(1.08); }
.tile:active { transform: scale(.985); transition-duration: .1s; }
.tile:active .tile__face { transform: translateY(var(--plate)); }
.tile:focus-visible { outline-offset: 6px; border-radius: var(--radius); }

/* chunky buttons (same 3D idea, pill shaped) */
.btn {
  --a: var(--grad-neon);
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  transition: transform .4s var(--spring);
  -webkit-tap-highlight-color: transparent;
}
.btn::before {
  content: ""; position: absolute; inset: 6px 0 0;
  border-radius: inherit; background: var(--line);
}
.btn__face {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .85rem 1.6rem;
  border: var(--border) solid var(--line);
  border-radius: inherit;
  background: var(--a);
  box-shadow: inset 0 3px 0 rgb(255 255 255 / .35);
  font: 800 clamp(.9rem, 2.8vw, 1.1rem)/1.1 var(--font-display);
  letter-spacing: .03em;
  text-shadow: 0 2px 0 rgb(60 0 80 / .45);
  transition: transform .09s var(--ease), box-shadow .3s var(--ease);
}
.btn__face img { width: 34px; height: auto; margin: -6px 0; }
.btn:hover { color: #fff; transform: scale(1.04) rotate(-1deg); }
.btn:hover .btn__face { box-shadow: inset 0 3px 0 rgb(255 255 255 / .35), 0 0 32px rgb(232 28 255 / .6); }
.btn:active { transform: scale(.985); transition-duration: .1s; }
.btn:active .btn__face { transform: translateY(6px); }
.btn--block { display: block; }
.cta-row { display: flex; justify-content: center; margin-top: 2.5rem; }

/* ---------------- sections ---------------- */
.section {
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 6rem) 1rem 0;
  scroll-margin-top: 1rem;
}
.section:focus { outline: none; }
.section__title {
  text-align: center;
  font-size: clamp(2.3rem, 7vw, 3.6rem);
  letter-spacing: .02em;
}
.section__lead {
  max-width: 34rem; margin: 1rem auto 0;
  text-align: center; color: var(--muted);
}
.robux-inline { color: var(--yellow); white-space: nowrap; }
.robux-inline img { display: inline-block; width: 1.3em; height: auto; vertical-align: -.3em; margin-right: .2em; }

/* ---------------- filter chips ---------------- */
.chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem;
  margin: 2rem auto 0;
}
.chips[hidden] { display: none; }
.chip {
  padding: .5rem 1.05rem;
  border: var(--border) solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font: 800 .9rem/1.2 var(--font-display);
  letter-spacing: .03em;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--line);
  transition: transform .35s var(--spring), border-color .2s, box-shadow .2s;
}
.chip:hover { transform: translateY(-2px) rotate(-1.5deg); background: #45356a; }
.chip:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.chip[aria-pressed="true"] {
  background: var(--grad-neon);
  box-shadow: 0 4px 0 var(--line), 0 0 22px rgb(232 28 255 / .45);
}

/* ---------------- product grid ---------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-top: 2.25rem;
}
.grid__loading { grid-column: 1 / -1; text-align: center; color: var(--muted); }

.card {
  position: relative;
  display: flex; flex-direction: column;
  padding: .7rem .7rem 1rem;
  border: var(--border) solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: 0 var(--plate) 0 var(--line), inset 0 3px 0 rgb(255 255 255 / .1);
  transition: transform .45s var(--spring), box-shadow .3s var(--ease);
}
.card:nth-child(odd) { rotate: -.6deg; }
.card:nth-child(even) { rotate: .5deg; }
.card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 var(--plate) 0 var(--line), 0 0 38px rgb(232 28 255 / .4), inset 0 3px 0 rgb(255 255 255 / .1);
}
.card:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--line); transition-duration: .1s; }
.card:focus-within { outline: 3px solid var(--yellow); outline-offset: 5px; }
.card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: calc(var(--radius) - .6rem);
  background: #07060b;
}
.card__media img, .card__media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.card__media video { opacity: 0; transition: opacity .25s; }
.card__media.is-playing video { opacity: 1; }
/* play badge (touch devices tap to preview) */
.card__play {
  position: absolute; right: .6rem; bottom: .6rem;
  width: 2.4rem; height: 2.4rem;
  border: var(--border) solid var(--line); border-radius: 50%;
  background: rgb(56 43 86 / .85);
  display: none;
}
.card__play::after {
  content: ""; position: absolute; left: 55%; top: 50%;
  translate: -50% -50%;
  border-left: .7rem solid #fff; border-top: .45rem solid transparent; border-bottom: .45rem solid transparent;
}
.card__media.is-playing .card__play::after {
  left: 50%; width: .7rem; height: .8rem;
  border: 0; border-left: .22rem solid #fff; border-right: .22rem solid #fff;
}
.card__info {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  column-gap: .75rem; row-gap: .15rem;
  padding: .9rem .35rem 0;
}
.card__name { font-size: 1.3rem; grid-column: 1 / -1; }
.card__open {
  all: unset;
  cursor: pointer;
}
.card__open:focus-visible { outline: none; }
/* whole card is clickable */
.card__open::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); z-index: 1; }
.card__cat {
  grid-column: 1; grid-row: 2; margin: .35rem 0 0;
  color: var(--muted);
  font: 800 .78rem/1.3 var(--font-display);
  text-transform: uppercase; letter-spacing: .05em;
}
.card .price { grid-column: 2; grid-row: 2; margin-top: .35rem; }

@media (hover: none) {
  .card__play { display: block; }
  .card__media { z-index: 2; cursor: pointer; }  /* tap media = preview, tap text = details */
}

/* price pill */
.price {
  display: inline-flex; align-items: center; gap: .35rem;
  margin: 0;
  padding: .35rem .8rem .35rem .45rem;
  border: var(--border) solid var(--line);
  border-radius: 999px;
  background: var(--grad-hot);
  color: #2a1500;
  font: 800 1rem/1 var(--font-display);
  white-space: nowrap;
  box-shadow: 0 3px 0 var(--line);
}
.price img { width: 1.6rem; height: auto; filter: drop-shadow(0 1px 0 rgb(0 0 0 / .25)); }
.price--ask {
  padding: .45rem .8rem;
  background: var(--surface-2);
  color: var(--text);
  font-size: .85rem;
}

/* placeholder card */
.card--soon {
  justify-content: center; align-items: center;
  min-height: 16rem;
  border: var(--border) dashed rgb(155 48 255 / .45);
  background: transparent;
  box-shadow: none;
  text-align: center;
  color: var(--muted);
  font: 800 1.2rem/1.35 var(--font-display);
  text-transform: uppercase;
}
.card--soon:hover, .card--soon:active { transform: none; box-shadow: none; }
.card--soon a { margin-top: .75rem; font-size: .95rem; }

/* ---------------- how to buy ---------------- */
.steps {
  list-style: none; padding: 0; margin: 2.5rem 0 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: clamp(1rem, 3vw, 1.5rem);
}
.step {
  position: relative;
  padding: 1.5rem 1.25rem 1.4rem;
  border: var(--border) solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: 0 var(--plate) 0 var(--line), inset 0 3px 0 rgb(255 255 255 / .1);
  text-align: center;
}
.step img { width: 64px; height: auto; margin: 0 auto .6rem; filter: drop-shadow(0 4px 0 rgb(0 0 0 / .35)); }
.step__num {
  position: absolute; top: -1rem; left: -.6rem;
  display: grid; place-items: center;
  width: 2.4rem; height: 2.4rem;
  border: var(--border) solid var(--line); border-radius: 50%;
  background: var(--grad-neon);
  font: 800 1.15rem/1 var(--font-display);
  rotate: -8deg;
}
.step h3 { font-size: 1.3rem; }
.step p { margin: .5rem 0 0; color: var(--muted); font-size: .95rem; }

/* ---------------- FAQ ---------------- */
.faq { max-width: 46rem; margin: 2.25rem auto 0; display: grid; gap: 1rem; }
.faq__item {
  border: var(--border) solid var(--line);
  border-radius: 1.2rem;
  background: var(--surface-2);
  box-shadow: 0 5px 0 var(--line);
  transition: box-shadow .3s var(--ease);
}
.faq__item[open] { box-shadow: 0 5px 0 var(--line), 0 0 28px rgb(155 48 255 / .35); }
.faq__item summary {
  display: flex; align-items: center; gap: .75rem;
  padding: .9rem 1.1rem;
  cursor: pointer;
  list-style: none;
  font: 800 1.1rem/1.25 var(--font-display);
  border-radius: 1rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; margin-left: auto;
  font-size: 1.6rem; line-height: 1; color: var(--yellow);
  transition: rotate .35s var(--spring);
}
.faq__item[open] summary::after { rotate: 45deg; }
.faq__item summary img { width: 36px; height: auto; flex: none; }
.faq__item p { margin: 0; padding: 0 1.25rem 1.2rem; color: var(--muted); }

/* ---------------- footer ---------------- */
.footer {
  margin-top: clamp(4rem, 10vw, 7rem);
  padding: 2.5rem 1rem 3rem;
  border-top: 2px solid rgb(255 255 255 / .1);
  display: flex; flex-direction: column; align-items: center; gap: 1.25rem;
  text-align: center;
}
.footer__brand {
  display: flex; align-items: center; gap: .75rem;
  color: var(--text); text-decoration: none;
  font: 800 1.3rem/1 var(--font-display);
}
.footer__brand img { width: 52px; height: 52px; border-radius: 14px; border: var(--border) solid var(--line); }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.icon-link {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem 1rem .45rem .55rem;
  border: var(--border) solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  box-shadow: 0 4px 0 var(--line);
  color: var(--text); text-decoration: none;
  font: 800 .95rem/1 var(--font-display);
  transition: transform .35s var(--spring), border-color .2s;
}
.icon-link:hover { color: var(--text); background: #45356a; transform: translateY(-2px) rotate(-2deg); }
.icon-link img { width: 30px; height: auto; }
.footer__legal { margin: 0; color: var(--muted); font-size: .85rem; }

/* ---------------- modal ---------------- */
.modal {
  width: min(56rem, calc(100% - 1.5rem));
  max-height: calc(100% - 1.5rem);
  padding: 0;
  border: var(--border) solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  color: var(--text);
  box-shadow: 0 var(--plate) 0 var(--line), 0 0 60px rgb(232 28 255 / .35);
  overflow: auto;
  overscroll-behavior: contain;
}
.modal::backdrop { background: rgb(5 4 9 / .78); backdrop-filter: blur(6px); }
.modal[open] { animation: pop .45s var(--spring); }
.modal[open]::backdrop { animation: fade .3s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(40px) scale(.94) rotate(-1.5deg); } }
@keyframes fade { from { opacity: 0; } }
.modal__inner { position: relative; display: grid; grid-template-columns: 1fr; }
@media (min-width: 52rem) {
  .modal__inner { grid-template-columns: 1.25fr 1fr; }
  .modal__media { border-radius: calc(var(--radius) - 4px) 0 0 calc(var(--radius) - 4px); }
}
.modal__media {
  background: #000;
  display: grid; place-items: center;
  border-radius: calc(var(--radius) - 4px) calc(var(--radius) - 4px) 0 0;
  overflow: hidden;
}
.modal__media video { width: 100%; max-height: min(70vh, 38rem); background: #000; }
.modal__body { padding: 1.5rem 1.4rem 1.6rem; }
.modal__category {
  margin: 0 0 .35rem; color: var(--muted);
  font: 800 .8rem/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .06em;
}
.modal__title { font-size: clamp(1.6rem, 5vw, 2.2rem); padding-right: 2rem; }
.modal__price { margin-top: .9rem; display: flex; align-items: center; gap: .6rem; }
.price-note { color: var(--muted); font: 800 .9rem/1 var(--font-display); }
.modal__price .price { font-size: 1.25rem; }
.modal__desc { margin: 1rem 0 0; color: var(--muted); white-space: pre-line; }
.modal__subtitle { margin-top: 1.5rem; font-size: 1.15rem; letter-spacing: .04em; }
.mini-steps { list-style: none; counter-reset: s; padding: 0; margin: .8rem 0 1.4rem; display: grid; gap: .55rem; }
.mini-steps li {
  counter-increment: s;
  display: flex; align-items: center; gap: .65rem;
  padding: .45rem .7rem;
  border: var(--border) solid var(--line);
  border-radius: 1rem;
  background: #45356a;
  font-weight: 800;
}
.mini-steps li::before {
  content: counter(s);
  display: grid; place-items: center; flex: none;
  width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--grad-hot); color: #2a1500;
  font: 800 .9rem/1 var(--font-display);
}
.mini-steps img { width: 30px; height: auto; }
.modal__source { display: inline-block; margin-top: 1rem; font-size: .9rem; }
.modal__close {
  position: absolute; top: .6rem; right: .6rem; z-index: 3;
  width: 3rem; height: 3rem; padding: 0;
  border: 0; background: none; cursor: pointer;
  transition: transform .35s var(--spring);
}
.modal__close img { width: 100%; height: auto; filter: drop-shadow(0 3px 0 rgb(0 0 0 / .4)); }
.modal__close:hover { transform: rotate(90deg) scale(1.08); }
.modal__close:active { transform: scale(.9); }
body.modal-open { overflow: hidden; }
.modal .btn__face { font-size: clamp(.82rem, 2.6vw, .98rem); padding-inline: 1rem; letter-spacing: .01em; }

/* ---------------- small screens ---------------- */
@media (max-width: 30rem) {
  :root { --radius: 1.3rem; --plate: 7px; }
  .tile__face { gap: .35rem; padding: .5rem; }
  .btn__face { padding: .8rem 1.1rem; }
  .btn__face img { width: 28px; }
  .card__name { font-size: 1.15rem; }
  .modal { width: 100%; max-height: 100%; border-radius: var(--radius) var(--radius) 0 0; margin-bottom: 0; }
  .modal__body { padding: 1.25rem 1rem 1.5rem; }
}

/* ---------------- reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal { opacity: 1; }
  .tile:hover, .tile:nth-child(even):hover, .btn:hover, .card:hover, .chip:hover, .icon-link:hover { transform: none; }
  .tile:hover .tile__face img { transform: none; }
}
