:root{
  --bg:#05070c;--panel:#08111d;--panel2:#0c1829;--text:#f5f8ff;--muted:#9fb1cb;
  --blue:#20cfff;--blue2:#5aa8ff;--cyan:#34e9ff;--gold:#ffc44f;--danger:#ff5575;
  --green:#36e4bb;--orange:#ffad37;--red:#ff5f7c;--shadow:0 24px 65px rgba(0,0,0,.5);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:#02050a;color:var(--text)}body{overflow:hidden}button{font:inherit}.is-hidden{display:none!important}
button{border:0;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}button:focus-visible{outline:3px solid #fff;outline-offset:3px}button:disabled{opacity:.46;cursor:default}
.app{position:relative;width:100%;height:100vh;height:100dvh;background:#02050a;overflow:hidden}.screen{position:absolute;inset:0}

/* Shared glass / metallic controls */
.glass-icon,.top-nav-button,.top-coin-button,.wide-menu-button,.feature-button,.restart-button,.booster-button,.setting-row,.shop-card,.difficulty-card,.secondary-wide-button,.text-button,.danger-button,.primary-button,.hero-button,.coin-ad-card{
  border:1px solid rgba(132,190,255,.36);background:linear-gradient(180deg,rgba(13,28,47,.94),rgba(6,14,27,.96));box-shadow:inset 0 0 0 1px rgba(255,255,255,.035),0 10px 30px rgba(0,0,0,.25)
}
.glass-icon{display:grid;place-items:center;width:50px;height:50px;flex:0 0 50px;border-radius:14px;font-size:24px;background:linear-gradient(145deg,rgba(25,44,70,.95),rgba(6,14,25,.98));text-shadow:0 0 14px rgba(83,185,255,.55)}
.glass-icon:active,.top-nav-button:active,.top-coin-button:active,.wide-menu-button:active,.feature-button:active,.booster-button:active,.hero-button:active,.difficulty-card:active,.coin-ad-card:active,.shop-card:active{transform:translateY(1px) scale(.995)}

/* START */
.start-screen{overflow:auto;overscroll-behavior:contain;padding:max(16px,env(safe-area-inset-top)) 18px max(24px,env(safe-area-inset-bottom));text-align:center;background:
  linear-gradient(180deg,rgba(1,5,10,.05),rgba(0,3,8,.1) 35%,rgba(1,5,10,.72) 82%,rgba(1,4,9,.93)),url('../assets/desktop-start.webp') center/cover no-repeat}
.start-screen::after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 50% 14%,rgba(65,174,255,.18),transparent 28%),linear-gradient(90deg,rgba(0,0,0,.18),transparent 24%,transparent 76%,rgba(0,0,0,.18))}
.start-screen>*{position:relative;z-index:1}.start-topbar{display:flex;justify-content:space-between;width:min(760px,100%);margin:0 auto}
.start-brand{width:min(720px,96%);margin:-12px auto 4px}.morshinog-main-logo{display:block;width:min(620px,100%);max-height:220px;object-fit:contain;margin:0 auto -36px;mix-blend-mode:screen;filter:drop-shadow(0 0 22px rgba(112,188,255,.28));-webkit-mask-image:radial-gradient(ellipse at center,#000 45%,rgba(0,0,0,.88) 64%,transparent 92%);mask-image:radial-gradient(ellipse at center,#000 45%,rgba(0,0,0,.88) 64%,transparent 92%)}
.game-title{font-weight:1000;font-stretch:condensed;font-size:clamp(42px,10vw,76px);line-height:.95;letter-spacing:-.055em;background:linear-gradient(90deg,#b7f2ff 0,#18c7ff 36%,#e9f5ff 48%,#ffbd65 66%,#ff793d 100%);-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:0 0 24px rgba(18,184,255,.2);filter:drop-shadow(0 4px 0 rgba(0,0,0,.5))}
.game-subtitle{margin:10px 0 0;font-size:clamp(16px,3.8vw,24px);color:#e5efff;text-shadow:0 2px 12px #000}
.start-primary-actions{display:grid;gap:8px;width:min(520px,94%);margin:20px auto 14px}.hero-button{position:relative;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;min-height:72px;padding:10px 22px;border:2px solid #37d8ff;border-radius:20px;background:linear-gradient(180deg,#137ec4,#055488 58%,#05335a);box-shadow:0 0 22px rgba(20,207,255,.35),inset 0 0 28px rgba(97,214,255,.26);font-size:30px;font-weight:950;text-transform:none}.hero-button small{font-size:12px;font-weight:800;color:#cfe9ff}.play-triangle{font-size:34px;color:#fff;text-shadow:0 0 18px #4df1ff}
.wide-menu-button{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;min-height:58px;padding:10px 22px;border-radius:17px;font-size:22px;font-weight:900}.wide-menu-button>span:first-child{font-size:27px}.wide-menu-button small{color:#9fd9ff;font-size:12px}
.restart-button{display:flex;align-items:center;justify-content:center;gap:10px;width:max-content;max-width:100%;margin:0 auto;padding:9px 18px;border-radius:14px;color:#dbe9ff}.restart-button>span:first-child{font-size:24px}.restart-button span:last-child{display:grid;text-align:left}.restart-button strong{font-size:14px}.restart-button small{font-size:11px;color:#91a6c2}
.difficulty-panel{width:min(700px,96%);margin:18px auto 0;padding-top:13px;border-top:1px solid rgba(86,179,255,.28)}.difficulty-panel h2{margin:0 0 10px;color:#dceeff;font-size:12px;letter-spacing:.2em;text-transform:uppercase}.difficulty-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.difficulty-card{min-width:0;min-height:93px;padding:12px 9px;border-radius:16px;display:grid;place-items:center;align-content:center;gap:4px;color:#e9f7ff}.difficulty-card .difficulty-bars{font-size:23px;letter-spacing:-.15em;color:var(--green)}.difficulty-card strong{font-size:15px}.difficulty-card small{font-size:10px;line-height:1.25;color:#9fb1c8}.difficulty-card.hard .difficulty-bars{color:var(--orange)}.difficulty-card.expert .difficulty-bars{color:var(--red)}.difficulty-card.is-selected{border-color:#53ffe1;box-shadow:0 0 18px rgba(55,255,220,.26),inset 0 0 24px rgba(0,190,177,.12)}.difficulty-card.hard.is-selected{border-color:#ffb541;box-shadow:0 0 18px rgba(255,173,55,.26),inset 0 0 24px rgba(255,156,0,.12)}.difficulty-card.expert.is-selected{border-color:#ff6684;box-shadow:0 0 18px rgba(255,77,115,.26),inset 0 0 24px rgba(255,77,115,.12)}
.start-feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;width:min(700px,96%);margin:11px auto}.feature-button{position:relative;min-height:58px;padding:9px 8px;border-radius:15px;display:flex;align-items:center;justify-content:center;gap:7px;font-size:12px;font-weight:850}.feature-button>span:first-child{font-size:22px}.notice-dot{position:absolute;right:7px;top:7px;width:9px;height:9px;border-radius:50%;background:#ff4f6d;box-shadow:0 0 12px #ff4164}
.coin-ad-card{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;width:min(620px,94%);margin:12px auto 0;padding:10px 14px;border-color:rgba(255,188,57,.62);border-radius:16px;text-align:left}.coin-medal{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:radial-gradient(circle at 34% 30%,#fff1a8,#f1a800 45%,#9a4f00 76%);border:2px solid #ffd963;color:#5f3000;font-family:Georgia,serif;font-weight:900;font-size:23px;text-shadow:0 1px 0 #fff7c8;box-shadow:0 0 14px rgba(255,187,50,.42)}.coin-ad-card strong{display:block;font-size:14px}.coin-ad-card small{display:block;margin-top:2px;color:#b7c7dc;font-size:10px;line-height:1.3}.ad-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:linear-gradient(145deg,#ffb63a,#e87025);color:#2e1600}

/* GAME */
.game-screen{display:flex;flex-direction:column;align-items:center;padding:max(8px,env(safe-area-inset-top)) 8px max(8px,env(safe-area-inset-bottom));background-color:#03070d;background-position:center;background-size:cover;background-repeat:no-repeat;overflow:hidden}.game-screen::before{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(1,5,10,.08),rgba(1,5,10,.28) 48%,rgba(1,5,10,.56));}.game-screen[data-zone="garage"]{background-image:url('../assets/user/bg-garage.png')}.game-screen[data-zone="space"]{background-image:url('../assets/user/bg-space.png')}.game-screen[data-zone="egypt"]{background-image:url('../assets/user/bg-egypt.png')}.game-screen[data-zone="cats"]{background-image:url('../assets/user/bg-cats.png')}.game-screen>*{position:relative;z-index:1}
.game-topbar{display:grid;grid-template-columns:42px minmax(92px,1fr) minmax(92px,1fr) auto 42px;align-items:center;gap:6px;width:min(780px,100%)}.game-topbar .glass-icon{width:42px;height:42px;flex-basis:42px;border-radius:12px;font-size:19px}.top-nav-button{height:42px;min-width:0;border-radius:12px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:5px;padding:0 9px;font-size:12px}.top-nav-button>span:first-child{font-size:18px}.top-nav-button>span:nth-child(2){min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:850}.top-nav-button small{font-size:10px;color:#9eb1ca}.top-nav-button strong{font-size:13px}.top-nav-button b{color:#82cfff;font-size:19px}.top-coin-button{height:42px;padding:0 8px;border-radius:12px;display:flex;align-items:center;gap:5px;color:#fff}.top-coin-button>span{color:var(--gold)}.top-coin-button b{display:grid;place-items:center;width:23px;height:23px;margin-left:2px;border-radius:8px;background:#0d86c8;color:white}
.mystery-card{display:grid;grid-template-columns:58px 1fr;grid-template-rows:auto auto;gap:2px 10px;width:min(320px,84%);margin:7px auto 5px;padding:7px 12px;border:1px solid rgba(96,177,255,.38);border-radius:16px;background:linear-gradient(180deg,rgba(8,24,41,.93),rgba(4,13,24,.93));box-shadow:0 8px 24px rgba(0,0,0,.3)}.goal-silhouette{grid-row:1/3;display:grid;place-items:center;font-size:42px;filter:brightness(0) drop-shadow(0 0 9px rgba(54,203,255,.75));opacity:.92}.mystery-copy{display:flex;align-items:baseline;justify-content:space-between;gap:8px;min-width:0}.mystery-copy strong{font-size:12px}.mystery-copy span{font-size:10px;color:#a7bad0;white-space:nowrap}.mystery-copy b{color:#28dcff}.mystery-progress{height:6px;border:1px solid rgba(92,184,255,.42);border-radius:999px;overflow:hidden;background:#03101b}.mystery-progress i{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#18cdfd,#4cf1e8);box-shadow:0 0 9px #2bd8ff;transition:width .22s ease}
.canvas-shell{position:relative;flex:1 1 0;min-height:0;overflow:hidden;width:min(780px,100%);display:grid;place-items:center;border-radius:20px;background:rgba(1,6,12,.26);box-shadow:inset 0 0 0 1px rgba(92,169,231,.14)}#game-canvas{display:block;width:100%;height:100%;min-height:0;touch-action:none}.toast{position:absolute;left:50%;top:4%;z-index:4;transform:translate(-50%,-8px);max-width:88%;padding:8px 12px;border:1px solid rgba(78,190,255,.35);border-radius:11px;background:rgba(3,10,19,.95);box-shadow:0 9px 24px rgba(0,0,0,.38);color:#fff;font-size:12px;font-weight:850;opacity:0;pointer-events:none;transition:.18s}.toast.is-visible{opacity:1;transform:translate(-50%,0)}
.bottom-actions{display:flex;justify-content:center;gap:8px;width:min(700px,100%);margin-top:7px}.booster-button{flex:0 1 210px;min-width:0;min-height:52px;padding:7px 10px;border-radius:15px;display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;align-items:center;text-align:left;column-gap:8px}.booster-icon{grid-row:1/3;font-size:25px}.booster-button>span:nth-child(2){font-size:12px;font-weight:900}.booster-button small{font-size:10px;color:#aabbd0}.booster-button small span{color:var(--gold)}.booster-button small b:not(:empty)::after{content:" · ";color:#7590aa}.booster-button small b{color:#62e9ff}

/* MODALS */
.modal-backdrop{position:fixed;inset:0;z-index:20;background:rgba(1,4,9,.77);backdrop-filter:blur(9px)}.modal{position:fixed;left:50%;top:50%;z-index:21;transform:translate(-50%,-50%);width:min(460px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:24px;border:1px solid rgba(96,179,255,.36);border-radius:25px;background:linear-gradient(165deg,rgba(9,23,40,.98),rgba(4,10,20,.99));box-shadow:0 28px 80px rgba(0,0,0,.62),inset 0 0 32px rgba(17,112,184,.08);text-align:center}.wide-modal,.collection-modal{width:min(700px,calc(100vw - 24px));text-align:left}.modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}.modal h2{margin:0;font-size:clamp(24px,5vw,34px)}.eyebrow{margin:0 0 5px;color:#44dcff;font-size:11px;font-weight:950;letter-spacing:.18em}.modal-copy{color:#aab9cd;line-height:1.45}.reveal-badge{display:grid;place-items:center;width:86px;height:86px;margin:0 auto 14px;border-radius:25px;background:linear-gradient(145deg,rgba(20,197,255,.15),rgba(79,115,255,.14));font-size:45px}.danger-badge{color:#fff;background:rgba(255,78,111,.15)}.danger-header{margin:-8px auto 18px;padding:8px 14px;border:1px solid rgba(255,72,108,.38);border-radius:12px;background:rgba(112,0,24,.22);color:#ff6e8b;font-size:12px;font-weight:950;letter-spacing:.14em}.reward-row{display:flex;justify-content:center;align-items:center;gap:7px;margin:14px 0;font-size:24px}.reward-row span,.price span{color:var(--gold)}.primary-button,.secondary-wide-button,.text-button,.danger-button{width:min(340px,100%);min-height:52px;padding:11px 18px;border-radius:15px;margin-top:8px;font-weight:900}.primary-button{border-color:#41d9ff;background:linear-gradient(180deg,#1688c8,#075886);color:#fff;box-shadow:0 0 18px rgba(42,206,255,.19)}.secondary-wide-button{background:linear-gradient(180deg,#10233b,#081522)}.text-button{background:transparent;border-color:transparent;color:#b2c0d2}.danger-button{border-color:#ff5e78;background:linear-gradient(180deg,#8c2037,#54101e);color:#fff}.price{margin-left:6px;color:#ffe4a0}.modal-status{margin:12px auto 0;padding:9px 11px;border:1px solid rgba(255,180,80,.32);border-radius:11px;background:rgba(92,48,0,.18);color:#ffd497;font-size:12px;line-height:1.35}

.collection-zone-panel,.collection-items-panel{border:1px solid rgba(88,165,226,.18);border-radius:16px;background:rgba(6,18,31,.56)}
.collection-zone-panel{padding:12px 12px 10px;margin-bottom:14px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.02)}
.collection-items-panel{padding:12px}
.collection-section-title{margin:0 0 10px;color:#9fcfff;font-size:11px;font-weight:900;letter-spacing:.16em;text-transform:uppercase}
.collection-zone-tabs{margin-bottom:0}
.collection-grid{margin-top:0}
#collection-progress{margin-top:12px}
@media(max-width:560px){.collection-zone-panel,.collection-items-panel{padding:10px}.collection-section-title{font-size:10px;letter-spacing:.14em}}

.collection-zone-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-bottom:13px}.zone-tab{min-height:49px;padding:7px;border:1px solid rgba(105,171,229,.2);border-radius:12px;background:rgba(9,24,40,.75);color:#9fb1c7;font-weight:850}.zone-tab span{display:block;font-size:18px}.zone-tab.is-active{border-color:#43dfff;color:#fff;box-shadow:inset 0 0 18px rgba(20,196,255,.1)}.collection-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.collection-item{position:relative;display:grid;place-items:center;min-height:105px;padding:10px 6px;border:1px solid rgba(101,170,232,.17);border-radius:15px;background:rgba(8,20,35,.82);text-align:center;overflow:hidden}.collection-item::after{content:"";position:absolute;inset:auto 0 0;height:3px;background:var(--item-accent,#2bd8ff);opacity:.76}.collection-symbol{font-size:34px;filter:drop-shadow(0 4px 8px #000)}.collection-name{margin-top:7px;font-size:10px;font-weight:850;line-height:1.2}.collection-item.is-locked .collection-symbol{filter:grayscale(.8) brightness(.35);opacity:.58}.collection-item.is-locked .collection-name{color:#62748c}.collection-brand-art{width:85px;max-width:100%;height:45px;object-fit:cover;mix-blend-mode:screen}
.level-map{display:grid;grid-template-columns:repeat(8,1fr);gap:7px}.level-node{aspect-ratio:1;border:1px solid rgba(99,169,231,.22);border-radius:12px;background:#081421;color:#61758c;font-weight:900}.level-node.is-done{color:#c8f8e9;border-color:rgba(54,228,187,.48);background:rgba(16,87,74,.28)}.level-node.is-current{color:#fff;border-color:#35d7ff;background:rgba(11,121,170,.35);box-shadow:0 0 14px rgba(34,210,255,.2)}.level-node:disabled{opacity:.42}.level-node small{display:block;font-size:8px;font-weight:700}.leaderboard-list{display:grid;gap:7px}.leader-row{display:grid;grid-template-columns:36px 1fr auto;align-items:center;gap:10px;padding:9px 11px;border:1px solid rgba(90,161,218,.18);border-radius:12px;background:rgba(6,17,29,.75)}.leader-row strong{font-size:12px}.leader-row span:last-child{color:#62dfff;font-weight:900}.daily-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin:14px 0}.daily-day{padding:9px 5px;border:1px solid rgba(91,161,218,.19);border-radius:13px;background:#081522;color:#8799ae;font-size:10px}.daily-day strong{display:block;margin-top:5px;color:#ffd26b;font-size:14px}.daily-day.is-current{border-color:#3edbff;color:#fff;box-shadow:0 0 12px rgba(37,203,255,.16)}.daily-day.is-claimed{border-color:rgba(54,228,187,.42);color:#abeadc}.shop-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.shop-card{min-height:126px;padding:12px 8px;border-radius:15px;display:grid;place-items:center;align-content:center;gap:8px}.shop-card>span{font-size:32px}.shop-card strong{font-size:11px}.shop-card small{color:#ffd268;font-weight:900}.settings-list{display:grid;gap:7px}.setting-row{display:flex;align-items:center;justify-content:space-between;min-height:52px;padding:0 14px;border-radius:13px;text-align:left}.danger-row{border-color:rgba(255,86,118,.36);color:#ffc0cb}

/* TUTORIAL */
.tutorial{position:fixed;inset:0;z-index:30;display:grid;place-items:center;padding:18px;background:rgba(1,4,9,.78);backdrop-filter:blur(7px)}.tutorial-card{width:min(410px,94vw);padding:22px;border:1px solid rgba(86,180,248,.35);border-radius:23px;background:linear-gradient(155deg,#0d2238,#06111f);box-shadow:var(--shadow);text-align:center}.tutorial-step{display:inline-block;margin-bottom:9px;padding:4px 9px;border-radius:999px;background:rgba(30,206,255,.12);color:#44dcff;font-size:11px;font-weight:900}.tutorial-card strong{display:block;font-size:21px}.tutorial-card p{margin:9px auto 16px;color:#a8b8cc;line-height:1.45}.tutorial-visual{display:flex;align-items:center;justify-content:center;gap:8px;min-height:72px;margin:12px 0 4px;padding:11px;border:1px solid rgba(93,170,228,.16);border-radius:15px;background:rgba(0,0,0,.17);font-size:27px}.tutorial-chip{width:36px;height:36px;border:2px solid rgba(255,255,255,.65);border-radius:10px;background:var(--chip);box-shadow:inset 0 7px 0 rgba(255,255,255,.18)}.tutorial-robot{display:grid;place-items:center;width:58px;height:42px;border-radius:12px;background:var(--chip);color:#05111b;font-size:20px}.tutorial-slots{display:flex;gap:5px}.tutorial-slot{width:28px;height:28px;border:2px solid rgba(255,255,255,.16);border-radius:8px;background:rgba(255,255,255,.04)}.tutorial-slot.is-filled{background:#ff6685;border-color:#ff9aae}

@media(max-width:560px){
  .start-screen{padding-left:10px;padding-right:10px}.start-topbar{padding:0 4px}.start-brand{margin-top:-20px}.morshinog-main-logo{max-height:170px;margin-bottom:-27px}.game-title{font-size:42px}.game-subtitle{font-size:15px}.start-primary-actions{margin-top:13px}.hero-button{min-height:61px;font-size:25px}.wide-menu-button{min-height:52px;font-size:18px}.difficulty-card{min-height:84px;padding:9px 5px}.difficulty-card strong{font-size:12px}.difficulty-card small{font-size:8px}.feature-button{font-size:9px;gap:3px}.feature-button>span:first-child{font-size:18px}.coin-ad-card{margin-top:8px}
  .game-topbar{grid-template-columns:36px minmax(82px,1fr) minmax(82px,1fr) auto 36px;gap:4px}.game-topbar .glass-icon{width:36px;height:36px;font-size:16px}.top-nav-button,.top-coin-button{height:36px;padding-left:6px;padding-right:6px}.top-nav-button>span:first-child{font-size:15px}.top-nav-button>span:nth-child(2){font-size:10px}.top-nav-button small{font-size:8px}.top-coin-button{font-size:11px}.top-coin-button b{width:19px;height:19px}
  .mystery-card{margin-top:5px;width:min(295px,82%);grid-template-columns:47px 1fr;padding:5px 9px}.goal-silhouette{font-size:34px}.mystery-copy strong{font-size:10px}.mystery-copy span{font-size:8px}
  .bottom-actions{gap:4px}.booster-button{min-height:47px;padding:5px 6px;column-gap:5px}.booster-icon{font-size:19px}.booster-button>span:nth-child(2){font-size:9px}.booster-button small{font-size:8px}.collection-grid{grid-template-columns:repeat(3,1fr)}.collection-item{min-height:92px}.level-map{grid-template-columns:repeat(6,1fr)}.daily-grid{grid-template-columns:repeat(4,1fr)}.shop-grid{grid-template-columns:1fr}.shop-card{min-height:82px;grid-template-columns:auto 1fr auto;text-align:left}.shop-card>span{font-size:27px}.modal{padding:19px}
}
@media(max-height:760px){.start-brand{margin-top:-30px}.morshinog-main-logo{max-height:140px}.game-title{font-size:38px}.game-subtitle{margin-top:6px}.start-primary-actions{margin-top:9px}.hero-button{min-height:56px}.difficulty-panel{margin-top:10px}.difficulty-card{min-height:72px}.feature-button{min-height:49px}.coin-ad-card{padding-top:7px;padding-bottom:7px}.game-screen{padding-top:5px}.game-topbar .glass-icon,.top-nav-button,.top-coin-button{height:34px}.mystery-card{margin:4px auto 3px}.bottom-actions{margin-top:4px}.booster-button{min-height:43px}.booster-icon{font-size:18px}}
.global-status{position:fixed;left:50%;top:max(16px,env(safe-area-inset-top));z-index:60;transform:translateX(-50%);width:min(420px,calc(100vw - 24px));padding:11px 14px;border:1px solid rgba(255,185,72,.45);border-radius:13px;background:rgba(39,25,6,.97);box-shadow:0 14px 38px rgba(0,0,0,.5);color:#ffe0a4;text-align:center;font-size:12px;font-weight:850}
@media(max-width:560px){.top-nav-button b{display:none}.top-nav-button{grid-template-columns:auto 1fr;padding-left:5px;padding-right:5px}.top-nav-button>span:nth-child(2){font-size:9px;overflow:visible;text-overflow:clip}.top-nav-button small{font-size:8px}.game-title{word-spacing:.1em}}
@media(max-width:560px){.top-nav-button b{display:none}.top-nav-button{grid-template-columns:auto 1fr;padding-left:5px;padding-right:5px}.top-nav-button>span:nth-child(2){font-size:9px;overflow:visible;text-overflow:clip}.top-nav-button small{font-size:8px}.game-title{word-spacing:.1em}}
.game-title{display:flex;justify-content:center;align-items:baseline;gap:.16em;flex-wrap:nowrap}.game-title span{display:inline-block}


/* ==============================================================
   v0.5.6 — approved artwork + Morshinog-style interaction states.
   No synthetic hover/focus contour is drawn on the start artwork.
   The existing painted button is brightened in place, matching morshinog.ru's
   principle of changing the existing control state instead of adding a second border.
   ============================================================== */

html,body{background:#02050a}
.app{background:#02050a;display:grid;place-items:center}

/* ---------- START: approved artwork is the single visual source of truth ---------- */
.start-screen{
  inset:auto;left:50%;top:50%;
  width:min(100vw,56.28vh);
  height:min(100vh,177.68vw);
  transform:translate(-50%,-50%);
  padding:0;overflow:hidden;text-align:left;
  background:#03070d url('../assets/ui-start-approved.webp') center/100% 100% no-repeat;
  box-shadow:0 0 90px rgba(0,0,0,.88);
}
.start-screen::after{display:none}
.start-screen .start-brand{display:none}
.start-screen .start-topbar,
.start-screen .start-primary-actions,
.start-screen .difficulty-panel,
.start-screen .difficulty-grid,
.start-screen .start-feature-grid{display:contents}
.start-screen .difficulty-panel>h2{display:none}

/* Transparent hit targets over the buttons painted into ui-start-approved.webp. */
.start-screen button{
  position:absolute!important;z-index:4;
  margin:0!important;padding:0!important;min-height:0!important;
  border:0!important;outline:0!important;box-shadow:none!important;
  color:transparent!important;font-size:0!important;text-shadow:none!important;
  background:rgba(0,0,0,.001)!important;
  opacity:1!important;overflow:hidden!important;
  pointer-events:auto!important;
  transition:background-color .18s ease,backdrop-filter .18s ease,-webkit-backdrop-filter .18s ease!important;
}
.start-screen button *{opacity:0!important;color:transparent!important}

/* Bounds derived from the approved 941×1672 artwork. */
#settings-button-start{left:3.51%!important;top:1.26%!important;width:8.72%!important;height:4.31%!important;border-radius:18px!important}
#sound-button-start{left:87.57%!important;top:1.26%!important;width:8.82%!important;height:4.31%!important;border-radius:18px!important}
#play-button{left:26.57%!important;top:53.77%!important;width:47.18%!important;height:7.48%!important;border-radius:28px!important}
#collection-button-start{left:26.99%!important;top:63.22%!important;width:45.91%!important;height:3.95%!important;border-radius:22px!important}
#reset-button-start{left:31.56%!important;top:67.46%!important;width:36.66%!important;height:4.84%!important;border-radius:18px!important}

.start-screen .difficulty-card{top:76.38%!important;height:5.38%!important;border-radius:22px!important}
.start-screen .difficulty-card[data-difficulty="normal"]{left:8.40%!important;width:27.10%!important}
.start-screen .difficulty-card[data-difficulty="hard"]{left:36.77%!important;width:26.57%!important}
.start-screen .difficulty-card[data-difficulty="expert"]{left:64.72%!important;width:26.89%!important}

.start-screen .feature-button{top:82.54%!important;height:5.44%!important;border-radius:20px!important}
#leaderboard-button{left:8.82%!important;width:25.50%!important}
#daily-button{left:36.56%!important;width:27.31%!important}
#shop-button{left:66.10%!important;width:25.50%!important}
#daily-dot{display:none!important}
#start-coin-button{left:20.72%!important;top:89.77%!important;width:58.45%!important;height:5.92%!important;border-radius:20px!important}

/* Hover/focus: brighten the SAME pixels and SAME painted contour. No CSS border/outline/shadow. */
@media(hover:hover) and (pointer:fine){
  .start-screen button:hover{
    border:0!important;outline:0!important;box-shadow:none!important;
    background:transparent!important;
    -webkit-backdrop-filter:brightness(1.16) saturate(1.09)!important;
    backdrop-filter:brightness(1.16) saturate(1.09)!important;
  }
  #start-coin-button:hover{
    background:transparent!important;
    -webkit-backdrop-filter:brightness(1.13) saturate(1.08)!important;
    backdrop-filter:brightness(1.13) saturate(1.08)!important;
  }
}
.start-screen button:focus-visible{
  border:0!important;outline:0!important;box-shadow:none!important;
  background:transparent!important;
  -webkit-backdrop-filter:brightness(1.19) saturate(1.11)!important;
  backdrop-filter:brightness(1.19) saturate(1.11)!important;
}
#start-coin-button:focus-visible{
  background:transparent!important;
  -webkit-backdrop-filter:brightness(1.16) saturate(1.10)!important;
  backdrop-filter:brightness(1.16) saturate(1.10)!important;
}

/* Selected difficulty: the existing colored card itself becomes brighter. */
.start-screen .difficulty-card,
.start-screen .difficulty-card.is-selected,
.start-screen .difficulty-card.hard.is-selected,
.start-screen .difficulty-card.expert.is-selected{
  border:0!important;outline:0!important;box-shadow:none!important;
}
.start-screen .difficulty-card.is-selected{
  -webkit-backdrop-filter:brightness(1.24) saturate(1.18)!important;
  backdrop-filter:brightness(1.24) saturate(1.18)!important;
}
.start-screen .difficulty-card[data-difficulty="normal"].is-selected,
.start-screen .difficulty-card[data-difficulty="hard"].is-selected,
.start-screen .difficulty-card[data-difficulty="expert"].is-selected{background:transparent!important}

/* ---------- GAME: approved scene + live game ---------- */
.game-screen{
  inset:auto;left:50%;top:50%;
  width:min(100vw,56.28vh);
  height:min(100vh,177.68vw);
  transform:translate(-50%,-50%);
  padding:0;overflow:hidden;
  background:#03070d url('../assets/user/bg-garage.png') center/100% 100% no-repeat!important;
  box-shadow:0 0 90px rgba(0,0,0,.88);
}
.game-screen::before,.game-screen::after{display:none!important}
.game-screen[data-zone="space"]{background-image:url('../assets/user/bg-space.png')!important;background-size:cover!important}
.game-screen[data-zone="egypt"]{background-image:url('../assets/user/bg-egypt.png')!important;background-size:cover!important}
.game-screen[data-zone="cats"]{background-image:url('../assets/user/bg-cats.png')!important;background-size:cover!important}
.game-screen>*{position:absolute;z-index:2}

.game-topbar{
  top:.55%;left:1.25%;right:1.25%;height:5.25%;width:auto;
  display:grid;grid-template-columns:8.1% 27.5% 27.5% 23.2% 8.1%;gap:1.4%;align-items:stretch;
}
.game-topbar .glass-icon,.game-topbar .top-nav-button,.game-topbar .top-coin-button{
  width:100%;height:100%;min-width:0;
  border:2px solid rgba(133,205,255,.82);border-radius:18px;
  background:linear-gradient(180deg,rgba(12,30,50,.995),rgba(4,13,26,.995));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.055),0 7px 16px rgba(0,0,0,.42),0 0 13px rgba(36,162,255,.16);
}
.game-topbar .glass-icon{font-size:clamp(16px,3vw,30px)}
.game-topbar .top-nav-button{padding:0 8px;gap:5px;justify-content:center;font-size:clamp(8px,1.6vw,14px)}
.game-topbar .top-nav-button>span:first-child{font-size:clamp(15px,2.6vw,25px)}
.game-topbar .top-nav-button>span:nth-child(2){font-size:clamp(9px,1.6vw,15px);font-weight:950;white-space:nowrap}
.game-topbar .top-nav-button small{font-size:inherit!important;color:#fff!important;font-weight:950!important}
.game-topbar .top-nav-button strong{font-size:inherit!important}
.game-topbar .top-coin-button{font-size:clamp(10px,1.9vw,18px);font-weight:1000}

.mystery-card{
  top:6.05%;left:50%;transform:translateX(-50%);width:30.4%;height:11.5%;
  padding:6px 10px;display:grid;grid-template-columns:1fr;grid-template-rows:minmax(34px,1fr) auto auto;gap:2px;
  border:2px solid rgba(139,206,255,.72);border-radius:21px;
  background:linear-gradient(180deg,rgba(5,18,31,.995),rgba(3,11,22,.995));
  box-shadow:0 12px 26px rgba(0,0,0,.5),inset 0 0 22px rgba(38,159,255,.11);
}
.goal-silhouette{font-size:clamp(30px,5.7vw,55px);line-height:1;filter:brightness(0) drop-shadow(0 0 11px rgba(40,184,255,.48))}
.mystery-copy strong{display:none!important}
.mystery-copy span{font-size:clamp(8px,1.35vw,13px);font-weight:800;color:#e8f3ff}
.mystery-progress{height:7px;width:90%;margin:2px auto 0}

.canvas-shell{
  top:18.75%;left:18.7%;width:62.6%;height:64.6%;min-height:0;
  overflow:hidden;border-radius:28px;border:3px solid rgba(142,207,255,.47);
  background:linear-gradient(180deg,rgba(4,13,24,.985),rgba(1,7,14,.99));
  box-shadow:0 16px 48px rgba(0,0,0,.56),inset 0 0 0 2px rgba(255,255,255,.025),0 0 22px rgba(25,154,255,.12);
}
#game-canvas{width:100%;height:100%;display:block;touch-action:none}
.toast{top:1.2%;font-size:clamp(9px,1.5vw,14px)}

.bottom-actions{
  left:4%;right:4%;bottom:7.25%;width:auto;height:6.35%;
  display:grid;grid-template-columns:repeat(3,1fr);gap:2.35%;margin:0;
}
.booster-button{
  width:100%;height:100%;min-height:0;padding:6px 8px;
  border:2px solid rgba(47,185,255,.95);border-radius:19px;
  background:linear-gradient(180deg,rgba(5,62,101,.99),rgba(3,27,51,.995));
  box-shadow:inset 0 0 20px rgba(31,144,226,.13),0 0 16px rgba(0,158,255,.22);
  grid-template-columns:auto 1fr;grid-template-rows:1fr auto;column-gap:7px;
}
.booster-icon{font-size:clamp(18px,3.5vw,34px)}
.booster-button>span:nth-child(2){font-size:clamp(8px,1.55vw,15px);font-weight:1000;white-space:nowrap}
.booster-button small{font-size:clamp(7px,1.25vw,12px);font-weight:900}

/* ---------- All real DOM buttons: change the existing control, never add another outline ---------- */
button{transition:background-color .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease,filter .18s ease,transform .12s ease}
button:focus-visible{outline:0!important}
@media(hover:hover) and (pointer:fine){
  .game-topbar button:hover,.bottom-actions button:hover,
  .modal button:hover,.tutorial button:hover,.zone-tab:hover,.level-node:hover{
    filter:brightness(1.12) saturate(1.06);
  }
}
.game-topbar button:focus-visible,.bottom-actions button:focus-visible,
.modal button:focus-visible,.tutorial button:focus-visible,.zone-tab:focus-visible,.level-node:focus-visible{
  filter:brightness(1.16) saturate(1.08);
}
.game-topbar .glass-icon:hover,.game-topbar .glass-icon:focus-visible,
.game-topbar .top-nav-button:hover,.game-topbar .top-nav-button:focus-visible,
.bottom-actions .booster-button:hover,.bottom-actions .booster-button:focus-visible{
  border-color:rgba(151,221,255,.98);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.055),0 7px 16px rgba(0,0,0,.42),0 0 18px rgba(36,162,255,.24);
}
.game-topbar .top-coin-button:hover,.game-topbar .top-coin-button:focus-visible{
  border-color:rgba(255,210,101,.96);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.055),0 7px 16px rgba(0,0,0,.42),0 0 18px rgba(255,187,53,.20);
}

/* Pause opened by the hamburger button. */
.pause-modal{width:min(430px,88vw);text-align:center;border:2px solid rgba(100,190,255,.5);background:linear-gradient(180deg,rgba(7,22,38,.985),rgba(3,10,20,.995));box-shadow:0 26px 80px rgba(0,0,0,.65),inset 0 0 32px rgba(35,151,255,.08)}
.pause-emblem{width:78px;height:78px;margin:0 auto 12px;display:grid;place-items:center;border-radius:24px;border:1px solid rgba(106,190,255,.44);background:linear-gradient(180deg,#17314e,#091523);font-size:34px;font-weight:1000;color:#eaf7ff;box-shadow:0 0 25px rgba(27,163,255,.16)}
.pause-modal .primary-button,.pause-modal .secondary-wide-button{width:100%;min-height:54px;margin-top:10px;border-radius:16px;font-weight:900}
.pause-modal .primary-button{background:linear-gradient(180deg,#18bce9,#0879bf);border-color:#64dfff;box-shadow:0 0 20px rgba(36,198,255,.25)}
.pause-modal .secondary-wide-button{background:linear-gradient(180deg,#152b43,#0a1727)}

@media(max-aspect-ratio:9/16){
  .start-screen,.game-screen{width:100vw;height:177.68vw;max-height:100vh}
}
@media(min-aspect-ratio:10/16){
  .start-screen,.game-screen{border-left:1px solid rgba(94,163,221,.18);border-right:1px solid rgba(94,163,221,.18)}
}

/* ---------- v0.5.6 tuning ---------- */
@media(hover:hover) and (pointer:fine){
  .start-screen button:hover{
    -webkit-backdrop-filter:brightness(1.28) saturate(1.18)!important;
    backdrop-filter:brightness(1.28) saturate(1.18)!important;
  }
  #start-coin-button:hover{
    -webkit-backdrop-filter:brightness(1.22) saturate(1.14)!important;
    backdrop-filter:brightness(1.22) saturate(1.14)!important;
  }
}
.start-screen button:focus-visible{
  -webkit-backdrop-filter:brightness(1.30) saturate(1.20)!important;
  backdrop-filter:brightness(1.30) saturate(1.20)!important;
}
#start-coin-button:focus-visible{
  -webkit-backdrop-filter:brightness(1.24) saturate(1.16)!important;
  backdrop-filter:brightness(1.24) saturate(1.16)!important;
}
.start-screen .difficulty-card.is-selected{
  -webkit-backdrop-filter:brightness(1.36) saturate(1.24)!important;
  backdrop-filter:brightness(1.36) saturate(1.24)!important;
}
.sound-toggle{font-size:22px!important;line-height:1}
.settings-hud-button{position:relative;overflow:visible}
.settings-hud-button::after{
  content:"";position:absolute;left:-58%;top:84%;width:225%;height:76%;
  background:radial-gradient(circle at 60% 10%,rgba(4,16,30,.92),rgba(2,8,14,.78) 68%,rgba(2,8,14,0) 100%);
  filter:blur(6px);pointer-events:none;z-index:-1;
}

.fancy-modal-title{
  margin:0;
  font-size:clamp(34px,4.5vw,56px);
  line-height:.96;
  font-weight:950;
  letter-spacing:-.02em;
  color:#eef7ff;
  text-shadow:0 0 18px rgba(98,203,255,.18),0 2px 0 rgba(255,255,255,.05);
}
.settings-main-title{font-size:clamp(40px,5.2vw,62px)}
.settings-modal,.ad-modal,.pause-modal{
  background:linear-gradient(180deg,rgba(6,21,39,.99),rgba(2,9,18,.995));
  border:1.5px solid rgba(91,176,242,.5);
  box-shadow:0 24px 80px rgba(0,0,0,.6),inset 0 0 28px rgba(29,148,255,.08);
}
.settings-modal-header,.centered-modal-header{align-items:center}
.centered-modal-header{display:flex;justify-content:space-between;gap:14px}
.centered-modal-header h2{flex:1;text-align:center;padding-left:42px}
.modal-close{
  display:grid;place-items:center;
  width:44px;height:44px;min-width:44px;min-height:44px;
  padding:0;border-radius:14px;font-size:28px;line-height:1;
}
.modal-copy,.daily-subtitle{text-wrap:balance}
.settings-list{gap:10px}
.setting-row{
  min-height:58px;border-radius:15px;padding:0 16px;
  border:1.5px solid rgba(91,170,236,.35);
  background:linear-gradient(180deg,rgba(9,30,54,.92),rgba(4,16,28,.95));
}
.setting-row strong{font-size:24px;font-weight:900}
.danger-row{border-color:rgba(255,97,132,.42);background:linear-gradient(180deg,rgba(45,15,28,.92),rgba(19,8,14,.95))}
.pause-modal{width:min(430px,88vw);padding-top:22px}
.pause-modal .primary-button,.pause-modal .secondary-wide-button{width:100%;margin-top:10px}
.ad-modal{width:min(420px,88vw)}
.ad-copy{text-align:center;font-size:18px;line-height:1.45;color:#dceeff}

.daily-grid.month-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin:16px 0 18px}
.daily-day{
  position:relative;min-height:84px;padding:10px 8px 12px;border-radius:14px;
  border:1.5px solid rgba(91,161,218,.22);
  background:linear-gradient(180deg,rgba(9,24,40,.92),rgba(4,13,24,.96));
  display:grid;align-content:start;gap:6px;text-align:left;
}
.daily-day strong{margin:0;color:#f0f7ff;font-size:13px;line-height:1.15}
.daily-day small{display:block;color:#ffd46b;font-size:11px;line-height:1.25}
.daily-day.is-current{border-color:#48ddff;box-shadow:0 0 16px rgba(37,203,255,.2)}
.daily-day.is-claimed{border-color:rgba(54,228,187,.38);background:linear-gradient(180deg,rgba(10,43,52,.84),rgba(4,22,28,.92));color:#bbf0df}
.daily-day-label{font-size:11px;font-weight:800;letter-spacing:.02em;color:#8fb3d9}
.daily-badge{
  position:absolute;top:8px;right:8px;padding:3px 7px;border-radius:999px;
  font-style:normal;font-size:10px;font-weight:900;letter-spacing:.05em;text-transform:uppercase;
  color:#082131;background:linear-gradient(180deg,#7deaff,#35cfff);
}

.shop-balance{margin:4px 0 12px;color:#a3c6e7;font-size:14px}
.shop-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.shop-card{
  min-height:168px;padding:14px 12px;border-radius:16px;gap:8px;
  border:1.5px solid rgba(79,170,236,.32);
  background:linear-gradient(180deg,rgba(8,28,48,.95),rgba(3,13,24,.98));
  text-align:center;align-content:center;
}
.shop-card>span{font-size:36px}
.shop-card strong{font-size:16px;line-height:1.2;color:#f0f8ff}
.shop-card small{display:block;color:#ffd268;font-size:14px;font-weight:900}
.shop-card em,.shop-card u{display:block;font-style:normal;text-decoration:none;font-size:12px;line-height:1.25}
.shop-card em{color:#b5d7f3}
.shop-card u{color:#64ddff}

.bottom-actions{
  left:4.5%;right:4.5%;bottom:4.9%;height:8.3%;gap:2.1%;
}
.booster-button{
  border-radius:20px;
  border:2px solid rgba(82,188,255,.95);
  background:linear-gradient(180deg,rgba(10,72,116,.98),rgba(6,34,61,.995));
  box-shadow:inset 0 0 28px rgba(89,196,255,.12),0 8px 22px rgba(0,0,0,.34),0 0 18px rgba(0,160,255,.18);
}
.booster-button>span:nth-child(2){font-size:clamp(9px,1.8vw,18px);font-weight:950}
.booster-button small{font-size:clamp(8px,1.35vw,13px);font-weight:850;color:#cfe4fb}
.booster-icon{font-size:clamp(20px,4vw,38px)}

.canvas-shell{
  top:17.8%;left:16.1%;width:67.6%;height:66.5%;
  border:2.5px solid rgba(140,208,255,.54);
  box-shadow:0 16px 48px rgba(0,0,0,.54),inset 0 0 0 2px rgba(255,255,255,.025),0 0 28px rgba(25,154,255,.14);
}
.mystery-card{top:5.9%;width:32.8%;height:12%;padding:7px 10px 8px}
.mystery-copy span{font-size:clamp(9px,1.45vw,14px)}
.mystery-progress{height:8px}

.game-topbar .glass-icon:hover,.game-topbar .glass-icon:focus-visible,
.game-topbar .top-nav-button:hover,.game-topbar .top-nav-button:focus-visible,
.bottom-actions .booster-button:hover,.bottom-actions .booster-button:focus-visible,
.modal button:hover,.modal button:focus-visible,.tutorial button:hover,.tutorial button:focus-visible,
.zone-tab:hover,.zone-tab:focus-visible,.level-node:hover,.level-node:focus-visible{
  border-color:inherit;
  box-shadow:inherit;
  filter:brightness(1.14) saturate(1.08);
}
.game-topbar .top-coin-button:hover,.game-topbar .top-coin-button:focus-visible{
  border-color:inherit;
  box-shadow:inherit;
  filter:brightness(1.12) saturate(1.08);
}
.modal button,.tutorial button,.zone-tab,.level-node{transition:filter .18s ease,transform .12s ease}

@media(max-width:900px){
  .daily-grid.month-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:640px){
  .daily-grid.month-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .shop-grid{grid-template-columns:1fr}
  .shop-card{min-height:126px;text-align:left}
  .shop-card strong{font-size:15px}
}
.settings-hud-button::after{
  left:-118%;top:86%;width:320%;height:78%;z-index:2;
  background:linear-gradient(180deg,rgba(2,8,14,.96),rgba(2,8,14,.72));
}

/* ---------- v0.5.7 exact approved-gameplay skin ---------- */
/* Start screen: stronger state change on the SAME approved painted button. */
@media(hover:hover) and (pointer:fine){
  .start-screen button:hover{
    -webkit-backdrop-filter:brightness(1.38) saturate(1.24)!important;
    backdrop-filter:brightness(1.38) saturate(1.24)!important;
  }
  #start-coin-button:hover{
    -webkit-backdrop-filter:brightness(1.30) saturate(1.18)!important;
    backdrop-filter:brightness(1.30) saturate(1.18)!important;
  }
}
.start-screen button:focus-visible{
  -webkit-backdrop-filter:brightness(1.42) saturate(1.28)!important;
  backdrop-filter:brightness(1.42) saturate(1.28)!important;
}
.start-screen .difficulty-card.is-selected{
  -webkit-backdrop-filter:brightness(1.58) saturate(1.42)!important;
  backdrop-filter:brightness(1.58) saturate(1.42)!important;
  background:rgba(255,255,255,.035)!important;
}
.start-screen .difficulty-card[data-difficulty="normal"].is-selected{box-shadow:0 0 30px rgba(45,255,220,.46)!important}
.start-screen .difficulty-card[data-difficulty="hard"].is-selected{box-shadow:0 0 30px rgba(255,183,61,.46)!important}
.start-screen .difficulty-card[data-difficulty="expert"].is-selected{box-shadow:0 0 30px rgba(255,83,126,.50)!important}

/* The approved start art contains the normal speaker. Only paint over it when muted. */
#sound-button-start{color:transparent!important;text-shadow:none!important}
#sound-button-start.is-muted{
  color:#eef8ff!important;
  background:linear-gradient(145deg,rgba(22,42,67,.98),rgba(5,14,26,.99))!important;
  border:2px solid rgba(137,202,255,.74)!important;
  box-shadow:0 0 18px rgba(53,165,255,.18),inset 0 0 20px rgba(80,161,232,.12)!important;
  font-size:28px!important;
  line-height:1!important;
}

/* Game screen is the approved image itself. Live code only overlays changing cells/values. */
.game-screen{
  background:#03070d url('../assets/user/bg-garage.png') center/100% 100% no-repeat!important;
}

/* Exact invisible hotspots over the painted top controls. */
.game-topbar{
  position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
  display:block!important;margin:0!important;padding:0!important;pointer-events:none!important;z-index:20!important;
}
.game-topbar button{
  position:absolute!important;margin:0!important;padding:0!important;min-width:0!important;min-height:0!important;
  border:0!important;background:transparent!important;box-shadow:none!important;color:transparent!important;
  pointer-events:auto!important;overflow:visible!important;
}
#home-button{left:1.75%!important;top:.55%!important;width:7.25%!important;height:4.15%!important;border-radius:18px!important}
#level-map-button{left:10.75%!important;top:.55%!important;width:26.45%!important;height:4.15%!important;border-radius:20px!important}
#collection-button-game{left:38.55%!important;top:.55%!important;width:26.55%!important;height:4.15%!important;border-radius:20px!important}
#game-coin-button{left:67.15%!important;top:.55%!important;width:20.55%!important;height:4.15%!important;border-radius:20px!important}
#settings-button-game{left:89.20%!important;top:.55%!important;width:7.70%!important;height:4.15%!important;border-radius:18px!important}
.game-topbar button>*{visibility:hidden!important}
/* Replace only the variable number, masking the baked number underneath. */
#level-map-button #level-value{
  visibility:visible!important;position:absolute!important;left:72%!important;top:50%!important;transform:translate(-50%,-50%)!important;
  min-width:26px;padding:1px 4px;border-radius:7px;background:#07121f!important;color:#fff!important;
  box-shadow:0 0 8px 5px #07121f!important;font-size:clamp(12px,1.9vw,20px)!important;font-weight:950!important;text-align:center!important;
}
#game-coin-button #coin-value{
  visibility:visible!important;position:absolute!important;left:51%!important;top:50%!important;transform:translate(-50%,-50%)!important;
  min-width:44px;padding:1px 5px;border-radius:7px;background:#07121f!important;color:#fff!important;
  box-shadow:0 0 8px 5px #07121f!important;font-size:clamp(12px,1.9vw,20px)!important;font-weight:950!important;text-align:center!important;
}
@media(hover:hover) and (pointer:fine){
  .game-topbar button:hover,.bottom-actions .booster-button:hover{
    -webkit-backdrop-filter:brightness(1.28) saturate(1.16)!important;
    backdrop-filter:brightness(1.28) saturate(1.16)!important;
    filter:none!important;
  }
}
.game-topbar button:focus-visible,.bottom-actions .booster-button:focus-visible{
  -webkit-backdrop-filter:brightness(1.34) saturate(1.20)!important;
  backdrop-filter:brightness(1.34) saturate(1.20)!important;
  filter:none!important;
}

/* Approved mystery card remains painted. Only replace percent and the fill amount. */
.mystery-card{
  position:absolute!important;left:34.20%!important;top:5.95%!important;width:30.55%!important;height:11.90%!important;
  transform:none!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;display:block!important;pointer-events:none!important;z-index:12!important;
}
.goal-silhouette,.mystery-copy strong,.mystery-copy>span{display:none!important}
#reveal-progress{
  display:block!important;position:absolute!important;left:50%!important;top:63.5%!important;transform:translate(-50%,-50%)!important;
  padding:0 6px;border-radius:7px;background:#07121f;color:#fff;font-size:clamp(15px,2.4vw,26px)!important;font-weight:950!important;
  box-shadow:0 0 9px 5px #07121f!important;line-height:1.05!important;
}
.mystery-progress{
  display:block!important;position:absolute!important;left:12%!important;top:76%!important;width:76%!important;height:7px!important;
  margin:0!important;border:1px solid rgba(145,202,244,.58)!important;border-radius:999px!important;background:#07111e!important;overflow:hidden!important;
}
#mystery-progress-bar{height:100%!important;border-radius:999px!important;background:linear-gradient(90deg,#27d8ff,#78e9ff)!important}

/* Only the 7×7 block area is live. The frame/robots/queue/background stay exactly from the approved artwork. */
.canvas-shell{
  position:absolute!important;left:22.32%!important;top:20.33%!important;width:55.48%!important;height:32.73%!important;
  margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;
  box-shadow:none!important;overflow:visible!important;z-index:10!important;
}
#game-canvas{width:100%!important;height:100%!important;background:transparent!important;display:block!important;touch-action:none!important}

/* Bottom buttons are the approved painted buttons; DOM is just the hotspot. */
.bottom-actions{
  position:absolute!important;left:0!important;right:0!important;bottom:0!important;width:100%!important;height:100%!important;
  display:block!important;margin:0!important;padding:0!important;pointer-events:none!important;z-index:20!important;
}
.bottom-actions .booster-button{
  position:absolute!important;top:85.25%!important;height:6.12%!important;margin:0!important;padding:0!important;
  min-height:0!important;border:0!important;background:transparent!important;box-shadow:none!important;border-radius:22px!important;
  pointer-events:auto!important;color:transparent!important;display:block!important;
}
#hint-button{left:4.20%!important;width:28.65%!important}
#queue-help-button{left:35.65%!important;width:28.65%!important}
#shuffle-button{left:67.10%!important;width:28.65%!important}
.bottom-actions .booster-button>*{display:none!important}

/* Remove all old visual overlays that could leak on top of the approved game image. */
.settings-hud-button::after{display:none!important}
.toast{z-index:30!important}

/* Daily rewards: icons only, no explanatory text. */
#daily-modal{width:min(640px,94vw)!important;max-height:min(790px,88vh)!important}
.daily-subtitle{display:none!important}
.daily-grid.month-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:8px!important;margin:14px 0 16px!important}
.daily-day.icon-only-day{
  min-height:82px!important;padding:8px 5px 7px!important;display:grid!important;grid-template-rows:auto 1fr auto!important;
  place-items:center!important;align-content:center!important;text-align:center!important;gap:2px!important;border-radius:14px!important;
}
.daily-number{font-size:10px!important;font-weight:900!important;color:#8fb6dc!important;line-height:1!important}
.daily-icon{margin:0!important;font-size:28px!important;line-height:1!important;color:#fff!important;display:block!important}
.daily-qty{font-size:11px!important;font-weight:900!important;line-height:1!important;color:#ffd36b!important;display:block!important}
.daily-badge{display:none!important}

/* Leaderboard: no developer/console explanation, only real entries or a neutral empty state. */
#leaderboard-status:empty{display:none!important}
.leader-row{grid-template-columns:42px 1fr auto!important;min-height:48px!important}

/* Shop: no intro paragraph, no combined stock line, no "2×" captions. Stock stays per item. */
#shop-copy,.shop-balance,.shop-card u{display:none!important}
.shop-grid{margin-top:8px!important}
.shop-card em{color:#a9c8e3!important}

/* Ad unavailable: compact centered text and a close button; no huge heading. */
.ad-modal{width:min(390px,88vw)!important;padding:30px 28px 26px!important;text-align:center!important;position:relative!important}
.ad-modal .ad-close{position:absolute!important;right:12px!important;top:12px!important;width:40px!important;height:40px!important}
.ad-copy{margin:20px 24px 6px!important;font-size:17px!important;line-height:1.45!important;color:#dcecff!important;text-align:center!important}

@media(max-width:640px){
  .daily-grid.month-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}
  #daily-modal{width:94vw!important}
}
.game-screen[data-zone="garage"],.game-screen[data-zone="space"],.game-screen[data-zone="egypt"],.game-screen[data-zone="cats"]{
  background-image:url('../assets/user/bg-garage.png')!important;
  background-size:100% 100%!important;background-position:center!important;background-repeat:no-repeat!important;
}

/* ================================================================
   v0.5.9 — desktop cinematic shell
   The approved 941×1672 UI stays untouched in the center. On desktop,
   the empty side space becomes a scene-specific continuation instead of black.
   ================================================================ */
.desktop-stage{display:none;position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none;background:#02050a}
.desktop-stage-image,.desktop-stage-shade,.desktop-stage-glow{position:absolute;inset:0;pointer-events:none}
.desktop-stage-image{
  inset:-2.5vh -2.5vw;
  background-repeat:no-repeat;
  background-size:cover;
  background-position:center top;
  filter:brightness(.58) saturate(.98) contrast(1.04);
  transform:scale(1.035);
  transform-origin:center;
}
.app[data-scene="start"] .desktop-stage-image{background-image:url('../assets/desktop-start.webp');background-position:center top}
.app[data-scene="garage"] .desktop-stage-image{background-image:url('../assets/desktop-garage.webp');background-position:center 22%}
.app[data-scene="space"] .desktop-stage-image{background-image:url('../assets/desktop-space.webp');background-position:center 24%}
.app[data-scene="egypt"] .desktop-stage-image{background-image:url('../assets/desktop-egypt.webp');background-position:center 28%}
.app[data-scene="cats"] .desktop-stage-image{background-image:url('../assets/desktop-cats.webp');background-position:center 26%}
.desktop-stage-shade{
  background:
    linear-gradient(90deg,rgba(1,4,8,.48) 0%,rgba(1,4,8,.18) 22%,rgba(1,4,8,.34) 39%,rgba(1,4,8,.44) 50%,rgba(1,4,8,.34) 61%,rgba(1,4,8,.18) 78%,rgba(1,4,8,.48) 100%),
    linear-gradient(180deg,rgba(0,0,0,.06),rgba(0,0,0,.18) 72%,rgba(0,0,0,.42));
}
.desktop-stage-glow{
  opacity:.54;
  background:
    radial-gradient(circle at 20% 24%,rgba(23,155,255,.16),transparent 28%),
    radial-gradient(circle at 80% 54%,rgba(255,139,54,.12),transparent 31%),
    radial-gradient(ellipse at 50% 50%,transparent 0 30%,rgba(1,4,8,.08) 43%,rgba(1,4,8,.42) 100%);
}

@media (min-width:900px) and (min-aspect-ratio:4/3){
  html,body,.app{background:#02050a!important}
  .desktop-stage{display:block}
  .screen{z-index:2}
  .start-screen,.game-screen{
    box-shadow:
      -34px 0 72px rgba(0,0,0,.46),
      34px 0 72px rgba(0,0,0,.46),
      0 0 0 1px rgba(126,194,245,.08);
  }
  .start-screen::before,.game-screen::after{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    z-index:0;
    box-shadow:inset 18px 0 32px rgba(0,0,0,.12),inset -18px 0 32px rgba(0,0,0,.12);
  }
}

@media (min-width:1600px) and (min-aspect-ratio:16/10){
  .desktop-stage-image{filter:brightness(.62) saturate(1.02) contrast(1.04)}
  .desktop-stage-shade{background:
    linear-gradient(90deg,rgba(1,4,8,.40) 0%,rgba(1,4,8,.14) 24%,rgba(1,4,8,.30) 40%,rgba(1,4,8,.44) 50%,rgba(1,4,8,.30) 60%,rgba(1,4,8,.14) 76%,rgba(1,4,8,.40) 100%),
    linear-gradient(180deg,rgba(0,0,0,.03),rgba(0,0,0,.14) 70%,rgba(0,0,0,.36));
  }
}


/* Zone-specific scenery: keep the approved v0.5.9 UI intact and recolor only the free side scenery. */
.game-screen[data-zone="space"]::before,.game-screen[data-zone="egypt"]::before,.game-screen[data-zone="cats"]::before{
  content:""!important;display:block!important;position:absolute!important;inset:0!important;z-index:1!important;pointer-events:none!important;
  background-position:center!important;background-size:cover!important;background-repeat:no-repeat!important;
  -webkit-mask-image:linear-gradient(90deg,#000 0 17%,rgba(0,0,0,.82) 21%,transparent 29%,transparent 71%,rgba(0,0,0,.82) 79%,#000 83% 100%)!important;
  mask-image:linear-gradient(90deg,#000 0 17%,rgba(0,0,0,.82) 21%,transparent 29%,transparent 71%,rgba(0,0,0,.82) 79%,#000 83% 100%)!important;
  opacity:.96!important;
}
.game-screen[data-zone="space"]::before{background-image:url('../assets/desktop-space.webp')!important}
.game-screen[data-zone="egypt"]::before{background-image:url('../assets/desktop-egypt.webp')!important}
.game-screen[data-zone="cats"]::before{background-image:url('../assets/desktop-cats.webp')!important}

/* ================================================================
   v0.5.10 — narrow fixes on top of the v0.5.9 visual baseline.
   ================================================================ */
/* 1. Muted sound: keep the approved button art and only add the v0.6.6-style strike. */
#sound-button-start.is-muted::after{
  content:""!important;
  display:block!important;
  position:absolute!important;
  left:50%!important;top:50%!important;
  width:31%!important;height:2px!important;
  border-radius:999px!important;
  background:#ff6d88!important;
  box-shadow:0 0 7px rgba(255,69,106,.9)!important;
  transform:translate(-50%,-50%) rotate(45deg)!important;
  pointer-events:none!important;
  opacity:1!important;
}

/* 2. Selected difficulty: retain the painted card, add only the same compact check mark. */
.start-screen .difficulty-card.is-selected::after{
  content:"✓"!important;
  position:absolute!important;
  right:5%!important;top:11%!important;
  display:grid!important;place-items:center!important;
  width:20px!important;height:20px!important;
  border-radius:50%!important;
  background:rgba(2,13,22,.94)!important;
  color:#fff!important;
  font-size:13px!important;font-weight:950!important;
  box-shadow:0 0 12px currentColor,0 0 0 1px rgba(255,255,255,.24)!important;
  opacity:1!important;
  z-index:6!important;
}
.start-screen .difficulty-card[data-difficulty="normal"].is-selected::after{color:#54ffe1!important}
.start-screen .difficulty-card.hard.is-selected::after{color:#ffc05c!important}
.start-screen .difficulty-card.expert.is-selected::after{color:#ff7593!important}

/* 3. Leaderboard: make the current player's row visibly distinct. */
.leader-row.is-current{
  border-color:#48dfff!important;
  background:rgba(5,45,61,.9)!important;
  box-shadow:0 0 16px rgba(45,206,255,.12)!important;
}
.leader-divider{height:1px;margin:3px 8px;background:rgba(96,179,255,.22)}

/* 7. Booster stock: show only the live stock counter over the approved painted button. */
.bottom-actions .booster-button small{
  display:block!important;
  opacity:1!important;
  position:absolute!important;
  right:4%!important;top:4%!important;
  min-width:42px!important;
  padding:3px 5px!important;
  border:1px solid rgba(91,217,255,.36)!important;
  border-radius:8px!important;
  background:rgba(2,15,27,.92)!important;
  box-shadow:0 0 9px rgba(42,194,255,.16)!important;
  color:transparent!important;
  font-size:0!important;
  text-align:center!important;
}
.bottom-actions .booster-button small b{
  display:inline!important;
  opacity:1!important;
  color:#6cecff!important;
  font-size:10px!important;
  font-weight:950!important;
  white-space:nowrap!important;
}
.bottom-actions .booster-button small b::after{content:""!important}
.bottom-actions .booster-button small span{display:none!important}

/* ================================================================
   v0.5.11 — only requested fixes on top of v0.5.10 / v0.5.9 visual.
   ================================================================ */
/* 1. Ad unavailable must stay centered in the viewport. */
.ad-modal{
  position:fixed!important;
  left:50%!important;top:50%!important;right:auto!important;bottom:auto!important;
  transform:translate(-50%,-50%)!important;
  margin:0!important;
}

/* 2. Muted sound: exactly the v0.6.6 treatment — the baked speaker stays, only a slash appears. */
#sound-button-start{overflow:visible!important}
#sound-button-start.is-muted::after{
  content:""!important;display:block!important;position:absolute!important;
  left:50%!important;top:50%!important;width:31%!important;height:2px!important;
  border-radius:999px!important;background:#ff6d88!important;
  box-shadow:0 0 7px rgba(255,69,106,.9)!important;
  transform:translate(-50%,-50%) rotate(45deg)!important;
  pointer-events:none!important;opacity:1!important;z-index:10!important;
}

/* 3–7. Keep the approved 0.5.9 chrome, but make its live regions truly dynamic. */
.game-screen[data-zone="garage"]{
  background-image:url('../assets/user/bg-garage.png')!important;
  background-size:100% 100%!important;background-position:center!important;background-repeat:no-repeat!important;
}
.game-screen[data-zone="space"]{
  background-image:url('../assets/user/bg-space.png')!important;
  background-size:100% 100%!important;background-position:center!important;background-repeat:no-repeat!important;
}
.game-screen[data-zone="egypt"]{
  background-image:url('../assets/user/bg-egypt.png')!important;
  background-size:100% 100%!important;background-position:center!important;background-repeat:no-repeat!important;
}
.game-screen[data-zone="cats"]{
  background-image:url('../assets/user/bg-cats.png')!important;
  background-size:100% 100%!important;background-position:center!important;background-repeat:no-repeat!important;
}
/* Disable the old masked side overlay that caused the washed-out/unfinished space scene. */
.game-screen[data-zone="space"]::before,
.game-screen[data-zone="egypt"]::before,
.game-screen[data-zone="cats"]::before{display:none!important;content:none!important}

/* Approved chrome stays above the zone scene; live canvas replaces only dynamic content. */
.game-screen::after{
  content:""!important;display:block!important;position:absolute!important;inset:0!important;
  z-index:3!important;pointer-events:none!important;
  background:none!important;
}
.canvas-shell{
  position:absolute!important;inset:0!important;left:0!important;top:0!important;
  width:100%!important;height:100%!important;min-height:0!important;
  overflow:hidden!important;border:0!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;z-index:4!important;
}
#game-canvas{display:block!important;width:100%!important;height:100%!important;min-height:0!important;touch-action:none!important}
.game-topbar,.mystery-card,.bottom-actions,.toast{z-index:5!important}
/* The live mystery card must fully cover the baked car shadow. */
.mystery-card{background:linear-gradient(180deg,#05121f,#030b16)!important}
.goal-silhouette{opacity:.92!important}
/* Make the dynamic prize silhouette readable without changing the card itself. */
.mystery-card .goal-silhouette{
  opacity:1!important;
  filter:grayscale(1) brightness(.20) contrast(1.25) drop-shadow(0 0 12px rgba(54,203,255,.82))!important;
}
/* Keep the exact 0.5.9 approved gameplay artwork as the central visual source. */
.game-screen[data-zone="garage"],
.game-screen[data-zone="space"],
.game-screen[data-zone="egypt"],
.game-screen[data-zone="cats"]{
  background-image:url('../assets/user/bg-garage.png')!important;
  background-size:100% 100%!important;background-position:center!important;background-repeat:no-repeat!important;
}
.game-screen::after{display:none!important;content:none!important}
/* Zone art changes only the free side scenery; it never washes over the board or HUD. */
.game-screen[data-zone="space"]::before,
.game-screen[data-zone="egypt"]::before,
.game-screen[data-zone="cats"]::before{
  content:""!important;display:block!important;position:absolute!important;inset:0!important;z-index:1!important;pointer-events:none!important;
  background-position:center!important;background-size:cover!important;background-repeat:no-repeat!important;
  -webkit-mask-image:linear-gradient(90deg,#000 0 16%,rgba(0,0,0,.86) 19%,rgba(0,0,0,.35) 23%,transparent 28%,transparent 72%,rgba(0,0,0,.35) 77%,rgba(0,0,0,.86) 81%,#000 84% 100%)!important;
  mask-image:linear-gradient(90deg,#000 0 16%,rgba(0,0,0,.86) 19%,rgba(0,0,0,.35) 23%,transparent 28%,transparent 72%,rgba(0,0,0,.35) 77%,rgba(0,0,0,.86) 81%,#000 84% 100%)!important;
  opacity:.78!important;filter:brightness(.72) saturate(.92)!important;
}
.game-screen[data-zone="space"]::before{background-image:url('../assets/user/bg-space.png')!important}
.game-screen[data-zone="egypt"]::before{background-image:url('../assets/user/bg-egypt.png')!important}
.game-screen[data-zone="cats"]::before{background-image:url('../assets/user/bg-cats.png')!important}
/* Prize silhouette must be clearly readable while remaining a shadow. */
.mystery-card .goal-silhouette{
  opacity:1!important;
  filter:grayscale(1) brightness(.48) contrast(1.15) drop-shadow(0 0 13px rgba(54,203,255,.82))!important;
}
/* v0.5.9 hid the baked mystery silhouette; v0.5.11 replaces it with the live prize shadow. */
.mystery-card #goal-symbol{
  display:grid!important;position:absolute!important;left:10%!important;right:10%!important;top:6%!important;height:48%!important;
  place-items:center!important;font-size:clamp(28px,5.4vw,52px)!important;line-height:1!important;
  opacity:1!important;filter:grayscale(1) brightness(.48) contrast(1.15) drop-shadow(0 0 13px rgba(54,203,255,.82))!important;
}
/* Restore the live percentage inside the approved mystery card. */
.mystery-card .mystery-copy>span{
  display:block!important;position:absolute!important;left:0!important;right:0!important;top:55%!important;height:22%!important;
  text-align:center!important;color:transparent!important;font-size:0!important;white-space:nowrap!important;
}
.mystery-card .mystery-copy>span>span{display:none!important}
.mystery-card #reveal-progress{display:inline-block!important;position:static!important;transform:none!important;background:#07121f!important;color:#fff!important;font-size:clamp(13px,2.2vw,23px)!important}
/* Silhouette treatment: dark prize shadow with a cyan rim, not a colored emoji. */
.mystery-card #goal-symbol{
  filter:grayscale(1) brightness(.08) contrast(1.4) drop-shadow(0 0 3px rgba(150,231,255,.90)) drop-shadow(0 0 12px rgba(54,203,255,.80))!important;
}

/* ================================================================
   v0.5.12 — modular gameplay scene.
   The gameplay screen is assembled from independent local assets so
   zone backgrounds and live game state no longer depend on a baked screenshot.
   ================================================================ */
.game-screen{
  background-color:#02070d!important;
  background-position:center!important;
  background-size:100% 100%!important;
  background-repeat:no-repeat!important;
}
.game-screen[data-zone="garage"]{background-image:url('../assets/user/bg-garage.png')!important}
.game-screen[data-zone="space"]{background-image:url('../assets/user/bg-space.png')!important}
.game-screen[data-zone="egypt"]{background-image:url('../assets/user/bg-egypt.png')!important}
.game-screen[data-zone="cats"]{background-image:url('../assets/user/bg-cats.png')!important}
.game-screen::before,.game-screen::after{display:none!important;content:none!important}

/* Desktop continuation uses the same scene as the centered game, never stale artwork. */
.app[data-scene="garage"] .desktop-stage-image{background-image:url('../assets/user/bg-garage.png')!important}
.app[data-scene="space"] .desktop-stage-image{background-image:url('../assets/user/bg-space.png')!important}
.app[data-scene="egypt"] .desktop-stage-image{background-image:url('../assets/user/bg-egypt.png')!important}
.app[data-scene="cats"] .desktop-stage-image{background-image:url('../assets/user/bg-cats.png')!important}

/* Full-screen live canvas: board, robots, queue and next robots are dynamic. */
.canvas-shell{
  position:absolute!important;inset:0!important;left:0!important;top:0!important;
  width:100%!important;height:100%!important;min-height:0!important;
  margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
  overflow:hidden!important;background:transparent!important;box-shadow:none!important;
  pointer-events:auto!important;z-index:4!important;
}
#game-canvas{
  display:block!important;width:100%!important;height:100%!important;min-height:0!important;
  background:transparent!important;touch-action:none!important;
}

/* Painted top controls are now separate assets with real accessible DOM hotspots. */
.game-topbar{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;pointer-events:none!important;z-index:8!important}
.game-topbar button{
  position:absolute!important;margin:0!important;padding:0!important;min-width:0!important;min-height:0!important;
  border:0!important;box-shadow:none!important;color:transparent!important;background-color:transparent!important;
  background-position:center!important;background-repeat:no-repeat!important;background-size:contain!important;
  pointer-events:auto!important;overflow:visible!important;
  transition:filter .16s ease,transform .12s ease!important;
}
#home-button{left:1.55%!important;top:.45%!important;width:8.05%!important;height:4.55%!important;background-image:url('../assets/user/ui-menu.png')!important}
#level-map-button{left:15.25%!important;top:1.00%!important;width:16.25%!important;height:3.35%!important;background-image:url('../assets/user/ui-level.png')!important}
#collection-button-game{left:42.55%!important;top:1.00%!important;width:17.55%!important;height:3.35%!important;background-image:url('../assets/user/ui-collection.png')!important}
#game-coin-button{left:69.10%!important;top:1.00%!important;width:15.60%!important;height:3.35%!important;background-image:url('../assets/user/ui-coins.png')!important}
#settings-button-game{left:88.55%!important;top:.45%!important;width:8.25%!important;height:4.55%!important;background-image:url('../assets/user/ui-settings.png')!important}
.game-topbar button>*{visibility:hidden!important}
#level-map-button #level-value{
  visibility:visible!important;position:absolute!important;left:72%!important;top:50%!important;transform:translate(-50%,-50%)!important;
  min-width:23px!important;padding:1px 4px!important;border-radius:7px!important;background:rgba(3,15,27,.96)!important;color:#fff!important;
  box-shadow:0 0 7px 4px rgba(3,15,27,.92)!important;font-size:clamp(10px,1.65vw,17px)!important;font-weight:950!important;text-align:center!important;
}
#game-coin-button #coin-value{
  visibility:visible!important;position:absolute!important;left:53%!important;top:50%!important;transform:translate(-50%,-50%)!important;
  min-width:38px!important;padding:1px 4px!important;border-radius:7px!important;background:rgba(3,15,27,.96)!important;color:#fff!important;
  box-shadow:0 0 7px 4px rgba(3,15,27,.92)!important;font-size:clamp(10px,1.65vw,17px)!important;font-weight:950!important;text-align:center!important;
}
@media(hover:hover) and (pointer:fine){
  .game-topbar button:hover,.bottom-actions .booster-button:hover{filter:brightness(1.14) saturate(1.08)!important;transform:translateY(-1px)!important}
}
.game-topbar button:focus-visible,.bottom-actions .booster-button:focus-visible{
  filter:brightness(1.16) saturate(1.10) drop-shadow(0 0 7px rgba(80,210,255,.7))!important;
}
.game-topbar button:active,.bottom-actions .booster-button:active{transform:translateY(1px) scale(.985)!important}

/* Separate mystery panel: the generated frame stays static, live find/progress stays dynamic. */
.mystery-card{
  position:absolute!important;left:35.25%!important;top:5.55%!important;width:29.50%!important;height:auto!important;aspect-ratio:1.35/1!important;
  transform:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
  background:transparent url('../assets/user/ui-mystery.png') center/contain no-repeat!important;
  box-shadow:none!important;display:block!important;pointer-events:none!important;z-index:8!important;
}
.mystery-card .goal-silhouette,#goal-symbol{
  display:grid!important;position:absolute!important;left:12%!important;right:12%!important;top:9%!important;height:49%!important;
  place-items:center!important;font-size:clamp(27px,5.15vw,50px)!important;line-height:1!important;
  opacity:1!important;color:#07101b!important;
  filter:grayscale(1) brightness(.11) contrast(1.5) drop-shadow(0 0 4px rgba(173,236,255,.92)) drop-shadow(0 0 12px rgba(41,194,255,.78))!important;
}
.mystery-copy{position:absolute!important;inset:0!important;display:block!important}
.mystery-copy strong{display:none!important}
.mystery-card .mystery-copy>span{
  display:block!important;position:absolute!important;left:0!important;right:0!important;top:56%!important;height:19%!important;
  text-align:center!important;color:transparent!important;font-size:0!important;white-space:nowrap!important;
}
.mystery-card .mystery-copy>span>span{display:none!important}
.mystery-card #reveal-progress{
  display:inline-block!important;position:static!important;transform:none!important;padding:1px 6px!important;
  border-radius:7px!important;background:rgba(3,15,27,.96)!important;color:#fff!important;
  box-shadow:0 0 8px 4px rgba(3,15,27,.88)!important;font-size:clamp(11px,2vw,20px)!important;font-weight:950!important;line-height:1.05!important;
}
.mystery-progress{
  display:block!important;position:absolute!important;left:17%!important;top:73%!important;width:66%!important;height:6px!important;
  margin:0!important;border:1px solid rgba(157,218,255,.62)!important;border-radius:999px!important;background:#061321!important;overflow:hidden!important;
}
#mystery-progress-bar{display:block!important;height:100%!important;border-radius:999px!important;background:linear-gradient(90deg,#23cbff,#83efff)!important;box-shadow:0 0 7px rgba(50,209,255,.7)!important}

/* Booster artwork is separate from the scene; only stock badges are live overlays. */
.bottom-actions{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;margin:0!important;padding:0!important;pointer-events:none!important;z-index:8!important}
.bottom-actions .booster-button{
  position:absolute!important;top:84.90%!important;height:5.15%!important;margin:0!important;padding:0!important;min-height:0!important;
  border:0!important;border-radius:0!important;background-color:transparent!important;background-position:center!important;background-repeat:no-repeat!important;background-size:contain!important;
  box-shadow:none!important;color:transparent!important;pointer-events:auto!important;display:block!important;overflow:visible!important;
}
#hint-button{left:6.55%!important;width:23.10%!important;background-image:url('../assets/user/ui-hint.png')!important}
#queue-help-button{left:38.05%!important;width:24.80%!important;background-image:url('../assets/user/ui-clear.png')!important}
#shuffle-button{left:68.35%!important;width:24.60%!important;background-image:url('../assets/user/ui-shuffle.png')!important}
.bottom-actions .booster-button>span{display:none!important}
.bottom-actions .booster-button small{
  display:block!important;position:absolute!important;right:2%!important;top:-8%!important;min-width:36px!important;padding:2px 5px!important;
  border:1px solid rgba(88,213,255,.42)!important;border-radius:8px!important;background:rgba(2,14,25,.94)!important;
  box-shadow:0 0 8px rgba(35,187,255,.18)!important;color:transparent!important;font-size:0!important;text-align:center!important;opacity:1!important;
}
.bottom-actions .booster-button small b{display:inline!important;color:#6cecff!important;font-size:9px!important;font-weight:950!important;white-space:nowrap!important}
.bottom-actions .booster-button small b::after{content:""!important}
.bottom-actions .booster-button small span{display:none!important}

.toast{z-index:12!important;top:17.2%!important}
.settings-hud-button::after{display:none!important}

/* ================================================================
   v0.5.25 — one 941x1672 gameplay coordinate system.
   All supplied artwork keeps its native aspect ratio.
   ================================================================ */
html,body,.app{width:100%!important;height:100%!important;overflow:hidden!important}
.app{position:relative!important;background:#02050a!important}

/* Fit the complete portrait stage into the viewport. Never crop it. */
.game-screen{
  position:absolute!important;
  inset:auto!important;
  left:50%!important;
  top:50%!important;
  width:min(100vw,calc(100vh * 941 / 1672))!important;
  width:min(100vw,calc(100dvh * 941 / 1672))!important;
  height:auto!important;
  aspect-ratio:941 / 1672!important;
  max-width:100vw!important;
  max-height:100vh!important;
  max-height:100dvh!important;
  transform:translate(-50%,-50%)!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  background-color:#02070d!important;
  background-position:center!important;
  background-size:100% 100%!important;
  background-repeat:no-repeat!important;
  box-shadow:0 0 90px rgba(0,0,0,.78)!important;
}
.game-screen[data-zone="garage"]{background-image:url('../assets/user/bg-garage.png')!important}
.game-screen[data-zone="space"]{background-image:url('../assets/user/bg-space.png')!important}
.game-screen[data-zone="egypt"]{background-image:url('../assets/user/bg-egypt.png')!important}
.game-screen[data-zone="cats"]{background-image:url('../assets/user/bg-cats.png')!important}
.game-screen::before,.game-screen::after{display:none!important;content:none!important}
.game-screen>*{position:absolute!important}

/* Desktop side continuation is only scenery, never another UI layer. */
.desktop-stage{display:block!important;position:absolute!important;inset:0!important;z-index:0!important;overflow:hidden!important;pointer-events:none!important}
.app[data-scene="garage"] .desktop-stage-image{background-image:url('../assets/user/bg-garage.png')!important}
.app[data-scene="space"] .desktop-stage-image{background-image:url('../assets/user/bg-space.png')!important}
.app[data-scene="egypt"] .desktop-stage-image{background-image:url('../assets/user/bg-egypt.png')!important}
.app[data-scene="cats"] .desktop-stage-image{background-image:url('../assets/user/bg-cats.png')!important}

/* Full-stage canvas. JS uses the same 941x1672 system with one scale value. */
.canvas-shell{
  inset:0!important;left:0!important;top:0!important;width:100%!important;height:100%!important;
  min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
  overflow:hidden!important;background:transparent!important;box-shadow:none!important;z-index:4!important;
}
#game-canvas{display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;background:transparent!important;touch-action:none!important}

/* Supplied top artwork. Width controls size; native aspect ratio controls height. */
.game-topbar{inset:0!important;width:100%!important;height:100%!important;display:block!important;margin:0!important;padding:0!important;pointer-events:none!important;z-index:8!important}
.game-topbar button{
  position:absolute!important;height:auto!important;margin:0!important;padding:0!important;min-width:0!important;min-height:0!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;color:transparent!important;background-color:transparent!important;
  background-position:center!important;background-repeat:no-repeat!important;background-size:100% 100%!important;
  pointer-events:auto!important;overflow:visible!important;
}
#home-button{left:1.91%!important;top:.54%!important;width:7.44%!important;aspect-ratio:180/172!important;background-image:url('../assets/user/ui-menu.png')!important}
#level-map-button{left:10.73%!important;top:-1.20%!important;width:26.25%!important;aspect-ratio:360/186!important;background-image:url('../assets/user/ui-level.png')!important}
#collection-button-game{left:38.58%!important;top:-.90%!important;width:27.95%!important;aspect-ratio:390/181!important;background-image:url('../assets/user/ui-collection.png')!important}
#game-coin-button{left:67.80%!important;top:-.24%!important;width:20.19%!important;aspect-ratio:360/187!important;background-image:url('../assets/user/ui-coins.png')!important}
#settings-button-game{left:89.80%!important;top:.48%!important;width:7.44%!important;aspect-ratio:180/170!important;background-image:url('../assets/user/ui-settings.png')!important}
.game-topbar button>*{visibility:hidden!important}
#level-map-button #level-value,#game-coin-button #coin-value{
  visibility:visible!important;position:absolute!important;transform:translate(-50%,-50%)!important;
  padding:1px 5px!important;border-radius:7px!important;background:rgba(3,15,27,.94)!important;color:#fff!important;
  box-shadow:0 0 7px 4px rgba(3,15,27,.82)!important;font-weight:950!important;text-align:center!important;line-height:1!important;
}
#level-map-button #level-value{left:72%!important;top:50%!important;font-size:clamp(11px,1.7vw,18px)!important}
#game-coin-button #coin-value{left:52%!important;top:51%!important;font-size:clamp(11px,1.7vw,18px)!important}

/* Supplied mystery frame; no independent width/height distortion. */
.mystery-card{
  left:34.33%!important;top:5.50%!important;width:31.88%!important;height:auto!important;aspect-ratio:420/312!important;
  margin:0!important;padding:0!important;border:0!important;border-radius:0!important;transform:none!important;
  background:transparent url('../assets/user/ui-mystery.png') center/100% 100% no-repeat!important;box-shadow:none!important;z-index:8!important;pointer-events:none!important;
}
.mystery-card .goal-silhouette,#goal-symbol{
  display:grid!important;position:absolute!important;left:13%!important;right:13%!important;top:12%!important;height:42%!important;
  place-items:center!important;font-size:clamp(31px,5.1vw,51px)!important;line-height:1!important;color:#07101b!important;opacity:1!important;
  filter:grayscale(1) brightness(.10) contrast(1.5) drop-shadow(0 0 4px rgba(173,236,255,.92)) drop-shadow(0 0 12px rgba(41,194,255,.72))!important;
}
.mystery-copy{position:absolute!important;inset:0!important;display:block!important}.mystery-copy strong{display:none!important}
.mystery-card .mystery-copy>span{display:block!important;position:absolute!important;left:0!important;right:0!important;top:55%!important;text-align:center!important;color:transparent!important;font-size:0!important}
.mystery-card .mystery-copy>span>span{display:none!important}
.mystery-card #reveal-progress{display:inline-block!important;color:#fff!important;background:rgba(3,15,27,.93)!important;border-radius:7px!important;padding:1px 6px!important;font-size:clamp(12px,2vw,21px)!important;font-weight:950!important;line-height:1!important}
.mystery-progress{display:block!important;position:absolute!important;left:17%!important;top:70%!important;width:66%!important;height:7px!important;margin:0!important;border:1px solid rgba(157,218,255,.62)!important;border-radius:999px!important;background:#061321!important;overflow:hidden!important}
#mystery-progress-bar{display:block!important;height:100%!important;border-radius:999px!important;background:linear-gradient(90deg,#23cbff,#83efff)!important;box-shadow:0 0 7px rgba(50,209,255,.7)!important}

/* Supplied booster artwork. Native ratios are preserved. */
.bottom-actions{inset:0!important;width:100%!important;height:100%!important;margin:0!important;padding:0!important;display:block!important;pointer-events:none!important;z-index:8!important}
.bottom-actions .booster-button{
  position:absolute!important;height:auto!important;margin:0!important;padding:0!important;min-width:0!important;min-height:0!important;
  border:0!important;border-radius:0!important;background-color:transparent!important;background-position:center!important;background-repeat:no-repeat!important;background-size:100% 100%!important;
  box-shadow:none!important;color:transparent!important;pointer-events:auto!important;display:block!important;overflow:visible!important;
}
#hint-button{left:4.04%!important;top:83.13%!important;width:28.69%!important;aspect-ratio:420/233!important;background-image:url('../assets/user/ui-hint.png')!important}
#queue-help-button{left:35.07%!important;top:83.13%!important;width:28.69%!important;aspect-ratio:420/230!important;background-image:url('../assets/user/ui-clear.png')!important}
#shuffle-button{left:66.21%!important;top:83.79%!important;width:28.69%!important;aspect-ratio:420/199!important;background-image:url('../assets/user/ui-shuffle.png')!important}
.bottom-actions .booster-button>span{display:none!important}
.bottom-actions .booster-button small{display:block!important;position:absolute!important;right:2%!important;top:5%!important;min-width:36px!important;padding:2px 5px!important;border:1px solid rgba(88,213,255,.42)!important;border-radius:8px!important;background:rgba(2,14,25,.94)!important;color:transparent!important;font-size:0!important;text-align:center!important;opacity:1!important}
.bottom-actions .booster-button small b{display:inline!important;color:#6cecff!important;font-size:9px!important;font-weight:950!important;white-space:nowrap!important}.bottom-actions .booster-button small span{display:none!important}

.toast{z-index:12!important;top:18%!important}

@media(hover:hover) and (pointer:fine){.game-topbar button:hover,.bottom-actions .booster-button:hover{filter:brightness(1.12) saturate(1.06)!important}}
.game-topbar button:focus-visible,.bottom-actions .booster-button:focus-visible{outline:0!important;filter:brightness(1.16) saturate(1.08) drop-shadow(0 0 7px rgba(80,210,255,.68))!important}
/* v0.5.25 final geometry corrections after runtime check */
.game-screen{border:0!important;outline:0!important}
.mystery-card{left:35.10%!important;top:5.95%!important;width:29.76%!important}
/* v0.5.25 runtime tuning: preserve all artwork while keeping the painted top row fully on-screen. */
#level-map-button{top:-.45%!important}
#collection-button-game{top:-.20%!important}
#game-coin-button{top:.10%!important}
/* v0.5.25 final top-row alignment from browser runtime check */
#level-map-button{top:.20%!important}
#collection-button-game{top:.30%!important}
#game-coin-button{top:.10%!important}

/* =====================================================================
   v0.5.48 — shop uses the exact booster artwork from the in-game buttons.
   The extracted standalone PNGs come from ui-hint/ui-clear/ui-shuffle,
   so the shop no longer falls back to emoji glyphs.
   ===================================================================== */
.shop-card>.shop-booster-icon{
  display:block!important;
  width:64px!important;
  height:64px!important;
  object-fit:contain!important;
  margin:0 auto 2px!important;
  filter:drop-shadow(0 0 9px rgba(64,202,255,.24))!important;
}
@media(max-width:560px){
  .shop-card>.shop-booster-icon{width:52px!important;height:52px!important;margin:0!important}
}

/* v0.5.48 — clean muted state on the approved start screen.
   Keep the baked speaker button untouched and draw only a precise slash. */
#sound-button-start.is-muted{
  color:transparent!important;
  font-size:0!important;
  background:rgba(0,0,0,.001)!important;
  border:0!important;
  box-shadow:none!important;
  overflow:visible!important;
}
#sound-button-start.is-muted::before,
#sound-button-start.is-muted::after{
  content:""!important;
  display:block!important;
  position:absolute!important;
  left:50%!important;
  top:50%!important;
  border-radius:999px!important;
  transform:translate(-50%,-50%) rotate(45deg)!important;
  transform-origin:center!important;
  pointer-events:none!important;
  opacity:1!important;
}
#sound-button-start.is-muted::before{
  width:60%!important;
  height:6px!important;
  background:rgba(3,12,22,.92)!important;
  box-shadow:0 0 5px rgba(0,0,0,.8)!important;
  z-index:9!important;
}
#sound-button-start.is-muted::after{
  width:58%!important;
  height:3px!important;
  background:linear-gradient(90deg,#ff8a9c,#ff4868,#ff8a9c)!important;
  box-shadow:0 0 6px rgba(255,73,105,.72)!important;
  z-index:10!important;
}
@media(max-width:560px){
  .shop-card>.shop-booster-icon{grid-column:1!important;grid-row:1/4!important;align-self:center!important;justify-self:center!important}
  .shop-card>strong{grid-column:2/4!important;grid-row:1!important}
  .shop-card>small{grid-column:2!important;grid-row:2!important}
  .shop-card>em{grid-column:3!important;grid-row:2!important;text-align:right!important}
}





/* v0.5.55 — RU and EN intentionally share the exact same original start artwork. */

/* =====================================================================
   v0.5.53 — reset confirmation modal: cancel becomes the main centered
   highlighted action (green), reset stays highlighted as red. Applies to
   both RU and EN because the structure is shared.
   ===================================================================== */
.success-button{
  width:min(340px,100%);min-height:52px;padding:11px 18px;border-radius:15px;margin-top:8px;font-weight:900;
  border:1px solid #59f3c6;background:linear-gradient(180deg,#1aa86e,#0b6e47);color:#fff;
  box-shadow:0 0 18px rgba(68,244,185,.18),inset 0 0 16px rgba(255,255,255,.04);
}
.success-button:hover,.success-button:focus-visible{
  filter:brightness(1.05);box-shadow:0 0 22px rgba(68,244,185,.28),inset 0 0 18px rgba(255,255,255,.06);
}
.reset-modal .danger-button,.reset-modal .success-button{width:100%;max-width:100%;margin-top:0}
.reset-modal-actions{display:grid;gap:10px;margin-top:18px}
.reset-modal-actions .success-button{order:1}
.reset-modal-actions .danger-button{order:2}
.reset-modal .modal-copy{margin-bottom:0}

/* =====================================================================
   v0.5.54 — runtime custom bilingual text layers created in Layout Editor.
   Geometry/style are shared between RU/EN; only text content changes.
   ===================================================================== */
.custom-text-layer{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;pointer-events:none!important;overflow:visible!important;z-index:auto!important}
.custom-game-text{position:absolute!important;display:flex!important;box-sizing:border-box!important;white-space:pre-wrap!important;overflow:hidden!important;pointer-events:none!important;word-break:normal!important}
.modal-backdrop{z-index:1200!important}.modal{z-index:1201!important}.tutorial{z-index:1300!important}.global-status{z-index:1400!important}


/* =====================================================================
   v0.5.57 — user version integration fixes
   1) start screen switches artwork by language again;
   2) start settings/sound positions swapped on both languages;
   3) in-game top buttons do not move on hover/active;
   4) menu/settings HUD buttons are not clipped into circles.
   ===================================================================== */
html[lang="ru"] .start-screen{
  background:#03070d url('../assets/ui-start-approved.webp') center/100% 100% no-repeat!important;
}
html[lang="en"] .start-screen{
  background:#03070d url('../assets/ui-start-en.webp') center/100% 100% no-repeat!important;
}
/* Start screen: swap the hit areas of sound and settings to match the new layout. */
#settings-button-start{left:87.57%!important;top:1.26%!important;width:8.82%!important;height:4.31%!important;border-radius:18px!important}
#sound-button-start{left:3.51%!important;top:1.26%!important;width:8.72%!important;height:4.31%!important;border-radius:18px!important}
/* Game HUD: keep the drawn shape exactly as in the asset. */
#home-button,#settings-button-game{
  -webkit-clip-path:none!important;
  clip-path:none!important;
  border-radius:0!important;
  overflow:visible!important;
  background-size:100% 100%!important;
  background-position:center center!important;
}
@media(hover:hover) and (pointer:fine){
  .game-topbar button:hover{
    filter:brightness(1.12) saturate(1.06)!important;
    transform:none!important;
  }
}
.game-topbar button:focus-visible{
  transform:none!important;
}
.game-topbar button:active{
  transform:none!important;
  filter:brightness(1.08) saturate(1.04)!important;
}


/* =====================================================================
   v0.5.58 — start art redraw + copyright captions on start/game screens
   ===================================================================== */
.screen-copyright{
  position:absolute;left:50%;transform:translateX(-50%);
  width:min(92%,760px);text-align:center;pointer-events:none;user-select:none;
  color:rgba(232,242,255,.92);font-size:10px;line-height:1.2;font-weight:700;
  text-shadow:0 0 8px rgba(0,0,0,.85),0 0 14px rgba(0,0,0,.6);letter-spacing:.01em;
  z-index:9;
}
.start-copyright{bottom:8px;}
.game-copyright{bottom:3px;font-size:9px;opacity:.95;}
@media(max-width:560px){
  .start-copyright{bottom:6px;font-size:9px;}
  .game-copyright{bottom:2px;font-size:8px;}
}
