:root{--red:#d90012;--red-deep:#a4000d;--red-dark:#7d000a;--ink:#222;--muted:#7b7676;--line:#ececec;--maroon:#7a160f}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;padding:0}
html{scroll-behavior:smooth}
body{background:#efefef;color:var(--ink);font-family:Montserrat,Roboto,-apple-system,"Helvetica Neue",Arial,sans-serif}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
img{display:block;max-width:100%}
svg{display:block}
.shell{position:relative;max-width:600px;margin:0 auto;min-height:100vh;background:#fff;padding-bottom:calc(66px + env(safe-area-inset-bottom))}

/* header */
.top{position:sticky;top:0;z-index:40;display:flex;align-items:center;height:62px;padding:0 14px;background:#fff;border-bottom:1px solid #ebebeb}
.menu-button{width:30px;height:22px;display:flex;flex-direction:column;justify-content:space-between;padding:1px 0;flex:none}
.menu-button i{display:block;height:3.4px;border-radius:2px;background:var(--red)}
.brand{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:block}
.brand img{width:196px;height:auto}

/* hero */
.hero{position:relative;overflow:hidden;background:#f7d9d7}
.slides{display:flex;transition:transform .45s ease}
.slide{flex:0 0 100%;width:100%;aspect-ratio:8/3;object-fit:cover}
.dots{position:absolute;bottom:9px;left:0;right:0;display:flex;justify-content:center;gap:6px}
.dots i{width:6px;height:6px;border-radius:6px;background:#ffffffb3}
.dots i.on{width:18px;background:#fff}

/* marquee */
.marquee{display:flex;align-items:center;gap:7px;height:36px;padding:0 10px;background:var(--maroon);color:#fff;font-size:12.5px;overflow:hidden}
.speaker{flex:none;width:15px;color:#ffd94a}
.marquee b{color:#ffd94a;font-size:12.5px;flex:none}
.ticker-window{overflow:hidden;flex:1;min-width:0}
.ticker{display:inline-block;white-space:nowrap;animation:ticker 30s linear infinite}
@keyframes ticker{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* auth actions */
.auth-actions{display:grid;grid-template-columns:1fr 1fr;gap:13px;padding:11px 12px 13px;background:#fff}
.auth-actions a{position:relative;display:flex;align-items:center;justify-content:center;height:50px;border-radius:25px;font-size:16.5px;font-weight:700;letter-spacing:.2px}
.action-register{background:linear-gradient(180deg,#ee1b26,#c1000e);color:#fff;box-shadow:0 2px 7px #d9001233}
.action-register span{position:absolute;top:-9px;right:16px;display:flex;align-items:center;justify-content:center;height:23px;padding:0 9px;border-radius:12px;background:#ffd400;color:#b1000c;font-size:12px;font-weight:800;transform:rotate(-8deg);box-shadow:0 1px 3px #00000033}
.action-login{background:#fff;border:1.5px solid var(--red);color:var(--red)}

/* category strip */
.category-strip{display:flex;align-items:stretch;background:var(--red)}
.category{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;height:76px;color:#fff;font-size:10.5px;font-weight:700;letter-spacing:.1px;text-align:center;padding:0 2px;border-right:1px solid #ffffff1f}
.category:last-of-type{border-right:0}
.category.active{background:var(--red-deep)}
.category-icon{width:24px;height:24px;display:flex;align-items:center;justify-content:center}
.category-icon svg{width:24px;height:24px;color:#fff}
.category-arrow{width:13px;flex:none;color:#fff;font-size:18px;background:#ffffff14}

/* game grid */
.games-section{padding:11px 9px 18px;background:#fff}
.games{display:grid;grid-template-columns:repeat(3,1fr);gap:10px 9px}
.game{min-width:0;display:block;border:1px solid #f1b5b7;border-radius:6px;overflow:hidden;background:#fff;box-shadow:0 2px 5px #00000014}
.game[hidden]{display:none}
.game-art{position:relative;width:100%;aspect-ratio:210/170;overflow:hidden;background:#b70d16}
.game-art img{width:100%;height:100%;object-fit:cover}
.game strong{display:flex;align-items:center;justify-content:center;min-height:34px;padding:5px 3px;background:#fff;color:var(--red);font-size:11px;font-weight:700;text-align:center;line-height:1.2;text-transform:uppercase;letter-spacing:-.1px}
.empty-note{padding:30px 10px;text-align:center;color:#8a7d7d;font-size:13px}

/* float + bottom */
.float-help{position:fixed;z-index:45;right:max(10px,calc((100vw - 600px)/2 + 12px));bottom:84px;width:46px;height:46px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:linear-gradient(180deg,#ee1b26,#c1000e);color:#fff;box-shadow:0 4px 12px #b9001066}
.float-help svg{width:23px;height:23px}
.bottom{position:fixed;z-index:50;bottom:0;left:50%;transform:translateX(-50%);width:min(600px,100%);display:grid;grid-template-columns:repeat(5,1fr);height:calc(64px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:#fff;border-top:1px solid #ead6d6}
.bottom a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border-right:1px solid #f1dede;color:#6f6666;font-size:9.5px;font-weight:700;letter-spacing:.1px}
.bottom a:last-child{border-right:0}
.bottom b{display:flex;align-items:center;justify-content:center;width:23px;height:23px;color:var(--red)}
.bottom b svg{width:22px;height:22px}
.bottom a.selected{background:linear-gradient(180deg,#e51a26,#c0000e);color:#fff}
.bottom a.selected b{color:#fff}

/* auth overlay */
.auth-overlay{position:fixed;inset:0;z-index:100;display:none;overflow-y:auto;-webkit-overflow-scrolling:touch;background:#fff url("../m/img/login_bg.dc00256deb094737.png") center top/cover}
.auth-overlay:target{display:block}
body.overlay-open{overflow:hidden}
.auth-panel{position:relative;max-width:600px;min-height:100vh;margin:0 auto;padding:52px 30px 30px;display:flex;flex-direction:column;align-items:center}
.close-auth{position:absolute;top:11px;right:13px;width:33px;height:33px;display:flex;align-items:center;justify-content:center;border:2px solid var(--red);border-radius:50%;background:#fff;color:var(--red);line-height:1}
.close-auth span{font-size:24px;line-height:1;margin-top:-2px}
.auth-brand{display:flex;flex-direction:column;align-items:center;gap:6px}
.auth-brand .logo-clip{display:block}
.auth-brand img{width:200px;height:auto}
.auth-brand b{display:none;font-weight:700;text-align:center;letter-spacing:.1px}
.ambassador{width:calc(100% - 6px);max-width:452px;margin:2px auto 4px}
.auth-fields{width:100%;max-width:470px;margin:0 auto}
.fake-field{position:relative;display:flex;align-items:center;gap:10px;height:47px;margin-bottom:12px;padding:0 18px;border-radius:24px;background:linear-gradient(180deg,#df1f1e,#bf090c);color:#fff;font-size:16px;font-weight:500;box-shadow:inset 0 1px 0 #ff8078,0 2px 4px #a9000022}
.fake-field>svg{width:21px;height:21px;flex:none;color:#fff}
.fake-field .field-text{flex:1;min-width:0}
.fake-field .eye{margin-left:auto;font-size:15px;opacity:.95}
.fake-field.phone{gap:0}
.fake-field.phone img{width:26px;height:17px;border-radius:2px;border:1px solid #fff;flex:none;margin-right:10px}
.fake-field.phone span{font-size:15px;margin-right:10px;flex:none}
.fake-field.phone i{width:1px;height:22px;background:#ffffff8c;flex:none;margin-right:14px}
.save-row,.agree-row{display:flex;align-items:center;justify-content:center;gap:7px;margin:2px 0 14px;font-size:11.5px;color:#4c4444;text-align:center}
.agree-row em{color:#1683ff;font-style:normal}
.tick{display:flex;align-items:center;justify-content:center;width:15px;height:15px;border-radius:3px;background:#2f7bff;color:#fff;font-size:10px;flex:none}
.submit-demo{display:flex;align-items:center;justify-content:center;width:58%;max-width:250px;height:54px;margin:2px auto 0;border-radius:27px;background:linear-gradient(180deg,#ee1b26,#b9000c);color:#fff;font-size:19px;font-weight:800;letter-spacing:.3px;box-shadow:inset 0 1px 0 #ff8d84,0 3px 7px #a4000033;text-transform:uppercase}
.switch-auth{margin:14px 0 0;font-size:13px;color:#3f3a3a;text-align:center}
.switch-auth a{color:var(--red);font-weight:700}
.forgot-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0 0}
.forgot-row a{display:flex;align-items:center;justify-content:center;gap:7px;height:44px;border-radius:22px;background:linear-gradient(180deg,#e52026,#bd070f);color:#fff;font-size:9.5px;font-weight:700;line-height:1.25;text-align:left;padding:0 8px;box-shadow:inset 0 1px 0 #ff8a82}
.forgot-row img{width:22px;height:22px;flex:none;object-fit:contain}
.demo-note{margin:12px 0 0;font-size:10px;line-height:1.5;text-align:center;color:#8b7d7d}
.app-strip{display:block;width:100%;max-width:360px;margin:12px auto 0}

/* small screens */
@media (max-width:420px){
.top{height:56px}
.brand img{width:166px}
.category{height:70px;font-size:9px;gap:5px}
.category-icon,.category-icon svg{width:21px;height:21px}
.games-section{padding:9px 7px 16px}
.games{gap:8px 7px}
.game strong{font-size:10px;min-height:31px}
.auth-panel{padding:46px 16px 24px}
.auth-brand img{width:194px}
.fake-field{height:44px;font-size:14.5px;padding:0 15px}
.submit-demo{height:50px;font-size:17px}
.forgot-row a{height:40px;font-size:8.5px}
}
