/* ─────────────────────────────────────────────────────────────
   Hammer Time — soft pastel kawaii theme
   ───────────────────────────────────────────────────────────── */
:root {
  --pink:        #ff7eb3;
  --pink-soft:   #ffd6e8;
  --pink-deep:   #ff5a98;
  --lav:         #b794f6;
  --lav-soft:    #e6dbff;
  --gold:        #ffce4d;
  --mint:        #9be7c4;
  --ink:         #6b5571;
  --ink-soft:    #a392ad;
  --card:        #ffffff;
  --bg1:         #ffe3f1;
  --bg2:         #ece1ff;
  --shadow:      0 14px 34px rgba(196, 120, 175, .28);
  --shadow-sm:   0 6px 16px rgba(196, 120, 175, .20);
  --radius:      28px;
  --radius-sm:   18px;
  font-family: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN",
               "Quicksand", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  min-height: 100%;
  color: var(--ink);
  background: linear-gradient(160deg, var(--bg1) 0%, var(--bg2) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-user-select: none; user-select: none;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.hidden { display: none !important; }

/* floating hearts background */
.bg-hearts { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bg-hearts span {
  position: absolute; bottom: -40px; font-size: 22px; opacity: .35;
  animation: floatUp linear infinite;
  will-change: transform, opacity;
}
@keyframes floatUp {
  0%   { transform: translateY(0) rotate(0deg) scale(.8); opacity: 0; }
  10%  { opacity: .4; }
  90%  { opacity: .4; }
  100% { transform: translateY(-115vh) rotate(40deg) scale(1.1); opacity: 0; }
}

/* fx canvas (confetti) */
#fx { position: fixed; inset: 0; z-index: 60; pointer-events: none; }

.screen { position: relative; z-index: 1; }

/* ─────────── LOGIN ─────────── */
#login {
  min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 24px;
}
.login-card {
  width: 100%; max-width: 360px; background: var(--card); border-radius: var(--radius);
  padding: 34px 26px 28px; box-shadow: var(--shadow); text-align: center;
}
.logo-emoji { font-size: 64px; animation: wiggle 2.6s ease-in-out infinite; }
.app-title {
  margin: 6px 0 2px; font-size: 30px; font-weight: 800;
  background: linear-gradient(90deg, var(--pink-deep), var(--lav));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tagline { margin: 0 0 22px; color: var(--ink-soft); font-size: 15px; }

.who-pick { display: grid; gap: 14px; }
.who-btn {
  display: flex; align-items: center; gap: 14px; width: 100%; border: none; cursor: pointer;
  padding: 16px 20px; border-radius: var(--radius-sm); font-size: 19px; font-weight: 700; color: var(--ink);
  background: linear-gradient(135deg, var(--pink-soft), var(--lav-soft));
  box-shadow: var(--shadow-sm); transition: transform .12s ease, box-shadow .12s ease;
}
.who-btn:active { transform: scale(.95); }
.who-emoji { font-size: 30px; }

/* pin pad */
.pin-who { font-size: 18px; font-weight: 700; margin: 0 0 16px; }
.pin-dots { display: flex; gap: 14px; justify-content: center; height: 22px; margin-bottom: 8px; }
.pin-dots .dot {
  width: 16px; height: 16px; border-radius: 50%; background: var(--lav-soft);
  transition: transform .15s ease, background .15s ease;
}
.pin-dots .dot.on { background: var(--pink); transform: scale(1.18); }
.pin-error { color: var(--pink-deep); font-size: 14px; font-weight: 700; height: 20px; margin-bottom: 6px; }
.pin-error.shake { animation: shake .4s; }
.pin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pin-key {
  aspect-ratio: 1 / 1; border: none; cursor: pointer; border-radius: 50%;
  font-size: 26px; font-weight: 700; color: var(--ink); background: #fff;
  box-shadow: var(--shadow-sm); transition: transform .1s ease, background .1s ease;
}
.pin-key:active { transform: scale(.88); background: var(--pink-soft); }
.pin-go { background: linear-gradient(135deg, var(--pink), var(--lav)); color: #fff; }
.pin-back { background: var(--lav-soft); }
.link-btn {
  background: none; border: none; color: var(--ink-soft); font-size: 14px;
  margin-top: 16px; cursor: pointer; font-weight: 600; font-family: inherit;
}

/* ─────────── APP ─────────── */
#app { max-width: 540px; margin: 0 auto; padding: 8px 16px 40px; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 4px; }
.hi { font-size: 20px; font-weight: 800; }
.wave { display: inline-block; animation: wave 2s ease-in-out infinite; transform-origin: 70% 70%; }
.icon-btn {
  border: none; background: #fff; box-shadow: var(--shadow-sm); cursor: pointer;
  width: 42px; height: 42px; border-radius: 50%; font-size: 19px;
}
.icon-btn:active { transform: scale(.9); }

/* meter */
.meter-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px; text-align: center; position: relative; margin-bottom: 14px;
}
.meter-reward {
  font-size: 38px; position: absolute; top: 16px; right: 22px;
  animation: wiggle 3s ease-in-out infinite;
}
.meter-reward.hit { animation: hammerHit .6s ease; }
.meter-ring-wrap { position: relative; width: 220px; height: 220px; margin: 4px auto 8px; }
.meter-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--lav-soft); stroke-width: 12; }
.ring-fg {
  fill: none; stroke: url(#grad); stroke-width: 12; stroke-linecap: round;
  stroke-dasharray: 326.7; stroke-dashoffset: 326.7;
  transition: stroke-dashoffset .9s cubic-bezier(.34,1.56,.64,1);
}
.meter-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.meter-balance {
  font-size: 58px; font-weight: 900; line-height: 1;
  background: linear-gradient(90deg, var(--pink-deep), var(--lav));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.meter-balance.bump { animation: bump .35s ease; }
.meter-of { color: var(--ink-soft); font-size: 17px; font-weight: 700; margin-top: 2px; }
.meter-caption { color: var(--ink-soft); font-size: 14px; font-weight: 600; }

.unlock-btn {
  margin-top: 14px; border: none; cursor: pointer; width: 100%;
  padding: 16px; border-radius: var(--radius-sm); font-size: 18px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--pink-deep), var(--lav));
  box-shadow: var(--shadow); animation: pulse 1.3s ease-in-out infinite;
  font-family: inherit;
}
.unlock-btn:active { transform: scale(.96); }

/* chips */
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.chip {
  background: var(--card); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
  padding: 12px 6px; text-align: center;
}
.chip-n { display: block; font-size: 24px; font-weight: 900; color: var(--pink-deep); }
.chip-l { font-size: 12px; color: var(--ink-soft); font-weight: 600; }

/* activities */
.section-title {
  font-size: 20px; font-weight: 900; margin: 6px 6px 12px; text-align: center;
  background: linear-gradient(90deg, var(--pink-deep), var(--lav));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cat { margin-bottom: 16px; }
.cat-head { font-size: 15px; font-weight: 800; margin: 4px 6px 10px; color: var(--ink); }
.act-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.act-btn {
  position: relative; border: none; cursor: pointer; text-align: left;
  background: var(--card); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
  padding: 14px 14px 14px 16px; display: flex; align-items: center; gap: 12px;
  transition: transform .12s ease, box-shadow .12s ease; overflow: hidden;
}
.act-btn:active { transform: scale(.93); box-shadow: var(--shadow); }
.act-emoji { font-size: 30px; flex-shrink: 0; }
.act-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
/* optional 😈 "weird stuff" tap on each Naughty-List act (sits at the right edge) */
.act-weird { flex: 0 0 auto; font-size: 18px; line-height: 1; padding: 6px 7px; border-radius: 12px; background: #f3e9ff; opacity: .9; }
.act-weird:active { transform: scale(.85); }
.act-label { font-size: 14px; font-weight: 700; line-height: 1.15; }
.act-pts { font-size: 13px; font-weight: 800; color: var(--gold); }
.act-pts::after { content: " ⭐"; }

/* him panel */
.him-panel {
  background: var(--card); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
  padding: 16px; margin-bottom: 18px;
}
.him-panel h3 { margin: 0 0 12px; font-size: 15px; }
.him-panel.her-panel { background: linear-gradient(135deg, #fff0f6, #f3ecff); } /* her controls = softer pink */
.bonus-row { display: grid; grid-template-columns: 90px 1fr; gap: 8px; }
.bonus-row input {
  border: 2px solid var(--lav-soft); border-radius: 12px; padding: 10px; font-size: 15px;
  font-family: inherit; color: var(--ink); min-width: 0;
}
.bonus-row input:focus { outline: none; border-color: var(--pink); }
.him-btns { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.him-btns .mini-btn { flex: 1 1 auto; padding: 10px 8px; }
.him-btns .deduct { background: linear-gradient(135deg, #b9a7e8, #9a86d6); }
.him-btns .reset  { background: linear-gradient(135deg, #ff9bb3, #ff6f9a); }
.mini-btn {
  border: none; cursor: pointer; border-radius: 12px; padding: 0 16px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--lav)); font-family: inherit; font-size: 14px;
}
.mini-btn:active { transform: scale(.94); }

/* requests board */
.req-wrap { margin-bottom: 18px; }
.req-compose { background: var(--card); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); padding: 14px; }
.req-kind { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.kind-btn {
  flex: 1 1 calc(50% - 4px); border: 2px solid var(--lav-soft); background: #fff; color: var(--ink-soft);
  border-radius: 12px; padding: 9px; font-weight: 700; font-family: inherit; font-size: 14px; cursor: pointer;
  white-space: nowrap;
}
.kind-btn.on { border-color: var(--pink); color: var(--pink-deep); background: var(--pink-soft); }
.req-compose textarea, .req-compose select, .req-send-row input {
  width: 100%; border: 2px solid var(--lav-soft); border-radius: 12px; padding: 10px; font-size: 15px;
  font-family: inherit; color: var(--ink); box-sizing: border-box; background: #fff;
}
.req-compose textarea { resize: vertical; }
.req-compose select, .req-compose input[type=date] { margin-top: 8px; }
.req-compose input[type=date] {
  width: 100%; border: 2px solid var(--lav-soft); border-radius: 12px; padding: 10px;
  font-size: 15px; font-family: inherit; color: var(--ink); box-sizing: border-box; background: #fff;
}
.req-compose textarea:focus, .req-compose select:focus, .req-compose input[type=date]:focus, .req-send-row input:focus {
  outline: none; border-color: var(--pink);
}
.req-day { color: var(--pink-deep); font-weight: 800; }
.req-send-row { display: flex; gap: 8px; margin-top: 8px; align-items: stretch; }
.req-send-row input { flex: 1 1 auto; min-width: 0; }
.req-send-row .mini-btn { flex: 0 0 auto; padding: 0 24px; }

.req-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.req-item {
  background: var(--card); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
  padding: 12px 14px; animation: slideIn .3s ease; border-left: 5px solid var(--lav);
}
.req-item.status-approved { border-left-color: var(--mint); }
.req-item.status-declined { border-left-color: #f2a0b6; opacity: .72; }
.req-item.status-done     { border-left-color: var(--gold); }
.req-top { display: flex; align-items: center; gap: 8px; }
.req-kindtag { font-size: 20px; }
.req-text { font-size: 15px; font-weight: 700; flex: 1; line-height: 1.25; word-break: break-word; }
.req-badge {
  font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; white-space: nowrap;
  background: var(--lav-soft); color: var(--ink);
}
.req-badge.approved { background: #c8f3df; color: #1c7a52; }
.req-badge.declined { background: #ffd9e2; color: var(--pink-deep); }
.req-badge.done     { background: #ffeebb; color: #9a7b1a; }
.req-meta { font-size: 12px; color: var(--ink-soft); margin-top: 6px; }
.req-meta .req-link { color: var(--pink-deep); font-weight: 700; }
.req-worth { color: var(--gold); font-weight: 800; }
.req-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.req-actions button {
  border: none; cursor: pointer; border-radius: 10px; padding: 7px 12px; font-weight: 800;
  font-family: inherit; font-size: 13px;
}
.req-yes { background: linear-gradient(135deg, var(--mint), #7fd3ab); color: #11543a; }
.req-no  { background: var(--lav-soft); color: var(--ink); }
.req-done { background: var(--gold); color: #6b5008; }
.req-cancel { background: var(--pink-soft); color: var(--pink-deep); }
.req-actions button:active { transform: scale(.93); }
.req-note { font-size: 13px; color: var(--ink); margin-top: 8px; font-style: italic; }
.req-empty { color: var(--ink-soft); text-align: center; padding: 8px; font-size: 14px; }

/* proof pics */
.proof-wrap { margin-bottom: 18px; }
.proof-compose { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.proof-pick {
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  background: linear-gradient(135deg, var(--pink-soft), var(--lav-soft)); color: var(--ink);
  border-radius: 12px; padding: 10px 14px; font-weight: 800; font-size: 14px; white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.proof-pick:active { transform: scale(.95); }
.proof-compose input[type=text] {
  flex: 1 1 140px; min-width: 0; border: 2px solid var(--lav-soft); border-radius: 12px;
  padding: 10px; font-size: 15px; font-family: inherit; color: var(--ink); background: #fff;
}
.proof-compose input[type=text]:focus { outline: none; border-color: var(--pink); }
.proof-compose .mini-btn:disabled { opacity: .45; }
.proof-preview { margin-top: 10px; position: relative; display: inline-block; }
.proof-preview img { max-width: 140px; max-height: 140px; border-radius: 14px; box-shadow: var(--shadow-sm); }
.proof-clear {
  display: block; margin-top: 6px; border: none; background: var(--pink-soft); color: var(--pink-deep);
  border-radius: 10px; padding: 5px 10px; font-weight: 700; font-family: inherit; cursor: pointer; font-size: 12px;
}
.proof-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.proof-item {
  background: var(--card); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
  overflow: hidden; display: flex; flex-direction: column; animation: slideIn .3s ease;
}
.proof-thumb { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; cursor: pointer; display: block; background: var(--lav-soft); }
.proof-meta { padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.proof-cap { font-size: 14px; font-weight: 700; word-break: break-word; }
.proof-sub { font-size: 12px; color: var(--ink-soft); }
.proof-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; align-items: center; }
.proof-actions button { border: none; cursor: pointer; border-radius: 10px; padding: 6px 10px; font-weight: 800; font-family: inherit; font-size: 12px; }
.proof-award { background: linear-gradient(135deg, var(--pink), var(--lav)); color: #fff; }
.proof-del { background: var(--lav-soft); color: var(--ink); }
.proof-actions button:active { transform: scale(.93); }
.proof-awarded { font-size: 12px; font-weight: 800; color: #1c7a52; }
.proof-empty { color: var(--ink-soft); text-align: center; padding: 8px; font-size: 14px; grid-column: 1 / -1; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 85; display: flex; align-items: center; justify-content: center;
  background: rgba(40,30,46,.88); padding: 20px; animation: fadeIn .2s ease;
}
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: var(--shadow); }
.lightbox-x {
  position: fixed; top: calc(14px + env(safe-area-inset-top)); right: 16px; z-index: 86;
  border: none; background: rgba(255,255,255,.9); color: var(--ink); width: 42px; height: 42px;
  border-radius: 50%; font-size: 18px; font-weight: 800; cursor: pointer;
}

/* feed */
.feed-wrap { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 16px 16px 8px; }
.feed-head { display: flex; align-items: center; justify-content: space-between; }
.feed-head h3 { margin: 0; font-size: 16px; }
.feed { list-style: none; margin: 8px 0 0; padding: 0; }
.feed li {
  display: flex; align-items: center; gap: 12px; padding: 10px 4px;
  border-bottom: 1px dashed var(--lav-soft); animation: slideIn .3s ease;
}
.feed li:last-child { border-bottom: none; }
.feed-emoji { font-size: 22px; }
.feed-main { flex: 1; min-width: 0; }
.feed-label { font-size: 14px; font-weight: 700; }
.feed-meta { font-size: 12px; color: var(--ink-soft); }
.feed-pts { font-weight: 900; font-size: 15px; }
.feed-pts.pos { color: var(--mint); }
.feed-pts.neg { color: var(--pink-deep); }

.foot { text-align: center; color: var(--ink-soft); font-size: 13px; margin-top: 22px; }

/* celebrate overlay */
.celebrate {
  position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center;
  background: rgba(91, 74, 99, .45); backdrop-filter: blur(4px); padding: 24px;
  animation: fadeIn .25s ease;
}
.celebrate-inner {
  background: var(--card); border-radius: var(--radius); padding: 36px 28px; text-align: center;
  max-width: 340px; width: 100%; box-shadow: var(--shadow); animation: popBig .5s cubic-bezier(.34,1.56,.64,1);
}
.celebrate-emoji { font-size: 90px; animation: hammerHit .8s ease infinite; }
.celebrate-inner h2 {
  margin: 8px 0 4px; font-size: 30px; font-weight: 900;
  background: linear-gradient(90deg, var(--pink-deep), var(--lav));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.celebrate-inner p { color: var(--ink-soft); margin: 0 0 18px; font-size: 16px; }

/* earn splash (the "babing!" boing) */
.splash {
  position: fixed; left: 50%; top: 42%; transform: translate(-50%, -50%);
  z-index: 65; pointer-events: none; text-align: center;
}
.splash-emoji { font-size: 110px; animation: boing .9s cubic-bezier(.34,1.7,.5,1) forwards; }
.splash-pts {
  font-size: 30px; font-weight: 900; color: var(--gold); margin-top: 4px;
  text-shadow: 0 2px 6px rgba(255,90,152,.35);
  animation: floatPts 1s ease-out forwards;
}
@keyframes boing {
  0%   { transform: scale(0)   rotate(-18deg); }
  35%  { transform: scale(1.35) rotate(10deg); }
  55%  { transform: scale(.85) rotate(-6deg); }
  72%  { transform: scale(1.12) rotate(3deg); }
  100% { transform: scale(1)   rotate(0); opacity: 0; }
}
@keyframes floatPts {
  0%   { transform: translateY(8px) scale(.6); opacity: 0; }
  30%  { transform: translateY(0)   scale(1.1); opacity: 1; }
  100% { transform: translateY(-46px) scale(1); opacity: 0; }
}

/* toast */
.toast {
  position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  z-index: 80; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px;
  font-weight: 700; font-size: 15px; box-shadow: var(--shadow); animation: toastIn .42s cubic-bezier(.34,1.56,.64,1) both;
  max-width: 90vw; text-align: center;
}

/* iOS add-to-home-screen hint */
.ios-hint {
  position: fixed; left: 12px; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 75; background: var(--card); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); padding: 14px 40px 14px 16px; animation: popBig .45s cubic-bezier(.34,1.56,.64,1);
  border: 2px solid var(--pink-soft);
}
.ios-hint-body { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.ios-hint-emoji { font-size: 28px; }
.ios-hint b { color: var(--pink-deep); }
.ios-share { font-size: 16px; }
.ios-hint-x {
  position: absolute; top: 8px; right: 10px; border: none; background: none; cursor: pointer;
  font-size: 16px; color: var(--ink-soft); font-weight: 800;
}

/* ─── animations ─── */
@keyframes wiggle  { 0%,100%{transform:rotate(-6deg);} 50%{transform:rotate(6deg);} }
@keyframes wave    { 0%,60%,100%{transform:rotate(0);} 10%,30%{transform:rotate(16deg);} 20%{transform:rotate(-8deg);} }
@keyframes shake   { 0%,100%{transform:translateX(0);} 20%,60%{transform:translateX(-7px);} 40%,80%{transform:translateX(7px);} }
@keyframes bump    { 0%,100%{transform:scale(1);} 40%{transform:scale(1.28);} }
@keyframes pulse   { 0%,100%{transform:scale(1); box-shadow:var(--shadow);} 50%{transform:scale(1.035); box-shadow:0 18px 40px rgba(255,90,152,.5);} }
@keyframes hammerHit { 0%,100%{transform:rotate(0);} 30%{transform:rotate(-26deg);} 55%{transform:rotate(8deg);} }
@keyframes pop-in  { 0%{transform:scale(.85); opacity:0;} 100%{transform:scale(1); opacity:1;} }
@keyframes popBig  { 0%{transform:scale(.5); opacity:0;} 100%{transform:scale(1); opacity:1;} }
@keyframes fadeIn  { from{opacity:0;} to{opacity:1;} }
@keyframes slideIn { from{opacity:0; transform:translateX(-10px);} to{opacity:1; transform:translateX(0);} }
@keyframes toastIn {
  0%   { opacity:0; transform: translateX(-50%) translateY(80px); }
  60%  { transform: translateX(-50%) translateY(-6px); }
  100% { opacity:1; transform: translateX(-50%) translateY(0); }
}
/* streak chip flame glow — intensifies with the streak */
.chip.streak-warm { box-shadow: 0 0 0 2px #ffe7a8 inset, var(--shadow-sm); }
.chip.streak-hot  { box-shadow: 0 0 0 2px #ffd0a0 inset, 0 6px 18px rgba(255,150,70,.45); }
.chip.streak-fire { animation: streakGlow 1.7s ease-in-out infinite; }
@keyframes streakGlow {
  0%,100% { box-shadow: 0 0 0 2px #ffb38a inset, 0 6px 16px rgba(255,110,60,.4); }
  50%     { box-shadow: 0 0 0 2px #ff9a6a inset, 0 9px 28px rgba(255,90,40,.7); }
}
.pop-in { animation: pop-in .5s cubic-bezier(.34,1.56,.64,1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ════════════ v2 polish & pizzazz ════════════ */

/* animated aurora background (GPU-cheap; sits behind hearts + content) */
body::before {
  content: ""; position: fixed; inset: -30%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 20% 20%, rgba(255,126,179,.40), transparent 60%),
    radial-gradient(45% 55% at 85% 25%, rgba(183,148,246,.38), transparent 60%),
    radial-gradient(50% 50% at 50% 90%, rgba(155,231,196,.28), transparent 60%);
  animation: auroraDrift 26s ease-in-out infinite alternate; will-change: transform;
}
@keyframes auroraDrift { from { transform: translate3d(-3%,-2%,0) scale(1.05); } to { transform: translate3d(3%,2%,0) scale(1.12); } }

/* feed note (Daddy's reason now shows) */
.feed-note { display: block; font-size: 12px; color: var(--ink); font-style: italic; margin: 2px 0; word-break: break-word; }

/* only the newest list row pops (no more whole-list flicker) */
.feed li { animation: none; }
.just-new { animation: feedPop .45s cubic-bezier(.34,1.56,.64,1); }
@keyframes feedPop { 0% { opacity: 0; transform: translateY(-8px) scale(.96); } 100% { opacity: 1; transform: none; } }

/* cute empty states */
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ink-soft); padding: 18px 8px; text-align: center; font-size: 14px; justify-content: center; }
.empty-emoji { font-size: 40px; animation: wiggle 3s ease-in-out infinite; opacity: .85; }

/* stat chip pop on increase */
.chip-pop { animation: bump .4s ease; }

/* living meter: glow + heartbeat near full */
.ring-fg { transition: stroke-dashoffset .9s cubic-bezier(.34,1.56,.64,1), filter .6s ease; }
.meter-ring-wrap.near .ring-fg { filter: drop-shadow(0 0 6px rgba(255,90,152,.7)); }
.meter-ring-wrap.full .ring-fg { filter: drop-shadow(0 0 11px rgba(255,206,77,.95)); }
.meter-ring-wrap.near { animation: meterBeat 1.1s ease-in-out infinite; }
@keyframes meterBeat { 0%,100% { transform: scale(1); } 50% { transform: scale(1.025); } }

/* meter reward as a soft badge (fixes overlap) + mood-driven liveliness */
.meter-reward {
  width: 52px; height: 52px; display: grid; place-items: center; top: 12px; right: 14px;
  background: radial-gradient(circle at 50% 40%, #fff, var(--pink-soft));
  border-radius: 50%; box-shadow: var(--shadow-sm);
}
.meter-reward[data-mood="warm"] { animation-duration: 2s; }
.meter-reward[data-mood="hot"]  { animation-duration: 1s; filter: drop-shadow(0 0 6px rgba(255,90,152,.6)); }

/* juicy button press: sheen bloom + springy squish */
.act-btn { position: relative; overflow: hidden; }
.act-btn::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.6), transparent 45%);
  opacity: 0; transition: opacity .35s ease;
}
.act-btn:active::after { opacity: 1; transition: none; }
.act-btn:active { transform: scale(.93) rotate(-.5deg); }

/* single-column activity list: full-width rows so long labels read in full */
.act-grid { grid-auto-rows: auto; }
.act-label { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* hide native number spinners (kawaii keypad via inputmode instead) */
input[type=number] { -moz-appearance: textfield; appearance: textfield; }
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* busy / working state for async buttons */
.is-busy { opacity: .65; pointer-events: none; position: relative; animation: none !important; }
.is-busy::after {
  content: ""; position: absolute; right: 12px; top: 50%; width: 15px; height: 15px; margin-top: -8px;
  border: 3px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.unlock-btn.pulse { animation: pulse 1.1s ease-in-out infinite; }

/* bigger splash for big-value earns */
.splash-emoji.big { font-size: 140px; }

/* golden flash behind the unlock celebration */
.celebrate::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(255,206,77,.55), transparent 60%);
  animation: flashOut .8s ease forwards;
}
@keyframes flashOut { 0% { opacity: 0; transform: scale(.4); } 25% { opacity: 1; } 100% { opacity: 0; transform: scale(1.6); } }

/* kawaii modal (replaces native confirm/prompt) */
.modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; background: rgba(91,74,99,.45); backdrop-filter: blur(4px); padding: 24px; animation: fadeIn .2s ease; }
.modal-card { background: var(--card); border-radius: var(--radius); padding: 26px 22px; max-width: 320px; width: 100%; text-align: center; box-shadow: var(--shadow); animation: popBig .35s cubic-bezier(.34,1.56,.64,1); }
.modal-emoji { font-size: 48px; }
.modal-card p { margin: 8px 0 0; font-size: 16px; font-weight: 700; color: var(--ink); }
#modalInputWrap { margin-top: 12px; }
#modalInput { width: 100%; border: 2px solid var(--lav-soft); border-radius: 12px; padding: 10px; font-size: 18px; font-family: inherit; text-align: center; box-sizing: border-box; }
#modalInput:focus { outline: none; border-color: var(--pink); }
.modal-btns { display: flex; gap: 10px; margin-top: 16px; }
.modal-btns button { flex: 1; }

/* lightbox: photo OR video, with safe-area padding */
.lightbox { padding: calc(20px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom)); }
.lightbox-body { max-width: 100%; max-height: 100%; display: flex; align-items: center; justify-content: center; }
.lightbox-body img, .lightbox-body video { max-width: 100%; max-height: 85vh; border-radius: 12px; box-shadow: var(--shadow); }

/* proof thumbs: tap affordance + video thumbnail with play badge */
.proof-thumb { transition: transform .15s ease; }
.proof-thumb:active { transform: scale(.96); }
.proof-video { position: relative; cursor: pointer; }
.proof-video video { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; background: var(--lav-soft); }
.proof-play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.55); pointer-events: none; }
.proof-preview video { max-width: 140px; max-height: 140px; border-radius: 14px; box-shadow: var(--shadow-sm); display: block; }

/* idle mascot breathe (single combined keyframe — don't stack two transform anims) */
.logo-emoji { animation: wiggleBreathe 4.8s ease-in-out infinite; }
@keyframes wiggleBreathe {
  0%,100% { transform: rotate(-6deg) scale(1); }
  25% { transform: rotate(4deg) scale(1.04); }
  50% { transform: rotate(6deg) scale(1.06); }
  75% { transform: rotate(-3deg) scale(1.03); }
}

/* danger: erase-everything button */
.erase-btn { width: 100%; margin-top: 10px; border: none; border-radius: 12px; padding: 9px; font-family: inherit; font-weight: 800; font-size: 13px; cursor: pointer; background: #ffe3ea; color: #c0335a; opacity: .85; }
.erase-btn:active { transform: scale(.96); }

/* ════════════ v3: fun extras ════════════ */
.topbar-btns { display: flex; gap: 6px; }
.icon-btn[hidden] { display: none; }

/* daily treat gift */
.daily-gift { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 14px; border: none; cursor: pointer; border-radius: var(--radius-sm); padding: 14px 16px; font-family: inherit; font-weight: 800; font-size: 16px; color: var(--pink-deep); background: linear-gradient(135deg, #fff0f6, #f0e9ff); box-shadow: var(--shadow-sm); }
.daily-gift .gift-box { font-size: 30px; animation: giftWiggle 1.8s ease-in-out infinite; }
.daily-gift:active { transform: scale(.97); }
.daily-gift.pop { animation: popBig .5s cubic-bezier(.34,1.56,.64,1); }
@keyframes giftWiggle { 0%,100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }

/* earned-badge shelf */
.badge-shelf { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: -4px 0 14px; }
.badge-shelf .badge { font-size: 22px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.12)); animation: pop-in .4s ease both; }

/* mascot speech bubble (anchored near the meter mascot) */
.mascot-bubble { position: absolute; top: 4px; left: 12px; max-width: 60%; background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; line-height: 1.25; padding: 8px 12px; border-radius: 14px; box-shadow: var(--shadow-sm); z-index: 6; }
.mascot-bubble::after { content: ""; position: absolute; left: 22px; bottom: -7px; border: 7px solid transparent; border-top-color: #fff; border-bottom: 0; }
.mascot-bubble.pop { animation: bubblePop .35s cubic-bezier(.34,1.56,.64,1); }
@keyframes bubblePop { 0% { opacity: 0; transform: scale(.6) translateY(6px); } 100% { opacity: 1; transform: none; } }

/* combo badge */
.combo-badge { position: fixed; top: calc(72px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 78; background: linear-gradient(135deg, var(--pink), var(--lav)); color: #fff; font-weight: 900; font-size: 15px; padding: 8px 16px; border-radius: 999px; box-shadow: var(--shadow); white-space: nowrap; }
.combo-badge .combo-x { font-size: 18px; }
.combo-badge.pop { animation: comboPop .3s cubic-bezier(.34,1.56,.64,1); }
@keyframes comboPop { 0% { transform: translateX(-50%) scale(.6); } 60% { transform: translateX(-50%) scale(1.25); } 100% { transform: translateX(-50%) scale(1); } }

/* achievement banner */
.achv { position: fixed; top: 36%; left: 50%; transform: translateX(-50%); z-index: 88; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 26px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; border: 3px solid var(--gold); }
.achv-emoji { font-size: 48px; }
.achv-text { font-size: 16px; font-weight: 800; color: var(--pink-deep); }
.achv.pop { animation: achvPop .5s cubic-bezier(.34,1.56,.64,1); }
@keyframes achvPop { 0% { opacity: 0; transform: translateX(-50%) scale(.4); } 60% { transform: translateX(-50%) scale(1.1); } 100% { opacity: 1; transform: translateX(-50%) scale(1); } }

/* love-note compose (in Daddy's controls) */
.lovenote-row { display: flex; gap: 8px; margin-top: 10px; }
.lovenote-row input { flex: 1; min-width: 0; border: 2px solid var(--lav-soft); border-radius: 12px; padding: 9px; font-size: 14px; font-family: inherit; }
.lovenote-row input:focus { outline: none; border-color: var(--pink); }
.lovenote-row .mini-btn { flex: 0 0 auto; padding: 0 16px; }

/* Daddy's turn */
.him-acts-wrap { margin-bottom: 18px; }
.him-acts-sub { margin: -6px 0 10px; font-size: 13px; color: var(--ink-soft); }

/* spicy-level vibe pill */
.vibe-tag { display: inline-block; margin: 8px auto 0; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.vibe-cool { background: var(--lav-soft); color: var(--ink); }
.vibe-mid  { background: var(--pink-soft); color: var(--pink-deep); }
.vibe-warm { background: #ffe7a8; color: #8a6a12; }
.vibe-hot  { background: #ffd0dd; color: var(--pink-deep); }
.vibe-max  { background: linear-gradient(135deg, var(--pink), var(--lav)); color: #fff; }

/* combo screen-shake (on #app, not body, so fixed elements don't jump) */
#app.shake { animation: shakeApp .4s ease; }
@keyframes shakeApp { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-3px,1px); } 40% { transform: translate(3px,-1px); } 60% { transform: translate(-2px,2px); } 80% { transform: translate(2px,-2px); } }

/* ════════════ v3.2: Daddy's pool + his-acts parity ════════════ */
/* Daddy's separate points pool (both see it) */
.his-pool { background: linear-gradient(135deg, #fff6e6, #f3ecff); border-radius: var(--radius-sm); padding: 12px 14px; margin: 0 0 14px; box-shadow: var(--shadow-sm); }
.his-pool-top { display: flex; align-items: center; gap: 10px; }
.his-pool-emoji { font-size: 26px; flex: 0 0 auto; }
.his-pool-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.his-pool-title { font-weight: 900; color: #8a6a12; font-size: 14px; }
.his-pool-sub { font-size: 12px; color: var(--ink-soft); font-weight: 600; }
.his-pool-pts { font-size: 22px; font-weight: 900; color: #b8860b; flex: 0 0 auto; }
.his-pool-bar { height: 8px; border-radius: 999px; background: #ffffffaa; margin-top: 8px; overflow: hidden; }
.his-pool-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold, #ffce4d), #ff9fc0); width: 0; transition: width .6s cubic-bezier(.34,1.56,.64,1); }
.his-pool.pop { animation: popBig .5s cubic-bezier(.34,1.56,.64,1); }

/* her read-only menu of Daddy's acts (each with an "ask 💕" button) */
.him-act-list { display: flex; flex-direction: column; gap: 8px; }
.him-act-card { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow-sm); }
.him-act-card .ha-emoji { font-size: 22px; flex: 0 0 auto; }
.him-act-card .ha-label { flex: 1; min-width: 0; font-weight: 700; font-size: 14px; color: var(--ink); }
.him-act-card .ha-pts { flex: 0 0 auto; font-weight: 900; font-size: 13px; color: #b8860b; }
.him-act-card .ha-ask { flex: 0 0 auto; border: none; border-radius: 999px; padding: 7px 13px; font-family: inherit; font-weight: 800; font-size: 13px; cursor: pointer; background: var(--pink-soft); color: var(--pink-deep); }
.him-act-card .ha-ask:active { transform: scale(.95); }

/* feed rows for Daddy's own pool — gold-tinted so it's clear they didn't move her meter */
.feed li.feed-him { background: linear-gradient(135deg, #fffaf0, #fdf6ff); }
.feed li.feed-him .feed-pts.pos { color: #b8860b; }

/* notify-bell one-time nudge pulse */
.icon-btn.nudge { animation: bellNudge 1.1s ease-in-out 6; }
@keyframes bellNudge { 0%,100% { transform: scale(1); } 30% { transform: scale(1.25) rotate(-12deg); } 60% { transform: scale(1.25) rotate(12deg); } }

/* "browse files" upload button (sits next to the photo/video picker) */
.proof-browse { border: 2px dashed var(--lav-soft); background: #fff; color: var(--ink-soft); border-radius: 12px; padding: 9px 12px; font-family: inherit; font-weight: 800; font-size: 13px; cursor: pointer; }
.proof-browse:active { transform: scale(.96); }

/* ════════════ v3.7: a few more animations (all motion-safe via the global reduce guard) ════════════ */
/* irresistible shimmer sweep across the UNLOCK THE HAMMER button */
.unlock-btn { position: relative; overflow: hidden; }
.unlock-btn::before {
  content: ""; position: absolute; top: 0; left: -60%; width: 45%; height: 100%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-18deg); animation: shineSweep 2.8s ease-in-out infinite;
}
@keyframes shineSweep { 0%,18% { left: -60%; } 60%,100% { left: 130%; } }

/* PIN dot springy pop as each digit lands */
.pin-dots .dot.on { animation: dotPop .28s cubic-bezier(.34,1.56,.64,1); }
@keyframes dotPop { 0% { transform: scale(.4); } 60% { transform: scale(1.42); } 100% { transform: scale(1.18); } }

/* login logo gentle float */
.logo-emoji { animation: logoFloat 3.4s ease-in-out infinite; }
@keyframes logoFloat { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(3deg); } }

/* the 🥺 boop button does a shy idle wiggle to invite a boop */
#missBtn { animation: boopWiggle 6s ease-in-out infinite; }
@keyframes boopWiggle { 0%,86%,100% { transform: rotate(0) scale(1); } 90% { transform: rotate(-11deg) scale(1.14); } 94% { transform: rotate(11deg) scale(1.14); } }

/* daily-gift box gives an occasional excited shimmy on top of its wiggle */
.daily-gift .gift-box { will-change: transform; }
.daily-gift:active .gift-box { animation: giftPop .4s cubic-bezier(.34,1.56,.64,1); }
@keyframes giftPop { 0% { transform: scale(1); } 50% { transform: scale(1.4) rotate(8deg); } 100% { transform: scale(1); } }

/* ════════════ v3.8: rank pill + shooting stars + meter ripple ════════════ */
/* topbar rank pill */
.me-rank { display: inline-block; margin-left: 7px; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; background: var(--lav-soft); color: var(--pink-deep); vertical-align: middle; }
.me-rank:empty { display: none; }

/* ambient shooting stars drifting across the background */
.shooting-stars { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.shooting-stars .shoot { position: absolute; left: -10vw; font-size: 16px; opacity: 0; filter: drop-shadow(0 0 4px rgba(255,206,77,.8)); animation-name: shootAcross; animation-timing-function: ease-in; animation-fill-mode: forwards; }
@keyframes shootAcross { 0% { transform: translate(0,0) rotate(8deg); opacity: 0; } 12% { opacity: .95; } 100% { transform: translate(122vw, 18vh) rotate(20deg); opacity: 0; } }

/* meter ripple ring on each earn */
.meter-ring-wrap.rippling::after {
  content: ""; position: absolute; inset: 6px; border-radius: 50%; pointer-events: none;
  border: 2px solid var(--pink); animation: meterRipple .7s ease-out;
}
@keyframes meterRipple { 0% { transform: scale(.84); opacity: .7; } 100% { transform: scale(1.34); opacity: 0; } }

/* roaming buddy that walks across + nudges her */
.roamer { position: fixed; left: 0; z-index: 72; display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.roamer.go { animation: roamWalk 8s linear forwards; }
@keyframes roamWalk { 0% { transform: translateX(-22vw); } 100% { transform: translateX(118vw); } }
.roamer-face { font-size: 40px; animation: roamWaddle .5s ease-in-out infinite; filter: drop-shadow(0 3px 4px rgba(0,0,0,.18)); }
@keyframes roamWaddle { 0%,100% { transform: rotate(-9deg) translateY(0); } 50% { transform: rotate(9deg) translateY(-5px); } }
.roamer-bubble { position: relative; background: #fff; color: var(--ink); font-size: 12px; font-weight: 800; line-height: 1.2; padding: 7px 11px; border-radius: 14px; box-shadow: var(--shadow-sm); max-width: 180px; text-align: center; margin-bottom: 5px; }
.roamer-bubble::after { content: ""; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); border: 6px solid transparent; border-top-color: #fff; border-bottom: 0; }
.roamer-bubble:empty { display: none; }

/* cash-in: Daddy spends 👑 to order one of her acts */
.cashin-btn { width: 100%; margin: -4px 0 14px; border: none; cursor: pointer; border-radius: var(--radius-sm); padding: 12px 14px; font-family: inherit; font-weight: 800; font-size: 14px; color: #8a6a12; background: linear-gradient(135deg, #fff2cc, #f3ecff); box-shadow: var(--shadow-sm); }
.cashin-btn:active { transform: scale(.97); }
.cashin-sheet { position: fixed; inset: 0; z-index: 90; background: rgba(60,40,70,.45); display: flex; align-items: flex-end; justify-content: center; }
.cashin-card { background: var(--card); width: 100%; max-width: 520px; border-radius: var(--radius) var(--radius) 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); max-height: 82vh; overflow-y: auto; box-shadow: var(--shadow); animation: sheetUp .3s cubic-bezier(.34,1.56,.64,1); }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.cashin-head { font-size: 17px; font-weight: 900; color: var(--pink-deep); text-align: center; }
.cashin-bal { text-align: center; font-size: 13px; font-weight: 800; color: #b8860b; margin: 4px 0 10px; }
.cashin-weird { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 13px; font-weight: 800; color: var(--pink-deep); margin: 0 0 12px; cursor: pointer; }
.cashin-weird input { width: 18px; height: 18px; accent-color: var(--pink-deep); }
.cashin-weird small { color: var(--ink-soft); font-weight: 700; }
.cashin-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.cashin-item { display: flex; align-items: center; gap: 10px; background: #faf7ff; border-radius: 14px; padding: 9px 11px; }
.cashin-item.cant { opacity: .5; }
.cashin-item .ci-emoji { font-size: 22px; flex: 0 0 auto; }
.cashin-item .ci-label { flex: 1; min-width: 0; font-weight: 700; font-size: 14px; color: var(--ink); }
.cashin-item .ci-buy { flex: 0 0 auto; border: none; border-radius: 999px; padding: 7px 13px; font-family: inherit; font-weight: 800; font-size: 13px; cursor: pointer; background: linear-gradient(135deg,#ffd86b,#ff9fc0); color: #6a4a00; }
.cashin-item .ci-buy:disabled { background: #e6dbff; color: var(--ink-soft); cursor: default; }
.cashin-item .ci-buy:active:not(:disabled) { transform: scale(.93); }
.cashin-close { width: 100%; margin-top: 12px; border: none; border-radius: 12px; padding: 10px; font-family: inherit; font-weight: 800; cursor: pointer; background: var(--lav-soft); color: var(--ink); }

/* Daddy's mood meter */
.mood-card { background: linear-gradient(135deg, #fff0f6, #f0e9ff); border-radius: var(--radius-sm); padding: 12px 14px; margin: -4px 0 14px; box-shadow: var(--shadow-sm); text-align: center; transition: background .4s ease; }
.mood-card[data-lvl="2"] { background: linear-gradient(135deg, #ffe0e8, #ffe7d6); }
.mood-card[data-lvl="3"] { background: linear-gradient(135deg, #ffd0dd, #ffc6b4); animation: moodPulse 1.5s ease-in-out infinite; }
@keyframes moodPulse { 0%,100% { box-shadow: var(--shadow-sm); } 50% { box-shadow: 0 8px 28px rgba(255,90,60,.55); } }
.mood-title { font-size: 12px; font-weight: 800; color: var(--ink-soft); }
.mood-display { font-size: 20px; font-weight: 900; color: var(--pink-deep); margin: 2px 0; }
.mood-pills { display: flex; gap: 8px; justify-content: center; margin-top: 6px; }
.mood-pill { border: 2px solid var(--lav-soft); background: #fff; border-radius: 999px; width: 46px; height: 40px; font-size: 21px; cursor: pointer; transition: transform .12s ease; }
.mood-pill.on { border-color: var(--pink-deep); background: var(--pink-soft); transform: scale(1.1); }
.mood-pill:active { transform: scale(.9); }
.mood-hint { font-size: 12px; font-weight: 800; color: var(--pink-deep); margin-top: 7px; }

/* month-in-review recap */
.recap-head { font-size: 18px; font-weight: 900; color: var(--pink-deep); text-align: center; margin-bottom: 12px; }
.recap-sec { background: #faf7ff; border-radius: 14px; padding: 11px 13px; margin-bottom: 10px; }
.recap-st { font-size: 13px; font-weight: 900; color: #8a6a12; margin-bottom: 4px; }
.recap-row { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.45; }
.recap-row b { color: var(--pink-deep); }
.recap-fav { font-size: 13px; font-weight: 700; color: var(--ink-soft); margin-top: 2px; }

/* E2EE media: badge, lock banner, unlock modal */
.e2ee-badge { font-size: 11px; font-weight: 800; color: #6b4ea0; background: #efe7ff; border-radius: 999px; padding: 2px 8px; vertical-align: middle; white-space: nowrap; }
.media-lock { background: linear-gradient(180deg, #fdf2ff, #f3e9ff); border: 1.5px dashed #c9a8e8; border-radius: 16px; padding: 14px; text-align: center; margin-bottom: 12px; }
.media-lock-text { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.5; margin-bottom: 10px; }
.media-lock-btn { font-size: 15px; font-weight: 900; color: #fff; background: linear-gradient(135deg, #b07be0, #e57bbf); border: none; border-radius: 999px; padding: 10px 20px; cursor: pointer; box-shadow: 0 4px 14px rgba(176,123,224,.4); }
.media-lock-btn:active { transform: scale(.96); }
.proof-locked { display: flex; align-items: center; justify-content: center; font-size: 28px; background: repeating-linear-gradient(45deg, #f1e8fb, #f1e8fb 10px, #e9ddf7 10px, #e9ddf7 20px); color: #9b7cc4; }
.proof-broken { display: flex; align-items: center; justify-content: center; font-size: 24px; background: #faf0f0; }
.mk-card { max-width: 360px; }
.mk-sub { font-size: 13px; font-weight: 600; color: var(--ink-soft); margin: -4px 0 10px; line-height: 1.45; }
.mk-input { width: 100%; box-sizing: border-box; font-size: 16px; padding: 11px 13px; border: 1.5px solid #e0cdf0; border-radius: 12px; margin-bottom: 9px; background: #fdfaff; }
.mk-input:focus { outline: none; border-color: #b07be0; }
.mk-warn { font-size: 11.5px; font-weight: 700; color: #a06a2c; background: #fff6e8; border-radius: 10px; padding: 8px 10px; margin: 2px 0 12px; line-height: 1.4; }
.mk-warn em { font-style: normal; text-decoration: underline; }

/* spicy checkbox + media category badge + undecodable-media fallback */
.proof-spicy { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: #c2487f; background: #fff0f6; border: 1.5px solid #f3c6dd; border-radius: 999px; padding: 6px 12px; cursor: pointer; user-select: none; }
.proof-spicy input { width: 16px; height: 16px; accent-color: #e0529c; }
.proof-thumb-wrap { position: relative; cursor: pointer; }
.proof-cat { position: absolute; top: 6px; left: 6px; font-size: 13px; line-height: 1; padding: 3px 6px; border-radius: 999px; background: rgba(0,0,0,.42); pointer-events: none; }
.proof-cat.cat-spicy { background: rgba(224,82,156,.85); }
.proof-fallback { display: flex; align-items: center; justify-content: center; text-align: center; font-size: 13px; font-weight: 800; color: #8a6fc0; background: repeating-linear-gradient(45deg, #f3eefc, #f3eefc 10px, #ece2fa 10px, #ece2fa 20px); }
