/* InTouch web: the Android app's look (ui/Common.kt) — black, amber accent, Inter. */

@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(/fonts/inter_regular.otf) format('opentype'); }
@font-face { font-family: Inter; font-weight: 500 600; font-display: swap; src: url(/fonts/inter_semibold.otf) format('opentype'); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(/fonts/inter_bold.otf) format('opentype'); }
@font-face { font-family: Inter; font-weight: 800 900; font-display: swap; src: url(/fonts/inter_black.otf) format('opentype'); }

:root {
  --accent: #FFC94D;
  --accent2: #FF9F43;
  --muted: #9C9CA6;
  --surface1: #141417;
  --surface2: #1E1E23;
  --outline: #2C2C33;
  --danger: #FF6B6B;
  --top: env(safe-area-inset-top, 0px);
  --bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: #000; color: #fff; }
body {
  font: 16px/1.4 Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: none;
}
body.locked { overflow: hidden; }
h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.4px; margin: 0; }
h3 { font-size: 15px; font-weight: 600; color: var(--muted); margin: 28px 0 10px; text-transform: uppercase; letter-spacing: 0.4px; }
h3.spaced { margin-top: 48px; } /* clear room above a switch that sits under a button */
p { margin: 4px 0; }
small { display: block; font-size: 13px; }
code { font: 18px ui-monospace, Menlo, monospace; letter-spacing: 1px; }
button, input, label.btn { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: 0.5; cursor: default; }
img { display: block; }

.accent { color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.label { font-weight: 600; font-size: 14px; }
.error { color: var(--danger); }
.danger { color: var(--danger) !important; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; }
.row.end { align-items: flex-end; }
.row.gap { gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.center-text { text-align: center; margin-top: 48px; }
.center-col { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 8px; }
.spacer44 { width: 44px; }
.spacer56 { width: 56px; }

.logo { font-weight: 900; letter-spacing: -0.04em; }

/* --- layout */

.app { max-width: 560px; margin: 0 auto; min-height: 100vh; padding-bottom: calc(24px + var(--bottom)); }
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(6px + var(--top)) 6px 6px; background: rgba(0, 0, 0, 0.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.topbar .title { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.event-label { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.sync-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 0.9s infinite alternate; }
.screen { padding: 0 12px; animation: slide-in 0.2s ease-out; }
.page { padding: 8px 4px 32px; }

.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; padding: 0;
}
.icon-btn.round { width: 56px; height: 56px; background: var(--surface2); }
.badge {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--accent); color: #000; font-size: 11px; font-weight: 700; line-height: 18px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 20px; border: 0; border-radius: 25px;
  background: var(--accent); color: #000; font-weight: 600; font-size: 16px; text-decoration: none; width: 100%;
}
.btn.small { min-height: 38px; width: auto; padding: 0 16px; font-size: 14px; }
.btn.subtle { background: var(--surface2); color: #fff; }
.btn.dark { background: #000; color: #fff; }
.link { border: 0; background: none; color: var(--accent); padding: 8px; font-size: 14px; font-weight: 600; }

input:not([type=checkbox]):not([type=radio]):not([type=file]) {
  width: 100%; min-height: 48px; padding: 0 14px; font-size: 16px; /* ≥16px: no zoom on iOS */
  border: 1px solid var(--outline); border-radius: 12px; background: var(--surface1); outline: none;
}
input:focus { border-color: var(--accent); }

.toast {
  position: fixed; left: 50%; bottom: calc(20px + var(--bottom)); transform: translateX(-50%); z-index: 50;
  width: max-content; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px;
  background: #2A2A31; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5); animation: rise 0.2s ease-out;
}
.hint { margin: 12px 0; padding: 14px 16px; border-radius: 16px; background: var(--surface1); border: 1px solid var(--outline); }
.hint p { color: var(--muted); font-size: 14px; margin: 6px 0 10px; }
.hint .row { margin-top: 4px; }
.kbd { color: #fff; font-weight: 600; white-space: nowrap; }

/* --- people */

.avatar {
  display: inline-flex; flex: none; align-items: center; justify-content: center; overflow: hidden;
  border-radius: 50%; font-weight: 700; color: #fff; cursor: pointer;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.person { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.person small { margin-top: 2px; }

.tiny { font-size: 12px; line-height: 1.4; }
.icon-btn.pulsing { animation: ring 1.4s ease-out infinite; }
.feed-friends { display: flex; flex-direction: column; gap: 20px; }
.requests { background: var(--surface1); border: 1px solid var(--accent); border-radius: 16px; padding: 10px 14px 4px; }
.requests p { margin: 0 0 4px; }
.suggestions { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -12px; padding: 0 12px 4px; }
.suggestion {
  flex: none; width: 132px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 14px 10px; border-radius: 16px; background: var(--surface1); text-align: center;
}
.suggestion b, .suggestion small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggestion .btn { margin-top: 6px; }
.vibe {
  margin-top: 28px; text-align: center; font-size: 17px; font-weight: 700;
  background: var(--surface2); border: 2px solid var(--accent); border-radius: 12px; padding: 10px 14px;
}

/* --- photos */

.dual {
  position: relative; width: 100%; aspect-ratio: 3 / 4; border-radius: 20px; overflow: hidden; background: var(--surface2);
  -webkit-touch-callout: none; -webkit-user-select: none; user-select: none;
}
.dual.held .inset, .dual.zooming .inset { visibility: hidden; }
.dual.small { border-radius: 14px; }
.dual .big { width: 100%; height: 100%; object-fit: cover; }
.dual .inset {
  position: absolute; top: var(--gap); left: var(--gap); width: 30%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 14px; border: 2px solid #000; cursor: pointer;
}
.dual { --gap: 12px; }
.dual.small { --gap: 6px; }
.dual.small .inset { width: 34%; border-radius: 8px; }
/* The inset's corner (dragged there: movable). */
.dual.c-tr .inset, .dual.c-br .inset { left: auto; right: var(--gap); }
.dual.c-bl .inset, .dual.c-br .inset { top: auto; bottom: var(--gap); }
.dual.movable .inset { touch-action: none; }
.fullscreen .dual.c-tr .inset { top: 60px; } /* below the close button */
.dual.placeholder { display: flex; align-items: center; justify-content: center; text-align: center; }
.dual.placeholder span { position: relative; padding: 24px; color: var(--muted); font-weight: 600; font-size: 17px; }
/* Deleted posts: a slim 3:1 card of the placeholder pictures, square inset. */
.dual.slim { aspect-ratio: 3 / 1; }
.dual.slim { --gap: 8px; }
.dual.slim .inset { width: auto; height: calc(100% - 16px); aspect-ratio: 1; border-radius: 12px; }
.shimmer { position: absolute; inset: 0; background: var(--outline); animation: pulse 0.9s infinite alternate; }

/* --- feed */

.feed { display: flex; flex-direction: column; gap: 28px; padding: 8px 0 32px; }
.empty { text-align: center; color: var(--muted); padding-top: 48px; }
.wave { font-size: 44px; }
.news-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: -14px; }
.news {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 6px 12px 14px; border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 201, 77, 0.14), rgba(255, 159, 67, 0.08));
  border: 1px solid rgba(255, 201, 77, 0.28); animation: news-in 0.35s ease-out;
}
.news p { margin: 0; font-size: 15px; line-height: 1.4; white-space: pre-line; overflow-wrap: anywhere; }
.news-icon { font-size: 22px; line-height: 1; padding-top: 1px; }
.news-link { display: inline-block; margin-top: 6px; color: var(--accent); font-weight: 600; font-size: 14px; text-decoration: none; }
.news .icon-btn { flex: none; width: 36px; height: 36px; margin-top: -6px; color: var(--muted); }
@keyframes news-in { from { opacity: 0; transform: translateY(-6px); } }
.moment { padding: 20px; border-radius: 24px; background: var(--surface1); }
.moment.hot { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #000; }
.moment.hot p { color: rgba(0, 0, 0, 0.75); }
.moment .btn { margin-top: 16px; }
.thumbs { display: flex; gap: 10px; overflow-x: auto; margin-top: 12px; padding-bottom: 4px; scrollbar-width: none; }
.thumb { width: 120px; flex: none; }
.thumb b { display: block; font-size: 12px; margin-top: 6px; }
.thumb small { font-size: 11px; }
.pill-count { position: absolute; left: 6px; bottom: 6px; padding: 2px 7px; border-radius: 10px; background: rgba(0, 0, 0, 0.6); font-size: 12px; }
.dual.c-bl .pill-count { left: auto; right: 6px; }
.bonus-tile {
  width: 120px; aspect-ratio: 3 / 4; flex: none; align-self: flex-start; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 2px solid rgba(255, 201, 77, 0.6); border-radius: 14px; background: none; color: var(--accent);
}
.bonus-tile small { color: var(--muted); font-size: 12px; }

.post-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.post-header b { font-size: 15px; }
.caption { font-size: 16px; margin: 10px 4px 0; overflow-wrap: anywhere; }
.tags { font-size: 14px; color: var(--muted); margin: 6px 4px 0; }
.post > .btn { margin-top: 10px; min-height: 46px; }
.post > .muted { margin: 8px 4px 0; }
.comments-preview { margin: 8px 4px 0; font-size: 14px; cursor: pointer; }
.comments-preview p { margin: 3px 0; overflow-wrap: anywhere; }

.react-btn {
  position: absolute; right: 10px; bottom: 10px; width: 46px; height: 46px; border-radius: 50%; border: 0;
  display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.55); color: #fff;
}
.react-btn.on { background: var(--accent); color: #000; }
.bubbles { position: absolute; left: 10px; bottom: 10px; right: 66px; display: flex; flex-wrap: wrap-reverse; gap: 4px; pointer-events: none; }
.bubble {
  position: relative; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.6); font-size: 18px;
}
.bubble.big { width: 52px; height: 52px; font-size: 28px; }
.bubble.moji { border: 2px solid #000; }
.bubble.moji img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.bubble.moji i { position: absolute; right: -4px; bottom: -4px; font-style: normal; font-size: 14px; }
.bubble.big.moji i { font-size: 18px; }
.bubble.more { font-size: 12px; font-weight: 700; }
.splash { position: absolute; left: 50%; top: 50%; font-size: 96px; pointer-events: none; animation: splash 0.9s ease-out forwards; }
.splash.moji { width: 150px; height: 150px; font-size: 40px; }
.splash.moji img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 4px solid var(--accent); }
.splash.moji i { position: absolute; right: -6px; bottom: -6px; font-style: normal; }
.emoji-bar { display: flex; justify-content: space-between; margin-top: 10px; padding: 6px 2px; }
.emoji-bar.short { justify-content: center; gap: 16px; }
/* "Scroll through all my emojis": the six of a full row keep their places, the rest follows at the same gap. */
.emoji-bar.scrolling {
  justify-content: flex-start; gap: max(8px, calc((100% - 300px) / 5)); overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.emoji-bar.scrolling::-webkit-scrollbar { display: none; }
.emoji-bar.scrolling.more {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
}
.moji-choice {
  position: relative; flex: none; width: 50px; height: 50px; padding: 0; border-radius: 50%; font-size: 24px;
  border: 1px solid var(--outline); background: var(--surface2); transition: transform 0.15s;
  -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; touch-action: manipulation;
}
.moji-choice.instant { background: #2A2412; }
.moji-choice.on { border: 3px solid var(--accent); animation: pop 0.35s ease-out; }
.moji-choice:active { transform: scale(0.9); }
.moji-choice img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; pointer-events: none; }
.moji-choice i { position: absolute; right: -4px; bottom: -4px; font-style: normal; font-size: 17px; }

.selfie-dialog {
  position: fixed; inset: 0; z-index: 50; background: #000; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 8px; text-align: center; padding: calc(24px + var(--top)) 24px calc(24px + var(--bottom));
  animation: rise 0.2s ease-out;
}
.selfie-dialog h2 { margin: 0; }
.selfie-dialog > p { margin: 0 0 20px; max-width: 320px; }
.selfie-circle { position: relative; width: 260px; height: 260px; margin-bottom: 20px; }
.selfie-circle video { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 4px solid var(--accent); background: var(--surface1); }
.selfie-circle video.mirror { transform: scaleX(-1); }
.selfie-circle i { position: absolute; right: -4px; bottom: -4px; font-style: normal; font-size: 56px; }

.swipe { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 0; }
.swipe::-webkit-scrollbar, .thumbs::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: center; padding: 0 2px; } /* min-width: a scrolling emoji row mustn't widen the page */
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.dots span { width: 6px; height: 6px; border-radius: 3px; background: var(--outline); transition: all 0.2s; }
.dots span.on { width: 18px; background: var(--accent); }

/* --- full screen post */

.fullscreen { position: fixed; inset: 0; z-index: 30; background: #000; overflow-y: auto; -webkit-overflow-scrolling: touch; animation: rise 0.2s ease-out; }
.fullscreen-body { max-width: 560px; margin: 0 auto; padding: calc(8px + var(--top)) 12px calc(32px + var(--bottom)); }
.close { position: fixed; top: calc(10px + var(--top)); right: 10px; z-index: 31; background: rgba(0, 0, 0, 0.6); }
.details { padding: 14px 4px; }
.details > .btn { margin-top: 12px; }
.reaction-list { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.reaction { display: flex; flex-direction: column; align-items: center; width: 60px; }
.reaction small { font-size: 11px; color: var(--muted); max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 4px; }
.comments { margin-top: 18px; }
.comment { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; }
.comment b { font-size: 14px; }
.comment small { display: inline; }
.comment p { font-size: 15px; margin: 2px 0 0; overflow-wrap: anywhere; }
.comment-form { display: flex; gap: 8px; margin-top: 12px; }

/* --- capture */

.capture { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 8px; min-height: calc(100vh - 80px - var(--top) - var(--bottom)); }
.pill { padding: 6px 14px; border-radius: 20px; background: var(--surface2); font-weight: 600; font-size: 15px; }
.pill.hot { background: var(--accent); color: #000; }
.viewfinder { position: relative; width: 100%; aspect-ratio: 3 / 4; border-radius: 28px; overflow: hidden; background: var(--surface1); }
.viewfinder video { width: 100%; height: 100%; object-fit: cover; }
.viewfinder video.mirror { transform: scaleX(-1); }
.cam-status, .cam-error {
  position: absolute; left: 50%; top: 16px; transform: translateX(-50%); width: max-content; max-width: 85%;
  padding: 8px 14px; border-radius: 12px; background: rgba(0, 0, 0, 0.6); font-weight: 600; text-align: center;
}
.cam-error { top: 40%; font-weight: 400; }
.cam-controls { display: flex; align-items: center; justify-content: space-evenly; width: 100%; margin-top: auto; padding-bottom: 16px; }
.shutter { width: 84px; height: 84px; border-radius: 50%; border: 5px solid #fff; background: none; padding: 0; position: relative; }
.shutter::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: #fff; transition: transform 0.15s; }
.shutter:active::after, .shutter.busy::after { transform: scale(0.85); }
.review { display: flex; flex-direction: column; gap: 12px; padding: 8px 0 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { border: 1px solid var(--outline); background: none; border-radius: 16px; padding: 6px 12px; font-size: 14px; }
.chip.on { background: var(--accent); color: #000; border-color: var(--accent); }

/* --- login, settings, memories */

.login { display: flex; flex-direction: column; gap: 14px; padding: calc(48px + var(--top)) 20px 32px; max-width: 420px; margin: 0 auto; }
.login label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.login .link { align-self: center; }
.login .have-account { margin-top: 16px; }
.toggle { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.toggle input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.toggle small { margin-top: 4px; }
.page > .btn { margin-top: 12px; }
.page > .link.danger { display: block; margin: 16px auto 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.grid-item small { font-size: 11px; margin-top: 4px; }
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, 0.88); }

/* "Really be friends?": a bottom sheet whose yes looks unlike every other button */
.sheet-wrap { display: flex; align-items: flex-end; justify-content: center; }
.sheet {
  width: 100%; max-width: 560px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  padding: 24px 20px calc(16px + var(--bottom)); border-radius: 28px 28px 0 0; background: var(--surface1);
  border-top: 1px solid var(--outline); animation: sheet-up 0.25s ease-out;
}
.sheet h2 { margin: 6px 0 0; }
.sheet p { margin: 0; line-height: 1.45; }
.sheet .btn { width: 100%; }
.btn.confirm {
  flex-direction: column; gap: 2px; min-height: 64px; margin-top: 10px; border-radius: 18px;
  background: linear-gradient(135deg, #FF7AA8, var(--accent2)); color: #000;
  box-shadow: 0 0 0 3px rgba(255, 122, 168, 0.25);
}
.btn.confirm b { font-size: 17px; }
.btn.confirm small { font-size: 13px; font-weight: 500; opacity: 0.75; }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }

/* --- intro */

.intro { min-height: 100vh; display: flex; flex-direction: column; padding: calc(32px + var(--top)) 24px calc(24px + var(--bottom)); }
.intro-body { flex: 1; display: flex; flex-direction: column; justify-content: center; animation: news-in 0.3s ease-out; }
.intro-body h1 { font-size: 28px; line-height: 1.2; margin: 12px 0; }
.intro-body p { font-size: 17px; line-height: 1.5; margin: 0 0 12px; }
.intro-body p.small { font-size: 14px; }
.intro-icon { font-size: 56px; }
.intro-push { margin: 4px 0 16px; }
.intro-done { color: var(--accent); font-weight: 700; }
.intro-toggle { margin-top: 12px; padding: 16px; border-radius: 18px; background: var(--surface1); border: 1px solid var(--outline); }
.dots { display: flex; justify-content: center; gap: 8px; margin: 20px 0; }
.dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--outline); transition: background 0.2s; }
.dots span.on { background: var(--accent); }
.link-space { height: 36px; }
.scrim.center { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.profile-name { color: #fff; background: rgba(30, 30, 35, 0.92); padding: 6px 18px; border-radius: 999px; }
.profile-action { margin-top: 14px; width: auto; }
.profile-asked { margin-top: 14px; color: var(--muted); background: var(--surface2); border-radius: 999px; padding: 6px 14px; }

@keyframes ring { from { box-shadow: 0 0 0 0 rgba(255, 201, 77, 0.7); } to { box-shadow: 0 0 0 12px rgba(255, 201, 77, 0); } }
@keyframes pulse { from { opacity: 0.35; } to { opacity: 0.7; } }
@keyframes slide-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translate(var(--tx, 0), 12px); } to { opacity: 1; } }
.toast { --tx: -50%; }
@keyframes pop { 0% { transform: scale(0.8); } 60% { transform: scale(1.1); } 100% { transform: none; } }
@keyframes splash {
  0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0; }
  30% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
  100% { transform: translate(-50%, -80%) scale(1); opacity: 0; }
}

/* --- achievements */

.streak-big { font-size: 40px; font-weight: 800; margin: 0; }
.peek { font-size: 20px; font-weight: 700; margin: 0; }
.emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 8px; }
.emoji-tile {
  aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 1px solid var(--outline); border-radius: 16px; background: var(--surface1); font-size: 28px; color: #fff;
}
.emoji-tile.used { border-color: var(--accent); }
.emoji-tile.locked { opacity: 0.4; }
.iceberg { display: flex; flex-direction: column; align-items: center; margin-top: 8px; }
.iceberg p { margin: 2px 0 0; }
/* The scene (iceberg.js) draws itself; sideways drags rock the berg, the page still scrolls; holding a penguin shows no callout. */
.iceberg .scene { display: block; width: 100%; max-width: 360px; height: 166px; touch-action: pan-y; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.wallet-full { font-style: italic; }
.achievements .btn.small { margin: 8px 8px 0 0; }
.achievements .toggle { margin-top: 12px; }
.gift-friends { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }



.text-link { color: var(--accent); overflow-wrap: anywhere; }
.mention { color: var(--accent); font-weight: 600; }
.mention-picks { flex-wrap: nowrap; overflow-x: auto; margin-top: 12px; }
.mention-picks .chip { flex: none; }
.badge { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.badge.locked { opacity: 0.4; }
.badge-emoji { font-size: 30px; }
.badge p { margin: 2px 0 0; }
button.news-link { border: 0; background: none; padding: 0; font-family: inherit; cursor: pointer; }
button.news-link.muted { color: var(--muted); }
.trouble-actions { gap: 18px; }

.data-btn { margin-top: 8px; }
.rename { margin-top: 28px; }
.rename input { width: 100%; }
.rename .btn { margin-top: 8px; }
.data-info .data-item { margin-top: 10px; }
.data-info .data-item p { margin: 2px 0 0; }
.data-info .updated { margin-top: 28px; }
.tiers { display: flex; gap: 4px; flex: none; }
.tier { width: 40px; height: 40px; border-radius: 20px; border: 0; background: none; font-size: 18px; font-weight: 700; color: #fff; opacity: 0.35; }
.tier.on { opacity: 1; background: var(--surface2); box-shadow: inset 0 0 0 1.5px var(--accent); }
.check { padding: 4px 0; }
.check + .btn, .hint + .btn, p + .btn { margin-top: 8px; }
.btn.with-sub { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.btn.with-sub small { font-size: 12px; font-weight: 400; }
.blocked-btn { margin-top: 8px; }
.post .repost-btn { width: 100%; margin-top: 10px; }
.corner-picker { display: flex; gap: 12px; padding: 4px 0; }
.corner-pick { position: relative; width: 48px; aspect-ratio: 3 / 4; border-radius: 8px; background: var(--surface2); border: 1px solid var(--outline); padding: 0; }
.corner-pick.on { border: 2px solid var(--accent); }
.corner-pick span { position: absolute; top: 5px; left: 5px; width: 14px; aspect-ratio: 3 / 4; border-radius: 3px; background: var(--muted); }
.corner-pick.on span { background: var(--accent); }
.corner-pick.c-tr span, .corner-pick.c-br span { left: auto; right: 5px; }
.corner-pick.c-bl span, .corner-pick.c-br span { top: auto; bottom: 5px; }
.levels { margin: 14px 0 0 34px; }
.levels > p { margin: 0 0 4px; }
.toggle.level { margin: 10px 0; }
.levels .kinds { margin: 4px 0 8px 34px; }
.levels .kinds .toggle { margin: 6px 0; }
.levels .quiet { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.levels .quiet select { background: var(--surface1); color: inherit; border: 1px solid var(--outline); border-radius: 10px; padding: 6px 8px; font: inherit; }
.intro-levels { margin: 16px 0 0; text-align: left; }
.cat-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.cat-tab { position: relative; flex: none; min-width: 44px; height: 40px; padding: 0 10px; border-radius: 20px; border: 0; background: none; font-size: 20px; opacity: 0.45; }
.cat-tab.on { opacity: 1; background: var(--surface2); box-shadow: inset 0 0 0 1.5px var(--accent); }
.cat-count { position: absolute; top: 0; right: 0; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--accent); color: #000; font-size: 11px; font-weight: 700; line-height: 16px; }
.cat-empty { text-align: center; margin: 24px 0; }
.cat-row { display: flex; align-items: center; gap: 12px; margin: 6px 0; }
.cat-row .toggle { margin: 0; }
.cat-emoji { font-size: 24px; width: 36px; text-align: center; }
.cat-move { display: flex; flex-direction: column; flex: none; }
.cat-move .link { padding: 2px 8px; }
.cat-move .link:disabled { opacity: 0.25; }
.cat-new-btn { margin-top: 12px; width: 100%; }
.cat-picks { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.cat-pick { width: 44px; height: 44px; border: 0; border-radius: 22px; background: none; font-size: 22px; }
.cat-pick:disabled { opacity: 0.25; }
.cat-person { margin-top: 12px; }
.cat-person .grow { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-person .tiers { flex: 0 1 auto; max-width: 50%; overflow-x: auto; scrollbar-width: none; }
.cat-person .tier { flex: none; }
.details .delete-post { display: block; margin: 28px 0 0; padding: 6px 0; }

/* Feedback */
.feedback { display: flex; flex-direction: column; gap: 12px; }
.feedback textarea { font: inherit; color: inherit; width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 12px;
  font-size: 16px; border: 1px solid var(--outline); background: var(--surface1); resize: vertical; }
.feedback textarea:focus { border-color: var(--accent); outline: none; }

/* Less phone time (calm.js) */
.calm-limit { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.calm-limit select { background: var(--surface1); color: inherit; border: 1px solid var(--outline); border-radius: 10px; padding: 6px 8px; font: inherit; }
.calm-left { font-size: 13px; font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.breather { position: fixed; inset: 0; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.breather b { margin-top: 32px; color: #fff; font-size: 22px; font-weight: 600; } /* below the circle, never cut by it */
.breath-circle { flex: none; width: 260px; height: 260px; border-radius: 50%; border: 2px solid var(--accent); background: rgba(255, 201, 77, 0.18); transform: scale(0.35); animation: breathe 12s ease-in-out forwards; }
@keyframes breathe { 0% { transform: scale(0.35); } 33.3% { transform: scale(1); } 66.6% { transform: scale(1); } 100% { transform: scale(0.35); } }
.enough { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px 16px; padding-top: max(20px, env(safe-area-inset-top)); }
.enough .dual { width: 100%; }
.edit-own { margin: 4px 0 8px; }
.edit-own .chips { margin: 6px 0; }
.edit-own .caption-input { margin: 0; }

/* Advanced: the code for a new phone. */
.reclaim-code { margin-top: 12px; text-align: center; }
.reclaim-code .big-code { font: 700 28px/1.2 ui-monospace, monospace; color: var(--accent); letter-spacing: 1px; margin: 4px 0; }

/* End-to-end encryption (e2eeui.js): only seen once the server has it on. */
.e2ee-failed { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.e2ee-failed .dual { width: 100%; }
.safety-code { font-size: 22px; letter-spacing: 2px; margin: 2px 0 0; }
.news.calm { background: var(--surface2); border-color: var(--outline); }
.news.calm p { font-size: 14px; }
.safety-friend { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.safety-friend .safety-code { font-size: 18px; }
.compare { padding: 8px 12px; margin: 6px 0; border-radius: 14px; background: var(--surface2); }
.indented { padding-left: 16px; }

/* Advanced: rows that open subpages (#29). */
.nav-rows .nav-row { display: flex; justify-content: space-between; width: 100%; margin-bottom: 8px; }

/* Bonus page (#29): next moment and bonus posts side by side; "Subscribe" with its note folded under ⓘ. */
.bonus-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.bonus-card { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--outline); border-radius: 16px; background: var(--surface1); }
.bonus-card .grow { flex: 1; }
.bonus-card .peek-small { font-weight: 700; margin: 0; }
.sub-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; font-size: 13px; }
.sub-toggle { display: flex; align-items: center; gap: 6px; }
.sub-info { background: none; border: none; color: var(--muted); padding: 2px 4px; font-size: 13px; }
.sub-info.on { color: var(--accent); }
.give-box { margin-top: 24px; padding: 4px 12px 12px; border-radius: 16px; border: 1px solid rgba(255, 201, 77, 0.5); background: rgba(255, 201, 77, 0.10); }
.give-head { display: flex; align-items: center; justify-content: space-between; }
.gift-buttons { display: flex; gap: 10px; flex-wrap: wrap; }

/* "Your data" at a glance (#29): who sees what; the details fold out below. */
.glance { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 12px; line-height: 1.3; }
.glance th, .glance td { border-top: 1px solid var(--outline); padding: 6px 4px; text-align: left; vertical-align: top; }
.glance thead th { color: var(--muted); border-top: none; font-weight: 600; }
.glance tbody th { font-weight: 600; }
.data-section summary { font-weight: 600; padding: 14px 0 4px; cursor: pointer; }

/* My post: the two save buttons side by side. */
.save-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.save-row > .btn { width: 100%; margin: 0; }
.save-row > .btn:only-child { grid-column: 1 / -1; }

/* Memories: picking posts to save (#27). */
.grid-item { position: relative; }
.grid-item.selecting .pick-mark {
  position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid #fff; background: rgba(0, 0, 0, .35); color: #000; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 14px; pointer-events: none;
}
.grid-item.selected .pick-mark { background: var(--accent); border-color: var(--accent); }
.grid-item.selected { opacity: 1; }
.grid-item.selecting:not(.selected) { opacity: .75; }

/* Banner extras (since 0.21): a small photo, buttons side by side. */
.news-photo { display: block; width: 120px; height: 120px; object-fit: cover; border-radius: 14px; margin-top: 8px; }
.news .news-link + .news-link { margin-left: 16px; }
.news-link.small { font-size: 12px; font-weight: 400; }
.vouch-selfie { width: 72px; height: 72px; object-fit: cover; border-radius: 50%; }
