/* Режим тишины: полноэкранный баннер с песочными часами (грузится до приложения, см. maint.js) */
#maint{position:fixed;inset:0;z-index:99999;display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:24px 20px;text-align:center;color:#fff8e6;font-family:"Segoe UI",Tahoma,sans-serif;overflow:hidden;
  background:radial-gradient(ellipse at 50% 30%,#3a2f1d 0%,#1c1914 62%,#100e0a 100%)}
#maint .m-brand{position:absolute;top:max(18px,env(safe-area-inset-top));left:0;right:0;font-size:22px;letter-spacing:.32em;
  font-weight:800;color:#e8b04a;opacity:.9;-webkit-user-select:none;user-select:none}
#maint .m-brand span{display:inline-block;padding:10px 2px;cursor:default;-webkit-tap-highlight-color:transparent}
#maint h1{margin:34px 0 10px;font-size:clamp(34px,7.2vw,72px);line-height:1.12;font-weight:800;max-width:15em}
#maint .m-soon{margin:0;font-size:clamp(24px,4.2vw,40px);color:#f5c869;font-weight:600}
#maint .m-note{margin:26px 0 0;font-size:clamp(16px,2.2vw,20px);color:#b9ad93}
#maint .m-note i{display:inline-block;width:9px;height:9px;border-radius:50%;background:#f5b942;margin-right:8px;animation:m-blink 1.4s ease-in-out infinite}
@keyframes m-blink{0%,100%{opacity:.25}50%{opacity:1}}
/* песочные часы */
.hg{position:relative;width:clamp(120px,22vmin,190px);height:clamp(190px,35vmin,300px);animation:hg-flip 7s ease-in-out infinite;
  filter:drop-shadow(0 0 26px rgba(245,185,66,.28))}
.hg .cap{position:absolute;left:-9%;right:-9%;height:9%;border-radius:9px;background:linear-gradient(#e2a548,#a86f1c);z-index:3}
.hg .cap.t{top:-3%}.hg .cap.b{bottom:-3%}
.hg .bulb{position:absolute;left:0;right:0;height:47%;background:rgba(255,248,230,.16);overflow:hidden}
.hg .bulb.t{top:4%;clip-path:polygon(0 0,100% 0,54% 100%,46% 100%)}
.hg .bulb.b{bottom:4%;clip-path:polygon(46% 0,54% 0,100% 100%,0 100%)}
.hg .sand{position:absolute;left:0;right:0;bottom:0;background:linear-gradient(#f7c25a,#d98d1e)}
.hg .bulb.t .sand{height:100%;animation:sand-top 7s linear infinite}
.hg .bulb.b .sand{height:0;animation:sand-bot 7s linear infinite}
.hg .stream{position:absolute;left:calc(50% - 1.5px);top:46%;width:3px;height:52%;background:#f5b942;z-index:2;transform-origin:top;
  animation:stream 7s linear infinite}
@keyframes sand-top{0%{height:100%}78%{height:0}100%{height:0}}
@keyframes sand-bot{0%{height:0}78%{height:100%}100%{height:100%}}
@keyframes stream{0%{transform:scaleY(1);opacity:1}76%{transform:scaleY(1);opacity:1}80%{transform:scaleY(0);opacity:0}100%{transform:scaleY(0);opacity:0}}
@keyframes hg-flip{0%,84%{transform:rotate(0)}100%{transform:rotate(180deg)}}
/* модальное окно кода */
#maint-modal{position:fixed;inset:0;z-index:100000;background:rgba(10,8,4,.72);display:flex;align-items:center;justify-content:center;padding:16px}
#maint-modal .box{width:100%;max-width:420px;background:#fffdf7;color:#1c1914;border-radius:18px;padding:22px 20px;
  box-shadow:0 20px 60px rgba(0,0,0,.5);font-family:"Segoe UI",Tahoma,sans-serif;text-align:center}
#maint-modal h2{margin:0 0 6px;font-size:24px}
#maint-modal p{margin:0 0 14px;font-size:17px;color:#5a5348}
#maint-modal input{width:100%;font-size:26px;letter-spacing:.3em;text-align:center;padding:12px;border:2px solid #d3c7b0;border-radius:12px;
  background:#fff;color:#1c1914;margin-bottom:10px}
#maint-modal .err{color:#dc2626;font-size:17px;min-height:22px;margin-bottom:8px}
#maint-modal button{display:block;width:100%;min-height:54px;margin-top:8px;font-size:19px;font-weight:700;border-radius:12px;border:0;cursor:pointer}
#maint-modal .go{background:#b45309;color:#fff}
#maint-modal .go2{background:#0f766e;color:#fff}
#maint-modal .go3{background:#3f3a2e;color:#fff}
#maint-modal .no{background:#e8dfcc;color:#1c1914}
#maint-modal button:disabled{opacity:.55}
/* метка для админа, когда режим включён, а он работает в приложении */
#maint-pill{position:fixed;left:10px;bottom:10px;z-index:99990;background:#b45309;color:#fff;font:700 15px "Segoe UI",Tahoma,sans-serif;
  padding:9px 14px;border-radius:999px;box-shadow:0 4px 14px rgba(0,0,0,.35);opacity:.92;pointer-events:none}
@media (prefers-reduced-motion:reduce){.hg{animation-duration:14s}}
