/* Crush: a cozy evening lounge. Frosted blue-grey glass, a slate side rail, warm lamp light and soft clay portraits. */
:root {
  --bg1: #c7d2dd;
  --bg2: #a7b8c8;
  --glass: rgba(255, 255, 255, 0.5);
  --glass-strong: rgba(255, 255, 255, 0.74);
  --glass-line: rgba(255, 255, 255, 0.66);
  --ink: #1b2a3a;
  --muted: #3f5266;
  --line: rgba(27, 42, 58, 0.12);
  --rail: #263749;
  --rail-2: #33495f;
  --rail-ink: #edf2f7;
  --rail-muted: #b8c6d4;
  --teal: #2a6772;
  --teal-hi: #23585f;
  --teal-ink: #ffffff;
  --teal-soft: rgba(42, 103, 114, 0.12);
  --lamp: #f2b45e;
  --lamp-glow: rgba(246, 184, 98, 0.34);
  --lamp-ink: #6b400b;
  --mint: #a9d4cb;
  --ice: #dce8f1;
  --lav: #b7b3da;
  --dusk: #9fb5cc;
  --tile-ink: #172636;
  --code-bg: #213142;
  --code-ink: #e6edf4;
  --good: #1f6b4d;
  --err: #9b2c25;
  --shadow: 0 22px 44px -24px rgba(28, 45, 66, 0.55), 0 2px 8px rgba(28, 45, 66, 0.08);
  --shadow-sm: 0 10px 24px -16px rgba(28, 45, 66, 0.5);
  --r-xl: 30px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg1: #1b2633;
    --bg2: #111922;
    --glass: rgba(255, 255, 255, 0.06);
    --glass-strong: rgba(255, 255, 255, 0.1);
    --glass-line: rgba(255, 255, 255, 0.11);
    --ink: #eaf0f6;
    --muted: #aebccb;
    --line: rgba(255, 255, 255, 0.1);
    --rail: #0d141c;
    --rail-2: #18232f;
    --rail-ink: #edf2f7;
    --rail-muted: #a5b4c3;
    --teal: #6bb8c1;
    --teal-hi: #86c9d1;
    --teal-ink: #0b1b20;
    --teal-soft: rgba(107, 184, 193, 0.14);
    --lamp-glow: rgba(242, 180, 94, 0.14);
    --lamp-ink: #ffd49c;
    --mint: #233f3c;
    --ice: #213040;
    --lav: #2c2a46;
    --dusk: #23364b;
    --tile-ink: #eaf0f6;
    --code-bg: #0b1118;
    --good: #8fdcb5;
    --err: #ffaba1;
    --shadow: 0 24px 48px -26px rgba(0, 0, 0, 0.8), 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-sm: 0 10px 24px -16px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; background: var(--bg2); }
body {
  margin: 0;
  min-height: 100vh;
  font: 400 17px/1.6 var(--sans);
  color: var(--ink);
  background:
    radial-gradient(900px 640px at 6% -8%, var(--lamp-glow), transparent 62%),
    radial-gradient(820px 720px at 104% 4%, rgba(255, 255, 255, 0.22), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg2) 1600px);
  background-repeat: no-repeat;
  overflow-x: hidden;
}
/* A faint plaster grain, like a painted wall in lamplight. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  z-index: 0;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .55 0 0 0 0 .6 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-hi); }
:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; border-radius: 8px; }
code, pre, .mono { font-family: var(--mono); }
code { font-size: 0.88em; padding: 1px 6px; border-radius: 6px; background: var(--teal-soft); overflow-wrap: anywhere; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(34px, 4.4vw, 56px); }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-size: 21px; letter-spacing: -0.005em; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--teal); color: var(--teal-ink); padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.skip:focus { top: 12px; }

/* ------------------------------------------------------------------ shell: slate rail + main */

.shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 24px;
  max-width: 1460px;
  margin: 0 auto;
  padding: 20px;
}
.rail {
  position: sticky;
  top: 20px;
  height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 16px 18px;
  border-radius: var(--r-xl);
  color: var(--rail-ink);
  background: linear-gradient(180deg, var(--rail-2), var(--rail));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font: 600 26px/1 var(--serif); letter-spacing: -0.02em; min-height: 44px; padding: 0 6px; }
.brand img { width: 36px; height: 36px; }
.brand:hover { color: inherit; }
.rail nav { display: grid; gap: 4px; }
.rail nav a {
  display: flex; align-items: center; gap: 12px;
  min-height: 44px; padding: 8px 14px;
  border-radius: 14px;
  color: var(--rail-muted); text-decoration: none; font-weight: 700; font-size: 15px;
}
.rail nav a svg { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rail nav a:hover { color: var(--rail-ink); background: rgba(255, 255, 255, 0.06); }
.rail nav a[aria-current] { color: #183040; background: linear-gradient(180deg, #eef3f7, #cdd9e3); box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.55), inset 0 1px 0 #fff; }
.rail .btn { width: 100%; }
.rail-card {
  margin-top: auto;
  padding: 16px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px; line-height: 1.5; color: var(--rail-muted);
}
.rail-card b { color: var(--rail-ink); }
.rail-card .lamp-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 12px var(--lamp); margin-right: 6px; vertical-align: 1px; }
.main { min-width: 0; display: grid; gap: 24px; align-content: start; }

/* ------------------------------------------------------------------ building blocks */

.panel {
  position: relative;
  border-radius: var(--r-xl);
  background: var(--glass);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
  padding: 28px;
}
.panel.tight { padding: 20px; }
.card {
  border-radius: var(--r-lg);
  background: var(--glass-strong);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow-sm);
  padding: 20px;
}
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 800 12px/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 10px var(--lamp); }
.lede { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 62ch; }
.sub { color: var(--muted); max-width: 64ch; }
.sm { font-size: 15px; line-height: 1.55; color: var(--muted); }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 32px; margin-bottom: 22px; }
.head .sub { max-width: 52ch; }
.chip { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--teal-soft); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font: 800 11px/1.5 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; background: var(--lamp); color: #3d2405; }
.tag.ghost { background: transparent; border: 1px solid currentColor; color: var(--muted); }
.banner { padding: 14px 18px; border-radius: var(--r-md); background: var(--lamp-glow); border: 1px solid rgba(242, 180, 94, 0.5); color: var(--ink); font-weight: 600; }
.banner[hidden] { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--glass-line);
  background: var(--glass-strong);
  color: var(--ink);
  font: 800 15px/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { color: var(--ink); transform: translateY(-1px); }
.btn.primary { background: linear-gradient(180deg, var(--teal), var(--teal-hi)); color: var(--teal-ink); border-color: transparent; box-shadow: 0 12px 22px -12px rgba(28, 80, 90, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn.primary:hover { color: var(--teal-ink); }
.btn.lamp { background: linear-gradient(180deg, #f7c67c, var(--lamp)); color: #3a2204; border-color: transparent; }
.btn.small { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.rail .btn { background: rgba(255, 255, 255, 0.08); color: var(--rail-ink); border-color: rgba(255, 255, 255, 0.14); box-shadow: none; }
.rail .btn.primary { background: linear-gradient(180deg, #4f97a1, #2f6d78); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 24px;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(520px 380px at 88% 8%, rgba(246, 184, 98, 0.42), transparent 64%),
    linear-gradient(135deg, #3d566c, #24364a 70%);
  color: #f1f5f9;
  border-color: rgba(255, 255, 255, 0.14);
}
.hero-copy { padding: 44px 0 40px 44px; display: grid; gap: 20px; align-content: center; }
.hero .eyebrow { color: #ffd69c; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: italic; color: #ffd69c; font-weight: 500; }
.hero .lede { color: #cfdbe6; }
.hero .btn { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.22); }
.hero .btn.lamp { background: linear-gradient(180deg, #f9cf8d, var(--lamp)); color: #3a2204; }
.hero-note { font-size: 14px; color: #b9c9d8; }
.hero-note b { color: #fff; }
.lounge { position: relative; min-height: 440px; }
.lamp-art { position: absolute; right: 30px; top: 0; width: 120px; height: 210px; }
.lamp-art .cord { position: absolute; left: 59px; top: 0; width: 2px; height: 62px; background: rgba(255, 255, 255, 0.35); }
.lamp-art .shade { position: absolute; left: 14px; top: 60px; width: 92px; height: 58px; clip-path: polygon(22% 0, 78% 0, 100% 100%, 0 100%); background: linear-gradient(180deg, #ffe2b4, #f2b45e); border-radius: 6px; }
.lamp-art .glow { position: absolute; left: -70px; top: 100px; width: 260px; height: 200px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 210, 140, 0.55), transparent); filter: blur(4px); }
.portraits { position: absolute; inset: 70px 36px 36px 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-content: end; }
.portraits a { position: relative; display: block; border-radius: 24px; overflow: hidden; aspect-ratio: 1; box-shadow: 0 18px 30px -16px rgba(0, 0, 0, 0.75); border: 2px solid rgba(255, 255, 255, 0.22); transition: border-color 0.2s ease, filter 0.2s ease; }
.portraits a:nth-child(2), .portraits a:nth-child(5) { transform: translateY(-22px); }
.portraits a:hover { border-color: #ffd69c; filter: brightness(1.06); }
@media (min-width: 1101px) {
  .portraits { inset: 112px 44px 48px 30px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-content: center; }
  .portraits a:nth-child(n) { transform: none; }
  .portraits a:nth-child(even) { transform: translateY(34px); }
}
.portraits img { width: 100%; height: 100%; object-fit: cover; }
.portraits span { position: absolute; left: 8px; bottom: 8px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: rgba(20, 32, 45, 0.72); color: #fff; }

/* ------------------------------------------------------------------ stat tiles */

.stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.tile {
  position: relative;
  border-radius: var(--r-lg);
  padding: 16px 16px 18px;
  color: var(--tile-ink);
  background: var(--ice);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  display: grid; gap: 4px; align-content: start;
  min-width: 0;
}
.tile.mint { background: var(--mint); }
.tile.lav { background: var(--lav); }
.tile.dusk { background: var(--dusk); }
.tile.lamp { background: linear-gradient(160deg, #f8d5a0, #f0b766); color: #2f1c05; }
.tile .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.45); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7); margin-bottom: 8px; }
.tile .ic svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile b { font: 600 clamp(24px, 2.2vw, 30px)/1.1 var(--serif); overflow-wrap: anywhere; }
.tile span { font-size: 14px; font-weight: 700; opacity: 0.86; }
@media (prefers-color-scheme: dark) {
  .tile { border-color: rgba(255, 255, 255, 0.08); }
  .tile .ic { background: rgba(255, 255, 255, 0.08); box-shadow: none; }
  .tile.lamp { background: linear-gradient(160deg, #4a3a22, #3a2d1b); color: #ffe2b8; }
}

/* ------------------------------------------------------------------ companions */

.cgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.comp {
  display: grid; grid-template-rows: auto 1fr; overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--glass-strong);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow);
}
.comp-art { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--dusk); }
.comp-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.comp-art .tag { position: absolute; left: 14px; top: 14px; }
.comp-art .ph { position: absolute; right: 14px; top: 14px; padding: 3px 10px; border-radius: 999px; font: 800 11px/1.5 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; background: rgba(20, 32, 45, 0.78); color: #fff; }
.comp-body { display: grid; gap: 12px; align-content: start; padding: 20px 22px 22px; }
.comp-body h3 { font-size: 28px; }
.role { font: 800 13px/1.3 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); }
.quote { position: relative; padding: 12px 14px; border-radius: 16px 16px 16px 4px; background: var(--teal-soft); font-style: italic; color: var(--ink); font-size: 15px; }
.quote small { display: block; font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.comp .btn { justify-self: start; margin-top: 4px; }

/* ------------------------------------------------------------------ steps, rules, privacy */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; gap: 8px; align-content: start; }
.steps li::before {
  content: counter(s);
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  font: 600 22px/1 var(--serif);
  color: #3a2204;
  background: radial-gradient(circle at 35% 30%, #ffe3b8, var(--lamp) 70%);
  box-shadow: 0 10px 18px -10px rgba(120, 70, 10, 0.7), inset 0 -3px 6px rgba(120, 70, 10, 0.25);
  margin-bottom: 4px;
}
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
ul.card.ticks, ol.card.ticks { padding: 22px; }
.ticks.no li::before { background: #b2554a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6.5 6.5l7 7M13.5 6.5l-7 7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.help-card { display: grid; gap: 10px; padding: 20px; border-radius: var(--r-lg); background: linear-gradient(160deg, rgba(246, 184, 98, 0.28), rgba(246, 184, 98, 0.12)); border: 1px solid rgba(242, 180, 94, 0.55); }
.help-card h3 { font-size: 20px; }
.rulelist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; counter-reset: r; }
.rulelist li { counter-increment: r; display: grid; gap: 6px; align-content: start; }
.rulelist li h3::before { content: counter(r) '. '; color: var(--teal); }

/* ------------------------------------------------------------------ credits */

.credits-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.costs table { width: 100%; border-collapse: collapse; margin: 6px 0 12px; font-size: 15px; }
.costs th, .costs td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.costs th { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.costs td:last-child, .costs th:last-child { text-align: right; font-weight: 800; padding-left: 10px; white-space: nowrap; }
.card h3 { margin-bottom: 12px; }
.cr { display: grid; gap: 10px; font-size: 15px; }
.cr p { margin: 0; color: var(--muted); }
.cr-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.cr-row > span { color: var(--muted); }
.cr-row strong { font-weight: 800; text-align: right; overflow-wrap: anywhere; }
.cr-row .btn { flex: 1 1 auto; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 800; color: var(--muted); }
input, textarea, select {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--glass-strong);
  color: var(--ink);
  font: 500 16px/1.4 var(--sans);
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 0.8; }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--lamp); outline-offset: 1px; }
.status { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.status:empty { display: none; }
.status.good { color: var(--good); font-weight: 700; }
.status.err { color: var(--err); font-weight: 700; }
.cr-key:not(.cr) { padding: 12px 14px; border-radius: 14px; background: var(--code-bg); color: var(--code-ink); font: 500 14px/1.5 var(--mono); overflow-wrap: anywhere; }
#refunds, #balance { overflow-x: auto; max-width: 100%; }
.cr-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cr-table th, .cr-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.cr-table th { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
pre {
  margin: 0;
  padding: 18px 20px;
  border-radius: var(--r-lg);
  background: var(--code-bg);
  color: var(--code-ink);
  font: 400 13.5px/1.65 var(--mono);
  overflow-x: auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
pre .c { color: #9fb3c6; }
pre .host { color: #ffd08a; }
.refunds { margin-top: 16px; }
.erc8004-badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font: 800 11px/1.5 var(--sans); letter-spacing: 0.04em; color: var(--teal); background: var(--teal-soft); border: 1px solid var(--teal); text-decoration: none; vertical-align: middle; }

/* ------------------------------------------------------------------ agents, token, faq, footer */

.agents-grid, .token-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 18px; align-items: start; }
.addr { font: 500 14px/1.5 var(--mono); overflow-wrap: anywhere; color: var(--muted); }
.label { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.addrs { display: grid; gap: 14px; }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--r-md); background: var(--glass-strong); border: 1px solid var(--glass-line); padding: 0 18px; }
.faq summary { cursor: pointer; min-height: 52px; display: flex; align-items: center; font-weight: 800; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; margin-left: auto; font: 500 24px/1 var(--serif); color: var(--teal); padding-left: 12px; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 0 16px; color: var(--muted); }
.foot { display: grid; gap: 12px; font-size: 14.5px; color: var(--muted); }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.foot .brand { color: var(--ink); font-size: 22px; }
.foot .links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.foot .links a { min-height: 40px; display: inline-flex; align-items: center; font-weight: 700; }
.foot b { color: var(--ink); }

/* ------------------------------------------------------------------ chat app */

.chat-shell { grid-template-columns: 252px minmax(0, 1fr) 300px; height: 100vh; height: 100dvh; }
.chat-shell .rail { height: calc(100dvh - 40px); gap: 12px; }
.chat-shell .main { display: flex; flex-direction: column; gap: 16px; height: calc(100dvh - 40px); }
.chat-shell .main > .banner { flex: none; }
.who { display: grid; gap: 4px; }
.who a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 5px 10px; border-radius: 16px; color: var(--rail-muted); text-decoration: none; }
.who a:hover { background: rgba(255, 255, 255, 0.06); color: var(--rail-ink); }
.who a[aria-current] { background: linear-gradient(180deg, #eef3f7, #cdd9e3); color: #183040; box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.55); }
.who img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid rgba(255, 255, 255, 0.3); }
.who b { display: block; font-size: 15px; color: inherit; }
.who small { display: block; font-size: 12.5px; line-height: 1.3; opacity: 0.9; }
.rail-label { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rail-muted); padding: 0 10px; }
.rail-links { display: grid; gap: 2px; }
.rail-links a { min-height: 40px; display: flex; align-items: center; padding: 0 10px; border-radius: 12px; color: var(--rail-muted); font-weight: 700; font-size: 14px; text-decoration: none; }
.rail-links a:hover { color: var(--rail-ink); background: rgba(255, 255, 255, 0.06); }

.chat, .panel.chat { display: flex; flex-direction: column; flex: 1; min-height: 0; padding: 0; overflow: hidden; }
.chat-head .actions .btn { white-space: nowrap; }
.chat-head { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent); }
.chat-head img { width: 56px; height: 56px; border-radius: 18px; object-fit: cover; box-shadow: var(--shadow-sm); }
.chat-head h1 { font-size: 26px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chat-head .role { font-size: 12px; }
.chat-head .actions { margin-left: auto; }
.thread { flex: 1; min-height: 0; overflow-y: auto; padding: 22px 20px 12px; display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; }
.msg { max-width: min(78%, 620px); padding: 12px 16px; border-radius: 20px; font-size: 16px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; box-shadow: var(--shadow-sm); }
.msg.them { align-self: flex-start; background: var(--glass-strong); border: 1px solid var(--glass-line); border-bottom-left-radius: 6px; }
.msg.me { align-self: flex-end; background: linear-gradient(180deg, var(--teal), var(--teal-hi)); color: var(--teal-ink); border-bottom-right-radius: 6px; }
.msg.me.declined { opacity: 0.6; text-decoration: line-through; text-decoration-thickness: 1px; }
.msg.me.failed { opacity: 0.7; }
.msg .meta { display: block; margin-top: 4px; font-size: 11.5px; font-weight: 700; opacity: 0.75; white-space: normal; }
.note { align-self: center; max-width: min(92%, 640px); padding: 10px 16px; border-radius: 16px; font-size: 14px; line-height: 1.5; text-align: center; background: var(--teal-soft); color: var(--ink); border: 1px dashed var(--teal); }
.note.err { border-color: var(--err); }
.note a { font-weight: 800; }
.note.care { text-align: left; background: linear-gradient(160deg, rgba(246, 184, 98, 0.3), rgba(246, 184, 98, 0.14)); border: 1px solid rgba(242, 180, 94, 0.7); }
.typing { align-self: flex-start; display: inline-flex; gap: 5px; padding: 14px 16px; border-radius: 20px 20px 20px 6px; background: var(--glass-strong); border: 1px solid var(--glass-line); }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.starters { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 10px; }
.starters button { min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--teal); background: var(--teal-soft); color: var(--ink); font: 700 14px/1.2 var(--sans); cursor: pointer; }
.starters button:hover { background: var(--glass-strong); }
.composer { display: grid; gap: 8px; padding: 12px 16px 14px; border-top: 1px solid var(--line); background: linear-gradient(0deg, rgba(255, 255, 255, 0.16), transparent); }
.composer form { display: flex; gap: 10px; align-items: flex-end; }
.composer textarea { resize: none; min-height: 48px; max-height: 160px; border-radius: 18px; padding: 12px 16px; }
.composer .btn { flex: none; min-height: 48px; }
.composer-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.composer-foot a { font-weight: 700; }
.profile { display: grid; gap: 16px; align-content: start; overflow-y: auto; height: calc(100dvh - 40px); }
.profile .panel { padding: 20px; }
.profile-art { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.profile-art img { width: 100%; height: 100%; object-fit: cover; }
.profile h2 { font-size: 28px; }
.profile dl { margin: 12px 0 0; display: grid; gap: 10px; font-size: 15px; }
.profile dt { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.profile dd { margin: 2px 0 0; }
.strip { display: none; }

/* the 18+ gate */
.gate { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; background: rgba(16, 25, 35, 0.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.gate[hidden] { display: none; }
.gate-box { width: min(520px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; display: grid; gap: 14px; padding: 30px; border-radius: var(--r-xl); background: var(--bg1); background: linear-gradient(180deg, var(--bg1), var(--bg2)); border: 1px solid var(--glass-line); box-shadow: var(--shadow); }
.gate-box h2 { font-size: 32px; }
.gate-box .badge18 { width: 64px; height: 64px; border-radius: 22px; display: grid; place-items: center; font: 700 24px/1 var(--serif); color: #3a2204; background: radial-gradient(circle at 35% 30%, #ffe3b8, var(--lamp) 70%); box-shadow: 0 12px 22px -12px rgba(120, 70, 10, 0.8); }

/* ------------------------------------------------------------------ page (rules, credits, deploy) */

.page-head { display: grid; gap: 14px; }
.stack { display: grid; gap: 18px; }

/* ------------------------------------------------------------------ responsive */

@media (max-width: 1280px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .credits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chat-shell { grid-template-columns: 236px minmax(0, 1fr); }
  .chat-shell .profile { display: none; }
}
@media (max-width: 1100px) {
  .cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 36px 32px 0; }
  .lounge { min-height: 380px; }
  .portraits { inset: 60px 28px 28px 28px; }
}
@media (max-width: 960px) {
  .shell, .chat-shell { display: block; padding: 0 12px 20px; height: auto; }
  .rail, .chat-shell .rail {
    position: sticky; top: 0; z-index: 20;
    height: auto; flex-direction: row; align-items: center; gap: 8px;
    margin: 0 -12px 16px; padding: 8px 12px; border-radius: 0 0 22px 22px; overflow: visible;
  }
  .rail nav { display: flex; gap: 2px; margin-left: auto; }
  .rail nav a { padding: 8px 10px; }
  .rail nav a svg { display: none; }
  .rail nav a.hide-sm, .rail-card, .rail .who, .rail .rail-label, .rail .rail-links { display: none; }
  .rail .btn { width: auto; }
  .brand { font-size: 22px; }
  .brand img { width: 32px; height: 32px; }
  .main { gap: 18px; }
  .panel { padding: 22px; }
  .agents-grid, .token-grid, .duo, .rulelist { grid-template-columns: 1fr; }
  .chat-shell .main { display: grid; height: auto; gap: 14px; }
  .chat { flex: none; height: calc(100dvh - 150px); min-height: 460px; }
  .strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; margin-bottom: 4px; scrollbar-width: none; }
  .strip a { flex: none; display: grid; justify-items: center; gap: 2px; min-width: 56px; padding: 2px; border-radius: 16px; text-decoration: none; color: var(--ink); font-size: 12px; font-weight: 800; }
  .strip img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--glass-line); }
  .strip a[aria-current] img { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
  .chat-shell .profile { display: grid; height: auto; margin-top: 16px; overflow: visible; }
  .profile-art { max-width: 260px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .rail nav a.hide-xs { display: none; }
  .rail .brand { flex: none; padding: 0 2px; }
  .rail nav { gap: 0; }
  .rail nav a { padding: 8px 8px; font-size: 14px; }
  .rail .btn.small { padding-left: 14px; padding-right: 14px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { padding: 14px; }
  .cgrid, .steps, .credits-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 28px 22px 0; }
  .lounge { min-height: 330px; }
  .portraits { inset: 70px 18px 20px; gap: 10px; }
  .portraits a { border-radius: 18px; }
  .portraits a:nth-child(2), .portraits a:nth-child(5) { transform: translateY(-16px); }
  .lamp-art { right: 12px; transform: scale(0.8); transform-origin: top right; }
  .panel { padding: 18px; border-radius: 24px; }
  .head { margin-bottom: 16px; }
  .chat-head { padding: 12px 14px; gap: 10px; }
  .chat-head img { width: 44px; height: 44px; border-radius: 14px; }
  .chat-head h1 { font-size: 22px; }
  .chat-head .actions .btn { padding: 8px 12px; }
  .thread { padding: 16px 12px 10px; }
  .msg { max-width: 88%; }
  .starters { padding: 0 12px 8px; }
  .composer { padding: 10px 10px 12px; }
  .gate-box { padding: 22px; }
}
@media (max-width: 400px) {
  .rail .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .thread { scroll-behavior: auto; }
}
.rail-card a { color: #ffd69c; font-weight: 700; }
