/* Account controls share the candy game's warm cream, berry and violet palette. */
.account-button{display:flex;align-items:center;gap:9px;min-height:44px;max-width:240px;padding:4px 13px 4px 5px;border:1px solid #fff;border-radius:17px;background:#fffafae6;color:#795399;box-shadow:0 3px 12px #835a9e10;text-align:left;font:inherit;cursor:pointer}
.account-avatar{display:flex;align-items:center;justify-content:center;flex:0 0 33px;width:33px;height:33px;border-radius:12px;color:#fff;font-size:18px;font-weight:800;background:linear-gradient(145deg,#ed86bf,#a263d5);box-shadow:inset 0 1px 0 #ffe2f5}
.account-button-copy{display:flex;flex-direction:column;min-width:0;gap:1px;line-height:1.15}.account-button b{font-size:13px;max-width:145px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-button small{display:flex;align-items:center;gap:4px;font-size:9px;color:#9471a9;white-space:nowrap}.account-button small:before{content:'';width:5px;height:5px;border-radius:50%;background:#ba9acc}.account-button[data-state=synced] small:before{background:#55be97}.account-button[data-state=saving] small:before,.account-button[data-state=loading] small:before{background:#e8b353}.account-button[data-state=offline] small:before,.account-button[data-state=error] small:before{background:#d98693}.account-button:focus-visible{outline:3px solid #b884df;outline-offset:3px}
.account-dialog{box-sizing:border-box;width:min(440px,calc(100vw - 28px));max-height:min(92svh,900px);padding:30px 30px 22px;border:1px solid #fff;border-radius:30px;background:radial-gradient(ellipse at 0 0,#ffe1ec88,transparent 46%),radial-gradient(ellipse at 100% 30%,#ead8ff88,transparent 48%),#fffafc;color:#77538e;box-shadow:0 24px 90px #34204a4d;overflow:auto;font-family:'Baloo 2','Trebuchet MS',sans-serif;text-align:center}
.account-dialog[open]{display:block}.account-dialog::backdrop{background:#3822476b;backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px)}.account-dialog [hidden]{display:none!important}.account-dialog button,.account-dialog input{font:inherit}.account-dialog button{cursor:pointer}.account-dialog button:disabled{opacity:.6;cursor:wait}.account-dialog button:focus-visible,.account-dialog input:focus-visible{outline:3px solid #c193e5;outline-offset:2px}
.account-close{position:absolute;right:10px;top:10px;width:44px;height:44px;border:0;border-radius:14px;background:#f1e7f6;color:#a47dbb;font-size:26px;line-height:1}.account-hero{position:relative;width:80px;height:73px;margin:0 auto 12px}.account-hero>span{display:flex;align-items:center;justify-content:center;width:64px;height:64px;margin:4px auto 0;border-radius:23px;background:linear-gradient(145deg,#fba5ce,#dd64ad 54%,#b768d2);box-shadow:0 5px 0 #eed1e7,inset 0 2px 0 #ffe5f2;color:#fff5df;font-size:42px;transform:rotate(-9deg);text-shadow:0 3px 0 #bd5b9b22}.account-hero i{position:absolute;right:-3px;top:0;color:#e3b450;font-size:25px;font-style:normal}.account-hero i:last-child{left:-5px;right:auto;top:45px;font-size:18px;color:#b17ed2}.account-kicker{margin:0 0 9px;font-size:9px;line-height:1.3;font-weight:800;letter-spacing:1.8px;color:#b18bba}.account-dialog h2{margin:0;font-size:31px;line-height:1.08;letter-spacing:-.6px;color:#854599}.account-intro{margin:12px auto 20px;max-width:320px;font-size:13px;line-height:1.5;color:#9d7ca9}.account-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:0 0 17px;padding:4px;border:1px solid #eedcf2;border-radius:15px;background:#f3eaf8}.account-tabs button{min-height:44px;padding:6px 8px;border:0;border-radius:11px;background:transparent;color:#ab8bbd;font-size:14px;font-weight:800}.account-tabs button[aria-selected=true]{color:#9151ad;background:#fff;box-shadow:0 3px 8px #9c6cac14}.account-field{display:block;margin:0 0 12px;text-align:left;color:#8c689d;font-size:12px;font-weight:700;line-height:1.4}.account-field>input,.account-password-wrap{margin-top:5px}.account-field input{box-sizing:border-box;display:block;width:100%;min-height:48px;padding:10px 13px;border:1px solid #e6d4ed;border-radius:13px;background:#fff;color:#765188;font-size:16px;line-height:1.3;box-shadow:0 2px 0 #fff,inset 0 1px 3px #7d559607}.account-field input::placeholder{color:#bca3c6;font-size:14px;font-weight:500}.account-password-wrap{position:relative;display:block}.account-password-wrap input{padding-right:65px}.account-password-wrap button{position:absolute;right:3px;top:2px;min-width:51px;min-height:44px;padding:2px 7px;border:0;border-radius:11px;background:transparent;color:#ab7dbc;font-size:12px;font-weight:800}.account-form-note{margin:3px 0 0;text-align:left;color:#a887b5;font-size:11px;line-height:1.5}.account-error{min-height:18px;margin:8px 0 9px;font-size:12px;line-height:1.4;color:#cd517d;text-align:left}.account-primary{box-sizing:border-box;display:flex;justify-content:center;align-items:center;gap:15px;width:100%;min-height:49px;padding:9px 15px;border:1px solid #df89c5;border-radius:15px;background:linear-gradient(115deg,#e65ca6,#a95bcc);box-shadow:0 4px 0 #be83be44,inset 0 1px 0 #f9b5dc;color:#fff;font-size:15px;font-weight:800}.account-primary span{font-size:23px;line-height:1}.account-primary:active{transform:translateY(2px);box-shadow:0 2px 0 #be83be44}.account-footnote{margin:14px 0 0;font-size:10px;line-height:1.4;color:#b194bd}.account-profile-avatar{display:flex;align-items:center;justify-content:center;width:67px;height:67px;margin:9px auto 17px;border-radius:24px;background:linear-gradient(145deg,#f5a3cc,#b36bd0);box-shadow:0 5px 0 #efd2e9;color:#fff2d8;font-size:39px}.account-profile .account-intro{margin-bottom:23px}.account-progress{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 18px}.account-progress>div{padding:15px 5px 11px;border:1px solid #efd4e7;border-radius:17px;background:#fbeaf2}.account-progress>div:last-child{border-color:#e6d5f2;background:#f0e7f9}.account-progress small{display:block;font-size:9px;letter-spacing:1px;font-weight:800;color:#af80a4}.account-progress b{display:block;margin-top:4px;font-size:31px;line-height:1;color:#c65d9e}.account-progress>div:last-child b{color:#9b63bc}.account-sync-detail{min-height:20px;margin:10px 0 16px;font-size:12px;color:#8c9e95}.account-logout{min-height:44px;margin:16px 0 0;padding:7px 14px;border:0;border-radius:12px;background:#f2e7f5;color:#9e78af;font-size:12px;font-weight:700}.account-notice{position:fixed;z-index:1000;left:50%;bottom:max(20px,env(safe-area-inset-bottom));width:max-content;max-width:min(430px,calc(100vw - 32px));box-sizing:border-box;padding:13px 18px;border:1px solid #fff;border-radius:16px;background:#fffaf8f5;box-shadow:0 7px 32px #6c43743b;color:#8b5696;font:700 13px/1.4 'Baloo 2','Trebuchet MS',sans-serif;text-align:center;pointer-events:none;opacity:0;transform:translate(-50%,12px);transition:opacity .2s,transform .2s}.account-notice.visible{opacity:1;transform:translate(-50%,0)}.account-locked .game-shell{pointer-events:none}.account-modal-open{overflow:hidden}
@media(max-width:650px){.topbar{flex-wrap:nowrap;gap:4px}.header-actions{flex-shrink:0;gap:2px}.account-button{gap:5px;max-width:148px;min-height:44px;padding:3px 7px 3px 3px;border-radius:13px}.account-avatar{flex-basis:28px;width:28px;height:30px;border-radius:10px;font-size:16px}.account-button b{font-size:10px;max-width:94px}.account-button small{font-size:7px;gap:3px}.account-button small:before{width:4px;height:4px}.topbar:has(.account-button) .brand{gap:5px;font-size:20px}.topbar:has(.account-button) .brand-mark{width:29px;height:31px}.topbar:has(.account-button) .brand b{display:none}.topbar:has(.account-button) .icon-button{width:44px;min-width:44px;height:44px}.account-dialog{width:min(410px,calc(100vw - 22px));max-height:94svh;padding:22px 22px 18px;border-radius:25px}.account-dialog h2{font-size:29px}.account-intro{margin:10px auto 17px;font-size:12px}.account-hero{margin-bottom:10px}.account-tabs{margin-bottom:13px}.account-field{margin-bottom:10px}.account-field input{min-height:47px}.account-kicker{font-size:8px;letter-spacing:1.5px}.account-error{margin:7px 0 8px}.account-footnote{font-size:9px;margin-top:12px}}
@media(max-width:370px){.topbar:has(.account-button) .brand{font-size:17px;gap:3px}.topbar:has(.account-button) .brand-mark{width:26px;height:29px}.account-button{width:44px;max-width:44px;min-width:44px;justify-content:center;padding:3px}.account-button-copy{display:none}.account-avatar{flex-basis:31px;width:31px;height:32px}.topbar:has(.account-button) .icon-button{width:44px;min-width:44px}.account-dialog{padding:21px 18px 16px}.account-dialog h2{font-size:27px}}
@media(max-height:700px){.account-dialog{padding-top:19px;padding-bottom:17px}.account-hero{height:51px;width:65px;margin-bottom:8px}.account-hero>span{height:45px;width:45px;font-size:30px;border-radius:16px}.account-hero i{font-size:19px;right:1px}.account-hero i:last-child{top:32px;font-size:15px}.account-kicker{margin-bottom:6px;font-size:8px}.account-dialog h2{font-size:26px}.account-intro{margin:9px auto 13px;font-size:12px}.account-tabs{margin-bottom:11px}.account-field{margin-bottom:9px}.account-field input{min-height:44px}.account-error{margin:6px 0}.account-footnote{margin-top:10px}}
@media(prefers-reduced-motion:reduce){.account-notice{transition:none}}
.launch-notice-dialog{width:min(460px,calc(100vw - 24px));padding:28px 28px 24px;background:radial-gradient(ellipse at 12% 0,#ffe8a799,transparent 48%),radial-gradient(ellipse at 100% 80%,#e2d2ff88,transparent 50%),#fffafc}
.launch-notice-art{position:relative;width:96px;height:84px;margin:0 auto 19px}.launch-notice-art>span{display:grid;place-items:center;position:absolute;inset:9px 10px 2px;border:3px solid #fff3c2;border-radius:26px;background:linear-gradient(145deg,#ffe578,#f8c747);box-shadow:0 6px 0 #edd4ac,inset 0 2px 0 #fff8c9;color:#765190;font-size:24px;font-weight:900;letter-spacing:-1px;transform:rotate(-7deg)}.launch-notice-art i{position:absolute;right:-7px;top:0;font-style:normal;color:#b380d6;font-size:29px}.launch-notice-art i:last-child{left:-6px;top:48px;right:auto;color:#e883b1;font-size:24px}.launch-notice-dialog h2{font-size:29px;line-height:1.18}.launch-notice-greeting{font-size:13px;font-weight:800;color:#a468b0;margin:17px 0 9px}.launch-notice-body{font-size:14px;line-height:1.7;margin:0;color:#97779e;text-wrap:pretty}.launch-notice-start{display:flex;align-items:center;gap:13px;margin:20px 0 4px;padding:14px;border:1px solid #efdfbd;border-radius:19px;background:linear-gradient(120deg,#fff1c9,#fff5e9);text-align:left}.launch-notice-start>span{display:grid;place-items:center;flex:0 0 45px;height:45px;background:#fff9e8;border:1px solid #efdcaf;border-radius:15px;font-size:25px;font-weight:800;color:#c18d3d}.launch-notice-start b{display:block;font-size:14px;color:#946783}.launch-notice-start small{display:block;font-size:11px;color:#b6989d;margin-top:2px}
@media(max-width:650px){.launch-notice-dialog{padding:25px 22px 22px}.launch-notice-dialog h2{font-size:27px}.launch-notice-body{font-size:13px;line-height:1.65}.launch-notice-art{margin-bottom:17px}.launch-notice-dialog .account-kicker{font-size:9px;letter-spacing:1.1px}.online-game .chapter-heading h1{font-size:clamp(16px,4.5vw,22px);letter-spacing:-.35px;line-height:1.2;margin-left:4px;margin-right:4px}.online-game .chapter-heading h1 span{font-size:12px}}
@media(max-height:650px){.launch-notice-art{height:65px;margin-bottom:12px}.launch-notice-dialog{padding-top:20px}.launch-notice-dialog h2{font-size:25px}.launch-notice-start{margin-top:14px}.launch-notice-greeting{margin-top:12px}}
