/* Vendapon — styles
   Instrument Sans. Flat blocks of pale, desaturated color. No outlines, no hairlines.
   Tokens at the top; the hero's scroll motion is driven by CSS variables that js/main.js sets. */

:root {
  --paper: #ffffff;
  --ink: #141412;
  --ink-soft: #4a4a46;
  --ink-faint: #a8a8a3;

  /* brand */
  --y: #ffb900;
  --o: #ff7800;
  --g: #145500;

  /* pale, desaturated tints for blocks, with an ink that reads on each */
  --tint-y: #f9f1d2;  --tint-ink-y: #6b5a1c;
  --tint-o: #fbe6d6;  --tint-ink-o: #6f4a2e;
  --tint-g: #e3ebdc;  --tint-ink-g: #2f4a25;
  --fuchsia: #8a1c5c;
  --deep: #0f3a0a;   /* dark dark green for the hero copy */

  /* pills */
  --pill: #efefeb;
  --pill-dark: #d9d9d3;
  --pill-darker: #c6c6bf;

  --font: "Instrument Sans", Helvetica, Arial, sans-serif;
  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --gutter: clamp(20px, 3vw, 40px);
  --radius: 28px;
  --nav-h: 88px;

  /* motion inputs (0–1 or px), written by main.js */
  --p: 0;
  --mark-fade: 1;
  --hint: 1;
  --h1: 0;
  --h1-y: 30px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--tint-g); outline-offset: 2px; border-radius: 999px; }
h1, h2 { font-weight: 600; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Pill input (shared: invite, waitlist, sign-in, admin) ---------- */
.pill {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  background: var(--pill); border-radius: 999px;
  padding: 6px 6px 6px 20px;
  transition: background .25s ease;
}
.pill:focus-within { background: #e9e9e4; }
.pill input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 15px; font-weight: 500; padding: 8px 0; color: var(--ink);
}
.pill input::placeholder { color: var(--ink-faint); font-weight: 500; }
.go {
  position: relative; flex: none;
  width: 40px; height: 40px; border-radius: 50%; border: 0; padding: 0;
  background: var(--pill-dark); color: var(--ink); cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s ease, transform .2s cubic-bezier(.2,.8,.2,1.4);
}
.go svg { width: 20px; height: 20px; display: block; }
.go:hover { background: var(--pill-darker); transform: scale(1.06); }
.go:active { transform: scale(.94); }
.go[disabled] { cursor: default; }
/* tooltip */
.go::after {
  content: attr(data-tip);
  position: absolute; left: 50%; top: calc(100% + 10px); transform: translate(-50%, -4px);
  background: var(--ink); color: #fff; font-size: 11px; font-weight: 500; letter-spacing: .04em;
  padding: 5px 9px; border-radius: 999px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .15s ease, transform .15s ease;
}
.go:hover::after { opacity: 1; transform: translate(-50%, 0); }
/* the fire: arrow shoots out right, a new one slides in from the left, circle squishes */
.go.is-firing { animation: squish .5s cubic-bezier(.2,.8,.2,1.2); }
.go.is-firing svg { animation: shoot .5s cubic-bezier(.6,0,.2,1); }
@keyframes squish {
  0%   { transform: scale(1); }
  30%  { transform: scale(.82, 1.1); }
  60%  { transform: scale(1.12, .9); }
  100% { transform: scale(1); }
}
@keyframes shoot {
  0%   { transform: translateX(0); opacity: 1; }
  45%  { transform: translateX(26px); opacity: 0; }
  50%  { transform: translateX(-26px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
/* success state */
.pill.is-done { background: var(--tint-g); }
.pill.is-done .go { background: var(--g); color: #fff; }

/* ---------- Masthead ---------- */
.mast {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px var(--gutter);
}
/* soft white wash so the logo separates from the color blocks scrolling under it */
.mast::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 150%; z-index: -1;
  background: linear-gradient(to bottom, rgba(255,255,255,.96) 0%, rgba(255,255,255,.8) 45%, rgba(255,255,255,0) 100%);
  pointer-events: none;
  opacity: 0; transition: opacity .5s ease;
}
.mast.is-scrolled::before { opacity: 1; }
.mark img { display: block; height: 44px; width: auto; }
.mast-logo { justify-content: flex-start; }
.invite { position: relative; width: min(340px, 100%); }
.nav-link { font-size: 13px; font-weight: 600; color: var(--ink-faint); padding: 8px 4px; }
.nav-link:hover { color: var(--ink); }
.invite-note { margin: 22px auto 10px; max-width: 440px; font-size: 14px; font-weight: 600; color: var(--g); line-height: 1.5; }
.invite-hero { margin: 0 auto; pointer-events: auto; }
.invite-hero .invite-msg { position: static; margin-top: 8px; display: inline-block; white-space: normal; text-align: center; }
.pill-green { background: #e3ebdc; }
.pill-green:focus-within { background: #d9e4d1; }
.pill-green input { color: #1f3d17; }
.pill-green input::placeholder { color: #5f7d55; }
.pill-green .go { background: #b9cfae; color: #1f3d17; }
.pill-green .go:hover { background: #145500; color: #fff; }
.pill-green.is-done { background: var(--g); }
.pill-green.is-done .go { background: #fff; color: var(--g); }
.invite-form.is-email #invite-code { display: none; }
.invite-msg {
  position: absolute; right: 8px; top: calc(100% + 8px); margin: 0;
  font-size: 12px; font-weight: 500; line-height: 1.4; color: var(--ink-soft); text-align: right;
  background: var(--pill); padding: 6px 12px; border-radius: 999px; white-space: nowrap;
}
.invite-msg:empty { display: none; }
.invite-msg { transition: opacity .3s ease, transform .3s ease; }
.invite-msg.is-fading { opacity: 0; transform: translateY(-4px); }
.invite-msg.is-err { background: var(--tint-o); color: var(--tint-ink-o); }
.invite-msg.is-ok { background: var(--tint-g); color: var(--tint-ink-g); }
.invite-msg a { text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { height: 320vh; position: relative; }
.hero-stage {
  position: sticky; top: 0; height: 100vh;
}
/* the hero is a block like the statements below, filled edge to edge with the photo */
.hero-block {
  position: absolute; left: var(--gutter); right: var(--gutter); top: var(--nav-h); bottom: 24px;
  border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--tint-g) url("../assets/hero.jpg") center / cover no-repeat;
}
@media (max-width: 1200px) { .hero-block { background-image: url("../assets/hero-md.jpg"); } }
.mark3 {
  position: relative; width: 180px; height: 223px;
  transform: scale(calc(1 + 0.35 * var(--p)));
  opacity: var(--mark-fade);
  will-change: transform, opacity;
}
.piece { position: absolute; inset: 0; width: 100%; height: 100%; will-change: transform; }
.piece-sparkle { transform: translateY(calc(-320px * var(--p))) rotate(calc(24deg * var(--p))); transform-origin: 50% 15.5%; }
.piece-v       { transform: translateY(calc(-120px * var(--p))); }
.piece-o       { transform: translateY(calc( 160px * var(--p))); }

.hero-copy {
  position: absolute; left: 0; right: 0; top: 50%;
  transform: translateY(calc(-50% + var(--h1-y)));
  opacity: var(--h1);
  text-align: center; padding: 0 24px; pointer-events: none;
}
.hero-copy h1 { font-size: clamp(38px, 6vw, 84px); line-height: 1.0; color: var(--deep); }
.hero-copy p { margin: 24px auto 0; max-width: 520px; font-size: 15px; font-weight: 500; line-height: 1.6; color: var(--deep); }
.text-link { font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: currentColor; pointer-events: auto; }
.text-link:hover { color: var(--g); }
.hero-link {
  display: inline-block; margin-top: 22px; pointer-events: auto;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-soft);
  border-bottom: 1.5px solid currentColor; padding-bottom: 2px;
  transition: color .2s ease;
}
.hero-link:hover { color: var(--g); }

.hint {
  position: absolute; left: 50%; bottom: 28px; margin: 0;
  width: 28px; height: 28px; color: #fff;
  opacity: var(--hint);
  transform: translateX(-50%);
  animation: nudge 1.6s cubic-bezier(.2,.8,.2,1) .8s 1 both;
}
@keyframes nudge {
  0%   { transform: translate(-50%, -14px); opacity: 0; }
  40%  { transform: translate(-50%, 4px); opacity: var(--hint); }
  70%  { transform: translate(-50%, -3px); }
  100% { transform: translate(-50%, 0); }
}

/* Vertical katakana — fixed to the right edge for the whole page */
.tate {
  position: fixed; right: calc(var(--gutter) + 10px); top: 50%; transform: translateY(-50%); z-index: 5;
  writing-mode: vertical-rl; text-orientation: upright;
  font-family: var(--font-jp); font-size: 12px; letter-spacing: 0.4em; line-height: 1;
  color: #fff; user-select: none;
  transition: color .6s ease;
}
.tate.is-past { color: var(--ink-faint); }

/* ---------- Statements: big soft blocks of color ---------- */
.statement {
  margin: 24px var(--gutter);
  min-height: 78vh; display: flex; align-items: center; justify-content: center;
  padding: 64px 24px; border-radius: var(--radius);
}
.statement.tint-y { background: var(--tint-y); color: var(--tint-ink-y); }
.statement.tint-o { background: var(--tint-o); color: var(--tint-ink-o); }
.statement.tint-g { background: var(--tint-g); color: var(--tint-ink-g); }
.statement > div { max-width: 820px; text-align: center; }
.statement h2 { font-size: clamp(32px, 5vw, 68px); line-height: 1.04; }

/* ---------- Waitlist ---------- */
.waitlist { min-height: 90vh; display: flex; align-items: center; justify-content: center; padding: 64px 24px; }
.waitlist > div { width: 100%; max-width: 520px; text-align: center; }
.waitlist-mark { display: block; height: 56px; width: auto; margin: 0 auto 36px; }
.waitlist h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.06; margin-bottom: 14px; }
.waitlist p { margin: 0 0 32px; font-size: 16px; font-weight: 500; line-height: 1.6; color: var(--ink-soft); }
.wl-form { text-align: left; }
.wl-done { color: var(--tint-ink-g) !important; background: var(--tint-g); display: inline-block; padding: 12px 20px; border-radius: 999px; margin: 0 !important; }
.hp { position: absolute; left: -9999px; }

/* Scroll-in reveal (statements + waitlist) */
.reveal > div { opacity: 0; transform: translateY(40px); transition: transform .9s cubic-bezier(.2,.7,.2,1), opacity .9s ease; }
.reveal.in > div { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.foot { padding: 48px var(--gutter) 36px; font-size: 13px; font-weight: 500; color: var(--ink-faint); }
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-left { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.foot-right { align-self: center; }
.foot-mark img { height: 28px; width: auto; display: block; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px; color: var(--ink-faint); }
.tiny { font-size: 12px !important; }
.foot-links a { color: var(--ink-soft); }
.foot-links a:hover { color: var(--g); }
.foot-mail { color: var(--g); font-weight: 500; }
.foot-copy { color: var(--ink-faint); }

/* ---------- Simple pages (thanks, 404) ---------- */
.page-simple { min-height: 100vh; display: grid; grid-template-rows: 1fr auto; }
.simple { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 140px 24px 60px; gap: 24px; }
.simple img { height: 56px; width: auto; }
.simple h1 { font-size: clamp(30px, 4vw, 48px); }
.simple p { margin: 0; color: var(--ink-soft); font-weight: 500; }
.simple a { background: var(--pill); padding: 10px 18px; border-radius: 999px; display: inline-block; }

/* ---------- Member page ---------- */
.page-me .mast-cta, .page-admin .mast-cta {
  background: var(--pill); border: 0; font: inherit; font-size: 13px; font-weight: 600;
  padding: 10px 16px; border-radius: 999px; cursor: pointer; color: var(--ink);
}
.page-me .mast-cta:hover { background: var(--pill-dark); }
.me { display: flex; justify-content: center; padding: 140px 24px 80px; }
.me-panel { width: 100%; max-width: 520px; text-align: center; }
.me-mark { display: block; height: 56px; width: auto; margin: 0 auto 32px; }
.me h1 { font-size: clamp(30px, 4vw, 48px); margin-bottom: 14px; }
.me .muted { color: var(--ink-soft); font-size: 15px; font-weight: 500; line-height: 1.6; margin: 0 0 28px; }
.me .small { font-size: 13px; color: var(--ink-faint); margin-top: 16px; }
.me .small a { text-decoration: underline; }
.me-sub { font-size: 13px; font-weight: 600; text-align: left; margin: 44px 0 12px; display: flex; justify-content: space-between; align-items: baseline; }
.me-sub .muted { font-size: 13px; margin: 0; }

.codes { list-style: none; margin: 0; padding: 0; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.code {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 8px 10px 20px; border-radius: 999px; background: var(--tint-y); color: var(--tint-ink-y);
}
.code-val { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 17px; font-weight: 600; letter-spacing: 0.1em; }
.code.is-used { background: var(--pill); color: var(--ink-faint); }
.code.is-used .code-val { text-decoration: line-through; text-decoration-color: var(--pill-darker); }
.code-meta { font-size: 12px; font-weight: 500; text-align: right; padding: 8px 12px 8px 0; }
.code-copy {
  border: 0; background: #fff; font: inherit; font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--tint-ink-y); cursor: pointer; padding: 9px 14px; border-radius: 999px;
}
.code-copy:hover { background: var(--y); color: var(--ink); }

.sent { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 12px 18px; border-radius: 999px; background: var(--tint-g); color: var(--tint-ink-g); font-size: 14px; font-weight: 500; text-align: left; }
.sent-check { font-weight: 700; }
.linkish { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: inherit; text-decoration: underline; cursor: pointer; padding: 0; margin-left: 6px; }
.go[disabled] { opacity: .5; }

/* profile */
.avatar {
  position: relative; display: block; width: 96px; height: 96px; margin: 0 auto 28px; border-radius: 50%;
  background: var(--tint-g); color: var(--tint-ink-g); cursor: pointer; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-initial { position: absolute; inset: 0; display: grid; place-items: center; font-size: 36px; font-weight: 600; }
.avatar-edit {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 0 8px; font-size: 11px; font-weight: 600; letter-spacing: .04em;
  background: rgba(20,20,18,.55); color: #fff; text-align: center; opacity: 0; transition: opacity .2s;
}
.avatar:hover .avatar-edit { opacity: 1; }
.profile { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 8px; text-align: left; }
.profile .pill { padding-right: 20px; }
.pill-prefix { color: var(--ink-faint); font-weight: 600; margin-right: 2px; }
.pill-tall { border-radius: 24px; align-items: flex-start; }
.pill textarea { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; font-weight: 500; padding: 10px 0; resize: none; color: var(--ink); }
.pill textarea::placeholder { color: var(--ink-faint); }
.profile-actions { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.btn { border: 0; background: var(--ink); color: #fff; font: inherit; font-size: 13px; font-weight: 600; padding: 10px 18px; border-radius: 999px; cursor: pointer; }
.btn:hover { background: var(--g); }
.profile-actions .small { margin: 0; }

.admin-gate { max-width: 420px; margin: 40px auto 0; text-align: center; }
.admin-gate h1 { font-size: 32px; margin: 0 0 6px; }
.admin-gate .muted { color: var(--ink-soft); font-weight: 500; margin: 0 0 20px; }
.admin-gate .pill { text-align: left; }
.admin-gate .small { margin-top: 10px; }
.admin-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }

/* ---------- Admin ---------- */
.admin { max-width: 860px; margin: 0 auto; padding: 140px 24px 80px; width: 100%; }
.admin-auth { max-width: 420px; margin-bottom: 28px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.admin-actions button {
  border: 0; background: var(--pill); font: inherit; font-size: 13px; font-weight: 600;
  padding: 10px 16px; border-radius: 999px; cursor: pointer; color: var(--ink);
}
.admin-actions button:hover { background: var(--pill-dark); }
.admin-out { font-size: 14px; }
.admin-out table { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.admin-out th, .admin-out td { text-align: left; padding: 10px 14px; vertical-align: top; }
.admin-out td { background: var(--pill); }
.admin-out td:first-child { border-radius: 999px 0 0 999px; }
.admin-out td:last-child { border-radius: 0 999px 999px 0; }
.admin-out th { font-weight: 600; font-size: 12px; color: var(--ink-faint); }
.stats { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0; }
.stats dt { color: var(--ink-soft); font-weight: 500; } .stats dd { margin: 0; font-weight: 600; }

.admin-invite { max-width: 420px; margin-bottom: 32px; }
.admin-wide { max-width: 860px; }
.row { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-in { flex: 1; min-width: 110px; border: 0; background: var(--pill); border-radius: 999px; padding: 10px 14px; font: inherit; font-size: 13px; font-weight: 500; outline: 0; }
.admin-label { font-size: 12px; font-weight: 600; color: var(--ink-faint); margin: 0 0 8px; }
.mini { border: 0; background: var(--tint-g); color: var(--tint-ink-g); font: inherit; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.mini:hover { background: var(--g); color: #fff; }

/* ---------- Social: members wall, profile page, display case, map ---------- */

/* New members block on the homepage */
.members {
  margin: 24px var(--gutter); border-radius: var(--radius); color: var(--fuchsia);
  background: var(--tint-o) url("../assets/members-bg.jpg") center / cover no-repeat;
  min-height: 82vh; position: relative; overflow: hidden; padding: 20vh 40px 0;
  display: block; text-align: left;
}
.members-head { position: relative; z-index: 3; max-width: 640px; margin: 0 auto; text-align: center; color: #fff; text-shadow: 0 2px 18px rgba(138,28,92,.35); }
.members-head h2 { margin-bottom: 6px; color: #fff; }
.members-head p { margin: 0; opacity: .95; }
.members h2 { font-size: clamp(32px, 5vw, 68px); line-height: 1.04; margin-bottom: 12px; position: relative; z-index: 2; }
.members p { margin: 0; font-size: 16px; font-weight: 500; opacity: .85; position: relative; z-index: 2; }
@media (max-width: 1200px) { .members { background-image: url("../assets/members-bg-md.jpg"); } }
.bubbles { position: absolute; inset: 0; }
.msg { position: absolute; display: flex; align-items: center; gap: 8px; max-width: min(300px, 62vw); animation: float var(--dur, 7s) ease-in-out var(--delay, 0s) infinite alternate; z-index: 2; }
.msg-av img { width: 36px; height: 36px; border-radius: 50%; border: 3px solid #fff; display: block; box-shadow: 0 6px 16px rgba(138,28,92,.15); }
.msg-bubble { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 18px 18px 18px 4px; padding: 10px 14px 10px 10px; box-shadow: 0 10px 30px rgba(138,28,92,.14); color: var(--ink); }
.msg-main { min-width: 0; }
.msg-text { font-size: 13px; font-weight: 500; line-height: 1.35; }
.msg-text a { font-weight: 600; }
.msg-text a:hover { color: var(--fuchsia); }
.msg-place { color: var(--ink-soft); white-space: nowrap; }
.msg-meta { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 11px; color: var(--ink-faint); font-weight: 500; }
.msg-thumb { width: 40px; height: 40px; border-radius: 10px; background: var(--pill); display: grid; place-items: center; flex: none; }
.msg-thumb img { width: 26px; }
.bubble {
  position: absolute; border-radius: 50%; overflow: visible; text-decoration: none; color: inherit;
  animation: float var(--dur, 7s) ease-in-out var(--delay, 0s) infinite alternate;
}
.bubble img { width: 100%; height: 100%; border-radius: 50%; display: block; box-shadow: 0 10px 30px rgba(138,28,92,.18); border: 4px solid #fff; }
.bubble .tag {
  position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%) translateY(-4px);
  max-width: min(220px, 60vw);
  background: #fff; color: var(--ink); font-size: 12px; font-weight: 600; padding: 7px 12px; border-radius: 10px; white-space: nowrap;
  opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none;
}
.bubble .tag small { display: block; font-weight: 500; color: var(--ink-faint); font-size: 11px; }
.bubble:hover .tag, .bubble.is-open .tag { opacity: 1; transform: translateX(-50%) translateY(0); }
.bubble .tag.tag-r { left: auto; right: 0; transform: translateY(-4px); }
.bubble:hover .tag.tag-r, .bubble.is-open .tag.tag-r { transform: translateY(0); }
.bubble:hover img { transform: scale(1.06); transition: transform .2s; }
.bubble .new { position: absolute; top: -4px; right: -4px; background: linear-gradient(135deg, #ffd24a, #ff8a00); color: #3a2200; font-size: 10px; font-weight: 700; padding: 3px 7px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
@keyframes float { from { transform: translateY(0) } to { transform: translateY(-18px) } }

/* Profile page */
.profile-head { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 130px 24px 24px; }
.profile-head .avatar-lg { width: 128px; height: 128px; border-radius: 50%; border: 5px solid #fff; box-shadow: 0 14px 40px rgba(0,0,0,.08); }
.profile-head h1 { font-size: clamp(32px, 4.5vw, 56px); margin: 22px 0 6px; }
.profile-head .handle { font-size: 16px; font-weight: 600; color: var(--ink-faint); }
.profile-head .meta { margin: 10px 0 0; font-size: 15px; font-weight: 500; color: var(--ink-soft); }
.profile-head .bio { margin: 16px auto 22px; max-width: 480px; font-size: 16px; font-weight: 500; line-height: 1.55; color: var(--ink-soft); }
.profile-actions { display: flex; gap: 8px; }
.btn-lg { border: 0; font: inherit; font-size: 14px; font-weight: 600; padding: 12px 20px; border-radius: 999px; cursor: pointer; }
.btn-dark { background: var(--ink); color: #fff; } .btn-dark:hover { background: var(--g); }
.btn-soft { background: var(--pill); color: var(--ink); } .btn-soft:hover { background: var(--pill-dark); }

.section { margin: 24px var(--gutter); }
.section-title { display: flex; justify-content: space-between; align-items: baseline; margin: 0 8px 14px; }
.section-title h2 { font-size: 22px; }
.section-title span { font-size: 13px; font-weight: 600; color: var(--ink-faint); }

/* Display case */
.case {
  border-radius: var(--radius); background: var(--tint-y); padding: 28px 28px 0; position: relative; overflow: hidden;
}
.case-glass { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.35) 0%, rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%, rgba(255,255,255,.18) 100%); pointer-events: none; }
.shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: end; }
.slot { text-align: center; padding: 20px 10px 0; position: relative; }
.slot img { width: min(170px, 60%); display: block; margin: 0 auto; filter: drop-shadow(0 12px 18px rgba(107,90,28,.18)); transition: transform .25s; }
.slot:hover img { transform: translateY(-8px) rotate(-2deg); }
.slot .plinth { height: 14px; border-radius: 999px 999px 0 0; background: rgba(107,90,28,.18); margin: 10px 20px 0; }
.slot .label { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); background: #fff; color: var(--tint-ink-y); font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.slot.is-empty { opacity: .55; }
.slot.is-empty .ghost { width: min(170px,60%); aspect-ratio: 100/120; margin: 0 auto; border-radius: 40px; border: 3px dashed rgba(107,90,28,.35); }
.case-base { height: 34px; margin: 0 -28px; background: rgba(107,90,28,.22); }
.case-base-lip { height: 8px; margin: 0 -28px; background: rgba(107,90,28,.32); }

/* Collection grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.card { background: var(--pill); border-radius: 22px; padding: 18px 12px 12px; text-align: center; }
.card img { width: 70%; display: block; margin: 0 auto 10px; }
.card b { display: block; font-size: 13px; font-weight: 600; }
.card small { color: var(--ink-faint); font-size: 12px; font-weight: 500; }

/* Friends row */
.friends { display: flex; flex-wrap: wrap; gap: 10px; }
.friend { display: flex; align-items: center; gap: 10px; background: var(--pill); padding: 6px 14px 6px 6px; border-radius: 999px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--ink); }
.friend img { width: 36px; height: 36px; border-radius: 50%; }
.friend small { display: block; font-weight: 500; color: var(--ink-faint); font-size: 11px; }
.friend:hover { background: var(--pill-dark); }

/* Map */
.map-wrap { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1000/520; background: var(--tint-o); position: relative; }
.map-img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pin { position: absolute; transform: translate(-50%,-50%); text-decoration: none; }
.pin-dot { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0,0,0,.15); transition: transform .2s; }
.pin-dot img { width: 20px; }
.pin:hover .pin-dot { transform: scale(1.15); }
.pin-tag { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; padding: 5px 9px; border-radius: 999px; white-space: nowrap; opacity: 0; transition: opacity .2s; }
.pin:hover .pin-tag, .pin.is-open .pin-tag { opacity: 1; }
.map-legend { position: absolute; left: 16px; bottom: 16px; z-index: 500; display: flex; gap: 8px; flex-wrap: wrap; }
.map-legend span { background: #fff; color: var(--tint-ink-o); font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
@media (max-width: 640px) { .shelf { grid-template-columns: repeat(3, 1fr); gap: 8px; } .slot .label { font-size: 10px; }  }

.btn-green { background: var(--tint-g); color: var(--tint-ink-g); }
.btn-green:hover { background: var(--g); color: #fff; }
.page-u .mast-cta { background: var(--pill); border: 0; font: inherit; font-size: 13px; font-weight: 600; padding: 10px 16px; border-radius: 999px; color: var(--ink); }
.page-u .mast-cta:hover { background: var(--pill-dark); }
.page-u .me-panel { text-align: center; }
.members[hidden] { display: none; }
.members.reveal > div { opacity: 1; transform: none; }
.members .reveal-inner { position: relative; z-index: 2; }

/* case editor on /me */
.case-mini { padding: 18px 18px 0; text-align: left; }
.case-mini .shelf { gap: 10px; }
.slot-btn { border: 0; background: transparent; font: inherit; cursor: pointer; color: inherit; width: 100%; }
.case-mini .slot img { width: min(120px, 70%); }
.case-mini .slot .label { bottom: 18px; font-size: 11px; }
.case-mini .slot.is-empty .ghost { width: min(120px,70%); border-radius: 30px; }
.case-mini .slot.is-empty { opacity: .8; }
.slot-x { position: absolute; top: 6px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: var(--ink-soft); font-size: 15px; line-height: 24px; opacity: 0; transition: opacity .2s; }
.slot-btn:hover .slot-x { opacity: 1; }
.case-mini .case-base, .case-mini .case-base-lip { margin: 0 -18px; }
.picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin: 12px 0 0; text-align: left; }
.pick { border: 0; font: inherit; cursor: pointer; color: inherit; }
.pick:hover { background: var(--tint-y); }
.toggle { display: flex; align-items: center; gap: 10px; margin: 22px 0 0; font-size: 13px; font-weight: 500; color: var(--ink-soft); text-align: left; cursor: pointer; }
.toggle input { width: 18px; height: 18px; accent-color: var(--g); }

/* legal pages */
.legal { max-width: 640px; margin: 0 auto; padding: 140px 24px 80px; }
.legal h1 { font-size: clamp(32px, 4.5vw, 48px); margin-bottom: 12px; }
.legal h2 { font-size: 18px; margin: 32px 0 10px; }
.legal p, .legal li { font-size: 15px; line-height: 1.65; color: var(--ink-soft); font-weight: 500; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal a { text-decoration: underline; }
.legal code { background: var(--pill); padding: 2px 6px; border-radius: 6px; font-size: 13px; }

/* ---------- Claim page ---------- */
.claim { max-width: 560px; margin: 0 auto; padding: 130px 24px 60px; text-align: center; }
.claim h1 { font-size: clamp(30px, 4vw, 44px); margin: 6px 0 6px; }
.claim-stage { width: 200px; height: 200px; margin: 0 auto 18px; border-radius: 50%; background: var(--tint-y); display: grid; place-items: center; }
.claim-stage img { width: 120px; filter: drop-shadow(0 12px 18px rgba(107,90,28,.18)); }
.claim-kicker { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--tint-ink-y); }
.claim .muted { color: var(--ink-soft); font-weight: 500; }
.claim-lead { font-size: 18px; font-weight: 600; margin: 28px 0 10px; }
.claim .pill { text-align: left; margin: 12px 0; }
.claim .friend { margin: 8px auto; }
.claim .case-mini { margin: 16px 0; }
.claim .slot.is-new img { animation: pop .6s cubic-bezier(.2,.8,.2,1.4); }
@keyframes pop { 0% { transform: scale(.6); opacity: 0 } 100% { transform: none; opacity: 1 } }
.claim .picker { margin-top: 8px; }
.foot a + a, .foot span a { text-decoration: none; }

/* public profile uses the same container + identity card */
.usec { margin: 24px 0; }
.identity .profile-actions { margin-bottom: 4px; flex: none; }
.page-u .me2 { padding-top: 96px; }
.identity-text h1 { overflow-wrap: anywhere; }
@media (max-width: 760px) { .identity { flex-wrap: wrap; } .identity .profile-actions { width: 100%; } }

/* ---------- Member page v2 ---------- */
.me2 { max-width: 1140px; margin: 0 auto; padding: 96px var(--gutter) 60px; }
.hero-card { position: relative; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: 0 10px 40px rgba(0,0,0,.06); }
.banner { z-index: 0; }
.identity { z-index: 1; }
.banner { position: relative; width: 100%; aspect-ratio: 3 / 1; max-height: 360px; background: var(--tint-o) url("../assets/members-bg-md.jpg") center / cover no-repeat; }
.banner.has-img { background: none; }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.identity { position: relative; display: flex; align-items: flex-end; gap: 18px; padding: 0 24px 22px; }
.avatar-xl { width: 128px; height: 128px; border-radius: 50%; border: 5px solid #fff; margin-top: -64px; background: #fff; object-fit: cover; box-shadow: 0 8px 24px rgba(0,0,0,.12); flex: none; }
.identity-text { flex: 1; min-width: 0; padding-top: 12px; }
.identity-text h1 { font-size: clamp(24px, 3.4vw, 36px); margin: 0 0 2px; }
.identity-meta { font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.identity-bio { margin: 8px 0 0; font-size: 15px; font-weight: 500; color: var(--ink-soft); max-width: 60ch; }
.icon-btn { border: 0; background: var(--pill); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--ink); flex: none; margin-bottom: 4px; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: var(--pill-dark); }
.coll-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 34px 0 14px; }
.coll-head h2 { font-size: 20px; margin: 0; }
.coll-head h2 .muted { font-size: 13px; font-weight: 500; color: var(--ink-faint); margin-left: 6px; }
.coll-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sortsel { appearance: none; -webkit-appearance: none; border: 0; background: var(--pill) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M6 8l4 4 4-4' fill='none' stroke='%23141412' stroke-width='2' stroke-linecap='round'/></svg>") no-repeat right 10px center / 14px; border-radius: 999px; padding: 9px 30px 9px 14px; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; }
.seg { display: inline-flex; background: var(--pill); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px; cursor: pointer; color: var(--ink-soft); }
.seg button.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.featured { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; border-radius: var(--radius); background: linear-gradient(135deg, #f9f1d2, #fbe6d6); padding: 24px; align-items: center; }
.featured-stage { display: grid; place-items: center; min-height: 260px; }
.featured-stage img { width: min(280px, 80%); filter: drop-shadow(0 22px 24px rgba(107,90,28,.25)); transition: transform .4s cubic-bezier(.2,.8,.2,1.2); }
.featured:hover .featured-stage img { transform: translateY(-6px) rotate(-2deg); }
.featured-info h3 { font-size: clamp(26px, 3.4vw, 40px); margin: 4px 0 2px; }
.featured-info .muted { margin: 0; color: var(--tint-ink-y); font-weight: 500; }
.featured-info .pid { font-family: ui-monospace, Menlo, monospace; font-size: 12px; letter-spacing: .08em; color: var(--tint-ink-y); opacity: .8; margin: 4px 0 4px; }
.featured-place { margin: 0 0 14px; }
.featured-place .place-tag { position: static; transform: none; }
.setbar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.7); overflow: hidden; }
.setbar span { display: block; height: 100%; background: var(--g); border-radius: 999px; }
.tiles { display: grid; gap: 12px; margin-top: 12px; }
.tiles-large { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.tiles-small { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.tile { position: relative; border: 0; background: var(--pill); border-radius: 18px; padding: 14px 8px 10px; font: inherit; color: inherit; cursor: pointer; text-align: center; transition: transform .15s, box-shadow .15s; }
.tile img { width: 62%; display: block; margin: 0 auto 6px; filter: drop-shadow(0 8px 8px rgba(0,0,0,.1)); pointer-events: none; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.tile.is-on { outline: 3px solid var(--g); outline-offset: 2px; background: var(--tint-g); }
.tile.is-drag { opacity: .4; }
.tile-label b { display: block; font-size: 12px; font-weight: 600; }
.tile-label small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-faint); }
.tiles-small .tile-label { display: none; }
.tile .place-tag { top: 6px; font-size: 9px; padding: 3px 7px; left: 50%; }
.tile-badge { position: absolute; top: 8px; left: 8px; background: var(--fuchsia); color: #fff; font-size: 9px; font-weight: 700; padding: 3px 7px; border-radius: 999px; }
.empty-note { background: var(--pill); border-radius: 18px; padding: 28px; text-align: center; color: var(--ink-soft); font-weight: 500; }
.setcard { background: var(--pill); border-radius: var(--radius); padding: 20px; margin-bottom: 14px; }
.set-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.set-head h3 { margin: 0; font-size: 18px; }
.set-head .muted { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.setgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 14px; }
.settile { border: 0; background: #fff; border-radius: 16px; padding: 12px 6px 10px; font: inherit; color: inherit; text-align: center; cursor: pointer; }
.settile img { width: 60%; display: block; margin: 0 auto 6px; }
.settile b { display: block; font-size: 12px; font-weight: 600; }
.settile small { display: block; font-size: 11px; color: var(--ink-faint); font-weight: 500; }
.settile.is-missing { background: transparent; border: 2px dashed var(--pill-darker); cursor: default; color: var(--ink-faint); }
.ghost-sq { display: block; width: 60%; aspect-ratio: 100/120; margin: 0 auto 6px; border-radius: 30px; background: rgba(0,0,0,.04); }
.me-foot-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 40px; }
.mini-quiet { background: transparent; color: var(--ink-faint); }
.mini-quiet:hover { background: var(--pill); color: var(--ink); }
.edit-banner { aspect-ratio: 3/1; border-radius: 16px; background: var(--tint-o) url("../assets/members-bg-md.jpg") center / cover; display: flex; align-items: flex-end; justify-content: flex-end; padding: 10px; }
.chip-btn { background: #fff; color: var(--ink); font-size: 12px; font-weight: 600; padding: 8px 12px; border-radius: 999px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.edit-avatar-row { display: flex; align-items: center; gap: 12px; margin-top: -32px; padding-left: 14px; }
.edit-avatar-row img { width: 72px; height: 72px; border-radius: 50%; border: 4px solid #fff; object-fit: cover; background: #fff; }
.cropper { position: relative; border-radius: 16px; overflow: hidden; background: #eee; touch-action: none; }
.cropper canvas { width: 100%; height: 100%; display: block; cursor: grab; }
@media (max-width: 640px) {
  .me2 { padding-top: 84px; }
  .identity { flex-wrap: wrap; align-items: flex-start; }
  .avatar-xl { width: 96px; height: 96px; margin-top: -48px; }
  .featured { grid-template-columns: 1fr; padding: 18px; }
  .featured-stage { min-height: 180px; }
  .tiles-large { grid-template-columns: repeat(2, 1fr); }
  .tiles-small { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Feed ---------- */
.finds { margin: 24px var(--gutter); border-radius: var(--radius); background: #fff; box-shadow: 0 10px 40px rgba(0,0,0,.06); padding: 28px; }
.finds > div { max-width: 760px; margin: 0 auto; }
.feed { list-style: none; margin: 0; padding: 0; }
.fd { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--pill); }
.fd:first-child { border-top: 0; }
.fd > .fd-who img { width: 40px; height: 40px; border-radius: 50%; display: block; }
.fd > .fd-who { flex: none; font-size: 0; }
.fd-body { flex: 1; min-width: 0; }
.fd-line { font-size: 15px; font-weight: 500; line-height: 1.45; }
.fd-line .fd-who { font-weight: 600; }
.fd-line .fd-who img { display: none; }
.fd-item { font-weight: 600; text-decoration: underline; text-decoration-color: var(--pill-darker); text-underline-offset: 3px; }
.fd-item:hover { color: var(--g); }
.fd-place { color: var(--ink-soft); font-weight: 500; white-space: nowrap; }
.fd-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.chip { font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: var(--pill); color: var(--ink-soft); }
.chip.fd-r1 { background: var(--tint-y); color: var(--tint-ink-y); }
.chip.fd-r2 { background: var(--tint-o); color: var(--tint-ink-o); }
.chip.fd-r3 { background: var(--fuchsia); color: #fff; }
.fd-time { font-size: 11px; color: var(--ink-faint); font-weight: 500; margin-left: auto; }
.fd-thumb { flex: none; width: 56px; height: 56px; border-radius: 14px; background: var(--pill); display: grid; place-items: center; }
.fd-thumb img { width: 34px; }
@media (max-width: 560px) { .finds { padding: 18px; margin: 12px; } .fd-place { white-space: normal; } }

/* ---------- Permanent record page ---------- */
.plaque-lg { margin: 12px auto 0; min-width: 0; padding: 7px 16px 8px; border-radius: 6px; }
.plaque-lg b { font-size: 13px; }
.plaque-lg .pid { font-size: 11px; margin-top: 1px; }
.cert {
  position: relative; margin: 26px 0 0; padding: 10px; text-align: left;
  border: 1.5px solid #cdb97a; border-radius: 4px;
  background:
    repeating-linear-gradient(0deg, rgba(205,185,122,.08) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(90deg, rgba(205,185,122,.08) 0 1px, transparent 1px 7px),
    #fffdf7;
}
.cert::before { content: ""; position: absolute; inset: 5px; border: 1px solid #cdb97a; border-radius: 2px; pointer-events: none; }
.cert::after { content: ""; position: absolute; inset: 9px; border: 1px dashed rgba(205,185,122,.6); pointer-events: none; }
.cert-inner { position: relative; background: #fffdf7; padding: 22px 22px 18px; border: 1px solid rgba(205,185,122,.5); }
.cert-label { margin: 0 0 8px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #8a6d1f; }
.cert-rule { display: flex; align-items: center; gap: 10px; margin: 16px 0 14px; color: #cdb97a; }
.cert-rule span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #cdb97a, transparent); }
.cert-rule i { font-style: normal; font-size: 12px; color: #d9b24a; }
.cert .friend { background: rgba(205,185,122,.12); }
.cert .prov li { border-top-color: rgba(205,185,122,.3); }
.cert-note { margin: 14px 0 0; font-size: 11px; line-height: 1.5; color: var(--ink-faint); font-weight: 500; }

/* ---------- Piece sheet: certificate + title card ---------- */
.plaque-sm { margin-top: 6px; min-width: 0; padding: 5px 12px 6px; border-radius: 5px; }
.plaque-sm b { font-size: 12px; } .plaque-sm .pid { font-size: 10px; }
.studio-big { min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.studio-big img { width: 120px; }
.cert-sheet { margin-top: 16px; }
.cert-sheet .cert-inner { padding: 18px 18px 14px; }
.cert-foot { margin: 0; font-size: 11px; color: var(--ink-faint); font-weight: 500; text-align: center; }
.cert-foot a { color: #8a6d1f; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.title-card {
  margin-top: 16px; border-radius: 14px; overflow: hidden; background: #123d10; color: #f3e9c8;
  box-shadow: 0 10px 30px rgba(18,61,16,.25);
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 2px, transparent 2px 8px);
}
.title-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid rgba(243,233,200,.25); }
.title-kicker { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #e6c766; }
.title-no { font-family: ui-monospace, Menlo, monospace; font-size: 11px; letter-spacing: .1em; opacity: .8; }
.title-body { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 16px 4px; }
.title-lbl { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; opacity: .65; font-weight: 600; }
.title-val { font-size: 14px; font-weight: 600; margin-top: 2px; }
.title-btn {
  display: flex; justify-content: space-between; align-items: center; width: calc(100% - 32px); margin: 12px 16px 0;
  border: 0; border-radius: 10px; padding: 13px 16px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  background: linear-gradient(160deg, #f6dd8a 0%, #d9b24a 45%, #f2d27a 55%, #b9902d 100%); color: #3a2a06;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -1px 0 rgba(0,0,0,.2);
}
.title-btn:hover { filter: brightness(1.05); }
.title-fine { margin: 10px 16px 14px; font-size: 10.5px; line-height: 1.45; opacity: .7; font-weight: 500; }
@media (max-width: 480px) { .title-body { grid-template-columns: 1fr; } }

.piecemap { margin-top: 16px; }
.pm-map { aspect-ratio: 1000/520; }
.pm-list { list-style: none; margin: 8px 0 0; padding: 0; font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.pm-list li { padding: 4px 0; }
.pm-event { color: var(--fuchsia); font-weight: 600; }
.pm-when { color: var(--ink-faint); }
.transfer-row { margin-top: 18px; text-align: left; }
.transfer-row .title-fine { margin: 8px 0 0; color: var(--ink-faint); opacity: 1; }

/* ---------- Motion off ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { height: auto; }
  .hero-stage { position: static; height: auto; }
  .hero-block { position: static; margin: var(--nav-h) var(--gutter) 24px; min-height: 80vh; flex-direction: column; gap: 48px; padding: 64px 0; }
  .mark3, .piece { transform: none !important; opacity: 1 !important; }
  .hero-copy { position: static; transform: none; opacity: 1; }
  .hint { display: none; }
  .hint { animation: none; }
  .reveal > div { opacity: 1; transform: none; transition: none; }
  .go.is-firing, .go.is-firing svg { animation: none; }
  .bubble, .msg { animation: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .foot-inner { flex-direction: column; align-items: flex-start; }
  .foot-right { align-self: flex-start; }
  .members { padding: 14vh 20px 0; min-height: 90vh; }
  .msg { max-width: 72vw; }
  .mast { flex-wrap: wrap; padding: 16px var(--gutter); gap: 12px; }
  .mark img { height: 32px; }
  .invite-msg:empty { display: none; }
  .mark3 { width: 130px; height: 161px; }
  .piece-sparkle { transform: translateY(calc(-200px * var(--p))) rotate(calc(24deg * var(--p))); }
  .piece-v { transform: translateY(calc(-80px * var(--p))); }
  .piece-o { transform: translateY(calc(110px * var(--p))); }
  .tate { font-size: 11px; right: 22px; }
  .statement { margin: 12px; min-height: 70vh; padding: 48px 20px; border-radius: 22px; }
  :root { --nav-h: 124px; }
  .hero-block { left: 12px; right: 12px; bottom: 12px; border-radius: 22px; }
  .statement > div, .waitlist > div, .hero-copy { padding-right: 20px; }
}

/* ---------- Case v2: glass display case with graph-paper backdrop, spotlights, gold plaques ---------- */
.vcase-outer { position: relative; border-radius: var(--radius); overflow: hidden; }
.vcase {
  position: relative; background: #f7f1e4;
  background-image:
    radial-gradient(ellipse 22% 60% at 17% -6%, rgba(255,255,255,.8), rgba(255,255,255,0) 70%),
    radial-gradient(ellipse 22% 60% at 50% -6%, rgba(255,255,255,.8), rgba(255,255,255,0) 70%),
    radial-gradient(ellipse 22% 60% at 83% -6%, rgba(255,255,255,.8), rgba(255,255,255,0) 70%),
    linear-gradient(#efe6d3, #e2d6b8);
  transition: background-color .5s ease;
}
.vcase-grid {
  position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: linear-gradient(rgba(140,110,40,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(140,110,40,.14) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 88%, transparent);
}
.vcase-shelf { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; padding: 52px 20px 40px; min-height: 300px; gap: 6px; }
.vslot-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.vslot { position: relative; border: 0; background: transparent; font: inherit; color: inherit; cursor: pointer; padding: 0 6px 4px; text-align: center; width: 100%; }
.vslot[disabled] { cursor: default; }
.vslot img { width: min(150px, 62%); display: block; margin: 0 auto 14px; filter: drop-shadow(0 16px 14px rgba(70,50,20,.22)); transition: transform .3s cubic-bezier(.2,.8,.2,1.2); position: relative; z-index: 1; }
.vslot:not([disabled]):hover img { transform: translateY(-8px) rotate(-2deg) scale(1.03); }
.vslot .spot { position: absolute; left: 50%; bottom: 44px; width: 62%; height: 18px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse at center, rgba(255,255,255,.7), rgba(255,255,255,0) 70%); }
.vslot .ghost { display: block; width: min(150px, 62%); aspect-ratio: 100/120; margin: 0 auto 14px; border-radius: 40px; border: 3px dashed rgba(110,85,40,.3); position: relative; z-index: 1; transition: border-color .2s, background .2s; }
.vslot.is-empty:not([disabled]):hover .ghost { border-color: var(--g); background: rgba(255,255,255,.35); }
.vslot.is-new img { animation: pop .7s cubic-bezier(.2,.8,.2,1.4); }
.place-tag {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: inline-flex; align-items: center; gap: 4px; background: rgba(255,255,255,.92); color: var(--ink-soft);
  font-size: 9.5px; font-weight: 600; padding: 4px 8px; border-radius: 999px; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.1);
}
.place-tag.is-event { background: linear-gradient(135deg, var(--fuchsia), #c9418f); color: #fff; }
.place-tag .tag-ico { flex: none; }
.note-bub {
  max-width: 92%; border: 0; border-radius: 14px 14px 14px 4px; padding: 6px 12px; font: inherit; font-size: 11px; font-weight: 500;
  background: rgba(255,255,255,.55); color: var(--ink-faint); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: background .2s, color .2s;
}
.note-bub:hover { background: rgba(255,255,255,.8); }
.note-bub.has-note { background: #fff; color: var(--ink); box-shadow: 0 3px 10px rgba(0,0,0,.08); white-space: normal; }
.note-x { margin-left: 6px; color: var(--ink-faint); font-weight: 700; }
.note-x:hover { color: var(--o); }
.plaque {
  display: inline-block; min-width: 70%; padding: 6px 12px 7px; border-radius: 6px;
  background: linear-gradient(160deg, #f6dd8a 0%, #d9b24a 45%, #f2d27a 55%, #b9902d 100%);
  color: #4a3608; box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -1px 0 rgba(0,0,0,.18), 0 2px 4px rgba(60,40,10,.25);
  line-height: 1.15; position: relative; z-index: 1;
}
.plaque b { display: block; font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.plaque small { display: block; font-size: 10px; font-weight: 600; letter-spacing: .06em; }
.plaque .pid { font-family: ui-monospace, Menlo, monospace; font-weight: 600; letter-spacing: .1em; color: #4a3608 !important; opacity: 1; }
.plaque-empty { font-size: 12px; font-weight: 600; opacity: .6; background: linear-gradient(160deg, #e9dcb0, #d8c99a); }

/* glass front: sheen sweep + subtle reflection, no seams */
.vcase-glass {
  position: absolute; inset: 0; pointer-events: none; border-radius: var(--radius);
  background: linear-gradient(115deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,.04) 18%, rgba(255,255,255,0) 40%, rgba(255,255,255,0) 70%, rgba(255,255,255,.08) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 0 40px rgba(255,255,255,.06);
}
.vcase-glass::after {
  content: ""; position: absolute; top: -60%; left: -30%; width: 45%; height: 220%;
  background: linear-gradient(100deg, rgba(255,255,255,0), rgba(255,255,255,.35), rgba(255,255,255,0));
  transform: rotate(8deg); animation: sheen 9s ease-in-out infinite;
}
@keyframes sheen { 0%, 40% { left: -40%; } 60%, 100% { left: 130%; } }
.theme-flip {
  position: absolute; right: 12px; bottom: 12px; z-index: 3; width: 28px; height: 28px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.75); color: var(--ink-soft); font-size: 13px; cursor: pointer;
  display: grid; place-items: center; backdrop-filter: blur(2px); transition: background .2s;
}
.theme-flip:hover { background: #fff; }

/* dark theme */
.vcase-outer.is-dark .vcase { background: linear-gradient(#16140f, #0c0b08); }
.vcase-outer.is-dark .vcase-grid { opacity: .35; background-image: linear-gradient(rgba(220,195,120,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(220,195,120,.12) 1px, transparent 1px); }
.vcase-outer.is-dark .vslot .spot { background: radial-gradient(ellipse at center, rgba(255,255,255,.18), rgba(255,255,255,0) 70%); }
.vcase-outer.is-dark .vslot .ghost { border-color: rgba(220,195,120,.35); }
.vcase-outer.is-dark .note-bub { background: rgba(255,255,255,.08); color: rgba(255,255,255,.55); }
.vcase-outer.is-dark .note-bub.has-note { background: rgba(255,255,255,.14); color: #f3e9c8; }
.vcase-outer.is-dark .place-tag { background: rgba(20,18,14,.7); color: #f3e9c8; }
.vcase-outer.is-dark .vcase-glass { box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }

/* acrylic cases for the rest of the collection */
.acrylic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.acrylic { position: relative; border: 0; background: transparent; font: inherit; color: inherit; cursor: pointer; padding: 0; text-align: center; }
.acrylic .place-tag { top: 6px; font-size: 9px; padding: 3px 7px; }
.acrylic-glass { position: absolute; inset: 0; border-radius: 14px; background: linear-gradient(160deg, rgba(255,255,255,.9), rgba(235,235,230,.7)); border: 1.5px solid rgba(255,255,255,.9); box-shadow: inset 0 0 0 1px rgba(0,0,0,.05), inset 0 -18px 0 rgba(0,0,0,.05), 0 6px 14px rgba(0,0,0,.06); }
.acrylic-glass::after { content: ""; position: absolute; left: 10%; top: 6%; width: 22%; height: 60%; border-radius: 40%; background: linear-gradient(rgba(255,255,255,.7), rgba(255,255,255,0)); }
.acrylic img { position: relative; width: 60%; display: block; margin: 20px auto 6px; filter: drop-shadow(0 8px 8px rgba(0,0,0,.12)); transition: transform .25s; }
.acrylic:hover img { transform: translateY(-4px); }
.acrylic-label { position: relative; display: block; padding: 0 8px 14px; }
.acrylic-label b { display: block; font-size: 12px; font-weight: 600; }
.acrylic-label small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-faint); }

/* sheets (add piece / piece view / transfer / scan) */
.sheet-bg { position: fixed; inset: 0; background: rgba(20,20,18,.45); z-index: 40; display: flex; align-items: flex-end; justify-content: center; padding: 0; }
.sheet-bg[hidden] { display: none; }
.sheetbox { background: #fff; width: min(560px, 100%); max-height: 92vh; overflow: auto; border-radius: 28px 28px 0 0; padding: 22px 22px 32px; text-align: left; }
@media (min-width: 640px) { .sheet-bg { align-items: center; padding: 24px; } .sheetbox { border-radius: 28px; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sheet-head h3 { margin: 0; font-size: 18px; font-weight: 600; }
.sheet-head h3:empty { display: none; }
.sheet-head:has(h3:empty) { margin-bottom: 0; }
.sheet-x { border: 0; background: var(--pill); width: 34px; height: 34px; border-radius: 50%; font-size: 18px; cursor: pointer; }
.choice { display: flex; align-items: center; gap: 14px; width: 100%; border: 0; background: var(--pill); border-radius: 18px; padding: 16px; font: inherit; text-align: left; cursor: pointer; margin-bottom: 8px; color: inherit; }
.choice:hover { background: var(--pill-dark); }
.choice .ico { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 20px; flex: none; }
.choice b { display: block; font-size: 15px; font-weight: 600; }
.choice small { display: block; font-size: 13px; color: var(--ink-soft); font-weight: 500; }
.scanner { position: relative; border-radius: 18px; overflow: hidden; background: #111; aspect-ratio: 1; }
.scanner video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanner .frame { position: absolute; inset: 14%; border: 3px solid rgba(255,255,255,.85); border-radius: 22px; }
.scanner .scan-msg { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; color: #fff; font-size: 13px; font-weight: 600; }
.piece-hero { display: flex; gap: 16px; align-items: center; }
.piece-hero img { width: 96px; filter: drop-shadow(0 8px 10px rgba(0,0,0,.15)); }
.piece-hero h3 { margin: 0 0 2px; font-size: 20px; }
.piece-hero .pid { font-family: ui-monospace, Menlo, monospace; font-size: 12px; letter-spacing: .08em; color: var(--ink-faint); }
.prov { list-style: none; margin: 14px 0 0; padding: 0; }
.prov li { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--pill); font-size: 13px; font-weight: 500; }
.prov li:first-child { border-top: 0; }
.prov .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--y); margin-top: 5px; flex: none; }
.prov .dot.t { background: var(--fuchsia); }
.prov .when { color: var(--ink-faint); font-size: 12px; display: block; }
.prov .who { font-weight: 600; text-decoration: underline; text-decoration-color: var(--pill-darker); text-underline-offset: 3px; }
.prov .who:hover { color: var(--g); }
.prov li > span:last-child { line-height: 1.45; }
.prov-place { color: var(--ink-soft); white-space: nowrap; }
.prov-place .pin-ico { vertical-align: -2px; margin: 0 3px 0 4px; color: var(--fuchsia); }
.warn { background: var(--tint-o); color: var(--tint-ink-o); border-radius: 14px; padding: 12px 14px; font-size: 13px; font-weight: 500; margin: 12px 0; }
.bigcode { font-family: ui-monospace, Menlo, monospace; font-size: 26px; letter-spacing: .14em; background: var(--tint-y); color: var(--tint-ink-y); padding: 14px 20px; border-radius: 999px; display: inline-block; font-weight: 600; }
.qrbox { display: grid; place-items: center; padding: 12px; background: #fff; border-radius: 14px; border: 1px solid var(--pill-dark); width: fit-content; margin: 12px auto; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.btn-danger { background: var(--tint-o); color: var(--tint-ink-o); }
.btn-danger:hover { background: var(--o); color: #fff; }
.sheet-msg { font-size: 13px; font-weight: 500; color: var(--ink-soft); margin: 10px 0 0; min-height: 1.2em; }
.studio-soon { border-radius: 18px; background: linear-gradient(135deg, #f9f1d2, #fbe6d6); padding: 18px; text-align: center; margin-top: 14px; }
.studio-soon img { width: 90px; }
@media (max-width: 560px) { .vcase-shelf { padding: 44px 8px 0; min-height: 220px; } .vslot img, .vslot .ghost { width: min(110px, 78%); } .plaque { min-width: 90%; padding: 5px 6px 6px; } .plaque b { font-size: 10px; } .plaque small { font-size: 9px; } }

/* ---------- 3D viewer ---------- */
.v3d { position: relative; border-radius: 18px; overflow: hidden; background: linear-gradient(135deg, #f9f1d2, #fbe6d6); min-height: 300px; }
.v3d-stage { position: absolute; inset: 0; cursor: grab; }
.v3d.is-drag .v3d-stage { cursor: grabbing; }
.v3d-stage canvas { display: block; width: 100% !important; height: 100% !important; touch-action: none; }
.v3d-ui { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.v3d-badge { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tint-ink-y); background: rgba(255,255,255,.7); padding: 5px 9px; border-radius: 999px; opacity: 0; transition: opacity .25s; }
.v3d-badge.is-on { opacity: 1; }
.v3d-reset { pointer-events: auto; border: 0; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.85); color: var(--ink); font-size: 16px; cursor: pointer; display: grid; place-items: center; }
.v3d-reset:hover { background: #fff; }
.v3d-hint { position: absolute; left: 0; right: 0; bottom: 8px; margin: 0; text-align: center; font-size: 11px; font-weight: 500; color: var(--tint-ink-y); opacity: .8; pointer-events: none; }
.v3d:not(.is-loaded)::after { content: ""; position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border: 3px solid rgba(0,0,0,.1); border-top-color: var(--g); border-radius: 50%; animation: spin .8s linear infinite; }
.v3d.is-failed::after { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.v3d-err { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; font-size: 13px; color: var(--ink-soft); font-weight: 500; }
.v3d-partner { font-size: 12px; color: var(--ink-faint); font-weight: 500; margin: 8px 0 0; }
.v3d-desc { font-size: 14px; line-height: 1.55; color: var(--ink-soft); font-weight: 500; margin: 10px 0 0; }

.p-3d { width: min(560px, 100%); height: 360px; margin: 0 auto 18px; }
