:root {
  --radius: 26px;
  --shadow-lg: 0 24px 60px rgba(175, 85, 135, .16);
  --shadow-sm: 0 8px 20px rgba(175, 85, 135, .08);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
  color: var(--text, #5C3A49);
  background: var(--bg, linear-gradient(165deg,#FFF7FC,#FFEDF6 45%,#F7F1FF));
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* skins */
.skin-pink   { --a:#FFB6D5; --b:#DFC8FF; --accent:#FF5F8F; --text:#4E3040; --sub:#B08296; --btn:linear-gradient(135deg,#FFA6C6,#FF7BA8 55%,#E86FD9); --bg:linear-gradient(165deg,#FFF7FC,#FFEDF6 45%,#F7F1FF); --soft:rgba(255,240,247,.75); --glass:rgba(255,255,255,.66); }
.skin-sakura { --a:#FFC7DC; --b:#FFE0C9; --accent:#F2679A; --text:#4E3040; --sub:#B58394; --btn:linear-gradient(135deg,#FFB0CC,#FF87B3 55%,#FF9E8E); --bg:linear-gradient(165deg,#FFFAFC,#FFF0F6 45%,#FFF7F0); --soft:rgba(255,243,247,.78); --glass:rgba(255,255,255,.68); }
.skin-cream  { --a:#FFDDBE; --b:#FFE4EF; --accent:#D98B54; --text:#5A4130; --sub:#A98A6F; --btn:linear-gradient(135deg,#F5C79B,#E9A874 55%,#E88FA9); --bg:linear-gradient(165deg,#FFFDF8,#FFF7EC 45%,#FFF2F7); --soft:rgba(255,248,240,.8); --glass:rgba(255,255,255,.72); }
.skin-mint   { --a:#B7EBDD; --b:#CFE3FF; --accent:#3FA98D; --text:#31544C; --sub:#6E9A8E; --btn:linear-gradient(135deg,#9ADFCB,#6BC7B0 55%,#6FA8E0); --bg:linear-gradient(165deg,#F8FFFD,#EFFBF7 45%,#F2F7FF); --soft:rgba(240,253,249,.8); --glass:rgba(255,255,255,.68); }
.skin-lilac  { --a:#D6C6FF; --b:#FFD6EC; --accent:#7D5FC4; --text:#453A5C; --sub:#8B7BA8; --btn:linear-gradient(135deg,#C3AEF5,#9C82E0 55%,#E07FC0); --bg:linear-gradient(165deg,#FBF9FF,#F3EEFF 45%,#FDF2FF); --soft:rgba(246,241,255,.8); --glass:rgba(255,255,255,.66); }

/* blobs */
.blobs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.blob.a { width: 320px; height: 320px; top: -120px; left: -100px; background: var(--a); animation: driftA 22s ease-in-out infinite; }
.blob.b { width: 360px; height: 360px; bottom: -140px; right: -120px; background: var(--b); animation: driftB 28s ease-in-out infinite; }
@keyframes driftA { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(36px,30px) scale(1.14)} }
@keyframes driftB { 0%,100%{transform:translate(0,0) scale(1.05)} 50%{transform:translate(-40px,-30px) scale(.95)} }

.app { position: relative; z-index: 1; max-width: 520px; margin: 0 auto; padding-bottom: 92px; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 30px 22px 34px; border-radius: 0 0 34px 34px; background: var(--soft); text-align: center; }
.hero .halo { position: absolute; left: 50%; top: 42%; width: 320px; height: 320px; margin: -190px 0 0 -160px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.95), rgba(255,255,255,.45) 42%, rgba(255,255,255,0) 70%); }
.spark { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #fff; box-shadow: 0 0 14px 4px rgba(255,255,255,.9); animation: twinkle 2.8s ease-in-out infinite; }
@keyframes twinkle { 0%,100%{opacity:.12;transform:scale(.6)} 50%{opacity:.95;transform:scale(1.1)} }
.role-chip { display: inline-block; padding: 5px 14px; border-radius: 999px; font-size: 11px; letter-spacing: 1px; color: var(--accent); background: rgba(255,255,255,.75); box-shadow: var(--shadow-sm); position: relative; z-index: 2; }
.kitty { width: 150px; height: auto; margin: 8px auto 2px; display: block; filter: drop-shadow(0 16px 22px rgba(190,90,140,.28)); animation: float 4.6s ease-in-out infinite; position: relative; z-index: 2; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.hero h1 { margin: 4px 0 0; font-size: 26px; font-weight: 900; letter-spacing: 2px; background: linear-gradient(120deg, var(--accent), #B07BE8 72%); -webkit-background-clip: text; background-clip: text; color: transparent; position: relative; z-index: 2; }
.hero p { margin: 6px 0 0; font-size: 12px; color: var(--sub); letter-spacing: 1px; position: relative; z-index: 2; }

/* layout */
.wrap { padding: 14px 16px 20px; }
.card { position: relative; overflow: hidden; background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.6)); border: 1px solid rgba(255,255,255,.95); border-radius: var(--radius); box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.95); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(118deg, rgba(255,255,255,.6), rgba(255,255,255,0) 42%); opacity: .55; }
.card > * { position: relative; z-index: 1; }

.rise { animation: riseIn .62s cubic-bezier(.22,.9,.24,1) both; }
@keyframes riseIn { from{opacity:0;transform:translateY(18px) scale(.985)} to{opacity:1;transform:none} }

.row { display: flex; align-items: center; }
.between { justify-content: space-between; }
.sub { font-size: 12px; color: var(--sub); letter-spacing: .5px; }
.title { font-size: 19px; font-weight: 800; letter-spacing: .3px; color: var(--text); }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.75); color: var(--accent); font-size: 10.5px; letter-spacing: .6px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.9); }

.btn { border: none; cursor: pointer; font-family: inherit; border-radius: 999px; font-size: 15px; font-weight: 700; letter-spacing: .5px; color: #fff; background: var(--btn); box-shadow: 0 14px 30px rgba(255,110,160,.32), inset 0 1px 0 rgba(255,255,255,.4); padding: 13px 22px; position: relative; overflow: hidden; transition: transform .12s ease; width: 100%; }
.btn:active { transform: scale(.975); }
.btn::after { content:""; position:absolute; top:0; left:-60%; width:40%; height:100%; background:linear-gradient(100deg, rgba(255,255,255,0), rgba(255,255,255,.55), rgba(255,255,255,0)); transform: skewX(-18deg); animation: sheen 3.6s ease-in-out infinite; }
@keyframes sheen { 0%{left:-60%} 55%{left:130%} 100%{left:130%} }
.btn.ghost { background: rgba(255,255,255,.85); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(255,190,215,.9); }
.btn.sm { padding: 9px 16px; font-size: 12.5px; width: auto; }

/* stats */
.stats { display: flex; margin-top: -22px; padding: 16px 6px; }
.stat { flex: 1; text-align: center; }
.stat .num { font-size: 22px; font-weight: 900; color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: -0.5px; }
.stat .lbl { font-size: 11px; color: var(--sub); margin-top: 3px; }
.vline { width: 1px; height: 26px; background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,180,205,.9), rgba(255,255,255,0)); }

/* photos */
.photos { display: flex; gap: 9px; overflow-x: auto; padding: 4px 0 2px; margin-top: 10px; -webkit-overflow-scrolling: touch; }
.photos img { width: 108px; height: 140px; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow-sm); flex: 0 0 auto; }
.empty-photo { margin-top: 10px; height: 84px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 12.5px; background: rgba(255,255,255,.5); box-shadow: inset 0 0 0 1.5px rgba(255,190,215,.9); cursor: pointer; }

/* quote */
.quote { margin-top: 12px; padding: 16px; background: var(--soft); }
.quote .q { margin-top: 8px; font-size: 15.5px; line-height: 1.75; color: var(--text); min-height: 52px; letter-spacing: .4px; }
.quote .acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }

/* grid */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.item { padding: 12px; cursor: pointer; transition: transform .15s ease; }
.item:active { transform: scale(.975); }
.ico { width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 27px; margin-bottom: 8px; overflow: hidden; }
.ico img { width: 100%; height: 100%; object-fit: cover; }
.item .nm { font-size: 14px; font-weight: 700; color: var(--text); }
.item .pr { margin-top: 5px; font-size: 12px; font-weight: 600; color: var(--accent); }

/* list rows */
.list { display: flex; flex-direction: column; gap: 10px; }
.rowcard { padding: 14px; display: flex; align-items: center; gap: 12px; }
.ck { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid rgba(255,160,190,.9); color: var(--accent); font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; cursor: pointer; }
.done .ck { background: rgba(255,120,160,.15); }
.done { opacity: .62; }

/* tabbar */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; max-width: 520px; margin: 0 auto; padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.82); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid rgba(255,255,255,.9); box-shadow: 0 -10px 30px rgba(175,85,135,.08); }
.tab { flex: 1; text-align: center; padding: 6px 2px; font-size: 10.5px; color: var(--sub); cursor: pointer; border-radius: 14px; transition: all .18s ease; }
.tab .ti { font-size: 18px; display: block; margin-bottom: 2px; }
.tab.on { color: var(--accent); font-weight: 800; background: rgba(255,255,255,.9); box-shadow: var(--shadow-sm); }

/* modal */
.mask { position: fixed; inset: 0; background: rgba(60,30,50,.35); backdrop-filter: blur(6px); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 520px; max-height: 86vh; overflow-y: auto; border-radius: 26px 26px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); background: var(--glass); backdrop-filter: blur(24px); box-shadow: 0 -20px 50px rgba(120,60,100,.2); animation: sheetIn .28s cubic-bezier(.2,.9,.3,1) both; }
@keyframes sheetIn { from{transform:translateY(40px);opacity:.6} to{transform:none;opacity:1} }
.sheet h3 { margin: 0 0 14px; font-size: 17px; color: var(--text); }
.field { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(255,200,220,.45); font-size: 14px; }
.field:last-child { border-bottom: none; }
.field input, .field select { border: none; background: transparent; text-align: right; font-size: 14px; color: var(--accent); font-family: inherit; outline: none; }
.field input { width: 55%; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.8); font-size: 12.5px; color: var(--sub); cursor: pointer; }
.chip.on { background: var(--btn); color: #fff; font-weight: 700; }

.swatches { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.swatch { width: 44px; text-align: center; cursor: pointer; }
.swatch i { display: block; width: 38px; height: 38px; border-radius: 50%; margin: 0 auto 4px; box-shadow: var(--shadow-sm); }
.swatch span { font-size: 10px; color: var(--sub); }
.swatch.on i { box-shadow: 0 0 0 3px var(--accent); }

.center { text-align: center; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; }
.divider-line { height: 1px; background: linear-gradient(90deg, rgba(255,200,220,0), rgba(255,170,200,.8), rgba(255,200,220,0)); margin: 14px 0; }
.pad-bottom { height: 24px; }
.empty { padding: 30px 10px; text-align: center; color: var(--sub); font-size: 13px; }
