
:root{--phone-bg:#fff;--card-title:#000;--card-text:#9ea7a9;--card-bg:var(--kl-green,#176455);--nav-bar:#fff;--list-bg:#f7f8fc;--page-pad:clamp(12px,3.2vw,16px);--safe-t:env(safe-area-inset-top,0px);--safe-b:env(safe-area-inset-bottom,0px);--tab-content:67px;--tab-inset:max(21px,var(--safe-b));--tab-h:calc(var(--tab-content) + var(--tab-inset));--phone-max:100%}@media(min-width:600px){:root{--page-pad:clamp(20px,3vw,40px);--tab-content:72px}}@media(min-width:1400px){:root{--phone-max:1080px;--page-pad:32px}body{background:#1c2433!important}}*{box-sizing:border-box}html,body{margin:0;overflow:hidden;height:100vh;height:100dvh;overscroll-behavior:none}body{background:var(--phone-bg);font-family:'Noto Sans SC',sans-serif;font-weight:500;color:var(--card-title);-webkit-font-smoothing:antialiased}#app{height:100%;display:flex;justify-content:center}.phone{width:100%;max-width:var(--phone-max);height:100%;margin:0 auto;background:var(--phone-bg);position:relative;overflow:hidden;display:flex;flex-direction:column;touch-action:manipulation}.phone,.phone *{scrollbar-width:none;-ms-overflow-style:none}.phone *::-webkit-scrollbar{display:none;width:0;height:0}button{appearance:none;border:0;background:none;padding:0;font:inherit;color:inherit;cursor:pointer}img{display:block;max-width:100%}p{margin:0}.shell{height:100%;display:flex;flex-direction:column;background:var(--list-bg)}main{flex:1;overflow:auto}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}.home{min-height:100%;background:linear-gradient(180deg,#2a63d4,#24a5ef 42%,#fff 76%)}.pad{padding:0 var(--page-pad)}.brand{display:flex;align-items:center;gap:12px;padding:25px var(--page-pad);color:white}.logo{width:46px;height:46px;border-radius:50%;background:white;color:#1d63d8;display:grid;place-items:center;font-size:25px;font-weight:700}.brand h1{font-size:22px;letter-spacing:3px;margin:0}.brand small{font-size:11px;letter-spacing:2px;opacity:.7}.service{margin-left:auto;background:#ffffff20;border:1px solid #ffffff40;border-radius:50%;width:40px;height:40px}.balance{color:white;padding:0 4px 24px}.eyeline{font-size:11px;opacity:.8;display:flex;gap:9px;align-items:center}.eyeline svg{width:17px;height:17px}.money{font:600 clamp(28px,8.5vw,36px)/1.6 Saira,sans-serif;letter-spacing:1px}.money small{font-size:16px;margin-right:8px}.row{display:flex;align-items:center;justify-content:space-between;gap:10px}.balance p{font-size:11px;opacity:.75}.actions{display:flex;gap:8px}.actions button{height:50px;border-radius:14px;padding:0 18px;background:white;color:#2164d5;font-size:12px}.actions button+button{background:#ffffff20;border:1px solid #ffffff60;color:white}.actions svg{width:17px;margin-right:6px}.banner{width:100%;text-align:left;aspect-ratio:369/128;border:4px solid white;border-radius:17px;background:linear-gradient(115deg,#eef6ff,#c6dafa);padding:22px;position:relative;overflow:hidden;color:#234b88;box-shadow:0 8px 20px #1544a11a}.banner small{font-size:11px;letter-spacing:2px;color:#718fb8}.banner h2{margin:7px 0;font-size:clamp(21px,4.8vw,34px);letter-spacing:2px}.banner p{font-size:11px;color:#7290b7}.banner:after{content:'6';font:700 180px Saira;position:absolute;right:8%;top:-55px;color:#ffffff80;transform:rotate(-15deg)}.coin{width:72px;height:72px;display:grid;place-items:center;border-radius:50%;background:radial-gradient(circle at 30% 20%,#fff2cc,#e7bf79 60%,#a97d3b);color:#825c2d;font:700 35px Saira;box-shadow:0 14px 25px #0003;position:absolute;right:12%;top:25%;transform:rotate(15deg)}.banner .coin{width:56px;height:56px;top:32%;font-size:26px;z-index:1;border:4px solid #fff0d0}.dots{display:flex;justify-content:center;gap:5px;padding:10px}.dots i{width:5px;height:4px;border-radius:5px;background:#ffffff65}.dots i:first-child{width:16px;background:white}.notice{display:flex;align-items:center;gap:10px;background:#ffffffea;border-radius:10px;padding:12px;font-size:11px;color:#647895}.notice svg{width:18px;flex-shrink:0}.marquee{overflow:hidden;mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent)}.marquee span{display:block;white-space:nowrap;animation:marquee 18s linear infinite}@keyframes marquee{from{transform:translateX(30%)}to{transform:translateX(-100%)}}.section{display:flex;justify-content:space-between;align-items:center;margin:23px 0 13px}.section h2{font-size:17px;margin:0}.section button{font-size:11px;color:#74849b}.card{background:white;border-radius:14px;padding:18px;margin-bottom:14px;border:1px solid #edf0f5}.card strong{font-size:13px}.muted{font-size:11px;color:var(--kl-muted,#53665e)}.balls{display:flex;align-items:center;gap:9px;margin:16px 0;flex-wrap:wrap}.ball{width:32px;height:32px;flex-shrink:0;border-radius:50%;display:grid;place-items:center;background:var(--ball);color:white;font-size:13px;font-weight:800;box-shadow:inset 0 -3px 0 #00000018}.special{position:relative}.special:after{content:'特';width:16px;height:14px;border-radius:4px;background:#f3ae43;position:absolute;top:-8px;right:-5px;font-size:11px;display:grid;place-items:center}.status{font-size:11px;color:var(--kl-warning,#885000)}.quick{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;text-align:center;padding:18px 0}.quick button{font-size:11px;color:var(--kl-muted,#53665e)}.quick svg{display:block;margin:0 auto 8px;color:#2c68dc;width:23px}.segment{display:flex;background:#edf1f8;border-radius:11px;padding:4px;gap:4px;margin:19px 0 15px}.segment button{flex:1;padding:9px 3px;border-radius:8px;font-size:11px;color:var(--kl-muted,#53665e)}.segment button.active{background:white;color:#1e5cd5;box-shadow:0 2px 5px #00000008}.activity{aspect-ratio:369/249;position:relative;overflow:hidden;background:radial-gradient(ellipse at 90% 15%,#1a509e,#082450 68%);color:white;border-radius:17px;padding:25px;cursor:pointer}.activity:before{content:'';position:absolute;right:-60px;top:-35px;width:230px;height:230px;border:30px solid #6798e820;border-radius:50%;box-shadow:0 0 0 20px #6398e610,0 0 0 48px #6398e608}.activity small{font-size:11px;letter-spacing:4px;color:#92b0db}.activity h2{font-size:clamp(25px,5vw,39px);line-height:1.55;letter-spacing:3px;margin:16px 0 8px}.activity em{font-style:normal;color:#efd198}.activity p{font-size:11px;color:#a3bedf}.activity footer{position:absolute;left:0;right:0;bottom:0;height:57px;background:#ffffff16;backdrop-filter:blur(14px);display:flex;justify-content:space-between;align-items:center;padding:0 20px;font-size:11px}.activity footer b{font-weight:500;font-size:11px;border:1px solid #ffffff45;border-radius:20px;padding:6px 12px}.listrow{display:flex;align-items:center;gap:12px;width:100%;height:52px;border-bottom:1px solid #f0f2f5;text-align:left;font-size:12px}.listrow:last-child{border:0}.listrow svg{color:#6587ce;width:21px}.listrow span{flex:1}.listrow b{font-weight:400;color:var(--kl-muted,#53665e)}.footer{text-align:center;font-size:11px;letter-spacing:2px;color:var(--kl-muted,#53665e);padding:20px}.tabs{display:flex;flex-shrink:0;background:white;border-top:1px solid #edf0f4;height:var(--tab-h);padding:10px 5px var(--tab-inset);justify-content:center;z-index:3}.tabs button{flex:1;max-width:180px;font-size:11px;color:var(--kl-muted,#53665e);display:flex;align-items:center;flex-direction:column;gap:4px}.tabs svg{width:28px;height:28px}.tabs .active{color:var(--card-bg)}.nav{height:64px;background:white;display:flex;align-items:center;justify-content:space-between;padding:0 var(--page-pad)}.nav strong{font-size:17px}.nav>button{color:#7a879b;min-width:25px}.nav .right{font-size:11px;color:#72829a}.page{padding:18px var(--page-pad) 30px;max-width:850px;margin:auto}.primary{height:48px;border-radius:24px;background:var(--card-bg);color:white;font-weight:600;font-size:13px;width:100%;margin-top:18px}.pill,.field{height:56px;border-radius:30px;background:#f0f3f8;padding:0 18px;display:flex;align-items:center;gap:12px;margin:15px 0}.field{height:64px;border-radius:12px}.pill svg,.field svg{color:#a0adbf;width:20px}.pill input,.field input,.field select{border:0;background:transparent;width:100%;outline:0;font:inherit;font-size:13px;min-width:0}.auth{max-width:500px;margin:auto;padding:24px var(--page-pad)}.auth .logo{background:#e8f0ff;margin:28px 0}.auth h2{font-size:28px;margin:0 0 12px}.auth p{margin-bottom:30px}.authlinks{display:flex;justify-content:space-between;font-size:11px;color:#8390a4;margin-top:20px}.auth a{color:#215ed1;text-decoration:none}.authservice{margin:50px 0;text-align:center;color:var(--kl-muted,#53665e);font-size:11px}.board{border-radius:14px;overflow:hidden;background:#fff}.head{display:flex;justify-content:space-between;padding:14px 16px;background:var(--kl-green,#176455);color:#fff}.head strong{display:block;margin-top:4px;font-size:22px}.eye{font-size:12px;opacity:.85}.grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px 4px;padding:16px 5px}.num{position:relative;padding:5px 0 8px;display:flex;flex-direction:column;align-items:center;border-radius:9px}.num small{margin-top:4px;color:#667085;font-size:11px}.num.on{background:#e8f0ff}.num.on .ball{outline:2px solid var(--kl-green,#176455);outline-offset:2px}.chips{display:flex;gap:7px;margin:14px 0}.chip{flex:1;height:36px;border-radius:10px;background:#f2f4f7;font-weight:700;font-size:11px}.chip.on{background:var(--kl-green,#176455);color:#fff}.types{display:flex;gap:6px;overflow:auto;padding:15px 0}.types button{white-space:nowrap;font-size:12px;padding:9px 14px;border-radius:9px;background:white;color:#7c899e}.types .active{background:var(--kl-green,#176455);color:white}.betfoot{position:sticky;bottom:0;padding:15px;background:white;border:1px solid #e7edf6;border-radius:14px}.betfoot input{width:60%;font:inherit;border:1px solid #dce4ef;border-radius:8px;padding:10px;outline:0}.betfoot .primary{margin:0;width:44%}.kpis{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:15px 0}.kpi{border:1px solid #dce6f2;border-radius:12px;min-height:64px;padding:15px;background:white}.kpi strong{display:block;font:600 22px Saira;margin-top:7px}.empty{text-align:center;padding:45px 15px;color:var(--kl-muted,#53665e);font-size:13px;line-height:2}.wallet{background:linear-gradient(188deg,#9cb6ed 9%,#5884e6,#406bd2 91%);color:white;border-radius:18px;padding:23px}.stats{display:grid;grid-template-columns:repeat(3,1fr);background:#00000025;backdrop-filter:blur(10px);padding:15px 0;border-radius:12px;text-align:center;margin:15px 0}.stats small{display:block;font-size:11px;opacity:.7}.stats strong{font:500 18px Saira}.wallet .quick button,.wallet .quick svg{color:white}.amount{width:100%;border:0;border-bottom:1px solid #e6ebf3;font:600 36px Saira;padding:14px 0;outline:0}.upload{border:1px dashed #aab9d1;height:98px;display:grid;place-items:center;font-size:12px;color:var(--kl-muted,#53665e);border-radius:12px;margin-top:18px;overflow:hidden}.avatar{width:72px;height:72px;border-radius:50%;background:linear-gradient(135deg,#d6e7ff,#739de4);color:white;font-size:30px;display:grid;place-items:center;position:relative;cursor:pointer}.avatar img{width:72px;height:72px;object-fit:cover;border-radius:50%}.camera{position:absolute;bottom:0;right:0;width:22px;height:22px;border:2px solid white;border-radius:50%;background:var(--kl-green,#176455);font-size:11px;display:grid;place-items:center}.profilehead{display:flex;align-items:center;gap:18px;margin:7px 0 25px}.profilehead h2{font-size:20px;margin:0 0 6px}.link{color:#2166de;font-size:11px}.bank{background:linear-gradient(120deg,#214f9f,#5e90e7);color:white}.bank .number{font:500 23px Saira;letter-spacing:3px;margin:20px 0}.help details{background:white;padding:17px;border-radius:12px;margin:10px 0;font-size:13px}.help summary{cursor:pointer}.help details p{font-size:12px;line-height:1.9;color:var(--kl-muted,#53665e);margin-top:16px}.bubble{background:white;padding:13px 17px;border-radius:14px;font-size:13px;line-height:1.7;max-width:80%;width:fit-content;margin:15px 0}.bubble.self{background:var(--kl-green,#176455);color:white;margin-left:auto}.composer{display:flex;gap:12px;position:sticky;bottom:0;background:white;padding:14px}.composer input{flex:1;min-width:0;border:0;border-radius:24px;padding:13px;background:#f1f4f9;font:inherit;font-size:12px;outline:0}.composer button{color:var(--kl-green,#176455);font-size:13px}.brands{display:grid;grid-template-columns:1fr 1fr;gap:12px}.brandcard{background:white;border-radius:14px;min-height:136px;padding:20px;text-align:center}.brandcard .logo{width:35px;height:35px;font-size:18px;background:#eaf1ff;margin:0 auto 12px}.brandcard strong{font-size:12px}.brandcard p{font-size:11px;color:var(--kl-muted,#53665e);margin-top:7px}.rule{font-size:14px;line-height:1.7}.rule h3{font-size:15px;margin-top:25px}.toast{position:absolute;bottom:calc(var(--tab-h) + 20px);left:50%;transform:translateX(-50%);background:#1d3152ed;color:white;padding:12px 20px;border-radius:12px;font-size:12px;white-space:nowrap;z-index:30}.overlay{position:absolute;inset:0;display:grid;place-items:center;background:#15264170;z-index:20;padding:28px}.dialog{width:100%;max-width:360px;background:white;padding:26px;border-radius:20px}.dialog h3{margin:0 0 16px;font-size:18px}.dialog p{font-size:13px;line-height:1.9;color:var(--kl-muted,#53665e)}.cancel{font-size:12px;color:var(--kl-muted,#53665e);width:100%;margin-top:16px}.filter{border:1px solid #dce1e9;border-radius:20px;padding:5px 12px}.filter.active{color:#3d82f6;border-color:#3d82f6}@media(min-width:760px){.homegrid{display:grid;grid-template-columns:1fr 1fr;gap:26px}.homegrid>div{min-width:0}.grid{grid-template-columns:repeat(7,1fr)}.activity{aspect-ratio:369/300}.brand{padding-top:30px}.balance{padding-bottom:30px}.homegrid .segment{margin-top:0}.banner{max-height:230px}.homegrid{padding-bottom:12px}}

/* Recharge methods share one responsive content column. */
.deposit-layout{width:min(100%,680px);margin:0 auto;padding:16px var(--page-pad) 28px}
.deposit-layout [hidden]{display:none!important}
.deposit-methods{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin-bottom:12px;padding:4px;border-radius:12px;background:#e8edf6}
.deposit-methods button{min-height:40px;padding:6px 8px;border-radius:9px;color:#455672;font-weight:600}
.deposit-methods button[aria-pressed=true]{background:white;color:var(--card-bg);box-shadow:0 1px 3px #253b671a}
.deposit-layout #fundForm{padding:0;margin:0;width:100%}
.deposit-layout .card{padding:16px;margin-bottom:10px}
.deposit-layout #fundForm .amount{padding-block:8px;margin-block:8px 0}
.deposit-layout #fundForm .upload{height:76px;margin-top:10px}
.deposit-layout .primary{margin-top:10px}
.deposit-usdt-head{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.deposit-usdt-head span{padding:3px 7px;border-radius:6px;background:#edf3ff;color:#2459c2;font-size:11px;font-weight:700}
.deposit-usdt-label{display:block;margin:12px 0 6px;font-size:13px;font-weight:600;color:#34445f}
.deposit-usdt-field{display:flex;align-items:center;gap:8px;padding:0 12px;border:1px solid #dfe6f2;border-radius:10px;background:#f7f9fc}
.deposit-usdt-field input{flex:1;min-width:0;width:100%;border:0;background:transparent;font:inherit;padding:11px 0}
.deposit-usdt-field span{color:#50617e;font-size:12px;font-weight:600}
#usdt-state:not(:empty){margin-top:8px;color:#64758f}
#usdt-order:not(:empty){margin-top:14px;padding-top:2px;border-top:1px solid #edf0f5}
#usdt-order select{width:100%;margin-bottom:8px;padding:8px;border:1px solid #dfe6f2;border-radius:8px;background:white;color:#34445f;font:inherit}
#usdt-order p{margin:6px 0}

/* Home artwork is cropped to its decorative region so the live labels stay separate. */
.home-art { display:block; position:relative; overflow:hidden; isolation:isolate; width:100%; text-align:left; color:#fff; border-radius:16px; background:#17131f; }
.home-art img { position:absolute; max-width:none; height:auto; pointer-events:none; }
.home-art::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,#151023 28%,#151023ee 42%,#15102300 76%); pointer-events:none; }
.home-art-copy { position:relative; z-index:1; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; height:100%; padding:clamp(13px,3vw,26px); gap:5px; }
.home-art-copy small { font-size:11px; color:#f6cf81; letter-spacing:.12em; }
.home-art-copy strong { font-size:clamp(20px,4.5vw,32px); line-height:1.18; }
.home-art-copy span { color:#e8dce2; font-size:clamp(11px,2vw,13px); }
.home-feature { min-height:128px; aspect-ratio:369/128; max-height:214px; border:3px solid #ffffffdb; box-shadow:0 8px 20px #17326825; }
.home-feature[hidden] { display:none; }
.home-art-help img { width:470%; right:0; top:0; }
.home-art-rules img { width:650%; left:48%; top:0; }
.home-art-wallet img { width:430%; right:0; bottom:0; }
.home-art-wallet { background:#183429; }
.home-art-wallet::after { background:linear-gradient(90deg,#183429 30%,#183429ee 49%,#18342900 80%); }
.home-art-game { min-height:175px; aspect-ratio:2.1; max-height:280px; background:#110d09; }
.home-art-game img { width:100%; right:-3%; top:50%; transform:translateY(-50%); clip-path:inset(0 0 0 50%); }
.home-art-game::after { background:linear-gradient(90deg,#110d09 42%,#110d09cf 53%,#110d0900 75%); }
.home-art-game .home-art-copy span { padding:6px 11px; margin-top:4px; border-radius:99px; background:#ffdf91; color:#352007; font-weight:700; }
.home-art-dots { display:flex; justify-content:center; gap:3px; margin:1px 0 3px; }
.home-art-dots button { display:grid; place-items:center; min-width:36px; min-height:30px; }
.home-art-dots button::after { content:""; width:8px; height:8px; border-radius:99px; background:#ffffff80; }
.home-art-dots button[aria-pressed="true"]::after { width:20px; background:#fff; }
.home-game-links { display:grid; grid-template-columns:1fr 1fr; gap:6px; margin:14px 0 10px; padding:4px; border-radius:13px; background:#fff; }
.home-game-links button { min-height:39px; border-radius:10px; color:#3a5276; }
.home-game-links button:first-child { background:var(--kl-green,#176455); color:#fff; }
.home-art:focus-visible,.home-art-dots button:focus-visible,.home-game-links button:focus-visible { outline:2px solid #f3bd49; outline-offset:2px; }
@media(max-width:430px) { .home-art-game { aspect-ratio:1.9; } }
/* Member homepage */
.home {
  --home-ink:#182941;
  --home-muted:#526783;
  --home-line:#e1e9f4;
  --home-shadow:0 8px 24px #203e6f0c;
  background:linear-gradient(180deg,#102346 0,#244779 225px,#edf3fa 450px,#f8fafc 850px);
  color:var(--home-ink);
}
.home .brand,.home .pad { max-width:1180px; margin-inline:auto; }
.home .brand { padding-block:calc(14px + var(--safe-t)) 14px; }
.home .brand .logo { box-shadow:0 4px 14px #0719334a; }
.home .brand small { color:#dce7f8; opacity:1; }
.home .balance {
  position:relative;isolation:isolate;overflow:hidden;
  padding:clamp(15px,3vw,24px);margin-bottom:16px;
  border:1px solid var(--kl-gold,#d8b96e);border-radius:var(--kl-card-radius,16px);
  background:linear-gradient(120deg,var(--kl-ink,#143630),var(--kl-green,#176455));
  box-shadow:0 14px 26px #0b22422b;
}
.home .balance > .row { gap:14px; }
.home .balance .eyeline { font-size:12px; opacity:1; color:#e0ebff; }
.home .balance .money { font:700 clamp(30px,8vw,42px)/1.35 'Saira',sans-serif; font-variant-numeric:tabular-nums; letter-spacing:.01em; }
.home .balance p { color:#dae7fa; opacity:1; font-size:11px; }

.home .actions button + button { color:#fff; background:#ffffff14; border:1px solid #ffffff45; }
.home .homegrid { align-items:start; }
.home .home-art { border-radius:18px; border:1px solid #ffffff3d; box-shadow:0 9px 22px #11254526; }
.home .home-art-copy { gap:7px; padding-inline:clamp(16px,3vw,26px); }
.home .home-art-copy strong { letter-spacing:.01em; }
.home .home-art-game { min-height:190px; }
.home .home-art-game .home-art-copy span { font-size:12px; }
.home .notice,.home .home-game-links,.home .quick,.home .home-secondary {
  background:#fff;
  border:1px solid var(--home-line);
  box-shadow:var(--home-shadow);
}
.home .notice { border-radius:12px; padding:11px 13px; color:var(--home-muted); font-size:12px; }
.home .home-game-links { margin-block:12px 10px; }
.home .home-game-links button { font-size:13px; font-weight:700; }
.home .home-game-links button:first-child { background:#214f99; }
.home .home-art-dots button::after { background:#a5b6cd; }
.home .home-art-dots button[aria-pressed="true"]::after { background:#d4a44c; }
.home .quick { padding:8px; margin-top:13px; border-radius:16px; gap:3px; }
.home .quick button { min-height:64px; border-radius:10px; color:#334d70; font-size:11px; }
.home .quick svg { margin-bottom:5px; color:#2b5a9f; width:20px; }
.home .home-secondary { min-width:0; border-radius:18px; padding:13px; margin-top:16px; }
.home .home-secondary .segment { margin:0 0 12px; background:#eff4fa; }
.home .home-secondary .segment button { min-height:38px; font-size:12px; color:var(--home-muted); }
.home .home-secondary .segment button.active { color:#1e4d95; }
.home .home-secondary .activity {
  min-height:182px; aspect-ratio:1.85; padding:20px;
  background:radial-gradient(ellipse at 90% 5%,#315a8e,#172e51 73%);
}
.home .home-secondary .activity footer { height:43px; }
.home .home-secondary .section { margin:17px 0 7px; }
.home .home-secondary .card { margin:0; border:1px solid var(--home-line); box-shadow:none; }
.home .footer { padding-block:19px 24px; color:#607491; }
.home button:focus-visible { outline:2px solid #cb8a29; outline-offset:2px; }
@media(hover:hover) {
  .home .quick button:hover,.home .home-game-links button:last-child:hover { background:#eef4fb; }
  .home .home-art:hover { box-shadow:0 11px 26px #11254542; }
}
@media(min-width:760px) {
  .home .homegrid { grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); gap:clamp(16px,2.6vw,28px); }
  .home .home-secondary { margin-top:0; padding:16px; }
}
@media(max-width:480px) {
  .home .balance > .row { align-items:stretch; flex-direction:column; gap:12px; }
  
}
@media(prefers-reduced-motion:reduce) {
  .home .marquee span { animation:none; }
}

/* The main action, secondary actions and utility links use distinct surfaces. */
.home {
  --home-gold:#f3d28c;
  --home-gold-ink:#31230e;
}
.home .actions { gap:9px; }
.home .actions button {
  display:flex;align-items:center;justify-content:center;gap:8px;
  flex:var(--home-action-flex,0 1 auto);min-height:46px;height:auto;
  padding:8px 13px;border-radius:var(--kl-control-radius,10px);
  color:var(--kl-ink,#143630);background:var(--phone-bg);white-space:nowrap;
  font-size:13px;font-weight:700;box-shadow:0 4px 10px #0b1c3522;
}
@media(max-width:480px){.home{--home-action-flex:1}}

.home .actions svg { margin:0; flex:0 0 17px; }
.home .actions .home-funds-deposit { background:#f7faff; border:1px solid #fff; color:#193b70; }
.home .actions .home-funds-withdraw { background:#102b50; border-color:#7895bc; color:#f5f8ff; }
.home .home-game-links {
  display:flex; justify-content:space-between; align-items:center; gap:8px;
  padding:0; border:0; background:transparent; box-shadow:none;
  margin:16px 0 8px;
}
.home .home-game-links h2 { margin:0; color:#162d50; font-size:15px; font-weight:700; }
.home .home-game-links .home-history {
  display:inline-flex; align-items:center; gap:5px; min-height:44px;
  padding-inline:11px; border:1px solid #dce6f2; border-radius:10px;
  background:#ffffffed; color:#355478; white-space:nowrap;
}
.home .home-history svg { width:15px; height:15px; }
.home .home-art-game { border:1px solid #d4ad5e80; }
.home .home-art-game .home-art-copy > span {
  display:inline-flex; align-items:center; min-height:42px;
  margin-top:7px; padding:7px 13px; border:1px solid #ffeab9;
  border-radius:10px; color:var(--home-gold-ink);
  background:linear-gradient(180deg,#ffe7b1,var(--home-gold));
  box-shadow:0 4px 12px #0006; font-size:13px;
}
.home .home-feature .home-art-copy > span {
  display:inline-flex; align-items:center; min-height:27px;
  margin-top:1px; padding:1px 8px; border-radius:7px;
  color:#fff; background:#0005; border:1px solid #ffffff48;
}
.home .quick button { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; }
.home .quick svg { box-sizing:content-box; padding:6px; margin:0; width:18px; height:18px; border-radius:9px; background:#edf3fc; }
.home .home-secondary .segment button { min-height:44px; }
.home .home-secondary .segment button.active {
  color:#fff; background:#234879; box-shadow:0 3px 8px #163d6729;
}
.home .home-art,.home .actions button,.home .home-history,.home .quick button {
  transition:background-color .16s,box-shadow .16s,transform .16s;
}
.home .home-art:active,.home .actions button:active,.home .home-history:active,.home .quick button:active {
  transform:scale(.985);
}
@media(prefers-reduced-motion:reduce) {
  .home .home-art,.home .actions button,.home .home-history,.home .quick button { transition:none; }
}

/* Decorative activity art sits below the copy and interaction layer. */
.activity.activity-illustrated {
  display:block;
  isolation:isolate;
  position:relative;
  box-sizing:border-box;
  width:100%;
  min-height:214px;
  max-height:320px;
  aspect-ratio:2.15;
  padding:22px clamp(17px,4vw,30px) 58px;
  border:1px solid #b9925459;
  background:#101e35;
  color:#fff;
  text-decoration:none;
}
.activity.activity-illustrated::before { content:none; }
.activity-artwork {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:right center;
  z-index:-2;
  pointer-events:none;
}
.activity-illustrated::after {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(90deg,#101e35 5%,#101e35ed 33%,#101e35ad 55%,#101e3522 86%);
  pointer-events:none;
}
.activity.activity-illustrated .activity-copy { max-width:72%; }
.activity.activity-illustrated small { color:#f1d5a4; letter-spacing:.16em; }
.activity.activity-illustrated h2 { margin:7px 0; font-size:clamp(21px,4vw,34px); line-height:1.17; }
.activity.activity-illustrated p { color:#e1e7f1; font-size:11px; line-height:1.6; }
.activity.activity-illustrated footer {
  height:48px;
  gap:8px;
  padding-inline:clamp(14px,4vw,24px);
  background:#0b172cd9;
  border-top:1px solid #d9b27240;
}
.activity.activity-illustrated footer b {
  flex-shrink:0;
  color:#ffdea0;
  border-color:#eac58288;
}
.activity.activity-illustrated:focus-visible { outline:2px solid #d3aa5a; outline-offset:2px; }
.activity.activity-illustrated[data-member-art] .activity-artwork {
  inset:5% 0 auto auto;
  width:48%;
  height:75%;
  object-fit:contain;
}
.activity.activity-illustrated[data-member-art] { background:radial-gradient(ellipse at 95% 30%,#705026,#101e35 69%); }
.home .home-secondary .activity.activity-illustrated { min-height:214px; padding-bottom:58px; }
.home .home-secondary .activity.activity-illustrated footer { height:48px; }
@media(max-width:400px) {
  .activity.activity-illustrated { aspect-ratio:1.6; }
  .activity.activity-illustrated .activity-copy { max-width:76%; }
}

.brand-showcase { position:relative; isolation:isolate; overflow:hidden; margin:0 0 12px; min-height:140px; border-radius:16px; background:#142a3d; color:#fff; display:flex; flex-direction:column; justify-content:center; padding:17px 19px; border:1px solid #ac8b584f; }
.brand-showcase img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:right center; z-index:-2; pointer-events:none; }
.brand-showcase::after { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,#142a3d 5%,#142a3de8 30%,#142a3d18 82%); }
.brand-showcase small { color:#f4d69e; letter-spacing:.15em; font-size:11px; }
.brand-showcase strong { font-size:clamp(20px,4vw,30px); margin:4px 0; }
.brand-showcase p { color:#e4ebf5; font-size:12px; }


/* Keep member navigation in view while page content scrolls. */
#shell main :is(header.nav,header.member-topnav,header.profile-nav){position:sticky;top:0;z-index:10;flex-shrink:0}
#shell main :is(header.nav,header.member-topnav,header.profile-nav) button{min-height:44px;min-width:44px}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
