:root {
  --ink: #27233f;
  --muted: #77728d;
  --purple: #7863ea;
  --pink: #ff7faf;
  --yellow: #ffc95c;
  --mint: #66d4a2;
  --card: rgba(255, 255, 255, .92);
  --line: #eee9f7;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: var(--ink);
  background: #fff8fc;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: #fff8fc; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; background:
  radial-gradient(circle at 8% 8%, rgba(255, 205, 224, .45), transparent 24rem),
  radial-gradient(circle at 93% 22%, rgba(195, 184, 255, .36), transparent 27rem),
  linear-gradient(180deg, #fffafd, #f8f7ff 60%, #fffaf3); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
[hidden] { display: none !important; }
.hidden { display: none !important; }

.page-sparkles i { position: fixed; z-index: -1; width: 10px; height: 10px; border-radius: 50%; background: #ffc95c; opacity: .5; animation: float 7s ease-in-out infinite; }
.page-sparkles i:nth-child(1) { top: 14%; left: 4%; }
.page-sparkles i:nth-child(2) { top: 28%; right: 5%; width: 6px; height: 6px; animation-delay: -1s; background: #ff8eb8; }
.page-sparkles i:nth-child(3) { top: 67%; left: 8%; animation-delay: -3s; background: #917cf4; }
.page-sparkles i:nth-child(4) { top: 74%; right: 8%; animation-delay: -4s; }
.page-sparkles i:nth-child(5) { top: 43%; left: 48%; width: 5px; height: 5px; animation-delay: -2s; }
.page-sparkles i:nth-child(6) { top: 88%; left: 34%; background: #64d3a1; }

.topbar { position: sticky; top: 0; z-index: 30; min-height: 76px; display: flex; align-items: center; gap: 22px; padding: 10px max(24px, calc((100vw - 1440px) / 2)); background: rgba(255,255,255,.87); border-bottom: 1px solid rgba(232,226,243,.85); box-shadow: 0 8px 30px rgba(84, 64, 128, .06); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); flex: 0 0 auto; }
.brand-mark { display: grid; place-items: center; width: 48px; height: 48px; font-size: 25px; border-radius: 17px; background: linear-gradient(145deg, #ffeff5, #efeaff); box-shadow: inset 0 0 0 1px white, 0 7px 18px rgba(117,91,182,.15); transform: rotate(-5deg); }
.brand b { display: block; font-size: 19px; line-height: 1.1; }
.brand small { display: block; margin-top: 4px; color: #8f87a3; font-size: 11px; }
.quick-links { display: flex; align-items: center; gap: 8px; margin-right: auto; }
.quick-links a { padding: 9px 13px; color: #675e79; text-decoration: none; font-size: 13px; font-weight: 700; border: 1px solid #eee9f7; border-radius: 13px; background: #fff; transition: .2s; }
.quick-links a:hover { transform: translateY(-2px); border-color: #cfc5f6; color: var(--purple); }
.account-area { display: flex; align-items: center; gap: 9px; }
.points-pill { height: 45px; display: flex; align-items: center; gap: 5px; padding: 0 16px; color: #9a6300; background: #fff7d9; border: 1px solid #ffe29d; border-radius: 999px; box-shadow: 0 5px 14px rgba(219,165,53,.1); }
.points-pill strong { font-size: 21px; }
.points-pill small { font-weight: 700; }
.account-chip { min-height: 45px; display: grid; grid-template-columns: 30px auto; grid-template-rows: auto auto; align-items: center; column-gap: 7px; padding: 5px 12px 5px 7px; border: 1px solid #e9e3f5; border-radius: 999px; background: #fff; cursor: pointer; box-shadow: 0 5px 15px rgba(74,52,117,.08); }
.account-chip > span { grid-row: 1 / 3; display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: #f4efff; }
.account-chip b { align-self: end; font-size: 12px; line-height: 1; text-align: left; }
.account-chip small { align-self: start; color: var(--purple); font-size: 10px; text-align: left; }
.ghost-button { border: 0; padding: 9px 5px; background: none; color: #8b849d; cursor: pointer; font-size: 12px; }

.app-shell { width: min(1440px, calc(100% - 40px)); margin: 0 auto; padding: 28px 0 50px; }
.welcome-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 20px; padding: 2px 4px; }
.eyebrow { display: block; margin-bottom: 7px; color: var(--purple); font-size: 12px; font-weight: 900; letter-spacing: .04em; }
.welcome-row h1 { margin: 0; font-size: clamp(25px, 3vw, 38px); letter-spacing: -.04em; }
.welcome-row p { margin: 9px 0 0; color: var(--muted); font-size: 14px; }
.daily-tip { min-width: 280px; display: flex; align-items: center; gap: 12px; padding: 12px 17px; background: rgba(255,255,255,.86); border: 1px solid white; border-radius: 18px; box-shadow: 0 12px 30px rgba(73,54,115,.08); }
.daily-tip > span { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; border-radius: 14px; background: #fff6ce; font-size: 21px; }
.daily-tip p { margin: 0; line-height: 1.45; }
.daily-tip b { color: #5b526e; }
.daily-tip em { color: #9891a8; font-size: 12px; font-style: normal; }

.main-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(330px, .8fr); gap: 20px; align-items: stretch; }
.pet-panel, .shop-panel, .inventory-panel { background: var(--card); border: 1px solid rgba(255,255,255,.94); box-shadow: 0 18px 48px rgba(69,52,105,.1); }
.pet-panel { min-width: 0; border-radius: 28px; overflow: hidden; }
.scene { position: relative; min-height: 410px; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, #dff4ff 0 55%, #ffe9c7 55% 100%); transition: background .45s ease; }
.scene::after { content: ""; position: absolute; z-index: -1; left: -5%; right: -5%; bottom: -40px; height: 170px; border-radius: 50% 50% 0 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.22) 0 3px, transparent 3px 70px), #f5cf94; box-shadow: inset 0 16px 30px rgba(144,91,36,.06); transition: background .45s; }
.scene[data-theme="sunny"] { background: linear-gradient(180deg, #bceaff 0 54%, #bfe89f 54%); }
.scene[data-theme="sunny"]::after { background: radial-gradient(circle at 12% 24%, #fff8 0 7px, transparent 8px), radial-gradient(circle at 76% 42%, #fff8 0 7px, transparent 8px), #8ed06f; }
.scene[data-theme="castle"] { background: linear-gradient(180deg, #dcd5ff 0 55%, #f4d4ff 55%); }
.scene[data-theme="castle"]::after { background: repeating-linear-gradient(90deg, #f7e9ff 0 70px, #ead8f8 70px 73px); }
.scene[data-theme="forest"] { background: linear-gradient(180deg, #a9dfcf 0 54%, #7fc38c 54%); }
.scene[data-theme="forest"]::after { background: radial-gradient(circle, #94d39a 0 24%, transparent 25%) 0 0/45px 45px, #5ca976; }
.scene[data-theme="space"] { background: radial-gradient(circle at 25% 20%, #6555ac, transparent 33%), radial-gradient(circle at 80% 35%, #432e83, transparent 35%), #21194f; }
.scene[data-theme="space"]::after { background: repeating-linear-gradient(90deg, #5c58a1 0 70px, #716dc0 70px 73px); }
.scene[data-theme="space"] .scene-stars { opacity: 1; }
.scene[data-theme="space"] .scene-sun, .scene[data-theme="space"] .cloud, .scene[data-theme="space"] .window { opacity: 0; }
.scene[data-theme="forest"] .window, .scene[data-theme="sunny"] .window { opacity: .22; }
.scene-sun { position: absolute; top: 44px; right: 65px; width: 70px; height: 70px; border-radius: 50%; background: #ffe27b; box-shadow: 0 0 0 15px rgba(255,231,132,.18); transition: .3s; }
.cloud { position: absolute; width: 88px; height: 28px; border-radius: 999px; background: rgba(255,255,255,.66); filter: blur(.2px); animation: cloudDrift 11s ease-in-out infinite alternate; }
.cloud::before, .cloud::after { content: ""; position: absolute; bottom: 0; border-radius: 50%; background: inherit; }
.cloud::before { left: 13px; width: 42px; height: 42px; }.cloud::after { right: 11px; width: 35px; height: 35px; }
.cloud-one { top: 73px; left: 11%; }.cloud-two { top: 125px; left: 46%; transform: scale(.72); animation-delay: -4s; }
.scene-stars { position: absolute; inset: 30px 20px auto; color: white; text-align: center; font-size: 22px; opacity: 0; letter-spacing: 1.2em; }
.window { position: absolute; left: 8%; top: 88px; width: 115px; height: 125px; border: 9px solid rgba(255,255,255,.65); border-radius: 55px 55px 18px 18px; background: linear-gradient(145deg, #a8e7ff, #fff); box-shadow: 0 8px 0 rgba(129,93,119,.08); opacity: .48; }
.window::before, .window::after { content: ""; position: absolute; background: rgba(255,255,255,.8); }.window::before { width: 7px; top: 0; bottom: 0; left: 45px; }.window::after { height: 7px; left: 0; right: 0; top: 51px; }
.shelf { position: absolute; right: 8%; top: 160px; display: flex; gap: 13px; align-items: end; padding: 0 15px 7px; border-bottom: 8px solid rgba(153,91,77,.28); font-size: 27px; opacity: .9; }
.home-sign { position: absolute; z-index: 3; top: 18px; left: 18px; display: flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 14px; background: rgba(255,255,255,.8); box-shadow: 0 5px 18px rgba(67,49,103,.08); backdrop-filter: blur(8px); font-size: 12px; }
.home-sign span { font-size: 20px; }.home-sign b { color: #625b73; }
.speech-bubble { position: absolute; z-index: 8; top: 80px; left: 50%; transform: translateX(-50%); max-width: 310px; padding: 12px 17px; border-radius: 18px 18px 18px 4px; background: white; color: #625a73; font-size: 13px; font-weight: 700; text-align: center; box-shadow: 0 9px 25px rgba(50,35,79,.14); }
.speech-bubble::after { content: ""; position: absolute; left: 40%; bottom: -8px; border: 9px solid transparent; border-top-color: white; border-left-width: 2px; }
.speech-bubble.pop { animation: bubbleIn .3s cubic-bezier(.2,.8,.2,1) both; }
.speech-bubble[data-tone="love"] { color: #a43f6b; background: #fff0f6; box-shadow: 0 9px 28px rgba(220,82,138,.18); }
.speech-bubble[data-tone="love"]::after { border-top-color: #fff0f6; }
.speech-bubble[data-tone="need"] { color: #876315; background: #fff8d8; }
.speech-bubble[data-tone="need"]::after { border-top-color: #fff8d8; }
.speech-bubble[data-tone="sleepy"] { color: #5f5790; background: #f0efff; }
.speech-bubble[data-tone="sleepy"]::after { border-top-color: #f0efff; }
.pet-stage { position: absolute; z-index: 4; left: 50%; bottom: 50px; width: 200px; height: 210px; transform: translateX(-50%); animation: wander 7s ease-in-out infinite; }
.pet-character { position: absolute; left: 50%; bottom: 20px; width: 160px; height: 170px; transform: translateX(-50%); border: 0; background: none; cursor: pointer; animation: petBreathe 2.4s ease-in-out infinite; }
.pet-emoji { display: block; font-size: 122px; line-height: 1; filter: drop-shadow(0 14px 8px rgba(67,46,65,.15)); transition: transform .25s; }
.pet-image { display: block; width: 132px; height: 132px; margin: 0 auto; border: 6px solid rgba(255,255,255,.94); border-radius: 42% 42% 48% 48%; object-fit: cover; box-shadow: 0 14px 20px rgba(67,46,65,.17); transition: transform .25s; }
.pet-image[hidden] { display: none; }
.pet-character:hover .pet-emoji { transform: scale(1.08) rotate(-3deg); }
.pet-character:hover .pet-image { transform: scale(1.06) rotate(-2deg); }
.pet-character.petted .pet-emoji { animation: petJump .7s ease; }
.pet-shadow { position: absolute; bottom: 16px; left: 50%; width: 125px; height: 24px; transform: translateX(-50%); border-radius: 50%; background: rgba(71,57,67,.15); filter: blur(3px); animation: shadowPulse 2.4s ease-in-out infinite; }
.heart-pop { position: absolute; top: 0; right: 14px; color: #ff6698; font-size: 24px; opacity: 0; }
.pet-character.petted .heart-pop { animation: heartPop .8s ease; }
.empty-pet { position: absolute; z-index: 5; inset: 60px 30px 35px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.egg { position: relative; font-size: 94px; animation: eggWiggle 2s ease-in-out infinite; filter: drop-shadow(0 13px 9px rgba(98,73,110,.15)); }.egg span { position: absolute; inset: 34px 0 auto; font-size: 20px; font-weight: 900; color: #8b7b9e; }
.empty-pet h2 { margin: 8px 0 5px; font-size: 22px; }.empty-pet p { margin: 0 0 17px; color: #77708a; font-size: 13px; }
.empty-pet button { padding: 11px 23px; border: 0; border-radius: 14px; background: linear-gradient(135deg, #8b73f4, #7258de); color: white; font-weight: 900; box-shadow: 0 8px 20px rgba(103,80,217,.28); cursor: pointer; }

/* The pet room itself is a real-time Three.js scene. */
.scene { min-height: 480px; background: #dff4ff; }
.scene::after { display: none; }
.pet-canvas { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; outline: 0; cursor: grab; touch-action: none; }
.pet-canvas:active { cursor: grabbing; }
.canvas-loading { position: absolute; z-index: 9; inset: 0; display: flex; align-items: center; justify-content: center; gap: 9px; background: linear-gradient(145deg,#dff4ff,#fff0f7); color: #746b86; font-size: 12px; font-weight: 800; transition: opacity .35s, visibility .35s; }
.canvas-loading.ready { opacity: 0; visibility: hidden; }
.canvas-loading span { width: 24px; height: 24px; border: 3px solid #ffffffcc; border-top-color: var(--purple); border-radius: 50%; animation: spin .8s linear infinite; }
.home-sign { z-index: 7; pointer-events: none; }
.interaction-hint { position: absolute; z-index: 7; right: 15px; bottom: 14px; display: flex; align-items: center; gap: 6px; padding: 7px; border: 1px solid rgba(255,255,255,.75); border-radius: 13px; background: rgba(255,255,255,.76); color: #746b86; box-shadow: 0 6px 20px rgba(61,47,91,.09); backdrop-filter: blur(9px); font-size: 9px; font-weight: 800; }
.interaction-hint span { padding: 0 4px; }
.interaction-hint button { padding: 5px 8px; border: 0; border-radius: 8px; background: #7760e4; color: white; font-size: 9px; font-weight: 800; cursor: pointer; }
.speech-bubble { z-index: 8; pointer-events: none; }
.touch-feedback { position: absolute; z-index: 8; inset: 0; overflow: hidden; pointer-events: none; }
.touch-feedback span { position: absolute; font-size: 18px; line-height: 1; transform: translate(-50%,-50%); filter: drop-shadow(0 4px 5px rgba(79,50,95,.16)); animation: touchSpark .72s cubic-bezier(.15,.75,.2,1) forwards; }
.empty-pet { z-index: 6; background: radial-gradient(circle at center, rgba(255,255,255,.88), rgba(255,255,255,.35) 48%, transparent 72%); pointer-events: none; }
.empty-pet button { pointer-events: auto; }

.pet-dashboard { padding: 18px 22px 21px; }
.pet-title-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.pet-title-row > div:first-child { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pet-title-row h2 { margin: 0; font-size: 22px; }.level-badge { padding: 5px 9px; border-radius: 10px; background: #eee9ff; color: var(--purple); font-size: 11px; font-weight: 900; }
.rename-link { padding: 0; border: 0; color: #9088a2; background: none; font-size: 11px; cursor: pointer; }
.xp-box { display: flex; flex-direction: column; align-items: end; color: #8a819c; font-size: 10px; }.xp-box b { margin-top: 3px; color: #645c75; font-size: 11px; }.xp-box i { color: var(--purple); font-style: normal; }
.status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.status-card { min-width: 0; display: grid; grid-template-columns: 32px 1fr 28px; align-items: center; gap: 7px; padding: 10px; border-radius: 15px; background: #f9f7fc; }
.status-card > span { font-size: 22px; }.status-card b { display: block; margin-bottom: 5px; color: #777084; font-size: 10px; }.status-card strong { font-size: 12px; text-align: right; }
.meter { height: 7px; overflow: hidden; border-radius: 99px; background: #eae6ef; }.meter i { display: block; width: 0; height: 100%; border-radius: inherit; transition: width .5s ease; }
.hunger .meter i { background: linear-gradient(90deg,#ff8e77,#ffba71); }.happiness .meter i { background: linear-gradient(90deg,#ff76aa,#ff9ec6); }.energy .meter i { background: linear-gradient(90deg,#6b8ff4,#85c7ff); }
.action-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 13px; }
.care-button { display: grid; grid-template-columns: 35px 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 7px; padding: 10px 12px; border: 0; border-radius: 15px; cursor: pointer; text-align: left; transition: transform .2s, box-shadow .2s; }
.care-button:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(70,49,104,.11); }.care-button:active { transform: scale(.97); }
.care-button span { grid-row: 1 / 3; font-size: 27px; }.care-button b { font-size: 12px; }.care-button small { margin-top: 2px; color: #81798e; font-size: 9px; }
.care-button.feed { background: #fff0e7; }.care-button.play { background: #fff0f6; }.care-button.sleep { background: #eeefff; }
.pet-switcher-wrap { display: flex; align-items: center; gap: 11px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed #e9e3f1; }.pet-switcher-wrap > span { color: #898096; font-size: 10px; font-weight: 700; }
.pet-switcher { display: flex; flex-wrap: wrap; gap: 7px; }.pet-switch { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border: 2px solid transparent; border-radius: 13px; background: #f4f1fa; font-size: 22px; cursor: pointer; }.pet-switch.active { border-color: #8b74ee; background: #f0ebff; }.pet-switch.active::after { content: "✓"; position: absolute; right: -4px; bottom: -4px; display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: var(--purple); color: white; font-size: 9px; }

.shop-panel { padding: 20px; border-radius: 28px; min-height: 100%; }
.shop-heading, .shop-heading > div { display: flex; align-items: center; }.shop-heading { justify-content: space-between; gap: 10px; }.shop-heading > div { gap: 10px; }.shop-heading > div > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 15px; background: #fff1d1; font-size: 23px; }.shop-heading h2 { margin: 0; font-size: 18px; }.shop-heading h2 small { display: block; margin-top: 3px; color: #928aa3; font-size: 10px; font-weight: 500; }.owned-count { padding: 6px 9px; border-radius: 10px; background: #f2effb; color: #7a718f; font-size: 10px; }.owned-count b { color: var(--purple); font-size: 13px; }
.shop-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin: 17px 0 13px; padding: 5px; border-radius: 15px; background: #f4f1f8; }.shop-tabs button { padding: 9px 4px; border: 0; border-radius: 11px; color: #817990; background: transparent; font-size: 11px; font-weight: 800; cursor: pointer; }.shop-tabs button.active { color: #614acb; background: white; box-shadow: 0 4px 12px rgba(69,51,108,.09); }
.shop-list { display: grid; gap: 9px; max-height: 472px; overflow: auto; padding-right: 3px; scrollbar-width: thin; scrollbar-color: #d9d1ea transparent; }
.shop-card { display: grid; grid-template-columns: 55px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 10px; border: 1px solid #eee9f4; border-radius: 17px; background: #fff; transition: .2s; }.shop-card:hover { transform: translateY(-2px); border-color: #dcd2f6; box-shadow: 0 8px 22px rgba(69,51,108,.08); }
.shop-visual { position: relative; width: 55px; height: 55px; display: grid; place-items: center; border-radius: 16px; background: var(--soft, #f5f1ff); font-size: 34px; }.shop-visual .quantity { position: absolute; right: -4px; top: -5px; min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 4px; border: 2px solid white; border-radius: 99px; background: #ff7da9; color: white; font-size: 9px; font-weight: 900; }
.shop-visual img { width: 49px; height: 49px; border-radius: 14px; object-fit: cover; }
.pet-switch img { width: 31px; height: 31px; border-radius: 10px; object-fit: cover; }
.shop-info { min-width: 0; }.shop-info b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }.shop-info span { display: block; margin-top: 4px; color: #938ba3; font-size: 9px; }.shop-info strong { display: inline-flex; gap: 3px; margin-top: 5px; color: #a56800; font-size: 11px; }
.shop-buy { min-width: 66px; padding: 8px 9px; border: 0; border-radius: 11px; background: #7c63e8; color: white; font-size: 10px; font-weight: 900; cursor: pointer; box-shadow: 0 5px 12px rgba(101,75,215,.18); }.shop-buy.secondary { color: #6759a3; background: #efebfa; box-shadow: none; }.shop-buy.owned { color: #5a9d78; background: #eaf8ef; box-shadow: none; }.shop-buy:disabled { cursor: default; opacity: .7; }
.shop-note { margin-top: 13px; padding: 10px 12px; border-radius: 13px; background: #fffbeb; color: #9c844c; font-size: 9px; line-height: 1.55; }

.inventory-panel { display: flex; align-items: center; gap: 25px; margin-top: 20px; padding: 15px 20px; border-radius: 22px; }.inventory-panel > div:first-child { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }.inventory-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: #f0ecff; font-size: 23px; }.inventory-panel h2 { margin: 0; font-size: 14px; }.inventory-panel h2 small { display: block; margin-top: 4px; color: #948ca4; font-size: 9px; font-weight: 500; }.inventory-list { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }.inventory-item { display: flex; align-items: center; gap: 6px; padding: 8px 11px; border: 1px solid #eee8f5; border-radius: 12px; background: #fff; font-size: 11px; }.inventory-item > span { font-size: 19px; }.inventory-item b { color: #6d647d; }.inventory-item em { color: var(--pink); font-size: 10px; font-style: normal; font-weight: 900; }.empty-inventory { color: #a19aaa; font-size: 11px; }

.modal-backdrop { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(43,32,66,.38); backdrop-filter: blur(9px); animation: fadeIn .2s ease; }
.modal { position: relative; width: min(430px, 100%); padding: 28px; border-radius: 28px; background: white; box-shadow: 0 28px 80px rgba(35,24,59,.25); animation: modalIn .3s cubic-bezier(.2,.8,.2,1); }
.login-card { text-align: center; }.login-mascots { height: 75px; display: flex; justify-content: center; align-items: end; margin: -55px 0 16px; }.login-mascots span { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 -7px; border: 6px solid white; border-radius: 28px; background: #fff2f7; font-size: 47px; filter: drop-shadow(0 10px 9px rgba(69,49,91,.15)); }.login-mascots span:nth-child(2) { z-index: 2; width: 88px; height: 88px; background: #fff5dc; font-size: 55px; }.login-mascots span:nth-child(3) { background: #f1edff; }
.login-card h1 { margin: 0; font-size: 29px; }.login-card > p { margin: 8px 0 20px; color: #888095; font-size: 12px; }
.login-card form { display: grid; gap: 12px; text-align: left; }.login-card label { color: #71697e; font-size: 11px; font-weight: 800; }.login-card input, .login-card select { width: 100%; height: 46px; margin-top: 6px; padding: 0 13px; border: 1px solid #e6dff0; border-radius: 13px; outline: 0; background: #fbfafe; }.login-card input:focus, .login-card select:focus { border-color: #8c76ee; box-shadow: 0 0 0 4px #8c76ee1a; }.login-card form button, .rename-modal form button { height: 48px; border: 0; border-radius: 14px; background: linear-gradient(135deg,#8b72f2,#6d55dc); color: white; font-weight: 900; cursor: pointer; box-shadow: 0 9px 20px rgba(101,77,214,.25); }.login-hint { display: block; margin-top: 13px; color: #aaa2b4; font-size: 9px; }
.modal-close { position: absolute; top: 17px; right: 17px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: #f1eef6; color: #8b839a; font-size: 22px; cursor: pointer; }.food-modal h2, .rename-modal h2 { margin: 0; font-size: 22px; }.food-modal > p { margin: 7px 0 17px; color: #8a8298; font-size: 11px; }.food-choices { display: grid; grid-template-columns: repeat(2,1fr); gap: 9px; }.food-choice { display: grid; grid-template-columns: 35px 1fr; align-items: center; gap: 8px; padding: 11px; border: 1px solid #eee8f5; border-radius: 15px; background: #fff; cursor: pointer; text-align: left; }.food-choice:hover { border-color: #cfc3f3; background: #faf8ff; }.food-choice > span { font-size: 28px; }.food-choice b { display: block; font-size: 11px; }.food-choice small { display: block; margin-top: 3px; color: #91899f; font-size: 9px; }
.rename-modal form { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 18px; }.rename-modal input { min-width: 0; height: 46px; padding: 0 13px; border: 1px solid #e4ddec; border-radius: 13px; outline: 0; }.rename-modal form button { height: 46px; padding: 0 17px; }

.toast { position: fixed; z-index: 100; left: 50%; bottom: 28px; max-width: min(460px, calc(100% - 30px)); padding: 12px 20px; border-radius: 15px; background: rgba(43,35,59,.94); color: white; box-shadow: 0 12px 35px rgba(34,25,51,.24); font-size: 12px; font-weight: 700; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; transition: .3s; }.toast.show { transform: translate(-50%,0); opacity: 1; }.toast.error { background: rgba(195,62,84,.96); }
.celebration { position: fixed; z-index: 95; inset: 0; overflow: hidden; pointer-events: none; }.coin-particle { position: absolute; left: 50%; top: 50%; font-size: 25px; animation: coinBurst .9s cubic-bezier(.1,.7,.2,1) forwards; }
footer { width: min(1440px, calc(100% - 40px)); display: flex; justify-content: space-between; margin: 0 auto; padding: 0 4px 25px; color: #9b94a8; font-size: 9px; }footer a { color: #8b7bd1; }

@keyframes float { 50% { transform: translateY(-18px) rotate(45deg); opacity: .9; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes cloudDrift { to { transform: translateX(35px); } }
@keyframes wander { 0%,100% { transform: translateX(calc(-50% - 65px)); } 50% { transform: translateX(calc(-50% + 65px)); } }
@keyframes petBreathe { 0%,100% { transform: translateX(-50%) translateY(0) rotate(-1deg); } 50% { transform: translateX(-50%) translateY(-7px) rotate(1deg); } }
@keyframes shadowPulse { 50% { width: 105px; opacity: .65; } }
@keyframes petJump { 0%,100% { transform: scale(1); } 45% { transform: translateY(-26px) scale(1.1) rotate(5deg); } }
@keyframes heartPop { 0% { opacity: 0; transform: translateY(20px) scale(.3); } 45% { opacity: 1; } 100% { opacity: 0; transform: translateY(-35px) scale(1.4); } }
@keyframes bubbleIn { from { opacity: 0; transform: translateX(-50%) translateY(8px) scale(.9); } }
@keyframes touchSpark { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.45); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% + var(--tx)),calc(-50% + var(--ty))) scale(1.25) rotate(18deg); } }
@keyframes eggWiggle { 0%,75%,100% { transform: rotate(0); } 80% { transform: rotate(-8deg); } 85% { transform: rotate(8deg); } 90% { transform: rotate(-5deg); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(.96); } }
@keyframes coinBurst { to { transform: translate(var(--x),var(--y)) rotate(var(--r)); opacity: 0; } }

@media (max-width: 980px) {
  .quick-links { display: none; }.topbar { padding-inline: 16px; }.account-area { margin-left: auto; }
  .main-grid { grid-template-columns: 1fr; }.shop-list { max-height: none; grid-template-columns: repeat(2,1fr); }.shop-card { grid-template-columns: 48px minmax(0,1fr) auto; }.shop-visual { width: 48px; height: 48px; font-size: 30px; }
}
@media (max-width: 680px) {
  .topbar { min-height: 64px; gap: 8px; }.brand-mark { width: 41px; height: 41px; border-radius: 14px; font-size: 21px; }.brand b { font-size: 15px; }.brand small, .ghost-button, .account-chip small { display: none; }
  .account-chip { grid-template-columns: 26px auto; grid-template-rows: auto; min-height: 39px; padding-right: 9px; }.account-chip > span { grid-row: auto; width: 27px; height: 27px; }.account-chip b { font-size: 10px; }.points-pill { height: 39px; padding: 0 10px; }.points-pill strong { font-size: 16px; }.points-pill small { display: none; }
  .app-shell { width: min(100% - 20px, 600px); padding-top: 18px; }.welcome-row { margin-bottom: 14px; }.welcome-row h1 { font-size: 25px; }.welcome-row p { font-size: 11px; line-height: 1.6; }.daily-tip { display: none; }
  .pet-panel, .shop-panel { border-radius: 22px; }.scene { min-height: 410px; }.scene-sun { right: 30px; width: 54px; height: 54px; }.window { left: 5%; transform: scale(.8); transform-origin: left top; }.shelf { right: 4%; top: 145px; font-size: 20px; }.pet-stage { bottom: 26px; transform: translateX(-50%); animation-name: petBreathe; }.pet-emoji { font-size: 105px; }.speech-bubble { top: 65px; max-width: 230px; font-size: 11px; }
  .interaction-hint { left: 50%; right: auto; transform: translateX(-50%); bottom: 10px; white-space: nowrap; }
  .pet-image { width: 112px; height: 112px; border-width: 5px; }
  .pet-dashboard { padding: 15px; }.pet-title-row { align-items: start; }.xp-box { max-width: 125px; text-align: right; }.status-grid { gap: 5px; }.status-card { grid-template-columns: 24px 1fr; padding: 8px 7px; }.status-card > span { font-size: 18px; }.status-card strong { display: none; }.status-card b { font-size: 9px; }
  .action-row { gap: 6px; }.care-button { display: flex; flex-direction: column; align-items: center; padding: 9px 3px; text-align: center; }.care-button span { font-size: 25px; }.care-button b { font-size: 10px; }.care-button small { font-size: 8px; }
  .shop-panel { padding: 15px; }.shop-list { grid-template-columns: 1fr; }.shop-tabs { position: sticky; top: 68px; z-index: 2; }
  .inventory-panel { align-items: start; flex-direction: column; gap: 12px; padding: 14px; }.inventory-list { width: 100%; }
  .modal { padding: 24px 19px; border-radius: 23px; }.food-choices { grid-template-columns: 1fr; }
  footer { width: calc(100% - 20px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
