*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;height:100%;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#1b1b22;background:#eef2fb}button,input{font:inherit}.phone-shell{height:100dvh;max-width:560px;margin:0 auto;background:linear-gradient(180deg,#fff4ef 0%,#f8f9ff 45%,#eef4ff 100%);display:flex;flex-direction:column;overflow:hidden;box-shadow:0 0 40px rgba(70,80,120,.15)}.topbar{height:84px;display:grid;grid-template-columns:48px minmax(0,1fr) 48px;align-items:center;padding:8px 14px 2px;flex:0 0 auto}.title-wrap{text-align:center}.brand-title{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.brand-mainline{min-width:0;max-width:100%;display:flex;align-items:center;justify-content:center;gap:10px;white-space:nowrap}.brand-logo-window{width:68px;height:40px;border-radius:13px;background:rgba(255,255,255,.78);box-shadow:0 4px 14px rgba(70,80,120,.10);display:flex;align-items:center;justify-content:center;overflow:hidden;flex:0 0 auto;padding:3px 5px}.brand-logo{display:block;width:100%;height:100%;object-fit:contain}.brand-mainline h1{min-width:0;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar h1{font-size:22px;line-height:1.1;margin:0;font-weight:760}.online{font-size:13px;color:#60636d;margin-top:5px;line-height:1}.online i{display:inline-block;width:8px;height:8px;border-radius:50%;background:#23d66f;margin-right:5px;box-shadow:0 0 0 3px rgba(35,214,111,.1)}.icon-btn{width:44px;height:44px;border:0;background:transparent;display:grid;place-items:center;color:#15171c;padding:0}.back-btn svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}.dots{display:flex;align-items:center;justify-content:center;gap:4px}.dots span{width:4px;height:4px;background:#1b1b22;border-radius:50%}.messages{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:4px 18px 14px;scroll-behavior:smooth;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none}.messages::-webkit-scrollbar{display:none}.time-divider{text-align:center;font-size:13px;color:#8d8f99;margin:2px 0 14px}.msg-row{display:flex;align-items:flex-start;gap:10px;margin:0 0 18px;contain:layout style}.msg-row.user{justify-content:flex-end}.avatar{width:52px;height:52px;border-radius:50%;object-fit:cover;flex:0 0 auto;background:#fff;box-shadow:0 3px 12px rgba(67,72,118,.08)}.msg-row.small .avatar{width:38px;height:38px}.bubble{max-width:72%;background:rgba(255,255,255,.96);border-radius:17px;padding:13px 15px;box-shadow:0 6px 20px rgba(82,70,120,.06);font-size:15px;line-height:1.6;white-space:pre-wrap;word-break:break-word}.msg-row.user .bubble{background:linear-gradient(135deg,var(--theme),#678cff);color:#fff;border-bottom-right-radius:6px}.read{align-self:flex-end;color:#999;font-size:12px;margin-right:-4px;margin-bottom:7px}.image-bubble{padding:4px!important;background:transparent!important;box-shadow:none!important;position:relative;overflow:hidden}.image-bubble img{display:block;max-width:260px;max-height:320px;border-radius:13px;object-fit:contain;background:#fff;cursor:pointer}.uploading .image-bubble{min-width:128px;min-height:96px;background:rgba(255,255,255,.72)!important}.uploading .image-bubble img{opacity:.58;filter:saturate(.8)}.upload-state{position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:12px;text-shadow:0 1px 3px rgba(0,0,0,.45)}.upload-state::before{content:"";width:25px;height:25px;border:3px solid rgba(255,255,255,.5);border-top-color:#fff;border-radius:50%;animation:spin .7s linear infinite;margin-bottom:32px;position:absolute}@keyframes spin{to{transform:rotate(360deg)}}.uploading.failed .upload-state::before{display:none}.uploading.failed .upload-state{background:rgba(215,49,65,.62);font-weight:700}.quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:10px 14px 12px;flex:0 0 auto}.quick-card{border:0;background:rgba(255,255,255,.92);border-radius:16px;padding:12px 5px;min-height:88px;box-shadow:0 6px 20px rgba(93,101,145,.08);display:flex;flex-direction:column;align-items:center;justify-content:center;color:#16171d}.quick-card:active{transform:scale(.98)}.quick-card b{font-size:13px;margin:6px 0 2px}.quick-card small{font-size:10px;color:#9497a4;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}.qicon{width:25px;height:25px;display:block;position:relative}.qicon::before{font-size:20px;line-height:25px}.qicon.lock::before{content:"🔒"}.qicon.shield::before{content:"🛡️"}.qicon.bell::before{content:"🔔"}.qicon.chat::before{content:"💬"}.composer{display:flex;align-items:center;gap:8px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:rgba(255,255,255,.88);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border-top:1px solid rgba(228,230,239,.75);flex:0 0 auto}.round,.send,.emoji-btn{border:0;background:#fff;cursor:pointer}.upload-round{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;flex:0 0 auto}.upload-round svg{width:25px;height:25px;fill:none;stroke:#15171c;stroke-width:2;stroke-linecap:round}.input-shell{height:48px;min-width:0;flex:1;display:flex;align-items:center;border:1px solid #e2e5ee;border-radius:25px;background:#fff;overflow:hidden;transition:border-color .2s,box-shadow .2s}.input-shell:focus-within{border-color:color-mix(in srgb,var(--theme) 45%,#dfe3ed);box-shadow:0 0 0 3px color-mix(in srgb,var(--theme) 10%,transparent)}.composer input{height:46px;min-width:0;flex:1;border:0;padding:0 4px 0 16px;font-size:15px;outline:0;background:transparent}.emoji-btn{width:42px;height:42px;font-size:22px;color:#171921;flex:0 0 auto}.send{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;position:relative;flex:0 0 auto;background:linear-gradient(135deg,var(--theme),#637fff);color:#fff;box-shadow:0 7px 18px rgba(107,92,255,.3);transition:transform .16s,opacity .2s}.send:active{transform:scale(.94)}.send:disabled{opacity:.65;cursor:default}.send-icon{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;transform:translate(-1px,1px)}.send-loader{display:none;width:20px;height:20px;border:2.5px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:50%;animation:spin .7s linear infinite}.send.busy .send-icon{display:none}.send.busy .send-loader{display:block}@media(max-width:430px){.topbar{height:76px;padding-left:8px;padding-right:8px;grid-template-columns:40px minmax(0,1fr) 40px}.brand-logo-window{width:58px;height:34px;border-radius:11px;padding:2px 4px}.brand-mainline{gap:8px}.topbar h1{font-size:20px}.messages{padding-left:13px;padding-right:13px}.avatar{width:47px;height:47px}.bubble{font-size:14px;max-width:76%;padding:11px 13px}.quick-grid{gap:6px;padding:8px 8px 10px}.quick-card{padding:9px 3px;min-height:84px}.quick-card b{font-size:12px}.quick-card small{font-size:9px}.composer{gap:6px;padding-left:7px;padding-right:7px}.upload-round{width:42px;height:42px}.send{width:46px;height:46px}.image-bubble img{max-width:220px;max-height:280px}}@media(max-height:680px){.topbar{height:68px}.brand-logo-window{width:54px;height:31px;border-radius:10px}.brand-title .online{margin-top:3px}.quick-card{min-height:70px;padding:7px 3px}.quick-grid{padding-top:6px;padding-bottom:7px}.qicon{height:20px}.qicon::before{font-size:17px}.quick-card b{margin-top:3px}}
.front-emoji-panel{position:absolute;right:64px;bottom:calc(68px + env(safe-area-inset-bottom));width:min(330px,calc(100vw - 28px));max-height:210px;overflow:auto;background:#fff;border:1px solid #e2e5ee;border-radius:18px;box-shadow:0 18px 55px rgba(55,63,105,.18);padding:10px;z-index:20;display:grid;grid-template-columns:repeat(8,1fr);gap:4px}.front-emoji-panel[hidden]{display:none!important}.front-emoji-panel button{height:34px;border:0;background:#fff;border-radius:9px;font-size:21px;line-height:1;cursor:pointer}.front-emoji-panel button:active,.front-emoji-panel button:hover{background:#f2f5ff}@media(max-width:430px){.front-emoji-panel{right:8px;bottom:calc(64px + env(safe-area-inset-bottom));grid-template-columns:repeat(7,1fr)}}

/* 20260721 front header logo: separate horizontal logo, larger display, no thick white border */
.brand-mainline{gap:12px!important;align-items:center!important;justify-content:center!important}
.brand-logo-window{width:98px!important;height:48px!important;padding:0!important;background:transparent!important;box-shadow:none!important;border-radius:10px!important;overflow:visible!important;display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important}
.brand-logo{display:block!important;width:118%!important;height:118%!important;max-width:none!important;max-height:none!important;object-fit:contain!important}
.brand-mainline h1{flex:0 1 auto!important}
@media(max-width:430px){.brand-logo-window{width:92px!important;height:44px!important;padding:0!important}.brand-logo{width:120%!important;height:120%!important}.brand-mainline{gap:10px!important}.topbar h1{font-size:20px!important}}
@media(max-height:680px){.brand-logo-window{width:86px!important;height:40px!important;padding:0!important}.brand-logo{width:120%!important;height:120%!important}}

/* 2028 sports collapsible draggable betting shortcut */
.bet-float{position:fixed;z-index:9998;top:52%;right:8px;height:52px;display:flex;align-items:center;touch-action:none;user-select:none;-webkit-user-select:none;transition:left .22s ease,right .22s ease,transform .18s ease,filter .18s ease}.bet-float-left{left:8px;right:auto;flex-direction:row}.bet-float-right{right:8px;left:auto;flex-direction:row-reverse}.bet-float.dragging{transition:none;transform:scale(1.04);filter:drop-shadow(0 14px 24px rgba(20,38,86,.3))}.bet-float-toggle{position:relative;width:52px;height:52px;flex:0 0 52px;border:1px solid rgba(255,255,255,.72);border-radius:18px;display:grid;place-items:center;background:linear-gradient(135deg,#06265f 0%,#176bd9 58%,#2eb4ff 100%);color:#fff;box-shadow:0 12px 28px rgba(16,82,190,.34),inset 0 1px 0 rgba(255,255,255,.28);cursor:grab;overflow:visible;padding:0}.bet-float-toggle:active{cursor:grabbing}.bet-float-icon{font-size:24px;line-height:1;position:relative;z-index:2}.bet-float-pulse{position:absolute;right:-2px;top:-2px;width:11px;height:11px;border-radius:50%;background:#ffcf3b;border:2px solid #fff;box-shadow:0 0 0 0 rgba(255,207,59,.62);animation:betPulse 2s ease-out infinite}.bet-float-panel{height:52px;min-width:154px;max-width:190px;border:1px solid rgba(255,255,255,.55);border-radius:18px;padding:7px 11px;display:flex;align-items:center;gap:9px;background:linear-gradient(135deg,#08265d 0%,#145bc7 58%,#2aa9ff 100%);color:#fff;box-shadow:0 12px 28px rgba(16,82,190,.3),inset 0 1px 0 rgba(255,255,255,.22);cursor:pointer;overflow:hidden;position:relative;opacity:0;visibility:hidden;pointer-events:none;transform:scale(.84);transition:opacity .18s ease,transform .22s cubic-bezier(.2,.8,.2,1),visibility .18s}.bet-float-right .bet-float-panel{transform-origin:right center;margin-right:7px}.bet-float-left .bet-float-panel{transform-origin:left center;margin-left:7px}.bet-float.is-expanded .bet-float-panel{opacity:1;visibility:visible;pointer-events:auto;transform:scale(1)}.bet-float.is-collapsed .bet-float-panel{width:0;min-width:0;max-width:0;padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-width:0}.bet-float-panel::before{content:"";position:absolute;inset:-55% auto auto -35%;width:86px;height:145px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);transform:rotate(24deg);animation:betShine 3.8s ease-in-out infinite}.bet-float-copy{display:flex;flex-direction:column;align-items:flex-start;min-width:0;line-height:1.1;position:relative;z-index:1}.bet-float-copy strong{font-size:15px;white-space:nowrap}.bet-float-copy small{font-size:10px;color:#dbeaff;margin-top:5px;white-space:nowrap;max-width:112px;overflow:hidden;text-overflow:ellipsis}.bet-float-arrow{font-size:25px;line-height:1;color:#fff;margin-left:auto;opacity:.9;position:relative;z-index:1}.bet-float-toast{position:fixed;z-index:10000;left:50%;bottom:96px;transform:translateX(-50%);padding:10px 14px;border-radius:999px;background:rgba(13,20,38,.92);color:#fff;font-size:13px;box-shadow:0 12px 28px rgba(0,0,0,.2)}@keyframes betPulse{0%{box-shadow:0 0 0 0 rgba(255,207,59,.65)}70%{box-shadow:0 0 0 9px rgba(255,207,59,0)}100%{box-shadow:0 0 0 0 rgba(255,207,59,0)}}@keyframes betShine{0%,55%{transform:translateX(-120px) rotate(24deg)}85%,100%{transform:translateX(280px) rotate(24deg)}}@media(max-width:430px){.bet-float{height:48px}.bet-float-toggle{width:48px;height:48px;flex-basis:48px;border-radius:16px}.bet-float-icon{font-size:22px}.bet-float-panel{height:48px;min-width:145px;max-width:172px;border-radius:16px;padding:6px 10px}.bet-float-copy strong{font-size:14px}.bet-float-copy small{max-width:98px;font-size:9px}}


/* 20260722 V5 betting shortcut: custom ticket icon, compact dark sports UI */
#betFloat{height:46px!important;display:flex!important;align-items:center!important;z-index:9999!important}
#betFloat .bet-float-toggle{-webkit-appearance:none!important;appearance:none!important;width:46px!important;height:46px!important;flex:0 0 46px!important;padding:0!important;margin:0!important;border:1px solid rgba(255,205,77,.52)!important;border-radius:50%!important;background:radial-gradient(circle at 32% 24%,#24436f 0,#102847 45%,#07182d 100%)!important;color:#ffd86b!important;box-shadow:0 10px 26px rgba(4,15,31,.38),inset 0 1px 0 rgba(255,255,255,.12)!important;display:grid!important;place-items:center!important;overflow:hidden!important;outline:0!important}
#betFloat .bet-float-toggle::before{content:"";position:absolute;inset:4px;border-radius:50%;border:1px solid rgba(255,216,107,.16);pointer-events:none}
#betFloat .bet-float-icon{width:28px!important;height:28px!important;display:block!important;font-size:0!important;line-height:0!important;color:inherit!important}
#betFloat .bet-float-icon svg{display:block;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:2.15;stroke-linecap:round;stroke-linejoin:round}
#betFloat .bet-float-icon svg circle{fill:rgba(255,216,107,.12)}
#betFloat .bet-float-pulse{right:0!important;top:0!important;width:9px!important;height:9px!important;background:#ffb92f!important;border:2px solid #0b1d35!important;box-shadow:0 0 0 0 rgba(255,185,47,.52)!important}
#betFloat .bet-float-panel{-webkit-appearance:none!important;appearance:none!important;height:46px!important;min-width:136px!important;max-width:168px!important;padding:5px 12px 5px 14px!important;margin-top:0!important;border:1px solid rgba(255,204,82,.32)!important;border-radius:15px!important;background:linear-gradient(135deg,#07182d 0%,#0b2342 58%,#102f55 100%)!important;color:#fff!important;box-shadow:0 12px 30px rgba(2,10,22,.38),inset 0 1px 0 rgba(255,255,255,.06)!important;outline:0!important;gap:8px!important}
#betFloat .bet-float-panel::after{content:"";position:absolute;left:0;top:8px;bottom:8px;width:3px;border-radius:0 4px 4px 0;background:linear-gradient(#ffe28a,#f3a916)}
#betFloat .bet-float-copy strong{font-size:14px!important;line-height:1.05!important;color:#fff!important;font-weight:800!important;letter-spacing:.02em}
#betFloat .bet-float-copy small{font-size:9px!important;line-height:1.1!important;color:#9fb6d7!important;margin-top:4px!important;max-width:104px!important}
#betFloat .bet-float-arrow{font-size:20px!important;color:#ffd96f!important;opacity:1!important}
#betFloat.bet-float-right .bet-float-panel{margin-right:6px!important}
#betFloat.bet-float-left .bet-float-panel{margin-left:6px!important}
#betFloat.is-collapsed .bet-float-panel{width:0!important;min-width:0!important;max-width:0!important;padding:0!important;margin-left:0!important;margin-right:0!important;border-width:0!important;box-shadow:none!important}
@media(max-width:430px){#betFloat{height:44px!important}#betFloat .bet-float-toggle{width:44px!important;height:44px!important;flex-basis:44px!important}#betFloat .bet-float-icon{width:26px!important;height:26px!important}#betFloat .bet-float-panel{height:44px!important;min-width:128px!important;max-width:156px!important;padding-left:13px!important}.bet-float-copy strong{font-size:13px!important}}

/* message timestamps */
.message-stack{min-width:0;max-width:72%;display:flex;flex-direction:column;align-items:flex-start}.message-stack .bubble{max-width:100%}.msg-row.user .message-stack{align-items:flex-end}.message-time{display:block;margin-top:5px;padding:0 4px;color:#8b91a2;font-size:11px;line-height:1.2;white-space:nowrap;font-variant-numeric:tabular-nums}.msg-row.user .message-time{text-align:right;color:#8c91a1}.msg-row.user .message-stack .bubble{max-width:100%}.msg-row .message-stack .image-bubble{max-width:100%}@media(max-width:430px){.message-stack{max-width:76%}.message-time{font-size:10px;margin-top:4px}}
