:root {
  --ink: #0b0810;
  --plum: #140e18;
  --plum-2: #1d1522;
  --plum-3: #2a1f30;
  --line: #33263a;
  --line-soft: rgba(244, 222, 246, 0.08);
  --text: #f5eff6;
  --muted: #a395a8;
  --dim: #6f6274;
  --pulse: #ec7ee6;
  --pulse-hot: #ffa6f8;
  --pulse-deep: #b54fb3;
  --pulse-ink: #24091f;
  --badge: #e27ae0;
  --ok: #9fe3b8;
  --glow: rgba(236, 126, 230, 0.38);

  --font-display: "Sora", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--ink);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
::selection { background: rgba(236, 126, 230, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--pulse); outline-offset: 3px; border-radius: 10px; }

.ico { width: 18px; height: 18px; flex: none; display: block; }

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

.gv {
  display: inline-flex;
  align-items: center;
  height: 1.7em;
  padding: 0 0.7em;
  border-radius: 999px;
  background: var(--badge);
  color: var(--pulse-ink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  line-height: 1;
}
.gv-sm { font-size: 11px; letter-spacing: 0.06em; }

.badge {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--badge);
  color: var(--pulse-ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  line-height: 1;
}

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), background-color 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.16) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease-out);
}
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn .ico { width: 19px; height: 19px; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14.5px; gap: 8px; }
.btn-sm .ico { width: 17px; height: 17px; }
.btn-lg { height: 56px; padding: 0 26px; font-size: 16.5px; border-radius: 18px; }

.btn-ghost {
  background: rgba(30, 21, 35, 0.55);
  border-color: rgba(255, 230, 255, 0.1);
  color: var(--text);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: rgba(58, 31, 62, 0.6);
  border-color: rgba(236, 126, 230, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -14px rgba(236, 126, 230, 0.55);
}
.btn-light { background: #fff; color: #140d17; }
.btn-light::after { background: linear-gradient(110deg, transparent 35%, rgba(236, 126, 230, 0.28) 50%, transparent 65%); }
.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1), 0 14px 32px -12px rgba(236, 126, 230, 0.7);
}
.btn-pulse {
  background: linear-gradient(180deg, #f59af0, var(--pulse) 60%, #d865d3);
  color: var(--pulse-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-pulse:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 12px 28px -10px rgba(236, 126, 230, 0.8); }

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s, border-color 0.4s, -webkit-backdrop-filter 0.4s, backdrop-filter 0.4s;
}
.nav.is-scrolled {
  background: rgba(11, 8, 16, 0.72);
  border-color: var(--line-soft);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.03em;
}
.brand img { width: 30px; height: 30px; filter: drop-shadow(0 0 12px var(--glow)); transition: transform 0.6s var(--ease-spring); }
.brand:hover img { transform: rotate(45deg) scale(1.08); }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: 15px; font-weight: 500; transition: color 0.2s, background-color 0.2s; }
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }

.img-sk { position: relative; display: inline-block; flex: none; }
.img-sk::before {
  content: "";
  position: absolute;
  inset: 4%;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  background: linear-gradient(100deg, rgba(255, 240, 255, 0.06) 40%, rgba(236, 126, 230, 0.3) 50%, rgba(255, 240, 255, 0.06) 60%);
  background-size: 200% 100%;
  animation: shimmer 1.3s linear infinite;
  transition: opacity 0.4s;
}
.js .img-sk img { opacity: 0; transition: opacity 0.5s var(--ease-out); }
.img-sk.is-loaded::before { opacity: 0; animation: none; }
.js .img-sk.is-loaded img { opacity: 1; }

.sk {
  display: block;
  height: 12px;
  border-radius: 7px;
  background: linear-gradient(100deg, rgba(255, 240, 255, 0.05) 40%, rgba(236, 126, 230, 0.15) 50%, rgba(255, 240, 255, 0.05) 60%);
  background-size: 200% 100%;
  animation: shimmer 1.3s linear infinite;
}
.sk-line.sm { height: 9px; }
.sk-line.lg { height: 22px; }
.sk-avatar { width: 54px; height: 54px; border-radius: 16px; }
.sk-avatar.sm { width: 26px; height: 26px; border-radius: 9px; flex: none; }
.sk-badge { width: 34px; height: 20px; border-radius: 999px; flex: none; }
.sk-pill { width: 38px; height: 22px; border-radius: 999px; flex: none; }
.sk-pill.w1 { width: 74px; height: 30px; }
.sk-pill.w2 { width: 96px; height: 30px; }
.sk-pill.w3 { width: 118px; height: 30px; }
.sk-block { height: 50px; border-radius: 12px; flex: 1; }
.sk-split { display: flex; align-items: center; gap: 10px; }
.sk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sk-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.sk-label { width: 84px; height: 14px; margin: 4px 0 2px; }
.sk-prow { height: 64px; border-radius: 16px; }
.sk-stat { height: 150px; border-radius: 18px; }

@keyframes shimmer {
  from { background-position: 150% 0; }
  to { background-position: -50% 0; }
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-top: calc(env(safe-area-inset-top, 0px) + 150px);
  padding-bottom: 120px;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--ink));
}
.glow { position: absolute; border-radius: 50%; will-change: transform, opacity; }
.glow-a {
  left: -22%;
  top: -6%;
  width: min(1200px, 95vw);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(205, 72, 196, 0.5), rgba(140, 40, 140, 0.2) 50%, transparent 72%);
  animation: drift 16s ease-in-out infinite alternate;
}
.glow-b {
  right: -18%;
  top: -30%;
  width: min(900px, 80vw);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(96, 82, 214, 0.2), transparent 70%);
}
.grain {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(4%, 3%, 0) scale(1.06); }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; min-width: 0; }

.hero-mark { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 22px); }
.mark { position: relative; flex: none; width: clamp(68px, 8.4vw, 118px); aspect-ratio: 1; }
.mark-sk { width: 100%; height: 100%; }
.mark img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 26px rgba(236, 126, 230, 0.55));
}
.wordmark {
  display: flex;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(68px, 9vw, 128px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 8px 40px rgba(236, 126, 230, 0.22);
}
.wordmark span { display: inline-block; }

.headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.headline em, h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.12em;
  letter-spacing: -0.01em;
  padding-right: 0.08em;
  background: linear-gradient(90deg, var(--pulse-hot), var(--pulse) 45%, #c45bd0 70%, var(--pulse-hot));
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 7s linear infinite;
}
@keyframes sheen { to { background-position: -220% 0; } }

.sub { color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); font-weight: 500; letter-spacing: -0.01em; text-wrap: balance; }
.sub .sep { color: var(--pulse); opacity: 0.55; padding-inline: 0.2em; }
.sub .nw { white-space: nowrap; }

.loader {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 620px;
  padding: 8px 8px 8px 22px;
  border-radius: 18px;
  background: rgba(12, 8, 15, 0.72);
  border: 1px solid rgba(255, 235, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 24px 50px -26px rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.loader:hover, .loader:focus-within { border-color: rgba(236, 126, 230, 0.32); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 24px 50px -26px rgba(0, 0, 0, 0.9), 0 0 0 4px rgba(236, 126, 230, 0.06); }
.loader-code {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 14.5px;
  color: var(--text);
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
  mask-image: linear-gradient(90deg, #000 88%, transparent);
  padding-block: 6px;
}
.loader-code::-webkit-scrollbar { display: none; }
.loader-code:focus-visible { outline-offset: 6px; }
.t-str { color: var(--pulse-hot); }
.t-obj { color: #cdb8d0; }

.copy-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 13px;
  background: #fff;
  color: #140d17;
  font-weight: 600;
  font-size: 15.5px;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), background-color 0.3s, box-shadow 0.3s;
}
.copy-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 26px -10px rgba(236, 126, 230, 0.75); }
.copy-btn:active { transform: scale(0.97); }
.copy-ico { position: relative; width: 18px; height: 18px; display: inline-block; }
.copy-ico .ico { position: absolute; inset: 0; transition: transform 0.45s var(--ease-spring), opacity 0.25s; }
.copy-ico .i-check { opacity: 0; transform: scale(0.4) rotate(-30deg); }
.is-copied .copy-ico .i-copy { opacity: 0; transform: scale(0.4) rotate(30deg); }
.is-copied .copy-ico .i-check { opacity: 1; transform: none; }
.copy-btn.is-copied { background: var(--pulse); color: var(--pulse-ink); box-shadow: 0 0 0 5px rgba(236, 126, 230, 0.18); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; max-width: 620px; }
.hero-actions .btn-lg { flex: 1 1 auto; padding: 0 18px; }
.btn-novoline { color: #000; }
.btn-novoline .ico { width: 20px; height: 18px; transition: transform 0.45s var(--ease-spring); }
.btn-novoline:hover .ico { transform: translateY(-2px); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 230, 255, 0.12);
  background: rgba(255, 255, 255, 0.025);
  font-weight: 600;
  font-size: 14.5px;
  color: rgba(245, 239, 246, 0.9);
  transition: border-color 0.3s, background-color 0.3s;
}
.chip:hover { border-color: rgba(236, 126, 230, 0.4); background: rgba(236, 126, 230, 0.06); }

.js .hero-copy > *, .js .nav { opacity: 0; }
.js .hero-visual { opacity: 0; }
.is-ready .nav { animation: drop 0.9s var(--ease-out) 0.1s both; }
.is-ready .hero-copy > * { animation: rise 1s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 85ms + 150ms); }
.is-ready .hero-visual { animation: rise-vis 1.4s var(--ease-out) 0.3s both; }
.js .wordmark span { opacity: 0; }
.is-ready .wordmark span { animation: letter 1s var(--ease-out) both; animation-delay: calc(var(--l) * 60ms + 220ms); }
.is-ready .hero-mark .mark { animation: pop 1.1s var(--ease-spring) 0.1s both; }

@keyframes drop { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes rise-vis { from { opacity: 0; transform: translateY(40px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes letter { from { opacity: 0; transform: translateY(55%) rotate(8deg); filter: blur(10px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes pop { from { opacity: 0; transform: scale(0.3) rotate(-90deg); } to { opacity: 1; transform: none; } }

.hero-visual { position: relative; min-width: 0; }
.deck-wrap { position: relative; width: 100%; height: 560px; }
.deck-scale {
  position: absolute;
  top: 0;
  left: 50%;
  width: 710px;
  height: 620px;
  transform-origin: 50% 0;
  transform: translateX(-50%) scale(var(--s, 1));
  perspective: 1900px;
  perspective-origin: 50% 40%;
}
.deck {
  --mx: 0;
  --my: 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 710px;
  height: 620px;
  transform-style: preserve-3d;
  transform: rotateX(calc(20deg + var(--my) * -4deg)) rotateY(calc(-18deg + var(--mx) * 6deg)) rotateZ(-7deg);
}
.col { display: flex; flex-direction: column; gap: 14px; transform-style: preserve-3d; }
.col-1 { width: 232px; margin-top: 120px; }
.col-2 { width: 222px; margin-top: 44px; }
.col-3 { width: 228px; margin-top: 0; }

.tile {
  position: relative;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(36, 25, 42, 0.97), rgba(20, 14, 24, 0.97));
  border: 1px solid rgba(255, 235, 255, 0.08);
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translate3d(0, 0, var(--z, 0));
  animation: bob 7s ease-in-out infinite;
  animation-delay: var(--bob, 0s);
}
@keyframes bob {
  0%, 100% { transform: translate3d(0, 0, var(--z, 0)); }
  50% { transform: translate3d(0, -9px, var(--z, 0)); }
}
.tile-sk {
  position: absolute;
  inset: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
  transition-delay: calc(var(--i, 0) * 90ms);
}
.tile-body { transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), filter 0.6s; transition-delay: calc(var(--i, 0) * 90ms + 80ms); }
.deck.is-loading .tile-sk { opacity: 1; transition-delay: 0s; }
.deck.is-loading .tile-body { opacity: 0; transform: translateY(6px); filter: blur(4px); transition-delay: 0s; }

.tile-label { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted); margin: 0 0 8px 2px; }
.mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px 9px 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.mini-row + .mini-row { margin-top: 8px; }

.tog {
  --tw: 38px;
  --th: 22px;
  --k: 16px;
  position: relative;
  flex: none;
  display: inline-block;
  width: var(--tw);
  height: var(--th);
  border-radius: 999px;
  background: #0e0a10;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.55);
  transition: background-color 0.3s, border-color 0.3s;
}
.tog::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 2px;
  width: var(--k);
  height: var(--k);
  margin-top: calc(var(--k) / -2);
  border-radius: 50%;
  background: linear-gradient(180deg, #9d8da1, #776a7b);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  transition: transform 0.5s var(--ease-spring), background 0.3s, box-shadow 0.3s;
}
.tog.is-on, [aria-checked="true"] > .tog { background: rgba(236, 126, 230, 0.22); border-color: rgba(236, 126, 230, 0.5); }
.tog.is-on::after, [aria-checked="true"] > .tog::after {
  transform: translateX(calc(var(--tw) - var(--k) - 6px));
  background: linear-gradient(180deg, #ffc0fb, #e670e0);
  box-shadow: 0 0 14px rgba(236, 126, 230, 0.85);
}

.t-games { padding-bottom: 14px; }
.games-head { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.games-head img { width: 26px; height: 26px; filter: drop-shadow(0 0 8px var(--glow)); }
.games-count { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--muted); padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; }
.game-list { display: flex; flex-direction: column; gap: 5px; }
.game-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(245, 239, 246, 0.82);
  border: 1px solid transparent;
  transition: background-color 0.5s, border-color 0.5s, color 0.5s;
}
.game-item .badge { min-width: 36px; height: 20px; font-size: 9.5px; background: rgba(226, 122, 224, 0.18); color: var(--pulse-hot); transition: background-color 0.5s, color 0.5s; }
.game-item.is-active { background: rgba(236, 126, 230, 0.1); border-color: rgba(236, 126, 230, 0.4); color: #fff; }
.game-item.is-active .badge { background: var(--badge); color: var(--pulse-ink); }
.game-item.is-wip { color: var(--dim); }
.game-item.is-wip .badge { background: rgba(255, 255, 255, 0.06); color: var(--dim); }
.game-item em { margin-left: auto; font-style: normal; font-size: 10px; font-weight: 600; color: var(--dim); }

.keycap {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 26px;
  padding: 0 8px;
  border-radius: 8px;
  background: #261b2c;
  border: 1px solid #44344a;
  box-shadow: 0 3px 0 #0b070d;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  transition: transform 0.12s, box-shadow 0.12s, background-color 0.2s, color 0.2s;
}
.keycap.is-pressed { transform: translateY(2px); box-shadow: 0 1px 0 #0b070d; background: var(--pulse); color: var(--pulse-ink); }

.head-row { display: flex; align-items: center; gap: 9px; }
.head-row img { width: 26px; height: 26px; filter: drop-shadow(0 0 8px var(--glow)); }
.head-name { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; font-size: 14.5px; white-space: nowrap; }
.head-name i { width: 1.5px; height: 16px; background: #fff; border-radius: 1px; }
.head-row .gv { margin-left: auto; font-size: 11px; }

.t-grad {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(60deg, #2a1830 0%, #5c2a62 42%, #a14ba3 76%, #bb58ba 100%);
  border-color: rgba(255, 220, 255, 0.12);
}
.t-grad::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, 0.18), transparent 55%);
  pointer-events: none;
}
.t-grad-b { background: linear-gradient(60deg, #241429 0%, #4f2556 45%, #9a479c 80%, #b455b3 100%); }
.t-grad .tile-body { display: flex; flex-direction: column; justify-content: space-between; flex: 1; position: relative; }
.grad-title { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.grad-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.grad-value { font-weight: 500; font-size: 21px; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.grad-meta { font-size: 11.5px; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.8); }
.cash-pop {
  position: absolute;
  right: 0;
  top: 34%;
  font-weight: 600;
  font-size: 13px;
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 166, 248, 0.9);
  opacity: 0;
  pointer-events: none;
}
.cash-pop.show { animation: floatUp 1.4s var(--ease-out) both; }
@keyframes floatUp {
  0% { opacity: 0; transform: translateY(10px) scale(0.9); }
  20% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-26px); }
}

.tab-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.ptab-mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid #3a2a3f;
  background: rgba(30, 20, 35, 0.6);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.ptab-mini .ico { width: 13px; height: 13px; }
.ptab-mini.is-active { background: linear-gradient(180deg, #3d1f40, #2d1730); border-color: #c768c3; color: #fff; box-shadow: 0 4px 16px -6px rgba(236, 126, 230, 0.7); }

.veh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.veh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 11px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  transition: background-color 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.veh b { font-size: 12.5px; font-weight: 500; }
.veh small { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 6px; background: #120d15; border: 1px solid var(--line); font-family: var(--font-mono); font-size: 10px; color: var(--muted); transition: background-color 0.4s, color 0.4s; }
.veh.is-on { background: rgba(236, 126, 230, 0.12); border-color: rgba(236, 126, 230, 0.5); box-shadow: 0 0 22px -8px rgba(236, 126, 230, 0.8); }
.veh.is-on small { background: var(--pulse); color: var(--pulse-ink); border-color: transparent; }

.section { position: relative; padding-block: clamp(76px, 9vw, 120px); }
.section-head { display: grid; gap: 16px; max-width: 660px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head p { color: var(--muted); font-size: 17.5px; line-height: 1.65; max-width: 56ch; }
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }

.games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.js .game.reveal { transition-delay: calc(var(--gi, 0) * 70ms); }
.game {
  position: relative;
  isolation: isolate;
  display: block;
  aspect-ratio: 4 / 3;
  max-width: 100%;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 230, 255, 0.08);
  background: var(--plum);
  color: var(--text);
  transition: border-color 0.4s, box-shadow 0.5s, opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.game:hover { border-color: rgba(255, 230, 255, 0.22); box-shadow: 0 30px 60px -30px rgba(236, 126, 230, 0.5); }
.game-media { position: absolute; inset: 0; z-index: -1; }
.game-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(255, 240, 255, 0.04) 40%, rgba(236, 126, 230, 0.14) 50%, rgba(255, 240, 255, 0.04) 60%);
  background-size: 200% 100%;
  animation: shimmer 1.3s linear infinite;
  transition: opacity 0.5s;
}
.game-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.2s var(--ease-out), opacity 0.6s var(--ease-out);
}
.js .game-media img { opacity: 0; }
.js .game-media.is-loaded img { opacity: 1; }
.game-media.is-loaded::before { opacity: 0; animation: none; }
.game-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 8, 16, 0) 45%, rgba(11, 8, 16, 0.82) 100%);
}
.game:hover .game-media img { transform: scale(1.08); }
.game-icon {
  position: absolute;
  left: 50%;
  top: 44%;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 18px 40px -12px rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  transition: transform 0.6s var(--ease-spring);
}
.game-icon .ico { width: 36px; height: 36px; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35)); }
.game:hover .game-icon { transform: translateY(-6px) scale(1.04); }
.game-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
}
.game-meta h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; line-height: 1.2; min-width: 0; }
.game-state {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(11, 8, 16, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.game-state .ico { width: 14px; height: 14px; transition: transform 0.35s var(--ease-out); }
.game:hover .game-state .ico { transform: translateX(3px); }
.game-state.is-link { color: #fff; background: rgba(236, 126, 230, 0.28); border-color: rgba(255, 200, 250, 0.35); }
.game-state.is-wip { color: #f5d48a; border-color: rgba(245, 212, 138, 0.3); }
.game-wip .game-media img { filter: saturate(0.75); }

.marquee {
  position: relative;
  overflow: hidden;
  padding-block: 24px;
  border-block: 1px solid var(--line-soft);
  background: rgba(20, 14, 24, 0.5);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-set {
  display: flex;
  align-items: center;
  gap: 30px;
  padding-right: 30px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 2.4vw, 30px);
  letter-spacing: -0.025em;
  white-space: nowrap;
  color: rgba(245, 239, 246, 0.85);
}
.mq-star { width: 16px; height: 16px; color: var(--pulse); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-width: 0;
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(30, 21, 35, 0.9), rgba(17, 12, 21, 0.92));
  border: 1px solid rgba(255, 230, 255, 0.07);
  overflow: hidden;
  transition: border-color 0.4s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(460px circle at var(--x, 50%) var(--y, 0%), rgba(236, 126, 230, 0.13), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.card:hover { border-color: rgba(236, 126, 230, 0.28); }
.card:hover::before { opacity: 1; }
.js .bento .card:nth-child(2) { transition-delay: 0.08s; }
.js .bento .card:nth-child(4) { transition-delay: 0.08s; }
.js .bento .card:nth-child(5) { transition-delay: 0.16s; }
.card-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--pulse); }
.card-kicker .ico { width: 16px; height: 16px; }
.card h3 { margin: 12px 0 8px; font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.1vw, 28px); line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
.card p { color: var(--muted); font-size: 15.5px; line-height: 1.6; }

.c-farm { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: center; gap: 32px; }
.farm-vis { display: grid; gap: 12px; min-width: 0; }
.feed { padding: 14px; border-radius: 18px; background: rgba(10, 7, 13, 0.55); border: 1px solid var(--line); }
.feed-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.feed-tag { font-size: 11.5px; font-weight: 500; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--dim); }
.feed-list { display: flex; flex-direction: column; gap: 6px; height: 196px; overflow: hidden; }
.feed-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13.5px;
}
.feed-row.new { animation: feedIn 0.7s var(--ease-out) both; }
.feed-row.new .feed-pay { animation: glowText 1.4s ease-out both; }
@keyframes feedIn { from { opacity: 0; transform: translateY(-12px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes glowText { from { text-shadow: 0 0 14px rgba(255, 166, 248, 1); } to { text-shadow: none; } }
.feed-ico { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: rgba(236, 126, 230, 0.14); color: var(--pulse); flex: none; }
.feed-ico .ico { width: 14px; height: 14px; }
.feed-name { font-weight: 500; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-time { color: var(--dim); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.feed-pay { color: var(--pulse-hot); font-weight: 600; font-variant-numeric: tabular-nums; min-width: 52px; text-align: right; }
.farm-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-grad {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 104px;
  padding: 16px 18px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(60deg, #2a1830 0%, #5c2a62 42%, #a14ba3 78%, #bb58ba 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.stat-grad span { font-weight: 600; font-size: 14.5px; }
.stat-grad b { font-weight: 500; font-size: clamp(19px, 2vw, 24px); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

.keys { display: grid; gap: 8px; margin-top: auto; }
.key-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 9px 9px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  transition: border-color 0.3s, background-color 0.3s;
}
.key-row.is-active { border-color: rgba(236, 126, 230, 0.45); background: rgba(236, 126, 230, 0.07); }
.key-row.flash { animation: flash 0.6s ease-out; }
@keyframes flash { from { box-shadow: 0 0 0 0 rgba(236, 126, 230, 0.55); } to { box-shadow: 0 0 0 10px rgba(236, 126, 230, 0); } }
.key-name { flex: 1; min-width: 0; font-weight: 500; font-size: 14.5px; }
.keycap-btn {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 34px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1px solid #45354b;
  background: #2a1f30;
  box-shadow: 0 3px 0 #0a070c, inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, background-color 0.2s, color 0.2s, border-color 0.2s;
}
.keycap-btn:hover { border-color: rgba(236, 126, 230, 0.6); }
.keycap-btn.is-pressed { transform: translateY(2px); box-shadow: 0 1px 0 #0a070c; background: var(--pulse); color: var(--pulse-ink); }
.keycap-btn.is-listening { color: var(--pulse); border-color: var(--pulse); animation: listen 1s ease-in-out infinite; }
@keyframes listen { 50% { box-shadow: 0 3px 0 #0a070c, 0 0 0 4px rgba(236, 126, 230, 0.2); } }

.fling-vis, .lock-vis, .filter-vis {
  position: relative;
  height: 164px;
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(90% 90% at 50% 100%, rgba(236, 126, 230, 0.12), transparent 70%), rgba(10, 7, 13, 0.55);
  border: 1px solid var(--line);
}
.fling-road { position: absolute; left: 0; right: 0; bottom: 34px; height: 2px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 18px, transparent 18px 34px); }
.fling-car {
  position: absolute;
  left: 18%;
  bottom: 36px;
  width: 78px;
  color: #fbe3fa;
  transform-origin: 50% 80%;
  animation: fling 3.8s var(--ease-out) infinite;
}
.fling-car svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 12px rgba(236, 126, 230, 0.65)); }
.fling-puff { position: absolute; left: calc(18% + 20px); bottom: 26px; width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(236, 126, 230, 0.7); opacity: 0; animation: puff 3.8s ease-out infinite; }
@keyframes fling {
  0% { transform: translateX(-160px); opacity: 0; }
  14% { transform: translateX(0); opacity: 1; }
  40% { transform: translateX(0); }
  46% { transform: translateX(4px) scale(1.06, 0.88); }
  68% { transform: translate(150px, -92px) rotate(-200deg); opacity: 1; }
  86% { transform: translate(300px, -30px) rotate(-360deg); opacity: 0; }
  100% { transform: translate(300px, -30px) rotate(-360deg); opacity: 0; }
}
@keyframes puff {
  0%, 44% { opacity: 0; transform: scale(0.4); }
  48% { opacity: 1; transform: scale(0.6); }
  66% { opacity: 0; transform: scale(2.4); }
  100% { opacity: 0; }
}

.lock-vis { display: grid; place-items: center; }
.lock { width: 70px; height: 70px; color: #d9c6dc; position: relative; z-index: 1; animation: lockColor 3.6s ease-in-out infinite; filter: drop-shadow(0 0 0 rgba(236, 126, 230, 0)); }
.lock .shackle { transform-box: view-box; transform-origin: 16.5px 10.5px; animation: shackle 3.6s var(--ease-spring) infinite; }
.lock .keyhole { fill: #1a1220; }
.lock-ring { position: absolute; left: 50%; top: 50%; width: 80px; height: 80px; margin: -40px 0 0 -40px; border-radius: 50%; border: 2px solid rgba(236, 126, 230, 0.6); opacity: 0; animation: lockRing 3.6s ease-out infinite; }
@keyframes shackle {
  0%, 30% { transform: none; }
  42%, 78% { transform: translateY(-3px) rotate(28deg); }
  90%, 100% { transform: none; }
}
@keyframes lockColor {
  0%, 30% { color: #d9c6dc; filter: drop-shadow(0 0 0 rgba(236, 126, 230, 0)); }
  42%, 78% { color: var(--pulse); filter: drop-shadow(0 0 16px rgba(236, 126, 230, 0.8)); }
  90%, 100% { color: #d9c6dc; filter: drop-shadow(0 0 0 rgba(236, 126, 230, 0)); }
}
@keyframes lockRing {
  0%, 36% { opacity: 0; transform: scale(0.6); }
  40% { opacity: 1; }
  64% { opacity: 0; transform: scale(1.9); }
  100% { opacity: 0; }
}

.filter-vis { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: center; gap: 10px; padding: 14px; }
.pops { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; min-width: 0; }
.pop {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), filter 0.5s;
}
.pop .ico { width: 14px; height: 14px; }
.pop-cash { color: var(--pulse-hot); }
.hide-cash .pop-cash, .hide-box .pop-box { opacity: 0.12; transform: translateX(-10px) scale(0.92); filter: blur(2px); }
.filter-togs { display: grid; gap: 8px; min-width: 0; }
.filter-togs .mini-row { margin: 0; font-size: 12px; padding: 8px 9px 8px 10px; }
.filter-togs .mini-row > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.section-ui { overflow: clip; }
.ui-glow {
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(1100px, 120vw);
  aspect-ratio: 1.6;
  translate: -50% -30%;
  background: radial-gradient(closest-side, rgba(190, 70, 185, 0.28), transparent 70%);
  pointer-events: none;
  animation: drift 18s ease-in-out infinite alternate;
}
.win-stage { position: relative; max-width: 920px; margin-inline: auto; perspective: 1600px; }
.pwin {
  --p: 1;
  position: relative;
  padding: 22px 24px 26px;
  border-radius: 28px;
  background: linear-gradient(180deg, #17101b 0%, #110b14 100%);
  border: 1px solid rgba(255, 230, 255, 0.08);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.45), 0 0 90px -30px rgba(236, 126, 230, 0.35);
  transform-origin: 50% 0;
  transform: rotateX(calc((1 - var(--p)) * 24deg)) translateY(calc((1 - var(--p)) * 30px)) scale(calc(0.9 + var(--p) * 0.1));
  transition: opacity 0.35s ease;
  will-change: transform;
}
.pwin.is-closing { opacity: 0; }
.pwin-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 2px 18px; }
.pwin-title { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 21px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; }
.pwin-title img { width: 34px; height: 34px; filter: drop-shadow(0 0 10px var(--glow)); }
.pwin-bar { width: 2px; height: 26px; border-radius: 1px; background: #fff; }
.pwin-title .gv { margin-left: 6px; }
.pwin-ctrls { display: flex; align-items: center; gap: 4px; }
.pwin-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: #5f5463; }
.pwin-ico .ico { width: 22px; height: 22px; }
.pwin-ico.is-btn { border: 0; background: transparent; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.pwin-ico.is-btn:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.pwin-body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.55s var(--ease-out); }
.pwin.is-min .pwin-body { grid-template-rows: 0fr; }
.pwin-inner { min-height: 0; overflow: hidden; }
.pwin.is-min .pwin-head { padding-bottom: 4px; }

.pwin-tabs { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 6px; margin-bottom: 16px; scrollbar-width: none; }
.pwin-tabs::-webkit-scrollbar { display: none; }
.ptab {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid #3a2a3f;
  background: rgba(30, 20, 35, 0.6);
  color: #a596a9;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background-color 0.25s, box-shadow 0.25s;
}
.ptab .ico { width: 19px; height: 19px; }
.ptab:hover { color: var(--text); border-color: #5a3d5e; }
.ptab.is-active { background: linear-gradient(180deg, #3d1f40, #2d1730); border-color: #c768c3; color: #fff; box-shadow: 0 6px 22px -8px rgba(236, 126, 230, 0.6); }

.pwin-panels { position: relative; }
.ppanel.enter { animation: panelIn 0.5s var(--ease-out) both; }
.ppanel-sk { animation: panelIn 0.25s ease both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.pgroup { display: grid; gap: 10px; align-content: start; min-width: 0; }
.span-all { grid-column: 1 / -1; }
.plabel { font-size: 15px; font-weight: 500; color: #8b7e8f; padding-left: 2px; }
.prow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 0 16px 0 20px;
  border-radius: 16px;
  background: linear-gradient(180deg, #1f1624, #1a1220);
  border: 1px solid var(--line);
  color: #f2ecf3;
  font-size: 17px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s, background-color 0.25s, color 0.3s;
}
.prow > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow .tog { --tw: 52px; --th: 32px; --k: 26px; }
button.prow:hover:not(:disabled) { border-color: #4f3854; }
.prow[aria-checked="true"] { border-color: rgba(236, 126, 230, 0.32); }
.prow:disabled, .prow.kb.is-off { color: #8a7e8d; cursor: default; background: linear-gradient(180deg, #19121d, #150f19); }
.prow:disabled .tog::after { background: #3a3140; box-shadow: none; }
.prow.kb { cursor: default; }
.prow.flash { animation: flash 0.6s ease-out; }
.kbchip {
  min-width: 92px;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: #110c13;
  color: #6f6473;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.kbchip:disabled { cursor: default; color: #4a4250; }
.kbchip:not(:disabled):hover { border-color: rgba(236, 126, 230, 0.45); color: var(--text); }
.kbchip.has-key { color: var(--text); border-color: rgba(236, 126, 230, 0.35); font-family: var(--font-mono); font-size: 15px; }
.kbchip.is-listening { color: var(--pulse); border-color: var(--pulse); animation: listen 1s ease-in-out infinite; }

.pstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.pstat {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 150px;
  padding: 20px 22px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(60deg, #2a1830 0%, #5c2a62 40%, #a14ba3 76%, #bb58ba 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.pstat::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, 0.16), transparent 55%); pointer-events: none; }
.pstat-title { position: relative; font-weight: 600; font-size: 21px; letter-spacing: -0.01em; }
.pstat-foot { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pstat-value { font-weight: 500; font-size: 23px; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; white-space: nowrap; }
.pstat-meta { font-size: 14px; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.85); white-space: nowrap; }
.pstat-value.estimating {
  display: inline-block;
  width: 130px;
  height: 22px;
  border-radius: 8px;
  color: transparent;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.12) 40%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0.12) 60%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}
.pstat-pops { position: absolute; right: 20px; top: 46%; display: grid; justify-items: end; pointer-events: none; }
.pstat-pop {
  grid-area: 1 / 1;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(20, 10, 22, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  color: #fff;
  animation: floatUp 1.6s var(--ease-out) both;
}

.ppanel-teaser { position: relative; min-height: 330px; }
.teaser-ghost { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; opacity: 0.5; }
.teaser-card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(380px, calc(100% - 24px));
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 28px 26px;
  border-radius: 22px;
  text-align: center;
  background: rgba(20, 14, 24, 0.92);
  border: 1px solid rgba(255, 230, 255, 0.1);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.teaser-card img { width: 44px; height: 44px; filter: drop-shadow(0 0 12px var(--glow)); }
.teaser-card strong { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.03em; }
.teaser-card p { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin-bottom: 6px; }

.pwin-closed {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 80px 20px;
  border-radius: 28px;
  border: 1px dashed rgba(255, 230, 255, 0.14);
  text-align: center;
  color: var(--muted);
  animation: panelIn 0.5s var(--ease-out) both;
}
.pwin-closed img { width: 40px; height: 40px; filter: drop-shadow(0 0 12px var(--glow)); }
.win-note { margin-top: 22px; text-align: center; font-size: 13px; color: var(--dim); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 30px 28px 28px;
  border-radius: 22px;
  background: rgba(22, 16, 27, 0.8);
  border: 1px solid var(--line-soft);
  overflow: hidden;
}
.js .step.reveal { transition-delay: calc(var(--si, 0) * 90ms); }
.step::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: rgba(255, 255, 255, 0.05); }
.step::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--pulse-deep), var(--pulse-hot));
  box-shadow: 0 0 12px var(--pulse);
  transform: scaleX(0);
  transform-origin: 0 50%;
  animation: stepFill 4.5s ease-in-out infinite;
  animation-delay: calc(var(--si, 0) * 1.2s);
}
@keyframes stepFill {
  0% { transform: scaleX(0); opacity: 1; }
  26% { transform: scaleX(1); opacity: 1; }
  80% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}
.step-n {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 68px;
  line-height: 0.9;
  background: linear-gradient(180deg, var(--pulse-hot), var(--pulse-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: max-content;
  padding-right: 0.1em;
}
.step h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.03em; }
.step p { color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.step-vis {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(10, 7, 13, 0.6);
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 500;
  min-height: 54px;
}
.step p + .step-vis { margin-top: auto; }
.step-vis code { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step-vis .ico { color: var(--pulse); }
.exec-btn { padding: 6px 14px; border-radius: 9px; background: var(--pulse); color: var(--pulse-ink); font-weight: 600; font-size: 12.5px; animation: press 3s ease-in-out infinite; }
.exec-ok { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-size: 13px; animation: okIn 3s ease-in-out infinite; }
.exec-ok .ico { color: var(--ok); width: 15px; height: 15px; }
@keyframes press { 0%, 20%, 30%, 100% { transform: none; } 25% { transform: scale(0.92); } }
@keyframes okIn { 0%, 26% { opacity: 0; transform: translateX(-6px); } 34%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.steps { align-items: stretch; }
.step { margin-top: 0; }
.step > p { margin-bottom: 10px; }

.cta { position: relative; overflow: clip; padding-block: clamp(90px, 12vw, 160px); text-align: center; }
.cta-glow {
  position: absolute;
  left: 50%;
  bottom: -40%;
  width: min(1200px, 140vw);
  aspect-ratio: 1.4;
  translate: -50% 0;
  background: radial-gradient(closest-side, rgba(205, 72, 196, 0.42), rgba(140, 40, 140, 0.14) 55%, transparent 72%);
  animation: drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}
.cta-inner { position: relative; display: grid; justify-items: center; gap: 22px; }
.mark-sm { width: 84px; margin-bottom: 6px; }
.cta h2 { font-size: clamp(44px, 7.4vw, 96px); line-height: 0.98; }
.cta p { color: var(--muted); font-size: 18px; max-width: 46ch; text-wrap: balance; }
.loader-cta { text-align: left; margin-block: 6px; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.footer { border-top: 1px solid var(--line-soft); padding-block: 44px calc(40px + env(safe-area-inset-bottom, 0px)); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px 40px; }
.footer-brand { display: grid; gap: 10px; }
.footer-brand .brand { font-size: 19px; }
.footer-brand .brand img { width: 26px; height: 26px; }
.footer-brand p { color: var(--muted); font-size: 14.5px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 14.5px; color: var(--muted); }
.footer-links a { transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.fine { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--dim); }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(28, 19, 33, 0.94);
  border: 1px solid rgba(236, 126, 230, 0.35);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.75), 0 0 34px -12px rgba(236, 126, 230, 0.6);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 14.5px;
  font-weight: 500;
  opacity: 0;
  transform: translate(-50%, 20px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out), transform 0.45s var(--ease-spring);
}
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.toast .ico { width: 16px; height: 16px; color: var(--pulse); }

.is-paused, .is-paused * { animation-play-state: paused !important; }

@media (min-width: 1081px) {
  .deck-scale { transform: translateX(-38%) scale(var(--s, 1)); }
}

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .hero { padding-bottom: 60px; }
  .hero-visual { margin-top: 10px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-farm { grid-column: 1 / -1; }
  .games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .c-farm { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .pstats { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pstat { min-height: 112px; }
  .teaser-ghost { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .hide-sm { display: none; }
  .nav-inner { height: 66px; }
  .hero { padding-top: calc(env(safe-area-inset-top, 0px) + 112px); }
  .hero-copy { gap: 18px; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 22px; }
  .games { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .game { aspect-ratio: 4 / 5; border-radius: 20px; }
  .game-icon { width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 18px; top: 33%; }
  .game-icon .ico { width: 28px; height: 28px; }
  .game-meta { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; }
  .game-meta h3 { font-size: 16px; }
  .game-state { height: 24px; font-size: 11.5px; padding: 0 9px; }
  .pwin { padding: 16px 14px 18px; border-radius: 22px; }
  .pwin-title { font-size: 17px; gap: 8px; }
  .pwin-title img { width: 28px; height: 28px; }
  .pwin-bar { height: 20px; }
  .pwin-title .gv { font-size: 12px; margin-left: 2px; }
  .pwin-ctrls .pwin-ico:not(.is-btn) { display: none; }
  .ptab { height: 42px; padding: 0 16px; font-size: 15px; }
  .pgrid { grid-template-columns: minmax(0, 1fr); }
  .prow { min-height: 58px; font-size: 16px; padding: 0 14px 0 16px; }
  .pstat-title { font-size: 18px; }
  .loader { padding-left: 16px; }
  .loader-code { font-size: 13px; }
  .copy-btn { padding: 0 14px; }
  .hero-actions .btn-lg { flex: 1 1 auto; }
  .filter-vis { grid-template-columns: minmax(0, 1fr); height: auto; }
  .pops { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 420px) {
  .hide-xs { display: none; }
  .nav .btn-ghost.btn-sm { width: 40px; padding: 0; }
  .copy-label { display: none; }
  .copy-btn { width: 46px; justify-content: center; padding: 0; }
  .teaser-card .copy-label { display: inline; }
  .chip { height: 36px; font-size: 13.5px; padding: 0 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .pwin { --p: 1 !important; }
}
