/* Homepage calculator launch animation and floating-button styles.
   Rule order is intentional: later declarations refine earlier ones. */
.calc-launch-screen{position:fixed;inset:0;z-index:99999;display:grid;place-items:center;background:#081324;color:#f6f2e7;opacity:0;visibility:hidden;transition:opacity .15s ease,visibility .15s;overflow:hidden}
.calc-launch-screen.is-active{opacity:1;visibility:visible}
.calc-launch-screen::before,.calc-launch-screen::after{content:"";position:absolute;left:0;right:0;height:15px;background:repeating-linear-gradient(90deg,#d9b66b 0 15px,transparent 15px 31px);opacity:.95}
.calc-launch-screen::before{top:12px}.calc-launch-screen::after{bottom:12px}
.calc-launch-content{position:relative;width:min(520px,88vw);text-align:center;padding:24px 0;box-sizing:border-box}
.calc-launch-title{font:clamp(28px,7vw,46px)/1.5 'DotGothic16',monospace;letter-spacing:.05em;color:#f8f6ee;margin:0 0 22px;text-shadow:2px 2px 0 #28415e}
.calc-launch-progress{height:32px;width:100%;border:3px solid #d9b66b;background:#0d1c30;padding:4px;box-sizing:border-box;box-shadow:3px 3px 0 #050c16}
.calc-launch-progress-fill{height:100%;width:0;background:repeating-linear-gradient(90deg,#79cce7 0 17px,#6bbad8 17px 20px);transition:none}
.calc-launch-screen.is-active .calc-launch-progress-fill{animation:calcLoadFill 2.15s steps(22,end) forwards}
.calc-launch-start{font:13px/1.6 'DotGothic16',monospace;letter-spacing:.1em;color:#e6cb8c;margin-top:14px}
@keyframes calcLoadFill{0%{width:0}15%{width:18%}40%{width:39%}60%{width:67%}85%{width:91%}100%{width:100%}}
@media(prefers-reduced-motion:reduce){.calc-launch-screen{transition:none}.calc-launch-screen.is-active .calc-launch-progress-fill{animation:none;width:100%}}


/* Shared navy/gold visual language with the mode selection screen */
.calc-launch-screen{background:radial-gradient(ellipse at 50% 26%,#243754 0%,#17253c 46%,#101a2c 100%);color:#f4d789}
.calc-launch-screen::before,.calc-launch-screen::after{height:5px;left:16px;right:16px;background:repeating-linear-gradient(90deg,#e2bc6e 0 24px,transparent 24px 31px);opacity:.75}
.calc-launch-title{font-family:'DotGothic16',monospace;color:#f4d789;text-shadow:0 2px 0 #1b1c24,0 0 18px #d9ad533d}
.calc-launch-progress{border:3px solid #e2bc6e;background:#111b2d;box-shadow:inset 0 0 0 2px #344e6b,4px 5px 0 #091324;border-radius:0}
.calc-launch-progress-fill{background:repeating-linear-gradient(90deg,#d9b76b 0 17px,#b88b42 17px 20px);box-shadow:0 0 12px #d9ad5355}
.calc-launch-start{color:#e3c581;font-family:'DotGothic16',monospace}


/* Same layered metallic frame language as the mode selection cards */
.calc-launch-screen{background:radial-gradient(ellipse at 50% 30%,#2d4362 0%,#17263e 48%,#101a2c 100%)}
.calc-launch-screen::before,.calc-launch-screen::after{height:3px;left:7%;right:7%;background:linear-gradient(90deg,transparent,#8e6935 10%,#f9e7ad 27%,#b5873f 50%,#fff0bd 73%,#8b6737 90%,transparent);box-shadow:0 2px 9px #e5b85a35;opacity:.9}
.calc-launch-content{padding:34px 15px 30px;border:2px solid #b28a47;background:linear-gradient(145deg,#263e60,#172943 55%,#0e1c32);box-shadow:inset 0 0 0 3px #101c30,inset 0 0 0 5px #6f5734,0 12px 0 #081222,0 22px 45px #0008}
.calc-launch-content::before{content:"";position:absolute;inset:-5px;pointer-events:none;border:3px solid transparent;border-image:linear-gradient(140deg,#fff1b9,#c59542 23%,#f7dc94 41%,#70532d 60%,#d5ad5c 84%,#fff0b8) 1}
.calc-launch-title{background:linear-gradient(180deg,#fff8d5 6%,#f7df97 38%,#ba8841 64%,#ffe6a0 90%);-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:none;filter:drop-shadow(0 3px 0 #0b1425) drop-shadow(0 0 10px #d9ad5338)}
.calc-launch-progress{position:relative;height:36px;border:4px solid transparent;background:linear-gradient(#0d1c30,#0d1c30) padding-box,linear-gradient(145deg,#fff1b9,#c59542 23%,#f7dc94 41%,#70532d 60%,#d5ad5c 84%,#fff0b8) border-box;box-shadow:inset 0 2px 5px #000a,0 4px 0 #081222,0 0 14px #d9ad5329}
.calc-launch-progress-fill{background:repeating-linear-gradient(90deg,transparent 0 17px,#533a1d77 17px 20px),linear-gradient(180deg,#fff5ca 0%,#edcc78 29%,#b17d34 65%,#e8bc60 100%);box-shadow:inset 0 2px 0 #fff4c488,inset 0 -2px 0 #5e421e99,0 0 12px #d9ad5370}
.calc-launch-start{color:#f4d789;text-shadow:0 2px 0 #081222}
@media(max-width:480px){.calc-launch-content{width:min(520px,86vw);padding:30px 14px 26px}.calc-launch-title{font-size:clamp(25px,7vw,36px)}}


.home-page .home-floating-calc.home-floating-custom{position:fixed!important;z-index:100!important;right:12px!important;bottom:14px!important;width:198px!important;height:79px!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;display:block!important;overflow:visible!important;line-height:0!important;transform:none!important;transition:transform .2s ease!important}
.home-page .home-floating-custom img{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;max-width:none!important}
.home-page .home-floating-custom:hover{transform:translateY(-3px)!important}
.home-page .home-floating-custom:focus-visible{outline:2px solid #427c9b!important;outline-offset:2px!important}
@media(max-width:380px){.home-page .home-floating-calc.home-floating-custom{width:180px!important;height:73px!important;right:7px!important;bottom:10px!important}}
@media(prefers-reduced-motion:reduce){.home-page .home-floating-custom{transition:none!important}}
.home-page .home-header .home-header-shop{color:#fff!important;opacity:1!important;}
