/* cry.best — bleed-style */
:root {
  --bg: #0c0d0d;
  --bg-2: #111212;
  --bg-3: #161717;
  --line: rgba(255, 255, 255, 0.06);
  --ring: #1f2a33;
  --ink: #ffffff;
  --zinc-200: #e4e4e7;
  --zinc-400: #a1a1aa;
  --zinc-500: #71717a;
  --accent: #a6c4ec;
  --blurple: #5865f2;
  --ok: #8fd6a8;
  --font: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --max: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #000; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
code { font-family: var(--mono); font-size: .9em; color: var(--accent); }

/* starfield + glow */
.sky {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(700px 500px at 6% 34%, rgba(120, 160, 210, 0.09), transparent 70%),
    radial-gradient(600px 400px at 96% 4%, rgba(120, 150, 200, 0.05), transparent 70%);
}
.sky canvas { width: 100%; height: 100%; display: block; }

.wrap { width: min(var(--max), calc(100% - 3rem)); margin-inline: auto; }

.hl { color: #b8cde9; font-weight: 700; }
.grad {
  display: inline-block;
  background: linear-gradient(180deg, var(--accent) 0%, #fff 50%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- nav ---------- */
.nav { position: relative; z-index: 50; height: 92px; }
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.4rem; letter-spacing: -0.04em; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 11px;
  background: linear-gradient(180deg, #1b2129, #121518);
  box-shadow: inset 0 0 0 1px rgba(166, 196, 236, .22);
  display: grid; place-items: center;
}
.logo-mark svg { width: 18px; height: 18px; }
.pillnav {
  position: absolute; left: 50%; top: 22px; transform: translateX(-50%);
  display: flex; align-items: center; height: 48px; padding: 4px;
  border-radius: 999px;
  background: rgba(20, 21, 21, .9);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: inset 0 0 0 1px var(--line), 0 8px 32px rgba(0,0,0,.4);
}
.pillnav a {
  height: 40px; display: flex; align-items: center; padding: 0 16px;
  border-radius: 999px; color: var(--zinc-400);
  font-size: 15px; font-weight: 600; letter-spacing: -0.025em;
  transition: color .15s, background .15s;
}
.pillnav a:hover, .pillnav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.05); }

.btn-blurple {
  display: inline-flex; align-items: center; gap: .5rem;
  height: 44px; padding: 0 18px; border-radius: 999px;
  background: var(--blurple); color: #fff;
  font-weight: 600; font-size: 15px; letter-spacing: -0.02em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 6px 24px rgba(88,101,242,.25);
  transition: transform .15s, filter .15s;
}
.btn-blurple:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-blurple svg { width: 18px; height: 18px; }

.gbtn {
  display: inline-flex; align-items: center; gap: .55rem;
  height: 48px; padding: 0 20px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(166,196,236,.22), rgba(86,112,143,.22)), var(--bg);
  box-shadow: inset 0 0 0 1px rgba(166,196,236,.18), inset 0 1px 0 rgba(255,255,255,.08);
  font-weight: 600; font-size: 16px; letter-spacing: -0.025em; color: #fff;
  transition: transform .2s, box-shadow .2s;
}
.gbtn:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(166,196,236,.35), 0 10px 30px rgba(120,160,210,.15); }
.gbtn svg { width: 16px; height: 16px; opacity: .85; }

.opill {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: 14px 20px; border-radius: 999px;
  box-shadow: inset 0 0 0 2px var(--ring);
  font-weight: 500; font-size: 15px;
  transition: transform .2s;
}
.opill:hover { transform: translateY(-3px); }
.opill b { color: var(--accent); font-weight: 600; }
.opill svg { width: 18px; height: 18px; color: var(--zinc-400); }

/* ---------- hero ---------- */
.hero { padding: 110px 0 0; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 2rem; }
.hero h1 { margin: 0; max-width: 34rem; font-size: 52px; line-height: 1.32; font-weight: 700; letter-spacing: -2.5px; }
.hero p.lead { margin: 22px 0 0; max-width: 31rem; color: var(--zinc-400); font-size: 17px; line-height: 1.75; font-weight: 500; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }

.floaters { position: relative; height: 340px; }
.fchip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 8px; border-radius: 14px;
  background: rgba(22, 23, 23, .92);
  box-shadow: inset 0 0 0 1px var(--line), 0 10px 30px rgba(0,0,0,.35);
  font-family: var(--mono); font-size: 14px; color: var(--zinc-200); white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
}
.fchip .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #1d2125; box-shadow: inset 0 0 0 1px rgba(166,196,236,.15); }
.fchip .ic img { width: 16px; height: 16px; }
.fchip:nth-child(1) { top: 4%; left: 22%; }
.fchip:nth-child(2) { top: 28%; left: 56%; animation-delay: -1.5s; }
.fchip:nth-child(3) { top: 54%; left: 14%; animation-delay: -3s; }
.fchip:nth-child(4) { top: 80%; left: 48%; animation-delay: -4.5s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* stats + marquee */
.powering { margin: 150px auto 0; padding: 0 1.5rem; text-align: center; color: var(--zinc-400); font-size: 18px; font-weight: 500; }
.powering b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.powering span { color: var(--zinc-200); }
.marquee {
  margin-top: 28px; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; gap: 56px; width: max-content; animation: scroll 55s linear infinite; }
@keyframes scroll { to { transform: translateX(-50%); } }
.community { display: flex; align-items: center; gap: 12px; }
.community .av { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--bg-3); display: grid; place-items: center; color: var(--zinc-400); font-weight: 700; }
.community .av img { width: 100%; height: 100%; object-fit: cover; }
.community .nm { font-weight: 700; white-space: nowrap; font-size: 15px; letter-spacing: -.01em; }
.community .ct { color: var(--zinc-500); font-size: 13.5px; }

/* ---------- sections ---------- */
.section { padding: 170px 0 0; }
.shead { text-align: center; display: flex; flex-direction: column; align-items: center; }
.orb {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 30%, #1d2329, #121416);
  box-shadow: inset 0 0 0 1px rgba(166,196,236,.14), 0 0 40px rgba(120,160,210,.12);
}
.orb img { width: 24px; height: 24px; opacity: .9; }
.shead h2 { margin: 25px 0 0; font-size: 35px; line-height: 1.2; font-weight: 600; letter-spacing: -1.2px; text-wrap: balance; }
.shead p { margin: 14px 0 0; color: var(--zinc-400); font-size: 16px; font-weight: 500; max-width: 36rem; }
.center { display: flex; justify-content: center; margin-top: 44px; }

/* bento */
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 64px; }
.card {
  position: relative; overflow: hidden;
  border-radius: 40px; background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 38px 40px; min-height: 360px;
  display: flex; flex-direction: column;
}
.card.wide { grid-column: span 2; flex-direction: row; align-items: center; gap: 40px; min-height: 300px; }
.card.wide > div:first-child { flex: 1; }
.card h3 { margin: 0; color: var(--accent); font-size: 20px; font-weight: 500; letter-spacing: -.5px; }
.card p { margin: 10px 0 0; color: var(--zinc-400); font-size: 15px; line-height: 1.7; max-width: 26rem; }
.card .vis { margin-top: auto; padding-top: 28px; display: flex; justify-content: center; }
.card.bottom { flex-direction: column-reverse; }
.card.bottom .vis { margin-top: 0; margin-bottom: auto; padding: 0 0 28px; }

.dmsg {
  width: 100%; max-width: 370px;
  background: #15171a; border-radius: 16px; padding: 14px 16px;
  box-shadow: inset 0 0 0 1px var(--line), 0 20px 40px rgba(0,0,0,.35);
  font-size: 14px;
}
.dmsg .who { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.dmsg .who .t { color: var(--zinc-500); font-weight: 400; font-size: 11.5px; }
.dmsg .pfp { width: 26px; height: 26px; border-radius: 50%; background: #fff; color: #000; font-size: 9px; font-weight: 700; display: grid; place-items: center; letter-spacing: -.03em; flex-shrink: 0; }
.dmsg .pfp.u { background: #2b2f36; color: #c9b6f2; font-size: 11px; }
.dmsg .tag { background: var(--blurple); color: #fff; font-size: 10px; padding: 1px 5px; border-radius: 4px; font-weight: 700; }
.dmsg .body { margin: 8px 0 0 34px; padding: 10px 12px; border-radius: 10px; background: #1b1d21; box-shadow: inset 0 0 0 1px var(--line); }
.dmsg .big { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.dmsg .big img { width: 16px; height: 16px; }
.dmsg .sub { color: var(--zinc-400); font-size: 12.5px; margin-top: 2px; }
.dmsg .btns { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.dmsg .btns span { padding: 5px 10px; border-radius: 6px; background: #2a2d33; font-size: 12px; font-weight: 600; }
.dmsg .btns span.red { background: #5a2a2e; }
.dmsg .btns span.blu { background: var(--blurple); }
.dmsg + .dmsg { margin-top: 10px; }
.cmdline { margin: 4px 0 10px 34px; font-family: var(--mono); color: var(--accent); font-size: 13px; }
.up { color: var(--ok); }
.stack { width: 100%; max-width: 370px; }

.nodes { position: relative; width: 100%; max-width: 380px; height: 200px; margin: 0 auto; }
.node {
  position: absolute; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px; font-size: 12.5px; color: var(--zinc-200);
  background: #1a1e22; box-shadow: inset 0 0 0 1px rgba(166,196,236,.2);
  font-family: var(--mono); transform: translate(-50%, -50%);
}
.node img { width: 12px; height: 12px; }
.nodes svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.nodes path { stroke: rgba(166,196,236,.16); fill: none; stroke-width: 1; }

.tiles { display: grid; grid-template-columns: repeat(5, 56px); gap: 12px; justify-content: center; }
.tile {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(180deg, #1c2126, #15181b);
  box-shadow: inset 0 0 0 1px rgba(166,196,236,.16), 0 6px 18px rgba(0,0,0,.35);
  transition: transform .15s;
}
.tile:hover { transform: translateY(-3px); }
.tile img { width: 22px; height: 22px; opacity: .85; }


.checks { list-style: none; margin: 0; padding: 0; position: relative; width: 100%; max-width: 320px; }
.checks::before { content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 1px; background: rgba(255,255,255,.08); }
.checks li { position: relative; display: flex; align-items: center; gap: 14px; padding: 9px 0; color: var(--zinc-500); font-size: 14px; }
.checks li::before { content: ""; width: 23px; height: 23px; border-radius: 50%; flex-shrink: 0; position: relative; background: #1c1f22; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.checks li.done { color: var(--zinc-200); }
.checks li.done::before {
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c0d0d' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/13px no-repeat;
}

/* gambling rail */
.rail {
  display: flex; gap: 24px; overflow-x: auto; margin-top: 64px;
  padding: 0 max(1.5rem, calc((100vw - var(--max)) / 2)) 10px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.pcard {
  flex: 0 0 300px; scroll-snap-align: center;
  border-radius: 28px; padding: 26px 26px 30px;
  background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line);
  position: relative; overflow: hidden;
}
.pcard::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(280px 200px at 0% 0%, var(--glow), transparent 70%); }
.pcard .top { display: flex; align-items: center; gap: 14px; position: relative; }
.pcard .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px var(--edge); }
.pcard .ic img { width: 20px; height: 20px; }
.pcard h4 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.5px; }
.pcard h4 code { font-size: 13px; margin-left: 6px; color: var(--zinc-500); }
.pcard p { position: relative; margin: 22px 0 0; color: var(--zinc-200); font-size: 14.5px; line-height: 1.75; }
.pcard p em { font-style: normal; color: var(--hl); }

/* icon arc */
.arc { position: relative; height: 130px; width: 440px; max-width: 100%; margin: 0 auto; }
.arc .orb { position: absolute; transform: translateX(-50%); }
.arc .orb.s { width: 46px; height: 46px; }
.arc .orb.s img { width: 18px; height: 18px; }

/* community wall */
.wall { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 64px; }
.scard {
  border-radius: 32px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line);
  padding: 30px 32px; display: flex; align-items: center; gap: 18px; position: relative; overflow: hidden;
}
.scard .bgimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .16; filter: blur(50px) saturate(1.5); transform: scale(1.5); }
.scard .av { position: relative; width: 60px; height: 60px; border-radius: 50%; overflow: hidden; background: var(--bg-3); flex-shrink: 0; display: grid; place-items: center; font-weight: 700; color: var(--zinc-400); }
.scard .av img { width: 100%; height: 100%; object-fit: cover; }
.scard .txt { position: relative; }
.scard .nm { font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.scard .ct { color: var(--zinc-400); font-size: 14px; }

/* faq */
.faq { max-width: 760px; margin: 56px auto 0; display: grid; gap: 12px; }
.faq details { border-radius: 22px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--zinc-400); font-size: 22px; font-weight: 400; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 24px 22px; color: var(--zinc-400); font-size: 15px; line-height: 1.75; }
.faq .a p { margin: 0; }
.faq a { color: var(--accent); }

/* cta */
.cta {
  margin-top: 170px; border-radius: 40px; padding: 70px 40px; text-align: center;
  background: radial-gradient(600px 260px at 50% 0%, rgba(120,160,210,.14), transparent 70%), var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.cta h2 { margin: 0; font-size: 38px; font-weight: 700; letter-spacing: -1.5px; }
.cta p { color: var(--zinc-400); margin: 12px 0 30px; font-weight: 500; }
.cta .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* footer */
.footer { margin-top: 140px; border-top: 1px solid var(--line); padding: 60px 0 70px; }
.footer .wrap { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer .fcopy { color: var(--zinc-500); font-size: 14px; margin-top: 14px; line-height: 1.7; }
.status { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; color: var(--zinc-400); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 10px #4ade80; }
.footer h5 { margin: 4px 0 14px; font-size: 14px; font-weight: 600; color: #fff; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--zinc-400); font-size: 14.5px; }
.footer ul a:hover { color: #fff; }

/* ---------- commands page ---------- */
.page-head { padding: 70px 0 30px; text-align: center; }
.page-head h1 { margin: 0; font-size: 52px; font-weight: 700; letter-spacing: -2.5px; }
.page-head p { color: var(--zinc-400); max-width: 38rem; margin: 14px auto 0; font-size: 16.5px; font-weight: 500; }
.tools { position: sticky; top: 0; z-index: 30; padding: 16px 0; background: linear-gradient(rgba(12,13,13,0), rgba(12,13,13,.94) 22px); }
.search { display: flex; align-items: center; gap: .7rem; padding: 0 18px; border-radius: 999px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.search:focus-within { box-shadow: inset 0 0 0 1px rgba(166,196,236,.35); }
.search svg { width: 18px; height: 18px; color: var(--zinc-500); flex-shrink: 0; }
.search input { flex: 1; background: none; border: 0; outline: 0; color: #fff; font: 500 15.5px var(--font); padding: 14px 0; }
.search kbd { color: var(--zinc-500); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; font-size: 12px; font-family: var(--mono); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-top: 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; cursor: pointer; border: 0; padding: 7px 14px; border-radius: 999px; font: 600 14px var(--font); color: var(--zinc-400); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.chip:hover { color: #fff; }
.chip[aria-pressed="true"] { color: #0c0d0d; background: var(--accent); box-shadow: none; }
.scope { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--zinc-400); font-size: 13.5px; cursor: pointer; width: fit-content; }
.scope input { accent-color: var(--accent); width: 15px; height: 15px; }
.cat { margin-top: 28px; border-radius: 32px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); padding: 28px 30px 12px; scroll-margin-top: 150px; }
.cat-head { display: flex; align-items: center; gap: 12px; }
.cat-head img { width: 22px; height: 22px; }
.cat-head h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.6px; color: var(--accent); }
.cat-head .badge { font-size: 12px; color: var(--zinc-400); padding: 3px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.cat-blurb { color: var(--zinc-500); margin: 6px 0 14px; font-size: 14.5px; }
.crow { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; gap: 1.25rem; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); cursor: pointer; }
.crow .cmds { display: flex; flex-wrap: wrap; gap: 6px; }
.crow .cmds code { background: #181b1e; box-shadow: inset 0 0 0 1px rgba(166,196,236,.12); padding: 3px 9px; border-radius: 8px; font-size: 13px; }
.crow .what { color: var(--zinc-400); font-size: 14.5px; }
.crow:hover .what { color: #fff; }
.copy { border: 0; background: none; cursor: pointer; font: 600 12.5px var(--font); color: var(--zinc-400); padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); min-width: 60px; }
.copy:hover { color: #fff; }
.copy.done { color: var(--ok); box-shadow: inset 0 0 0 1px var(--ok); }
.empty { padding: 70px 0; text-align: center; color: var(--zinc-400); }
.empty b { color: #fff; }
.empty a { color: var(--accent); }
mark { background: rgba(166,196,236,.25); color: inherit; border-radius: 3px; }

/* ---------- guide / legal ---------- */
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; margin-top: 30px; }
.toc { position: sticky; top: 30px; align-self: start; padding: 20px; border-radius: 24px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.toc a { display: block; color: var(--zinc-400); padding: 5px 0; font-size: 14px; font-weight: 500; }
.toc a:hover { color: #fff; }
.prose { max-width: 46rem; }
.prose h1 { font-size: 44px; font-weight: 700; letter-spacing: -2px; margin: 0 0 8px; }
.prose h2 { font-size: 28px; font-weight: 600; letter-spacing: -1px; margin: 56px 0 14px; scroll-margin-top: 30px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; font-weight: 500; color: var(--accent); margin: 30px 0 8px; }
.prose p, .prose li { color: var(--zinc-400); font-size: 15.5px; line-height: 1.8; }
.prose strong { color: #fff; font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose a { color: var(--accent); }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 16px 0 22px; font-size: 14.5px; border-radius: 20px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); background: var(--bg-2); }
.prose th { text-align: left; color: var(--zinc-500); font-weight: 500; padding: 12px 16px; }
.prose td { padding: 12px 16px; border-top: 1px solid var(--line); color: var(--zinc-400); vertical-align: top; }
.prose td:first-child { white-space: nowrap; color: var(--zinc-200); }
.tip { padding: 16px 20px; border-radius: 18px; background: var(--bg-2); box-shadow: inset 0 0 0 1px rgba(166,196,236,.18); color: var(--zinc-200) !important; }
.updated { color: var(--zinc-500) !important; }
.legal-page .prose { margin: 0 auto; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .pillnav { display: none; }
  .hero { padding-top: 50px; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero h1, .hero p.lead { margin-inline: auto; }
  .hero .actions { justify-content: center; }
  .floaters { height: 230px; max-width: 420px; width: 100%; margin: 20px auto 0; }
  .bento { grid-template-columns: 1fr; }
  .card.wide { grid-column: auto; flex-direction: column; align-items: stretch; }
  .wall { grid-template-columns: 1fr; }
  .footer .wrap { grid-template-columns: 1fr 1fr; }
  .doc { grid-template-columns: 1fr; }
  .toc { display: none; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 2rem); }
  .hero h1 { font-size: 38px; letter-spacing: -1.5px; }
  .shead h2 { font-size: 28px; }
  .card { padding: 30px 24px; border-radius: 30px; min-height: 0; }
  .tiles { grid-template-columns: repeat(4, 52px); }
  .tile { width: 52px; height: 52px; }
  .tiles .tile:nth-child(6) { margin-left: 0; }
  .section { padding-top: 120px; }
  .powering { margin-top: 90px; font-size: 16px; }
  .crow { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .crow .what { grid-column: 1; grid-row: 2; }
  .crow .copy { grid-row: 1 / span 2; grid-column: 2; }
  .cat { padding: 22px 20px 8px; border-radius: 26px; }
  .page-head h1 { font-size: 40px; }
  .search kbd { display: none; }
  .btn-blurple span { display: none; }
  .prose td:first-child { white-space: normal; }
}
/* reduced motion: keep fades + hover feedback, drop big movement (see motion section) */

/* ======================================================================
   Discord message + Components V2 replica (dark theme)
   ====================================================================== */
.dc {
  --dc-chat: #313338; --dc-c-bg: #2b2d31; --dc-c-border: #3f4147;
  --dc-text: #dbdee1; --dc-head: #f2f3f5; --dc-muted: #949ba4; --dc-reply: #b5bac1;
  --dc-blurple: #5865f2; --dc-sec: #4e5058; --dc-ok: #248046; --dc-red: #da373c;
  width: 100%; max-width: 440px;
  background: var(--dc-chat);
  border-radius: 14px;
  padding: 14px 0 16px;
  font-family: "gg sans", "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px; line-height: 1.375; color: var(--dc-text);
  text-align: left;
  box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 24px 60px rgba(0,0,0,.45);
  -webkit-font-smoothing: subpixel-antialiased;
}
.dc-msg { position: relative; padding: 2px 16px 2px 72px; min-height: 44px; }
.dc-msg + .dc-msg { margin-top: 17px; }
.dc-av { position: absolute; left: 16px; top: 2px; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.dc-msg.is-reply .dc-av { top: 24px; }
.dc-head { display: flex; align-items: baseline; flex-wrap: wrap; line-height: 1.375rem; }
.dc-name { font-size: 1rem; font-weight: 500; color: var(--dc-head); }
.dc-app {
  display: inline-flex; align-items: center; gap: 2px; height: .9375rem; padding: 0 .275rem;
  margin-left: .25rem; border-radius: .1875rem; background: var(--dc-blurple); color: #fff;
  font-size: .625rem; font-weight: 500; line-height: .9375rem; text-transform: uppercase; position: relative; top: -.1rem;
}
.dc-app svg { width: .9375rem; height: .9375rem; margin-left: -.15rem; }
.dc-time { margin-left: .25rem; font-size: .75rem; font-weight: 500; color: var(--dc-muted); line-height: 1.375rem; }
.dc-text { color: var(--dc-text); white-space: pre-wrap; word-wrap: break-word; }

/* reply preview */
.dc-reply { position: relative; display: flex; align-items: center; height: 22px; margin-bottom: 4px; font-size: .875rem; color: var(--dc-reply); white-space: nowrap; min-width: 0; }
.dc-reply::before {
  content: ""; position: absolute; left: -36px; top: 10px; width: 33px; height: 13px;
  border-left: 2px solid #4e5058; border-top: 2px solid #4e5058; border-top-left-radius: 6px;
}
.dc-reply img { width: 16px; height: 16px; border-radius: 50%; margin-right: 4px; flex-shrink: 0; }
.dc-reply .n { color: var(--dc-head); font-weight: 500; opacity: .64; margin-right: 4px; }
.dc-reply .t { overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* Components V2 container */
.dc-c {
  margin-top: 4px; padding: 16px;
  background: var(--dc-c-bg);
  border: 1px solid var(--dc-c-border);
  border-radius: 8px;
  display: flex; flex-direction: column; gap: 8px;
  font-size: .9375rem;
}
.dc-c .h2 { margin: 0; font-size: 1.25rem; font-weight: 700; line-height: 1.375em; color: var(--dc-head); display: flex; align-items: center; gap: .25em; }
.dc-c .sub { font-size: .8125rem; line-height: 1.125rem; color: var(--dc-muted); }
.dc-c .p { color: var(--dc-text); line-height: 1.375; }
.dc-c .p b, .dc-c .sub b { font-weight: 700; color: var(--dc-head); }
.dc-c .sub b { color: inherit; }
.dc-sep { height: 1px; background: rgba(78, 80, 88, .48); margin: 0; }
.emo { display: inline-block; width: 1.375em; height: 1.375em; object-fit: contain; vertical-align: bottom; margin: 0 .05em 0 .1em; }
.h2 .emo { width: 1.375em; height: 1.375em; margin: 0; }
.sub .emo { width: 1.2em; height: 1.2em; vertical-align: -.3em; margin: 0 .1em 0 0; }
.dc-mention { background: rgba(88,101,242,.3); color: #c9cdfb; font-weight: 500; border-radius: 3px; padding: 0 2px; }
.dc .ic-code { background: #1e1f22; color: var(--dc-text); font-family: "gg mono", Consolas, "Source Code Pro", monospace; font-size: .85em; padding: .1em .25em; border-radius: 4px; }

/* buttons (action row) */
.dc-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.dc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  height: 32px; min-width: 60px; padding: 2px 16px; border-radius: 8px;
  font-size: .875rem; font-weight: 500; line-height: 16px; color: #fff; white-space: nowrap;
  background: var(--dc-sec); cursor: default; user-select: none;
  transition: background .17s;
}
.dc-btn img { width: 18px; height: 18px; object-fit: contain; }
.dc-btn.primary { background: var(--dc-blurple); }
.dc-btn.danger { background: var(--dc-red); }
.dc-btn.success { background: var(--dc-ok); }
.dc-btn.secondary:hover { background: #6d6f78; }
.dc-btn.primary:hover { background: #4752c4; }
.dc-btn.danger:hover { background: #a12828; }
.dc-btn.success:hover { background: #1a6334; }

.card .vis .dc { margin-inline: auto; }
@media (max-width: 640px) {
  .dc { font-size: 15px; }
  .dc-msg { padding-left: 64px; padding-right: 12px; }
  .dc-av { left: 12px; }
  .dc-reply::before { left: -32px; width: 29px; }
  .dc-c { padding: 12px; }
  .dc-btn { padding: 2px 12px; }
}

/* logo image */
.logo-img { width: 34px; height: 34px; border-radius: 11px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }

/* ======================================================================
   /tutorial
   ====================================================================== */
.tut { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; margin-top: 20px; align-items: start; }
.tut-side { position: sticky; top: 24px; }
.tut-prog { padding: 18px 20px; border-radius: 22px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 14px; }
.tut-prog .lbl { display: flex; justify-content: space-between; font-size: 13px; color: var(--zinc-400); font-weight: 500; }
.tut-prog .track { height: 6px; border-radius: 99px; background: #1c1e20; margin-top: 10px; overflow: hidden; }
.tut-prog .fill { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent-deep, #56708f), var(--accent)); transition: width .7s cubic-bezier(.2,.8,.2,1); }
#tut-rail { padding: 10px 8px; border-radius: 22px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); max-height: calc(100vh - 160px); overflow: auto; scrollbar-width: thin; }
.rail-ch { font-size: 12px; font-weight: 600; color: var(--zinc-500); padding: 12px 12px 4px; }
.rail-step {
  all: unset; box-sizing: border-box; width: 100%; cursor: pointer;
  display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 12px;
  font-size: 14px; color: var(--zinc-400); font-weight: 500; transition: background .2s, color .2s;
}
.rail-step:hover { color: #fff; background: rgba(255,255,255,.03); }
.rail-step:focus-visible { outline: 2px solid var(--accent); }
.rail-step .dot { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; box-shadow: inset 0 0 0 1.5px #3a3f45; position: relative; transition: background .3s, box-shadow .3s; }
.rail-step.done { color: var(--zinc-200); }
.rail-step.done .dot { background: var(--accent); box-shadow: none; animation: pop .35s cubic-bezier(.3,1.6,.5,1); }
.rail-step.done .dot::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c0d0d' stroke-width='3.2'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/11px no-repeat; }
.rail-step.on { color: #fff; background: rgba(166,196,236,.08); }
.rail-step.on .dot { box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 4px rgba(166,196,236,.12); }
@keyframes pop { 0% { transform: scale(.4); } 100% { transform: scale(1); } }

#tut-stage { position: relative; min-height: 640px; }
.tut-page { transition: opacity .32s ease, transform .42s cubic-bezier(.2,.8,.2,1); }
.tut-page.in-right { opacity: 0; transform: translateX(36px); }
.tut-page.in-left { opacity: 0; transform: translateX(-36px); }
.tut-page.out-left { opacity: 0; transform: translateX(-36px); }
.tut-page.out-right { opacity: 0; transform: translateX(36px); }
.tut-ch { font-size: 13.5px; font-weight: 600; color: var(--accent); }
.tut-head h1 { margin: 6px 0 0; font-size: 44px; line-height: 1.15; font-weight: 700; letter-spacing: -2px; }
.tut-lead { margin: 14px 0 0; color: var(--zinc-400); font-size: 17px; line-height: 1.7; font-weight: 500; max-width: 40rem; }
.tut-lead code, .tut-pre code, .tut-tips code { font-size: .88em; }
.tut-pre { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; background: rgba(166,196,236,.06); box-shadow: inset 0 0 0 1px rgba(166,196,236,.14); color: var(--zinc-200); font-size: 14px; width: fit-content; max-width: 100%; }
.tut-dc { max-width: 620px; margin-top: 28px; padding: 0; overflow: hidden; }
.dc-chan { display: flex; align-items: center; gap: 6px; height: 48px; padding: 0 16px; border-bottom: 1px solid #26282c; font-weight: 600; font-size: 15px; color: #f2f3f5; }
.dc-chan span { color: #80848e; font-size: 22px; font-weight: 400; }
.tut-log { min-height: 300px; padding: 16px 0 6px; display: flex; flex-direction: column; justify-content: flex-end; }
.tut-log .dc-msg + .dc-msg { margin-top: 17px; }
.dc-typing { height: 22px; padding: 0 16px; font-size: .8125rem; color: #b5bac1; display: flex; align-items: center; gap: 6px; opacity: 0; transition: opacity .2s; }
.dc-typing b { color: #f2f3f5; font-weight: 600; }
.dc-typing.on { opacity: 1; }
.dc-typing .dots { display: inline-flex; gap: 3px; }
.dc-typing .dots i { width: 5px; height: 5px; border-radius: 50%; background: #dbdee1; animation: tdot 1.2s infinite ease-in-out; }
.dc-typing .dots i:nth-child(2) { animation-delay: .15s; }
.dc-typing .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes tdot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }
.dc-input {
  margin: 4px 16px 18px; height: 44px; border-radius: 8px; background: #383a40;
  display: flex; align-items: center; gap: 12px; padding: 0 16px; transition: box-shadow .2s;
}
.dc-input:focus-within { box-shadow: 0 0 0 1px rgba(166,196,236,.35); }
.dc-input svg { width: 24px; height: 24px; color: #b5bac1; flex-shrink: 0; }
.dc-input input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #dbdee1; font: 400 1rem/1.375 "gg sans", "Noto Sans", sans-serif; }
.dc-input input::placeholder { color: #6d6f78; }
.dc-input.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.dc-select { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 8px; background: #1e1f22; border: 1px solid #1e1f22; color: #dbdee1; font-size: .9375rem; }
.dc-select span { flex: 1; }
.dc-select svg { width: 20px; height: 20px; color: #b5bac1; }
.dc-select .emo { margin: 0; }

.anim-in { animation: msgIn .35s cubic-bezier(.2,.8,.2,1) both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.dc-c .part { opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .45s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--k) * 55ms + 80ms); }
.dc-c.reveal .part { opacity: 1; transform: none; }
.dc-c .part > .dc-sep { margin: 0; }

.tut-hint { margin-top: 16px; color: var(--zinc-400); font-size: 14.5px; transition: opacity .25s, transform .25s; }
.tut-hint.err { color: #f2a1a1; }
.tut-hint.gone { opacity: 0; transform: translateY(-4px); pointer-events: none; }
.linkish { all: unset; cursor: pointer; color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(166,196,236,.4); }
.linkish:hover { text-decoration-color: var(--accent); }
.tut-after { margin-top: -10px; opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .4s ease, transform .5s cubic-bezier(.2,.8,.2,1); max-width: 620px; }
.tut-after.show { opacity: 1; transform: none; pointer-events: auto; }
.tut-tips { list-style: none; margin: 0; padding: 18px 20px; border-radius: 20px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 8px; }
.tut-tips li { color: var(--zinc-400); font-size: 14.5px; padding-left: 22px; position: relative; }
.tut-tips li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: .7; }
.tut-nav { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.tut-nav.center { justify-content: center; }
.gbtn.ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
button.gbtn { border: 0; cursor: pointer; font-family: var(--font); }

.tut-finish { text-align: center; padding: 70px 10px; position: relative; }
.tut-finish h1 { margin: 26px 0 0; font-size: 48px; font-weight: 700; letter-spacing: -2px; }
.tut-finish .tut-lead { margin-inline: auto; }
.tut-finish .tut-lead a { color: var(--accent); }
.orb.big { width: 84px; height: 84px; margin: 0 auto; animation: pop .5s cubic-bezier(.3,1.6,.5,1); }
.orb.big img { width: 32px; height: 32px; }
.burst { position: absolute; left: 50%; top: 110px; width: 0; height: 0; }
.burst img { position: absolute; width: 22px; height: 22px; opacity: 0; }
.burst.go img { animation: burst 1.4s cubic-bezier(.15,.7,.3,1) forwards; animation-delay: calc(var(--k) * 40ms); }
@keyframes burst {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.3); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + cos(calc(var(--k) * 45deg)) * 170px), calc(-50% + sin(calc(var(--k) * 45deg)) * 120px)) scale(1) rotate(calc(var(--k) * 40deg)); }
}

@media (max-width: 980px) {
  .tut { grid-template-columns: 1fr; gap: 20px; }
  .tut-side { position: static; }
  #tut-rail { display: flex; overflow-x: auto; max-height: none; gap: 4px; padding: 8px; scrollbar-width: none; }
  #tut-rail::-webkit-scrollbar { display: none; }
  .rail-ch { display: none; }
  .rail-step { width: auto; flex-shrink: 0; }
  .rail-step span:last-child { display: none; }
  .rail-step.on span:last-child { display: inline; }
}
@media (max-width: 640px) {
  .tut-head h1 { font-size: 34px; letter-spacing: -1.4px; }
  .tut-lead { font-size: 16px; }
  .tut-log { min-height: 240px; }
}

/* guide progression stages */
.stages { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 6px 0 10px; }
.stages a {
  display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 18px;
  background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: 14.5px;
  transition: transform .2s, box-shadow .2s;
}
.stages a:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(166,196,236,.3); }
.stages b { color: var(--accent); font-size: 12px; font-weight: 700; }
.stages span { color: var(--zinc-500); font-size: 12.5px; font-weight: 500; }
.stage-n {
  display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 12px; border-radius: 10px;
  background: rgba(166,196,236,.1); box-shadow: inset 0 0 0 1px rgba(166,196,236,.25); color: var(--accent);
  font-size: 15px; vertical-align: 4px;
}
@media (max-width: 980px) { .stages { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .stages { grid-template-columns: repeat(2, 1fr); } }
.tut > * { min-width: 0; }
@media (max-width: 980px) { .tut-dc { max-width: 100%; } .tut-after { max-width: 100%; } }
.rail-step.on.done .dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(166,196,236,.12); }

/* gambling grid */
.games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; }
.game {
  border-radius: 32px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line);
  padding: 14px 14px 26px; display: flex; flex-direction: column;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s;
}
.game:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(166,196,236,.18); }
.gvis {
  position: relative; height: 150px; border-radius: 22px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, rgba(166,196,236,.08), transparent 60%), #0e0f10;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
  display: grid; place-items: center; margin-bottom: 22px;
}
.game h3 { margin: 0 12px; font-size: 19px; font-weight: 600; letter-spacing: -.4px; display: flex; align-items: baseline; gap: 8px; }
.game h3 code { font-size: 13px; color: var(--zinc-500); font-weight: 400; }
.game p { margin: 8px 12px 0; color: var(--zinc-400); font-size: 14.5px; line-height: 1.65; }
.game p code { font-size: 12.5px; }

/* coin */
.coin { width: 70px; height: 70px; position: relative; transform-style: preserve-3d; animation: flip 3.2s cubic-bezier(.45,.05,.3,1) infinite; }
.coin span {
  position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; backface-visibility: hidden;
  font-weight: 700; font-size: 26px; color: #2a3340;
  background: radial-gradient(circle at 35% 30%, #fff, #c9d9f2 45%, #8ea9cf);
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.35), inset 0 -6px 12px rgba(40,60,90,.35), 0 10px 26px rgba(120,160,210,.25);
}
.coin .b { transform: rotateY(180deg); }
@keyframes flip { 0%, 30% { transform: rotateY(0) translateY(0); } 50% { transform: rotateY(540deg) translateY(-18px); } 70%, 100% { transform: rotateY(1080deg) translateY(0); } }

/* blackjack */
.hand { position: relative; width: 120px; height: 100px; }
.pcard {
  position: absolute; top: 4px; width: 62px; height: 88px; border-radius: 9px; background: #f3f5f8;
  color: #16181b; font-weight: 700; font-size: 20px; padding: 6px 8px; line-height: 1;
  box-shadow: 0 10px 24px rgba(0,0,0,.45); display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.pcard i { font-style: normal; font-size: 26px; align-self: flex-end; }
.pcard.red { color: #c8383f; }
.pcard.c1 { left: 10px; transform: rotate(-9deg); }
.pcard.c2 { left: 48px; transform: rotate(8deg) translateY(4px); }
.game:hover .pcard.c1 { transform: rotate(-14deg) translateX(-6px); }
.game:hover .pcard.c2 { transform: rotate(13deg) translate(6px, 4px); }
.bj-total { position: absolute; right: 18px; top: 16px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #0c0d0d; background: var(--accent); }

/* crash */
.gvis.crash { place-items: stretch; }
.gvis.crash svg { position: absolute; inset: 18px 14px 14px; width: calc(100% - 28px); height: calc(100% - 32px); }
.gvis.crash .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.gvis.crash .area { fill: url(#none); fill: rgba(166,196,236,.1); }
.gvis.crash.dead .line { stroke: #e0707a; }
.gvis.crash.dead .area { fill: rgba(224,112,122,.1); }
.mult { position: absolute; left: 18px; top: 14px; font-size: 26px; font-weight: 700; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.gvis.crash.dead .mult { color: #e0707a; }

/* slots */
.reels { display: flex; gap: 8px; padding: 10px; border-radius: 16px; background: #15171a; box-shadow: inset 0 0 0 1px rgba(166,196,236,.14); }
.reels span { width: 52px; height: 64px; border-radius: 10px; background: linear-gradient(#0d0e10, #1b1e22 50%, #0d0e10); display: grid; place-items: center; overflow: hidden; }
.reels img { width: 26px; height: 26px; }
.reels img.spin { animation: reel .12s linear infinite; filter: blur(1.5px); }
@keyframes reel { from { transform: translateY(-30px); } to { transform: translateY(30px); } }

/* roulette */
.wheel { width: 118px; height: 118px; animation: turn 14s linear infinite; filter: drop-shadow(0 10px 24px rgba(0,0,0,.5)); }
@keyframes turn { to { transform: rotate(360deg); } }
.pin { position: absolute; top: 12px; left: 50%; width: 0; height: 0; transform: translateX(-50%); border: 7px solid transparent; border-top: 11px solid #fff; }

/* dice */
.dice { display: flex; gap: 16px; }
.die {
  width: 58px; height: 58px; border-radius: 14px; background: #f3f5f8; position: relative;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.12), 0 10px 22px rgba(0,0,0,.45);
  animation: roll 3.2s cubic-bezier(.45,.05,.3,1) infinite;
}
.die.d3 { animation-delay: .15s; }
.die i { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #16181b; }
.d5 i:nth-child(1) { left: 11px; top: 11px; } .d5 i:nth-child(2) { right: 11px; top: 11px; }
.d5 i:nth-child(3) { left: 24px; top: 24px; } .d5 i:nth-child(4) { left: 11px; bottom: 11px; } .d5 i:nth-child(5) { right: 11px; bottom: 11px; }
.d3 i:nth-child(1) { left: 11px; top: 11px; } .d3 i:nth-child(2) { left: 24px; top: 24px; } .d3 i:nth-child(3) { right: 11px; bottom: 11px; }
@keyframes roll { 0%, 60%, 100% { transform: rotate(0) translateY(0); } 70% { transform: rotate(-20deg) translateY(-12px); } 80% { transform: rotate(14deg) translateY(0); } 88% { transform: rotate(-4deg); } }

/* bet cap */
.betcap { margin-top: 24px; padding: 24px 28px; border-radius: 28px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.bc-top { display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; font-size: 15px; }
.bc-top .mono { font-family: var(--mono); font-weight: 400; font-size: 12.5px; color: var(--zinc-500); }
.bc-track { position: relative; height: 8px; border-radius: 99px; background: #1c1e20; margin: 16px 0 10px; }
.bc-fill { position: absolute; inset: 0 auto 0 0; width: 10%; border-radius: inherit; background: linear-gradient(90deg, #56708f, var(--accent)); box-shadow: 0 0 16px rgba(166,196,236,.35); transition: width 2.2s cubic-bezier(.2,.8,.2,1); }
.betcap.go .bc-fill { width: 100%; }
.bc-tick { position: absolute; top: -4px; width: 2px; height: 16px; background: rgba(255,255,255,.18); }
.bc-labels { display: flex; justify-content: space-between; color: var(--zinc-400); font-size: 13.5px; }
.bc-labels b { color: #fff; }

@media (max-width: 980px) { .games { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .games { grid-template-columns: 1fr; } .bc-top .mono { display: none; } }

/* /invite */
.invite-page { min-height: calc(100vh - 92px - 260px); display: grid; place-items: center; padding: 60px 0; }
.inv-card { text-align: center; max-width: 520px; padding: 48px 40px; border-radius: 40px; background: radial-gradient(500px 220px at 50% 0%, rgba(120,160,210,.14), transparent 70%), var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.inv-logo { width: 96px; height: 96px; margin: 0 auto; animation: pop .5s cubic-bezier(.3,1.6,.5,1); filter: drop-shadow(0 12px 30px rgba(120,160,210,.25)); }
.inv-card h1 { margin: 22px 0 0; font-size: 38px; font-weight: 700; letter-spacing: -1.6px; }
.inv-card p { color: var(--zinc-400); font-weight: 500; margin: 12px 0 26px; }
.inv-card .btn-blurple span { display: inline !important; }
.inv-card p.inv-after { margin: 26px 0 0; font-size: 14px; }
.inv-after a { color: var(--accent); }
/* the server strip keeps scrolling (slower) even with reduced motion: it's a gentle, constant drift */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: scroll 110s linear infinite !important; }
}

/* commands page: type headings */
.kind-head { margin: 56px 0 4px; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px 24px; }
.kind-head:first-child { margin-top: 28px; }
.kind-head h2 { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: -1.2px; flex-basis: 100%; }
.kind-head p { margin: 0; color: var(--zinc-400); font-weight: 500; max-width: 40rem; }
.kind-head .opill { padding: 10px 16px; font-size: 14px; }
.chip-sep { flex-shrink: 0; width: 1px; margin: 4px 4px; background: var(--line); }

/* commands page: economy sub-filters */
.chips { display: block; overflow: visible; }
.chip-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip-row.sub { margin-top: 10px; padding-left: 14px; position: relative; animation: subIn .25s cubic-bezier(.2,.8,.2,1); }
.chip-row.sub::before { content: ""; position: absolute; left: 4px; top: 4px; bottom: 4px; width: 2px; border-radius: 2px; background: rgba(166,196,236,.35); }
.chip.small { padding: 5px 12px; font-size: 13px; }
@keyframes subIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ======================================================================
   motion (motion.js): reveals, hover physics, glow, nav pill, page fades
   ====================================================================== */
:root { --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.34, 1.4, .5, 1); }

/* cross-page fade (Chromium / Safari 18+) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .22s ease both; }
::view-transition-new(root) { animation: vtIn .42s var(--ease) both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(10px); } }
.nav { view-transition-name: nav; }
::view-transition-old(nav), ::view-transition-new(nav) { animation: none; }

/* scroll reveal */
.js-motion .rv { transition: opacity .7s var(--ease), transform .8s var(--ease), filter .7s var(--ease); transition-delay: var(--rd, 0ms); }
.js-motion .rv:not(.in) { opacity: 0; transform: translateY(26px) scale(.985); filter: blur(6px); }
.js-motion .hero h1.rv:not(.in) { transform: translateY(34px); }

/* the starfield + glow eases in */
.sky { animation: skyIn 1.6s ease both; }
@keyframes skyIn { from { opacity: 0; } }
.nav .wrap > * { animation: navIn .7s var(--ease) both; }
.nav .pillnav { animation-name: navInC; animation-delay: .06s; }
.nav .wrap > :last-child { animation-delay: .12s; }
@keyframes navIn { from { opacity: 0; transform: translateY(-10px); } }
@keyframes navInC { from { opacity: 0; transform: translate(-50%, -10px); } }

/* nav: sliding pill */
.pillnav.has-ind a { position: relative; z-index: 1; transition: color .25s ease; }
.pillnav.has-ind a:hover, .pillnav.has-ind a[aria-current="page"] { background: transparent; }
.pill-ind {
  position: absolute; left: 0; top: 4px; height: 40px; border-radius: 999px; pointer-events: none; opacity: 0;
  background: rgba(255,255,255,.065); box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
  transition: transform .45s var(--spring), width .45s var(--spring), opacity .25s ease;
}

/* hover physics: slower, springier, never static */
.card, .scard, .game, .cat, .cta, .stages a, .faq details, .tile, .opill, .gbtn, .btn-blurple, .chip, .copy, .d-guild, .d-btn {
  transition: transform .55s var(--ease), box-shadow .45s ease, background-color .3s ease, filter .3s ease, color .25s ease;
}
.card:hover, .scard:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(166,196,236,.16), 0 30px 60px -30px rgba(0,0,0,.8); }
.game:hover { transform: translateY(-6px); }
.faq details:hover { box-shadow: inset 0 0 0 1px rgba(166,196,236,.14); }
.gbtn:active, .btn-blurple:active, .opill:active, .chip:active, .d-btn:active { transform: scale(.96); transition-duration: .12s; }
.btn-blurple:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 12px 32px rgba(88,101,242,.4); }
.tile:hover { transform: translateY(-5px) rotate(-3deg); }
.scard .bgimg { transition: transform 1.2s var(--ease), opacity .6s ease; }
.scard:hover .bgimg { transform: scale(1.75); opacity: .26; }
.scard .av { transition: transform .6s var(--spring); }
.scard:hover .av { transform: scale(1.08) rotate(-4deg); }
.orb { transition: transform .6s var(--spring), box-shadow .5s ease; }
.shead:hover .orb { transform: translateY(-4px) scale(1.06); box-shadow: inset 0 0 0 1px rgba(166,196,236,.24), 0 0 60px rgba(120,160,210,.22); }
.footer ul a { transition: color .25s ease; }

/* cursor-follow glow */
.card, .scard, .game, .cta, .inv-card, .cat, .betcap, .d-guild, .d-card, .d-field, .d-side, .tut-prog, .toc { position: relative; }
.card::after, .scard::after, .game::after, .cta::after, .inv-card::after, .cat::after, .betcap::after,
.d-guild::after, .d-card::after, .d-field::after, .d-side::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(166,196,236,.075), transparent 60%);
  opacity: 0; transition: opacity .5s ease;
}
.card:hover::after, .scard:hover::after, .game:hover::after, .cta:hover::after, .inv-card:hover::after, .cat:hover::after, .betcap:hover::after,
.d-guild:hover::after, .d-card:hover::after, .d-field:hover::after, .d-side:hover::after { opacity: 1; }
.card > *, .game > *, .cta > *, .inv-card > *, .betcap > * { position: relative; z-index: 1; }

/* marquee: slow down smoothly on hover */
.marquee:hover .marquee-track { animation-duration: 110s; }
.community .av { transition: transform .5s var(--spring); }
.community:hover .av { transform: scale(1.12); }

/* gradient words shimmer slowly */
.grad { background-size: 100% 220%; animation: shimmer 7s ease-in-out infinite; }
@keyframes shimmer { 0%, 100% { background-position: 50% 0%; } 50% { background-position: 50% 100%; } }

/* floaters: smoother bob */
.fchip { animation: bob 7s cubic-bezier(.45,.05,.55,.95) infinite; will-change: transform; transition: translate .2s linear; }

@media (prefers-reduced-motion: reduce) {
  /* soften instead of switching everything off: fades stay, travel/parallax/bobbing go */
  .js-motion .rv:not(.in) { transform: none !important; filter: none; }
  .js-motion .rv { transition: opacity .6s ease; transition-delay: var(--rd, 0ms); }
  ::view-transition-old(root) { animation: vtFadeOut .2s ease both; }
  ::view-transition-new(root) { animation: vtFade .3s ease both; }
  .fchip, .d-hero-logo, .d-empty-logo, .grad, .coin, .die, .wheel, .orb.big, .inv-logo { animation: none !important; }
  .card:hover, .scard:hover, .game:hover, .d-guild:hover { transform: translateY(-2px); }
}
@keyframes vtFade { from { opacity: 0; } }
@keyframes vtFadeOut { to { opacity: 0; } }

/* home: server feature grid */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.feat { position: relative; padding: 24px 26px; border-radius: 28px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); transition: transform .55s var(--ease), box-shadow .45s ease; }
.feat:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(166,196,236,.16), 0 24px 50px -30px rgba(0,0,0,.8); }
.feat .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(180deg, #1c2126, #15181b); box-shadow: inset 0 0 0 1px rgba(166,196,236,.16); transition: transform .6s var(--spring); }
.feat:hover .ic { transform: rotate(-6deg) scale(1.08); }
.feat .ic img { width: 20px; height: 20px; }
.feat h3 { margin: 16px 0 0; font-size: 17px; font-weight: 600; letter-spacing: -.4px; }
.feat p { margin: 6px 0 0; color: var(--zinc-400); font-size: 14.5px; line-height: 1.65; }
.feat::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(166,196,236,.07), transparent 60%); opacity: 0; transition: opacity .5s ease; }
.feat:hover::after { opacity: 1; }
#server .center { margin-top: 40px; }
@media (max-width: 980px) { .feats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .feats { grid-template-columns: 1fr; } }

/* docs */
.toc-h { font-size: 12px; font-weight: 600; color: var(--zinc-500); text-transform: uppercase; letter-spacing: .06em; margin: 14px 0 4px; }
.toc-h:first-child { margin-top: 0; }
.toc-n { color: var(--zinc-500); font-size: 12px; }
.prose pre { background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); border-radius: 16px; padding: 14px 16px; overflow-x: auto; white-space: pre-wrap; word-break: break-word; }
.docs-search { margin: 8px 0 20px; }
.docs-count { color: var(--zinc-500); font-size: 13px; white-space: nowrap; }
.dmod { margin-top: 30px; }
.dmod h3 { display: flex; align-items: center; gap: 10px; color: var(--accent); font-size: 21px; margin: 0 0 12px; scroll-margin-top: 30px; }
.dcmd { padding: 16px 20px; border-radius: 20px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 10px; scroll-margin-top: 30px; }
.dcmd-top { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; }
.dname { font-size: 15px; font-weight: 600; }
.dal { color: var(--zinc-500); font-family: var(--mono); font-size: 12.5px; }
.dcmd p { margin: 6px 0 8px !important; font-size: 14.5px !important; }
.dsyn { display: flex; gap: 10px; align-items: baseline; font-size: 13px; margin-top: 4px; }
.dsyn span { color: var(--zinc-500); width: 58px; flex: none; }
.dsubs { margin-top: 10px; }
.dsubs summary { cursor: pointer; color: var(--zinc-400); font-size: 13.5px; font-weight: 600; }
.dsubs table { margin: 10px 0 0 !important; font-size: 13.5px; }
.dsubs td { padding: 8px 12px !important; }
