/* Gen Exit Club — same tokens as GenerationExit.band, phone first. */
@font-face {
  font-family: "HCraftBrew";
  src: url("/club/assets/HCraftBrew-Regular.otf") format("opentype");
  font-display: swap;
}

:root {
  --bg: #000;
  --bg-alt: #000;
  --panel: #000;
  --panel-2: #000;
  --press: #1a1715; /* brief tap feedback only */
  --red: #d31f2c;
  --red-dark: #a8121d;
  --yellow: #f3b70a;
  --brand-yellow: #ffcf1a;
  --cream: #f2ece0;
  --text: #e9e3d6;
  --muted: #a89f8f;
  --border: #2e2a25;
  --line: #2a2622;
  --radius: 6px;
  --nav-h: 58px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  min-height: 100dvh;
  -webkit-tap-highlight-color: transparent;
  overflow-wrap: anywhere;
}
img, video { max-width: 100%; display: block; }
a { color: var(--yellow); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.noscript { padding: 24px; text-align: center; }

/* ---------- type ---------- */
h1, h2, h3, .display, .section-title, .eyebrow {
  font-family: "Oswald", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--cream);
  line-height: 1.05;
}
.display { font-size: clamp(2.5rem, 12vw, 4.6rem); font-weight: 700; }
.display.small { font-size: clamp(1.9rem, 8vw, 2.8rem); }
.eyebrow { color: var(--red); font-weight: 600; letter-spacing: 0.2em; font-size: 0.8rem; margin-bottom: 8px; }
.section-title { font-family: "HCraftBrew", "Oswald", sans-serif; font-weight: 400; font-size: 1.9rem; letter-spacing: 0.03em; color: var(--brand-yellow); margin: 2px 0 12px; }
.muted { color: var(--muted); }
.help { color: var(--muted); font-size: 0.92rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 20px;
  font-family: "Oswald", sans-serif; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.95rem;
  background: var(--red); color: var(--cream); border: 2px solid var(--red); border-radius: 2px;
  text-align: center;
}
.btn:active { background: var(--red-dark); border-color: var(--red-dark); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.big { min-height: 52px; font-size: 1.05rem; width: 100%; box-shadow: 3px 3px 0 #000; }
.btn.ghost { background: transparent; border-color: var(--border); color: var(--cream); }
.btn.ghost:active { background: var(--press); }
.btn.small { min-height: 38px; padding: 7px 12px; font-size: 0.8rem; }
.btn.wide { width: 100%; }
.textlink { background: none; border: 0; color: var(--yellow); font-weight: 600; padding: 10px 0; min-height: 44px; }
.textlink:disabled { color: var(--muted); font-weight: 500; }
.textlink.danger { color: #ff6b6b; }
.iconbtn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  background: none; border: 0; color: var(--muted); border-radius: 50%;
}
.iconbtn.small { width: 36px; height: 36px; }
.iconbtn:active { background: var(--press); }
.icon { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.row { display: flex; gap: 12px; align-items: center; }
.row.spread { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.row > .btn { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 12px; }

/* ---------- inputs ---------- */
input[type="email"], input[type="text"], input[type="search"], input:not([type]), textarea, select {
  width: 100%; min-height: 52px; padding: 12px 14px;
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 17px; /* ≥16px avoids iOS zoom */
}
textarea { resize: none; line-height: 1.45; }
input:focus, textarea:focus, select:focus { border-color: var(--yellow); outline: none; }
label { font-weight: 600; color: var(--cream); }
.code-input { font-size: 32px !important; letter-spacing: 0.4em; text-align: center; font-variant-numeric: tabular-nums; }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check input[type="checkbox"] { width: 26px; height: 26px; margin-top: 2px; accent-color: var(--red); flex: none; }
.check label { display: flex; flex-direction: column; gap: 4px; font-weight: 500; color: var(--text); }
.check small { color: var(--muted); font-size: 0.82rem; }
.lang-select { width: auto; min-height: 40px; padding: 6px 10px; font-size: 15px; background: transparent; }

/* ---------- landing ---------- */
.landing {
  min-height: 100dvh; display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(16px + var(--safe-t)) 20px calc(20px + var(--safe-b));
  background:
    linear-gradient(180deg, rgba(14,13,12,0.45) 0%, rgba(14,13,12,0.7) 40%, rgba(14,13,12,0.98) 72%),
    url("/club/assets/club-hero.webp") center 20% / cover no-repeat,
    var(--bg);
}
.landing.boot { justify-content: flex-end; }
.landing-top { display: flex; justify-content: space-between; align-items: center; }
.landing-site { font-family: "HCraftBrew", "Oswald", sans-serif; color: var(--brand-yellow); font-size: 1.35rem; letter-spacing: 0.03em; }
.landing-hero { max-width: 560px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; padding-bottom: 8px; }
.landing-hero .display { margin-bottom: 4px; }
.landing .eyebrow { color: #ff4a55; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9); }
.landing-tagline { font-size: 1.25rem; color: var(--cream); font-weight: 600; }
.landing-pitch { color: var(--muted); font-size: 1.02rem; margin-bottom: 14px; }
.landing-already { text-align: center; color: var(--muted); margin-top: 4px; }
.landing-foot { text-align: center; color: var(--muted); font-size: 0.78rem; max-width: 560px; margin: 0 auto; }

/* ---------- join ---------- */
.join-top { display: flex; justify-content: space-between; align-items: center; padding: calc(8px + var(--safe-t)) 12px 0; }
.join { max-width: 480px; margin: 0 auto; padding: 16px 20px 40px; }
.join .display { margin-bottom: 8px; }
.join .btn.big { margin-top: 8px; }
.welcome {
  min-height: 100dvh; max-width: 520px; margin: 0 auto; padding: 32px 20px calc(32px + var(--safe-b));
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
}
.welcome-name { font-family: "Oswald", sans-serif; font-size: 1.6rem; color: var(--brand-yellow); }

/* ---------- signed-in shell ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(8px + var(--safe-t)) 14px 8px;
  background: rgba(0,0,0,0.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--red);
}
.wordmark { font-family: "HCraftBrew", "Oswald", sans-serif; font-size: 1.38rem; letter-spacing: 0.03em; line-height: 1; }
.wm-gen { color: var(--brand-yellow); }
.wm-club { color: var(--red); }
.topbar-site { color: var(--muted); font-size: 0.78rem; font-family: "Oswald", sans-serif; letter-spacing: 0.06em; text-transform: uppercase; }
.page { max-width: 640px; margin: 0 auto; padding: 10px 10px calc(var(--nav-h) + var(--safe-b) + 24px); }

.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: rgba(0,0,0,0.97); border-top: 1px solid var(--border);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.navitem {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--muted); font-family: "Oswald", sans-serif; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.navitem.active { color: var(--cream); }
.navitem.active .icon { stroke: var(--yellow); }
.navitem.primary .icon { background: var(--red); color: var(--cream); border-radius: 50%; padding: 4px; width: 30px; height: 30px; stroke-width: 2.6; box-shadow: 2px 2px 0 #000; }

/* ---------- composer prompt ---------- */
.prompt { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; margin-bottom: 10px; }
.prompt-field { display: flex; flex-direction: column; gap: 0; padding: 8px 12px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); }
.prompt-label { font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: 0.08em; color: var(--cream); font-size: 0.95rem; }
.prompt-placeholder { color: var(--muted); }
.prompt-tools, .compose-tools { display: flex; gap: 6px; margin-top: 8px; }
.tool {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); color: var(--cream);
  font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.85rem;
}
.tool:disabled { opacity: 0.35; }
.tool.on { border-color: var(--yellow); color: var(--yellow); }

/* ---------- tour notices ---------- */
.notices { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.notices:empty { display: none; }
.notice { background: linear-gradient(135deg, rgba(211,31,44,0.28), rgba(211,31,44,0.08)); border: 1px solid var(--red); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.notice-head { display: flex; justify-content: space-between; align-items: flex-start; margin: -4px -8px -4px 0; }
.notice-head .eyebrow { color: var(--yellow); margin: 6px 0 0; }
.notice h2 { font-size: 1.5rem; }
.notice-body { white-space: pre-wrap; }
.notice .btn { align-self: flex-start; }

/* ---------- announce ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.stat { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 8px; text-align: center; display: flex; flex-direction: column; }
.stat-n { font-family: "Oswald", sans-serif; font-size: 2rem; color: var(--cream); line-height: 1.1; }
.stat-l { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.help.warn { color: var(--yellow); }
.wide-row { width: 100%; }
.wide-row input { flex: 1; min-width: 0; }
.wide-row > .btn { flex: none; min-height: 52px; }

/* ---------- install card ---------- */
.install-card { border: 1px solid var(--yellow); border-left-width: 4px; background: var(--bg-alt); padding: 12px; border-radius: var(--radius); margin-bottom: 10px; display: flex; flex-direction: column; gap: 8px; }
.install-card h2 { font-size: 1.15rem; }
.install-card p { color: var(--muted); }

/* ---------- posts ---------- */
.posts { display: flex; flex-direction: column; gap: 10px; }
.pinned { display: contents; }
.post { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px 6px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.post.from-band { border-left: 3px solid var(--red); }
.post.is-pinned { border-color: #5a4a1a; border-left: 3px solid var(--yellow); }
.post.is-hidden, .comment.is-hidden { opacity: 0.55; }
.pin-flag, .hidden-flag { display: flex; gap: 6px; align-items: center; color: var(--yellow); font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; }
.hidden-flag { color: #ff6b6b; }
.post-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-right: -8px; }
.author { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; min-height: 32px; font-size: 0.92rem; }
.author-name { font-weight: 700; color: var(--cream); }
.author-name.is-band { color: var(--brand-yellow); }
.author time, .dot { color: var(--muted); font-size: 0.82rem; }
.badge {
  display: inline-block; font-family: "Oswald", sans-serif; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--red); color: var(--cream); padding: 2px 7px; border-radius: 2px; line-height: 1.4;
}
.badge.admin { background: var(--panel-2); color: var(--yellow); border: 1px solid var(--border); }
.show-chip {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; min-height: 26px;
  padding: 2px 9px; border: 1px solid var(--border); background: var(--bg-alt); border-radius: 999px; color: var(--yellow);
  font-family: "Oswald", sans-serif; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.q-flag { align-self: flex-start; font-family: "Oswald", sans-serif; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bg); background: var(--yellow); padding: 1px 7px; border-radius: 2px; }
.post-body { white-space: pre-wrap; color: var(--text); font-size: 1rem; line-height: 1.45; }
.post-body.question { font-size: 1.2rem; font-weight: 600; color: var(--cream); }
.post-body.clamp { display: -webkit-box; -webkit-line-clamp: 10; -webkit-box-orient: vertical; overflow: hidden; }
.post-body-link { color: inherit; }

.media { margin: 0 -12px; display: grid; gap: 2px; background: var(--bg); }
.media video { width: 100%; max-height: 70vh; background: #000; }
.media-cell { position: relative; border: 0; padding: 0; background: var(--bg-alt); overflow: hidden; display: block; }
.media-cell img { width: 100%; height: 100%; object-fit: cover; }
.grid-1 .media-cell img { height: auto; max-height: 70vh; object-fit: contain; background: #000; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-2 .media-cell, .grid-3 .media-cell, .grid-4 .media-cell { aspect-ratio: 1; }
.grid-3 { grid-template-columns: 1fr 1fr; }
.grid-3 .media-cell:first-child { grid-column: span 2; aspect-ratio: 2 / 1; }
.grid-4 { grid-template-columns: 1fr 1fr; }
.media-cell.overflow { display: none; }
.media-cell[data-more]::after {
  content: attr(data-more); position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(0,0,0,0.55); color: var(--cream); font-family: "Oswald", sans-serif; font-size: 1.8rem;
}

.actions { display: flex; gap: 2px; margin: -2px -8px 0; }
.action {
  display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 6px 10px;
  background: none; border: 0; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 0.92rem;
}
.action:active { background: var(--press); }
.action.muted { cursor: default; }
.react .horns { font-size: 1.25rem; filter: grayscale(1) brightness(1.3); opacity: 0.75; transition: transform 0.15s ease, filter 0.15s ease; }
.react.on { color: var(--brand-yellow); }
.react.on .horns { filter: none; opacity: 1; transform: scale(1.15) rotate(-8deg); }

/* ---------- polls ---------- */
.poll { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; background: var(--bg-alt); display: flex; flex-direction: column; gap: 8px; }
.poll-q { font-size: 1.2rem; }
.poll-form { display: flex; flex-direction: column; gap: 8px; }
.poll-option {
  display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: var(--radius); font-weight: 500; color: var(--text); cursor: pointer;
}
.poll-option:has(input:checked) { border-color: var(--yellow); background: rgba(243,183,10,0.08); }
.poll-option input { width: 22px; height: 22px; accent-color: var(--red); flex: none; }
.poll-result { position: relative; display: flex; justify-content: space-between; gap: 10px; min-height: 44px; padding: 10px 12px; border-radius: var(--radius); background: var(--panel-2); overflow: hidden; }
.poll-bar { position: absolute; inset: 0 auto 0 0; background: rgba(211,31,44,0.35); transition: width 0.5s ease; }
.poll-result.lead .poll-bar { background: rgba(211,31,44,0.6); }
.poll-result.mine { outline: 1px solid var(--yellow); }
.poll-label, .poll-pct { position: relative; font-weight: 600; color: var(--cream); }
.poll-pct { font-variant-numeric: tabular-nums; }
.poll-meta { color: var(--muted); font-size: 0.82rem; }

/* ---------- lists ---------- */
.sentinel { height: 1px; }
.list-foot { padding: 8px 0 24px; }
.list-end, .empty { text-align: center; color: var(--muted); padding: 22px 12px; }
.empty.small { padding: 14px 0; text-align: left; }
.backlink { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: var(--muted); background: none; border: 0; font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.82rem; margin-bottom: 4px; }

/* ---------- comments ---------- */
.comments { display: flex; flex-direction: column; gap: 0; margin: 10px 0; }
.comment { padding: 8px 2px; border-bottom: 1px solid var(--line); }
.comment.from-band { border-left: 3px solid var(--red); padding-left: 10px; }
.comment-body { white-space: pre-wrap; margin-top: 2px; }
.comment-form {
  position: sticky; bottom: calc(var(--nav-h) + var(--safe-b)); z-index: 10;
  display: flex; gap: 8px; align-items: flex-end; padding: 8px 0; background: var(--bg); border-top: 1px solid var(--line);
}
.comment-form textarea { min-height: 48px; }
.comment-form .btn { min-height: 48px; flex: none; white-space: nowrap; }

/* ---------- composer ---------- */
.compose-head { display: flex; justify-content: space-between; align-items: center; }
.compose { display: flex; flex-direction: column; gap: 10px; }
.compose-text { min-height: 110px; font-size: 18px; background: var(--panel); }
.compose-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip { min-height: 40px; padding: 6px 14px; border-radius: 999px; background: transparent; border: 1px solid var(--border); color: var(--text); font-weight: 600; font-size: 0.9rem; }
.chip.on { border-color: var(--yellow); color: var(--yellow); }
.show-select { width: auto; flex: 1; min-width: 180px; min-height: 40px; padding: 6px 12px; font-size: 16px; }
.tray { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tray:empty { display: none; }
.tray-item { position: relative; aspect-ratio: 1; background: var(--bg-alt); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.tray-item img, .tray-item video { width: 100%; height: 100%; object-fit: cover; }
.tray-item.error { border-color: var(--red); }
.tray-status { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 6px; background: rgba(0,0,0,0.7); font-size: 0.72rem; font-weight: 600; }
.tray-status:empty { display: none; }
.tray-remove { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(0,0,0,0.7); color: var(--cream); }
.poll-editor { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px dashed var(--border); border-radius: var(--radius); }
.poll-q-input { font-weight: 600; }

/* ---------- shows ---------- */
.show-list { display: flex; flex-direction: column; margin-bottom: 22px; }
.show-row { display: flex; gap: 14px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--border); color: var(--text); min-height: 64px; }
.show-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 54px; height: 54px; flex: none; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.show-day { font-family: "Oswald", sans-serif; font-size: 1.4rem; line-height: 1; color: var(--cream); }
.show-month { font-family: "Oswald", sans-serif; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--red); }
.show-info { display: flex; flex-direction: column; min-width: 0; }
.show-city { font-family: "Oswald", sans-serif; text-transform: uppercase; font-size: 1.1rem; color: var(--cream); letter-spacing: 0.03em; }
.show-venue { color: var(--muted); font-size: 0.88rem; }
.show-hero { padding: 8px 0 18px; display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.show-ask { font-size: 1.15rem; color: var(--cream); font-weight: 600; margin-top: 6px; }

/* ---------- me ---------- */
.me-card { padding: 4px 0 12px; }
.me-name { font-size: 1.8rem; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; text-transform: none; }
.settings { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin-bottom: 14px; }
.setting { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.setting.check { justify-content: flex-start; align-items: flex-start; }
.setting.stacked { flex-direction: column; align-items: flex-start; gap: 2px; }
.setting.stacked .setting-value { text-align: left; overflow-wrap: anywhere; }
.setting-label { color: var(--muted); font-size: 0.9rem; }
.setting-value { font-weight: 600; text-align: right; }

/* ---------- moderation ---------- */
.mod-section { margin-bottom: 26px; display: flex; flex-direction: column; gap: 10px; }
.report { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.report-meta { font-size: 0.78rem; color: var(--muted); font-family: "Oswald", sans-serif; letter-spacing: 0.06em; }
.report-author { font-weight: 700; color: var(--cream); }
.report-body { white-space: pre-wrap; }
.report-note { color: var(--muted); font-style: italic; }
.member-list { display: flex; flex-direction: column; }
.member-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }

/* ---------- sheets, lightbox, toast ---------- */
dialog.sheet {
  margin: auto auto 0; width: 100%; max-width: 560px; max-height: 85dvh;
  border: 1px solid var(--border); border-bottom: 0; border-radius: 12px 12px 0 0;
  background: var(--bg-alt); color: var(--text); padding: 12px 16px calc(20px + var(--safe-b));
  display: flex; flex-direction: column; gap: 12px;
}
dialog.sheet:not([open]) { display: none; }
dialog::backdrop { background: rgba(0,0,0,0.65); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sheet-head h2 { font-size: 1.15rem; }
.sheet-text { color: var(--text); }
.menu { display: flex; flex-direction: column; }
.menu-item { text-align: left; min-height: 52px; padding: 12px 4px; background: none; border: 0; border-bottom: 1px solid var(--border); font-weight: 600; font-size: 1rem; }
.menu-item.danger { color: #ff6b6b; }
dialog.lightbox { margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; border: 0; background: #000; padding: 0; }
dialog.lightbox[open] { display: flex; flex-direction: column; justify-content: center; align-items: center; }
dialog.lightbox img { max-width: 100vw; max-height: calc(100dvh - 120px); object-fit: contain; }
.lb-close { position: absolute; top: calc(8px + var(--safe-t)); right: 8px; color: var(--cream); }
.lb-nav { position: absolute; bottom: calc(16px + var(--safe-b)); display: flex; gap: 16px; align-items: center; color: var(--cream); }
.lb-nav .btn { min-width: 56px; font-size: 1.4rem; }
.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + 14px); transform: translate(-50%, 20px);
  max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: var(--radius);
  background: var(--cream); color: var(--bg); font-weight: 600; z-index: 100;
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--red); color: var(--cream); }
body:not(.signed-in) .toast { bottom: calc(24px + var(--safe-b)); }

/* ---------- bigger screens ---------- */
@media (min-width: 720px) {
  .page { padding-top: 20px; }
  .media { margin: 0; border-radius: var(--radius); overflow: hidden; }
  .landing { justify-content: center; gap: 48px; }
  .landing .landing-top { position: absolute; top: 20px; left: 32px; right: 32px; }
  .landing-hero .btn.big { width: auto; align-self: flex-start; padding: 14px 40px; }
  .landing-already { text-align: left; }
  .bottomnav { left: 50%; right: auto; width: 640px; transform: translateX(-50%); border: 1px solid var(--border); border-bottom: 0; border-radius: 10px 10px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- avatars + signed-out visitors ---------- */
.avatar { width: 28px; height: 28px; border-radius: 50%; flex: 0 0 auto; object-fit: cover; display: inline-grid; place-items: center; background: var(--panel-2); border: 1px solid var(--border); font-size: 0.85rem; font-weight: 700; color: var(--cream); line-height: 1; overflow: hidden; }
.avatar.emoji { font-size: 1rem; }
.avatar.initial.band { color: var(--brand-yellow); }
.avatar.fan { background: var(--brand-yellow); border-color: var(--brand-yellow); font-size: 0.95rem; }
.avatar.xl { width: 80px; height: 80px; font-size: 2rem; }
.avatar.xl.emoji { font-size: 3rem; }
.avatar-edit { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 12px; }
.avatar-edit.busy { opacity: 0.5; pointer-events: none; }
.emoji-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 12px; }
.emoji-pick { font-size: 1.7rem; min-height: 52px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }
.topbar-guest { display: flex; align-items: center; gap: 12px; }
.topbar-guest .lang-select { max-width: 110px; }
.guest-hero { display: flex; flex-direction: column; gap: 6px; padding: 14px 14px; margin-bottom: 10px; background: var(--panel); border: 1px solid var(--border); border-left: 4px solid var(--red); }
.guest-hero .landing-pitch { margin-bottom: 6px; }
.guest-prompt { margin-top: 12px; }
.poll-option.guest { padding: 10px 12px; border: 1px solid var(--border); margin-bottom: 6px; color: var(--cream); }

/* ---------- Continue with Google / in-app browsers ---------- */
.btn.google { background: #fff; color: #1f1f1f; border-color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-transform: none; letter-spacing: 0; font-family: "Inter", system-ui, sans-serif; font-weight: 600; min-height: 52px; }
.btn.google:active { background: #eee; border-color: #eee; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.85rem; margin: 6px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.inapp { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--border); border-left: 4px solid var(--brand-yellow); background: var(--panel); }
.inapp-title { font-weight: 700; color: var(--cream); }
.inapp-steps { color: var(--cream); font-size: 0.95rem; }
.inapp-dots { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--border); font-weight: 700; }
.privacy { max-width: 680px; padding-bottom: 48px; }
.privacy h2 { font-family: "Oswald", sans-serif; text-transform: uppercase; color: var(--brand-yellow); margin: 22px 0 8px; font-size: 1.15rem; }
.privacy p, .privacy li { color: var(--cream); line-height: 1.55; margin-bottom: 8px; }
.privacy ul { padding-left: 20px; }

/* ---------- empty feed / show: an invitation, not a dead end ---------- */
.invite { text-align: center; padding: 26px 16px 22px; border: 2px dashed var(--border); border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 4px 0 8px; }
.invite-title { font-family: "Oswald", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; font-size: 1.35rem; line-height: 1.1; color: var(--cream); }
.invite-sub { color: var(--muted); margin-bottom: 8px; }
.invite .prompt-tools { width: 100%; margin-top: 4px; }
.invite .btn { width: 100%; }
.install-card .btn { min-height: 40px; padding: 8px 12px; font-size: 0.82rem; }
.install-card h2 { font-size: 1.05rem; }
/* Me: picture beside the name instead of stacked above it. */
.me-card { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; }
.me-card .avatar-edit { grid-row: span 3; margin: 0; align-items: center; gap: 0; }
.me-card .avatar-edit .textlink { min-height: 36px; padding: 4px 0 0; font-size: 0.85rem; }
.me-card .eyebrow { margin: 0; align-self: end; }
.me-card .muted { align-self: start; font-size: 0.9rem; }
.compose-head { margin-top: 4px; }
.show-hero + .posts .invite, .posts .invite { margin-top: 2px; }

/* ---------- links + link previews ---------- */
.post-body.tap { cursor: pointer; }
.inline-link { color: var(--yellow); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.link-card { display: block; margin: 0 -12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--text); }
.link-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.link-thumb img { width: 100%; height: 100%; object-fit: cover; }
.link-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--red); color: #fff; font-size: 1.3rem; box-shadow: 2px 2px 0 #000; }
.link-meta { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px 10px; }
.link-site { font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; color: var(--muted); }
.link-title { font-weight: 700; color: var(--cream); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.link-desc { color: var(--muted); font-size: 0.88rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 720px) { .link-card { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; } }
button.link-thumb { width: 100%; border: 0; padding: 0; cursor: pointer; }
.link-player { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
