#app { background: linear-gradient(180deg,#f3efff,#f8f6fc 80%); }
.top h1 { font-size:clamp(26px,7vw,36px); overflow-wrap:anywhere; }
.avatar-small { border:0; flex:none; width:46px; height:46px; border-radius:50%; font-size:20px; }
.art {display:block;object-fit:contain}
.pet {width:76px;aspect-ratio:1;margin:auto}
.pet-link { display:flex; align-items:center; gap:12px; width:100%; border:0; border-radius:20px; background:white; color:inherit; padding:8px 16px; font-weight:800; }
.pet-link .pet { margin:0; width:52px; }
.pet-link small { margin-left:auto; color:#735394; }
.duel-hero { display:flex; align-items:center; position:relative; isolation:isolate; overflow:hidden; padding:22px; min-height:174px; border-radius:28px; background:linear-gradient(105deg,#e8ddff,#dfc6fb); }
.duel-hero h2 { margin:0 0 16px; font-size:clamp(30px,8vw,43px); line-height:.99; letter-spacing:-.055em; }
.duel-hero .art { position:absolute; z-index:-1; width:51%; aspect-ratio:1; right:-2%; border-radius:24%; mask-image:radial-gradient(ellipse closest-side,black 82%,transparent 130%); }
.duel-hero { background:#261337 url('/game-crown.png') center/cover; aspect-ratio:2; color:white; min-height:160px; }
.duel-hero .primary { background:white; color:#29193d; border-radius:30px; }
.quick-links { display:flex; gap:8px; margin:14px 0 24px; }
.quick-links button { flex:1; display:flex; justify-content:space-between; align-items:center; padding:14px 10px; border:0; border-radius:16px; background:#fff; color:#29213b; font-weight:800; }
.quick-links span { color:#8957cc; }
.shelf { display:grid; grid-auto-flow:column; grid-auto-columns:43%; gap:12px; overflow-x:auto; padding-bottom:8px; scroll-snap-type:x mandatory; }
.pick { display:block; scroll-snap-align:start; border:0; border-radius:20px; padding:8px 8px 14px; background:white; color:#241c33; text-align:left; }
.shelf { grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }
.pick { text-align:center; overflow-wrap:anywhere; }
.pick .art { width:min(68px,100%); aspect-ratio:1; margin:auto; }
.pick strong,.pick small { display:block; margin:9px 4px 0; }
.pick small { color:#686174; font-size:12px; margin-top:3px; }
.listcard[data-create] .icon,.banner .icon { width:62px; height:62px; border-radius:17px; flex:none; font-size:0; }
.bottom button { flex:1; min-width:0; }
.bottom button.on { background:#f2eaff; border-radius:14px; }
button:focus-visible { outline:3px solid #703ad3; outline-offset:2px; }
.glyph { width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round }
#app { max-width:520px;padding:22px 14px calc(98px + env(safe-area-inset-bottom));color:#17121f;overflow-x:hidden }
.top { margin:0 0 10px;align-items:flex-start }.top h1 { font-size:clamp(25px,7vw,34px);line-height:1.02 }
.top + .sub { margin:-3px 0 12px }.pills { padding-top:4px }.pill { display:flex;align-items:center;gap:5px;padding:6px 10px }.pill .glyph,.pill .art {width:25px;height:25px}
.card,.pick,.shortcut-row button,.pet-link {border:1px solid rgba(255,255,255,.92);border-radius:18px;background:#fff;box-shadow:0 7px 22px rgba(82,57,118,.075)}
.level,.daily {display:flex;align-items:center;gap:10px}.level.card {padding:10px 13px}.level>div:first-of-type { flex:1 }.track {height:7px;background:#e6def6;border-radius:8px;min-width:40px;margin-top:4px}.level small {margin-left:auto}
.track i {display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#7844ec,#c378f2)}
.duel-hero {border-radius:20px;padding:clamp(14px,4vw,22px);margin:12px 0;aspect-ratio:1.97}.duel-hero h2 {font-size:clamp(23px,6vw,34px);margin:5px 0}.duel-hero p {font-size:12px;max-width:46%;margin:5px 0 9px}.tag {background:#9059de;color:white;border-radius:12px;font-size:11px;padding:3px 9px}.duel-hero .primary {font-size:13px;padding:7px 15px}
.shortcut-row {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0}.shortcut-row button {min-width:0;border:0;padding:12px 3px;color:#241b31;font:700 clamp(10px,2.75vw,13px) Manrope,system-ui;line-height:1.15}.shortcut-row .glyph,.shortcut-row .art {display:block;width:32px;height:32px;margin:0 auto 7px;color:#3b2c4e}.section {margin:22px 1px 10px}.section h2 {font-size:20px}
.daily {padding:10px 12px}.daily small,.menu-list small {display:block;color:#635c71;font-size:12px}.daily .art {width:46px;height:46px;flex:none}.daily .track {width:24%;margin-left:auto}
.pick {min-width:0;padding:9px 5px 13px}.pick .art {width:58px}.pick strong {font-size:clamp(10px,3vw,14px);line-height:1.15;margin:6px 0 3px}.pick small {margin:0;font-size:10.5px;line-height:1.25}
.popular .pick {background:linear-gradient(150deg,#30213f,#7954a2);color:white;text-align:left;padding:10px}.popular small {color:#eee4ff}.seg {border-radius:30px;background:#fff9}.seg button {border-radius:30px}.chips {gap:5px}.chip {padding:7px 10px}
.avatars {display:flex;gap:10px;overflow:auto;padding:15px 0}.avatars button,.avatars span {border:0;border-radius:15px;text-align:center;background:#fff9;font-size:12px;padding:8px;color:inherit}.avatars b {display:grid;place-items:center;background:#ede4ff;color:#7c43cb;border-radius:50%;width:42px;height:42px;font-size:22px;margin:0 auto 3px}.friend-banner {background:#eae0ff}.friend-banner button {margin-left:auto;padding:7px;font-size:12px}
.menu-list button,.menu-list summary {display:block;text-align:left;width:100%;border:0;border-bottom:1px solid #ebe6f4;background:transparent;padding:9px 4px;color:inherit;font-weight:800}.profile .avatar {border-radius:50%}.pet-link {margin-top:14px}.listcard>.art {width:48px;height:48px;flex:none}
.duo-note {margin:12px 0;padding:11px 14px;border-radius:15px;background:#eee6ff;color:#5f5272;font-size:12px;line-height:1.4}
.status-dot {width:9px;height:9px;border-radius:50%;margin-left:auto;background:#bbb}.status-dot.active{background:#35c96f}.status-dot.lobby{background:#f1a72b}.status-dot.finished{background:#9d83bd}.status-dot.expired{background:#bbb}.listcard .status-dot+.arrow{margin-left:0}
.lobby-card{text-align:center;padding:24px 18px}.lobby-card>.art{width:82px;height:82px;margin:0 auto 8px}.lobby-card h2{margin:4px 0 8px}.lobby-card p{color:#665f70;font-size:13px;line-height:1.5}.lobby-card .soft,.card .soft.wide{margin-top:9px}.game-actions{padding:10px}.daily>b{margin-left:auto}
.lobby-card .ghost{margin-top:7px}.mode-backdrop{position:fixed;z-index:50;inset:0;background:#1e102f66;display:flex;align-items:flex-end;justify-content:center;padding:12px}.mode-sheet{position:relative;width:min(500px,100%);padding:24px 16px 18px;border-radius:26px;background:#faf8ff;box-shadow:0 -20px 60px #27153940}.mode-sheet h2{margin:0 0 4px;font-size:25px}.mode-sheet>p{margin:0 0 15px;color:#6b6276}.mode-close{position:absolute;right:14px;top:13px;border:0;background:#eee6fa;border-radius:50%;width:34px;height:34px;font-size:22px}.mode-option{display:block;width:100%;text-align:left;border:1px solid #e8def6;border-radius:18px;background:white;padding:15px;margin-top:9px;color:#241b31}.mode-option b,.mode-option small{display:block}.mode-option b{font-size:16px}.mode-option small{margin-top:4px;color:#71687c;font-size:12px}
.bottom {width:min(520px,100%);padding:8px 7px calc(9px + env(safe-area-inset-bottom));border:1px solid rgba(255,255,255,.9);background:rgba(255,255,255,.94);box-shadow:0 -7px 25px rgba(70,48,101,.09)}.bottom .glyph {width:23px;height:23px;display:block;margin:1px auto 4px}.bottom button {min-width:0;padding:3px 1px;line-height:1.1}.bottom button[data-tab="pet"] .glyph {width:30px;height:30px;margin-top:-8px;padding:5px;border-radius:50%;background:#eadcff;color:#7342c2;box-sizing:content-box}.bottom button.on {background:transparent;color:#321b4c}
.pet-hero{display:flex;align-items:center;gap:18px;overflow:hidden;background:linear-gradient(135deg,#efe5ff,#fff 62%);min-height:170px}.pet-hero h2{font-size:30px;margin:8px 0 3px}.pet-hero p{margin:0;color:#71677d;font-size:13px}.pet-stage{position:relative;width:44%;min-width:120px}.pet-stage .pet{position:relative;z-index:2;width:118px;filter:drop-shadow(0 12px 16px #6b458a2a)}.pet-shadow{position:absolute;left:17%;right:17%;bottom:0;height:15px;border-radius:50%;background:#72489a1c;filter:blur(4px)}
.pet-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px}.pet-stat{margin:0;padding:12px}.pet-stat>div:first-child{display:flex;align-items:center;gap:5px}.pet-stat b{font-size:11px}.pet-stat strong{margin-left:auto;font-size:12px;color:#7540d6}.pet-stat .track{margin-top:8px}.pet-stat:nth-child(2) .track i{background:linear-gradient(90deg,#55b9e8,#93dcef)}.pet-stat:nth-child(3) .track i{background:linear-gradient(90deg,#f0aa36,#ffd66b)}.pet-stat:nth-child(4) .track i{background:linear-gradient(90deg,#df5e9d,#ee91bd)}
.pet-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.pet-actions button{border:0;border-radius:18px;background:#fff;padding:12px 5px;color:#241b31;box-shadow:0 7px 20px rgba(82,57,118,.075)}.pet-actions button:disabled{opacity:.55}.pet-actions span,.pet-actions b,.pet-actions small{display:block}.pet-actions span{font-size:27px;margin-bottom:5px}.pet-actions b{font-size:12px}.pet-actions small{font-size:9px;color:#766d80;margin-top:3px}.pet-progress h3{margin:0}.pet-progress>p{font-size:13px;color:#665d70}.unlock-list{display:grid;gap:7px}.unlock-list span{display:flex;gap:6px;align-items:center;padding:8px 10px;border-radius:12px;background:#f4f0f9;color:#8b8294;font-size:12px}.unlock-list span.done{background:#eee7ff;color:#56387c}.unlock-list small{margin-left:auto}.pet-settings summary{font-weight:800}.pet-rename{display:flex;gap:8px;align-items:center}.pet-rename .field{margin:12px 0}.pet-rename .soft{white-space:nowrap;padding-inline:12px}
.pet-tabs{display:flex;gap:5px;overflow:auto;margin:10px 0 14px}.pet-tabs button{flex:1;white-space:nowrap;border:0;border-radius:14px;background:#fff;padding:10px 8px;color:#6d6478;font-weight:800;font-size:11px}.pet-tabs button.on{background:#7741e8;color:#fff}.life-buttons{display:flex;flex-wrap:wrap;gap:7px}.life-buttons button,.life-row button{border:0;border-radius:11px;background:#eee6ff;color:#59369a;padding:8px 10px;font-weight:700;font-size:11px}.life-buttons button:disabled{opacity:.55}.life-row{display:flex;align-items:center;gap:8px;padding:10px 0;border-top:1px solid #eee8f4}.life-row b{min-width:0}.life-row small{color:#756d80;margin-right:auto}.relationship{padding:12px 0;border-top:1px solid #eee8f4}.relationship>b,.relationship>small{display:block}.relationship>small{color:#756d80;margin:3px 0 9px}.daily button:disabled{opacity:.5}
@media(max-width:380px){#app{padding-inline:11px}.shortcut-row{gap:5px}.shortcut-row button{font-size:10px}.pick small{font-size:10px}.duel-hero p{font-size:11px}.bottom button{font-size:9px}}

/* Home visual layer: isolated so the functional screens can be reskinned later. */
#app.is-home{padding:0 14px calc(104px + env(safe-area-inset-bottom));background:linear-gradient(180deg,#f8f4ff 0,#f0e7ff 55%,#faf8ff 100%)}
.home-screen{padding-top:max(18px,env(safe-area-inset-top));color:#11101a}
.home-top{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:2px 3px 15px}
.home-brand{display:flex;align-items:center;gap:9px;font-size:21px;font-weight:800;letter-spacing:-.04em}.home-brand>span{font-size:34px;line-height:1;color:#7139c9;filter:drop-shadow(0 5px 8px #7443c74f);animation:homeTwinkle 3s ease-in-out infinite}
.home-wallet{display:flex;align-items:center;gap:7px}.home-pill,.home-bell{height:39px;border:0;border-radius:22px;background:#fff9;box-shadow:0 8px 20px #65439719;backdrop-filter:blur(10px)}.home-pill{display:flex;align-items:center;gap:2px;padding:4px 10px 4px 5px;font-size:12px}.home-pill .art{width:29px;height:29px}.home-bell{position:relative;width:39px;padding:8px;color:#2d2039}.home-bell .glyph{width:22px;height:22px}.home-bell i{position:absolute;right:4px;top:4px;width:8px;height:8px;border-radius:50%;background:#8f55eb;box-shadow:0 0 0 2px white}
.home-hero{position:relative;min-height:238px;margin:0 -14px 14px;overflow:hidden;background:#d9c5ff url('/home-hero.jpg') center/cover no-repeat;box-shadow:inset 0 -24px 35px #5e3aa02b}.home-hero:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(247,241,255,.88) 0,rgba(247,241,255,.34) 47%,transparent 70%);pointer-events:none}.home-welcome{position:relative;z-index:1;width:54%;padding:23px 0 0 19px}.home-welcome h1{margin:0;font-size:clamp(30px,9vw,42px);line-height:.98;letter-spacing:-.065em}.home-welcome p{margin:10px 0;color:#625b73;font-size:13px;line-height:1.35}.home-welcome p span{color:#f0b51d;font-size:20px}.hero-play{position:absolute;z-index:2;left:19px;bottom:18px;display:flex;align-items:center;gap:14px;border:0;border-radius:24px;padding:9px 11px 9px 17px;background:#fff;color:#502589;font-size:12px;font-weight:800;box-shadow:0 9px 22px #5f3a8d30}.hero-play b{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#7d46d7;color:white;font-size:18px}.home-hero{animation:homeHeroIn .65s cubic-bezier(.2,.8,.2,1) both}
.home-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.home-action{display:flex;align-items:center;gap:8px;min-width:0;min-height:78px;border:1px solid #fff;border-radius:22px;padding:10px 9px;background:rgba(255,255,255,.79);color:#16121e;text-align:left;box-shadow:0 9px 22px #69499b16;backdrop-filter:blur(9px);transition:transform .18s ease,box-shadow .18s ease}.home-action:active{transform:scale(.97)}.home-action>.art{flex:none;width:49px;height:49px;filter:drop-shadow(0 7px 7px #7745b52c)}.home-action>span{min-width:0}.home-action strong,.home-action small{display:block}.home-action strong{font-size:14px;line-height:1.15}.home-action small{margin-top:3px;color:#71697c;font-size:9.5px;line-height:1.25}.home-action>b{margin-left:auto;font-size:23px;font-weight:500}.home-actions .home-action:nth-child(1) .art,.home-actions .home-action:nth-child(4) .art{animation:homeFloat 3.2s ease-in-out infinite}.home-actions .home-action:nth-child(2) .art,.home-actions .home-action:nth-child(3) .art{animation:homeFloat 3.2s .55s ease-in-out infinite}
.home-section{display:flex;align-items:center;justify-content:space-between;margin:25px 2px 10px}.home-section h2{margin:0;font-size:19px;line-height:1.15;letter-spacing:-.045em}.home-section button{border:0;background:transparent;color:#292233;font-size:12px}.home-section button b{font-size:18px}
.home-games{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(126px,38%);gap:9px;overflow-x:auto;padding:1px 1px 8px;scroll-snap-type:x mandatory;scrollbar-width:none}.home-games::-webkit-scrollbar{display:none}.home-game{position:relative;display:flex;flex-direction:column;min-height:154px;scroll-snap-align:start;overflow:hidden;border:1px solid #fff;border-radius:23px;padding:7px 10px 12px;background:rgba(255,255,255,.72);color:#17121f;text-align:left;box-shadow:0 8px 20px #60438914}.home-game>.art{width:76px;height:76px;margin:0 auto -1px;transition:transform .2s ease}.home-game:active>.art{transform:scale(.9) rotate(-4deg)}.home-game>span{margin-top:auto}.home-game strong,.home-game small{display:block}.home-game strong{font-size:13px;line-height:1.13}.home-game small{margin-top:4px;color:#6f6878;font-size:9.5px;line-height:1.2}.home-game>i{position:absolute;right:9px;bottom:10px;display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:linear-gradient(145deg,#a468ee,#6932c4);color:white;font-size:9px;font-style:normal;box-shadow:0 5px 10px #7040c044}
.home-recommend{display:grid;grid-template-columns:1fr 1fr;gap:9px}.home-recommend .home-action{min-height:74px}.home-recommend .home-action>.art{width:45px;height:45px}
.home-mission{display:flex;align-items:center;gap:9px;margin:24px 0 4px;padding:11px 12px;border:1px solid #fff;border-radius:23px;background:linear-gradient(120deg,#fff,#f1e6ff);box-shadow:0 9px 23px #63429714}.home-mission>.art{width:53px;height:53px;flex:none}.home-mission>div{min-width:0}.home-mission span,.home-mission strong,.home-mission small{display:block}.home-mission span{color:#7c46c6;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.home-mission strong{font-size:12px;line-height:1.25;margin:2px 0}.home-mission small{color:#71697b;font-size:9px;line-height:1.3}.home-mission>b{margin-left:auto;flex:none;color:#7540d4}.home-mission.done{background:linear-gradient(120deg,#fff,#ece5ff)}
.home-friends{display:grid;gap:5px;padding:7px;border:1px solid #fff;border-radius:23px;background:#ffffffa8;box-shadow:0 9px 22px #5d3e8c12}.home-friends button{display:grid;grid-template-columns:39px 1fr auto;grid-template-rows:auto auto;column-gap:10px;align-items:center;border:0;border-bottom:1px solid #ede6f7;padding:7px;background:transparent;color:inherit;text-align:left}.home-friends button:last-child{border-bottom:0}.home-friends span{grid-row:1/3;display:grid;place-items:center;width:39px;height:39px;border-radius:50%;background:linear-gradient(145deg,#d3b6ff,#8050d2);color:white;font-weight:800}.home-friends strong{font-size:12px}.home-friends small{color:#756d80;font-size:9px}.home-friends button>small:last-child{grid-column:3;grid-row:1/3}
.home-screen>.listcard{margin-block:7px;animation:homeRise .4s ease both}
@keyframes homeHeroIn{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:none}}@keyframes homeRise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@keyframes homeFloat{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-4px) rotate(2deg)}}@keyframes homeTwinkle{0%,100%{transform:scale(1) rotate(0)}50%{transform:scale(1.12) rotate(8deg)}}
@media(max-width:370px){.home-brand{font-size:18px}.home-brand>span{font-size:29px}.home-wallet{gap:4px}.home-pill{padding-right:7px}.home-bell{width:36px}.home-hero{min-height:220px}.home-action>.art{width:42px;height:42px}.home-action{padding-inline:7px}.home-action strong{font-size:12px}.home-games{grid-auto-columns:41%}}
@media(prefers-reduced-motion:reduce){.home-screen *{animation:none!important;scroll-behavior:auto!important;transition:none!important}}

/* Reference proportions; static effects keep Telegram WebView responsive. */
#app.is-home{background:#efe7fc;padding-inline:12px}
.home-screen{padding-top:max(12px,env(safe-area-inset-top))}
.home-top{height:66px;padding:0 2px 9px}
.home-brand{font-size:21px;gap:8px}.home-brand>span{font-size:30px;animation:none;filter:none}
.home-pill,.home-bell{height:36px;background:#f9f5ff;box-shadow:0 3px 9px #70459b1b;backdrop-filter:none}
.home-pill{padding:2px 9px 2px 4px;font-size:12px}.home-pill .art{width:28px;height:28px}.home-bell{width:36px}
.home-hero{height:180px;min-height:0;margin:0 -12px 10px;background-position:center 56%;background-size:100% auto;box-shadow:none;animation:none}
.home-hero:after{background:linear-gradient(90deg,#f5eaffc9 0%,#f5eaff4d 42%,transparent 65%)}
.home-welcome{padding:15px 0 0 17px;width:62%}.home-welcome h1{font-size:clamp(28px,8vw,36px);line-height:1.02;letter-spacing:-.055em}.home-welcome p{margin-top:9px;font-size:12px;white-space:nowrap}
.hero-play{display:none}
.home-actions{gap:8px;padding:0 2px}.home-action{height:73px;min-height:0;border-radius:20px;background:#f9f5ff;padding:7px 8px;gap:7px;box-shadow:0 4px 11px #69499b18;backdrop-filter:none;transition:none}.home-action>.art{width:45px;height:45px;filter:none}.home-action strong{font-size:14px}.home-action small{font-size:9.5px;line-height:1.15}.home-action>b{font-size:23px}.home-actions .home-action .art{animation:none!important}
.home-section{margin:24px 4px 10px}.home-section h2{font-size:18px}.home-section button{font-size:12px}
.home-games{grid-auto-columns:31.5%;gap:7px;padding:0 2px 4px}.home-game{min-height:119px;border-radius:20px;padding:4px 8px 10px;background:#f9f5ff;box-shadow:0 4px 11px #60438916}.home-game>.art{width:62px;height:62px;transition:none}.home-game strong{font-size:12px}.home-game small{font-size:9px;max-width:80%}.home-game>i{width:23px;height:23px;right:6px;bottom:8px;box-shadow:none}
.home-game strong{overflow-wrap:anywhere;padding-right:3px}.home-game>span{max-width:100%}
.home-recommend .home-action{height:68px;min-height:0}.home-recommend .home-action>.art{width:42px;height:42px}
.home-mission{box-shadow:0 4px 11px #63429716}
#app.is-home .bottom{border-radius:34px 34px 0 0;background:#faf7ff;backdrop-filter:none;box-shadow:0 -3px 14px #69499b16}
#app.is-home .bottom button[data-tab="home"]{color:#7c42d9}
#app.is-home .bottom button[data-tab="pet"] .glyph{width:29px;height:29px;margin-top:-13px;padding:11px;border:3px solid #fff;border-radius:50%;background:linear-gradient(145deg,#b282f4,#6532bd);color:#fff;box-shadow:0 5px 11px #6337a750}
@media(max-width:370px){.home-hero{height:166px}.home-action>.art{width:39px;height:39px}.home-action strong{font-size:12px}.home-action small{font-size:8px}.home-games{grid-auto-columns:32%}.home-game strong{font-size:11px}}

#app.is-home{background:linear-gradient(180deg,#f3eaff 0%,#eee3fc 70%,#f4eeff 100%)}
.home-top{height:56px;padding-bottom:4px}
.home-brand{font-size:22px;font-weight:800}.home-brand>span{font-size:31px;color:#7442cf}
.home-hero{height:166px;margin-bottom:0;background-position:center 53%}
.home-hero:after{background:linear-gradient(90deg,#f5eaffb5 0%,#f5eaff45 40%,transparent 65%)}
.home-welcome{padding-top:15px}.home-welcome h1{font-size:clamp(29px,8.2vw,38px)}.home-welcome p{font-size:12px}
.home-actions{position:relative;z-index:1;margin-top:-8px;gap:8px}.home-action{height:72px;border-radius:21px;padding:8px 10px;background:#f9f3ff;box-shadow:0 5px 13px #6a438f23}.home-action>.art{width:43px;height:43px}.home-action strong{font-weight:800;font-size:14px}.home-action small{font-size:9.5px}
.home-section{margin-top:26px;margin-bottom:11px}.home-section h2{font-size:19px;font-weight:800}
.home-game{min-height:120px;background:linear-gradient(170deg,#fbf7ff 60%,#eee3ff 100%)}.home-game>.art{width:68px;height:68px}.home-game strong{font-size:13px}.home-game small{font-size:9px}
.home-game>i{display:none}
.home-games{grid-auto-columns:31.5%;gap:7px}
#app.is-home .bottom{padding-top:10px;padding-bottom:calc(11px + env(safe-area-inset-bottom));box-shadow:0 -5px 16px #76559c22}
#app.is-home .bottom button{font-size:10px;color:#211a2a;font-weight:600}
#app.is-home .bottom button[data-tab="home"]{color:#7c42d9;font-weight:800}
#app.is-home .bottom button[data-tab="pet"] .art{display:block;width:54px;height:54px;margin:-26px auto 2px;padding:8px;border:3px solid white;border-radius:50%;background:linear-gradient(145deg,#ad78e8,#582ca9);box-shadow:0 5px 11px #6337a750;box-sizing:border-box}
@media(max-width:370px){.home-top{height:53px}.home-hero{height:150px}.home-welcome h1{font-size:28px}.home-action{height:69px;padding-inline:7px}.home-action>.art{width:39px;height:39px}.home-game>.art{width:58px;height:58px}}

/* Blend the illustration into one continuous canvas and align card contents. */
#app.is-home{background:linear-gradient(180deg,#f2e8fc 0%,#e9dbf9 34%,#f1e8fc 72%,#f6f0fe 100%)}
.home-hero{isolation:isolate;overflow:visible;background:none}
.home-hero::before{content:"";position:absolute;z-index:-1;inset:0 0 -75px;background:url('/home-hero.jpg') center top/100% auto no-repeat;mask-image:linear-gradient(to bottom,#000 0%,#000 58%,transparent 100%);pointer-events:none}
.home-hero::before{background-position:center -29px;mask-image:linear-gradient(to bottom,transparent 0%,#000 14%,#000 57%,transparent 100%)}
.home-hero::after{z-index:0;background:linear-gradient(90deg,#f4eafbbd 0%,#f4eafb40 43%,transparent 66%)}
.home-actions{margin-top:-6px}
.home-action{display:grid;grid-template-columns:46px minmax(0,1fr) 11px;align-items:center;column-gap:8px;height:78px;padding:8px 11px;background:#faf5ff}
.home-action>.art{width:46px;height:46px;justify-self:center}
.home-action>span{align-self:center}.home-action strong{font-size:15px;line-height:1.15;letter-spacing:-.02em}.home-action small{margin-top:4px;color:#5f566d;font-size:10.5px;line-height:1.25;font-weight:500}.home-action>b{font-size:22px;line-height:1;text-align:right}
.home-section h2{font-size:20px;letter-spacing:-.025em}.home-section button{color:#251c30;font-size:12px;font-weight:600}
.home-game strong{font-size:13.5px;line-height:1.18;letter-spacing:-.015em}.home-game small{color:#5e556a;font-size:10px;line-height:1.22}
.home-recommend .home-action{grid-template-columns:43px minmax(0,1fr) 11px;height:75px}.home-recommend .home-action>.art{width:43px;height:43px}
.home-welcome p{color:#554c62;font-size:13px}.home-welcome h1{letter-spacing:-.045em}
@media(max-width:370px){.home-action{grid-template-columns:37px minmax(0,1fr) 9px;column-gap:5px;height:73px;padding:6px}.home-action>.art{width:37px;height:37px}.home-action strong{font-size:13px}.home-action small{font-size:9px}.home-recommend .home-action{grid-template-columns:35px minmax(0,1fr) 8px}.home-recommend .home-action>.art{width:35px;height:35px}}
