/* Flower Block Blast shell. Explicit menu scopes leave play fields and HUDs alone. */
:root{--shell-ink:#253b56;--shell-muted:#617083;--shell-cream:#fff6dd;--shell-paper:#fff9ed;--shell-mint:#b8eed8;--shell-gold:#ffe49a;--shell-pink:#f5bfd7;--shell-line:#52637a;--shell-shadow:#263c5c40}
#intro-screen{color:var(--shell-ink);background:radial-gradient(ellipse at 4% 0,#c3f2dd 0,transparent 48%),radial-gradient(ellipse at 100% 40%,#f5dce9 0,transparent 58%),linear-gradient(180deg,#effbf2,#fff6e8 68%,#e6f1df);padding-left:20px;padding-right:20px;scrollbar-color:#9bb8ac transparent}
#intro-screen::before{content:"";position:fixed;inset:0;z-index:0;pointer-events:none;background:url(art/game-flower-pattern-candy-v1.webp) center 18px/620px 620px repeat;opacity:.11}
#intro-screen .intro-content{box-sizing:border-box;width:min(100%,360px);padding:60px 0 20px}
#intro-screen .intro-tools{left:max(17px,env(safe-area-inset-left));right:max(17px,env(safe-area-inset-right));top:calc(12px + env(safe-area-inset-top));gap:8px}
#intro-screen .intro-tools button,#intro-screen .intro-tools #intro-profile{width:46px!important;height:46px!important;min-width:44px;flex-basis:46px!important;border-radius:15px!important;border:1.5px solid var(--shell-cream)!important;background:linear-gradient(160deg,#fffef6,#e0f0e8)!important;box-shadow:inset 0 2px #fff,0 3px #8da79e,0 5px 8px #34544d1c!important;padding:4px!important;color:var(--shell-ink)!important}
#intro-screen .intro-tools #intro-profile{margin-right:auto!important;background:linear-gradient(155deg,#f8e5ff,#e1c9f2)!important}
#intro-screen .intro-tools .jewel-icon{width:34px;height:34px;image-rendering:auto!important;filter:drop-shadow(0 2px 1px #34495633)}
#intro-screen .intro-tools button[hidden]{display:none!important}
#intro-screen .mode-menu{gap:14px}
#intro-screen .mode-menu button{--candy-top:#fff4c7;--candy-mid:#ffe299;--candy-bottom:#ffc583;--candy-edge:#bd8961;box-sizing:border-box;min-height:84px;padding:14px 61px 14px 76px!important;border:2px solid var(--shell-cream)!important;border-radius:22px!important;background:linear-gradient(180deg,var(--candy-top),var(--candy-mid) 52%,var(--candy-bottom))!important;box-shadow:inset 0 3px 0 #ffffffb3,inset 0 -2px 0 #8c6b5020,0 4px 0 var(--candy-edge),0 6px 0 #31476166,0 9px 12px #40514516!important;color:var(--shell-ink)!important;gap:5px}
#intro-screen .mode-menu #intro-vs{--candy-top:#e8f4ff;--candy-mid:#c4def7;--candy-bottom:#a2c6ed;--candy-edge:#7e9fbe}
#intro-screen .mode-menu #intro-endless{--candy-top:#e5ffe9;--candy-mid:#b8eed8;--candy-bottom:#8ad8bf;--candy-edge:#69a78f}
#intro-screen .mode-menu #intro-items{--candy-top:#f5e9ff;--candy-mid:#dfc9f4;--candy-bottom:#c7a6e9;--candy-edge:#a28bb9}
#intro-screen .mode-menu #intro-timed{--candy-top:#e8fbff;--candy-mid:#bfe9f7;--candy-bottom:#a1d8ef;--candy-edge:#7ba6bb}
#intro-screen .mode-menu #intro-tile{--candy-top:#fff0f2;--candy-mid:#f8ccde;--candy-bottom:#edaccb;--candy-edge:#b887a4}
#intro-screen .mode-menu button.mode-locked{background:linear-gradient(160deg,#f2f0f7,#e4e5ee)!important;border-color:#fff9ef!important;box-shadow:inset 0 2px #fff,0 4px #b4b9c9,0 6px #3c4d6840,0 9px 12px #42516a12!important;color:#4e5c74!important;opacity:1;filter:none}
#intro-screen .mode-menu b{font-size:17px;line-height:1.3;font-weight:900;letter-spacing:-.4px;text-shadow:0 1px #ffffff70;color:inherit}
#intro-screen .mode-menu small{font-size:11px;line-height:1.45;font-weight:600;opacity:1;color:#52617a}
#intro-screen .mode-menu :is(b,small){min-width:0;overflow-wrap:break-word}
#intro-screen .mode-emblem{left:12px;width:50px;height:50px;filter:drop-shadow(0 2px 1px #30415b36)}
#intro-screen .mode-state{right:11px;min-width:39px;max-width:44px;color:#3d536d;font-size:9px;line-height:1.3}
#intro-screen .mode-state>span{white-space:normal;overflow-wrap:break-word}
#intro-screen .mode-ready .mode-state{color:#3b4b62;font-weight:800}
#intro-screen .mode-state i{background:#fff9!important;border:1px solid #fff9;box-shadow:0 1px 1px #40557222;color:inherit}
#intro-screen .mode-locked .mode-state{color:#65718b}
#intro-screen .mode-menu button.mode-locked b{color:#4e5c74!important}
#intro-screen .mode-menu button.mode-locked small{color:#5d6d83!important}
#intro-screen .mode-locked .mode-state svg{stroke:currentColor}
#intro-screen .mode-ready .mode-state i{width:32px;height:32px;font-size:0!important;background:transparent url(art/menu-play-chevron-candy-v1.webp) center/contain no-repeat!important;border:0;box-shadow:none}
#intro-screen .mode-locked .mode-state svg{width:32px;height:32px;fill:none;stroke:none;background:url(art/menu-lock-candy-v1.webp) center/contain no-repeat}
#locked-mode-dialog .unlock-icon svg{width:54px;height:54px;fill:none;stroke:none;background:url(art/menu-lock-candy-v1.webp) center/contain no-repeat}
#intro-screen #intro-emblems.album-entry{display:grid;grid-template-columns:48px minmax(0,1fr) 32px;align-items:center;gap:12px;box-sizing:border-box;width:100%;height:auto;min-height:80px;padding:12px 14px;margin:14px 0 10px;border:2px solid var(--shell-cream);border-radius:22px;background:linear-gradient(160deg,#fff8ed,#f2e2f6 55%,#e7d7f0)!important;color:var(--shell-ink);box-shadow:inset 0 3px #ffffffb3,inset 0 -2px #8f6b9a14,0 4px #aa92b7,0 6px #31476166,0 9px 12px #40514516}
#intro-screen #intro-emblems>.emblem-small{width:48px;height:48px;max-width:none;filter:drop-shadow(0 2px 1px #34495626)}
#intro-screen #intro-emblems>span:not(.emblem-art){display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0;text-align:left}
#intro-screen #intro-emblems span b{color:var(--shell-ink);font-size:15px;font-weight:850;line-height:1.35;word-break:keep-all;overflow-wrap:break-word}
#intro-screen #intro-emblems span small{display:inline-block;max-width:100%;margin:0;padding:3px 9px;border:1px solid #bfaecb88;border-radius:9px;background:#fffaf3b3;color:#625773;font-size:11px;font-weight:750;line-height:1.4;font-variant-numeric:tabular-nums;overflow-wrap:break-word;box-sizing:border-box}
#intro-screen #intro-emblems>i{display:block;flex:none;width:32px;height:32px;margin:0;border:0;border-radius:0;background:transparent url(art/menu-play-chevron-candy-v1.webp) center/contain no-repeat;color:transparent;font-size:0;box-shadow:none}
#intro-screen :is(.other-games-open,#reminders-open){min-height:44px;border:1.5px solid #fff9ed;border-radius:15px;background:linear-gradient(#f8fff8,#dfefe5);box-shadow:inset 0 2px #fff,0 3px #a2b9af;color:#465f66;font-weight:750}
#intro-screen #intro-detail{color:#63766f;opacity:1;font-size:11px;line-height:1.5;text-shadow:none}
#intro-screen .intro-foot{color:#6f8279;font-size:9px;font-weight:800;letter-spacing:3px;text-shadow:none}
#intro-screen button:focus-visible{outline:3px solid #28746b!important;outline-offset:4px}
#intro-screen :is(#brain-open,#journal-open,#retention-home)[hidden]{display:none!important}
html:lang(ko) #intro-screen :is(b,small,button){word-break:keep-all;overflow-wrap:break-word}
/* Loading keeps its existing flower/line animations on the brighter shell. */
#boot-screen{color:var(--shell-ink);background:radial-gradient(ellipse at 12% 5%,#cff2e1,#fff5e4 70%)}
#boot-art{opacity:.28;filter:saturate(.8) brightness(1.15)}
#boot-screen::after{background:linear-gradient(#f0fff42b,#f7fae94d 50%,#fff5e8f5)}
#boot-screen .boot-panel{padding:16px 18px;border:1.5px solid #fff9e8;border-radius:22px;background:linear-gradient(145deg,#fffdf3e8,#f6ebdaeb);box-shadow:inset 0 2px #fff,0 4px #b6c4ad80,0 10px 24px #49625220;box-sizing:border-box}
#boot-screen :is(#boot-title,#boot-percent){color:var(--shell-ink)}
#boot-screen #boot-status{color:var(--shell-muted)}
#boot-screen .boot-brand{color:#7b8e81}
#boot-screen .boot-puzzle{border-color:#fff8de;background:linear-gradient(145deg,#d7eee2e8,#b5d7cce8);box-shadow:inset 0 0 0 2px #fff8,0 5px #648d8590,0 12px 24px #365b4a22}
#boot-screen .boot-puzzle>span{background:#edf8ea60;box-shadow:inset 0 1px 2px #35635a22}
#boot-screen .boot-progress-row progress,#boot-screen .boot-progress-row progress::-webkit-progress-bar{background:#b6cfc1}
#boot-screen .boot-progress-row progress::-webkit-progress-value{background:linear-gradient(90deg,#6bd2b7,#b2e7be,#ffdf90)}
#boot-screen .boot-progress-row progress::-moz-progress-bar{background:#79cdb4}
#boot-screen #boot-start{background:linear-gradient(#fff4c4,#ffdb8d);color:var(--shell-ink);border:1.5px solid #fff9e3;box-shadow:inset 0 2px #fff9,0 4px #b68c58}
/* Results and mode-entry choices are shell panels, never the play board. */
:is(#dialog,#vs-lobby,#endless-choice){box-sizing:border-box;width:min(390px,calc(100vw - 32px));border:2px solid var(--shell-line);border-radius:25px;background:linear-gradient(145deg,#fffdf2,#f6eddf);color:var(--shell-ink);box-shadow:inset 0 0 0 3px var(--shell-cream),0 5px #35475e66,0 18px 42px #182f4936;padding:24px 22px}
:is(#dialog,#vs-lobby,#endless-choice) :is(h2,h3,strong){color:var(--shell-ink);text-shadow:none}
:is(#dialog,#vs-lobby,#endless-choice) :is(p,small){color:var(--shell-muted);text-shadow:none}
:is(#dialog,#vs-lobby,#endless-choice) button:not([data-dismiss]):not(.modal-dismiss){min-height:46px;border:1.5px solid #fff8df;border-radius:15px;background:linear-gradient(#fff3bf,#ffdb91);color:var(--shell-ink);box-shadow:inset 0 2px #fff9,0 3px #b59665;font-weight:800}
:is(#dialog,#vs-lobby,#endless-choice) :is(#dialog-close,#vs-resume,#endless-new){background:linear-gradient(#eafff1,#bfe8d6)!important;color:#385e5c!important;box-shadow:inset 0 2px #fff9,0 3px #8ab5a2!important}
:is(#dialog,#vs-lobby,#endless-choice) :is([data-dismiss],.modal-dismiss){min-width:44px;min-height:44px;background:#fff9ed;border:1px solid #ccd5c6;border-radius:14px;color:#596d71;box-shadow:inset 0 1px #fff,0 2px #c2caba}
:is(#dialog,#vs-lobby,#endless-choice) button:focus-visible{outline:3px solid #28746b;outline-offset:3px}
#dialog #stars{color:#b27e25;text-shadow:0 1px #fff6ca}
#dialog :is(.result-emblem,.result-heading){color:var(--shell-ink)}
#dialog:is(.campaign-result,.boss-victory){border-color:var(--shell-line);background:linear-gradient(145deg,#fffdf2,#f6eddf);box-shadow:inset 0 0 0 3px var(--shell-cream),0 5px #35475e66,0 18px 42px #182f4936;color:var(--shell-ink)}
#dialog #run-summary .result-comparison{color:#556b72}
#dialog #run-summary .result-badge{color:#7e5b28;background:#fff0c5;border-color:#e1cb98}
#dialog.new-best .result-score,#dialog #run-summary .result-score{color:#276d62;text-shadow:0 1px #fff9db}
#dialog:is(.campaign-result,.boss-victory) #dialog-title{color:var(--shell-ink);text-shadow:none}
#dialog:is(.campaign-result,.boss-victory) #dialog-body{color:var(--shell-muted)}
#dialog #run-summary .result-stats dt{color:#617083}
#dialog #run-summary .result-stats dd{color:var(--shell-ink)}
#dialog #run-summary .result-stats small,#dialog .result-local{color:#556b72;opacity:1}
#vs-lobby .vs-medallion{background:#e6f3e7;border-color:#fff5d5;box-shadow:0 3px #9eb8a8}
#vs-lobby .auto-match>div{border:1px solid #c7d5d3;border-radius:18px;background:#e2f2ef;color:var(--shell-ink)}
#vs-lobby .auto-match>div:last-child{background:#f8e5ef}
#vs-lobby .auto-match :is(strong,b){color:var(--shell-ink)}
@media(max-width:350px){#intro-screen{padding-left:14px;padding-right:14px}#intro-screen .intro-content{padding-top:58px}#intro-screen .mode-menu button{padding-left:63px!important;padding-right:52px!important;min-height:82px}#intro-screen .mode-emblem{left:9px;width:43px;height:43px}#intro-screen .mode-menu b{font-size:16px}#intro-screen .mode-menu small{font-size:10px}#intro-screen .mode-state{right:8px;max-width:38px;font-size:8px}:is(#dialog,#vs-lobby,#endless-choice){padding:21px 17px}}
@media(max-height:650px){#intro-screen .intro-content{padding-top:50px}#intro-screen .mode-menu{gap:12px}#intro-screen .mode-menu button{min-height:74px;padding-top:10px!important;padding-bottom:10px!important}#intro-screen .mode-menu b{font-size:16px}#boot-screen .boot-panel{padding:10px 14px}#boot-screen #boot-title{margin-bottom:7px}}
