/* ProDo v2 — the organizer with your pet. White, ink, soft blue; chunky and pressable. */
@font-face { font-family: Rubik; font-weight: 300 900; font-display: swap; src: url(fonts/rubik-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Rubik; font-weight: 300 900; font-display: swap; src: url(fonts/rubik-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #0B0D10; --ink2: #3A414C; --grey: #5B6270; --line: #E3E8EF; --line2: #F0F3F7;
  --soft: #E6EEF9; --soft2: #EEF4FC; --mid: #C9DAF2; --sky: #9DBBE6;
  --blue: #3A72C8; --lip: #24518F; --link: #2F63B5;
  --top: env(safe-area-inset-top, 0px); --bot: env(safe-area-inset-bottom, 0px);
  --kb: 0px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #fff; color: var(--ink); font-family: Rubik, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
body { overflow: hidden; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- pressable pieces ---------- */
.btn { height: 58px; border-radius: 20px; border: 0; background: var(--blue); box-shadow: 0 5px 0 var(--lip); color: #fff;
  font-size: 19px; font-weight: 700; width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: transform .08s, box-shadow .08s; }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--lip); }
.btn:disabled { opacity: .55; }
.btn.white { background: #fff; color: var(--ink); border: 2.5px solid var(--line); box-shadow: 0 5px 0 var(--line); }
.btn.white:active { box-shadow: 0 1px 0 var(--line); }
.btn.dark { background: #1B1F25; box-shadow: 0 5px 0 #000; }
.btn.sky { background: var(--sky); color: var(--ink); box-shadow: 0 5px 0 var(--blue); }
.chip { height: 42px; padding: 0 14px; border-radius: 15px; background: #fff; border: 2.5px solid var(--line); box-shadow: 0 4px 0 var(--line);
  display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.chip:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.chip.on { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 3px 0 var(--lip); }
.icon-btn { width: 44px; height: 44px; border-radius: 16px; background: #fff; border: 2.5px solid var(--line); box-shadow: 0 4px 0 var(--line);
  display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.icon-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.coin-pill { height: 42px; padding: 0 13px 0 7px; border-radius: 15px; background: #fff; border: 2.5px solid var(--line); box-shadow: 0 4px 0 var(--line);
  display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 700; }
.coin-pill img { width: 25px; height: 27px; object-fit: contain; }
.card { background: #fff; border: 2.5px solid var(--line); box-shadow: 0 4px 0 var(--line); border-radius: 22px; }
.blue-card { background: var(--soft2); border: 2.5px solid var(--mid); box-shadow: 0 4px 0 var(--mid); border-radius: 22px; }
.muted { color: var(--grey); }
h1 { font-size: 34px; line-height: 1.05; letter-spacing: -.02em; font-weight: 800; margin: 0; }

/* ---------- onboarding ---------- */
.ob { position: fixed; top: 0; left: 0; right: 0; bottom: var(--kb); background: #fff; display: flex; flex-direction: column; gap: 22px;
  padding: calc(var(--top) + 26px) 22px calc(var(--bot) + 26px); overflow-y: auto; z-index: 40; }
.dots { display: flex; gap: 6px; justify-content: center; }
.dots i { width: 8px; height: 8px; border-radius: 4px; background: var(--line); }
.dots i.on { width: 28px; background: var(--blue); }
.dots i.past { background: var(--blue); }
.ob h1 { text-align: center; margin-top: 6px; }
.ob .lede { text-align: center; font-size: 15px; color: var(--grey); margin: 0; line-height: 1.4; }
.choice { position: relative; display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: 24px; border: 2.5px solid var(--line);
  background: #fff; box-shadow: 0 5px 0 var(--line); text-align: left; width: 100%; }
.choice.on { border-color: var(--blue); background: var(--soft2); box-shadow: 0 5px 0 var(--blue); }
.choice .ic { width: 58px; height: 58px; flex: none; border-radius: 18px; background: #F3F5F8; display: flex; align-items: center; justify-content: center; }
.choice.on .ic { background: #fff; }
.choice b { font-size: 20px; display: block; }
.choice span { font-size: 14px; color: var(--ink2); }
.choice .tick { position: absolute; top: -10px; right: -8px; width: 30px; height: 30px; border-radius: 15px; background: var(--blue); border: 3px solid #fff;
  display: none; align-items: center; justify-content: center; }
.choice.on .tick { display: flex; }
.drop { height: 360px; border-radius: 32px; border: 3px dashed #B9CFEE; background: var(--soft2); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; position: relative; overflow: hidden; width: 100%; }
.drop img.preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drop .cam { width: 96px; height: 96px; border-radius: 30px; background: #fff; border: 2.5px solid #D6E3F5; box-shadow: 0 5px 0 #D6E3F5;
  display: flex; align-items: center; justify-content: center; }
.field { height: 58px; border-radius: 20px; border: 2.5px solid var(--line); box-shadow: 0 4px 0 var(--line); display: flex; align-items: center;
  gap: 12px; padding: 0 18px; background: #fff; }
.field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 19px; font-weight: 700; }
.field label { color: var(--grey); font-size: 15px; font-weight: 500; }
.err { color: #B3261E; text-align: center; font-size: 14px; min-height: 18px; margin: 0; }
.making { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; text-align: center; }
.making .orb { width: 220px; height: 220px; border-radius: 50%; background: var(--soft2); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.making .orb img { width: 150px; height: 190px; object-fit: cover; border-radius: 20px; filter: saturate(.9); animation: breathe 2.4s ease-in-out infinite; }
.making .bar { width: 220px; height: 12px; border-radius: 6px; background: var(--line2); overflow: hidden; }
.making .bar i { display: block; height: 100%; width: 40%; border-radius: 6px; background: var(--blue); animation: slide 1.4s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
.meet { position: relative; height: 330px; }
.meet .polaroid { position: absolute; left: 6px; top: 16px; width: 128px; height: 168px; padding: 6px 6px 22px; background: #fff; border-radius: 16px;
  border: 2px solid var(--line); box-shadow: 0 5px 0 var(--line); transform: rotate(-7deg); }
.meet .polaroid img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; }
.meet .floor { position: absolute; right: 30px; bottom: 12px; width: 170px; height: 26px; border-radius: 50%; background: var(--soft); }
.meet .pet { position: absolute; right: 14px; bottom: 16px; height: 280px; width: 220px; object-fit: contain; object-position: bottom; }
.tags { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.tags span { padding: 8px 13px; border-radius: 999px; background: var(--soft); font-size: 14px; font-weight: 600; color: var(--lip); }
.tip-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 20px; background: #fff; border: 2.5px solid var(--line); box-shadow: 0 4px 0 var(--line); }
.tip-row i { width: 44px; height: 44px; flex: none; border-radius: 14px; background: var(--soft); display: flex; align-items: center; justify-content: center; font-style: normal; }
.tip-row b { font-size: 17px; font-weight: 600; }

/* ---------- the pet ---------- */
@keyframes breathe { 0%, 100% { transform: translateY(0) rotate(-.8deg) scaleY(1); } 50% { transform: translateY(-5px) rotate(.8deg) scaleY(1.018); } }
@keyframes hop { 0% { transform: translateY(0) scale(1.04, .94); } 20% { transform: translateY(0) scale(1.06, .9); } 55% { transform: translateY(-80px) scale(.97, 1.04); } 85% { transform: translateY(0) scale(1.05, .93); } 100% { transform: none; } }
@keyframes nod { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px) rotate(2deg); } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-5deg); } 75% { transform: rotate(5deg); } }
@keyframes floatUp { 0% { opacity: 0; transform: translateY(0) scale(.6); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-110px) scale(1.15); } }
@keyframes rise { 0% { opacity: 0; transform: translateY(0) scale(.5); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-170px) scale(1); } }
@keyframes pop { 0% { opacity: 0; transform: translateY(16px) scale(.7); } 100% { opacity: 1; transform: none; } }
@keyframes rollby { 0% { transform: translateX(-230px) rotate(0); } 100% { transform: translateX(230px) rotate(720deg); } }
@keyframes bounceY { 0%, 100% { margin-top: 0; } 50% { margin-top: -60px; } }
.petimg { transform-origin: 50% 100%; display: block; object-fit: contain; object-position: bottom; pointer-events: none; user-select: none; -webkit-user-select: none; }
.idle { animation: breathe 3.2s ease-in-out infinite; }
.hop { animation: hop .9s cubic-bezier(.3,.7,.4,1) 1; }
.nod { animation: nod .5s ease-in-out infinite; }
.wiggle { animation: wiggle .14s linear infinite; }
.heart { position: absolute; width: 28px; height: 28px; animation: floatUp 1.2s ease-out forwards; pointer-events: none; z-index: 6; }
.bub { position: absolute; border-radius: 50%; border: 2px solid #BFD6F5; background: radial-gradient(circle at 35% 35%, #fff 0 22%, rgba(220,235,252,.7) 23%);
  animation: rise 1.5s ease-out infinite; pointer-events: none; }

/* ---------- app shell ---------- */
.app { position: fixed; inset: 0; }
.page { position: absolute; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: calc(var(--top) + 122px) 16px calc(var(--bot) + 130px); background: #F7F9FC; }
.page.profile-page { padding-top: calc(var(--top) + 64px); }
.topfade { position: absolute; left: 0; right: 0; top: 0; height: calc(var(--top) + 64px); background: linear-gradient(#F7F9FC 55%, rgba(247,249,252,0)); pointer-events: none; z-index: 4; }
.topbar { position: absolute; left: 16px; right: 16px; top: calc(var(--top) + 10px); display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none; z-index: 6; }
.topbar > div { pointer-events: auto; min-width: 1px; }

/* liquid glass */
.glass, .tabbar, .island { background: rgba(255,255,255,.66); -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255,255,255,.85); box-shadow: 0 10px 28px rgba(24,44,84,.13), 0 1px 2px rgba(24,44,84,.08), inset 0 1px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(24,44,84,.05); }
.chip.glass, .icon-btn.glass, .coin-pill.glass { border: 1px solid rgba(255,255,255,.85); }
.chip.glass:active, .icon-btn.glass:active, .coin-pill.glass:active { transform: scale(.96); }

/* the island: pet bubble, top centre */
.island { position: absolute; left: 50%; top: calc(var(--top) + 8px); transform: translateX(-50%); width: 104px; height: 104px; border-radius: 52px; z-index: 7;
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0; overflow: visible; cursor: pointer;
  transition: width .42s cubic-bezier(.32,1.4,.5,1), height .42s cubic-bezier(.32,1.4,.5,1), border-radius .42s, top .3s, background .3s; }
.island .isl-pet { position: relative; width: 92px; height: 92px; flex: none; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 38%, #fff 0 40%, var(--soft2) 70%, var(--soft) 100%); transition: width .42s, height .42s; }
.island .isl-pet img { position: absolute; left: 6%; bottom: -2%; width: 88%; height: 96%; object-fit: contain; object-position: bottom; transform-origin: 50% 100%; }
.island .isl-txt { display: none; align-items: center; gap: 7px; font-size: 17px; white-space: nowrap; padding-right: 8px; }
.island .isl-txt img { width: 24px; height: 26px; object-fit: contain; }
.island.wide { width: 238px; height: 76px; border-radius: 38px; justify-content: flex-start; padding-left: 6px; background: rgba(11,13,16,.9); color: #fff; border-color: rgba(255,255,255,.12); }
.island.wide .isl-pet { width: 64px; height: 64px; }
.island.wide .isl-txt { display: flex; animation: pop .3s ease-out .12s both; }
.island.small:not(.wide) { width: 64px; height: 64px; border-radius: 32px; }
.island.small:not(.wide) .isl-pet { width: 56px; height: 56px; }
.island.listen { background: rgba(11,13,16,.92); }
.island.splash { background: linear-gradient(135deg, rgba(58,114,200,.94), rgba(127,178,238,.94)); }
.wave { display: inline-flex; gap: 3px; align-items: center; height: 20px; }
.wave i { width: 4px; height: 6px; border-radius: 2px; background: var(--sky); animation: wave .9s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: .15s; } .wave i:nth-child(3) { animation-delay: .3s; } .wave i:nth-child(4) { animation-delay: .45s; }
@keyframes wave { 0%, 100% { height: 5px; } 50% { height: 19px; } }

/* tab bar: liquid glass, Notes raised in the centre */
.tabbar { position: fixed; left: 14px; right: 14px; bottom: calc(var(--bot) + 12px); height: 74px; border-radius: 30px; display: flex; align-items: center; gap: 2px; padding: 0 6px; z-index: 20; }
.tabbar button { flex: 1; height: 60px; border-radius: 22px; border: 0; background: transparent; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--grey); padding: 0; }
.tabbar button.on { background: rgba(255,255,255,.85); color: var(--ink); box-shadow: 0 2px 8px rgba(24,44,84,.10); }
.tabbar button.on svg { fill: var(--soft); stroke: var(--ink); }
.tabbar img { width: 34px; height: 29px; object-fit: contain; }
.tabbar button.center { position: relative; justify-content: flex-end; padding-bottom: 6px; background: transparent; box-shadow: none; flex: 1.15; }
.tabbar .fab { position: absolute; left: 50%; top: -30px; width: 66px; height: 66px; margin-left: -33px; border-radius: 24px; background: var(--blue);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 5px 0 var(--lip), 0 12px 24px rgba(24,44,84,.22); border: 3px solid #fff;
  transform: rotate(-6deg); transition: transform .2s; }
.tabbar button.center.on .fab { transform: rotate(0) scale(1.05); }
.tabbar button.center svg { fill: none !important; stroke: #fff !important; transform: rotate(6deg); }
.tabbar button.center:active .fab { transform: translateY(4px); box-shadow: 0 1px 0 var(--lip); }
.tabbar button.center.on { color: var(--ink); }
.toast { position: fixed; left: 50%; top: calc(var(--top) + 120px); transform: translateX(-50%); background: var(--ink); color: #fff; font-weight: 700; font-size: 15px;
  padding: 11px 16px; border-radius: 16px; z-index: 90; display: flex; align-items: center; gap: 8px; animation: pop .25s ease-out; max-width: calc(100% - 40px); }
.toast.long { font-weight: 600; font-size: 14.5px; line-height: 1.35; width: calc(100% - 40px); }
.toast img { width: 22px; height: 24px; object-fit: contain; }
.empty { text-align: center; color: var(--grey); padding: 30px 10px; font-size: 15px; }

/* ---------- chat ---------- */
.chat { display: flex; flex-direction: column; gap: 12px; padding-bottom: 96px; }
.msg { max-width: 82%; padding: 12px 16px; border-radius: 22px; font-size: 16px; line-height: 1.38; white-space: pre-wrap; word-wrap: break-word; }
.msg.me { align-self: flex-end; background: var(--blue); color: #fff; border-radius: 22px 22px 6px 22px; box-shadow: 0 4px 0 var(--lip); }
.msg.pet { align-self: flex-start; background: #fff; border: 2.5px solid var(--line); box-shadow: 0 4px 0 var(--line); border-radius: 22px 22px 22px 6px; }
.msg.typing { color: var(--grey); }
.composer { position: fixed; left: 16px; right: 16px; bottom: calc(var(--bot) + 128px + var(--kb)); display: flex; gap: 10px; align-items: center; z-index: 19; }
html.kb .composer { bottom: calc(var(--kb) + 10px); }
html.kb .tabbar { display: none; }
.composer .in { flex: 1; min-height: 58px; border-radius: 22px; background: #F3F5F8; border: 2.5px solid var(--line); display: flex; align-items: center; padding: 0 16px; }
.composer textarea { flex: 1; border: 0; background: transparent; outline: 0; resize: none; font-size: 16px; font-weight: 500; max-height: 120px; padding: 15px 0; line-height: 1.3; }
.mic { width: 58px; height: 58px; flex: none; border-radius: 22px; border: 0; background: var(--blue); box-shadow: 0 5px 0 var(--lip); display: flex; align-items: center; justify-content: center; }
.mic.live { background: var(--ink); box-shadow: 0 5px 0 #000; }

/* ---------- agenda / notes ---------- */
.section-h { display: flex; align-items: baseline; gap: 8px; padding: 10px 4px 4px; }
.section-h b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.section-h.small b { font-size: 19px; font-weight: 700; letter-spacing: 0; }
.section-h span { font-size: 15px; color: var(--grey); font-weight: 500; }
.list { display: flex; flex-direction: column; gap: 10px; }
.it { display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 8px 12px 8px 14px; border-radius: 20px; background: #fff;
  border: 2.5px solid var(--line); box-shadow: 0 4px 0 var(--line); }
.it.ev { background: var(--soft2); border-color: var(--mid); box-shadow: 0 4px 0 var(--mid); }
.it.done { background: #F7F9FB; border-color: #EEF1F5; box-shadow: none; }
.it .chk { width: 30px; height: 30px; flex: none; border-radius: 15px; border: 2.5px solid #C9D2DE; background: #fff; padding: 0; display: flex; align-items: center; justify-content: center; }
.it.done .chk { background: var(--blue); border-color: var(--blue); }
.it .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.it .tx b { font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.it.done .tx b { color: var(--grey); text-decoration: line-through; }
.it .tx span { font-size: 13px; color: var(--grey); }
.it .go { width: 40px; height: 40px; flex: none; border-radius: 14px; background: var(--blue); box-shadow: 0 3px 0 var(--lip); border: 0; display: flex; align-items: center; justify-content: center; }
.it .earned { display: flex; align-items: center; gap: 3px; font-size: 14px; font-weight: 700; }
.it .earned img { width: 18px; height: 20px; object-fit: contain; }
.pills { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.note { padding: 14px 16px; border-radius: 22px; background: #fff; border: 2.5px solid var(--line); box-shadow: 0 4px 0 var(--line); display: flex; flex-direction: column; gap: 5px; text-align: left; width: 100%; }
.note b { font-size: 16px; font-weight: 700; }
.note p { margin: 0; font-size: 14.5px; line-height: 1.4; color: var(--ink2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.note small { font-size: 12.5px; color: var(--grey); }
.search { height: 46px; border-radius: 16px; background: #F3F5F8; border: 2.5px solid var(--line); display: flex; align-items: center; gap: 10px; padding: 0 14px; margin-bottom: 8px; }
.search input { flex: 1; border: 0; background: transparent; outline: 0; font-size: 16px; }

/* ---------- profile ---------- */
.stage { position: relative; height: 340px; margin: 0 -16px; }
.stage .glow { position: absolute; left: 50%; top: 6px; width: 300px; height: 300px; margin-left: -150px; border-radius: 50%; background: #F1F6FD; }
.stage .floor { position: absolute; left: 50%; bottom: 22px; width: 210px; height: 32px; margin-left: -105px; border-radius: 50%; background: #DCE7F7; }
.stage .tapper { position: absolute; left: 50%; bottom: 30px; width: 230px; height: 300px; margin-left: -115px; border: 0; background: transparent; padding: 0; }
.stage .tapper img { width: 100%; height: 100%; }
.stage .bowl { position: absolute; left: 50%; bottom: 8px; width: 110px; height: 84px; margin-left: -55px; object-fit: contain; animation: pop .25s ease-out; z-index: 2; }
.stage .ballrun { position: absolute; left: 50%; bottom: 20px; width: 56px; height: 56px; margin-left: -28px; animation: rollby .95s linear 1 forwards; z-index: 2; }
.stage .ballrun img { width: 56px; height: 56px; animation: bounceY .43s ease-in-out infinite; }
.items { display: flex; gap: 12px; }
.item { position: relative; flex: 1; height: 100px; border-radius: 24px; background: #fff; border: 2.5px solid var(--line); box-shadow: 0 5px 0 var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 0; }
.item:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--line); }
.item img { width: 54px; height: 48px; object-fit: contain; pointer-events: none; }
.item .meter { width: 44px; height: 6px; border-radius: 3px; background: #EDF0F4; overflow: hidden; }
.item .meter i { display: block; height: 100%; border-radius: 3px; background: var(--blue); }
.item.low { border-color: var(--blue); box-shadow: 0 5px 0 var(--blue); }
.item.low .meter i { background: var(--ink); }
.item .bang { position: absolute; top: -9px; right: -7px; width: 24px; height: 24px; border-radius: 12px; background: var(--blue); border: 3px solid #fff; color: #fff;
  font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.item .cost { font-size: 11px; font-weight: 700; color: var(--grey); display: flex; align-items: center; gap: 2px; }
.item .cost img { width: 12px; height: 13px; }
.shop { margin-top: 16px; height: 66px; border-radius: 22px; background: var(--ink); display: flex; align-items: center; gap: 14px; padding: 0 16px; color: #fff;
  box-shadow: 0 5px 0 #3A414C; border: 0; width: 100%; }
.shop img { width: 38px; height: 38px; object-fit: contain; }
.shop b { flex: 1; text-align: left; font-size: 18px; }
.shop span { padding: 6px 11px; border-radius: 999px; background: #1F2A3A; color: var(--sky); font-size: 13px; font-weight: 700; }

/* ---------- full screens: focus, done, wallet, sheets ---------- */
.full { position: fixed; top: 0; left: 0; right: 0; bottom: var(--kb); z-index: 50; background: #fff; display: flex; flex-direction: column; padding: calc(var(--top) + 14px) 18px calc(var(--bot) + 22px); overflow-y: auto; }
.full.dark { background: var(--ink); color: #fff; }
.focus .pet-wrap { position: relative; height: 290px; }
.focus .glow { position: absolute; left: 50%; top: 10px; width: 270px; height: 270px; margin-left: -135px; border-radius: 50%; background: #131B27; }
.focus .petimg { position: absolute; left: 50%; bottom: 20px; width: 260px; height: 170px; margin-left: -130px; }
.focus .bubble { position: absolute; right: 18px; top: 26px; padding: 8px 12px; border-radius: 14px 14px 4px 14px; background: var(--sky); color: var(--ink); font-size: 14px; font-weight: 700; }
.focus .time { font-size: 80px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; text-align: center; }
.focus .task { text-align: center; font-size: 18px; font-weight: 600; color: #C9D0DA; margin: 6px 0 10px; }
.focus .prog { height: 12px; border-radius: 6px; background: #1B1F25; margin: 18px 22px; overflow: hidden; }
.focus .prog i { display: block; height: 100%; background: var(--sky); border-radius: 6px; transition: width 1s linear; }
.row2 { display: flex; gap: 12px; margin-top: auto; }
.done-scr .stage2 { position: relative; height: 340px; }
.done-scr .glow { position: absolute; left: 50%; top: 20px; width: 300px; height: 300px; margin-left: -150px; border-radius: 50%; background: #F1F6FD; }
.done-scr .petimg { position: absolute; left: 50%; top: 10px; width: 230px; height: 320px; margin-left: -115px; animation: hop .9s ease-in-out infinite; }
.done-scr .cf { position: absolute; width: 12px; height: 20px; border-radius: 4px; }
.reward { margin: 8px auto 0; height: 76px; padding: 0 26px 0 14px; border-radius: 24px; background: #fff; border: 2.5px solid var(--line); box-shadow: 0 5px 0 var(--line);
  display: inline-flex; align-items: center; gap: 10px; }
.reward img { width: 50px; height: 54px; object-fit: contain; animation: wiggle 1.4s ease-in-out infinite; }
.reward b { font-size: 36px; font-weight: 800; }
.balances { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bal { height: 138px; border-radius: 24px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; }
.bal b { font-size: 34px; font-weight: 800; line-height: 1; display: block; }
.bal span { font-size: 13px; font-weight: 500; }
.bars { height: 96px; display: flex; gap: 10px; }
.bars div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; font-size: 12px; font-weight: 600; color: var(--grey); }
.bars i { display: block; width: 100%; border-radius: 8px; background: var(--mid); min-height: 4px; }
.bars div.today { color: var(--ink); } .bars div.today i { background: var(--blue); }
.hist { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 2px solid var(--line2); font-size: 15px; }
.hist span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist img { width: 18px; height: 20px; object-fit: contain; }
.topline { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.topline h2 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.sheet-bg { position: fixed; top: 0; left: 0; right: 0; bottom: var(--kb); background: rgba(11,13,16,.35); z-index: 60; display: flex; align-items: flex-end; }
.sheet { width: 100%; max-height: 88%; overflow-y: auto; background: #fff; border-radius: 28px 28px 0 0; padding: 18px 18px calc(var(--bot) + 22px); display: flex; flex-direction: column; gap: 14px; animation: pop .2s ease-out; }
.sheet h3 { margin: 0; font-size: 22px; font-weight: 800; }
.sheet textarea, .sheet input[type=text] { width: 100%; border: 2.5px solid var(--line); border-radius: 18px; padding: 14px; font-size: 16px; outline: 0; resize: none; background: #fff; }
.sheet .rowbtn { display: flex; gap: 10px; }
.setting { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 4px; border-bottom: 2px solid var(--line2); font-size: 16px; font-weight: 500; }
.linkbtn { border: 0; background: none; color: var(--link); font-weight: 600; font-size: 15px; padding: 8px; }
.danger { color: #B3261E; }

/* keyboard up: give the typing area room, drop the spacer so the field rides above the keys */
html.kb .ob { padding-bottom: 16px; justify-content: flex-start; }
.ob > * { flex-shrink: 0; }
html.kb .ob .drop { height: 200px; flex: none; }
html.kb .ob .flex-spacer { display: none; }

/* ---------- pet moods ---------- */
@keyframes popsmile { 0% { transform: scale(.82) translateY(6px); } 45% { transform: scale(1.08, .95); } 70% { transform: scale(.97, 1.04); } 100% { transform: none; } }
@keyframes tilt { 0%, 100% { transform: rotate(0); } 30%, 70% { transform: rotate(-7deg); } }
@keyframes shake { 0%, 100% { transform: translateX(0) rotate(0); } 20% { transform: translateX(-7px) rotate(-4deg); } 40% { transform: translateX(7px) rotate(4deg); } 60% { transform: translateX(-5px) rotate(-3deg); } 80% { transform: translateX(5px) rotate(3deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px) scale(1.02); } }
@keyframes drip { 0% { opacity: 0; transform: translateY(-6px) scale(.6); } 20% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 0; transform: translateY(70px) scale(.9); } }
.pop { animation: popsmile .55s cubic-bezier(.3,1.5,.5,1) 1; }
.tilt { animation: tilt 1.8s ease-in-out infinite; }
.wiggle { animation: shake .42s ease-in-out infinite; }
.done-scr .petimg.smiling { animation: bob 1.3s ease-in-out infinite; }
.drip { position: absolute; width: 14px; height: 14px; animation: drip 1.1s ease-in 2 both; pointer-events: none; z-index: 4; }
.stage .petimg.wiggle { animation: shake .42s ease-in-out infinite; }

/* ---------- groups, colours, wallet ---------- */
.grow { display: flex; gap: 8px; align-items: center; }
.grow input { flex: 1; }
.btn.danger-btn { background: #C8322B; box-shadow: 0 5px 0 #8A1E19; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.sw { width: 38px; height: 38px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line); padding: 0; }
.sw.on { box-shadow: 0 0 0 3px var(--ink); }
.earn { padding: 16px; margin-top: 14px; display: flex; flex-direction: column; gap: 11px; }
.earn > div { display: flex; align-items: center; gap: 11px; font-size: 14.5px; line-height: 1.35; color: var(--ink2); }
.earn > div > img, .earn > div > svg { width: 22px; height: 24px; flex: none; object-fit: contain; color: var(--blue); }
.newnote { width: 100%; height: 52px; margin: 2px 0 10px; border-radius: 18px; border: 2.5px dashed var(--mid); background: var(--soft2); color: var(--link);
  font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; }
.focus .sub { text-align: center; color: #8A93A0; font-size: 14px; font-weight: 600; margin-top: 6px; }
.topbar > div { transition: opacity .25s, transform .25s; }
.app.isl-wide .topbar > div { opacity: 0; transform: scale(.85); pointer-events: none; }

/* agenda days fold */
.day .section-h { align-items: center; }
.dayh { flex: 1; display: flex; align-items: baseline; gap: 8px; border: 0; background: none; padding: 0; text-align: left; color: inherit; min-height: 40px; }
.section-h:not(.small) .dayh b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.section-h.small .dayh b { font-size: 19px; font-weight: 700; }
.dayh span { font-size: 15px; color: var(--grey); font-weight: 500; }
.dayh em { font-style: normal; align-self: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: var(--soft); color: var(--link); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.dayh .chev { margin-left: auto; align-self: center; display: flex; transition: transform .25s; transform: rotate(-90deg); }
.day.open .dayh .chev { transform: none; }
.day.open .dayh em { display: none; }
.fold { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.fold > .list { overflow: hidden; min-height: 0; }
.day.open .fold { grid-template-rows: 1fr; }
.day.open .fold > .list { padding-bottom: 6px; }
.day { border-bottom: 2px solid var(--line2); padding-bottom: 4px; margin-bottom: 4px; }
.day:last-child { border-bottom: 0; }
.tabbar button { flex: 1; }
#wbox .balances { margin-top: 4px; }
/* 4 tabs: Agenda + Chat on the left, Notes dead centre, Profile centred in the right half */
.tabbar { display: grid; grid-template-columns: 1fr 1fr 1.25fr 2fr; }
#wallet { scroll-margin-top: calc(var(--top) + 64px); }
.tabbar button:last-child { justify-self: center; width: 52%; }

/* ---------- native glass on: iOS draws the island and the tab bar ---------- */
html.nglass .island, html.nglass .tabbar { display: none !important; }
html.nglass .app.isl-wide .topbar > div { opacity: 1; transform: none; pointer-events: auto; }

/* web fallback: the wide island is light glass, never black */
.island.wide { background: rgba(255,255,255,.78); color: var(--ink); border-color: rgba(255,255,255,.95); }
.island.listen { background: rgba(255,255,255,.82); }
.island.wide .wave i { background: var(--blue); }
.island.splash { background: linear-gradient(135deg, rgba(120,170,235,.85), rgba(170,205,245,.85)); color: #fff; }

/* grime on the pet (bath low): brown blotches cut to the pet's shape */
.grime { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply;
  -webkit-mask-size: contain; mask-size: contain; -webkit-mask-position: bottom center; mask-position: bottom center; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  background:
    radial-gradient(circle at 30% 40%, rgba(92,64,36,.85) 0 16%, rgba(92,64,36,0) 34%) 0 0 / 44px 38px,
    radial-gradient(circle at 70% 62%, rgba(92,64,36,.75) 0 12%, rgba(92,64,36,0) 28%) 13px 9px / 37px 33px,
    radial-gradient(ellipse at 50% 50%, rgba(78,58,36,.6) 0 20%, rgba(78,58,36,0) 42%) 6px 21px / 61px 49px; }
.island .isl-pet .grime { left: 6%; bottom: -2%; width: 88%; height: 96%; top: auto; inset: auto; }
.stage .tapper { position: absolute; }
.stage .tapper .grime { inset: 0; }

/* shop entry: soft, not black */
.shop { background: linear-gradient(135deg, var(--soft2), var(--soft)); color: var(--ink); box-shadow: 0 5px 0 var(--mid); border: 2.5px solid var(--mid); gap: 12px; }
.shop .shop-ic { width: 46px; height: 46px; border-radius: 16px; background: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.shop .shop-ic img { width: 38px; height: 38px; object-fit: contain; }
.shop .shop-tx { flex: 1; display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.shop .shop-tx b { font-size: 18px; }
.shop .shop-tx span { padding: 0; background: none; color: var(--grey); font-size: 13px; font-weight: 500; }
.shop svg { transform: rotate(180deg); color: var(--link); }
.bal.credits { background: linear-gradient(150deg, var(--blue), var(--lip)); color: #fff; box-shadow: 0 5px 0 var(--lip); }
.bal.credits span span { color: rgba(255,255,255,.8); }

/* shop screen */
.shop-scr { background: #F7F9FC; gap: 14px; }
.shop-top { display: flex; align-items: center; gap: 12px; }
.shop-top h2 { flex: 1; margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.tryon { position: relative; height: 220px; border-radius: 28px; background: linear-gradient(180deg, #fff, var(--soft2)); border: 2.5px solid var(--line); overflow: hidden; flex: none; }
.tryon .glow { position: absolute; left: 50%; top: 18px; width: 200px; height: 200px; margin-left: -100px; border-radius: 50%; background: var(--soft); }
.tryon .petimg { position: absolute; left: 50%; bottom: 8px; width: 170px; height: 200px; margin-left: -85px; }
.tag-item { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 20px;
  background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%); border: 1px solid #fff; box-shadow: 0 8px 22px rgba(24,44,84,.14); animation: pop .25s ease-out; }
.tag-item > img { width: 44px; height: 44px; object-fit: contain; }
.tag-item span { flex: 1; display: flex; flex-direction: column; }
.tag-item small { color: var(--grey); font-size: 12px; }
.tag-item .btn { height: 44px; padding: 0 14px; font-size: 16px; width: auto; flex: none; gap: 5px; }
.tag-item .btn img { width: 20px; height: 22px; object-fit: contain; }
.season { position: relative; display: flex; align-items: center; gap: 10px; height: 86px; padding: 0 14px 0 18px; border-radius: 24px; border: 0; text-align: left; flex: none;
  background: linear-gradient(120deg, #F6D9B8, #F2C08F); color: #4A2A0E; box-shadow: 0 5px 0 #D9A06A; overflow: hidden; }
.season span { display: flex; flex-direction: column; flex: 1; }
.season small { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.season b { font-size: 22px; font-weight: 800; }
.season em { position: absolute; left: 18px; bottom: 9px; font-style: normal; font-size: 12px; opacity: .7; }
.season img { width: 74px; height: 74px; object-fit: contain; transform: rotate(-8deg); }
.grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.sitem { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px 10px; border-radius: 20px; background: #fff;
  border: 2.5px solid var(--line); box-shadow: 0 4px 0 var(--line); }
.sitem.on { border-color: var(--blue); box-shadow: 0 4px 0 var(--blue); }
.sitem img { width: 64px; height: 64px; object-fit: contain; }
.sitem b { font-size: 12.5px; font-weight: 700; text-align: center; line-height: 1.15; }
.sitem .price { display: flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 700; color: var(--ink2); }
.sitem .price img { width: 15px; height: 16px; }
.ribbon { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 2px 8px; border-radius: 999px; background: #F2C08F; color: #4A2A0E; font-size: 10px; font-weight: 800; }
.packs { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.pack { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px 12px; border-radius: 22px; background: #fff; border: 2.5px solid var(--mid); box-shadow: 0 5px 0 var(--mid); }
.pack img { width: 40px; height: 44px; object-fit: contain; }
.pack b { font-size: 22px; font-weight: 800; }
.pack span:not(.ribbon) { font-size: 14px; font-weight: 700; color: var(--link); }

/* focus: light, calm */
.focus { background: linear-gradient(180deg, var(--soft2), #fff 60%); color: var(--ink); }
.focus.break { background: linear-gradient(180deg, #EAF6EE, #fff 60%); }
.focus .glow { background: var(--soft); }
.focus .bubble { background: #fff; border: 2px solid var(--line); color: var(--ink); }
.focus .task { color: var(--grey); }
.focus .prog { background: var(--line2); }
.focus .prog i { background: var(--blue); }
.focus .sub { color: var(--grey); }
.timer-row { display: flex; align-items: center; justify-content: center; gap: 14px; }
.adj { width: 52px; height: 44px; border-radius: 16px; border: 2.5px solid var(--line); background: #fff; box-shadow: 0 4px 0 var(--line); font-size: 17px; font-weight: 700; color: var(--ink2); }
.rounds { display: flex; gap: 6px; }
.rounds i { width: 12px; height: 12px; border-radius: 6px; background: var(--line); }
.rounds i.did { background: var(--blue); } .rounds i.now { background: var(--sky); box-shadow: 0 0 0 3px var(--soft); }
.island .isl-pet .grime { background-size: 22px 19px, 18px 16px, 30px 24px; }
.shop .shop-tx { background: none; padding: 0; border-radius: 0; }
.shop-scr > * { flex-shrink: 0; }
.shop .shop-tx { color: var(--ink); }

/* 3 tabs: Agenda · Chat (raised, centre) · the pet */
.tabbar { grid-template-columns: 1fr 1.1fr 1fr; }
.tabbar button:last-child { justify-self: stretch; width: auto; }
.tabbar button.pet-tab img { width: 46px; height: 40px; }
.tabbar button.pet-tab.on { background: rgba(255,255,255,.85); }

/* Agenda / Notes switch with the + beside it */
.seg-row { display: flex; align-items: center; gap: 10px; margin: 2px 0 8px; }
.seg { position: relative; flex: 1; display: grid; grid-template-columns: 1fr 1fr; height: 44px; padding: 4px; border-radius: 16px; background: #EDF1F6; }
.seg button { position: relative; z-index: 1; border: 0; background: none; font-size: 15px; font-weight: 700; color: var(--grey); border-radius: 12px; }
.seg button.on { color: var(--ink); }
.seg .seg-pill { position: absolute; top: 4px; bottom: 4px; width: calc(50% - 4px); border-radius: 12px; background: #fff; box-shadow: 0 2px 8px rgba(24,44,84,.12); transition: left .25s; left: 4px; }
.seg .seg-pill.notes { left: 50%; }
.icon-btn.add { background: var(--blue); border-color: var(--blue); box-shadow: 0 4px 0 var(--lip); flex: none; }

/* shop: homes, set, item sheet */
.tryon { background-size: cover; background-position: center 60%; }
.stage.has-home { background-size: cover; background-position: center 62%; border-radius: 28px; margin: 0; overflow: hidden; }
.stage.has-home .floor { opacity: .35; }
.grid.homes .sitem > img { width: 100%; height: 78px; object-fit: cover; border-radius: 14px; }
.set { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 22px; border: 2.5px solid var(--mid); background: linear-gradient(135deg, #fff, var(--soft2)); box-shadow: 0 4px 0 var(--mid); text-align: left; flex: none; }
.set > img { width: 58px; height: 58px; object-fit: contain; }
.set span { flex: 1; display: flex; flex-direction: column; }
.set small { font-size: 12px; font-weight: 700; color: var(--link); text-transform: uppercase; letter-spacing: .06em; }
.set b { font-size: 18px; }
.set em { font-style: normal; display: flex; align-items: center; gap: 4px; font-weight: 800; }
.set em img, .sitem .price img, .btn img { width: 18px; height: 19px; object-fit: contain; }
.shop-top .coin-pill { padding: 0 11px 0 6px; }
.item-sheet { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.item-sheet > img { width: 150px; height: 150px; object-fit: contain; }
.item-sheet > img.place { width: 100%; height: 190px; object-fit: cover; border-radius: 22px; }
.item-sheet .btn { width: 100%; gap: 6px; }
.spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--mid); border-top-color: var(--blue); animation: spin .8s linear infinite; flex: none; margin: 0 4px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* pet growing from the top bubble into Profile */
.grow-fx { position: fixed; z-index: 30; pointer-events: none; overflow: hidden; transform-origin: center; }
.grow-fx img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
/* worn items: tap one to take it off */
.worn { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 8px; }
.worn button { position: relative; width: 50px; height: 50px; border-radius: 16px; border: 1px solid #fff; padding: 4px;
  background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(14px) saturate(170%); backdrop-filter: blur(14px) saturate(170%); box-shadow: 0 6px 16px rgba(24,44,84,.14); }
.worn button img { width: 100%; height: 100%; object-fit: contain; }
.worn button i { position: absolute; top: -5px; right: -5px; width: 18px; height: 18px; border-radius: 9px; background: var(--grey); display: flex; align-items: center; justify-content: center; }
.season { height: 72px; }
.sitem .price svg { color: var(--blue); }

.shop-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.shop-row .shop { margin-top: 0; justify-content: flex-start; padding: 0 12px; }
.shop-row .shop b { font-size: 17px; }
.tag-item .spin { flex: none; display: block; width: 24px; height: 24px; }

.island .isl-pet.has-home { background-size: cover; background-position: center; }
.shop-row .shop .shop-ic { background: transparent; }
.shop-row .shop .shop-ic img { width: 44px; height: 44px; }



/* ================= desktop (web, ≥980px): sidebar · page · chat ================= */
html.desk, html.desk body { height: 100%; overflow: hidden; background: #EEF2F8; }
.desk .dk { position: fixed; inset: 0; display: grid; grid-template-columns: 260px minmax(0, 1fr) 380px; }
.desk .dk-side { display: flex; flex-direction: column; gap: 18px; padding: 22px 16px; background: linear-gradient(180deg, #fff, #F5F8FD); border-right: 1px solid var(--line); overflow-y: auto; }
.desk .dk-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: -.02em; padding: 0 6px; }
.desk .dk-brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 4px 10px rgba(36,81,143,.22); }
.desk .dk-pet { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 10px 14px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 22px rgba(24,44,84,.06); }
.desk .dk-pet > b { font-size: 18px; }
.desk .island { position: relative; left: auto; top: auto; transform: none; width: 150px; height: 150px; border-radius: 75px; flex: none; justify-content: center; padding: 0;
  background: var(--soft2); border: 0; box-shadow: inset 0 0 0 1px rgba(24,44,84,.06); }
.desk .island .isl-pet { width: 150px; height: 150px; }
.desk .island.wide, .desk .island.listen, .desk .island.splash { width: 150px; height: 150px; border-radius: 75px; padding: 0; justify-content: center; background: var(--soft2); color: var(--ink); }
.desk .island.wide .isl-pet { width: 150px; height: 150px; }
.desk .island .isl-txt { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); padding: 6px 12px; border-radius: 999px; background: #fff; box-shadow: 0 6px 16px rgba(24,44,84,.15); font-size: 14px; z-index: 2; }
.desk .island .isl-txt b { font-weight: 700; }
.desk .dk-needs { width: 100%; display: grid; gap: 7px; margin-top: 6px; }
.desk .dk-needs > div { display: flex; align-items: center; gap: 8px; }
.desk .dk-needs img { width: 22px; height: 22px; object-fit: contain; }
.desk .dk-needs i { flex: 1; height: 7px; border-radius: 4px; background: var(--line); overflow: hidden; }
.desk .dk-needs i b { display: block; height: 100%; border-radius: 4px; background: var(--blue); }
.desk .dk-needs .low i b { background: #D9534F; }
.desk .dk-nav { display: flex; flex-direction: column; gap: 4px; }
.desk .dk-nav button { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border: 0; border-radius: 14px; background: none; color: var(--grey);
  font: 600 15px Rubik, system-ui; text-align: left; cursor: pointer; }
.desk .dk-nav button:hover { background: rgba(24,44,84,.05); color: var(--ink); }
.desk .dk-nav button.on { background: var(--soft); color: var(--lip); }
.desk .dk-nav button img { width: 26px; height: 24px; object-fit: contain; margin: 0 -3px; }
.desk .dk-sep { height: 1px; background: var(--line); margin: 8px 6px; }
.desk .dk-foot { margin-top: auto; padding: 0 6px; }

.desk .dk-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.desk .dk-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 40px 10px; }
.desk .dk-head h1 { margin: 0; font-size: 32px; letter-spacing: -.03em; }
.desk .page { position: static; flex: 1; overflow-y: auto; padding: 10px 40px 40px; background: none; }
.desk .page > * { max-width: 920px; }
.desk .seg { display: none; }
.desk .seg-row { display: none; }
.desk #tl { display: flex; gap: 10px; align-items: center; }
.desk .dk-add { height: 40px; padding: 0 16px; font-size: 15px; border-radius: 14px; box-shadow: 0 4px 0 var(--lip); width: auto; gap: 6px; }
.desk .topfade, .desk .topbar, .desk .tabbar { display: none; }
.desk .it { cursor: default; }
.desk button { cursor: pointer; }
.desk .page .list:has(> .swipe) { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.desk .page .search { max-width: 520px; }

/* profile: big pet on the left, care + wallet on the right */
.desk .page.profile-page { display: grid; grid-template-columns: minmax(340px, 1.1fr) minmax(300px, 1fr); gap: 0 28px; align-content: start; padding-top: 10px; }
.desk .page.profile-page > * { max-width: none; grid-column: 2; }
.desk .page.profile-page > .pname { display: none; }
.desk .page.profile-page > .stage { grid-column: 1; grid-row: 1 / span 8; height: min(560px, calc(100vh - 140px)); position: sticky; top: 0; }
.desk .page.profile-page > .items { margin-top: 0; }

/* chat docked on the right */
.desk .dk-chat { display: flex; flex-direction: column; min-height: 0; background: #fff; border-left: 1px solid var(--line); }
.desk .dk-chat-h { display: flex; align-items: center; gap: 8px; padding: 24px 22px 12px; font-size: 18px; }
.desk .dk-chatlist { flex: 1; overflow-y: auto; padding: 6px 18px 12px; }
.desk .dk-chatlist .chat { padding-bottom: 8px; }
.desk .composer { position: static; margin: 0 16px 18px; }
.desk .composer[hidden] { display: flex; }

/* overlays become windows */
.desk .full { top: 50%; left: 50%; right: auto; bottom: auto; transform: translate(-50%, -50%); width: min(560px, 92vw); height: min(840px, 92vh);
  border-radius: 32px; padding: 26px 26px 26px; box-shadow: 0 0 0 100vmax rgba(11,13,16,.35), 0 30px 80px rgba(0,0,0,.3); }
.desk .full.shop-scr { width: min(980px, 94vw); }
.desk .shop-scr .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.desk .shop-scr .grid.homes { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.desk .shop-scr .packs { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 640px; }
.desk .shop-scr .tryon { height: 300px; }
.desk .sheet-bg { align-items: center; justify-content: center; bottom: 0; }
.desk .sheet { width: min(480px, 92vw); max-height: 86vh; border-radius: 28px; padding: 24px; }
.desk .toast { top: 24px; }
.desk .grow-fx { display: none; }
/* desktop: sign-up / intro screens as a centered card */
.desk .ob { left: 50%; right: auto; width: min(520px, 94vw); transform: translateX(-50%); top: 32px; bottom: 32px; border-radius: 32px;
  box-shadow: 0 30px 80px rgba(24,44,84,.18); padding: 36px 32px 28px; overflow-y: auto; }

/* toys that don't roll (swing, wheel, ornament) pop in beside the pet */
.toypop { position: absolute; right: 12%; bottom: 14%; width: 92px; height: 92px; object-fit: contain; z-index: 3; animation: toypop 1.6s cubic-bezier(.3,1.5,.5,1) both; }
@keyframes toypop { 0% { transform: scale(.2) rotate(-20deg); opacity: 0; } 25% { transform: scale(1.1) rotate(8deg); opacity: 1; } 45%, 70% { transform: scale(1) rotate(-6deg); } 85% { transform: scale(1) rotate(6deg); opacity: 1; } 100% { transform: scale(.8); opacity: 0; } }

.items .item .ilabel { display: block; font-size: 11.5px; font-weight: 700; color: var(--ink2); margin: -2px 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
/* app text can't be selected (typing fields still can) */
html, body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, [contenteditable] { -webkit-user-select: text; user-select: text; }

.ob-back { align-self: flex-start; flex: none; }
/* done tasks wait 10 s with Undo, then fold away */
.it.done.leaving { animation: leave 10s linear forwards; }
@keyframes leave { 0%, 88% { opacity: 1; max-height: 80px; } 100% { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; margin: 0; } }
.it .undo { margin-left: auto; height: 34px; padding: 0 14px; border-radius: 12px; border: 2px solid var(--mid); background: #fff; color: var(--link); font: 700 14px Rubik, system-ui; flex: none; }
/* shop & closet open with a little bounce, items pop in one by one */
.shop-scr { animation: shopIn .42s cubic-bezier(.2,1.2,.3,1) both; }
@keyframes shopIn { from { opacity: 0; transform: translateY(60px) scale(.94); } to { opacity: 1; transform: none; } }
.desk .full.shop-scr { animation: shopInDesk .42s cubic-bezier(.2,1.2,.3,1) both; }
@keyframes shopInDesk { from { opacity: 0; transform: translate(-50%, -44%) scale(.94); } to { opacity: 1; transform: translate(-50%, -50%); } }
.shop-scr.opened, .desk .full.shop-scr.opened { animation: none; }
.shop-scr:not(.opened) .sitem, .shop-scr:not(.opened) .set, .shop-scr:not(.opened) .season { animation: itemIn .4s cubic-bezier(.2,1.4,.4,1) both; }
.shop-scr .grid .sitem:nth-child(1) { animation-delay: .10s; } .shop-scr .grid .sitem:nth-child(2) { animation-delay: .14s; } .shop-scr .grid .sitem:nth-child(3) { animation-delay: .18s; }
.shop-scr .grid .sitem:nth-child(4) { animation-delay: .22s; } .shop-scr .grid .sitem:nth-child(5) { animation-delay: .26s; } .shop-scr .grid .sitem:nth-child(6) { animation-delay: .30s; }
.shop-scr .grid .sitem:nth-child(n+7) { animation-delay: .34s; }
@keyframes itemIn { from { opacity: 0; transform: translateY(14px) scale(.85); } to { opacity: 1; transform: none; } }
.shop-scr .tryon .petimg { animation: hop .7s .25s both; }

/* Premium sheet */
.prem { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.prem-pet { width: 132px; height: 132px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #fff, var(--soft)); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.prem-pet img { width: 88%; height: 92%; object-fit: contain; object-position: bottom; animation: hop 1.6s ease-in-out infinite; }
.prem h3 { margin: 0; font-size: 26px; }
.prem-list { width: 100%; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.prem-list > div { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--soft2); font-weight: 600; }
.prem-list img { width: 22px; height: 24px; object-fit: contain; }
.prem-price b { font-size: 34px; font-weight: 800; } .prem-price span { color: var(--grey); font-weight: 600; }
.prem .btn { width: 100%; }
.prem .fine { font-size: 12px; margin: 0; }

/* long project names never slide under the pet */
.chip.grp { max-width: calc(50vw - 82px); min-width: 0; }
.chip.grp span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.chip.grp svg { flex: none; }
.desk .chip.grp { max-width: 320px; }
/* swipe a note left to delete */
.swipe { position: relative; border-radius: 22px; overflow: hidden; background: #F1D2D0; transition: max-height .25s, opacity .25s, margin .25s; max-height: 400px; }
.swipe > .note { position: relative; z-index: 1; width: 100%; touch-action: pan-y; }
.swipe-bin { position: absolute; right: 0; top: 0; bottom: 0; width: 90px; display: flex; align-items: center; justify-content: center; background: #E0918C; transition: background .15s, width .15s; }
.swipe.armed .swipe-bin { background: #C8322B; width: 100%; justify-content: flex-end; padding-right: 30px; }
.swipe.gone { max-height: 0; opacity: 0; margin: 0; }
.undo-bar { position: fixed; left: 50%; bottom: calc(var(--bot) + 110px); transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 16px; padding: 10px 10px 10px 18px;
  border-radius: 18px; background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 10px 30px rgba(24,44,84,.2); font-weight: 600; overflow: hidden; animation: pop .25s ease-out; }
.undo-bar button { height: 36px; padding: 0 16px; border-radius: 12px; border: 0; background: var(--blue); color: #fff; font: 700 15px Rubik, system-ui; }
.undo-bar i { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--blue); animation: undoBar 3s linear forwards; }
@keyframes undoBar { from { width: 100%; } to { width: 0; } }
.desk .undo-bar { bottom: 30px; }
.sheet .chip { max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; line-height: 38px; }

/* ---------- build 20 ---------- */
/* Premium star (free plan) */
.pstar { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 6px rgba(24,44,84,.22), inset 0 0 0 1.5px #FBE3A2; flex: none; vertical-align: middle; }
.pstar svg { filter: drop-shadow(0 1px 0 #D99A05); }
.pstar.on-fab { position: absolute; top: -7px; right: -7px; }
.mic-wrap { position: relative; display: flex; flex: none; }
.pstar.on-mic { position: absolute; top: -8px; right: -8px; pointer-events: none; }
.pstar.on-pick { position: absolute; top: 8px; right: 8px; }
.pstar.big { width: 30px; height: 30px; margin-right: 8px; }
.prem h3 { display: flex; align-items: center; justify-content: center; }
.prem-row { display: inline-flex; align-items: center; gap: 8px; }

/* pick a ready-made pet */
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(30%, 104px), 1fr)); gap: 10px; }
.pick { position: relative; aspect-ratio: .86; border-radius: 22px; border: 2.5px solid var(--line); background: #fff; box-shadow: 0 4px 0 var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; padding: 8px 6px 10px; overflow: hidden;
  transition: transform .15s, border-color .15s; }
.pick img { flex: 1; min-height: 0; width: 100%; object-fit: contain; object-position: center bottom; pointer-events: none; }
.pick > span:not(.pstar):not(.cam) { font: 700 clamp(12px, 3.4vw, 14px)/1.2 Rubik, system-ui; color: var(--ink2); white-space: nowrap; }
.pick.on { border-color: var(--blue); background: var(--soft2); box-shadow: 0 4px 0 var(--blue); transform: translateY(-2px); }
.pick.own { justify-content: center; border-style: dashed; border-color: #B9CFEE; background: var(--soft2); box-shadow: none; }
.pick.own .cam { width: 52px; height: 52px; border-radius: 18px; background: #fff; display: flex; align-items: center; justify-content: center; color: var(--blue); }
.pick:active { transform: translateY(3px); }

/* the pet's name: a glass nameplate on the stage */
.stage .ptag { position: absolute; z-index: 4; left: 14px; top: 14px; max-width: calc(100% - 28px); display: flex; align-items: center; gap: 9px;
  padding: 5px 18px 5px 5px; border-radius: 999px; background: rgba(255,255,255,.78); -webkit-backdrop-filter: blur(16px) saturate(1.7); backdrop-filter: blur(16px) saturate(1.7);
  border: 1.5px solid rgba(255,255,255,.95); box-shadow: 0 8px 22px rgba(24,44,84,.16), 0 3px 0 var(--mid); animation: tagIn .5s cubic-bezier(.2,1.4,.4,1) both; }
.stage:not(.has-home) .ptag { left: 30px; max-width: calc(100% - 60px); }
.stage .ptag .pt-ic { width: 36px; height: 36px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, color-mix(in srgb, var(--blue) 78%, #fff), var(--blue)); box-shadow: inset 0 -3px 0 var(--lip), 0 2px 6px rgba(24,44,84,.2); }
.stage .ptag b { font: 800 clamp(19px, 5.6vw, 25px)/1.1 Rubik, system-ui; letter-spacing: -.015em; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; padding-bottom: 1px; }
@keyframes tagIn { from { opacity: 0; transform: translateY(-8px) scale(.9); } to { opacity: 1; transform: none; } }
.stage .nohome { position: absolute; z-index: 4; left: 14px; top: 66px; display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 10px;
  border-radius: 999px; border: 0; background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: #B4560E; font: 700 12.5px Rubik, system-ui; box-shadow: 0 4px 12px rgba(24,44,84,.14); animation: tagIn .5s .12s cubic-bezier(.2,1.4,.4,1) both; }
.stage:not(.has-home) .nohome { left: 30px; }

/* the stage and the care tiles size with the screen, so nothing overlaps */
.page.profile-page .stage { height: clamp(260px, 41vh, 380px); }
.stage .tapper { height: calc(100% - 40px); width: auto; aspect-ratio: 23 / 30; max-width: 72%; margin-left: 0; transform: translateX(-50%); }
.stage .tapper img { object-fit: contain; object-position: center bottom; }
.page.profile-page .items { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 2.4vw, 14px); margin-top: 14px; container-type: inline-size; }
.page.profile-page .item { height: auto; aspect-ratio: 4 / 5; min-height: 0; gap: 0; padding: 9% 6% 10%; justify-content: space-between; }
.page.profile-page .item img { width: 64%; height: auto; flex: 1 1 0; min-height: 0; max-height: 46%; }
.page.profile-page .items .item .ilabel { font-size: clamp(10.5px, 3.3cqw, 14.5px); line-height: 1.3; margin: 2px 0 3px; padding: 0 2px; overflow: visible; text-overflow: clip; white-space: nowrap; max-width: 100%; }
.page.profile-page .item .meter { width: 66%; height: clamp(5px, 1.4cqw, 7px); flex: none; }
.page.profile-page .item .cost { font-size: clamp(10px, 2.9cqw, 13px); margin-top: 4px; }
.page.profile-page .item .cost img { width: 1.15em; height: 1.2em; }
.desk .page.profile-page .stage { height: min(560px, calc(100vh - 140px)); }
.pick.sk { border-color: transparent; box-shadow: none; background: linear-gradient(100deg, #EEF2F7 30%, #F7F9FC 50%, #EEF2F7 70%) 0 0 / 300% 100%; animation: sk 1.2s linear infinite; }
@keyframes sk { to { background-position: -150% 0; } }
.pick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.desk .pick-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pick { aspect-ratio: .82; border-radius: 20px; padding: 6px 4px 8px; }
.pick.own .cam { width: 42px; height: 42px; border-radius: 14px; }
.pick > span:not(.pstar):not(.cam) { font-size: clamp(11px, 3.1vw, 13.5px); }
.pstar svg { width: 14px; height: 14px; fill: #F6B419 !important; stroke: none !important; }
.pstar.big svg { width: 20px; height: 20px; }
