/* ==========================================================================
   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      20. Google ads
   ========================================================================== */

/* 1. Tokens & reset ------------------------------------------------------ */
@property --accent { syntax: '<color>'; inherits: true; initial-value: #8b5cf6; }
@property --pct { syntax: '<integer>'; inherits: true; initial-value: 0; }
@property --spin { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

:root {
  --bg: #04060b;
  --panel: #101010;
  --line: rgba(255, 255, 255, 0.042);
  --line-2: rgba(255, 255, 255, 0.073);
  --line-3: rgba(255, 255, 255, 0.147);
  --text: #f3f3f3;
  --text-2: #cccccc;
  --muted: #9a9a9a;
  --dim: #878787; /* the faintest text colour: still readable (5:1) on the dark background */
  --blue: #8b5cf6;
  --blue-2: #8b5cf6;
  --ice: #c8c8c8;
  --volt: #8b5cf6;
  --amber: #f5b14a;
  --green: #47e6a1;
  --discord: #8b5cf6;
  --discord-2: #8b5cf6;
  --display: 'Big Shoulders Display', 'Oswald', 'Barlow Condensed', /* Oswald only steps in for Cyrillic (Russian) */ '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(255, 255, 255, 0.059), transparent 62%),
    radial-gradient(900px 600px at -12% 38%, rgba(255, 255, 255, 0.025), 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; }
html.i18n-wait body { visibility: hidden; } /* the split second while i18n.js swaps in another language */
.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: #0f0f0f; 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 ------------------------------------------------------ */
.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(255, 255, 255, 0.087), rgba(255, 255, 255, 0.028) 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; filter: drop-shadow(0 0 26px rgba(255, 255, 255, 0.245)); 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(255, 255, 255, 0.049); }
.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: #616161; }
.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: #0f0f0f; background: linear-gradient(180deg, #f9f9f9, #e5e5e5);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(255, 255, 255, .55), 0 14px 34px -12px rgba(255, 255, 255, 0.262);
}
.btn-primary .btn-icon { background: #141414; color: #fff; }
.btn-primary:hover { box-shadow: inset 0 1px 0 #fff, 0 0 0 1px #fff, 0 22px 50px -12px rgba(255, 255, 255, 0.332), 0 0 0 6px rgba(255, 255, 255, 0.049); }
.btn-primary:hover .btn-icon { background: var(--blue); }

.btn-discord { color: #fff; background: linear-gradient(180deg, var(--discord-2), var(--discord)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 0 0 1px rgba(255, 255, 255, 0.193), 0 14px 34px -12px rgba(255, 255, 255, 0.315); }
.btn-discord .btn-icon { background: rgba(255, 255, 255, .16); color: #fff; }
.btn-discord:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 0 0 1px rgba(255, 255, 255, 0.315), 0 22px 50px -12px rgba(255, 255, 255, 0.35), 0 0 0 6px rgba(255, 255, 255, 0.063); }
.btn-discord:hover .btn-icon { background: rgba(255, 255, 255, .26); }

.btn-ghost { color: var(--text); background: rgba(18, 18, 18, .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(255, 255, 255, 0.063) 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(255, 255, 255, 0.042); }
.btn-ghost:hover::after { opacity: 1; }
.btn-ghost:hover .btn-icon { background: var(--blue); color: #fff; }

.btn-light { color: #141414; background: #fff; box-shadow: 0 22px 44px -14px rgba(15, 15, 15, .7); }
.btn-light .btn-icon { background: #141414; color: #fff; }
.btn-light:hover { box-shadow: 0 30px 60px -14px rgba(15, 15, 15, .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(255, 255, 255, 0.158), 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(25, 25, 25, .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(200, 200, 200, .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(200, 200, 200, .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(255, 255, 255, 0.056); 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(11, 11, 11, .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); }
.brand-word { white-space: nowrap; }

.header-inner { grid-template-columns: auto 1fr auto; } /* the brand, the main links (centred), the buttons */
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
/* The main links: Packs, Forum, Leaderboard, Get help (in the phone menu on narrow screens) */
.site-nav {
  display: flex; align-items: center; justify-self: center; gap: 2px; padding: 4px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .02);
}
.site-nav a {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border-radius: 10px;
  color: var(--text-2); font: 600 13.5px var(--font); white-space: nowrap; transition: background .25s, color .25s, box-shadow .25s;
}
.site-nav .ico { font-size: 16px; color: var(--muted); transition: color .25s; }
.site-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.site-nav a:hover .ico, .site-nav a[aria-current=page] .ico { color: var(--blue-2); }
.site-nav a[aria-current=page] { background: rgba(255, 255, 255, 0.063); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.158); }
.mobile-nav a[aria-current=page] { color: var(--blue-2); }
.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(255, 255, 255, 0.028); }
.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: #8b5cf6; transition: color .3s; }
.discord-btn:hover { border-color: rgba(255, 255, 255, 0.21); background: rgba(255, 255, 255, 0.056); 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(255, 255, 255, 0.193), 0 12px 32px -10px rgba(255, 255, 255, 0.332);
  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;
}
/* (v49) Our YouTube channel: its red logo by the Discord button. It's the first to go when the bar has no room (app.js /
   members.js measure it), and it's in the ☰ menu and the footer too. */
.yt-cta {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .02); transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.yt-cta .ico { font-size: 22px; transition: transform .3s var(--ease); }
.yt-cta:hover { border-color: rgba(255, 0, 51, .55); background: rgba(255, 0, 51, .12); }
.yt-cta:hover .ico { transform: scale(1.08); }
.yt-off .yt-cta { display: none; }
/* Language menu (filled in by i18n.js) */
.lang { position: relative; flex-shrink: 0; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 12px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .02); color: var(--text-2); font: 600 12.5px var(--font); letter-spacing: .04em;
  transition: border-color .3s, color .3s, background .3s;
}
.flag { display: inline-block; flex-shrink: 0; width: 21px; height: 15px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
.flag svg { display: block; width: 100%; height: 100%; }
.lang-btn:hover, .lang-btn[aria-expanded=true] { border-color: var(--line-3); color: var(--text); background: rgba(255, 255, 255, 0.028); }
.lang-list {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 5; display: grid; gap: 2px; min-width: 190px; padding: 6px; border-radius: 14px;
  border: 1px solid var(--line-2); background: rgba(12, 12, 12, .96); box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .9);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.lang-list button { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 9px; color: var(--text-2); font: 500 14px var(--font); text-align: left; transition: background .2s, color .2s; }
.lang-list button:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.lang-list button[aria-current]::after, .m-lang button[aria-current]::after, .footer-lang button[aria-current]::after { content: '✓'; margin-left: auto; color: var(--green); font-weight: 700; }
.lang-list button[aria-current] { color: #fff; }
.m-lang, .footer-lang { display: flex; flex-wrap: wrap; gap: 6px; }
.m-lang button, .footer-lang button { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); font: 500 13px var(--font); transition: border-color .2s, color .2s, background .2s; }
.m-lang button:hover, .footer-lang button:hover { border-color: var(--line-3); color: #fff; }
.m-lang button[aria-current], .footer-lang button[aria-current] { border-color: rgba(71, 230, 161, .45); background: rgba(71, 230, 161, .08); color: #fff; }
.footer-lang { order: -1; flex-basis: 100%; justify-content: center; padding-bottom: 14px; }
/* 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(255, 255, 255, 0.175); background: rgba(255, 255, 255, 0.035); color: #fff; font: 600 13.5px var(--font); white-space: nowrap;
  transition: border-color .3s, background .3s;
}
.acct-login .ico { font-size: 17px; color: #b1b1b1; }
.acct-login:hover { border-color: rgba(255, 255, 255, 0.315); background: rgba(255, 255, 255, 0.077); }
.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(12, 12, 12, .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(255, 255, 255, 0.315), 0 16px 40px -10px rgba(255, 255, 255, 0.35), 0 0 0 6px rgba(255, 255, 255, 0.063); }
.menu-toggle { display: none; position: relative; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(18, 18, 18, .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) + 24px) var(--gutter) 32px; gap: 28px; overflow-y: auto; overscroll-behavior: contain; /* six links and the language buttons: scrolls on short phones */
  background: radial-gradient(600px 400px at 100% 0, rgba(255, 255, 255, 0.105), 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: 9px 0; border-bottom: 1px solid var(--line); font: 900 clamp(30px, 8.6vw, 64px)/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(25, 25, 25, .5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: 500 13px var(--font); color: var(--text-2);
}
.hero-title { margin: 0 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, #8b5cf6 15%, #8b5cf6 40%, #8b5cf6 60%, #8b5cf6 85%); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.105));
}
.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(16, 16, 16, .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), #8b5cf6, 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(20, 20, 20, .95); box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.035), 0 24px 50px -24px rgba(255, 255, 255, 0.245); }
.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: 16px; color: var(--text); } /* (16px: iPhones zoom in on smaller) */
.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(16, 16, 16, .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: #0f0f0f; }
.segment button[aria-pressed="true"] span { background: rgba(15, 15, 15, .12); }
.segment-ind { position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 10px; background: linear-gradient(180deg, #f9f9f9, #e2e2e2); box-shadow: 0 8px 22px -8px rgba(255, 255, 255, 0.28), inset 0 1px 0 #fff; transition: transform .55s var(--ease), width .55s var(--ease); }
.segment.no-anim .segment-ind { transition: none; }
/* One soft glow behind the packs: the only decoration on the first screen */
.lib-glow {
  position: absolute; z-index: 0; top: 50%; right: 2%; width: min(68vw, 880px); aspect-ratio: 1; translate: 0 -50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025) 55%, transparent);
}
.lib-cta { display: flex; flex-wrap: wrap; gap: 12px; max-width: 520px; }
.lib-cta .btn { flex: 1 1 auto; justify-content: space-between; } /* side by side, or stacked at full width when the words are long */
.lib-note { display: flex; align-items: center; gap: 9px; margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.lib-note .ico { flex-shrink: 0; font-size: 15px; color: var(--ice); }
.lib-note.is-in { margin-top: 0; font-size: 15px; color: var(--text-2); }
.lib-note.is-in .ico { color: var(--green); }
.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-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; } /* search and filter sit right above the packs they narrow down */
.lib-tools .search { flex: 1 1 260px; height: 50px; border-radius: 15px; }
.lib-tools .segment { margin-top: 0; }
.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; padding: 8px 0; margin: -8px 0; 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(188, 188, 188, .14);
  background: linear-gradient(160deg, rgba(26, 26, 26, .74), rgba(11, 11, 11, .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(188, 188, 188, .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-holo { /* the model's logo as a hologram: a faint tint in the pack's colour, lit up in rainbow when you point at the card */
  position: absolute; z-index: -1; right: -13%; bottom: -15%; width: 68%; aspect-ratio: 1; pointer-events: none; perspective: 700px; opacity: .2;
  filter: drop-shadow(0 0 14px color-mix(in srgb, var(--accent) 45%, transparent));
  transition: opacity .6s, transform .8s var(--ease);
}
.card-holo i {
  position: absolute; inset: 0; overflow: hidden;
  -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 45%, #fff));
  transform: rotateY(-24deg) rotateX(12deg);
}
.card-holo i::before { /* rainbow sheen */
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .6s;
  background: linear-gradient(125deg, var(--accent), #8b5cf6 22%, #b3b3b3 42%, #ff9fd6 58%, var(--accent) 76%, #8b5cf6); background-size: 300% 300%;
}
.card-holo i::after { /* scanlines, and a glint that passes on hover */
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(8, 8, 8, .5) 0 1px, transparent 1px 4px), linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, .8) 50%, transparent 60%);
  background-size: 100% 100%, 260% 100%; background-position: 0 0, 160% 0; background-repeat: no-repeat;
}
.card:hover .card-holo, .card:focus-within .card-holo { opacity: .75; transform: translate(-6px, -8px) scale(1.04); }
.card:hover .card-holo i::before, .card:focus-within .card-holo i::before { opacity: 1; animation: holo 6s linear infinite; }
.card:hover .card-holo i::after, .card:focus-within .card-holo i::after { animation: holo-glint 2.4s var(--ease-io) infinite; }
html.motion-off .card-holo i::before, html.motion-off .card-holo i::after { animation-play-state: paused; }
.card-name { text-shadow: 0 2px 14px rgba(4, 6, 11, .7); }
.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(10, 10, 10, .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: #0f0f0f; }
.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(16, 16, 16, .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(255, 255, 255, 0.049), 0 0 28px rgba(255, 255, 255, 0.245); 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(255, 255, 255, 0.091), transparent 60%), linear-gradient(170deg, #171717, #0c0c0c 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(255, 255, 255, 0.017) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.017) 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; grid-template-columns: minmax(0, 1fr); 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; } /* (minmax: what's inside can't widen it past a small phone) */
.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(15, 15, 15, .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(13, 13, 13, .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, #8b5cf6, #8b5cf6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 14px 30px -8px rgba(255, 255, 255, 0.28); 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(#e2e2e2 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(255, 255, 255, 0.158); background: rgba(255, 255, 255, 0.049); 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, #8b5cf6, #3b3b3b); }
.folder-back::before { content: ''; position: absolute; left: 0; top: -15px; width: 44%; height: 24px; border-radius: 11px 20px 0 0; background: #8b5cf6; }
.folder-paper { position: absolute; left: 11%; right: 11%; top: 2px; height: 126px; border-radius: 9px; background: linear-gradient(#f1f1f1, #d3d3d3); box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.folder-paper.p2 { left: 17%; right: 5%; top: 8px; background: linear-gradient(#dbdbdb, #bdbdbd); 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(201, 201, 201, .6); background: linear-gradient(150deg, #8b5cf6, #8b5cf6 58%, #8b5cf6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 22px 44px -12px rgba(255, 255, 255, 0.28); transform-origin: bottom; }
.folder-front span { display: flex; align-items: center; justify-content: space-between; font: 900 46px/.8 var(--display); color: #eeeeee; }
.folder-front .ico { font-size: 26px; color: #e3e3e3; }
.folder-front small { font: 500 9px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: #e7e7e7; }
.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(15, 15, 15, .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(10, 10, 10, .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(255, 255, 255, 0.158); background: rgba(255, 255, 255, 0.063); 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: #efefef; color: #0f0f0f; 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(255, 255, 255, 0.035); 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(255, 255, 255, 0.193); }
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, #0f0f0f, #0b0b0b); }
.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(255, 255, 255, 0.105), transparent 65%); filter: blur(40px); }
.closing-art img { position: relative; width: 100%; max-width: 360px; height: auto; aspect-ratio: 1; filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.158)); }

/* 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-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.footer-discord, .footer-yt { height: 42px; }
.footer-yt:hover { border-color: rgba(255, 0, 51, .55); background: rgba(255, 0, 51, .12); color: #fff; }
.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(255, 255, 255, 0.017); user-select: none; }
.footer-word span { display: block; }
.footer-bottom { display: flex; flex-wrap: wrap; 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; }
.footer-link { color: var(--text-2); transition: color .2s; }
.footer-bottom > a:not(.to-top) { padding: 6px 0; margin: -6px 0; } /* easier to tap on a phone, same look */
.footer-link:hover { color: #fff; }
.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: #080808; 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(8, 8, 8, .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%, #141414), #101010);
  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: #8b5cf6; }
.pp-discord:hover { border-color: rgba(255, 255, 255, 0.21); background: rgba(255, 255, 255, 0.056); }
.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(15, 15, 15, .8)), rgba(15, 15, 15, .72)); }
/* How to use videos (v39): a model's own, opened under it by its How to use button; a button per video when it has more */
.pp-model { flex-wrap: wrap; }
.pp-mbtn.pp-howto-btn { border-color: var(--accent); background: var(--accent); color: #0f0f0f; box-shadow: 0 8px 24px -10px color-mix(in srgb, var(--accent) 90%, transparent); }
.pp-mbtn.pp-howto-btn:hover { border-color: color-mix(in srgb, var(--accent) 80%, #fff); background: color-mix(in srgb, var(--accent) 80%, #fff); }
.pp-howto-btn .ico { color: inherit; }
.pp-howto-btn[aria-expanded="false"] { animation: pp-howto-glow 2.4s ease-in-out infinite; } /* (until it's opened: then it's done its job) */
.pp-howto-btn[aria-expanded="true"] { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
@keyframes pp-howto-glow { 0%, 100% { box-shadow: 0 8px 24px -10px color-mix(in srgb, var(--accent) 90%, transparent), 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 50% { box-shadow: 0 8px 24px -10px color-mix(in srgb, var(--accent) 90%, transparent), 0 0 0 6px color-mix(in srgb, var(--accent) 0%, transparent); } }
@media (prefers-reduced-motion: reduce) { .pp-howto-btn[aria-expanded="false"] { animation: none; } }
.pp-howto { flex-basis: 100%; min-width: 0; padding-top: 4px; }
.pp-vtabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pp-vtabs .pp-mbtn[aria-pressed="true"] { border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: color-mix(in srgb, var(--accent) 16%, transparent); color: #fff; }
.pp-vbox { overflow: hidden; border-radius: 12px; border: 1px solid var(--line); background: #000; aspect-ratio: 16 / 9; }
.pp-vbox video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.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; grid-template-columns: minmax(0, 1fr); gap: 8px; } /* (minmax: a long button label can't widen it) */
.pp-model { display: flex; align-items: center; gap: 16px; padding: 14px 14px 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(7, 7, 7, .55); transition: border-color .25s, background .25s; }
.pp-model:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); background: rgba(12, 12, 12, .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: #f5f5f5; background: #f5f5f5; color: #0f0f0f; }
.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(255, 255, 255, 0.35); }
.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); }
/* Locked models: blurred rows, so you can see how many there are but not what they are */
.pp-model.is-locked { pointer-events: none; }
.pp-model.is-locked .pp-model-info { display: grid; gap: 8px; }
.pp-blur { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05)); filter: blur(1.5px); }
.pp-blur.sm { height: 9px; background: rgba(255, 255, 255, .07); }
.pp-model-more { padding: 2px 16px; font-size: 13px; color: var(--muted); }
/* Members-only panel above the model list: the three steps to get in, the next one lit up */
.pp-gate {
  display: grid; gap: 16px; margin-bottom: 12px; padding: 20px; border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.158); background: linear-gradient(120deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.017) 70%);
}
.pp-lock-head { display: flex; align-items: flex-start; gap: 14px; }
.pp-lock-ico { display: grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; border-radius: 13px; border: 1px solid rgba(245, 177, 74, .4); background: rgba(245, 177, 74, .12); font-size: 20px; color: var(--amber); box-shadow: 0 0 28px -8px rgba(245, 177, 74, .6); }
.pp-lock-head b { display: block; font: 600 18px/1.3 var(--font); letter-spacing: -.015em; color: #fff; }
.pp-lock-head p { margin-top: 4px; max-width: 62ch; font-size: 14px; line-height: 1.6; color: var(--text-2); }
.pp-lsteps { display: grid; gap: 8px; }
.pp-lstep { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 13px; border: 1px solid var(--line); background: rgba(7, 7, 7, .55); transition: border-color .25s, background .25s; }
.pp-lstep-n { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); font: 600 13px var(--font); color: var(--text-2); }
.pp-lstep-n .ico { font-size: 15px; }
.pp-lstep-text { display: grid; flex: 1; gap: 2px; min-width: 0; }
.pp-lstep-text b { font: 600 14.5px/1.35 var(--font); color: var(--text); overflow-wrap: anywhere; }
.pp-lstep-text small { font-size: 13px; line-height: 1.45; color: var(--muted); }
.pp-lstep.is-now { border-color: rgba(255, 255, 255, 0.227); background: rgba(255, 255, 255, 0.042); }
.pp-lstep.is-now .pp-lstep-n { border-color: var(--discord); background: var(--discord); color: #fff; box-shadow: 0 0 18px -4px rgba(255, 255, 255, 0.315); }
.pp-lstep.is-done .pp-lstep-n { border-color: rgba(71, 230, 161, .5); background: rgba(71, 230, 161, .14); color: var(--green); }
.pp-lstep.is-done .pp-lstep-text b { color: var(--text-2); }
.pp-lock-foot { display: flex; flex-wrap: wrap; gap: 8px; }
/* Library tiles: a small lock next to the model count for visitors who aren't members */
.status-lock { display: inline-flex; margin-left: 2px; color: var(--amber); }
.status-lock .ico { font-size: 11px; }
/* 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(15, 15, 15, .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: #070707; 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(255, 255, 255, 0.042); 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(14, 14, 14, .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(255, 255, 255, 0.193); }
.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(255, 255, 255, 0.049); color: #fff; }
.pal-item[aria-selected=true] .pal-ico { border-color: rgba(255, 255, 255, 0.158); background: rgba(255, 255, 255, 0.052); }
.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(18, 18, 18, .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(255, 255, 255, 0.07); 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: #8b5cf6; --blue-2: #8b5cf6; }
.overdrive .rotator { animation-duration: 1s; }

/* 17. Responsive --------------------------------------------------------- */
/* Making room for the main links: the links lose their icons, then they move into the menu. (v54: Quick find is
   always just its icon, with its name and shortcut shown on hover: theme.css.) */
@media (max-width: 1240px) {
  .site-nav .ico { display: none; }
  .site-nav a { padding: 0 11px; }
}
/* No room in this language or state (app.js / members.js measure it): Quick find to its icon, then Join, then the links go. */
/* 🟢 How many are online — the Discord and the website together — under the name in the top bar (online.js) */
.brand-text { display: grid; gap: 3px; line-height: 1.1; }
.brand-online { display: inline-flex; align-items: center; gap: 6px; font: 500 11.5px var(--font); letter-spacing: 0; color: var(--muted); white-space: nowrap; }
.brand-online[hidden] { display: none; }
.brand-online b { font: 600 11.5px var(--mono); color: var(--text-2); }
.online-dot { flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: online-pulse 2s ease-out infinite; }
@keyframes online-pulse { 0% { box-shadow: 0 0 0 0 rgba(71, 230, 161, .6); } 70%, 100% { box-shadow: 0 0 0 6px rgba(71, 230, 161, 0); } }
@media (prefers-reduced-motion: reduce) { .online-dot { animation: none; } }
.quick-tight .brand-online > span:last-child, .cta-tight .discord-cta .dc-long { display: none; } /* (v54: "11K online" to "11K") */
.cta-icon .discord-cta { width: 44px; padding: 0; justify-content: center; } /* (the last step: just the Discord logo) */
.cta-icon .discord-cta > span { display: none; }
.nav-tight .site-nav { display: none; }
.nav-tight .header-inner { grid-template-columns: 1fr auto; }
.nav-tight .menu-toggle { display: block; }
@media (max-width: 1140px) { /* no room for the main links: they're in the menu */
  .site-nav { display: none; }
  .header-inner { grid-template-columns: 1fr auto; }
  .menu-toggle { display: block; }
}
@media (max-width: 1240px) {
  .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; }
  .section { padding-top: 110px; }
  .lib-hero { grid-template-columns: 1fr; min-height: 0; align-items: start; padding-bottom: 80px; }
  .lib-glow { top: auto; bottom: 0; right: 50%; translate: 50% 20%; width: 130vw; }
  .hero-title { font-size: clamp(58px, 12vw, 104px); }
  .story { grid-template-columns: minmax(0, 1fr); gap: 30px; } /* (minmax: the scene's bar mustn't widen the page on 320px phones) */
  .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; white-space: nowrap; }
  .header .quick, .header .acct-login, .header .acct, .header .lang { 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; flex: 1 1 100%; }
  .segment button { flex: 1; justify-content: center; padding: 0 10px; }
  .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; }
  .section { padding-top: 90px; }
  h2 { font-size: clamp(48px, 14vw, 72px); }
  .scene { height: 460px; border-radius: 20px; }
  .mtiles { grid-template-columns: repeat(5, minmax(0, 54px)); gap: 8px; max-width: calc(100% - 20px); } /* (smaller on 320px phones, not cut off) */
  .mtile { height: auto; aspect-ratio: 1; 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: minmax(0, 1fr); }
  .pp-mbtn { justify-content: center; height: 44px; }
  .pp-model-actions .pp-mbtn { height: auto; min-height: 44px; padding: 8px 12px; white-space: normal; text-align: center; line-height: 1.25; } /* a long label (set in the admin) wraps instead of pushing the buttons off a small phone */
  .pp-howto { flex-basis: auto; padding-top: 0; } /* (the row is a column here) */
  .pp-gate { padding: 16px; }
  .pp-lstep { flex-wrap: wrap; }
  .pp-lstep > .pp-mbtn { flex-basis: 100%; }
  .pp-lock-foot .pp-mbtn { flex: 1; }
  .palette-foot span:first-child { display: none; }
  .toast { white-space: normal; }
}
@media (max-width: 420px) { /* people already in the server: just the Discord logo, so the name stays on one line */
  .discord-cta.is-member { width: 44px; padding: 0; justify-content: center; }
  .discord-cta.is-member > span { display: none; }
}
@media (max-width: 380px) {
  .brand-word { font-size: 13.5px; }
  .fly-files { scale: .85; } /* the three files stay inside the picture on 320px phones */
  .stage-3 { padding-left: 14px; padding-right: 14px; }
  .chatbar { gap: 8px; width: 100%; }
}
@media (max-width: 340px) { /* the smallest phones (320px wide): a little less room between things, so the bar still fits */
  .header-inner, .brand { gap: 8px; }
  .brand-word { font-size: 12.5px; }
  .discord-cta { padding: 0 10px 0 9px; }
}
/* Touch screens: iPhones and iPads zoom the whole page in when a text box under 16px is tapped, and it stays zoomed.
   Every text box on every page is 16px there (the forum, chat, tickets, the mod hub and the admin had 13–15px). */
@media (pointer: coarse) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]), textarea, select { font-size: 16px !important; }
}
@media (hover: none) {
  .card { transform: none; }
  .copy-btn { min-height: 36px; padding: 8px 12px; } /* easier to tap */
}

/* 18. Keyframes ---------------------------------------------------------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes holo { to { background-position: 300% 0; } }
@keyframes holo-glint { 0%, 30% { background-position: 0 0, 160% 0; } 100% { background-position: 0 0, -60% 0; } }
@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(255, 255, 255, 0.21); } 70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.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%, #101010); 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(200, 200, 200, .25), 0 0 24px rgba(255, 255, 255, 0.21); } }
@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; }
  .card { transform: none; }
}

/* 20. Google ads (edge.js) ----------------------------------------------- */
/* Each spot stays out of sight until Google has put an ad in it (.is-on), so a spot Google leaves empty, or an ad
   blocker, leaves no gap. Side ads: computers with room beside the page. Strip: top of the page on phones and tablets.
   Dock: bottom of the screen on phones, with a ✕ tab above it. */
.oj-tag { font: 500 10px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.oj-rail {
  position: fixed; top: 104px; z-index: 80; display: grid; justify-items: center; gap: 7px; padding: 8px;
  border: 1px solid var(--line); border-radius: 16px; background: rgba(12, 12, 12, .72);
  opacity: 0; translate: 0 10px; pointer-events: none; transition: opacity .7s var(--ease), translate .7s var(--ease);
}
.oj-rail.is-on { opacity: 1; translate: none; pointer-events: auto; }
.oj-rail.is-off { display: none; }
.oj-strip { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease), margin .45s var(--ease); }
.oj-strip.is-on { grid-template-rows: 1fr; margin-bottom: 22px; }
.oj-strip.is-quiet { transition: none; }
.oj-strip-in { min-height: 0; overflow: hidden; display: grid; justify-items: center; gap: 6px; }
.lib-intro > .oj-strip.is-on { margin-bottom: 4px; } /* (the headline below has room above it already) */
.oj-dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: flex; justify-content: center;
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line-2); background: rgba(8, 8, 8, .96);
  transform: translateY(calc(100% + 40px)); transition: transform .5s var(--ease);
}
.oj-dock.is-on { transform: none; }
.oj-dock-x {
  position: absolute; right: 10px; bottom: 100%; display: grid; place-items: center; width: 46px; height: 30px;
  border: 1px solid var(--line-2); border-bottom: 0; border-radius: 12px 12px 0 0; background: rgb(5, 8, 15);
  color: var(--text-2); font-size: 17px;
}
.oj-dock-x:hover { color: #fff; }
html.has-dock body { padding-bottom: var(--dock-h, 0px); }
html.has-dock .toasts { bottom: calc(26px + var(--dock-h, 0px)); }

/* 💚 (v56) "Enjoying the free jailbreaks?" — the donation card in a corner of the pack page (app.js: thanks). Inside the
   pack page (a modal), placed against it, never covering the page's own buttons on a computer. */
.ty-card { position: absolute; right: 22px; bottom: 22px; z-index: 30; width: min(340px, calc(100% - 32px)); padding: 18px 18px 16px; border-radius: 18px; border: 1px solid var(--line-3); background: rgba(16, 16, 16, .97); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 28px 70px -18px rgba(0, 0, 0, .9); color: var(--text); }
.ty-card[hidden] { display: none; }
.ty-title { margin: 0 30px 6px 0; font: 700 15.5px/1.3 var(--font); }
.ty-text { margin: 0 0 14px; font: 400 13.5px/1.55 var(--font); color: var(--text-2); }
.ty-row { display: flex; gap: 8px; }
.ty-go { flex: 1; display: inline-flex; align-items: center; justify-content: center; height: 40px; border-radius: 11px; background: var(--green); color: #04130c; font: 700 14px var(--font); text-decoration: none; transition: filter .2s, transform .2s; }
.ty-go:hover { filter: brightness(1.08); }
.ty-go:active { transform: scale(.98); }
.ty-later { height: 40px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--text-2); font: 600 13.5px var(--font); cursor: pointer; transition: color .2s, border-color .2s; }
.ty-later:hover { color: var(--text); border-color: var(--line-3); }
.ty-x { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 16px; cursor: pointer; transition: color .2s, background .2s; }
.ty-x:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.ty-go:focus-visible, .ty-later:focus-visible, .ty-x:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (max-width: 767px) {
  .ty-card { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .ty-go, .ty-later { height: 44px; }
}
