/* bracket.cat: entrance shot, kaiju hero, ticker, lore prints, PFP editor */
:root {
  --bg: #0d1f17;
  --panel: #13291f;
  --panel-2: #0b1a13;
  --accent: #d7f25c;          /* tennis ball */
  --accent-hover: #e6fa8f;
  --accent-ink: #1c330f;
  --orange: #f0a94e;          /* the kitten */
  --muted: #a9b8ad;
  --line: #ffffff20;
  --white: #f6f8f3;
  --cream: #f4efe5;           /* the coin picture's background */
  --ink: #1e2d22;
  --racket: #2f6b3a;          /* the racket */
  --soft-ink: #4f6153;
  color-scheme: dark;
  color: var(--white);
  background: var(--bg);
  font-family: 'DM Sans', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--white); font-family: 'DM Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a, button { touch-action: manipulation; }
button { cursor: pointer; font: inherit; color: inherit; background: none; border: 0; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
h1, h2, h3 { font-family: Manrope, 'DM Sans', sans-serif; }
em { color: var(--accent); font-style: normal; }

/* ---------- entrance: one cinematic shot of the racket, cut into its parts (entry.js) ---------- */
.entry { position: fixed; inset: 0; z-index: 100; overflow: hidden; background: #020604; color: #eef3ee; transition: opacity .45s .7s; -webkit-user-select: none; user-select: none; }
.entry.on-part { cursor: pointer; }
.mono { font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }

/* the camera: starts close and dark, the lights flicker on, it pulls back; at the end it flies through the strings */
.film { position: absolute; inset: 0; z-index: 1; opacity: 0; transform: scale(1.85); will-change: transform, opacity; }
.entry.shot .film { opacity: 1; transform: none; transition: transform 3.3s cubic-bezier(.16, .84, .22, 1); animation: cam-lights 1.7s linear both; }
.entry.skip .film { animation: none; transition: none; }
@keyframes cam-lights { 0% { opacity: 0; } 8% { opacity: .9; } 12% { opacity: .1; } 19% { opacity: 1; } 24% { opacity: .4; } 31%, 100% { opacity: 1; } }
.entry.flying .film { transform: scale(18); transition: transform 1.15s cubic-bezier(.7, 0, .84, 0); }
.drift { position: absolute; inset: 0; }
.entry.clicked .drift { animation: cam-thump .6s cubic-bezier(.3, 1.6, .5, 1), cam-drift 18s ease-in-out .6s infinite alternate; }
@keyframes cam-thump { from { transform: scale(1.016); } to { transform: none; } }
@keyframes cam-drift { from { transform: none; } to { transform: scale(1.035) translate3d(0, -.5%, 0); } }

.set { position: absolute; perspective: 1700px; }
.set > * { position: absolute; }
.set-base { inset: 0; width: 100%; height: 100%; max-width: none; transform: translate3d(calc(var(--mx, 0) * -12px), calc(var(--my, 0) * -7px), 0) scale(1.03); }
/* the picture's edges melt into the page, so a screen wider or taller than the shot never shows a seam */
.set-base, .haze-back { -webkit-mask-image: linear-gradient(#000 84%, transparent 99%), linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(#000 84%, transparent 99%), linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-composite: intersect; }
.haze { inset: -4% -8%; pointer-events: none; overflow: hidden; mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 26% 60% at 50% 18%, #000 12%, transparent 74%); mask-image: radial-gradient(ellipse 26% 60% at 50% 18%, #000 12%, transparent 74%); }
.haze::before, .haze::after { content: ''; position: absolute; inset: -25%; background: url(/img/entry/haze.webp) 0 0 / calc(var(--u, 10px) * 38) auto repeat; opacity: .2; animation: haze-a 36s ease-in-out infinite alternate; }
.haze::after { background-size: calc(var(--u, 10px) * 23) auto; opacity: .13; animation: haze-b 27s ease-in-out infinite alternate; }
.haze-front { opacity: .5; }
@keyframes haze-a { from { transform: translate3d(-5%, 1%, 0); } to { transform: translate3d(5%, -3%, 0) scale(1.08); } }
@keyframes haze-b { from { transform: translate3d(6%, -2%, 0) scale(1.06); } to { transform: translate3d(-4%, 2%, 0); } }

/* the giant word behind the racket, lit from above, seen through the strings */
.set-word { transform: translate(-50%, -52%) translate3d(calc(var(--mx, 0) * -24px), calc(var(--my, 0) * -10px), 0); font-family: Anton, Impact, sans-serif; font-weight: 400; line-height: 1; white-space: nowrap; pointer-events: none; }
.set-word span {
  display: block; padding: .04em 0; color: transparent;
  background: linear-gradient(180deg, #f1f6ee 0%, #b9cbbd 46%, #5f7569 100%); -webkit-background-clip: text; background-clip: text;
  -webkit-mask-image: radial-gradient(ellipse 46% 130% at 50% -12%, #000 22%, #0000004d 78%); mask-image: radial-gradient(ellipse 46% 130% at 50% -12%, #000 22%, #0000004d 78%);
  opacity: 0; transform: translateY(18%); letter-spacing: .08em;
  transition: opacity 1.8s 1.05s, transform 2.2s 1.05s cubic-bezier(.16, 1, .3, 1), letter-spacing 2.6s 1.05s cubic-bezier(.16, 1, .3, 1);
}
.entry.shot .set-word span { opacity: .2; transform: none; letter-spacing: .005em; }

/* the parts */
.rig { inset: 0; transform-origin: 50% 62%; transform: translate3d(calc(var(--mx, 0) * -34px), calc(var(--my, 0) * -12px), 0) rotateY(calc(var(--mx, 0) * 5deg)) rotateX(calc(var(--my, 0) * -2.5deg)); }
.part { position: absolute; transition: transform .8s cubic-bezier(.2, 1.22, .36, 1); will-change: transform; }
.part.no-ease, .part.no-ease img { transition: none !important; }
.part img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; transition: filter .35s, transform .8s cubic-bezier(.2, 1.1, .36, 1); }
.part .refl { transform: scaleY(-1); opacity: .2; pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, #000, transparent 50%); mask-image: linear-gradient(to top, #000, transparent 50%); }
/* one part out: the rest of the shot steps back into the dark, the part steps forward */
.scrim { position: absolute; inset: -12%; z-index: 1; background: #020604; opacity: 0; pointer-events: none; transition: opacity .45s; }
.entry.has-active .scrim { opacity: .5; }
.part.is-out { z-index: 2; }
.part.is-out img:not(.refl) { filter: brightness(1.1) drop-shadow(0 0 calc(var(--u, 10px) * .8) #d7f25c38); }
.dust { inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* WebGL parts (entry-gl.js): the canvas draws them, the pictures stay as the fallback */
.parts-gl { pointer-events: none; }
.entry.gl .rig > .part { display: none; }
.entry.gl .scrim { z-index: auto; }
.entry:not(.gl) .parts-gl { display: none; }

.grain { position: absolute; inset: -50%; z-index: 3; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: film-grain .9s steps(5) infinite; }
@keyframes film-grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } }

.bars i { position: absolute; z-index: 6; left: 0; right: 0; height: 11vh; background: #000; transition: height 1.3s cubic-bezier(.7, 0, .2, 1); }
.bars i:first-child { top: 0; }
.bars i:last-child { bottom: 0; }
.entry.ui .bars i { height: 0; }

/* the loader */
.loader { position: absolute; inset: 0; z-index: 9; display: grid; place-content: center; justify-items: center; gap: 12px; background: #020604; transition: opacity .7s, visibility .7s; }
.entry.shot .loader { opacity: 0; visibility: hidden; }
.loader-mark { width: 62px; height: 62px; margin-bottom: 6px; }
.loader-text { font: 700 17px/1 Manrope, sans-serif; letter-spacing: -.02em; }
.loader-pct { color: #7d9184; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10.5px; letter-spacing: .2em; }

/* the words around the shot */
.entry-top, .entry-head, .entry-foot { position: absolute; z-index: 7; opacity: 0; transform: translateY(12px); transition: opacity 1s, transform 1.1s cubic-bezier(.22, 1, .36, 1); }
.entry.ui .entry-top, .entry.ui .entry-head, .entry.ui .entry-foot { opacity: 1; transform: none; }
.entry.ui .entry-head { transition-delay: .15s; }
.entry.ui .entry-foot { transition-delay: .3s; }
.entry.flying .entry-top, .entry.flying .entry-head, .entry.flying .entry-foot, .entry.flying .part-label, .entry.flying .part-lines { opacity: 0; transition: opacity .3s; }
.entry-top { top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px clamp(16px, 3vw, 40px); transform: translateY(-12px); }
.entry-brand { display: flex; align-items: center; gap: 10px; font: 700 13px/1 Manrope, sans-serif; letter-spacing: .01em; }
.entry-brand img { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 1px #ffffff26; }
.entry-head { left: clamp(16px, 3vw, 44px); bottom: clamp(22px, 5.5vh, 56px); max-width: min(31vw, 470px); transition-property: opacity, transform; }
.entry-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; color: #9fb3a6; }
.entry-kicker i { width: 30px; height: 1px; background: currentColor; opacity: .55; }
.entry-kicker span:first-child { color: var(--accent); }
.entry-title { font: 800 clamp(26px, 2.6vw, 42px)/1.02 Manrope, sans-serif; letter-spacing: -.05em; text-wrap: balance; }
.entry-title em { color: var(--accent); }
.racket-hint { margin-top: 18px; color: #7d9184; }
.hint-tap { display: none; }
@media (hover: none), (pointer: coarse) { .hint-hover { display: none; } .hint-tap { display: inline; } }
.entry-foot { right: clamp(16px, 3vw, 44px); bottom: clamp(22px, 5.5vh, 56px); display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.entry-count { color: #7d9184; }
.entry-count b { color: #eef3ee; font-weight: 700; }
.enter {
  display: inline-flex; align-items: center; justify-content: center; gap: 22px;
  padding: 18px 28px; border-radius: 100px; background: var(--accent); color: var(--accent-ink);
  font: 700 clamp(15px, 1.15vw, 17px)/1 Manrope, sans-serif; letter-spacing: -.02em; white-space: nowrap;
  box-shadow: 0 14px 44px #000c, 0 0 0 1px #f1fcc466, 0 0 46px #d7f25c2e;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .6s, visibility .6s, background .2s, transform .6s cubic-bezier(.22, 1, .36, 1);
}
.enter.is-ready { opacity: 1; visibility: visible; transform: none; }
.enter:hover { background: var(--accent-hover); transform: translateY(-3px); }
.enter .arrow { transition: transform .2s; }
.enter:hover .arrow { transform: translate(2px, -2px); }
.entry.on-handle .enter { background: var(--accent-hover); box-shadow: 0 14px 44px #000c, 0 0 0 1px #f1fcc4, 0 0 60px #d7f25c66; }
.entry.is-entering { opacity: 0; pointer-events: none; }
.site.is-revealing { animation: reveal .9s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes reveal { from { opacity: .3; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* exploded-view cards: a dot on the part, a thin line out, a numbered card */
.part-lines { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; overflow: visible; pointer-events: none; opacity: 0; transition: opacity .2s; }
.part-lines.on { opacity: 1; }
.part-lines path { fill: none; stroke: var(--accent); stroke-width: 1.2; opacity: .85; }
.part-lines circle { fill: #020604; stroke: var(--accent); stroke-width: 1.6; }
.part-label { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; opacity: 0; transform: translateY(-50%); transition: opacity .2s; }
.part-label.left { transform: translate(-100%, -50%); }
.part-label.on { opacity: 1; }
.part-label > div {
  display: flex; flex-direction: column; gap: 3px; width: max-content; max-width: 290px; padding: 14px 17px 15px;
  border: 1px solid #ffffff1c; border-radius: 14px; background: linear-gradient(#0d1a14f0, #060d0af0);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 18px 44px #000c, inset 0 1px #ffffff12;
  transform: translateX(-6px); transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}
.part-label.left > div { text-align: right; transform: translateX(6px); }
.part-label.on > div { transform: none; }
.part-no { color: #8fa596; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.part-label strong { margin-top: 5px; color: var(--accent); font: 800 20px/1.15 Manrope, sans-serif; letter-spacing: -.03em; }
.part-text { color: #dbe5dd; font-size: 14px; line-height: 1.45; }
.part-label small { margin-top: 5px; color: var(--orange); font-size: 12.5px; font-weight: 700; }
.part-label.docked { top: auto; left: 16px; right: 16px; bottom: 96px; transform: none; }
.part-label.docked > div, .part-label.docked.left > div { width: auto; max-width: none; text-align: left; transform: none; }
.entry.docked-on.has-active .entry-head { opacity: 0; }

@media (max-width: 700px) {
  .entry-top { padding: 14px 16px; }
  .entry-head { left: 16px; right: 16px; bottom: 92px; max-width: none; }
  .entry-kicker { margin-bottom: 12px; }
  .entry-title { font-size: clamp(24px, 7vw, 30px); }
  .racket-hint { margin-top: 12px; }
  .entry-foot { left: 16px; right: 16px; bottom: 20px; flex-direction: row; justify-content: space-between; align-items: center; }
  .enter { padding: 16px 22px; gap: 16px; }
  .bars i { height: 8vh; }
}
@media (prefers-reduced-motion: reduce) {
  .film, .entry.shot .film, .entry.flying .film { transform: none; opacity: 1; animation: none; transition: none; }
  .haze::before, .haze::after, .grain, .entry.clicked .drift { animation: none; }
  .set-word span { transition: none; }
  .bars { display: none; }
  .loader { display: none; }
}

/* ---------- nav ---------- */
.site { position: relative; }
.nav-shell { position: absolute; inset: 16px 0 auto; z-index: 10; padding: 0 4%; }
.nav {
  max-width: 1040px; margin: auto; padding: 10px 20px;
  display: flex; align-items: center; justify-content: center; gap: 32px;
  border: 1px solid #ffffff50; border-radius: 16px;
  background: #0b34221a; -webkit-backdrop-filter: blur(28px); backdrop-filter: blur(28px);
  color: #fff; text-shadow: 0 1px 10px #082718a0;
}
.pill-logo { width: 44px; height: 44px; object-fit: cover; border-radius: 50%; }
.brand { display: flex; align-items: center; }
.nav-sections, .nav-social { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.nav-x { font-size: 22px; }
.nav a:hover { opacity: .7; }
.nav-dex { background: var(--accent); color: var(--accent-ink); border-radius: 8px; padding: 11px 16px; text-shadow: none; }
.lang {
  display: inline-flex; gap: 2px; padding: 3px; border-radius: 8px; border: 1px solid #ffffff55;
  background: #0b342233; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  font-size: 12px; font-weight: 700; letter-spacing: .04em; color: #fff; text-shadow: none;
}
.lang span { padding: 6px 8px; border-radius: 6px; opacity: .75; }
.lang span.on { background: #fff; color: var(--ink); opacity: 1; }

/* ---------- hero: the giant cat rising behind the towers ---------- */
.hero { --mx: 0; --my: 0; --s: 0; position: relative; height: 100svh; min-height: 640px; max-height: 1150px; overflow: hidden; background: var(--bg); }
.hero-scene { position: absolute; inset: 0; overflow: hidden; background: #03344a; }
.kaiju-scene { position: absolute; top: 0; left: 0; width: 100%; aspect-ratio: 2752 / 1536; }
.kaiju-scene > img, .kaiju-cat-wrap { position: absolute; display: block; max-width: none; user-select: none; -webkit-user-drag: none; }
.kaiju-sky { inset: 0; width: 100%; height: 100%; transform: translateY(calc(var(--s) * 12%)) scale(1.03); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(#0000, #000 7%); mask-image: linear-gradient(#0000, #000 7%); }
.kaiju-city { inset: 0; width: 100%; height: 100%; }
.kaiju-cat-wrap { left: 26.6%; top: -5.3%; width: 52.1%; transform: translate(calc(var(--mx) * -2.2%), calc(var(--my) * -1.6% + var(--s) * 10%)); }
.kaiju-cat {
  display: block; width: 100%; height: auto; transform: translateY(48%);
  filter: brightness(.82) saturate(.92) contrast(1.06);
  -webkit-mask-image: linear-gradient(#000 58%, #0000 92%); mask-image: linear-gradient(#000 58%, #0000 92%);
  transition: transform 3.2s cubic-bezier(.16, .84, .22, 1);
}
.hero.risen .kaiju-cat { transform: none; }
/* searchlights from the rooftops, behind the cat */
.beams { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; }
.beams i {
  position: absolute; bottom: 32%; width: 9%; height: 115%; transform-origin: 50% 100%;
  background: linear-gradient(to top, #fff3d466, #fff3d418 55%, #0000 92%);
  clip-path: polygon(46% 100%, 54% 100%, 100% 0, 0 0); filter: blur(5px);
  opacity: 0; transition: opacity 2.4s 1.4s;
}
.hero.risen .beams i { opacity: .5; }
.beams i:nth-child(1) { left: 12%; --a: -26deg; --b: 6deg; animation: sweep 12s ease-in-out infinite alternate; }
.beams i:nth-child(2) { left: 50%; --a: 16deg; --b: -20deg; animation: sweep 15s ease-in-out -5s infinite alternate; }
.beams i:nth-child(3) { left: 80%; --a: 24deg; --b: -4deg; animation: sweep 10s ease-in-out -2s infinite alternate; }
@keyframes sweep { from { transform: rotate(var(--a)); } to { transform: rotate(var(--b)); } }
/* drifting haze: one band between the cat and the towers, one low over the harbour */
.fog { position: absolute; left: 0; width: 220%; pointer-events: none; background-repeat: repeat-x; background-size: 50% 100%; animation: drift 90s linear infinite; }
.fog-back {
  top: 38%; height: 30%; opacity: .6; filter: blur(16px);
  background-image: radial-gradient(ellipse 22% 42% at 12% 55%, #f0b48a40, #0000 70%), radial-gradient(ellipse 18% 36% at 42% 45%, #b9c7c94a, #0000 70%),
    radial-gradient(ellipse 24% 46% at 72% 58%, #e8a87c38, #0000 70%), radial-gradient(ellipse 14% 30% at 92% 48%, #c6d0cf40, #0000 70%);
}
.fog-front {
  top: 72%; height: 34%; opacity: .55; filter: blur(20px); animation-duration: 70s; animation-direction: reverse;
  background-image: radial-gradient(ellipse 26% 50% at 20% 50%, #1b2f3a99, #0000 70%), radial-gradient(ellipse 22% 44% at 60% 60%, #2a3b4488, #0000 70%),
    radial-gradient(ellipse 18% 40% at 88% 45%, #1b2f3a88, #0000 70%);
}
@keyframes drift { to { transform: translateX(-50%); } }
.hero-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(#021a26b3, #021a2600 16%), linear-gradient(#0d1f1700 50%, #0d1f17c4 74%, var(--bg) 97%); }
.hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero-content { position: absolute; left: 0; right: 0; bottom: clamp(26px, 5vh, 60px); z-index: 2; max-width: 1200px; margin: 0 auto; padding: 0 6%; text-align: center; pointer-events: none; }
.hero-content > * { pointer-events: auto; }
.hero-kicker {
  display: inline-block; padding: 7px 13px; border: 1px solid #ffffff2e; border-radius: 100px;
  background: #07110c66; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #dfe9e1; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.hero h1 { margin-top: 16px; font-size: clamp(36px, 4vw, 62px); font-weight: 600; line-height: 1.04; letter-spacing: -.045em; text-wrap: balance; text-shadow: 0 6px 50px #000c; }
.hero h1:focus { outline: none; }
.hero-sub { max-width: 700px; margin: 16px auto 0; color: #d3dfd6; font-size: 16.5px; line-height: 1.65; text-shadow: 0 2px 24px #000; }
.hero-sub strong { color: var(--white); }
.welcome-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 18px; margin-top: 26px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 24px;
  min-height: 52px; padding: 15px 22px; border-radius: 100px;
  font-size: 14px; font-weight: 700; transition: transform .2s, background .2s;
}
.button:hover { transform: translateY(-2px); }
.primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px #0008, 0 0 30px #d7f25c26; }
.primary:hover { background: var(--accent-hover); }
.community-button { background: var(--orange); color: #3a2208; }
.community-button:hover { background: #f7c27f; }
.buy-button { border: 1px solid #ffffff40; background: #07110c55; color: var(--white); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.buy-button:hover { background: #ffffff14; }
.secondary { border: 1px solid #ffffff35; color: var(--white); }
.secondary:hover { background: #ffffff10; }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 26px; margin-top: 22px; }
.holder-count { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; color: var(--white); }
.holder-number { font-size: 26px; font-weight: 600; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.holder-label { color: #c2d0c6; font-size: 14px; }
.holder-label:hover { color: var(--accent); }
.holder-updated { color: #8fa596; font-size: 11px; }
.ca { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 6px 6px 6px 14px; border: 1px solid #ffffff26; border-radius: 100px; background: #07110c88; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ca-label { color: #8fa596; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.ca-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #e6eee8; font: 500 13px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.ca-copy { flex-shrink: 0; padding: 8px 13px; border-radius: 100px; background: var(--white); color: var(--ink); font-size: 12px; font-weight: 700; }
/* the towers explain themselves */
.tower { position: absolute; z-index: 1; border-radius: 6px; }
.tower::before {
  content: ''; position: absolute; top: -16px; left: 50%; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%;
  background: var(--accent); animation: ping 2.6s infinite; transition: opacity .2s;
}
.tower:hover::before, .tower.on::before, .tower:focus-visible::before { opacity: 0; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 #d7f25c88; } 70%, 100% { box-shadow: 0 0 0 12px #d7f25c00; } }
.tower-tip {
  position: absolute; bottom: calc(100% + 12px); left: 50%; z-index: 2; width: max-content; max-width: 240px;
  padding: 12px 15px; border: 1px solid #ffffff26; border-radius: 12px; background: #07110cee; box-shadow: 0 12px 30px #0008;
  text-align: left; opacity: 0; pointer-events: none; transform: translate(-50%, 6px); transition: opacity .2s, transform .25s cubic-bezier(.22, 1, .36, 1);
}
.tower:hover .tower-tip, .tower:focus-visible .tower-tip, .tower.on .tower-tip { opacity: 1; transform: translate(-50%, 0); }
.tower-tip strong { display: block; color: var(--accent); font: 700 16px/1.2 Manrope, sans-serif; }
.tower-tip span { display: block; margin-top: 4px; color: #dde7df; font-size: 13.5px; line-height: 1.5; }
.ticker { position: relative; z-index: 1; background: var(--accent); color: var(--accent-ink); padding-block: 19px; overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; flex-shrink: 0; }
.ticker-group span { display: flex; align-items: center; gap: 44px; padding-right: 44px; font-size: 14px; font-weight: 800; letter-spacing: .08em; white-space: nowrap; }
.ticker-group i { font-style: normal; font-size: 18px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { max-width: 1440px; margin: auto; padding: 92px 7%; }
h2 { font-size: clamp(36px, 3.8vw, 56px); font-weight: 500; line-height: 1.12; letter-spacing: -2px; }

/* ---------- lore ---------- */
.lore { padding-top: 95px; }
.lore-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 8%; }
.lore-grid > * { min-width: 0; }
.lore-grid h2 { margin-bottom: 25px; }
.lore-grid p { max-width: 475px; margin-bottom: 16px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.lore-grid p strong { color: var(--white); font-weight: 600; }
.lore-grid p a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.lore-grid .policy { margin-top: 22px; color: var(--white); font-weight: 600; }
.lore-evidence { position: relative; padding-top: 15px; }
.memo {
  position: relative; margin: 0; padding: 26px 32px 28px; border-radius: 3px;
  background: #070d0a; color: #f3f6f4; border: 1px solid #ffffff20;
  transform: rotate(2deg); box-shadow: 9px 12px #1a3424;
}
.memo-person { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; }
.memo-doc { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font: 800 22px/1 Manrope, sans-serif; }
.memo-person strong { display: block; font-size: 16px; }
.memo-person div > span { color: #8fa294; font-size: 13px; }
.memo-x { margin-left: auto; color: #c8d7cc; font-size: 22px; }
.memo blockquote { margin: 0 0 26px; font-family: Manrope, sans-serif; font-size: clamp(19px, 1.7vw, 25px); font-weight: 500; line-height: 1.55; letter-spacing: -.5px; }
.memo mark { background: #cfe95a; color: #11240c; padding: 0 3px; }
.memo blockquote + .memo-second { margin: -10px 0 24px; padding-top: 16px; border-top: 1px solid #ffffff1c; color: #c9d6cd; font-family: Manrope, sans-serif; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.6; }
.memo-second mark { padding: 0 2px; }
.memo figcaption { display: flex; flex-direction: column; gap: 7px; color: #a8bcae; font-size: 13px; }
.memo figcaption a { text-decoration: underline; }
.memo-note:empty { display: none; }
.meme-print { margin: 35px 0 0; padding: 8px; border-radius: 3px; background: #e7ecdc; box-shadow: 0 16px 28px #0003; }
.meme-print img { width: 100%; height: auto; border-radius: 1px; }
.meme-board { width: 88%; transform: rotate(-3deg); }
.meme-vault { width: 79%; margin: 42px 0 0 auto; transform: rotate(4deg); }
.meme-break { display: grid; grid-template-columns: .8fr 1.25fr; align-items: center; gap: 7%; width: 86%; max-width: 1180px; margin: 0 auto 90px; }
.meme-break .meme-yacht { margin: 0; transform: rotate(-2deg); }
.court-meme { margin: 0; border: 1px solid #ffffff20; border-radius: 8px; overflow: hidden; transform: rotate(2deg); }
.court-meme img { width: 100%; height: auto; object-fit: cover; }

/* ---------- studio ---------- */
.studio { max-width: none; background: var(--panel); padding-left: max(7%, 50vw - 620px); padding-right: max(7%, 50vw - 620px); }
.studio-intro { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 38px; }
.studio-intro p { color: var(--muted); font-size: 16px; line-height: 1.7; }
.editor { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #ffffff20; border-radius: 12px; overflow: hidden; background: var(--panel-2); }
.editor > * { min-width: 0; }
.editor-preview { display: flex; flex-direction: column; align-items: center; padding: 36px 32px 32px; background: radial-gradient(at 50% 30%, #2d5a3c77, #0000 65%); }
.canvas-wrap { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; max-width: 520px; aspect-ratio: 1; }
.canvas-wrap canvas { width: 100%; height: auto; box-shadow: 0 15px 45px #0003; touch-action: none; }
.canvas-wrap canvas.draggable { cursor: move; }
.preview-loading { position: absolute; color: var(--muted); font-size: 14px; }
.preview-note { max-width: 300px; margin-top: 26px; color: var(--muted); font-size: 13px; line-height: 1.8; text-align: center; }
.preview-note.small { margin-top: 6px; font-size: 12px; opacity: .8; }
.editor-controls { padding: 30px 32px; border-left: 1px solid var(--line); background: var(--panel); }
.editor-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.editor-title h3 { font-size: 25px; font-weight: 600; letter-spacing: -.8px; }
.reset-button { color: var(--muted); font-size: 13px; }
.reset-button:hover { color: var(--accent); }
.editor-controls label, .border-field legend { display: block; margin-bottom: 9px; color: #d3e1d7; font-size: 13px; }
.editor-controls input:not([type=range]) { width: 100%; min-width: 0; padding: 12px; border: 1px solid #ffffff25; border-radius: 5px; background: #091a12; color: #fff; font: inherit; font-size: 14px; }
.editor-controls input:not([type=range]):focus { outline: 1px solid var(--accent); outline-offset: 1px; }
.mode-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 24px; }
.mode-options button, .border-options button { padding: 12px 10px; border: 1px solid #ffffff25; border-radius: 5px; background: var(--panel-2); color: var(--muted); font-size: 13px; }
.mode-options button[aria-pressed=true], .border-options button[aria-pressed=true] { border-color: var(--accent); color: var(--accent); background: #d7f25c11; }
.upload-box { margin-bottom: 20px; }
.upload-box .file { display: inline-flex; min-height: 44px; padding: 11px 18px; cursor: pointer; margin: 0; color: var(--white); font-size: 13px; }
.hint { margin: 10px 0 14px; color: var(--muted); font-size: 12px; }
.caption-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.caption-fields > * { min-width: 0; }
.caption-actions { display: flex; align-items: center; gap: 16px; }
.random-button { padding: 12px 0 22px; color: var(--accent); font-size: 12px; }
.range-control { margin-bottom: 19px; }
.range-control label { display: flex; justify-content: space-between; }
.range-control output { color: var(--muted); font-size: 12px; }
.range-control input { display: block; width: 100%; height: 5px; margin: 14px 0; accent-color: var(--accent); cursor: pointer; }
.range-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 23px; }
.range-pair > * { min-width: 0; }
.border-field { margin: 0 0 22px; padding: 0; border: 0; }
.border-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.border-options button { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 5px; font-size: 12px; }
.border-options button b { font-weight: 400; }
.border-options button span { width: 10px; height: 10px; border: 1px solid #ffffff40; border-radius: 50%; }
.editor-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; }
.editor-actions .button { gap: 15px; padding: 14px 10px; font-size: 13px; }

/* ---------- footer ---------- */
footer { display: flex; justify-content: space-between; align-items: center; gap: 35px; padding: 40px 7%; }
footer p { color: var(--muted); font-size: 12px; line-height: 1.8; }
footer > span { color: var(--muted); font-size: 10px; line-height: 1.8; letter-spacing: 1px; text-align: right; text-transform: uppercase; }
.lang-foot { color: var(--muted); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; text-decoration: underline; }
.lang-foot:hover { color: var(--accent); }

/* ---------- smaller screens ---------- */
@media (max-width: 1000px) {
  .section { padding: 65px 6%; }
  .lore-grid { gap: 6%; }
  .memo { padding: 22px; }
  footer { flex-wrap: wrap; }
}
@media (max-width: 800px) {
  .editor { grid-template-columns: 1fr; }
  .editor-controls { border-left: 0; border-top: 1px solid var(--line); padding: 25px; }
  .editor-preview { padding: 25px; }
  .canvas-wrap { max-width: 320px; }
}
@media (max-width: 700px) {
  .hero { height: auto; min-height: 0; max-height: none; }
  .hero-scene { position: relative; height: 74svh; min-height: 460px; }
  .hero-shade { bottom: auto; height: 74svh; min-height: 460px; }
  .hero-content { position: relative; bottom: auto; margin-top: -21svh; padding-bottom: 34px; }
  .hero h1 { font-size: clamp(36px, 10.5vw, 52px); }
  .hero-sub { font-size: 15px; }
  .tower-tip { max-width: 200px; }
  .nav-shell { inset: 10px 0 auto; padding-inline: 3%; }
  .nav { flex-wrap: wrap; gap: 14px 16px; padding: 10px 14px; }
  .nav-sections { gap: 20px; font-size: 13px; }
  .nav-social { justify-content: center; gap: 20px; width: 100%; font-size: 12px; }
  .nav-x { font-size: 20px; }
  .nav-dex { padding: 8px 12px; }
  .pill-logo { width: 34px; height: 34px; }
  .welcome-actions { gap: 10px 12px; margin-top: 20px; }
  .welcome-actions .button { min-height: 48px; font-size: 13px; }
}
@media (max-width: 640px) {
  .section { padding: 50px 6%; }
  h2 { font-size: 37px; letter-spacing: -1.5px; }
  .lore { padding-top: 55px; }
  .lore-grid { grid-template-columns: 1fr; gap: 36px; }
  .lore-grid p { font-size: 15px; }
  .lore-evidence { padding-top: 0; margin-top: 20px; }
  .memo { margin: 8px 8px 10px 0; padding: 23px; transform: rotate(1.5deg); }
  .memo blockquote { font-size: 20px; }
  .memo-x { display: none; }
  .meme-board { width: 93%; margin: 28px auto 0 4px; }
  .meme-vault { width: 86%; margin-top: 32px; margin-right: 7px; }
  .meme-break { grid-template-columns: .85fr 1.15fr; gap: 10px; width: 88%; margin-bottom: 55px; }
  .meme-break .meme-yacht img { min-height: 160px; object-fit: cover; }
  .court-meme img { min-height: 160px; }
  .studio-intro { display: block; }
  .studio-intro p { margin-top: 20px; font-size: 15px; }
  .holder-number { font-size: 24px; }
  footer { align-items: flex-start; gap: 25px; padding: 32px 6%; }
  footer p { order: 3; width: 100%; font-size: 11px; }
  footer > span { max-width: 170px; margin-left: auto; font-size: 9px; }
  .enter { gap: 16px; max-width: 92%; padding: 20px 24px; }
}
@media (max-width: 400px) {
  .editor-controls, .editor-preview { padding: 20px; }
  .border-options { gap: 5px; }
  .border-options button { gap: 4px; font-size: 11px; }
  .editor-actions { gap: 8px; }
  .editor-actions .button { font-size: 12px; }
  .caption-fields { gap: 10px; }
  .nav-social { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .entry, .enter { transition: none; }
  .site.is-revealing, .ticker-track, .tower::before, .beams i, .fog { animation: none; }
  .kaiju-cat { transform: none; transition: none; }
  .ticker-track { width: 100%; }
  .ticker-group { flex-wrap: wrap; justify-content: center; gap: 12px; }
  .ticker-group span { gap: 16px; padding: 0 10px; font-size: 12px; }
  .ticker-group + .ticker-group { display: none; }
}
