/* R11 — integrated portrait UI, premium evolution cards and onboarding. */
[hidden]{display:none!important}#home .homeTop{align-items:center;gap:1.7cqw}#home .homeTop .metric{min-width:0;flex:1;max-width:32cqw}#homeProfile{display:flex;align-items:center;justify-content:center;gap:1.4cqw;min-width:0;max-width:43cqw;padding:1.2cqw 2.2cqw 1.2cqw 1.2cqw;border:1px solid #f4e7ff;border-radius:4.5cqw;background:linear-gradient(#fff7ff,#d8c1f4);color:#4a2b70;box-shadow:0 3px #7352a2,0 5px 6px #321f4850;flex:1}#homeProfile b{font-size:3cqw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.avatar{position:relative;display:inline-block;flex:none;width:8cqw;height:8cqw;border-radius:50%;background:radial-gradient(circle at 30% 22%,#fff 1%,#ff8e9d 13%,#f83e59 36%,#bf1641 78%,#831236);box-shadow:inset 0 0 0 .3cqw #fff8,0 2px 3px #2b154b70}.avatar-1{background:radial-gradient(circle at 30% 22%,#fff 1%,#92f4ff 13%,#27baf0 36%,#1766c9 78%,#18408d)}.avatar-2{background:radial-gradient(circle at 30% 22%,#fff 1%,#eab7ff 13%,#b15cf0 36%,#7730c1 78%,#4d1b92)}.avatar:before,.avatar:after{content:'';position:absolute;width:24%;height:15%;top:51%;background:#fff;border-radius:10% 10% 80% 80%;box-shadow:0 1px 1px #25154555}.avatar:before{left:20%;transform:rotate(21deg)}.avatar:after{right:20%;transform:rotate(-21deg)}.avatar i{position:absolute;left:39%;top:72%;width:22%;height:7%;background:#3b185d99;border-radius:50%}.home .homelinks:has(#homeInstall[hidden]){grid-template-columns:repeat(2,minmax(0,1fr))}#home .challenge>strong{min-height:6cqw}#home .challenge em>span{font-size:2.5cqw;letter-spacing:0}#home .homeBrand{top:10%;width:80%;left:10%}.home-profile b{color:#fff}
/* Exact same background and loading track throughout, with a smooth overlap. */
#splash{opacity:1;transition:opacity .3s ease}#splash.boot-out{opacity:0;pointer-events:none}#splash .studio-stage{animation:studio11 4.65s ease-in-out both}#splash .game-stage{animation:game11 4.65s ease-in-out both}#splash .splash-track div{animation:bootFill 4.65s linear both}#splash .studio-stage img{width:77%;max-height:16%;object-fit:contain}#splash .game-stage img{width:88%;max-height:30%}#splash .splash-road,#splash .splash-orbs{background:#d7c7ee85;border:1px solid #fff9;box-shadow:inset 0 2px 3px #9a79c140}#splash .splash-bottom{z-index:2}@keyframes studio11{0%{opacity:0;transform:scale(.96)}12%,32%{opacity:1;transform:scale(1)}51%,100%{opacity:0;transform:scale(1.025)}}@keyframes game11{0%,32%{opacity:0;transform:translateY(2cqw) scale(.96)}51%,93%,100%{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){#splash .studio-stage{display:none}#splash .game-stage,#splash .splash-track div{animation:none}#splash{transition:none}}
.r10-modal{max-height:94%;overflow-y:auto;overscroll-behavior:contain}.modal-actions{flex-wrap:wrap}.modal-actions button{flex:1 1 28%;min-width:0}.local-note{font-size:2.65cqw!important;line-height:1.45;color:#806d98!important}.profile-form{text-align:left}.profile-form label{display:block;font-size:3.5cqw;margin:3cqw 0 1.2cqw}.profile-form input{font:inherit;color:#442963;background:#fff;width:100%;border:2px solid #c4a9e8;border-radius:3cqw;padding:3cqw;font-size:4cqw;outline-color:#8c5bd7}.profile-form>small{display:block;letter-spacing:0;font-size:2.6cqw;margin-top:1.4cqw}.profile-form .form-error{color:#b32646;min-height:1em;font-size:3cqw}.avatar-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.7cqw;margin:3cqw 0}.avatar-options button{border:2px solid #d9c7ed;border-radius:4cqw;background:linear-gradient(#fff,#e5d8f7);padding:2.7cqw 1cqw;color:#52327c;display:grid;justify-items:center;gap:1.8cqw;font-size:3cqw}.avatar-options button[aria-pressed=true]{border-color:#8956da;background:linear-gradient(#f7edff,#cfb0ff);box-shadow:0 3px #8b62c2}.avatar-options .avatar{width:13cqw;height:13cqw}.profile-hero{background:radial-gradient(ellipse at 50% 10%,#f6e9ff,#d6bbfa);border:1px solid #fff;border-radius:4.7cqw;padding:3cqw;margin:2cqw 0}.profile-hero .avatar{width:19cqw;height:19cqw}.profile-hero h3{font-size:5.7cqw;margin:1.2cqw 0;overflow-wrap:anywhere}.profile-hero>span:last-child{font-size:3cqw;color:#75589b}.profile-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.6cqw}.profile-stats>div{background:#fff9;border:1px solid #dbc9f0;border-radius:3cqw;font-size:2.8cqw;padding:2.2cqw}.profile-stats b{display:block;font-size:5cqw;color:#674097}.install-icon{width:22cqw;height:22cqw;margin:2cqw auto;display:block;filter:drop-shadow(0 3px 4px #442b6b50)}.install-help{background:#fff9;padding:2.5cqw;border-radius:3cqw;text-align:left;font-size:3cqw}.install-help p{font-size:2.8cqw;line-height:1.35}.secondary-wide{width:100%;background:#dbc8f2;color:#513175;border:1px solid #c4a4eb;border-radius:3cqw;padding:2.7cqw;font-size:3.3cqw}.guide-buttons{display:grid;gap:1.7cqw;margin:2cqw 0;text-align:left}.guide-buttons>button,.guide-buttons>div{display:block;text-align:left;background:linear-gradient(#fff,#eadcf9);border:1px solid #cfbae8;border-radius:3cqw;color:#4c2c70;padding:3cqw;font-size:3.8cqw}.guide-buttons small{display:block;letter-spacing:0;font-size:2.6cqw;margin-top:.8cqw}.guide-buttons p{margin:.9cqw 0;font-size:3cqw}.r11-levels button{justify-content:flex-start;gap:2cqw;padding:2.2cqw 1.8cqw}.r11-levels button>span:nth-child(2){flex:1;min-width:0}.level-number{background:linear-gradient(#bd91ef,#7950b1);color:#fff;width:8cqw;height:8cqw;border-radius:2.5cqw;display:grid;place-items:center;font-size:4cqw;flex:none}.level-stars{font-size:10cqw;color:#e9aa2d;letter-spacing:.8cqw;text-shadow:0 2px #a56824}.level-record,.level-objectives{display:flex;flex-direction:column;gap:1.5cqw;text-align:left;background:#fff9;border:1px solid #d4c1eb;border-radius:3cqw;padding:3cqw;font-size:3.2cqw;margin:2cqw 0}.level-record span{color:#785b97;font-size:3cqw}.level-objectives p{margin:0;text-align:left;font-size:3cqw}.ranking-person{display:flex;gap:2cqw;align-items:center;background:#dbc7f3;padding:2cqw;border-radius:3cqw;text-align:left}.ranking-person b{flex:1;overflow-wrap:anywhere}.ranking-person small{font-size:2.5cqw;letter-spacing:0}.rank-list{display:grid;gap:1.4cqw;margin:2.5cqw 0}.rank-list>div{display:grid;grid-template-columns:1fr auto;text-align:left;background:#fff9;border:1px solid #d6c0ed;border-radius:3cqw;padding:2.6cqw;gap:.8cqw;font-size:3.5cqw}.rank-list>div b{color:#754da8;font-size:4.7cqw;grid-row:span 2}.rank-list small{letter-spacing:0;font-size:2.5cqw}
/* Upgrade panel: current model plus both actual next evolution models. */
.details.r11-upgrade{border-radius:4.5cqw;border:1.5px solid #ead4ff;padding:2.1cqw;left:1.6cqw;right:1.6cqw;bottom:1.8cqw;background:linear-gradient(150deg,#65458f,#38225b 68%,#2b1848);color:#fff;box-shadow:0 4px #211339,0 9px 24px #25133f88;max-height:97%;overflow:auto;overscroll-behavior:contain}.r11-upgrade .upgrade-top{display:flex;justify-content:space-between;align-items:center;margin:0 .7cqw 1.1cqw;color:#dfc8fa;font-size:2.6cqw;letter-spacing:.38cqw}.r11-upgrade .dismiss{position:static;width:7cqw;height:7cqw;border-radius:2.6cqw;background:linear-gradient(#b58de6,#8055ba);color:white;font-size:4.5cqw;flex:none}.r11-upgrade .upgrade-hero{display:grid;grid-template-columns:31cqw minmax(0,1fr);align-items:center;gap:1.8cqw;padding:1.5cqw;background:radial-gradient(ellipse at 15% 20%,#b289e5,#6b4a98 54%,#523576);border:1px solid #caa8f2;border-radius:3.8cqw;box-shadow:inset 0 1px #fff6}.r11-upgrade .current-model{height:22cqw;background:radial-gradient(ellipse,#c39df47a,transparent 75%);display:grid;place-items:center}.r11-upgrade .current-model img{width:100%;height:100%;object-fit:contain;min-height:0;filter:drop-shadow(0 3px 3px #38224c90)}.r11-upgrade .upgrade-hero small{color:#ebd7ff;font-size:2.3cqw;letter-spacing:.22cqw}.r11-upgrade h3{font-size:5.2cqw;line-height:1.03;margin:.8cqw 0 1.6cqw;color:#fff}.upgrade-statline{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7cqw}.upgrade-statline>div{background:#33204b88;border-radius:1.7cqw;padding:1.2cqw .65cqw;font-size:2.2cqw}.upgrade-statline span{display:block;color:#e0c8f4;white-space:nowrap}.upgrade-statline b{display:block;font-size:3.8cqw;color:#fff;margin-top:.5cqw}.upgrade-caption{display:flex;justify-content:space-between;align-items:center;font-size:3cqw;padding:1.8cqw .8cqw 1.2cqw}.upgrade-caption span{color:#ffe3a4;font-size:2.8cqw}.r11-upgrade .branch-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5cqw}.r11-upgrade .branch{min-width:0;border-radius:3.6cqw;padding:1.7cqw;border:1px solid #ffdf9b;background:linear-gradient(155deg,#ffe6b1,#f6ca7b 55%,#e9ac58);color:#6b3b26;box-shadow:0 3px #9b6038,inset 0 1px #fff9;display:flex;flex-direction:column;gap:.8cqw}.r11-upgrade .branch-b{border-color:#b8dfff;background:linear-gradient(155deg,#e3f3ff,#b7d0fc 60%,#9ea8ee);color:#35376c;box-shadow:0 3px #5950a1,inset 0 1px #fff9}.branch-head{display:flex;justify-content:space-between;gap:.5cqw;align-items:center}.branch-head strong{font-size:3.2cqw!important}.branch-head span{font-size:2.5cqw}.r11-upgrade .tier-pips i{width:4.2cqw;height:4.2cqw;color:#7a6081;background:#ffffff70;border-color:#fff8}.r11-upgrade .tier-pips i.filled{background:linear-gradient(#fffaad,#e6a230);color:#6c4a21;box-shadow:0 1px #8f6029}.r11-upgrade .branch-b .tier-pips i.filled{background:linear-gradient(#d2fbff,#6a89ed);color:#213b90}.r11-upgrade .next-model{height:21cqw;min-height:0;display:grid;place-items:center;background:radial-gradient(ellipse,#fff9,transparent 75%);border-radius:2.5cqw}.r11-upgrade .next-model img{width:100%;height:100%;object-fit:contain;min-height:0;filter:drop-shadow(0 2px 2px #4a365650)}.r11-upgrade .next-title{font-size:3.4cqw;line-height:1.1}.r11-upgrade .branch small{color:inherit;opacity:.82;font-size:2.45cqw;min-height:5.2cqw;line-height:1.1;letter-spacing:0}.stat-gain{display:flex;flex-wrap:wrap;gap:.5cqw;font-size:2.1cqw;font-weight:900;min-height:4cqw}.stat-gain span{background:#fff8;padding:.6cqw;border-radius:1.1cqw}.r11-upgrade .branch .upgrade{background:linear-gradient(#fcfdff,#e0a34f);color:#663d26;border:1px solid #fff8;box-shadow:0 2px #ae712e;padding:1.5cqw .5cqw;font-size:3.8cqw;border-radius:2.5cqw;margin-top:auto}.r11-upgrade .branch-b .upgrade{background:linear-gradient(#f2faff,#85a0e9);color:#333a79;box-shadow:0 2px #6358a8}.r11-upgrade .minor{display:grid;grid-template-columns:1fr 1fr;gap:1.5cqw;margin-top:2.5cqw}.r11-upgrade .minor button{background:#7856a2;border:1px solid #ad88d8;color:#fff;padding:1.5cqw;font-size:2.9cqw;border-radius:2.8cqw}.r11-upgrade .minor button:last-child{background:#59406e;color:#f4d9e5}
/* Fit the complete upgrade interface inside the board, including targeting and sell. */
.r11-upgrade .upgrade-top{margin-bottom:.7cqw}.r11-upgrade .upgrade-hero{padding:1.1cqw;grid-template-columns:28cqw minmax(0,1fr)}.r11-upgrade .current-model{height:17cqw}.r11-upgrade .next-model{height:16.5cqw}.r11-upgrade .branch{padding:1.4cqw;gap:.55cqw}.r11-upgrade .branch small{min-height:4.4cqw;font-size:2.35cqw}.r11-upgrade .upgrade-caption{padding:1.4cqw .8cqw 1cqw}.r11-upgrade .minor{margin-top:1.65cqw}.r11-upgrade .minor button{padding:1.3cqw}.r11-upgrade .upgrade-hero h3{margin:.5cqw 0 1cqw}.r11-upgrade .branch .upgrade{padding:1.1cqw .5cqw}.r11-upgrade .stat-gain{min-height:3.4cqw}.r11-upgrade .branch-head strong{font-size:3.05cqw!important}#home .homelinks #homeInstall{order:5;grid-column:span 2}#home .homelinks #homeEndless{order:4}#home .homelinks:has(#homeInstall[hidden]) #homeEndless{order:0}
/* Keep targeting/sell in view even on a 320 × 568 phone. */
.details.r11-upgrade{max-height:99%;padding:1.8cqw;bottom:.8cqw}.r11-upgrade .current-model{height:15.5cqw}.r11-upgrade .next-model{height:15cqw}.r11-upgrade .branch small{min-height:3.6cqw}.r11-upgrade .minor{margin-top:1.4cqw}.r11-upgrade .upgrade-hero h3{font-size:4.8cqw}.r11-upgrade .upgrade-top .dismiss{width:6.5cqw;height:6.5cqw}.r11-upgrade .tier-pips i{width:4cqw;height:4cqw}.r11-upgrade .upgrade-caption{padding:1.2cqw .8cqw .9cqw}
