/* Window Box — app styling.
   App chrome = dark (Mangonese default). Garden canvas = intentional daylight. */

:root {
  --chrome-bg: #15171c;
  --chrome-panel: #1e2128;
  --chrome-line: #2c313b;
  --chrome-text: #e8eaed;
  --chrome-dim: #9aa1ad;
  --accent: #7fb069;
  --accent-warm: #f2b705;

  /* daylight canvas palette */
  --sky-top: #bfe3f2;
  --sky-bottom: #eaf6e9;
  --soil: #6b4f3a;
  --soil-dark: #553f2e;
  --planter: #b5764b;
  --planter-dark: #9a6038;

  --radius: 16px;
  --radius-sm: 10px;
  --sheet-z: 60;
  font-synthesis: none;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; height: 100%; overscroll-behavior: none; }
body {
  background: var(--chrome-bg);
  color: var(--chrome-text);
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  user-select: none; -webkit-user-select: none;
  -webkit-touch-callout: none;
  overflow: hidden; /* the whole game fits one screen; sheets scroll internally */
}

#app {
  max-width: 480px;
  margin: 0 auto;
  height: 100vh;
  height: 100svh; /* small viewport height: the bottom clock bar always stays on screen */
  display: flex;
  flex-direction: column;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}
/* the chrome bars never shrink; only the garden flexes */
#topbar, #viewbar, #clockbar { flex: 0 0 auto; }

/* ---------- Top bar ---------- */
#topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px 8px;
}
.tb-left { display: flex; align-items: baseline; gap: 10px; }
.tb-title { font-size: 20px; font-weight: 700; margin: 0; letter-spacing: -0.02em; }
.tb-month { font-size: 13px; color: var(--accent-warm); font-weight: 600; }
.tb-right { display: flex; gap: 8px; }

.icon-btn {
  min-width: 44px; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  background: var(--chrome-panel); border: 1px solid var(--chrome-line);
  color: var(--chrome-text); border-radius: 12px; font-size: 18px; cursor: pointer;
  transition: transform .08s ease, background .15s ease;
}
.icon-btn:active { transform: scale(.92); background: var(--chrome-line); }
.log-glyph { color: var(--accent-warm); font-size: 15px; }
.log-count { font-size: 13px; font-weight: 700; min-width: 14px; }

/* ---------- View bar ---------- */
#viewbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px 10px;
}
.seg { display: inline-flex; background: var(--chrome-panel); border: 1px solid var(--chrome-line); border-radius: 12px; padding: 3px; }
.seg-btn {
  min-height: 38px; padding: 0 14px; border: 0; background: transparent;
  color: var(--chrome-dim); font-weight: 600; font-size: 13px; border-radius: 9px; cursor: pointer;
  transition: background .15s, color .15s;
}
.seg-btn.is-active { background: var(--accent); color: #14210d; }
.seg-btn.is-locked { opacity: .5; }
.ghost-btn {
  min-height: 38px; padding: 0 12px; border: 1px solid var(--chrome-line);
  background: transparent; color: var(--chrome-dim); border-radius: 10px;
  font-weight: 600; font-size: 13px; cursor: pointer;
}
.ghost-btn:active { background: var(--chrome-line); }

/* ---------- Stage (daylight) ---------- */
#stage {
  position: relative;
  margin: 0 12px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--sky-top) 0%, #d8eecf 55%, var(--sky-bottom) 100%);
  overflow: hidden;
  flex: 1 1 0;
  min-height: 0;
  box-shadow: inset 0 2px 14px rgba(0,0,0,.08);
  color: #2c3a22;
}
/* seasonal canvas tint (the dark chrome stays; only the daylight panel shifts) */
#stage { transition: background 1.6s ease; }
#stage.season-spring { background: linear-gradient(180deg, #c4e7f0 0%, #dcf0d4 55%, #eef7e6 100%); }
#stage.season-summer { background: linear-gradient(180deg, #bfe3f2 0%, #d8eecf 55%, #eaf6e9 100%); }
#stage.season-fall   { background: linear-gradient(180deg, #d8e0ce 0%, #ecdcae 55%, #f3e6c8 100%); }
#stage.season-winter { background: linear-gradient(180deg, #9fb1c0 0%, #bdc9cf 52%, #d8e0dd 100%); filter: saturate(.85); }
.cell .plant { animation: plantIn .6s ease; }
@keyframes plantIn { from { opacity: .35; } to { opacity: 1; } }


/* ---------- Living sky (front-on, behind the plants) ---------- */
.sky-layer { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.sun {
  position: absolute; top: 22px; right: 28px; width: 52px; height: 52px; border-radius: 50%;
  background: radial-gradient(circle, #fff6cf 0%, #ffe79a 55%, rgba(255,231,154,0) 72%);
  box-shadow: 0 0 28px 12px rgba(255,240,180,.55); transition: opacity .9s ease;
}
.sky-layer[data-weather="cloudy"] .sun,
.sky-layer[data-weather="rain"] .sun,
.sky-layer[data-weather="snow"] .sun { opacity: .2; }
.season-winter .sun { filter: saturate(.7) brightness(1.05); }

.cloud { position: absolute; left: -32%; opacity: .92; animation: cloudDrift linear infinite; will-change: transform; }
.cloud svg { display: block; filter: drop-shadow(0 4px 6px rgba(120,140,150,.18)); }
.cloud-0 { top: 12%; transform: scale(1);   animation-duration: 64s; }
.cloud-1 { top: 30%; transform: scale(.68); animation-duration: 92s; animation-delay: -34s; opacity: .7; }
.cloud-2 { top: 6%;  transform: scale(1.25);animation-duration: 120s; animation-delay: -70s; opacity: .82; }
@keyframes cloudDrift { from { transform: translateX(0) scale(var(--s,1)); } to { transform: translateX(168%) scale(var(--s,1)); } }
.cloud-0 { --s: 1; } .cloud-1 { --s: .68; } .cloud-2 { --s: 1.25; }
.sky-layer[data-weather="cloudy"] .cloud,
.sky-layer[data-weather="rain"] .cloud,
.sky-layer[data-weather="snow"] .cloud { opacity: 1; }

.precip-layer { position: absolute; inset: 0; z-index: 6; overflow: hidden; pointer-events: none; }
.drop { position: absolute; top: -8%; width: 2px; height: 16px; border-radius: 1px;
  background: linear-gradient(rgba(170,196,224,0), rgba(170,196,224,.8)); animation: rainFall linear infinite; }
@keyframes rainFall { from { transform: translateY(-20px); } to { transform: translateY(720px); } }
.flake { position: absolute; top: -4%; width: 6px; height: 6px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 3px rgba(255,255,255,.7); animation: snowFall linear infinite; }
@keyframes snowFall {
  0% { transform: translateY(-12px) translateX(0); }
  50% { transform: translateY(340px) translateX(16px); }
  100% { transform: translateY(720px) translateX(-6px); }
}
.sky-layer.paused .cloud, .sky-layer.paused .sun,
.precip-layer.paused .drop, .precip-layer.paused .flake { animation-play-state: paused; }

.quiet-banner {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  background: rgba(255,255,255,.7); color: #5a6b4a; backdrop-filter: blur(2px);
  padding: 7px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  z-index: 4; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.garden-grid {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: grid; gap: 8px; padding: 16px;
  z-index: 2;
}
.garden-grid.tier-windowsill { grid-template-columns: repeat(6, 1fr); }
.garden-grid.tier-fireescape { grid-template-columns: repeat(4, 1fr); }

.cell {
  position: relative; aspect-ratio: 1 / 1.15; cursor: pointer;
}
.garden-grid.tier-windowsill .cell { aspect-ratio: 1 / 1.9; }
.cell {
  border-radius: 0 0 6px 6px;
  background: linear-gradient(180deg, var(--soil) 0%, var(--soil-dark) 100%);
  border: 1px solid rgba(0,0,0,.12);
  display: flex; align-items: flex-end; justify-content: center;
  transition: transform .1s ease;
}
.cell::after { /* planter lip */
  content: ""; position: absolute; left: -2px; right: -2px; bottom: -2px; height: 26%;
  background: linear-gradient(180deg, var(--planter), var(--planter-dark));
  border-radius: 4px; box-shadow: 0 2px 4px rgba(0,0,0,.18); z-index: 3;
}
.cell.empty { background: linear-gradient(180deg, #7a5c44, #5c4533); }
.cell.empty::before {
  content: "+"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  color: rgba(255,255,255,.45); font-size: 20px; font-weight: 700; z-index: 1;
}
.cell:active { transform: scale(.96); }
.cell .plant { position: relative; z-index: 2; width: 100%; height: 100%; }

/* windowsill row sits on a sill */
.garden-grid.tier-windowsill::before {
  content: ""; position: absolute; left: 8px; right: 8px; bottom: 8px; height: 14px;
  background: linear-gradient(180deg, #cdb18f, #a98a64); border-radius: 4px; z-index: 0;
}

/* ---------- Life cycle (eggs / caterpillars / chrysalises on host plants) ---------- */
.lifecycle-layer { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.lc { position: absolute; transform: translate(-50%, -50%); will-change: transform; }
.lc-wiggle { animation: lcWiggle 1.6s ease-in-out infinite; transform-origin: center; }
.motion-paused .lc-wiggle { animation-play-state: paused; }
@keyframes lcWiggle { 0%,100% { transform: translateX(-1.5px) rotate(-3deg); } 50% { transform: translateX(1.5px) rotate(3deg); } }
.lc-pupa { animation: lcSway 3.2s ease-in-out infinite; transform-origin: top center; }
@keyframes lcSway { 0%,100% { transform: translate(-50%,-50%) rotate(-4deg); } 50% { transform: translate(-50%,-50%) rotate(4deg); } }

/* ---------- Creatures ---------- */
.creature-layer { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.creature {
  position: absolute; will-change: transform;
}
.creature svg { display: block; overflow: visible; }
.flutter { animation: flutter 0.5s ease-in-out infinite alternate; transform-origin: center; }
.motion-paused .flutter { animation-play-state: paused; }
@keyframes flutter { from { transform: scaleX(1); } to { transform: scaleX(.55); } }
.firstsight-pop {
  position: absolute; z-index: 6; font-size: 11px; font-weight: 700; color: #3a4a2a;
  background: rgba(255,255,255,.85); padding: 3px 9px; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,.12); transform: translate(-50%,-50%);
  animation: sightPop 2.6s ease forwards; white-space: nowrap;
}
@keyframes sightPop {
  0% { opacity: 0; transform: translate(-50%, -30%) scale(.8); }
  14% { opacity: 1; transform: translate(-50%, -120%) scale(1); }
  80% { opacity: 1; transform: translate(-50%, -150%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -200%) scale(1); }
}

/* ---------- Clock bar ---------- */
#clockbar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px 8px;
}
.clk-btn {
  min-width: 44px; min-height: 40px; border-radius: 10px;
  border: 1px solid var(--chrome-line); background: var(--chrome-panel);
  color: var(--chrome-dim); font-weight: 700; font-size: 13px; cursor: pointer;
}
.clk-btn.is-active { background: var(--accent); color: #14210d; border-color: var(--accent); }
.clk-btn:active { transform: scale(.94); }
.clk-progress { flex: 1; height: 5px; background: var(--chrome-line); border-radius: 999px; overflow: hidden; }
.clk-fill { height: 100%; width: 0%; background: var(--accent-warm); transition: width .12s linear; }

/* ---------- Sheets ---------- */
.backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 50;
  opacity: 1; transition: opacity .2s;
}
.backdrop.hidden { display: none; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--sheet-z);
  background: var(--chrome-panel); border-top-left-radius: 20px; border-top-right-radius: 20px;
  max-width: 480px; margin: 0 auto; max-height: 78vh; display: flex; flex-direction: column;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 30px rgba(0,0,0,.4);
  transition: transform .26s cubic-bezier(.22,.8,.3,1);
  touch-action: none;
}
.sheet.hidden { transform: translateY(110%); pointer-events: none; }
.sheet-grab { width: 40px; height: 4px; border-radius: 999px; background: var(--chrome-line); margin: 10px auto 4px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 16px 10px; }
.sheet-head h2 { font-size: 17px; margin: 0; }

.log-list { overflow-y: auto; padding: 0 12px 8px; -webkit-overflow-scrolling: touch; }
.palette-list { overflow-y: auto; overflow-x: hidden; padding: 0 12px 8px; -webkit-overflow-scrolling: touch;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
  align-content: start; align-items: start; }

/* filter bar */
.palette-filters { display: flex; gap: 6px; overflow-x: auto; padding: 0 12px 10px; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; }
.palette-filters::-webkit-scrollbar { display: none; }
.pf-chip { flex: 0 0 auto; min-height: 34px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--chrome-line); background: var(--chrome-bg); color: var(--chrome-dim);
  font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.pf-chip.is-active { background: var(--accent); color: #14210d; border-color: var(--accent); }
.palette-empty { grid-column: 1 / -1; text-align: center; color: var(--chrome-dim); font-size: 13px; padding: 20px 8px; }

.palette-section { grid-column: 1 / -1; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--chrome-dim); margin: 6px 2px 0; }
.plant-card {
  position: relative; display: flex; gap: 9px; align-items: flex-start; padding: 9px; min-width: 0;
  height: 92px;
  background: var(--chrome-bg); border: 1px solid var(--chrome-line); border-radius: 12px;
  cursor: pointer; transition: transform .08s, border-color .15s;
}
.plant-card:active { transform: scale(.97); border-color: var(--accent); }
.plant-swatch { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 9px; position: relative; overflow: hidden; }
.plant-meta { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; height: 100%; padding-right: 20px; }
.plant-name { font-size: 12.5px; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.plant-chips { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; }
.plant-bloom { font-size: 10.5px; margin-top: auto; }
.plant-info { position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--chrome-line); background: var(--chrome-panel); color: var(--chrome-dim);
  font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 700; font-size: 15px;
  line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.plant-info:active { background: var(--accent); color: #14210d; }

/* plant info sheet (layered above the palette) */
.sheet.plantinfo { z-index: 66; }
.info-grid { padding: 4px 16px 12px; }
.info-row { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--chrome-line); }
.info-row:last-child { border-bottom: 0; }
.info-k { font-size: 12.5px; color: var(--chrome-dim); flex: 0 0 auto; }
.info-v { font-size: 13px; font-weight: 600; text-align: right; min-width: 0; }
.info-tip { margin: 4px 16px 8px; padding: 11px 13px; border-radius: 12px; font-size: 13px; line-height: 1.45;
  background: rgba(127,176,105,.12); border: 1px solid rgba(127,176,105,.35); color: #cfe6bf; }
.info-tip b { color: var(--accent); }
.plant-bloom.in { color: var(--accent); font-weight: 600; }
.plant-bloom.out { color: var(--chrome-dim); }
.chip { display: inline-block; font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .03em; padding: 1px 5px; border-radius: 999px; }
.chip.host { background: #3a2e1a; color: #f2c53d; }
.chip.keystone { background: #2a1f3a; color: #c39be0; }

/* log tabs (Discoveries / Journal) */
.logtabs { display: flex; gap: 6px; padding: 0 16px 10px; }
.logtab { flex: 1; min-height: 38px; border-radius: 10px; border: 1px solid var(--chrome-line);
  background: var(--chrome-bg); color: var(--chrome-dim); font-weight: 600; font-size: 13px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.logtab.is-active { background: var(--accent); color: #14210d; border-color: var(--accent); }
.logtab-count { font-size: 11px; opacity: .8; font-weight: 700; }
#journal-pane.hidden, #discoveries-pane.hidden { display: none; }

/* journal */
.journal-nudge { display: flex; gap: 9px; align-items: flex-start; margin: 0 16px 10px; padding: 11px 13px;
  background: rgba(127,176,105,.12); border: 1px solid rgba(127,176,105,.32); border-radius: 12px;
  font-size: 13px; line-height: 1.45; color: #cfe6bf; }
.jn-icon { flex: 0 0 auto; }
.journal-list { overflow-y: auto; padding: 0 12px 8px; -webkit-overflow-scrolling: touch; }
.journal-count { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--chrome-dim); padding: 2px 4px 8px; }
.jrow { display: flex; gap: 12px; align-items: center; padding: 10px 6px; border-bottom: 1px solid var(--chrome-line); }
.jrow.locked { opacity: .5; }
.jicon { width: 34px; height: 34px; flex: 0 0 34px; display: flex; align-items: center; justify-content: center;
  font-size: 20px; background: var(--chrome-bg); border: 1px solid var(--chrome-line); border-radius: 10px; }
.jrow.locked .jicon { filter: grayscale(1); }
.jtitle { font-size: 14px; font-weight: 600; }
.jsub { font-size: 11.5px; color: var(--chrome-dim); margin-top: 2px; line-height: 1.35; }
.jcheck { margin-left: auto; color: var(--accent); font-weight: 800; font-size: 16px; }

/* discovery log */
.biodiv { padding: 4px 16px 10px; }
.biodiv-track { height: 8px; background: var(--chrome-bg); border-radius: 999px; overflow: hidden; border: 1px solid var(--chrome-line); }
.biodiv-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-warm)); transition: width .4s ease; }
.biodiv-label { font-size: 12px; color: var(--chrome-dim); margin-top: 6px; }
.log-row {
  display: flex; gap: 12px; align-items: center; padding: 10px 6px;
  border-bottom: 1px solid var(--chrome-line);
}
.log-row.locked { opacity: .55; }
.log-sprite { width: 44px; height: 36px; flex: 0 0 44px; display: flex; align-items: center; justify-content: center; }
.log-name { font-size: 14px; font-weight: 600; }
.log-sci { font-size: 11px; color: var(--chrome-dim); font-style: italic; }
.log-sub { font-size: 11px; margin-top: 2px; }
.log-sub.here { color: var(--accent); font-weight: 600; }
.log-sub.seen { color: var(--chrome-dim); }
.log-rarity { margin-left: auto; font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; }
.log-rarity.specialist { background: #2a1f3a; color: #c39be0; }
.log-rarity.generalist { background: #1f2a1a; color: #9ccb7e; }

/* cell sheet */
.cell-body { padding: 4px 16px 8px; }
.cb-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.cb-swatch { width: 48px; height: 48px; border-radius: 12px; flex: 0 0 48px; }
.cb-title { font-size: 16px; font-weight: 700; }
.cb-sci { font-size: 12px; color: var(--chrome-dim); font-style: italic; }
.cb-fact { font-size: 13px; color: var(--chrome-text); line-height: 1.45; margin: 10px 0 16px;
  background: var(--chrome-bg); border: 1px solid var(--chrome-line); border-radius: 12px; padding: 12px; }
.cb-actions { display: flex; gap: 10px; }
.btn {
  flex: 1; min-height: 48px; border-radius: 12px; font-weight: 700; font-size: 14px;
  border: 1px solid var(--chrome-line); background: var(--chrome-bg); color: var(--chrome-text); cursor: pointer;
}
.btn:active { transform: scale(.98); }
.btn.danger { background: #3a1f1f; border-color: #5c2e2e; color: #f0a3a3; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #14210d; }

/* ---------- Postcard ---------- */
.postcard {
  position: fixed; inset: 0; z-index: 70; max-width: 480px; margin: 0 auto;
  background: linear-gradient(180deg, #aedcf0 0%, #cfeddf 60%, #b9d99a 100%);
  display: flex; flex-direction: column;
}
.postcard.hidden { display: none; }
.postcard-back { position: absolute; top: calc(12px + env(safe-area-inset-top)); left: 12px; z-index: 3;
  background: rgba(255,255,255,.8); color: #2c3a22; border-color: rgba(0,0,0,.1); }
.postcard-scene { position: relative; flex: 1; overflow: hidden; }
.postcard-creatures { position: absolute; inset: 0; pointer-events: none; z-index: 4; }

/* ---------- Toasts ---------- */
.toast-region { position: fixed; left: 0; right: 0; bottom: 84px; z-index: 80; display: flex;
  flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast {
  background: rgba(20,33,13,.95); color: #eaf6e9; border: 1px solid var(--accent);
  padding: 10px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  box-shadow: 0 6px 20px rgba(0,0,0,.35); display: flex; align-items: center; gap: 8px;
  animation: toastIn .3s ease, toastOut .3s ease 2.3s forwards; max-width: 90%;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-8px); } }

/* ---------- Settings ---------- */
.settings-body { overflow-y: auto; padding: 4px 16px 16px; }
.set-section { padding: 8px 0 14px; border-bottom: 1px solid var(--chrome-line); margin-bottom: 12px; }
.set-section:last-of-type { border-bottom: 0; }
.set-head { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--chrome-dim); margin: 0 0 10px; }
.set-row { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.set-meta { min-width: 0; }
.set-title { font-size: 15px; font-weight: 600; }
.set-sub { font-size: 12.5px; color: var(--chrome-dim); margin-top: 3px; line-height: 1.4; }
.set-avatar { width: 44px; height: 44px; border-radius: 50%; flex: 0 0 44px; object-fit: cover; }
.set-avatar-fallback { display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #14210d; font-weight: 700; font-size: 18px; }
.set-section .btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.aud-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.aud-label { flex: 0 0 64px; font-size: 14px; font-weight: 600; }
.aud-seg { flex: 1; display: flex; gap: 4px; background: var(--chrome-bg); border: 1px solid var(--chrome-line);
  border-radius: 10px; padding: 3px; }
.aud-opt { flex: 1; min-height: 36px; border: 0; background: transparent; color: var(--chrome-dim);
  font-weight: 600; font-size: 12px; border-radius: 8px; cursor: pointer; }
.aud-opt.is-active { background: var(--accent); color: #14210d; }
.aud-opt:active { transform: scale(.96); }
.g-mark { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; color: #4285F4; font-weight: 800; font-size: 13px; }
.set-about { font-size: 12px; color: var(--chrome-dim); text-align: center; padding: 4px 8px 0; line-height: 1.5; }

/* ---------- Postcard scene (side-on) ---------- */
.pc-sky { position: absolute; inset: 0; background:
  radial-gradient(140px 140px at 78% 14%, rgba(255,248,214,.9), rgba(255,248,214,0) 70%); }
.pc-plants { position: absolute; left: 0; right: 0; bottom: 96px; height: 60%; z-index: 2; }
.pc-empty { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; color: #5a6b4a; font-weight: 600; font-size: 13px; }
.pc-plant { position: absolute; bottom: 0; transform: translateX(-50%); }
.pc-stalk { position: relative; width: 6px; border-radius: 3px;
  background: linear-gradient(180deg, #6f9450, #5d7a44); margin: 0 auto; }
.pc-leaf { position: absolute; width: 22px; height: 11px; background: #6f9450; border-radius: 0 60% 0 60%; }
.pc-leaf.l { left: -20px; bottom: 30%; transform: rotate(18deg); border-radius: 60% 0 60% 0; }
.pc-leaf.r { right: -20px; bottom: 48%; transform: rotate(-18deg); }
.pc-bloom { position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 26px; border-radius: 50%; }
.pc-bloom2 { width: 14px; height: 14px; top: -8px; left: 30%; opacity: .85; }
.pc-bud { position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  width: 12px; height: 14px; border-radius: 50% 50% 50% 50%; background: #6f9450; }
.pc-box { position: absolute; left: 6%; right: 6%; bottom: 60px; height: 56px; z-index: 3;
  background: linear-gradient(180deg, var(--planter), var(--planter-dark));
  border-radius: 6px 6px 10px 10px; box-shadow: 0 6px 16px rgba(0,0,0,.22);
  border-top: 4px solid #c98a5c; }
.pc-sill { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; z-index: 2;
  background: linear-gradient(180deg, #cdb18f, #9c7d57); }

.hidden { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
