:root {
  --bg: #0f1218;
  --bg-2: #141820;
  --surface: rgba(20, 24, 32, 0.72);
  --surface-solid: #161b24;
  --surface-2: rgba(24, 30, 40, 0.78);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-2: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(148, 163, 184, 0.14);
  --glass-shine: rgba(255, 255, 255, 0.08);
  --line: rgba(148, 163, 184, 0.1);
  --text: #dce3ec;
  --muted: #8b95a8;
  --accent: #7a9eb5;
  --accent-2: #8a9bb5;
  --accent-3: #8fa894;
  --accent-4: #b5a88a;
  --accent-5: #7a8fa8;
  --accent-ink: #0f1218;
  --ok: #7aab8e;
  --warn: #b59a72;
  --radius: 14px;
  --font: "Outfit", "Segoe UI", sans-serif;
  --display: "Bricolage Grotesque", "Outfit", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ink: 15, 18, 24;
  --nav-bg: rgba(15, 18, 24, 0.82);
  --logo-bg: rgba(255, 255, 255, 0.04);
  --tile-shade: rgba(15, 18, 24, 0.92);
  --tile-soft-shade: rgba(15, 18, 24, 0.9);
  --tile-soft-logo-bg: rgba(255, 255, 255, 0.05);
  --modal-backdrop: rgba(8, 10, 14, 0.72);
  --lightbox-bg: rgba(8, 10, 14, 0.92);
  --blur: 12px;
  --blur-heavy: 18px;
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.32), inset 0 1px 0 var(--glass-shine);
  --transition-theme: background .35s ease, color .35s ease, border-color .35s ease, box-shadow .35s ease;
  --brand-gradient: linear-gradient(
    118deg,
    #c8d4e0 0%,
    #9eb3c7 28%,
    #8fa894 52%,
    #b5a88a 72%,
    #9eb3c7 100%
  );
  --accent-glow: 122, 158, 181;
  --crystal-1: 122, 158, 181;
  --crystal-2: 138, 155, 181;
  --crystal-3: 143, 168, 148;
  --crystal-4: 200, 212, 224;
  --hero-overlay: 15, 18, 24;
}

html[data-theme="light"] {
  --bg: #f0eeea;
  --bg-2: #e8e5df;
  --surface: #f8f7f4;
  --surface-solid: #f8f7f4;
  --surface-2: #f0eeea;
  --glass: rgba(248, 247, 244, 0.92);
  --glass-2: #f8f7f4;
  --glass-border: rgba(100, 95, 88, 0.12);
  --glass-shine: rgba(255, 255, 255, 1);
  --line: rgba(100, 95, 88, 0.14);
  --text: #3a3835;
  --muted: #8a8580;
  --accent: #6a8f96;
  --accent-2: #8a96a8;
  --accent-3: #7a9078;
  --accent-4: #a89878;
  --accent-5: #788898;
  --accent-ink: #ffffff;
  --ok: #5a9070;
  --warn: #a08050;
  --ink: 240, 238, 234;
  --hero-overlay: 240, 238, 234;
  --nav-bg: rgba(248, 247, 244, 0.92);
  --logo-bg: #f8f7f4;
  --tile-shade: rgba(240, 238, 234, 0.94);
  --tile-soft-shade: rgba(240, 238, 234, 0.92);
  --tile-soft-logo-bg: #f8f7f4;
  --modal-backdrop: rgba(58, 56, 53, 0.24);
  --lightbox-bg: rgba(58, 56, 53, 0.76);
  --blur: 16px;
  --blur-heavy: 24px;
  --shadow-glass: 0 1px 2px rgba(58, 56, 53, 0.04), 0 8px 24px rgba(58, 56, 53, 0.06), inset 0 1px 0 rgba(255, 255, 255, 1);
  --brand-gradient: linear-gradient(
    118deg,
    #6a8f96 0%,
    #8a96a8 30%,
    #7a9078 55%,
    #a89878 75%,
    #5a6878 100%
  );
  --accent-glow: 106, 143, 150;
  --crystal-1: 106, 143, 150;
  --crystal-2: 138, 150, 168;
  --crystal-3: 122, 144, 120;
  --crystal-4: 168, 176, 188;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

html.tg-webapp {
  --tg-safe-top: env(safe-area-inset-top, 0px);
  --tg-safe-bottom: env(safe-area-inset-bottom, 0px);
}

html.tg-webapp body {
  padding-bottom: var(--tg-safe-bottom);
}

html.tg-webapp .nav {
  top: var(--tg-safe-top);
}

html.tg-webapp .hero {
  padding-top: calc(clamp(44px, 8vw, 88px) + var(--tg-safe-top));
}

html.tg-webapp .cursor-root {
  display: none !important;
}

html.tg-webapp,
html.tg-webapp * {
  cursor: auto !important;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
  transition: var(--transition-theme);
}

.bg-glow {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(880px 520px at 4% -6%, rgba(122, 158, 181, 0.1), transparent 58%),
    radial-gradient(720px 480px at 96% 4%, rgba(138, 155, 181, 0.08), transparent 55%),
    radial-gradient(640px 440px at 52% 108%, rgba(143, 168, 148, 0.06), transparent 52%),
    linear-gradient(180deg, #12151c 0%, var(--bg) 38%, #0c0e12 100%);
  transition: background .35s ease;
}
.bg-crystal {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.035;
  background-image:
    linear-gradient(125deg, transparent 46%, rgba(255,255,255,0.9) 49.5%, transparent 53%),
    linear-gradient(55deg, transparent 46%, rgba(255,255,255,0.55) 49.5%, transparent 53%);
  background-size: 72px 124px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 20%, transparent 75%);
}
html[data-theme="light"] .bg-glow {
  background:
    radial-gradient(880px 520px at 4% -6%, rgba(106, 143, 150, 0.08), transparent 58%),
    radial-gradient(720px 480px at 96% 4%, rgba(138, 150, 168, 0.07), transparent 55%),
    linear-gradient(180deg, #f5f3ef 0%, var(--bg) 42%, #e8e5df 100%);
}
html[data-theme="light"] .bg-crystal { opacity: 0.018; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 16px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: var(--nav-bg);
  backdrop-filter: blur(var(--blur-heavy)) saturate(1.5);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-shine);
  transition: var(--transition-theme);
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display);
  font-weight: 800; font-size: 18px; letter-spacing: -0.02em;
}
.nav-brand img {
  width: 34px; height: 34px; border-radius: 9px; object-fit: cover;
  border: 1px solid var(--line); background: var(--logo-bg);
}
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a {
  padding: 8px 12px; color: var(--muted); font-size: 14px; font-weight: 500;
  border-radius: 8px; transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--text); background: var(--glass); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  position: relative;
  width: 52px; height: 32px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(var(--blur));
  cursor: pointer;
  padding: 3px;
  box-shadow: inset 0 1px 0 var(--glass-shine);
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.theme-toggle:hover {
  border-color: rgba(var(--accent-glow), 0.45);
  box-shadow: inset 0 1px 0 var(--glass-shine), 0 0 20px rgba(var(--accent-glow), 0.12);
}
.theme-toggle::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent), var(--accent-2), var(--accent-3));
  box-shadow: 0 2px 10px rgba(var(--crystal-2), 0.4), inset 0 1px 0 rgba(255,255,255,0.4);
  transition: transform .22s cubic-bezier(.2,.8,.2,1);
}
html[data-theme="light"] .theme-toggle::after {
  transform: translateX(20px);
}
.theme-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  line-height: 1;
  pointer-events: none;
  opacity: 0.55;
}
.theme-icon[data-theme-icon="sun"] { left: 9px; }
.theme-icon[data-theme-icon="moon"] { right: 9px; }
html:not([data-theme="light"]) .theme-icon[data-theme-icon="moon"] { opacity: 0.25; }
html[data-theme="light"] .theme-icon[data-theme-icon="sun"] { opacity: 0.25; }
html[data-theme="light"] .theme-icon[data-theme-icon="moon"] { opacity: 0.85; }
.lang-toggle {
  display: inline-flex; padding: 3px; gap: 2px;
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: 10px;
  backdrop-filter: blur(var(--blur));
  box-shadow: inset 0 1px 0 var(--glass-shine);
  cursor: pointer; font-family: var(--mono); font-size: 11px; color: var(--muted);
}
.lang-opt { padding: 5px 8px; border-radius: 7px; transition: background .15s, color .15s; }
.lang-opt.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent-3));
  color: var(--accent-ink); font-weight: 600;
  box-shadow: 0 2px 12px rgba(var(--crystal-2), 0.3);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 11px; border: 1px solid transparent;
  font-weight: 600; font-size: 14px; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 48%, var(--accent-3) 100%);
  color: var(--accent-ink);
  box-shadow: 0 4px 24px rgba(var(--crystal-2), 0.32), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-accent:hover {
  filter: brightness(1.07);
  box-shadow: 0 6px 32px rgba(var(--crystal-3), 0.38), inset 0 1px 0 rgba(255,255,255,0.45);
}
.btn-ghost {
  background: var(--glass); border-color: var(--glass-border); color: var(--text);
  backdrop-filter: blur(var(--blur));
  box-shadow: inset 0 1px 0 var(--glass-shine);
}
.btn-tg {
  background: rgba(42, 171, 238, 0.12);
  border-color: rgba(42, 171, 238, 0.35);
  color: #5ec8ff;
}
.btn-tg:hover {
  background: rgba(42, 171, 238, 0.2);
  border-color: rgba(42, 171, 238, 0.55);
  color: #8edaff;
}
.btn-tg::before {
  content: "";
  width: 16px; height: 16px; flex-shrink: 0;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9.78 18.65l.28-4.23 7.68-6.92c.34-.31-.07-.46-.52-.19L7.74 13.3 3.64 12c-.88-.25-.89-.86.2-1.3l15.97-6.16c.73-.33 1.43.18 1.15 1.3l-2.72 12.81c-.19.91-.74 1.13-1.5.71L12.6 16.3l-1.99 1.93c-.23.23-.42.42-.83.42z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9.78 18.65l.28-4.23 7.68-6.92c.34-.31-.07-.46-.52-.19L7.74 13.3 3.64 12c-.88-.25-.89-.86.2-1.3l15.97-6.16c.73-.33 1.43.18 1.15 1.3l-2.72 12.81c-.19.91-.74 1.13-1.5.71L12.6 16.3l-1.99 1.93c-.23.23-.42.42-.83.42z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.footer-tg {
  display: inline-flex; align-items: center; gap: 6px;
  color: #5ec8ff; font-weight: 600; font-size: 13px;
}
.footer-tg:hover { color: #8edaff; }
.footer-tg::before {
  content: "";
  width: 14px; height: 14px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9.78 18.65l.28-4.23 7.68-6.92c.34-.31-.07-.46-.52-.19L7.74 13.3 3.64 12c-.88-.25-.89-.86.2-1.3l15.97-6.16c.73-.33 1.43.18 1.15 1.3l-2.72 12.81c-.19.91-.74 1.13-1.5.71L12.6 16.3l-1.99 1.93c-.23.23-.42.42-.83.42z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9.78 18.65l.28-4.23 7.68-6.92c.34-.31-.07-.46-.52-.19L7.74 13.3 3.64 12c-.88-.25-.89-.86.2-1.3l15.97-6.16c.73-.33 1.43.18 1.15 1.3l-2.72 12.81c-.19.91-.74 1.13-1.5.71L12.6 16.3l-1.99 1.93c-.23.23-.42.42-.83.42z'/%3E%3C/svg%3E") center/contain no-repeat;
}
html.tg-webapp .nav-tg,
html.tg-webapp .hero-tg { display: none; }
.btn-ghost:hover {
  border-color: rgba(var(--accent-glow), 0.45);
  color: var(--accent);
  background: rgba(var(--accent-glow), 0.08);
  box-shadow: inset 0 1px 0 var(--glass-shine), 0 0 24px rgba(var(--accent-glow), 0.1);
}
.btn-dl {
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--text); padding: 8px 12px; font-size: 13px; border-radius: 8px;
}
.btn-dl:hover { border-color: var(--accent); color: var(--accent); }
.btn-dl.is-done { border-color: var(--ok); color: var(--ok); }
.btn-lg { padding: 12px 20px; font-size: 15px; }

.hero {
  position: relative; isolation: isolate;
  min-height: min(74vh, 700px);
  display: grid; align-items: end;
  padding: clamp(44px, 8vw, 88px) clamp(16px, 4vw, 48px) 40px;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.1s ease;
  transform: scale(1.04);
}
.hero-slide.active { opacity: 1; transform: scale(1); transition: opacity 1.1s ease; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(var(--hero-overlay), 0.97) 0%, rgba(var(--hero-overlay), 0.78) 42%, rgba(var(--hero-overlay), 0.28) 100%),
    linear-gradient(0deg, rgba(var(--hero-overlay), 0.95) 0%, transparent 52%);
}
.hero-spot {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  transition: opacity .35s ease;
  background: radial-gradient(420px 280px at var(--sx, 70%) var(--sy, 40%), rgba(var(--accent-glow),0.12), transparent 65%);
  mix-blend-mode: screen;
}
.hero-spot.on { opacity: 1; }
.hero-inner {
  width: min(1100px, 100%); margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 0.7fr; gap: 28px; align-items: end;
  animation: rise .7s ease both;
}
.nav-brand span.brand-mark,
.brand-crystal {
  background: var(--brand-gradient);
  background-size: 280% 280%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: crystal-flow 14s ease infinite;
}
.nav-brand span.brand-mark {
  font-size: 19px;
  letter-spacing: 0.06em;
  filter: drop-shadow(0 0 16px rgba(var(--crystal-2), 0.2));
}
.brand-title {
  font-family: var(--display);
  font-size: clamp(58px, 11vw, 108px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 0.88;
  margin: 0;
}
.brand-crystal {
  position: relative;
  display: inline-block;
  background: var(--brand-gradient);
  background-size: 280% 280%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: crystal-flow 12s ease infinite, crystal-pulse 8s ease-in-out infinite alternate;
  filter:
    drop-shadow(0 0 28px rgba(var(--crystal-1), 0.18))
    drop-shadow(0 0 48px rgba(var(--crystal-3), 0.08));
}
.brand-crystal::after {
  content: "ARKIVO";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255, 255, 255, 0.95) 48%,
    rgba(224, 242, 254, 0.6) 52%,
    transparent 62%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: crystal-shimmer 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes crystal-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes crystal-shimmer {
  0%, 100% { background-position: 180% 0; opacity: 0.6; }
  50% { background-position: -80% 0; opacity: 1; }
}
@keyframes crystal-pulse {
  0% { filter: drop-shadow(0 0 36px rgba(var(--crystal-1), 0.3)) drop-shadow(0 0 64px rgba(var(--crystal-3), 0.14)); }
  100% { filter: drop-shadow(0 0 52px rgba(var(--crystal-2), 0.42)) drop-shadow(0 0 90px rgba(var(--crystal-1), 0.2)); }
}
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 14px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy .brand-title { margin-bottom: 0; }
.hero-sub {
  margin-top: 18px; max-width: 40ch; color: var(--muted); font-size: 17px; font-weight: 400;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-dots { display: flex; gap: 6px; margin-top: 24px; }
.hero-dot {
  width: 22px; height: 3px; border: none; border-radius: 2px; cursor: pointer;
  background: rgba(255,255,255,0.18); padding: 0;
  transition: width .2s, background .2s;
}
.hero-dot.active { background: var(--accent); width: 36px; }

.hero-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 18px;
  backdrop-filter: blur(var(--blur-heavy)) saturate(1.4);
  box-shadow: var(--shadow-glass);
  animation: rise .8s .12s ease both;
}
.hero-card img {
  width: 56px; height: 56px; border-radius: 12px; object-fit: cover;
  border: 1px solid var(--line); background: #000; margin-bottom: 14px;
}
.pass-btn {
  width: 100%; text-align: left; cursor: pointer;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 40%, var(--accent-3) 100%);
  color: var(--accent-ink); border: none;
  border-radius: 12px; padding: 12px 14px;
  box-shadow: 0 4px 28px rgba(var(--crystal-2), 0.3), inset 0 1px 0 rgba(255,255,255,0.4);
  transition: filter .15s, transform .15s, box-shadow .15s;
}
.pass-btn:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 28px rgba(var(--accent-glow), 0.35), inset 0 1px 0 rgba(255,255,255,0.4);
}
.pass-btn:active { transform: scale(0.99); }
.pass-btn span {
  display: block; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.75;
}
.pass-btn strong { display: block; margin-top: 4px; font-size: 22px; letter-spacing: 0.14em; }
.hero-now { margin-top: 12px; color: var(--muted); font-size: 13px; }
.hero-now b { color: var(--text); font-weight: 600; }
.hero-meta {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line);
}
.hero-meta > div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  min-width: 0;
}
.hero-meta dt {
  font-family: var(--mono); font-size: 10px; color: var(--muted);
  letter-spacing: 0.04em; text-transform: uppercase;
  flex-shrink: 0;
}
.hero-meta dd {
  font-size: 13px; font-weight: 600; line-height: 1.25;
  text-align: right;
}

.rail {
  border-block: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(var(--blur));
  padding: 14px 0;
  overflow: hidden;
}
.rail-track {
  display: flex; gap: 10px; padding: 0 clamp(16px, 4vw, 48px);
  overflow-x: auto; scrollbar-width: none;
}
.rail-track::-webkit-scrollbar { display: none; }
.rail-card {
  flex: 0 0 168px; height: 100px; position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: 10px; padding: 0;
  cursor: pointer; background: #000;
  transition: border-color .2s, transform .2s;
}
.rail-card img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.82;
  transition: opacity .2s, transform .45s ease;
}
.rail-card span {
  position: absolute; left: 10px; bottom: 9px; right: 10px;
  font-size: 12px; font-weight: 600; text-shadow: 0 1px 8px #000;
}
.rail-card:hover { transform: translateY(-2px); }
.rail-card:hover img { opacity: 1; transform: scale(1.05); }
.rail-card.active, .rail-card:hover { border-color: rgba(var(--accent-glow),0.5); }

/* Marquee */
.marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--glass-border);
  background: linear-gradient(90deg, rgba(var(--crystal-1), 0.09), rgba(var(--crystal-2), 0.07) 45%, rgba(var(--crystal-3), 0.08));
  backdrop-filter: blur(8px);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: 0;
  width: max-content;
  padding: 12px 0;
  animation: marquee 48s linear infinite;
  font-family: var(--display);
  font-weight: 800; font-size: 13px; letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--muted), var(--accent-2), var(--accent), var(--muted));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: marquee 52s linear infinite;
}
.marquee-track span { padding: 0 4px; }
.marquee-track i {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0 14px;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Flow */
.flow {
  max-width: 1100px; margin: 0 auto;
  padding: 8px clamp(16px, 4vw, 48px) 12px;
}
.flow-inner {
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(var(--crystal-1), 0.1), rgba(var(--crystal-2), 0.07) 45%, transparent 72%),
    var(--glass);
  backdrop-filter: blur(var(--blur-heavy)) saturate(1.35);
  box-shadow: var(--shadow-glass);
  padding: 22px clamp(16px, 3vw, 28px);
}
.flow-head { margin-bottom: 18px; }
.flow-steps {
  list-style: none;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.flow-steps li {
  display: grid; grid-template-columns: auto 1fr; gap: 12px;
  align-items: start;
  position: relative;
  padding: 4px 0;
}
.flow-steps li:not(:last-child)::after {
  content: "";
  position: absolute; top: 18px; right: -8px; width: 16px; height: 1px;
  background: linear-gradient(90deg, rgba(var(--accent-glow),0.55), transparent);
}
.flow-num {
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  color: var(--accent); letter-spacing: 0.06em;
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(var(--accent-glow), 0.35);
  background: rgba(var(--accent-glow), 0.1);
  box-shadow: inset 0 1px 0 var(--glass-shine);
}
.flow-steps b {
  display: block; font-family: var(--display);
  font-size: 16px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 4px;
}
.flow-steps p { color: var(--muted); font-size: 13px; max-width: 28ch; }

.stats {
  max-width: 1100px; margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 48px) 8px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.stat {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(var(--blur)) saturate(1.3);
  box-shadow: var(--shadow-glass);
  padding: 18px 16px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.stat:hover {
  border-color: rgba(var(--accent-glow), 0.35);
  box-shadow: var(--shadow-glass), 0 0 32px rgba(var(--accent-glow), 0.08);
  transform: translateY(-2px);
}
.stat b {
  display: block; font-family: var(--display);
  font-size: 30px; font-weight: 800; letter-spacing: -0.03em;
}
.stat span { color: var(--muted); font-size: 13px; }

.hot, .catalog, .about, .activity, .faq {
  max-width: 1100px; margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 48px);
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

.tile {
  contain: layout style paint;
}
.section-head {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: end;
  margin-bottom: 18px;
}
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text) 0%, rgba(var(--crystal-2), 1) 55%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.9;
}
.controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tabs {
  display: flex; gap: 4px; padding: 4px;
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: 12px;
  backdrop-filter: blur(var(--blur));
  box-shadow: inset 0 1px 0 var(--glass-shine);
}
.tab {
  border: none; background: transparent; color: var(--muted); cursor: pointer;
  font-weight: 600; font-size: 13px; padding: 8px 14px; border-radius: 9px;
  transition: background .15s, color .15s, box-shadow .15s;
}
.tab.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent-3));
  color: var(--accent-ink);
  box-shadow: 0 2px 14px rgba(var(--crystal-2), 0.28);
}
.search {
  min-width: 200px; background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 12px; padding: 2px 12px;
  backdrop-filter: blur(var(--blur));
  box-shadow: inset 0 1px 0 var(--glass-shine);
  transition: border-color .15s, box-shadow .15s;
}
.search:focus-within {
  border-color: rgba(var(--accent-glow), 0.45);
  box-shadow: inset 0 1px 0 var(--glass-shine), 0 0 20px rgba(var(--accent-glow), 0.1);
}
.search input {
  width: 100%; background: none; border: none; outline: none; color: var(--text);
  font: 500 14px var(--font); padding: 10px 0;
}

.hot-track {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px;
}
.hot-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  padding: 16px 14px;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  background: var(--glass);
  box-shadow: var(--shadow-glass);
  cursor: pointer;
  transition: border-color .22s, transform .22s ease, box-shadow .22s;
}
.hot-card:hover {
  border-color: rgba(var(--accent-glow), 0.42);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glass), 0 12px 36px rgba(var(--accent-glow), 0.12);
}
.hot-card img {
  width: 52px; height: 52px; border-radius: 14px; object-fit: contain;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.hot-card b { display: block; font-size: 14px; font-weight: 650; }
.hot-card span { color: var(--muted); font-size: 12px; line-height: 1.35; }

.panel { display: none; }
.panel.active { display: block; animation: fade .35s ease; }

.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(252px, 1fr)); gap: 14px;
}
.tile {
  position: relative;
  display: flex; flex-direction: column;
  min-height: 0;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 12, 22, 0.65);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
  transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s, border-color .28s;
}
.tile::after {
  content: "";
  position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0;
  background: radial-gradient(260px 180px at var(--mx, 50%) var(--my, 40%), rgba(var(--crystal-1), 0.2), transparent 72%);
  transition: opacity .3s;
}
.tile:hover::after { opacity: 1; }
.tile:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--accent-glow), 0.38);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(var(--accent-glow), 0.12);
}
.tile-media {
  position: relative;
  flex: 1 1 auto;
  min-height: 148px;
  overflow: hidden;
}
.tile-cover {
  position: absolute; inset: 0;
  background-size: cover; background-position: center top;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.tile:hover .tile-cover { transform: scale(1.08); }
.tile-shine {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 38%, rgba(6,9,18,0.55) 100%);
}
.tile-panel {
  position: relative; z-index: 3;
  padding: 14px 16px 16px;
  background: linear-gradient(180deg, rgba(10, 14, 26, 0.72) 0%, rgba(10, 14, 26, 0.94) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.tile h3 {
  font-family: var(--display);
  font-size: 18px; font-weight: 800; letter-spacing: -0.025em;
  line-height: 1.15;
}
.tile p {
  color: var(--muted); font-size: 12px; margin-top: 5px;
  line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tile-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 12px; gap: 8px;
}
.tile-count {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em;
  background: rgba(var(--accent-glow), 0.15);
  color: var(--accent);
  padding: 5px 9px; border-radius: 999px; font-weight: 600;
  border: 1px solid rgba(var(--accent-glow), 0.25);
}
.tile-open {
  font-size: 12px; font-weight: 600; color: var(--muted);
  transition: color .2s, transform .2s;
}
.tile:hover .tile-open { color: var(--accent); transform: translateX(2px); }

.tile-soft { min-height: 268px; }
.tile-soft-media {
  min-height: 132px;
  background: linear-gradient(145deg, rgba(var(--crystal-2), 0.12), rgba(var(--crystal-3), 0.08));
}
.tile-soft-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.22;
  filter: saturate(0.7) blur(1px);
  transition: transform .6s ease, opacity .3s;
}
.tile-soft:hover .tile-soft-bg { transform: scale(1.06); opacity: 0.28; }
.tile-soft-logos {
  position: absolute; inset: auto 14px 14px 14px; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.tile-soft-logos img {
  width: 100%; aspect-ratio: 1; object-fit: contain;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px; padding: 8px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: transform .25s, border-color .25s;
}
.tile-soft:hover .tile-soft-logos img { border-color: rgba(var(--accent-glow), 0.35); }
.tile-soft .tile-count {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.12);
}

.empty { text-align: center; color: var(--muted); padding: 40px 16px; }

.about-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: center; }
.about-grid > div > p { color: var(--muted); max-width: 52ch; margin-top: 8px; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.feature {
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow-glass);
  border-radius: 13px; padding: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.feature:hover {
  border-color: rgba(var(--accent-glow), 0.35);
  box-shadow: var(--shadow-glass), 0 0 24px rgba(var(--accent-glow), 0.08);
}
.feature .fi { font-family: var(--mono); color: var(--accent); font-size: 12px; }
.feature b { display: block; margin: 8px 0 4px; }
.feature span { color: var(--muted); font-size: 13px; }
.disclaimer {
  font-size: 13px; color: var(--muted);
  border-left: 2px solid var(--warn); padding: 8px 0 8px 12px;
}
.about-visual { position: relative; }
.about-visual > img:first-child {
  width: 100%; height: 280px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line);
}
.about-logo {
  position: absolute; right: 16px; bottom: 16px;
  width: 72px; height: 72px; border-radius: 14px; object-fit: cover;
  border: 1px solid var(--line); background: #000; padding: 6px;
}

/* Activity */
.activity-list {
  display: flex; flex-direction: column; gap: 8px;
}
.activity-row {
  display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center;
  width: 100%; text-align: left; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 12px 14px;
  background: var(--glass);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.activity-row:hover {
  border-color: rgba(var(--accent-glow), 0.35);
  transform: translateX(4px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 8px 24px rgba(var(--accent-glow), 0.07);
}
.activity-row img {
  width: 48px; height: 48px; border-radius: 12px; object-fit: contain;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.1); padding: 5px;
}
.activity-main b { display: block; font-size: 14px; }
.activity-main span { color: var(--muted); font-size: 12px; }
.activity-row time {
  font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap;
}

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow-glass);
  border-radius: 14px; padding: 0 16px;
  transition: border-color .2s, box-shadow .2s;
}
.faq-item[open], .faq-item:hover {
  border-color: rgba(var(--accent-glow), 0.32);
  box-shadow: var(--shadow-glass), 0 0 24px rgba(var(--accent-glow), 0.06);
}
.faq-item summary {
  cursor: pointer; list-style: none;
  font-family: var(--display); font-weight: 800; font-size: 16px;
  letter-spacing: -0.02em; padding: 16px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--mono); color: var(--accent); font-size: 18px; font-weight: 600;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p {
  color: var(--muted); font-size: 14px; padding: 0 0 16px; max-width: 72ch; line-height: 1.55;
}

.footer {
  border-top: 1px solid var(--glass-border);
  background: linear-gradient(180deg, transparent, rgba(var(--crystal-2), 0.04));
  padding: 28px clamp(16px, 4vw, 48px) 40px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 20px; align-items: center;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; }
.footer-brand b { display: block; font-family: var(--display); font-size: 15px; }
.footer-brand span { color: var(--muted); font-size: 12px; }
.footer-meta {
  display: flex; flex-wrap: wrap; gap: 14px;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
}
.footer-meta span { display: inline-flex; align-items: center; gap: 6px; }
.footer-copy { color: var(--muted); font-size: 13px; justify-self: end; }

.modal {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: var(--modal-backdrop);
  backdrop-filter: blur(var(--blur-heavy)) saturate(1.2);
}
.modal-sheet {
  position: relative; z-index: 1; width: min(760px, 100%); max-height: 88vh; overflow: auto;
  background: linear-gradient(165deg, rgba(14, 18, 32, 0.92) 0%, rgba(10, 14, 26, 0.88) 100%);
  backdrop-filter: blur(var(--blur-heavy)) saturate(1.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  animation: rise .28s ease;
}
.modal-body { padding: 8px 20px 22px; }
.modal-head h3 {
  font-family: var(--display);
  font-size: 28px; font-weight: 800; letter-spacing: -0.03em;
}
.modal-head p { color: var(--muted); margin-top: 6px; font-size: 14px; line-height: 1.45; }
.modal-cover {
  height: 152px; background-size: cover; background-position: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}
.modal-cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10, 14, 26, 0.95) 0%, rgba(10, 14, 26, 0.15) 55%, transparent 100%);
}
.modal-sheet .item-row {
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.modal-sheet .item-row::before {
  content: "";
  position: absolute; left: 0; top: 10px; bottom: 10px;
  width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity .2s;
}
.modal-sheet .item-row:hover::before { opacity: 1; }
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--glass);
  backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-shine);
  cursor: pointer;
}
.modal-body { padding: 8px 20px 22px; }
.modal-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.pass-chip {
  border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  font-family: var(--mono); font-size: 12px; padding: 8px 12px; border-radius: 10px;
  box-shadow: 0 2px 14px rgba(var(--accent-glow), 0.22), inset 0 1px 0 rgba(255,255,255,0.3);
}
.pass-chip code { font-weight: 700; }
.modal-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chip {
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(8px);
  color: var(--muted);
  border-radius: 9px; padding: 5px 10px; font-size: 12px; cursor: pointer;
  transition: border-color .15s, color .15s, background .15s, box-shadow .15s;
}
.filter-chip.active, .filter-chip:hover {
  border-color: rgba(var(--accent-glow), 0.45);
  color: var(--accent);
  background: rgba(var(--accent-glow), 0.1);
  box-shadow: inset 0 1px 0 var(--glass-shine);
}
.modal-count {
  margin: 14px 0 10px; font-family: var(--mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase;
}
.modal-sheet.is-detail .modal-cover,
.modal-sheet.is-detail .modal-head,
.modal-sheet.is-detail .modal-toolbar,
.modal-sheet.is-detail .modal-count {
  display: none;
}
.modal-sheet.is-detail .modal-body { padding-top: 12px; }
.modal-sheet.is-detail .modal-detail { padding: 0 20px 24px; }

.item-list { display: flex; flex-direction: column; gap: 8px; }
.item {
  display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow-glass);
  border-radius: 13px; padding: 12px;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.item:hover {
  background: var(--glass-2);
  border-color: rgba(var(--accent-glow), 0.32);
  box-shadow: var(--shadow-glass), 0 0 20px rgba(var(--accent-glow), 0.06);
}
.item-card {
  display: flex; flex-direction: column; gap: 10px; align-items: stretch;
  padding: 14px;
}
.item-card-top {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: start;
}
.item-card-head { min-width: 0; }
.item-card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.item-card-desc {
  color: var(--muted); font-size: 13px; line-height: 1.5;
  margin: 0; padding-top: 2px; border-top: 1px solid var(--line);
}
.item-logo {
  width: 48px; height: 48px; border-radius: 10px; object-fit: contain;
  border: 1px solid var(--line); background: #0a0b0e; padding: 5px;
}
.item-card .item-logo { width: 56px; height: 56px; border-radius: 12px; }
.item-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 4px; }
.tag {
  font-family: var(--mono); font-size: 10px; padding: 3px 7px; border-radius: 7px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
}
.tag.ver {
  color: var(--accent);
  background: rgba(var(--accent-glow), 0.12);
  border-color: rgba(var(--accent-glow), 0.22);
}
.tag.st { color: var(--ok); background: rgba(106,174,132,0.12); }
.item p { color: var(--muted); font-size: 13px; }
.item-plat { font-size: 11px; color: var(--muted); margin-top: 6px; }
.item-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.02) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  transition: border-color .2s, background .2s, transform .2s, box-shadow .2s;
}
.item-row:hover {
  border-color: rgba(var(--accent-glow), 0.38);
  background: linear-gradient(135deg, rgba(var(--accent-glow), 0.1) 0%, rgba(255,255,255,0.04) 100%);
  transform: translateX(4px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 8px 28px rgba(var(--accent-glow), 0.08);
}
.item-row-thumb {
  width: 56px; height: 56px;
  border-radius: 14px;
  padding: 4px;
  background: var(--logo-bg);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.item-row-thumb .item-logo {
  width: 100%; height: 100%;
  border: none; background: none; padding: 0; border-radius: 10px;
  object-fit: cover;
}
.item-row-body { min-width: 0; }
.item-row-desc {
  color: var(--muted); font-size: 12px; margin: 4px 0 6px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.item-row-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.item-row-arrow {
  font-size: 11px; font-weight: 650; color: var(--accent);
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(var(--accent-glow), 0.12);
  border: 1px solid rgba(var(--accent-glow), 0.22);
  transition: background .2s, transform .2s;
}
.item-row:hover .item-row-arrow {
  background: rgba(var(--accent-glow), 0.2);
  transform: translateX(2px);
}
.item-name { font-weight: 650; font-size: 15px; letter-spacing: -0.01em; }
.tag.dim { opacity: 0.75; }

.modal-detail { padding: 0 20px 22px; }
.detail-back {
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(var(--blur));
  box-shadow: inset 0 1px 0 var(--glass-shine);
  color: var(--muted); border-radius: 999px; padding: 8px 14px;
  cursor: pointer; font-size: 13px; font-weight: 600; margin-bottom: 16px;
}
.detail-back:hover {
  color: var(--accent);
  border-color: rgba(var(--accent-glow), 0.45);
}
.detail-hero {
  margin-bottom: 16px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: linear-gradient(135deg, rgba(var(--crystal-1), 0.1), rgba(var(--crystal-2), 0.06));
  box-shadow: var(--shadow-glass);
}
.detail-head {
  display: flex; gap: 16px; align-items: center;
  padding: 18px 18px 20px;
}
.detail-logo {
  width: 72px; height: 72px; border-radius: 16px; object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  padding: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.detail-cat {
  font-family: var(--mono); font-size: 10px; color: var(--accent);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.detail-head h4 {
  font-family: var(--display); font-size: 26px; font-weight: 800;
  letter-spacing: -0.035em; margin: 4px 0 10px;
}
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.detail-block {
  margin-bottom: 14px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.detail-block--text { padding-bottom: 18px; }
.detail-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.detail-gallery {
  display: flex; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.detail-gallery::-webkit-scrollbar { height: 4px; }
.detail-gallery::-webkit-scrollbar-thumb {
  background: rgba(var(--accent-glow), 0.35); border-radius: 4px;
}
.detail-shot {
  flex: 0 0 min(300px, 88%);
  scroll-snap-align: start;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px; overflow: hidden;
  background: rgba(0, 0, 0, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
.detail-shot img {
  width: 100%; height: 168px; object-fit: cover;
  cursor: zoom-in; display: block;
  transition: transform .35s ease;
}
.detail-shot:hover img { transform: scale(1.02); }
.detail-shot figcaption {
  padding: 7px 12px; font-family: var(--mono); font-size: 10px; color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}
.detail-copy {
  color: var(--muted); font-size: 14px; line-height: 1.7;
}
.detail-actions {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding-top: 4px;
}
.detail-actions .pass-chip { cursor: pointer; }

.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(16px);
  z-index: 200;
  background: var(--glass);
  backdrop-filter: blur(var(--blur-heavy)) saturate(1.3);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  border-radius: 12px; padding: 12px 16px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: .2s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== Guide ===== */
.guide { max-width: 1100px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 48px) 48px; }
.guide-lead { color: var(--muted); max-width: 70ch; margin: -6px 0 16px; font-size: 16px; }
.guide-note {
  border: 1px solid rgba(196,137,106,0.32); background: rgba(196,137,106,0.07);
  border-radius: 11px; padding: 12px 14px; color: var(--muted); font-size: 14px; margin-bottom: 18px;
}
.guide-toc {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px;
}
.guide-toc a {
  font-size: 13px; color: var(--muted);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 var(--glass-shine);
  padding: 7px 11px; border-radius: 10px;
  transition: color .15s, border-color .15s, box-shadow .15s;
}
.guide-toc a:hover {
  color: var(--accent);
  border-color: rgba(var(--accent-glow), 0.45);
  box-shadow: inset 0 1px 0 var(--glass-shine), 0 0 16px rgba(var(--accent-glow), 0.08);
}
.guide-step {
  display: grid; grid-template-columns: 56px 1fr; gap: 16px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow-glass);
  border-radius: 16px; padding: 18px; margin-bottom: 12px;
  transition: border-color .2s, box-shadow .2s;
}
.guide-step:hover {
  border-color: rgba(var(--accent-glow), 0.28);
  box-shadow: var(--shadow-glass), 0 0 28px rgba(var(--accent-glow), 0.06);
}
.guide-step-num {
  font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 12px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 12px rgba(var(--accent-glow), 0.25);
}
.guide-step-body h3 {
  font-family: var(--display);
  font-size: 19px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px;
}
.guide-step-body ol { padding-left: 18px; color: var(--text); }
.guide-step-body li { margin: 6px 0; color: var(--muted); }
.guide-step-body li b { color: var(--text); font-weight: 600; }
.guide-step-body > p { color: var(--muted); margin-bottom: 10px; }
.guide-muted { color: var(--muted); font-size: 13px; margin-top: 10px; }
.guide-shot {
  margin-top: 14px;
  border: 1px solid var(--glass-border);
  border-radius: 13px; overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-glass);
  transition: border-color .2s, box-shadow .2s;
}
.guide-shot:hover {
  border-color: rgba(var(--accent-glow), 0.4);
  box-shadow: var(--shadow-glass), 0 0 24px rgba(var(--accent-glow), 0.08);
}
.guide-shot img {
  width: 100%; height: auto; cursor: zoom-in; display: block;
  transition: transform .4s ease;
}
.guide-shot:hover img { transform: scale(1.01); }
.guide-shot figcaption {
  padding: 8px 12px; font-family: var(--mono); font-size: 11px;
  color: var(--muted); border-top: 1px solid var(--line); background: var(--surface-2);
}
.lightbox {
  position: fixed; inset: 0; z-index: 220; display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: var(--lightbox-bg);
  backdrop-filter: blur(var(--blur-heavy));
  animation: fade .2s ease;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(1100px, 96vw); max-height: 90vh; object-fit: contain;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  animation: rise .25s ease;
}
.lightbox-close {
  position: absolute; top: 16px; right: 16px; width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(var(--blur));
  box-shadow: inset 0 1px 0 var(--glass-shine);
  color: var(--text); cursor: pointer; font-size: 18px;
}

/* Reveal + guide progress */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

.guide-progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 45;
  height: 3px; pointer-events: none;
  background: transparent;
}
.guide-progress[hidden] { display: none; }
.guide-progress-bar {
  height: 100%; width: 100%; transform-origin: left center; transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  transition: transform .08s linear;
}
.guide-progress span {
  position: absolute; top: 10px; right: clamp(16px, 4vw, 48px);
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  color: var(--accent-ink); background: var(--accent);
  padding: 4px 8px; border-radius: 6px; pointer-events: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.stat,
.feature,
.hot-card,
.tile,
.item,
.guide-step,
.faq-item,
.activity-row,
.flow-inner,
.hero-card,
.pass-btn,
.btn,
.modal-sheet,
.toast {
  transition: var(--transition-theme);
}

/* ── Light theme component polish ── */
html[data-theme="light"] .nav {
  box-shadow: 0 1px 0 var(--line), 0 4px 24px rgba(26, 36, 51, 0.04);
}
html[data-theme="light"] .hero-shade {
  background:
    linear-gradient(105deg, rgba(240, 238, 234, 0.94) 0%, rgba(240, 238, 234, 0.82) 40%, rgba(240, 238, 234, 0.45) 100%),
    linear-gradient(0deg, rgba(240, 238, 234, 0.9) 0%, transparent 54%);
}
html[data-theme="light"] .hero-dot {
  background: rgba(58, 56, 53, 0.14);
}
html[data-theme="light"] .hero-dot.active {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(var(--accent-glow), 0.35);
}
html[data-theme="light"] .hero-card {
  background: var(--surface);
  box-shadow: var(--shadow-glass);
}
html[data-theme="light"] .hero-card img {
  background: var(--surface-2);
  border-color: var(--line);
}
html[data-theme="light"] .rail {
  background: var(--surface);
  box-shadow: inset 0 1px 0 var(--glass-shine);
}
html[data-theme="light"] .marquee {
  background: linear-gradient(90deg, rgba(var(--crystal-1), 0.06), rgba(var(--crystal-2), 0.05) 45%, rgba(var(--crystal-3), 0.05));
}
html[data-theme="light"] .section-head h2 {
  background: linear-gradient(135deg, var(--text) 0%, var(--accent-2) 52%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[data-theme="light"] .brand-crystal,
html[data-theme="light"] .brand-mark {
  filter: drop-shadow(0 2px 12px rgba(var(--crystal-2), 0.18));
}
html[data-theme="light"] .brand-crystal::after {
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255, 255, 255, 0.85) 48%,
    rgba(237, 242, 248, 0.5) 52%,
    transparent 62%
  );
}
html[data-theme="light"] .flow-inner,
html[data-theme="light"] .stat,
html[data-theme="light"] .hot-card,
html[data-theme="light"] .feature,
html[data-theme="light"] .faq-item,
html[data-theme="light"] .activity-row,
html[data-theme="light"] .guide-step {
  background: var(--surface);
  box-shadow: var(--shadow-glass);
}
html[data-theme="light"] .hot-card:hover,
html[data-theme="light"] .activity-row:hover,
html[data-theme="light"] .faq-item[open],
html[data-theme="light"] .guide-step:hover {
  border-color: rgba(var(--accent-glow), 0.28);
  box-shadow: var(--shadow-glass), 0 4px 20px rgba(var(--accent-glow), 0.08);
}
html[data-theme="light"] .crystal-shard {
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 0 10px rgba(var(--crystal-1), 0.2);
}
html[data-theme="light"] .tile {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: var(--shadow-glass);
}
html[data-theme="light"] .tile-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.98) 100%);
  border-top-color: var(--line);
  box-shadow: inset 0 1px 0 var(--glass-shine);
}
html[data-theme="light"] .tile-shine {
  background: linear-gradient(180deg, rgba(255,255,255,0.35) 0%, transparent 38%, rgba(240,238,234,0.5) 100%);
}
html[data-theme="light"] .tile-soft-media {
  background: linear-gradient(145deg, rgba(var(--crystal-1), 0.08), rgba(var(--crystal-3), 0.06));
}
html[data-theme="light"] .tile-soft-logos img {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: 0 2px 10px rgba(26, 36, 51, 0.06), inset 0 1px 0 var(--glass-shine);
}
html[data-theme="light"] .tile-soft .tile-count {
  background: rgba(var(--accent-glow), 0.1);
  color: var(--accent);
  border-color: rgba(var(--accent-glow), 0.2);
}
html[data-theme="light"] .tab.active,
html[data-theme="light"] .lang-opt.active {
  color: var(--accent-ink);
  box-shadow: 0 2px 12px rgba(var(--accent-glow), 0.22);
}
html[data-theme="light"] .search input::placeholder {
  color: var(--muted);
  opacity: 0.75;
}
html[data-theme="light"] .modal-sheet {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: 0 24px 64px rgba(26, 36, 51, 0.12), inset 0 1px 0 var(--glass-shine);
}
html[data-theme="light"] .modal-cover::after {
  background: linear-gradient(0deg, rgba(240, 238, 234, 0.98) 0%, rgba(240, 238, 234, 0.15) 55%, transparent 100%);
}
html[data-theme="light"] .modal-sheet .item-row {
  background: var(--surface-2);
  border-color: var(--line);
  box-shadow: 0 1px 4px rgba(26, 36, 51, 0.04), inset 0 1px 0 var(--glass-shine);
}
html[data-theme="light"] .modal-sheet .item-row:hover {
  border-color: rgba(var(--accent-glow), 0.32);
  background: var(--surface);
  box-shadow: 0 4px 18px rgba(var(--accent-glow), 0.1), inset 0 1px 0 var(--glass-shine);
}
html[data-theme="light"] .item-row-arrow {
  background: rgba(var(--accent-glow), 0.1);
  color: var(--accent);
}
html[data-theme="light"] .item-row-thumb,
html[data-theme="light"] .hot-card img,
html[data-theme="light"] .item-logo,
html[data-theme="light"] .activity-row img {
  background: var(--surface);
  border: 1px solid var(--line);
}
html[data-theme="light"] .detail-block {
  background: var(--surface-2);
  border-color: var(--line);
}
html[data-theme="light"] .detail-hero {
  background: linear-gradient(135deg, rgba(var(--crystal-1), 0.07), rgba(var(--crystal-2), 0.05));
}
html[data-theme="light"] .guide-note {
  background: rgba(var(--crystal-4), 0.6);
  border-color: rgba(var(--accent-glow), 0.18);
  color: var(--text);
}
html[data-theme="light"] .footer {
  border-top-color: var(--line);
  background: var(--surface);
}
html[data-theme="light"] .btn-ghost {
  background: var(--surface);
  color: var(--text);
}
html[data-theme="light"] .btn-ghost:hover {
  background: rgba(var(--accent-glow), 0.06);
  color: var(--accent);
}
html[data-theme="light"] .pass-btn,
html[data-theme="light"] .btn-accent {
  color: var(--accent-ink);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}
html[data-theme="light"] .stat.is-counted b {
  color: var(--accent);
  text-shadow: none;
}
html[data-theme="light"] .bg-orbs { opacity: 0.18; }
html[data-theme="light"] .about-visual img:first-child {
  opacity: 0.92;
}

/* Custom interactive cursor */
html.has-cursor,
html.has-cursor * {
  cursor: none !important;
}

html:not(.has-cursor) {
  --cursor-default: url("assets/cursors/default.svg") 12 12, default;
  --cursor-pointer: url("assets/cursors/pointer.svg") 8 4, pointer;
}
html:not(.has-cursor) body { cursor: var(--cursor-default); }
html:not(.has-cursor) a,
html:not(.has-cursor) button,
html:not(.has-cursor) .tile,
html:not(.has-cursor) .rail-card,
html:not(.has-cursor) .hot-card,
html:not(.has-cursor) .pass-btn,
html:not(.has-cursor) .btn,
html:not(.has-cursor) .tab,
html:not(.has-cursor) .filter-chip,
html:not(.has-cursor) .lang-toggle,
html:not(.has-cursor) .theme-toggle,
html:not(.has-cursor) .item-row,
html:not(.has-cursor) .activity-row,
html:not(.has-cursor) .detail-back,
html:not(.has-cursor) .guide-shot img,
html:not(.has-cursor) [data-dl],
html:not(.has-cursor) input[type="search"],
html:not(.has-cursor) label.search {
  cursor: var(--cursor-pointer);
}

.cursor-root {
  --cursor-angle: 0deg;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.35s ease;
}
html.has-cursor .cursor-root.is-ready { opacity: 1; }
html.has-cursor .cursor-root.is-hidden { opacity: 0; }

.cursor-glow,
.cursor-ring,
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  will-change: transform;
}

.cursor-glow {
  width: 96px;
  height: 96px;
  margin: -48px 0 0 -48px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(var(--accent-glow), 0.1) 0%,
    rgba(var(--accent-glow), 0.04) 38%,
    transparent 72%
  );
  transition: width 0.35s ease, height 0.35s ease, margin 0.35s ease, opacity 0.35s ease;
}

.cursor-ring {
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  border: 1.5px solid rgba(var(--accent-glow), 0.55);
  background: rgba(var(--ink), 0.12);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 18px rgba(var(--accent-glow), 0.12);
  transition:
    width 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    margin 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.cursor-ring-orbit {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(
    from var(--cursor-angle),
    transparent 0deg,
    rgba(var(--crystal-2), 0.85) 52deg,
    rgba(var(--crystal-3), 0.55) 96deg,
    transparent 148deg,
    transparent 360deg
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  opacity: 0.75;
  animation: cursor-orbit-spin 4.8s linear infinite;
}

.cursor-dot {
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: rgba(var(--crystal-4), 0.95);
  box-shadow: 0 0 10px rgba(var(--accent-glow), 0.55);
  transition:
    width 0.28s ease,
    height 0.28s ease,
    margin 0.28s ease,
    background 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.25s ease;
}

.cursor-root.is-hover .cursor-glow {
  width: 160px;
  height: 160px;
  margin: -80px 0 0 -80px;
  background: radial-gradient(
    circle,
    rgba(var(--accent-glow), 0.22) 0%,
    rgba(var(--crystal-3), 0.08) 42%,
    transparent 74%
  );
}

.cursor-root.is-hover .cursor-ring {
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-color: rgba(var(--accent-glow), 0.82);
  background: rgba(var(--accent-glow), 0.08);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 24px rgba(var(--accent-glow), 0.28);
}

.cursor-root.is-hover .cursor-dot {
  width: 3px;
  height: 3px;
  margin: -1.5px 0 0 -1.5px;
  background: #fff;
}

.cursor-root.is-down .cursor-ring {
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border-color: rgba(var(--crystal-3), 0.95);
}

.cursor-root.is-down .cursor-dot {
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
}

.cursor-root.is-text .cursor-ring {
  width: 2px;
  height: 28px;
  margin: -14px 0 0 -1px;
  border-radius: 2px;
  border-width: 0;
  background: rgba(var(--accent-glow), 0.75);
  box-shadow: 0 0 12px rgba(var(--accent-glow), 0.35);
}
.cursor-root.is-text .cursor-ring-orbit { display: none; }
.cursor-root.is-text .cursor-dot { opacity: 0; }
.cursor-root.is-text .cursor-glow { opacity: 0.35; width: 80px; height: 80px; margin: -40px 0 0 -40px; }

.cursor-ripples {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.cursor-ripple {
  position: fixed;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(var(--accent-glow), 0.65);
  animation: cursor-ripple 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes cursor-orbit-spin {
  to { transform: rotate(360deg); }
}

@keyframes cursor-ripple {
  from {
    transform: scale(1);
    opacity: 0.85;
  }
  to {
    transform: scale(4.2);
    opacity: 0;
  }
}

html[data-theme="light"] .cursor-ring {
  border-color: rgba(var(--accent-glow), 0.65);
  background: rgba(255, 255, 255, 0.35);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.65) inset,
    0 0 16px rgba(var(--accent-glow), 0.16);
}
html[data-theme="light"] .cursor-dot {
  background: rgba(var(--accent-glow), 0.95);
  box-shadow: 0 0 8px rgba(var(--accent-glow), 0.35);
}
html[data-theme="light"] .cursor-root.is-hover .cursor-dot {
  background: var(--accent);
}

.item-logo,
.detail-logo,
.hot-card img,
.activity-row img,
.tile-soft-logos img {
  border-radius: 12px;
  object-fit: cover;
  background: var(--logo-bg);
}

/* Floating background orbs */
.bg-orbs {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.32;
}

/* 3D tile tilt */
.grid { perspective: 1200px; }
.tile.is-tilt {
  transform-style: preserve-3d;
  will-change: transform;
}
.tile.is-tilt:hover {
  transform: translateY(-6px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}

/* Hero dot pulse */
.hero-dot.active {
  animation: dot-pulse 2.4s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(var(--accent-glow), 0.45);
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

/* Stat count-up */
.stat b {
  font-variant-numeric: tabular-nums;
  transition: color .3s;
}
.stat.is-counted b {
  color: var(--accent);
  text-shadow: 0 0 24px rgba(var(--accent-glow), 0.25);
}

/* Button ripple */
.btn, .pass-btn, .hot-card, .rail-card {
  position: relative;
  overflow: hidden;
}
.btn .ripple, .pass-btn .ripple, .hot-card .ripple, .rail-card .ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-out .6s ease-out forwards;
  background: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}
@keyframes ripple-out {
  to { transform: scale(4); opacity: 0; }
}

/* Modal list stagger */
.item-row {
  animation: row-in .4s ease both;
  animation-delay: calc(var(--i, 0) * 45ms);
}
@keyframes row-in {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Gradient border glow on flow steps hover */
.flow-steps li:hover .flow-num {
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: var(--accent-ink);
  transform: scale(1.12) rotate(-4deg);
  box-shadow: 0 4px 18px rgba(var(--accent-glow), 0.35);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s;
}

/* Tile shimmer line on hover */
.tile::before {
  content: "";
  position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  z-index: 5; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  transition: none;
}
.tile:hover::before {
  animation: tile-shimmer .8s ease forwards;
}
@keyframes tile-shimmer {
  to { left: 160%; }
}

/* Decorative sparkle dots on hero card */
.hero-card::before {
  content: "";
  position: absolute;
  top: 12px; right: 14px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow:
    -18px 8px 0 -1px rgba(var(--crystal-2), 0.6),
    -8px 22px 0 -2px rgba(var(--crystal-3), 0.5),
    12px 18px 0 -1px rgba(var(--crystal-1), 0.4);
  animation: sparkle 4s ease-in-out infinite;
  pointer-events: none;
}
.hero-card { position: relative; }
@keyframes sparkle {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

.status-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ok);
  vertical-align: middle;
  margin-right: 4px;
  box-shadow: 0 0 8px var(--ok);
  animation: live-blink 1.8s ease-in-out infinite;
}

/* Live sync ticker */
.section-note.is-live::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--ok);
  vertical-align: middle;
  animation: live-blink 1.8s ease-in-out infinite;
}
@keyframes live-blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--ok); }
  50% { opacity: 0.35; box-shadow: none; }
}

/* 3D tile tilt — disabled for performance */
.tile.is-tilt:hover {
  transform: translateY(-6px);
}

/* Performance mode */
html.perf-lite .bg-orbs,
html.perf-lite .cursor-root,
html.is-paused .bg-orbs,
html.is-paused .marquee-track,
html.is-paused .brand-crystal,
html.is-paused .brand-mark {
  animation-play-state: paused !important;
}

html.perf-lite .hot-card,
html.perf-lite .activity-row,
html.perf-lite .item-row,
html.perf-lite .feature,
html.perf-lite .faq-item,
html.perf-lite .guide-step,
html.perf-lite .tile-panel,
html.perf-lite .modal-sheet .item-row {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html.perf-lite .tile::before,
html.perf-lite .tile::after {
  display: none;
}

html.perf-lite .cursor-glow {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .hero-slide, .reveal, .brand-crystal, .brand-mark { animation: none !important; transition: none !important; }
  .hero-dot.active, .section-note.is-live::after, .hero-card::before { animation: none !important; }
  .item-row { animation: none !important; }
  .bg-orbs { display: none; }
  .brand-crystal::after { display: none; }
  .brand-crystal, .brand-mark {
    background-position: 0% 50%;
    filter: drop-shadow(0 0 24px rgba(var(--crystal-1), 0.25));
  }
  .reveal { opacity: 1; transform: none; }
  .bg-orbs { display: none; }
  .cursor-root { display: none !important; }
  html.has-cursor, html.has-cursor * { cursor: auto !important; }
}

@media (max-width: 900px) {
  .hero-inner, .about-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .stats { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .item { grid-template-columns: 48px 1fr; }
  .item-actions { grid-column: 1 / -1; }
  .item-card-top { grid-template-columns: 48px 1fr; }
  .item-card-top .item-actions { grid-column: 1 / -1; }
  .guide-step { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: clamp(48px, 16vw, 72px); }
  .flow-steps { grid-template-columns: 1fr; }
  .flow-steps li:not(:last-child)::after { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-copy { justify-self: start; }
}
