/* kittycore: palette taken from the menu (grey base, pastel pink + lavender accents). */
:root {
  --base: #0D0D0F; --deep: #07070A; --side: #15151A; --card: #1A1A1E; --input: #0B0B0D;
  --line: rgba(255, 255, 255, .07); --line-strong: rgba(255, 255, 255, .14);
  --pink: #F5B8D3; --pink-soft: #F8CFDF; --lav: #C8B6FF; --lav-soft: #D7C9FF;
  --text: #E6E4EE; --dim: #868AA8; --faint: #585C7C;
  --ok: #8FE3B0; --warn: #F5D38A; --bad: #F59A9A;
  --grad: linear-gradient(135deg, #F8CFDF 0%, #F5B8D3 40%, #C8B6FF 100%);
  --radius: 14px; --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; color-scheme: dark; }
body {
  margin: 0; background: var(--deep); color: var(--text); font: 15px/1.6 Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
h1, h2, h3, h4, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(245, 184, 211, .3); }
:focus-visible { outline: 2px solid var(--lav); outline-offset: 2px; border-radius: 6px; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dim { color: var(--dim); }
[hidden] { display: none !important; }

/* ---------- buttons, pills, fields ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .03); font-weight: 600; font-size: 14px; cursor: pointer;
  transition: transform .25s var(--ease), background .2s, border-color .2s, box-shadow .25s;
}
.btn:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .24); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.primary { background: var(--pink); border-color: transparent; color: #0D0D0F; }
.btn.primary:hover { background: var(--pink-soft); box-shadow: 0 8px 28px rgba(245, 184, 211, .28); }
.btn.small { padding: 6px 11px; font-size: 12.5px; border-radius: 8px; }
.btn.danger { color: var(--bad); border-color: rgba(245, 154, 154, .25); }
.btn:disabled { opacity: .5; pointer-events: none; }
.pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 600;
  color: var(--pink); background: rgba(245, 184, 211, .08); border: 1px solid rgba(245, 184, 211, .18); white-space: nowrap;
}
.pill.lav { color: var(--lav); background: rgba(200, 182, 255, .08); border-color: rgba(200, 182, 255, .18); }
.pill.bad { color: var(--bad); background: rgba(245, 154, 154, .08); border-color: rgba(245, 154, 154, .25); }
.pill.grey { color: var(--dim); background: rgba(255, 255, 255, .04); border-color: var(--line); }
.status { color: var(--c); background: color-mix(in srgb, var(--c) 9%, transparent); border-color: color-mix(in srgb, var(--c) 24%, transparent); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); animation: pulse 2.4s ease-in-out infinite; }
.status[data-s=undetected] { --c: var(--ok); } .status[data-s=updating] { --c: var(--warn); }
.status[data-s=detected] { --c: var(--bad); } .status[data-s=offline] { --c: var(--dim); }
.field { display: grid; gap: 6px; font-size: 13px; color: var(--dim); }
.input, select.input, textarea.input {
  width: 100%; padding: 10px 12px; background: var(--input); border: 1px solid var(--line); border-radius: 9px; color: var(--text);
  font-size: 14px; transition: border-color .2s, box-shadow .2s;
}
.input:focus { outline: 0; border-color: rgba(245, 184, 211, .5); box-shadow: 0 0 0 3px rgba(245, 184, 211, .1); }
textarea.input { resize: vertical; min-height: 84px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.msg { font-size: 13px; min-height: 20px; color: var(--bad); }
.msg.ok { color: var(--ok); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.nav.scrolled { background: rgba(13, 13, 15, .78); backdrop-filter: blur(14px); border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font: 800 19px Nunito, system-ui, sans-serif; letter-spacing: -.4px; }
.brand img { width: 24px; height: 28px; animation: breath 2.8s ease-in-out infinite; }
.nav nav { display: flex; gap: 4px; margin-right: auto; }
.nav nav a { padding: 7px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--dim); transition: color .2s, background .2s; }
.nav nav a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.nav .right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.banner { padding: 9px 20px; text-align: center; font-size: 13px; color: var(--pink-soft); background: rgba(245, 184, 211, .07); border-bottom: 1px solid rgba(245, 184, 211, .14); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 76px 0 96px; }
.hero::before {
  content: ""; position: absolute; inset: -64px 0 0; z-index: -1; pointer-events: none;
  background: radial-gradient(700px 420px at 78% 30%, rgba(200, 182, 255, .13), transparent 65%),
    radial-gradient(620px 420px at 12% 0%, rgba(245, 184, 211, .09), transparent 65%);
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; }
.hero h1 { font: 800 clamp(40px, 5.6vw, 66px)/1.04 Nunito, system-ui, sans-serif; letter-spacing: -1.8px; margin: 20px 0 18px; }
.hero p.lead { font-size: 17.5px; color: var(--dim); max-width: 520px; }
.hero .cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero .cta .btn { padding: 13px 24px; font-size: 15px; }
.hero .tags { display: flex; gap: 8px; flex-wrap: wrap; }
.ghost-stage { position: relative; display: grid; place-items: center; min-height: 380px; }
.ghost-stage::before {
  content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 182, 255, .2), transparent 62%); animation: glow 5s ease-in-out infinite;
}
.ghost-stage { perspective: 900px; }
.ghost-tilt { position: relative; transform-style: preserve-3d; will-change: transform; }
.ghost-stage .ghost { position: relative; width: 230px; height: auto; animation: float 4s ease-in-out infinite; filter: drop-shadow(0 0 34px rgba(200, 182, 255, .42)); }
.ghost-body { animation: ghost-sway 5s ease-in-out infinite; transform-origin: 120px 240px; }
.ear-l { transform-origin: 70px 58px; animation: ear-l 7s ease-in-out infinite; }
.ear-r { transform-origin: 170px 58px; animation: ear-r 7s ease-in-out infinite; }
.ghost-shine { animation: shine 7s ease-in-out infinite; }
.eye { transform-origin: center; transform-box: fill-box; transition: transform .08s; }
.ghost-tilt { cursor: pointer; pointer-events: auto; }
.ghost-stage .ghost { pointer-events: none; }
/* shove: squashes and lurches away from the click, then springs back; direction set per click from JS */
.ghost-tilt.shove { animation: shove .6s cubic-bezier(.22, 1.5, .45, 1); }
.ghost-tilt.shove .ghost-body { animation: none; }
@keyframes shove {
  0% { transform: translate(0, 0) rotate(0) scale(1, 1); }
  18% { transform: translate(var(--sx, -20px), var(--sy, 0)) rotate(var(--sr, -10deg)) scale(.9, 1.08); }
  55% { transform: translate(calc(var(--sx, -20px) * -.25), calc(var(--sy, 0) * -.25)) rotate(calc(var(--sr, -10deg) * -.35)) scale(1.04, .97); }
  100% { transform: translate(0, 0) rotate(0) scale(1, 1); }
}
/* moods: the normal face swaps for one of the two mood faces; the body animation changes with it */
.face { display: none; }
.mood-dizzy .face-dizzy, .mood-angry .face-angry { display: block; }
.mood-dizzy .eyes, .mood-dizzy .mouth-normal, .mood-angry .eyes, .mood-angry .mouth-normal { display: none; }
.mood-dizzy .ghost { animation: dizzy .85s ease-in-out infinite; }
.mood-dizzy .spiral { transform-box: fill-box; transform-origin: center; animation: spin 1.1s linear infinite; }
.mood-dizzy .stars { transform-origin: 120px 44px; animation: spin 1.5s linear infinite; }
.mood-angry .ghost { animation: shake .14s linear infinite; filter: drop-shadow(0 0 34px rgba(242, 107, 138, .55)); }
.mood-angry .ghost-body { fill: url(#hg_angry); animation: none; }
.mood-angry .ear-l { animation: none; transform: rotate(-18deg); }
.mood-angry .ear-r { animation: none; transform: rotate(18deg); }
.mood-angry .mark { transform-box: fill-box; transform-origin: center; animation: mark-pulse .45s ease-in-out infinite alternate; }
.mood-angry .ghost-shine { animation: none; }
@keyframes dizzy { 0%, 100% { transform: rotate(-8deg) translateX(-6px); } 50% { transform: rotate(8deg) translateX(6px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shake { 0%, 100% { transform: translate(-3px, 0) rotate(-1.5deg); } 50% { transform: translate(3px, 1px) rotate(1.5deg); } }
@keyframes mark-pulse { from { transform: scale(.85); opacity: .7; } to { transform: scale(1.15); opacity: 1; } }
.eyes.blink .eye { transform: scaleY(.08); }
.wisps { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.wisp {
  position: absolute; left: calc(50% + var(--x)); bottom: 56px; width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle, rgba(248, 207, 223, .9), rgba(200, 182, 255, .35) 60%, transparent 70%);
  animation: wisp var(--t) ease-out forwards;
}
@keyframes wisp { 0% { opacity: 0; transform: translate(0, 0) scale(.4); } 15% { opacity: .9; } 100% { opacity: 0; transform: translate(calc(var(--x) * -.4), -260px) scale(1.1); } }
@keyframes ghost-sway { 0%, 100% { transform: scaleX(1) skewX(0); } 30% { transform: scaleX(1.03) skewX(-1.2deg); } 70% { transform: scaleX(.98) skewX(1deg); } }
@keyframes ear-l { 0%, 80%, 100% { transform: rotate(0); } 86% { transform: rotate(-9deg); } 92% { transform: rotate(4deg); } }
@keyframes ear-r { 0%, 60%, 100% { transform: rotate(0); } 66% { transform: rotate(9deg); } 72% { transform: rotate(-4deg); } }
@keyframes shine { 0%, 55% { transform: translateX(0); } 75%, 100% { transform: translateX(420px); } }
.ghost-stage .floor {
  position: absolute; bottom: 30px; width: 170px; height: 16px; filter: blur(5px);
  background: radial-gradient(ellipse, rgba(245, 184, 211, .34), transparent 70%); animation: floor 4s ease-in-out infinite;
}
.hero .wrap.facts { display: grid; grid-template-columns: repeat(4, 1fr); align-items: stretch; gap: 12px; margin-top: 68px; }
.fact { display: flex; flex-direction: column; justify-content: center; min-height: 92px; padding: 16px 18px; background: rgba(255, 255, 255, .02); border: 1px solid var(--line); border-radius: 12px; }
.fact b { display: block; font: 800 20px Nunito, sans-serif; color: var(--pink-soft); }
.fact span { font-size: 13px; color: var(--dim); }

/* ---------- sections ---------- */
section.block { padding: 88px 0; }
.title { text-align: center; margin-bottom: 44px; }
.title small { font: 500 12px 'JetBrains Mono', monospace; letter-spacing: 3px; text-transform: uppercase; color: var(--lav); }
.title h2 { font: 800 clamp(28px, 3.6vw, 40px)/1.15 Nunito, sans-serif; letter-spacing: -1px; margin: 10px 0 10px; }
.title p { color: var(--dim); max-width: 560px; margin-inline: auto; }

/* features: laid out like the menu (modules on the left, cards on the right) */
.features { display: grid; grid-template-columns: 210px 1fr; overflow: hidden; background: var(--base); }
.features .tabs { background: var(--side); border-right: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; gap: 2px; }
.features .tabs small { font-size: 10px; font-weight: 700; letter-spacing: 1.4px; color: #4C4F6E; padding: 0 10px 10px; }
.features .tabs button {
  position: relative; display: flex; align-items: center; gap: 11px; padding: 10px; border: 0; border-radius: 8px; background: none;
  color: var(--dim); font-size: 14px; font-weight: 500; cursor: pointer; text-align: left; transition: color .2s, background .2s;
}
.features .tabs button:hover { color: var(--text); }
.features .tabs button::before {
  content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 2px; background: var(--pink); border-radius: 0 2px 2px 0;
  transform: scaleY(0); transition: transform .3s var(--ease);
}
.features .tabs button[aria-selected=true] { color: var(--pink); background: rgba(245, 184, 211, .1); font-weight: 600; }
.features .tabs button[aria-selected=true]::before { transform: scaleY(1); }
.features .tabs svg { width: 16px; height: 16px; flex: none; }
.features .panel { padding: 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; align-content: start; min-height: 396px; }
.feat { padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 11px; animation: rise .45s var(--ease) backwards; transition: border-color .25s, transform .25s var(--ease); }
.feat:hover { border-color: rgba(245, 184, 211, .25); transform: translateY(-2px); }
.feat h4 { font-size: 14.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.feat h4 em { font-style: normal; padding: 1px 6px; font-size: 10px; font-weight: 600; color: var(--lav); background: rgba(200, 182, 255, .1); border-radius: 4px; }
.feat p { font-size: 13.5px; color: var(--dim); }
.feat ul { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 5px; }
.feat li { padding: 2px 7px; font-size: 11.5px; color: var(--dim); background: var(--input); border: 1px solid var(--line); border-radius: 5px; }

/* games */
.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); gap: 18px; max-width: 980px; margin-inline: auto; }
.game { display: flex; align-items: center; gap: 20px; overflow: hidden; padding: 18px; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.game:hover { transform: translateY(-4px); border-color: rgba(245, 184, 211, .35); box-shadow: 0 18px 44px rgba(0, 0, 0, .45); }
.gthumb { width: 168px; height: 168px; flex: none; align-self: flex-start; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--input); transition: filter .3s; }
.gthumb.fallback { display: grid; place-items: center; background: radial-gradient(130px 110px at 50% 60%, rgba(200, 182, 255, .16), transparent 70%), var(--input); }
.gthumb.fallback img { width: 64px; animation: float 4s ease-in-out infinite; filter: drop-shadow(0 0 18px rgba(200, 182, 255, .4)); }
.gthumb.fallback.tall { width: 100%; height: auto; aspect-ratio: 4 / 3; align-self: auto; border: 0; } .gthumb.fallback.tall img { width: 110px; }
.game:hover .gthumb:not(.fallback) { filter: brightness(1.08); }
.ginfo { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; align-self: stretch; }
.game header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.game h3 { font: 800 19px Nunito, sans-serif; margin-right: auto; color: var(--text); }
.game p { font-size: 14px; color: var(--dim); }
.game p.frozen { color: var(--warn); font-size: 13px; }
.game ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.game li { padding: 2px 8px; font-size: 12px; color: var(--dim); background: var(--input); border: 1px solid var(--line); border-radius: 5px; }
.game .more { margin-top: auto; padding-top: 4px; font-size: 13.5px; font-weight: 600; color: var(--pink); }
.game .more b { display: inline-block; transition: transform .25s var(--ease); }
.game:hover .more b { transform: translateX(4px); }

/* game subpage hero */
.ghero { position: relative; padding: 48px 0 20px; }
.ghero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.crumb { display: inline-block; font-size: 13.5px; color: var(--dim); margin-bottom: 18px; transition: color .2s; }
.crumb:hover { color: var(--text); }
.ghero h1 { font: 800 clamp(34px, 4.6vw, 54px)/1.08 Nunito, system-ui, sans-serif; letter-spacing: -1.4px; margin-bottom: 14px; }
.ghero .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.ghero .lead { font-size: 16.5px; color: var(--dim); max-width: 520px; }
.ghero .frozen { margin-top: 10px; font-size: 13.5px; color: var(--warn); }
.gtags { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.gtags li { padding: 3px 9px; font-size: 12.5px; color: var(--dim); background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
.ghero .cta { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.gcover img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(0, 0, 0, .55); }
.log-solo { max-width: 680px; margin-inline: auto; }
.faq-solo { max-width: 680px; margin-inline: auto; }

/* preview */
.showcase { position: relative; max-width: 940px; margin-inline: auto; }
.showcase::before {
  content: ""; position: absolute; inset: 8% 6% -4%; z-index: -1; filter: blur(60px); opacity: .5;
  background: linear-gradient(120deg, rgba(245, 184, 211, .5), rgba(200, 182, 255, .5));
}
.showcase .shot { border-radius: 16px; box-shadow: 0 40px 90px rgba(0, 0, 0, .6); cursor: zoom-in; transition: transform .6s var(--ease), opacity .25s; width: 100%; }
.showcase .shot:hover { transform: translateY(-4px) scale(1.006); }
.showcase .shot.swap { opacity: 0; }
.showcase video.shot, .showcase iframe.shot { aspect-ratio: 16 / 9; background: #000; cursor: auto; border: 0; }
.thumbs { display: flex; justify-content: center; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.thumb {
  position: relative; width: 150px; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card);
  cursor: pointer; opacity: .6; transition: opacity .25s, border-color .25s, transform .25s var(--ease);
}
.thumb:hover { opacity: 1; transform: translateY(-2px); }
.thumb[aria-selected=true] { opacity: 1; border-color: var(--pink); }
.thumb .pic { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; object-position: top left; display: grid; place-items: center; background: var(--input); color: var(--pink); }
.thumb span { display: block; padding: 6px 8px; font-size: 11.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 28px; background: rgba(4, 4, 6, .88); backdrop-filter: blur(6px); animation: fade .2s; cursor: zoom-out; }
.lightbox img { max-height: 100%; border-radius: 14px; animation: pop .3s var(--ease); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; max-width: 940px; margin-inline: auto; }
.plan { position: relative; padding: 26px 24px; display: flex; flex-direction: column; transition: transform .3s var(--ease), border-color .3s; }
.plan:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.plan.featured { border-color: rgba(245, 184, 211, .4); background: linear-gradient(180deg, rgba(245, 184, 211, .07), transparent 55%), var(--card); }
.plan .pill { position: absolute; top: -11px; right: 18px; background: #2A2026; }
.plan h3 { font: 700 17px Nunito, sans-serif; }
.plan .price { font: 800 38px Nunito, sans-serif; letter-spacing: -1px; margin: 8px 0 2px; }
.plan .len { font-size: 13px; color: var(--dim); }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 9px; font-size: 14px; flex: 1; align-content: start; }
.plan li { display: flex; gap: 9px; align-items: baseline; }
.plan li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); flex: none; transform: translateY(-2px); }
.plan .btn + .btn { margin-top: 8px; }
.note { text-align: center; margin-top: 22px; font-size: 13px; color: var(--faint); }

/* changelog + faq */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.two h2 { font: 800 26px Nunito, sans-serif; letter-spacing: -.6px; margin-bottom: 18px; }
.log { padding: 18px 20px; margin-bottom: 10px; }
.log header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.log time { font-size: 12px; color: var(--faint); margin-left: auto; }
.log ul { margin: 0; padding-left: 18px; color: var(--dim); font-size: 14px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; gap: 12px; padding: 16px 2px; cursor: pointer; font-weight: 600; list-style: none; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--pink-soft); }
.faq summary::after { content: "+"; margin-left: auto; font: 500 20px 'JetBrains Mono', monospace; color: var(--pink); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 2px 18px; color: var(--dim); font-size: 14.5px; animation: rise .35s var(--ease); }

.final { text-align: center; padding: 56px 24px; background: radial-gradient(520px 240px at 50% 0%, rgba(245, 184, 211, .12), transparent 70%), var(--card); }
.final img { width: 56px; margin: 0 auto 14px; animation: float 4s ease-in-out infinite; }
.final h2 { font: 800 30px Nunito, sans-serif; letter-spacing: -.8px; }
.final p { color: var(--dim); margin: 8px 0 24px; }
footer { padding: 34px 0 44px; border-top: 1px solid var(--line); margin-top: 88px; font-size: 13px; color: var(--faint); }
footer .wrap { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
footer nav { display: flex; gap: 18px; margin-left: auto; }
footer a:hover { color: var(--text); }

/* ---------- auth + dashboard ---------- */
.center { min-height: 100vh; display: grid; place-items: center; padding: 30px 20px; background: radial-gradient(600px 400px at 50% 10%, rgba(200, 182, 255, .1), transparent 65%); }
.auth { width: min(400px, 100%); padding: 32px 30px; animation: rise .5s var(--ease); }
.auth-wrap { display: grid; justify-items: center; gap: 4px; }
.auth-ghost { position: relative; width: 120px; height: 150px; display: grid; place-items: center; }
.auth-ghost::before { content: ""; position: absolute; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle, rgba(200, 182, 255, .22), transparent 62%); animation: glow 5s ease-in-out infinite; }
.auth-ghost img { position: relative; width: 96px; animation: float 4s ease-in-out infinite; filter: drop-shadow(0 0 22px rgba(200, 182, 255, .4)); }
.auth .brand { justify-content: center; margin-bottom: 6px; font-size: 22px; }
.auth > p { text-align: center; color: var(--dim); font-size: 14px; margin-bottom: 22px; }
.auth form { display: grid; gap: 14px; }
.auth .alt { text-align: center; font-size: 13.5px; color: var(--dim); margin-top: 18px; }
.auth .alt a { color: var(--pink); font-weight: 600; }
.page { padding: 40px 0 0; }
.page > .wrap > h1 { font: 800 30px Nunito, sans-serif; letter-spacing: -.8px; margin-bottom: 24px; }
.dash { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dash .card { padding: 22px 24px; animation: rise .5s var(--ease) backwards; }
.dash .card:nth-child(2) { animation-delay: .06s; } .dash .card:nth-child(3) { animation-delay: .12s; } .dash .card:nth-child(4) { animation-delay: .18s; }
.dash h3 { font-size: 13px; font-weight: 600; color: var(--dim); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.dash .big { font: 800 26px Nunito, sans-serif; letter-spacing: -.5px; }
.dash form { display: grid; gap: 10px; }
.inline { display: flex; gap: 8px; } .inline .input { flex: 1; min-width: 0; }
.subs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.sub { display: grid; gap: 8px; padding: 16px 18px; background: var(--input); border: 1px solid var(--line); border-radius: 10px; }
.sub header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .sub header b { margin-right: auto; font-size: 15px; }
.sub .big { font-size: 22px; } .sub p { font-size: 13px; } .sub .btn { justify-self: start; }
.list { display: grid; gap: 8px; font-size: 13.5px; }
.list > div { display: flex; gap: 10px; align-items: center; padding: 9px 12px; background: var(--input); border: 1px solid var(--line); border-radius: 8px; }

/* ---------- admin ---------- */
.admin { display: grid; grid-template-columns: 210px 1fr; min-height: 100vh; background: var(--base); }
.admin aside { position: sticky; top: 0; height: 100vh; background: var(--side); border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; gap: 2px; }
.admin aside .brand { padding: 0 10px 18px; }
.admin aside button, .admin aside a.link { display: block; width: 100%; padding: 9px 12px; border: 0; border-radius: 8px; background: none; color: var(--dim); font-size: 14px; font-weight: 500; text-align: left; cursor: pointer; transition: color .2s, background .2s; }
.admin aside button:hover, .admin aside a.link:hover { color: var(--text); }
.admin aside button.on { color: var(--pink); background: rgba(245, 184, 211, .1); font-weight: 600; }
.admin main { padding: 30px 34px 60px; min-width: 0; }
.admin main > section { animation: rise .35s var(--ease); }
.admin h1 { font: 800 26px Nunito, sans-serif; letter-spacing: -.6px; margin-bottom: 20px; }
.admin h2 { font-size: 15px; font-weight: 700; margin: 26px 0 12px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { padding: 16px 18px; } .stat b { display: block; font: 800 28px Nunito, sans-serif; } .stat span { font-size: 12.5px; color: var(--dim); }
.bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.bar .input { width: auto; padding: 7px 10px; font-size: 13px; }
.bar .grow { flex: 1; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; color: var(--faint); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:hover td { background: rgba(255, 255, 255, .015); }
.table .acts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.scroll { overflow-x: auto; }
.form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 18px; margin-bottom: 18px; }
.form .full { grid-column: 1 / -1; }
.form .row { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; }
.codes { width: 100%; min-height: 130px; font: 13px 'JetBrains Mono', monospace; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 200; padding: 11px 16px; background: #1A1A1F; border: 1px solid rgba(245, 184, 211, .4); border-radius: 10px; font-size: 13.5px; box-shadow: 0 10px 30px rgba(0, 0, 0, .6), 0 0 20px rgba(245, 184, 211, .18); animation: pop .25s var(--ease); }
.toast.bad { border-color: rgba(245, 154, 154, .5); }

/* ---------- ambient background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg::before, .bg::after {
  content: ""; position: absolute; width: 58vmax; height: 58vmax; border-radius: 50%; filter: blur(110px); opacity: .1;
}
.bg::before { background: radial-gradient(circle, #F5B8D3, transparent 65%); top: -24vmax; right: -18vmax; animation: bg-drift1 34s ease-in-out infinite alternate; }
.bg::after { background: radial-gradient(circle, #C8B6FF, transparent 65%); bottom: -26vmax; left: -20vmax; animation: bg-drift2 42s ease-in-out infinite alternate; }
.spark {
  position: absolute; bottom: -12px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%; background: var(--c);
  animation: spark var(--t) linear var(--d) infinite; opacity: 0;
}
@keyframes bg-drift1 { to { transform: translate(-14vmax, 12vmax) scale(1.12); } }
@keyframes bg-drift2 { to { transform: translate(14vmax, -12vmax) scale(1.08); } }
@keyframes spark {
  0% { transform: translateY(0); opacity: 0; }
  8% { opacity: .55; }
  85% { opacity: .15; }
  100% { transform: translateY(-105vh); opacity: 0; }
}

/* ---------- decorative ghost cats ---------- */
.cat { width: var(--size); pointer-events: none; }
.cat svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 10px rgba(200, 182, 255, .35)); }
.cat .cat-eyes { transform-box: fill-box; transform-origin: center; animation: cat-blink var(--bt, 5s) var(--bd, 0s) infinite; }
@keyframes cat-blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.08); } }

/* peeker: hidden behind its card, rises when the card is in view, then bobs */
.peek-host { position: relative; }
.peek-host > :not(.cat) { position: relative; z-index: 1; }
.peeker { position: absolute; top: 2px; z-index: 0; transform: translateY(22%) rotate(var(--tilt, 8deg)); opacity: 0; transition: transform 1.1s cubic-bezier(.34, 1.4, .64, 1) .25s, opacity .4s .25s; }
.peeker.up { opacity: 1; transform: translateY(-68%) rotate(var(--tilt, 8deg)); }
.peeker.up svg { animation: peek-bob 3.6s ease-in-out 1.4s infinite; }
@keyframes peek-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* drifter: crosses the viewport in the background layer */
.drifter { position: absolute; top: var(--top); left: -8vw; opacity: 0; animation: drift var(--dur) linear forwards; }
.drifter.rtl { left: auto; right: -8vw; animation-name: drift-rtl; }
.drifter svg { opacity: .32; animation: float 4s ease-in-out infinite, drift-sway 7s ease-in-out infinite; }
@keyframes drift { 0% { transform: translateX(0); opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { transform: translateX(116vw); opacity: 0; } }
@keyframes drift-rtl { 0% { transform: translateX(0) scaleX(-1); opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { transform: translateX(-116vw) scaleX(-1); opacity: 0; } }
@keyframes drift-sway { 0%, 100% { rotate: -6deg; } 50% { rotate: 6deg; } }

/* ---------- cat scrollbar ---------- */
html.has-catbar { scrollbar-width: none; }
html.has-catbar::-webkit-scrollbar { display: none; width: 0; }
.catbar { position: fixed; top: 78px; bottom: 26px; right: 7px; width: 28px; z-index: 60; }
.catbar .thread {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 14px; margin-left: -7px; cursor: pointer; opacity: .55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='36' viewBox='0 0 14 36'%3E%3Cpath d='M7 0 C 11 9 3 27 7 36' fill='none' stroke='%23C8B6FF' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") repeat-y center top / 14px 36px;
  transition: opacity .2s;
}
.catbar:hover .thread { opacity: .9; }
.catbar .ball { position: absolute; top: 0; left: 50%; width: 16px; height: 16px; margin-left: -8px; transition: transform .28s var(--ease); filter: drop-shadow(0 0 6px rgba(245, 184, 211, .45)); }
.catbar .ball svg { display: block; width: 100%; height: 100%; }
.catbar .bar-cat { position: absolute; top: 0; left: 50%; margin-left: -12px; cursor: grab; pointer-events: auto; transition: transform .1s linear; }
.catbar .bar-cat svg { transition: transform .2s var(--ease); }
.catbar.moving .bar-cat svg { transform: rotate(16deg); }
.catbar.moving.up .bar-cat svg { transform: rotate(-16deg); }
.catbar.caught .bar-cat svg { animation: catch-wiggle .35s ease-in-out infinite; }
.catbar.dragging .bar-cat { cursor: grabbing; }
@keyframes catch-wiggle { 0%, 100% { transform: rotate(-8deg) scale(1.05); } 50% { transform: rotate(8deg) scale(1.05); } }

/* ---------- cursor ESP (easter egg) ---------- */
.esp { position: fixed; inset: 0; z-index: 900; pointer-events: none; --c: var(--pink); font-family: Inter, system-ui, sans-serif; }
.esp.occluded { --c: var(--lav); }
.esp.gone .box, .esp.gone .lines { opacity: 0; }
.esp .lines { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .2s; }
.esp .lines line { stroke: var(--c); stroke-width: 1.5; opacity: .85; }
.esp .lines circle { fill: none; stroke: #EBEBEB; stroke-width: 1; stroke-dasharray: 4 5; opacity: .55; }
.esp .box { position: absolute; top: -31px; left: -22px; width: 44px; height: 62px; transition: opacity .2s; will-change: transform; }
.esp .c { position: absolute; width: 11px; height: 11px; border: 1.5px solid var(--c); }
.esp .tl { top: 0; left: 0; border-right: 0; border-bottom: 0; } .esp .tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.esp .bl { bottom: 0; left: 0; border-right: 0; border-top: 0; } .esp .br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.esp .hp, .esp .ar { position: absolute; top: 0; bottom: 0; width: 3px; background: rgba(0, 0, 0, .6); border-radius: 2px; overflow: hidden; }
.esp .hp { left: -8px; } .esp .ar { right: -8px; }
.esp .hp b, .esp .ar b { position: absolute; left: 0; right: 0; bottom: 0; }
.esp .hp b { height: 100%; background: #5CDB5C; } .esp .ar b { height: 64%; background: #78ABFF; }
.esp .name { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 7px; font-size: 11.5px; font-weight: 600; color: #fff; text-shadow: 0 1px 2px #000, 0 0 6px rgba(0, 0, 0, .8); white-space: nowrap; }
.esp .info { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 7px; font: 500 10px 'JetBrains Mono', monospace; color: var(--c); white-space: nowrap; text-shadow: 0 1px 2px #000; }
.esp .wm { position: fixed; top: 76px; left: 18px; padding: 5px 9px; font: 500 11px 'JetBrains Mono', monospace; color: var(--dim); background: rgba(26, 26, 31, .85); border: 1px solid rgba(245, 184, 211, .25); border-radius: 6px; animation: pop .3s var(--ease); }
.esp .wm .grad { font: 800 12px Nunito, sans-serif; } .esp .wm b { color: var(--pink); }
.esp .hud { position: fixed; left: 18px; bottom: 18px; min-width: 170px; padding: 8px 10px 9px; background: rgba(26, 26, 31, .85); border: 1px solid rgba(245, 184, 211, .25); border-radius: 8px; font: 500 11px 'JetBrains Mono', monospace; animation: pop .3s var(--ease); }
.esp .hud header { font-size: 9.5px; font-weight: 700; letter-spacing: 1.4px; color: var(--pink); margin-bottom: 6px; }
.esp .hud div { display: flex; justify-content: space-between; gap: 14px; padding: 2px 0; color: var(--text); }
.esp .hud b { color: var(--ok); font-weight: 600; }

/* ---------- intro loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: var(--deep);
  background-image: radial-gradient(420px 420px at 50% 46%, rgba(200, 182, 255, .14), transparent 65%);
  transition: opacity .6s var(--ease), visibility .6s;
  animation: ld-failsafe .5s 6s forwards; /* never trap the page if the script fails */
}
.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { display: grid; justify-items: center; gap: 14px; transition: transform .6s var(--ease); }
.loader.done .loader-inner { transform: scale(1.12); }
.loader svg { filter: drop-shadow(0 0 30px rgba(200, 182, 255, .45)); animation: ld-orb .5s var(--ease) backwards; }
.ld-face { opacity: 0; transition: opacity .35s; }
.formed .ld-face { opacity: 1; }
.ld-word { font: 800 26px Nunito, system-ui, sans-serif; letter-spacing: -.5px; opacity: 0; transform: translateY(8px); transition: opacity .5s .12s, transform .5s .12s var(--ease); }
.formed .ld-word { opacity: 1; transform: none; }
@keyframes ld-orb { from { opacity: 0; transform: scale(.3); } }
@keyframes ld-failsafe { to { opacity: 0; visibility: hidden; } }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(calc(30px + var(--py, 0px))); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: translateY(var(--py, 0px)); }
[data-px] { transform: translateY(var(--py, 0px)); will-change: transform; }
[data-px].bg { transform: none; } /* the fixed layer moves its blobs instead */
.bg::before { translate: 0 calc(var(--py, 0px) * -1.4); }
.bg::after { translate: 0 var(--py, 0px); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes floor { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.82); opacity: .6; } }
@keyframes glow { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.1); opacity: .6; } }
@keyframes breath { 0%, 100% { filter: drop-shadow(0 0 2px rgba(245, 184, 211, .35)); } 50% { filter: drop-shadow(0 0 7px rgba(255, 255, 255, .55)); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 45%, transparent); } 50% { box-shadow: 0 0 0 5px transparent; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.96); } }

@media (max-width: 860px) {
  .nav nav { display: none; }
  .hero { padding: 40px 0 60px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .ghost-stage { order: -1; min-height: 260px; } .ghost-stage .ghost { width: 150px; } .ghost-stage::before { width: 240px; height: 240px; }
  .hero .wrap.facts { grid-template-columns: repeat(2, 1fr); margin-top: 44px; }
  section.block { padding: 60px 0; }
  .features { grid-template-columns: 1fr; }
  .features .tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px; }
  .features .tabs small, .features .tabs button::before { display: none; }
  .features .panel { grid-template-columns: 1fr; min-height: 0; }
  .two, .dash, .form { grid-template-columns: 1fr; }
  .games { grid-template-columns: 1fr; }
  .game { flex-direction: column; align-items: stretch; }
  .gthumb { width: 100%; height: auto; aspect-ratio: 16 / 9; align-self: auto; }
  .ghero .wrap { grid-template-columns: 1fr; gap: 26px; }
  .gcover { order: -1; }
  .admin { grid-template-columns: 1fr; }
  .admin aside { position: static; height: auto; flex-direction: row; flex-wrap: wrap; }
  .admin aside .brand { width: 100%; padding-bottom: 8px; } .admin aside button, .admin aside a.link { width: auto; }
  .admin main { padding: 22px 16px 50px; }
  .thumb { width: 104px; }
}
