:root {
  --bg: #0d0b0f;
  --panel: #161318;
  --panel-2: #1c181f;
  --line: #2b2430;
  --text: #f6eef8;
  --muted: #a99bb0;
  --pink: #fc94fc;
  --pink-light: #ffd6ff;
  --pink-dark: #ec80f4;
  --gold: #ffd36e;
  --blue: #8fd8ff;
  --blurple: #5865f2;
  --purple-grad: linear-gradient(90deg, #efdcff, #c08cff, #9a5cff);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Montserrat, system-ui, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }

/* smooth page transitions */
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
body { animation: pageIn .3s ease both; }
body.leaving { opacity: 0; transform: translateY(-6px); transition: opacity .18s ease, transform .18s ease; }
@media (prefers-reduced-motion: reduce) { body { animation: none; } body.leaving { transition: none; } }

/* in-place page switching: only <main> fades, everything else stays */
[data-page-bg].page-out { opacity: 0; transition: opacity .15s ease; }
[data-page-bg].bg-in { animation: bgIn .4s ease both; }
@keyframes bgIn { from { opacity: 0; } }
main.page-out { opacity: 0; transform: translateY(-6px); transition: opacity .15s ease, transform .15s ease; }
main.page-in { animation: mainIn .32s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes mainIn { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { main.page-out { transition: none; } main.page-in { animation: none; } }
.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }

/* nav */
nav.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(13, 11, 15, .8);
  backdrop-filter: blur(14px);
}
nav.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(252, 148, 252, .55), rgba(192, 140, 255, .55), transparent); }
nav.topbar .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 66px; gap: 16px; }
.brand { justify-self: start; display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: .4px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 14px rgba(252, 148, 252, .5); }
.links { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(22, 19, 24, .7); }
.links a { padding: 7px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--muted); transition: color .15s, background .15s; }
.links a:hover { color: var(--text); background: rgba(252, 148, 252, .12); }
.links a.active { color: #fff; background: rgba(252, 148, 252, .16); }
.account { justify-self: end; display: flex; align-items: center; gap: 10px; }
.signin { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 10px; background: #5865f2; color: #fff;
  font-weight: 800; font-size: 14px; transition: background .15s, box-shadow .15s; }
.signin:hover { background: #4752c4; box-shadow: 0 0 20px rgba(88, 101, 242, .5); }
.signin svg { width: 18px; height: 18px; }
.me { position: relative; }
.me > button { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.me > button img { width: 28px; height: 28px; border-radius: 50%; }
.me .menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; padding: 6px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--panel); box-shadow: 0 12px 30px rgba(0, 0, 0, .5); display: none; }
.me.open .menu { display: block; }
.me .menu a, .me .menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; border: none; background: none;
  color: var(--text); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.me .menu a:hover, .me .menu button:hover { background: rgba(252, 148, 252, .12); }
.me .menu .dash { color: var(--pink); }
.menu-btn { display: none; width: 42px; height: 38px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .2s, opacity .2s; }
.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; position: fixed; top: 70px; right: 12px; left: 12px; z-index: 19; flex-direction: column; gap: 4px; padding: 8px;
  border: 1px solid var(--line); border-radius: 14px; background: rgba(16, 17, 22, .97); backdrop-filter: blur(12px); box-shadow: 0 16px 40px rgba(0, 0, 0, .55); }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 13px 14px; border-radius: 10px; font-weight: 700; font-size: 15px; color: var(--text); }
.mobile-menu a:hover, .mobile-menu a.active { background: rgba(252, 148, 252, .1); }
@media (min-width: 761px) { .mobile-menu { display: none !important; } }
@media (max-width: 760px) { nav.topbar .wrap { grid-template-columns: 1fr auto auto; } .links { display: none; } .signin span { display: none; } .menu-btn { display: flex; } }

/* buttons */
.btn {
  font-family: inherit;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-weight: 800; font-size: 15px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--text);
  transition: transform .15s, box-shadow .15s, border-color .15s; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); border-color: var(--pink); }
.btn.primary {
  background: linear-gradient(90deg, var(--pink-light), var(--pink), var(--pink-dark));
  color: #2a0c2e; border: none; box-shadow: 0 0 24px rgba(252, 148, 252, .45);
}
.btn.primary:hover { box-shadow: 0 0 36px rgba(252, 148, 252, .7); }
.ptext { background: var(--purple-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn.gold { border: 1px solid var(--line); }
.btn.gold:hover {
  border-color: transparent;
  background: linear-gradient(var(--panel-2), var(--panel-2)) padding-box, var(--purple-grad) border-box;
  box-shadow: 0 0 24px rgba(166, 92, 255, .45);
}
.pktext { background: linear-gradient(90deg, #ffd6ff, #fc94fc, #ec80f4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn.pinkline { border: 1px solid transparent; background: linear-gradient(var(--panel-2), var(--panel-2)) padding-box, linear-gradient(90deg, #ffd6ff, #fc94fc, #ec80f4) border-box; }
.btn.pinkline:hover { box-shadow: 0 0 24px rgba(252, 148, 252, .45); }
.btn.purple { background: var(--purple-grad); color: #1e0a33; border: none; box-shadow: 0 0 24px rgba(166, 92, 255, .45); }
.btn.purple:hover { box-shadow: 0 0 36px rgba(166, 92, 255, .7); }
.btn.discord { background: #5865f2; border-color: #5865f2; color: #fff; }
.btn.discord:hover { background: #4752c4; border-color: #4752c4; box-shadow: 0 0 22px rgba(88, 101, 242, .5); }

/* hero */
.hero { position: relative; padding: 96px 0 104px; text-align: center; overflow: hidden; }
.collage {
  position: absolute; inset: -140px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px;
  transform: rotate(-8deg); filter: blur(4px) brightness(.55) saturate(1.4); z-index: -2;
}
.collage div { aspect-ratio: 16 / 9; border-radius: 10px; background-size: cover; background-position: center; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(13, 11, 15, .25), rgba(13, 11, 15, .92) 72%),
    linear-gradient(120deg, rgba(255, 60, 255, .22), rgba(140, 60, 255, .1) 50%, rgba(255, 60, 200, .22));
}
.hero-logo {
  width: 120px; height: 120px; border-radius: 22px; border: 3px solid var(--pink);
  box-shadow: 0 0 30px var(--pink), 0 0 70px rgba(252, 148, 252, .45);
}
.hero h1 {
  display: block; width: fit-content; margin: 18px auto 10px; font-weight: 800; letter-spacing: 1px;
  font-size: clamp(52px, 10vw, 96px); line-height: 1.1;
  filter: drop-shadow(0 0 18px rgba(252, 148, 252, .55));
}
.shine {
  background: linear-gradient(90deg, #ffd6ff, #fdb5fd, #ec80f4, #fdb5fd, #ffd6ff, #fdb5fd, #ec80f4, #fdb5fd, #ffd6ff);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 5.7s linear infinite;
}
@keyframes shine { from { background-position: 0% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .shine { animation: none; } }
.hero p { margin: 0 auto 30px; max-width: 560px; font-size: 19px; color: #e9dcef; font-weight: 500; }
.hero p b { color: var(--pink); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* stars */
.star { position: absolute; top: -20px; color: var(--pink); pointer-events: none; z-index: -1; animation: fall linear infinite; text-shadow: 0 0 8px currentColor; }
@keyframes fall { to { transform: translateY(820px) rotate(360deg); } }
body { position: relative; }
#starfield {
  position: absolute; top: 66px; left: 0; right: 0; bottom: var(--foot-h, 0px); z-index: -2; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(900px 520px at 50% -8%, rgba(252, 148, 252, .13), transparent 62%),
    radial-gradient(820px 640px at 100% 108%, rgba(154, 92, 255, .11), transparent 60%),
    radial-gradient(760px 520px at -5% 45%, rgba(255, 90, 210, .07), transparent 60%);
}
.sky-star { position: absolute; top: -24px; color: var(--pink); pointer-events: none; text-shadow: 0 0 8px currentColor; animation: fall-sky linear infinite; }
@keyframes fall-sky { from { top: -24px; transform: rotate(0); } to { top: 100%; transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sky-star { animation: none; } }

/* page heading (used on games / pricing / getkey tops) */
.page-head { text-align: center; padding: 64px 0 36px; }
.page-head h1 { margin: 0 0 8px; font-size: clamp(34px, 6vw, 52px); font-weight: 800; }
.page-head h1 span { background: var(--purple-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-head h1 span.pink { background: linear-gradient(90deg, #ffd6ff, #fc94fc, #ec80f4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-head p { margin: 0; color: var(--muted); font-size: 17px; }

/* sections */
section { padding: 60px 0; }
h2 { font-size: clamp(28px, 4vw, 38px); margin: 0 0 8px; font-weight: 800; }
h2 span { color: var(--pink); }
.sub { color: var(--muted); margin: 0 0 34px; }

/* games */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
@media (max-width: 520px) { .games { grid-template-columns: 1fr 1fr; gap: 10px; } .game div { font-size: 12px; padding: 8px 10px; } }
.game {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.game:hover { transform: translateY(-3px); border-color: var(--pink); box-shadow: 0 0 22px rgba(252, 148, 252, .25); }
.game img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.game div { padding: 10px 12px; font-weight: 700; font-size: 14px; }
button.game { padding: 0; text-align: left; color: inherit; font: inherit; cursor: pointer; width: 100%; }
.game div { display: flex; flex-direction: column; gap: 2px; }
.game small { color: var(--muted); font-weight: 600; font-size: 12px; }
.game:hover small { color: var(--pink); }

/* script */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.code {
  display: flex; align-items: center; gap: 12px; background: #0a080b; border: 1px solid var(--line);
  border-radius: 10px; padding: 14px 16px; font-family: ui-monospace, Consolas, monospace; font-size: 14px;
}
.code code { flex: 1; overflow-x: auto; white-space: nowrap; color: #f3d6f6; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.step { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.step b { display: block; color: var(--pink); font-size: 26px; font-family: Pacifico, cursive; font-weight: 400; }
.step h3 { margin: 4px 0 6px; font-size: 16px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; }
.plan.premium { border: 2px solid transparent; background: linear-gradient(var(--panel), var(--panel)) padding-box, var(--purple-grad) border-box; box-shadow: 0 0 32px rgba(166, 92, 255, .28); }
.plan h3 { margin: 0; font-size: 20px; }
.price { font-size: 44px; font-weight: 800; margin: 8px 0 0; line-height: 1; }
.price small { font-size: 15px; color: var(--muted); font-weight: 600; }
.per { margin: 6px 0 2px; color: var(--muted); font-weight: 700; font-size: 13px; letter-spacing: .4px; text-transform: uppercase; }
.plan.premium li::before { color: #c08cff; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; flex: 1; }
.plan li { padding: 6px 0; color: #e3d6e8; }
.plan li::before { content: "★ "; color: var(--pink); }
.plan.free li::before { color: #fff; }

footer { border-top: 1px solid var(--line); padding: 30px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand img { width: 28px; height: 28px; border-radius: 8px; box-shadow: 0 0 12px rgba(252, 148, 252, .45); }
.foot-discord { padding: 8px 16px; font-size: 14px; }
/* copy button (shared) */
.copybtn {
  flex: none; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: 9px;
  border: none; background: linear-gradient(90deg, var(--pink-light), var(--pink), var(--pink-dark)); color: #2a0c2e;
  font-family: Montserrat, sans-serif; font-weight: 800; font-size: 13px; cursor: pointer; white-space: nowrap;
  box-shadow: 0 0 18px rgba(252, 148, 252, .4); transition: box-shadow .15s, transform .12s, background .2s;
}
.copybtn:hover { box-shadow: 0 0 28px rgba(252, 148, 252, .7); transform: translateY(-1px); }
.copybtn:active { transform: translateY(0); }
.copybtn.ok { background: linear-gradient(90deg, #bdfcd0, #7cfc9a); color: #0c2a16; }
.copybtn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.copybtn svg { width: 15px; height: 15px; }

/* cursor glow */
#cursor-glow {
  position: fixed; top: 0; left: 0; width: 460px; height: 460px; border-radius: 50%; z-index: -1;
  pointer-events: none; opacity: 0; mix-blend-mode: screen; transition: opacity .3s ease, width .2s ease, height .2s ease;
  background: radial-gradient(circle, rgba(252, 148, 252, .12), rgba(192, 140, 255, .06) 40%, transparent 68%);
}
#cursor-glow.click { width: 520px; height: 520px; }
@media (hover: none) { #cursor-glow { display: none; } }
