:root {
  --bg: #000;
  --text: #f2f2f7;
  --muted: #9a9ab2;
  --dim: #6e6e88;
  --blurple: #5865f2;
  --stroke: rgba(255,255,255,0.1);
  --glass: rgba(12,12,16,0.55);
  --radius: 18px;
  --font: "Fredoka", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: clamp(13px, 0.35vw + 12.5px, 16.5px);
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font);
  background: #000;
  color: var(--text);
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
}
body.intro-lock { overflow: hidden !important; height: 100dvh; touch-action: none; }
.liquid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 520px at 15% 0%, rgba(120,110,255,0.28), transparent 55%),
    radial-gradient(700px 420px at 90% 20%, rgba(88,101,242,0.16), transparent 50%),
    radial-gradient(600px 400px at 40% 100%, rgba(80,50,160,0.12), transparent 50%),
    #000;
  transition: filter .55s ease, opacity .55s ease;
}
.liquid-bg.blurred { filter: blur(20px) saturate(120%); }

/* —— intro / clean overlay —— */
.page-intro {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: opacity .45s ease, visibility .45s ease;
}
.page-intro.done { opacity: 0; visibility: hidden; pointer-events: none; }
.page-intro-inner { text-align: center; display: grid; gap: 1rem; place-items: center; position: relative; }
.page-intro-label {
  font-size: clamp(0.95rem, 2vw + 0.55rem, 1.2rem);
  color: #c8c8d8; letter-spacing: 0.04em; font-weight: 500;
  transition: opacity .35s ease, transform .35s ease, filter .35s ease;
}
.page-intro-label b { color: #fff; font-weight: 700; }
.page-intro-label.wipe {
  opacity: 0; filter: blur(14px); transform: scale(0.85) translateY(-10px);
  letter-spacing: 0.2em;
}
.page-intro .block {
  width: clamp(88px, 18vw, 140px);
  height: clamp(88px, 18vw, 140px);
  object-fit: contain;
  filter: drop-shadow(0 12px 30px rgba(120,100,255,0.4));
  animation: blockClean 1.35s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes blockClean {
  0%   { transform: translate(-120px, 40px) rotate(-160deg) scale(0.35); opacity: 0; }
  20%  { transform: translate(-50px, -15px) rotate(-40deg) scale(1.05); opacity: 1; }
  45%  { transform: translate(55px, 12px) rotate(90deg) scale(1.15); opacity: 1; }
  70%  { transform: translate(20px, -20px) rotate(200deg) scale(1.05); opacity: 1; }
  100% { transform: translate(0, 0) rotate(360deg) scale(1); opacity: 1; }
}

/* —— index welcome + finish —— */
.welcome-stage {
  position: fixed; inset: 0; z-index: 210;
  display: grid; place-items: center;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: opacity .5s ease, visibility .5s ease;
}
.welcome-stage.done { opacity: 0; visibility: hidden; pointer-events: none; }
.welcome-line {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.4rem 0.55rem;
  font-size: clamp(1.45rem, 4.5vw + 0.4rem, 2.85rem);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.1;
  transition: opacity .4s ease, filter .4s ease, transform .4s ease;
}
.welcome-line.wipe { opacity: 0; filter: blur(16px); transform: scale(0.82) skewX(-6deg); letter-spacing: 0.18em; }
.welcome-line span { display: inline-block; opacity: 0; }
.welcome-line .w-welcome { transform: translateY(-90px); animation: dropIn .7s cubic-bezier(.2,.85,.2,1) 0.08s forwards; }
.welcome-line .w-to { transform: translateY(90px); animation: dropIn .7s cubic-bezier(.2,.85,.2,1) 0.4s forwards; }
.welcome-line .w-nexx { transform: translateY(-70px); animation: dropIn .7s cubic-bezier(.2,.85,.2,1) 0.7s forwards; }
.welcome-line .w-ware { transform: translateY(70px); animation: dropIn .7s cubic-bezier(.2,.85,.2,1) 0.9s forwards; }
@keyframes dropIn { to { opacity: 1; transform: translateY(0); } }
.welcome-block {
  position: absolute;
  width: clamp(72px, 14vw, 110px);
  height: clamp(72px, 14vw, 110px);
  object-fit: contain; opacity: 0;
  filter: drop-shadow(0 10px 28px rgba(120,100,255,0.45));
  pointer-events: none;
}
.welcome-block.run {
  animation: blockSweep 1.5s cubic-bezier(.25,.8,.25,1) forwards;
}
@keyframes blockSweep {
  0%   { opacity: 0; transform: translate(130px, 30px) rotate(-140deg) scale(0.35); }
  15%  { opacity: 1; transform: translate(70px, 5px) rotate(-40deg) scale(1.1); }
  40%  { opacity: 1; transform: translate(0, -12px) rotate(80deg) scale(1.2); }
  65%  { opacity: 1; transform: translate(-80px, 8px) rotate(200deg) scale(1.05); }
  85%  { opacity: 0.7; transform: translate(-140px, -15px) rotate(300deg) scale(0.7); }
  100% { opacity: 0; transform: translate(-200px, -30px) rotate(400deg) scale(0.25); }
}
.finish-stage {
  position: fixed; inset: 0; z-index: 205;
  display: grid; place-items: center;
  pointer-events: none;
}
.finish-title {
  font-size: clamp(1.5rem, 4vw + 0.5rem, 2.6rem);
  font-weight: 700; letter-spacing: -0.03em;
  opacity: 0; transform: translateY(24px) scale(0.96);
  transition: opacity .55s cubic-bezier(.2,.8,.2,1), transform .55s cubic-bezier(.2,.8,.2,1);
  text-align: center;
}
.finish-title.show { opacity: 1; transform: translateY(0) scale(1); }
.finish-block {
  width: clamp(64px, 12vw, 96px); height: clamp(64px, 12vw, 96px);
  object-fit: contain; margin: 0 auto 0.75rem;
  opacity: 0; transform: rotate(-180deg) scale(0.4);
  transition: opacity .5s ease, transform .7s cubic-bezier(.2,.85,.2,1);
  filter: drop-shadow(0 8px 24px rgba(120,100,255,0.4));
}
.finish-block.show { opacity: 1; transform: rotate(0deg) scale(1); }

.wrap {
  position: relative; z-index: 1;
  max-width: 920px; margin: 0 auto;
  padding: clamp(0.85rem, 2.5vw, 1.75rem);
}
.wrap.reveal-up {
  animation: contentUp .65s cubic-bezier(.2,.85,.2,1) both;
}
.wrap.reveal-split .cta-row,
.wrap.reveal-split .hero > *:not(.cta-row) {
  opacity: 0;
}
@keyframes contentUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}
.glass {
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--stroke);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.07);
  border-radius: var(--radius);
}
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 0.55rem;
  text-decoration: none; color: inherit; font-weight: 700;
  font-size: clamp(0.9rem, 0.3vw + 0.85rem, 1.05rem);
}
.brand img.logo { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 10px;
  display: none; place-items: center;
  background: linear-gradient(135deg, #7c6cff, #5865f2); font-weight: 700;
}
.top-actions {
  display: flex; align-items: center; gap: 0.35rem; flex-shrink: 0;
}
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.05);
  color: #fff; text-decoration: none; cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.icon-btn:hover { background: rgba(255,255,255,0.1); }
.icon-btn:active { transform: scale(0.95); }
.icon-btn i, .icon-btn svg { width: 18px; height: 18px; }
.profile-btn img {
  width: 28px; height: 28px; border-radius: 50%; object-fit: cover;
}

.page-title {
  font-size: clamp(1.3rem, 1.8vw + 1rem, 1.85rem);
  font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.3rem;
}
.page-desc { color: var(--muted); margin-bottom: 1rem; font-size: clamp(0.85rem, 0.2vw + 0.8rem, 0.95rem); }

/* CTA trio — always 3 in a row, scales down */
.cta-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(0.35rem, 1.5vw, 0.65rem);
  width: 100%;
  max-width: 420px;
  margin: 1.35rem auto 0;
}
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-family: inherit;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(16px);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
  min-height: clamp(44px, 10vw, 52px);
  padding: 0.65rem 0.75rem;
  font-size: clamp(0.78rem, 0.3vw + 0.72rem, 0.92rem);
}
.cta:hover { transform: translateY(-2px); background: rgba(255,255,255,0.1); }
.cta:active { transform: scale(0.97); }
.cta i, .cta svg { width: clamp(16px, 4vw, 20px); height: clamp(16px, 4vw, 20px); flex-shrink: 0; }
.cta-other, .cta-home {
  flex: 0 0 auto;
  width: clamp(48px, 12vw, 64px);
  padding: 0.65rem;
}
.cta-download {
  flex: 1 1 auto;
  min-width: 0;
  background: linear-gradient(135deg, #5865f2, #3f4bd1);
  border-color: transparent;
  box-shadow: 0 10px 28px rgba(88,101,242,0.38);
  padding: 0.65rem 1rem;
}
.cta-download span { white-space: nowrap; }
.cta-download:hover {
  filter: brightness(1.06);
  background: linear-gradient(135deg, #5865f2, #3f4bd1);
}
.cta-row.anim-in .cta-other { animation: fadeDown .55s cubic-bezier(.2,.85,.2,1) 0.05s both; }
.cta-row.anim-in .cta-download { animation: fadeUp .55s cubic-bezier(.2,.85,.2,1) 0.15s both; }
.cta-row.anim-in .cta-home { animation: fadeDown .55s cubic-bezier(.2,.85,.2,1) 0.25s both; }

.hero {
  text-align: center;
  padding: clamp(1.5rem, 5vw, 3.5rem) 0.25rem 0.5rem;
}
.hero .badge {
  display: inline-block; padding: 0.28rem 0.65rem; border-radius: 999px;
  font-size: 0.72rem; font-weight: 600; color: #c8bfff;
  background: rgba(124,108,255,0.18); border: 1px solid rgba(124,108,255,0.25);
  margin-bottom: 0.85rem;
}
.hero h1 {
  font-size: clamp(1.75rem, 4.5vw + 0.6rem, 3.2rem);
  letter-spacing: -0.03em;
}
.hero p {
  margin: 0.75rem auto 0; max-width: 28rem;
  color: var(--muted); line-height: 1.55;
  font-size: clamp(0.88rem, 0.25vw + 0.82rem, 1rem);
}
.legal-line {
  margin-top: 1.75rem;
  text-align: center;
  font-size: clamp(0.78rem, 0.2vw + 0.75rem, 0.88rem);
  color: var(--dim);
  line-height: 1.5;
}
.legal-line a {
  color: #c8bfff;
  text-decoration: none;
  border-bottom: 1px solid rgba(200,191,255,0.35);
  font-weight: 600;
}
.legal-line a:hover { color: #fff; border-bottom-color: #fff; }

.mini-nav {
  display: flex; gap: 0.3rem; align-items: center;
}
.mini-nav .cta { min-height: 38px; border-radius: 12px; }
.mini-nav .cta-other, .mini-nav .cta-home { width: 38px; padding: 0.4rem; }
.mini-nav .cta-download { padding: 0.4rem 0.7rem; flex: 0 0 auto; box-shadow: 0 6px 16px rgba(88,101,242,0.3); }

.tabs {
  display: flex; gap: 0.3rem; overflow-x: auto; scrollbar-width: none;
  margin-bottom: 0.9rem; padding: 0.3rem;
  -webkit-overflow-scrolling: touch;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto; border: 0; background: rgba(255,255,255,0.05);
  color: var(--muted); font-family: inherit; font-weight: 600;
  font-size: clamp(0.72rem, 0.2vw + 0.7rem, 0.8rem);
  padding: 0.5rem 0.8rem; border-radius: 999px; cursor: pointer;
}
.tab.on { background: rgba(88,101,242,0.3); color: #fff; }
.panel { display: none; }
.panel.on { display: block; animation: fadeUp .35s ease both; }

.card { padding: 1.05rem 1.15rem; margin-bottom: 0.7rem; }
.card h3 { margin-bottom: 0.3rem; font-size: 1.02rem; }
.card p { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: 0.65rem;
}
.stat-card { padding: 1rem; }
.stat-card .label { font-size: 0.7rem; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; }
.stat-card .value { font-size: clamp(1.25rem, 2vw + 0.8rem, 1.55rem); font-weight: 700; margin-top: 0.25rem; }
.code-box { margin-top: 0.55rem; overflow: hidden; }
.code-box-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.45rem 0.7rem; border-bottom: 1px solid var(--stroke);
}
.code-box pre {
  padding: 0.75rem; overflow-x: auto; font-size: 0.75rem;
  font-family: ui-monospace, Menlo, monospace; color: #d7d7ea; line-height: 1.45;
}
.copy-btn, .glass-btn {
  border: 1px solid var(--stroke); background: rgba(255,255,255,0.06);
  color: #fff; border-radius: 10px; padding: 0.42rem 0.75rem;
  font-family: inherit; font-weight: 600; font-size: 0.78rem;
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 0.3rem;
}
.glass-btn.primary { background: var(--blurple); border-color: transparent; }
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 0.7rem;
}
.game-card { overflow: hidden; padding: 0; cursor: pointer; transition: transform .2s ease; }
.game-card:hover { transform: translateY(-3px); }
.game-banner { height: clamp(90px, 22vw, 120px); background-size: cover; background-position: center; }
.game-body { padding: 0.85rem 0.95rem 1rem; }
.game-body img {
  width: 48px; height: 48px; border-radius: 12px; object-fit: cover;
  margin-top: -28px; border: 3px solid #0c0c10; background: #1a1a24;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 0.7rem;
}
.media-card { overflow: hidden; padding: 0; }
.media-card img, .media-card video { width: 100%; height: 150px; object-fit: cover; display: block; }
.media-cap { padding: 0.5rem 0.7rem; font-size: 0.78rem; color: var(--muted); }
.not-done { text-align: center; padding: 1.75rem 1.1rem; }
.not-done .tag {
  display: inline-block; margin-top: 0.55rem; padding: 0.22rem 0.5rem;
  border-radius: 999px; font-size: 0.68rem; background: rgba(255,255,255,0.06); color: var(--dim);
}
table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
th, td { padding: 0.6rem 0.45rem; text-align: left; border-bottom: 1px solid var(--stroke); }
th { color: var(--dim); font-size: 0.72rem; font-weight: 600; }
.faq-item, .why-item, .link-item { margin-bottom: 0.55rem; padding: 0.95rem 1.05rem; }
.faq-item h4 { margin-bottom: 0.3rem; }
.faq-item p, .why-item p { color: var(--muted); font-size: 0.88rem; line-height: 1.45; }
.why-item { display: flex; gap: 0.8rem; }
.why-item .num { font-weight: 700; color: #c8bfff; min-width: 1.8rem; }
.link-item {
  display: flex; justify-content: space-between; align-items: center;
  text-decoration: none; color: inherit;
}
.link-item span { color: var(--muted); font-size: 0.85rem; }

/* Discord game modal */
#game-modal[hidden] { display: none !important; }
#game-modal {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.gm-sheet {
  width: min(440px, 100%);
  max-height: min(90dvh, 720px);
  overflow: auto;
  border-radius: 12px;
  background: #1e1f22;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 24px 64px rgba(0,0,0,0.65);
  animation: sheetPop .32s cubic-bezier(.2,.9,.2,1);
}
@keyframes sheetPop {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.gm-banner {
  height: 120px; background-size: cover; background-position: center;
  background-color: #5865f2; position: relative;
}
.gm-banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 45%, #1e1f22);
}
.gm-close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%; border: 0;
  background: rgba(0,0,0,0.55); color: #fff; cursor: pointer;
  display: grid; place-items: center;
}
.gm-body { padding: 0 16px 18px; margin-top: -42px; position: relative; z-index: 1; }
.gm-logo {
  width: 84px; height: 84px; border-radius: 50%;
  border: 7px solid #1e1f22; object-fit: cover; background: #111;
}
.gm-title { margin-top: 10px; font-size: 1.25rem; font-weight: 700; }
.gm-desc { color: #b5bac1; font-size: 0.88rem; margin-top: 0.35rem; line-height: 1.45; }
.gm-status {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 0.55rem; font-size: 0.75rem; font-weight: 600; color: #57f287;
}
.gm-status i { width: 7px; height: 7px; border-radius: 50%; background: #57f287; box-shadow: 0 0 8px #57f287; }
.gm-tabs {
  display: flex; gap: 0; border-bottom: 1px solid #3f4147; margin: 14px 0 12px;
}
.gm-tab {
  background: transparent; border: 0; border-bottom: 2px solid transparent;
  color: #b5bac1; font-family: inherit; font-size: 0.88rem; font-weight: 500;
  padding: 0.55rem 0.15rem; margin-right: 1rem; cursor: pointer;
}
.gm-tab.on { color: #fff; border-bottom-color: #fff; }
.gm-content { color: #b5bac1; font-size: 0.88rem; line-height: 1.5; }
.gm-content h4 {
  color: #f2f3f5; font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 0.5rem;
}
.gm-cl { list-style: none; display: grid; gap: 0.5rem; }
.gm-cl li {
  background: #2b2d31; border-radius: 8px; padding: 0.65rem 0.75rem;
}

.gm-actions {
  display: flex; gap: 0.5rem; margin-top: 14px; flex-wrap: wrap;
}
.gm-btn {
  flex: 1; min-width: 120px;
  border: 0; border-radius: 8px;
  padding: 0.65rem 0.9rem;
  font-family: inherit; font-weight: 600; font-size: 0.88rem;
  cursor: pointer;
  transition: filter .15s ease, transform .15s ease;
}
.gm-btn:active { transform: scale(0.97); }
.gm-btn.primary {
  background: #5865f2; color: #fff;
}
.gm-btn.primary:hover { filter: brightness(1.08); }
.gm-btn.ghost {
  background: #2b2d31; color: #f2f3f5;
}
.gm-btn.ghost:hover { filter: brightness(1.1); }

/* Message / feedback chat sheet */
#msg-modal[hidden] { display: none !important; }
#msg-modal {
  position: fixed; inset: 0; z-index: 130;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.msg-sheet {
  width: min(420px, 100%);
  border-radius: 12px;
  background: #1e1f22;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 24px 64px rgba(0,0,0,0.65);
  overflow: hidden;
  animation: sheetPop .3s cubic-bezier(.2,.9,.2,1);
}
.msg-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #3f4147;
  font-weight: 700; font-size: 0.95rem;
}
.msg-head button {
  width: 28px; height: 28px; border-radius: 50%; border: 0;
  background: #2b2d31; color: #fff; cursor: pointer;
}
.msg-body { padding: 14px; }
.msg-preview {
  display: flex; gap: 10px; align-items: flex-start;
  background: #2b2d31; border-radius: 10px; padding: 10px 12px;
  margin-bottom: 12px;
}
.msg-preview img {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.msg-preview .bubble {
  flex: 1; font-size: 0.85rem; color: #dbdee1; line-height: 1.4;
}
.msg-preview .bubble strong { display: block; font-size: 0.78rem; color: #f2f3f5; margin-bottom: 2px; }
.msg-field {
  width: 100%; min-height: 90px; resize: vertical;
  background: #111214; border: 1px solid #3f4147; border-radius: 8px;
  color: #f2f3f5; padding: 10px 12px; font-family: inherit; font-size: 0.9rem;
  outline: none;
}
.msg-field:focus { border-color: #5865f2; }
.msg-foot {
  display: flex; justify-content: flex-end; gap: 0.45rem; margin-top: 10px;
}
.msg-status { font-size: 0.78rem; color: #949ba4; margin-top: 8px; min-height: 1.1em; }
.msg-status.ok { color: #57f287; }
.msg-status.err { color: #ed4245; }

.erase-trail {
  position: absolute;
  width: 120%; height: 2px;
  left: -10%; top: 50%;
  background: linear-gradient(90deg, transparent, rgba(180,160,255,0.7), transparent);
  opacity: 0;
  pointer-events: none;
}
.erase-trail.on {
  animation: trailFlash .6s ease forwards;
}
@keyframes trailFlash {
  0% { opacity: 0; transform: scaleX(0.2); }
  40% { opacity: 1; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(1.2); }
}

.gm-cl .d { display: block; font-size: 0.7rem; color: #949ba4; font-weight: 600; margin-bottom: 0.15rem; }

/* obfuscator + key (compact) */
.obf-grid { display: grid; gap: 0.7rem; }
@media (min-width: 860px) { .obf-grid { grid-template-columns: 1fr 1fr; } }
.obf-pane { display: flex; flex-direction: column; min-height: 260px; overflow: hidden; padding: 0 !important; }
.obf-pane-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.5rem 0.7rem; border-bottom: 1px solid var(--stroke);
  font-size: 0.75rem; font-weight: 600; color: #c8c8d8;
}
.obf-pane textarea {
  flex: 1; min-height: 160px; width: 100%; border: 0;
  background: rgba(0,0,0,0.35); color: #e8e8f2; padding: 0.7rem;
  font-family: ui-monospace, Menlo, monospace; font-size: 0.75rem; resize: vertical; outline: none;
}
.obf-tools {
  display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center;
  justify-content: space-between; padding: 0.55rem 0.7rem; border-top: 1px solid var(--stroke);
}
.preset-chip {
  border: 1px solid var(--stroke); background: rgba(255,255,255,0.05);
  color: #c8c8d8; border-radius: 999px; padding: 0.3rem 0.6rem;
  font-family: inherit; font-size: 0.7rem; font-weight: 600; cursor: pointer;
}
.preset-chip.on { background: var(--blurple); color: #fff; border-color: transparent; }
.obf-upload { font-size: 0.7rem; font-weight: 600; cursor: pointer; padding: 0.3rem 0.6rem; border-radius: 999px; background: rgba(255,255,255,0.08); }
.obf-upload input { display: none; }
.obf-meta { padding: 0.4rem 0.7rem; font-size: 0.7rem; color: var(--dim); }
.obf-credit { text-align: center; font-size: 0.72rem; color: var(--dim); margin-top: 0.45rem; }

.key-lock-card, .key-panel { padding: 1.15rem; background: rgba(0,0,0,0.5) !important; }
.key-lock-badge {
  display: inline-block; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em;
  padding: 0.22rem 0.5rem; border-radius: 6px; background: rgba(0,0,0,0.5);
  border: 1px solid var(--stroke); color: #c8c8d0; margin-bottom: 0.55rem;
}
.key-warn {
  background: rgba(0,0,0,0.45); border: 1px solid rgba(255,210,100,0.2);
  color: #e6d5a8; padding: 0.65rem 0.8rem; border-radius: 12px;
  font-size: 0.8rem; margin: 0.65rem 0; line-height: 1.45;
}
.key-input-row { display: flex; gap: 0.45rem; flex-wrap: wrap; }
#key-user {
  flex: 1; min-width: 120px; background: rgba(0,0,0,0.55);
  border: 1px solid var(--stroke); color: #fff; border-radius: 10px;
  padding: 0.65rem 0.8rem; font-family: inherit; outline: none; font-size: 0.9rem;
}
.key-cand {
  display: flex; gap: 0.65rem; align-items: center; width: 100%; text-align: left;
  padding: 0.6rem 0.7rem; border-radius: 12px; border: 1px solid var(--stroke);
  background: rgba(0,0,0,0.4); color: inherit; font-family: inherit; cursor: pointer; margin-bottom: 0.35rem;
}
.key-cand.on { border-color: rgba(88,101,242,0.55); background: rgba(88,101,242,0.12); }
.key-cand img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.key-cand strong { display: block; font-size: 0.88rem; }
.key-cand span { display: block; font-size: 0.72rem; color: var(--muted); }
.key-reveal code {
  display: block; word-break: break-all; margin: 0.45rem 0 0.65rem;
  padding: 0.6rem; background: rgba(0,0,0,0.4); border-radius: 8px; font-size: 0.88rem;
}
.key-msg { margin-top: 0.55rem; font-size: 0.8rem; color: var(--muted); }
.key-msg.ok { color: #8fd99a; }
.key-msg.err { color: #ff9a9c; }
.key-row {
  display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center;
  padding: 0.5rem 0.6rem; border-radius: 10px; background: rgba(0,0,0,0.4);
  margin-bottom: 0.35rem; font-size: 0.78rem;
}
.key-row code { flex: 1; min-width: 100px; word-break: break-all; }

/* TOS document */
.tos-doc {
  max-width: 720px; margin: 0 auto;
  padding: clamp(1rem, 3vw, 1.75rem);
  background: rgba(0,0,0,0.45);
  border: 1px solid var(--stroke);
  border-radius: 16px;
}
.tos-doc h1 {
  font-size: clamp(1.35rem, 2vw + 1rem, 1.75rem);
  margin-bottom: 0.35rem;
}
.tos-meta {
  color: var(--dim); font-size: 0.8rem; margin-bottom: 1.25rem;
  padding-bottom: 0.85rem; border-bottom: 1px solid var(--stroke);
}
.tos-section { margin-bottom: 1.35rem; }
.tos-section h2 {
  font-size: 1rem; margin-bottom: 0.55rem;
  display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap;
}
.tos-tag {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.06em;
  padding: 0.15rem 0.4rem; border-radius: 4px;
}
.tos-tag.a { background: rgba(87,242,135,0.15); color: #57f287; }
.tos-tag.b { background: rgba(254,231,92,0.15); color: #fee75c; }
.tos-tag.c { background: rgba(237,66,69,0.18); color: #ed4245; }
.tos-section ol {
  list-style: none; display: grid; gap: 0.45rem;
  counter-reset: tos;
}
.tos-section ol li {
  position: relative;
  padding: 0.55rem 0.7rem 0.55rem 2.6rem;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.05);
  color: var(--muted); font-size: 0.88rem; line-height: 1.45;
}
.tos-section ol li::before {
  position: absolute; left: 0.65rem; top: 0.55rem;
  font-weight: 700; font-size: 0.75rem; color: #c8bfff;
  content: attr(data-id);
}

footer { text-align: center; margin-top: 1.75rem; color: var(--dim); font-size: 0.75rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}


/* docs layout (pastefy-ish) */
.docs-wrap { max-width: 1100px; }
.docs-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem; gap: 0.75rem;
}
.docs-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1rem;
  align-items: start;
}
@media (max-width: 800px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-side { display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0.65rem !important; }
  .docs-side-label { width: 100%; }
  .docs-nav { flex: 0 0 auto; }
}
.docs-side { padding: 0.85rem !important; position: sticky; top: 0.75rem; }
.docs-side-label {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--dim); margin-bottom: 0.5rem; font-weight: 700;
}
.docs-nav {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.45rem 0.55rem; border-radius: 8px;
  color: var(--muted); text-decoration: none; font-size: 0.85rem; font-weight: 600;
}
.docs-nav:hover, .docs-nav.on { background: rgba(88,101,242,0.18); color: #fff; }
.docs-kicker { font-size: 0.75rem; color: #c8bfff; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.docs-h1 { font-size: clamp(1.6rem, 3vw + 0.8rem, 2.4rem); letter-spacing: -0.03em; margin: 0.25rem 0 0.5rem; }
.docs-lead { color: var(--muted); line-height: 1.55; margin-bottom: 0.5rem; max-width: 36rem; }
.docs-section { padding: 1.1rem 1.15rem; margin-top: 1rem; }
.docs-section h2 { font-size: 1.05rem; margin-bottom: 0.45rem; }
.docs-section-head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap;
  margin-bottom: 0.45rem;
}
.docs-p { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.75rem; line-height: 1.5; }
.docs-ol { margin: 0.5rem 0 0 1.1rem; color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
.docs-ol li { margin-bottom: 0.35rem; }
.docs-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.55rem; margin-top: 0.5rem;
}
.docs-card {
  display: block; padding: 0.85rem; border-radius: 12px;
  background: rgba(0,0,0,0.35); border: 1px solid var(--stroke);
  text-decoration: none; color: inherit;
}
.docs-card strong { display: block; margin-bottom: 0.25rem; }
.docs-card span { font-size: 0.8rem; color: var(--muted); }

.cta-row.centered { margin-left: auto; margin-right: auto; justify-content: center; }

/* pastefy-like views */
.view-tabs { display: flex; gap: 0.25rem; background: rgba(0,0,0,0.35); padding: 0.2rem; border-radius: 10px; }
.view-tab {
  border: 0; background: transparent; color: var(--muted);
  font-family: inherit; font-weight: 600; font-size: 0.75rem;
  padding: 0.35rem 0.65rem; border-radius: 8px; cursor: pointer;
}
.view-tab.on { background: rgba(88,101,242,0.35); color: #fff; }
.view-pane { display: none; margin-top: 0.65rem; }
.view-pane.on { display: block; animation: fadeUp .3s ease both; }
.raw-area {
  width: 100%; min-height: 140px; border-radius: 12px; border: 1px solid var(--stroke);
  background: rgba(0,0,0,0.45); color: #d7d7ea; padding: 0.75rem;
  font-family: ui-monospace, Menlo, monospace; font-size: 0.78rem; resize: vertical;
}
.reader-card { padding: 1rem; }
.reader-card h3 { margin-bottom: 0.4rem; }

/* letter erase */
.welcome-line .w-word { display: inline-flex; }
.welcome-line .w-letter {
  display: inline-block; opacity: 0;
  transition: opacity .2s ease, transform .25s ease, filter .25s ease;
}
.welcome-line .w-letter.from-top { transform: translateY(-80px); animation: dropIn .55s cubic-bezier(.2,.85,.2,1) forwards; }
.welcome-line .w-letter.from-bot { transform: translateY(80px); animation: dropIn .55s cubic-bezier(.2,.85,.2,1) forwards; }
.w-welcome .w-letter { animation-delay: 0.08s; }
.w-to .w-letter { animation-delay: 0.35s; }
.w-nexx .w-letter { animation-delay: 0.6s; }
.w-ware .w-letter { animation-delay: 0.8s; }
.welcome-line .w-letter.erased {
  opacity: 0 !important;
  transform: scale(0.4) translateY(-12px) !important;
  filter: blur(6px);
  width: 0 !important;
  margin: 0 !important;
  overflow: hidden;
  animation: none !important;
}

.gm-msg-under { margin-top: 12px; }
.gm-tab iconify-icon { vertical-align: middle; margin-right: 4px; }
iconify-icon { display: inline-block; vertical-align: middle; }

/* —— grid line box background —— */
.liquid-bg {
  background-color: #050508 !important;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px),
    radial-gradient(900px 520px at 15% 0%, rgba(120,110,255,0.22), transparent 55%),
    radial-gradient(700px 420px at 90% 20%, rgba(88,101,242,0.12), transparent 50%) !important;
  background-size: 48px 48px, 48px 48px, auto, auto !important;
  background-position: center center, center center, 0 0, 0 0 !important;
}
.liquid-bg::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}

/* real docs shell — mintlify / nextra-ish */
.docs-shell {
  max-width: 820px;
  margin: 0 auto;
}
.docs-topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.6rem; flex-wrap: wrap;
  padding: 0.75rem 0;
  margin-bottom: 1.25rem;
  background: rgba(5,5,8,0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.docs-top-links {
  display: flex; flex-wrap: wrap; gap: 0.25rem; align-items: center;
}
.docs-top-links a {
  color: var(--muted); text-decoration: none; font-size: 0.8rem; font-weight: 600;
  padding: 0.4rem 0.65rem; border-radius: 8px;
}
.docs-top-links a:hover, .docs-top-links a.on {
  color: #fff; background: rgba(255,255,255,0.06);
}
.docs-prose h1 {
  font-size: clamp(1.75rem, 4vw + 0.5rem, 2.5rem);
  letter-spacing: -0.03em; line-height: 1.15; margin: 0.2rem 0 0.75rem;
}
.docs-prose .lead {
  font-size: clamp(1rem, 0.4vw + 0.9rem, 1.15rem);
  color: var(--muted); line-height: 1.6; margin-bottom: 1.25rem;
  max-width: 40rem;
}
.docs-prose h2 {
  font-size: 1.15rem; margin: 1.75rem 0 0.65rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.docs-prose p { color: var(--muted); line-height: 1.6; margin-bottom: 0.75rem; font-size: 0.95rem; }
.docs-callout {
  border-left: 3px solid #5865f2;
  background: rgba(88,101,242,0.08);
  padding: 0.85rem 1rem;
  border-radius: 0 12px 12px 0;
  margin: 1rem 0;
  font-size: 0.9rem; color: #c8c8d8; line-height: 1.5;
}
.docs-callout strong { color: #fff; }

/* hide old sidebar navigate */
.docs-side, .docs-side-label { display: none !important; }
.docs-layout { grid-template-columns: 1fr !important; }

@media (max-width: 640px) {
  .wrap { padding: 0.75rem !important; }
  .cta-row { max-width: 100%; }
  .gm-sheet { border-radius: 12px 12px 0 0; max-height: 92dvh; }
  #game-modal { align-items: flex-end; padding: 0; }
  .docs-topbar { gap: 0.4rem; }
  .game-grid { grid-template-columns: 1fr !important; }
}

/* discord modal half buttons */
.gm-actions.half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 12px;
}
.gm-actions.half .gm-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 40px;
}
.gm-btn.join {
  background: #248046;
  color: #fff;
}
.gm-btn.join:hover { filter: brightness(1.08); }

/* tighter desktop start — less empty space */
@media (min-width: 900px) {
  .docs-shell { max-width: 720px; }
  .docs-prose h1 { margin-bottom: 0.45rem; }
  .docs-prose .lead { margin-bottom: 0.85rem; }
  .cta-row { margin-top: 0.85rem !important; margin-bottom: 0.35rem; }
  .docs-callout { margin: 0.75rem 0; }
  .docs-prose h2 { margin-top: 1.15rem; }
  .docs-topbar { margin-bottom: 0.85rem; padding: 0.55rem 0; }
  .hero { padding: 1.25rem 0.25rem 0.25rem !important; }
}
/* lightweight motion */
@media (prefers-reduced-motion: no-preference) {
  .page-intro .block { animation-duration: 0.9s !important; }
  .welcome-block.run { animation-duration: 1s !important; }
}
.page-intro, .welcome-stage {
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  background: rgba(0,0,0,0.55) !important;
}

/* Nexxware 2026 rework: cleaner Uiverse-inspired surfaces and adaptive sizing */
.docs-clean { max-width: 980px; }
.docs-hero-row { display:flex; align-items:center; justify-content:space-between; gap:2rem; padding:clamp(1.5rem,5vw,3.5rem) 0 1.5rem; }
.docs-hero-row h1 { max-width: 650px; font-size:clamp(2rem,5vw,3.65rem); line-height:1.03; letter-spacing:-.05em; }
.docs-hero-orb { width:92px; height:92px; flex:0 0 auto; display:grid; place-items:center; border-radius:28px; color:#c8bfff; background:linear-gradient(145deg,rgba(124,108,255,.28),rgba(88,101,242,.08)); border:1px solid rgba(200,191,255,.22); box-shadow:0 18px 48px rgba(88,101,242,.22),inset 0 1px rgba(255,255,255,.15); transform:rotate(6deg); }
.docs-quick-nav { display:grid; grid-template-columns:repeat(3,1fr); gap:.7rem; margin:1rem 0; }
.quick-link { display:flex; align-items:center; gap:.7rem; min-width:0; padding:.9rem 1rem; border:1px solid var(--stroke); border-radius:16px; color:inherit; text-decoration:none; background:rgba(255,255,255,.035); transition:transform .2s ease,background .2s ease,border-color .2s ease; }
.quick-link:hover { transform:translateY(-3px); background:rgba(255,255,255,.08); border-color:rgba(200,191,255,.3); }
.quick-link.primary { background:linear-gradient(135deg,rgba(88,101,242,.9),rgba(70,79,215,.82)); border-color:transparent; box-shadow:0 12px 28px rgba(88,101,242,.25); }
.quick-link iconify-icon { flex:0 0 auto; color:#d9d5ff; }.quick-link span { display:grid; gap:.12rem; min-width:0; }.quick-link strong { font-size:.88rem; }.quick-link small { color:var(--muted); font-size:.72rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }.quick-link.primary small { color:#dfdfff; }
.docs-callout { display:flex; align-items:flex-start; gap:.65rem; margin:1.1rem 0 1.7rem; padding:.85rem 1rem; border:1px solid rgba(254,231,92,.18); border-radius:14px; background:rgba(254,231,92,.06); color:#d9d2aa; font-size:.84rem; line-height:1.5; }.docs-callout iconify-icon { flex:0 0 auto; color:#fee75c; margin-top:.08rem; }.docs-callout a { color:#d9d1ff; font-weight:700; }
.docs-section-flat { margin-top:2rem; }.section-heading { display:flex; align-items:end; justify-content:space-between; gap:1rem; margin-bottom:.75rem; }.section-heading h2 { font-size:1.25rem; letter-spacing:-.025em; }.section-count { color:var(--dim); font-size:.75rem; }.live-pill { display:inline-flex; align-items:center; gap:.35rem; color:#8ff4ae; font-size:.74rem; font-weight:700; }.live-pill i { width:7px;height:7px;border-radius:50%;background:#57f287;box-shadow:0 0 10px #57f287; }
.docs-steps { list-style:none; display:grid; grid-template-columns:repeat(3,1fr); gap:.7rem; }.docs-steps li { display:flex; gap:.7rem; padding:1rem; border:1px solid var(--stroke); border-radius:16px; background:rgba(255,255,255,.03); }.docs-steps b { color:#a69bff; font-size:.76rem; }.docs-steps span { display:grid; gap:.25rem; }.docs-steps strong { font-size:.86rem; }.docs-steps small { color:var(--muted); font-size:.76rem; line-height:1.4; }
.stat-grid.compact { grid-template-columns:repeat(4,1fr); }.stat-grid.compact .stat-card { padding:.9rem 1rem; }.stat-grid.compact .label { font-size:.64rem; }.stat-grid.compact .value { font-size:clamp(1.15rem,2.4vw,1.55rem); }
.docs-cards-clean { grid-template-columns:repeat(3,1fr); }.docs-cards-clean .docs-card { min-height:150px; padding:1rem; transition:transform .2s ease,border-color .2s ease,background .2s ease; }.docs-cards-clean .docs-card:hover { transform:translateY(-3px); border-color:rgba(200,191,255,.3); background:rgba(124,108,255,.08); }.docs-cards-clean iconify-icon { color:#bdb4ff; margin-bottom:.8rem; }.docs-cards-clean strong { font-size:.93rem; }.docs-cards-clean span { line-height:1.45; }
.gm-metrics { display:grid; grid-template-columns:repeat(3,1fr); gap:.45rem; margin-top:.85rem; padding:.7rem; border-radius:10px; background:#2b2d31; }.gm-metrics div { display:grid; gap:.12rem; min-width:0; }.gm-metrics strong { color:#f2f3f5; font-size:.92rem; }.gm-metrics span { color:#949ba4; font-size:.66rem; white-space:nowrap; }.gm-metrics div+div { border-left:1px solid #3f4147; padding-left:.55rem; }
.tos-redesign { max-width:850px; padding:clamp(1rem,4vw,2.3rem); }.tos-hero { display:flex; justify-content:space-between; gap:1.5rem; align-items:flex-start; }.tos-hero h1 { font-size:clamp(1.8rem,4vw,2.7rem); letter-spacing:-.045em; }.tos-intro { color:var(--muted); max-width:570px; line-height:1.6; margin-top:.55rem; font-size:.94rem; }.tos-version { flex:0 0 145px; padding:.8rem; border:1px solid rgba(200,191,255,.18); border-radius:14px; background:rgba(124,108,255,.08); display:grid; gap:.18rem; }.tos-version span,.tos-version small { color:var(--dim); font-size:.68rem; }.tos-version strong { font-size:1.55rem; color:#d9d1ff; }.tos-notice { display:flex; gap:.65rem; align-items:flex-start; margin:1.5rem 0 1.7rem; padding:.85rem 1rem; border-radius:13px; color:#d8d5e5; background:rgba(88,101,242,.12); border:1px solid rgba(88,101,242,.25); font-size:.84rem; line-height:1.5; }.tos-notice iconify-icon { color:#9f96ff; flex:0 0 auto; }.tos-section { padding-top:1.15rem; border-top:1px solid rgba(255,255,255,.08); }.tos-section h2 { font-size:1.2rem; align-items:center; }.tos-number { display:grid; place-items:center; width:29px; height:29px; border-radius:9px; color:#d8d2ff; background:rgba(124,108,255,.18); font-size:.8rem; }.tos-number.danger { color:#ff9a9c; background:rgba(237,66,69,.14); }.tos-explain { color:#a8a8bc; line-height:1.6; font-size:.88rem; margin:0 0 .75rem 2.35rem; max-width:680px; }.tos-redesign .tos-section ol { gap:.55rem; }.tos-redesign .tos-section ol li { padding: .72rem .85rem .72rem 3rem; border-radius:12px; line-height:1.55; }.tos-redesign .tos-section ol li strong { color:#e9e8f4; }.tos-redesign .tos-section ol li::before { top:.78rem; color:#aaa0ff; }.tos-footer-note { display:grid; gap:.35rem; margin-top:1.7rem; padding:1rem; border-radius:13px; background:rgba(255,255,255,.035); color:var(--muted); font-size:.82rem; line-height:1.5; }.tos-footer-note strong { color:#fff; }.tos-footer-note a { color:#c8bfff; font-weight:700; text-decoration:none; margin-top:.2rem; }
@media (max-width:700px) { .docs-hero-row { align-items:flex-start; }.docs-hero-orb { width:62px;height:62px;border-radius:20px; }.docs-hero-orb iconify-icon { width:34px!important;height:34px!important; }.docs-quick-nav,.docs-steps,.docs-cards-clean,.stat-grid.compact { grid-template-columns:1fr; }.quick-link { padding:.8rem .9rem; }.docs-steps li { min-height:0; }.stat-grid.compact .stat-card { display:flex; justify-content:space-between; align-items:center; }.stat-grid.compact .value { margin-top:0; }.tos-hero { display:grid; }.tos-version { width:100%; grid-template-columns:auto auto; align-items:center; }.tos-version small { grid-column:1 / -1; }.tos-explain { margin-left:0; }.tos-redesign .tos-section ol li { padding-left:2.7rem; } }
@media (min-width:1200px) { html { font-size:clamp(15px,.28vw + 13px,18px); }.wrap { max-width:1080px; } }
@media (max-width:430px) { .docs-top-links { width:100%; order:3; overflow-x:auto; padding-bottom:.2rem; }.docs-top-links a { white-space:nowrap; }.tos-doc { border-radius:14px; }.gm-metrics { gap:.2rem; }.gm-metrics div+div { padding-left:.35rem; }.gm-metrics span { font-size:.59rem; } }
.icon-btn iconify-icon, .cta iconify-icon, .gm-btn iconify-icon { pointer-events:none; }

/* Site-wide Nexxware polish */
body::selection { background:rgba(124,108,255,.45); color:#fff; }
.topbar, .docs-topbar { position:sticky; top:.6rem; z-index:20; padding:.55rem .7rem; border:1px solid rgba(255,255,255,.08); background:rgba(9,9,13,.72); backdrop-filter:blur(18px) saturate(140%); -webkit-backdrop-filter:blur(18px) saturate(140%); border-radius:16px; box-shadow:0 12px 30px rgba(0,0,0,.22); }
.docs-top-links a { transition:color .2s ease,background .2s ease; }
.docs-top-links a:hover { color:#fff; background:rgba(124,108,255,.12); border-radius:9px; }
.page-title { letter-spacing:-.04em; font-size:clamp(1.7rem,3vw,2.5rem); }
.page-desc { max-width:45rem; line-height:1.6; }
.tabs { border:1px solid rgba(255,255,255,.06); background:rgba(9,9,13,.45); border-radius:14px; }
.tab { transition:background .2s ease,color .2s ease,transform .2s ease; }.tab:hover { color:#fff; transform:translateY(-1px); }
.card,.reader-card,.table-wrap,.obf-head,.not-done { border-color:rgba(255,255,255,.1); box-shadow:0 12px 34px rgba(0,0,0,.22),inset 0 1px rgba(255,255,255,.05); }
.game-card { border-color:rgba(255,255,255,.1); box-shadow:0 12px 34px rgba(0,0,0,.28); }.game-card:hover { box-shadow:0 18px 42px rgba(88,101,242,.22); }
.game-btn { width:100%; justify-content:center; }
.gm-sheet { background:#1e1f22; border:1px solid rgba(255,255,255,.1); }.gm-banner { height:150px; }.gm-body { padding-left:20px; padding-right:20px; }.gm-title { font-size:1.4rem; }.gm-desc { max-width:38rem; }
.gm-metrics { border:1px solid #3f4147; background:#232428; }.gm-metrics strong { font-variant-numeric:tabular-nums; }
@media (max-width:700px) { .topbar,.docs-topbar { position:relative; top:0; } .wrap { padding-top:.75rem; } .game-grid { grid-template-columns:1fr; } }

/* Site-wide Nexxware polish */
body::selection { background:rgba(124,108,255,.45); color:#fff; }
.topbar, .docs-topbar { position:sticky; top:.6rem; z-index:20; padding:.55rem .7rem; border:1px solid rgba(255,255,255,.08); background:rgba(9,9,13,.72); backdrop-filter:blur(18px) saturate(140%); -webkit-backdrop-filter:blur(18px) saturate(140%); border-radius:16px; box-shadow:0 12px 30px rgba(0,0,0,.22); }
.docs-top-links a { transition:color .2s ease,background .2s ease; }
.docs-top-links a:hover { color:#fff; background:rgba(124,108,255,.12); border-radius:9px; }
.page-title { letter-spacing:-.04em; font-size:clamp(1.7rem,3vw,2.5rem); }
.page-desc { max-width:45rem; line-height:1.6; }
.tabs { border:1px solid rgba(255,255,255,.06); background:rgba(9,9,13,.45); border-radius:14px; }
.tab { transition:background .2s ease,color .2s ease,transform .2s ease; }.tab:hover { color:#fff; transform:translateY(-1px); }
.card,.reader-card,.table-wrap,.obf-head,.not-done { border-color:rgba(255,255,255,.1); box-shadow:0 12px 34px rgba(0,0,0,.22),inset 0 1px rgba(255,255,255,.05); }
.game-card { border-color:rgba(255,255,255,.1); box-shadow:0 12px 34px rgba(0,0,0,.28); }.game-card:hover { box-shadow:0 18px 42px rgba(88,101,242,.22); }
.game-btn { width:100%; justify-content:center; }
.gm-sheet { background:#1e1f22; border:1px solid rgba(255,255,255,.1); }.gm-banner { height:150px; }.gm-body { padding-left:20px; padding-right:20px; }.gm-title { font-size:1.4rem; }.gm-desc { max-width:38rem; }
.gm-metrics { border:1px solid #3f4147; background:#232428; }.gm-metrics strong { font-variant-numeric:tabular-nums; }
@media (max-width:700px) { .topbar,.docs-topbar { position:relative; top:0; } .wrap { padding-top:.75rem; } .game-grid { grid-template-columns:1fr; } }

/* Site-wide Nexxware polish */
body::selection { background:rgba(124,108,255,.45); color:#fff; }
.topbar, .docs-topbar { position:sticky; top:.6rem; z-index:20; padding:.55rem .7rem; border:1px solid rgba(255,255,255,.08); background:rgba(9,9,13,.72); backdrop-filter:blur(18px) saturate(140%); -webkit-backdrop-filter:blur(18px) saturate(140%); border-radius:16px; box-shadow:0 12px 30px rgba(0,0,0,.22); }
.docs-top-links a { transition:color .2s ease,background .2s ease; }
.docs-top-links a:hover { color:#fff; background:rgba(124,108,255,.12); border-radius:9px; }
.page-title { letter-spacing:-.04em; font-size:clamp(1.7rem,3vw,2.5rem); }
.page-desc { max-width:45rem; line-height:1.6; }
.tabs { border:1px solid rgba(255,255,255,.06); background:rgba(9,9,13,.45); border-radius:14px; }
.tab { transition:background .2s ease,color .2s ease,transform .2s ease; }.tab:hover { color:#fff; transform:translateY(-1px); }
.card,.reader-card,.table-wrap,.obf-head,.not-done { border-color:rgba(255,255,255,.1); box-shadow:0 12px 34px rgba(0,0,0,.22),inset 0 1px rgba(255,255,255,.05); }
.game-card { border-color:rgba(255,255,255,.1); box-shadow:0 12px 34px rgba(0,0,0,.28); }.game-card:hover { box-shadow:0 18px 42px rgba(88,101,242,.22); }
.game-btn { width:100%; justify-content:center; }
.gm-sheet { background:#1e1f22; border:1px solid rgba(255,255,255,.1); }.gm-banner { height:150px; }.gm-body { padding-left:20px; padding-right:20px; }.gm-title { font-size:1.4rem; }.gm-desc { max-width:38rem; }
.gm-metrics { border:1px solid #3f4147; background:#232428; }.gm-metrics strong { font-variant-numeric:tabular-nums; }
@media (max-width:700px) { .topbar,.docs-topbar { position:relative; top:0; } .wrap { padding-top:.75rem; } .game-grid { grid-template-columns:1fr; } }

/* Site-wide Nexxware polish */
body::selection { background:rgba(124,108,255,.45); color:#fff; }
.topbar, .docs-topbar { position:sticky; top:.6rem; z-index:20; padding:.55rem .7rem; border:1px solid rgba(255,255,255,.08); background:rgba(9,9,13,.72); backdrop-filter:blur(18px) saturate(140%); -webkit-backdrop-filter:blur(18px) saturate(140%); border-radius:16px; box-shadow:0 12px 30px rgba(0,0,0,.22); }
.docs-top-links a { transition:color .2s ease,background .2s ease; }
.docs-top-links a:hover { color:#fff; background:rgba(124,108,255,.12); border-radius:9px; }
.page-title { letter-spacing:-.04em; font-size:clamp(1.7rem,3vw,2.5rem); }
.page-desc { max-width:45rem; line-height:1.6; }
.tabs { border:1px solid rgba(255,255,255,.06); background:rgba(9,9,13,.45); border-radius:14px; }
.tab { transition:background .2s ease,color .2s ease,transform .2s ease; }.tab:hover { color:#fff; transform:translateY(-1px); }
.card,.reader-card,.table-wrap,.obf-head,.not-done { border-color:rgba(255,255,255,.1); box-shadow:0 12px 34px rgba(0,0,0,.22),inset 0 1px rgba(255,255,255,.05); }
.game-card { border-color:rgba(255,255,255,.1); box-shadow:0 12px 34px rgba(0,0,0,.28); }.game-card:hover { box-shadow:0 18px 42px rgba(88,101,242,.22); }
.game-btn { width:100%; justify-content:center; }
.gm-sheet { background:#1e1f22; border:1px solid rgba(255,255,255,.1); }.gm-banner { height:150px; }.gm-body { padding-left:20px; padding-right:20px; }.gm-title { font-size:1.4rem; }.gm-desc { max-width:38rem; }
.gm-metrics { border:1px solid #3f4147; background:#232428; }.gm-metrics strong { font-variant-numeric:tabular-nums; }
@media (max-width:700px) { .topbar,.docs-topbar { position:relative; top:0; } .wrap { padding-top:.75rem; } .game-grid { grid-template-columns:1fr; } }

/* Second polish pass: consistent starter nav, denser surfaces, and confident motion */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.starter-nav { display:flex; align-items:center; gap:.4rem; flex:0 0 auto; }
.starter-nav a { min-height:42px; border-radius:13px; display:inline-flex; align-items:center; justify-content:center; gap:.42rem; color:#fff; text-decoration:none; border:1px solid rgba(255,255,255,.1); background:rgba(255,255,255,.05); transition:transform .26s cubic-bezier(.2,.85,.2,1),background .26s ease,box-shadow .26s ease; }
.starter-nav a:hover { transform:translateY(-3px); background:rgba(255,255,255,.1); box-shadow:0 12px 24px rgba(0,0,0,.22); }.starter-nav a:active { transform:scale(.94); }
.starter-icon { width:44px; }.starter-download { padding:0 .95rem; background:linear-gradient(135deg,#6b5cff,#4a58e8)!important; border-color:transparent!important; box-shadow:0 10px 25px rgba(88,101,242,.34); font-weight:700; }
.starter-nav iconify-icon { flex:0 0 auto; }.starter-nav + .top-actions { margin-left:.25rem; }
.topbar > .top-actions, .docs-topbar > .top-actions { display:flex; align-items:center; gap:.35rem; }
.wrap.reveal-up { animation:contentUpHeavy .8s cubic-bezier(.16,1,.3,1) both; }.card,.game-card,.docs-card,.quick-link,.stat-card,.tos-section { animation:surfaceIn .72s cubic-bezier(.16,1,.3,1) both; }
@keyframes contentUpHeavy { from { opacity:0; transform:translateY(36px) scale(.975); filter:blur(8px); } to { opacity:1; transform:none; filter:none; } }
@keyframes surfaceIn { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:none; } }
.docs-hero-row { animation:heroDrop .9s cubic-bezier(.16,1,.3,1) both; }.docs-quick-nav { animation:surfaceIn .75s .1s cubic-bezier(.16,1,.3,1) both; }
@keyframes heroDrop { from { opacity:0; transform:translateY(-22px) scale(.98); } to { opacity:1; transform:none; } }
.game-card:nth-child(2),.docs-card:nth-child(2),.stat-card:nth-child(2) { animation-delay:.06s; }.game-card:nth-child(3),.docs-card:nth-child(3),.stat-card:nth-child(3) { animation-delay:.12s; }
/* Reduce visual noise: let sections, not every child, provide the hierarchy. */
.docs-card { box-shadow:none; }.docs-section-flat { border-top:1px solid rgba(255,255,255,.07); padding-top:1.1rem; }.docs-section-flat + .docs-section-flat { margin-top:1.35rem; }
@media (max-width:700px) { .starter-nav { width:100%; justify-content:center; order:2; padding-top:.25rem; }.starter-nav a { min-height:44px; }.starter-icon { width:48px; }.starter-download { flex:1; max-width:180px; }.topbar > .top-actions, .docs-topbar > .top-actions { width:100%; justify-content:center; flex-wrap:wrap; }.starter-nav + .top-actions { margin-left:0; }.brand { flex:1; } }
@media (prefers-reduced-motion:reduce) { .card,.game-card,.docs-card,.quick-link,.stat-card,.tos-section,.docs-hero-row,.docs-quick-nav { animation:none; } }
/* Final visual direction: crisp, premium-feeling motion without mobile blur/filter cost */
:root { --accent:#766cff; --accent-2:#4e8cff; --surface:#11131b; --surface-2:#171a24; }
body { background:#08090e; color:#f8f9ff; }
.liquid-bg { opacity:.52; }
.wrap { max-width:1180px; }
.topbar { background:rgba(12,14,22,.92); border-color:rgba(255,255,255,.09); box-shadow:0 10px 30px rgba(0,0,0,.25); }
.starter-nav a { will-change:transform; }.starter-nav a:hover { transform:translateY(-2px); }.starter-download { background:linear-gradient(100deg,#7267ff,#4c8bff)!important; }
.game-grid { gap:1rem; }.game-card { overflow:hidden; background:linear-gradient(160deg,rgba(25,28,40,.96),rgba(13,15,23,.96)); border:1px solid rgba(255,255,255,.1); transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease; }.game-card:hover { transform:translateY(-5px); border-color:rgba(125,116,255,.62); box-shadow:0 18px 36px rgba(0,0,0,.34); }
.game-banner { height:142px; filter:saturate(1.05); }.game-body { padding:1rem; }.game-desc { min-height:2.6em; }.game-card-metrics { display:flex; gap:.8rem; flex-wrap:wrap; margin-top:.9rem; padding-top:.75rem; border-top:1px solid rgba(255,255,255,.08); color:#a9afc3; font-size:.73rem; }.game-card-metrics span { display:inline-flex; align-items:center; gap:.3rem; }.game-card-metrics iconify-icon { color:#8f86ff; }.game-card-metrics b { color:#f5f6ff; font-variant-numeric:tabular-nums; }
.gm-sheet { width:min(520px,calc(100vw - 1.25rem)); background:#171923; border:1px solid rgba(255,255,255,.11); box-shadow:0 30px 100px rgba(0,0,0,.58); }.gm-banner { height:168px; }.gm-body { padding:0 1.25rem 1.25rem; }.gm-logo { border:5px solid #171923; }.gm-status { color:#8ee6b2; }.gm-msg-under { margin-top:1rem; }.gm-actions.half { gap:.55rem; }
/* Motion uses compositor-friendly opacity/transform only. */
@keyframes crispEnter { from { opacity:0; transform:translate3d(0,18px,0) scale(.985); } to { opacity:1; transform:none; } }
.wrap.reveal-up { animation:crispEnter .52s cubic-bezier(.22,.8,.2,1) both; }.card,.game-card,.docs-card,.quick-link,.stat-card,.tos-section { animation:crispEnter .48s cubic-bezier(.22,.8,.2,1) both; }
@media (max-width:700px) { .topbar { backdrop-filter:none; -webkit-backdrop-filter:none; }.game-grid { gap:.75rem; }.game-card:hover { transform:none; box-shadow:none; }.game-card:active { transform:scale(.985); }.wrap.reveal-up { animation-duration:.38s; }.card,.game-card,.docs-card,.quick-link,.stat-card,.tos-section { animation-duration:.34s; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration:.001ms!important; transition-duration:.001ms!important; scroll-behavior:auto!important; } }

.script-share { margin-top:1.25rem; padding:1.1rem; display:grid; gap:.8rem; background:linear-gradient(145deg,rgba(23,26,38,.92),rgba(13,15,22,.92)); border:1px solid rgba(255,255,255,.1); }.script-share h3 { margin-top:.15rem; }.script-share p:not(.docs-kicker) { color:var(--muted); max-width:58ch; line-height:1.55; }.share-file { justify-self:start; display:inline-flex; align-items:center; gap:.6rem; padding:.6rem .85rem; border:1px solid rgba(255,255,255,.1); border-radius:10px; color:#fff; cursor:pointer; }.share-file input { max-width:190px; }.share-code { min-height:150px; width:100%; resize:vertical; border:1px solid rgba(255,255,255,.1); border-radius:12px; background:#0b0d13; color:#e9ebf5; padding:.85rem; font:500 .82rem/1.55 ui-monospace,SFMono-Regular,monospace; }.share-consent { display:flex; align-items:flex-start; gap:.55rem; color:#b6bbcc; font-size:.82rem; }.share-consent input { accent-color:#766cff; margin-top:.2rem; }.share-actions { display:flex; align-items:center; gap:.8rem; flex-wrap:wrap; }.share-status { color:#aeb5ca; font-size:.82rem; }.script-share .glass-btn { width:max-content; }
@media (max-width:700px) { .share-file { width:100%; justify-content:space-between; }.share-file input { max-width:160px; }.share-code { min-height:130px; } }

.liquid-bg.blurred { filter:none!important; opacity:.38; }
.page-intro,.welcome-stage,.finish-stage { will-change:opacity,transform; }
@media (max-width:700px) { .page-intro,.welcome-stage,.finish-stage { backdrop-filter:none!important; -webkit-backdrop-filter:none!important; } }
