﻿:root {
  --bg: #f0f2f8;
  --surface: #ffffff;
  --surface-2: #f5f6fb;
  --text: #1a1d29;
  --muted: #8b90a0;
  --line: #e6e8f0;
  --primary: #ff5a3c;
  --primary-soft: #fff0ec;
  --primary-dark: #e03e1f;
  --accent: #6c5ce7;
  --accent-2: #00b894;
  --rarity-common: #4caf50;
  --rarity-rare: #2196f3;
  --rarity-hidden: #9c27b0;
  --shadow-sm: 0 2px 8px rgba(20,30,50,0.05);
  --shadow-md: 0 8px 24px rgba(20,30,50,0.08);
  --shadow-lg: 0 16px 40px rgba(20,30,50,0.14);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(circle at 15% 5%, rgba(255,90,60,0.06), transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(108,92,231,0.06), transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(0,184,148,0.05), transparent 45%);
  background-attachment: fixed;
  color: var(--text);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; padding: 0; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.02em; }
::selection { background: rgba(255,90,60,0.2); }

/* === Topbar === */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 20px;
  background: rgba(255,255,255,0.82); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, #ff5a3c, #ff8a3c);
  color: #fff; display: grid; place-items: center;
  font-size: 19px; font-weight: 800;
  box-shadow: 0 4px 16px rgba(255,90,60,0.35);
}
.brand-text h1 { font-size: 18px; font-weight: 800; }
.brand-text p { margin: 2px 0 0; font-size: 10px; color: var(--muted); font-weight: 600; }
.top-meta { display: flex; align-items: center; gap: 6px; }
.pet-chip, .mode-badge {
  font-size: 11px; font-weight: 700; padding: 6px 11px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--muted);
  white-space: nowrap;
}
.mode-badge { color: var(--rarity-common); background: rgba(76,175,80,0.08); border-color: rgba(76,175,80,0.2); }

/* === Page === */
.page { max-width: 680px; margin: 0 auto; padding: 16px 16px 100px; display: flex; flex-direction: column; gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--shadow-sm);
}
.card.today-card { padding: 0; border: none; background: none; box-shadow: none; gap: 0; }
.card.today-card > .kicker { display: none; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.section-head h3 { font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.section-head span { font-size: 12px; color: var(--muted); font-weight: 600; }
.kicker { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.muted { color: var(--muted); font-size: 13px; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; font-size: 14px; }
.hidden { display: none !important; }
.food-photo { width: 100%; height: 100%; object-fit: cover; display: block; }

/* === Buttons === */
.primary {
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #ff5a3c, #ff7a3c);
  color: #fff; padding: 12px 18px; font-weight: 700; font-size: 14px;
  box-shadow: 0 4px 14px rgba(255,90,60,0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}
.primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,90,60,0.35); }
.primary:active { transform: translateY(0); }
.primary.small { padding: 8px 13px; font-size: 12px; }
.ghost { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); padding: 10px 14px; font-weight: 600; font-size: 13px; }
.danger { border: 1px solid rgba(224,62,31,0.2); background: #fef5f3; color: var(--primary-dark); border-radius: var(--radius-sm); padding: 10px 14px; font-weight: 600; font-size: 13px; }

/* === Collection Progress Bar === */
.collect-bar { display: flex; flex-direction: column; gap: 10px; }
.collect-bar-top { display: flex; justify-content: space-between; align-items: center; }
.collect-bar-label { font-size: 13px; font-weight: 700; color: var(--text); }
.collect-bar-num { font-size: 15px; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; }
.collect-bar-num small { color: var(--muted); font-weight: 600; font-size: 12px; }
.collect-track { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--line); position: relative; }
.collect-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #ff5a3c, #ff8a3c, #ffd23c); transition: width 0.5s ease; position: relative; }
.collect-fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent); background-size: 200% 100%; animation: shimmer 2.5s infinite; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* === Today Card === */
.today-card-main, #today-card {
  display: block; width: 100%; border: none;
  border-radius: var(--radius); overflow: hidden; padding: 0;
  text-align: left; position: relative; min-height: 180px;
  background: var(--surface-2);
  box-shadow: var(--shadow-md);
}
.today-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.today-content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 180px; padding: 12px 16px;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, transparent 22%, transparent 40%, rgba(0,0,0,0.8) 100%);
  color: #fff;
}
.today-top { display: flex; justify-content: space-between; align-items: center; }
.today-badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 14px; border-radius: 999px;
  background: linear-gradient(135deg, #ff5a3c, #ff8a3c); color: #fff; font-size: 11px; font-weight: 800;
  letter-spacing: 0.03em; box-shadow: 0 4px 12px rgba(255,90,60,0.4);
}
.today-no { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.8); font-variant-numeric: tabular-nums; }
.today-bottom h2 { font-size: 24px; font-weight: 800; line-height: 1.1; margin-bottom: 4px; text-shadow: 0 2px 16px rgba(0,0,0,0.4); }
.today-bottom p { margin: 0 0 6px; font-size: 13px; color: rgba(255,255,255,0.88); line-height: 1.4; }
.today-meta { display: flex; gap: 6px; align-items: center; font-size: 11px; color: rgba(255,255,255,0.78); font-weight: 600; flex-wrap: wrap; }
.today-tap { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 11px; color: rgba(255,255,255,0.5); font-weight: 600; animation: pulse-tap 2s infinite; }
@keyframes pulse-tap { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }

/* === Search & Chips === */
.search {
  width: 100%; height: 44px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); background: var(--surface-2);
  padding: 0 16px; outline: none; font-size: 14px; transition: all 0.15s;
}
.search:focus { border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 3px rgba(255,90,60,0.1); }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button {
  flex: 0 0 auto; padding: 8px 16px; font-size: 13px; font-weight: 700;
  color: var(--muted); border-radius: 999px; background: var(--surface-2);
  border: 1.5px solid var(--line); transition: all 0.15s; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
}
.chips button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot, var(--muted)); flex-shrink: 0; }
.chips button.active::before { background: #fff; }
.chips button:hover { border-color: var(--primary); color: var(--primary); }
.chips button.active { color: #fff; background: linear-gradient(135deg, #ff5a3c, #ff7a3c); border-color: transparent; box-shadow: 0 3px 10px rgba(255,90,60,0.3); }

/* === Food Grid === */
.food-feed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.food-card {
  border: none; border-radius: var(--radius-sm);
  background: var(--surface); padding: 0; text-align: left;
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  position: relative; box-shadow: var(--shadow-sm);
  transition: transform 0.2s cubic-bezier(.2,1,.3,1), box-shadow 0.2s;
}
.food-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.food-card:hover .card-img img { transform: scale(1.08); }
.food-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; z-index: 4;
  background: linear-gradient(90deg, #4caf50, #66bb6a);
}
.food-card.rarity-rare::before { background: linear-gradient(90deg, #2196f3, #42a5f5); }
.food-card.rarity-hidden::before { background: linear-gradient(90deg, #9c27b0, #e040fb, #9c27b0); }
.food-card.rarity-hidden::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.15) 42%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0.15) 58%, transparent 70%);
  background-size: 200% 100%; animation: holo 4s ease-in-out infinite; border-radius: inherit;
}
@keyframes holo { 0%,100% { background-position: 200% 0; } 50% { background-position: -200% 0; } }
.card-img { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--surface-2); }
.card-img .food-photo { width: 100%; height: 100%; object-fit: cover; display: block; position: relative; z-index: 1; transition: transform 0.35s ease; }
.card-emoji-fallback { display: none; }
.card-no {
  position: absolute; top: 8px; left: 8px; font-size: 10px; font-weight: 800;
  color: #fff; background: rgba(0,0,0,0.55); padding: 3px 9px; border-radius: 999px;
  z-index: 2; font-variant-numeric: tabular-nums; backdrop-filter: blur(6px);
}
.card-rarity-tag {
  position: absolute; top: 8px; right: 8px; font-size: 10px; font-weight: 800;
  color: #fff; padding: 3px 9px; border-radius: 999px; z-index: 2; backdrop-filter: blur(6px);
  background: rgba(76,175,80,0.88);
}
.food-card.rarity-rare .card-rarity-tag { background: rgba(33,150,243,0.88); }
.food-card.rarity-hidden .card-rarity-tag { background: rgba(156,39,176,0.88); }
.card-eaten-badge {
  position: absolute; bottom: 8px; right: 8px; font-size: 10px; font-weight: 800;
  color: #fff; background: rgba(255,90,60,0.92); padding: 3px 9px; border-radius: 999px; z-index: 2;
}
.card-wish-badge {
  position: absolute; bottom: 8px; left: 8px; font-size: 10px; font-weight: 800;
  color: #e63f6f; background: rgba(255,255,255,0.94); padding: 3px 9px; border-radius: 999px; z-index: 2;
  box-shadow: 0 2px 8px rgba(230,63,111,0.18);
}
.card-content { padding: 11px 13px 13px; }
.card-title { font-size: 15px; font-weight: 800; line-height: 1.2; margin-bottom: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-sub { font-size: 11px; color: var(--muted); font-weight: 600; display: flex; gap: 4px; align-items: center; }

/* Old food-emoji (submissions) */
.submission-dot { flex: 0 0 42px; width: 42px; height: 42px; border-radius: var(--radius-xs); display: grid; place-items: center; font-size: 18px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #6c5ce7, #a29bfe); border: none; flex-shrink: 0; }

/* === Region Cards === */
.region-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.region-card {
  border: none; border-radius: var(--radius-sm); background: var(--surface);
  padding: 14px; text-align: left; box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s; position: relative; overflow: hidden;
}
.region-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.region-dot { position: absolute; top: 16px; right: 16px; width: 12px; height: 12px; border-radius: 50%; background: var(--region-color, var(--primary)); z-index: 2; box-shadow: 0 0 0 4px color-mix(in srgb, var(--region-color, var(--primary)) 15%, transparent); }
.region-card-inner { position: relative; z-index: 1; }
.region-card b { display: block; font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.region-card .region-count { color: var(--muted); font-size: 12px; font-weight: 600; }
.region-card .region-pct { font-size: 13px; font-weight: 800; color: var(--primary); margin-top: 4px; }
.progress-track { height: 6px; border-radius: 999px; background: #e8eaf2; overflow: hidden; margin-top: 8px; }
.progress-track i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #ff5a3c, #ff8a3c); }

/* === Me/Stats === */
.me-header { display: flex; align-items: center; gap: 14px; }
.me-avatar { width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, #6c5ce7, #a29bfe); display: grid; place-items: center; font-size: 20px; font-weight: 800; color: #fff; box-shadow: 0 4px 14px rgba(108,92,231,0.3); flex-shrink: 0; }
.me-header-info h3 { font-size: 18px; font-weight: 800; }
.me-header-info p { margin: 2px 0 0; font-size: 12px; color: var(--muted); font-weight: 600; }
.me-level-bar { margin-top: 4px; }
.me-level-track { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--line); }
.me-level-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #6c5ce7, #a29bfe); transition: width 0.5s; }
.me-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat-cell { padding: 14px 6px; text-align: center; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); position: relative; overflow: hidden; }
.stat-cell b { display: block; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat-cell span { font-size: 11px; color: var(--muted); font-weight: 600; }
.stat-cell:nth-child(1) b { color: #4caf50; }
.stat-cell:nth-child(2) b { color: #ff5a3c; }
.stat-cell:nth-child(3) b { color: #2196f3; }
.stat-cell:nth-child(4) b { color: #9c27b0; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge { border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 12px; font-weight: 700; background: var(--surface); display: inline-flex; align-items: center; gap: 5px; }
.badge.unlocked { border-color: transparent; background: linear-gradient(135deg, #fff8e1, #ffe8d6); color: #e65100; box-shadow: 0 2px 8px rgba(255,152,0,0.15); }
.badge.locked { opacity: 0.4; }
.badge.unlocked::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ff9800; margin-right: 2px; }
.badge.locked::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); margin-right: 2px; }
.submissions { display: flex; flex-direction: column; gap: 8px; }
.submission { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; display: flex; align-items: center; gap: 12px; background: var(--surface); }
.submission b { display: block; font-size: 14px; font-weight: 700; }
.submission span { color: var(--muted); font-size: 12px; }

.chat-composer { display: flex; gap: 8px; }
.chat-composer input { flex: 1; height: 42px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 0 14px; outline: none; background: var(--surface); font-size: 14px; }
.chat-composer input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,90,60,0.1); }
.field-row { display: grid; gap: 10px; }
.field-row.two { grid-template-columns: 1fr 1fr; }
.field-row label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 700; color: var(--muted); }
.field-row input, .field-row select { border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; background: var(--surface); outline: none; font-size: 14px; }


/* === Detail Modal === */
.modal { position: fixed; inset: 0; background: rgba(10,15,30,0.55); backdrop-filter: blur(6px); display: grid; place-items: center; z-index: 80; padding: 16px; animation: fadeIn 0.2s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-panel { width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; background: var(--surface); border-radius: var(--radius); display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-lg); padding: 20px; animation: slideUp 0.25s cubic-bezier(.2,1,.3,1); }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.detail-panel { padding: 0; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.close { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); font-size: 18px; display: grid; place-items: center; color: var(--muted); transition: all 0.15s; }
.close:hover { background: var(--primary-soft); color: var(--primary); border-color: var(--primary); transform: rotate(90deg); }
.detail-body { padding: 0 20px 20px; display: flex; flex-direction: column; gap: 14px; }
.dex-hero { position: relative; margin: 0 -20px; overflow: hidden; }
.dex-hero-img { width: 100%; aspect-ratio: 16 / 10; background-size: cover; background-position: center; background-color: var(--surface-2); }
.dex-hero-img .food-photo { width: 100%; height: 100%; object-fit: cover; }
.dex-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 18px 20px; background: linear-gradient(0deg, rgba(0,0,0,0.88), transparent); color: #fff; }
.dex-no { font-size: 12px; font-weight: 800; color: rgba(255,255,255,0.7); font-variant-numeric: tabular-nums; }
.dex-overlay h2 { font-size: 26px; font-weight: 800; margin: 4px 0 8px; }
.dex-tags { display: flex; gap: 6px; }
.dex-tag { font-size: 11px; font-weight: 700; padding: 4px 11px; border-radius: 999px; background: rgba(255,255,255,0.2); backdrop-filter: blur(8px); }
.dex-tag.rarity-common { background: rgba(76,175,80,0.7); }
.dex-tag.rarity-rare { background: rgba(33,150,243,0.7); }
.dex-tag.rarity-hidden { background: rgba(156,39,176,0.7); }
.dex-desc { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.dex-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dex-stat { text-align: center; padding: 12px 8px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); }
.dex-stat b { display: block; font-size: 16px; font-weight: 800; margin-bottom: 2px; }
.dex-stat span { font-size: 11px; color: var(--muted); font-weight: 600; }
.dex-meters { display: flex; flex-direction: column; gap: 10px; }
.dex-meter { display: flex; align-items: center; gap: 12px; }
.dex-meter-label { font-size: 13px; font-weight: 700; color: var(--muted); width: 36px; flex-shrink: 0; }
.dex-meter-bar { display: flex; gap: 4px; }
.dex-meter-bar i { width: 30px; height: 7px; border-radius: 999px; background: #e0e2ea; transition: background 0.2s; }
.dex-meter-bar i.on { background: linear-gradient(90deg, #ff5a3c, #ff8a3c); }
.dex-meter-bar.sweet i.on { background: linear-gradient(90deg, #ff9800, #ffc107); }
.dex-actions { display: flex; gap: 10px; }
.dex-actions .primary { flex: 1; height: 48px; font-size: 15px; }
.dex-section { display: flex; flex-direction: column; gap: 8px; }
.post-list, .comment-list { display: flex; flex-direction: column; gap: 8px; }
.post-item, .comment-item { border: 1px solid var(--line); border-radius: var(--radius-xs); padding: 10px 12px; font-size: 14px; background: var(--surface-2); }
.post-item b, .comment-item b { color: var(--primary); font-size: 12px; margin-right: 6px; font-weight: 700; }
.post-item span, .comment-item span { color: var(--muted); font-size: 12px; }
.video-tag { display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; background: rgba(33,150,243,0.1); color: #2196f3; margin-right: 4px; vertical-align: middle; }

/* === Upload Modal === */
.upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modal label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 700; color: var(--muted); }
.modal input, .modal select, .modal textarea { border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; background: var(--surface); outline: none; font-size: 14px; }
.modal input:focus, .modal select:focus, .modal textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,90,60,0.1); }

/* === Bottom Nav === */
.bottom-nav {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 12px; width: calc(100% - 32px); max-width: 400px;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(20px);
  border: 1px solid var(--line); border-radius: 999px;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px; z-index: 40; box-shadow: 0 8px 28px rgba(20,30,50,0.1);
}
.nav-tab {
  height: 50px; color: var(--muted); font-size: 11px; font-weight: 700;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; border-radius: 999px; transition: all 0.2s;
}
.nav-tab span { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; transition: all 0.2s; }
.nav-tab .nav-ic { width: 22px; height: 22px; border-radius: 7px; display: inline-block; background: var(--surface-2); border: 1.5px solid var(--line); transition: all 0.2s; }
.nav-tab.active { color: var(--primary); background: var(--primary-soft); }
.nav-tab.active .nav-ic { background: linear-gradient(135deg, #ff5a3c, #ff7a3c); border-color: transparent; box-shadow: 0 3px 8px rgba(255,90,60,0.3); }
.nav-tab[data-tab="regions"] .nav-ic { border-radius: 50%; }
.nav-tab[data-tab="me"] .nav-ic { border-radius: 50%; }
.nav-tab[data-tab="pet"] .nav-ic { border-radius: 4px; transform: rotate(45deg); }
.nav-tab[data-tab="pet"].active .nav-ic { transform: rotate(45deg); }

/* === Toast === */
.toast {
  position: fixed; left: 50%; bottom: 76px; transform: translateX(-50%);
  background: rgba(26,29,41,0.95); color: #fff; padding: 12px 20px;
  border-radius: 999px; font-size: 13px; font-weight: 600; z-index: 90;
  max-width: min(90vw, 420px); box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s cubic-bezier(.2,1,.3,1);
}
@keyframes toastIn { from { transform: translateX(-50%) translateY(10px); opacity: 0; } to { transform: translateX(-50%) translateY(0); opacity: 1; } }
.toast.hidden { display: none; }

/* === Blind Box === */
.blindbox-area { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.blind-card {
  aspect-ratio: 3 / 4; border-radius: var(--radius-sm); border: none; padding: 0;
  position: relative; overflow: hidden; cursor: pointer; box-shadow: var(--shadow-sm);
  transition: transform 0.25s cubic-bezier(.2,1,.3,1), box-shadow 0.25s;
}
.blind-card:not(.disabled):hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 12px 28px rgba(255,90,60,0.25); }
.blind-card:not(.disabled):active { transform: translateY(-2px) scale(0.98); }
.blind-card-back {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #ff5a3c 0%, #ff8a3c 60%, #ffb04c 100%);
  display: grid; place-items: center; overflow: hidden;
}
.blind-card-back::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, transparent, transparent 10px, rgba(255,255,255,0.06) 10px, rgba(255,255,255,0.06) 20px);
}
.blind-card-back::after {
  content: ""; width: 38%; aspect-ratio: 1;
  border: 2.5px solid rgba(255,255,255,0.5); border-radius: 8px;
  transform: rotate(45deg); position: relative; z-index: 0;
}
.blind-card-back span {
  position: relative; z-index: 1; font-size: 24px; font-weight: 900;
  color: rgba(255,255,255,0.8); text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.blind-card.flipped { box-shadow: 0 6px 20px rgba(255,90,60,0.3); }
.blind-card.flipped.new {
  box-shadow: 0 0 0 3px rgba(255,215,0,0.6), 0 6px 24px rgba(255,180,0,0.4);
  animation: newCardGlow 1.5s ease-in-out;
}
@keyframes newCardGlow {
  0% { box-shadow: 0 0 0 0 rgba(255,215,0,0.8), 0 6px 24px rgba(255,180,0,0.6); }
  100% { box-shadow: 0 0 0 3px rgba(255,215,0,0.4), 0 6px 24px rgba(255,180,0,0.3); }
}
.blind-card-img { position: absolute; inset: 0; overflow: hidden; }
.blind-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blind-card-no {
  position: absolute; top: 6px; left: 6px; font-size: 9px; font-weight: 800;
  color: #fff; background: rgba(0,0,0,0.55); padding: 2px 7px; border-radius: 999px;
  z-index: 2; backdrop-filter: blur(4px);
}
.blind-card-body {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 8px 10px;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 20%, transparent); color: #fff; z-index: 2;
}
.blind-card-body b { display: block; font-size: 13px; font-weight: 800; line-height: 1.2; }
.blind-card-sub { font-size: 10px; color: rgba(255,255,255,0.75); font-weight: 600; }
.blind-card.disabled { opacity: 0.25; cursor: default; transform: none; }
.blind-card.disabled:hover { transform: none; box-shadow: var(--shadow-sm); }

/* === China Map === */
.china-map-wrap { width: 100%; border-radius: var(--radius-sm); overflow: hidden; }
.china-map-wrap svg { width: 100%; height: auto; display: block; }
.map-path {
  fill: #dde0ea; stroke: #fff; stroke-width: 1.2;
  transition: fill 0.3s ease; cursor: pointer;
}
.map-path:hover { fill: #c8ccd9; }
.map-path.seen { fill: #ffd4a8; }
.map-path.seen:hover { fill: #ffc080; }
.map-path.eaten { fill: #ff5a3c; }
.map-path.eaten:hover { fill: #e03e1f; }
.map-path.complete { fill: #ffc107; filter: drop-shadow(0 0 6px rgba(255,193,7,0.5)); }
.map-path.complete:hover { fill: #ffb300; }
.map-num { font-size: 8px; fill: #8b90a0; text-anchor: middle; font-weight: 600; pointer-events: none; user-select: none; }
.map-num.eaten { fill: #fff; font-weight: 800; }
.map-num.complete { fill: #fff; font-weight: 800; }
.map-label {
  font-size: 10px; font-weight: 700; fill: #98a0b0;
  pointer-events: none; text-anchor: middle; dominant-baseline: middle; user-select: none;
}
.map-label.seen { fill: #b87333; }
.map-label.eaten { fill: #fff; font-weight: 800; }
.map-legend { display: flex; gap: 16px; justify-content: center; padding-top: 4px; }
.legend-item { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); font-weight: 600; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.legend-dot.dot-0 { background: #dde0ea; }
.legend-dot.dot-1 { background: #ffd4a8; }
.legend-dot.dot-2 { background: #ff5a3c; }

/* === Responsive === */
@media (max-width: 560px) {
  .page { padding: 12px 12px 90px; }
  .today-content { min-height: 170px; padding: 12px; }
  .today-bottom h2 { font-size: 21px; }
  .food-feed { gap: 10px; }
  .me-stats { grid-template-columns: repeat(2, 1fr); }
  .pet-stage-body { width: 220px; height: 260px; }
  .bottom-nav { bottom: 8px; }
}

/* === Checkin (Detail Modal) === */
.dex-checkin { display: flex; flex-direction: column; gap: 10px; }
.checkin-done { display: flex; align-items: center; gap: 12px; }
.checkin-photo { width: 80px; height: 80px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; border: 2px solid var(--primary); box-shadow: 0 4px 12px rgba(255,90,60,0.2); }
.checkin-meta { display: flex; flex-direction: column; gap: 4px; }
.checkin-date { font-size: 14px; font-weight: 800; color: var(--text); }
.checkin-note { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.4; }
.checkin-upload { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.checkin-preview { max-width: 200px; max-height: 200px; border-radius: var(--radius-sm); object-fit: cover; border: 2px solid var(--line); }
.checkin-note-input { width: 100%; height: 40px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 0 14px; outline: none; background: var(--surface); font-size: 14px; }
.checkin-note-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,90,60,0.1); }
.checkin-select-btn { width: 100%; min-height: 120px; border: 2px dashed var(--line); border-radius: var(--radius-sm); background: var(--surface-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--muted); transition: all 0.15s; }
.checkin-select-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.checkin-select-btn span { font-size: 14px; }

/* === Map Popup === */
.map-popup { position: relative; margin-top: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; box-shadow: var(--shadow-sm); z-index: 10; display: flex; flex-direction: column; gap: 12px; animation: slideUp 0.25s cubic-bezier(.2,1,.3,1); }
.map-popup.hidden { display: none; }
.map-popup-head { display: flex; justify-content: space-between; align-items: center; }
.map-popup-head b { font-size: 18px; font-weight: 800; }
.map-popup-head button { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); font-size: 16px; display: grid; place-items: center; color: var(--muted); transition: all 0.15s; }
.map-popup-head button:hover { background: var(--primary-soft); color: var(--primary); }
.map-popup-progress { display: flex; flex-direction: column; gap: 6px; }
.map-popup-progress span { font-size: 13px; font-weight: 600; color: var(--muted); }
.map-popup-stamp { align-self: center; padding: 8px 20px; border-radius: 999px; background: linear-gradient(135deg, #ffd700, #ffb700); color: #fff; font-size: 14px; font-weight: 900; box-shadow: 0 4px 14px rgba(255,183,0,0.4); letter-spacing: 0.05em; }
.map-popup-foods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.popup-food-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; border-radius: var(--radius-xs); background: var(--surface-2); border: 1.5px solid var(--line); transition: all 0.15s; }
.popup-food-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.popup-food-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.popup-food-card span { font-size: 11px; font-weight: 600; color: var(--muted); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.popup-food-card.eaten { border-color: var(--primary); background: var(--primary-soft); }
.popup-food-card.eaten span { color: var(--primary); font-weight: 700; }
.popup-food-card.seen { border-color: rgba(33,150,243,0.4); background: rgba(33,150,243,0.05); }
.popup-food-card.unseen { opacity: 0.45; filter: grayscale(0.6); }

/* === My Tab Album === */
.me-toggle-bar { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; }
.me-toggle-btn { flex: 1; padding: 8px 16px; font-size: 13px; font-weight: 700; color: var(--muted); border-radius: 999px; transition: all 0.2s; }
.me-toggle-btn.active { color: #fff; background: linear-gradient(135deg, #ff5a3c, #ff7a3c); box-shadow: 0 3px 10px rgba(255,90,60,0.3); }
.me-region-chips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0; scrollbar-width: none; }
.me-region-chips::-webkit-scrollbar { display: none; }
.me-region-chips button { flex: 0 0 auto; padding: 8px 16px; font-size: 13px; font-weight: 700; color: var(--muted); border-radius: 999px; background: var(--surface-2); border: 1.5px solid var(--line); transition: all 0.15s; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.me-region-chips button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot, var(--muted)); flex-shrink: 0; }
.me-region-chips button.active::before { background: #fff; }
.me-region-chips button.active { color: #fff; background: linear-gradient(135deg, #ff5a3c, #ff7a3c); border-color: transparent; box-shadow: 0 3px 10px rgba(255,90,60,0.3); }
.me-album { display: flex; flex-direction: column; gap: 12px; }
.region-stamp { align-self: center; padding: 8px 24px; border-radius: 999px; background: linear-gradient(135deg, #ffd700, #ffb700); color: #fff; font-size: 15px; font-weight: 900; box-shadow: 0 4px 14px rgba(255,183,0,0.4); }
.region-progress-mini { display: flex; align-items: center; gap: 10px; }
.region-progress-mini span { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.region-progress-mini .progress-track { flex: 1; }
.me-timeline { display: flex; flex-direction: column; gap: 10px; }
.timeline-item { display: flex; align-items: center; gap: 12px; padding: 10px; border: none; border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform 0.15s, box-shadow 0.15s; text-align: left; }
.timeline-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.timeline-photo { width: 64px; height: 64px; border-radius: var(--radius-xs); overflow: hidden; flex-shrink: 0; background: var(--surface-2); }
.timeline-photo img { width: 100%; height: 100%; object-fit: cover; }
.timeline-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.timeline-info b { font-size: 14px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timeline-region { font-size: 11px; color: var(--muted); font-weight: 600; }
.timeline-date { font-size: 11px; color: var(--primary); font-weight: 700; }
.timeline-note { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 560px) {
  .map-popup-foods { grid-template-columns: repeat(2, 1fr); }
}
/* === Scrapbook Album === */
.scrapbook-page {
  position: relative; border-radius: var(--radius); padding: 16px;
  background: linear-gradient(135deg, #fffcf5, #fff9f0);
  border: 1px solid rgba(255,200,100,0.15);
  display: flex; flex-direction: column; gap: 14px;
  overflow: visible;
}
.scrapbook-header { display: flex; justify-content: space-between; align-items: center; }
.scrapbook-title { font-size: 18px; font-weight: 900; color: var(--text); letter-spacing: -0.01em; }
.scrapbook-count { font-size: 14px; font-weight: 800; color: var(--region-color, var(--primary)); font-variant-numeric: tabular-nums; }
.scrapbook-stamp {
  align-self: center; padding: 8px 24px; border-radius: 999px;
  background: linear-gradient(135deg, #ffd700, #ffb700); color: #fff;
  font-size: 15px; font-weight: 900; box-shadow: 0 4px 14px rgba(255,183,0,0.4);
  letter-spacing: 0.05em;
}
.scrapbook-progress .progress-track { height: 8px; }

/* Sticker bar */
.sticker-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sticker-bar-label { font-size: 12px; font-weight: 700; color: var(--muted); margin-right: 4px; }
.sticker-add {
  width: 32px; height: 32px; border-radius: 8px; border: 1.5px solid var(--line);
  background: var(--surface); display: grid; place-items: center;
  transition: all 0.15s; position: relative;
}
.sticker-add:hover { border-color: var(--primary); background: var(--primary-soft); transform: scale(1.1); }
.sticker-add[data-add-sticker="star"]::before { content: ""; width: 16px; height: 16px; background: #ffd700; clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.sticker-add[data-add-sticker="heart"]::before { content: ""; width: 16px; height: 14px; background: #ff6b9d; clip-path: polygon(50% 100%, 0% 35%, 0% 15%, 25% 0%, 50% 20%, 75% 0%, 100% 15%, 100% 35%); }
.sticker-add[data-add-sticker="dot"]::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--region-color, var(--primary)); }
.sticker-add[data-add-sticker="tape"]::before { content: ""; width: 20px; height: 10px; border-radius: 2px; background: rgba(255,200,100,0.5); transform: rotate(-15deg); }
.sticker-add[data-add-sticker="sparkle"]::before { content: ""; width: 16px; height: 16px; background: #c0c0ff; clip-path: polygon(50% 0%, 55% 40%, 100% 50%, 55% 60%, 50% 100%, 45% 60%, 0% 50%, 45% 40%); }

/* Photo wall with polaroids */
.scrapbook-photos {
  position: relative; display: flex; flex-wrap: wrap; gap: 12px;
  min-height: 120px; padding: 8px 4px;
}

/* Placed stickers */
.placed-sticker { position: absolute; z-index: 5; cursor: pointer; transition: transform 0.15s; }
.placed-sticker:hover { transform: scale(1.2) !important; z-index: 6; }
.placed-sticker.sticker-star { width: 28px; height: 28px; background: #ffd700; clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); filter: drop-shadow(0 2px 4px rgba(255,215,0,0.4)); }
.placed-sticker.sticker-heart { width: 26px; height: 22px; background: #ff6b9d; clip-path: polygon(50% 100%, 0% 35%, 0% 15%, 25% 0%, 50% 20%, 75% 0%, 100% 15%, 100% 35%); filter: drop-shadow(0 2px 4px rgba(255,107,157,0.4)); }
.placed-sticker.sticker-dot { width: 24px; height: 24px; border-radius: 50%; background: var(--region-color, var(--primary)); filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); }
.placed-sticker.sticker-tape { width: 50px; height: 18px; border-radius: 2px; background: rgba(255,200,100,0.45); border: 1px dashed rgba(255,180,80,0.3); }
.placed-sticker.sticker-sparkle { width: 26px; height: 26px; background: #c0c0ff; clip-path: polygon(50% 0%, 55% 40%, 100% 50%, 55% 60%, 50% 100%, 45% 60%, 0% 50%, 45% 40%); filter: drop-shadow(0 2px 4px rgba(192,192,255,0.5)); }

/* Polaroid cards */
.polaroid {
  position: relative; z-index: 2; flex: 0 0 auto; width: calc(50% - 6px);
  background: #fff; border: none; border-radius: 4px; padding: 8px 8px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.06);
  transform: rotate(var(--rot, 0deg)); transition: transform 0.25s cubic-bezier(.2,1,.3,1), box-shadow 0.25s;
  display: flex; flex-direction: column; text-align: left;
}
.polaroid:hover { transform: rotate(0deg) translateY(-4px) scale(1.03); box-shadow: 0 12px 28px rgba(0,0,0,0.15); z-index: 4; }
.polaroid-tape {
  position: absolute; top: -6px; left: 50%; transform: translateX(-50%) rotate(-3deg);
  width: 40px; height: 16px; background: var(--tape, rgba(255,200,100,0.5));
  border-radius: 2px; opacity: 0.7; z-index: 3;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.polaroid-photo { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 2px; background: var(--surface-2); }
.polaroid-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.polaroid-caption { padding: 8px 4px 10px; display: flex; flex-direction: column; gap: 2px; }
.polaroid-caption b { font-size: 13px; font-weight: 800; color: var(--text); }
.polaroid-caption span { font-size: 11px; color: var(--muted); font-weight: 600; }
.polaroid-caption p { font-size: 11px; color: var(--muted); margin: 2px 0 0; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Undiscovered section */
.undiscovered-section { margin-top: 4px; display: flex; flex-direction: column; gap: 10px; }
.undiscovered-head { display: flex; justify-content: space-between; align-items: center; }
.undiscovered-head span:first-child { font-size: 14px; font-weight: 800; color: var(--text); }
.undiscovered-count { font-size: 12px; font-weight: 700; color: var(--muted); }
.undiscovered-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.undiscovered-card {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px;
  border-radius: var(--radius-xs); background: var(--surface-2); border: 1px solid var(--line);
  transition: all 0.15s; filter: grayscale(0.7); opacity: 0.6;
}
.undiscovered-card:hover { filter: grayscale(0.2); opacity: 1; transform: translateY(-2px); border-color: var(--primary); }
.undiscovered-img { width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 4px; }
.undiscovered-img img { width: 100%; height: 100%; object-fit: cover; }
.undiscovered-card span { font-size: 10px; font-weight: 600; color: var(--muted); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

@media (max-width: 560px) {
  .polaroid { width: calc(50% - 6px); }
  .undiscovered-grid { grid-template-columns: repeat(3, 1fr); }
}

/* === v73: SVG Stickers, Border Styles, Voting, Layout === */

/* Override old clip-path sticker ::before */
.sticker-add::before { display: none !important; }
.sticker-add { width: 36px; height: 36px; padding: 4px; }
.sticker-add svg { width: 100%; height: 100%; display: block; }
.sticker-add:hover svg { transform: scale(1.15); transition: transform 0.15s; }

/* Sticker SVG placed on scrapbook */
.sticker-svg { pointer-events: none; }
.sticker-svg svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15)); }
.placed-sticker { position: absolute; z-index: 5; cursor: pointer; transition: transform 0.2s; }
.placed-sticker:hover { transform: scale(1.2) rotate(0deg) !important; z-index: 10; }
.placed-sticker .sticker-svg { width: 100% !important; height: 100% !important; }

/* Scrapbook tools bar */
.scrapbook-tools {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start;
  padding: 10px 12px; background: rgba(255,255,255,0.5);
  border-radius: var(--radius-sm); border: 1px dashed rgba(0,0,0,0.08);
}
.scrapbook-tools .sticker-bar { gap: 6px; }
.scrapbook-tools .sticker-bar-label { font-size: 11px; }

/* Border picker */
.border-picker { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.border-btn {
  padding: 4px 10px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); font-size: 12px; font-weight: 700; color: var(--muted);
  cursor: pointer; transition: all 0.15s;
}
.border-btn:hover { border-color: var(--primary); color: var(--primary); }
.border-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Scrapbook photos - support absolute positioning */
.scrapbook-photos {
  position: relative; min-height: 200px;
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 12px 4px;
}
.scrapbook-photos .polaroid[style*="position:absolute"] {
  position: absolute !important;
}

/* Draggable polaroid */
.polaroid[draggable="true"] { cursor: grab; }
.polaroid[draggable="true"].dragging { cursor: grabbing; z-index: 100; opacity: 0.85; transform: rotate(0deg) scale(1.05) !important; box-shadow: 0 20px 40px rgba(0,0,0,0.2) !important; }
.polaroid-drag-hint {
  position: absolute; bottom: 4px; right: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(0,0,0,0.3); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 18px; text-align: center;
  opacity: 0; transition: opacity 0.2s; pointer-events: none;
}
.polaroid:hover .polaroid-drag-hint { opacity: 1; }

/* === Border style variants === */

/* Rounded */
.polaroid.border-rounded {
  border-radius: 16px; padding: 6px;
}
.polaroid.border-rounded .polaroid-photo { border-radius: 12px; }
.polaroid.border-rounded .polaroid-caption { padding: 6px 8px 8px; }
.polaroid.border-rounded .polaroid-tape { display: none; }

/* Stamp */
.polaroid.border-stamp {
  border-radius: 3px; padding: 10px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  outline: 3px dashed rgba(0,0,0,0.12);
  outline-offset: -4px;
}
.polaroid.border-stamp .polaroid-tape { display: none; }
.polaroid.border-stamp .polaroid-photo { border-radius: 0; }

/* Film */
.polaroid.border-film {
  padding: 16px 8px 8px;
  background: #1a1a1a;
  border-radius: 4px;
}
.polaroid.border-film::before {
  content: ""; position: absolute; top: 4px; left: 4px; right: 4px; height: 8px;
  background: repeating-linear-gradient(90deg, transparent 0, transparent 4px, rgba(255,255,255,0.4) 4px, rgba(255,255,255,0.4) 10px, transparent 10px, transparent 14px);
  border-radius: 1px;
}
.polaroid.border-film .polaroid-photo { border-radius: 2px; }
.polaroid.border-film .polaroid-tape { display: none; }
.polaroid.border-film .polaroid-caption b { color: #fff; }
.polaroid.border-film .polaroid-caption span,
.polaroid.border-film .polaroid-caption p { color: rgba(255,255,255,0.6); }

/* Ticket */
.polaroid.border-ticket {
  border-radius: 6px; padding: 8px 8px 8px 12px;
  background: #fff;
  position: relative;
}
.polaroid.border-ticket::before {
  content: ""; position: absolute; left: 6px; top: 0; bottom: 0;
  width: 2px;
  background: repeating-linear-gradient(0deg, var(--line) 0, var(--line) 3px, transparent 3px, transparent 6px);
}
.polaroid.border-ticket .polaroid-tape { display: none; }
.polaroid.border-ticket .polaroid-photo { border-radius: 4px; }

/* === Voting Section === */
.vote-card {
  background: linear-gradient(135deg, #fff, #faf8ff);
  border: 1px solid rgba(108,92,231,0.12);
}
.vote-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.vote-head h3 { font-size: 18px; font-weight: 900; color: var(--text); margin: 0; }
.vote-sub { font-size: 12px; color: var(--muted); font-weight: 600; }

.vote-tabs {
  display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}
.vote-tab {
  flex: 0 0 auto; padding: 6px 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface);
  font-size: 13px; font-weight: 700; color: var(--muted);
  cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
.vote-tab::before {
  content: ""; display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; background: var(--dot, #999); margin-right: 6px;
  vertical-align: middle;
}
.vote-tab:hover { border-color: var(--region-color, var(--primary)); }
.vote-tab.active { background: var(--region-color, var(--primary)); border-color: var(--region-color, var(--primary)); color: #fff; }
.vote-tab.active::before { background: #fff; }

.vote-list { display: flex; flex-direction: column; gap: 8px; }
.vote-item {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line);
  transition: all 0.2s;
}
.vote-item:hover { border-color: var(--region-color, var(--primary)); box-shadow: var(--shadow-sm); }
.vote-item.rank-1 { background: linear-gradient(135deg, #fffbe6, #fff8e1); border-color: rgba(255,193,7,0.3); }
.vote-item.rank-2 { background: linear-gradient(135deg, #f5f5f5, #fafafa); border-color: rgba(158,158,158,0.25); }
.vote-item.rank-3 { background: linear-gradient(135deg, #fff3e0, #ffe0b2); border-color: rgba(255,138,101,0.25); }

.vote-rank {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-size: 14px; font-weight: 900;
  background: var(--surface-2); color: var(--muted);
}
.vote-item.rank-1 .vote-rank { background: linear-gradient(135deg, #FFD700, #FFB300); color: #fff; }
.vote-item.rank-2 .vote-rank { background: linear-gradient(135deg, #E0E0E0, #9E9E9E); color: #fff; }
.vote-item.rank-3 .vote-rank { background: linear-gradient(135deg, #FF8A65, #D84315); color: #fff; }

.vote-food {
  flex: 1; display: flex; align-items: center; gap: 10px;
  background: none; border: none; cursor: pointer; padding: 0; text-align: left;
}
.vote-food-img {
  width: 44px; height: 44px; border-radius: 10px; overflow: hidden;
  flex: 0 0 auto; background: var(--surface-2);
}
.vote-food-img img { width: 100%; height: 100%; object-fit: cover; }
.vote-food-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vote-food-info b { font-size: 14px; font-weight: 800; color: var(--text); }
.vote-food-info span { font-size: 12px; color: var(--muted); font-weight: 600; }

.vote-btn {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center;
  padding: 8px 16px; border-radius: 12px; border: 2px solid var(--line);
  background: var(--surface); cursor: pointer; transition: all 0.2s;
  min-width: 56px;
}
.vote-btn-count { font-size: 16px; font-weight: 900; color: var(--text); line-height: 1; }
.vote-btn-label { font-size: 10px; color: var(--muted); font-weight: 700; margin-top: 2px; }
.vote-btn:hover { border-color: var(--region-color, var(--primary)); }
.vote-btn.voted {
  background: var(--region-color, var(--primary)); border-color: var(--region-color, var(--primary));
}
.vote-btn.voted .vote-btn-count,
.vote-btn.voted .vote-btn-label { color: #fff; }

/* === Layout upgrade: dynamic home grid === */
@media (min-width: 680px) {
  #tab-home {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
  }
  #tab-home > .card { min-width: 0; }
  #tab-home > .today-card { grid-column: 1 / -1; }
  #tab-home > .collect-bar { grid-column: 1 / -1; }
  #tab-home > .blindbox-card { grid-column: 1; }
  #tab-home > .vote-card { grid-column: 2; }
  #tab-home > .card:last-child { grid-column: 1 / -1; }
}

/* === Food feed masonry-ish === */
.food-feed {
  columns: 2;
  column-gap: 10px;
}
.food-feed .food-card {
  break-inside: avoid;
  margin-bottom: 10px;
  width: 100%;
}
@media (min-width: 680px) {
  .food-feed { columns: 3; }
}

/* === Region grid upgrade === */
.region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

/* === Scrapbook page upgrade === */
.scrapbook-page {
  background: 
    linear-gradient(135deg, #fffcf5, #fff9f0),
    repeating-linear-gradient(45deg, transparent 0, transparent 20px, rgba(0,0,0,0.01) 20px, rgba(0,0,0,0.01) 40px);
  border: 2px solid rgba(255,200,100,0.2);
  box-shadow: 0 4px 20px rgba(255,200,100,0.08), inset 0 0 40px rgba(255,248,230,0.5);
}

/* === Detail modal vote button === */
.dex-vote-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 12px; border: 2px solid var(--line);
  background: var(--surface); cursor: pointer; transition: all 0.2s;
  font-size: 14px; font-weight: 800; color: var(--text);
}
.dex-vote-btn:hover { border-color: var(--primary); }
.dex-vote-btn.voted { background: var(--primary); border-color: var(--primary); color: #fff; }
.dex-vote-btn .vote-icon { width: 16px; height: 16px; }

/* Detail modal vote row */
.dex-vote-row { display: flex; justify-content: center; padding: 8px 0; }
 .dex-vote-btn {
   display: flex; align-items: center; gap: 8px;
   padding: 10px 24px; border-radius: 14px; border: 2px solid var(--line);
   background: var(--surface); cursor: pointer; transition: all 0.2s;
   font-size: 14px; font-weight: 800;
 }
 .dex-vote-btn .vote-btn-count { font-size: 18px; color: var(--text); }
 .dex-vote-btn .vote-btn-label { font-size: 12px; color: var(--muted); }
 .dex-vote-btn:hover { border-color: var(--primary); transform: scale(1.05); }
 .dex-vote-btn.voted { background: var(--primary); border-color: var(--primary); }
 .dex-vote-btn.voted .vote-btn-count,
 .dex-vote-btn.voted .vote-btn-label { color: #fff; }

/* === v74: Region-themed scrapbooks + photo delete === */

/* Region theme backgrounds */
.scrapbook-page[data-theme="beijing"] {
  background:
    radial-gradient(circle at 12% 18%, rgba(185,28,28,0.10), transparent 40%),
    radial-gradient(circle at 90% 8%, rgba(249,168,37,0.12), transparent 34%),
    linear-gradient(135deg, #fff8f6, #ffece8);
  border-color: rgba(185,28,28,0.22);
}
.scrapbook-page[data-theme="shanghai"] {
  background:
    radial-gradient(circle at 14% 20%, rgba(26,35,126,0.10), transparent 42%),
    radial-gradient(circle at 86% 12%, rgba(212,175,55,0.14), transparent 32%),
    linear-gradient(135deg, #f5f7ff, #eef2ff);
  border-color: rgba(26,35,126,0.18);
}
.scrapbook-page[data-theme="guangdong"] {
  background:
    radial-gradient(circle at 12% 22%, rgba(0,121,107,0.10), transparent 40%),
    radial-gradient(circle at 88% 14%, rgba(255,202,40,0.14), transparent 32%),
    linear-gradient(135deg, #f4fffc, #e8faf5);
  border-color: rgba(0,121,107,0.20);
}
.scrapbook-page[data-theme="sichuan"] {
  background:
    radial-gradient(circle at 15% 18%, rgba(198,40,40,0.12), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(33,33,33,0.08), transparent 34%),
    linear-gradient(135deg, #fff5f5, #ffe8e8);
  border-color: rgba(198,40,40,0.24);
}
.scrapbook-page[data-theme="chongqing"] {
  background:
    radial-gradient(circle at 18% 20%, rgba(230,81,0,0.13), transparent 42%),
    radial-gradient(circle at 82% 16%, rgba(211,47,47,0.10), transparent 34%),
    linear-gradient(135deg, #fff6ef, #ffeadc);
  border-color: rgba(230,81,0,0.24);
}
.scrapbook-page[data-theme="hunan"] {
  background:
    radial-gradient(circle at 12% 18%, rgba(211,47,47,0.13), transparent 40%),
    radial-gradient(circle at 88% 12%, rgba(255,112,67,0.12), transparent 32%),
    linear-gradient(135deg, #fff7f6, #ffece8);
  border-color: rgba(211,47,47,0.25);
}
.scrapbook-page[data-theme="shaanxi"] {
  background:
    radial-gradient(circle at 14% 20%, rgba(141,110,99,0.12), transparent 42%),
    radial-gradient(circle at 86% 14%, rgba(255,179,0,0.12), transparent 34%),
    linear-gradient(135deg, #faf6f2, #f3e9e0);
  border-color: rgba(141,110,99,0.22);
}
.scrapbook-page[data-theme="yunnan"] {
  background:
    radial-gradient(circle at 14% 18%, rgba(123,31,162,0.10), transparent 40%),
    radial-gradient(circle at 86% 16%, rgba(240,98,146,0.12), transparent 34%),
    linear-gradient(135deg, #faf5ff, #f3e8ff);
  border-color: rgba(123,31,162,0.18);
}
.scrapbook-page[data-theme="xinjiang"] {
  background:
    radial-gradient(circle at 16% 20%, rgba(230,81,0,0.12), transparent 42%),
    radial-gradient(circle at 84% 16%, rgba(46,125,50,0.12), transparent 34%),
    linear-gradient(135deg, #fff7ef, #fdf0dc);
  border-color: rgba(230,81,0,0.22);
}
.scrapbook-page[data-theme="heilongjiang"] {
  background:
    radial-gradient(circle at 14% 20%, rgba(2,119,189,0.12), transparent 42%),
    radial-gradient(circle at 86% 16%, rgba(179,229,252,0.18), transparent 36%),
    linear-gradient(135deg, #f3faff, #e8f4fc);
  border-color: rgba(2,119,189,0.18);
}
.scrapbook-page[data-theme="jiangsu"] {
  background:
    radial-gradient(circle at 14% 20%, rgba(2,136,209,0.10), transparent 42%),
    radial-gradient(circle at 86% 14%, rgba(158,157,36,0.10), transparent 34%),
    linear-gradient(135deg, #f2f9ff, #e9f4fb);
  border-color: rgba(2,136,209,0.18);
}
.scrapbook-page[data-theme="fujian"] {
  background:
    radial-gradient(circle at 14% 20%, rgba(0,105,92,0.12), transparent 42%),
    radial-gradient(circle at 86% 14%, rgba(255,112,67,0.10), transparent 34%),
    linear-gradient(135deg, #f1fbf9, #e4f7f3);
  border-color: rgba(0,105,92,0.20);
}
.scrapbook-page[data-theme="zhejiang"] {
  background:
    radial-gradient(circle at 14% 20%, rgba(240,98,146,0.12), transparent 42%),
    radial-gradient(circle at 86% 16%, rgba(165,214,167,0.22), transparent 36%),
    linear-gradient(135deg, #fff5f8, #fbeff3);
  border-color: rgba(240,98,146,0.20);
}
.scrapbook-page[data-theme="henan"] {
  background:
    radial-gradient(circle at 14% 20%, rgba(249,168,37,0.14), transparent 42%),
    radial-gradient(circle at 86% 14%, rgba(121,85,72,0.10), transparent 34%),
    linear-gradient(135deg, #fffaf0, #fbf1dc);
  border-color: rgba(249,168,37,0.24);
}
.scrapbook-page[data-theme="guangxi"] {
  background:
    radial-gradient(circle at 14% 20%, rgba(46,125,50,0.12), transparent 42%),
    radial-gradient(circle at 86% 16%, rgba(0,131,143,0.10), transparent 34%),
    linear-gradient(135deg, #f2fbf4, #e6f6ea);
  border-color: rgba(46,125,50,0.20);
}
.scrapbook-page[data-theme="gansu"] {
  background:
    radial-gradient(circle at 14% 20%, rgba(255,143,0,0.14), transparent 42%),
    radial-gradient(circle at 86% 16%, rgba(109,76,65,0.10), transparent 34%),
    linear-gradient(135deg, #fff9ef, #fbefdc);
  border-color: rgba(255,143,0,0.24);
}
.scrapbook-page[data-theme="guizhou"] {
  background:
    radial-gradient(circle at 14% 20%, rgba(198,40,40,0.12), transparent 42%),
    radial-gradient(circle at 86% 16%, rgba(106,27,154,0.10), transparent 34%),
    linear-gradient(135deg, #fff6f6, #fbecef);
  border-color: rgba(198,40,40,0.22);
}

/* Decorative watermark in scrapbook */
.scrapbook-deco {
  position: absolute; right: 8px; bottom: 6px;
  width: 120px; height: 120px; opacity: 0.15;
  pointer-events: none; z-index: 0;
}
.scrapbook-deco svg { width: 100%; height: 100%; display: block; }
.scrapbook-page > * { position: relative; z-index: 1; }

/* Photo delete button */
.polaroid-photo { position: relative; }
.photo-delete-btn {
  position: absolute; top: 6px; right: 6px; z-index: 6;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(20,20,25,0.62); color: #fff; border: none;
  font-size: 17px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  opacity: 0; transition: opacity 0.18s, transform 0.18s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.polaroid:hover .photo-delete-btn { opacity: 1; }
.photo-delete-btn:hover { transform: scale(1.12); background: #d32f2f; }

/* Polaroid as div (was button) */
.polaroid { cursor: pointer; }
.polaroid[draggable="true"] { cursor: grab; }
.polaroid[draggable="true"].dragging { cursor: grabbing; }

/* Drag hint */
.polaroid-drag-hint {
  position: absolute; bottom: 4px; right: 4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0,0,0,0.32); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 20px; text-align: center;
  opacity: 0; transition: opacity 0.2s; pointer-events: none;
}
.polaroid:hover .polaroid-drag-hint { opacity: 1; }

/* === v75: Real album feel, photo sizing, drag bug fix === */

/* Album page feel */
.scrapbook-page {
  overflow: hidden;
  padding: 22px 16px 26px 24px;
  border-radius: 6px 22px 22px 6px;
  box-shadow:
    0 6px 24px rgba(60,40,20,0.10),
    inset 0 0 0 1px rgba(255,255,255,0.6),
    inset 0 0 60px rgba(255,248,230,0.4);
  background-image:
    linear-gradient(rgba(120,90,40,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,90,40,0.035) 1px, transparent 1px);
  background-size: 22px 22px;
}
.scrapbook-page[data-theme] {
  background-blend-mode: overlay;
  background-size: 22px 22px, 22px 22px, auto, auto, auto;
}

/* Binding spine */
.scrapbook-binding {
  position: absolute; left: 12px; top: 0; bottom: 0; width: 5px;
  background: repeating-linear-gradient(0deg, rgba(80,60,30,0.14) 0 2px, transparent 2px 7px);
  border-radius: 3px; z-index: 0;
}

/* Album cover / title */
.scrapbook-cover {
  display: flex; flex-direction: column; gap: 10px; align-items: center;
  padding: 0 6px 4px;
}
.scrapbook-cover-title {
  display: flex; align-items: baseline; gap: 12px;
  border-bottom: 2px solid rgba(0,0,0,0.07);
  padding-bottom: 8px; width: 100%; justify-content: center;
}
.scrapbook-title {
  font-size: 24px; font-weight: 900; letter-spacing: 0.08em;
  color: var(--region-accent, var(--text));
  text-shadow: 0 1px 0 rgba(255,255,255,0.7);
}
.scrapbook-count {
  font-size: 13px; font-weight: 800; color: var(--region-accent, var(--primary));
  font-variant-numeric: tabular-nums;
}
.scrapbook-page-num {
  text-align: center; font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--muted); margin-top: 6px; opacity: 0.75;
}

/* Photos: smaller, staggered, collage feel */
.scrapbook-photos {
  min-height: 240px;
  padding: 6px 6px 18px 18px;
  gap: 12px 8px;
  align-items: flex-start;
}
.polaroid {
  width: calc(43% - 8px);
  padding: 7px 7px 0;
  margin-bottom: 6px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.10), 0 1px 2px rgba(0,0,0,0.06);
}
.polaroid.border-rounded { padding: 6px; }
.polaroid.border-stamp { padding: 9px; }
.polaroid.border-film { padding: 16px 7px 7px; }
.polaroid.border-ticket { padding: 7px 7px 7px 11px; }

/* Prevent photo overflow below */
.scrapbook-photos .polaroid img { max-width: 100%; }
.polaroid-caption p { white-space: normal; }

/* Stickers above photos */
.placed-sticker { z-index: 8; }
.polaroid { z-index: 2; }

/* === v76: overflow-safe album canvas === */
.scrapbook-photos {
  min-height: 300px;
  padding-bottom: 30px;
}
.polaroid { width: calc(40% - 10px); }

/* === v78: Album Book — cover, canvas page, sticky notes, certificate === */

/* ---- Album Book Container ---- */
.album-book {
  display: flex; flex-direction: column; gap: 20px;
  max-width: 440px; margin: 0 auto; width: 100%;
}

/* ---- Cover ---- */
.album-cover {
  position: relative;
  width: 100%; aspect-ratio: 7/9;
  background: linear-gradient(155deg, var(--accent, #c62828) 0%, var(--accent2, #ff6f00) 50%, var(--accent, #c62828) 100%);
  border-radius: 6px 20px 20px 6px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 16px 44px rgba(0,0,0,0.18), 0 4px 12px rgba(0,0,0,0.10);
  overflow: hidden;
  color: #fff;
}
.album-cover-deco {
  position: absolute; right: 12px; bottom: 10px;
  width: 130px; height: 130px; opacity: 0.18; pointer-events: none;
}
.album-cover-deco svg { width: 100%; height: 100%; filter: brightness(0) invert(1); }
.album-cover-region {
  font-size: 48px; font-weight: 900; letter-spacing: 0.15em;
  text-shadow: 0 4px 16px rgba(0,0,0,0.35);
  position: relative; z-index: 2;
}
.album-cover-sub {
  font-size: 14px; font-weight: 600; letter-spacing: 0.3em;
  opacity: 0.8; margin-top: 8px; position: relative; z-index: 2;
}
.album-cover-bar {
  width: 64%; height: 6px; border-radius: 99px;
  background: rgba(255,255,255,0.25);
  margin-top: 24px; position: relative; z-index: 2;
}
.album-cover-fill {
  height: 100%; border-radius: 99px;
  background: #fff;
  transition: width 0.6s ease;
}
.album-cover-count {
  font-size: 16px; font-weight: 800; margin-top: 12px;
  font-variant-numeric: tabular-nums; opacity: 0.9; position: relative; z-index: 2;
}

/* ---- Inner Page Canvas ---- */
.album-page {
  position: relative;
  width: 100%; aspect-ratio: 7/10;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(200,160,100,0.06), transparent 60%),
    linear-gradient(#fefaf0, #fcf6e8);
  border-radius: 4px 18px 18px 4px;
  box-shadow:
    0 3px 14px rgba(80,50,20,0.08),
    inset 0 0 0 1px rgba(200,170,120,0.18);
  overflow: hidden;
}
.album-page-binding {
  position: absolute; left: 10px; top: 0; bottom: 0; width: 4px;
  background: repeating-linear-gradient(0deg, rgba(100,70,30,0.12) 0 2px, transparent 2px 8px);
  border-radius: 2px; z-index: 0;
}
.album-page-header {
  position: absolute; top: 10px; left: 24px; right: 14px;
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px; font-weight: 800; color: rgba(0,0,0,0.45);
  border-bottom: 1px solid rgba(0,0,0,0.06); padding-bottom: 6px;
  z-index: 3; pointer-events: none;
}
.album-page-count { font-variant-numeric: tabular-nums; }

/* ---- Photos on canvas ---- */
.polaroid-album {
  position: absolute !important;
  width: var(--photo-w, 38%) !important;
  padding: 7px 7px 0;
  background: #fff;
  border: none;
  border-radius: 4px;
  transform: rotate(var(--rot, 2deg));
  box-shadow: 0 3px 10px rgba(0,0,0,0.12), 1px 2px 4px rgba(0,0,0,0.08);
  z-index: 3;
  cursor: pointer; display: flex; flex-direction: column; text-align: left;
  transition: transform 0.25s cubic-bezier(.2,1,.3,1), box-shadow 0.25s;
}
.polaroid-album:hover {
  transform: rotate(0deg) translateY(-3px) scale(1.04) !important;
  box-shadow: 0 10px 28px rgba(0,0,0,0.18); z-index: 20;
}
.polaroid-album .polaroid-tape {
  position: absolute; top: -6px; left: 50%; transform: translateX(-50%) rotate(-2deg);
  width: 36px; height: 14px; background: var(--tape, rgba(255,200,100,0.6));
  border-radius: 2px; opacity: 0.7; z-index: 5;
}
.polaroid-album .polaroid-photo { width: 100%; aspect-ratio: 1/1; overflow: hidden; border-radius: 2px; background: var(--surface-2); }
.polaroid-album .polaroid-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.polaroid-album .polaroid-caption { padding: 6px 4px 10px; display: flex; flex-direction: column; gap: 2px; }
.polaroid-album .polaroid-caption b { font-size: 13px; font-weight: 800; color: var(--text); }
.polaroid-album .polaroid-caption .handwrite {
  font-family: "KaiTi", "STKaiti", "楷体", serif;
  font-size: 11px; color: var(--muted); letter-spacing: 0.05em;
}
.polaroid-album .photo-delete-btn {
  position: absolute; top: 4px; right: 4px; z-index: 6;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,0.5); color: #fff; border: none;
  font-size: 14px; cursor: pointer; display: grid; place-items: center;
  opacity: 0; transition: opacity 0.18s;
}
.polaroid-album:hover .photo-delete-btn { opacity: 1; }
.polaroid-album.dragging { cursor: grabbing; z-index: 100 !important; opacity: 0.85; box-shadow: 0 20px 44px rgba(0,0,0,0.25) !important; }

/* ---- Sticky Notes ---- */
.album-note {
  position: absolute; z-index: 5; width: 24%;
  padding: 10px 8px 14px;
  background: var(--note-bg, #fff9c4);
  border-radius: 2px 8px 3px 3px;
  box-shadow: 1px 2px 6px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
  transform: rotate(var(--note-rot, 4deg));
  pointer-events: none;
}
.album-note span {
  display: block;
  font-family: "KaiTi", "STKaiti", "楷体", serif;
  font-size: 13px; font-weight: 600; color: rgba(0,0,0,0.6);
  text-align: center; line-height: 1.5; letter-spacing: 0.03em;
}
.album-note::after {
  content: ""; position: absolute;
  top: -5px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 8px;
  background: rgba(0,0,0,0.06); border-radius: 2px;
}

/* ---- Date stamp ---- */
.album-date-stamp {
  position: absolute; bottom: 10px; right: 18px;
  font-family: "KaiTi", "STKaiti", "楷体", serif;
  font-size: 11px; font-weight: 700; color: rgba(0,0,0,0.35);
  border: 1.5px solid rgba(0,0,0,0.12); border-radius: 4px;
  padding: 2px 8px; letter-spacing: 0.06em;
  z-index: 3; pointer-events: none;
}

/* ---- Certificate ---- */
.album-cert {
  width: 100%; aspect-ratio: 7/10;
  background: linear-gradient(135deg, #fffbe6, #fff8e1);
  border-radius: 4px 20px 20px 4px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 36px rgba(255,183,0,0.2);
}
.album-cert-inner {
  text-align: center; padding: 30px 20px;
  border: 3px double #d4af37;
  margin: 20px; border-radius: 8px; width: calc(100% - 40px);
}
.album-cert-stamp {
  display: inline-block; width: 88px; height: 88px; border-radius: 50%;
  border: 4px solid #d32f2f; color: #d32f2f;
  font-size: 24px; font-weight: 900; line-height: 80px;
  background: rgba(211,47,47,0.06);
  transform: rotate(-12deg); margin-bottom: 18px;
}
.album-cert-inner h2 {
  font-size: 22px; font-weight: 900; color: var(--region-accent, #333);
  margin: 0 0 6px;
}
.album-cert-sub {
  font-size: 13px; color: var(--muted); margin: 0 0 18px;
}
.album-cert-foods {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 18px;
}
.album-cert-food {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.album-cert-food img {
  width: 44px; height: 44px; border-radius: 8px; object-fit: cover;
  border: 2px solid rgba(0,0,0,0.06);
}
.album-cert-food span {
  font-size: 10px; font-weight: 700; color: var(--muted);
  max-width: 52px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.album-cert-date {
  font-family: "KaiTi", "STKaiti", "楷体", serif;
  font-size: 13px; color: var(--muted); font-weight: 600;
  letter-spacing: 0.06em;
}

/* ---- Override old scrapbook page styles ---- */
.scrapbook-page { display: none; }
.scrapbook-page[data-theme] { display: none; }

/* ---- Adjust sticker bar for album ---- */
.scrapbook-tools { margin: 0; max-width: 440px; align-self: center; width: 100%; }

/* === v79: Real album book — no cover, spread photo album === */

/* Album book shell */
.album-book {
  display: flex; flex-direction: column; gap: 18px;
  max-width: 440px; margin: 0 auto; width: 100%;
}
/* Hide old cover + old scrapbook */
.album-cover, .scrapbook-page, .scrapbook-page[data-theme] { display: none !important; }

/* Album inner page — like an open photo album leaf */
.album-page {
  position: relative;
  width: 100%; aspect-ratio: 7/9.5;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(180,140,80,0.05), transparent 55%),
    linear-gradient(178deg, #fefaf2, #fcf6e9, #faf3e4);
  border: 2px solid rgba(0,0,0,0.06);
  border-radius: 5px 18px 18px 5px;
  box-shadow:
    3px 6px 22px rgba(50,30,10,0.12),
    1px 2px 6px rgba(0,0,0,0.07),
    inset 0 0 0 1px rgba(255,255,255,0.5);
  overflow: hidden;
  /* Book cover edge appearing outside */
  outline: 8px solid var(--book-cover, #4a3520);
  outline-offset: 2px;
  margin: 10px 8px;
}
/* Book spine */
.album-page::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px;
  background: linear-gradient(90deg, var(--book-spine, #8d6e63), rgba(0,0,0,0.03), transparent);
  z-index: 1; border-radius: 2px 0 0 2px;
}
/* Page curl at bottom-right */
.album-page::after {
  content: ""; position: absolute; right: 0; bottom: 0;
  width: 30px; height: 22px;
  background: linear-gradient(135deg, transparent 50%, rgba(0,0,0,0.08) 50%, rgba(0,0,0,0.12) 100%);
  border-radius: 0 0 18px 0; z-index: 10; pointer-events: none;
}

/* Binder holes */
.album-page-holes {
  position: absolute; left: 20px; top: 0; bottom: 0; width: 14px;
  background:
    radial-gradient(circle at center 15%, rgba(0,0,0,0.25) 0, rgba(0,0,0,0.08) 35%, transparent 37%, transparent 38%, rgba(0,0,0,0.12) 38%, rgba(0,0,0,0.04) 50%, transparent 50%),
    radial-gradient(circle at center 40%, rgba(0,0,0,0.25) 0, rgba(0,0,0,0.08) 35%, transparent 37%, transparent 38%, rgba(0,0,0,0.12) 38%, rgba(0,0,0,0.04) 50%, transparent 50%),
    radial-gradient(circle at center 65%, rgba(0,0,0,0.25) 0, rgba(0,0,0,0.08) 35%, transparent 37%, transparent 38%, rgba(0,0,0,0.12) 38%, rgba(0,0,0,0.04) 50%, transparent 50%),
    radial-gradient(circle at center 90%, rgba(0,0,0,0.25) 0, rgba(0,0,0,0.08) 35%, transparent 37%, transparent 38%, rgba(0,0,0,0.12) 38%, rgba(0,0,0,0.04) 50%, transparent 50%);
  z-index: 2; pointer-events: none;
}

/* Page header */
.album-page-header {
  position: absolute; top: 24px; left: 44px; right: 18px;
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px; font-weight: 800; color: rgba(0,0,0,0.4);
  border-bottom: 1px solid rgba(0,0,0,0.05); padding-bottom: 6px;
  z-index: 3; pointer-events: none;
}
.album-page-count { font-variant-numeric: tabular-nums; }

/* Watermark */
.album-watermark {
  position: absolute; right: 14px; bottom: 8px;
  width: 85px; height: 85px; opacity: 0.10; pointer-events: none; z-index: 0;
}
.album-watermark svg { width: 100%; height: 100%; }

/* Photo on page — keep polaroid-album from v78 */
.polaroid-album { z-index: 4; }

/* Sticky notes — keep from v78 */
.album-note { z-index: 5; }

/* Date stamp — keep from v78 */
.album-date-stamp { z-index: 4; }

/* === v80: Premium album + food cutout stickers === */
.album-book { max-width: 470px; }
.album-cover, .scrapbook-page, .scrapbook-page[data-theme], .album-note, .album-date-stamp { display: none !important; }

.album-page {
  position: relative;
  width: calc(100% - 30px);
  aspect-ratio: 7/10;
  background:
    radial-gradient(ellipse at 12% 8%, rgba(255,255,255,0.85), transparent 38%),
    repeating-linear-gradient(0deg, rgba(126,94,52,0.025) 0 2px, transparent 2px 4px),
    linear-gradient(158deg, #fffdf7 0%, #fcf5e8 46%, #f6ead7 100%);
  border: 1px solid rgba(120,88,48,0.14);
  border-radius: 6px 26px 26px 6px;
  box-shadow:
    -20px 26px 64px rgba(38,23,7,0.24),
    -3px 5px 16px rgba(38,23,7,0.10),
    inset 0 0 0 1px rgba(255,255,255,0.65),
    inset 2px 0 12px rgba(255,255,255,0.55);
  outline: 9px solid var(--book-cover, #4a3520);
  outline-offset: 3px;
  overflow: hidden;
  margin: 13px 15px;
}
.album-page::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 16px;
  background:
    repeating-linear-gradient(0deg, rgba(90,60,30,0.38) 0 3px, transparent 3px 7px),
    linear-gradient(90deg, rgba(0,0,0,0.30), rgba(255,255,255,0.10) 58%, transparent);
  z-index: 1; border-radius: 3px 0 0 3px;
  box-shadow: inset -1px 0 2px rgba(0,0,0,0.12);
}
.album-page::after {
  content: ""; position: absolute; right: -1px; bottom: -1px;
  width: 34px; height: 26px;
  background: linear-gradient(135deg, transparent 50%, rgba(0,0,0,0.09) 50%, rgba(0,0,0,0.13) 100%);
  border-radius: 0 0 26px 0; z-index: 10; pointer-events: none;
}
.album-page-holes {
  left: 22px; width: 14px;
  background:
    radial-gradient(circle at center 13%, rgba(70,45,18,0.34) 0, rgba(70,45,18,0.10) 32%, transparent 36%, transparent 42%, rgba(70,45,18,0.14) 42%, rgba(70,45,18,0.04) 50%, transparent 50%),
    radial-gradient(circle at center 38%, rgba(70,45,18,0.34) 0, rgba(70,45,18,0.10) 32%, transparent 36%, transparent 42%, rgba(70,45,18,0.14) 42%, rgba(70,45,18,0.04) 50%, transparent 50%),
    radial-gradient(circle at center 63%, rgba(70,45,18,0.34) 0, rgba(70,45,18,0.10) 32%, transparent 36%, transparent 42%, rgba(70,45,18,0.14) 42%, rgba(70,45,18,0.04) 50%, transparent 50%),
    radial-gradient(circle at center 88%, rgba(70,45,18,0.34) 0, rgba(70,45,18,0.10) 32%, transparent 36%, transparent 42%, rgba(70,45,18,0.14) 42%, rgba(70,45,18,0.04) 50%, transparent 50%);
  z-index: 2; pointer-events: none;
}
.album-page-header {
  top: 26px; left: 48px; right: 18px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; font-weight: 800; color: rgba(38,24,10,0.55);
  border-bottom: 1px solid rgba(120,88,48,0.16); padding-bottom: 8px;
  letter-spacing: 0.08em;
  z-index: 3; pointer-events: none;
}
.album-page-header .album-title {
  font-family: "KaiTi", "STKaiti", "楷体", serif;
  font-size: 16px; font-weight: 800; color: rgba(38,24,10,0.72);
  letter-spacing: 0.12em;
  display: inline-flex; align-items: center; gap: 9px;
}
.album-page-header .album-title::before {
  content: ""; width: 7px; height: 7px; border: 1.5px solid var(--book-spine, #b08d57);
  transform: rotate(45deg); display: inline-block;
}
.album-page-count { font-variant-numeric: tabular-nums; font-size: 12px; }
.album-progress {
  position: absolute; top: 56px; left: 48px; right: 18px; height: 3px;
  background: rgba(120,88,48,0.10); border-radius: 99px;
  z-index: 3; overflow: hidden; pointer-events: none;
}
.album-progress i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--book-cover), var(--book-spine)); transition: width 0.6s ease; }
.album-watermark { right: 16px; bottom: 14px; width: 96px; height: 96px; opacity: 0.09; filter: drop-shadow(0 1px 0 rgba(255,255,255,0.45)); }
.album-footer {
  position: absolute; left: 48px; bottom: 14px; right: 18px;
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: "KaiTi", "STKaiti", "楷体", serif;
  font-size: 10px; font-weight: 700; color: rgba(38,24,10,0.34);
  letter-spacing: 0.14em; z-index: 3; pointer-events: none;
  border-top: 1px solid rgba(120,88,48,0.13); padding-top: 7px;
}

.album-page.cols-2 .polaroid-album { --photo-w: 36%; }
.album-page.cols-3 .polaroid-album { --photo-w: 28%; }
.album-page.cols-4 .polaroid-album { --photo-w: 22.5%; }
.polaroid-album {
  padding: 8px 8px 0;
  background: linear-gradient(180deg, #fffefb 0%, #fefdf9 62%, #faf7f1 100%);
  border-radius: 3px 12px 12px 3px;
  border: 1px solid rgba(120,88,48,0.10);
  box-shadow:
    0 2px 3px rgba(58,38,14,0.10),
    0 12px 30px rgba(58,38,14,0.15),
    inset 0 0 0 1px rgba(255,255,255,0.85);
  transform: rotate(var(--rot, 2deg));
  touch-action: none;
}
.polaroid-album:hover {
  transform: rotate(var(--rot, 2deg)) translateY(-4px) scale(1.03) !important;
  box-shadow: 0 16px 38px rgba(58,38,14,0.20);
  z-index: 20;
}
.polaroid-album .polaroid-tape {
  top: -9px; left: 50%; width: 46px; height: 17px;
  background: linear-gradient(90deg, rgba(255,255,255,0.30), transparent 12%, transparent 88%, rgba(0,0,0,0.07)), var(--tape, rgba(255,192,100,0.55));
  clip-path: polygon(0 18%, 12% 2%, 26% 16%, 40% 3%, 54% 15%, 66% 1%, 80% 16%, 92% 5%, 100% 16%, 99% 86%, 90% 99%, 76% 86%, 62% 100%, 48% 87%, 34% 100%, 20% 87%, 6% 100%, 1% 86%);
  box-shadow: 0 1px 2px rgba(0,0,0,0.14);
  opacity: 0.9; border-radius: 0;
}
.polaroid-album .polaroid-photo { border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06); background: #f2ede2; }
.polaroid-album .polaroid-photo img { filter: saturate(0.94) contrast(1.02) sepia(0.05); }
.polaroid-album .polaroid-photo img.cutout-img {
  object-fit: contain; background: transparent;
  filter: drop-shadow(0 3px 4px rgba(40,25,8,0.22)) saturate(1.02) contrast(1.02);
}
.polaroid-album .polaroid-seal {
  position: absolute; left: 8px; top: 8px; z-index: 5;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--book-cover, #8d6e63);
  color: #fff; font-size: 10px; font-weight: 900;
  display: grid; place-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.28), inset 0 0 0 2px rgba(255,255,255,0.28);
  font-family: "KaiTi", "STKaiti", "楷体", serif;
  opacity: 0.82; pointer-events: none;
}
.polaroid-album .polaroid-caption { padding: 7px 4px 11px; gap: 3px; }
.polaroid-album .polaroid-caption b { font-size: 12.5px; font-weight: 800; color: #2e2213; letter-spacing: 0.02em; }
.polaroid-album .polaroid-caption-row { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.polaroid-album .polaroid-caption .handwrite { font-size: 10px; color: rgba(60,42,20,0.55); }
.polaroid-album .polaroid-no { font-size: 9px; font-weight: 800; color: rgba(120,88,48,0.55); letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.polaroid-album .photo-delete-btn { top: 6px; right: 6px; width: 24px; height: 24px; background: rgba(22,15,8,0.55); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,0.28); font-size: 15px; }
.polaroid-album.dragging { box-shadow: 0 22px 50px rgba(30,18,6,0.28) !important; }
.album-page.cols-4 .polaroid-album .polaroid-caption b { font-size: 11px; }
.album-page.cols-4 .polaroid-album .polaroid-seal { width: 16px; height: 16px; font-size: 8px; left: 5px; top: 5px; }

.cutout-pick { display: flex; gap: 6px; margin: 10px 0 0; }
.cutout-pick button {
  flex: 1; padding: 8px 10px; border-radius: 999px; border: 1px solid rgba(120,88,48,0.18);
  background: #fff; color: #5d4a2f; font-size: 12px; font-weight: 700; cursor: pointer;
}
.cutout-pick button.active {
  background: linear-gradient(135deg, #e8590c, #f7a325);
  color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(200,90,20,0.25);
}
.checkin-preview.cutout-preview {
  object-fit: contain;
  background: repeating-conic-gradient(#efe9dd 0 25%, #faf7ef 0 50%) 0 0/18px 18px;
  border: 1px solid rgba(0,0,0,0.08);
}

/* === v84: Hot Feed, Social Notes, Lore, Rituals === */
.hot-hero {
  background: linear-gradient(135deg, #2b2438 0%, #4a2c3f 45%, #7a2f34 100%);
  color: #fff; border-radius: 22px; padding: 18px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 14px 34px rgba(40,20,60,0.22); position: relative; overflow: hidden;
}
.hot-hero::after {
  content: ""; position: absolute; right: -42px; top: -42px; width: 180px; height: 180px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,190,90,0.35), transparent 65%); pointer-events: none;
}
.heat-hero-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; position: relative; z-index: 1; }
.heat-hero-title .kicker { color: rgba(255,255,255,0.55); }
.heat-hero-title h3 { font-size: 22px; font-weight: 900; letter-spacing: 0.02em; }
.hot-seg { display: flex; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.14); border-radius: 999px; padding: 3px; }
.hot-seg-btn { padding: 7px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; color: rgba(255,255,255,0.7); white-space: nowrap; transition: all 0.18s; }
.hot-seg-btn.active { background: #fff; color: #2b2438; box-shadow: 0 3px 10px rgba(0,0,0,0.18); }
.hot-option-row { display: flex; align-items: center; gap: 8px; position: relative; z-index: 1; }
.hot-option-label { font-size: 12px; font-weight: 800; color: rgba(255,255,255,0.65); }
.hot-city-select { background: rgba(255,255,255,0.14); color: #fff; border: 1px solid rgba(255,255,255,0.2); border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 700; outline: none; }
.hot-city-select option { color: #222; }
.hot-fallback-note { font-size: 11px; color: rgba(255,255,255,0.5); margin-left: auto; }
.hot-sort-btn { padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 800; color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.12); transition: all 0.18s; }
.hot-sort-btn.active { background: #ff8a3c; color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(255,120,50,0.35); }
.weekly-tops { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; }
.weekly-tops-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.weekly-tops-title { font-size: 15px; font-weight: 900; color: #ffd9a0; letter-spacing: 0.05em; }
.weekly-tops-sub { font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.55); white-space: nowrap; }
.weekly-tops-list { display: flex; flex-direction: column; gap: 8px; }
.weekly-top { width: 100%; color: #fff; text-align: left; cursor: pointer; transition: transform 0.18s, background 0.18s, border-color 0.18s; }
.weekly-top:hover { transform: translateY(-2px); }
.weekly-rank { flex: 0 0 24px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; font-size: 12px; font-weight: 900; background: rgba(255,255,255,0.16); color: #ffd9a0; }
.rank-1 { background: linear-gradient(135deg, #ffd200, #ff8a00); color: #fff; box-shadow: 0 3px 10px rgba(255,150,0,0.35); }
.rank-2 { background: linear-gradient(135deg, #e8eaf0, #aeb4c2); color: #fff; }
.rank-3 { background: linear-gradient(135deg, #ffb27a, #c66a32); color: #fff; }
.weekly-top-lead { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 14px; overflow: hidden; background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.07)); border: 1px solid rgba(255,217,160,0.36); border-radius: 18px; padding: 12px; }
.weekly-top-lead::after { content: ""; position: absolute; right: -22px; top: -22px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(255,190,90,0.26), transparent 66%); pointer-events: none; }
.weekly-top-lead-img { position: relative; width: 96px; height: 96px; border-radius: 18px; overflow: hidden; border: 2px solid rgba(255,255,255,0.45); box-shadow: 0 8px 18px rgba(0,0,0,0.28); background: rgba(255,255,255,0.14); }
.weekly-top-lead-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.weekly-top-lead-img .weekly-rank { position: absolute; left: 6px; top: 6px; width: 22px; height: 22px; font-size: 11px; }
.weekly-top-lead-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; position: relative; z-index: 1; }
.weekly-top-lead-kicker { font-size: 10px; font-weight: 800; color: #ffd9a0; letter-spacing: 0.12em; }
.weekly-top-lead-body b { font-size: 18px; font-weight: 900; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.weekly-top-lead-body small { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.weekly-top-lead-votes { margin-top: 3px; font-size: 12px; font-weight: 800; color: #ffd9a0; }
.weekly-top-lead-votes b { font-size: 16px; }
.weekly-top-mini { display: grid; grid-template-columns: 26px 46px minmax(0, 1fr) auto; align-items: center; gap: 10px; background: rgba(255,255,255,0.09); border: 1px solid rgba(255,255,255,0.13); border-radius: 14px; padding: 8px 10px; }
.weekly-top-mini:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,217,160,0.4); }
.weekly-top-img { width: 46px; height: 46px; border-radius: 12px; overflow: hidden; border: 2px solid rgba(255,255,255,0.3); box-shadow: 0 4px 10px rgba(0,0,0,0.25); background: rgba(255,255,255,0.12); }
.weekly-top-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.weekly-top-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.weekly-top-main b { font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.weekly-top-main small { font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.weekly-top-votes { min-width: 0; font-size: 11px; font-weight: 800; color: #ffd9a0; white-space: nowrap; text-align: right; }
.hot-feed-section { display: flex; flex-direction: column; gap: 12px; }
.hot-feed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; grid-auto-rows: 1fr; align-items: stretch; }
.note-card {
  border: none; background: #fff; border-radius: 14px; overflow: hidden; text-align: left;
  box-shadow: 0 4px 16px rgba(20,30,50,0.08); display: flex; flex-direction: column; min-width: 0;
  transition: transform 0.2s, box-shadow 0.2s; padding: 0; animation: popIn 0.35s ease both;
  height: 100%; margin: 0;
}
.note-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(20,30,50,0.14); }
.note-card.mine { box-shadow: 0 4px 18px rgba(255,90,60,0.18), inset 0 0 0 1.5px rgba(255,90,60,0.35); }
.note-img { position: relative; width: 100%; aspect-ratio: var(--note-ratio, 4/5); overflow: hidden; background: #eef0f6; }
.note-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.note-city { position: absolute; left: 8px; bottom: 8px; z-index: 2; background: rgba(15,18,28,0.55); color: #fff; font-size: 10px; font-weight: 800; padding: 4px 8px; border-radius: 999px; backdrop-filter: blur(6px); }
.note-top-badge { position: absolute; right: 8px; top: 8px; z-index: 2; background: linear-gradient(135deg, #ffd200, #ff8a00); color: #fff; font-size: 10px; font-weight: 900; padding: 4px 8px; border-radius: 999px; box-shadow: 0 3px 10px rgba(255,150,0,0.4); letter-spacing: 0.02em; }
.note-body { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; flex: 1; }
.note-body b { min-height: 2.7em; font-size: 14px; font-weight: 800; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.note-body p { min-height: 4.5em; margin: 0; font-size: 12px; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.note-tags { display: flex; flex-wrap: wrap; gap: 4px; min-height: 18px; }
.note-tags span { font-size: 10px; font-weight: 700; color: var(--primary-dark); background: var(--primary-soft); border-radius: 999px; padding: 3px 8px; }
.note-foot { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); margin-top: auto; padding-top: 2px; flex-wrap: wrap; }
.note-author { font-weight: 800; color: var(--text); }
.note-persona { font-size: 10px; font-weight: 800; color: #8e44ad; background: #f4ecff; border-radius: 999px; padding: 2px 7px; }
.note-stats { margin-left: auto; font-weight: 600; }
.note-card-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.note-card-region { font-size: 11px; font-weight: 800; color: var(--primary); }
.note-card-date { font-size: 10px; color: var(--muted); }
.note-video-tag { font-size: 10px; font-weight: 800; color: #fff; background: #2196f3; border-radius: 999px; padding: 2px 7px; }
.note-card-mini { flex-direction: row; align-items: stretch; border: 1px solid var(--line); box-shadow: none; }
.note-card-mini .note-img { width: 88px; flex: 0 0 88px; aspect-ratio: 1/1; }
.note-card-mini .note-body { padding: 8px 10px; gap: 4px; }
.note-card-mini .note-body p { -webkit-line-clamp: 2; }
.timeline-note-card { border: none; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 14px rgba(20,30,50,0.08); text-align: left; display: flex; flex-direction: column; }
.me-timeline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.timeline-note-card .note-img { aspect-ratio: 3/4; }
.score-dots { display: inline-flex; gap: 3px; }
.score-dots i { width: 12px; height: 12px; border-radius: 50%; background: #e4e6ef; }
.score-dots i.on { background: linear-gradient(135deg, #ffb300, #ff8f00); box-shadow: 0 1px 3px rgba(255,150,0,0.3); }
.score-dots.small i { width: 8px; height: 8px; }
.polaroid-score { display: block; }
.checkin-score-row, .checkin-tags-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; width: 100%; font-size: 12px; font-weight: 800; color: var(--muted); }
.checkin-score-row { justify-content: center; }
.score-dot { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); font-size: 12px; font-weight: 800; color: var(--muted); transition: all 0.15s; }
.score-dot.on { background: linear-gradient(135deg, #ffb300, #ff8f00); color: #fff; border-color: transparent; box-shadow: 0 3px 8px rgba(255,150,0,0.3); }
.checkin-tag { font-size: 11px; font-weight: 700; padding: 6px 10px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--muted); background: var(--surface); transition: all 0.15s; }
.checkin-tag.on { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-dark); }
.checkin-review-input { width: 100%; min-height: 64px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; outline: none; background: var(--surface); font-size: 14px; resize: vertical; font-family: inherit; }
.checkin-title { font-size: 15px; font-weight: 800; }
.dex-lore { display: flex; flex-direction: column; gap: 8px; border-radius: 14px; padding: 12px; background: linear-gradient(135deg, #f6f8ff, #fff4f0); border: 1px solid var(--line); }
.dex-lore.locked { background: var(--surface-2); }
.lore-lock { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.lore-item { display: flex; flex-direction: column; gap: 3px; }
.lore-item span { font-size: 11px; font-weight: 900; color: var(--primary); letter-spacing: 0.05em; }
.lore-item p { margin: 0; font-size: 13px; color: var(--text); line-height: 1.55; }
.map-trail { fill: none; stroke: #ff5a3c; stroke-width: 3; stroke-dasharray: 9 7; stroke-linecap: round; opacity: 0.85; filter: drop-shadow(0 2px 4px rgba(255,90,60,0.35)); pointer-events: none; }
.map-trail-node { fill: #fff; stroke: #ff5a3c; stroke-width: 3; pointer-events: none; }
.map-trail-node.first { fill: #ff5a3c; }
.map-memory { margin-bottom: 4px; }
.first-bite { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, #fff7ec, #fff); border: 1px solid rgba(255,150,60,0.25); border-radius: 14px; padding: 12px; }
.first-bite-img { width: 58px; height: 58px; flex: 0 0 58px; border-radius: 12px; overflow: hidden; border: 2px solid #fff; box-shadow: 0 4px 12px rgba(255,120,50,0.25); }
.first-bite-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.first-bite-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.first-bite-kicker { font-size: 10px; font-weight: 900; color: #ff7a3c; letter-spacing: 0.06em; }
.first-bite-info b { font-size: 14px; font-weight: 800; }
.first-bite-info p { margin: 0; font-size: 11px; color: var(--muted); }
.first-bite-open { font-size: 12px; font-weight: 800; color: var(--primary-dark); background: var(--primary-soft); border-radius: 999px; padding: 7px 12px; white-space: nowrap; }
.empty-bite { background: var(--surface-2); border-color: var(--line); }
.empty-bite .first-bite-mark { font-size: 22px; font-weight: 900; color: rgba(0,0,0,0.12); }
.popup-first-bite { margin-top: 2px; }
.streak-card { background: linear-gradient(135deg, #fff8f0, #fff); }
.streak-three { display: flex; gap: 10px; }
.streak-three-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border-radius: 12px; background: var(--surface-2); border: 1.5px solid var(--line); font-size: 12px; font-weight: 800; color: var(--muted); transition: all 0.2s; }
.streak-three-item.done { background: linear-gradient(135deg, #fff0ea, #fff); border-color: var(--primary); color: var(--primary-dark); box-shadow: 0 4px 12px rgba(255,90,60,0.15); animation: popIn 0.35s ease; }
.streak-three-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); }
.streak-three-item.done .streak-three-dot { border-color: var(--primary); background: var(--primary); box-shadow: inset 0 0 0 3px #fff; }
.album-book { gap: 26px; }
.album-cover { aspect-ratio: 7/10; border-radius: 6px 18px 18px 6px; background: linear-gradient(155deg, var(--book-cover) 0%, var(--book-spine) 55%, var(--book-cover) 100%); box-shadow: 0 18px 44px rgba(0,0,0,0.22), 0 4px 10px rgba(0,0,0,0.12), inset 0 0 0 1px rgba(255,255,255,0.16); position: relative; overflow: hidden; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 22px; }
.album-cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255,255,255,0.14), transparent 35%), radial-gradient(circle at 20% 15%, rgba(255,255,255,0.22), transparent 42%); pointer-events: none; }
.album-cover-kicker { position: relative; z-index: 2; font-size: 10px; font-weight: 900; letter-spacing: 0.22em; color: rgba(255,255,255,0.75); margin-bottom: 10px; }
.album-cover-region { font-size: 54px; font-weight: 900; letter-spacing: 0.18em; text-shadow: 0 6px 22px rgba(0,0,0,0.3); position: relative; z-index: 2; }
.album-cover-sub { font-size: 12px; font-weight: 700; letter-spacing: 0.24em; color: rgba(255,255,255,0.85); margin-top: 6px; position: relative; z-index: 2; }
.album-cover-bar { width: 62%; height: 6px; border-radius: 99px; background: rgba(255,255,255,0.28); margin-top: 22px; position: relative; z-index: 2; overflow: hidden; }
.album-cover-fill { height: 100%; border-radius: 99px; background: #fff; box-shadow: 0 0 10px rgba(255,255,255,0.6); transition: width 0.7s ease; }
.album-cover-count { font-size: 15px; font-weight: 800; margin-top: 12px; opacity: 0.95; position: relative; z-index: 2; font-variant-numeric: tabular-nums; }
.album-cover-seal { position: relative; z-index: 2; margin-top: 18px; padding: 7px 18px; border: 2px solid rgba(255,255,255,0.8); border-radius: 999px; font-size: 12px; font-weight: 900; letter-spacing: 0.16em; color: #fff; background: rgba(0,0,0,0.12); }
.album-cover-deco { position: absolute; left: -18px; bottom: -18px; width: 170px; height: 170px; opacity: 0.16; filter: brightness(0) invert(1); }
.album-pages { display: flex; flex-direction: column; gap: 22px; }
.album-page-holes { position: absolute; left: 10px; top: 18px; bottom: 18px; width: 12px; z-index: 2; pointer-events: none; background: repeating-linear-gradient(0deg, transparent 0 18px, rgba(120,90,40,0.3) 18px 23px); border-radius: 3px; }
.polaroid-album .polaroid-caption .caption-note { display: block; font-size: 10px; line-height: 1.35; color: rgba(60,42,20,0.62); max-height: 26px; overflow: hidden; }
.polaroid-album .polaroid-score { margin-top: 3px; }
.album-cert { border-radius: 6px 18px 18px 6px; position: relative; overflow: hidden; box-shadow: 0 16px 44px rgba(255,183,0,0.22); }
.album-cert::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,0.55), transparent 45%), radial-gradient(circle at 80% 10%, rgba(255,215,0,0.18), transparent 45%); }
.album-cert-inner { position: relative; z-index: 1; }
.album-cert-stamp { display: inline-block; border: 2px solid var(--book-cover, #b8860b); color: var(--book-cover, #b8860b); padding: 5px 14px; border-radius: 4px; font-size: 12px; font-weight: 900; letter-spacing: 0.18em; transform: rotate(-3deg); }
.album-cert-inner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,0.5) 50%, transparent 70%); background-size: 200% 100%; animation: certShine 3.2s ease-in-out infinite; pointer-events: none; }
.me-persona-chips { display: flex; gap: 5px; margin-top: 8px; flex-wrap: wrap; }
.me-persona-chips span { font-size: 10px; font-weight: 800; color: #7b2fbf; background: #f3ecff; border: 1px solid rgba(123,47,191,0.2); border-radius: 999px; padding: 3px 9px; }
.vote-persona { display: flex; gap: 6px; flex-wrap: wrap; flex-basis: 100%; order: 10; margin-top: 6px; padding: 0; }
.vote-persona span { font-size: 10px; font-weight: 700; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 3px 8px; }
.vote-top-badge { position: absolute; top: 8px; right: 8px; margin: 0; z-index: 2; font-size: 10px; font-weight: 900; color: #fff; background: linear-gradient(135deg, #ffd200, #ff8a00); border-radius: 999px; padding: 4px 10px; box-shadow: 0 3px 10px rgba(255,150,0,0.4); }
.nav-tab[data-tab="hot"] .nav-ic { border-radius: 50% 50% 50% 6px; display: grid; place-items: center; }
.nav-tab[data-tab="hot"] .nav-ic svg { width: 17px; height: 17px; display: block; color: var(--muted); }
.nav-tab[data-tab="hot"].active .nav-ic svg { color: #fff; }
@keyframes popIn { 0% { transform: scale(0.85); opacity: 0.4; } 100% { transform: scale(1); opacity: 1; } }
@keyframes certShine { 0% { background-position: -120% 0; } 100% { background-position: 220% 0; } }
@media (max-width: 560px) {
  .heat-hero-head { flex-direction: column; align-items: flex-start; }
  .hot-fallback-note { display: none; }
  .vote-persona { padding-left: 12px; padding-right: 12px; }
  .hot-feed { gap: 10px; }
  .me-timeline { gap: 10px; }
  .album-cover-region { font-size: 44px; }
}
/* === v85: Premium album spread === */
.album-book { max-width: 560px; gap: 22px; }
.album-page {
  width: calc(100% - 22px) !important;
  margin: 12px 11px 16px;
  aspect-ratio: 7 / 8.4 !important;
  background:
    radial-gradient(ellipse at 14% 4%, rgba(255,255,255,0.92), transparent 40%),
    repeating-linear-gradient(0deg, rgba(126,94,52,0.018) 0 2px, transparent 2px 4px),
    linear-gradient(158deg, #fffdf8 0%, #fdf6ea 48%, #f7ecd8 100%);
  border: 1px solid rgba(120,88,48,0.13);
  border-radius: 16px 24px 24px 16px;
  box-shadow:
    0 20px 46px rgba(38,23,7,0.16),
    0 3px 10px rgba(38,23,7,0.07),
    inset 0 0 0 1px rgba(255,255,255,0.72),
    inset 0 0 40px rgba(255,255,255,0.32);
  outline: none !important;
  outline-offset: 0;
}
.album-page::before {
  left: 13px; top: 0; bottom: 0; width: 7px;
  background:
    repeating-linear-gradient(0deg, rgba(90,60,30,0.16) 0 3px, transparent 3px 9px),
    linear-gradient(90deg, rgba(60,40,20,0.18), rgba(255,255,255,0.14) 70%, transparent);
  border-radius: 4px;
  box-shadow: inset -1px 0 2px rgba(0,0,0,0.08);
}
.album-page::after {
  right: -1px; bottom: -1px; width: 28px; height: 22px;
  background: linear-gradient(135deg, transparent 50%, rgba(0,0,0,0.07) 50%, rgba(0,0,0,0.10) 100%);
  border-radius: 0 0 24px 0;
}
.album-page-holes { left: 20px; opacity: 0.8; }
.album-page-header {
  top: 18px; left: 42px; right: 16px;
  font-size: 12px;
  color: rgba(38,24,10,0.52);
  border-bottom: 1px solid rgba(120,88,48,0.12);
  padding-bottom: 7px;
  z-index: 30;
}
.album-page-header .album-title {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: rgba(38,24,10,0.78);
  letter-spacing: 0.08em;
  gap: 8px;
}
.album-page-header .album-title::before {
  content: ""; width: 8px; height: 8px;
  border: none;
  background: var(--book-cover, #c62828);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(0,0,0,0.05);
  transform: none;
}
.album-page-count { font-size: 12px; font-weight: 800; color: var(--book-cover, #b45309); }
.album-progress { top: 52px; left: 42px; right: 16px; height: 3px; background: rgba(120,88,48,0.09); }
.album-watermark { right: 14px; bottom: 12px; width: 82px; height: 82px; opacity: 0.10; }
.album-footer {
  left: 42px; right: 16px; bottom: 12px;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 10px;
  color: rgba(38,24,10,0.36);
  letter-spacing: 0.1em;
  border-top: 1px solid rgba(120,88,48,0.10);
  padding-top: 6px;
}
.polaroid-album {
  padding: 7px 7px 0;
  background: linear-gradient(180deg, #ffffff 0%, #fffdf8 64%, #faf6ee 100%);
  border: 1px solid rgba(120,88,48,0.09);
  border-radius: 3px;
  box-shadow:
    0 2px 4px rgba(58,38,14,0.08),
    0 12px 26px rgba(58,38,14,0.13),
    inset 0 0 0 1px rgba(255,255,255,0.9);
}
.polaroid-album:hover {
  transform: rotate(0deg) translateY(-4px) scale(1.03) !important;
  box-shadow: 0 16px 34px rgba(58,38,14,0.20), 0 4px 10px rgba(58,38,14,0.10) !important;
  z-index: 24 !important;
}
.polaroid-album .polaroid-photo {
  aspect-ratio: 1 / 1;
  border-radius: 2px;
  background: linear-gradient(160deg, #f4efe7, #e9e2d6);
}
.polaroid-album .polaroid-caption { padding: 7px 5px 12px; gap: 3px; }
.polaroid-album .polaroid-caption b { font-size: 13px; font-weight: 800; color: #2d2317; letter-spacing: 0.02em; }
.polaroid-album .polaroid-caption .handwrite { font-size: 10px; line-height: 1.35; color: rgba(60,42,20,0.58); max-height: 24px; overflow: hidden; }
.polaroid-album .polaroid-caption-row { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.polaroid-album .polaroid-no { font-size: 9px; font-weight: 800; color: rgba(0,0,0,0.30); letter-spacing: 0.08em; }
.polaroid-album .polaroid-tape {
  top: -5px; width: 32px; height: 12px;
  background: var(--tape, rgba(255,255,255,0.55));
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  opacity: 0.85;
}
.polaroid-album .photo-delete-btn { top: 5px; right: 5px; width: 21px; height: 21px; font-size: 13px; background: rgba(20,18,16,0.55); }
.polaroid-album .photo-delete-btn:hover { background: #d32f2f; }
.scrapbook-tools {
  max-width: 560px;
  display: flex; flex-direction: column; gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(250,244,234,0.75));
  border: 1px solid rgba(120,88,48,0.12);
  box-shadow: 0 4px 14px rgba(38,23,7,0.05);
}
.sticker-bar { justify-content: center; gap: 10px; }
.sticker-bar-label { font-size: 11px; font-weight: 800; color: rgba(38,24,10,0.5); letter-spacing: 0.06em; }
.sticker-add { width: 34px; height: 34px; border-radius: 10px; background: #fff; box-shadow: 0 2px 6px rgba(38,23,7,0.08); }
.border-picker { justify-content: center; gap: 8px; }
.border-btn { padding: 6px 12px; border-radius: 999px; font-size: 11px; }
.undiscovered-section { max-width: 560px; margin: 2px auto 0; width: 100%; }
.undiscovered-head span:first-child { font-size: 15px; letter-spacing: 0.04em; }
.undiscovered-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
.undiscovered-card {
  padding: 8px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(120,88,48,0.10);
  box-shadow: 0 3px 10px rgba(38,23,7,0.05);
}
.undiscovered-card:hover { transform: translateY(-3px); border-color: var(--book-cover, #c62828); }
.undiscovered-img { border-radius: 8px; }
@media (max-width: 560px) {
  .undiscovered-grid { grid-template-columns: repeat(3, 1fr); }
  .album-page { width: calc(100% - 16px) !important; margin: 10px 8px 14px; }
}
/* === v88: province page, wishlist, note loop, badge wall, skeleton, motion === */
@keyframes tabIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.tab-panel { animation: tabIn 0.26s cubic-bezier(.2,1,.3,1) both; }
body.no-scroll { overflow: hidden; }

.collect-next { margin: 0; font-size: 12px; font-weight: 700; color: var(--primary); }
.today-reason { margin: 0 0 8px !important; font-size: 12px; font-weight: 700; color: #ffe08a; }

.wish-card { gap: 12px; }
.wish-empty { margin: 0; }
.wish-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wish-item { display: flex; align-items: center; gap: 10px; text-align: left; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); transition: all .15s; min-width: 0; }
.wish-item:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.wish-item-img { flex: 0 0 54px; width: 54px; height: 54px; border-radius: 10px; overflow: hidden; }
.wish-item-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wish-item-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.wish-item-body b { font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wish-item-body small { font-size: 11px; color: var(--muted); }
.wish-item-go { flex: 0 0 auto; font-size: 11px; font-weight: 800; color: var(--primary); background: var(--primary-soft); border-radius: 999px; padding: 5px 9px; }

.badge-card { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 104px; padding: 12px 8px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); text-align: center; }
.badge-card.unlocked { border-color: rgba(255,138,60,.4); background: linear-gradient(160deg, #fff8ec, #ffe9d6); box-shadow: 0 6px 18px rgba(255,138,60,.16); }
.badge-card.locked { opacity: .55; filter: grayscale(.7); }
.badge-card-icon { width: 42px; height: 42px; display: grid; place-items: center; }
.badge-card-icon svg { width: 42px; height: 42px; }
.badge-card-name { font-size: 12px; font-weight: 800; color: var(--text); }
.badge-card-meta { font-size: 10px; color: var(--muted); font-weight: 700; }

.skeleton { position: relative; overflow: hidden; background: #e9ebf4; border-radius: 12px; }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); animation: shimmer 1.4s infinite; }
.skeleton-hero { height: 260px; border-radius: 20px; }
.skeleton-food { height: 210px; }
.skeleton-region { height: 96px; }
.skeleton-note { height: 300px; }
.skeleton-album { height: 420px; }

.province-page { position: fixed; inset: 0; z-index: 55; background: var(--bg); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.province-body { min-height: 100%; }
.province-hero { position: relative; min-height: 280px; display: flex; align-items: flex-end; padding: 18px 20px 20px; overflow: hidden; background: linear-gradient(135deg, var(--province-color), var(--province-accent)); color: #fff; }
.province-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .5; filter: saturate(1.1); }
.province-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.62)); }
.province-hero-deco { position: absolute; right: 8px; bottom: -24px; width: 170px; opacity: .22; pointer-events: none; }
.province-back { position: absolute; top: 16px; left: 16px; z-index: 5; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.92); color: #1a1d29; font-size: 20px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.province-hero-info { position: relative; z-index: 2; width: 100%; }
.province-hero-kicker { font-size: 11px; font-weight: 900; letter-spacing: .08em; color: rgba(255,255,255,.72); }
.province-hero-info h2 { font-size: 34px; font-weight: 900; margin: 6px 0 4px; text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.province-hero-info p { margin: 0 0 10px; font-size: 13px; color: rgba(255,255,255,.85); font-weight: 600; }
.province-progress { height: 8px; border-radius: 999px; background: rgba(255,255,255,.25); overflow: hidden; max-width: 320px; }
.province-progress i { display: block; height: 100%; border-radius: 999px; background: #fff; box-shadow: 0 0 14px rgba(255,255,255,.8); }
.province-first { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 7px 13px; font-size: 12px; }
.province-first span { font-weight: 800; }
.province-first b { font-weight: 900; }
.province-first small { color: rgba(255,255,255,.75); }
.province-hero-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.province-hero-stats span { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.9); background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); padding: 5px 10px; border-radius: 999px; }
.province-hero-stats b { font-size: 14px; font-weight: 900; margin-right: 2px; }
.province-top-bite {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 12px;
  background: rgba(255,193,7,.95); color: #4a2c00; border-radius: 999px; padding: 7px 13px;
  font-size: 12px; font-weight: 800; box-shadow: 0 4px 14px rgba(255,193,7,.35);
}
.province-top-bite span { opacity: .75; font-weight: 700; }
.province-top-bite b { font-weight: 900; }
.province-top-bite small { opacity: .8; font-weight: 700; }
.province-next-bite {
  display: inline-flex; align-items: center; gap: 8px; margin: 10px 0 0;
  background: rgba(255,255,255,.96); color: #1a1d29; border-radius: 999px; padding: 8px 14px;
  font-size: 12px; font-weight: 800; box-shadow: 0 6px 18px rgba(0,0,0,.22); transition: transform .15s, box-shadow .15s;
}
.province-next-bite:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.3); }
.province-next-bite span { color: var(--primary); font-weight: 900; }
.province-next-bite b { font-weight: 900; }
.province-next-bite small { color: var(--muted); font-weight: 700; }
.province-content { max-width: 680px; margin: 0 auto; padding: 16px 16px 40px; display: flex; flex-direction: column; gap: 16px; }
.province-album { max-width: 100%; }
.province-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@keyframes popIn {
  from { opacity: 0; transform: translateY(10px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.checkin-done-card, .note-compose { display: flex; gap: 12px; padding: 14px; border-radius: 14px; background: linear-gradient(135deg, #fff7e8, #fff0e2); border: 1.5px solid rgba(255,138,60,.35); align-items: center; animation: popIn .3s cubic-bezier(.2,1,.3,1); }
.checkin-done-img { flex: 0 0 68px; width: 68px; height: 68px; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.checkin-done-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.checkin-done-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.checkin-done-kicker { font-size: 11px; font-weight: 900; color: #e65100; letter-spacing: .04em; }
.checkin-done-body b { font-size: 15px; font-weight: 800; }
.checkin-done-body p { margin: 0; font-size: 12px; color: var(--muted); }
.checkin-done-actions { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.note-compose { flex-direction: column; align-items: stretch; }
.note-compose-preview { display: flex; align-items: center; gap: 10px; }
.note-compose-preview img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.note-compose-preview span { font-size: 12px; font-weight: 700; color: var(--text); }

.crop-pick { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.crop-pick > span { font-size: 11px; font-weight: 700; color: var(--muted); }
.crop-pick button { font-size: 11px; font-weight: 700; padding: 6px 10px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--muted); background: var(--surface); }
.crop-pick button.active { color: #fff; background: linear-gradient(135deg, #ff5a3c, #ff7a3c); border-color: transparent; }

.dex-action-row { display: flex; gap: 10px; align-items: stretch; }
.dex-wish-btn, .dex-vote-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 14px; border: 1.5px solid var(--line); padding: 12px 10px; font-weight: 800; font-size: 13px; background: var(--surface); color: var(--text); transition: all .16s; }
.dex-wish-btn svg { width: 18px; height: 18px; }
.dex-wish-btn:hover, .dex-wish-btn.wished { border-color: #ff5f8f; color: #e63f6f; background: #fff0f4; }
.dex-vote-btn { flex: 1.2; }
.dex-vote-btn.voted { border-color: rgba(255,90,60,.5); background: var(--primary-soft); color: var(--primary); }

.similar-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.similar-card { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); transition: all .16s; min-width: 0; }
.similar-card:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: var(--shadow-sm); }
.similar-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 10px; display: block; }
.similar-card b { font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.similar-card small { font-size: 11px; color: var(--muted); font-weight: 700; }

@media (max-width: 520px) {
  .wish-grid { grid-template-columns: 1fr; }
  .similar-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .province-hero { min-height: 240px; }
  .province-content { padding: 12px 12px 32px; }
  .checkin-done-card { align-items: flex-start; }
}

/* === v90: compact home + fixed-slot collection book === */
.today-card .today-progress {
  padding: 8px 14px 10px;
  background: linear-gradient(160deg, #fffdf7, #fff5e9);
  border-top: 1px solid rgba(255,138,60,.12);
}
.today-card .collect-bar { gap: 6px; }
.daily-card .streak-three { margin-bottom: 12px; }
.blindbox-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; font-weight: 800; color: var(--muted);
  padding: 2px 0 8px; border-top: 1px solid var(--line); margin-top: 4px;
}
.blindbox-head span:last-child { color: var(--primary); }

.vote-entry { padding: 0; overflow: hidden; }
.vote-entry-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border: 0; text-align: left;
  background: linear-gradient(135deg, #fff8e6, #fff0dc); color: var(--text);
}
.vote-entry-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vote-entry-copy b { font-size: 13px; font-weight: 900; }
.vote-entry-copy small { font-size: 11px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vote-entry-arrow {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-weight: 900;
  background: linear-gradient(135deg, #ff5a3c, #ff7a3c);
  transition: transform .15s;
}
.vote-entry-btn:hover .vote-entry-arrow { transform: translateX(2px); }

@media (min-width: 680px) {
  #tab-home > .today-card { grid-column: 1 / -1; }
  #tab-home > .daily-card { grid-column: 1; }
  #tab-home > .wish-card { grid-column: 2; }
  #tab-home > .vote-entry { grid-column: 1 / -1; }
  #tab-home > .card:last-child { grid-column: 1 / -1; }
}

.vote-card { max-width: 100%; overflow: hidden; min-width: 0; }
.vote-tabs-wrap { position: relative; min-width: 0; }
.vote-tabs {
  display: flex; flex-wrap: nowrap; overflow-x: auto; min-width: 0; width: 100%;
  scrollbar-width: none; -ms-overflow-style: none; scroll-behavior: smooth;
  touch-action: pan-x; -webkit-overflow-scrolling: touch;
}
.vote-tabs::-webkit-scrollbar { display: none; }
.vote-tabs-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.96); border: 1px solid var(--line);
  color: var(--muted); font-size: 15px; font-weight: 900; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: color .15s, transform .15s;
}
.vote-tabs-arrow:hover { color: var(--primary); transform: translateY(-50%) scale(1.08); }
.vote-tabs-arrow.left { left: -4px; }
.vote-tabs-arrow.right { right: -4px; }

/* One-tap wish from feed / hot notes */
.card-wish-quick, .note-wish-quick {
  position: absolute; z-index: 3; width: 30px; height: 30px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(255,255,255,.94); color: #c8cdd8; font-size: 15px; font-weight: 900;
  box-shadow: 0 2px 8px rgba(0,0,0,.14); cursor: pointer;
  transition: transform .15s, color .15s, background .15s;
}
.card-wish-quick { bottom: 8px; left: 8px; }
.note-wish-quick { top: 8px; left: 8px; }
.card-wish-quick:hover, .note-wish-quick:hover { transform: scale(1.12); }
.card-wish-quick.on, .note-wish-quick.on {
  color: #e63f6f; background: #fff0f4;
  animation: heartPop .35s cubic-bezier(.2,1,.3,1);
}
@keyframes heartPop {
  0% { transform: scale(.7); }
  60% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

/* Fixed-slot collection book */
.album-sheet {
  position: relative; width: 100%; min-height: 440px;
  background: var(--album-bg, #fffdf4);
  border: 2px solid rgba(120,90,50,.12);
  border-radius: 6px 22px 22px 6px;
  box-shadow: -12px 18px 40px rgba(38,23,7,.16), inset 0 0 0 1px rgba(255,255,255,.6);
  outline: 8px solid var(--book-cover, #4a3520); outline-offset: 2px;
  padding: 18px 16px 22px; overflow: hidden;
  animation: pageIn .32s cubic-bezier(.2,1,.3,1);
}
@keyframes pageIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }
.album-sheet-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px; font-weight: 800; color: rgba(0,0,0,.45);
  padding-bottom: 4px;
}
.album-sheet .album-progress {
  display: inline-flex; align-items: center; gap: 6px;
  position: static; top: auto; left: auto; right: auto; width: auto;
  height: auto; background: none !important; margin: 4px 0 12px; overflow: visible;
}
.album-sheet .album-progress i {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: rgba(0,0,0,.12); border: 1px solid rgba(0,0,0,.08);
}
.album-sheet .album-progress i.on {
  background: var(--region-color, #ff5a3c);
  border-color: #fff; box-shadow: 0 0 8px var(--region-color, #ff5a3c);
}
.album-sheet .album-watermark { position: absolute; right: 10px; bottom: 0; width: 90px; opacity: .08; pointer-events: none; }
.album-sheet .album-footer {
  position: absolute; right: 14px; bottom: 8px;
  display: flex; gap: 10px; font-size: 9px; font-weight: 800; color: rgba(0,0,0,.35);
}

.slot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; position: relative; z-index: 2; }
.slot-cat-row { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.slot-cat-title { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 900; color: var(--region-color, #ff5a3c); letter-spacing: .04em; }
.slot-cat-title i { flex: 1; height: 1px; background: linear-gradient(90deg, currentColor, transparent); opacity: .4; }
.slot-cat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.slot-row-title {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 900; color: var(--region-color, #ff5a3c); letter-spacing: .04em;
}
.slot-row-title i { flex: 1; height: 1px; background: linear-gradient(90deg, currentColor, transparent); opacity: .35; }

.collect-slot {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  padding: 0; border: 0; background: none; text-align: left; cursor: pointer;
  grid-column: auto;
}
.slot-grid .collect-slot.empty { grid-column: auto; }
.collect-slot .slot-photo {
  position: relative; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden;
  background: rgba(0,0,0,.05);
}
.collect-slot.empty .slot-photo {
  border: 1.5px dashed rgba(140,150,170,.55); background: rgba(140,150,170,.06);
}
.collect-slot.rarity-rare.empty .slot-photo {
  border: 1.5px dashed rgba(255,183,0,.8); background: rgba(255,183,0,.05);
}
.collect-slot.rarity-hidden.empty .slot-photo {
  border: 1.5px dashed rgba(255,183,0,.95);
  background: linear-gradient(135deg, rgba(255,183,0,.12), rgba(255,215,130,.04));
  box-shadow: 0 0 18px rgba(255,183,0,.12);
}
.collect-slot.lit .slot-photo {
  border: 2px solid rgba(255,255,255,.9); box-shadow: 0 4px 14px rgba(0,0,0,.14);
}
.collect-slot .slot-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.collect-slot .slot-ghost {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #b9c0cd;
}
.collect-slot .slot-ghost svg { width: 52%; height: 52%; opacity: .8; }
.slot-seal {
  position: absolute; right: 8px; bottom: 8px; width: 26px; height: 26px;
  border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 900; color: #fff;
  background: rgba(255,90,60,.88); border: 1.5px solid rgba(255,255,255,.75);
}
.collect-slot.empty .slot-seal { background: rgba(140,150,170,.5); }
.slot-rarity-mark {
  position: absolute; top: 8px; left: 8px; font-size: 9px; font-weight: 800; color: #fff;
  background: rgba(76,175,80,.92); padding: 2px 7px; border-radius: 999px;
}
.collect-slot.rarity-rare .slot-rarity-mark { background: rgba(33,150,243,.92); }
.collect-slot.rarity-hidden .slot-rarity-mark { background: rgba(156,39,176,.92); }
.slot-caption { padding: 8px 3px 0; min-width: 0; }
.slot-cat {
  display: inline-block; max-width: 100%; margin-bottom: 3px;
  font-size: 9px; font-weight: 900; line-height: 1.4;
  color: var(--region-color, #ff5a3c); background: rgba(255,255,255,.75);
  border: 1px solid rgba(0,0,0,.08); border-radius: 999px; padding: 1px 7px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.collect-slot.empty .slot-cat { color: #8a90a0; }
.slot-caption b { display: block; font-size: 12px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-caption .handwrite {
  display: block; margin-top: 3px; font-size: 11px; line-height: 1.35;
  color: #6b4f2a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.collect-slot.empty .slot-caption .handwrite { color: #aab0bd; }

/* Light-up ritual */
.collect-slot.just-lit .slot-photo img { animation: slotLight 1.1s ease-out both; }
.collect-slot.just-lit .slot-seal { animation: stampIn .4s cubic-bezier(.2,1,.3,1) .35s both; }
.collect-slot.just-lit.last .slot-photo::before {
  content: ""; position: absolute; inset: -8px; z-index: 1; pointer-events: none;
  border-radius: 20px;
  background: radial-gradient(circle, rgba(255,215,0,.6), rgba(255,183,0,.18) 42%, transparent 70%);
  animation: lastGold 1.6s ease-out both;
}
.collect-slot.just-lit.last .slot-seal {
  width: 36px; height: 36px; font-size: 14px;
  background: linear-gradient(135deg, #ffd700, #ff8a00);
  box-shadow: 0 0 20px rgba(255,183,0,.9), 0 3px 8px rgba(0,0,0,.2);
  animation: stampIn .45s cubic-bezier(.2,1,.3,1) .55s both;
}
@keyframes lastGold {
  0% { opacity: 0; transform: scale(.8); }
  30% { opacity: 1; transform: scale(1.08); }
  100% { opacity: 0; transform: scale(1.2); }
}
.collect-slot.just-lit.first .slot-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background:
    radial-gradient(circle at 28% 24%, rgba(255,255,255,.95), transparent 40%),
    radial-gradient(circle at 72% 38%, rgba(255,236,150,.85), transparent 34%);
  animation: sparkFade 1.4s ease-out both;
}
.slot-spark { display: none; }
.collect-slot.just-lit .slot-spark {
  display: block; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background:
    radial-gradient(circle at 18% 20%, rgba(255,215,64,.95) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 12%, rgba(255,120,80,.9) 0 2px, transparent 3px),
    radial-gradient(circle at 86% 66%, rgba(255,215,64,.9) 0 2px, transparent 3px),
    radial-gradient(circle at 10% 78%, rgba(255,255,255,.95) 0 2px, transparent 3px);
  animation: sparkFade 1.2s ease-out both;
}
@keyframes slotLight {
  0% { filter: grayscale(1) brightness(.6); transform: scale(1.05); }
  45% { filter: grayscale(.75) brightness(1.1); }
  100% { filter: grayscale(0) brightness(1); transform: scale(1); }
}
@keyframes stampIn {
  0% { transform: scale(1.8) rotate(-18deg); opacity: 0; }
  60% { transform: scale(.92) rotate(4deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); }
}
@keyframes sparkFade {
  0% { opacity: 0; transform: scale(.7); }
  30% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0; transform: scale(1.18); }
}

.album-page-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; gap: 8px;
}
.album-page-btn {
  border: 1.5px solid var(--line); background: var(--surface); color: var(--text);
  font-size: 12px; font-weight: 800; border-radius: 999px; padding: 7px 12px;
  transition: all .15s;
}
.album-page-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.album-page-btn:disabled { opacity: .45; cursor: default; }
.album-page-nav span { font-size: 12px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }

.bg-btn {
  width: 26px; height: 26px; border-radius: 8px; border: 2px solid rgba(0,0,0,.12);
  background: var(--bg); cursor: pointer; transition: transform .15s, border-color .15s;
}
.bg-btn:hover { transform: scale(1.1); }
.bg-btn.active { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(255,90,60,.18); }

/* Highlight moments */
.blind-card.flipped.new .blind-card-img img {
  animation: blindFlash .8s ease-out;
}
@keyframes blindFlash {
  0% { filter: grayscale(1) brightness(.5); transform: scale(.96); }
  40% { filter: grayscale(0) brightness(1.25); }
  100% { filter: none; transform: scale(1); }
}
.vote-btn.just-voted { animation: votePop .45s cubic-bezier(.2,1,.3,1); }
@keyframes votePop {
  0% { transform: scale(1); }
  45% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

@media (max-width: 560px) {
  .slot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 8px; }
  .album-sheet { min-height: 400px; padding: 14px 12px 20px; }
  .slot-caption b { font-size: 11px; }
  .slot-caption .handwrite { font-size: 10px; }
}

/* v91: flip-book album */
.album-book { align-items: center; }
.album-flip {
  position: relative; width: 100%; max-width: 440px;
  aspect-ratio: 7 / 10; margin: 0 auto;
  perspective: 1600px; transform-style: preserve-3d;
}
.album-flip .face {
  position: absolute; inset: 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transform-style: preserve-3d; transition: transform .75s cubic-bezier(.4,.1,.2,1);
}
.album-flip .album-cover-face {
  display: flex !important; z-index: 2; transform: rotateY(0deg);
}
.album-flip .album-sheet-face {
  transform: rotateY(180deg); z-index: 1;
  overflow-y: auto; min-height: 0; height: 100%;
}
.album-flip.open .album-cover-face { transform: rotateY(-180deg); z-index: 1; }
.album-flip.open .album-sheet-face { transform: rotateY(0deg); z-index: 2; }
.album-flip .album-cover {
  flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 28px 20px;
}
.album-open-btn {
  margin-top: 18px; border: 0; border-radius: 999px; padding: 10px 22px;
  background: #fff; color: #b8860b; font-size: 13px; font-weight: 900;
  box-shadow: 0 6px 18px rgba(0,0,0,.18); cursor: pointer; transition: transform .15s;
}
.album-open-btn:hover { transform: translateY(-2px); }
.album-close-btn {
  position: absolute; top: 10px; right: 10px; z-index: 6;
  border: 1px solid rgba(0,0,0,.1); background: rgba(255,255,255,.92);
  color: var(--muted); font-size: 11px; font-weight: 800; border-radius: 999px;
  padding: 5px 10px; cursor: pointer;
}

/* Feed grouped by region */
#food-feed { columns: auto; display: flex; flex-direction: column; }
.feed-region-group { margin-bottom: 12px; min-width: 0; }
.feed-region-head {
  width: 100%; display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 12px;
  font-size: 13px; font-weight: 800; color: var(--text); text-align: left;
  transition: border-color .15s, transform .15s;
}
.feed-region-head:hover { border-color: var(--primary); transform: translateY(-1px); }
.feed-region-head::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--dot, var(--muted)); flex: 0 0 auto;
}
.feed-region-thumb {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 9px;
  object-fit: cover; border: 2px solid var(--dot, var(--muted));
  background: var(--surface-2);
}
.feed-region-count { margin-left: auto; font-size: 11px; color: var(--muted); font-weight: 700; }
.feed-region-arrow { flex: 0 0 auto; font-size: 12px; color: var(--muted); transition: transform .25s; }
.feed-region-group.open .feed-region-arrow { transform: rotate(180deg); }
.feed-region-body {
  display: grid; grid-template-rows: 1fr;
  transition: grid-template-rows .3s cubic-bezier(.2,1,.3,1);
}
.feed-region-body.collapsed { grid-template-rows: 0fr; }
.feed-region-inner { overflow: hidden; min-height: 0; padding-top: 10px; }
.food-row {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.food-row::-webkit-scrollbar { display: none; }
.food-row .food-card { flex: 0 0 126px; width: 126px; margin: 0; }
.food-row .food-card { flex: 0 0 116px; width: 116px; }
.food-row .food-card .card-content { padding: 8px 9px 10px; }
.food-row .food-card .card-title { font-size: 12px; }
.food-row .food-card .card-sub { font-size: 10px; }

/* v92: compact hot hero, hardened flip faces, feed previews */
.album-flip .album-cover-face,
.album-flip .album-sheet-face {
  position: absolute; inset: 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transform-style: preserve-3d; transition: transform .75s cubic-bezier(.4,.1,.2,1);
}
.hot-hero { padding: 10px 12px; gap: 6px; border-radius: 16px; }
.heat-hero-title h3 { font-size: 18px; }
.hot-seg-btn { padding: 5px 10px; font-size: 11px; }
.hot-option-row { gap: 6px; }
.hot-city-select { padding: 5px 10px; font-size: 12px; }
.hot-sort-btn { padding: 5px 12px; font-size: 11px; }
.weekly-tops { gap: 6px; }
.weekly-tops-head { display: none; }
.weekly-tops-list { flex-direction: row; align-items: stretch; gap: 6px; }
.weekly-top-lead { grid-template-columns: 52px minmax(0, 1fr); gap: 8px; border-radius: 12px; padding: 6px 8px; flex: 2; min-width: 0; }
.weekly-top-lead-img { width: 52px; height: 52px; border-radius: 10px; }
.weekly-top-lead-body b { font-size: 13px; }
.weekly-top-lead-kicker { font-size: 9px; letter-spacing: .08em; }
.weekly-top-lead-votes { margin-top: 0; font-size: 10px; }
.weekly-top-lead-votes b { font-size: 13px; }
.weekly-top-mini { grid-template-columns: 20px 34px minmax(0, 1fr) auto; gap: 6px; border-radius: 10px; padding: 5px 8px; flex: 1; min-width: 0; }
.weekly-top-img { width: 34px; height: 34px; border-radius: 8px; }
.weekly-top-main b { font-size: 11px; }
.weekly-top-main small { font-size: 9px; }
.weekly-top-votes { font-size: 10px; }
.weekly-rank { width: 20px; height: 20px; font-size: 10px; }
#vote-section { margin-top: 10px; }

@media (max-width: 560px) {
  .weekly-tops-list { gap: 4px; }
  .weekly-top-lead { grid-template-columns: 42px minmax(0, 1fr); }
  .weekly-top-lead-img { width: 42px; height: 42px; }
  .weekly-top-img { width: 28px; height: 28px; }
  .weekly-top-mini { grid-template-columns: 18px 28px minmax(0, 1fr) auto; }
  .feed-region-thumb { width: 28px; height: 28px; }
}

/* v93: map trail + tighter hot hero on mobile */
.map-trail-stats { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.trail-stat { display: flex; flex-direction: column; gap: 2px; min-width: 76px; }
.trail-stat b { font-size: 22px; font-weight: 900; color: var(--primary); font-variant-numeric: tabular-nums; }
.trail-stat span { font-size: 11px; color: var(--muted); font-weight: 700; }
.trail-progress { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 5px; }
.trail-progress .progress-track { height: 8px; }
.trail-progress small { font-size: 11px; color: var(--muted); font-weight: 700; }
.map-trail-recs { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.trail-rec {
  display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 9px 11px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface-2); transition: all .15s; min-width: 0;
}
.trail-rec:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.trail-rec-img { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 10px; overflow: hidden; background: var(--surface); }
.trail-rec-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trail-rec-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.trail-rec-body b { font-size: 13px; font-weight: 900; }
.trail-rec-body small { font-size: 11px; color: var(--muted); line-height: 1.35; }
.trail-rec-go { flex: 0 0 auto; font-size: 11px; font-weight: 800; color: var(--primary); background: var(--primary-soft); border-radius: 999px; padding: 5px 10px; }

@media (max-width: 560px) {
  .hot-hero { padding: 8px 10px; gap: 5px; }
  .heat-hero-head { flex-direction: row; flex-wrap: wrap; }
  .heat-hero-title h3 { font-size: 15px; }
  .hot-seg-btn { padding: 4px 8px; font-size: 10px; }
  .hot-option-row { gap: 4px; }
  .weekly-top-lead { grid-template-columns: 36px minmax(0, 1fr); }
  .weekly-top-lead-img { width: 36px; height: 36px; }
  .weekly-top-img { width: 24px; height: 24px; }
  .weekly-top-mini { grid-template-columns: 16px 24px minmax(0, 1fr) auto; }
  .weekly-top-main b { font-size: 9px; }
  .weekly-top-votes { font-size: 9px; }
  .weekly-rank { width: 16px; height: 16px; font-size: 9px; }
}

/* v97: author system, milestone, highlight moments */
.note-author-row { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; min-width: 0; }
.author-avatar {
  flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--av, #8a5cf6); color: #fff; font-size: 13px; font-weight: 900;
  border: 2px solid #fff; box-shadow: 2px 2px 0 rgba(20,22,43,.22); cursor: pointer;
}
.author-name { font-size: 12px; font-weight: 800; color: var(--text); cursor: pointer; white-space: nowrap; }
.author-name:hover { color: var(--primary); }
.author-persona {
  font-size: 10px; font-weight: 800; color: #7b2fbf; background: #f3ecff;
  border: 1px solid rgba(123,47,191,.2); border-radius: 999px; padding: 2px 8px; white-space: nowrap;
}
.author-followed {
  font-size: 10px; font-weight: 800; color: #e63f6f; background: #fff0f4;
  border: 1px solid rgba(230,63,111,.25); border-radius: 999px; padding: 2px 8px; white-space: nowrap;
}
.note-stats { margin-left: auto; font-size: 10px; color: var(--muted); font-weight: 700; white-space: nowrap; }
.note-topic {
  display: inline-block; margin-bottom: 4px; font-size: 10px; font-weight: 800;
  color: #c2410c; background: #fff4e6; border: 1px solid rgba(255,138,60,.3);
  border-radius: 999px; padding: 2px 8px;
}

.author-body { display: flex; flex-direction: column; gap: 14px; padding: 0 20px 20px; }
.author-panel { max-width: 430px; }
.author-hero {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  background: linear-gradient(160deg, var(--av, #8a5cf6), #2b2438); color: #fff;
  border-radius: 16px; padding: 22px 16px; position: relative; overflow: hidden;
}
.author-big-avatar {
  width: 72px; height: 72px; border-radius: 50%; background: #fff; color: var(--av, #8a5cf6);
  display: grid; place-items: center; font-size: 30px; font-weight: 900;
  box-shadow: 0 8px 20px rgba(0,0,0,.22);
}
.author-hero h3 { font-size: 20px; font-weight: 900; margin: 0; }
.author-sig { font-size: 12px; color: rgba(255,255,255,.82); margin: 0; }
.author-meta { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.author-meta span {
  font-size: 10px; font-weight: 800; background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.24); border-radius: 999px; padding: 3px 10px;
}
.author-follow-btn {
  margin-top: 4px; border: 2px solid #fff; background: var(--av, #8a5cf6); color: #fff;
  font-size: 13px; font-weight: 900; border-radius: 999px; padding: 8px 22px;
  box-shadow: 3px 4px 0 rgba(0,0,0,.22); cursor: pointer; transition: all .15s;
}
.author-follow-btn:hover { transform: translateY(-2px); }
.author-follow-btn.followed { background: #fff; color: var(--av, #8a5cf6); }
.author-note-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.milestone { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; pointer-events: none; }
.milestone.hidden { display: none; }
.milestone-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: #fff; border: 3px solid #ffd700; border-radius: 18px; padding: 22px 34px;
  box-shadow: 0 18px 50px rgba(0,0,0,.25), 0 0 0 4px rgba(255,215,0,.25);
  animation: milestonePop .7s cubic-bezier(.2,1,.3,1); text-align: center;
}
.milestone-seal {
  border: 2px solid #d32f2f; color: #d32f2f; border-radius: 50% 45% 52% 48% / 48% 55% 45% 52%;
  padding: 6px 10px; font-size: 11px; font-weight: 900; transform: rotate(-8deg);
}
.milestone-card b { font-size: 24px; font-weight: 900; color: #7a5c00; }
.milestone-card small { font-size: 11px; color: var(--muted); font-weight: 700; }
@keyframes milestonePop {
  0% { transform: scale(.4) rotate(-6deg); opacity: 0; }
  60% { transform: scale(1.08) rotate(2deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); }
}

.blind-card.flipped.reveal-rare .blind-card-img { background: #14142a; }
.blind-card.flipped.reveal-rare .blind-card-img img,
.blind-card.flipped.reveal-rare .blind-card-no,
.blind-card.flipped.reveal-rare .blind-card-body { opacity: 0; animation: rareReveal .5s ease forwards; animation-delay: .7s; }
.blind-card.flipped.reveal-rare::after {
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,215,0,.95) 50%, transparent 70%);
  background-size: 250% 100%; animation: goldSweep 1s ease .3s forwards;
}
.blind-card.flipped.reveal-rare { animation: cardShake .5s ease .95s; }
@keyframes goldSweep {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes rareReveal {
  0% { opacity: 0; transform: scale(1.04); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes cardShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}

.checkin-done { position: relative; }
.checkin-photo { animation: bitePhoto 1.1s ease both; }
@keyframes bitePhoto {
  0% { filter: grayscale(1) brightness(.75); }
  55% { filter: grayscale(.3) brightness(1.05); }
  100% { filter: none; }
}
.checkin-bite-stamp {
  position: absolute; left: 10px; bottom: 10px; z-index: 3;
  color: #fff; font-size: 11px; font-weight: 900; letter-spacing: .1em;
  background: rgba(20,22,43,.72); border: 1.5px solid rgba(255,255,255,.85);
  border-radius: 8px; padding: 4px 10px; transform: rotate(-6deg);
  animation: stampIn .45s cubic-bezier(.2,1,.3,1) .5s both;
}

.collect-slot.just-lit.last .slot-photo img { animation: lastLight 1.2s ease-out both; }
@keyframes lastLight {
  0% { filter: brightness(1.5) grayscale(1); transform: scale(1.06); }
  25% { filter: brightness(1.9) grayscale(1); }
  55% { filter: grayscale(0) brightness(1.08); }
  100% { filter: none; transform: scale(1); }
}

@media (max-width: 520px) {
  .author-note-grid { grid-template-columns: 1fr; }
}

/* v98: real-person feed + first-run guide */
.note-foot-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.note-like-btn {
  display: inline-flex; align-items: center; gap: 5px; color: var(--muted);
  font-size: 12px; font-weight: 800; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: 4px 10px; transition: all .15s;
}
.note-like-btn i { font-style: normal; font-size: 13px; }
.note-like-btn:hover { border-color: #ff5f8f; color: #e63f6f; }
.note-like-btn.liked { background: #fff0f4; border-color: #ff5f8f; color: #e63f6f; animation: heartPop .3s; }
.note-foot-row .note-stats { margin-left: auto; }

.author-job { font-size: 12px; color: rgba(255,255,255,.75); margin: 0; font-weight: 700; }
.author-catch { font-size: 13px; color: #ffe9a8; margin: 0; font-family: "KaiTi", "STKaiti", "楷体", serif; }
.author-eats { font-size: 11px; color: rgba(255,255,255,.7); margin: 0; }
.author-followers { display: flex; gap: 16px; }
.author-followers span { font-size: 12px; color: rgba(255,255,255,.85); }
.author-followers b { font-size: 16px; font-weight: 900; margin-right: 4px; }

.empty-actions { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.empty-action {
  border: 1.5px solid var(--primary); background: var(--primary-soft); color: var(--primary);
  border-radius: 999px; padding: 8px 16px; font-size: 12px; font-weight: 800; cursor: pointer;
  transition: all .15s;
}
.empty-action:hover {
  background: linear-gradient(135deg, #ff5a3c, #ff7a3c); color: #fff;
  border-color: transparent; transform: translateY(-1px);
}

.guide { position: fixed; inset: 0; z-index: 120; }
.guide.hidden { display: none; }
.guide-backdrop { position: absolute; inset: 0; background: rgba(10,15,30,.55); backdrop-filter: blur(2px); pointer-events: none; }
.guide-spot {
  position: absolute; border-radius: 18px;
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(255,90,60,.75), 0 0 30px rgba(255,90,60,.5);
  transition: all .3s cubic-bezier(.2,1,.3,1); pointer-events: none;
}
.guide-card {
  position: absolute; width: 300px; background: #fff; border-radius: 16px;
  padding: 14px 16px; box-shadow: 0 20px 60px rgba(0,0,0,.3), 0 0 0 3px #fff;
  z-index: 2; pointer-events: auto; animation: popIn .25s ease;
}
.guide-step-label { font-size: 10px; font-weight: 900; color: var(--primary); letter-spacing: .08em; }
.guide-card p { font-size: 13px; line-height: 1.5; color: var(--text); margin: 6px 0 12px; font-weight: 600; }
.guide-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.guide-controls button { border: 0; background: none; color: var(--muted); font-size: 12px; font-weight: 800; cursor: pointer; }
#guide-next { background: linear-gradient(135deg, #ff5a3c, #ff7a3c); color: #fff; border-radius: 999px; padding: 8px 16px; box-shadow: 0 4px 12px rgba(255,90,60,.3); }
.guide-dots { display: flex; gap: 5px; }
.guide-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.guide-dots i.on { background: var(--primary); box-shadow: 0 0 8px rgba(255,90,60,.5); }

/* v104: publish, notifications, friends, chat */
.notif-btn {
  position: relative; width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center; background: var(--surface-2);
  border: 1px solid var(--line); color: var(--muted); cursor: pointer;
}
.notif-btn svg { width: 20px; height: 20px; }
.notif-btn:hover { color: var(--primary); border-color: var(--primary); }
.notif-dot {
  position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px;
  border-radius: 999px; background: #ff3b5c; color: #fff; font-size: 10px; font-weight: 900;
  display: grid; place-items: center; padding: 0 4px;
}
.notif-dot.hidden { display: none; }

.publish-panel { max-width: 460px; }
.publish-type-seg { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 12px; }
.publish-type-btn { flex: 1; padding: 8px; border: 0; border-radius: 999px; background: transparent; font-size: 13px; font-weight: 800; color: var(--muted); cursor: pointer; }
.publish-type-btn.active { background: #fff; color: var(--primary); box-shadow: 0 3px 10px rgba(0,0,0,.1); }
.publish-photos { display: flex; flex-direction: column; gap: 10px; }
.publish-photo-strip { display: flex; gap: 8px; flex-wrap: wrap; }
.pub-photo { position: relative; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; border: 2px solid var(--line); }
.pub-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pub-photo-del {
  position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%;
  border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 14px; cursor: pointer; display: grid; place-items: center;
}
.pub-photo-no { position: absolute; bottom: 3px; right: 3px; font-size: 9px; font-weight: 800; color: #fff; background: rgba(0,0,0,.55); border-radius: 999px; padding: 1px 6px; }
.publish-add-photo { border: 2px dashed var(--line); background: var(--surface-2); color: var(--muted); border-radius: 12px; padding: 12px; font-size: 12px; font-weight: 800; cursor: pointer; }
.publish-filter-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 11px; font-weight: 700; color: var(--muted); }
.pub-filter, .pub-crop { border: 1.5px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 5px 12px; font-size: 11px; font-weight: 800; cursor: pointer; }
.pub-filter.active, .pub-crop.active { background: var(--primary); color: #fff; border-color: transparent; }
.publish-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.publish-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.publish-prefill { font-size: 11px; color: var(--primary); font-weight: 700; }

.notif-panel { max-width: 440px; }
.notif-list { display: flex; flex-direction: column; gap: 8px; padding: 0 16px 16px; max-height: 60vh; overflow-y: auto; }
.notif-item { display: flex; align-items: center; gap: 10px; text-align: left; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); min-width: 0; }
.notif-item.unread { background: var(--primary-soft); border-color: rgba(255,90,60,.3); }
.notif-dot-icon { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.notif-dot-icon.on { background: #ff3b5c; box-shadow: 0 0 8px rgba(255,59,92,.6); }
.notif-text { flex: 1; min-width: 0; font-size: 12px; color: var(--text); font-weight: 600; }
.notif-time { flex: 0 0 auto; font-size: 10px; color: var(--muted); font-weight: 700; }

.chat-panel { max-width: 440px; height: 70vh; display: flex; flex-direction: column; }
.chat-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 0 16px 16px; }
.chat-item { display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); min-width: 0; }
.chat-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.chat-item-body b { font-size: 13px; font-weight: 800; }
.chat-item-body small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-item-time { flex: 0 0 auto; font-size: 10px; color: var(--muted); }
.chat-room { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 0 16px 16px; }
.chat-messages { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 10px 0; }
.chat-msg { max-width: 78%; padding: 9px 12px; border-radius: 14px; font-size: 13px; line-height: 1.45; }
.chat-msg.me { align-self: flex-end; background: linear-gradient(135deg, #ff5a3c, #ff7a3c); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.them { align-self: flex-start; background: var(--surface-2); color: var(--text); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat-msg small { display: block; margin-top: 3px; font-size: 9px; opacity: .7; }
.chat-room .chat-composer { display: flex; gap: 8px; margin-top: 10px; }
.chat-room .chat-composer input { flex: 1; height: 40px; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 14px; outline: none; background: var(--surface); }

.friends-list { display: flex; flex-direction: column; gap: 8px; }
.friend-item { display: flex; align-items: center; gap: 10px; text-align: left; padding: 9px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); min-width: 0; }
.friend-item .author-avatar { position: relative; }
.friend-status { position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border-radius: 50%; background: #b9c0cd; border: 2px solid #fff; }
.friend-status.online { background: #43d17c; }
.friend-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.friend-body b { font-size: 13px; font-weight: 800; }
.friend-body small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.friend-city { flex: 0 0 auto; font-size: 10px; color: var(--muted); font-weight: 700; }

.my-posts { display: flex; flex-direction: column; gap: 8px; }
.my-post { display: flex; align-items: center; gap: 10px; text-align: left; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); min-width: 0; }
.my-post-img { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 10px; overflow: hidden; }
.my-post-img img { width: 100%; height: 100%; object-fit: cover; }
.my-post-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.my-post-body b { font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.my-post-body small { font-size: 11px; color: var(--muted); }
.my-post-type { flex: 0 0 auto; font-size: 10px; font-weight: 800; color: var(--primary); background: var(--primary-soft); border-radius: 999px; padding: 3px 8px; }

.author-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.author-friend-btn, .author-msg-btn { border: 2px solid #fff; background: rgba(255,255,255,.18); color: #fff; font-size: 12px; font-weight: 800; border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.author-friend-btn.friend { background: #fff; color: var(--av, #8a5cf6); }
.author-msg-btn { background: #fff; color: #2b2438; }
.profile-edit { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: 6px; }
.profile-edit input { border: 1.5px solid rgba(255,255,255,.5); background: rgba(255,255,255,.16); color: #fff; border-radius: 10px; padding: 8px 12px; outline: none; font-size: 13px; }
.profile-edit input::placeholder { color: rgba(255,255,255,.6); }

.note-comment-btn {
  display: inline-flex; align-items: center; gap: 5px; color: var(--muted);
  font-size: 12px; font-weight: 800; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 10px;
}
.note-comment-btn:hover { border-color: var(--primary); color: var(--primary); }
.note-multi-badge { position: absolute; right: 8px; bottom: 8px; z-index: 2; font-size: 9px; font-weight: 800; color: #fff; background: rgba(0,0,0,.55); border-radius: 999px; padding: 2px 7px; }
.note-img { position: relative; }
.note-img.carousel .carousel-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: carouselFade 12s infinite; }
.note-img.carousel .carousel-img:first-child { opacity: 1; }
@keyframes carouselFade {
  0%, 22% { opacity: 1; }
  30%, 94% { opacity: 0; }
  100% { opacity: 0; }
}

/* v105: nav center publish, me entry grid, subpages, hot tabs */
.bottom-nav { display: flex; align-items: flex-end; justify-content: space-around; padding: 6px 8px 8px; z-index: 70; }
.nav-publish { flex: 0 0 58px; display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; background: none; cursor: pointer; transform: translateY(-14px); }
.nav-publish span {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  font-size: 26px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #ff5a3c, #ff7a3c);
  box-shadow: 0 8px 20px rgba(255,90,60,.4), 0 0 0 4px var(--surface);
  transition: transform .15s;
}
.nav-publish small { font-size: 10px; font-weight: 800; color: var(--muted); }
.nav-publish:hover span { transform: scale(1.06); }

.region-quick { padding: 0; }
.region-quick-btn {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  border: 0; background: linear-gradient(135deg, #eef7ff, #e9f3ff); color: var(--text);
  text-align: left; cursor: pointer;
}
.region-quick-icon { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #fff; font-size: 18px; box-shadow: 0 4px 10px rgba(0,0,0,.08); }
.region-quick-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.region-quick-copy b { font-size: 13px; font-weight: 900; }
.region-quick-copy small { font-size: 11px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.region-quick-go { flex: 0 0 auto; font-size: 11px; font-weight: 800; color: #1976d2; background: rgba(25,118,210,.1); border-radius: 999px; padding: 6px 12px; }

.me-entry-grid-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.me-entry { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); cursor: pointer; transition: all .15s; }
.me-entry:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: var(--shadow-sm); }
.me-entry-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: var(--surface); box-shadow: 0 3px 8px rgba(0,0,0,.06); }
.me-entry b { font-size: 12px; font-weight: 800; }
.me-quick-links { display: flex; gap: 8px; margin-top: 10px; }
.me-sig { font-size: 12px; color: var(--muted); margin: 0 0 4px; }

.subpage { position: fixed; inset: 0; z-index: 65; background: var(--bg); display: flex; flex-direction: column; }
.subpage.hidden { display: none; }
.subpage-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2; }
.subpage-back { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); font-size: 16px; font-weight: 800; color: var(--muted); cursor: pointer; }
.subpage-title { font-size: 16px; font-weight: 900; }
.subpage-body { flex: 1; overflow-y: auto; padding: 14px 16px 96px; }
.sub-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.sub-tab { flex: 1; padding: 8px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 800; cursor: pointer; }
.sub-tab.active { background: var(--primary); color: #fff; border-color: transparent; }
.sub-content { display: flex; flex-direction: column; gap: 10px; }
.friend-page-item { display: flex; align-items: center; gap: 8px; }
.friend-page-item .friend-item { flex: 1; }
.friend-msg { border: 1.5px solid var(--primary); background: var(--primary-soft); color: var(--primary); border-radius: 999px; padding: 7px 12px; font-size: 11px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.friend-request { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.friend-request-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.friend-request-body b { font-size: 13px; font-weight: 800; }
.friend-request-body small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hot-hero-compact { padding: 10px 12px; }
.hot-main-tabs { display: flex; gap: 6px; margin-top: 4px; }
.hot-main-tab { flex: 1; padding: 8px; border: 1.5px solid rgba(255,255,255,.25); border-radius: 999px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); font-size: 13px; font-weight: 800; cursor: pointer; }
.hot-main-tab.active { background: #fff; color: #2b2438; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
#notes-block { display: flex; flex-direction: column; gap: 12px; }
#notes-block .hot-seg { margin-top: 12px; align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); }
#notes-block .hot-seg-btn { color: var(--muted); }
#notes-block .hot-seg-btn.active { background: var(--primary); color: #fff; }
#hot-load-more { width: 100%; margin: 4px auto 10px; border: 1.5px solid var(--line); background: var(--surface-2); color: var(--muted); border-radius: 999px; padding: 10px; font-size: 12px; font-weight: 800; cursor: pointer; }
#hot-load-more.hidden { display: none; }
#vote-block { display: flex; flex-direction: column; gap: 12px; }
#vote-block.hidden { display: none; }
.vote-item { padding: 8px 10px; }
.vote-food-img { width: 36px; height: 36px; }
.vote-rank { width: 24px; height: 24px; font-size: 12px; }
.vote-btn { padding: 6px 12px; min-width: 48px; }

/* v106: memory card + sticker box + private hint */
.me-entry-ic svg, .region-quick-icon svg { width: 20px; height: 20px; }
.album-private-hint { margin: 0 0 10px; font-size: 10px; font-weight: 700; color: var(--muted); }

.memory-card { position: fixed; inset: 0; z-index: 66; background: var(--bg); overflow-y: auto; }
.memory-card.hidden { display: none; }
.memory-view { min-height: 100%; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 18px 16px 40px; overflow: hidden; }
.memory-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .25; filter: blur(18px) saturate(1.2); }
.memory-view::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(255,255,255,.4), transparent 60%), linear-gradient(180deg, var(--mem-color), #14162b 70%);
  opacity: .92;
}
.memory-back { position: absolute; top: 14px; left: 14px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.92); border: 0; font-size: 20px; font-weight: 800; color: var(--text); cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.memory-sticker { position: relative; z-index: 2; margin-top: 64px; width: min(62vw, 240px); }
.memory-sticker img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 48% 52% 50% 50% / 52% 48% 55% 45%;
  border: 6px solid #fff; box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.memory-stamp {
  position: absolute; right: -12px; bottom: 6px; transform: rotate(-10deg);
  background: #fff; color: #d32f2f; border: 2px solid #d32f2f; border-radius: 8px;
  padding: 5px 12px; font-size: 12px; font-weight: 900; letter-spacing: .08em;
  box-shadow: 0 4px 10px rgba(0,0,0,.2);
}
.memory-info { position: relative; z-index: 2; margin-top: 22px; text-align: center; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; max-width: 360px; }
.memory-date { font-size: 13px; color: rgba(255,255,255,.75); }
.memory-info h2 { font-size: 26px; font-weight: 900; margin: 0; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.memory-text { font-size: 16px; line-height: 1.6; color: #fff; max-width: 320px; }
.memory-with, .memory-shop { font-size: 12px; color: rgba(255,255,255,.8); margin: 0; }
.memory-private { margin-top: 10px; font-size: 11px; color: rgba(255,255,255,.65); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 5px 12px; }
.memory-info .score-dots i { background: rgba(255,255,255,.35); }
.memory-info .score-dots i.on { background: #ffd700; }
.memory-info .note-tags span { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.3); }

.sticker-sections { display: flex; flex-direction: column; gap: 18px; }
.sticker-section h4 { margin: 0 0 8px; font-size: 13px; font-weight: 900; }
.sticker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.sticker-box-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); text-align: center; }
.sticker-box-item img { object-fit: cover; border-radius: 42% 58% 45% 55% / 55% 42% 58% 45%; border: 4px solid #fff; background: #fff; box-shadow: 0 6px 14px rgba(0,0,0,.14); }
.sticker-box-item > span { font-size: 11px; font-weight: 800; }
.sticker-box-item input[type="range"] { width: 100%; }
.seal-sticker { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; font-weight: 900; color: #fff; background: var(--seal); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--seal), 0 6px 14px rgba(0,0,0,.16); }
.ach-sticker { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; font-weight: 900; color: #7a5c00; background: linear-gradient(135deg, #ffe9a8, #f2c94c); border: 2px solid #fff; box-shadow: 0 6px 14px rgba(0,0,0,.14); }
.ach-sticker.gold { background: linear-gradient(135deg, #ffd700, #b8860b); color: #fff; box-shadow: 0 0 16px rgba(255,215,0,.6); }
.rare-gold { border-color: rgba(255,183,0,.7); box-shadow: 0 0 0 2px rgba(255,183,0,.25); }

/* v107: collage mode + memorial page */
.album-sheet.paper-grid {
  background-color: #f6f2e8;
  background-image: linear-gradient(rgba(120,90,40,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(120,90,40,.08) 1px, transparent 1px);
  background-size: 22px 22px;
}
.album-sheet.paper-kraft {
  background-color: #efe2c6;
  background-image: repeating-linear-gradient(0deg, rgba(120,90,40,.05) 0 2px, transparent 2px 4px);
}
.album-sheet.paper-photo {
  background-color: #f9f9fc;
  background-image: repeating-linear-gradient(45deg, rgba(0,0,0,.02) 0 8px, transparent 8px 16px);
}
.collage-on .slot-grid { display: none; }
.collage-on .album-watermark, .collage-on .album-footer, .collage-on .album-progress, .collage-on .album-private-hint { display: none; }
.collage-layer { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.collage-item { position: absolute; pointer-events: auto; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: grab; max-width: 120px; }
.collage-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 42% 58% 45% 55% / 55% 42% 58% 45%; border: 4px solid #fff; background: #fff; box-shadow: 0 8px 18px rgba(0,0,0,.2); }
.collage-item .seal-sticker, .collage-item .ach-sticker { width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 50%; display: grid; place-items: center; }
.collage-item .ach-sticker { border-radius: 14px; }
.collage-name { font-size: 10px; font-weight: 800; color: var(--text); background: rgba(255,255,255,.85); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.collage-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.collage-tray { display: flex; gap: 8px; overflow-x: auto; padding: 8px 2px 4px; }
.collage-add { flex: 0 0 64px; display: flex; flex-direction: column; align-items: center; gap: 4px; border: 1.5px solid var(--line); background: var(--surface); border-radius: 12px; padding: 6px 4px; font-size: 10px; font-weight: 800; color: var(--muted); cursor: pointer; }
.collage-add img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,.12); }
.collage-add .seal-sticker, .collage-add .ach-sticker { width: 44px; height: 44px; font-size: 16px; }
.album-memorial { border-radius: 18px; border: 2px solid rgba(255,183,0,.5); background: linear-gradient(160deg, #fffbe6, #fff3d6); padding: 18px 16px; box-shadow: 0 12px 30px rgba(255,183,0,.18); }
.album-memorial-head { display: flex; align-items: center; justify-content: space-between; font-weight: 900; color: #8a6d00; }
.album-memorial-head small { font-size: 10px; color: var(--muted); font-weight: 700; }
.album-memorial-text { font-size: 14px; line-height: 1.6; color: #5f4a00; font-weight: 700; margin: 8px 0 14px; }
.album-memorial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

/* v108: sticker box -> collage integration */
.sticker-intro { font-size: 12px; color: var(--muted); margin: 0 0 12px; line-height: 1.5; }
.sticker-to-album { width: 100%; border: 1.5px solid var(--primary); background: var(--primary-soft); color: var(--primary); border-radius: 999px; padding: 5px; font-size: 10px; font-weight: 800; cursor: pointer; }
.sticker-box-item[draggable="true"] { cursor: grab; }
.collage-controls {
  position: absolute; top: -34px; left: 50%; transform: translateX(-50%);
  display: none; align-items: center; gap: 4px;
  background: rgba(20,22,43,.85); border-radius: 999px; padding: 3px 8px;
  white-space: nowrap; z-index: 6; opacity: .95;
}
.collage-item.selected .collage-controls { display: flex; }
.collage-item.selected { outline: 2px dashed rgba(255,90,60,.7); outline-offset: 3px; }
.collage-resize, .collage-rotate {
  display: none; position: absolute; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,.96); border: 3px solid var(--primary);
  box-shadow: 0 0 0 3px rgba(255,90,60,.22), 0 3px 10px rgba(0,0,0,.25); z-index: 7;
}
.collage-rotate { top: -10px; left: 50%; transform: translateX(-50%); cursor: grab; width: 24px; height: 24px; background: radial-gradient(circle at 35% 30%, #ffe9a8, #f2c94c); border-color: #b8860b; box-shadow: 0 0 0 3px rgba(255,215,0,.35), 0 3px 10px rgba(0,0,0,.25); }
.collage-resize.nw { top: -7px; left: -7px; cursor: nwse-resize; }
.collage-resize.ne { top: -7px; right: -7px; cursor: nesw-resize; }
.collage-resize.sw { bottom: -7px; left: -7px; cursor: nesw-resize; }
.collage-resize.se { bottom: -7px; right: -7px; cursor: nwse-resize; }
.collage-item.selected .collage-resize, .collage-item.selected .collage-rotate { display: block; }
.collage-item, .collage-resize, .collage-rotate { touch-action: none; user-select: none; -webkit-user-select: none; }
.collage-item.selected { outline: 2px dashed rgba(255,90,60,.7); outline-offset: 3px; box-shadow: 0 0 0 4px rgba(255,90,60,.12); }
.collage-item.editing { z-index: 9; box-shadow: 0 0 0 3px rgba(255,90,60,.45), 0 14px 30px rgba(0,0,0,.28); }
.collage-item.dragging-move { box-shadow: 0 0 0 3px rgba(255,90,60,.25), 0 14px 30px rgba(0,0,0,.25); }
.collage-angle {
  position: absolute; top: -38px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: rgba(20,22,43,.92); color: #fff; font-size: 11px; font-weight: 800;
  border-radius: 999px; padding: 4px 10px; pointer-events: none; z-index: 9;
}
.collage-hint {
  position: absolute; top: -54px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: rgba(20,22,43,.92); color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 999px; padding: 6px 12px; z-index: 8; pointer-events: none; animation: popIn .25s ease;
}
.collage-controls button { border: 0; background: none; color: #fff; font-size: 13px; font-weight: 800; cursor: pointer; padding: 0 4px; }
.collage-controls .collage-del { color: #ff6b6b; }
.collage-controls input[type="range"] { width: 56px; height: 4px; }

/* v109: my post detail + sticker long-press drag */
.sticker-box-item.dragging { opacity: .6; transform: scale(1.05); }
.my-post-detail { display: flex; flex-direction: column; gap: 12px; }
.my-post-detail-img img { width: 100%; max-height: 320px; object-fit: cover; border-radius: 16px; }
.my-post-detail h2 { font-size: 20px; font-weight: 900; margin: 0; }
.my-post-detail-text { font-size: 14px; line-height: 1.6; color: var(--text); margin: 0; }
.my-post-detail-meta { margin-top: 6px; }

.guide-entry { padding: 0; }
.guide-replay-btn {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border: 0; text-align: left; background: none;
  color: var(--text); cursor: pointer;
}
.guide-replay-btn:hover .guide-replay-go { transform: translateX(2px); }
.guide-replay-icon {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 12px;
  display: grid; place-items: center; font-size: 17px; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, #ff5a3c, #ff7a3c); box-shadow: 3px 4px 0 rgba(20,22,43,.18);
}
.guide-replay-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.guide-replay-copy b { font-size: 13px; font-weight: 900; }
.guide-replay-copy small { font-size: 11px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guide-replay-go {
  flex: 0 0 auto; font-size: 11px; font-weight: 800; color: var(--primary);
  background: var(--primary-soft); border-radius: 999px; padding: 6px 12px; transition: transform .15s;
}

/* v94: sticker poster cover */
.cover-poster {
  position: absolute; inset: 0; overflow: hidden;
  background: var(--cover-a);
  text-align: center;
}
.cover-grain {
  position: absolute; inset: 0; pointer-events: none; z-index: 8;
  background-image: radial-gradient(rgba(0,0,0,.16) 1px, transparent 1.3px);
  background-size: 5px 5px; opacity: .32; mix-blend-mode: multiply;
}
.cover-slab { position: absolute; display: block; pointer-events: none; }
.slab-a { width: 200px; height: 260px; right: -60px; top: -70px; background: var(--cover-glow); opacity: .9; transform: rotate(18deg); mix-blend-mode: screen; }
.slab-b { width: 150px; height: 230px; left: -60px; bottom: -80px; background: rgba(255,255,255,.16); transform: rotate(-14deg); }
.cover-hard-a {
  position: absolute; top: -22%; left: -18%; width: 82%; height: 66%;
  background: rgba(0,0,0,.34); transform: rotate(9deg); pointer-events: none;
}
.cover-hard-b {
  position: absolute; right: -16%; bottom: -18%; width: 74%; height: 60%;
  background: var(--cover-b); opacity: .96; transform: rotate(-9deg); pointer-events: none;
}
.cover-halo {
  position: absolute; width: 300px; height: 300px; right: -60px; bottom: -80px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.8), transparent 62%);
  animation: haloPulse 3s ease-in-out infinite; pointer-events: none;
}
@keyframes haloPulse {
  0%, 100% { opacity: .55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
.cover-corner {
  position: absolute; right: -34px; top: -34px; width: 110px; height: 110px;
  background: var(--cover-glow); transform: rotate(45deg); opacity: .95;
  border: 3px solid rgba(255,255,255,.85); box-shadow: 0 6px 16px rgba(0,0,0,.18);
}
.cover-badge {
  position: absolute; top: 16px; right: 16px; z-index: 9;
  background: var(--cover-glow); color: #14162b; font-size: 11px; font-weight: 900;
  padding: 5px 12px; border-radius: 999px; transform: rotate(4deg);
  border: 2px solid #fff; box-shadow: 3px 4px 0 rgba(20,22,43,.32), 0 6px 14px rgba(0,0,0,.18);
}
.cover-landmark {
  position: absolute; top: 9%; left: 4%; width: 92%; z-index: 2;
  color: #fff; display: block;
  filter: drop-shadow(6px 8px 0 rgba(0,0,0,.22)) drop-shadow(0 14px 18px rgba(0,0,0,.22));
}
.cover-landmark svg { width: 100%; height: 380px; display: block; }
.landmark-shine {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, var(--cover-glow) 50%, transparent 60%);
  opacity: .5; mix-blend-mode: multiply;
}
.landmark-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(168deg, rgba(0,0,0,.42) 0%, transparent 38%, rgba(255,255,255,.16) 62%, rgba(0,0,0,.28) 100%);
  mix-blend-mode: multiply;
}
.landmark-gloss {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 30% 18%, rgba(255,255,255,.95), rgba(255,255,255,.12) 34%, transparent 52%);
  mix-blend-mode: screen;
}
.cover-food-pair {
  position: absolute; left: 6%; right: 6%; bottom: 5%; z-index: 6;
  display: flex; justify-content: space-between; align-items: flex-end;
}
.food-glyph {
  display: grid; place-items: center; width: 58px; height: 58px;
  background: #fff; border-radius: 16px; color: var(--cover-a);
  border: 3px solid #fff; box-shadow: 4px 5px 0 rgba(20,22,43,.26), 0 10px 18px rgba(0,0,0,.18);
}
.food-glyph:first-child { transform: rotate(-7deg) translateY(4px); }
.food-glyph:last-child { transform: rotate(6deg) translateY(0); }
.food-glyph svg { width: 40px; height: 40px; }
.cover-title-sticker {
  position: absolute; bottom: 19%; left: 7%; top: auto; z-index: 7;
  background: #fff; color: var(--cover-a); padding: 8px 22px 7px;
  border-radius: 18px 24px 14px 24px; transform: rotate(-8deg);
  border: 3px solid #fff; box-shadow: 5px 6px 0 rgba(20,22,43,.30), 0 12px 22px rgba(0,0,0,.18);
}
.cover-title-sticker b { display: block; font-size: 38px; font-weight: 900; line-height: 1; letter-spacing: .08em; }
.cover-title-sticker small { display: block; margin-top: 4px; font-size: 8px; font-weight: 800; letter-spacing: .26em; color: #9a9284; }
.cover-progress-dots {
  position: absolute; top: 22px; left: 16px; z-index: 9; display: flex; gap: 7px;
}
.cover-no {
  position: absolute; top: 56px; left: 16px; z-index: 9;
  background: var(--cover-glow); color: #14162b; font-size: 10px; font-weight: 900; letter-spacing: .12em;
  padding: 4px 10px; border-radius: 8px 12px 8px 12px; transform: rotate(-6deg);
  border: 2px solid #fff; box-shadow: 3px 4px 0 rgba(20,22,43,.28);
}
.cover-progress-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.5); border: 1px solid rgba(0,0,0,.16); }
.cover-progress-dots i.on {
  background: var(--cover-glow); border-color: #fff;
  box-shadow: 0 0 10px var(--cover-glow), 2px 2px 0 rgba(0,0,0,.22);
}
.cover-stamp {
  position: absolute; right: 14px; bottom: 12px; z-index: 9;
  color: #fff; font-size: 11px; font-weight: 900; letter-spacing: .16em;
  border: 2px solid #fff; border-radius: 46% 54% 50% 50% / 52% 48% 55% 45%;
  padding: 5px 12px 4px; transform: rotate(-12deg);
  box-shadow: 0 0 0 2px rgba(0,0,0,.18), inset 0 0 0 1px rgba(255,255,255,.55);
  text-shadow: 1px 1px 0 rgba(0,0,0,.25);
}
.cover-poster .album-open-btn {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); z-index: 10;
  border: 3px solid #fff; border-radius: 999px; padding: 9px 20px;
  background: var(--cover-glow); color: #14162b; font-size: 12px; font-weight: 900;
  box-shadow: 3px 4px 0 rgba(20,22,43,.28);
}
.cover-poster .album-open-btn:hover { transform: translateX(-50%) translateY(-2px); }
.cover-state-1 .cover-landmark { filter: grayscale(.95) brightness(.85) drop-shadow(6px 8px 0 rgba(0,0,0,.22)); }
.cover-state-1 .cover-food-pair, .cover-state-1 .cover-title-sticker { filter: grayscale(.85); }
.cover-state-2 .cover-landmark { filter: grayscale(.35) saturate(.95) drop-shadow(6px 8px 0 rgba(0,0,0,.22)); }
.cover-state-2 .cover-food-pair { filter: grayscale(.25); }
.cover-state-3:not(.premium) {
  box-shadow: inset 0 0 0 4px rgba(255,215,0,.85), inset 0 0 44px rgba(255,215,0,.22);
  animation: coverGold 2.2s ease-in-out infinite;
}
@keyframes coverGold {
  0%, 100% { box-shadow: inset 0 0 0 4px rgba(255,215,0,.6), inset 0 0 26px rgba(255,215,0,.14); }
  50% { box-shadow: inset 0 0 0 4px rgba(255,215,0,1), inset 0 0 48px rgba(255,215,0,.34); }
}
.cover-poster.premium {
  background: linear-gradient(152deg, #f9e7ae 0%, #d4af37 38%, #f6d876 70%, #8a6d00 100%);
}
.cover-poster.premium::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 5;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.22) 0 2px, transparent 2px 8px);
  mix-blend-mode: overlay;
}
.cover-poster.premium .cover-title-sticker {
  color: #7a5c00; border-color: #ffd700;
  box-shadow: 5px 6px 0 rgba(90,60,0,.32), 0 0 0 3px #fff, 0 12px 24px rgba(0,0,0,.2);
}
.cover-poster.premium .cover-stamp {
  background: #fff; color: #8a6d00; border-color: #d4af37; text-shadow: none;
  box-shadow: 0 0 0 2px rgba(255,255,255,.9), inset 0 0 0 1px rgba(138,109,0,.4);
}
.cover-poster.premium .cover-badge,
.cover-poster.premium .album-open-btn { background: linear-gradient(135deg, #ffe9a8, #f2c94c); color: #7a5c00; }
.cover-poster.premium .food-glyph { color: #8a6d00; }
.cover-poster.premium .cover-progress-dots i.on {
  background: #fff; box-shadow: 0 0 12px rgba(255,255,255,.95), 2px 2px 0 rgba(90,60,0,.25);
}

@media (max-width: 560px) {
  .cover-landmark svg { height: 290px; }
  .food-glyph { width: 46px; height: 46px; }
  .food-glyph svg { width: 32px; height: 32px; }
  .cover-title-sticker { bottom: 18%; }
  .cover-title-sticker b { font-size: 28px; }
}

/* === Daily Plate === */
.plate-hero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.plate-ring-wrap { position: relative; flex: 0 0 132px; width: 132px; height: 132px; }
.plate-ring-wrap svg { width: 132px; height: 132px; transform: rotate(-90deg); }
.plate-ring-bg { fill: none; stroke: var(--line); stroke-width: 10; }
.plate-ring-fg {
  fill: none; stroke: var(--accent-2); stroke-width: 10; stroke-linecap: round;
  transition: stroke-dashoffset .5s ease;
}
.plate-ring-copy { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.plate-ring-copy b { font-size: 22px; font-weight: 900; }
.plate-ring-copy span { font-size: 11px; color: var(--muted); font-weight: 700; }
.plate-dish {
  flex: 1; min-width: 220px; padding: 16px; display: grid; gap: 10px;
  background: radial-gradient(circle at 50% 18%, #fff 0%, var(--surface-2) 72%);
  border: 3px dashed var(--line); border-radius: 22px; transition: border-color .3s, box-shadow .3s;
}
.plate-dish.over { border-color: #ff5a3c; animation: plateOver .7s ease infinite alternate; }
@keyframes plateOver {
  from { box-shadow: 0 0 0 3px rgba(255,90,60,.1); }
  to { box-shadow: 0 0 0 7px rgba(255,90,60,.22); }
}
.plate-dish-inner { display: flex; align-items: baseline; gap: 6px; }
.plate-dish-inner span { font-size: 30px; font-weight: 900; }
.plate-dish-inner small { color: var(--muted); font-weight: 700; }
.plate-fill-track { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.plate-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-2), #7ee8a2); transition: width .4s ease;
}
.plate-dish.over .plate-fill { background: linear-gradient(90deg, #ff5a3c, #ff9d3c); }
.plate-dish p { margin: 0; font-size: 12px; color: var(--muted); font-weight: 600; }
.plate-limit-warn {
  padding: 10px 12px; border-radius: var(--radius-xs);
  background: rgba(255,90,60,.1); color: var(--primary-dark); font-size: 13px; font-weight: 700;
}
.plate-food-list { display: grid; gap: 8px; }
.plate-food-row {
  display: flex; align-items: center; gap: 10px; padding: 8px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-xs);
}
.plate-food-img {
  flex: 0 0 42px; width: 42px; height: 42px; border-radius: 10px;
  background-size: cover; background-position: center; border: 2px solid #fff; box-shadow: var(--shadow-sm);
}
.plate-food-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.plate-food-main b { font-size: 14px; }
.plate-food-main small { font-size: 11px; color: var(--muted); }
.plate-remove {
  flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line); color: var(--primary-dark);
  font-size: 16px; font-weight: 900;
}
.plate-exercise-row { display: flex; gap: 8px; flex-wrap: wrap; }
.plate-exercise-row button {
  flex: 1; min-width: 92px; padding: 10px 8px; border-radius: var(--radius-xs);
  background: var(--primary-soft); color: var(--primary-dark); border: 1.5px solid rgba(255,90,60,.18);
  font-size: 13px; font-weight: 800;
}
.plate-steps-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plate-steps-row label {
  display: flex; align-items: center; gap: 8px; flex: 1; min-width: 180px;
  font-size: 13px; font-weight: 700;
}
.plate-steps-row input { flex: 1; accent-color: var(--accent-2); }
.plate-steps-row > span { min-width: 64px; font-size: 13px; font-weight: 800; color: var(--accent-2); text-align: right; }
.plate-week { min-height: 170px; }
.plate-week-bars { display: flex; align-items: flex-end; gap: 8px; height: 150px; }
.plate-week-col { flex: 1; height: 100%; display: grid; grid-template-rows: 1fr auto auto; gap: 5px; text-align: center; }
.plate-week-bar-wrap { display: flex; align-items: flex-end; justify-content: center; height: 110px; }
.plate-week-bar {
  width: 22px; max-height: 100%; border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, var(--accent-2), #7ee8a2); transition: height .4s ease;
}
.plate-week-bar.over { background: linear-gradient(180deg, #ff5a3c, #ff9d3c); }
.plate-week-col span { font-size: 10px; color: var(--muted); font-weight: 700; }
.plate-week-col small { font-size: 10px; font-weight: 800; }
.plate-add-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.dex-plate-btn {
  padding: 10px 14px; border-radius: 999px; color: #fff; font-size: 13px; font-weight: 800;
  background: linear-gradient(135deg, #00b894, #1dd1a1); box-shadow: 0 4px 12px rgba(0,184,148,.25);
}
.dex-burn { font-size: 12px; color: var(--muted); font-weight: 700; }
.wish-item-actions { display: flex; align-items: center; gap: 6px; }
.wish-plate-add {
  flex: 0 0 auto; padding: 5px 9px; border-radius: 999px;
  background: rgba(0,184,148,.12); color: #008f72; font-size: 11px; font-weight: 800;
}
.note-plate-add {
  position: absolute; right: 10px; bottom: 10px; z-index: 5;
  padding: 4px 9px; border-radius: 999px; background: rgba(0,184,148,.9);
  color: #fff; font-size: 11px; font-weight: 800; box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

@media (max-width: 560px) {
  .plate-hero { flex-direction: column; align-items: stretch; }
  .plate-ring-wrap { align-self: center; }
  .plate-dish { min-width: 0; }
}

.plate-ring-wrap.empty .plate-ring-fg { display: none; }
.plate-ring-wrap.empty .plate-ring-copy b { color: var(--muted); }
.plate-ring-fg.balanced { stroke: var(--accent-2); filter: drop-shadow(0 0 6px rgba(0,184,148,.45)); }
.plate-ring-fg.over { stroke: #ff5a3c; filter: drop-shadow(0 0 6px rgba(255,90,60,.4)); }
.plate-ring-fg.deficit { stroke: var(--accent); filter: drop-shadow(0 0 6px rgba(108,92,231,.35)); }
.plate-meta-row {
  display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  font-size: 11px; color: var(--muted); font-weight: 700;
}
.plate-meta-row b { color: var(--text); font-size: 13px; }
.plate-personality {
  padding: 9px 12px; border-radius: var(--radius-xs);
  background: linear-gradient(135deg, rgba(255,90,60,.08), rgba(108,92,231,.08));
  color: var(--primary-dark); font-size: 13px; font-weight: 800;
}
.plate-stamp {
  align-self: center; display: inline-block; padding: 8px 16px;
  color: #7a5c00; font-size: 14px; font-weight: 900; letter-spacing: .12em;
  border: 3px double #d4af37; border-radius: 46% 54% 50% 50% / 52% 48% 55% 45%;
  background: rgba(255,230,150,.35); transform: rotate(-6deg);
  box-shadow: 0 0 0 3px rgba(255,215,0,.25), 0 4px 12px rgba(0,0,0,.12);
}
.plate-stamp.stamp-pop { animation: plateStampPop .7s cubic-bezier(.2,1.4,.4,1); }
@keyframes plateStampPop {
  0% { transform: rotate(-6deg) scale(.4); opacity: 0; }
  60% { transform: rotate(4deg) scale(1.12); opacity: 1; }
  100% { transform: rotate(-6deg) scale(1); }
}
.plate-lit-badge {
  flex: 0 0 auto; padding: 5px 9px; border-radius: 999px;
  background: rgba(0,184,148,.12); color: #008f72; font-size: 11px; font-weight: 800;
}
.plate-confirm-btn {
  flex: 0 0 auto; padding: 6px 10px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary-dark);
  border: 1.5px solid rgba(255,90,60,.2); font-size: 11px; font-weight: 800;
}
.plate-records-head { margin-top: 6px; }
.plate-exercise-list { display: grid; gap: 7px; }
.plate-exercise-row-item {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-xs);
}
.plate-exercise-dot {
  flex: 0 0 9px; width: 9px; height: 9px; border-radius: 50%;
  background: linear-gradient(135deg, #00b894, #7ee8a2);
}
.plate-exercise-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.plate-exercise-main b { font-size: 13px; }
.plate-exercise-main small { font-size: 11px; color: var(--muted); }
.plate-exercise-undo {
  flex: 0 0 auto; padding: 4px 10px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--muted);
  font-size: 11px; font-weight: 800;
}
.plate-exercise-undo:hover { color: var(--primary-dark); border-color: rgba(255,90,60,.35); }
.memory-plate {
  margin: 4px 0 0; font-size: 12px; font-weight: 800;
  color: #008f72; background: rgba(0,184,148,.1);
  padding: 6px 10px; border-radius: 999px; display: inline-block;
}

/* === Cleanup === */
.tab-tagline {
  margin: 0; font-size: 12px; color: var(--muted); font-weight: 700;
  padding-left: 2px;
}
.tab-tagline::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px;
  border-radius: 50%; background: linear-gradient(135deg, #ff5a3c, #ffb300);
  vertical-align: 1px;
}
.daily-quick-links {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px;
}
.daily-quick-links button {
  flex: 1; min-width: 90px; padding: 8px 10px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--text); font-size: 12px; font-weight: 800; text-align: center;
  transition: all .15s;
}
.daily-quick-links button:hover {
  border-color: rgba(255,90,60,.35); color: var(--primary-dark);
  background: var(--primary-soft);
}
.daily-quick-links button b { color: var(--primary); }
.wish-tip { font-size: 11px; }
.dex-my-checkin {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px; border-radius: 14px; text-align: left;
  background: linear-gradient(135deg, rgba(0,184,148,.08), rgba(108,92,231,.06));
  border: 1px solid rgba(0,184,148,.22); cursor: pointer;
  transition: box-shadow .15s, transform .15s;
}
.dex-my-checkin:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.dex-my-checkin-img {
  flex: 0 0 58px; width: 58px; height: 58px; border-radius: 12px;
  overflow: hidden; border: 2px solid #fff; box-shadow: var(--shadow-sm);
  background: var(--surface-2);
}
.dex-my-checkin-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dex-my-checkin-body { flex: 1; min-width: 0; display: grid; gap: 3px; }
.dex-my-checkin-body b { font-size: 13px; color: #008f72; }
.dex-my-checkin-body p { margin: 0; font-size: 14px; }
.dex-my-checkin-body small { font-size: 11px; color: var(--muted); font-weight: 700; }
.dex-divider {
  display: flex; align-items: center; gap: 10px; margin: 6px 0 2px;
  color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .08em;
}
.dex-divider::before, .dex-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.trail-memory-list { display: grid; gap: 10px; }
.trail-memory {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 10px; border-radius: 14px; text-align: left;
  background: var(--surface-2); border: 1px solid var(--line); cursor: pointer;
  transition: box-shadow .15s, transform .15s;
}
.trail-memory:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.trail-memory-img {
  flex: 0 0 62px; width: 62px; height: 62px; border-radius: 12px;
  overflow: hidden; border: 2px solid #fff; box-shadow: var(--shadow-sm);
  background: var(--surface-2);
}
.trail-memory-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trail-memory-body { flex: 1; min-width: 0; display: grid; gap: 3px; }
.trail-memory-body b { font-size: 14px; }
.trail-memory-body small { font-size: 11px; color: var(--muted); font-weight: 700; }
.trail-memory-body p { margin: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* === Dice === */
.dice-card { gap: 12px; }
.dice-filter-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dice-filter-label { font-size: 11px; font-weight: 800; color: var(--muted); margin-right: 4px; }
.dice-filter {
  padding: 6px 11px; border-radius: 999px; font-size: 12px; font-weight: 700;
  color: var(--muted); background: var(--surface-2); border: 1px solid var(--line);
}
.dice-filter.active {
  color: var(--primary-dark); background: var(--primary-soft);
  border-color: rgba(255,90,60,.4);
}
.dice-regions { display: flex; gap: 6px; flex-wrap: wrap; }
.dice-roll-btn { width: 100%; padding: 12px; border-radius: 999px; font-size: 15px; font-weight: 900; }
.dice-arena { min-height: 120px; }
.dice-arena.rolling { display: grid; place-items: center; }
.dice-cube {
  width: 64px; height: 64px; border-radius: 14px;
  background: linear-gradient(135deg, #ff5a3c, #ff9d3c); color: #fff;
  display: grid; place-items: center; font-size: 24px; font-weight: 900;
  box-shadow: 0 8px 20px rgba(255,90,60,.3); animation: diceSpin .7s cubic-bezier(.2,1,.4,1);
}
@keyframes diceSpin {
  0% { transform: rotate(0) scale(.6); }
  50% { transform: rotate(180deg) scale(1.15); }
  100% { transform: rotate(360deg) scale(1); }
}
.dice-candidates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dice-candidate {
  display: grid; gap: 5px; text-align: center; padding: 10px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px;
}
.dice-cand-tag { font-size: 10px; font-weight: 900; color: var(--primary-dark); }
.dice-cand-img { width: 100%; aspect-ratio: 1; border-radius: 10px; overflow: hidden; }
.dice-cand-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dice-candidate b { font-size: 14px; }
.dice-candidate small { font-size: 11px; color: var(--muted); }
.dice-over-tip, .dice-ok-tip { margin: 0; font-size: 10px; font-weight: 700; }
.dice-over-tip { color: var(--primary-dark); }
.dice-ok-tip { color: #008f72; }
.dice-cand-actions { display: flex; gap: 6px; }
.dice-plate-btn, .dice-checkin-btn { flex: 1; padding: 7px 4px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.dice-plate-btn { background: rgba(0,184,148,.12); color: #008f72; }
.dice-checkin-btn { background: var(--primary-soft); color: var(--primary-dark); }
.dice-reroll { width: 100%; margin-top: 10px; }
.dice-hint, .dice-foot, .dice-empty { font-size: 12px; text-align: center; }
@media (max-width: 560px) {
  .dice-candidates { grid-template-columns: 1fr; }
}

/* === Simplified album === */
.album-cover.album-cover-face { padding: 0; display: block; }
.album-cover-simple {
  position: relative; width: 100%; height: 100%; aspect-ratio: 7/10;
  border-radius: 6px 18px 18px 6px; overflow: hidden;
  background-size: cover; background-position: center;
  display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: -10px 18px 40px rgba(38,23,7,.2), inset 0 0 0 1px rgba(255,255,255,.18);
}
.cover-simple-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.1) 45%, rgba(0,0,0,.58) 100%);
}
.cover-simple-main { position: relative; z-index: 2; padding: 20px 18px; color: #fff; }
.cover-simple-kicker { font-size: 10px; font-weight: 900; letter-spacing: .22em; opacity: .85; }
.cover-simple-main h2 { font-size: 40px; letter-spacing: .08em; margin: 6px 0 4px; text-shadow: 0 4px 14px rgba(0,0,0,.35); }
.cover-simple-main p { margin: 0; font-size: 13px; font-weight: 800; opacity: .95; }
.album-cover-simple .album-open-btn {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  padding: 8px 14px; border-radius: 999px; font-size: 12px; font-weight: 900;
  background: rgba(255,255,255,.92); color: #14162b; box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.album-memory-pages {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
  position: relative; z-index: 2;
}
.album-memory-page:only-child { grid-column: 1 / -1; }
.album-memory-page {
  display: grid; gap: 6px; text-align: left; padding: 0;
  background: none; border: none; cursor: pointer;
}
.amp-img {
  display: block; width: 100%; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden;
  background: var(--surface-2); box-shadow: var(--shadow-sm);
}
.amp-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.amp-body { display: grid; gap: 4px; padding: 0 2px; }
.amp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.amp-head b { font-size: 15px; }
.amp-head small { font-size: 11px; color: var(--muted); }
.amp-body p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--text); }
.album-empty-page { text-align: center; padding: 30px 10px; }
.album-ghost-strip {
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line);
  position: relative; z-index: 2;
}
.album-ghost-label { font-size: 11px; font-weight: 800; color: var(--muted); }
.album-ghost-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 10px; margin-top: 8px;
}
.slot-name {
  display: block; margin-top: 4px; font-size: 10px; font-weight: 800; text-align: center;
  color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.collect-slot.lit .slot-name { color: var(--text); }
@media (max-width: 560px) {
  .album-memory-pages { grid-template-columns: 1fr; }
}

/* === 2.0 capture === */
.capture-body { display: grid; gap: 14px; }
.capture-preview {
  width: 100%; aspect-ratio: 4/3; border-radius: 16px;
  background: var(--surface-2) center/cover no-repeat;
  border: 2px dashed var(--line); display: grid; place-items: center;
}
.capture-preview.has { border-style: solid; }
.capture-preview.small { aspect-ratio: 16/9; max-width: 260px; margin: 0 auto; }
.capture-hint { color: var(--muted); font-size: 13px; font-weight: 700; }
.capture-actions { display: flex; gap: 10px; }
.capture-actions button { flex: 1; padding: 11px; border-radius: 999px; font-weight: 900; }
.capture-tip { text-align: center; font-size: 11px; }
.capture-recognizing { display: grid; place-items: center; gap: 14px; padding: 30px 0; }
.capture-scan {
  width: 64px; height: 64px; border-radius: 50%;
  border: 4px solid var(--line); border-top-color: var(--primary);
  animation: captureScan 1s linear infinite;
}
@keyframes captureScan { to { transform: rotate(360deg); } }
.capture-recognized, .capture-new { display: grid; gap: 12px; }
.capture-result-title { margin: 0; font-weight: 800; text-align: center; }
.capture-candidates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.capture-candidate {
  display: grid; gap: 4px; text-align: center; padding: 8px;
  border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line);
}
.capture-candidate img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.capture-candidate b { font-size: 13px; }
.capture-candidate small { font-size: 10px; color: var(--muted); }
@media (max-width: 560px) { .capture-candidates { grid-template-columns: 1fr; } }

/* === Nearby === */
.map-mode-row { display: flex; gap: 8px; }
.map-mode-btn {
  flex: 1; padding: 9px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
  font-weight: 800; font-size: 13px; color: var(--muted);
}
.map-mode-btn.active { background: var(--primary-soft); color: var(--primary-dark); border-color: rgba(255,90,60,.4); }
.nearby-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 800; }
.nearby-head small { font-size: 10px; color: var(--muted); font-weight: 700; }
.nearby-list { display: grid; gap: 10px; }
.nearby-spot {
  display: flex; align-items: center; gap: 10px; padding: 10px; text-align: left;
  border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line);
}
.nearby-spot-img { flex: 0 0 54px; width: 54px; height: 54px; border-radius: 10px; overflow: hidden; }
.nearby-spot-img img { width: 100%; height: 100%; object-fit: cover; }
.nearby-spot-body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.nearby-spot-body b { font-size: 14px; }
.nearby-spot-body small { font-size: 11px; color: var(--muted); }
.nearby-dist { font-size: 11px; font-weight: 800; color: var(--primary-dark); }
.nearby-go { font-size: 11px; font-weight: 800; color: var(--muted); }
.nearby-detail { display: grid; gap: 12px; }
.nearby-detail-img { width: 100%; aspect-ratio: 16/10; border-radius: 14px; overflow: hidden; }
.nearby-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.nearby-detail h2 { font-size: 20px; }
.nearby-detail > p { margin: 0; color: var(--muted); font-size: 13px; }
.nearby-detail-meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 11px; color: var(--muted); font-weight: 700; }
.nearby-detail-meta b { color: var(--text); }
.nearby-detail-actions { display: flex; gap: 10px; }

/* === Coin piggy === */
.coin-piggy-row { display: flex; align-items: center; gap: 12px; }
.coin-piggy-icon {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe9a8, #f2c94c 60%, #d4af37);
  box-shadow: inset 0 -3px 0 rgba(122,92,0,.25), 0 4px 12px rgba(212,175,55,.35);
  border: 3px solid #fff;
}
.coin-piggy-main { flex: 1; display: grid; gap: 3px; }
.coin-piggy-main p { margin: 0; font-size: 13px; font-weight: 700; }
.coin-piggy-main b { color: #b8860b; }
.coin-goal { font-size: 11px; color: var(--muted); }

/* === Notes + memory 2.0 === */
.note-wish-quick { width: auto; min-width: 34px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 11px; }
.note-distance {
  position: absolute; left: 10px; bottom: 10px; z-index: 5;
  padding: 4px 8px; border-radius: 999px;
  background: rgba(20,22,43,.72); color: #fff; font-size: 10px; font-weight: 800;
}
.pub-required { color: var(--primary-dark); font-size: 10px; font-weight: 800; margin-left: 4px; }
.customized-line { margin: 0; font-size: 12px; color: var(--primary-dark); font-weight: 700; }
.memory-card-meta { margin: 4px 0 0; font-size: 11px; font-weight: 800; color: var(--muted); }
.memory-intro { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.memory-actions { display: flex; gap: 8px; margin-top: 4px; }
.amp-meta { font-size: 11px; color: var(--muted); font-weight: 800; }
.amp-img { position: relative; }
.amp-custom-mark {
  position: absolute; top: 8px; left: 8px; z-index: 2; font-style: normal;
  font-size: 9px; font-weight: 900; padding: 3px 7px; border-radius: 999px;
  background: rgba(255,215,0,.92); color: #7a5c00;
}
.slot-photo { position: relative; }
.slot-custom-badge {
  position: absolute; bottom: 6px; right: 6px; font-style: normal;
  font-size: 8px; font-weight: 900; padding: 2px 6px; border-radius: 999px;
  background: rgba(255,215,0,.92); color: #7a5c00;
}
.slot-ghost { display: grid; place-items: center; color: rgba(20,22,43,.35); font-size: 18px; font-weight: 900; }

/* === Pokemon-style detail card === */
.pkm-card {
  display: grid; overflow: hidden; border-radius: 20px;
  border: 3px solid var(--line);
  background: linear-gradient(160deg, #fff 0%, var(--surface-2) 100%);
  box-shadow: var(--shadow-md), inset 0 0 0 1px rgba(255,255,255,.7);
}
.pkm-face {
  position: relative; width: 100%; aspect-ratio: 4/3;
  background-size: cover; background-position: center;
}
.pkm-face::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(20,22,43,.05) 0%, transparent 55%, rgba(20,22,43,.28) 100%);
}
.pkm-no {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 900;
  background: rgba(255,255,255,.9); color: var(--text);
}
.pkm-rarity {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 900;
  background: rgba(255,255,255,.9); color: var(--rarity-common);
}
.pkm-rarity.rarity-rare { color: var(--rarity-rare); }
.pkm-rarity.rarity-hidden { color: var(--rarity-hidden); }
.pkm-body { padding: 16px; display: grid; gap: 12px; }
.pkm-tags { display: flex; gap: 6px; }
.pkm-intro { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.6; }
.pkm-lore {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px; display: grid; gap: 8px;
}
.detail-notes-entry {
  width: 100%; margin-top: 12px; padding: 12px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary-dark); font-weight: 900;
  border: 1.5px solid rgba(255,90,60,.2);
}
.detail-notes-view { display: grid; gap: 14px; }
.detail-notes-head { display: flex; align-items: center; gap: 10px; }
.detail-notes-head b { font-size: 15px; }

/* === Plus menu + coin feedback === */
.plus-panel { max-width: 360px; }
.plus-actions { display: grid; gap: 12px; }
.plus-action {
  display: flex; align-items: center; gap: 12px; padding: 14px; text-align: left;
  border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line);
}
.plus-action-icon {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center; font-weight: 900;
  background: linear-gradient(135deg, #ff5a3c, #ff8a3c); color: #fff; font-size: 16px;
}
.plus-action:nth-child(2) .plus-action-icon { background: linear-gradient(135deg, #6c5ce7, #a29bfe); }
.plus-action-copy { display: grid; gap: 2px; }
.plus-action b { font-size: 15px; }
.plus-action small { font-size: 11px; color: var(--muted); font-weight: 700; }
.plate-coin-flash {
  align-self: center; padding: 8px 14px; border-radius: 999px;
  background: #fff7dc; color: #b8860b; font-weight: 900; border: 1.5px solid #f2c94c;
  animation: coinFlashPop .5s cubic-bezier(.2,1,.3,1);
}
@keyframes coinFlashPop {
  0% { transform: scale(.6); opacity: 0; }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}
.coin-convert { margin: 0; font-size: 11px; color: var(--muted); font-weight: 700; text-align: center; }

/* === Compact album cover bar === */
.album-cover.album-cover-face { aspect-ratio: auto; min-height: 118px; }
.album-cover-bar {
  position: relative; width: 100%; height: 118px;
  border-radius: 6px 18px 18px 6px; overflow: hidden;
  background-size: cover; background-position: center;
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.acb-shade {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,22,43,.72), rgba(20,22,43,.28));
}
.acb-thumb {
  position: relative; z-index: 2; flex: 0 0 74px; width: 74px; height: 74px;
  border-radius: 12px; background-size: cover; background-position: center;
  border: 2px solid rgba(255,255,255,.85); box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.acb-main { position: relative; z-index: 2; color: #fff; min-width: 0; display: grid; gap: 2px; }
.acb-main .cover-simple-kicker { font-size: 9px; letter-spacing: .18em; opacity: .85; }
.acb-main h2 { font-size: 24px; letter-spacing: .06em; text-shadow: 0 3px 10px rgba(0,0,0,.3); }
.acb-main p { margin: 0; font-size: 12px; font-weight: 800; opacity: .95; }
.album-cover-bar .album-open-btn {
  position: absolute; right: 12px; bottom: 12px; z-index: 3;
  padding: 8px 14px; border-radius: 999px; font-size: 12px; font-weight: 900;
  background: rgba(255,255,255,.92); color: #14162b; box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.slot-photo-add {
  position: absolute; bottom: 6px; right: 6px; z-index: 4; font-size: 9px; font-weight: 900;
  padding: 3px 8px; border-radius: 999px; background: rgba(255,90,60,.92); color: #fff;
}

/* === Compact me album card top === */
.me-stats { gap: 6px; }
.stat-cell { padding: 8px 4px; }
.stat-cell b { font-size: 17px; }
.stat-cell span { font-size: 10px; }
.badges {
  display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto;
  padding-bottom: 2px; scrollbar-width: none;
}
.badges::-webkit-scrollbar { display: none; }
.badge-card { flex: 0 0 78px; width: 78px; padding: 8px 4px; gap: 3px; }
.badge-card-icon { width: 28px; height: 28px; }
.badge-card-icon svg { width: 28px; height: 28px; }
.badge-card-name { font-size: 10px; }
.badge-card-meta { font-size: 9px; }

/* === Checkin message step === */
.checkin-message-block { display: grid; gap: 6px; }
.checkin-message-label { font-size: 12px; font-weight: 900; color: var(--text); }
.checkin-message-block small { font-size: 10px; color: var(--muted); }
.checkin-message { min-height: 84px; resize: vertical; }

/* === Polaroid memory pair === */
.memory-pair { position: relative; z-index: 2; width: min(76vw, 340px); margin-top: 54px; }
.memory-polaroid.main {
  position: relative; background: #fff; padding: 10px 10px 14px;
  border-radius: 6px; box-shadow: 0 18px 40px rgba(0,0,0,.35);
  transform: rotate(-1deg);
}
.memory-polaroid.main > img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 3px; display: block;
}
.memory-polaroid-cap {
  display: grid; gap: 4px; padding: 10px 2px 2px; text-align: left; color: var(--text);
}
.memory-polaroid-cap span { font-size: 12px; color: var(--muted); }
.memory-polaroid-cap p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text); }
.memory-polaroid.companion {
  position: absolute; right: -10px; bottom: 66px; z-index: 3; width: 56%;
  aspect-ratio: 4/3; background-size: cover; background-position: center;
  border: 7px solid #fff; border-radius: 5px; box-shadow: 0 12px 26px rgba(0,0,0,.28);
  transform: rotate(4deg); display: flex; align-items: flex-end;
}
.memory-polaroid.companion span {
  margin: 4px 6px; padding: 2px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 800; color: var(--text);
  background: rgba(255,255,255,.9);
}
.memory-polaroid.main .memory-stamp {
  right: auto; left: -10px; top: -14px; bottom: auto; transform: rotate(-8deg);
}
.memory-info { margin-top: 18px; }
.polaroid-second {
  width: 46%; border: 5px solid #fff; border-radius: 5px;
  transform: rotate(-3deg); box-shadow: 0 6px 14px rgba(20,30,50,.22);
}

/* === IA refactor === */
.atlas-entry-btn {
  width: 100%; padding: 12px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary-dark); font-weight: 900;
  border: 1.5px solid rgba(255,90,60,.2);
}
.plate-entry-card { padding: 0; }
.plate-entry-btn {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; text-align: left;
}
.plate-entry-icon {
  flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, #00b894, #7ee8a2); position: relative;
}
.plate-entry-icon::after {
  content: ""; position: absolute; inset: 9px; border-radius: 50%;
  border: 3px dashed #fff;
}
.plate-entry-copy { flex: 1; display: grid; gap: 2px; }
.plate-entry-copy b { font-size: 15px; }
.plate-entry-copy small { font-size: 11px; color: var(--muted); }
.plate-entry-go { font-size: 12px; font-weight: 800; color: var(--muted); }
.dice-reason { margin: 0; font-size: 10px; color: var(--primary-dark); font-weight: 700; }
.dice-log {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 10px;
}
.dice-log-label { font-size: 10px; font-weight: 900; color: var(--muted); }
.dice-log-item {
  font-size: 10px; font-weight: 700; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 8px;
}
.dice-more-toggle {
  align-self: flex-start; padding: 6px 10px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--muted);
  font-size: 11px; font-weight: 800;
}
.dice-more { display: grid; gap: 10px; }
.dice-more.hidden { display: none; }
.dice-relax-tip {
  margin: 0; padding: 6px 10px; border-radius: 999px; text-align: center;
  background: rgba(255,215,0,.15); color: #8a6d00; font-size: 11px; font-weight: 800;
}
.reset-demo-card { align-items: flex-start; gap: 6px; }
.reset-demo-note { font-size: 11px; color: var(--muted); }
.hot-feed .note-img { aspect-ratio: 1/1; }
.atlas-view-seg { display: flex; gap: 8px; }
.atlas-view-btn {
  flex: 1; padding: 9px; border-radius: 999px; font-weight: 800; font-size: 13px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--muted);
}
.atlas-view-btn.active {
  background: var(--primary-soft); color: var(--primary-dark);
  border-color: rgba(255,90,60,.4);
}
.cal-wrap { display: grid; gap: 10px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; }
.cal-head b { font-size: 16px; }
.cal-nav {
  width: 34px; height: 34px; border-radius: 50%; font-size: 18px;
  background: var(--surface-2); border: 1px solid var(--line);
}
.cal-overview { margin: 0; font-size: 12px; color: var(--muted); font-weight: 700; text-align: center; }
.cal-week {
  display: grid; grid-template-columns: repeat(7, 1fr); text-align: center;
  font-size: 10px; color: var(--muted); font-weight: 800;
}
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-cell {
  position: relative; min-height: 64px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; padding: 4px 2px; gap: 3px;
}
.cal-cell.empty { border: none; background: none; }
.cal-cell.has { cursor: pointer; }
.cal-num { font-size: 12px; font-weight: 900; }
.cal-num.muted { color: #c4c8d4; }
.cal-thumb {
  width: 34px; height: 34px; border-radius: 8px;
  background-size: cover; background-position: center;
  border: 2px solid #fff; box-shadow: var(--shadow-sm);
}
.cal-region {
  font-size: 8px; color: var(--muted); font-weight: 800;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cal-count {
  position: absolute; top: 2px; right: 2px; color: #fff;
  background: var(--primary); border-radius: 999px; padding: 1px 5px;
  font-size: 9px; font-weight: 900;
}
.cal-day-wrap { display: grid; gap: 12px; }
.cal-day-list { display: grid; gap: 12px; }
.cal-day-card {
  display: flex; gap: 12px; padding: 10px; text-align: left;
  border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line);
}
.cal-day-img {
  flex: 0 0 96px; width: 96px; height: 96px; border-radius: 12px; overflow: hidden;
  border: 6px solid #fff; box-shadow: var(--shadow-sm);
}
.cal-day-img img { width: 100%; height: 100%; object-fit: cover; }
.cal-day-body { flex: 1; min-width: 0; display: grid; gap: 4px; }
.cal-day-body b { font-size: 14px; }
.cal-day-body small { font-size: 11px; color: var(--muted); }
.cal-day-body p { margin: 0; font-size: 13px; }
@media (max-width: 560px) {
  .cal-cell { min-height: 56px; }
  .cal-thumb { width: 30px; height: 30px; }
}
.polaroid-memory {
  border: 8px solid #fff; border-bottom-width: 30px; border-radius: 4px;
  box-shadow: 0 8px 20px rgba(20,30,50,.14); overflow: hidden;
}
.polaroid-memory img { border-radius: 2px; }
.memory-sticker img { border: 8px solid #fff; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.dice-daily-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
}
.dice-daily-head b { font-size: 14px; }
.dice-daily-head span { font-size: 11px; color: var(--primary-dark); font-weight: 700; }

/* === Polaroid memory feed === */
.polaroid-feed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.polaroid-feed.one-col { grid-template-columns: 1fr; }
.polaroid-card {
  display: grid; gap: 0; padding: 0; text-align: left; background: #fff;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  box-shadow: 0 6px 16px rgba(20,30,50,.1); cursor: pointer;
}
.polaroid-photo {
  display: block; width: 100%; aspect-ratio: 1/1; overflow: hidden;
  background: var(--surface-2);
}
.polaroid-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.polaroid-caption { display: grid; gap: 3px; padding: 10px 10px 12px; }
.polaroid-caption small { font-size: 11px; color: var(--muted); }
.polaroid-caption b { font-size: 14px; }
.polaroid-caption p { margin: 0; font-size: 13px; line-height: 1.5; }
.polaroid-meta { font-size: 10px; color: var(--muted); font-weight: 800; }
.album-complete-line {
  margin: 0; padding: 8px 12px; border-radius: 999px; text-align: center;
  background: rgba(255,215,0,.15); color: #8a6d00; font-size: 12px; font-weight: 800;
}
.cal-empty-slot { min-height: 0; }
.cal-empty-num {
  display: grid; place-items: center; min-height: 52px;
  font-size: 12px; color: #e8eaf0; font-weight: 800;
}
.cal-month-empty {
  margin: 0; text-align: center; color: var(--muted);
  font-size: 13px; font-weight: 700; padding: 20px 0 4px;
}
@media (max-width: 560px) {
  .polaroid-feed { gap: 10px; }
}
.polaroid-photo { position: relative; }
.polaroid-second {
  position: absolute; right: 8px; bottom: 8px; z-index: 2;
  width: 42%; aspect-ratio: 1/1; border-radius: 6px; overflow: hidden;
  border: 4px solid #fff; box-shadow: 0 4px 10px rgba(20,30,50,.2); background: #fff;
}
.polaroid-second img { width: 100%; height: 100%; object-fit: cover; display: block; }
.memory-second {
  position: absolute; right: 14px; bottom: 14px; z-index: 3;
  width: 34%; aspect-ratio: 1/1; border-radius: 8px; overflow: hidden;
  border: 5px solid #fff; box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.memory-second img { width: 100%; height: 100%; object-fit: cover; display: block; }
.checkin-second-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.checkin-second-preview {
  width: 64px; height: 64px; border-radius: 8px; object-fit: cover;
  border: 3px solid #fff; box-shadow: var(--shadow-sm);
}
.capture-second-row { display: flex; align-items: center; gap: 8px; }
.capture-second-preview {
  width: 64px; height: 64px; border-radius: 8px; object-fit: cover;
  border: 3px solid #fff; box-shadow: var(--shadow-sm);
}
.capture-second-add { text-align: center; }

/* === Image viewer + memory note === */
.viewer-panel {
  width: 100%; max-width: 760px; height: 92vh; max-height: 92vh;
  display: flex; flex-direction: column; overflow: hidden;
  background: #0c0f1a; border-radius: 16px;
}
.viewer-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; background: rgba(255,255,255,.05);
}
.viewer-head .close {
  color: #fff; background: rgba(255,255,255,.12);
}
.viewer-panel img {
  flex: 1; min-height: 0; width: 100%; object-fit: contain; background: #000;
}
.memory-note-panel { max-width: 360px; }
.memory-second-note {
  cursor: pointer; display: inline-block; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.memory-polaroid.companion { cursor: pointer; }
.memory-polaroid.main img { cursor: pointer; }
.memory-edit-text { cursor: pointer; }
.memory-edit-text:hover { color: var(--primary-dark); }

/* === Status + filters + share + tone === */
.pkm-status {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 900;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--muted);
}
.pkm-status.status-eaten { color: #008f72; background: rgba(0,184,148,.1); border-color: rgba(0,184,148,.3); }
.pkm-status.status-collected { color: var(--rarity-rare); background: rgba(33,150,243,.08); border-color: rgba(33,150,243,.25); }
.pkm-status.status-plate { color: var(--accent); background: rgba(108,92,231,.08); border-color: rgba(108,92,231,.25); }
.pkm-status.status-wish { color: var(--primary-dark); background: var(--primary-soft); border-color: rgba(255,90,60,.25); }
.share-food-btn {
  width: 100%; padding: 10px; border-radius: 999px; font-weight: 900; font-size: 13px;
  background: var(--surface-2); border: 1.5px solid var(--line); color: var(--text);
}
.share-food-btn:hover { border-color: rgba(255,90,60,.35); color: var(--primary-dark); }
.share-body img { width: 100%; border-radius: 14px; display: block; box-shadow: var(--shadow-md); }
.share-download { display: block; text-align: center; padding: 12px; border-radius: 999px; text-decoration: none; }
.me-entry-grid-inner { grid-template-columns: repeat(2, 1fr); }
.feed-filter-row { display: flex; gap: 8px; flex-wrap: wrap; }
.feed-filter {
  padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 800;
  color: var(--muted); background: var(--surface-2); border: 1px solid var(--line);
}
.feed-filter.active { color: var(--primary-dark); background: var(--primary-soft); border-color: rgba(255,90,60,.4); }
.plate-head-right { display: inline-flex; align-items: center; gap: 8px; }
#tab-plate.hide-calories .plate-dish-inner,
#tab-plate.hide-calories .plate-meta-row,
#tab-plate.hide-calories .plate-food-main small { display: none; }

/* === Atlas book === */
.atlas-book { display: grid; gap: 14px; }
.atlas-book-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.atlas-book-head b { font-weight: 900; }
.atlas-book-head small { color: var(--muted); font-weight: 700; font-size: 11px; }
.atlas-region-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.atlas-region-cover {
  position: relative; aspect-ratio: 3/2; border-radius: 12px; border: 1.5px solid var(--rc);
  overflow: hidden; padding: 8px 10px; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  background: linear-gradient(135deg, #fff 0%, color-mix(in srgb, var(--rc) 10%, #fff) 100%);
  box-shadow: var(--shadow-sm);
}
.arc-name { font-size: 13px; font-weight: 900; color: var(--rc); }
.arc-count {
  flex: 0 0 auto; font-size: 11px; font-weight: 900; color: var(--text);
  background: rgba(255,255,255,.8); border: 1px solid var(--line);
  border-radius: 999px; padding: 2px 8px;
}
.atlas-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.atlas-card {
  display: grid; gap: 6px; padding: 10px; border-radius: 14px;
  background: #fff; border: 1.5px solid var(--line); text-align: left; box-shadow: var(--shadow-sm);
}
.atlas-card.unlit { background: #fff; border: 2px dashed color-mix(in srgb, var(--rc) 55%, #fff); }
.ac-img {
  position: relative; width: 100%; aspect-ratio: 4/3; border-radius: 10px; overflow: hidden;
  background: var(--surface-2); display: grid; place-items: center;
  color: color-mix(in srgb, var(--rc) 70%, #999);
}
.ac-img img { width: 100%; height: 100%; object-fit: cover; }
.ac-img svg { width: 70%; height: 70%; }
.ac-custom {
  position: absolute; top: 6px; right: 6px; font-style: normal; font-size: 9px; font-weight: 900;
  padding: 2px 7px; border-radius: 999px; background: rgba(255,215,0,.92); color: #7a5c00;
}
.ac-info { display: grid; gap: 2px; }
.ac-info b { font-size: 13px; }
.ac-info small { font-size: 10px; color: var(--muted); font-weight: 700; }
.atlas-card.unlit .ac-info b { color: var(--muted); }
.atlas-page-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.atlas-page-nav span { font-size: 12px; font-weight: 800; color: var(--muted); }
@media (min-width: 560px) {
  .atlas-card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* 拍照识别结果 */
.capture-recognized-name { margin: 8px 0 2px; font-size: 16px; font-weight: 900; color: var(--ink); }
.capture-actions-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; justify-content: center; }
.capture-manual .search { width: 100%; margin: 10px 0; }
.capture-error .muted { margin: 6px 0 2px; }

/* 点点桌宠 */
.pet-dock { position: fixed; right: 16px; bottom: 94px; z-index: 60; width: 84px; height: 84px; cursor: grab; touch-action: none; }
.pet-dock.dragging { cursor: grabbing; z-index: 80; }
.pet-mini { position: relative; width: 84px; height: 84px; filter: drop-shadow(0 6px 10px rgba(120, 60, 20, .22)); }
.pet-mini .pet-sprite { display: block; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); image-rendering: pixelated; pointer-events: none; }
.dock-bubble { position: absolute; right: 0; bottom: 92px; width: 224px; background: #fff; border: 1px solid #ffe0d1; box-shadow: 0 10px 26px rgba(90, 40, 10, .14); border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.5; color: #4a2b1d; }
.dock-bubble::after { content: ""; position: absolute; right: 26px; bottom: -7px; width: 12px; height: 12px; background: #fff; border-right: 1px solid #ffe0d1; border-bottom: 1px solid #ffe0d1; transform: rotate(45deg); }
.dock-menu { position: absolute; right: 0; bottom: 92px; display: flex; flex-direction: column; gap: 4px; min-width: 116px; background: rgba(255,255,255,.97); border: 1px solid #ffe0d1; border-radius: 10px; padding: 8px; box-shadow: 0 10px 26px rgba(90, 40, 10, .14); }
.dock-menu button { border: 0; background: transparent; padding: 8px 10px; text-align: left; font-size: 13px; font-weight: 700; color: #4a2b1d; border-radius: 7px; cursor: pointer; }
.dock-menu button:hover { background: #fff1e8; }
.pet-panel { max-width: 360px; width: calc(100vw - 32px); }
.pet-stage { position: relative; display: flex; align-items: center; justify-content: center; height: 206px; overflow: hidden; background: linear-gradient(180deg, #fff8f2, #ffe9da); border-radius: 10px; margin-bottom: 10px; }
.pet-stage-body { position: relative; width: 220px; height: 200px; }
.pet-stage-body .pet-sprite { display: block; position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); image-rendering: pixelated; pointer-events: none; }
.pet-mood-chip { position: absolute; top: 8px; left: 10px; font-size: 11px; font-weight: 900; color: #a85a2a; background: rgba(255,255,255,.8); padding: 3px 8px; border-radius: 999px; }
.pet-chip { position: absolute; top: 8px; right: 10px; font-size: 11px; font-weight: 900; color: #7a4a26; background: rgba(255,255,255,.8); padding: 3px 8px; border-radius: 999px; }
.pet-messages { height: 180px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 10px; background: #fffaf5; border: 1px solid #f3e2d6; border-radius: 10px; margin-bottom: 10px; }
.pet-messages .chat-bubble { max-width: 82%; }
.pet-composer { display: flex; gap: 8px; margin-bottom: 10px; }
.pet-composer input { flex: 1; min-width: 0; }
.pet-profile-row { display: flex; gap: 8px; align-items: center; }
.pet-profile-row input, .pet-profile-row select { flex: 1; min-width: 0; }
