* { box-sizing: border-box; }
:root { --bg:#FFF9EC; --card:#fff; --ink:#33323E; --accent:#FFB703; --accent2:#FFAFCC; --soft:#FFEFC7; }
body[data-kind="boy"]  { --bg:#EEF7FF; --accent:#38B6E3; --accent2:#7BDDB0; --soft:#DFF3FF; }
body[data-kind="girl"] { --bg:#FFF2F7; --accent:#FF7BAC; --accent2:#C39BDB; --soft:#FFE3EE; }
body[data-kind="surprise"] { --bg:#FFF9EC; --accent:#FFB703; --accent2:#FFAFCC; --soft:#FFEFC7; }
body { margin:0; font-family: "PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif; background:var(--bg); color:var(--ink); }
main { max-width:560px; margin:0 auto; padding:10px 12px 40px; }
.topbar { position:sticky; top:0; z-index:5; display:flex; justify-content:space-between; align-items:center; padding:10px 14px; background:var(--bg); }
.brand { font-size:22px; font-weight:800; } .brand-star { color:var(--accent); }
.lang-toggle button { border:none; background:none; font-size:15px; font-weight:700; color:var(--ink); cursor:pointer; padding:4px 2px; }
.lang-toggle button.on { color:var(--accent); text-decoration:underline; }
.lang-toggle .sep { opacity:.4; }
.card { background:var(--card); border-radius:22px; padding:16px; margin:12px 0; box-shadow:0 3px 14px rgba(51,50,62,.07); }
.card.slim { padding:12px 16px; }
h2 { margin:4px 0 12px; font-size:20px; } h3 { margin:10px 0 6px; }
.muted { opacity:.62; } .small { font-size:13px; }
.hidden { display:none !important; }
.kind-row { display:flex; gap:10px; }
.kind-btn { flex:1; border:3px solid var(--soft); background:#fff; border-radius:18px; padding:14px 4px; font-size:16px; font-weight:700; cursor:pointer; display:flex; flex-direction:column; gap:6px; align-items:center; }
.kind-btn.on { border-color:var(--accent); background:var(--soft); }
.kind-emoji { font-size:30px; }
.q-progress { font-weight:700; color:var(--accent); margin-bottom:2px; }
.q-options { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:10px; }
.q-opt { border:3px solid var(--soft); background:#fff; border-radius:16px; padding:14px 8px; font-size:16px; font-weight:600; cursor:pointer; }
.q-opt:active { border-color:var(--accent); background:var(--soft); }
.big-btn { display:block; width:100%; margin-top:14px; border:none; border-radius:999px; padding:15px; font-size:19px; font-weight:800; background:var(--accent); color:#fff; cursor:pointer; box-shadow:0 4px 0 rgba(0,0,0,.12); }
.big-btn:active { transform:translateY(2px); box-shadow:none; }
.big-btn.done { background:#B5EAD7; color:#2D6A4F; }
.pref-strip { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:8px; }
.pref-tag { background:var(--soft); border-radius:999px; padding:4px 10px; font-size:13px; font-weight:700; }
.lucky-card { text-align:center; border:3px dashed var(--accent2); border-radius:20px; padding:16px 12px; background:linear-gradient(180deg,#fff, var(--bg)); }
.lucky-card.super-glow { box-shadow:0 0 0 4px #FFD93D, 0 0 26px #FFD93D88; }
.card-char { animation:pop .5s ease; }
@keyframes pop { 0%{transform:scale(.4);opacity:0} 70%{transform:scale(1.12)} 100%{transform:scale(1);opacity:1} }
.rarity { font-weight:800; color:var(--accent); }
.rarity.super { color:#E8A100; } .rarity.hidden-r { color:#B892FF; }
.trait { font-size:16px; margin:2px 0 10px; }
.colour-band { border-radius:14px; padding:12px; font-weight:800; font-size:17px; margin:8px 0; }
.learn-box, .mission-box { background:var(--soft); border-radius:14px; padding:10px 12px; margin:10px 0; text-align:left; }
.learn-title, .mission-title { font-weight:800; font-size:14px; color:var(--accent); }
.learn-box p, .mission-box p { margin:4px 0; font-size:15px; }
.mission-done { margin-top:8px; font-weight:800; color:#2D6A4F; font-size:16px; }
.lucky-number { font-size:15px; font-weight:700; }
.share-btn { border:2px solid var(--accent); background:#fff; color:var(--ink); border-radius:999px; padding:10px 22px; font-size:16px; font-weight:700; cursor:pointer; }
.closing { margin-top:12px; font-size:18px; font-weight:800; color:var(--accent); }
.buddy-strip { display:flex; align-items:center; gap:8px; justify-content:center; background:var(--soft); border-radius:999px; padding:4px 12px 4px 4px; margin-bottom:10px; font-weight:700; }
.tree-art { text-align:center; }
.tree-stage { text-align:center; font-weight:800; font-size:17px; }
.week-dots { display:flex; justify-content:center; gap:8px; margin:8px 0; }
.dot { width:20px; height:20px; border-radius:50%; border:2px solid var(--accent2); background:#fff; }
.dot.on { background:var(--accent); border-color:var(--accent); }
.dot.today { outline:3px solid var(--soft); }
.album-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
.album-cell { text-align:center; border-radius:16px; padding:8px 2px; background:#FBFAF7; border:2px solid #F1EDE6; position:relative; }
.album-cell.locked { filter:grayscale(1); opacity:.45; }
.album-cell .nm { font-size:12.5px; font-weight:700; display:block; }
.album-cell .st { font-size:11px; color:#E8A100; display:block; min-height:14px; }
.album-cell .from { font-size:10.5px; color:#38B6E3; display:block; }
.album-cell button { margin-top:4px; font-size:11.5px; border:1.5px solid var(--accent); background:#fff; border-radius:999px; padding:3px 8px; cursor:pointer; font-weight:700; }
.poster { margin-top:14px; border:3px solid #FFD93D; border-radius:18px; padding:14px; text-align:center; background:linear-gradient(180deg,#FFFDF2,#FFF3C7); }
.poster-chars { display:flex; flex-wrap:wrap; justify-content:center; gap:2px; }
.friend-add { display:flex; gap:8px; }
.friend-add input { flex:1; border:2.5px solid var(--soft); border-radius:12px; padding:11px; font-size:16px; text-transform:uppercase; }
.mini-btn { border:none; background:var(--accent); color:#fff; border-radius:12px; padding:11px 16px; font-size:15px; font-weight:800; cursor:pointer; }
.friend-item { border:2px solid var(--soft); border-radius:14px; padding:10px 12px; margin:8px 0; }
.friend-item .row { display:flex; justify-content:space-between; align-items:center; }
.trade-box { background:#FBFAF7; border-radius:14px; padding:12px; margin-top:10px; }
.trade-box label { display:block; font-weight:700; font-size:14px; margin:8px 0 4px; }
.trade-box select { width:100%; padding:10px; border-radius:10px; border:2px solid var(--soft); font-size:15px; background:#fff; }
.offer-item { border:2px solid var(--soft); border-radius:14px; padding:10px 12px; margin:8px 0; display:flex; justify-content:space-between; align-items:center; gap:8px; }
.offer-item button { border:none; border-radius:999px; padding:8px 14px; font-weight:800; cursor:pointer; }
.btn-accept { background:#7BDDB0; color:#14532D; } .btn-decline { background:#F1EDE6; color:var(--ink); }
.foot { text-align:center; padding:14px 0 4px; }
#confetti { position:fixed; inset:0; pointer-events:none; z-index:50; overflow:hidden; }
.confetto { position:absolute; top:-14px; border-radius:3px; animation:fall linear forwards; }
@keyframes fall { to { transform:translateY(105vh) rotate(560deg); } }
