/* 0.20 · Soft Adventure. One rounded control system for every player view. */
:root{--soft-ink:#594966;--soft-muted:#88758f;--soft-lilac:#ab83d4;--soft-stroke:#d5bfdf;--soft-cream:#fff9eb;--soft-face:linear-gradient(#fffef7,#f4e8da);--soft-radius:18px;--hud-height:62px;--nav-height:80px;--ui-ink:#594966;--ui-muted:#88758f}
body.game-shell{background:radial-gradient(ellipse at top,#e9dfef,#c5bdd6);color:var(--soft-ink)}
#app .play-screen{color:var(--soft-ink);background:#e7ecdc}
/* A shared surface contract replaces every bitmap plaque and clipped button. */
#app :is(button,.button,input,select,textarea),.chronicle-confirm .button{border-image:none!important;clip-path:none!important;border-radius:var(--soft-radius,18px)!important}
#app :is(button,.button),.chronicle-confirm .button{background-image:var(--soft-face,linear-gradient(#fffef7,#f4e8da))!important;background-color:transparent;background-size:100% 100%;border:2px solid var(--soft-border,#d5bfdf);box-shadow:inset 0 2px #fff9,0 3px 0 var(--soft-shadow,#c4acd0);color:var(--soft-color,#654b75);text-shadow:none;transition:filter .12s,box-shadow .12s}
#app .button,.chronicle-confirm .button{min-height:46px;padding:10px 15px;gap:5px;font:400 17px/1.3 RoyalTitle,Chronicle,sans-serif}
#app .button.gold,.chronicle-confirm .button.gold{--soft-face:linear-gradient(#bb96e4,#9765c2);--soft-border:#e9dbf5;--soft-shadow:#7b4d9e;--soft-color:#fffaf1;text-shadow:0 1px #74518366}
#app .button.blue{--soft-face:linear-gradient(#e7faf3,#c7e4df);--soft-border:#f8fff9;--soft-shadow:#a2c4bb;--soft-color:#4b7b75}
#app button:disabled{opacity:.58;filter:saturate(.55);cursor:default}
#app button:active:not(:disabled){filter:brightness(.97);box-shadow:inset 0 2px 4px #947aa244,0 1px 0 #b99dc5}
#app :focus-visible,.chronicle-confirm :focus-visible{outline:3px solid #6ac6b0;outline-offset:2px}
#app input:not([type=range]),#app select,#app textarea{background:#fffdf6;color:#634f72;border:2px solid #dac8e1;box-shadow:inset 0 2px 3px #a27d9f13;min-height:42px;font-size:14px;--soft-radius:14px}
#app input[type=checkbox],#app input[type=range]{accent-color:#a37bca}
#app progress,#app .wave-track,#app .wave-track i{border-radius:999px;overflow:hidden;border:0}
#app progress::-webkit-progress-bar{background:#e5d4e8;border:0;border-radius:999px;box-shadow:inset 0 1px 2px #8f6f9a33}
#app progress::-webkit-progress-value{background:linear-gradient(#cba8ea,#9e78c6);border-radius:999px}
#app .royal-badge{filter:drop-shadow(0 2px 1px #78618429)}
/* Floating, pearl-colored HUD instead of a rigid full-width strip. */
#app .play-screen>.player-hud{height:var(--hud-height);min-height:var(--hud-height);padding:6px 8px;gap:5px;background:linear-gradient(#fff9e6d9,#fff8ed00);border:0;box-shadow:none;color:#645273}
#app .player-hud .player-avatar{--soft-radius:50%;--soft-face:radial-gradient(#f1e2ff,#bd9bd9);--soft-border:#fff5dc;--soft-shadow:#b898c7;width:43px;height:44px;flex-basis:43px;border-width:3px;overflow:hidden}
#app .player-hud .player-info{flex-basis:76px;width:76px;gap:0;padding:3px 4px 3px 0;background:none;line-height:1.2}
#app .player-hud .player-info>b{font:700 12px/1.35 Chronicle;color:#594369;text-shadow:0 1px #fff;max-width:100%}
#app .player-hud .player-info>span>b{color:#785f8c;font-size:10px}
#app .player-hud .player-info>em{color:#937247;font-size:10px}
#app .player-hud .world-wallet{gap:4px}
#app .player-hud .world-wallet>button{--soft-radius:13px;--soft-face:linear-gradient(#fffdf4f5,#f4e8ddf2);--soft-border:#f9f0df;--soft-shadow:#cdb5cc;--soft-color:#614d6f;height:30px;min-height:30px;padding:3px 4px 3px 20px;border-width:2px;box-shadow:inset 0 1px #fff,0 2px 0 #c9b0cb}
#app .player-hud .world-wallet>button>span{left:-7px;top:-1px;width:29px;height:29px}
#app .player-hud .world-wallet .royal-badge{width:29px;height:29px;filter:none}
#app .player-hud .world-wallet .wallet-short{color:#634c70;font-size:12px!important}
/* The bottom dock, emblems and their selection all have the same soft contour. */
#app .play-screen>.world-nav{height:calc(var(--nav-height) + var(--safe-bottom));min-height:calc(var(--nav-height) + var(--safe-bottom));padding:0 4px var(--safe-bottom);background:linear-gradient(#fffef5,#f0e4f3);border:0;border-top:3px solid #fffcf0;border-radius:25px 25px 0 0;box-shadow:0 -3px 9px #89709626}
#app .play-screen .world-nav button{--soft-face:none;--soft-radius:19px;--soft-color:#77617e;--soft-border:transparent;border:0;box-shadow:none;gap:3px;padding:2px 0 7px;margin:0;justify-content:flex-end;color:#77617e}
#app .play-screen .world-nav button.active{--soft-face:radial-gradient(ellipse at center,#d7c0edb3,transparent 76%);color:#7b4ba2}
#app .play-screen .world-nav button:before,#app .play-screen .world-nav button:after{display:none}
#app .world-nav .nav-glyph,#app .world-nav .royal-badge{width:48px;height:48px;margin:0;filter:drop-shadow(0 2px 1px #87738b30)}
#app .world-nav button.active .nav-glyph{transform:translateY(-4px) scale(1.1);filter:drop-shadow(0 2px 2px #b190c84d)}
#app .play-screen .world-nav button>span{font:400 13px/1.2 RoyalTitle,Chronicle;color:inherit;text-shadow:0 1px #fff;letter-spacing:0}
#app .world-nav .nav-dot{top:3px;right:calc(50% - 20px);border:2px solid #fff4df;background:#f39883;border-radius:50%;width:8px;height:8px}
/* A pill title and a round back control on every full-screen menu. */
#app .bottom-drawer.growth-popup{top:var(--hud-height);bottom:calc(var(--nav-height) + var(--safe-bottom));border:0;background-image:linear-gradient(#fff7e233,#faf1ed55),url('assets/royal/hall-scene.webp')}
#app .bottom-drawer.growth-popup>header{height:54px;min-height:54px;padding:7px 57px;background:none}
#app .bottom-drawer.growth-popup>header:before{display:block;inset:8px 54px 4px;background:linear-gradient(#bb98d9,#9d77bf);border:3px solid #fff8e7;border-radius:999px;box-shadow:inset 0 2px #d9bff1,0 3px 0 #a282b7}
#app .bottom-drawer.growth-popup>header h2{font:400 21px/1.2 RoyalTitle,Chronicle;color:#fffaf2;letter-spacing:0;text-shadow:0 1px #82629766;margin:1px 0 0}
#app .bottom-drawer.growth-popup>header>.icon-button{--soft-face:linear-gradient(#fffdf4,#f4e8df);--soft-radius:50%;--soft-border:#fff9e8;--soft-shadow:#c2a5c9;--soft-color:#9770ae;width:36px;height:36px;min-height:36px;left:9px;top:9px;border-width:2px;padding:8px}
#app .growth-popup .drawer-scroll{padding:8px 10px 20px}
#app .panel-lobby>header{display:none}
#app .panel-lobby .drawer-scroll{padding:0}
/* Soft landscape lobby, keeping the DeckToon original character art. */
#app .royal-lobby-heading{padding:15px 14px}
#app .royal-logo{color:#fff9dd;text-shadow:0 2px 3px #806d9470}
#app .royal-logo strong{font:700 21px Georgia,serif}
#app .royal-notice,#app .royal-side-menu button{--soft-face:none;--soft-radius:50%;border:0;box-shadow:none;color:#725d86;text-shadow:0 1px #fff}
#app .royal-notice .royal-badge{width:43px;height:43px}
#app .royal-side-menu{left:10px;top:106px;gap:9px}
#app .royal-side-menu .royal-badge{width:48px;height:48px}
#app .royal-side-menu button{gap:2px;font-size:12px}
#app .royal-lobby-event{clip-path:none;border:2px solid #fff1df;border-radius:21px;background:linear-gradient(#c7a8e4ed,#a582c2ed);color:#fff9ef;box-shadow:inset 0 2px #fff5,0 3px 0 #9976b36b;padding:7px 10px;top:76px}
#app .royal-lobby-event small{color:#fff0d9;font-size:8px}
#app .royal-lobby-name{background:linear-gradient(#fff9eee8,#eadef1e8);border:2px solid #fff5df;border-radius:22px;color:#7e5894;box-shadow:0 3px 0 #bea1ca77;text-shadow:none;padding:9px 15px}
#app .royal-lobby-name strong{font-size:23px}
#app .royal-destinations{bottom:41px;height:155px;gap:8px;align-items:flex-end;padding:0 12px}
#app .royal-diamond-action{--soft-face:linear-gradient(#fffdf0ef,#eadff5ed);--soft-radius:26px;--soft-border:#fff7df;--soft-shadow:#ba9bc8;--soft-color:#805b99;width:29%;height:105px;min-height:105px;padding:8px 1px 7px;gap:2px;border-width:3px;box-shadow:inset 0 3px #fff,0 5px 0 #baa0c8,0 7px 8px #71598926;color:#805b99;text-shadow:0 1px #fff}
#app .royal-diamond-action:before{display:none}
#app .royal-diamond-action .royal-badge{width:49px;height:49px;margin-top:-13px}
#app .royal-diamond-action strong{font-size:18px}
#app .royal-diamond-action span{color:#8b718b;font-size:9px;margin-top:0}
#app .royal-diamond-action.destination-start{--soft-face:linear-gradient(#b8e1d0f5,#95c6b4f5);--soft-border:#fff8df;--soft-shadow:#75a58f;--soft-color:#fffdf0;width:35%;height:131px;min-height:131px;align-self:flex-start;color:#fffdf0;text-shadow:0 1px #659b8e}
#app .destination-start .royal-badge{width:58px;height:58px;margin-top:-8px}
#app .destination-start strong{font-size:22px}
#app .destination-start span{color:#f7ffe9;font-size:10px}
#app .royal-lobby-status{height:30px;left:9px;right:9px;bottom:5px;border:2px solid #fff5dc;border-radius:999px;background:#fbf2e8df;color:#8d7092;box-shadow:0 2px 0 #bca2c633;padding-inline:9px;font-size:10px}
/* Hero chooser and all tabs are capsules, with no polygon crops. */
#app .growth-heroes{gap:6px;padding-inline:5px}
#app .growth-heroes button{--soft-face:linear-gradient(#fff7e7,#e2cfee);--soft-radius:17px;--soft-border:#fff4da;--soft-shadow:#baa0cd;border-width:2px;min-height:60px;max-height:60px;clip-path:none;box-shadow:inset 0 1px #fff,0 3px 0 #bfa4cf}
#app .growth-heroes button[aria-pressed=true]{--soft-border:#c4e5cc;--soft-shadow:#8dbc9b;box-shadow:0 0 0 2px #fff7dc,0 3px 0 #95b99b}
#app .growth-heroes button>b{font-size:12px;text-shadow:0 1px 2px #775283}
#app .royal-growth-tabs{gap:5px}
#app .growth-tabs.royal-growth-tabs button{--soft-face:linear-gradient(#fffcf3,#eddef2);--soft-radius:999px;--soft-border:#fff5e4;--soft-shadow:#c7b1cf;--soft-color:#8a6999;min-height:38px;padding:2px 3px;border-width:2px;font-size:14px;box-shadow:inset 0 1px #fff,0 2px 0 #c9b4d1}
#app .growth-tabs.royal-growth-tabs button[aria-pressed=true]{--soft-face:linear-gradient(#bd9fdf,#a37bc8);--soft-color:#fff7ed;--soft-border:#e9dbf3;color:#fff8ed}
#app .growth-extras{gap:4px;margin:3px 0 5px;padding:0}
#app .growth-extras button{--soft-face:none;--soft-radius:999px;border:0;box-shadow:none;color:#876996;padding:6px 0;font-size:11px}
/* Character data uses soft ribbons and round skill pebbles. */
#app .royal-nameplate{clip-path:none;border:2px solid #fff5e6;border-radius:24px 10px 24px 10px;background:linear-gradient(#fffdf2e6,#e8dcf2d9);box-shadow:inset 0 1px #fff,0 3px 0 #ccb3d042;color:#8a609a;padding:8px 13px}
#app .royal-nameplate h3{color:#88619c}
#app .royal-nameplate .equipment-stars{color:#9b783d}
#app .royal-xp{color:#6e5b76;margin:2px 1px 0}
#app .royal-stat-title{color:#70547e}
#app .royal-stat-title:before,#app .royal-stat-title:after{content:'•';color:#8f7a9a;font-size:17px}
#app .royal-stat-rows>div{min-height:27px;background:linear-gradient(#fffdf3f2,#f0e1f2ed);border:2px solid #fff8e9;border-radius:999px;padding:3px 11px;box-shadow:0 2px 0 #c8b0cf88;color:#896494}
#app .royal-stat-rows dt{font-size:11px;font-weight:500;color:#735b79}
#app .royal-stat-rows dd{font-size:13px;color:#7a548b}
#app .royal-stat-more{--soft-face:none;--soft-radius:999px;box-shadow:none;border:0;color:#9771a5;font-size:11px;min-height:26px}
#app .royal-appearance{--soft-face:linear-gradient(#fffdf1,#e9dcf1);--soft-radius:999px;--soft-border:#fff4dd;--soft-shadow:#c7acd3;--soft-color:#70547e;border-width:2px;color:#9168a7}
#app .royal-skill-previews{gap:7px;padding-block:2px}
#app .royal-skill-previews>button{--soft-face:none;--soft-radius:50%;border:0;box-shadow:none;min-height:53px}
#app .royal-skill-previews>button>span{width:43px;height:43px;transform:none;border-radius:50%;border:3px solid #fff1ce;background:#a883c6;box-shadow:0 2px 0 #bca3cd;overflow:hidden}
#app .royal-skill-previews :is(.kit-skill-icon,.painted-icon,.skill-art){width:100%!important;height:100%!important;max-width:100%;object-fit:cover;transform:none;border-radius:50%;padding:0;border:0}
#app .royal-skill-previews small{font-size:9px;line-height:1.4;color:#70567d;background:#fff9e4;border-radius:999px;padding:0 4px}
#app .royal-grow-actions{gap:5px}
#app .royal-grow-actions>.button.gold{min-height:48px;padding:9px 10px;--soft-radius:999px;gap:5px}
#app .royal-grow-actions>.button.gold>span{font-size:18px}
#app .royal-grow-actions>.button:not(.gold){min-height:38px;--soft-radius:999px;font-size:16px}
#app .royal-grow-actions>small{font-size:9px;color:#76607d}
/* Rounded collectible cards replace the gold, angular scroll border completely. */
#app .royal-squad .squad-tabs{gap:6px;margin:0 0 11px}
#app .royal-squad .squad-tabs button{--soft-face:linear-gradient(#fffdf3,#eee0f3);--soft-radius:999px;--soft-border:#fff4df;--soft-shadow:#c1a7cc;--soft-color:#6e537b;border-width:2px;min-height:38px;font-size:16px;padding:6px 3px}
#app .royal-squad .squad-tabs button[aria-pressed=true]{--soft-face:linear-gradient(#c2a3e2,#a982cb);--soft-color:#fff9ef;color:#fff8ec}
#app .royal-squad .roster-heading h3{color:#6c537b;font-size:20px}
#app .royal-squad .squad-count{color:#765f82}
#app .royal-squad .squad-filters{border:2px solid #fff6e3;border-radius:19px;background:#fff8e9df;padding:0 12px;box-shadow:0 2px 0 #d0b7d8;color:#776380}
#app .royal-squad .squad-filters summary{border-radius:18px;color:#70587d}
#app .royal-squad .squad-roster{gap:14px 9px;padding:0 1px}
#app .royal-roster-card.squad-roster-card{aspect-ratio:.61;overflow:hidden;border:3px solid #fff1d7;border-radius:21px;background:radial-gradient(ellipse at 50% 25%,#fff6d8,#d6bce6 78%);box-shadow:inset 0 0 0 2px #c4a1d8,0 4px 0 #b99ac9,0 7px 6px #8e739627}
#app .royal-roster-card.deployed{border-color:#e4f5db;box-shadow:inset 0 0 0 2px #adcfba,0 4px 0 #97b5a0,0 7px 6px #74977c27}
#app .royal-roster-card:before{display:none}
#app .royal-roster-card .squad-avatar{--soft-face:none;--soft-radius:18px;background:none;border:0;box-shadow:none;overflow:hidden}
#app .royal-roster-card .squad-avatar>.character-art{inset:0 -14% auto;width:128%;height:98%;object-position:center;filter:drop-shadow(0 3px 2px #9c7fa74d)}
#app .royal-roster-card .squad-roster-copy{inset:auto 0 0;width:100%;height:69px;padding:16px 8px 7px;background:linear-gradient(transparent,#8f6da9df 36%,#8b67a6ed);border-radius:0 0 17px 17px;box-shadow:none;text-align:left}
#app .royal-roster-card .squad-roster-copy .roster-job{font:700 10px/1.3 Chronicle;color:#fff9ed}
#app .royal-roster-card .squad-roster-copy h4{font:400 20px/1.25 RoyalTitle,Chronicle;color:#fff9eb;text-shadow:0 1px #8d659a}
#app .royal-roster-card .squad-roster-copy>span.roster-stars{font-size:10px;color:#baa678;text-align:left;margin-top:2px}
#app .royal-roster-card .roster-element{top:6px;left:5px}
#app .royal-roster-card .element-badge{width:23px;height:23px;border:2px solid #fff7dd;border-radius:50%;box-shadow:0 2px 0 #9d80b542}
#app .roster-deployed{border:0;border-radius:999px;background:#fffae9eb;color:#7e6581;padding:2px 4px;font-size:8px;right:5px;top:7px}
#app .royal-roster-card .squad-roster-action{bottom:0;min-height:29px;background:none;padding:0 4px 4px}
#app .royal-roster-card .squad-small-button{--soft-radius:999px;font-size:13px;min-height:27px;height:27px;padding:3px;border-width:1px}
#app .royal-roster-card .squad-fixed{border:1px solid #e5d3b0;border-radius:999px;background:#fff5d6;color:#79633c;height:26px;min-height:26px;padding:4px 0;font:400 13px RoyalTitle}
#app .royal-squad.tab-formation .squad-roster{row-gap:15px;margin-bottom:10px}
#app .royal-squad.tab-formation .squad-roster-copy{bottom:28px}
#app .royal-squad .squad-collection-link,#app .royal-squad .squad-growth-link,#app .store-link{--soft-face:linear-gradient(#fffdf0eF,#f0e1f3eF);--soft-radius:20px;--soft-border:#fff6e6;--soft-shadow:#ceb8d7;--soft-color:#765b7e;min-height:46px;padding:10px 13px;border-width:2px;color:#71567b;font-size:12px;margin-top:12px;box-shadow:inset 0 1px #fff,0 3px 0 #cab1d1}
#app .store-link b{color:#7d6385;font-size:11px}
/* Forge: no square sockets or pointed stat strips. */
#app .royal-equipment-slots{gap:8px}
#app .royal-equipment-slots .paper-slot{--soft-face:linear-gradient(#fff9ecef,#e3cfe9ef);--soft-radius:17px;--soft-border:#fff4da;--soft-shadow:#bca0c9;border-width:3px;box-shadow:inset 0 0 0 1px #c5a8d8,0 3px 0 #bda3c9}
#app .royal-equipment-slots .paper-slot>small{color:#765b80;font-size:9px}
#app .royal-equipment-slots .enhance-badge{border:0;border-radius:999px;background:#aa80c9;color:#fff7ec;font-size:10px;padding:1px 4px;right:1px;top:1px}
#app .royal-equipment-slots .equipment-stars{color:#937543;left:4px;top:3px;font-size:7px}
#app .royal-forge-character>div,#app .royal-forge-power{border:2px solid #fff4dc;border-radius:999px;background:linear-gradient(#fffaf2eF,#e6d6eeeF);box-shadow:0 2px 0 #baa0c933;color:#785f82;text-shadow:none}
#app .royal-forge-character>div b{color:#70557c}
#app .royal-forge-actions .button{min-height:57px;--soft-radius:999px;font-size:24px;padding:10px 16px}
#app .royal-forge-actions small{color:#fff5e4}
#app .enhancement-stones{border:2px solid #fff8e8;border-radius:21px;background:#fff8ebe3;padding:7px;box-shadow:0 2px 0 #c8afd2}
#app .enhancement-stones>div{background:none;color:#806b89}
#app .enhancement-stones b{color:#765983}
#app .royal-bag{border:2px solid #fff4de;border-radius:20px;background:#fff8eee8;padding:0 10px;box-shadow:0 3px 0 #c7afd2;overflow:hidden}
#app .royal-bag>summary{border-radius:18px;color:#765983;min-height:43px;padding:10px 0;font-size:18px}
#app .royal-bag>summary small{font-size:10px;color:#847089}
#app .gear-tile{--soft-radius:17px;--soft-face:linear-gradient(#fffcf0,#ecd9f1);--soft-border:#fff3da;--soft-shadow:#bea1cb;border-width:2px}
#app .gear-tile>strong{font-size:11px;color:#775b84}
#app .gear-tile>span{font-size:9px;color:#837089}
#app .gear-filters button{--soft-radius:999px;min-height:31px;padding:5px 7px;font-size:11px;border-width:1px;box-shadow:0 2px 0 #d1bbdc}
/* Recruitment tabs, portals and links all use the same rounded family. */
#app .currency-tabs{gap:6px;margin-bottom:7px}
#app .currency-tabs button{--soft-radius:999px;--soft-face:linear-gradient(#fffdf4eF,#eddef1eF);--soft-border:#fff8e9;--soft-shadow:#cdb1d7;--soft-color:#765980;min-height:35px;border-width:2px;box-shadow:0 2px 0 #c4a7d0}
#app .currency-tabs button[aria-pressed=true]{--soft-face:linear-gradient(#c8abe5,#ad86ce);--soft-color:#fff9ec;color:#fff9ec}
#app .shop-categories{gap:5px;padding:0 1px}
#app .shop-categories button{--soft-radius:999px;--soft-face:linear-gradient(#fffdf3ed,#eaddf1ed);--soft-border:#fff5e2;--soft-shadow:#cbb2d5;--soft-color:#765c80;min-height:35px;border-width:2px;padding:6px 3px;font:400 13px RoyalTitle,Chronicle;box-shadow:0 2px 0 #ccb2d7}
#app .shop-categories button[aria-pressed=true]{--soft-face:linear-gradient(#bcdccd,#a3c8bb);--soft-border:#edf8df;--soft-color:#fffdf3;color:#fffdf3}
#app .recruit-title{left:25px;right:25px;top:15px;padding:12px 8px;border:3px solid #fff6dd;border-radius:999px;background:linear-gradient(#cbaee8ef,#ae88cdeF);box-shadow:inset 0 2px #e4cdf8,0 4px 0 #a186b8;transform:none}
#app .recruit-title small{display:none}
#app .recruit-title h3{margin:0;font-size:22px;color:#fff9ef;text-shadow:0 1px #9064a6}
#app .recruit-bottom{background:linear-gradient(transparent,#fff8e8aa 35%);padding-bottom:9px}
#app .recruit-bottom>div:first-child small{color:#785c81;font-size:11px;text-shadow:0 1px #fff}
#app .recruit-actions{gap:9px;padding:3px 4px 0}
#app .recruit-actions .button{--soft-radius:22px;min-height:59px;font-size:23px;gap:1px;padding:8px 10px;box-shadow:inset 0 2px #fff7,0 4px 0 #c1a3ce}
#app .recruit-actions .button.gold{box-shadow:inset 0 2px #e3c7f4,0 4px 0 #8f67ad}
#app .recruit-actions .button b{font-size:12px}
#app .chest-odds{border:2px solid #fff6df;border-radius:20px;background:#fffaefed;padding:0 12px;color:#806c89;box-shadow:0 2px 0 #d1b8dc}
#app .chest-odds summary{border-radius:19px;color:#7b5f85;padding:11px 0;line-height:1.4;font-size:12px}
#app .product-card{--soft-face:linear-gradient(#fff8e9ef,#e7d6f0ef);--soft-radius:24px;--soft-border:#fff1d4;--soft-shadow:#bba0c9;border-width:3px;padding:14px 10px}
#app .product-card h4{font-size:18px;color:#755a81}
#app .product-price{border-color:#d8c1e1;border-radius:15px;background:#fff8ec7d;color:#795f84}
#app .product-ribbon{border:0;border-radius:999px;background:#b9d8c4;color:#fff9e7;padding:4px 8px}
#app .summon-banner{--soft-radius:26px;--soft-face:linear-gradient(110deg,#fff8edf2,#dcc5edf2);--soft-border:#fff4dd;--soft-shadow:#c7afd2;border-width:3px;color:#7a5d86;overflow:hidden}
/* The native confirmation and every sub-modal share rounded paper and buttons. */
#app .rpg-dialog,.chronicle-confirm{border-image:none;border:3px solid #fff0cf;border-radius:27px;background:linear-gradient(#fffdf2,#f6ebef);box-shadow:inset 0 0 0 2px #d7bddf,0 5px 0 #b9a0c5,0 18px 40px #674c7d33;color:#8f6c9d;overflow:auto}
#app .rpg-dialog:before,#app .rpg-dialog:after,.chronicle-confirm:before,.chronicle-confirm:after{display:none}
#app .rpg-dialog header,.chronicle-confirm .royal-confirm-title{margin:0;padding:18px 17px 15px;background:linear-gradient(#c7a7e2,#ad86c9);border:0;border-bottom:3px solid #eee0f4;border-radius:22px 22px 19px 19px;color:#fff9ef;box-shadow:inset 0 2px #e7d0f3}
#app .rpg-dialog header h3,.chronicle-confirm h2{font:400 23px/1.3 RoyalTitle,Chronicle;color:#fff9ed;text-shadow:0 1px #9676a566;margin:1px 0}
#app .rpg-dialog header small{color:#f4e2f5;letter-spacing:1px;font-size:9px}
#app .rpg-dialog header .icon-button{--soft-radius:50%;--soft-face:linear-gradient(#fff6e9,#edddf1);--soft-border:#fff7e4;--soft-shadow:#9a78b2;--soft-color:#755d83;border-width:2px;width:30px;height:30px;padding:5px;box-shadow:0 2px 0 #9b7aaf}
.chronicle-confirm{max-width:382px;padding:0;width:calc(100% - 32px)}
.chronicle-confirm::backdrop{background:#6c5a7d85;backdrop-filter:blur(3px)}
.chronicle-confirm form{padding:0 20px 24px}
.chronicle-confirm .royal-confirm-title{margin:0 -20px;min-height:70px;display:flex;align-items:center;justify-content:center}
.chronicle-confirm .royal-confirm-title:before{display:none}
.chronicle-confirm p{font:500 14px/1.8 Chronicle;color:#705c78;margin:27px 0 24px;word-break:keep-all;overflow-wrap:break-word;white-space:pre-line;text-align:center}
.chronicle-confirm form>div{gap:11px}
.chronicle-confirm .button{flex:1;--soft-radius:999px;--soft-face:linear-gradient(#fffdf0,#eadcf1);--soft-border:#fff4df;--soft-shadow:#c7afcf;--soft-color:#72567f;font:400 21px/1.3 RoyalTitle,Chronicle;min-height:46px;padding:9px 12px}
.chronicle-confirm .button.gold{--soft-face:linear-gradient(#b9dacb,#9bc5b2);--soft-border:#f1ffdf;--soft-shadow:#83aa97;--soft-color:#fffdf2;color:#fffdf2;box-shadow:inset 0 2px #deefdf,0 3px 0 #86ad98;text-shadow:0 1px #78a58d}
#app .market-order{padding:15px;background:none;border:0}
#app .market-product h3{font-size:19px;color:#785983}
#app .market-product p{font-size:11px;color:#83708a}
#app .market-total{border:0;border-radius:19px;background:#ead9f13d;padding:10px;color:#827089}
#app .market-total strong{color:#765984;font-size:22px}
#app .batch-help,#app .batch-status{color:#816d88;font-size:12px;line-height:1.6}
#app .batch-presets button{--soft-radius:999px;min-height:34px;border-width:2px;font-size:12px;--soft-shadow:#d5c0dd}
#app .bulk-quantity{border:2px solid #e1cfe7;border-radius:22px;background:#fff9ee;overflow:hidden}
#app .bulk-quantity>button{--soft-radius:50%;--soft-face:linear-gradient(#e9d8f5,#d2b5e6);--soft-color:#755b80;border:0;box-shadow:0 2px 0 #c2a3d1}
#app .gear-detail>header{margin:0 -13px 13px}
#app .gear-detail{color:#7d6486}
#app .gear-detail>header h3{font-size:21px}
#app .gear-deltas>div{border:0;border-radius:15px;background:#efe0f23d;margin:4px 0;color:#7e6586;padding:8px}
#app .gear-deltas dd{color:#785d85}
#app .enhance-cost{border:2px solid #f9efd9;border-radius:22px;background:#fff8e8;color:#7e6584}
/* A compact capsule stage HUD keeps the arena open. */
#app .play-screen .smooth-arena .stage-hud{top:calc(var(--hud-height) + 7px);left:9px;right:49px;width:auto;padding:8px 12px 7px;background:linear-gradient(#fffdf1ed,#f3e9efeb);border:3px solid #fff7dd;border-radius:22px;box-shadow:inset 0 1px #fff,0 3px 0 #bca6c675;color:#765a7e}
#app .smooth-arena .stage-hud>small{display:none}
#app .smooth-arena .stage-hud>span{font:400 17px/1.25 RoyalTitle,Chronicle;color:#71567c;text-shadow:0 1px #fff;margin:0 0 4px}
#app .smooth-arena #wave-hud{font-size:11px;color:#7f6686}
#app .smooth-arena .stage-hud .wave-track{height:5px;background:#decbe4;box-shadow:inset 0 1px 1px #ac8fba44;border-radius:999px;overflow:hidden;margin:0 0 3px;border:0}
#app .smooth-arena .stage-hud .wave-track i{background:linear-gradient(#c9e7b5,#a2c78e);border-radius:999px;box-shadow:0 1px #fff7}
#app #wave-hud>b{display:flex;justify-content:space-between;align-items:center;font:500 10px/1.25 Chronicle;color:#836e89;gap:5px}
#app #wave-hud em{padding:1px 6px;border:0;border-radius:999px;background:#e5d6ee;color:#816b8b;font:500 9px Chronicle;white-space:nowrap}
#app .smooth-arena .stage-hud .boss-strip{border:0;border-radius:16px;background:#f7e3eb;padding:7px;margin-top:5px;color:#836674;font:700 10px Chronicle;box-shadow:inset 0 1px #fff}
#app .boss-strip progress::-webkit-progress-value{background:linear-gradient(#edbbb7,#dca0af)}
#app .play-tools{top:calc(var(--hud-height) + 7px);right:8px;gap:5px}
#app .play-tools .button{--soft-radius:50%;--soft-face:linear-gradient(#fffcf0ed,#ecdef1eF);--soft-border:#fff5dc;--soft-shadow:#bfa6cc;--soft-color:#785d83;width:34px;height:34px;min-height:34px;padding:0;border-width:2px;box-shadow:inset 0 1px #fff,0 2px 0 #bda4c7;font:700 11px Chronicle}
#app .play-tools .royal-badge{width:32px;height:32px;filter:none}
#app .play-tools .speed-button{font-size:12px}
/* Rounded party capsules and circular skills replace the rectangular battle slab. */
#app .play-screen>.control-deck{bottom:calc(var(--nav-height) + var(--safe-bottom));padding:6px 9px 5px;background:linear-gradient(#fff8eb00,#fff8ebe0 23%,#f5e9f3ef);border:0;border-radius:24px 24px 0 0;box-shadow:none}
#app .control-deck .quest-ribbon{--soft-face:linear-gradient(#fff9ebe8,#eaddf0e8);--soft-radius:18px;--soft-border:#fff4dd;--soft-color:#826b89;min-height:33px;padding:5px 8px;border-width:2px;box-shadow:0 2px 0 #c8b0d366;margin-bottom:7px}
#app .control-deck .quest-ribbon :is(b,small,em){color:#806b8a;font-size:10px}
#app .control-deck .formation-dock{height:43px;margin-bottom:8px;gap:6px}
#app .control-deck .formation-dock .companion-dock{gap:6px}
#app .control-deck .formation-dock :is(.leader-card,.companion-slot){--soft-face:linear-gradient(#fffaf0ed,#eadff2eF);--soft-radius:17px;--soft-border:#fffae7;--soft-shadow:#bfa4ca;--soft-color:#765b81;height:43px;min-height:43px;padding:4px 4px 3px 33px;border-width:2px;box-shadow:inset 0 1px #fff,0 2px 0 #c9afd0;overflow:hidden}
#app .control-deck .formation-dock :is(.leader-card,.companion-slot).selected{--soft-border:#f0fddc;box-shadow:inset 0 0 0 1px #abc9a2,0 2px 0 #9cb68f}
#app .control-deck .formation-dock .character-art{top:-3px;left:-5px;width:47px;height:64px}
#app .control-deck .formation-dock b{font:400 13px/1.15 RoyalTitle,Chronicle;color:#765a83;text-align:left;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
#app .control-deck .formation-dock small{color:#86708c;font-size:8px;line-height:1.2;margin-top:1px}
#app .control-deck .formation-dock i{height:4px;margin-top:3px;border:0;border-radius:999px;background:#dbe6d2;overflow:hidden}
#app .control-deck .formation-dock i>em{background:linear-gradient(#cce7b5,#a5c88b);border-radius:999px}
#app .control-deck .formation-dock .companion-slot.empty{--soft-face:linear-gradient(#f5ede7d9,#e8ddecdf);--soft-border:#fff5df;opacity:1;padding:3px;text-align:center}
#app .control-deck .formation-dock .companion-slot.empty>span{height:18px;line-height:18px;color:#89768f}
#app .control-deck .formation-dock .companion-slot.empty small{color:#897790;font-size:9px;text-align:center}
#app .skill-rack{height:80px;min-height:80px;gap:8px;padding:1px 3px 0}
#app .skill-rack .core-skill{--soft-face:none;--soft-radius:20px;--soft-color:#785e87;border:0;box-shadow:none;height:77px;min-height:77px;gap:5px;padding:1px 0 0;opacity:1}
#app .skill-rack .core-skill .skill-frame{width:45px;height:45px;flex:0 0 45px;border:3px solid #fff0cd;border-radius:50%;transform:none;background:radial-gradient(#c4a0e2,#9a72b8);box-shadow:inset 0 1px #f1ddfd,0 3px 0 #baa0cd;overflow:hidden}
#app .skill-rack .core-skill .skill-frame>:is(.kit-skill-icon,.painted-icon,.skill-art){inset:0;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:cover;transform:none;border:0;padding:0;border-radius:50%}
#app .skill-rack .core-skill .skill-frame>.ico{inset:9px;width:22px;height:22px;transform:none;color:#b3aa9a}
#app .skill-rack .core-skill .skill-shade{border-radius:50%;background:#8d71a65c;transform-origin:bottom}
#app .skill-rack .core-skill.ready .skill-frame{border-color:#e8ffd5;box-shadow:0 0 0 1px #b5d8a3,0 3px 0 #a6bc94}
#app .skill-rack .core-skill .skill-label b{color:#745a83;font:400 12px/1.2 RoyalTitle,Chronicle;text-shadow:0 1px #fff}
#app .skill-rack .core-skill .skill-label small{color:#86728e;font:500 9px/1.2 Chronicle}
#app .skill-rack .core-skill.locked,#app .skill-rack .core-skill.paused-ultimate{opacity:.7}
#app .arena-bottom{bottom:calc(var(--nav-height) + 146px + var(--safe-bottom));left:10px;right:10px}
#app .arena-bottom .battle-state{font:500 10px/1.3 Chronicle;max-width:72%;padding:5px 10px;border:2px solid #fff9e1;border-radius:999px;background:#fff8e9c9;color:#836e88;text-shadow:none}
#app .arena-bottom .auto-button{--soft-radius:999px;--soft-face:linear-gradient(#b9dc9a,#9dc887);--soft-border:#f3ffda;--soft-shadow:#87af76;--soft-color:#fffdeb;min-height:33px;height:33px;padding:3px 9px;font:700 11px Chronicle;box-shadow:inset 0 1px #d9efbf,0 2px 0 #91b47c}
#app .arena-bottom .auto-button small{font-size:8px;color:#f4ffdb}
/* All secondary panels: the same soft stroke, rather than old straight boxes. */
#app :is(.stat-workshop,.growth-skill.skill-detail-panel,.detail-stats,.bulk-card-workshop,.merge-preview,.training-cards>article,.squad-current,.squad-positions,.squad-replacement,.service-notice,.settings-list,.auto-sell-panel,.chest-card,.inventory-card,.quest-list>article,.more-grid>button,.reserved-assets,.pvp-preview,.coming-product,.daily-card,.daily-active,.region-chapter,.fusion-banner,.training-banner,.growth-recent,.style-card,.atelier-socket,.loot-card,.guide-card,.bonus-row,.innate-skills article,.quantity-tabs,.gear-detail .enhance-cost){border-image:none;border:2px solid #fff3dc;border-radius:22px;background:linear-gradient(#fffaf0ef,#efdfedeb);box-shadow:inset 0 1px #fff,0 3px 0 #cdb7d7;color:#796083;overflow:hidden}
#app :is(.collection-heading h3,.progression-heading h3,.growth-skill h3,.training-cards h3,.squad-heading h3,.quest-list h3,.chest-card h3,.inventory-card h3,.service-notice h3,.more-grid b,.daily-intro h3,.daily-card h3){color:#7a6084;font-family:RoyalTitle,Chronicle;font-weight:400}
#app :is(.star-tabs,.card-elements,.quantity-tabs,.gear-filters,.squad-position-picker,.style-filters){gap:5px;background:none;border:0}
#app :is(.star-tabs,.card-elements,.quantity-tabs,.squad-position-picker,.style-filters) button{--soft-radius:999px;min-height:34px;font-size:12px;border-width:2px;padding:6px 9px;box-shadow:inset 0 1px #fff,0 2px 0 #ceb4d8}
#app :is(.star-tabs,.card-elements,.quantity-tabs,.gear-filters,.squad-position-picker) button[aria-pressed=true]{--soft-face:linear-gradient(#c5a8e2,#ab85c9);--soft-color:#fff8ed;--soft-border:#e9dcf3;color:#fff8ed}
#app .stats-profile,#app .skill-owner{border:3px solid #fff2d9;border-radius:25px;background:linear-gradient(110deg,#b795d6de,#cebae6de);color:#fff7ed;box-shadow:inset 0 1px #f5e9ff,0 3px 0 #b29cc1}
#app .stats-profile h3,#app .skill-owner h3{color:#fff9ef;font-size:20px}
#app .stats-profile :is(small,span),#app .skill-owner :is(small,span){color:#f5eaf6;font-size:11px}
#app .skill-node{--soft-face:none;--soft-radius:20px;border:0;box-shadow:none}
#app .skill-node>span{width:51px;height:51px;border:3px solid #fff0d0;border-radius:50%;transform:none;background:#b48dcf;box-shadow:inset 0 1px #e9d7f7,0 3px 0 #baa0cc;overflow:hidden}
#app .skill-node>span>:is(.kit-skill-icon,.painted-icon,.skill-art){width:100%;height:100%;max-width:100%;max-height:100%;object-fit:cover;transform:none;padding:0;border:0;border-radius:50%}
#app .skill-node>span>.ico{transform:none;color:#b5aa96;margin:11px;width:22px;height:22px}
#app .skill-node b,#app .skill-node small{color:#7b5f86}
#app .skill-node b{font-family:RoyalTitle,Chronicle;font-size:14px!important}
#app .skill-node small{font-size:10px!important}
#app .skill-copy>small,#app .skill-values,#app .rpg-skill-description,#app .growth-note,#app .progression-hint{color:#816e8a;font-size:12px}
#app .growth-card-art{border:3px solid #fff2d4;border-radius:20px;background:radial-gradient(#fff9e8,#e2c9ed);box-shadow:inset 0 0 0 1px #d0b5df,0 3px 0 #bea2ce;overflow:hidden}
#app .growth-card-art>small{border-radius:999px;background:#ae8ac9;color:#fff7ed}
#app .merge-card-grid button,#app .fusion-options button{--soft-radius:22px;padding:6px;border-width:2px;overflow:hidden}
#app .fusion-slots button,#app .fusion-slots>span{border:2px solid #fff5de;border-radius:20px;background:#eadbf2;box-shadow:0 3px 0 #c8afd5}
#app .detail-stats summary,#app .reserved-assets summary,#app .region-chapter summary{border-radius:20px}
#app .world-list>button{--soft-radius:19px;--soft-face:linear-gradient(#fffdf2,#ecdef2);border-width:2px;min-height:56px;margin-top:7px;color:#7b5f84}
#app .world-list>button.current{--soft-border:#dcefd1;--soft-face:linear-gradient(#eef9e4,#d7e9d3);color:#6a8160}
#app .world-pins button{--soft-radius:50%;--soft-face:linear-gradient(#fff4d3,#e7cba1);--soft-border:#fff7df;--soft-shadow:#c6a67f;--soft-color:#7b6547;border-width:3px}
#app .world-pins button>span{border:2px solid #fff5dd;border-radius:999px;background:#faf1e3e6;color:#775e7e;box-shadow:0 2px 0 #c8b1d3;padding:4px 8px}
#app .world-atlas{border-radius:28px;overflow:hidden;box-shadow:0 4px 0 #cbb3d9;border:3px solid #fff0d6}
#app .daily-card{padding:13px}
#app .daily-card:before,#app .daily-card:after{border-radius:22px}
#app .daily-card button,#app .daily-active button{--soft-radius:999px}
#app .daily-card .daily-scene{border-radius:17px;overflow:hidden}
#app .settings-list>div{border-color:#dfcde7}
#app .settings-list :is(b,span){color:#7c6085}
#app .more-grid>button{--soft-face:linear-gradient(#fff9eaeF,#edddf0eF);--soft-radius:25px;--soft-border:#fff3da;--soft-shadow:#c6acd3}
#app .store-link .ico,#app .squad-growth-link .ico{color:#836b8d}
#app .loot-overlay .loot-panel{border:3px solid #fff1cf;border-radius:27px;background:linear-gradient(#fffaf0,#e9d7ed);color:#765d82;box-shadow:0 5px 0 #bc9ecb;overflow:auto}
#app .loot-overlay .loot-panel:before,#app .loot-overlay .loot-panel:after{display:none}
#app .guide-card :is(h2,h3){color:#775b83}
/* Entry forms and account choices keep the same rounded skin. */
#app :is(.auth-box,.flow-body,.hero-description){border:3px solid #fff0d5;border-radius:27px;background:linear-gradient(#fff9eeed,#ead9edeF);box-shadow:inset 0 1px #fff,0 4px 0 #c8add3;color:#755d7e}
#app .auth-box label,#app .name-field{color:#765d82}
#app .auth-box .auth-tabs .button{--soft-radius:999px;--soft-face:linear-gradient(#fffcf0,#e8d9ef);--soft-border:#fff5de;--soft-shadow:#c6acd1;--soft-color:#765b80;border-width:2px;color:#755d7f}
#app .auth-box .auth-tabs .button.active{--soft-face:linear-gradient(#c3a3e1,#aa81cb);--soft-color:#fff8eb;color:#fff8eb}
#app .realm-card{--soft-radius:23px;--soft-face:linear-gradient(#fffaf0,#e9d8ef);--soft-border:#fff2d8;--soft-shadow:#c5a9d1;--soft-color:#795e83;border-width:3px}
#app .realm-card b{color:#785b86}
#app .realm-card :is(small,em){color:#83718c}
#app .character-select>button{--soft-radius:20px;--soft-face:linear-gradient(#fff8e9,#dfc8ed);--soft-border:#fff0d4;--soft-shadow:#baa0ca;color:#73587f}
#app .character-select>button[aria-pressed=true]{--soft-border:#edfbd9;box-shadow:0 0 0 2px #b5d3a4,0 3px 0 #91b082}
#app .character-heading h2,#app .character-title h3{color:#765a85}
#toast{border:2px solid #fff3da;border-radius:20px;background:#fff7ebed;color:#785b83;box-shadow:0 4px 12px #a48aac3b;font-family:Chronicle,system-ui,sans-serif}
/* Short phones use a compact composition, while secondary forms scroll. */
@media(max-height:700px){
 #app .royal-lobby-event{top:51px;padding:5px 9px}
 #app .royal-side-menu{top:76px;gap:7px}
 #app .royal-side-menu .royal-badge{width:35px;height:35px}
 #app .royal-lobby-name{padding:8px 12px;top:39%}
 #app .royal-destinations{height:139px;bottom:29px;gap:7px;padding-inline:10px}
 #app .royal-diamond-action{height:93px;min-height:93px;padding:5px 1px}
 #app .royal-diamond-action.destination-start{height:117px;min-height:117px}
 #app .royal-diamond-action .royal-badge{width:44px;height:44px;margin-top:-10px}
 #app .destination-start .royal-badge{width:49px;height:49px}
 #app .royal-diamond-action strong{font-size:17px}
 #app .destination-start strong{font-size:20px}
 #app .royal-lobby-status{height:23px;bottom:2px;font-size:8px;padding-inline:7px}
 #app .arena-bottom .battle-state{display:none}
}
@container(max-width:350px){
 #app .player-hud .player-avatar{flex-basis:36px;width:36px;height:39px}
 #app .player-hud .player-info{flex-basis:57px;width:57px}
 #app .player-hud .player-info>b{font-size:11px}
 #app .player-hud .world-wallet>button{padding-left:15px;padding-right:3px}
 #app .player-hud .world-wallet>button>span,#app .player-hud .world-wallet .royal-badge{width:25px;height:25px;top:1px}
 #app .player-hud .world-wallet .wallet-short{font-size:11px!important}
 #app .world-nav .nav-glyph,#app .world-nav .royal-badge{width:42px;height:42px}
 #app .play-screen .world-nav button>span{font-size:12px}
 #app .royal-diamond-action span{font-size:8px}
 #app .royal-skill-previews>button>span{width:35px;height:35px}
 #app .royal-roster-card .squad-roster-copy h4{font-size:18px}
 #app .roster-deployed{font-size:8px;padding:2px 3px;right:3px}
 #app .royal-roster-card .squad-roster-copy{padding-inline:6px}
 #app .royal-stat-rows>div{padding-inline:9px}
 #app .royal-stat-rows dt{font-size:10px}
 #app .royal-stat-rows dd{font-size:12px}
 #app .royal-grow-actions>.button.gold>span{font-size:16px}
 #app .royal-grow-actions>.button.gold>small{font-size:9px}
 #app .royal-forge-actions .button{font-size:23px}
 #app .recruit-title{left:17px;right:17px;padding:11px 6px}
 #app .recruit-title h3{font-size:19px}
 #app .recruit-actions .button{font-size:21px}
 #app .skill-rack .core-skill .skill-label b{font-size:12px}
 #app .skill-rack .core-skill .skill-label small{font-size:8px}
}
@media(prefers-reduced-motion:reduce){#app :is(button,.button){transition:none}}

/* Readable ink and explicit soft surfaces for the nested legacy templates. */
#app .bottom-drawer.growth-popup>header>.icon-button{color:#956caf}
#app .bottom-drawer.growth-popup>header>.icon-button>.ico{color:#956caf;opacity:1;stroke:currentColor}
#app .play-tools .button{color:#9168a5}
#app .play-tools .speed-button{color:#9168a5}
#app .royal-diamond-action.destination-start{color:#4d7c68;--soft-color:#4d7c68;text-shadow:0 1px #e7f5db}
#app .destination-start span{color:#5b8b75}
#app .shop-categories button[aria-pressed=true]{color:#4e7b68;--soft-color:#4e7b68}
.chronicle-confirm .button.gold{color:#557e68;--soft-color:#557e68;text-shadow:0 1px #e6f3dc}
#app .royal-character.character-dossier{height:auto;min-height:518px;overflow:visible}
#app .royal-character .royal-character-data{height:auto;min-height:518px;padding-bottom:13px}
#app .recruit-details .chest-odds{border:2px solid #fff4df;border-radius:20px!important;background:#fff9eeee;box-shadow:0 3px 0 #d3bedb;padding:0 12px}
#app .recruit-details .chest-odds summary{color:#7d608b;padding-block:12px}
#app .play-screen .smooth-arena .stage-hud{color:#775484}
#app .play-screen .smooth-arena .stage-hud>span{color:#79558c}
#app .play-screen .smooth-arena #wave-hud>b{color:#886b95}
#app .play-screen .smooth-arena #wave-hud em{color:#856992}
#app .recruit-title{background:linear-gradient(#b28bd1f2,#9a70bbed)}
#app .bottom-drawer.growth-popup>header:before{background:linear-gradient(#b494d3,#9a74ba)}
#app .button.gold{--soft-face:linear-gradient(#b18cd3,#9668bb)}
/* A backdrop is a translucent layer, never a painted game button. */
#app .play-screen>.game-submodal>.submodal-shade{--soft-face:none!important;--soft-radius:0px!important;border:0!important;border-radius:0!important;background-color:#66527d99!important;background-image:none!important;box-shadow:none!important;backdrop-filter:blur(2px)}
#app .play-screen .drawer-backdrop{background:#8b749461}
#app .rpg-dialog header .icon-button{color:#8e68a3}
#app .rpg-dialog header .icon-button .ico{color:#8e68a3;stroke:currentColor}
#toast{color:#775383;background:#fff8edf2;border:2px solid #fff3da;border-radius:20px;box-shadow:0 4px 12px #a48aac3b}
/* Secondary inner surfaces and separators are part of the same rounded skin. */
#app :is(.skill-values,.bulk-odds,.bulk-estimate,.fusion-consume,.daily-reward,.utility-product,.style-art,.atelier-stage,.squad-member){border-image:none;border:2px solid #fff5df;border-radius:20px;background:linear-gradient(#fffaf0eF,#eaddf2e8);box-shadow:inset 0 1px #fff,0 2px 0 #d1badd;color:#87648f;overflow:hidden}
#app .skill-upgrade-row{border:0;background:none;border-radius:17px;padding-top:12px}
#app .collection-heading,#app .daily-intro{border:0;border-radius:20px}
#app .enhancement-stones>div{border:0;border-radius:15px;background:none;box-shadow:none}
#app .settings-list>div{border:0;border-radius:17px;background:#fff9ed99;margin:4px 0;box-shadow:inset 0 1px #fff9}
#app .chest-odds>div{border:0;border-radius:12px;background:#f0e4f36b;padding:6px 7px;margin:3px 0;color:#8c6a97}
#app .product-art{border:0;border-radius:20px;background:radial-gradient(#fff9e6,#e5d1ef77)}
#app .owned-count{border:0;border-radius:999px;background:#f4e8f4;color:#9370a2;padding:6px 9px}
#app .daily-art{border:0;border-radius:20px;overflow:hidden}
#app .daily-reward{padding:10px}
#app .daily-intro p,#app .daily-card p,#app .daily-reward small{color:#97789e}
#app .utility-product{padding:14px}
#app .atelier-stage{border-radius:28px;box-shadow:inset 0 1px #fff,0 3px 0 #c9b0d5}
#app .squad-member{border-radius:21px}
#app .squad-member.leader{border-color:#ecf5da}
#app .smooth-arena{border:0}
#app .royal-roster-card:before,#app .royal-diamond-action:before,.chronicle-confirm:before,.chronicle-confirm:after{background:none;border-image:none;border:0;box-shadow:none;display:none}
/* Legacy Latin-only font declarations must never replace the bundled Korean face. */
#app{--soft-font:Chronicle}
#app :is(.player-hud,.bottom-drawer,.world-nav,.control-deck,.game-submodal,.loot-overlay,.screen-overlay,.entry,.hero-entry) *,.chronicle-confirm *,.prologue-shell *{font-family:var(--soft-font,Chronicle),system-ui,sans-serif!important}
#app :is(h1,h2,h3,h4),#app .button,#app .royal-nameplate h3,#app .royal-diamond-action strong,#app .royal-lobby-name strong,#app .world-nav button>span,#app .royal-growth-tabs button,#app .royal-squad .squad-tabs button,#app .skill-node b,#app .core-skill .skill-label b,#app .royal-stat-title,#app .royal-forge-character b,#app .royal-bag summary,.chronicle-confirm h2,.chronicle-confirm button,.prologue-shell :is(h1,h2,h3,.prologue-next,.prologue-skip){--soft-font:RoyalTitle,Chronicle}
#app .button small,#app .button .diamond-price,#app .button .diamond-price *,#app .core-skill .skill-label small,#app .skill-node small,#app .world-wallet *,#app .royal-forge-actions .button small{--soft-font:Chronicle}
#app .daily-card .daily-copy .daily-reward{border:2px solid #fff4de;border-radius:20px;background:linear-gradient(#fff9ed,#efdfef);padding:10px;box-shadow:inset 0 1px #fff,0 2px 0 #d2bddb}
#app .back-site,#app .flow-header>a{color:#8b699a;background:#fff8e4db;border:2px solid #fff4d6;border-radius:999px;padding:5px 10px;font-size:12px}
.prologue-shell{--soft-font:Chronicle;color:#8d6d9d;background:#faf0f8}
.prologue-header{background:#f9f0f9;border:0;border-bottom:2px solid #fff7e4;border-radius:0 0 23px 23px}
.prologue-header h1{color:#9672a8}
.prologue-skip,.prologue-next{border:2px solid #fff3dc!important;border-radius:999px!important;background:linear-gradient(#c6a9e1,#a981c8)!important;color:#fff9ed!important;box-shadow:inset 0 1px #ead7f8,0 3px 0 #a587b7;clip-path:none}
.prologue-frame{border:3px solid #fff0d5;border-radius:25px;overflow:hidden;box-shadow:0 4px 0 #c8add2}
.prologue-panel,.prologue-end{border:2px solid #fff2da;border-radius:25px;background:linear-gradient(#fff9ed,#ead9ef);color:#9470a3;box-shadow:inset 0 1px #fff,0 3px 0 #cfb7dc}
.prologue-footer{background:#f9eff7;border:0;border-radius:23px 23px 0 0}
.prologue-dots button{border-radius:50%}
.prologue-save-error,.prologue-image-error{border-radius:18px}
#app .element-table-scroll{border:3px solid #fff2d8;border-radius:23px;background:#fff8edf0;overflow:auto;padding:5px;box-shadow:0 3px 0 #cbb0d5}
#app .element-table{border:0;border-collapse:separate;border-spacing:3px;background:none;color:#8a6994}
#app .element-table :is(th,td){border:0;border-radius:10px;background:#f0e3f2;padding:8px 4px;font-family:Chronicle,system-ui,sans-serif;font-size:11px}
#app .element-table th{background:#e4d2ef;color:#8f6e9e}
#app .element-table td.strong{background:#e0efd8;color:#77976c}
#app .element-table td.weak{background:#f1e4de;color:#ad8c80}
#app .element-table caption{padding:8px;color:#9573a4}
#app .quest-seal{border:0;border-radius:50%;background:#ead8f4;color:#ad87c3}
/* Final shared edge colors and compact secondary cards. */
#app :is(button,.button,input,select,textarea){border-color:var(--soft-border,#d5bfdf)!important}
#app .merge-chance{border:0;border-radius:18px;background:#f1e3f35c;padding:10px}
#app .chance-steps>span{border:2px solid #fff5df;border-radius:17px;background:#f8f0fa;color:#916a9d}
#app .performance-panel{border:2px solid #fff4dd;border-radius:22px;background:#f5eaf5;color:#9b7ba6;box-shadow:0 3px 0 #d0b8d9;overflow:hidden}
#app .performance-panel summary,#app .performance-panel :is(b,dt,dd,small,p){color:#9b7ba6}
#app .performance-panel pre,#app .performance-panel dl{border:0;border-radius:16px;background:#eee0f2;color:#8e6f9d}
#app .royal-forge-stage{height:448px;min-height:448px}
#app .royal-forge-character>div{display:none}
#app .stats-profile h3,#app .skill-owner h3{color:#79548d;text-shadow:0 1px #f5e7ff}
#app .stats-profile :is(small,span),#app .skill-owner :is(small,span){color:#8b6a9c}
#app .daily-intro{padding:12px 14px;border:2px solid #fff4df;border-radius:22px;background:#fff8ede0;box-shadow:0 3px 0 #d0b7da;margin-bottom:14px}
/* Keep both character actions in the usable scene, with scrolling on short phones. */
#app .royal-character .royal-character-data{gap:3px}
#app .royal-nameplate{padding-block:6px}
#app .royal-stat-rows{gap:3px}
#app .royal-stat-rows>div{min-height:25px;padding-block:2px}
#app .royal-grow-actions{gap:3px}
#app .royal-grow-actions>.button:not(.gold){min-height:36px}
.prologue-book{border:0;background:none;box-shadow:none;border-radius:26px}
