/* ============================================================
   yami.lol — invite-only access
   Mock front end. No backend, no tracking.
   ============================================================ */

@property --spin {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  --bg: #060509;
  --bg-2: #0a0710;
  --panel: #0d0a14;
  --panel-2: #120e1c;
  --panel-3: #171222;

  --text: #f0edf5;
  --text-soft: #dcd6e7;
  --muted: #a09aad;
  --dim: #6f6980;
  --faint: #4a4557;

  --purple: #a894d8;
  --purple-soft: #c9bce8;
  --purple-deep: #6d5a99;
  --purple-ink: #241c34;

  --amb-1: #14101e;
  --amb-2: #0a0710;

  --line: rgba(200, 190, 225, 0.085);
  --line-2: rgba(200, 190, 225, 0.16);
  --line-3: rgba(200, 190, 225, 0.26);
  --glass: rgba(12, 9, 18, 0.74);

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 22px;

  --ease: cubic-bezier(0.22, 0.68, 0.2, 1);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: "Instrument Serif", Georgia, serif;
  --kanji: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;

  --max: 1080px;
  --nav-w: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* --- ambient canvas -------------------------------------- */

.ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(90% 60% at 50% -10%, var(--amb-1) 0%, var(--amb-2) 44%, var(--bg) 100%),
    var(--bg);
}

.ambient canvas {
  position: absolute;
  inset: -12%;
  width: 124%;
  height: 124%;
  filter: blur(58px) saturate(1.05);
  opacity: 0.78;
}

.ambient-fade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 55% at 50% 30%, transparent 0%, rgba(4, 3, 7, 0.28) 62%, rgba(4, 3, 7, 0.78) 100%),
    linear-gradient(180deg, transparent 0%, transparent 64%, var(--bg) 100%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.03;
  mix-blend-mode: overlay;
  background-image: 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='0.84' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- base ------------------------------------------------ */

h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
img, svg { display: block; }
::selection { background: rgba(168, 148, 216, 0.3); color: #fff; }

:focus-visible {
  outline: 2px solid rgba(168, 148, 216, 0.55);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #8f82b4;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--line-3);
}

.section {
  position: relative;
  padding: 112px 0;
}

section[id] { scroll-margin-top: 96px; }

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(31px, 4vw, 46px);
  font-weight: 550;
  line-height: 1.04;
  letter-spacing: -0.045em;
  color: var(--text);
}

.section-head h2 em,
.final h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.04em;
  letter-spacing: -0.01em;
  color: var(--purple-soft);
}

.lead {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 56ch;
}

.dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--purple-soft);
  flex-shrink: 0;
}

/* --- live kanji ------------------------------------------ */

.kanji-live {
  display: inline-block;
  font-family: var(--kanji);
  font-weight: 500;
  line-height: 1;
  background-image:
    radial-gradient(circle at 32% 26%, rgba(244, 240, 252, 0.95) 0%, rgba(168, 148, 216, 0.72) 26%, rgba(92, 76, 130, 0.3) 48%, rgba(10, 8, 16, 0) 68%),
    conic-gradient(from var(--spin), #0b0812, #4c3d70, #a894d8, #ece7f7, #6d5a99, #1a1426, #0b0812);
  background-size: 190% 190%, 210% 210%;
  background-position: 30% 30%, 50% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  opacity: 0.95;
  animation:
    kanji-spin 13s linear infinite,
    kanji-mix 9s ease-in-out infinite;
}

@keyframes kanji-spin {
  to { --spin: 360deg; }
}

@keyframes kanji-mix {
  0%   { background-position: 24% 26%, 0% 50%; }
  50%  { background-position: 72% 62%, 100% 50%; }
  100% { background-position: 24% 26%, 0% 50%; }
}

@supports not (background-clip: text) {
  .kanji-live {
    color: var(--purple-soft);
    -webkit-text-fill-color: currentColor;
    background: none;
  }
}

/* --- nav ------------------------------------------------- */

.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  width: min(var(--nav-w), calc(100% - 28px));
}

.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 60px;
  padding: 8px 8px 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(22, 18, 32, 0.82), rgba(10, 8, 15, 0.78));
  box-shadow:
    0 24px 60px -34px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.nav.scrolled .nav-inner {
  background: linear-gradient(180deg, rgba(18, 14, 26, 0.92), rgba(8, 6, 13, 0.9));
  border-color: rgba(255, 255, 255, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  font-size: 32px;
  width: 34px;
  height: 38px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.6));
  transition: transform 0.5s var(--ease);
}

.brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.05);
}

.brand-word {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.045em;
  color: var(--text);
  white-space: nowrap;
}

.brand-tld {
  font-weight: 500;
  color: var(--dim);
  transition: color 0.25s var(--ease);
}

.brand:hover .brand-tld { color: var(--purple); }

.brand-lg .brand-mark {
  font-size: 40px;
  width: 42px;
  height: 46px;
}

.brand-lg .brand-word { font-size: 22px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
}

.nav-links a {
  position: relative;
  padding: 9px 13px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 450;
  letter-spacing: -0.01em;
  color: var(--muted);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-login {
  padding: 9px 13px;
  border-radius: 9px;
  font-size: 13.5px;
  color: var(--muted);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-login:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

/* One compact account control replaces the old View / Dashboard / Owner stack. */
.nav-account {
  position: relative;
}

.nav-account-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 10px 0 7px;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-soft);
  font-family: var(--sans);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.nav-account-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(200, 190, 225, 0.24);
}

.nav-account-mark {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(168, 148, 216, 0.14);
  color: var(--purple-soft);
  font-family: var(--kanji);
  font-size: 15px;
}

.nav-account-name {
  max-width: 104px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.nav-account-btn svg {
  width: 12px;
  height: 12px;
  opacity: 0.65;
  transition: transform 0.2s var(--ease);
}

.nav-account.open .nav-account-btn svg { transform: rotate(180deg); }

.nav-account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 208px;
  display: grid;
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: rgba(11, 8, 17, 0.98);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}

.nav-account.open .nav-account-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav-account-menu a {
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 13.5px;
  color: var(--text-soft);
  white-space: nowrap;
}

.nav-account-menu a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.menu-btn {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-btn span {
  display: block;
  width: 15px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--text-soft);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.mobile-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: grid;
  gap: 2px;
  padding: 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: rgba(11, 8, 17, 0.97);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.mobile-menu a:not(.btn) {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-soft);
}

.mobile-menu a:not(.btn):hover { background: rgba(255, 255, 255, 0.045); }
.mobile-menu .btn { margin-top: 6px; }
.mobile-menu a.btn-primary { color: #0b0812; }
.mobile-menu a.btn-primary:hover { background: linear-gradient(180deg, #f2eefb 0%, #d5cbea 100%); }

/* --- buttons --------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 550;
  letter-spacing: -0.012em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    filter 0.2s var(--ease);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn:active { transform: translateY(1px); }

.btn-primary,
button.btn-primary,
#saveBtn {
  appearance: none;
  -webkit-appearance: none;
  color: #0b0812 !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  background-color: #ffffff !important;
  background: #ffffff !important;
  background: linear-gradient(180deg, #ffffff 0%, #ece5f8 100%) !important;
  box-shadow:
    0 14px 34px -20px rgba(168, 148, 216, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

.btn-primary:hover,
button.btn-primary:hover,
#saveBtn:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  background-color: #ffffff !important;
  background: #ffffff !important;
  color: #0b0812 !important;
}

.btn-ghost {
  color: var(--text-soft);
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--line-3);
}

.btn-sm {
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 13.5px;
}

.btn-block { width: 100%; }

/* --- hero ------------------------------------------------ */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 152px 24px 96px;
}

.hero-inner {
  width: 100%;
  max-width: 780px;
  text-align: center;
}

.hero-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.2vw, 26px);
  margin-bottom: 4px;
}

.hero-mark {
  font-size: clamp(84px, 13.2vw, 142px);
  filter: drop-shadow(0 14px 42px rgba(0, 0, 0, 0.55));
}

.hero-word {
  display: flex;
  align-items: baseline;
  font-size: clamp(60px, 10.2vw, 116px);
  font-weight: 730;
  line-height: 0.86;
  letter-spacing: -0.065em;
  filter: drop-shadow(0 3px 28px rgba(0, 0, 0, 0.5));
}

.hw-yami,
.auth-yami {
  background-image: linear-gradient(180deg, #f7f4fc 12%, #d7d0e3 50%, #8e879e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hw-tld,
.auth-tld {
  background-image: url("tld-smoke.svg");
  background-size: 230% 180%;
  background-position: 22% 48%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 12px rgba(168, 148, 216, 0.22));
  animation: tld-smoke 17s ease-in-out infinite;
}

@keyframes tld-smoke {
  0%, 100% { background-position: 18% 42%; }
  50% { background-position: 82% 60%; }
}

.hero-sub {
  max-width: 590px;
  margin: 26px auto 0;
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: -0.005em;
  color: var(--muted);
}

.hero-sub em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.16em;
  color: var(--purple-soft);
}

.hero-emph {
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
}

.hero-whisper {
  color: var(--purple-soft);
  font-weight: 500;
  letter-spacing: 0.002em;
}

/* --- claim bar ------------------------------------------- */

.claim-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(560px, 100%);
  height: 62px;
  margin: 34px auto 0;
  padding: 6px 6px 6px 18px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: rgba(12, 9, 18, 0.76);
  box-shadow:
    0 30px 70px -44px rgba(0, 0, 0, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.claim-bar:focus-within {
  border-color: rgba(168, 148, 216, 0.38);
  background: rgba(15, 11, 22, 0.86);
}

.claim-prefix {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.01em;
  color: var(--dim);
}

.claim-field {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
}

.claim-field input {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 16px;
  font-weight: 450;
  letter-spacing: -0.01em;
  color: var(--text);
  outline: none;
}

.claim-cycle {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.2s var(--ease);
}

.claim-cycle.is-hidden { opacity: 0; }

.cycle-word {
  position: absolute;
  left: 0;
  top: 50%;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--dim);
  white-space: nowrap;
  transform: translateY(-50%) translateY(10px);
  opacity: 0;
  filter: blur(5px);
  transition:
    transform 0.55s var(--ease),
    opacity 0.45s var(--ease),
    filter 0.45s var(--ease);
}

.cycle-word.is-in {
  transform: translateY(-50%);
  opacity: 1;
  filter: blur(0);
}

.cycle-word.is-out {
  transform: translateY(-50%) translateY(-10px);
  opacity: 0;
  filter: blur(5px);
}

.claim-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 50px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 11px;
  background: linear-gradient(180deg, #f2eefb 0%, #d5cbea 100%);
  color: #0b0812;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow:
    0 12px 30px -18px rgba(168, 148, 216, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: filter 0.2s var(--ease), transform 0.2s var(--ease);
}

.claim-btn svg { width: 15px; height: 15px; }
.claim-btn:hover { filter: brightness(1.05); }
.claim-btn:active { transform: translateY(1px); }

.claim-note {
  min-height: 18px;
  margin: 12px auto 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--faint);
  transition: color 0.2s var(--ease);
}

.claim-note .dot {
  margin-right: 7px;
  vertical-align: 1px;
}

.claim-note[data-state="free"] { color: #b9a9e0; }
.claim-note[data-state="taken"] { color: #c99a9a; }

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

/* --- marquee --------------------------------------------- */

.marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 6, 12, 0.4);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  padding: 17px 0;
  animation: marquee 46s linear infinite;
}

.marquee-track span {
  font-family: var(--kanji);
  font-size: 12px;
  color: rgba(168, 148, 216, 0.45);
}

.marquee-track b {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* --- access ledger --------------------------------------- */

.ledger {
  margin-top: 52px;
  border-top: 1px solid var(--line);
}

.tier-row {
  position: relative;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) auto;
  align-items: center;
  gap: 44px;
  padding: 34px 14px;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease);
}

.tier-row:hover { background: rgba(255, 255, 255, 0.012); }

.tier-row-featured {
  background: linear-gradient(90deg, rgba(168, 148, 216, 0.055), rgba(168, 148, 216, 0.008) 58%, transparent);
}

.tier-row-featured::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(168, 148, 216, 0.45), transparent);
}

.tier-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}

.tier-kicker i {
  font-style: normal;
  padding: 3px 7px;
  border: 1px solid rgba(168, 148, 216, 0.24);
  border-radius: 999px;
  font-size: 8.5px;
  letter-spacing: 0.12em;
  color: #a495c9;
}

.tier-amount {
  margin-top: 8px;
  font-size: 46px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.055em;
  color: var(--text);
}

.tier-amount small {
  margin-left: 4px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.tier-id p {
  margin-top: 8px;
  max-width: 28ch;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.tier-feats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tier-feats li {
  position: relative;
  padding-left: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-soft);
}

.tier-feats li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--purple-deep);
}

.access-foot {
  margin-top: 26px;
  text-align: center;
  font-size: 12.5px;
  color: var(--dim);
}

.access-foot a {
  color: var(--text-soft);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 1px;
  transition: border-color 0.2s var(--ease);
}

.access-foot a:hover { border-color: var(--purple); }

/* --- faq ------------------------------------------------- */

.faq-wrap {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(44px, 6vw, 80px);
  align-items: start;
}

.faq-wrap .section-head {
  align-items: flex-start;
  margin: 0;
  text-align: left;
  max-width: 380px;
  position: sticky;
  top: 110px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.fq { border-bottom: 1px solid var(--line); }

.fq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 20px 0;
  border: 0;
  background: none;
  text-align: left;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--text-soft);
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.fq-q:hover { color: var(--text); }
.fq-q[aria-expanded="true"] { color: var(--text); }

.fq-q i {
  position: relative;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  transition: transform 0.3s var(--ease);
}

.fq-q i::before,
.fq-q i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 1px;
  background: var(--dim);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease), background 0.2s var(--ease);
}

.fq-q i::after { transform: translate(-50%, -50%) rotate(90deg); }

.fq-q[aria-expanded="true"] i::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.fq-q[aria-expanded="true"] i::before,
.fq-q[aria-expanded="true"] i::after {
  background: var(--purple-soft);
}

.fq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.36s var(--ease);
}

.fq.is-open .fq-a { grid-template-rows: 1fr; }

.fq-a > div { overflow: hidden; }

.fq-a p {
  max-width: 54ch;
  padding: 0 24px 21px 0;
  font-size: 13px;
  line-height: 1.72;
  color: var(--muted);
}

/* --- final cta ------------------------------------------- */

.final {
  position: relative;
  overflow: hidden;
  padding: 128px 24px;
  border-top: 1px solid var(--line);
}

.kanji-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, 62px);
  grid-auto-rows: 62px;
  place-items: center;
  opacity: 0.85;
  -webkit-mask-image: radial-gradient(ellipse 62% 74% at 50% 48%, #000 0%, transparent 76%);
  mask-image: radial-gradient(ellipse 62% 74% at 50% 48%, #000 0%, transparent 76%);
  pointer-events: none;
}

.kanji-grid span {
  font-family: var(--kanji);
  font-size: 25px;
  color: rgba(200, 190, 225, 0.055);
  user-select: none;
}

.final-inner {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.final h2 {
  margin-top: 18px;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 550;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.final p {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
}

.final .claim-bar { margin-top: 30px; }

/* --- footer ---------------------------------------------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 28px;
  background: linear-gradient(180deg, rgba(8, 6, 12, 0.2), rgba(5, 4, 8, 0.7));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 0.7fr);
  gap: 40px;
}

.footer-brand p {
  margin-top: 16px;
  max-width: 32ch;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
}

.footer-col h4 {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}

.footer-col a {
  display: block;
  margin-bottom: 9px;
  font-size: 12.5px;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.footer-mark {
  font-family: var(--kanji);
  font-size: 16px;
  color: var(--dim);
}

/* --- reveal / motion ------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.8s var(--ease) var(--d, 0ms),
    transform 0.8s var(--ease) var(--d, 0ms);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .kanji-live, .hw-tld, .auth-tld, .marquee-track { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ============================================================
   profile page
   ============================================================ */

.page-profile { background: var(--bg); }

.profile-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 26px 24px;
}

.profile-main {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px 72px;
}

.profile-hero { position: relative; }

.profile-cover {
  position: relative;
  z-index: 0;
  isolation: isolate;
  height: 168px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  background:
    radial-gradient(80% 130% at 26% 0%, rgba(168, 148, 216, 0.22), transparent 60%),
    radial-gradient(70% 120% at 82% 18%, rgba(109, 90, 153, 0.16), transparent 62%),
    linear-gradient(180deg, #171222, #0a0710 78%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.profile-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 44px),
    linear-gradient(180deg, rgba(6, 5, 9, 0.12) 0%, transparent 24%, rgba(6, 5, 9, 0.42) 62%, var(--bg) 100%);
  pointer-events: none;
}

.cover-kanji {
  position: absolute;
  right: 14px;
  bottom: -42px;
  font-family: var(--kanji);
  font-size: 168px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.035);
  pointer-events: none;
}

.profile-identity {
  position: relative;
  z-index: 2;
  margin-top: -58px;
  padding: 0 20px;
  text-align: center;
}

.avatar-wrap {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 0 auto;
}

.profile-avatar {
  width: 112px;
  height: 112px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--panel);
  object-fit: cover;
  box-shadow:
    0 24px 54px -26px rgba(0, 0, 0, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.avatar-seal {
  position: absolute;
  right: -7px;
  bottom: -7px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: #0d0a14;
  font-family: var(--kanji);
  font-size: 12px;
  color: var(--purple-soft);
  box-shadow: 0 8px 18px -8px #000;
}

.profile-name {
  margin-top: 15px;
  font-size: 33px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
}

.profile-handle {
  display: inline-block;
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--dim);
  transition: color 0.2s var(--ease);
}

.profile-handle:hover { color: var(--purple-soft); }

.profile-bio {
  max-width: 36ch;
  margin: 14px auto 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
}

.profile-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.copy-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 12.5px;
  color: var(--text-soft);
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.copy-pill svg { width: 14px; height: 14px; color: var(--dim); }
.copy-pill:hover { background: rgba(255, 255, 255, 0.055); border-color: var(--line-3); }

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--muted);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.icon-btn svg { width: 15px; height: 15px; }
.icon-btn:hover { background: rgba(255, 255, 255, 0.055); color: var(--text); border-color: var(--line-3); }

.profile-body {
  display: flex;
  flex-direction: column;
  gap: 34px;
  margin-top: 44px;
}

.p-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}

.p-label-note {
  letter-spacing: 0.12em;
  opacity: 0.7;
}

/* featured */

.featured-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 17px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(168, 148, 216, 0.12), rgba(255, 255, 255, 0.04) 62%);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease);
}

.featured-link:hover {
  border-color: rgba(168, 148, 216, 0.34);
  transform: translateY(-1px);
}

.fl-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--purple-soft);
}

.fl-icon svg { width: 16px; height: 16px; }

.fl-copy { flex: 1; min-width: 0; }

.fl-copy b {
  display: block;
  font-size: 14px;
  font-weight: 550;
  letter-spacing: -0.015em;
}

.fl-copy small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--dim);
}

.fl-arrow {
  color: var(--dim);
  font-size: 13px;
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}

.featured-link:hover .fl-arrow {
  color: var(--purple-soft);
  transform: translate(2px, -2px);
}

/* embeds */

.embed-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.embed {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 15px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.embed:hover {
  border-color: var(--line-3);
  background: rgba(255, 255, 255, 0.14);
}

.embed-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.embed-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.embed-badge svg { width: 12px; height: 12px; color: var(--dim); }

.embed-type {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dc-server {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dc-server-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: linear-gradient(155deg, rgba(168, 148, 216, 0.22), rgba(17, 13, 26, 0.95));
  font-family: var(--kanji);
  font-size: 18px;
  color: var(--purple-soft);
}

.dc-server-copy { min-width: 0; }

.dc-server-copy b {
  display: block;
  font-size: 12.5px;
  font-weight: 550;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dc-server-copy span {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: var(--dim);
}

.dc-channels {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.18);
}

.dc-channels span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.02em;
  color: var(--faint);
}

.embed-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 34px;
  margin-top: auto;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 11.5px;
  color: var(--text-soft);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.embed-btn span { color: var(--dim); }
.embed-btn:hover { background: rgba(255, 255, 255, 0.14); border-color: var(--line-3); }

.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.ig-tile {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #241c34, #0b0812);
}

.ig-tile i {
  font-family: var(--kanji);
  font-style: normal;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.16);
}

.ig-a { background: radial-gradient(circle at 32% 28%, #5d4d84, #100c19 72%); }
.ig-b { background: linear-gradient(150deg, #2d2440, #0a0710); }
.ig-c { background: radial-gradient(circle at 60% 40%, #3b3056, #0c0913 74%); }
.ig-d { background: linear-gradient(210deg, #4a3b6a, #0c0913); }
.ig-e { background: radial-gradient(circle at 20% 70%, #6a588f, #0b0812 70%); }
.ig-f { background: linear-gradient(120deg, #1c1529, #13101d 60%, #2c2340); }
.ig-g { background: linear-gradient(160deg, #3a2f52, #0a0710 78%); }
.ig-h { background: radial-gradient(circle at 70% 30%, #514270, #0b0812 72%); }
.ig-i { background: linear-gradient(200deg, #241c34, #0d0a15 55%, #352a4c); }

.ig-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  font-size: 10px;
  color: var(--dim);
}

.ig-foot b { color: var(--text-soft); font-weight: 550; }

.embed-btn-inline {
  height: 30px;
  margin: 0;
  padding: 0 10px;
  font-size: 10.5px;
  gap: 12px;
}

/* music */

.music-embed {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.album-art {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 25%, rgba(201, 188, 232, 0.34), transparent 58%),
    conic-gradient(from 200deg, #1a1426, #4a3b6a, #0b0812, #2c2340, #1a1426);
  border: 1px solid var(--line-2);
}

.album-mark {
  font-family: var(--kanji);
  font-size: 20px;
  color: rgba(255, 255, 255, 0.5);
}

.album-ring {
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.track { flex: 1; min-width: 0; }

.track-kicker {
  display: block;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}

.track b {
  display: block;
  margin-top: 2px;
  font-size: 13.5px;
  font-weight: 550;
  letter-spacing: -0.015em;
}

.track-artist {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--dim);
}

.track-bar {
  height: 2px;
  margin-top: 9px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.track-bar i {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--purple-deep), var(--purple-soft));
}

.play-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-soft);
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.play-btn svg { width: 15px; height: 15px; margin-left: 1px; }
.play-btn:hover { background: rgba(255, 255, 255, 0.07); border-color: var(--line-3); }
.play-btn.is-playing {
  color: var(--purple-soft);
  border-color: rgba(168, 148, 216, 0.35);
  background: rgba(168, 148, 216, 0.1);
}
.play-btn.is-playing svg { margin-left: 0; }

/* links */

.profile-links { display: grid; gap: 8px; }

.plink {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--line);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.plink:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-2);
  transform: translateY(-1px);
}

.plink-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--muted);
}

.plink-icon svg { width: 14px; height: 14px; }

.plink-copy { flex: 1; min-width: 0; }

.plink-copy b {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.plink-copy small {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--dim);
}

.plink-arrow { color: var(--faint); font-size: 12px; }
.plink:hover .plink-arrow { color: var(--purple-soft); }

.icon-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  letter-spacing: -0.04em;
}

/* Icon-only mode: a compact horizontal row with the name revealed on hover. */
.profile-links.is-icons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.profile-links.is-icons .plink {
  position: relative;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
}

.profile-links.is-icons .plink-icon {
  width: 20px;
  height: 20px;
  background: transparent;
  color: var(--text-soft);
}

.profile-links.is-icons .plink-icon svg,
.profile-links.is-icons .icon-glyph {
  width: 20px;
  height: 20px;
  font-size: 20px;
}

.profile-links.is-icons .plink-copy,
.profile-links.is-icons .plink-arrow { display: none; }

.profile-links.is-icons .plink::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  z-index: 4;
  padding: 6px 9px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: rgba(10, 8, 15, 0.96);
  color: var(--text);
  font-size: 11px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -4px);
  transition: opacity 0.16s var(--ease), transform 0.16s var(--ease);
}

.profile-links.is-icons .plink:hover::after,
.profile-links.is-icons .plink:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.profile-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.psocial {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.psocial svg { width: 15px; height: 15px; }
.psocial:hover { color: var(--text); border-color: var(--line-2); background: rgba(255, 255, 255, 0.14); }

.profile-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.mini-mark {
  font-family: var(--kanji);
  font-size: 14px;
  letter-spacing: 0;
  color: var(--dim);
}

.profile-foot a {
  color: var(--dim);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}

/* ============================================================
   auth page
   ============================================================ */

.auth-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 26px 24px;
}

.auth-back {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--dim);
  transition: color 0.2s var(--ease);
}

.auth-back:hover { color: var(--text-soft); }

.auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 452px;
  align-items: center;
  gap: clamp(44px, 6vw, 84px);
  width: 100%;
  max-width: 1040px;
  min-height: calc(100svh - 104px);
  margin: 0 auto;
  padding: 12px 24px 22px;
}

.auth-lockup {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 20px);
  margin-bottom: 28px;
}

.auth-mark {
  display: block;
  font-size: clamp(66px, 7.4vw, 94px);
  filter: drop-shadow(0 14px 40px rgba(0, 0, 0, 0.55));
}

.auth-word {
  display: flex;
  align-items: baseline;
  font-size: clamp(42px, 5.6vw, 70px);
  font-weight: 730;
  line-height: 0.88;
  letter-spacing: -0.065em;
  filter: drop-shadow(0 3px 24px rgba(0, 0, 0, 0.5));
}

.auth-sub {
  max-width: 40ch;
  font-size: 15px;
  line-height: 1.72;
  color: var(--muted);
}

.auth-sub em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.14em;
  color: var(--text-soft);
}

.auth-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.auth-points span {
  padding: 7px 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.auth-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 42px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.auth-panel {
  padding: 30px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(18, 14, 27, 0.88), rgba(9, 7, 14, 0.94));
  box-shadow:
    0 60px 130px -70px rgba(0, 0, 0, 0.98),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.auth-head .eyebrow { font-size: 9px; }

.auth-head h2 {
  margin-top: 11px;
  font-size: 26px;
  font-weight: 550;
  letter-spacing: -0.04em;
}

.auth-head p {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

.auth-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 22px;
}

.choice {
  position: relative;
  padding: 14px;
  border: 1px solid var(--line-2);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.12);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.22s var(--ease),
    background 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}

.choice:hover { background: rgba(255, 255, 255, 0.04); }

.choice.is-on {
  border-color: rgba(168, 148, 216, 0.42);
  background: linear-gradient(160deg, rgba(168, 148, 216, 0.11), rgba(255, 255, 255, 0.018));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.choice-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-right: 16px;
}

.choice-top b {
  font-size: 13px;
  font-weight: 550;
  letter-spacing: -0.015em;
  color: var(--text-soft);
}

.choice-price {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--purple-soft);
  white-space: nowrap;
}

.choice-price small {
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.choice-desc {
  display: block;
  margin-top: 5px;
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--dim);
}

.choice-check {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 12px;
  height: 12px;
  border: 1px solid var(--line-3);
  border-radius: 50%;
}

.choice.is-on .choice-check { border-color: rgba(168, 148, 216, 0.6); }

.choice.is-on .choice-check::after {
  content: "";
  position: absolute;
  inset: 2.5px;
  border-radius: 50%;
  background: var(--purple-soft);
}

.auth-form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.input-wrap {
  display: flex;
  align-items: center;
  height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.input-wrap:focus-within {
  border-color: rgba(168, 148, 216, 0.42);
  background: rgba(255, 255, 255, 0.04);
}

.input-wrap .prefix {
  margin-right: 2px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
  white-space: nowrap;
}

.input-wrap input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: none;
  font-size: 13.5px;
  letter-spacing: -0.005em;
  color: var(--text);
  outline: none;
}

.input-wrap input::placeholder { color: var(--faint); }

.field-invite { overflow: hidden; }

.auth-form.is-pay .field-invite { display: none; }

.auth-submit {
  height: 48px;
  margin-top: 6px;
}

.auth-form .claim-note {
  margin-top: 2px;
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.auth-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--dim);
}

.auth-foot a { color: var(--text-soft); }
.auth-foot a:hover { color: var(--purple-soft); }

.auth-terms {
  margin-top: 14px;
  font-size: 10px;
  line-height: 1.6;
  color: var(--faint);
}

/* --- crypto checkout (mock) ------------------------------ */

.auth-panel.is-checkout .auth-head,
.auth-panel.is-checkout .auth-choice,
.auth-panel.is-checkout .auth-form,
.auth-panel.is-checkout .auth-foot,
.auth-panel.is-checkout .auth-terms { display: none; }

.crypto {
  display: grid;
  gap: 16px;
}

.crypto[hidden] { display: none; }

.crypto-head h2 {
  margin-top: 10px;
  font-size: 25px;
  font-weight: 550;
  letter-spacing: -0.04em;
}

.crypto-head p {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.crypto-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.crypto-kicker i {
  font-style: normal;
  padding: 3px 7px;
  border: 1px solid rgba(168, 148, 216, 0.26);
  border-radius: 999px;
  font-size: 8px;
  letter-spacing: 0.1em;
  color: #a495c9;
}

.crypto-assets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.crypto-asset {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.12);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.22s var(--ease),
    background 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}

.crypto-asset:hover { background: rgba(255, 255, 255, 0.04); }

.crypto-asset.is-on {
  border-color: rgba(168, 148, 216, 0.46);
  background: linear-gradient(160deg, rgba(168, 148, 216, 0.13), rgba(255, 255, 255, 0.018));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.crypto-asset b {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-soft);
}

.crypto-asset small {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.crypto-body {
  padding: 13px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.018);
}

.crypto-details {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.crypto-row > span {
  display: block;
  margin-bottom: 3px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.crypto-row b {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.crypto-addr {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.crypto-addr code {
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  color: var(--text-soft);
  overflow-wrap: anywhere;
}

.crypto-copy {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--dim);
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.crypto-copy:hover {
  color: var(--text-soft);
  border-color: var(--line-3);
  background: rgba(255, 255, 255, 0.14);
}

.crypto-copy.is-copied {
  color: var(--purple-soft);
  border-color: rgba(168, 148, 216, 0.46);
}

.crypto-copy svg { width: 13px; height: 13px; }

.crypto-warn {
  font-size: 9.5px;
  line-height: 1.55;
  color: var(--faint);
}

.crypto-instructions {
  display: grid;
  gap: 7px;
  padding: 13px;
  border: 1px solid rgba(168, 148, 216, 0.2);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(168, 148, 216, 0.07), rgba(255, 255, 255, 0.015));
}

.crypto-instructions p {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--text-soft);
}

.crypto-instructions p b {
  color: var(--purple-soft);
  font-weight: 600;
}

.crypto-instructions small {
  font-family: var(--mono);
  font-size: 8.5px;
  line-height: 1.5;
  color: var(--faint);
}

.crypto-actions {
  display: grid;
  gap: 8px;
}

.crypto-actions .btn { height: 46px; }

.crypto-back {
  justify-self: start;
  padding: 2px 0;
  border: 0;
  background: none;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.crypto-back:hover { color: var(--text-soft); }

/* ============================================================
   responsive
   ============================================================ */

@media (max-width: 1040px) {
  .auth {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    min-height: 0;
    padding-top: 10px;
  }

  .auth-intro { max-width: 560px; min-width: 0; }

  .auth-lockup { margin-bottom: 22px; }

  .auth-note { display: none; }

  .auth-panel { width: 100%; max-width: 500px; min-width: 0; }
}

@media (max-width: 900px) {
  .section { padding: 92px 0; }

  .faq-wrap {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .faq-wrap .section-head {
    position: static;
    max-width: 560px;
  }

  .tier-row {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
    padding: 30px 10px;
  }

  .tier-row .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 860px) {
  .nav-links, .nav-login, .nav-account { display: none; }
  .menu-btn { display: flex; }

  .hero { padding-top: 138px; }
}

@media (max-width: 760px) {
  .section { padding: 82px 0; }

  .section-head h2 { font-size: clamp(28px, 6vw, 38px); }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand { grid-column: 1 / -1; }

  .final { padding: 100px 24px; }

  .tier-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .tier-feats { grid-template-columns: 1fr 1fr; }

  .tier-amount { font-size: 40px; }

  .tier-row .btn { width: 100%; }
}

@media (max-width: 640px) {
  .hero { min-height: 0; padding: 132px 20px 76px; }

  .hero-sub { font-size: 15px; }

  .claim-bar { margin-top: 28px; }

  .embed-grid { grid-template-columns: 1fr; }

  .profile-cover { height: 148px; }

  .profile-main { padding-bottom: 56px; }

  .auth-panel { padding: 24px; }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .nav { top: 10px; width: calc(100% - 20px); }
  .nav-inner { height: 56px; padding-left: 12px; gap: 10px; }
  .brand-mark { font-size: 28px; width: 30px; height: 34px; }
  .brand-word { font-size: 17.5px; }
  .brand-lg .brand-mark { font-size: 34px; width: 36px; height: 40px; }
  .brand-lg .brand-word { font-size: 20px; }

  .hero-lockup { gap: 11px; }
  .hero-mark { font-size: clamp(72px, 19vw, 92px); }
  .hero-word { font-size: clamp(54px, 15.4vw, 70px); }

  .claim-bar {
    height: 56px;
    padding: 5px 5px 5px 14px;
    gap: 8px;
    border-radius: 14px;
  }

  .claim-prefix { font-size: 10.5px; }
  .claim-field input { font-size: 14.5px; }
  .cycle-word { font-size: 13px; }
  .claim-btn { height: 46px; padding: 0 14px; font-size: 13px; gap: 5px; }
  .claim-btn svg { width: 13px; height: 13px; }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }

  .ledger { margin-top: 36px; }
  .tier-feats { grid-template-columns: 1fr; gap: 8px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .profile-nav { padding: 20px; }
  .profile-nav .btn { padding: 0 12px; font-size: 12px; }
  .profile-cover { height: 132px; }
  .profile-identity { padding: 0 12px; }
  .profile-name { font-size: 29px; }

  .auth-nav { padding: 20px; }
  .auth-panel { padding: 20px; border-radius: 18px; }
  .auth-choice { grid-template-columns: 1fr; }
  .choice { padding: 12px 13px; }
  .auth { padding: 8px 20px 56px; }
  .auth-lockup { gap: 11px; }
  .auth-mark { font-size: clamp(58px, 17vw, 72px); }
  .auth-word { font-size: clamp(38px, 11.5vw, 50px); }
  .auth-points { margin-top: 22px; }
}

@media (max-width: 390px) {
  .claim-prefix { font-size: 9.5px; }
  .claim-field input { font-size: 13.5px; }
  .cycle-word { font-size: 12px; }
  .claim-btn { padding: 0 12px; }
  .claim-btn svg { display: none; }
  .tier-amount { font-size: 36px; }
}


/* ============================================================
   dashboard + public page
   ============================================================ */

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.field-hint {
  margin: 7px 0 0;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: var(--faint);
}

.field-hint b { color: var(--dim); font-weight: 500; }

.field-error {
  margin: -4px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: #c99a9a;
}

/* --- dashboard shell ------------------------------------- */

.page-dash { background: var(--bg); }

.dash-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 14px max(24px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(6, 5, 9, 0.78);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.dash-crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

.dash-dot {
  width: 5px;
  height: 5px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--purple-soft);
  box-shadow: 0 0 10px rgba(201, 188, 232, 0.5);
}

.dash-crumb code,
.phone-bar code {
  min-width: 0;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: var(--dim);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-nav-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.dash-status {
  margin-right: 3px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.dash-status[data-tone="ok"] { color: #a9c6b4; }
.dash-status[data-tone="busy"] { color: var(--dim); }
.dash-status[data-tone="error"] { color: #c99a9a; }

.dash {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 28px 110px;
}

.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 376px;
  gap: 34px;
  align-items: start;
}

.dash-editor {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.dash-head { padding: 4px 2px 8px; }

.dash-head h1 {
  margin-top: 8px;
  font-size: clamp(30px, 3.6vw, 40px);
  font-weight: 570;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.dash-head h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.06em;
  letter-spacing: -0.01em;
  color: var(--purple-soft);
}

.dash-head > p {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--dim);
}

.dash-head > p code {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.dash-progress {
  margin-top: 22px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.018);
}

.dash-progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.dash-progress-copy b { color: var(--dim); font-weight: 500; }

.dash-progress-bar {
  height: 3px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.075);
}

.dash-progress-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--purple-deep), var(--purple-soft));
  transition: width 0.35s var(--ease);
}

/* --- panels ---------------------------------------------- */

.panel {
  padding: 21px 22px 22px;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.008)),
    var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.panel-head h2 {
  font-size: 15.5px;
  font-weight: 560;
  letter-spacing: -0.025em;
}

.panel-note {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}

.dash-form {
  display: grid;
  gap: 13px;
  margin-top: 17px;
}

.dash-row { display: grid; gap: 12px; }

.dash-row-two { grid-template-columns: 1fr 1fr; }
.dash-row-three { grid-template-columns: 0.8fr 1.4fr 0.6fr; }

.field > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dim);
}

.field > span i {
  font-style: normal;
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--faint);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--font);
  font-size: 13px;
  letter-spacing: -0.005em;
  line-height: 1.5;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.field input,
.field select { height: 42px; padding: 0 12px; }

.field textarea {
  min-height: 82px;
  padding: 11px 12px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--faint); }

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(168, 148, 216, 0.42);
  background: rgba(255, 255, 255, 0.04);
}

.field input.is-invalid {
  border-color: rgba(201, 154, 154, 0.5);
}

.field .input-wrap {
  height: 42px;
  border-radius: 10px;
}

.field .input-wrap input {
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}

/* avatar */

.avatar-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-top: 4px;
}

.avatar-pick {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background:
    radial-gradient(circle at 30% 22%, rgba(168, 148, 216, 0.2), transparent 62%),
    var(--panel-3);
  font-family: var(--kanji);
  font-size: 30px;
  color: var(--purple-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.avatar-pick img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-copy { min-width: 0; }

.avatar-copy b {
  display: block;
  font-size: 12.5px;
  font-weight: 550;
  letter-spacing: -0.01em;
}

.avatar-copy p {
  max-width: 40ch;
  margin-top: 3px;
  font-size: 10.5px;
  line-height: 1.55;
  color: var(--dim);
}

.dash-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.dash-inline .btn { height: 34px; padding: 0 12px; font-size: 12px; }

.file-btn { cursor: pointer; }

/* themes */

.theme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.theme-swatch {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.014);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.theme-swatch:hover { border-color: var(--line-2); background: rgba(255, 255, 255, 0.14); }

.theme-swatch.is-on {
  border-color: rgba(168, 148, 216, 0.42);
  background: rgba(168, 148, 216, 0.075);
}

.theme-chip {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.5), transparent 58%),
    var(--chip, var(--purple));
  box-shadow: inset 0 0 0 3px rgba(8, 6, 14, 0.55);
}

.theme-copy { min-width: 0; }

.theme-copy b {
  display: block;
  font-size: 12px;
  font-weight: 520;
  letter-spacing: -0.01em;
  color: var(--text-soft);
}

.theme-copy small {
  display: block;
  margin-top: 1px;
  overflow: hidden;
  font-size: 9px;
  color: var(--faint);
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* switches */

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.theme-grid + .switch-row { margin-top: 18px; }

.switch-row > div { min-width: 0; }

.switch-row b {
  display: block;
  font-size: 12.5px;
  font-weight: 540;
  letter-spacing: -0.01em;
}

.switch-row p {
  margin-top: 3px;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--dim);
}

.switch {
  position: relative;
  display: block;
  width: 40px;
  height: 23px;
  flex-shrink: 0;
  cursor: pointer;
}

.switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch span {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--dim);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.switch input:checked + span {
  border-color: rgba(168, 148, 216, 0.45);
  background: rgba(168, 148, 216, 0.28);
}

.switch input:checked + span::after {
  background: var(--purple-soft);
  transform: translateX(17px);
}

.switch input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(168, 148, 216, 0.22);
}

/* row lists */

.row-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.row-item {
  padding: 10px 11px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.014);
}

.row-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.row-num {
  margin-right: 2px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  color: var(--faint);
}
.row-brand-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.row-brand-icon svg,
.row-brand-icon img,
.row-brand-icon .icon-glyph {
  display: block;
  width: 22px;
  height: 22px;
  font-size: 18px;
  line-height: 1;
}

.row-select {
  height: 26px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-2);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  outline: none;
  cursor: pointer;
}

.row-select:focus { border-color: rgba(168, 148, 216, 0.42); }

.row-tools {
  display: flex;
  gap: 1px;
  margin-left: auto;
}

.row-tools button {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 6px;
  background: none;
  font-size: 13px;
  line-height: 1;
  color: var(--faint);
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.row-tools button:hover { background: rgba(255, 255, 255, 0.14); color: var(--text-soft); }
.row-tools button:disabled { opacity: 0.25; cursor: default; background: none; }
.row-tools button[data-act="remove"]:hover { color: #d7a3a3; background: rgba(160, 90, 90, 0.12); }

/* Console rows use word labels, not the compact icon buttons in Studio. */
.page-owner .row-head,
.page-mod .row-head { flex-wrap: wrap; row-gap: 6px; }
.page-owner .row-tools button,
.page-mod .row-tools button {
  width: auto;
  min-width: 26px;
  height: 26px;
  padding: 0 9px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.row-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 9px;
}

.field-mini > span { font-size: 8px; margin-bottom: 5px; }

.field-mini input {
  height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

.color-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.color-row .field-mini {
  flex: 1 1 80px;
  min-width: 60px;
}

.field-mini input[type="color"] {
  width: 100%;
  height: 38px;
  padding: 2px 4px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.field-mini input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.field-mini input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 6px;
}

.color-sub-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 18px 0 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.color-sub-head b {
  font-size: 12px;
  font-weight: 550;
  color: var(--text-soft);
}

.color-sub-head span {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--faint);
}

.panel-subhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.panel-subhead b {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 550;
}

.panel-subhead span {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--faint);
  white-space: nowrap;
}

.finish-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--line-2);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--purple-soft);
  border: 2px solid #060509;
  box-shadow: 0 0 10px rgba(168, 148, 216, 0.5);
  cursor: pointer;
  transition: transform 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.row-item[data-kind="embed"] .row-fields > .field:last-child {
  grid-column: 1 / -1;
}

.panel-empty {
  margin-top: 14px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--faint);
}

.add-row {
  margin-top: 12px;
  height: 36px;
  padding: 0 13px;
  border-style: dashed;
  font-size: 12px;
}

.add-row svg { width: 13px; height: 13px; }

/* sharing + account */

.share-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 15px;
}

.share-row code {
  flex: 1;
  min-width: 0;
  padding: 11px 13px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--purple-soft);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-row .btn { height: 38px; flex-shrink: 0; }

.panel-help {
  max-width: 62ch;
  margin-top: 10px;
  font-size: 10.5px;
  line-height: 1.65;
  color: var(--faint);
}

.title-icon-field { max-width: 96px; }
.title-icon-field input { text-align: center; }

.title-icon-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.title-icon-btn {
  min-width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.018);
  color: var(--text-soft);
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.2s var(--ease), border-color 0.2s, background 0.2s;
}
.title-icon-btn:hover { transform: translateY(-2px); border-color: rgba(201,188,232,0.38); }
.title-icon-btn.is-active {
  border-color: rgba(201,188,232,0.55);
  background: rgba(168,148,216,0.16);
  color: var(--text);
  box-shadow: 0 0 18px rgba(201,188,232,0.12);
}
.title-choice {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 8px;
}
.title-choice span { color: var(--text); font-size: 12.5px; font-weight: 600; }
.title-choice i { color: var(--faint); font-size: 9px; font-style: normal; letter-spacing: 0.12em; text-transform: uppercase; }

.invite-code {
  padding: 0;
  border: 0;
  background: none;
  color: var(--purple-soft);
  font-family: var(--mono);
  font-size: 11px;
  cursor: pointer;
}
.invite-code:hover { color: var(--text-soft); }

.row-plan {
  margin-left: auto;
  margin-right: 10px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.row-plan.is-paid { color: var(--purple-soft); }

.title-symbol {
  width: 26px;
  font-size: 17px;
  color: var(--purple-soft);
}

.title-symbol-img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.title-png-row { margin-top: 10px; }
.title-png-preview { width: 64px; height: 64px; }
.title-png-preview img { width: 100%; height: 100%; object-fit: contain; }
.title-editor input[type="color"] { width: 100%; height: 34px; padding: 2px; }

.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.account-row:first-of-type { margin-top: 12px; }

.account-row b {
  display: block;
  font-size: 12.5px;
  font-weight: 540;
  letter-spacing: -0.01em;
}

.account-row b span { color: var(--purple-soft); }

.account-row p {
  margin-top: 3px;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--dim);
}

.account-danger #resetPage { color: #c99a9a; }
.account-danger #resetPage:hover { border-color: rgba(201, 154, 154, 0.35); }

/* --- live preview ---------------------------------------- */

.dash-side {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 14px;
  min-width: 0;
}

.phone {
  padding: 9px;
  border: 1px solid var(--line-2);
  border-radius: 29px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.012) 38%),
    var(--panel-2);
  box-shadow:
    0 40px 90px -46px rgba(0, 0, 0, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.phone-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 4px 6px 10px;
}

.phone-dots { display: flex; gap: 3px; }

.phone-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--faint);
}

.phone-bar code { font-size: 9px; color: var(--faint); }

.phone-screen {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: var(--bg);
}

.phone-screen iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--bg);
}

.side-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--faint);
}

.side-note .dot {
  width: 4px;
  height: 4px;
  box-shadow: 0 0 9px rgba(201, 188, 232, 0.55);
}

.side-actions { display: grid; gap: 8px; }

/* --- locked state ---------------------------------------- */

.dash-locked {
  max-width: 520px;
  margin: 46px auto 0;
  padding: 42px 34px;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008)),
    var(--panel);
  text-align: center;
}

.dash-locked-mark {
  font-size: 52px;
  opacity: 0.85;
}

.dash-locked h1 {
  margin-top: 16px;
  font-size: 26px;
  font-weight: 560;
  letter-spacing: -0.04em;
}

.dash-locked p {
  max-width: 42ch;
  margin: 12px auto 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

.dash-locked-actions {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 24px;
}

/* ============================================================
   public page extras (p.html)
   ============================================================ */

.profile-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 11px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.profile-status .dot {
  width: 4px;
  height: 4px;
  box-shadow: 0 0 9px rgba(201, 188, 232, 0.6);
}

.avatar-mark {
  display: grid;
  place-items: center;
  font-family: var(--kanji);
  font-size: 48px;
  color: var(--purple-soft);
  background:
    radial-gradient(circle at 30% 24%, rgba(168, 148, 216, 0.24), transparent 62%),
    var(--panel-3);
}

.embed-copy { min-width: 0; }

.embed-copy b {
  display: block;
  font-size: 13px;
  font-weight: 550;
  letter-spacing: -0.015em;
}

.embed-copy span {
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--dim);
}

.page-empty {
  padding: 52px 20px 40px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-xl);
  text-align: center;
}

.page-empty-mark {
  display: block;
  font-family: var(--kanji);
  font-size: 52px;
  line-height: 1;
  color: var(--purple-soft);
  opacity: 0.6;
}

.page-empty h1 {
  margin-top: 16px;
  font-size: 25px;
  font-weight: 560;
  letter-spacing: -0.04em;
}

.page-empty p {
  max-width: 42ch;
  margin: 10px auto 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

.page-empty p code {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--purple-soft);
}

.page-empty .btn { margin-top: 20px; }
.page-empty .btn + .btn { margin-left: 7px; }

body.no-watermark .cover-kanji { display: none; }

body.is-embed .profile-nav { display: none; }

body.is-embed .profile-main {
  max-width: none;
  padding: 14px 13px 34px;
}

body.is-embed .profile-cover { height: 118px; border-radius: 17px; }
body.is-embed .cover-kanji { font-size: 124px; bottom: -34px; }
body.is-embed .profile-identity { margin-top: -46px; padding: 0 14px; }

body.is-embed .avatar-wrap,
body.is-embed .profile-avatar,
body.is-embed .avatar-mark {
  width: 88px;
  height: 88px;
}

body.is-embed .profile-avatar { border-radius: 24px; }
body.is-embed .avatar-mark { font-size: 38px; }
body.is-embed .avatar-seal { width: 24px; height: 24px; font-size: 10px; right: -6px; bottom: -6px; }
body.is-embed .profile-name { margin-top: 12px; font-size: 27px; }
body.is-embed .profile-bio { font-size: 12px; }
body.is-embed .profile-body { gap: 28px; margin-top: 34px; }
body.is-embed .embed-grid { grid-template-columns: 1fr; }
body.is-embed .profile-foot { display: none; }
body.is-embed .profile-handle { pointer-events: none; }

/* ============================================================
   themes (public page)
   ============================================================ */

body.theme-noir {
  --purple: #a894d8;
  --purple-soft: #c9bce8;
  --purple-deep: #6d5a99;
  --bg: #060509;
  --bg-2: #0a0710;
  --amb-1: #14101e;
  --amb-2: #0a0710;
}

body.theme-violet {
  --purple: #b39ae6;
  --purple-soft: #d6c6f1;
  --purple-deep: #7a60ad;
  --bg: #090612;
  --bg-2: #120c20;
  --amb-1: #1c1230;
  --amb-2: #0f0a1d;
}

body.theme-slate {
  --purple: #a9b0c6;
  --purple-soft: #ccd2e2;
  --purple-deep: #6f778c;
  --bg: #07080a;
  --bg-2: #0d0f12;
  --amb-1: #171a20;
  --amb-2: #0d0f12;
}

body.theme-ink {
  --purple: #9db4d8;
  --purple-soft: #c6d4ea;
  --purple-deep: #64789c;
  --bg: #05080f;
  --bg-2: #0a101b;
  --amb-1: #121d30;
  --amb-2: #0a101b;
}

/* ============================================================
   dashboard responsive
   ============================================================ */

@media (max-width: 1080px) {
  .dash-grid { grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; }
  .dash { padding-left: 22px; padding-right: 22px; }
  .dash-nav { padding-left: 22px; padding-right: 22px; }
}

@media (max-width: 900px) {
  .dash-grid { grid-template-columns: 1fr; }
  .dash-side { position: static; max-width: 420px; width: 100%; margin: 0 auto; }
  .dash-crumb { display: none; }
  .phone-screen { aspect-ratio: 9 / 15.5; }
}

@media (max-width: 640px) {
  .dash-nav { padding: 12px 16px; gap: 10px; }
  .dash-nav .brand-word { font-size: 18px; }
  .dash-nav-actions { gap: 6px; }
  .dash-nav-actions .btn-sm { height: 36px; padding: 0 11px; font-size: 12px; }
  .dash-status { display: none; }
  .dash { padding: 26px 16px 70px; }
  .dash-head h1 { font-size: 31px; }
  .panel { padding: 17px 16px 18px; border-radius: 16px; }
  .dash-row-two, .dash-row-three { grid-template-columns: 1fr; }
  .theme-grid { grid-template-columns: 1fr 1fr; }
  .row-fields { grid-template-columns: 1fr; }
  .row-item[data-kind="embed"] .row-fields > .field:last-child { grid-column: auto; }
  .share-row { flex-direction: column; align-items: stretch; }
  .share-row .btn { width: 100%; }
  .account-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .account-row .btn { width: 100%; }
  .avatar-row { align-items: flex-start; }
  .dash-locked { margin-top: 26px; padding: 32px 20px; }
  .dash-locked-actions { flex-direction: column; }
  .side-actions .btn { width: 100%; }
}

@media (max-width: 520px) {
  .profile-nav { padding: 20px; }
  .profile-nav .btn { padding: 0 12px; font-size: 12px; }
  .profile-nav-actions { gap: 6px; }
  .profile-cover { height: 132px; }
  .profile-identity { padding: 0 12px; }
  .profile-name { font-size: 29px; }
  .embed-grid { grid-template-columns: 1fr; }
  .page-empty { padding: 40px 16px 32px; }
}

.avatar-seal-left {
  left: -7px;
  right: auto;
}

.avatar-title {
  position: absolute;
  right: -7px;
  bottom: -7px;
  display: inline-flex;
  align-items: center;
  max-width: 140px;
  padding: 0 9px;
  height: 28px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: #0d0a14;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 8px 18px -8px #000;
}

.title-row {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.switch-row-inline {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.014);
}

.dc-stats {
  display: flex;
  gap: 14px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.22);
}

.dc-stats span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  color: var(--dim);
}

.dc-stats b {
  color: var(--text-soft);
  font-weight: 550;
  margin-right: 4px;
}

/* ---------- banner / background media + Discord card details ---------- */

.profile-cover {
  background-size: cover;
  background-position: center;
}

.cover-off .profile-hero {
  padding-top: 0;
}

.profile-identity.identity-solid {
  margin-top: 0;
  padding: 24px 22px 26px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  background: rgba(13, 10, 20, 0.94);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.embed-top-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.embed-server-img {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  object-fit: cover;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.embed-server-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--kanji);
  font-size: 17px;
  color: var(--purple-soft);
}

.embed-discord .embed-copy .dc-stats {
  margin-top: 10px;
}

.media-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.014);
}

.media-preview {
  width: 96px;
  height: 56px;
  flex: 0 0 96px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: #0d0a14;
}

.media-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-copy {
  min-width: 0;
}

.media-copy b {
  display: block;
  font-size: 12px;
  font-weight: 560;
  color: var(--text);
}

.media-copy p {
  margin: 3px 0 9px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--dim);
}

.embed-options {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.mini-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-soft);
  cursor: pointer;
}

.mini-check input {
  width: 14px;
  height: 14px;
  accent-color: var(--purple);
}

#bannerControls,
#backgroundControls {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

#bannerControls[hidden],
#backgroundControls[hidden],
.media-preview[hidden] {
  display: none !important;
}

/* ---------- video banners / backgrounds + view counter ---------- */

/* The cover's pseudo-elements/video must stay inside the cover stacking context
   so they cannot paint over the overlapping identity block and avatar. */
.profile-cover::after { z-index: 1; }
.cover-kanji { z-index: 2; }

.profile-cover-video,
.profile-cover-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
}

.ambient-video,
.ambient-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.video-frost {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.ambient canvas { z-index: 2; }
.ambient-fade { z-index: 3; }

.embed-person {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.embed-person .embed-server-img {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  border-radius: 50%;
}

.embed-person-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.embed-person-copy b,
.embed-person-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.view-counter {
  position: fixed;
  left: 18px;
  bottom: 16px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 8, 15, 0.82);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.02em;
  pointer-events: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.view-eye {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  color: var(--purple-soft);
}

body.is-embed .view-counter { display: none; }

/* Background media is replaced inside this single host on every render. */
.ambient-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* Keep an uploaded GIF/image readable instead of burying it under the silk
   canvas and the page vignette. */
.has-bg-media .ambient canvas { opacity: 0.2; }
.has-bg-media .ambient-fade { opacity: 0.45; }

/* ---------- banner-off: centered identity + links, embeds underneath ------ */

.cover-off .profile-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 20px 0 12px;
}

.cover-off .identity-solid {
  width: 100%;
  max-width: 540px;
}

.cover-off .identity-solid .p-section {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.cover-off .identity-solid .p-label { margin-bottom: 14px; }

.cover-off .profile-empty-wrap {
  max-width: 540px;
  margin: 18px auto 0;
}

.cover-off .profile-embeds {
  max-width: 640px;
  margin: 10px auto 0;
}

.cover-off .profile-embeds .p-section { margin-top: 0; }

@media (max-width: 560px) {
  .embed-top-right .embed-type { display: none; }
  .media-row { align-items: flex-start; }
  .profile-identity.identity-solid { padding: 20px 16px 22px; }
  .view-counter { left: 12px; bottom: 10px; font-size: 9px; }
}

/* ============================================================
   Studio — wide logo-triggered editor
   ============================================================ */

.studio-toggle {
  padding: 4px 8px 4px 4px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.24s var(--ease), background 0.24s var(--ease);
}
.studio-toggle:hover { border-color: var(--line-2); background: rgba(255,255,255,0.025); }
.studio-chevron {
  width: 16px; height: 16px;
  margin-left: 2px;
  color: var(--dim);
  transition: transform 0.35s var(--ease), color 0.24s var(--ease);
}
.studio-chevron svg { width: 100%; height: 100%; }
.studio-toggle[aria-expanded="true"] .studio-chevron { transform: rotate(180deg); color: var(--purple-soft); }

.dash-closed-hint {
  grid-column: 1 / -1;
  padding: 90px 24px;
  text-align: center;
  color: var(--text-soft);
}
.dash-closed-hint .dash-locked-mark { display: block; margin: 0 auto 18px; font-size: 46px; opacity: 0.7; }
.dash-closed-hint h1 { font-family: var(--serif); font-size: 34px; font-weight: 400; margin-bottom: 8px; }
.dash-closed-hint p { color: var(--muted); }

.studio-scrim {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(3, 2, 6, 0.74);
  backdrop-filter: blur(10px) saturate(0.85);
  -webkit-backdrop-filter: blur(10px) saturate(0.85);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.42s var(--ease);
}
.studio-layer {
  position: fixed;
  inset: 0;
  z-index: 61;
  display: grid;
  place-items: center;
  padding: clamp(10px, 2vw, 28px);
  visibility: hidden;
  pointer-events: none;
}
body.studio-open { overflow: hidden; }
body.studio-open .dash { visibility: hidden; }
body.studio-open .studio-scrim { opacity: 1; pointer-events: auto; }
body.studio-open .studio-layer { visibility: visible; pointer-events: auto; }

.studio-shell {
  position: relative;
  width: min(1500px, 100%);
  height: min(940px, 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 24px;
  background:
    radial-gradient(70% 45% at 12% -10%, rgba(109, 90, 153, 0.18), transparent 68%),
    linear-gradient(180deg, rgba(18, 14, 28, 0.98), rgba(8, 6, 13, 0.99));
  box-shadow: 0 40px 120px rgba(0,0,0,0.62), inset 0 1px 0 rgba(255,255,255,0.04);
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  transition: opacity 0.38s var(--ease), transform 0.52s var(--ease);
}
body.studio-open .studio-shell { opacity: 1; transform: none; }

.studio-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  padding: 16px 22px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 8, 16, 0.4);
}
.studio-brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.studio-brand .brand-mark { width: 34px; height: 38px; font-size: 30px; }
.studio-brand .brand-word { font-size: 20px; }
.studio-divider { width: 1px; height: 22px; background: var(--line-2); margin: 0 3px; }
.studio-kicker {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--purple-soft);
}
.studio-top-meta { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.studio-address {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.018);
  white-space: nowrap;
}
.studio-progress { width: 132px; padding: 0; }
.studio-progress .dash-progress-copy { margin-bottom: 5px; font-size: 8px; }
.studio-progress .dash-progress-bar { height: 3px; }
.studio-close {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.studio-close svg { width: 15px; height: 15px; }
.studio-close:hover { color: var(--text); border-color: var(--line-3); transform: rotate(90deg); }

.studio-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 22px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.studio-tabs::-webkit-scrollbar { display: none; }
.studio-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--dim);
  font-size: 12.5px;
  font-weight: 520;
  cursor: pointer;
  transition: color 0.22s, background 0.22s, border-color 0.22s, transform 0.22s var(--ease);
}
.studio-tab svg { width: 15px; height: 15px; }
.studio-tab:hover { color: var(--text-soft); background: rgba(255,255,255,0.03); }
.studio-tab.is-active {
  color: var(--text);
  border-color: rgba(168, 148, 216, 0.32);
  background: linear-gradient(180deg, rgba(168,148,216,0.16), rgba(168,148,216,0.06));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.studio-tab:active { transform: scale(0.98); }

.studio-main {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.studio-workspace {
  min-width: 0;
  overflow-y: auto;
  padding: 20px 22px 46px;
  scrollbar-color: var(--line-3) transparent;
  scrollbar-width: thin;
}
/* Kanji logo is the only sidebar trigger */
.studio-menu-trigger {
  position: relative;
  z-index: 8;
  flex: 0 0 auto;
  width: 66px;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 0;
  border: 0;
  border-right: 1px solid var(--line);
  background: rgba(255,255,255,0.015);
  color: var(--text);
  cursor: pointer;
  transition: background 0.22s var(--ease);
}
.studio-menu-trigger:hover { background: rgba(168,148,216,0.08); }
.studio-menu-trigger .brand-mark { width: 32px; height: 34px; font-size: 27px; }
.studio-top-title { display: grid; gap: 2px; min-width: 0; }
.studio-top-title .studio-kicker { font-size: 9px; }
.studio-section-label { font-size: 15px; font-weight: 620; letter-spacing: -0.01em; }

.studio-menu-scrim {
  position: absolute;
  inset: var(--studio-top-h, 92px) 0 0;
  z-index: 5;
  background: rgba(4, 3, 8, 0.62);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
body.studio-menu-open .studio-menu-scrim { opacity: 1; pointer-events: auto; }

.studio-sidebar {
  position: absolute;
  top: var(--studio-top-h, 92px);
  bottom: 0;
  left: 0;
  z-index: 6;
  width: 262px;
  padding: 16px 14px 18px;
  overflow-y: auto;
  border-right: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(16, 12, 25, 0.99), rgba(8, 6, 13, 0.99));
  box-shadow: 18px 0 50px rgba(0,0,0,0.45);
  transform: translateX(-104%);
  transition: transform 0.4s var(--ease);
}
body.studio-menu-open .studio-sidebar { transform: none; }
.studio-sidebar-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 8px 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.studio-sidebar-head .brand-mark { width: 30px; height: 34px; font-size: 25px; }
.studio-sidebar-head div { display: grid; }
.studio-sidebar-head b { font-size: 15px; letter-spacing: 0.02em; }
.studio-sidebar-head small { font-family: var(--mono); font-size: 8px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); }
.studio-nav-group { display: grid; gap: 3px; margin-bottom: 18px; }
.studio-nav-label {
  padding: 0 10px 6px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}
.studio-sidebar .studio-tab {
  width: 100%;
  justify-content: flex-start;
  padding: 10px 11px;
  border-radius: 10px;
  border-color: transparent;
  font-size: 12.5px;
  text-decoration: none;
}
.studio-sidebar .studio-tab svg { width: 16px; height: 16px; color: var(--dim); }
.studio-sidebar .studio-tab:hover { background: rgba(255,255,255,0.035); }
.studio-sidebar .studio-tab.is-active {
  color: var(--text);
  border-color: rgba(168,148,216,0.3);
  background: linear-gradient(90deg, rgba(168,148,216,0.18), rgba(168,148,216,0.04));
  box-shadow: inset 2px 0 0 var(--purple-soft);
}
.studio-sidebar .studio-tab.is-active svg { color: var(--purple-soft); }
.studio-sidebar-foot {
  display: grid;
  gap: 5px;
  margin-top: 8px;
  padding: 12px 10px 0;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 10px;
}
.studio-sidebar-foot code { color: var(--muted); font-size: 9px; }

/* Account landing page */
.account-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px;
  background:
    radial-gradient(70% 120% at 0% 0%, rgba(168,148,216,0.16), transparent 70%),
    rgba(255,255,255,0.014);
}
.account-hero-main { display: flex; align-items: center; gap: 18px; min-width: 0; }
.account-avatar {
  flex: 0 0 auto;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(201,188,232,0.24);
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  font-size: 40px;
  color: var(--purple-soft);
}
.account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-hero-copy { display: grid; gap: 3px; min-width: 0; }
.eyebrow {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}
.account-hero-copy h1 { font-size: 27px; font-weight: 620; letter-spacing: -0.02em; }
.account-hero-copy code { color: var(--muted); font-size: 11px; }
.account-plan-badge {
  flex: 0 0 auto;
  padding: 8px 13px;
  border: 1px solid rgba(168,148,216,0.32);
  border-radius: 999px;
  background: rgba(168,148,216,0.1);
  color: var(--purple-soft);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.account-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.account-stat { display: grid; gap: 5px; padding: 15px 16px; }
.account-stat span { color: var(--faint); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; }
.account-stat b { font-size: 22px; font-weight: 600; }
.account-nav-hint {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding: 15px 17px;
  border-left: 2px solid rgba(201,188,232,0.36);
}
.account-nav-hint b { font-size: 12.5px; }
.account-nav-hint p { color: var(--muted); font-size: 10px; }
.account-note { margin-top: 14px; }
.account-note .panel-help { margin: 0 0 12px; }

/* Paid access */
.premium-hero {
  grid-column: span 1;
  background: radial-gradient(80% 70% at 0% 0%, rgba(168,148,216,0.18), transparent 70%), rgba(255,255,255,0.014);
}
.premium-lead { max-width: 42ch; color: var(--text-soft); font-size: 12.5px; line-height: 1.55; }
.premium-price { display: flex; align-items: baseline; gap: 9px; margin: 18px 0 12px; }
.premium-price b { font-size: 42px; font-weight: 600; letter-spacing: -0.03em; }
.premium-price span { color: var(--faint); font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; }
.benefit-list { display: grid; gap: 9px; margin: 14px 0 16px; list-style: none; }
.benefit-list li { display: flex; align-items: center; gap: 10px; color: var(--text-soft); font-size: 12px; }
.benefit-list i {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(168,148,216,0.14);
  color: var(--purple-soft);
  font-size: 10px;
  font-style: normal;
}
.premium-addresses { display: grid; gap: 8px; margin-top: 14px; }
.premium-address {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,0.015);
}
.premium-address img { width: 20px; height: 20px; object-fit: contain; flex: 0 0 auto; }
.premium-address div { display: grid; gap: 2px; min-width: 0; }
.premium-address b { font-size: 10px; letter-spacing: 0.08em; }
.premium-address code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 9px; }
.premium-address .btn { margin-left: auto; flex: 0 0 auto; }

/* Full-page preview */
.full-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.full-preview-bar > div { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.full-preview-bar b { font-size: 14px; }
.full-preview-bar code { color: var(--muted); font-size: 10px; }
.full-preview-stage {
  position: relative;
  width: 100%;
  height: calc(100vh - 210px);
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: #050408;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.full-preview-stage iframe { display: block; width: 100%; height: 100%; border: 0; background: #050408; }
.full-preview-note { margin-top: 10px; color: var(--faint); font-size: 10px; text-align: center; }

.studio-panel[hidden] { display: none !important; }
.studio-panel.is-active { animation: studioPanelIn 0.4s var(--ease) both; }
@keyframes studioPanelIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.studio-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.studio-stack { display: grid; gap: 16px; min-width: 0; }
.studio-look .theme-grid { margin-bottom: 16px; }
.studio-look .color-editor { margin-top: 0; }

.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
  max-height: 330px;
  overflow-y: auto;
  padding-right: 3px;
  scrollbar-width: thin;
}
.platform-group {
  grid-column: 1 / -1;
  margin: 4px 0 -2px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}
.platform-group:first-child { margin-top: 0; }
.platform-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 5px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.018);
  color: var(--muted);
  cursor: pointer;
  transition: transform 0.2s var(--ease), border-color 0.2s, background 0.2s, color 0.2s;
}
.platform-card:hover {
  transform: translateY(-2px);
  color: var(--text);
  border-color: rgba(168,148,216,0.36);
  background: rgba(168,148,216,0.08);
}
.platform-card:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.platform-card .platform-icon {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  color: var(--purple-soft);
}
.platform-card .platform-icon svg,
.platform-card .platform-icon img,
.platform-card .platform-icon .icon-glyph { width: 100%; height: 100%; }
.platform-icon img.platform-img,
.row-brand-icon img { object-fit: contain; }
.platform-card .platform-icon .icon-glyph {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 620;
  line-height: 1;
}
.platform-card span:last-child {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  font-size: 9.5px;
}
.platform-empty { grid-column: 1 / -1; padding: 22px 6px; text-align: center; color: var(--dim); font-size: 11px; }
.studio-search { margin-top: 14px; }
.studio-search input { font-size: 12px; }

.cursor-preview, .audio-preview { min-width: 54px; min-height: 54px; }
.cursor-preview img { width: 26px; height: 26px; object-fit: contain; }
.audio-preview svg { width: 22px; height: 22px; color: var(--purple-soft); }

@media (max-width: 1180px) {
  .platform-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .studio-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-sidebar { width: 240px; }
}
@media (max-width: 640px) {
  .dash-nav { padding: 10px 14px; gap: 8px; }
  .dash-crumb { display: none; }
  .dash-nav-actions { gap: 6px; }
  .studio-layer { padding: 0; }
  .studio-shell { width: 100%; height: 100%; border: 0; border-radius: 0; }
  .studio-top { padding: 12px 14px; }
  .studio-menu-trigger { width: 54px; }
  .studio-menu-trigger .brand-mark { width: 26px; height: 28px; font-size: 22px; }
  .studio-address { display: none; }
  .studio-progress { width: 84px; }
  .studio-sidebar { width: 218px; }
  .studio-workspace { padding: 14px 13px 34px; }
  .account-hero { padding: 18px; align-items: flex-start; }
  .account-hero-main { gap: 12px; }
  .account-avatar { width: 58px; height: 58px; font-size: 32px; }
  .account-hero-copy h1 { font-size: 22px; }
  .account-plan-badge { padding: 6px 9px; font-size: 8px; }
  .account-stat-grid { gap: 8px; }
  .account-stat { padding: 12px; }
  .account-stat b { font-size: 18px; }
  .full-preview-stage { height: calc(100vh - 180px); min-height: 360px; }
  .studio-columns { grid-template-columns: 1fr; }
  .finish-grid { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); max-height: 260px; }
  .dash-row-two, .dash-row-three, .row-fields { grid-template-columns: 1fr; }
}

/* ============================================================
   Public extras — click-to-enter, custom cursor, ambient audio
   ============================================================ */

.enter-gate {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(60% 45% at 50% 42%, rgba(168,148,216,0.10), transparent 72%),
    linear-gradient(180deg, rgba(16,12,24,0.82), rgba(4,3,7,0.94));
  backdrop-filter: blur(28px) saturate(0.72);
  -webkit-backdrop-filter: blur(28px) saturate(0.72);
  cursor: pointer;
  animation: gateIn 0.5s var(--ease) both;
}
.enter-gate::after {
  content: "";
  position: absolute;
  inset: -20%;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,255,255,0.045), transparent 70%);
  opacity: 0.7;
}
.enter-gate.is-leaving { opacity: 0; pointer-events: none; transition: opacity 0.38s var(--ease); }
@keyframes gateIn { from { opacity: 0; } to { opacity: 1; } }
.enter-card {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  padding: 40px 28px 34px;
  text-align: center;
  border: 1px solid var(--line-2);
  border-radius: 22px;
  background: rgba(10, 8, 16, 0.52);
  box-shadow: 0 30px 90px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.05);
}
.enter-mark {
  display: block;
  margin-bottom: 14px;
  font-family: var(--kanji);
  font-size: 54px;
  line-height: 1.1;
  color: var(--purple-soft);
  opacity: 0.86;
}
.enter-title {
  font-family: var(--serif);
  font-size: clamp(30px, 6vw, 46px);
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--text);
}
.enter-note { margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.enter-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 26px;
  padding: 11px 20px;
  border: 1px solid rgba(168,148,216,0.34);
  border-radius: 999px;
  background: rgba(168,148,216,0.10);
  color: var(--text);
  font-size: 12px;
  font-weight: 540;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.24s, border-color 0.24s, transform 0.24s var(--ease);
}
.enter-button svg { width: 14px; height: 14px; }
.enter-button:hover { background: rgba(168,148,216,0.18); border-color: rgba(168,148,216,0.55); transform: translateY(-1px); }

body.yami-custom-cursor,
body.yami-custom-cursor * { cursor: var(--yami-cursor) !important; }

.audio-dock[hidden] { display: none !important; }
.audio-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 110;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(280px, calc(100vw - 36px));
  padding: 8px 14px 8px 8px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(12, 9, 18, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 14px 44px rgba(0,0,0,0.42);
  animation: audioDockIn 0.46s var(--ease) both;
}
@keyframes audioDockIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.audio-toggle {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid rgba(168,148,216,0.32);
  border-radius: 50%;
  background: rgba(168,148,216,0.12);
  color: var(--purple-soft);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.audio-toggle:hover { background: rgba(168,148,216,0.2); transform: scale(1.05); }
.audio-toggle svg { width: 14px; height: 14px; }
.audio-icon-pause { display: none; }
.audio-toggle.is-playing .audio-icon-play { display: none; }
.audio-toggle.is-playing .audio-icon-pause { display: block; }
.audio-copy { min-width: 0; }
.audio-copy b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 540;
  color: var(--text-soft);
}
.audio-copy small {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}
@media (max-width: 560px) {
  .audio-dock { right: 12px; bottom: 12px; }
  .enter-card { padding: 32px 20px 28px; }
}

/* ============================================================
   Guns profile shell — 1:1 layout language for public pages.
   Full-bleed background, one centered 40rem stack, circular avatar,
   glow/effects username, presence card, icon socials, widget surfaces.
   ============================================================ */

@font-face {
  font-family: "YamiSatoshi";
  src: url("satoshi.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
  font-style: normal;
}

body.page-profile,
body.page-public {
  --containerWidth: 40rem;
  --containerRadius: 20px;
  --containerPadding: 35px 15px;
  --containerColor: rgba(27, 27, 27, 0);
  --containerBlur: 0px;
  --coverHeight: 168px;
  --frost: 0.28;
  --containerBorder: 2px solid rgba(255, 255, 255, 0.05);
  --containerGradient: none;
  --backgroundColor: #080808;
  --textColor: #ffffff;
  --textColorDarker: rgba(255, 255, 255, 0.5);
  --iconColor: #ffffff;
  --presenceContainerBackground: rgba(255, 255, 255, 0.07);
  --presenceContainerBorder: 2px solid rgba(255, 255, 255, 0.05);
  --presenceUsernameColor: #ffffff;
  --presenceStatusColor: rgba(255, 255, 255, 0.7);
  --avatarBorder: 2px solid rgba(255, 255, 255, 0.16);
  --colorUsernameGlow: 0 0 16.5px rgba(255, 255, 255, 0.72);
  --glowColor: rgba(255, 255, 255, 0.72);
  --glowSoft: rgba(255, 255, 255, 0.12);
  --glowFaint: rgba(255, 255, 255, 0.07);
  --usernameEffects: url("/assets/sparkle-white.gif");
  --gunsDot: url("/assets/guns-dot.png");
  --buttonBackground: rgba(255, 255, 255, 0.22);
  --buttonBackgroundHover: rgba(255, 255, 255, 0.32);
  --buttonBorder: 2px solid rgba(255, 255, 255, 0.12);
  --buttonBorderHover: 2px solid rgba(255, 255, 255, 0.25);
  --buttonRadius: 12px;
  --buttonAlign: center;
  --buttonUrlColor: rgba(255, 255, 255, 0.65);
  --profileViewsContainerBorder: 2px solid rgba(255, 255, 255, 0.3);
  --audioPlayerBar: rgba(255, 255, 255, 0.35);
  --audioIconBackground: rgba(255, 255, 255, 0.2);
  font-family: "YamiSatoshi", sans-serif !important;
  background-color: var(--backgroundColor) !important;
  background-image: none;
  color: var(--textColor);
}

body.page-profile .profile-nav,
body.page-profile .grain,
body.page-profile .ambient canvas,
body.page-profile .ambient-fade {
  display: none !important;
}

body.page-profile .ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--backgroundColor) !important;
  pointer-events: none;
}

body.page-profile .ambient::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: var(--gunsDot);
  background-repeat: repeat;
  background-size: auto;
  opacity: 0.45;
  pointer-events: none;
}

body.page-profile .ambient::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.38);
  pointer-events: none;
}

body.page-profile .ambient-media {
  position: fixed;
  top: calc(var(--coverHeight) * -0.22);
  right: -6vw;
  left: -6vw;
  z-index: 0;
  width: 112vw;
  height: calc(112vh + var(--coverHeight) * 0.22);
  overflow: hidden;
  pointer-events: none;
}

body.page-profile .ambient-video,
body.page-profile .ambient-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

body.page-profile .guns-shade {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.42)),
    rgba(0, 0, 0, var(--frost));
  pointer-events: none;
}

body.page-profile .profile-main {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 100vh;
  max-width: none;
  margin: 0;
  padding: 24px 15px 46px;
}

.guns-page,
.guns-stage {
  width: 100%;
  max-width: var(--containerWidth);
}

.guns-page {
  display: flex;
  justify-content: center;
  margin: auto;
}

.guns-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.guns-surface {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--containerWidth);
  padding: var(--containerPadding);
  border: var(--containerBorder);
  border-radius: var(--containerRadius);
  background-color: var(--containerColor);
  background-image: var(--containerGradient);
  background-origin: border-box;
  backdrop-filter: blur(var(--containerBlur));
  -webkit-backdrop-filter: blur(var(--containerBlur));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26), 0 0 18px var(--glowFaint);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.guns-surface:hover {
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.34), 0 0 26px var(--glowSoft);
}

body.no-card-glow .guns-surface,
body.no-card-glow .guns-surface:hover {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
}

body.no-username-glow .guns-name,
body.no-username-glow .guns-empty-mark {
  text-shadow: none;
}

/* ---------- identity + presence ---------- */

.guns-header {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 20px 15px 34px;
}

.guns-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.guns-avatar {
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
  border: var(--avatarBorder);
  border-radius: 50%;
  object-fit: cover;
  user-select: none;
}

.guns-avatar-mark {
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  color: var(--textColor);
  font-size: 44px;
}

.guns-name {
  position: relative;
  width: fit-content;
  max-width: 100%;
  min-height: 1.08em;
  margin: 6px 0 0;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--textColor);
  font-family: "YamiSatoshi", sans-serif;
  font-size: 33px;
  font-weight: 600;
  line-height: 1.08;
  text-align: center;
  text-shadow: var(--colorUsernameGlow);
  background-image: var(--usernameEffects);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  animation: yamiNameSparkle var(--usernameDuration, 4s) linear infinite;
}

.guns-name-text {
  position: relative;
  z-index: 1;
  display: inline-block;
}

.guns-name-particle {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  z-index: 0;
  width: 14px;
  height: 14px;
  background-image: var(--usernameParticle, url("/assets/sparkle-white.gif"));
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0;
  pointer-events: none;
  animation: yamiNameParticle var(--usernameDuration, 4s) ease-in-out infinite;
  animation-delay: var(--pd, 0s);
}

@keyframes yamiNameSparkle {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

@keyframes yamiNameParticle {
  0%, 100% { opacity: 0; transform: translate(-50%, 0) scale(0.7); }
  35%, 65% { opacity: 0.7; transform: translate(-50%, -12px) scale(1); }
}

body[data-username-style="shimmer"] .guns-name,
body[data-username-style="glitch"] .guns-name,
body[data-username-style="wave"] .guns-name,
body[data-username-style="pulse"] .guns-name,
body[data-username-style="particles"] .guns-name,
body[data-username-style="none"] .guns-name { background-image: none; animation: none; }

body[data-username-style="shimmer"] .guns-name-text {
  background: linear-gradient(100deg, currentColor 35%, #ffffff 50%, currentColor 65%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: yamiNameShimmer var(--usernameDuration, 4s) linear infinite;
}
@keyframes yamiNameShimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

body[data-username-style="glitch"] .guns-name-text { animation: yamiNameGlitch var(--usernameDuration, 4s) steps(1) infinite; }
@keyframes yamiNameGlitch {
  0%, 88%, 100% { transform: none; opacity: 1; }
  90% { transform: translateX(-2px); opacity: 0.65; }
  93% { transform: translateX(2px); }
  96% { transform: translateX(-1px); opacity: 0.85; }
}

body[data-username-style="wave"] .guns-name-text { animation: yamiNameWave var(--usernameDuration, 4s) ease-in-out infinite; }
@keyframes yamiNameWave { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

body[data-username-style="pulse"] .guns-name-text { animation: yamiNamePulse var(--usernameDuration, 4s) ease-in-out infinite; }
@keyframes yamiNamePulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.72; transform: scale(1.03); } }

body[data-username-style="particles"] .guns-name-particle { animation-duration: var(--usernameDuration, 4s); opacity: 0.7; }

.guns-presence {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  max-width: 26rem;
  margin: 12px auto 0;
  padding: 8px;
  overflow: hidden;
  border: var(--presenceContainerBorder);
  border-radius: 25px;
  background-color: var(--presenceContainerBackground);
  text-align: left;
}

.guns-presence-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  overflow: hidden;
  border: var(--avatarBorder);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--presenceUsernameColor);
  font-size: 18px;
}

.guns-presence-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guns-presence-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}

.guns-presence-name {
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--presenceUsernameColor);
  font-size: 16px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guns-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20.5px;
  height: 20.5px;
  margin-left: 6px;
  flex: 0 0 20.5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--textColor);
  font-size: 10px;
}

/* The mark sits beside the name without shifting its center line. */
.guns-title-mark {
  position: absolute;
  top: 50%;
  left: calc(100% + 8px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  border: 1px solid rgba(201,188,232,0.22);
  border-radius: 50%;
  background: rgba(201,188,232,0.08);
  color: var(--textColor);
  font-family: "Noto Serif JP", serif;
  font-size: 12px;
  transform: translateY(-50%);
  filter: drop-shadow(0 0 calc(7px * var(--titleGlowAlpha, 0.72)) var(--titleGlowColor, var(--glowColor)));
}

.guns-title-mark.is-png {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
  border: 0;
  background: none;
  object-fit: contain;
}

.guns-presence-discord {
  position: relative;
  padding-right: 28px;
}
.guns-discord-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin-left: 7px;
  object-fit: contain;
  opacity: 0.85;
}
.guns-presence-discord .guns-presence-avatar .guns-discord-icon { margin-left: 0; }
.guns-discord-dot {
  position: absolute;
  top: 50%;
  right: 11px;
  width: 8px;
  height: 8px;
  border: 2px solid rgba(8,8,12,0.9);
  border-radius: 50%;
  background: #80848e;
  transform: translateY(-50%);
}
.guns-presence-discord[data-status="online"] .guns-discord-dot { background: #23a559; box-shadow: 0 0 10px rgba(35,165,89,0.65); }
.guns-presence-discord[data-status="idle"] .guns-discord-dot { background: #f0b232; box-shadow: 0 0 10px rgba(240,178,50,0.55); }
.guns-presence-discord[data-status="dnd"] .guns-discord-dot { background: #f23f43; box-shadow: 0 0 10px rgba(242,63,67,0.55); }
.guns-presence-discord[data-status="offline"] .guns-discord-dot { background: #80848e; }

.guns-presence-status {
  display: block;
  overflow: hidden;
  color: var(--presenceStatusColor);
  font-size: 12px;
  font-style: italic;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guns-presence-location {
  display: block;
  overflow: hidden;
  color: var(--textColorDarker);
  font-size: 10px;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.no-animated-title .guns-name,
body.no-animated-title .guns-name-text,
body.no-animated-title .guns-name-particle { background-image: none; animation: none; }
body.no-animated-title .guns-name-particle { display: none; }

.guns-type {
  margin: 8px auto 0;
  max-width: 26rem;
  color: var(--textColorDarker);
  font-family: "YamiSatoshi", sans-serif;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
}

.guns-type-text {
  background-image: linear-gradient(90deg, currentColor 50%, transparent 50%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: gunsTypeReveal var(--bioDuration, 4.5s) steps(46, end) var(--bioDelay, 0s) var(--bioIterations, infinite) alternate;
  color: var(--textColorDarker);
}

@keyframes gunsTypeReveal {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}

.guns-bio-fade .guns-type-text,
.guns-bio-slide .guns-type-text,
.guns-bio-reveal .guns-type-text,
.guns-bio-scramble .guns-type-text,
.guns-bio-marquee .guns-type-text,
.guns-bio-pulse .guns-type-text,
.guns-bio-none .guns-type-text {
  background-image: none;
  -webkit-text-fill-color: currentColor;
  animation: none;
}

.guns-bio-fade .guns-type-text { animation: yamiBioFade var(--bioDuration, 4.5s) ease var(--bioDelay, 0s) var(--bioIterations, infinite) both; }
.guns-bio-slide .guns-type-text { animation: yamiBioSlide var(--bioDuration, 4.5s) ease var(--bioDelay, 0s) var(--bioIterations, infinite) both; }
.guns-bio-reveal .guns-bio-words { display: inline; }
.guns-bio-reveal .guns-word { display: inline-block; animation: yamiBioFade var(--bioDuration, 4.5s) ease calc(var(--bioDelay, 0s) + var(--w) * 0.06s) var(--bioIterations, infinite) both; }
.guns-bio-scramble .guns-type-text { animation: yamiBioScramble var(--bioDuration, 4.5s) steps(18, end) var(--bioDelay, 0s) var(--bioIterations, infinite) both; }
.guns-bio-marquee .guns-type { overflow: hidden; white-space: nowrap; }
.guns-bio-marquee .guns-type-text { display: inline-block; padding-left: 100%; animation: yamiBioMarquee var(--bioDuration, 4.5s) linear var(--bioDelay, 0s) var(--bioIterations, infinite); }
.guns-bio-pulse .guns-type-text { animation: yamiBioPulse var(--bioDuration, 4.5s) ease-in-out var(--bioDelay, 0s) var(--bioIterations, infinite); }

@keyframes yamiBioFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes yamiBioSlide { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes yamiBioScramble { from { opacity: 0.25; letter-spacing: 0.12em; } to { opacity: 1; letter-spacing: 0; } }
@keyframes yamiBioMarquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@keyframes yamiBioPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }

.guns-type-caret {
  display: inline-block;
  width: 1px;
  height: 1em;
  margin-left: 3px;
  vertical-align: -2px;
  background: var(--textColor);
  animation: gunsCaret 1.1s steps(1) infinite;
}

@keyframes gunsCaret {
  50% { opacity: 0; }
}

.guns-views {
  position: absolute;
  bottom: 10px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--textColor);
  font-size: 14px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}

.guns-views svg {
  width: 16px;
  height: 16px;
  filter: drop-shadow(0 0 5px var(--textColor));
}

/* ---------- social links ---------- */

.guns-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 7px;
  width: 100%;
  margin-top: 14px;
}

.guns-social-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--textColor);
  transition: transform 0.3s ease, color 0.3s ease;
}

.guns-social-link:hover,
.guns-social-link:focus-visible {
  transform: scale(1.1);
}

.guns-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.guns-social-icon svg,
.guns-social-icon .icon-glyph,
.guns-social-icon-img {
  width: 28px;
  height: 28px;
  font-size: 28px;
  line-height: 1;
  object-fit: contain;
  filter: drop-shadow(1px 0 7px currentColor) drop-shadow(0 0 3px var(--glowFaint));
}

body.no-social-glow .guns-social-icon svg,
body.no-social-glow .guns-social-icon .icon-glyph,
body.no-social-glow .guns-social-icon-img {
  filter: none;
}

body.mono-icons .guns-social-icon svg,
body.mono-icons .guns-social-icon .icon-glyph,
body.mono-icons .guns-social-icon-img {
  filter: grayscale(1) brightness(1.6) drop-shadow(1px 0 7px currentColor);
}

.guns-social-icon .icon-glyph {
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 600;
}

.guns-social-tip {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 20;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(12, 12, 12, 0.96);
  color: var(--textColor);
  font-size: 10px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.guns-social-link:hover .guns-social-tip,
.guns-social-link:focus-visible .guns-social-tip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.guns-icon-discord { color: #d62976; }
.guns-icon-telegram { color: #2aabee; }
.guns-icon-roblox, .guns-icon-facebook { color: #a3a3a3; }
.guns-icon-spotify { color: #1ed760; }
.guns-icon-instagram { color: #e1306c; }
.guns-icon-youtube { color: #ff0033; }
.guns-icon-twitter, .guns-icon-x { color: #ffffff; }
.guns-icon-github { color: #ffffff; }
.guns-icon-email { color: #9e9eff; }

/* Text-list mode stays as the classic vertical button stack. */
.guns-links {
  display: grid;
  gap: 9px;
}

.guns-links .guns-social-link {
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  height: auto;
  min-height: 56px;
  padding: 9px;
  border: var(--buttonBorder);
  border-radius: var(--buttonRadius);
  background-color: var(--buttonBackground);
  transition: 0.35s;
}

.guns-links .guns-social-link:hover,
.guns-links .guns-social-link:focus-visible {
  transform: none;
  border-color: var(--buttonBorderHover);
  background-color: var(--buttonBackgroundHover);
}

.guns-links .guns-social-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: calc(var(--buttonRadius) - 2px);
  background: rgba(255, 255, 255, 0.07);
}

.guns-links .guns-social-icon svg,
.guns-links .guns-social-icon .icon-glyph {
  width: 24px;
  height: 24px;
  font-size: 24px;
  filter: none;
}

.guns-social-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1 1 auto;
  color: var(--textColor);
}

.guns-social-copy b {
  overflow: hidden;
  color: var(--textColor);
  font-size: 15px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guns-social-copy small {
  overflow: hidden;
  color: var(--buttonUrlColor);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guns-social-arrow {
  color: var(--buttonUrlColor);
  font-size: 16px;
}

.guns-links .guns-social-tip { display: none; }

/* ---------- featured + embeds + empty states ---------- */

.guns-featured {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 13px;
  border: var(--buttonBorder);
  border-radius: var(--buttonRadius);
  background-color: var(--buttonBackground);
  background-origin: border-box;
  color: var(--textColor);
  transition: 0.35s;
}

a.guns-featured:hover {
  border-color: var(--buttonBorderHover);
  background-color: var(--buttonBackgroundHover);
}

.guns-featured b {
  flex: 1 1 auto;
  font-size: 15px;
  font-weight: 500;
}

.guns-featured small {
  max-width: 55%;
  overflow: hidden;
  color: var(--buttonUrlColor);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guns-featured-arrow {
  color: var(--buttonUrlColor);
  font-size: 16px;
}

.guns-embeds {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.guns-embed {
  min-width: 0;
  padding: 10px 12px;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.guns-embed:hover {
  border-color: var(--buttonBorderHover);
}

.guns-embed-server {
  grid-column: span 2;
  padding: 10px 12px;
}

.guns-server-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.guns-server-avatar {
  display: block;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border: var(--avatarBorder);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.guns-server-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guns-server-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.guns-server-copy > b {
  overflow: hidden;
  color: var(--textColor);
  font-size: 14px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guns-server-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  color: var(--textColorDarker);
  font-size: 10px;
  white-space: nowrap;
}

.guns-server-stats b {
  color: var(--textColor);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.guns-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 4px;
  border-radius: 50%;
  background: #43b581;
  vertical-align: 1px;
}

.guns-server-join {
  padding: 5px 11px;
  border-radius: 8px;
  background: #229150;
  color: #fafafa;
  font-size: 11px;
  font-weight: 450;
  line-height: 1;
  transition: background 0.2s ease;
}

.guns-server-join:hover,
.guns-server-join:focus-visible {
  background: #2ba75d;
}

.guns-server-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--textColorDarker);
  font-size: 10px;
  white-space: nowrap;
}

.guns-server-badge img {
  width: 16px;
  height: 16px;
}

.guns-card-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.guns-card-icon,
.guns-chip-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  overflow: hidden;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
}

.guns-card-icon svg,
.guns-card-icon img,
.guns-chip-icon svg,
.guns-chip-icon img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  filter: drop-shadow(0 0 4px var(--glowFaint));
}

.guns-card-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.guns-card-copy b,
.guns-chip-copy b {
  overflow: hidden;
  color: var(--textColor);
  font-size: 12.5px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guns-card-copy small,
.guns-chip-copy small {
  overflow: hidden;
  color: var(--textColorDarker);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guns-mini-stats {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--textColorDarker);
  font-size: 9px;
  white-space: nowrap;
}

.guns-mini-stats b {
  color: var(--textColor);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.guns-mini-stats i {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--textColorDarker);
}

.guns-card-open,
.guns-chip-arrow {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border: var(--buttonBorder);
  border-radius: 50%;
  color: var(--textColor);
  font-size: 12px;
  transition: 0.25s;
}

.guns-card-open:hover,
.guns-card-open:focus-visible {
  border-color: var(--buttonBorderHover);
  background: var(--buttonBackgroundHover);
}

.guns-embed-chip {
  display: flex;
  padding: 0;
}

.guns-embed-chip:hover,
.guns-embed-chip:focus-within {
  background: var(--buttonBackgroundHover);
  border-color: var(--buttonBorderHover);
}

.guns-chip-link {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 7px 9px;
  border-radius: inherit;
  color: var(--textColor);
}

a.guns-chip-link:hover {
  background: transparent;
}

.guns-chip-icon {
  width: 26px;
  height: 26px;
  flex-basis: 26px;
  border-radius: 8px;
}

.guns-chip-icon svg,
.guns-chip-icon img {
  width: 18px;
  height: 18px;
}

.guns-chip-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.guns-chip-arrow {
  width: auto;
  height: auto;
  flex-basis: auto;
  border: 0;
  color: var(--buttonUrlColor);
  font-size: 14px;
}

.guns-empty {
  text-align: center;
}

.guns-empty-mark {
  display: block;
  margin-bottom: 10px;
  color: var(--textColor);
  font-size: 48px;
  text-shadow: var(--colorUsernameGlow);
}

.guns-empty h2 {
  color: var(--textColor);
  font-size: 26px;
  font-weight: 600;
}

.guns-empty p {
  margin-top: 8px;
  color: var(--textColorDarker);
  font-size: 13px;
}

.guns-empty-btn {
  display: inline-block;
  margin-top: 18px;
  padding: 9px 18px;
  border: var(--buttonBorder);
  border-radius: var(--buttonRadius);
  background: var(--buttonBackground);
  color: var(--textColor);
  font-size: 12px;
}

/* ---------- ambient audio ---------- */

.guns-audio-mount:empty { display: none; }

.guns-player {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: var(--containerWidth);
  padding: 12px;
  border: var(--containerBorder);
  border-radius: var(--containerRadius);
  background-color: var(--containerColor);
  background-image: var(--containerGradient);
  background-origin: border-box;
  backdrop-filter: blur(var(--containerBlur));
  -webkit-backdrop-filter: blur(var(--containerBlur));
}

.guns-player[hidden] { display: none !important; }

.guns-player-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: calc(var(--buttonRadius) - 2px);
  background: var(--audioIconBackground);
  color: var(--textColor);
}

.guns-player-icon svg {
  width: 24px;
  height: 24px;
}

.guns-player-icon img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.guns-player-main {
  min-width: 0;
  flex: 1 1 auto;
}

.guns-player-title {
  display: block;
  overflow: hidden;
  color: var(--textColor);
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guns-player-seek {
  position: relative;
  height: 4px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--audioPlayerBar);
  cursor: pointer;
}

.guns-player-progress {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--textColor);
}

.guns-player-times {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 5px;
  color: var(--textColorDarker);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.guns-player-times small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guns-player-controls {
  display: none;
}

.guns-player-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: var(--buttonBorder);
  border-radius: 50%;
  background: var(--buttonBackground);
  color: var(--textColor);
}

.guns-player-toggle:hover {
  background: var(--buttonBackgroundHover);
  border-color: var(--buttonBorderHover);
}

.guns-player-toggle svg {
  width: 20px;
  height: 20px;
}

.guns-player-pause { display: none; }
.guns-player-toggle.is-playing .guns-player-play { display: none; }
.guns-player-toggle.is-playing .guns-player-pause { display: block; }

/* ---------- gate, cursor, tools ---------- */

.guns-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.776);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  opacity: 1;
  transition: opacity 0.75s ease;
  text-align: center;
  cursor: pointer;
}

.guns-gate.is-leaving {
  opacity: 0;
  pointer-events: none;
}

.guns-gate:focus-visible {
  outline: 1px solid rgba(201, 188, 232, 0.55);
  outline-offset: -8px;
}

.guns-gate-text {
  max-width: 90%;
  color: var(--textColor);
  font-family: "YamiSatoshi", sans-serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  text-shadow: var(--colorUsernameGlow);
}

body.yami-custom-cursor,
body.yami-custom-cursor * {
  cursor: var(--yami-cursor) !important;
}

.guns-watermark {
  position: fixed;
  right: 12px;
  bottom: 10px;
  z-index: 3;
  color: var(--textColorDarker);
  font-size: 11px;
  opacity: 0.45;
}

body.no-watermark .guns-watermark { display: none; }

.guns-tools {
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 4;
}

.guns-tools a {
  display: inline-block;
  padding: 6px 11px;
  border: var(--buttonBorder);
  border-radius: 999px;
  background: var(--buttonBackground);
  color: var(--textColor);
  font-size: 10px;
}

/* ---------- responsive / embedded preview ---------- */

@media (max-width: 640px) {
  body.page-profile .profile-main { padding: 18px 12px 48px; }
  :root { --containerRadius: 18px; }
  .guns-header { padding: 18px 12px 28px; }
  .guns-avatar { width: 84px; height: 84px; flex-basis: 84px; }
  .guns-name { font-size: 28px; }
  .guns-presence-avatar { width: 38px; height: 38px; flex-basis: 38px; }
  .guns-presence-name { font-size: 15px; }
  .guns-presence-status { font-size: 11px; }
  .guns-socials { gap: 7px 6px; margin-top: 12px; }
  .guns-social-icon svg,
  .guns-social-icon .icon-glyph,
  .guns-social-icon-img { width: 25px; height: 25px; font-size: 25px; }
  .guns-embeds { grid-template-columns: 1fr; }
  .guns-embed-server { grid-column: auto; }
  .guns-server-row { grid-template-columns: 46px minmax(0, 1fr) auto; }
  .guns-server-avatar { width: 46px; height: 46px; }
  .guns-server-badge { display: none; }
}

@media (max-width: 390px) {
  body.page-profile .profile-main { padding: 14px 9px 42px; }
  .guns-avatar { width: 76px; height: 76px; flex-basis: 76px; }
  .guns-name { font-size: 25px; }
  .guns-social-icon svg,
  .guns-social-icon .icon-glyph,
  .guns-social-icon-img { width: 22px; height: 22px; font-size: 22px; }
  .guns-presence { margin-top: 10px; }
  .guns-mini-stats { display: none; }
}

body.is-embed .profile-main { padding: 12px; min-height: 0; }
body.is-embed .guns-surface,
body.is-embed .guns-player { border-radius: 14px; }
body.is-embed .guns-header { padding: 18px 10px 30px; }
body.is-embed .guns-avatar { width: 72px; height: 72px; flex-basis: 72px; }
body.is-embed .guns-name { font-size: 26px; }
body.is-embed .guns-presence { margin-top: 10px; }
body.is-embed .guns-presence-avatar { width: 34px; height: 34px; flex-basis: 34px; }
body.is-embed .guns-socials { margin-top: 10px; gap: 7px 6px; }
body.is-embed .guns-social-icon svg,
body.is-embed .guns-social-icon .icon-glyph,
body.is-embed .guns-social-icon-img { width: 24px; height: 24px; font-size: 24px; }
body.is-embed .guns-watermark,
body.is-embed .guns-tools { display: none; }

@media (prefers-reduced-motion: reduce) {
  .guns-name,
  .guns-name-text,
  .guns-name-particle,
  .guns-type-text,
  .guns-bio-reveal .guns-word,
  .guns-bio-marquee .guns-type-text { animation: none; background-image: none; -webkit-text-fill-color: currentColor; }
  .guns-name-particle { display: none; }
  .guns-type-caret { animation: none; }
  .guns-social-link { transition: none; }
  .guns-gate { transition: none; }
}
