/* ==========================================================================
   O JAILBREAKS — styles
   1. Tokens & reset       8. Pack tiles           15. Toasts
   2. Ambient layers       9. How it works         16. Reveal system
   3. Intro                10. FAQ                 17. Responsive
   4. Type & icons         11. Closing             18. Keyframes
   5. Buttons              12. Footer              19. Reduced motion
   6. Header               13. Pack page
   7. Library board        14. Quick find palette
   ========================================================================== */

/* 1. Tokens & reset ------------------------------------------------------ */
@property --accent { syntax: '<color>'; inherits: true; initial-value: #4f8dff; }
@property --pct { syntax: '<integer>'; inherits: true; initial-value: 0; }
@property --spin { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

:root {
  --bg: #04060b;
  --panel: #0a101d;
  --line: rgba(130, 160, 230, .12);
  --line-2: rgba(130, 160, 230, .21);
  --line-3: rgba(150, 185, 255, .42);
  --text: #eef3ff;
  --text-2: #c3cde1;
  --muted: #8f9bb3;
  --dim: #5b6782;
  --blue: #2f6bff;
  --blue-2: #4f8dff;
  --ice: #a9cbff;
  --volt: #7fe3ff;
  --amber: #f5b14a;
  --green: #47e6a1;
  --discord: #5865f2;
  --discord-2: #7983f5;
  --display: 'Big Shoulders Display', 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --font: 'Geist', 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --gutter: clamp(20px, 4.5vw, 64px);
  --max: 1440px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; background: var(--bg); color-scheme: dark; }
body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(1100px 620px at 88% -8%, rgba(47, 107, 255, .17), transparent 62%),
    radial-gradient(900px 600px at -12% 38%, rgba(47, 107, 255, .07), transparent 60%),
    var(--bg);
}
img, video, svg, canvas { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 8px; }
html.menu-open { overflow: hidden; }
.js:not(.is-ready):not(.skip-intro) body { overflow: hidden; }

.skip {
  position: fixed; left: 16px; top: 16px; z-index: 3000;
  padding: 12px 18px; border-radius: 12px; background: #fff; color: #061022; font-weight: 600;
  transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }
.noscript { position: fixed; bottom: 16px; left: 16px; right: 16px; padding: 14px 18px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line-2); z-index: 50; }

/* 2. Ambient layers ------------------------------------------------------ */
.field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
body::after {
  content: ''; position: fixed; inset: 0; z-index: 2500; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' d='M0 0h160v160H0z'/%3E%3C/svg%3E");
}
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200; pointer-events: none; }
.scroll-progress span {
  display: block; height: 100%; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--blue), var(--volt)); box-shadow: 0 0 12px var(--blue-2);
}
.overdrive-flash { position: fixed; inset: 0; z-index: 2400; pointer-events: none; background: radial-gradient(circle at 50% 30%, rgba(127, 227, 255, .25), rgba(47, 107, 255, .08) 60%, transparent); animation: flash .5s ease-out forwards; }

/* 3. Intro --------------------------------------------------------------- */
.preloader { position: fixed; inset: 0; z-index: 2700; display: grid; place-items: center; animation: pl-failsafe .01s 6s forwards; }
.no-js .preloader, .skip-intro .preloader { display: none; }
.pl-half { position: absolute; left: 0; right: 0; height: calc(50% + 20px); background: #03050a; transition: transform 1.1s var(--ease); }
.pl-top {
  top: 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 21px), 90% calc(100% - 18px), 83.8% calc(100% - 28px), 77% calc(100% - 17px), 71.2% calc(100% - 23px), 64% calc(100% - 15px), 58.5% calc(100% - 27px), 52% calc(100% - 19px), 45% calc(100% - 25px), 37.2% calc(100% - 13px), 33% calc(100% - 22px), 26.5% calc(100% - 18px), 21% calc(100% - 26px), 13% calc(100% - 16px), 8% calc(100% - 23px), 0 calc(100% - 20px));
}
.pl-bottom {
  bottom: 0;
  clip-path: polygon(0 20px, 8% 17px, 13% 24px, 21% 14px, 26.5% 22px, 33% 18px, 37.2% 27px, 45% 15px, 52% 21px, 58.5% 13px, 64% 25px, 71.2% 17px, 77% 23px, 83.8% 12px, 90% 22px, 100% 19px, 100% 100%, 0 100%);
}
.pl-core { position: relative; z-index: 2; display: grid; justify-items: center; gap: 16px; transition: opacity .35s, transform .5s var(--ease), filter .35s; }
.pl-emblem { position: relative; width: 132px; height: 132px; display: grid; place-items: center; }
.pl-emblem img { width: 92px; height: 92px; border-radius: 50%; filter: drop-shadow(0 0 26px rgba(47, 107, 255, .7)); animation: breathe 1.4s ease-in-out infinite alternate; }
.pl-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.pl-ring circle { fill: none; stroke-width: 1.5; }
.pl-track { stroke: rgba(140, 175, 255, .14); }
.pl-fill { stroke: var(--blue-2); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; filter: drop-shadow(0 0 6px var(--blue-2)); }
.pl-count { font: 900 72px/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.pl-count small { font-size: .38em; color: var(--blue-2); margin-left: 4px; vertical-align: top; }
.pl-text { font: 500 10px var(--mono); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.pl-text span { color: var(--ice); }
.pl-crack { position: absolute; left: 0; top: calc(50% - 20px); width: 100%; height: 40px; z-index: 3; overflow: visible; transition: opacity .5s .2s; }
.pl-crack path { fill: none; stroke: var(--volt); stroke-width: 2; stroke-dasharray: 100; stroke-dashoffset: 100; filter: drop-shadow(0 0 6px var(--volt)) drop-shadow(0 0 18px var(--blue)); }
.preloader.is-done .pl-core { opacity: 0; transform: scale(.88); filter: blur(8px); }
.preloader.is-done .pl-crack path { stroke-dashoffset: 0; transition: stroke-dashoffset .42s var(--ease-io); }
.preloader.is-open .pl-top { transform: translateY(-104%); }
.preloader.is-open .pl-bottom { transform: translateY(104%); }
.preloader.is-open .pl-crack { opacity: 0; }

/* 4. Type & icons -------------------------------------------------------- */
.ico { width: 1em; height: 1em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.eyebrow { display: block; margin-bottom: 16px; font: 500 14px/1.4 var(--font); color: var(--ice); }
h2 { font: 900 clamp(54px, 6.4vw, 100px)/.86 var(--display); letter-spacing: -.005em; text-transform: uppercase; margin-bottom: 24px; }
.soft { color: #56627c; }
.lede { max-width: 44ch; color: var(--muted); font-size: 16px; line-height: 1.75; }
kbd {
  display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 6px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .06); color: var(--text-2);
  font: 500 11px var(--mono); white-space: nowrap;
}
.signal, .pulse { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-2); flex-shrink: 0; }
.pulse { animation: pulse 2.2s infinite; }
.signal { box-shadow: 0 0 10px var(--blue-2); }

/* 5. Buttons ------------------------------------------------------------- */
.btn {
  --h: 58px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 22px;
  height: var(--h); padding: 0 7px 0 24px; border-radius: 14px;
  font: 600 14px var(--font); letter-spacing: -.01em; white-space: nowrap;
  transition: transform .5s var(--ease), translate .6s var(--ease), box-shadow .4s, background .3s, color .3s, border-color .3s;
}
.btn-label { display: block; height: 1.3em; line-height: 1.3; overflow: hidden; }
.bl { display: flex; flex-direction: column; transition: transform .55s var(--ease); }
.btn:hover .bl, .btn:focus-visible .bl { transform: translateY(-50%); }
.btn-icon { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; overflow: hidden; font-size: 18px; transition: background .35s, color .35s; }
.btn-icon .ico { grid-area: 1 / 1; transition: transform .55s var(--ease); }
.btn-icon .ico:last-child { transform: translate(-160%, 160%); }
.btn:hover .btn-icon .ico:first-child { transform: translate(160%, -160%); }
.btn:hover .btn-icon .ico:last-child { transform: none; }
.btn[download] .btn-icon .ico:last-child { transform: translateY(-160%); }
.btn[download]:hover .btn-icon .ico:first-child { transform: translateY(160%); }
.btn[download]:hover .btn-icon .ico:last-child { transform: none; }
.btn::before { /* light sweep */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s var(--ease);
}
.btn:hover::before { transform: translateX(120%); }

.btn-primary {
  color: #061022; background: linear-gradient(180deg, #f6f9ff, #dae5ff);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(255, 255, 255, .55), 0 14px 34px -12px rgba(47, 107, 255, .75);
}
.btn-primary .btn-icon { background: #0a1430; color: #fff; }
.btn-primary:hover { box-shadow: inset 0 1px 0 #fff, 0 0 0 1px #fff, 0 22px 50px -12px rgba(47, 107, 255, .95), 0 0 0 6px rgba(79, 141, 255, .14); }
.btn-primary:hover .btn-icon { background: var(--blue); }

.btn-ghost { color: var(--text); background: rgba(12, 18, 32, .6); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-ghost .btn-icon { background: rgba(255, 255, 255, .06); color: var(--ice); }
.btn-ghost::before { background: linear-gradient(105deg, transparent 30%, rgba(127, 180, 255, .18) 50%, transparent 70%); }
.btn-ghost::after { /* orbiting border light */
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: conic-gradient(from var(--spin), transparent 0 62%, var(--blue-2) 80%, var(--volt) 88%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spin-var 2.6s linear infinite;
}
.btn-ghost:hover { border-color: var(--line-3); background: rgba(47, 107, 255, .12); }
.btn-ghost:hover::after { opacity: 1; }
.btn-ghost:hover .btn-icon { background: var(--blue); color: #fff; }

.btn-light { color: #071436; background: #fff; box-shadow: 0 22px 44px -14px rgba(3, 14, 60, .7); }
.btn-light .btn-icon { background: #071436; color: #fff; }
.btn-light:hover { box-shadow: 0 30px 60px -14px rgba(3, 14, 60, .85), 0 0 0 6px rgba(255, 255, 255, .18); }
.btn-light:hover .btn-icon { background: var(--blue); }

.btn-sm { --h: 44px; gap: 14px; padding: 0 5px 0 16px; border-radius: 12px; font-size: 13px; }
.btn-sm .btn-icon { width: 32px; height: 32px; border-radius: 8px; font-size: 15px; }

.btn-locked {
  --h: 54px; padding: 0 22px; gap: 12px; color: var(--muted); font-weight: 500;
  background: rgba(255, 255, 255, .025); border: 1px dashed var(--line-2); cursor: not-allowed;
}
.btn-locked::before { display: none; }
.lock-bar { width: 26px; height: 6px; border-radius: 4px; background: repeating-linear-gradient(-45deg, var(--amber) 0 4px, transparent 4px 8px); background-size: 11.3px 6px; opacity: .8; animation: stripes 1s linear infinite; }

.ripple { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(127, 200, 255, .45), transparent 65%); transform: scale(0); animation: ripple .7s var(--ease) forwards; }

.text-btn { display: inline-flex; align-items: center; gap: 14px; font: 600 14px var(--font); color: var(--text-2); transition: color .3s, translate .6s var(--ease); }
.text-btn:hover { color: #fff; }
.play { position: relative; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(15, 25, 48, .55); font-size: 14px; color: var(--ice); transition: background .35s, color .35s, border-color .35s; }
.play::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1px dashed rgba(169, 203, 255, .3); animation: spin 14s linear infinite; }
.play .ico { margin-left: 2px; }
.text-btn:hover .play { background: var(--blue); border-color: var(--blue-2); color: #fff; }
.text-btn:hover .play::before { animation-duration: 3s; border-color: rgba(169, 203, 255, .6); }

.icon-btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--text-2); font-size: 17px;
  transition: background .25s, border-color .25s, color .25s, transform .4s var(--ease);
}
.icon-btn:hover { background: rgba(47, 107, 255, .16); border-color: var(--line-3); color: #fff; }
.icon-btn.close:hover { transform: rotate(90deg); }

/* 6. Header -------------------------------------------------------------- */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 0 var(--gutter); transition: transform .6s var(--ease); }
.header.is-hidden { transform: translateY(-115%); }
.header-inner {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px;
  max-width: var(--max); height: var(--header-h); margin: 0 auto; padding: 0 2px;
  border: 1px solid transparent; border-radius: 20px;
  transition: height .5s var(--ease), margin .5s var(--ease), padding .5s var(--ease), max-width .6s var(--ease), background .4s, border-color .4s, box-shadow .4s;
}
.header.is-scrolled .header-inner {
  height: 66px; margin-top: 12px; padding: 0 10px 0 14px; max-width: 1200px;
  background: rgba(7, 11, 20, .72); border-color: var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.brand { display: inline-flex; align-items: center; gap: 12px; width: fit-content; font: 700 16px var(--font); letter-spacing: -.02em; }
.brand-mark { position: relative; width: 40px; height: 40px; flex-shrink: 0; }
.brand-mark img { width: 100%; height: 100%; border-radius: 50%; transition: transform .9s var(--ease); }
.brand-ring { position: absolute; inset: -4px; width: calc(100% + 8px); height: calc(100% + 8px); max-width: none; transform: rotate(-90deg); }
.brand-ring circle { fill: none; stroke: var(--blue-2); stroke-width: 1.5; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .9s var(--ease); filter: drop-shadow(0 0 4px var(--blue-2)); }
.brand:hover .brand-ring circle { stroke-dashoffset: 0; }
.brand:hover .brand-mark img { transform: rotate(-200deg) scale(.9); }
.brand-dot { color: var(--blue-2); }

.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.quick {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 8px 0 14px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .02); color: var(--muted); font-size: 13px;
  transition: border-color .3s, color .3s, background .3s;
}
.quick .ico { font-size: 16px; }
.quick:hover { border-color: var(--line-3); color: var(--text); background: rgba(47, 107, 255, .08); }
.discord-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 44px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .02); color: var(--text-2); font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: border-color .3s, color .3s, background .3s;
}
.discord-btn .ico { font-size: 18px; color: #8b97ff; transition: color .3s; }
.discord-btn:hover { border-color: rgba(88, 101, 242, .6); background: rgba(88, 101, 242, .16); color: #fff; }
.discord-btn:hover .ico { color: #fff; }
.quick { white-space: nowrap; }
/* Header Discord call to action: solid Discord blue so it's the first thing people see */
.discord-cta {
  position: relative; display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 18px 0 15px; border-radius: 12px; overflow: hidden;
  background: linear-gradient(180deg, var(--discord-2), var(--discord)); color: #fff; font: 600 14px var(--font); white-space: nowrap; flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 0 0 1px rgba(88, 101, 242, .55), 0 12px 32px -10px rgba(88, 101, 242, .95);
  transition: box-shadow .35s, filter .35s;
}
.discord-cta .ico { font-size: 19px; }
.discord-cta::after { /* light sweep */
  content: ''; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%);
  animation: dc-sweep 5s var(--ease-io) 2.5s infinite;
}
/* Discord login: "Log in" button, or your avatar + name with a small menu */
.acct-login {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 15px 0 13px; border-radius: 12px; flex-shrink: 0;
  border: 1px solid rgba(88, 101, 242, .5); background: rgba(88, 101, 242, .1); color: #fff; font: 600 13.5px var(--font); white-space: nowrap;
  transition: border-color .3s, background .3s;
}
.acct-login .ico { font-size: 17px; color: #a5adff; }
.acct-login:hover { border-color: rgba(140, 150, 255, .9); background: rgba(88, 101, 242, .22); }
.acct { position: relative; flex-shrink: 0; }
.acct-btn {
  display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 10px 0 7px; border-radius: 12px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--text); font: 600 13.5px var(--font); transition: border-color .3s, background .3s;
}
.acct-btn img { width: 28px; height: 28px; border-radius: 50%; background: var(--discord); }
.acct-name { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-btn .ico { font-size: 14px; color: var(--muted); transition: transform .3s var(--ease); }
.acct-btn[aria-expanded=true] .ico { transform: rotate(180deg); }
.acct-btn:hover { border-color: var(--line-3); background: rgba(255, 255, 255, .06); }
.acct-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 5; display: grid; gap: 2px; min-width: 220px; padding: 6px; border-radius: 14px;
  border: 1px solid var(--line-2); background: rgba(8, 12, 22, .96); box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .9);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.acct-who { display: grid; gap: 2px; padding: 10px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.acct-who b { font-size: 14px; font-weight: 600; }
.acct-who small { font-size: 12.5px; color: var(--muted); }
.acct-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 9px; color: var(--text-2); font: 500 13.5px var(--font); text-align: left; transition: background .2s, color .2s; }
.acct-item .ico { font-size: 16px; }
.acct-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.discord-cta:hover { filter: brightness(1.08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 0 0 1px rgba(150, 160, 255, .9), 0 16px 40px -10px rgba(88, 101, 242, 1), 0 0 0 6px rgba(88, 101, 242, .18); }
.menu-toggle { display: none; position: relative; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(12, 18, 32, .6); }
.menu-toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; border-radius: 2px; background: var(--text); transition: transform .5s var(--ease), top .5s var(--ease); }
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; right: 18px; }
.menu-toggle[aria-expanded=true] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded=true] span:last-child { top: 21px; right: 13px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 30px) var(--gutter) 40px;
  background: radial-gradient(600px 400px at 100% 0, rgba(47, 107, 255, .3), transparent 60%), #04060b;
  clip-path: circle(0 at calc(100% - 44px) 42px); transition: clip-path .7s var(--ease-io);
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 44px) 42px); }
.mobile-nav { display: grid; }
.mobile-nav a, .mobile-foot { opacity: 0; transform: translateY(30px); transition: opacity .5s, transform .7s var(--ease); }
.mobile-nav a { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font: 900 clamp(40px, 11.5vw, 72px)/1 var(--display); text-transform: uppercase; }
.mobile-nav a small { font: 500 12px var(--mono); color: var(--blue-2); }
.mobile-menu.is-open .mobile-nav a, .mobile-menu.is-open .mobile-foot { opacity: 1; transform: none; transition-delay: calc(var(--i) * 70ms + .2s); }
.mobile-foot { display: grid; gap: 18px; }
.mobile-foot .btn { justify-content: space-between; }
.mobile-foot p { font-size: 13px; color: var(--dim); }

/* 6b. Home screen: the library comes first ---------------------------- */
main { position: relative; z-index: 1; }
.lib-hero {
  position: relative; max-width: var(--max); min-height: max(720px, 100svh); margin: 0 auto;
  padding: calc(var(--header-h) + 34px) var(--gutter) 70px;
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: center; gap: clamp(28px, 4.5vw, 72px);
  overflow: hidden; /* the background O is allowed to bleed past the edges, but must not widen the page */
}
@supports (overflow: clip) { .lib-hero { overflow: visible; overflow-x: clip; } }
.lib-intro { position: relative; z-index: 2; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(15, 25, 48, .5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: 500 13px var(--font); color: var(--text-2);
}
.hero-title { margin: 26px 0 22px; font: 900 clamp(62px, 6.9vw, 118px)/.84 var(--display); letter-spacing: -.01em; text-transform: uppercase; }
.hl { display: block; overflow: hidden; padding: .1em 0 .02em; margin: -.1em 0 -.02em; }
.hl-in { display: inline-block; white-space: nowrap; }
.ch { display: inline-block; }
.js .hero-title .ch { transform: translateY(115%) rotate(8deg); transform-origin: left bottom; opacity: 0; }
.js .hero-title .rotator, .js .hero-title .period { display: inline-block; transform: translateY(115%); }
.is-ready .hero-title .ch { transform: none; opacity: 1; transition: transform 1.2s var(--ease), opacity .6s; transition-delay: calc(var(--i) * 32ms + .1s); }
.is-ready .hero-title .rotator, .is-ready .hero-title .period { transform: none; transition: transform 1.2s var(--ease) .5s; }
.rotator {
  display: inline-block; padding-right: .02em;
  background: linear-gradient(100deg, #2f6bff 15%, #9ccaff 40%, #4f8dff 60%, #2f6bff 85%); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 30px rgba(47, 107, 255, .3));
}
.period { color: var(--text); }
.hero-description { max-width: 40ch; margin-bottom: 26px; font-size: 16.5px; line-height: 1.7; color: var(--muted); }
.js [data-hero] { opacity: 0; transform: translateY(26px); }
.is-ready [data-hero] { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1.3s var(--ease); transition-delay: calc(var(--d) * 90ms + .1s); }

.search {
  position: relative; isolation: isolate; flex: 1; display: flex; align-items: center; gap: 14px;
  height: 58px; padding: 0 12px 0 20px; border-radius: 16px;
  background: rgba(10, 16, 30, .75); border: 1px solid var(--line-2);
  transition: border-color .3s, box-shadow .4s, background .3s;
}
.search::before {
  content: ''; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1.5px; opacity: 0; transition: opacity .4s;
  background: conic-gradient(from var(--spin), var(--blue), var(--volt), #9b7bff, var(--blue));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spin-var 4s linear infinite;
}
.search:hover { border-color: var(--line-3); }
.search:focus-within { border-color: transparent; background: rgba(12, 20, 38, .95); box-shadow: 0 0 0 6px rgba(47, 107, 255, .1), 0 24px 50px -24px rgba(47, 107, 255, .7); }
.search:focus-within::before { opacity: 1; }
.search > .ico { font-size: 21px; color: var(--ice); transition: transform .5s var(--spring); }
.search:focus-within > .ico { transform: scale(1.12) rotate(-8deg); }
.search input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; font-size: 15.5px; color: var(--text); }
.search input::placeholder { color: var(--dim); }
.search input::-webkit-search-cancel-button { display: none; }
.search-clear { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(255, 255, 255, .06); color: var(--text-2); font-size: 14px; animation: pop .35s var(--spring); }
.search-clear:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.segment { position: relative; display: inline-flex; margin-top: 12px; padding: 5px; border-radius: 15px; border: 1px solid var(--line); background: rgba(10, 16, 30, .6); }
.segment button { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 10px; font: 600 13.5px var(--font); color: var(--muted); transition: color .3s; }
.segment button span { padding: 1px 7px; border-radius: 6px; background: rgba(255, 255, 255, .07); font-size: 11.5px; font-weight: 500; transition: background .3s; }
.segment button:hover { color: var(--text); }
.segment button[aria-pressed="true"] { color: #061022; }
.segment button[aria-pressed="true"] span { background: rgba(6, 16, 34, .12); }
.segment-ind { position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 10px; background: linear-gradient(180deg, #f6f9ff, #d6e3ff); box-shadow: 0 8px 22px -8px rgba(150, 185, 255, .8), inset 0 1px 0 #fff; transition: transform .55s var(--ease), width .55s var(--ease); }
.segment.no-anim .segment-ind { transition: none; }
.lib-discord {
  display: flex; align-items: center; gap: 14px; max-width: 460px; margin-top: 22px; padding: 12px 12px 12px 12px; border-radius: 16px;
  border: 1px solid rgba(88, 101, 242, .45); background: linear-gradient(100deg, rgba(88, 101, 242, .2), rgba(88, 101, 242, .06) 70%);
  box-shadow: 0 18px 44px -22px rgba(88, 101, 242, .9), inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: border-color .3s, background .3s, transform .5s var(--ease);
}
.lib-discord-ico { display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; background: var(--discord); color: #fff; font-size: 24px; box-shadow: 0 8px 22px -8px rgba(88, 101, 242, 1); }
.lib-discord-text { display: grid; gap: 2px; min-width: 0; }
.lib-discord-text strong { font-size: 15px; font-weight: 600; color: #fff; }
.lib-discord-text small { font-size: 13px; color: var(--text-2); }
.lib-discord-go { display: grid; place-items: center; width: 36px; height: 36px; margin-left: auto; flex-shrink: 0; border-radius: 10px; background: rgba(255, 255, 255, .08); color: #fff; font-size: 15px; transition: background .3s, transform .5s var(--ease); }
.lib-discord:hover { border-color: rgba(140, 150, 255, .85); background: linear-gradient(100deg, rgba(88, 101, 242, .3), rgba(88, 101, 242, .1) 70%); }
.lib-discord:hover .lib-discord-go { background: var(--discord); transform: translate(2px, -2px); }
.lib-verify { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 6px 4px; font-size: 13.5px; color: var(--muted); transition: color .25s; }
.lib-verify > .ico:first-child { font-size: 15px; color: var(--green); }
.lib-verify b { color: var(--text); font-weight: 600; }
.lib-verify > .ico:last-child { font-size: 13px; transition: transform .4s var(--ease); }
.lib-verify:hover { color: var(--text-2); }
.lib-verify:hover > .ico:last-child { transform: translate(2px, -2px); }
.lib-status { display: flex; align-items: flex-start; gap: 10px; max-width: 46ch; margin-top: 18px; font-size: 13.5px; line-height: 1.6; color: var(--dim); }
.lib-status .pulse { margin-top: 6px; background: var(--amber); animation-name: pulse-amber; }

/* The O sits behind the tiles and glows through the glass */
.lib-backdrop { position: absolute; z-index: 0; top: 50%; right: -5%; width: min(74vw, 940px); aspect-ratio: 1; translate: 0 -47%; pointer-events: none; }
.js .lib-backdrop { opacity: 0; scale: .9; }
.is-ready .lib-backdrop { opacity: 1; scale: 1; transition: opacity 1.6s var(--ease) .1s, scale 1.9s var(--ease) .1s; }
.hud { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; overflow: visible; }
.hud circle, .hud path { fill: none; }
.hud-outer { stroke: var(--line-2); stroke-dasharray: 2 7; }
.hud-spin { transform-origin: 300px 300px; animation: spin 80s linear infinite; }
.hud-text { font: 500 11.5px var(--mono); letter-spacing: 4.4px; fill: rgba(169, 203, 255, .45); }
.hud-ticks { stroke: rgba(169, 203, 255, .25); stroke-width: 7; stroke-dasharray: 1 9.12; }
.hud-arc { stroke-width: 2; stroke-linecap: round; transform-origin: 300px 300px; }
.hud-arc.a1 { stroke: var(--blue-2); stroke-dasharray: 16 84; animation: spin 16s linear infinite; filter: drop-shadow(0 0 6px var(--blue-2)); }
.hud-arc.a2 { stroke: var(--volt); stroke-dasharray: 5 95; stroke-dashoffset: 50; animation: spin 10s linear infinite reverse; filter: drop-shadow(0 0 6px var(--volt)); }
.emblem { position: absolute; inset: 13%; z-index: 1; border-radius: 50%; pointer-events: auto; cursor: pointer; transform-style: preserve-3d; transition: transform .2s linear; }
.emblem-glow { position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle, rgba(47, 107, 255, .55), transparent 65%); filter: blur(40px); animation: breathe 4s ease-in-out infinite alternate; }
.emblem video, .static-emblem {
  position: absolute; inset: -6%; width: 112%; height: 112%; max-width: none; object-fit: cover;
  -webkit-mask-image: radial-gradient(circle closest-side, #000 74%, transparent 97%); mask-image: radial-gradient(circle closest-side, #000 74%, transparent 97%);
  filter: saturate(1.15) contrast(1.05);
}
.static-emblem { display: none; }
.arcs { position: absolute; inset: -10%; width: 120%; height: 120%; max-width: none; pointer-events: none; mix-blend-mode: screen; }
.emblem.is-zap { animation: zap .45s var(--ease); }
#hero-art.is-paused, #hero-art.is-paused * { animation-play-state: paused !important; }
.motion-btn { position: absolute; right: var(--gutter); bottom: 22px; z-index: 3; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(10, 18, 34, .8); color: var(--ice); font-size: 14px; transition: background .3s, border-color .3s; }
.motion-btn:hover { background: var(--blue); border-color: var(--blue-2); color: #fff; }
.motion-btn .i-play, .motion-btn.is-paused .i-pause { display: none; }
.motion-btn.is-paused .i-play { display: block; }
.logo { display: block; width: 1em; height: 1em; object-fit: contain; flex-shrink: 0; -webkit-user-drag: none; user-select: none; }

/* 7. Library board -------------------------------------------------------- */
.section { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: 140px var(--gutter) 0; }
.lib-hero + .section { padding-top: 90px; }
.lib-board { position: relative; z-index: 2; }
.lib-board-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; padding: 0 2px; }
.result-count { font: 500 13.5px var(--font); color: var(--muted); }
.result-count b { display: inline-block; margin-right: 5px; font-weight: 600; color: var(--text); }
.result-count.bump b { animation: bump .5s var(--spring); }
.lib-how { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--text-2); transition: color .2s; }
.lib-how .ico { font-size: 14px; transition: transform .3s var(--ease); }
.lib-how:hover { color: #fff; }
.lib-how:hover .ico { transform: translate(2px, -2px); }

/* 8. Pack tiles ----------------------------------------------------------- */
.pack-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pack-grid.is-waiting .card { opacity: 0; }
.card {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 0; aspect-ratio: 1 / .86; padding: 18px; border-radius: 22px;
  border: 1px solid rgba(160, 190, 255, .14);
  background: linear-gradient(160deg, rgba(17, 26, 46, .74), rgba(7, 11, 20, .8));
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 24px 50px -32px rgba(0, 0, 0, .95);
  transition: transform .5s var(--ease), border-color .3s, box-shadow .5s;
}
.card-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .6; transition: opacity .4s; background: radial-gradient(110% 90% at 0% 0%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 58%); }
.card:hover, .card:focus-within {
  transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, rgba(160, 190, 255, .14));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 30px 60px -30px rgba(0, 0, 0, .95), 0 24px 70px -30px color-mix(in srgb, var(--accent) 70%, transparent);
}
.card:hover .card-glow, .card:focus-within .card-glow { opacity: 1; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.card-logo {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; font-size: 27px; color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, rgba(255, 255, 255, .08)); background: color-mix(in srgb, var(--accent) 10%, rgba(6, 10, 20, .7));
  box-shadow: 0 12px 30px -12px color-mix(in srgb, var(--accent) 65%, transparent); transition: transform .55s var(--spring);
}
.card:hover .card-logo { transform: scale(1.08) rotate(-6deg); }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); background: rgba(4, 6, 11, .5); font-size: 12px; color: var(--muted); white-space: nowrap; }
.status i { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.status.ready { color: var(--green); }
.status.ready i { background: var(--green); }
.card-body { padding-right: 40px; }
.card-name { font: 900 clamp(26px, 2.35vw, 36px)/.92 var(--display); letter-spacing: .005em; text-transform: uppercase; }
.card-meta { margin-top: 6px; font-size: 13px; color: var(--muted); }
.card-go { position: absolute; right: 16px; bottom: 16px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: rgba(255, 255, 255, .06); color: var(--text-2); font-size: 16px; opacity: 0; transform: translate(-6px, 6px); transition: opacity .3s, transform .5s var(--ease), background .3s, color .3s; }
.card:hover .card-go, .card:focus-within .card-go { opacity: 1; transform: none; background: var(--accent); color: #061022; }
.card-hit { position: absolute; inset: 0; z-index: 2; border-radius: inherit; cursor: pointer; }
.card-hit:focus-visible { outline: 2px solid var(--ice); outline-offset: -3px; border-radius: inherit; }

.empty { display: grid; justify-items: center; gap: 8px; padding: 56px 24px; border-radius: 22px; border: 1px dashed var(--line-2); background: rgba(10, 16, 30, .6); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); text-align: center; animation: rise .6s var(--ease); }
.empty-glyph { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 10px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 23px; color: var(--ice); }
.empty h3 { font: 600 22px var(--font); letter-spacing: -.02em; }
.empty p { margin-bottom: 14px; color: var(--muted); }

/* 9. How it works ------------------------------------------------------- */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.story-steps-wrap { position: relative; margin-top: 30px; }
.story-rail { position: absolute; left: 20px; top: 0; bottom: 0; width: 1px; background: var(--line-2); }
.story-rail span { position: absolute; inset: 0; transform-origin: top; transform: scaleY(var(--rail, 0)); background: linear-gradient(var(--blue-2), var(--volt)); box-shadow: 0 0 12px var(--blue-2); transition: transform .3s linear; }
.story-step { display: grid; grid-template-columns: 41px 1fr; column-gap: 26px; align-content: center; min-height: 54vh; opacity: .3; transition: opacity .6s; }
.story-step.is-active { opacity: 1; }
.step-no { grid-row: 1 / 3; position: relative; z-index: 1; display: grid; place-items: center; width: 41px; height: 41px; margin-top: 2px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg); font: 500 12px var(--mono); color: var(--muted); transition: background .5s, color .5s, border-color .5s, box-shadow .5s, transform .6s var(--spring); }
.story-step.is-active .step-no { background: var(--blue); border-color: var(--blue-2); color: #fff; box-shadow: 0 0 0 7px rgba(47, 107, 255, .14), 0 0 28px rgba(47, 107, 255, .7); transform: scale(1.06); }
.story-step h3 { margin: 4px 0 10px; font: 700 clamp(25px, 2.5vw, 36px)/1.1 var(--font); letter-spacing: -.035em; }
.story-step p { max-width: 40ch; font-size: 15.5px; line-height: 1.75; color: var(--muted); }
.story-visual { position: sticky; top: max(100px, calc(50vh - 300px)); }

.scene {
  position: relative; display: flex; flex-direction: column; height: 600px; overflow: hidden; border-radius: 26px;
  border: 1px solid var(--line-2);
  background: radial-gradient(120% 75% at 50% 0%, rgba(47, 107, 255, .26), transparent 60%), linear-gradient(170deg, #0d1730, #070c18 70%);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.scene::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(124, 164, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(124, 164, 255, .05) 1px, transparent 1px); background-size: 32px 32px; -webkit-mask-image: radial-gradient(circle at 50% 45%, #000, transparent 75%); mask-image: radial-gradient(circle at 50% 45%, #000, transparent 75%); }
.scene-bar { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); font: 500 11px var(--mono); color: var(--muted); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.dots i:nth-child(1) { background: #ff5f57b0; }
.dots i:nth-child(2) { background: #febc2eb0; }
.dots i:nth-child(3) { background: #28c840b0; }
.scene-url { flex: 1; min-width: 0; padding: 7px 12px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scene-url b { font-weight: 500; color: var(--ice); }
.scene-count b { color: var(--text); font-weight: 500; }
.scene-stage { position: relative; flex: 1; }
.scene-caption { position: relative; padding: 13px 16px; border-top: 1px solid var(--line); font: 500 11px var(--mono); color: var(--dim); text-align: center; }
.stage { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(24px) scale(.96); filter: blur(8px); transition: opacity .45s, transform .7s var(--ease), filter .45s, visibility 0s .7s; }
.scene[data-step="1"] .stage-1, .scene[data-step="2"] .stage-2, .scene[data-step="3"] .stage-3 { opacity: 1; visibility: visible; transform: none; filter: none; transition: opacity .5s .12s, transform .8s var(--ease) .12s, filter .5s .12s, visibility 0s; }

/* stage 1 */
.mtiles { display: grid; grid-template-columns: repeat(5, 96px); gap: 12px; }
.mtile { display: grid; place-items: center; align-content: center; gap: 10px; height: 96px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(9, 15, 28, .85); font: 600 12px var(--font); color: var(--text-2); }
.mtile b { font: 400 26px var(--font); color: var(--c); }
.scene[data-step="1"] .mtile { animation: tile-in .6s var(--ease) both; animation-delay: calc(var(--i) * 60ms + .15s); }
.scene[data-step="1"] .mtile.pick { animation: tile-in .6s var(--ease) both calc(var(--i) * 60ms + .15s), tile-pick .6s var(--spring) 1.75s forwards; }
.fake-cursor { position: absolute; left: 50%; top: 50%; z-index: 2; font-size: 28px; color: #fff; opacity: 0; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .6)); }
.scene[data-step="1"] .fake-cursor { animation: fc-move 1.3s var(--ease) .5s forwards, fc-click .3s ease 1.7s; }

/* stage 2 */
.stage-2 { align-content: center; gap: 26px; }
.zip { display: flex; align-items: center; gap: 20px; width: min(400px, 84%); padding: 20px; border-radius: 20px; border: 1px solid var(--line-2); background: rgba(8, 13, 25, .9); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .85); }
.zip-file { position: relative; flex-shrink: 0; display: grid; place-items: end center; width: 66px; height: 80px; padding-bottom: 10px; border-radius: 10px 24px 10px 10px; background: linear-gradient(160deg, #5f99ff, #1f56e6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 14px 30px -8px rgba(47, 107, 255, .8); font: 900 16px var(--display); letter-spacing: .1em; color: #fff; }
.zip-teeth { position: absolute; left: 50%; top: 7px; width: 8px; height: 36px; margin-left: -4px; background: repeating-linear-gradient(#d4e3ff 0 4px, transparent 4px 8px); opacity: .9; }
.zip-body { flex: 1; min-width: 0; }
.zip-name { margin-bottom: 14px; font: 500 13px var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zip-bar { height: 7px; overflow: hidden; border-radius: 7px; background: rgba(255, 255, 255, .07); }
.zip-bar span { display: block; height: 100%; width: calc(var(--pct) * 1%); border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--volt)); box-shadow: 0 0 14px var(--blue-2); }
.zip-meta { display: flex; justify-content: space-between; margin-top: 10px; font: 500 11px var(--mono); color: var(--muted); }
.zip-state { display: grid; }
.zip-state em { grid-area: 1 / 1; font-style: normal; }
.zip-state em:last-child { opacity: 0; color: var(--green); }
.zip-pct::after { counter-reset: pct var(--pct); content: counter(pct) '%'; font-variant-numeric: tabular-nums; }
.zip-out span { display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 13px; border: 1px solid rgba(79, 141, 255, .45); background: rgba(47, 107, 255, .14); font: 500 13px var(--mono); color: var(--ice); opacity: 0; }
.scene[data-step="2"] .zip { animation: zip-load 1.8s var(--ease-io) .45s forwards; }
.scene[data-step="2"] .zip-state em:first-child { animation: fade-out .3s 2.25s forwards; }
.scene[data-step="2"] .zip-state em:last-child { animation: fade-in .4s 2.35s forwards; }
.scene[data-step="2"] .zip-out span { animation: pop-in .7s var(--spring) 2.4s both; }

/* stage 3 */
.stage-3 { grid-template-rows: 1fr auto; padding: 24px 24px 30px; }
.folder { position: relative; width: 230px; height: 168px; margin-top: 30px; }
.folder-back { position: absolute; inset: 14px 0 0; border-radius: 12px 18px 18px 18px; background: linear-gradient(160deg, #2c62e0, #143ca8); }
.folder-back::before { content: ''; position: absolute; left: 0; top: -15px; width: 44%; height: 24px; border-radius: 11px 20px 0 0; background: #2c62e0; }
.folder-paper { position: absolute; left: 11%; right: 11%; top: 2px; height: 126px; border-radius: 9px; background: linear-gradient(#ebf2ff, #c2d5f7); box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.folder-paper.p2 { left: 17%; right: 5%; top: 8px; background: linear-gradient(#ccdcf8, #a5bfea); transform: rotate(5deg); }
.folder-front { position: absolute; left: 0; right: 0; bottom: 0; height: 72%; display: flex; flex-direction: column; justify-content: space-between; padding: 16px 18px; border-radius: 12px 12px 18px 18px; border: 1px solid rgba(170, 205, 255, .6); background: linear-gradient(150deg, #6ea3ff, #2e6bff 58%, #1c4fe0); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 22px 44px -12px rgba(20, 60, 200, .8); transform-origin: bottom; }
.folder-front span { display: flex; align-items: center; justify-content: space-between; font: 900 46px/.8 var(--display); color: #e5efff; }
.folder-front .ico { font-size: 26px; color: #d3e5ff; }
.folder-front small { font: 500 9px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: #dbe8ff; }
.scene[data-step="3"] .folder-front { animation: folder-open .9s var(--ease) .3s forwards; }
.scene[data-step="3"] .folder-paper.p1 { animation: paper-up .9s var(--ease) .45s forwards; }
.fly-files { position: absolute; left: 50%; top: 42%; }
.ff { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 11px; border: 1px solid var(--line-3); background: rgba(9, 15, 28, .94); box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .8); font: 500 12px var(--mono); white-space: nowrap; opacity: 0; transform: translate(-50%, -50%) scale(.5); }
.ff .ico { font-size: 14px; color: var(--ice); }
.scene[data-step="3"] .ff1 { animation: ff1 1s var(--spring) .75s forwards; }
.scene[data-step="3"] .ff2 { animation: ff2 1s var(--spring) .9s forwards; }
.scene[data-step="3"] .ff3 { animation: ff3 1s var(--spring) 1.05s forwards; }
.chatbar { display: flex; align-items: center; gap: 10px; width: min(440px, 94%); padding: 8px 8px 8px 14px; border-radius: 18px; border: 1px solid var(--line-2); background: rgba(6, 10, 20, .94); box-shadow: 0 24px 50px -12px rgba(0, 0, 0, .8); }
.chat-clip { color: var(--muted); font-size: 18px; }
.chat-attach { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 10px; border: 1px solid rgba(79, 141, 255, .45); background: rgba(47, 107, 255, .18); font: 500 11px var(--mono); color: var(--ice); white-space: nowrap; opacity: 0; transform: scale(.4); }
.chat-ph { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; font-size: 13px; color: var(--dim); }
.chat-send { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #e9efff; color: #061022; font-size: 16px; }
.scene[data-step="3"] .chat-attach { animation: pop-in .6s var(--spring) 1.9s forwards; }
.scene[data-step="3"] .chat-send { animation: send-glow 1.2s ease 2.4s 2; }

.good-to-know { display: flex; align-items: baseline; gap: 22px; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.good-to-know span { font: 600 14px var(--font); color: var(--ice); white-space: nowrap; }
.good-to-know p { font-size: 14px; color: var(--muted); }

/* 10. FAQ ---------------------------------------------------------------- */
.faq { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.faq-head { position: sticky; top: 120px; }
.faq-ask { display: inline-flex; align-items: center; gap: 12px; margin-top: 30px; padding: 10px 10px 10px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); font-size: 13.5px; color: var(--text-2); transition: border-color .3s, background .3s, color .3s; }
.faq-ask .ico { font-size: 16px; color: var(--ice); }
.faq-ask:hover { border-color: var(--line-3); background: rgba(47, 107, 255, .1); color: #fff; }
.questions { border-top: 1px solid var(--line-2); }
.questions details { position: relative; border-bottom: 1px solid var(--line-2); }
.questions details::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, var(--blue-2), var(--volt), transparent); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.questions details[open]:not(.is-closing)::after { transform: scaleX(1); }
.questions summary { display: grid; grid-template-columns: 1fr 42px; align-items: center; gap: 12px; padding: 28px 0; list-style: none; cursor: pointer; font: 600 19px/1.35 var(--font); letter-spacing: -.02em; color: var(--text-2); transition: color .3s; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary:hover, details[open]:not(.is-closing) summary { color: #fff; }
.q-text { transition: transform .5s var(--ease); }
.questions summary:hover .q-text { transform: translateX(6px); }
.q-icon { position: relative; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--text-2); transition: background .4s, border-color .4s, color .4s, transform .6s var(--ease); }
.q-icon::before, .q-icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -.75px 0 0 -7px; border-radius: 2px; background: currentColor; transition: transform .5s var(--ease); }
.q-icon::after { transform: rotate(90deg); }
.questions summary:hover .q-icon { border-color: var(--line-3); color: #fff; }
details[open]:not(.is-closing) .q-icon { background: var(--blue); border-color: var(--blue-2); color: #fff; transform: rotate(180deg); box-shadow: 0 0 22px rgba(47, 107, 255, .55); }
details[open]:not(.is-closing) .q-icon::after { transform: rotate(0); }
.answer { overflow: hidden; }
.answer p { max-width: 60ch; padding: 0 54px 28px 0; font-size: 15.5px; line-height: 1.8; color: var(--muted); }
.answer a { color: var(--ice); text-decoration: underline; text-underline-offset: 3px; }
.answer a:hover { color: #fff; }

/* 11. Closing ------------------------------------------------------------ */
.closing { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: 140px var(--gutter) 100px; }
.closing-panel { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .75fr); align-items: center; min-height: 400px; border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(180deg, #0a0f1b, #070b14); }
.closing-copy { position: relative; z-index: 1; padding: clamp(32px, 5vw, 64px); }
.closing h2 { margin-bottom: 18px; font-size: clamp(52px, 6.4vw, 100px); }
.closing .lede { margin-bottom: 30px; }
.closing-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; }
.closing-link { padding-bottom: 2px; border-bottom: 1px solid var(--line-2); font-size: 14px; font-weight: 600; color: var(--text-2); transition: color .2s, border-color .2s; }
.closing-link:hover { border-color: var(--text-2); color: #fff; }
.closing-art { position: relative; display: grid; place-items: center; align-self: stretch; padding: 36px 40px 36px 0; pointer-events: none; }
.closing-art::before { content: ''; position: absolute; inset: 15%; border-radius: 50%; background: radial-gradient(circle, rgba(47, 107, 255, .3), transparent 65%); filter: blur(40px); }
.closing-art img { position: relative; width: 100%; max-width: 400px; height: auto; aspect-ratio: 1; -webkit-mask-image: radial-gradient(circle closest-side, #000 72%, transparent 97%); mask-image: radial-gradient(circle closest-side, #000 72%, transparent 97%); }

/* 12. Footer ------------------------------------------------------------- */
.footer { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 28px; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding: 60px 0 50px; border-top: 1px solid var(--line); }
.footer-brand p { margin-top: 16px; font-size: 14px; color: var(--muted); }
.footer-brand .brand-mark { width: 36px; height: 36px; }
.footer-discord { margin-top: 20px; height: 42px; }
.footer-col { display: grid; align-content: start; gap: 4px; }
.footer-col h4 { margin-bottom: 10px; font: 600 14px var(--font); color: var(--text); }
.footer-col a { display: inline-flex; align-items: center; gap: 10px; width: fit-content; padding: 5px 0; font-size: 14px; color: var(--text-2); transition: color .25s, transform .5s var(--ease); }
.footer-col a span { display: grid; place-items: center; width: 16px; font-size: 15px; }
.footer-col a:hover { color: #fff; transform: translateX(3px); }
#footer-models { grid-template-columns: repeat(2, max-content); column-gap: 28px; }
#footer-models h4 { grid-column: 1 / -1; }
.footer-keys span { display: flex; align-items: center; gap: 12px; padding: 5px 0; font-size: 14px; color: var(--muted); }
.footer-keys kbd { min-width: 46px; }
.footer-word { position: relative; padding: 0 0 18px; font: 900 clamp(72px, 16.4vw, 252px)/.8 var(--display); letter-spacing: -.005em; text-align: center; white-space: nowrap; color: rgba(140, 175, 255, .05); user-select: none; }
.footer-word span { display: block; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }
.footer-legal { text-align: center; }
.to-top { position: relative; flex-shrink: 0; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; font-size: 18px; color: var(--text); transition: color .3s, translate .6s var(--ease); }
.to-top-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top-ring circle { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.to-top-ring .to-top-fill { stroke: var(--blue-2); stroke-dasharray: 100; stroke-dashoffset: 100; filter: drop-shadow(0 0 4px var(--blue-2)); }
.to-top .ico { transition: transform .5s var(--ease); }
.to-top:hover .ico { transform: translateY(-4px); }

/* 13. Pack page ---------------------------------------------------------- */
html.page-open { overflow: hidden; }
.pack-page {
  --accent: var(--blue-2);
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  overflow: hidden; color: var(--text); background: #05080f; transition: --accent .6s;
}
.pack-page[open] { display: flex; flex-direction: column; }
.pack-page::backdrop { background: transparent; }
.palette::backdrop { background: rgba(2, 4, 9, .62); -webkit-backdrop-filter: blur(10px) saturate(.8); backdrop-filter: blur(10px) saturate(.8); animation: fade-in .4s ease; }
.palette.is-closing::backdrop { animation: fade-out .26s ease forwards; }
.pp-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(900px 520px at 28% -12%, color-mix(in srgb, var(--accent) 17%, transparent), transparent 70%); }
.pp-flash { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; background: radial-gradient(circle at var(--ox, 50%) var(--oy, 50%), color-mix(in srgb, var(--accent) 40%, transparent), transparent 60%); }
.pp-bar { position: relative; z-index: 2; flex-shrink: 0; display: flex; align-items: center; gap: 18px; height: 68px; padding: 0 var(--gutter); border-bottom: 1px solid var(--line); background: rgba(5, 8, 15, .8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.pp-back { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 10px; border-radius: 11px; border: 1px solid var(--line-2); font: 600 13.5px var(--font); color: var(--text-2); transition: color .2s, border-color .2s, background .2s; }
.pp-back .ico { font-size: 16px; transition: transform .3s var(--ease); }
.pp-back:hover { border-color: var(--line-3); background: rgba(255, 255, 255, .04); color: #fff; }
.pp-back:hover .ico { transform: translateX(-2px); }
.pp-crumb { font-size: 13.5px; color: var(--dim); white-space: nowrap; }
.pp-crumb span { margin: 0 8px; }
.pp-crumb b { font-weight: 600; color: var(--text-2); }
.pp-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.pp-count { min-width: 62px; text-align: center; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pp-layout { position: relative; z-index: 1; flex: 1; min-height: 0; display: grid; grid-template-columns: 280px minmax(0, 1fr); }
.pp-side { overflow-y: auto; padding: 22px 14px 24px var(--gutter); border-right: 1px solid var(--line); }
.pp-side-title { padding: 0 10px 10px; font-size: 13px; font-weight: 600; color: var(--dim); }
.pp-list { display: grid; gap: 2px; }
.pp-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border-radius: 12px; text-align: left; color: var(--muted); transition: background .2s, color .2s, box-shadow .2s; }
.pp-item:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.pp-item[aria-current="page"] { background: color-mix(in srgb, var(--c) 11%, rgba(255, 255, 255, .03)); color: #fff; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 32%, transparent); }
.pp-item-logo { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); font-size: 18px; }
.pp-item-text { min-width: 0; font: 600 14px/1.25 var(--font); }
.pp-item-text small { display: block; margin-top: 1px; font-size: 12.5px; font-weight: 400; color: var(--dim); }
.pp-item i { flex-shrink: 0; width: 6px; height: 6px; margin-left: auto; border-radius: 50%; background: var(--amber); opacity: .8; }
.pp-item i.ready { background: var(--green); }
.pp-main { overflow-y: auto; padding: 52px clamp(24px, 5vw, 76px) 72px; }
.pp-head { display: flex; align-items: center; gap: 24px; }
.pp-logo {
  display: grid; place-items: center; flex-shrink: 0; width: 92px; height: 92px; border-radius: 26px; font-size: 48px; color: var(--accent); transform-origin: top left;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 16%, #0c1426), #0a101c);
  box-shadow: 0 22px 50px -18px color-mix(in srgb, var(--accent) 65%, transparent), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.pp-provider { margin-bottom: 6px; font-size: 15px; color: var(--muted); }
.pp-title { margin: 0; font: 900 clamp(44px, 5.6vw, 84px)/.9 var(--display); letter-spacing: -.005em; text-transform: uppercase; }
.pp-desc { max-width: 56ch; margin: 28px 0 18px; font-size: 17px; line-height: 1.7; color: var(--text-2); }
.pp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 28px; }
.pp-status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(245, 177, 74, .32); background: rgba(245, 177, 74, .1); font: 500 13px var(--font); color: #ffd08a; }
.pp-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pp-status.ready { border-color: rgba(71, 230, 161, .35); background: rgba(71, 230, 161, .1); color: var(--green); }
.pp-tags { font-size: 14px; color: var(--dim); }
.pp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 44px; }
.pp-share { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2); font: 600 13.5px var(--font); color: var(--text-2); transition: color .2s, border-color .2s, background .2s; }
.pp-share .ico { font-size: 15px; }
.pp-share:hover { border-color: var(--line-3); background: rgba(255, 255, 255, .04); color: #fff; }
.pp-discord .ico { font-size: 17px; color: #8b97ff; }
.pp-discord:hover { border-color: rgba(88, 101, 242, .6); background: rgba(88, 101, 242, .16); }
.pp-discord:hover .ico { color: #fff; }
.pp-models { max-width: 1060px; margin-bottom: 16px; padding: 22px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 7%, rgba(10, 15, 27, .8)), rgba(10, 15, 27, .72)); }
.pp-models-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pp-models-head h3 { font: 600 16px var(--font); letter-spacing: -.01em; }
.pp-models-head span { font-size: 13px; color: var(--muted); }
.pp-model-list { display: grid; gap: 8px; }
.pp-model { display: flex; align-items: center; gap: 16px; padding: 14px 14px 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(4, 7, 14, .55); transition: border-color .25s, background .25s; }
.pp-model:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); background: rgba(8, 12, 22, .7); }
.pp-model-info { flex: 1; min-width: 0; }
.pp-model-info h4 { font: 600 16px/1.3 var(--font); letter-spacing: -.015em; }
.pp-model-info p { margin-top: 2px; font-size: 13px; color: var(--muted); }
.pp-model-actions { display: flex; flex-shrink: 0; gap: 8px; }
.pp-mbtn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); font: 600 13.5px var(--font); color: var(--text); white-space: nowrap; transition: background .2s, border-color .2s, color .2s; }
.pp-mbtn .ico { font-size: 15px; }
.pp-mbtn:hover { border-color: var(--line-3); background: rgba(255, 255, 255, .08); }
.pp-mbtn.primary { border-color: #f2f5fb; background: #f2f5fb; color: #061022; }
.pp-mbtn.primary:hover { background: #fff; }
.pp-mbtn.is-copied { border-color: rgba(71, 230, 161, .5); background: rgba(71, 230, 161, .12); color: var(--green); }
.pp-mbtn.discord { border-color: var(--discord); background: var(--discord); color: #fff; box-shadow: 0 10px 26px -12px rgba(88, 101, 242, 1); }
.pp-mbtn.discord:hover { border-color: var(--discord-2); background: var(--discord-2); }
.pp-mbtn.ghost { border-color: transparent; background: none; color: var(--muted); }
.pp-mbtn.ghost:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.pp-mbtn.locked { color: var(--text-2); }
.pp-mbtn.locked .ico { color: var(--amber); }
.pp-mbtn.is-static { cursor: default; }
.pp-mbtn.is-static:hover { border-color: var(--line-2); background: rgba(255, 255, 255, .04); }
.pp-model.is-locked .pp-model-info h4 { color: var(--text-2); }
/* Members-only panel above the model list */
.pp-gate {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 20px; margin-bottom: 12px; padding: 16px 16px 16px 18px; border-radius: 14px;
  border: 1px solid rgba(88, 101, 242, .45); background: linear-gradient(100deg, rgba(88, 101, 242, .18), rgba(88, 101, 242, .05) 75%);
}
.pp-gate-text { display: grid; gap: 4px; flex: 1 1 280px; min-width: 0; }
.pp-gate-text b { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: #fff; }
.pp-gate-text b .ico { font-size: 16px; color: var(--amber); }
.pp-gate-text span { font-size: 13.5px; line-height: 1.55; color: var(--text-2); }
.pp-gate-actions { display: flex; flex-wrap: wrap; gap: 8px; }
/* Phone menu: who's logged in */
.m-acct { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); }
.m-acct img { width: 40px; height: 40px; border-radius: 50%; background: var(--discord); flex-shrink: 0; }
.m-acct p { display: grid; flex: 1; min-width: 0; gap: 2px; margin: 0; }
.m-acct b { font-size: 15px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-acct small { font-size: 12.5px; color: var(--muted); }
.pp-model-empty { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 14px; border: 1px dashed var(--line-2); font-size: 14px; line-height: 1.5; color: var(--muted); }
.pp-model-empty .lock-bar { flex-shrink: 0; }
.pp-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; max-width: 1060px; }
.pp-panel { padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: rgba(10, 15, 27, .72); }
.pp-panel h3 { margin-bottom: 16px; font: 600 16px var(--font); letter-spacing: -.01em; }
.pp-note { margin-top: 14px; font-size: 13.5px; line-height: 1.7; color: var(--muted); }
.pp-steps { display: grid; gap: 18px; counter-reset: step; }
.pp-steps li { position: relative; padding-left: 44px; font-size: 14.5px; line-height: 1.6; color: var(--muted); counter-increment: step; }
.pp-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line-2)); background: color-mix(in srgb, var(--accent) 10%, transparent); font: 600 13px var(--font); color: var(--text); }
.pp-steps b { display: block; margin-bottom: 2px; font-weight: 600; color: var(--text); }
.terminal { overflow: hidden; border-radius: 16px; border: 1px solid var(--line-2); background: #04070e; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03); }
.terminal-bar { display: flex; align-items: center; gap: 14px; padding: 9px 9px 9px 14px; border-bottom: 1px solid var(--line); font: 500 11px var(--mono); color: var(--muted); }
.terminal-bar > span:nth-child(2) { flex: 1; }
.copy-btn { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 9px; border: 1px solid var(--line-2); font: 500 11px var(--mono); color: var(--text-2); transition: border-color .25s, background .25s, color .25s; }
.copy-btn:hover { border-color: var(--line-3); background: rgba(47, 107, 255, .12); color: #fff; }
.copy-btn .i-check, .copy-btn.is-copied .i-copy { display: none; }
.copy-btn.is-copied .i-check { display: block; color: var(--green); }
.copy-btn.is-copied { border-color: rgba(71, 230, 161, .4); }
.file-tree { min-height: 150px; margin: 0; padding: 18px 20px; overflow-x: auto; font: 400 13.5px/2.05 var(--mono); color: var(--text-2); white-space: pre; }
.tl { display: block; opacity: 0; transform: translateX(-10px); animation: tl-in .45s var(--ease) forwards; animation-delay: calc(var(--i) * 110ms + .2s); }
.tl b { font-weight: 400; color: var(--dim); }
.tl-root { color: var(--accent); }
.tl .ico { display: inline-block; vertical-align: -2px; margin-right: 8px; }
.caret { display: inline-block; width: 8px; height: 16px; vertical-align: -3px; background: var(--accent); animation: caret 1s steps(1) infinite; }
/* 14. Quick find palette ------------------------------------------------- */
.palette { margin: 13vh auto auto; width: min(640px, calc(100vw - 32px)); padding: 0; overflow: hidden; border: 1px solid var(--line-2); border-radius: 22px; color: var(--text); background: rgba(9, 14, 26, .95); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 50px 140px -30px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .05); }
.palette[open] { animation: pal-in .4s var(--ease); }
.palette.is-closing { animation: pal-out .22s ease forwards; }
.palette-search { display: flex; align-items: center; gap: 14px; height: 66px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.palette-search > .ico { font-size: 21px; color: var(--ice); }
.palette-search input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; font-size: 17px; }
.palette-search input::placeholder { color: var(--dim); }
.palette-list { max-height: min(430px, 56vh); overflow-y: auto; padding: 6px 8px 8px; scroll-padding: 8px; }
.pal-group { padding: 14px 12px 6px; font: 500 12px var(--font); color: var(--dim); }
.pal-item { display: flex; align-items: center; gap: 14px; padding: 9px 12px; border-radius: 13px; font-size: 14.5px; color: var(--text-2); cursor: pointer; transition: background .15s, color .15s; }
.pal-ico { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 11px; border: 1px solid var(--line); background: rgba(255, 255, 255, .035); font-size: 18px; color: var(--c, var(--ice)); transition: border-color .2s, background .2s; }
.pal-item small { margin-left: auto; font: 500 11px var(--mono); color: var(--dim); white-space: nowrap; }
.pal-item mark { background: none; color: var(--ice); box-shadow: inset 0 -2px 0 rgba(79, 141, 255, .55); }
.pal-item .pal-go { opacity: 0; font-size: 15px; color: var(--ice); transform: translateX(-6px); transition: opacity .2s, transform .3s var(--ease); }
.pal-item[aria-selected=true] { background: rgba(47, 107, 255, .14); color: #fff; }
.pal-item[aria-selected=true] .pal-ico { border-color: rgba(79, 141, 255, .45); background: rgba(47, 107, 255, .15); }
.pal-item[aria-selected=true] .pal-go { opacity: 1; transform: none; }
.pal-empty { padding: 40px 20px; text-align: center; color: var(--muted); font-size: 14px; }
.palette-foot { display: flex; gap: 20px; padding: 11px 18px; border-top: 1px solid var(--line); font: 500 11px var(--mono); color: var(--dim); }
.palette-foot span { display: flex; align-items: center; gap: 6px; }
.palette-foot kbd { height: 20px; min-width: 20px; font-size: 10px; }

/* 15. Toasts ------------------------------------------------------------- */
.toasts { position: fixed; inset: auto auto 26px 50%; z-index: 2800; display: grid; justify-items: center; gap: 8px; width: max-content; max-width: calc(100vw - 32px); margin: 0; padding: 0; border: 0; overflow: visible; background: none; color: var(--text); transform: translateX(-50%); pointer-events: none; }
.toasts[popover]:not(:popover-open) { display: none; }
.toast { display: flex; align-items: center; gap: 11px; padding: 10px 16px 10px 10px; border-radius: 15px; border: 1px solid var(--line-2); background: rgba(12, 18, 32, .96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 24px 60px -14px rgba(0, 0, 0, .85); font-size: 14px; white-space: nowrap; animation: toast-in .55s var(--spring) both; }
.t-ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: rgba(47, 107, 255, .2); color: var(--ice); font-size: 15px; }
.toast.is-leaving { animation: toast-out .35s var(--ease) forwards; }

/* 16. Reveal system ------------------------------------------------------ */
.reveal-on [data-reveal] { opacity: 0; transform: translateY(30px); }
.reveal-on [data-reveal].is-in { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em .02em .04em 0; margin: -.08em -.02em -.04em 0; }
.wi { display: inline-block; }
.reveal-on [data-split] .wi { transform: translateY(112%) rotate(5deg); transform-origin: left bottom; }
.reveal-on [data-split].is-in .wi { transform: none; transition: transform 1.2s var(--ease); transition-delay: calc(var(--i) * 60ms); }

/* Overdrive (easter egg) */
.overdrive { --blue: #00d0ff; --blue-2: #7fe3ff; }
.overdrive .rotator { animation-duration: 1s; }
.overdrive .hud-spin { animation-duration: 8s; }

/* 17. Responsive --------------------------------------------------------- */
@media (max-width: 1240px) {
  .quick span { display: none; }
  .quick { padding: 0 12px; }
  .card { padding: 15px; border-radius: 18px; }
  .card-logo { width: 44px; height: 44px; font-size: 23px; border-radius: 13px; }
  .status { padding: 4px 7px; font-size: 11px; }
}
@media (max-width: 1020px) {
  :root { --header-h: 74px; }
  .menu-toggle { display: block; }
  .quick kbd { display: none; }
  .section { padding-top: 110px; }
  .lib-hero { grid-template-columns: 1fr; min-height: 0; align-items: start; padding-bottom: 80px; }
  .lib-backdrop { top: 40px; right: -34%; width: 110vw; max-width: 760px; translate: none; opacity: .55; }
  .is-ready .lib-backdrop { opacity: .55; }
  .hero-title { font-size: clamp(58px, 12vw, 104px); }
  .story { grid-template-columns: 1fr; gap: 30px; }
  .story-visual { position: relative; top: 0; order: 2; }
  .story-copy { display: contents; }
  .story-copy > :not(.story-steps-wrap) { order: 1; }
  .story-steps-wrap { order: 3; margin-top: 0; }
  .story-step { min-height: 0; padding: 18px 0; opacity: .45; cursor: pointer; }
  .scene { height: 520px; }
  .faq { grid-template-columns: 1fr; gap: 26px; }
  .faq-head { position: static; }
  .pp-layout { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .pp-side { overflow-x: auto; overflow-y: hidden; padding: 12px var(--gutter); border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .pp-side::-webkit-scrollbar { display: none; }
  .pp-side-title, .pp-item-text small, .pp-item i { display: none; }
  .pp-list { display: flex; gap: 6px; }
  .pp-item { width: auto; flex-shrink: 0; padding: 6px 12px 6px 6px; white-space: nowrap; }
  .pp-item-logo { width: 30px; height: 30px; font-size: 16px; }
  .pp-grid { grid-template-columns: 1fr; }
  .closing-panel { grid-template-columns: 1fr; min-height: 0; }
  .closing-art { order: -1; padding: 40px var(--gutter) 0; }
  .closing-art img { width: min(64%, 280px); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  :root { --header-h: 68px; }
  html { scroll-padding-top: 80px; }
  .header-inner { gap: 10px; }
  .header.is-scrolled .header-inner { margin-top: 8px; height: 60px; padding: 0 8px 0 10px; }
  .brand-word { font-size: 15px; }
  .header .quick, .header .acct-login, .header .acct { display: none; } /* these are in the phone menu; the room goes to Discord */
  .discord-cta { padding: 0 14px 0 12px; }
  .dc-long { display: none; }
  .chip { padding: 6px 12px; font-size: 12.5px; }
  .lib-hero { padding-top: calc(var(--header-h) + 24px); gap: 26px; }
  .hero-title { font-size: clamp(50px, 16.5vw, 88px); margin: 22px 0 18px; }
  .hero-description { font-size: 15px; }
  .search { height: 54px; }
  .segment { display: flex; }
  .segment button { flex: 1; justify-content: center; padding: 0 10px; }
  .lib-backdrop { top: 10px; right: -55%; width: 130vw; }
  .pack-grid { gap: 8px; }
  .card { aspect-ratio: 1 / 1.05; padding: 11px; border-radius: 16px; }
  .card-logo { width: 38px; height: 38px; font-size: 20px; border-radius: 11px; }
  .status { padding: 0; border: 0; background: none; font-size: 0; gap: 0; }
  .card-body { padding-right: 0; }
  .card-name { font-size: clamp(17px, 5.4vw, 24px); }
  .card-meta, .card-go { display: none; }
  .motion-btn { bottom: 16px; }
  .section { padding-top: 90px; }
  h2 { font-size: clamp(48px, 14vw, 72px); }
  .scene { height: 460px; border-radius: 20px; }
  .mtiles { grid-template-columns: repeat(5, 54px); gap: 8px; }
  .mtile { height: 54px; font-size: 0; gap: 0; border-radius: 12px; }
  .mtile b { font-size: 21px; }
  .folder { transform: scale(.85); margin-top: 10px; }
  .ff { font-size: 10px; padding: 6px 9px; gap: 6px; }
  .ff .ico { font-size: 12px; }
  .good-to-know { flex-direction: column; gap: 8px; }
  .questions summary { grid-template-columns: 1fr 38px; gap: 8px; padding: 22px 0; font-size: 16.5px; }
  .q-icon { width: 38px; height: 38px; }
  .answer p { padding: 0 0 24px; font-size: 15px; }
  .closing { padding: 100px var(--gutter) 70px; }
  .closing-panel { border-radius: 20px; }
  .closing h2 { font-size: clamp(48px, 14vw, 80px); }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-wrap: wrap; }
  .footer-legal { order: 3; flex-basis: 100%; text-align: left; }
  .palette { margin-top: 10vh; }
  .pp-bar { gap: 10px; height: 60px; }
  .pp-crumb, .pp-count { display: none; }
  .pp-main { padding: 30px var(--gutter) 56px; }
  .pp-head { gap: 16px; }
  .pp-logo { width: 64px; height: 64px; border-radius: 18px; font-size: 32px; }
  .pp-title { font-size: clamp(34px, 10vw, 48px); }
  .pp-desc { margin-top: 20px; font-size: 15.5px; }
  .pp-actions .btn { flex: 1; justify-content: space-between; }
  .pp-models { padding: 14px; }
  .pp-model { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px; }
  .pp-model-actions { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
  .pp-mbtn { justify-content: center; height: 44px; }
  .palette-foot span:first-child { display: none; }
  .toast { white-space: normal; }
}
@media (max-width: 380px) {
  .brand-word { font-size: 13.5px; }
}
@media (hover: none) {
  .card { transform: none; }
}

/* 18. Keyframes ---------------------------------------------------------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dc-sweep { 0% { transform: translateX(-120%); } 30%, 100% { transform: translateX(120%); } }
@keyframes spin-var { to { --spin: 360deg; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(79, 141, 255, .6); } 70% { box-shadow: 0 0 0 10px rgba(79, 141, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(79, 141, 255, 0); } }
@keyframes pulse-amber { 0% { box-shadow: 0 0 0 0 rgba(245, 177, 74, .6); } 70% { box-shadow: 0 0 0 10px rgba(245, 177, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(245, 177, 74, 0); } }
@keyframes breathe { from { opacity: .7; transform: scale(.96); } to { opacity: 1; transform: scale(1.04); } }
@keyframes shimmer { to { background-position: -220% 0; } }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-1deg); } }
@keyframes drip { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }
@keyframes scan { 0%, 30% { transform: translateX(-100%); } 70%, 100% { transform: translateX(100%); } }
@keyframes blink { 50% { opacity: .35; } }
@keyframes caret { 50% { opacity: 0; } }
@keyframes stripes { to { background-position: 11.3px 0; } }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
@keyframes bump { 40% { transform: scale(1.35); color: var(--ice); } }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes zap { 20% { transform: translate(-4px, 2px) rotate(-1deg); } 40% { transform: translate(4px, -2px) rotate(1deg); } 60% { transform: translate(-2px, 1px); } }
@keyframes flash { from { opacity: 1; } to { opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes menu-item { from { opacity: 0; transform: translateY(-6px); } }
@keyframes tile-in { from { opacity: 0; transform: translateY(18px) scale(.9); } }
@keyframes tile-pick { to { transform: scale(1.07); border-color: var(--c); color: #fff; background: color-mix(in srgb, var(--c) 18%, #0a101e); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 18%, transparent), 0 24px 44px -14px color-mix(in srgb, var(--c) 60%, transparent); } }
@keyframes fc-move { 0% { opacity: 0; transform: translate(170px, 160px); } 25% { opacity: 1; } 100% { opacity: 1; transform: translate(var(--tx, 0px), var(--ty, -56px)); } }
@keyframes fc-click { 50% { scale: .78; } }
@keyframes zip-load { to { --pct: 100; } }
@keyframes folder-open { to { transform: perspective(600px) rotateX(-32deg); } }
@keyframes paper-up { to { transform: translateY(-34px) rotate(-5deg); } }
@keyframes ff1 { to { opacity: 1; transform: translate(-168%, -215%) rotate(-9deg); } }
@keyframes ff2 { to { opacity: 1; transform: translate(-50%, -330%) rotate(2deg); } }
@keyframes ff3 { to { opacity: 1; transform: translate(68%, -215%) rotate(9deg); } }
@keyframes send-glow { 50% { box-shadow: 0 0 0 6px rgba(169, 203, 255, .25), 0 0 24px rgba(127, 227, 255, .6); } }
@keyframes tl-in { to { opacity: 1; transform: none; } }
@keyframes pal-in { from { opacity: 0; transform: translateY(-14px) scale(.97); } }
@keyframes pal-out { to { opacity: 0; transform: translateY(-8px) scale(.98); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(24px) scale(.9); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(12px) scale(.95); } }
@keyframes pl-failsafe { to { visibility: hidden; opacity: 0; pointer-events: none; } }

/* 19. Reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .emblem video { display: none; }
  .static-emblem { display: block; }
  .motion-btn { display: none; }
  .card { transform: none; }
}
