/* Luma Isles 1.14 — shared enamel, parchment and ocean game interface. */
:root{--ui-navy:#134468;--ui-cream:#fff1c5;--ui-gold:#f6c865;--ui-shadow:0 5px 0 #966226,0 14px 26px #052b4844;--ui-width:520px}
body.shell-ready{padding-bottom:calc(90px + env(safe-area-inset-bottom));background:radial-gradient(ellipse at 50% 0,#278a9a,#10426c 70%);min-height:100dvh}
body.shell-ready::before{opacity:.55;background:linear-gradient(#0a355cbc,#0e4662c9),url('./assets/backdrops/island.webp?v=1.56') center/cover;filter:blur(4px)}
body.shell-ready .topbar{height:80px;max-width:var(--ui-width);padding:10px 12px;gap:9px;position:relative;z-index:10;justify-content:flex-start}
.shell-ready .topbar>.brand,.shell-ready .view-tabs,.shell-ready .header-tools>#soundBtn,.shell-ready .header-tools>#helpBtn{display:none!important}
.shell-ready .header-tools{display:flex;gap:8px;margin-left:auto}.shell-ready .star-wallet{min-width:58px;padding:0 9px;height:35px;border-radius:10px;gap:4px;font-size:16px}.shell-ready .star-wallet .icon{height:26px;width:26px}
.ui-icon{width:38px;height:38px;flex-shrink:0;filter:drop-shadow(0 2px 1px #163d6150)}
.player-avatar{display:block;width:66px;height:66px;border:4px solid #83d9ef;border-radius:17px;background:radial-gradient(ellipse at 45% 30%,#b9f3e6,#2495bb);box-shadow:inset 0 0 0 2px #197595,0 3px 0 #0e4b72,0 0 0 2px #176091;overflow:hidden;position:relative}
.player-avatar>img{width:100%;height:115%;object-fit:contain;object-position:center 5px;max-width:none}.player-avatar>svg{height:100%;width:100%}.player-avatar>img.avatar-portrait{height:100%;object-position:center bottom}
.player-avatar.frame-1{border-color:#ffe18a;box-shadow:inset 0 0 0 2px #b18325,0 3px 0 #a36b2c,0 0 0 2px #d7a741}.player-avatar.frame-2{border-color:#ffaf9d;box-shadow:inset 0 0 0 2px #c76960,0 3px 0 #ae4a4b,0 0 0 2px #dd7c72}.player-avatar.frame-3{border-color:#d5b4ff;box-shadow:inset 0 0 0 2px #8c61b8,0 3px 0 #614294,0 0 0 2px #aa84ce}
.profile-open{padding:0;min-height:50px}.profile-open .player-avatar{width:51px;height:51px;border-radius:12px;border-width:3px}
.hud-wallet{position:relative;display:flex;align-items:center;gap:3px;height:34px;min-height:34px;padding:0 9px 0 23px;background:linear-gradient(#fff7d9,#ead5a5);border:2px solid #c69d5c;border-radius:10px;box-shadow:inset 0 1px 0 #fff6d5,0 3px 0 #845c39;color:#243f65;font-size:16px;font-weight:1000;margin-left:8px}
.hud-wallet>.ui-icon{position:absolute;left:-14px;top:-5px;width:41px;height:41px}.wallet-plus{position:absolute;right:-6px;bottom:-8px;color:#efffd6;border:1.5px solid #c3ed8b;background:linear-gradient(#91d452,#32883b);height:19px;width:19px;display:grid;place-items:center;line-height:1;border-radius:7px;font-size:18px}.heart-wallet{margin-left:10px;min-width:49px}
.settings-open{border:2px solid #75c3dd;border-radius:50%;background:linear-gradient(#258eb8,#15517e);width:37px;height:37px;min-height:37px;padding:3px;box-shadow:0 3px 0 #073655}.settings-open .ui-icon{width:27px;height:27px}
.shell-ready .game-layout{max-width:var(--ui-width);padding:0 12px 24px}.shell-ready.view-island .island-view{display:flex;flex-direction:column;gap:0;min-height:calc(100dvh - 190px)}
.shell-ready .island-view>.chapter-select,.shell-ready .island-heading{display:none}
.home-title{text-align:center;margin:5px 0 16px;color:#fff3c7;position:relative}.home-title>span{font-size:9px;font-weight:850;letter-spacing:3px;color:#b9e9e7}.home-title h1{font:1000 43px/1.1 var(--font);letter-spacing:-1.7px;color:#fff2bd;margin:4px 0;text-shadow:0 3px 0 #0f5475,0 5px 0 #073855}.home-title p{font-size:12px;color:#c2eeea;font-weight:700}
.shell-ready .world-card{border-width:3px;border-radius:23px;overflow:hidden;background:linear-gradient(#0d728e,#1b7a9c);box-shadow:0 5px 0 #865c2d,0 16px 34px #08263d66;position:relative;isolation:isolate}
.shell-ready .world{aspect-ratio:3/2;width:100%;border-bottom:2px solid #d4b974;overflow:hidden}.shell-ready .world-base{width:100%;height:100%;object-fit:fill}.shell-ready .world-caption{bottom:8px;left:12px}.shell-ready .world-caption strong{font-size:18px}.shell-ready .place-kicker{display:none}
.shell-ready .world-pin{height:32px;width:32px;min-height:32px}.shell-ready .world-pin .icon{width:21px;height:21px}.shell-ready .world-progress{color:#d7efde;padding:14px 17px 7px}.shell-ready .world-progress strong{color:#fff1b4}.shell-ready .world-progress progress{height:13px}
.shell-ready .world-guide{font-size:11px;color:#d4efed;line-height:1.5;margin:4px 18px 12px}.shell-ready .island-play{border:3px solid #f8e4a0;outline:2px solid #dd9932;background:linear-gradient(#b2ec50,#6bc40d 48%,#399707);text-shadow:0 2px #396d20;color:#fffbd6;border-radius:18px;box-shadow:inset 0 2px 0 #e8ffad,0 5px 0 #356c24,0 9px 20px #073d5855;min-height:65px;font:1000 23px var(--font);margin:5px 24px 18px;width:calc(100% - 48px)}
.shell-ready .island-play::before{display:none}.shell-ready .levels-button{font-size:11px;color:#bce3e7;margin:0 auto 10px;display:block;min-height:30px}.shell-ready .chapter-unlock{display:none}
.story-shortcut,.repair-shortcut{display:inline-flex;flex-direction:column;align-items:center;color:#fff3bf;font-size:11px;min-height:72px;width:50%;padding:4px 7px 12px;border-top:1px solid #6cb2bb;font-weight:850;background:linear-gradient(#197597,#0e5c84)}
.story-shortcut>.ui-icon,.repair-shortcut>.ui-icon{height:31px;width:31px;margin-bottom:4px}.story-shortcut{float:right;border-left:1px solid #6cb2bb}.repair-shortcut{float:left}
.bottom-nav{position:fixed;z-index:25;bottom:0;left:50%;transform:translateX(-50%);width:min(var(--ui-width),100%);display:flex;align-items:stretch;height:calc(79px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);border-top:4px solid #f5c969;background:linear-gradient(#2b9dbd,#11689c 70%,#0b568d);box-shadow:0 -2px 0 #a96a28,0 -7px 26px #07345455}
.bottom-nav button{flex:1;min-width:0;padding:6px 2px 4px;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;gap:1px;border-right:1px solid #074b7a85;border-left:1px solid #7fc7dc44;color:#e0f4ef;font-size:10px;font-weight:850;text-shadow:0 2px #17476f;transition:background .2s}
.bottom-nav .ui-icon{width:38px;height:38px;transition:transform .2s;transform-origin:center bottom}.bottom-nav button.selected{background:linear-gradient(#75d4e7aa,#278fb555);color:#fff3ac}.bottom-nav button.selected .ui-icon{transform:translateY(-10px) scale(1.45);margin-top:-8px;margin-bottom:4px;filter:drop-shadow(0 3px 0 #16426d77)}.bottom-nav button.selected span{font-size:12px}
.shell-ready.view-puzzle{padding-bottom:0}.shell-ready.view-puzzle .bottom-nav,.shell-ready.view-puzzle .home-title{display:none}.shell-ready.view-puzzle .topbar{height:56px;padding:7px 12px}.shell-ready.view-puzzle .topbar>.profile-open,.shell-ready.view-puzzle .topbar>.hud-wallet{display:none}.shell-ready.view-puzzle .puzzle-back{display:flex}.shell-ready.view-puzzle .game-layout{max-width:570px;padding-bottom:5px}.shell-ready.view-puzzle .puzzle-card{height:calc(100dvh - 67px);grid-template-rows:26px 100px minmax(0,1fr) 32px auto 48px 42px;padding-bottom:8px}.shell-ready.view-puzzle .puzzle-tools{height:48px}.shell-ready .booster-bar{display:flex;justify-content:center;gap:16px;padding:5px 0 0}.booster-bar button{display:flex;align-items:center;justify-content:center;gap:5px;background:#164a76;border:1.5px solid #8ed0d8;border-radius:12px;min-height:36px;min-width:65px;color:#fff2b5}.booster-bar .icon{width:27px;height:27px}.booster-bar button:disabled{opacity:.35}
body.in-menu .game-layout{display:none!important}.menu-view{width:min(var(--ui-width),100%);padding:0 17px 32px;margin:auto;color:#fff2bf;min-height:calc(100dvh - 180px)}.menu-view[hidden]{display:none}
.menu-heading{text-align:center;padding:15px 0 23px;position:relative;margin:0 -17px 20px;background:linear-gradient(#116c95aa,#084c79aa);border-bottom:3px solid #e4b451;box-shadow:0 3px 0 #fff0b526}
.menu-heading>span{font-size:8px;letter-spacing:2px;color:#b6e9e9;font-weight:850}.menu-heading h1{font:1000 33px/1.2 var(--font);color:#fff1b7;margin:7px 0 0;text-shadow:0 3px 0 #073c67,0 4px #071f3c;letter-spacing:-1px}.menu-intro{color:#c5eced;font-size:12px;line-height:1.6;margin:-5px 4px 19px;text-align:center}
.cream-card{color:#214668;background:linear-gradient(#fff8db,#f6e6b7);border:3px solid #f3d995;border-radius:21px;padding:20px;box-shadow:0 4px 0 #a0804e,0 0 0 2px #426c85,0 10px 18px #092a4233;margin-bottom:19px}
.cream-card h2{font:950 21px/1.25 var(--font);color:#16496c}.cream-card p{color:#687466;font-size:13px;line-height:1.7;margin-top:10px}
.area-list{display:grid;gap:22px;margin-bottom:26px}.area-card{display:block;width:100%;padding:0;overflow:hidden;text-align:left;border:3px solid #f5d58e;border-radius:22px;box-shadow:var(--ui-shadow);background:#fff1c8;transition:transform .2s}.area-card:hover{transform:translateY(-2px)}.area-image{position:relative;height:211px;overflow:hidden}.area-image>img{width:100%;height:100%;object-fit:cover}.area-image::after{content:'';position:absolute;inset:55% 0 0;background:linear-gradient(transparent,#143f5e88)}.area-tag{position:absolute;z-index:1;left:13px;top:13px;color:#fff3bf;background:#106483ed;border:1px solid #ffe4a3;padding:5px 10px;border-radius:7px;font-size:9px;font-weight:900;letter-spacing:1.5px}.area-content{padding:15px 16px 17px;color:#1f5272}.area-content h2{font:950 23px var(--font);color:#1c4c70}.area-content p{font-size:11px;margin:5px 0 12px;line-height:1.5;color:#7b735b}.area-progress{display:flex;align-items:center;gap:10px}.area-progress>strong{font-size:14px;white-space:nowrap}.area-progress>span{border-radius:50%;width:29px;height:29px;background:#2085a3;border:2px solid #a8d7d8;display:grid;place-items:center;color:#fff7c5}.area-progress progress{width:100%;height:15px;appearance:none;border:2px solid #a5946a;border-radius:12px;overflow:hidden;background:#526f86}.area-progress progress::-webkit-progress-bar{background:#526f86}.area-progress progress::-webkit-progress-value{background:linear-gradient(#a5e866,#5fc133);border-radius:10px}.area-progress progress::-moz-progress-bar{background:#78ce40}.area-locked .area-image>img{filter:grayscale(1) brightness(.65)}.area-lock{position:absolute;inset:0;display:grid;place-items:center;z-index:1}.area-lock .ui-icon{width:95px;height:95px;filter:drop-shadow(0 6px 5px #0d2b5166)}
.green-button,.blue-button{min-height:51px;border:2px solid #e8edb4;border-radius:14px;box-shadow:inset 0 2px #ffffff6b,0 4px 0 #35652a;background:linear-gradient(#a5e64e,#67b921 55%,#3b9910);color:#fff9d7;font:950 17px var(--font);text-shadow:0 2px #466d27;display:flex;justify-content:center;align-items:center;gap:8px;padding:10px 16px;transition:filter .2s,transform .15s}.blue-button{background:linear-gradient(#40b4cf,#1677a8);box-shadow:inset 0 2px #ffffff3a,0 4px 0 #0d426b;text-shadow:0 2px #15547a;border-color:#9bdde2;font-size:14px}.green-button:hover:not(:disabled),.blue-button:hover:not(:disabled){filter:brightness(1.1)}.green-button:active:not(:disabled),.blue-button:active:not(:disabled){transform:translateY(3px);box-shadow:inset 0 2px #ffffff3a,0 1px 0 #235725}.full{width:100%;margin:15px 0 0}.green-button:disabled{background:linear-gradient(#b1bba0,#8e9d84);border-color:#cad0b8;box-shadow:0 3px 0 #647463;opacity:.8;color:#edf0dc;text-shadow:0 1px #72846a;font-size:13px}.green-button .ui-icon{height:29px;width:29px}.blue-button .ui-icon{height:27px;width:27px}
.segmented{display:flex;padding:4px;background:#124d74;border:2px solid #7caabd;border-radius:15px;box-shadow:0 3px 0 #092f4d;gap:3px;margin:0 0 23px}.segmented button{flex:1;min-width:0;min-height:43px;color:#d4ebea;font-size:14px;font-weight:900;padding:6px 4px;border-radius:10px}.segmented button.active{color:#fff5be;background:linear-gradient(#4bc3d8,#1674a4);box-shadow:inset 0 1px #c1f6ea66,0 2px 0 #104c7f;border:1px solid #8ed5e2}
.card-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.card-heading h2{font-size:19px}.pill{display:inline-block;padding:5px 8px;border-radius:7px;background:#d2e6d5;color:#4a7c6d;font-size:8px;letter-spacing:.4px;font-weight:850}.rank-row{display:flex;align-items:center;gap:12px;background:#d6edf0;border:2px solid #98cdd5;border-radius:13px;padding:12px 10px;margin-bottom:18px}.rank-row>.player-avatar{width:49px;height:49px;border-radius:12px}.rank-row>span:not(.player-avatar){flex:1;min-width:0}.rank-row strong{font-size:17px;overflow-wrap:anywhere}.rank-row small{display:block;font-size:10px;color:#658594}.rank-row>strong:last-child{display:flex;align-items:center;gap:3px}.rank-row .ui-icon{width:26px;height:26px}.personal-record{display:flex;align-items:center;gap:10px;justify-content:space-between;padding:13px 0;border-top:1px solid #dbc89b;font-size:12px}.personal-record>strong{font-size:16px;color:#175573;white-space:nowrap}.info-note{padding:15px 17px;color:#c1e0e6;font-size:11px;line-height:1.77;text-align:center;background:#0c466e88;border:1px solid #65a9b34f;border-radius:14px;margin:19px 0}.feature-banner{text-align:center;padding:24px 22px}.banner-art{height:130px;display:grid;place-items:center;background:radial-gradient(#ffe5a0,transparent 67%);margin-bottom:10px}.banner-art>.ui-icon{width:105px;height:105px;transform:rotate(-7deg)}.feature-banner h2{font-size:25px}.feature-banner p{font-size:13px}.team-card{text-align:center;padding:0 21px 23px;overflow:hidden}.team-illustration{height:230px;position:relative;margin:0 -21px 0;background:linear-gradient(#48b9d0aa,#faeab5),url('./assets/backdrops/island.webp?v=1.56') center/cover;isolation:isolate;display:flex;justify-content:center;align-items:flex-end}.team-illustration::before{content:'';position:absolute;inset:0;background:linear-gradient(#72c8daaa,#f6e8ba);z-index:-1}.team-illustration>img{height:158px;width:158px;object-fit:contain;position:absolute;bottom:0;left:calc(50% - 79px);z-index:3;filter:drop-shadow(0 4px 0 #415b7122)}.team-portrait{position:absolute;left:calc(50% - 115px);bottom:30px;width:125px;height:160px;transform:rotate(-9deg);filter:drop-shadow(0 6px 0 #194a6722)}.team-portrait svg{height:100%;width:100%}.team-portrait.oren{left:calc(50% + 5px);transform:rotate(9deg)}.team-illustration>.ui-icon{position:absolute;width:75px;height:75px;right:19px;top:15px;transform:rotate(12deg)}.feature-seal{display:grid;place-items:center;position:relative;margin:-22px auto 12px;width:65px;height:65px;border-radius:50%;background:#fff2c6;border:3px solid #d8bd7c;box-shadow:0 4px 0 #ae905d;z-index:4}.feature-seal .ui-icon{width:45px;height:45px}.team-card h2{font-size:26px}.benefit-grid{display:grid;grid-template-columns:1fr 1fr;margin:25px 0 5px;gap:8px}.benefit-grid>div{display:flex;flex-direction:column;align-items:center;gap:8px}.benefit-grid .ui-icon{height:54px;width:54px}.benefit-grid strong{font-size:14px}.benefit-grid small{font-size:10px;color:#7b785f}.team-card .info-note{color:#73745c;background:#e9dcb8;border-color:#cfbd93;font-size:10px}
.album-summary{display:flex;align-items:center;gap:16px;border:2px solid #82c8d6;border-radius:18px;background:linear-gradient(115deg,#318da4,#155280);padding:12px 20px;margin:0 0 20px;box-shadow:0 4px 0 #0b3559}.album-summary>.ui-icon{height:60px;width:60px}.album-summary strong{display:block;font-size:20px}.album-summary small{color:#b9e6e9;font-size:12px}.set-tabs{display:flex;gap:6px;margin-bottom:19px}.set-tabs button{flex:1;font-size:10px;font-weight:850;min-height:45px;padding:5px;border:1px solid #6ca3b9;border-radius:10px;background:#104e73;color:#b3d9df}.set-tabs button.active{background:#ead9a4;color:#315473;border-color:#fff0b9;box-shadow:0 3px #ad8741}.collection-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px 12px}.collect-card{padding:0;position:relative}.collect-card>div{height:150px;border-radius:14px;border:4px solid #efc15c;box-shadow:0 3px #a87a39;overflow:hidden;position:relative;background:#bfcbce}.collect-card img{width:100%;height:100%;object-fit:cover}.collect-card>strong{display:block;font-size:13px;margin-top:10px}.collect-card>div>span{position:absolute;right:6px;bottom:4px;color:#fff0b4;font-size:24px;text-shadow:0 2px #926629}.collect-card>div>.ui-icon{position:absolute;left:calc(50% - 25px);top:calc(50% - 25px);width:50px;height:50px}.collect-card.missing>div{border-color:#b6b9a4}.collect-card>small{position:absolute;right:2px;top:-5px;border-radius:8px;background:#188a9b;color:#f9ffde;padding:2px 7px;font-size:10px}.set-reward{display:flex;align-items:center;justify-content:center;gap:12px;margin:23px 0 0;padding-top:16px;border-top:1px solid #d8c797}.set-reward>.ui-icon{width:40px;height:40px}.set-reward strong{display:block;font-size:14px}.set-reward small{font-size:12px;color:#7d765b}.locked-cards{display:flex;justify-content:center;gap:12px;margin:23px 0 28px}.locked-cards>div{position:relative;height:150px;width:100px;border-radius:13px;border:4px solid #eac369;overflow:hidden;transform:rotate(-9deg);box-shadow:0 5px 0 #8d6b35}.locked-cards>div:nth-child(2){transform:translateY(-8px)}.locked-cards>div:nth-child(3){transform:rotate(9deg)}.locked-cards .ui-icon{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);width:40px;height:40px}
.shop-balance{display:flex;justify-content:center;align-items:center;gap:9px;margin:0 0 22px}.shop-balance strong{font-size:28px}.shop-balance span{font-size:11px;color:#c3e6e6}.shop-balance>.ui-icon{width:45px;height:45px}.starter-banner{display:flex;align-items:center;padding:22px;border-radius:20px;background:linear-gradient(120deg,#fae9ab,#e7bf64);border:3px solid #ffe9a8;box-shadow:var(--ui-shadow);color:#315170;margin-bottom:28px}.starter-banner>div{flex:1}.starter-banner .pill{background:#e3bf6b;color:#805d2e;font-size:7px}.starter-banner h2{font:950 24px/1.15 var(--font);margin:10px 0}.starter-banner p{font-size:11px;line-height:1.6;color:#7a6947}.starter-banner>.ui-icon{width:85px;height:85px;transform:rotate(8deg);margin-left:10px}.shop-products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.product{padding:12px 7px 13px;text-align:center;border-radius:17px;border-width:2px;min-width:0}.product-art{height:78px;position:relative;display:flex;align-items:center;justify-content:center;background:radial-gradient(#ffe7a1,transparent 70%)}.product-art>svg{height:65px;width:65px;filter:drop-shadow(0 4px 2px #4b4a7833)}.product-art>span{position:absolute;right:0;bottom:0;font-weight:1000;font-size:18px;color:#446279;text-shadow:0 1px white}.product h2{font-size:14px;white-space:nowrap;letter-spacing:-.6px}.product p{font-size:9px;line-height:1.5;min-height:42px;color:#81765b}.product>small{display:block;font-size:9px;color:#677b6f;margin:9px 0}.product .green-button{font-size:16px;padding:6px 3px;gap:3px;width:100%;min-height:44px}.product .green-button .ui-icon{height:23px;width:23px}.shop-explain h2{font-size:18px}.shop-explain p{font-size:12px}
.player-dialog,.repair-panel{color:#fff1bd;border:3px solid #f6d17f;border-radius:25px;padding:0 20px 24px;width:min(470px,calc(100% - 24px));max-height:calc(100dvh - 40px);background:linear-gradient(#258fa9,#155580);box-shadow:0 5px 0 #92662f,0 20px 90px #051c42aa;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#72b7c9 #175d83}
.player-dialog::backdrop,.repair-panel::backdrop{background:#041a36c9;backdrop-filter:blur(3px)}.panel-heading{display:flex;align-items:center;justify-content:center;gap:10px;position:sticky;z-index:6;top:0;padding:18px 36px 18px 5px;margin:0 -20px 22px;background:linear-gradient(#208aab,#0f658f);border-bottom:3px solid #eac26b;box-shadow:0 4px 0 #103e6c44}.panel-heading h2{font:1000 27px/1.15 var(--font);letter-spacing:-.8px;color:#fff1bc;text-shadow:0 3px #144c72}.close-ui{position:absolute;right:10px;top:13px;width:35px;height:35px;min-height:35px;border-radius:50%;border:2px solid #ffd993;color:#fff1bd;background:linear-gradient(#f46b67,#c22c4b);box-shadow:0 3px 0 #8c2b3c;font-size:31px;line-height:28px;padding:0}
.profile-card{position:relative;display:flex;align-items:center;gap:15px;border:2px solid #9dcbd9;border-radius:18px;background:linear-gradient(#4b99b3,#367894);padding:20px 13px;margin-bottom:26px;min-height:126px}.profile-avatar-edit{padding:0;position:relative;flex-shrink:0}.profile-avatar-edit .player-avatar{width:77px;height:77px}.profile-avatar-edit>span:last-child{position:absolute;right:-5px;bottom:-8px}.profile-avatar-edit .ui-icon{height:29px;width:29px}.profile-identity{flex:1;padding-right:50px;min-width:0}.profile-identity h3{font-size:27px;color:#fff3bc;line-height:1.3;overflow-wrap:anywhere;text-shadow:0 2px #265d7e}.profile-identity p{font-size:12px;display:flex;align-items:center;gap:5px;color:#cee9e7;margin:7px 0}.profile-identity .ui-icon{height:20px;width:20px}.profile-identity small{font-size:11px;color:#d4eceb}.level-ribbon{position:absolute;top:-3px;right:10px;min-width:55px;padding:15px 5px 18px;background:linear-gradient(#1d8eae,#11557f);border:2px solid #edc16c;clip-path:polygon(0 0,100% 0,100% 85%,50% 100%,0 85%);text-align:center;font-size:10px;color:#fff2b8}.level-ribbon strong{display:block;font-size:27px;line-height:1.3}.stats-card{padding:19px 12px}.stats-card h3{text-align:center;font-size:18px;padding:0 0 22px;color:#1b5375}.stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 9px}.stats-grid>div{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}.stats-grid .ui-icon{width:46px;height:46px}.stats-grid span{font-size:10px;font-weight:900;min-height:30px;line-height:1.4;display:flex;align-items:center}.stats-grid strong{display:block;width:100%;border-radius:8px;background:#dfcfac;color:#31566b;font-size:22px;line-height:32px;box-shadow:inset 0 1px 2px #836a4133}.stats-footnote{font-size:9px!important;text-align:center;margin:17px 0 0!important}.edit-preview{display:flex;align-items:center;justify-content:center;gap:17px;margin:4px 0 25px}.edit-preview .player-avatar{width:80px;height:80px}.edit-preview>strong{font-size:25px;overflow-wrap:anywhere;max-width:210px}.edit-options{margin-top:0;padding:20px 14px}.avatar-grid,.frame-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px 13px}.avatar-grid>button,.frame-grid>button{position:relative;padding:5px;display:flex;align-items:center;flex-direction:column;gap:12px;border:2px solid transparent;border-radius:15px}.avatar-grid .picked,.frame-grid .picked{border-color:#60a965;background:#d7e9b9}.picked-check{position:absolute;right:0;bottom:0;background:#51a94c;color:white;border-radius:50%;width:23px;height:23px;line-height:23px;border:2px solid #eef5d1;font-weight:900}.frame-grid{grid-template-columns:1fr 1fr}.frame-grid>button>span:last-child{font-size:12px;color:#426b7b;font-weight:850}.name-label{display:block;color:#386177;font-size:13px;font-weight:850;margin-bottom:11px}#playerName{display:block;width:100%;background:#fffaf0;border:2px solid #c4a76c;border-radius:12px;min-height:52px;color:#214b69;padding:10px 14px;font:850 20px var(--font)}.input-hint{font-size:10px!important}.text-link{display:block;margin:12px auto 0;font-size:12px;color:#c3e4e6;text-decoration:underline}.settings-card>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px 0;border-bottom:1px solid #d8c99c}.settings-card>div:last-child{border-bottom:0}.settings-card strong{font-size:14px;display:block}.settings-card small{display:block;font-size:10px;color:#7a7a60;margin-top:4px}.settings-card .ui-icon{width:32px;height:32px}.toggle{width:57px;height:31px;min-height:31px;border-radius:20px;padding:3px;background:#9ca8a0;border:2px solid #7d9488;flex-shrink:0}.toggle>span{display:block;height:23px;width:23px;background:#fff3cf;border-radius:50%;margin-top:-1px;box-shadow:0 1px 3px #3a5e6d66;transition:translate .2s}.toggle.on{background:#68bc5b;border-color:#528c47}.toggle.on>span{translate:24px}.settings-version{text-align:center;color:#a9d3df;font-size:10px;line-height:1.8;margin:23px 0 0}
.repair-panel .task-card{margin:0 0 20px;box-shadow:0 4px 0 #966d35}.repair-panel .repair-choice-heading{margin:0 0 15px}.repair-panel .repair-choice-heading h2{font-size:21px}.repair-panel .repair-choice-heading p{font-size:11px}.repair-panel .renovation-list{grid-template-columns:1fr 1fr;margin:0;gap:13px}.repair-panel .repair-thumb{height:100px}.repair-panel .renovation-row>span:nth-child(2){font-size:12px;min-height:44px}.repair-panel .renovation-row small{font-size:11px}
.desktop-mark{display:none}.shell-ready .toast{bottom:calc(98px + env(safe-area-inset-bottom));z-index:100}.shell-ready.view-puzzle .toast{bottom:22px}.shell-ready .journal-view{padding:0 8px}.shell-ready .journal-hero h1{font-size:34px}.shell-ready .story-timeline{padding-bottom:10px}.shell-ready .game-modal{z-index:60}
@media(min-width:950px){.desktop-mark{display:flex;flex-direction:column;align-items:center;position:fixed;top:23%;left:calc(25% - 180px);width:220px;text-align:center;color:#fff1bd;pointer-events:none}.desktop-mark>span{font-size:72px;line-height:1.2;color:#f7d68b;text-shadow:0 0 40px #f8e39b88}.desktop-mark>strong{font:950 35px/1.1 var(--font);letter-spacing:-1.8px;text-shadow:0 3px #0c3b5b}.desktop-mark>small{margin-top:15px;font-size:8px;letter-spacing:2px;color:#9dd0d7}.shell-ready .topbar{background:#126a8c55}.shell-ready .game-layout{position:relative}.bottom-nav{border-radius:14px 14px 0 0}.shell-ready .home-title{margin-top:16px}.shell-ready .home-title h1{font-size:49px}.home-title p{margin-top:8px}.shell-ready .world{aspect-ratio:1.5}.menu-view{background:#0c53703d;border-left:1px solid #65b6c129;border-right:1px solid #65b6c129}.shell-ready.view-puzzle .desktop-mark{opacity:.6}}
@media(max-width:370px){.shell-ready .topbar{padding:9px 9px;gap:7px}.profile-open .player-avatar{width:44px;height:44px}.hud-wallet{font-size:14px;padding-left:21px;padding-right:6px}.hud-wallet>.ui-icon{height:36px;width:36px;top:-3px}.heart-wallet{min-width:43px}.shell-ready .header-tools{gap:6px}.shell-ready .star-wallet{min-width:48px;padding:0 5px;font-size:14px}.shell-ready .star-wallet .icon{height:23px;width:23px}.settings-open{height:33px;width:33px;min-height:33px;padding:3px}.settings-open .ui-icon{height:23px;width:23px}.shell-ready .topbar{height:70px}.home-title{margin-top:3px;margin-bottom:12px}.home-title h1{font-size:36px}.shell-ready .world-caption strong{font-size:15px}.shell-ready .world-pin{height:27px;width:27px;min-height:27px}.shell-ready .world-pin .icon{height:18px;width:18px}.shell-ready .world-guide{font-size:10px}.shell-ready .island-play{min-height:55px;font-size:20px}.product h2{font-size:12px}.shop-products{gap:8px}.product-art>svg{height:55px;width:55px}.player-dialog{padding-left:13px;padding-right:13px}.player-dialog .panel-heading{margin-left:-13px;margin-right:-13px}.panel-heading h2{font-size:24px}.profile-card{gap:10px;padding:15px 10px}.profile-avatar-edit .player-avatar{width:63px;height:63px}.profile-identity h3{font-size:21px}.avatar-grid .player-avatar{height:60px;width:60px}.stats-grid{gap:19px 6px}.stats-grid span{font-size:9px}}
@media(max-height:740px){.home-title{margin:0 0 10px}.home-title h1{font-size:35px}.home-title>span{font-size:8px}.home-title p{font-size:10px}.shell-ready .topbar{height:66px}.shell-ready .world-guide{margin:3px 16px 7px;font-size:10px}.shell-ready .island-play{min-height:53px;margin-bottom:12px;font-size:20px}.shell-ready .world-progress{padding-top:9px}.story-shortcut,.repair-shortcut{min-height:63px;padding-bottom:8px}.story-shortcut>.ui-icon,.repair-shortcut>.ui-icon{width:26px;height:26px}.shell-ready.view-puzzle .puzzle-card{grid-template-rows:22px 80px minmax(0,1fr) 28px auto 42px 39px}.shell-ready.view-puzzle .goal-bar,.shell-ready.view-puzzle .goal-bar:has(.obstacle-goal:not([hidden])){height:80px}.shell-ready.view-puzzle .goal-guide img{height:89px;width:89px}.shell-ready.view-puzzle .puzzle-tools{height:42px}.shell-ready.view-puzzle .puzzle-tools button{min-height:38px}.booster-bar button{min-height:33px}}
@media(prefers-reduced-motion:reduce){.bottom-nav .ui-icon,.green-button,.blue-button,.toggle>span,.area-card{transition:none}.menu-view{scroll-behavior:auto}}
.shell-ready.view-island .island-view{min-height:0}
.heart-wallet{margin-right:2px}.heart-wallet>#lifeTimer{position:absolute;top:calc(100% + 3px);left:2px;right:0;white-space:nowrap;text-align:center;font-size:8px;line-height:12px;color:#e9f7df;text-shadow:0 1px #174568;font-weight:850}.life-hearts{display:flex;justify-content:center;gap:8px;margin:8px 0 22px}.life-hearts>.ui-icon{height:42px;width:42px}.life-hearts>.empty-heart{filter:grayscale(1);opacity:.3}.lives-card{text-align:center}.lives-card h3{font-size:27px;margin-bottom:9px}.lives-card>strong{display:block;color:#4d8b6a;font-size:16px}.lives-card p{font-size:12px}
.reward-offer{display:flex;flex-direction:column;gap:10px;align-items:stretch;text-align:center;padding:17px;margin:6px 0 13px;border:2px solid #c6dcad;border-radius:17px;background:linear-gradient(#e3f1cc,#c8e5ba);color:#285d60;width:100%}.reward-offer>strong{font-size:18px;font-weight:950}.reward-offer>small{font-size:10px;line-height:1.6;color:#617a62}.reward-video-button{min-height:48px;padding:10px;border:2px solid #fff0a2;border-radius:12px;background:linear-gradient(#af7be7,#7045aa);box-shadow:0 3px #543589;color:#fff3ca;font:900 15px var(--font)}.reward-video-button:disabled{background:linear-gradient(#a8b8ae,#8d9f98);border-color:#d5e1cb;box-shadow:0 3px #70857c;opacity:1;color:#edf3e5;cursor:default}.ad-paused .game-layout,.ad-paused .topbar,.ad-paused .bottom-nav,.ad-paused .menu-view{pointer-events:none}
.online-status{font-size:9px;line-height:1.3;min-height:28px;padding:4px 12px;margin:9px auto 0;border:1px solid #82c8c288;border-radius:15px;color:#d8f0da;background:#164e6a88;font-weight:750}.online-status.needs-attention{color:#ffe5ad;border-color:#f3cb7f}.social-empty{text-align:center;padding:28px 23px}.social-empty>.ui-icon{height:65px;width:65px;margin:0 0 18px}.social-empty h2{font-size:24px}.social-form{display:flex;flex-direction:column;gap:11px}.social-form label{color:#315c73;font-size:12px;font-weight:900}.social-form input,.social-form textarea{font:650 14px var(--font);width:100%;min-height:46px;padding:10px 12px;border:2px solid #c6ad78;border-radius:11px;background:#fffbeb;color:#234d6b;resize:vertical}.social-form textarea{min-height:75px}.social-form .full{margin-top:1px}.friend-code{text-align:center}.friend-code>small{font-size:9px;letter-spacing:2px;color:#8c794f}.friend-code>strong{display:block;font-size:26px;color:#1b5977;letter-spacing:3px;margin:10px 0}.social-person{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:15px 0;border-bottom:1px solid #dac89b}.social-person:last-child{border-bottom:0}.social-person>.player-avatar{width:42px;height:42px;border-radius:11px;border-width:2px}.social-person>span:not(.player-avatar){flex:1;min-width:85px}.social-person strong{font-size:13px;display:block;overflow-wrap:anywhere}.social-person small{display:block;font-size:9px;color:#798371;margin-top:3px}.mini-button{min-height:36px;background:linear-gradient(#62bfd0,#2584a3);border:1px solid #9fd7d6;box-shadow:0 2px #2d687b;border-radius:9px;color:#fff6d1;font-weight:850;font-size:10px;padding:6px 9px}.mini-button.muted{background:#e1d2b0;border-color:#c8b78c;color:#716245;box-shadow:0 2px #b69e6a}.mini-button:disabled{opacity:.5}.social-rank{display:flex;align-items:center;gap:11px;padding:13px 0;border-bottom:1px solid #dac89b}.social-rank>.player-avatar{height:43px;width:43px;border-width:2px;border-radius:11px}.social-rank>span:not(.player-avatar){flex:1;min-width:0}.social-rank strong{font-size:14px;display:block;overflow-wrap:anywhere}.social-rank small{font-size:10px;color:#758572}.social-rank>b{color:#b78c36;min-width:17px}.social-rank>strong{font-size:23px;color:#196381}.empty-copy{font-size:12px!important;text-align:center;padding:16px}.team-list-row{display:flex;gap:10px;align-items:center;padding:17px 0;border-bottom:1px solid #d9c89c}.team-list-row>.ui-icon{height:43px;width:43px}.team-list-row>span{flex:1;min-width:0}.team-list-row strong{font-size:15px;display:block;overflow-wrap:anywhere}.team-list-row small{font-size:10px;color:#758572}.team-list-row p{font-size:10px;margin-top:5px}.team-code-line{display:flex;align-items:center;justify-content:space-between;gap:9px;margin:-4px 0 20px;color:#c4e8e5;font-size:10px}.team-code-line button{min-height:32px;font-size:10px;border:1px solid #78b8c5;border-radius:10px;padding:5px 9px}.team-tabs button{font-size:12px}.chat-list{max-height:390px;overflow-y:auto;overscroll-behavior:contain;margin:16px -5px 10px;padding:0 5px;scrollbar-width:thin}.chat-message{padding:13px 0;border-bottom:1px solid #d5c393}.chat-message>div{display:flex;align-items:center;gap:8px}.chat-message .player-avatar{height:29px;width:29px;border-width:2px;border-radius:8px}.chat-message strong{font-size:11px;flex:1;overflow-wrap:anywhere}.chat-message time{font-size:9px;color:#8b886a}.chat-message p{margin:7px 0;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;color:#355a6c}.chat-message footer{display:flex;gap:13px}.chat-message footer button{min-height:25px;padding:0;font-size:9px;color:#8d7957;text-decoration:underline}.chat-form{padding-top:15px;border-top:1px solid #d7c395}.social-note{font-size:9px;line-height:1.6;color:#7e8268;display:block;margin-top:13px}.team-goal{text-align:center}.team-goal>.ui-icon{height:78px;width:78px;margin:10px 0 20px}.team-goal progress{width:100%;height:21px;accent-color:#74c65d;margin-top:22px}.team-goal>strong{display:block;font-size:24px;color:#205a73;margin:10px}.team-goal>small{display:block;font-size:9px;color:#7f8469;margin-top:22px}.account-code{text-align:center;border-radius:12px;background:#e9dcae;padding:15px;margin-top:16px}.account-code small{display:block;font-size:10px;color:#8c7956}.account-code strong{font-size:24px;letter-spacing:2px;color:#285c72}
@media(max-height:740px){.online-status{min-height:21px;font-size:8px;margin-top:5px}}

/* 1.18: a readable route from the puzzle back to a living island. */
.next-chapter{display:flex;align-items:center;gap:10px;margin:15px 15px 4px;padding:12px 10px;background:linear-gradient(135deg,#fff5ce,#f3dfaa);border:2px solid #e8bd68;border-radius:15px;color:#20465d;box-shadow:0 3px 0 #745b3760}.next-chapter>img{width:54px;height:65px;object-fit:contain;flex:none}.next-chapter>div{flex:1;min-width:0}.next-chapter span{display:block;font-size:8px;letter-spacing:1px;font-weight:900;color:#85652f}.next-chapter strong{display:block;font-size:15px;line-height:1.2;margin:4px 0}.next-chapter p{font-size:11px;line-height:1.45;margin:5px 0 7px}.mission-track{display:flex;gap:7px;align-items:center}.mission-track progress{height:9px;flex:1;min-width:0;accent-color:#72ac35}.mission-track b{font-size:11px;white-space:nowrap}.next-chapter>button{align-self:flex-end;border:1px solid #58819a;border-radius:10px;background:#205778;color:#fff4c6;padding:9px 8px;font-size:11px;font-weight:850;min-height:38px}.next-chapter>button.ready{background:#4b8c20;border-color:#769c39}.next-chapter>button:disabled{opacity:.5}
.combo-callout{position:absolute;z-index:12;left:50%;top:40%;white-space:nowrap;pointer-events:none;background:linear-gradient(#fff5b8,#fbd15d);border:2px solid #fff6db;border-radius:30px;padding:8px 17px;font:1000 clamp(16px,4vw,24px)/1.2 var(--font);color:#28516a;box-shadow:0 4px 0 #b17e37,0 8px 24px #17385066;text-shadow:0 1px #fff;transform:translateX(-50%)}
.moves-goal .last-moves{color:#a23939;text-shadow:0 1px #fff1c2}.repair-reveal{position:relative;isolation:isolate;width:100%;overflow:hidden;border:2px solid #dbb777;border-radius:14px;background:#1a566c;aspect-ratio:460/260}.repair-reveal>svg,.repair-reveal-after,.repair-reveal-after>svg{position:absolute;inset:0;width:100%;height:100%}.repair-reveal-after{clip-path:inset(0 calc(100% - var(--reveal)) 0 0)}.reveal-tag{position:absolute;top:9px;padding:5px 8px;border-radius:7px;background:#123d58dc;color:#fff2cf;font-size:10px;font-weight:850}.reveal-tag.before{right:8px}.reveal-tag.after{left:8px;background:#347c3cdd}.reveal-divider{position:absolute;left:var(--reveal);top:0;bottom:0;border-left:2px solid #fff4c6;color:#23455a;display:flex;align-items:center;pointer-events:none}.reveal-divider::first-letter{background:#fff0b8}.reveal-control{display:flex;flex-direction:column;gap:8px;font-size:11px;font-weight:800;color:#345970;margin:10px 2px}.reveal-control input{width:100%;accent-color:#2a91a3;min-height:32px}.renovation-reveal:has(.repair-reveal),#modalRenovation:has(.repair-reveal){display:block}
@media(max-width:370px){.next-chapter{margin:12px 10px 4px;padding:10px 8px;gap:6px}.next-chapter>img{width:39px}.next-chapter strong{font-size:13px}.next-chapter p{font-size:10px}.next-chapter>button{padding:8px 5px}}
@media(prefers-reduced-motion:reduce){.combo-callout{display:none}}
.shell-ready .next-chapter{position:relative;align-items:flex-start;padding:11px 12px;gap:8px}.shell-ready .next-chapter>img{width:40px;height:52px;margin-top:8px}.shell-ready .next-chapter>div{padding-bottom:0}.shell-ready .next-chapter strong{font-size:14px}.shell-ready .next-chapter p{font-size:10px;line-height:1.4}.shell-ready .next-chapter>button{position:absolute;right:10px;bottom:9px;min-height:32px;padding:6px 8px}.shell-ready .mission-track{margin-right:66px}.shell-ready .world-card:has(.next-chapter)>.world-guide{display:none}.shell-ready .world-card:has(.next-chapter)>.world-progress{padding-top:7px;padding-bottom:4px}

.power-lesson{width:min(330px,calc(100vw - 36px));padding:24px 20px 18px;border:3px solid #ebc56d;border-radius:24px;background:linear-gradient(155deg,#fff9df,#faebba);color:#254f65;text-align:center;box-shadow:0 7px 0 #967044,0 20px 65px #072c4c77;max-height:calc(100dvh - 36px);overflow:auto}.power-lesson::backdrop{background:#082c49aa;backdrop-filter:blur(3px)}.power-eyebrow{font-size:9px;font-weight:900;letter-spacing:2px;color:#8c6d34;margin:0 0 10px}.power-lesson-icon{width:85px;height:85px;border-radius:24px;display:grid;place-items:center;margin:auto;background:radial-gradient(#fff7c1,#f2c967);border:2px solid #deb45c}.power-lesson-icon .icon{width:69px;height:69px}.power-lesson-icon .col{transform:rotate(90deg)}.power-lesson h2{font:950 26px/1.1 var(--font);margin:17px 0 12px}.power-lesson>p:not(.power-eyebrow){font-size:14px;line-height:1.65;margin:0 0 19px}.power-lesson .primary-button{width:100%;font-size:14px;min-height:48px;margin:0 0 11px}.power-lesson small{font-size:10px;color:#6c7770}.cell.power-focus{outline:3px solid #fff3a8;outline-offset:-2px;z-index:2;animation:power-focus 1s ease-in-out 2}@keyframes power-focus{50%{filter:brightness(1.35)}}@media(prefers-reduced-motion:reduce){.cell.power-focus{animation:none}}
/* 1.20: give the nine-column board the phone width instead of nested card gutters. */
.shell-ready.view-puzzle .game-layout{padding-left:2px;padding-right:2px;max-width:620px}
.shell-ready.view-puzzle .puzzle-heading,.shell-ready.view-puzzle .goal-bar{margin-left:8px;margin-right:8px}
.shell-ready.view-puzzle .board-shell{padding:2px;border-width:2px;border-radius:13px;width:100%;height:auto;aspect-ratio:var(--board-ratio,1)}
@supports(width:1cqw){.shell-ready.view-puzzle .board-shell{width:min(100cqw,calc((100cqh - 8px)*var(--board-ratio,1) + 8px));height:min(100cqh,calc((100cqw - 8px)/var(--board-ratio,1) + 8px))}}
.shell-ready.view-puzzle #board{gap:1px}.shell-ready.view-puzzle .cell .piece{inset:0}.shell-ready.view-puzzle .piece>svg{width:100%;height:100%}.shell-ready.view-puzzle .board-shell::before{inset:1px;border-radius:9px}.shell-ready.view-puzzle .puzzle-tools{margin-left:8px;margin-right:8px}
@media(orientation:portrait){.shell-ready.view-puzzle:not(.puzzles-done) .puzzle-card{grid-template-rows:26px 100px minmax(0,1fr) 32px 42px 48px}}
@media(orientation:portrait) and (max-height:740px){.shell-ready.view-puzzle:not(.puzzles-done) .puzzle-card{grid-template-rows:22px 80px minmax(0,1fr) 28px 36px 42px}}
@media(orientation:portrait) and (max-height:620px){.shell-ready.view-puzzle:not(.puzzles-done) .puzzle-card{grid-template-rows:20px 64px minmax(0,1fr) 28px 32px 38px;gap:4px;padding-bottom:4px}.shell-ready.view-puzzle .goal-bar,.shell-ready.view-puzzle .goal-bar:has(.obstacle-goal:not([hidden])){height:64px}.shell-ready.view-puzzle .goal-guide img{height:73px;width:73px}.shell-ready.view-puzzle .moves-goal>strong{font-size:30px}.shell-ready.view-puzzle .goal-targets[data-count="1"] .goal>div strong{font-size:24px}.shell-ready.view-puzzle .goal-targets[data-count="1"] .goal .icon{height:27px;width:27px}.shell-ready.view-puzzle .puzzle-tools{height:38px}}
/* 1.22: distinct, layered impacts with short anticipation and readable afterglow. */
.fx-charge-aura{position:absolute;width:26%;aspect-ratio:1;border-radius:50%;border:2px solid #fff5b7;background:radial-gradient(transparent 30%,#ffd64288 55%,transparent 71%);box-shadow:0 0 18px #ffdc6b,inset 0 0 18px #fff2b3;animation:chargeGather var(--charge,300ms) ease-in both}
@keyframes chargeGather{0%{opacity:0;transform:translate(-50%,-50%) scale(1.5)}35%{opacity:.7}100%{opacity:.95;transform:translate(-50%,-50%) scale(.32)}}
.power-burst::before{content:"";position:absolute;inset:0;border-radius:10px;background:radial-gradient(ellipse,transparent 20%,#16365055);animation:impactContrast 650ms ease-out both}
@keyframes impactContrast{0%,100%{opacity:0}22%,58%{opacity:1}}
.fx-hit{position:absolute;width:var(--size,38px);height:var(--size,38px);border-radius:38%;background:radial-gradient(circle,#fffef1 0 12%,var(--hit) 25%,transparent 70%);border:2px solid #fff9dc;box-shadow:0 0 14px var(--hit);animation:tileImpact 340ms ease-out var(--delay,0ms) both}
@keyframes tileImpact{0%{opacity:0;transform:translate(-50%,-50%) scale(.25) rotate(-15deg)}22%{opacity:.95;transform:translate(-50%,-50%) scale(1.1) rotate(8deg)}100%{opacity:0;transform:translate(-50%,-50%) scale(1.5) rotate(25deg)}}
.fx-crystal{position:absolute;width:9px;height:13px;background:linear-gradient(130deg,#fff8e5,var(--hit) 35%,var(--hit));clip-path:polygon(50% 0,100% 32%,80% 85%,35% 100%,0 40%);filter:drop-shadow(0 0 3px var(--hit));animation:crystalKick 450ms cubic-bezier(.1,.65,.3,1) var(--delay,0ms) both}
@keyframes crystalKick{0%{opacity:0;transform:translate(-50%,-50%) scale(.2)}12%{opacity:1}60%{opacity:1}100%{opacity:0;transform:translate(calc(-50% + var(--tx)),calc(-50% + var(--ty))) rotate(var(--turn)) scale(.25)}}
.fx-twinkle{position:absolute;width:15px;height:15px;background:#fff8c5;clip-path:polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%);filter:drop-shadow(0 0 4px #fff);animation:glintRise 480ms ease-out var(--delay,0ms) both}
@keyframes glintRise{0%{opacity:0;transform:translate(-50%,-50%) scale(.2)}20%{opacity:1;transform:translate(-50%,-50%) scale(1.2)}100%{opacity:0;transform:translate(calc(-50% + var(--tx)),calc(-50% + var(--ty))) rotate(80deg) scale(.1)}}
.fx-rocket-traveller{width:48px;height:48px;filter:drop-shadow(0 0 5px #fff) drop-shadow(0 0 10px #ffb42e)}.fx-rocket-traveller::before{inset:auto;left:50%;top:50%;width:76px;height:13px;border-radius:60%;background:linear-gradient(90deg,transparent,#ff9a2b 38%,#ffdc58 70%,#fffce6);transform:translate(-100%,-50%) rotate(var(--tail-angle,0deg));transform-origin:100% 50%;filter:blur(2px);opacity:.95}.fx-rocket-traveller .icon{z-index:1}
.fx-beam{background:linear-gradient(90deg,transparent,#ffbb39 12%,#fffef0 50%,#ffe56b 88%,transparent);box-shadow:0 0 6px 2px #fff8c1,0 0 18px 6px #ffbb3877}.fx-beam.vertical{background:linear-gradient(transparent,#ffbb39 12%,#fffef0 50%,#ffe56b 88%,transparent)}
.fx-sunburst{position:absolute;width:55%;aspect-ratio:1;border-radius:50%;background:repeating-conic-gradient(from 12deg,#ffca6344 0 8deg,transparent 8deg 24deg);mask-image:radial-gradient(#000 15%,transparent 70%);animation:blastRays 780ms ease-out var(--delay,0ms) both}
@keyframes blastRays{0%{opacity:0;transform:translate(-50%,-50%) scale(.2) rotate(-12deg)}15%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) scale(2) rotate(22deg)}}
.fx-pressure{position:absolute;width:23%;aspect-ratio:1;border:4px solid #fff4b7;border-radius:50%;box-shadow:0 0 0 6px #ff9c3455,0 0 24px #ffd372,inset 0 0 16px #fff4b7;animation:pressureWave 650ms cubic-bezier(.1,.65,.3,1) var(--delay,0ms) both}
@keyframes pressureWave{0%{opacity:0;transform:translate(-50%,-50%) scale(.1)}12%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) scale(3.2)}}
.fx-blast-core{background:radial-gradient(circle,#fffef4 0 8%,#fff1a3 20%,#ffca4e 37%,#ff923e99 56%,transparent 73%)}.fx-ring{border-color:#fff5c7;background:transparent;box-shadow:0 0 8px #fff4c0,0 0 19px #ffbf4677}.fx-smoke{opacity:.65}
.fx-rainbow-arcs{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}.fx-rainbow-arcs path{fill:none;stroke:var(--ray);stroke-width:1.05;stroke-linecap:round;stroke-dasharray:160;filter:drop-shadow(0 0 1.4px var(--ray));animation:rainbowConnect 650ms ease-out var(--delay,0ms) both}
@keyframes rainbowConnect{0%{opacity:0;stroke-dashoffset:160;stroke-width:.2}20%{opacity:1}65%{opacity:.95;stroke-dashoffset:0;stroke-width:1.05}100%{opacity:0;stroke-dashoffset:0;stroke-width:.2}}
.fx-target-ring{position:absolute;width:18%;aspect-ratio:1;border:2px solid #c8fcff;border-radius:50%;box-shadow:0 0 15px #76e9f2,inset 0 0 9px #b6fff2;animation:targetLock 430ms ease-out var(--delay,0ms) both}
@keyframes targetLock{0%{opacity:0;transform:translate(-50%,-50%) scale(1.3)}30%{opacity:1;transform:translate(-50%,-50%) scale(.65)}100%{opacity:0;transform:translate(-50%,-50%) scale(.3)}}
@media(prefers-reduced-motion:reduce){.fx-charge-aura,.fx-hit,.fx-crystal,.fx-twinkle,.fx-pressure,.fx-sunburst,.fx-rainbow-arcs,.fx-target-ring{display:none!important}}

/* Expansion menus remain readable on phone widths. */
.chapter-select{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.set-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding-bottom:8px}.set-tabs button{min-width:0;max-width:none;white-space:normal;padding:8px 6px;overflow-wrap:anywhere}.collection-art{display:block;width:100%;height:100%}.collect-card.missing .collection-art{filter:saturate(.25) brightness(.72)}.locked-cards .collection-art{filter:saturate(.25) brightness(.72);object-fit:cover}.legacy-set-reward{font-size:13px;text-align:center;color:#526b58;margin:12px 0}
/* Four clear objective silhouettes: blue ice, amber lamps, pink shells, green vines. */
.ice-cover,.plant-cover{position:absolute;inset:2%;pointer-events:none;z-index:3;display:grid;place-items:center}.ice-cover>.icon,.plant-cover>.icon{height:100%;width:100%;filter:drop-shadow(0 2px 1px #174b6d77)}.ice-cover>.icon{opacity:.46}.ice-3>.icon{opacity:.62}.ice-1>.icon{opacity:.33;clip-path:polygon(0 0,72% 0,60% 38%,100% 60%,100% 100%,0 100%)}.ice-cover b{position:absolute;right:1px;bottom:1px;min-width:16px;height:16px;border-radius:50%;background:#e5fbff;color:#155474;border:1px solid #71bddf;font-size:11px;line-height:14px;box-shadow:0 1px 2px #133d66}.plant-cover{inset:4%;background:radial-gradient(#8bce75,#317d57);border:2px solid #a6db8a;border-radius:22%}.has-plant .piece{opacity:.15}.plant-cover>.icon{width:88%;height:88%}.lantern-marker{position:absolute;bottom:0;left:8%;right:8%;height:34%;display:flex;align-items:center;justify-content:center;gap:3px;background:#76582fe6;border:1px solid #ffd371;border-radius:8px;z-index:4;pointer-events:none}.lantern-marker>.icon{width:20px;height:25px;flex:none;filter:drop-shadow(0 1px 1px #532d24)}.lantern-marker i{width:6px;height:6px;border-radius:50%;background:#635d56;border:1px solid #ddc486}.lantern-marker i.lit{background:#fff7a5;box-shadow:0 0 4px #ffe183}.lantern-marker.covered{filter:saturate(.15);opacity:.85}.lantern-marker.charge-2{background:#f2b845;box-shadow:0 0 8px #ffe07a}.cargo-piece{filter:drop-shadow(0 3px 1px #69497d)}.cargo-piece>.icon{width:94%;height:94%}.exit-marker{position:absolute;bottom:-3px;left:28%;right:28%;height:15px;line-height:15px;text-align:center;color:#fff8bd;background:#c98627;border:1px solid #ffe49a;border-radius:6px;z-index:5;pointer-events:none;font-size:12px}.many-goals .goal-guide{display:none}.view-puzzle .puzzle-view.many-goals .goal-bar{grid-template-columns:minmax(0,2fr) minmax(76px,1fr)}.view-puzzle .mechanic-goal>div{display:flex;align-items:center;justify-content:center}.view-puzzle .mechanic-goal .mechanic-art{height:30px;width:30px}.hard-level .puzzle-heading .eyebrow{color:#fff0ad;background:#693d88;padding:3px 5px;border-radius:5px}.level-dot[aria-label*="moeilijk"]{background:#784b98;color:#fff1b6;border-color:#c79ce4}.power-dialog .mechanic-art{width:100%;height:100%}
.delivered-shell{position:absolute;z-index:15;pointer-events:none;aspect-ratio:1;transform:translate(-50%,-50%);filter:drop-shadow(0 0 8px #fff3b0)}.delivered-shell .icon{height:100%;width:100%}
/* A low contrast regional wash keeps the pieces readable and matches the chapter. */
.view-puzzle .puzzle-view[data-chapter="1"]{background:radial-gradient(ellipse at 40% 0,#338b7980,transparent 70%)}.view-puzzle .puzzle-view[data-chapter="2"]{background:radial-gradient(ellipse at 40% 0,#3b745480,transparent 70%)}.view-puzzle .puzzle-view[data-chapter="3"]{background:radial-gradient(ellipse at 40% 0,#805ca980,transparent 70%)}.view-puzzle .puzzle-view[data-chapter="4"]{background:radial-gradient(ellipse at 40% 0,#8bc9e5a0,transparent 70%)}
.view-puzzle .puzzle-view[data-chapter="1"]{background-image:linear-gradient(#154e69de,#154e69ed),url('./assets/backdrops/garden.webp?v=1.56');background-size:cover;background-position:center}.view-puzzle .puzzle-view[data-chapter="2"]{background-image:linear-gradient(#174f55de,#154e69ed),url('./assets/backdrops/forest.webp?v=1.56');background-size:cover;background-position:center}.view-puzzle .puzzle-view[data-chapter="3"]{background-image:linear-gradient(#3b416bde,#154e69ed),url('./assets/backdrops/stars.webp?v=1.56');background-size:cover;background-position:center}.view-puzzle .puzzle-view[data-chapter="4"]{background-image:linear-gradient(#234d70cf,#154e69e8),url('./assets/backdrops/winter.webp?v=1.56');background-size:cover;background-position:center}

.update-dialog{text-align:center;padding:28px 24px 20px;max-width:410px}.update-emblem{font-size:64px;line-height:1;color:#ffdf68;text-shadow:0 3px #af772c;margin:6px 0 14px}.update-dialog h2{font-size:30px;line-height:1.15;margin:0 0 12px}.update-version{font-weight:900;color:#fff1bd}.update-notes{background:#0a467b;border:1px solid #7ec6d7;border-radius:14px;padding:14px;margin:18px 0;font-weight:700}.update-copy{color:#d9edf1;line-height:1.6;margin:18px 0 24px}.update-later{display:block;margin:12px auto 0;min-height:44px;padding:8px 24px;color:#fff0be;text-decoration:underline;text-underline-offset:3px}

.language-dialog{text-align:center;padding:25px;max-width:430px}.language-dialog h2{font-size:29px;margin:0 0 12px}.language-dialog p{color:#e0f2f1;line-height:1.6}.language-options{display:grid;gap:10px;margin:20px 0;max-height:45dvh;overflow:auto;padding:3px}.language-options button{display:flex;align-items:center;justify-content:space-between;text-align:start;background:#0a4779;border:2px solid #7dc8d7;border-radius:14px;padding:15px 18px;font-size:19px;font-weight:800;color:#fff0bd;min-height:58px}.language-options button[aria-pressed=true]{background:#146c72;border-color:#ffdf68;box-shadow:0 0 0 2px #ffdf6855}.language-dialog .green-button{margin-top:18px}.friend-code .green-button{margin-top:12px}.team-list-row{flex-wrap:wrap}.team-list-row .mini-button{min-height:44px}.social-form input,.social-form textarea{max-width:100%}

.language-options{grid-template-columns:repeat(2,minmax(0,1fr));max-height:50dvh}.language-options button{font-size:17px;padding:13px 12px;gap:7px}.language-options button span{color:#ffe276}.update-dialog,.language-dialog{overflow:auto}.team-list-row>span{min-width:0;overflow-wrap:anywhere}
/* Multiscript text: use installed system fonts, preserving offline play. */
:lang(zh-Hans){font-family:"Luma SC",system-ui,"Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif}
:lang(zh-Hant){font-family:"Luma TC",system-ui,"Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif}
:lang(ja){font-family:"Luma JP",system-ui,"Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif}
:lang(ko){font-family:"Luma KR",system-ui,"Noto Sans KR","Apple SD Gothic Neo","Malgun Gothic",sans-serif}
:lang(hi){font-family:"Luma Devanagari",system-ui,"Noto Sans Devanagari","Nirmala UI",sans-serif;line-height:1.6;letter-spacing:normal}
:lang(th){font-family:"Luma Thai",system-ui,"Noto Sans Thai","Leelawadee UI",sans-serif;line-height:1.65;letter-spacing:normal}
:lang(vi){font-family:system-ui,"Noto Sans",sans-serif;line-height:1.5}
.language-options button{overflow-wrap:anywhere;line-height:1.45}.language-options button:lang(id){font-size:15px}
html:is(:lang(zh),:lang(ja),:lang(ko),:lang(hi),:lang(th)) .goal-label,html:is(:lang(zh),:lang(ja),:lang(ko),:lang(hi),:lang(th)) .chapter-kicker{letter-spacing:normal}
html:is(:lang(hi),:lang(th)) :is(.player-dialog,.cream-card) :is(h1,h2,h3,p,button){line-height:1.55}
.language-dialog{max-height:94dvh}.language-options{overscroll-behavior:contain;scrollbar-gutter:stable}

@font-face{font-family:"Luma SC";src:url("./assets/fonts/sc.woff2?v=1.98") format("woff2");font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:"Luma TC";src:url("./assets/fonts/tc.woff2?v=1.98") format("woff2");font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:"Luma JP";src:url("./assets/fonts/ja.woff2?v=1.98") format("woff2");font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:"Luma KR";src:url("./assets/fonts/ko.woff2?v=1.98") format("woff2");font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:"Luma Devanagari";src:url("./assets/fonts/hi.woff2?v=1.98") format("woff2");font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:"Luma Thai";src:url("./assets/fonts/th.woff2?v=1.98") format("woff2");font-weight:100 900;font-style:normal;font-display:swap}

/* Four local profile statistics, with social features disabled. */
.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}

/* 1.33: a readable detonation silhouette, above the tiles and below dialogs. */
.bomb-detonation{position:absolute;aspect-ratio:1;z-index:8;pointer-events:none;transform-origin:center;will-change:transform,opacity;filter:drop-shadow(0 2px 3px #a5483266)}
.bomb-detonation svg{display:block;width:100%;height:100%}
@media(prefers-reduced-motion:reduce){.bomb-detonation{transform:translate(-50%,-50%);filter:none}}

.board-effect-surface{position:absolute;pointer-events:none;overflow:hidden;border-radius:9px;z-index:8;contain:layout paint}

.clearing-surface{z-index:6}.clearing-ghost{pointer-events:none!important;background:transparent!important;box-shadow:none!important;border:0!important;aspect-ratio:auto!important;min-height:0!important}

.match-shard{position:absolute;display:block;pointer-events:none;transform-origin:50% 55%;will-change:transform,opacity}.match-shard .piece{position:absolute;inset:0;display:grid;place-items:center}.match-shard .piece>svg{width:100%;height:100%}

.match-burst .fx-hit{animation-duration:180ms;border-width:1px;box-shadow:none;background:radial-gradient(circle,#fffce899,var(--hit) 25%,transparent 65%)}.match-burst .fx-crystal{display:none}

/* 1.45: rocket flight and per-cell hits share the same linear travel clock. */
.fx-rocket-traveller{animation-name:rocketFlight;animation-timing-function:linear;filter:none;width:38px;height:38px}
.fx-rocket-traveller::before{width:48px;height:9px;filter:none}
@keyframes rocketFlight{
 from{opacity:1;transform:translate(-50%,-50%)}
 98%{opacity:1}
 to{opacity:0;transform:translate(calc(-50% + var(--tx)),calc(-50% + var(--ty)))}
}

#performanceMeter{position:fixed;right:8px;top:8px;z-index:200;max-width:280px;width:calc(100vw - 16px);padding:12px;border:1px solid #96bccc;border-radius:12px;background:#072d43f5;color:white;font:12px/1.4 system-ui;box-shadow:0 3px 15px #0005}#performanceMeter p{margin:7px 0}#performanceMeter pre{font:12px/1.4 monospace;white-space:pre-wrap;margin:8px 0}#performanceMeter button{background:#d6f0f0;color:#123d52;padding:7px;margin:3px;border-radius:6px;font-weight:700;min-height:32px}#performanceMeter small{display:block;font-size:10px;margin-top:6px}

/* Keep the board playable while diagnostics are recording. */
#performanceMeter{box-sizing:border-box;max-height:calc(100dvh - 16px);overflow:auto}
#performanceLive{font-size:11px}
#performanceMeter.meter-running{width:auto;max-width:260px;padding:5px 8px;pointer-events:none;font-size:11px}
#performanceMeter.meter-running p,#performanceMeter.meter-running pre,#performanceMeter.meter-running small,#performanceMeter.meter-running #performanceStart,#performanceMeter.meter-running #performanceClose{display:none}
#performanceMeter.meter-running button{pointer-events:auto;min-height:32px;padding:4px 8px;margin:0 0 0 5px}

.match-shard>svg{display:block;width:100%;height:100%;filter:none}

/* 1.48: one persistent sprite per stone, shared across the complete turn. */
#board.turn-presenting>.cell.turn-covered>*{visibility:hidden}
.turn-surface{position:absolute;pointer-events:none;overflow:hidden;z-index:8;contain:layout paint;border-radius:9px}
.turn-floor-cell,.turn-fixed-overlay,.turn-actor{position:absolute!important;min-height:0!important;aspect-ratio:auto!important;margin:0;padding:0}
.turn-floor-cell{z-index:0;pointer-events:none;border:0}
.turn-floor-cell.even{background:linear-gradient(135deg,#96a9da,#8295c7)}
.turn-floor-cell.odd{background:linear-gradient(135deg,#a2b4e3,#8c9ed0)}
.turn-floor-cell.path,.turn-floor-cell.path.even{background:linear-gradient(135deg,#ffeeb6,#eabe5b)}
.turn-floor-cell.lit,.turn-floor-cell.lit.even{background:linear-gradient(#fff6a9,#ffdd65)}
.turn-floor-cell.chained,.turn-floor-cell.chained.even{background:linear-gradient(135deg,#a4b4c9,#7893b5)}
.turn-floor-cell.crate,.turn-floor-cell.crate.even{background:#bf8d52}
.turn-floor-cell.is-special,.turn-floor-cell.is-special.even{background:linear-gradient(#b9b5ed,#9790ce)}
.turn-lane{position:absolute;inset:0;z-index:2;pointer-events:none}
.turn-actor{background:none!important;box-shadow:none!important;border:0!important;transform-origin:center}
.turn-actor .piece,.turn-rocket .piece,.turn-flyer .piece,.turn-payload .piece{position:absolute;inset:0;display:grid;place-items:center;transform-origin:50% 70%;will-change:transform,opacity}
.turn-actor .piece>svg{width:100%;height:100%}
.turn-actor .piece,.turn-rocket .piece,.turn-flyer .piece,.turn-payload .piece{will-change:auto}
.turn-actor .box-piece>svg{width:103%;height:103%}
/* This stylesheet is loaded last: adventure.css otherwise reintroduces an
   SVG drop-shadow filter on every moving stone. Tile shading stays in the art. */
.piece>svg,.piece>.power-art,.cell.crate .box-piece>svg{filter:none}
.turn-fixed-overlay{z-index:3;pointer-events:none}
.turn-chip{position:absolute;z-index:4;background:var(--chip);border:1px solid #ffffff88;border-radius:25%;pointer-events:none}
.turn-rocket,.turn-flyer{position:absolute;z-index:5;pointer-events:none;transform-origin:center}
.turn-rocket svg,.turn-flyer svg{width:100%;height:100%}
.turn-flyer:before{content:'';position:absolute;inset:17%;z-index:-1;border:1px solid var(--flight-accent,#ffe7a0);border-radius:50%;background:#123c62a8;box-shadow:0 0 0 2px #123c6255}
.turn-rocket:before{content:'';position:absolute;inset:25%;border-radius:50%;background:#fff4bd;box-shadow:0 0 8px #ffc746}
.turn-payload{position:absolute;left:45%;top:45%;width:65%;height:65%}
.turn-blast{position:absolute;z-index:4;pointer-events:none;border:4px solid #fff6ca;border-radius:50%;background:radial-gradient(circle,#fffbe8 0 8%,#ffe077bb 17%,#ffac4266 40%,transparent 67%);box-shadow:0 0 0 2px #ed8a28,0 0 9px #ffd259aa}
.turn-prism-ray{position:absolute;height:3px;border-radius:3px;transform-origin:left center;background:linear-gradient(90deg,#fff6a5,#a9f7ff);box-shadow:0 0 4px #cffaff;z-index:4}
.turn-combo-ray{position:absolute;z-index:4;pointer-events:none;background:#fff2af;box-shadow:0 0 7px #ffc84c;border-radius:5px}
.turn-cue{position:absolute;width:0;height:0;pointer-events:none}
.turn-route{z-index:1}

/* Readable at phone scale and in quick mode, without delaying falling stones. */
.turn-rocket-trail{position:absolute;z-index:4;pointer-events:none;transform-origin:left center}
.turn-rocket-wake{display:block;width:100%;height:100%;border-radius:999px;transform-origin:left center;background:linear-gradient(180deg,#ef861d,#ffca42 24%,#fffde3 46% 64%,#ffc444 80%,#ec861e);box-shadow:0 0 6px #ffd76bcc}
.turn-rocket-engine{position:absolute;left:50%;top:50%;width:180%;height:30%;transform-origin:100% 50%;transform:translate(-100%,-50%) rotate(var(--heading));clip-path:polygon(0 50%,25% 15%,58% 0,100% 20%,100% 80%,58% 100%,25% 85%);background:linear-gradient(90deg,#ff790c,#ffc139 38%,#fff9d5 78%)}
.turn-launch-flash{position:absolute;z-index:6;pointer-events:none;background:radial-gradient(circle,#fffef0 0 18%,#ffe172 38%,#ffad36 68%);clip-path:polygon(50% 0,61% 29%,85% 10%,76% 38%,100% 50%,76% 62%,85% 90%,61% 71%,50% 100%,39% 71%,15% 90%,24% 62%,0 50%,24% 38%,15% 10%,39% 29%)}
.turn-power-spark{position:absolute;z-index:5;pointer-events:none;background:#fff9d6;border:2px solid #ffad23;border-radius:2px;box-shadow:0 0 4px #ffdc70}
.turn-target-ring{position:absolute;z-index:6;pointer-events:none;border:2px solid var(--flight-accent,#ffe7a0);border-radius:50%;box-shadow:0 0 0 1px #123c6288,inset 0 0 0 1px #fff8}
.turn-prism-halo{position:absolute;z-index:4;pointer-events:none;border:4px solid #ffe58b;border-top-color:#88e8fa;border-right-color:#da95ff;border-bottom-color:#ffc6e4;border-radius:50%;box-shadow:0 0 5px #ffef9e88}
.turn-prism-ray{background:linear-gradient(90deg,#fff6a5,var(--ray,#a9f7ff));box-shadow:0 0 4px var(--ray,#cffaff)}
/* Explicit motion preference is independent of the quick-effects duration. */

/* HUD artwork and values occupy separate space; icons never cover counters. */
.shell-ready:not(.view-puzzle) .topbar{display:grid;grid-template-columns:48px minmax(0,1fr) 64px auto;gap:8px;width:100%;height:80px;flex:none}
.shell-ready:not(.view-puzzle) .profile-open .player-avatar{width:48px;height:48px}
.shell-ready:not(.view-puzzle) .hud-wallet{margin:0;min-width:0;min-height:44px;height:44px;padding:4px 6px;gap:4px;justify-content:center}
.shell-ready:not(.view-puzzle) .hud-wallet>.ui-icon{position:static;width:28px;height:28px;margin:0}
.shell-ready:not(.view-puzzle) .hud-wallet>strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.shell-ready:not(.view-puzzle) .wallet-plus{position:static;width:18px;height:18px;flex:none;font-size:16px}
.shell-ready:not(.view-puzzle) .heart-wallet{display:grid;grid-template-columns:28px minmax(10px,1fr);grid-template-rows:28px 12px;column-gap:3px;row-gap:0;height:54px;min-height:54px}
.shell-ready:not(.view-puzzle) .heart-wallet>.ui-icon{grid-column:1;grid-row:1}
.shell-ready:not(.view-puzzle) .heart-wallet>strong{grid-column:2;grid-row:1}
.shell-ready:not(.view-puzzle) .heart-wallet>#lifeTimer{position:static;grid-column:1/-1;grid-row:2;color:#3c684e;line-height:12px;text-shadow:none}
.shell-ready:not(.view-puzzle) .header-tools{margin:0;flex-shrink:0}

/* Header, scrollable page and navigation each own a row of the viewport. */
body.shell-ready:not(.view-puzzle){display:flex;flex-direction:column;height:100dvh;min-height:0;padding-bottom:0;overflow:hidden}
.shell-ready:not(.view-puzzle) .game-layout{flex:1;min-height:0;width:100%;overflow-y:auto;overscroll-behavior-y:contain;padding-bottom:24px}
.shell-ready:not(.view-puzzle) .menu-view{flex:1;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;margin:0 auto}
.shell-ready:not(.view-puzzle) .bottom-nav{position:relative;left:auto;bottom:auto;transform:none;align-self:center;flex:none;margin-top:auto}
.bottom-nav button{gap:3px;padding:6px 2px}
.bottom-nav button.selected .ui-icon{transform:none;margin:0;filter:drop-shadow(0 2px 1px #163d6150)}
.bottom-nav button.selected span{font-size:11px}

/* The mission action has its own row below the complete progress indicator. */
.shell-ready .next-chapter{display:grid;grid-template-columns:40px minmax(0,1fr);gap:10px;align-items:start}
.shell-ready .next-chapter>img{grid-column:1;grid-row:1}
.shell-ready .next-chapter>div{grid-column:2;grid-row:1;min-width:0}
.shell-ready .next-chapter>button{grid-column:1/-1;grid-row:2;position:static;align-self:stretch;justify-self:stretch;min-height:44px;padding:9px 12px;white-space:normal}
.shell-ready .mission-track{margin:0;gap:8px}
@media(max-width:370px){
 .shell-ready:not(.view-puzzle) .topbar{grid-template-columns:40px minmax(0,1fr) 58px auto;padding:8px;gap:6px}
 .shell-ready:not(.view-puzzle) .profile-open .player-avatar{width:40px;height:40px}
 .shell-ready:not(.view-puzzle) .hud-wallet{padding:3px 4px;gap:3px;font-size:13px}
 .shell-ready:not(.view-puzzle) .hud-wallet>.ui-icon{width:24px;height:24px}
 .shell-ready:not(.view-puzzle) .wallet-plus{width:16px;height:16px;font-size:14px}
 .shell-ready:not(.view-puzzle) .heart-wallet{grid-template-columns:24px minmax(10px,1fr)}
}
.luma-store{min-width:0;padding-bottom:20px}.luma-store h2{font-size:21px;color:#fff1bc;margin:20px 0 9px}.luma-store .store-stock>p,.store-intro{font-size:13px;line-height:1.6;color:#d1e7e9;margin:0 0 16px}.luma-store .shop-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.luma-store .product{min-width:0;padding:15px 12px}.luma-store .product h3{font-size:17px;margin:9px 0;color:#254e65}.luma-store .product p{font-size:12px;line-height:1.5;min-height:54px}.luma-store .product small{display:block;margin:8px 0}.luma-store .product button{min-height:44px;width:100%;display:flex;justify-content:center;gap:5px;align-items:center}.luma-store .product button .ui-icon{width:23px;height:23px}.store-power{display:block;width:42px;height:42px}.product-art>.store-power{width:70px;height:70px}.store-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:27px}.store-status{display:inline-block;font-size:10px;font-weight:850;letter-spacing:.3px;color:#244f64;background:#d5e7df;border:1px solid #9ebfb3;padding:5px 8px;border-radius:20px;white-space:nowrap}.store-bundles{display:grid;gap:17px}.store-bundle{border:3px solid #eccb7b;border-radius:22px;overflow:hidden;background:linear-gradient(135deg,#fff8dc,#e9d7aa);color:#28516a;min-width:0}.store-bundle-head{padding:13px 16px 5px;display:flex;flex-wrap:wrap;align-items:center;gap:9px}.store-bundle-head h3{font-size:20px;line-height:1.2;margin:0;overflow-wrap:anywhere}.store-bundle-content{display:grid;grid-template-columns:minmax(92px,.8fr) minmax(0,1.2fr);align-items:center;gap:10px;padding:6px 16px}.store-bundle-coins{text-align:center;min-width:0}.store-coins{display:block;width:104px;max-width:100%;height:79px;margin:auto}.store-bundle-coins strong{font-size:27px;font-weight:950;display:block;line-height:1.1;color:#28536b}.store-bundle-coins span{font-size:10px}.store-bundle-items{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;align-items:center}.store-bundle-items>div{display:grid;justify-items:center;gap:4px}.store-bundle-items strong{font-size:14px}.store-planned{margin:9px 16px 13px;font-size:11px;line-height:1.5;color:#6a674c}.store-bundle footer{display:flex;gap:10px;justify-content:space-between;align-items:center;background:linear-gradient(125deg,#247f95,#155273);padding:11px 14px;border-top:1px solid #f0d58d}.store-bundle footer .blue-button{min-height:44px;font-size:12px;padding:9px 12px;border:1px solid #87bec7;background:#246b85}.store-price{min-height:44px;padding:8px 11px;white-space:nowrap;font-size:21px;font-weight:900;color:#e9eee5;background:linear-gradient(#748e83,#4d6e68);border:1px solid #b1c5ab;border-radius:12px;opacity:1!important;cursor:default}.store-bundle .store-price{min-width:112px}.store-coin-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}.store-coin-pack{border:2px solid #e0bf74;border-radius:17px;background:linear-gradient(140deg,#fff7db,#dfc99b);padding:9px 5px 7px;text-align:center;min-width:0;color:#2a5265}.store-coin-pack .store-coins{width:85px;height:66px}.store-coin-pack h3{font-size:19px;font-weight:900;line-height:1.2;margin:0}.store-coin-pack>span{display:block;font-size:10px;margin:2px 0 9px}.store-coin-pack .store-price{display:block;width:100%;font-size:16px;padding:9px 3px}.offer-details{line-height:1.6}.offer-details h3{font-size:20px;margin:14px 0 6px}.offer-details ul{padding-left:20px;font-size:13px}.offer-details p{font-size:13px}.offer-detail-price{font-size:25px}.settings-expanded .toggle,.settings-card .toggle[data-pref]{width:66px;height:44px;min-height:44px;padding:7px 4px}.settings-expanded .toggle>span,.settings-card .toggle[data-pref]>span{width:26px;height:26px;margin-top:0}.settings-expanded .toggle.on>span,.settings-card .toggle[data-pref].on>span{translate:27px}.settings-card>div>span{min-width:0}.settings-card small{line-height:1.5}.settings-card .toggle:disabled{opacity:.5}.save-text{display:block;box-sizing:border-box;width:100%;height:190px;resize:vertical;margin-top:10px;padding:10px;border:1px solid #b59b65;border-radius:10px;background:#fff9e9;color:#254c60;font:11px/1.5 monospace}.support-text{height:120px}.view-puzzle .booster-bar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:min(360px,100%);margin-inline:auto}.view-puzzle .booster-bar button{width:auto;min-width:0;justify-content:center;padding:5px}.view-puzzle .booster-bar .icon{width:26px;height:26px}
@media(min-width:700px){.luma-store .shop-products{grid-template-columns:repeat(4,minmax(0,1fr))}.store-bundles{grid-template-columns:repeat(2,minmax(0,1fr))}.store-coin-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:350px){.store-bundle-content{padding-inline:10px;gap:6px}.store-bundle-head{padding-inline:10px}.store-bundle-head h3{font-size:18px}.store-bundle-items .store-power{width:34px;height:34px}.store-bundle-coins strong{font-size:23px}.store-section-title{flex-wrap:wrap}.store-coin-grid{gap:7px}.store-coin-pack h3{font-size:16px}.store-coin-pack .store-price{font-size:14px}.luma-store .product h3{font-size:15px}}

.store-switch{display:grid;grid-template-columns:1fr 1.4fr;gap:8px;margin:12px 0 19px}.store-switch .blue-button{min-height:44px;font-size:12px;padding:8px;min-width:0}
.luma-store .store-subtitle{color:#fff1bc;font-size:19px;margin:24px 0 6px}.luma-store .store-caption{color:#d1e7e9;font-size:13px;line-height:1.55;margin:0 0 15px}
.store-coin-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.store-coin-pack{padding:12px 8px}.store-coin-pack h3{font-size:26px}.store-coin-pack .store-price{font-size:22px;min-height:46px}.store-example{font-size:11px;line-height:1.4;margin:7px 0 12px;color:#526252}
.store-bundle-head{justify-content:space-between;padding-top:16px}.store-purpose{margin:8px 16px 12px;font-size:13px;line-height:1.5;color:#54604e}.store-bundle-content{display:block;padding:5px 16px 16px}.store-bundle-items{display:flex;justify-content:center;gap:10px}.store-bundle-items>div{flex:1;min-width:0;max-width:75px}.store-bundle-items .store-power{width:48px;height:48px}.store-bundle-items span{font-size:10px;line-height:1.3;text-align:center;overflow-wrap:anywhere}.store-bundle-extra{display:flex;align-items:center;justify-content:center;gap:5px;margin:13px 0 0;font-size:14px}.store-bundle-extra .ui-icon{width:23px;height:23px}
.luma-store .shop-products,.store-coin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.store-bundles{grid-template-columns:1fr}
.home-title .brand-heading{margin:7px 0 3px;line-height:1}.brand-logo{display:block;width:min(100%,310px);height:auto;margin-inline:auto}.desktop-mark>.brand-emblem{display:block;width:126px;height:126px;object-fit:contain;margin-bottom:10px}.desktop-mark>strong{font:700 38px/1.1 Georgia,serif;letter-spacing:.2px}
@media(max-height:740px){.home-title .brand-logo{width:min(100%,260px)}}

/* Player support and readable content announcements. */
.support-form label{display:block;font-size:15px;font-weight:800;color:#244f62;margin:18px 0 8px}.support-form h3{margin-top:0}.support-form select,.support-form input,.support-form textarea{display:block;box-sizing:border-box;width:100%;min-width:0;min-height:48px;padding:11px 13px;border:2px solid #c7b27b;border-radius:12px;background:#fffcef;color:#214c60;font:inherit;font-size:16px;line-height:1.45}.support-form textarea{min-height:115px;resize:vertical;max-height:230px}.support-form .support-storage-note{font-size:12px;line-height:1.6;color:#73775f;margin:16px 0 0}.support-status:empty{display:none}.support-status{font-size:14px;line-height:1.6;overflow-wrap:anywhere}.support-form button{margin-top:14px}.support-form :disabled{opacity:.65}.support-receipt p{overflow-wrap:anywhere}.announcement-list{display:grid;gap:18px}.announcement-entry{margin:0!important}.announcement-entry time{display:block;font-size:12px;font-weight:700;color:#8d794f;margin-bottom:10px}.announcement-entry h3{margin:0 0 13px}.announcement-entry ul{margin:0;padding-left:22px;list-style:disc}.announcement-entry li{padding:5px 0;font-size:15px;line-height:1.65;color:#656d58}

/* A fourth tab gives the shop a permanent, equal-size home. */
.bottom-nav button[data-screen="shop"]{min-width:0}.store-stock+.store-prepared{margin-top:22px}.store-availability{display:flex;justify-content:flex-end;margin:0 0 13px}.luma-store .store-bundles{margin-top:18px}

/* One near-term collection goal, separate from the complete album. */
.collection-focus{margin:0 0 16px;border-color:#e3c77a}.collection-focus>small{display:block;color:#637968;font-size:12px;margin-bottom:5px}.collection-focus>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.collection-focus strong{font-size:16px;line-height:1.3}.collection-focus>div>span{font-weight:800;color:#16798a;white-space:nowrap}.collection-focus .full{margin-top:12px}

.collection-focus>progress{display:block;width:100%;height:10px;margin-top:10px;accent-color:#168d9e}.collection-focus~.album-summary{padding:10px 16px;margin-bottom:16px}.collection-focus~.album-summary>.ui-icon{width:42px;height:42px}.collection-focus~.album-summary strong{font-size:16px}

/* The isolated candidate is always visibly marked on every main game screen. */
.test-badge{display:inline-block;vertical-align:middle;padding:3px 7px;border-radius:7px;background:#ffe183;color:#143a55;font:800 11px/1.2 sans-serif;letter-spacing:1px}.account-summary p{overflow-wrap:anywhere}[data-account-view] p{overflow-wrap:anywhere}[data-account-confirm]{width:22px;height:22px;vertical-align:middle;margin-right:8px}

/* The 1,000-puzzle voyage keeps phone navigation bounded to one chapter. */
.level-chapter-tabs{display:flex;gap:8px;overflow-x:auto;padding:5px 2px 12px;scrollbar-width:thin;scroll-snap-type:x proximity}
.level-chapter-tabs button{flex:0 0 auto;max-width:220px;min-height:44px;border:1px solid #d6b06b;border-radius:12px;padding:8px 13px;background:#f4e6bd;color:#27546a;font-weight:800;scroll-snap-align:start}
.level-chapter-tabs button.active{background:linear-gradient(#39a8b6,#16738c);color:#fff4d1;border-color:#7dd0d6;box-shadow:0 3px 0 #0e4c69}
#levelPickerChapter{color:#25516c;font-size:16px;margin:8px 0 14px}
.shell-ready #levelDots{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;max-height:46dvh;overflow-y:auto;padding:3px 3px 10px}
.shell-ready #levelDots>.level-dot{width:100%;height:46px;min-height:46px;font-size:13px;border-radius:12px}
.collection-picker{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:8px;align-items:end;margin:20px 0}
.collection-picker>button{min-height:48px;font-size:32px;line-height:1;border:2px solid #edc477;border-radius:12px;background:linear-gradient(#2b99ad,#166187);color:#fff2c8;box-shadow:0 3px 0 #0a4263}
.collection-picker label{min-width:0;display:block;color:#f7e7b8;font-size:11px;font-weight:800}
.collection-picker label>span{display:block;margin-bottom:5px}
.collection-picker select{display:block;width:100%;min-height:48px;border:2px solid #edc477;border-radius:12px;padding:8px 30px 8px 10px;background:#fff2cf;color:#214f69;font:800 13px var(--font);text-overflow:ellipsis}
.collection-picker select:focus-visible{outline:3px solid #97dce3;outline-offset:3px}
@media(max-width:360px){.shell-ready #levelDots{grid-template-columns:repeat(5,minmax(0,1fr))}.collection-picker{gap:5px;grid-template-columns:40px minmax(0,1fr) 40px}}

/* Account entry: the official Google mark stays on a neutral button surface. */
.google-account-card{margin:0 0 24px;padding:17px 15px 14px;border:2px solid #d8bc72;border-radius:18px;background:linear-gradient(130deg,#fff9e2,#efdfb5);box-shadow:0 4px 0 #123f5a33;color:#31566b}.google-account-button{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:48px;padding:11px 14px;border:1px solid #747775;border-radius:6px;background:#fff;color:#1f1f1f;font:500 15px/1.35 Arial,sans-serif;text-align:center;text-shadow:none;box-shadow:0 1px 2px #163b4d18}.google-account-button:hover:not(:disabled){background:#f6f9ff;border-color:#1a73e8}.google-account-button:focus-visible{outline:3px solid #1a73e8;outline-offset:4px}.google-account-button:active:not(:disabled){background:#e8f0fe}.google-account-button:disabled{opacity:.65;cursor:wait}.google-mark{width:20px;height:20px;flex:0 0 20px}.google-account-button>span[data-google-label]{min-width:0;overflow-wrap:anywhere}.google-account-check{font-size:18px;line-height:1;color:#188038;font-weight:700}.google-account-check[hidden]{display:none}.google-account-card p{font-size:12px;line-height:1.6;margin:11px 2px 0;text-align:center;color:#586f69}.google-account-card[data-google-state="conflict"]{border-color:#d49438}.google-account-card[data-google-state="conflict"] p{color:#815422}.profile-card+.google-account-card{margin-top:-8px}
