/* ===== Juicy UI: dark game panels, thick black outline, chunky buttons ===== */
:root {
  --ink: #0a0a0e;
  --bg: #17181d;
  --bg2: #1e2026;
  --panel-top: #46484e;
  --panel-bot: #2a2b30;
  --card: rgba(22, 23, 26, .65);
  --text: #f4f5f7;
  --muted: #b9bcc6;
  --green: #3fd43a;   --green-lip: #1d7d1a;
  --purple: #9b4dff;  --purple-lip: #4f1d9c;
  --cyan: #22c4f0;    --cyan-lip: #0d6c8c;
  --gold: #ffc21f;    --gold-lip: #a36a00;
  --red: #ff3b3b;     --red-lip: #8f1414;
  --grey: #8a8d96;    --grey-lip: #4a4c52;
  --orange: #ff9a1f;
  --lip: 6px;
  --r: 22px;
  --head: "Fredoka", "Mitr", system-ui, sans-serif;
  --body: "Noto Sans Thai", "Mitr", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(155, 77, 255, .18), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(34, 196, 240, .12), transparent 60%),
    var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); }
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .9em; background: rgba(0,0,0,.35); padding: .1em .4em; border-radius: 6px; word-break: break-all; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }
.center { text-align: center; }

/* ----- game text: white with thick black outline ----- */
.ink {
  font-family: var(--head);
  font-weight: 600;
  color: #fff;
  -webkit-text-stroke: .16em var(--ink);
  paint-order: stroke fill;
  letter-spacing: .01em;
  line-height: 1.2;
}
h1.ink { font-size: clamp(2.1rem, 5.2vw, 3.7rem); margin: .2em 0 .35em; }
h2.ink { font-size: clamp(1.8rem, 3.8vw, 2.7rem); margin: 0 0 .2em; }
.juicy { color: #ffcf2e; display: inline-block; animation: juicy 2.4s ease-in-out infinite; }
@keyframes juicy { 0%,100% { transform: scale(1) rotate(-1deg); } 50% { transform: scale(1.06) rotate(1deg); } }
.sub { color: var(--muted); margin: 0 auto 2rem; max-width: 640px; }

/* ----- panels ----- */
.panel {
  background: linear-gradient(180deg, var(--panel-top), var(--panel-bot));
  border: 4px solid var(--ink);
  border-radius: var(--r);
  box-shadow: 0 8px 0 rgba(0,0,0,.35), inset 0 2px 0 rgba(255,255,255,.08);
}
.panel h2.panel-title {
  --pad: 2.2rem;
  margin: calc(-0.62em - var(--pad) - 4px) auto .5rem; text-align: center;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}
.price h2.panel-title { --pad: 2.6rem; }

/* ----- chunky buttons ----- */
.btn {
  --c: var(--green); --c-lip: var(--green-lip);
  position: relative; display: inline-block;
  font: 600 1.05rem/1 var(--head);
  color: #fff; text-decoration: none; cursor: pointer;
  border: 0; padding: 0 0 var(--lip); background: none;
  -webkit-tap-highlight-color: transparent;
}
.btn::before {             /* the lip under the face */
  content: ""; position: absolute; inset: 0;
  background: var(--c-lip);
  border: 3px solid var(--ink); border-radius: 16px;
}
.btn > span {              /* the face */
  position: relative; display: block;
  padding: .75em 1.35em;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 78%, #fff) 0%, var(--c) 55%, color-mix(in srgb, var(--c) 85%, #000) 100%);
  border: 3px solid var(--ink); border-radius: 16px;
  -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill;
  transition: transform .14s cubic-bezier(.34,1.56,.64,1);
  overflow: hidden; white-space: nowrap;
}
.btn > span::after {       /* gloss stripe */
  content: ""; position: absolute; left: 6%; right: 6%; top: 8%; height: 36%;
  background: rgba(255,255,255,.22); border-radius: 99px; pointer-events: none;
}
.btn:hover > span { transform: translateY(-2px); }
.btn:active > span, .btn.down > span { transform: translateY(var(--lip)); transition-duration: .05s; }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 4px; border-radius: 18px; }
.btn-sm { font-size: .95rem; --lip: 4px; }
.btn-sm > span { padding: .55em 1.05em; }
.btn-lg { font-size: clamp(1.1rem, 2.2vw, 1.35rem); }
.btn-block { display: block; text-align: center; }
.btn-green  { --c: var(--green);  --c-lip: var(--green-lip); }
.btn-purple { --c: var(--purple); --c-lip: var(--purple-lip); }
.btn-cyan   { --c: var(--cyan);   --c-lip: var(--cyan-lip); }
.btn-gold   { --c: var(--gold);   --c-lip: var(--gold-lip); }
.btn-red    { --c: var(--red);    --c-lip: var(--red-lip); }
.btn-grey   { --c: var(--grey);   --c-lip: var(--grey-lip); }

/* Robux button: breathes, a shine sweeps over every other breath */
.breathe { animation: breathe 2.4s ease-in-out infinite; }
.breathe > span::before {
  content: ""; position: absolute; top: -20%; bottom: -20%; width: 30%; left: -40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.65), transparent);
  transform: skewX(-18deg); animation: shine 4.8s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.1); } }
@keyframes shine { 0%, 55% { left: -40%; } 80%, 100% { left: 130%; } }

/* ----- nav ----- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: #17181d;
  border-bottom: 3px solid var(--ink);
}
.nav-in { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.logo { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: #fff; font: 700 1.35rem var(--head); -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; }
.logo img { width: 38px; height: 38px; }
.links { display: flex; gap: 1.4rem; margin-left: auto; }
.links a { color: var(--muted); text-decoration: none; font-weight: 500; }
.links a:hover { color: #fff; }

/* ----- hero ----- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 2rem; overflow-x: clip; }
.hero-in { display: grid; grid-template-columns: .85fr 1.3fr; gap: 2rem; align-items: center; }
.eyebrow { display: inline-block; margin: 0; padding: .3em .9em; border-radius: 99px; background: rgba(255,194,31,.14); color: var(--gold); font-weight: 600; border: 2px solid rgba(255,194,31,.35); }
.lead { font-size: 1.12rem; color: #dfe1e7; max-width: 560px; }
.lead b { color: #fff; }
.cta { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.6rem 0 1.4rem; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.chips li { display: flex; align-items: center; gap: .45rem; padding: .35rem .8rem .35rem .45rem; background: var(--card); border: 2px solid var(--ink); border-radius: 99px; font-size: .92rem; }
.chips img { width: 28px; height: 28px; }

.hero-art { position: relative; padding: .6rem; }
.shot-frame { border: 5px solid var(--ink); border-radius: 26px; overflow: hidden; box-shadow: 0 14px 0 rgba(0,0,0,.4), 0 30px 60px rgba(0,0,0,.45); background: #222; }
.tilt { transform: rotate(2deg); }
.float { position: absolute; pointer-events: none; z-index: 2; width: clamp(70px, 9vw, 120px); filter: drop-shadow(0 8px 10px rgba(0,0,0,.45)); animation: bob 3.6s ease-in-out infinite; }
.f1 { top: -9%; left: -7%; }
.f2 { bottom: -13%; right: -5%; animation-delay: -1.2s; }
.f3 { bottom: 12%; left: -7%; width: clamp(48px, 6vw, 76px); animation-delay: -2.2s; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-12px) rotate(4deg); } }

/* ----- sections ----- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0 0; }

/* before / after */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.ba-card { margin: 0; }
.plain-win, .cut-box { aspect-ratio: 610/560; width: 100%; }
.plain-win { border: 4px solid var(--ink); border-radius: 18px; }
.ba-card figcaption { margin-top: 2rem; color: var(--muted); display: flex; gap: .6rem; align-items: center; }
.tag { font: 600 .85rem var(--head); padding: .2em .7em; border-radius: 99px; border: 2px solid var(--ink); color: #fff; }
.tag-grey { background: var(--grey-lip); }
.tag-green { background: var(--green-lip); }
.plain-win {
  background: #e9e9e9; color: #222; font-family: Arial, sans-serif;
  padding: 7% 8%; display: flex; flex-direction: column; gap: 4%;
}
.pw-title { font-size: clamp(1rem, 2.2vw, 1.4rem); font-weight: bold; text-align: center; padding-bottom: 2%; border-bottom: 1px solid #bbb; }
.pw-row { flex: 1; display: flex; align-items: center; justify-content: space-between; background: #fff; border: 1px solid #ccc; padding: 0 5%; font-size: clamp(.85rem, 1.6vw, 1.05rem); }
.pw-row button { background: #3b7bd8; color: #fff; border: 0; padding: .45em .9em; font: inherit; }

/* feature cards */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.grid3 { display: flex; flex-wrap: wrap; justify-content: center; }
.grid3 > .card { flex: 0 1 calc((100% - 2.4rem) / 3); }
.card {
  background: linear-gradient(180deg, var(--panel-top), var(--panel-bot));
  border: 4px solid var(--ink); border-radius: var(--r);
  padding: 1.2rem 1.2rem 1.3rem; box-shadow: 0 6px 0 rgba(0,0,0,.35);
  transition: transform .18s cubic-bezier(.34,1.56,.64,1);
}
.card:hover { transform: translateY(-4px) scale(1.03); }
.card img { width: 78px; height: 78px; object-fit: contain; margin-bottom: .4rem; filter: drop-shadow(0 4px 4px rgba(0,0,0,.4)); }
.card h3 { margin: 0 0 .3rem; font: 600 1.2rem var(--head); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* demo */
.demo { padding: 2.2rem 1.5rem 1.6rem; margin-top: 2rem; position: relative; }
.demo .sub { margin-bottom: 1.6rem; }
.demo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.1rem 1.4rem; }
.toasts { position: relative; min-height: 64px; margin-top: 1.4rem; display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.toast {
  font: 600 1.1rem var(--head); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill;
  padding: .45em 1.1em; background: rgba(10,10,14,.6); border: 3px solid var(--ink); border-radius: 14px;
  animation: toastIn .35s cubic-bezier(.34,1.56,.64,1) both;
}
.toast.out { animation: toastOut .3s ease-in forwards; }
.toast.green { color: #8dff86; } .toast.purple { color: #d6b3ff; } .toast.gold { color: #ffe066; } .toast.grey { color: #ff8a8a; }
@keyframes toastIn { from { transform: translateY(14px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toastOut { to { transform: translateY(-10px) scale(.9); opacity: 0; } }
.btn.shake > span { animation: shake .32s; }
@keyframes shake { 20%,60% { transform: translateX(-5px); } 40%,80% { transform: translateX(5px); } }
.burst { position: fixed; width: 10px; height: 10px; border-radius: 3px; pointer-events: none; z-index: 100; }

/* cut-out game UI (no background) */
.cut { filter: drop-shadow(0 14px 22px rgba(0,0,0,.55)); }
.hero-shot { width: 100%; }
.cut-box { display: grid; place-items: center; }
.cut-box .cut { max-height: 100%; width: auto; max-width: 100%; }
.showcase { margin: 0; text-align: center; }

.showcase figcaption { margin-top: 2.2rem; color: var(--muted); }
.play { margin-top: 2.4rem; text-align: center; }
.play-title { font: 600 1.15rem var(--head); color: #fff; margin: 0 0 1rem; }
.play-note { color: var(--muted); font-size: .92rem; max-width: 560px; margin: 1.2rem auto 0; }

/* clickable game windows (live.js): layers cut from the game, drawn at game size and scaled to fit */
.live { position: relative; width: 100%; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.live-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.live-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.live-pop { position: absolute; transform-origin: 50% 50%; }
.live .layer { position: absolute; display: block; max-width: none; width: auto; height: auto; pointer-events: none; }
.live-scroll {
  position: absolute; overflow-x: hidden; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.35) transparent;
}
.live-scroll::-webkit-scrollbar { width: 6px; }
.live-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.35); border-radius: 6px; }
.live .lb {
  position: absolute; border: 0; padding: 0; margin: 0; cursor: pointer;
  background-color: transparent; background-repeat: no-repeat; background-size: 100% 100%;
  transform-origin: 50% 60%; transition: transform .22s cubic-bezier(.3,1.8,.5,1);
}
@media (hover: hover) { .live .lb:hover { transform: scale(1.04); } }
.live .lb.down { transform: translateY(3px) scale(.92); transition-duration: .06s; }
.live .lb:focus-visible { outline: 3px solid #fff; outline-offset: -2px; border-radius: 14px; }
.live .lb.no { animation: lbshake .32s; }
@keyframes lbshake { 20%,60% { translate: -14px 0; } 40%,80% { translate: 14px 0; } }
.live .mv { position: absolute; pointer-events: none; transform-origin: 50% 50%; will-change: transform; }
.live .lclip { position: absolute; overflow: hidden; pointer-events: none; }
.live button.lb, .live .hit { pointer-events: auto; }   /* buttons inside a clip (store list) must still take clicks */
.live .bulb {
  position: absolute; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, rgba(255,245,190,.95) 0 30%, rgba(255,245,190,.45) 55%, transparent 72%);
}
.live .bulb.on { opacity: .55; }
.live .bulb, .live .lb { will-change: transform, opacity; }
.live .fx { position: absolute; left: 0; top: 0; pointer-events: none; background-size: 100% 100%; will-change: transform, opacity; }
.live .tint { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
.live .shine {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
}
.live .shine::after {
  content: ""; position: absolute; top: -10%; bottom: -10%; width: 35%; left: 0;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: translateX(-130%) skewX(-18deg); will-change: transform;
}
.live .shine.go::after { animation: sweep .6s ease-in-out; }
@keyframes sweep { to { transform: translateX(300%) skewX(-18deg); } }
.live .hit { position: absolute; border: 0; padding: 0; margin: 0; background: transparent; cursor: pointer; }
.live .hit:focus-visible { outline: 3px solid #fff; outline-offset: -2px; border-radius: 14px; }
.live-toasts {
  position: absolute; left: 0; right: 0; bottom: 4%; z-index: 3; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 0 .5rem; text-align: center;
}
.live-toasts .toast { font-size: clamp(.8rem, 2.4vw, 1.05rem); -webkit-text-stroke-width: 3px; }
.live-hint {
  position: absolute; left: 50%; bottom: -1.5rem; z-index: 3; pointer-events: none; white-space: nowrap;
  font: 600 .9rem var(--head); color: var(--ink); background: var(--gold);
  padding: .2em .8em; border: 3px solid var(--ink); border-radius: 999px;
  box-shadow: 0 4px 0 var(--gold-lip); transform: translateX(-50%) rotate(-3deg);
}
.showcase .live { max-width: 1000px; margin: 0 auto; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.gallery figure { margin: 0; border: 4px solid var(--ink); border-radius: 18px; overflow: hidden; background: #111; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figure { display: flex; flex-direction: column; }
.gallery img { flex: 1; min-height: 0; }
.gallery figcaption { padding: .45rem .8rem; background: var(--ink); font: 600 1rem var(--head); color: #fff; }
.g-big { grid-column: span 2; grid-row: span 2; }
.g-wide { grid-column: span 2; }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.step { padding: 1.6rem 1.3rem 1.3rem; position: relative; }
.step h3, .buy-steps h3 { margin: .4rem 0 .3rem; font: 600 1.25rem var(--head); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; }
.step p { margin: 0; color: var(--muted); }
.num {
  display: grid; place-items: center; width: 46px; height: 46px; flex: none;
  font: 700 1.4rem var(--head); color: #fff; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill;
  background: linear-gradient(180deg, #ffd65a, var(--orange)); border: 3px solid var(--ink); border-radius: 50%;
  box-shadow: 0 4px 0 var(--ink);
}
.need { display: flex; align-items: center; justify-content: center; gap: .5rem; color: var(--muted); margin-top: 1.4rem; text-align: center; }
.need img { width: 28px; }

/* code */
.code {
  margin: 0; padding: 1.3rem 1.4rem; overflow-x: auto;
  background: #101116; border: 4px solid var(--ink); border-radius: 18px; box-shadow: 0 6px 0 rgba(0,0,0,.35);
  font: .88rem/1.65 ui-monospace, "Cascadia Code", Consolas, monospace; color: #e6e6e6;
}
.code code { background: none; padding: 0; word-break: normal; }
.code .k { color: #ff7ab8; } .code .f { color: #7ad7ff; } .code .s { color: #a6e86b; } .code .n { color: #ffc864; } .code .c { color: #7f8496; font-style: italic; }

/* price */
.price { padding: 2.6rem 2rem 2rem; margin-top: 2.4rem; text-align: center; }
.price-tag { font: 700 clamp(2.6rem, 7vw, 3.6rem)/1 var(--head); color: var(--green); -webkit-text-stroke: 7px var(--ink); paint-order: stroke fill; margin: .6rem 0 1.4rem; }
.price-tag small { display: block; font: 500 1rem var(--body); color: var(--muted); -webkit-text-stroke: 0; margin-top: .5rem; }
.ticks { list-style: none; padding: 0; margin: 0 auto 1.8rem; max-width: 520px; text-align: left; }
.ticks li { position: relative; padding: .45rem 0 .45rem 2.1rem; border-bottom: 1px dashed rgba(255,255,255,.12); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .6rem; width: 22px; height: 22px;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat;
  border: 2px solid var(--ink); border-radius: 50%;
}

/* buy */
.buy { display: grid; grid-template-columns: 340px 1fr; gap: 2rem; align-items: start; }
.qr-box { padding: 1.4rem; text-align: center; }
.qr, .qr-empty { width: 100%; aspect-ratio: 1; border-radius: 14px; border: 3px solid var(--ink); background: #fff; object-fit: contain; }
.qr-empty { display: grid; place-content: center; color: #555; font: 600 1.2rem var(--head); background: repeating-linear-gradient(45deg, #f2f2f2 0 12px, #e6e6e6 12px 24px); }
.qr-empty[hidden], .qr[hidden] { display: none; }
.qr-name { margin: .9rem 0 .2rem; color: var(--muted); }
.qr-name b { color: #fff; }
.qr-amt { margin: 0; font-size: 1.1rem; }
.qr-amt b { font: 700 1.5rem var(--head); color: var(--green); -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; }
.buy-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.buy-steps li { display: flex; gap: 1rem; align-items: flex-start; background: var(--card); border: 3px solid var(--ink); border-radius: 18px; padding: 1rem 1.2rem; }
.buy-steps h3 { margin-top: 0; }
.buy-steps p { margin: 0; color: var(--muted); }
.buy-steps .buy-cta { background: none; border: 0; padding: .4rem 0 0; }

/* faq */
.faq { display: grid; gap: .8rem; }
.faq details { padding: 0; border-radius: 18px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 1rem 3.2rem 1rem 1.3rem; position: relative;
  font: 600 1.12rem var(--head); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1rem; top: 50%; translate: 0 -50%;
  width: 32px; height: 32px; display: grid; place-items: center; color: #fff;
  background: var(--cyan); border: 3px solid var(--ink); border-radius: 50%; font: 700 1.6rem/1 var(--head);
  -webkit-text-stroke: 0; transition: rotate .2s;
}
.faq details[open] summary::after { rotate: 45deg; background: var(--orange); }
.faq details p { margin: 0; padding: 0 1.3rem 1.2rem; color: var(--muted); }

/* footer */
.foot { margin-top: 5rem; padding: 2.5rem 0; border-top: 3px solid var(--ink); background: #121317; }
.foot-in { display: grid; gap: .6rem; justify-items: center; text-align: center; }
.foot p { margin: 0; color: var(--muted); }
.foot nav { display: flex; gap: 1.4rem; flex-wrap: wrap; justify-content: center; }
.foot nav a { color: #fff; text-decoration: none; font-weight: 500; }
.foot nav a:hover { color: var(--cyan); }
.small { font-size: .8rem; max-width: 620px; opacity: .75; }

/* terms page */
.doc { padding: 3rem 0 1rem; }
.doc .panel { padding: 2rem clamp(1.2rem, 4vw, 2.4rem); }
.doc h2 { font: 600 1.35rem var(--head); margin: 1.6rem 0 .4rem; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; }
.doc p, .doc li { color: #dcdee4; }
.doc .todo { color: var(--gold); }

/* ----- tablet ----- */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero-in { grid-template-columns: 1fr; gap: 2rem; }
  .hero-art { width: 100%; max-width: 680px; margin-inline: auto; padding: .6rem 0; }
  .links { display: none; }
  .nav-in .btn { margin-left: auto; }
  .buy { grid-template-columns: 1fr; }
  .qr-box { max-width: 340px; width: 100%; margin-inline: auto; }
}

/* ----- phone ----- */
@media (max-width: 640px) {
  .wrap, .narrow { width: calc(100% - 28px); }
  .nav-in { height: 60px; }
  .logo { font-size: 1.15rem; }
  .logo img { width: 32px; height: 32px; }
  .lead { font-size: 1.02rem; }
  .cta .btn { flex: 1 1 100%; text-align: center; }
  .ba { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .card { padding: .9rem; }
  .card img { width: 58px; height: 58px; }
  .card h3 { font-size: 1.05rem; }
  .card p { font-size: .86rem; }
  .gallery { grid-template-columns: 1fr; }
  .g-big, .g-wide { grid-column: auto; grid-row: auto; }
  .steps { grid-template-columns: 1fr; }
  .demo-row .btn { font-size: 1.05rem; }
  .code { font-size: .76rem; padding: 1rem; }
  .price { padding: 2.4rem 1.2rem 1.5rem; }
  .buy-steps .buy-cta .btn { display: block; text-align: center; }
}

/* less motion asked for: no smooth scrolling and no page-level moving extras; the game windows (.live) and the
   demo buttons keep moving, because their motion is the product being shown */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float { animation: none; }
}

/* "inside" cards: last row centred */
@media (max-width: 980px) { .grid3 > .card { flex-basis: calc((100% - 1.2rem) / 2); } }
@media (max-width: 640px) { .grid3 > .card { flex-basis: calc((100% - .8rem) / 2); } }

/* game stats cards */
.games { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; max-width: 860px; margin: 0 auto; text-align: left; }
.game { display: flex; flex-direction: column; gap: 1rem; }
.game:hover { transform: none; }
.game-head { display: flex; align-items: center; gap: .9rem; }
.game-head img { width: 72px; height: 72px; border-radius: 16px; border: 3px solid var(--ink); flex: none; }
.game-head h3 { margin: 0; font: 600 1.2rem var(--head); }
.game-sub { margin: .15rem 0 0; color: var(--muted); font-size: .85rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.stat { background: rgba(0,0,0,.28); border-radius: 14px; padding: .6rem .3rem; text-align: center; }
.stat b { display: block; font: 700 1.3rem var(--head); color: var(--gold); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; }
.stat span { display: block; color: var(--muted); font-size: .78rem; line-height: 1.3; margin-top: .2rem; }
.game .btn { align-self: stretch; text-align: center; justify-content: center; }
@media (max-width: 640px) { .games { grid-template-columns: 1fr; } }

/* hero: the shop takes more room, so the title is a little smaller beside it */
.hero h1.ink { font-size: clamp(2rem, 3.3vw, 2.75rem); }
@media (max-width: 980px) { .hero h1.ink { font-size: clamp(2.1rem, 6.4vw, 3.4rem); } }

/* "before": the egg shop Roblox's own AI made */
.before-shot { display: block; width: 100%; max-width: 520px; height: auto; margin-inline: auto; filter: drop-shadow(0 10px 18px rgba(0,0,0,.45)); }

/* rise into place on scroll (main.js adds .rv, then .in when seen) */
.rv { opacity: 0; transform: translateY(32px); transition: opacity .6s ease var(--d, 0ms), transform .75s cubic-bezier(.2,.9,.25,1.05) var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }

/* menu: the section being read lights up */
.links a { position: relative; transition: color .2s; }
.links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px; border-radius: 3px; background: var(--gold); transform: scaleX(0); transition: transform .25s cubic-bezier(.3,1.4,.5,1); }
.links a.on { color: #fff; }
.links a.on::after { transform: scaleX(1); }

/* phone buy bar */
.buybar { display: none; }
@media (max-width: 640px) {
  .buybar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: .55rem max(.8rem, env(safe-area-inset-right)) calc(.55rem + env(safe-area-inset-bottom)) max(.8rem, env(safe-area-inset-left));
    background: rgba(23,24,29,.96); border-top: 3px solid var(--ink);
    transform: translateY(110%); transition: transform .3s cubic-bezier(.3,1.3,.5,1);
  }
  .buybar.show { transform: none; }
  .buybar-in { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
  .buybar-t { font: 600 1rem var(--head); color: #fff; }
  .buybar-t b { color: var(--gold); margin-left: .3rem; }
  body { padding-bottom: 4.2rem; }
}

/* ----- automatic buying + thanks page ----- */
[hidden] { display: none !important; }
.auto-cta { margin-top: 1.6rem; }
.pay-err { color: #ff8a8a; margin: .8rem 0 0; }
.buy-link.wait { opacity: .6; pointer-events: none; }
.thanks { text-align: center; padding: 2.2rem 1.6rem; }
.thanks-ic { display: block; width: 96px; height: 96px; object-fit: contain; margin: 0 auto; }
.doc .thanks { margin: 2rem 0 4rem; }
.thanks h1 { margin: .6rem 0 .4rem; }
.thanks .btn { margin: 1rem 0 .4rem; }
.thanks-next { text-align: left; margin-top: 1.6rem; }
.thanks-next h2 { font-size: 1.2rem; }
.thanks-next code { word-break: break-all; }

/* launch price: the normal price crossed out beside it */
.launch-tag { display: inline-block; margin: .8rem 0 0; padding: .2rem .8rem; border-radius: 999px; background: var(--gold, #ffc531); color: #1a1a1a; font: 600 .95rem var(--head); }
.old-price { font-size: .5em; color: var(--muted); -webkit-text-stroke: 0; margin-right: .5rem; vertical-align: middle; text-decoration-thickness: 3px; text-decoration-color: #ff5a5a; }

/* the shop in the lower section: kept smaller than the wheel was (it is taller) */
.showcase .live[data-live="store"] { max-width: 760px; }
