/* ═══════════════════════════════════════════════════════════════
   I·BYTE — style.css (shared) · v2 "glossy night"
   concept, design & code by ghostly.grl ♥
   one world: black, pearl, chrome, one hot pink.
   ═══════════════════════════════════════════════════════════════ */
:root {
  --bg: #060509;
  --bg-2: #0d0b12;
  --pearl: #f7f2f7;
  --mute: rgba(247, 242, 247, .56);
  --dim: rgba(247, 242, 247, .32);
  --line: rgba(247, 242, 247, .2);
  --pink: #ff4fa2;
  --pink-hi: #ffc4e1;
  --peri: #a9bcff;

  --chrome: linear-gradient(180deg, #ffffff 0%, #e4e6ee 30%, #7c8090 49%, #f5f6fa 58%, #b5b9c6 78%, #ffffff 100%);
  --pearl-g: linear-gradient(160deg, #ffffff 0%, #f3e9f3 35%, #dcdcec 60%, #fdf6fb 100%);

  --f-sans: 'Geist', system-ui, -apple-system, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  --pad: clamp(16px, 3.4vw, 52px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--pearl);
  font: 400 16px/1.45 var(--f-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* film grain over everything, like the renders */
body::after {
  content: ''; position: fixed; inset: -50%; z-index: 990; pointer-events: none; opacity: .07;
  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");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-1%, 3%); } }
img, video, canvas { display: block; max-width: 100%; }
svg { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, dl, dd, ol { margin: 0; }
ol { padding: 0; list-style: none; }
pre { margin: 0; }
::selection { background: var(--pink); color: #fff; }

/* chrome lettering */
.chrome-t {
  background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(255, 255, 255, .18));
}

/* ---------- the rex club info row: 3 columns of tiny caps under a hairline ---------- */
.info {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  border-top: 1px solid var(--line); padding-top: 9px;
  font: 600 11px/1.3 var(--f-sans); text-transform: uppercase; letter-spacing: .015em;
}
.info > :nth-child(2) { text-align: center; }
.info > :nth-child(3) { text-align: right; }
@media (max-width: 640px) { .info { font-size: 9.5px; gap: 10px; } }

/* ---------- cursor (svg max-width:none or it collapses) ---------- */
html.has-cur, html.has-cur * { cursor: none !important; }
.cur { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; transition: opacity .2s; }
.cur__arrow { width: 20px; height: 29px; max-width: none; filter: drop-shadow(0 0 6px rgba(255, 79, 162, .9)); transform-origin: 0 0; transition: transform .25s var(--ease); }
.cur.is-link .cur__arrow { transform: scale(1.18) rotate(-8deg); }
.cur.is-down .cur__arrow { transform: scale(.85); }
.cur__lab {
  position: absolute; left: 22px; top: 22px; white-space: nowrap;
  background: var(--pearl-g); color: #111; font: 700 11px/1 var(--f-sans); text-transform: uppercase; letter-spacing: .03em;
  padding: 6px 10px; border-radius: 20px; box-shadow: 0 0 18px rgba(255, 255, 255, .25);
  transform: scale(0); transform-origin: 0 0; transition: transform .25s var(--ease);
}
.cur.is-lab .cur__lab { transform: scale(1); }
.cur.is-chomp .cur__lab { background: var(--pink); color: #fff; box-shadow: 0 0 22px var(--pink); animation: chomp .3s steps(2) infinite; }
@keyframes chomp { 50% { transform: scale(1.12) rotate(-4deg); } }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 1000; background: var(--bg);
  display: grid; place-content: center; justify-items: center; gap: 26px;
  clip-path: circle(150% at 50% 50%);
}
.loader__info { position: absolute; left: var(--pad); right: var(--pad); top: 18px; }
.loader__egg {
  font: 800 clamp(18px, 2.6vw, 30px)/1.08 var(--f-mono); color: var(--pearl); min-height: 7.6em; display: grid; align-content: center;
  text-shadow: 0 0 10px rgba(255, 196, 225, .9), 0 0 34px rgba(255, 79, 162, .55);
}
.loader__egg i { font-style: normal; color: var(--pink); }
.loader__pct { font: 600 11px var(--f-sans); text-transform: uppercase; letter-spacing: .12em; color: var(--mute); }

/* ---------- nav ---------- */
.nav {
  position: fixed; z-index: 100; top: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 22px;
  padding: 14px var(--pad);
  font: 600 12px/1 var(--f-sans); text-transform: uppercase; letter-spacing: .02em;
  transition: background .4s, backdrop-filter .4s;
}
.nav.is-solid { background: rgba(6, 5, 9, .62); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); box-shadow: inset 0 -1px 0 var(--line); }
.nav__logo { font: 800 22px/1 var(--f-sans); text-transform: none; letter-spacing: -.06em; text-decoration: none; }
.nav__logo span { color: var(--pink); text-shadow: 0 0 12px var(--pink); }
.nav__st { display: inline-flex; align-items: center; gap: 8px; color: var(--mute); }
.nav__st i { width: 7px; height: 7px; border-radius: 50%; background: #7dffb2; box-shadow: 0 0 10px #7dffb2; animation: blip 1.2s steps(2) infinite; }
.nav__st.is-angry { color: var(--pink); }
.nav__snd { display: inline-flex; align-items: center; gap: 6px; margin-left: 14px; padding: 6px 11px 6px 9px; border-radius: 30px; font: 700 10.5px var(--f-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--mute); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); transition: color .3s, box-shadow .3s; }
.nav__snd i { font-style: normal; font-size: 13px; }
.nav__snd:hover { color: var(--pearl); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }
.nav__snd[aria-pressed='true'] { color: #fff; box-shadow: inset 0 0 0 1px var(--pink), 0 0 16px rgba(255, 79, 162, .45); }
.nav__snd[aria-pressed='true'] i { color: var(--pink); animation: snd 1s steps(2) infinite; }
@keyframes snd { 50% { transform: translateY(-2px) rotate(-10deg); } }
.nav__st.is-angry i { background: var(--pink); box-shadow: 0 0 12px var(--pink); animation-duration: .4s; }
@keyframes blip { 50% { opacity: .25; } }
.nav__links { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav__links a { text-decoration: none; padding: 9px 12px; border-radius: 30px; transition: color .25s; }
.nav__links a:hover { color: var(--pink-hi); }
.nav__links .nav__adopt { margin-left: 8px; background: var(--pearl-g); color: #111; box-shadow: 0 0 20px rgba(255, 255, 255, .18), inset 0 -2px 0 rgba(0, 0, 0, .12); }
.nav__links .nav__adopt b { color: var(--pink); }
.nav__links .nav__adopt:hover { color: #111; box-shadow: 0 0 28px rgba(255, 79, 162, .55); }
.nav__menu { display: none; margin-left: auto; padding: 9px 14px; border-radius: 30px; background: var(--pearl-g); color: #111; font-weight: 700; text-transform: uppercase; font-size: 12px; }

@media (max-width: 900px) {
  .nav__menu { display: block; }
  .nav__st { display: none; }
  .nav__links {
    position: fixed; left: 10px; right: 10px; top: 58px; flex-direction: column; align-items: stretch;
    background: rgba(13, 11, 18, .96); border: 1px solid var(--line); border-radius: 22px; padding: 10px;
    opacity: 0; pointer-events: none; transform: translateY(-10px); transition: .3s var(--ease);
  }
  .nav__links a { font-size: 26px; font-weight: 700; letter-spacing: -.04em; text-transform: none; padding: 12px 14px; }
  .nav__links .nav__adopt { margin: 6px 0 0; text-align: center; }
  .menu-open .nav__links { opacity: 1; pointer-events: auto; transform: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 12px/1 var(--f-sans); text-transform: uppercase; letter-spacing: .04em;
  padding: 15px 22px; border-radius: 40px; text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .3s;
}
.btn--pearl { background: var(--pearl-g); color: #111; box-shadow: 0 0 24px rgba(255, 255, 255, .16), inset 0 -3px 0 rgba(0, 0, 0, .1), inset 0 2px 0 #fff; }
.btn--pink { background: linear-gradient(180deg, #ffb3d8, #ff4fa2 55%, #d42a7c); color: #fff; box-shadow: 0 0 30px rgba(255, 79, 162, .45), inset 0 2px 0 rgba(255, 255, 255, .5); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.97); }
.chrome {
  width: 50px; height: 50px; border-radius: 50%; font-size: 24px; line-height: 1;
  background: radial-gradient(circle at 35% 28%, #fff, #c9ccd6 40%, #5c6170 100%);
  color: #111; box-shadow: 0 0 24px rgba(255, 255, 255, .2), inset 0 -3px 6px rgba(0,0,0,.3);
  display: grid; place-items: center; transition: transform .2s var(--ease);
}
.chrome:hover { transform: scale(1.08); }

/* ---------- pearl ball chain (beads drawn by IB.chains) ---------- */
.chain { overflow: visible; max-width: none; pointer-events: none; }
.chain path { fill: none; stroke-linecap: round; }

/* ---------- glass bubbles (the rex club ones) ---------- */
.bub {
  position: absolute; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 32% 26%, rgba(255,255,255,.95) 0 6%, rgba(255,255,255,.25) 14%, rgba(255,255,255,.04) 48%, rgba(255,255,255,.18) 78%, rgba(255,255,255,.55) 100%);
  box-shadow: inset 0 0 14px rgba(255,255,255,.25), 0 0 26px rgba(255,255,255,.08);
}
.bub svg { width: 46%; height: 46%; filter: drop-shadow(0 0 6px rgba(255, 140, 200, .6)); }

/* ---------- devices ---------- */
.dev { position: relative; aspect-ratio: 400 / 520; isolation: isolate; }
.dev__chain, .dev__charm { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; overflow: visible; z-index: 0; pointer-events: none; }
.dev__charm { z-index: 3; filter: drop-shadow(0 0 12px rgba(255, 150, 200, .6)); }
.dev__svg { position: relative; z-index: 1; width: 100%; height: 100%; max-width: none; overflow: visible; filter: drop-shadow(0 0 36px color-mix(in srgb, var(--glow, #ff8fc8) 45%, transparent)); }
.dev .lcd { position: absolute; z-index: 2; }
/* your shell photos (img/SHELLS/…): the lcd sits behind, seen through the cut-out screen */
.dev--wait .dev__svg, .dev--wait .dev__chain, .dev--wait .dev__charm, .dev--wait .lcd { opacity: 0; }
.dev--photo .lcd { z-index: 0; border-radius: 2px; }
.dev--photo .lcd::after { display: none; }
.dev__img { position: absolute; z-index: 1; display: block; max-width: none; pointer-events: none; filter: drop-shadow(0 0 36px color-mix(in srgb, var(--glow, #ff8fc8) 45%, transparent)); }
.dev__drop { position: absolute; z-index: 0; transform: translate(-50%, -99%); pointer-events: none; filter: drop-shadow(0 0 14px rgba(255, 190, 230, .4)); }
.dev__drop img { display: block; width: 100%; max-width: none; height: auto; }
.dev__drop::before { content: ''; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: 300vh; background: url(../img/LITTER/chain-beads.png) center bottom / 100% auto repeat-y; }
.dev__chainimg { position: absolute; z-index: 0; max-width: none; height: auto; pointer-events: none; filter: drop-shadow(0 0 14px rgba(255, 190, 230, .45)); }
.dev__hit { position: absolute; z-index: 3; width: 11%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 0; padding: 0; border-radius: 50%; background: transparent; }
.dev__hit:active { box-shadow: 0 0 24px 6px rgba(255, 79, 162, .55); }
/* ?tune mode */
.is-tuning .lcd { outline: 2px dashed #ff4fa2; cursor: move !important; }
.is-tuning .dev__hit { background: rgba(255, 79, 162, .55); box-shadow: 0 0 0 2px #fff; cursor: move !important; }
.tune__ring, .tune__corner { position: absolute; z-index: 4; width: 22px; height: 22px; transform: translate(-50%, -50%); border-radius: 50%; cursor: move; }
.tune__ring { border: 3px solid #ff4fa2; box-shadow: 0 0 0 2px #fff; }
.tune__corner { width: 16px; height: 16px; border-radius: 3px; background: #fff; box-shadow: 0 0 0 2px #ff4fa2; cursor: nwse-resize; }
.tune__code { position: absolute; z-index: 5; left: 50%; top: 100%; margin-top: 10px; transform: translateX(-50%); width: max-content; max-width: 90vw; padding: 8px 12px; border: 0; border-radius: 8px; background: #ff4fa2; color: #fff; font: 600 11px/1.4 var(--f-mono); white-space: normal; text-align: left; cursor: copy; }
.dev__led { animation: led 1.6s ease-in-out infinite; }
@keyframes led { 50% { opacity: .25; } }
.lcd {
  font-family: var(--f-mono); font-weight: 800; white-space: pre; overflow: hidden;
  border-radius: 6px; letter-spacing: 0; min-height: 0;
}
.lcd i { font-style: normal; }
.lcd .k { color: #ff4fa2; }
.lcd .d { opacity: .42; }
.lcd .gl { color: #8fe3ff; }
.lcd::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background:
    linear-gradient(115deg, rgba(255,255,255,.2) 0 18%, transparent 18.5% 30%, rgba(255,255,255,.07) 30.5% 36%, transparent 36.5%),
    repeating-linear-gradient(0deg, rgba(0,0,0,.12) 0 1px, transparent 1px 3px);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, .55);
}
/* dark screens glow */
.lcd { text-shadow: 0 0 6px currentColor, 0 0 18px rgba(255, 120, 200, .55); }
.lcd .k { text-shadow: 0 0 8px #ff4fa2; }

/* ---------- image slots: they look like the photo tone, not boxes ---------- */
.slot {
  position: relative; overflow: hidden; border-radius: 4px;
  background: radial-gradient(120% 90% at 30% 20%, #f6f3f8 0%, #dcd9e6 45%, #b9b8cc 100%);
}
.slot--dark { background: radial-gradient(120% 90% at 50% 30%, #2a2532 0%, #120f17 60%, #08070b 100%); }
.slot img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.slot__lab {
  position: absolute; left: 12px; bottom: 11px; right: 12px; display: grid; gap: 2px;
  font: 600 10px/1.3 var(--f-sans); text-transform: uppercase; letter-spacing: .03em; color: rgba(17, 17, 20, .5);
}
.slot--dark .slot__lab { color: rgba(255, 255, 255, .4); }
.slot__lab i { font-style: normal; opacity: .8; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 11px; }
.slot.is-filled .slot__lab { display: none; }

/* ---------- toast, crumbs, rain ---------- */
.toast {
  position: fixed; z-index: 900; left: 50%; bottom: 22px; transform: translate(-50%, 160%);
  background: var(--pearl-g); color: #111; font: 700 12px/1 var(--f-sans); text-transform: uppercase; letter-spacing: .03em;
  padding: 13px 18px; border-radius: 30px;
  box-shadow: 0 0 34px rgba(255, 79, 162, .45); transition: transform .45s var(--ease);
}
.toast.on { transform: translate(-50%, 0); }
.crumb { position: fixed; z-index: 950; pointer-events: none; font: 800 18px/1 var(--f-mono); color: var(--pink); text-shadow: 0 0 8px var(--pink); }
.rain { position: fixed; top: 0; z-index: 960; pointer-events: none; font: 800 17px/1.05 var(--f-mono); color: var(--pearl); text-shadow: 0 0 10px var(--pink); }

/* ---------- footer ---------- */
.ft { position: relative; padding: 70px var(--pad) 0; overflow: hidden; }
.ft__info > div { display: grid; gap: 4px; align-content: start; }
.ft__info b { color: var(--mute); font-weight: 600; margin-bottom: 4px; }
.ft__info a { text-decoration: none; }
.ft__info a:hover { color: var(--pink); }
.ft__ground { position: relative; height: 96px; margin-top: 30px; }
.ft__walker { position: absolute; left: 0; bottom: 0; font: 800 15px/1.05 var(--f-mono); color: var(--pearl); text-shadow: 0 0 10px rgba(255, 140, 200, .7); }
.ft__walker i { font-style: normal; color: var(--pink); }
.ft__word {
  font: 800 clamp(110px, 30vw, 520px)/.76 var(--f-sans); letter-spacing: -.075em; text-align: center; margin: 0 -2vw;
  background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 30px rgba(255, 255, 255, .12));
}
.ft__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px 0 26px; border-top: 1px solid var(--line); margin-top: 3vw; font: 600 11px var(--f-sans); text-transform: uppercase; letter-spacing: .02em; color: var(--mute); }
.ft__bottom b { color: var(--pink); }
.ft-sign .sig { font: 800 15px var(--f-sans); text-transform: none; letter-spacing: -.03em; color: var(--pearl); }
@media (max-width: 640px) { .ft__info { grid-template-columns: 1fr 1fr; } .ft__info > :nth-child(3) { grid-column: 1 / -1; text-align: left; } .ft__info > :nth-child(2) { text-align: right; } }

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