/* 墨夜朱金 v2 — new type, chamfered "令牌" buttons, shield icon badges, game-table layout.
   Loaded after player-ink.css. Palette unchanged; scoped to the dark (default) appearance. */
@font-face{font-family:"KX Brush";src:url("fonts/kx-brush.woff2") format("woff2");font-display:swap}
@font-face{font-family:"KX Num";src:url("fonts/kx-num.woff2") format("woff2");font-weight:200 700;font-display:swap}
html[data-appearance=dark] .kx-theme:not(#kx-none){
 --f-head:"PingFang SC","HarmonyOS Sans SC","MiSans","Noto Sans CJK SC","Noto Sans SC","Source Han Sans SC","Microsoft YaHei",sans-serif;--f-brush:"KX Brush","PingFang SC","HarmonyOS Sans SC","MiSans","Noto Sans CJK SC","Noto Sans SC","Source Han Sans SC","Microsoft YaHei",sans-serif;--f-num:"KX Num","DIN Alternate","Roboto Condensed",sans-serif;
 --chamfer:polygon(10px 0,calc(100% - 10px) 0,100% 10px,100% calc(100% - 10px),calc(100% - 10px) 100%,10px 100%,0 calc(100% - 10px),0 10px);
 --chamfer-in:polygon(9px 0,calc(100% - 9px) 0,100% 9px,100% calc(100% - 9px),calc(100% - 9px) 100%,9px 100%,0 calc(100% - 9px),0 9px);
 background:radial-gradient(120% 50% at 50% -5%,#22305a 0,transparent 60%),
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='32' viewBox='0 0 64 32'%3E%3Cpath d='M0 32a16 16 0 0 1 32 0a16 16 0 0 1 32 0' fill='none' stroke='%23f0c869' stroke-opacity='.05' stroke-width='1.2'/%3E%3Cpath d='M8 32a8 8 0 0 1 16 0M40 32a8 8 0 0 1 16 0' fill='none' stroke='%23f0c869' stroke-opacity='.04'/%3E%3C/svg%3E"),var(--ink0)!important}

/* ---------- Typography ---------- */
html[data-appearance=dark] .kx-theme:not(#kx-none) :is(.kx-page-title,.sheet h3,.kx-section-heading,.kx-room-entry h3,.kx-stage-title,.kx-room-header b,.kx-guide-intro h1,.kx-guide-heading,.kx-content-hero h1,.kx-referral-header h1,.kx-room-choice b,.kx-promo-slogan,.kx-shortcuts b){font-family:var(--f-head)!important;font-weight:700!important;letter-spacing:.5px}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-page-title{font-size:30px!important;color:var(--gold)!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) .sheet h3{font-size:24px!important;color:#fff3d6!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) :is(.kx-amount,.kx-wallet-summary b,.kx-promo-metrics strong,.kx-activity-card>b,.kx-countdown,.kx-balance-split b,.kx-withdraw-amount-input input,.bubbleTime){font-family:var(--f-num)!important;font-weight:600!important;letter-spacing:.5px}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-amount{font-size:32px!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-promo-slogan{font-family:var(--f-head)!important}

/* ---------- Chamfered 令牌 buttons ---------- */
html[data-appearance=dark] .kx-theme:not(#kx-none) :is(.kx-button:not(.text),.sheet .btn,.btnGold,.btnRed,.kx-room-enter,.kx-room-intro,.kx-confirm-primary){
 position:relative;isolation:isolate;border:0!important;border-radius:0!important;clip-path:var(--chamfer);
 background:linear-gradient(180deg,#f3d27e,#b9852f)!important;box-shadow:none!important;
 font-family:var(--f-head)!important;font-weight:700!important;letter-spacing:.5px;color:#fff6e0!important;text-shadow:0 1px 0 rgba(90,10,0,.55)}
html[data-appearance=dark] .kx-theme:not(#kx-none) :is(.kx-button:not(.text),.sheet .btn,.btnGold,.btnRed,.kx-room-enter,.kx-room-intro,.kx-confirm-primary)::before{
 content:"";position:absolute;inset:2px;z-index:-1;clip-path:var(--chamfer-in);
 background:linear-gradient(180deg,#ef5638 0,#c8321c 55%,#a32414 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.35)}
html[data-appearance=dark] .kx-theme:not(#kx-none) :is(.kx-button.secondary,.sheet .btn:not(.btnGold):not(.btnRed),.sheet .btnDark,.kx-room-intro){color:var(--gold)!important;text-shadow:none}
html[data-appearance=dark] .kx-theme:not(#kx-none) :is(.kx-button.secondary,.sheet .btn:not(.btnGold):not(.btnRed),.sheet .btnDark,.kx-room-intro)::before{background:linear-gradient(180deg,#1e2a4c,#141c34)}
html[data-appearance=dark] .kx-theme:not(#kx-none) :is(.kx-button,.btn,.kx-room-enter,.kx-room-intro):focus-visible{outline:none}
html[data-appearance=dark] .kx-theme:not(#kx-none) :is(.kx-button,.btn,.kx-room-enter,.kx-room-intro):focus-visible::before{box-shadow:inset 0 0 0 2px #fff6e0}
html[data-appearance=dark] .kx-theme:not(#kx-none) :is(.kx-button,.btn,.kx-room-enter,.kx-room-intro):active::before{filter:brightness(.9)}
html[data-appearance=dark] .kx-theme:not(#kx-none) :is(.kx-button,.btn):disabled{filter:grayscale(.5) brightness(.75)}

/* ---------- Shield badges for icon tiles ---------- */
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-icon-tile,
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-icon-tile:is(.red,.blue,.amber,.orange,.teal,.gray){
 border:0!important;border-radius:0!important;box-shadow:none!important;color:var(--gold)!important;
 background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 52'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffe39a'/%3E%3Cstop offset='1' stop-color='%23c08a33'/%3E%3C/linearGradient%3E%3ClinearGradient id='t' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%2326335f'/%3E%3Cstop offset='1' stop-color='%23121a33'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M26 2l20 8v16c0 12-9 20-20 24C15 46 6 38 6 26V10z' fill='url(%23t)' stroke='url(%23g)' stroke-width='1.6'/%3E%3Cpath d='M26 6l16 6.5V26c0 9.6-7 16.4-16 20-9-3.6-16-10.4-16-20V12.5z' fill='none' stroke='%23f0c869' stroke-opacity='.18'/%3E%3C/svg%3E") center/contain no-repeat!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-icon-tile .uiIcon{margin-top:-2px}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-shortcuts{display:grid!important;grid-template-columns:repeat(3,1fr);gap:6px!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #home .kx-shortcuts button{background:transparent!important;border:0!important;box-shadow:none!important;display:flex!important;flex-direction:column;align-items:center;gap:4px;padding:6px 0!important;min-height:0!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-shortcuts .kx-icon-tile{width:54px!important;height:54px!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-shortcuts .kx-icon-tile .uiIcon{width:28px!important;height:28px!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-shortcuts b{font-size:14px!important;color:var(--text)!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) :is(.kx-list-row,.kx-verification-reminder) .kx-icon-tile{width:34px!important;height:34px!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) :is(.kx-list-row,.kx-verification-reminder) .kx-icon-tile .uiIcon{width:18px!important;height:18px!important}

/* ---------- Framed cards with corner ornaments ---------- */
html[data-appearance=dark] .kx-theme:not(#kx-none) :is(.kx-balance-summary,.kx-wallet-summary,.kx-profile-summary,.kx-referral-link){position:relative}
html[data-appearance=dark] .kx-theme:not(#kx-none) :is(.kx-balance-summary,.kx-wallet-summary,.kx-profile-summary,.kx-referral-link)::after{content:"";position:absolute;inset:5px;pointer-events:none;
 background:linear-gradient(var(--gold2),var(--gold2)) left top/14px 2px,linear-gradient(var(--gold2),var(--gold2)) left top/2px 14px,linear-gradient(var(--gold2),var(--gold2)) right bottom/14px 2px,linear-gradient(var(--gold2),var(--gold2)) right bottom/2px 14px;background-repeat:no-repeat;opacity:.9}

/* ---------- Bottom navigation with raised centre (推广) ---------- */
html[data-appearance=dark] .kx-theme:not(#kx-none) #nav{overflow:visible!important;background:#0e1527!important;border-top:1px solid rgba(240,200,105,.25)!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #nav button{font-family:inherit;font-size:11px!important;color:#8d8775!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #nav button.on{color:var(--gold)!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #nav button.on .uiIcon{filter:drop-shadow(0 0 6px rgba(240,200,105,.45))}
html[data-appearance=dark] .kx-theme:not(#kx-none) #nav button[data-page=promo]{position:relative;font-family:var(--f-head)!important;font-size:13px!important;letter-spacing:.5px;color:var(--gold)!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #nav button[data-page=promo] i{position:relative;display:grid!important;place-items:center;width:56px!important;height:56px!important;margin:-30px auto 2px!important;border-radius:50%;
 background:radial-gradient(circle at 40% 30%,#f15a3c,#a8240f)!important;color:#fff3d6!important;box-shadow:0 0 0 3px #0b1120,0 0 0 5px var(--gold2),0 10px 20px -6px rgba(224,67,43,.8)!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #nav button[data-page=promo] i .uiIcon{width:26px!important;height:26px!important;color:#fff3d6!important}

/* ---------- Home: balance → banner → game tables → shortcuts ---------- */
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-home-page{display:flex!important;flex-direction:column}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-home-page>.kx-balance-summary{order:1;margin-top:6px!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-home-page>.kx-carousel-wrap{order:2}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-home-page>.kx-home-news{order:3}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-home-page>.kx-room-list{order:4}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-home-page>.kx-shortcuts{order:5}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-home-page>*:not(.kx-balance-summary):not(.kx-carousel-wrap):not(.kx-home-news):not(.kx-room-list):not(.kx-shortcuts){order:6}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-carousel-wrap{margin:12px 0 0!important;padding-top:0!important;height:auto;border-radius:14px;overflow:hidden;border:1px solid rgba(240,200,105,.35);background-position:right 30%!important;background-size:cover!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-carousel-wrap:after{display:none}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-default-banner-copy{font-family:var(--f-head)!important;color:#fff3d0!important;text-shadow:0 2px 8px #000}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-home-news{margin-top:10px!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-room-list{display:grid!important;grid-template-columns:1fr 1fr;gap:10px!important;margin-top:4px}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-room-list::before{content:"红包牌桌";grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:10px;margin:12px 0 2px;font:700 20px var(--f-head);letter-spacing:.5px;color:var(--gold);
 background:linear-gradient(90deg,transparent,rgba(240,200,105,.5)) left center/30% 1px no-repeat,linear-gradient(90deg,rgba(240,200,105,.5),transparent) right center/30% 1px no-repeat}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-room-entry,html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-room-entry.internal{
 height:auto!important;min-height:236px;display:flex!important;flex-direction:column;align-items:stretch;padding:10px 10px 12px!important;border-radius:16px!important;border:1px solid rgba(240,200,105,.45)!important;
 background:radial-gradient(120% 80% at 50% 0,#2c58c9 0,#16255a 55%,#0f1834 100%)!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-room-entry.internal{background:radial-gradient(120% 80% at 50% 0,#d24a2c 0,#5e1d1d 58%,#2a1220 100%)!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-room-entry:after{display:none}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-room-entry>img{order:1;width:100%!important;height:96px!important;margin:16px 0 4px!important;object-fit:contain;align-self:center;filter:drop-shadow(0 8px 10px rgba(0,0,0,.5))}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-room-entry>div:not(.kx-room-status){order:2;display:flex;flex-direction:column;flex:1;min-width:0}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-room-entry small{position:absolute;left:12px;top:10px;font:700 13px var(--f-head)!important;letter-spacing:.5px;color:var(--gold)!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-room-entry h3{font-size:22px!important;margin:0!important;color:#fff7e3!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-room-entry p{font-size:11px!important;margin:2px 0 8px!important;color:#e6dcc6!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-room-entry .kx-room-actions{margin-top:auto;display:grid!important;grid-template-columns:1fr;gap:6px!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-room-entry .kx-room-actions button{width:100%!important;min-height:34px!important;height:34px;font-size:14px!important;padding:0 6px!important;display:flex;align-items:center;justify-content:center;gap:4px;margin:0!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-room-entry .kx-room-actions .uiIcon{width:14px!important;height:14px!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-room-status{position:absolute!important;right:8px!important;top:8px!important;left:auto!important;font-size:11px!important;padding:2px 7px!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-shortcuts{order:5;margin-top:12px!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-carousel-window{aspect-ratio:2.8!important;overflow:hidden!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-carousel-slide img{height:100%!important;margin-top:0!important;object-position:center 35%!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-carousel-controls{bottom:6px!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-carousel-wrap{margin-left:0!important;margin-right:0!important}

/* ---------- Room: game-table panel ---------- */
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-header b{font-size:19px!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-stage{padding:10px 12px 10px!important;background:radial-gradient(90% 140% at 100% 0,rgba(224,67,43,.35),transparent 60%),var(--ink1)!important;border:1px solid rgba(240,200,105,.4)!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-stage-meta{display:none!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-stage-top{display:flex!important;align-items:center;gap:10px}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-stage-top>div:not(.kx-countdown){flex:1;min-width:0}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-stage-title{font-size:22px!important;line-height:1.15!important;letter-spacing:2px;color:#fff3d6!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-countdown{order:-1;width:48px!important;min-width:48px!important;height:48px!important;font-size:21px!important;color:#ffe7b0!important;border:0!important;
 background:radial-gradient(circle,#1a1020 0 58%,transparent 59%),conic-gradient(from 0deg,#f45c3e,#a8240f 70%,#3a2a1a 70%)!important;box-shadow:0 0 0 1px rgba(240,200,105,.4),0 0 14px -2px rgba(224,67,43,.6)!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-banker-chip{order:3;flex:none;display:inline-flex;align-items:center;gap:5px;max-width:110px;padding:3px 9px 3px 3px;border-radius:99px;background:rgba(0,0,0,.3);border:1px solid rgba(240,200,105,.35);font-size:11px;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-banker-chip i{width:22px;height:22px;flex:none;border-radius:6px;display:grid;place-items:center;font:700 13px var(--f-head);font-style:normal;color:#3a2306;background:linear-gradient(160deg,#f6da8c,#c9973e);transform:rotate(-8deg)}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-stage-steps{margin:10px 4px 0!important;gap:0!important;position:relative}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-stage-steps li{height:auto!important;font-size:11px!important;line-height:1.2!important;overflow:visible!important;padding-top:20px!important;color:#77736a}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-stage-steps li:before{top:3px!important;left:50%!important;right:auto!important;width:14px!important;height:14px!important;margin-left:-7px;border-radius:50%!important;background:var(--ink3)!important;border:2px solid var(--ink1);box-shadow:none!important;z-index:1}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-stage-steps li:after{content:"";position:absolute;top:9px;left:-50%;right:50%;height:2px;background:var(--ink3)}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-stage-steps li:first-child:after{display:none}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-stage-steps li.done{color:var(--muted)}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-stage-steps li.done:before{background:var(--gold2)!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-stage-steps li:is(.done,.now):after{background:linear-gradient(90deg,var(--gold2),var(--cinnabar))}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-stage-steps li.now{color:#fff3d6;font-weight:700}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-stage-steps li.now:before{background:var(--cinnabar)!important;box-shadow:0 0 0 3px rgba(224,67,43,.3),0 0 10px var(--cinnabar)!important}

 border-radius:0!important;border:0!important;border-top:1px solid rgba(240,200,105,.35)!important;border-bottom:1px solid rgba(240,200,105,.35)!important;
 background:linear-gradient(90deg,transparent,rgba(240,200,105,.14) 15%,rgba(240,200,105,.14) 85%,transparent)!important;box-shadow:none!important;
 padding:8px 18px!important;text-align:center;color:#f3e3bd!important;font-size:13px!important}

/* ---------- Room: avatars, role badge, bubbles ---------- */
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-role-badge{width:18px!important;height:18px!important;border-radius:5px!important;font:700 12px var(--f-head)!important;transform:rotate(-8deg);right:-6px!important;bottom:-4px!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .bubble:not(.packetBubble){border-radius:4px 16px 16px 16px!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .msg.mine .bubble:not(.packetBubble){border-radius:16px 4px 16px 16px!important;background:linear-gradient(180deg,#3a4c86,#2c3b6c) #2f3c66!important}

/* ---------- Room: red envelope ---------- */
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .bubble.packetBubble{min-width:214px;padding:14px 14px 12px 64px!important;border-radius:12px!important;background:linear-gradient(170deg,#ec5236,#a8240f)!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .bubble.packetBubble:after{content:"開"!important;right:auto!important;left:12px!important;top:12px!important;width:40px!important;height:40px!important;display:grid;place-items:center;
 font:400 22px var(--f-brush);color:#7a1b08;background:radial-gradient(circle at 35% 30%,#fbe2a0,#d2a248)!important;box-shadow:0 2px 6px rgba(0,0,0,.4);opacity:1!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .bubble.packetBubble b{font-family:var(--f-head)!important;font-weight:700!important;font-size:17px!important;letter-spacing:.5px}


/* Short viewport (keyboard open): collapse steps, hint and chips so the chat keeps room. 0 when < 560px tall. */
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-stage-steps{max-height:clamp(0px,calc((var(--kx-viewport-height,100svh) - 560px) * 100),60px);overflow:hidden!important;margin-top:clamp(0px,calc((var(--kx-viewport-height,100svh) - 560px) * 100),10px)!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-stage-hint{max-height:clamp(0px,calc((var(--kx-viewport-height,100svh) - 560px) * 100),20px);overflow:hidden}

html[data-appearance=dark] .kx-theme:not(#kx-none) #room .msg:has(.botName) .msgName.botName:after{background:linear-gradient(160deg,#f6da8c,#c9973e)!important;border:0!important;color:#3a2306!important;font:700 10px var(--f-num)!important;letter-spacing:1px;padding:1px 6px!important;vertical-align:1px}

/* Translucent stage panel floats over the chat so more messages fit; chat reserves its height only at the very top. */
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-fixed{position:relative;z-index:5;overflow:visible!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-stage{position:absolute!important;left:0;right:0;top:100%;margin:6px 10px 0!important;z-index:6;background:linear-gradient(180deg,rgba(28,22,40,.62),rgba(18,26,46,.5))!important;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);box-shadow:0 10px 24px -12px rgba(0,0,0,.8)!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat{padding-top:calc(var(--kx-stage-h,0px) + 10px)!important}

/* Compact chat bubbles: time sits inline at the end of the text (Telegram-style), tighter spacing. */
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .bubble:not(.packetBubble):not(.gamePacketCard):not(.stickerBubble):not(.imageBubble){padding:6px 10px 6px 11px!important;font-size:14px!important;line-height:1.45!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .bubble:not(.packetBubble):not(.gamePacketCard):not(.stickerBubble):not(.imageBubble) .bubbleTime{position:relative!important;right:auto!important;bottom:auto!important;float:right;margin:7px -2px -3px 10px;line-height:1;font-size:11px!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .msg{margin-top:6px!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .msg.grouped{margin-top:3px!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .msgName{margin-bottom:2px!important;font-size:11px!important;line-height:1.3!important}

/* Smaller avatars (user request): 32px */
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .msgAvatar{width:40px!important;height:40px!important;flex:0 0 40px!important;flex-basis:40px!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .msg.grouped:not(.lastGroup) .msgAvatar{height:0!important;box-shadow:none!important;background:none!important;border:0!important;overflow:hidden!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .msg.grouped:not(.lastGroup) .msgAvatar>*{display:none!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-role-badge{width:15px!important;height:15px!important;font-size:10px!important;right:-5px!important;bottom:-3px!important}

/* Compact stage panel (user request) */
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-stage{padding:6px 10px 6px!important;border-radius:12px!important;margin:4px 8px 0!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-stage-top{gap:8px!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-countdown{width:36px!important;min-width:36px!important;height:36px!important;font-size:16px!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-stage-title{font-size:17px!important;line-height:1.1!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-stage-hint{font-size:11px!important;line-height:1.3!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-banker-chip{padding:2px 8px 2px 2px!important;font-size:11px!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-banker-chip i{width:18px!important;height:18px!important;font-size:11px!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-stage-steps{margin-top:clamp(0px,calc((var(--kx-viewport-height,100svh) - 560px) * 100),5px)!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-stage-steps li{padding-top:13px!important;font-size:11px!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-stage-steps li:before{top:1px!important;width:10px!important;height:10px!important;margin-left:-5px!important;border-width:1.5px!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-stage-steps li:after{top:5px!important}

/* ---------- Floating translucent bars (reference: full-height chat, controls float above) ---------- */
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-pin{position:absolute!important;left:0;right:0;top:100%;z-index:7;display:flex!important;align-items:center;gap:6px;margin:6px 8px 0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-pin .kx-pin-message{flex:1;min-width:0;height:38px;display:flex;align-items:center;gap:6px;padding:0 12px!important;border-radius:99px!important;
 background:rgba(18,26,46,.62)!important;border:1px solid rgba(240,200,105,.28)!important;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);color:var(--gold)!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-pin .kx-pin-message span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left;color:#f3e3bd!important;font-size:13px}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-pin .kx-room-tool{flex:none;width:38px!important;height:38px!important;min-width:38px!important;border-radius:50%!important;display:grid!important;place-items:center;padding:0!important;
 background:rgba(18,26,46,.62)!important;border:1px solid rgba(240,200,105,.28)!important;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);color:var(--gold)!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-pin .kx-room-tool .uiIcon{width:18px!important;height:18px!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-stage{top:calc(100% + var(--kx-pin-h,0px))!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat{position:relative;z-index:1;padding-top:calc(var(--kx-pin-h,0px) + var(--kx-stage-h,0px) + 8px)!important;
 margin-bottom:calc(-1 * var(--kx-float-h,0px))!important;padding-bottom:calc(var(--kx-float-h,0px) + 10px)!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-composer::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(180deg,rgba(11,17,32,0),rgba(11,17,32,.55) 60%)}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-composer #roomInput{background:rgba(18,26,46,.7)!important;border:1px solid rgba(240,200,105,.3)!important;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-composer .circleTool{background:rgba(18,26,46,.7)!important;border:1px solid rgba(240,200,105,.28)!important;border-radius:50%!important;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room.tools-open .kx-room-composer::before{background:rgba(11,17,32,.92)}

/* ---------- Jump-to-latest button with unread badge ---------- */
.kx-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;border:0!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room>.kx-room-new{z-index:8!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;border-radius:50%!important;display:grid;place-items:center;
 right:12px!important;bottom:calc(var(--kx-room-dock-height,56px) + 10px)!important;background:rgba(18,26,46,.78)!important;border:1px solid rgba(240,200,105,.4)!important;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);box-shadow:0 8px 18px -8px #000!important;color:var(--gold)!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room>.kx-room-new .kx-new-chev{width:12px;height:12px;border-right:2px solid var(--gold);border-bottom:2px solid var(--gold);transform:translateY(-2px) rotate(45deg)}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room>.kx-room-new .kx-new-count{position:absolute;top:-8px;right:-6px;min-width:22px;height:20px;padding:0 6px;border-radius:99px;display:grid;place-items:center;font:600 12px var(--f-num);color:#3a2306;background:linear-gradient(160deg,#f6da8c,#c9973e);box-shadow:0 2px 6px rgba(0,0,0,.5)}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-composer{position:relative!important;z-index:4;background:transparent!important;border-top:0!important;box-shadow:none!important}

/* Emoji button sits inside the input field (right side), no outer ring */
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-composer #roomLeftToolBtn{position:absolute!important;right:66px;top:50%;transform:translateY(-50%);z-index:2;width:34px!important;height:34px!important;min-width:34px!important;padding:0!important;display:grid!important;place-items:center;background:transparent!important;border:0!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;color:var(--gold)!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-composer #roomLeftToolBtn .uiIcon{width:22px!important;height:22px!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-composer #roomInput{padding-right:44px!important}

/* Room menu: voice switch row and segmented filter */
.kx-theme .sheet .kx-voice-toggle{display:flex!important;align-items:center;justify-content:space-between;gap:12px;width:100%;margin:6px 0 4px;padding:12px 14px!important;border-radius:12px!important;text-align:left;font:inherit;cursor:pointer}
.kx-theme .sheet .kx-voice-toggle span{display:flex;flex-direction:column;gap:3px;font-size:15px;min-width:0}
.kx-theme .sheet .kx-voice-toggle small{font-size:11px;opacity:.75;line-height:1.4}
.kx-theme .sheet .kx-voice-toggle em{position:relative;flex:none;width:46px;height:26px;border-radius:99px;font-size:0!important;font-style:normal;background:#4a4f5c;transition:background .2s}
.kx-theme .sheet .kx-voice-toggle em::after{content:"";position:absolute;left:3px;top:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.4);transition:transform .2s}
.kx-theme .sheet .kx-voice-toggle[aria-checked=true] em{background:linear-gradient(180deg,#e64e33,#a8240f)}
.kx-theme .sheet .kx-voice-toggle[aria-checked=true] em::after{transform:translateX(20px);background:#ffe7b0}
html[data-appearance=dark] .kx-theme:not(#kx-none) .sheet .kx-voice-toggle{background:var(--ink2)!important;border:1px solid rgba(240,200,105,.3)!important;color:var(--text)!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) .sheet .kx-voice-toggle small{color:var(--muted)!important;opacity:1}
html[data-appearance=dark] .kx-theme:not(#kx-none) .sheet .segment{display:flex;gap:6px;margin-top:10px;padding:4px!important;border-radius:12px;background:var(--ink2)!important;border:1px solid var(--line)}
html[data-appearance=dark] .kx-theme:not(#kx-none) .sheet .segment button{flex:1;min-height:38px!important;border-radius:9px!important;border:0!important;background:transparent!important;color:var(--muted)!important;font-family:var(--f-head)!important;letter-spacing:.5px;clip-path:none!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) .sheet .segment button::before{display:none!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) .sheet .segment button.on{background:linear-gradient(180deg,#f1d27f,#c99a45)!important;color:#2a1a08!important}

/* ---------- Promo page v3 (reference layout): rates strip, invite CTA, commission card, list header ---------- */
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-promo-v3 .kx-page-title{font-size:26px!important;margin-bottom:2px}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-rate-strip{display:grid!important;grid-template-columns:repeat(3,1fr);padding:14px 4px!important;margin-top:12px}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-rate-strip .kx-rate-row{display:flex!important;flex-direction:column;align-items:center;gap:6px;border:0!important;border-left:1px solid var(--line)!important;padding:0 4px!important;background:none!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-rate-strip .kx-rate-row:first-child{border-left:0!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-rate-strip .kx-rate-row span{font-size:12px;color:var(--muted)}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-rate-strip .kx-rate-row b{font:600 26px var(--f-num)!important;color:var(--gold)!important;line-height:1}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-rate-strip .kx-rate-row small{font-size:11px;color:var(--gold2)}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-invite-cta{margin:14px 0!important;height:52px;min-height:52px!important;font-size:19px!important;gap:8px}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-invite-cta::before{background:linear-gradient(180deg,#f6da8c,#c9973e 60%,#a8792c)!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-invite-cta{color:#3a2306!important;text-shadow:none!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-commission-card{padding:16px!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-commission-card .kx-date-row{display:flex!important;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;background:none!important;border:0!important;padding:0!important;margin:0!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-commission-label{font-size:13px;color:var(--muted)}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-date-nav{display:flex;align-items:center;gap:6px}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-date-nav label{background:none!important;border:0!important;padding:0!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-date-nav input{width:118px!important;min-height:34px!important;padding:0 6px!important;font:600 14px var(--f-num)!important;text-align:center;border-radius:8px!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-date-step{width:34px;height:34px;border-radius:9px;border:1px solid rgba(240,200,105,.35);background:var(--ink2);color:var(--gold);font-size:20px;line-height:1}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-date-step:disabled{opacity:.35}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-commission-card>.kx-date-row>.kx-link{flex-basis:100%;justify-content:flex-end;font-size:12px}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-commission-amount{text-align:center;padding:10px 0 14px;border-bottom:1px solid var(--line)}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-commission-amount small{display:block;font:600 12px var(--f-num);letter-spacing:2px;color:var(--muted)}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-commission-amount strong{font:600 48px/1.1 var(--f-num)!important;color:#fff7e6!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-commission-card .kx-flow-list{background:none!important;border:0!important;box-shadow:none!important;padding:8px 0 0!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-commission-card .kx-flow-list h3{font-size:13px!important;color:var(--muted)!important;margin:4px 0!important;font-family:inherit!important;letter-spacing:0}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-commission-card .kx-flow-list h3 small{font-size:11px;color:var(--muted2);margin-left:6px}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-commission-card .kx-flow-list>div{display:flex;justify-content:space-between;align-items:baseline;padding:11px 0;border-bottom:1px solid var(--line)}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-commission-card .kx-flow-list>div span{color:var(--muted);font-size:14px}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-commission-card .kx-flow-list>div b{font:600 18px var(--f-num)!important;color:var(--text)!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-commission-card .kx-promo-metrics{display:grid!important;grid-template-columns:1fr 1fr;margin-top:12px!important;gap:0!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-commission-card .kx-promo-metrics>*{display:flex!important;flex-direction:column;align-items:center;gap:6px;background:none!important;border:0!important;box-shadow:none!important;padding:6px 0!important;min-height:0!important;color:inherit}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-commission-card .kx-promo-metrics>div{border-left:1px solid var(--line)!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-commission-card .kx-promo-metrics small{font-size:12px;color:var(--muted)}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-commission-card .kx-promo-metrics strong{font:600 22px var(--f-num)!important;color:var(--gold)!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-promo-list-head{margin-top:16px}

/* ---------- Invite page v3 (reference layout) ---------- */
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-invite-v3{padding-bottom:96px!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-invite-v3 .kx-page-title{text-align:center;font-size:24px!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-invite-card{display:flex!important;flex-direction:column;align-items:center;gap:8px;padding:20px 16px!important;margin-top:10px;text-align:center}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-invite-avatar{width:72px;height:72px;border-radius:50%;object-fit:cover;background:var(--ink2);box-shadow:0 0 0 2px var(--gold2),0 0 0 6px rgba(236,198,111,.12)}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-invite-name{font:700 20px var(--f-head);letter-spacing:.5px;color:#fff7e6}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-invite-uid{display:inline-flex;align-items:center;gap:6px;border:0;background:none;color:var(--muted);font-size:12px;padding:2px 6px}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-invite-uid .uiIcon{width:14px;height:14px;color:var(--gold)}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-invite-qr{width:min(230px,70%);aspect-ratio:1;padding:12px;margin-top:6px;border-radius:16px;background:#fff;box-shadow:0 0 0 3px var(--gold2),0 0 22px rgba(240,200,105,.35)}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-invite-qr img{width:100%;height:100%;display:block;image-rendering:pixelated}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-invite-linkbox{display:flex;align-items:center;gap:8px;width:100%;padding:10px 10px 10px 14px;border-radius:12px;background:var(--ink2);border:1px solid var(--line);text-align:left}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-invite-linkbox span{flex:1;min-width:0;font-size:13px;color:var(--text);overflow-wrap:anywhere;line-height:1.45}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-invite-linkbox button{flex:none;width:36px;height:36px;border-radius:9px;border:1px solid rgba(240,200,105,.35);background:var(--ink1);color:var(--gold);display:grid;place-items:center}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-invite-v3 .kx-rate-strip{margin-top:12px}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-invite-note{display:flex;gap:10px;align-items:flex-start;margin:12px 0;padding:12px 14px;border-radius:12px;background:rgba(143,182,255,.08);border:1px solid rgba(143,182,255,.25);color:var(--text);font-size:13px;line-height:1.6}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-invite-note .uiIcon{flex:none;width:20px;height:20px;color:var(--blue)}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-invite-note p{margin:0}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-invite-v3 .kx-referral-preview{margin-bottom:12px;border-radius:14px;overflow:hidden;border:1px solid var(--goldline)!important;background:var(--ink1)!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-invite-v3 .kx-referral-preview img{display:block;width:100%}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-invite-dock{position:fixed;left:0;right:0;bottom:0;z-index:20;padding:10px 16px max(12px,env(safe-area-inset-bottom));background:linear-gradient(180deg,rgba(11,17,32,0),rgba(11,17,32,.95) 35%)}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-invite-dock .kx-invite-cta{margin:0!important;max-width:520px;margin-inline:auto!important}

/* TNG jump link on the round packet card (一群 only) */
#room .gamePacketCard .gamePacketLink{margin-top:3px;font-size:11px;line-height:1.3;color:rgba(255,236,190,.82);word-break:break-all;font-family:ui-monospace,Menlo,Consolas,monospace}
/* Overflow fixes (real-device report + full audit) */
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-banker-chip b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .gamePacketCard .gamePacketLink{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;word-break:normal}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-amount{line-height:1.3!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #me .kx-profile-summary .avatarEditBadge .uiIcon{width:14px!important;height:14px!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) .packetScoreRow>div:nth-child(2){min-width:0}
html[data-appearance=dark] .kx-theme:not(#kx-none) .packetScoreName{display:flex!important;align-items:center;gap:4px;min-width:0}
html[data-appearance=dark] .kx-theme:not(#kx-none) .packetScoreName>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[data-appearance=dark] .kx-theme:not(#kx-none) .packetScoreName .packetBankerBadge{flex:none}
html[data-appearance=dark] .kx-theme:not(#kx-none) .avatarEditBadge{display:grid!important;place-items:center!important;padding:0!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) .avatarEditBadge .uiIcon{width:58%!important;height:58%!important;margin:0!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #nav button[data-page=promo] i{width:52px!important;height:52px!important;margin:-28px auto 7px!important;box-shadow:0 0 0 3px #0b1120,0 0 0 5px var(--gold2),0 6px 12px -8px rgba(224,67,43,.7)!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #nav button[data-page=promo]{letter-spacing:1px!important;text-shadow:0 1px 0 #0b1120,0 0 4px #0b1120}
html[data-appearance=dark] .kx-theme:not(#kx-none) #nav button[data-page=promo]{font-family:inherit!important;font-weight:700!important;font-size:12px!important;letter-spacing:0!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-content-page.kx-packet-rooms-page{background:transparent!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-pin::before{content:"";position:absolute;z-index:-1;left:-8px;right:-8px;top:-6px;bottom:-5px;background:linear-gradient(180deg,rgba(11,17,32,.82),rgba(11,17,32,.55) 80%,rgba(11,17,32,0));-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);pointer-events:none}

html[data-appearance=dark] .kx-theme:not(#kx-none) #room{--kx-card-w:min(280px,calc(100vw - 104px))}
/* ---------- Red packet skin v2 (game packet + player packet share one look) ---------- */
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .msg .bubble:is(.gamePacketCard,.packetBubble){
 --rp-a:#ee4b30;--rp-b:#c42617;--rp-c:#8e130b;--rp-gold:#f6d68c;
 position:relative;box-sizing:border-box;width:min(var(--kx-card-w),100%)!important;min-width:0!important;max-width:var(--kx-card-w)!important;overflow:hidden!important;border:0!important;border-radius:14px!important;color:#fff3d6!important;
 background:radial-gradient(rgba(255,222,150,.10) 1.1px,transparent 1.6px) 0 0/11px 11px,radial-gradient(120% 70% at 50% 120%,rgba(255,205,110,.22),transparent 60%),linear-gradient(168deg,var(--rp-a) 0%,var(--rp-b) 52%,var(--rp-c) 100%)!important;
 box-shadow:inset 0 0 0 1px rgba(246,214,140,.55),inset 0 0 0 4px rgba(120,12,6,.35),0 12px 22px -12px rgba(150,18,8,.9)!important}
/* envelope flap */
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .gamePacketCard::before{display:none!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .gamePacketCard .gamePacketTop{position:relative;z-index:1;display:flex;align-items:center;gap:10px;min-height:0!important;padding:12px 14px 24px!important;
 background:linear-gradient(180deg,#f4613f,#d4331f)!important;border-radius:0 0 50% 50%/0 0 22px 22px;box-shadow:0 2px 0 rgba(246,214,140,.8),0 7px 12px -5px rgba(70,0,0,.55)}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .gamePacketCard .gamePacketTop::after{content:"開";position:absolute;left:50%;bottom:-18px;transform:translateX(-50%);width:36px;height:36px;border-radius:50%;display:grid;place-items:center;
 font:400 19px/1 var(--f-brush);color:#7a2306;background:radial-gradient(circle at 35% 28%,#fff3c2,#f2c75e 48%,#b57d27);box-shadow:0 0 0 2px rgba(255,238,185,.65),0 4px 8px rgba(60,0,0,.55)}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .gamePacketCard .gamePacketIcon{width:46px!important;height:46px!important;flex:none;border-radius:50%!important;display:grid;place-items:center;overflow:hidden;
 background:radial-gradient(circle at 40% 30%,#fff4d2,#f3cc72)!important;box-shadow:0 0 0 2px rgba(255,236,180,.55),0 3px 6px rgba(80,0,0,.4)!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .gamePacketCard .gamePacketIcon img{width:44px!important;height:44px!important;object-fit:contain;margin-top:4px}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .gamePacketCard .gamePacketCopy{min-width:0;flex:1}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .gamePacketCard .gamePacketTitle{font:700 16px/1.2 var(--f-head)!important;letter-spacing:.5px;color:#ffe6a3!important;text-shadow:0 1px 0 rgba(90,10,0,.6)}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .gamePacketCard .gamePacketMeta{margin-top:4px;font:500 11px/1.35 var(--f-num)!important;letter-spacing:.3px;color:rgba(255,238,212,.88)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .gamePacketCard .gamePacketLink{color:rgba(255,232,190,.8)!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .gamePacketCard .gamePacketFoot{position:relative;display:flex;justify-content:space-between;align-items:center;gap:8px;padding:26px 12px 11px!important;border:0!important;background:transparent!important;font-size:11px!important;color:rgba(255,232,205,.86)!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .gamePacketCard .gamePacketCta{flex:none;padding:5px 11px;border-radius:99px;font-weight:800;font-size:12px;color:#6b2005!important;background:linear-gradient(180deg,#ffe8a6,#e9b24b)!important;box-shadow:0 2px 0 #8f4f10,inset 0 1px 0 rgba(255,255,255,.6)}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .gamePacketCard .bubbleTime{position:absolute!important;z-index:2;right:12px!important;top:8px!important;bottom:auto!important;margin:0!important;float:none!important;font-size:11px!important;color:rgba(255,230,200,.72)!important}
/* player packet: same skin, seal on the left */
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .bubble.packetBubble{padding:14px 14px 12px 66px!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .bubble.packetBubble:after{left:14px!important;top:14px!important;width:40px!important;height:40px!important;font:400 21px/1 var(--f-brush)!important;color:#7a2306!important;
 background:radial-gradient(circle at 35% 28%,#fff3c2,#f2c75e 48%,#b57d27)!important;box-shadow:0 0 0 2px rgba(255,238,185,.65),0 4px 8px rgba(60,0,0,.55)!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .bubble.packetBubble b{display:block;color:#ffe6a3!important;font-size:16px!important;line-height:1.25;text-shadow:0 1px 0 rgba(90,10,0,.6);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .bubble.packetBubble small{display:block;margin-top:4px;color:rgba(255,238,212,.88)!important;font-family:var(--f-num)}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .bubble.packetBubble .btn{margin-left:-52px;width:calc(100% + 52px)!important;border-radius:99px!important;color:#6b2005!important;background:linear-gradient(180deg,#ffe8a6,#e9b24b)!important;box-shadow:0 2px 0 #8f4f10!important;border:0!important}

/* ---------- One size for phase banners and assistant cards ---------- */
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .kx-stop-bet-banner{flex:none!important;width:var(--kx-card-w)!important;max-width:none!important;height:auto!important;aspect-ratio:3/1!important;margin:2px 0 6px!important;background-position:left center!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .msg:not(.mine) .msgBody:has(>.msgName.botName){flex:0 1 auto;width:var(--kx-card-w);max-width:calc(100vw - 104px)}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .msg:not(.mine) .msgBody:has(>.msgName.botName)>.bubble:not(.gamePacketCard):not(.packetBubble):not(.stickerBubble):not(.imageBubble){display:block;box-sizing:border-box;width:100%!important;max-width:100%!important}

/* ---------- Compact red packets ---------- */
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .msg .bubble:is(.gamePacketCard,.packetBubble){width:min(216px,100%)!important;max-width:216px!important;border-radius:12px!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .gamePacketCard .gamePacketTop{gap:8px;padding:8px 10px 16px!important;border-radius:0 0 50% 50%/0 0 16px 16px}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .gamePacketCard .gamePacketTop::after{width:26px;height:26px;bottom:-13px;font-size:14px}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .gamePacketCard .gamePacketIcon{width:34px!important;height:34px!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .gamePacketCard .gamePacketIcon img{width:32px!important;height:32px!important;margin-top:3px}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .gamePacketCard .gamePacketTitle{font-size:13px!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .gamePacketCard .gamePacketMeta{margin-top:2px;font-size:11px!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .gamePacketCard .gamePacketLink{margin-top:1px;font-size:11px!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .gamePacketCard .gamePacketFoot{padding:17px 10px 8px!important;font-size:11px!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .gamePacketCard .gamePacketCta{padding:3px 9px;font-size:11px}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .gamePacketCard .bubbleTime{top:6px!important;right:9px!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .bubble.packetBubble{padding:9px 10px 8px 48px!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .bubble.packetBubble:after{left:10px!important;top:10px!important;width:30px!important;height:30px!important;font-size:16px!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .bubble.packetBubble b{font-size:13px!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .bubble.packetBubble small{margin-top:2px;font-size:11px!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .bubble.packetBubble .btn{margin-top:6px!important;margin-left:-38px;width:calc(100% + 38px)!important;min-height:0!important;height:28px!important;padding:0 10px!important;font-size:12px!important}

/* ---------- Flat red packet (compact: red top + cream strip) ---------- */
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .msg .bubble:is(.gamePacketCard,.packetBubble){width:min(236px,100%)!important;max-width:236px!important;border-radius:10px!important;background:#e5452f!important;box-shadow:0 6px 14px -8px rgba(120,10,0,.8)!important;overflow:hidden!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .gamePacketCard .gamePacketTop{gap:10px;padding:11px 12px!important;border-radius:0!important;box-shadow:none!important;background:linear-gradient(180deg,#ee5236,#e0402b)!important;align-items:center}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .gamePacketCard .gamePacketTop::after{content:none!important;display:none!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .gamePacketCard .gamePacketIcon{width:26px!important;height:34px!important;border-radius:4px!important;flex:none;
 background:radial-gradient(circle at 50% 42%,#ffe08a 0 4.5px,#e7b04a 5px 6px,transparent 6.5px),linear-gradient(180deg,#c9281b 0 38%,#a8180f 38.5% 100%)!important;box-shadow:inset 0 0 0 1px rgba(255,210,150,.25),0 2px 4px rgba(80,0,0,.35)!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .gamePacketCard .gamePacketIcon img{display:none!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .gamePacketCard .gamePacketTitle{font:600 14px/1.25 inherit!important;font-family:inherit!important;letter-spacing:0;color:#fff6e4!important;text-shadow:none}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .gamePacketCard .gamePacketMeta{margin-top:2px;font-size:11px!important;color:rgba(255,236,215,.85)!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .gamePacketCard .gamePacketLink{font-size:11px!important;color:rgba(255,230,205,.75)!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .gamePacketCard .gamePacketFoot{padding:5px 12px!important;background:#f7ead0!important;border:0!important;font-size:11px!important;color:#a0603a!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .gamePacketCard .gamePacketFoot>span:first-child{font-size:0!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .gamePacketCard .gamePacketFoot>span:first-child::before{content:"KX牛牛红包";font-size:11px;color:#a0603a}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .gamePacketCard .gamePacketCta{padding:0!important;background:none!important;box-shadow:none!important;font-size:11px!important;font-weight:700;color:#d23a22!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .gamePacketCard .bubbleTime{top:5px!important;right:8px!important;color:rgba(255,230,205,.7)!important}
/* player packet, same shape */
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .bubble.packetBubble{padding:11px 12px 0 48px!important;background:linear-gradient(180deg,#ee5236,#e0402b)!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .bubble.packetBubble:after{content:""!important;left:12px!important;top:11px!important;width:26px!important;height:34px!important;border-radius:4px!important;
 background:radial-gradient(circle at 50% 42%,#ffe08a 0 4.5px,#e7b04a 5px 6px,transparent 6.5px),linear-gradient(180deg,#c9281b 0 38%,#a8180f 38.5% 100%)!important;box-shadow:inset 0 0 0 1px rgba(255,210,150,.25),0 2px 4px rgba(80,0,0,.35)!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .bubble.packetBubble b{font:600 14px/1.25 inherit!important;font-family:inherit!important;letter-spacing:0;color:#fff6e4!important;text-shadow:none}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .bubble.packetBubble>small{margin:2px 0 0;font-size:11px!important;color:rgba(255,236,215,.85)!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .bubble.packetBubble>small:last-of-type{margin-bottom:9px}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .bubble.packetBubble>.btn,html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .bubble.packetBubble>a{display:block;margin:9px -12px 0 -48px!important;width:calc(100% + 60px)!important;height:auto!important;min-height:0!important;padding:5px 12px!important;border-radius:0!important;border:0!important;box-shadow:none!important;text-align:left!important;font-size:11px!important;font-weight:600!important;background:#f7ead0!important;color:#a0603a!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .bubble.packetBubble .bubbleTime{position:absolute!important;top:5px!important;right:8px!important;bottom:auto!important;float:none!important;margin:0!important;font-size:11px!important;color:rgba(255,230,205,.7)!important}

/* ---------- Clean room: solid background, no wallpaper ---------- */
html[data-appearance=dark] .kx-theme:not(#kx-none) #room{background:#0f1627!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room::before{background:none!important;content:none!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat{background:#0f1627!important;background-image:none!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .msg .bubble:is(.gamePacketCard,.packetBubble){width:min(236px,calc(100vw - 104px))!important;flex:none}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .bubble.packetBubble>.btn{clip-path:none!important;-webkit-clip-path:none!important;font-family:inherit!important;letter-spacing:0!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .bubble.packetBubble>.btn::before,html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-chat .bubble.packetBubble>.btn::after{content:none!important;display:none!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) :is(.kx-page-title,.kx-room-entry h3,.kx-content-hero h1,.kx-room-choice b,#packetRooms h1){line-height:1.5!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-quick{position:fixed;right:0;top:50%;z-index:7;display:flex;align-items:center;transform:translate(76px,-50%);transition:transform .22s ease}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-quick.open{transform:translate(0,-50%)}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-quick-tab{flex:none;width:24px!important;min-width:24px!important;height:62px!important;min-height:62px!important;padding:0!important;display:grid;place-items:center;border:1px solid rgba(214,174,92,.3)!important;border-right:0!important;border-radius:12px 0 0 12px!important;background:rgba(22,31,54,.92)!important;box-shadow:-2px 2px 8px rgba(0,0,0,.35)!important;clip-path:none!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-quick-tab i{width:9px;height:9px;margin-left:4px;border-left:2px solid var(--gold);border-bottom:2px solid var(--gold);transform:rotate(45deg);transition:transform .22s ease}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-quick.open .kx-quick-tab i{margin-left:-3px;transform:rotate(225deg)}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-quick-panel{width:76px;display:flex;flex-direction:column;gap:4px;padding:8px 5px;border:1px solid rgba(214,174,92,.3);border-right:0;border-radius:14px 0 0 14px;background:rgba(22,31,54,.94);box-shadow:-2px 2px 12px rgba(0,0,0,.4)}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-quick-panel{visibility:hidden;transition:visibility .22s}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-quick.open .kx-quick-panel{visibility:visible}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-quick-item{width:100%!important;min-width:0!important;min-height:64px!important;padding:6px 0!important;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:0!important;border-radius:10px!important;background:transparent!important;color:var(--text)!important;box-shadow:none!important;clip-path:none!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-quick-item span{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;color:#3a2306;background:linear-gradient(160deg,#f6da8c,#c9973e)}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-quick-item span svg{width:19px;height:19px}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-quick-item b{font-size:11px;font-weight:600;line-height:1.2;white-space:nowrap}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-quick-item.on{background:rgba(214,174,92,.18)!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-quick-item.on b{color:var(--gold)!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room.tools-open .kx-room-quick{display:none}
:root{--kx-header-h:max(var(--kx-content-top,0px),calc(var(--kx-room-top,0px) + max(44px,var(--kx-room-controls-height,44px))))}
#kxPageHeader[hidden]{display:none!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #kxPageHeader{position:fixed;top:0;left:50%;transform:translateX(-50%);z-index:60;width:min(430px,100%);height:var(--kx-header-h);padding:var(--kx-room-top,0px) 94px 0;box-sizing:border-box;display:flex;align-items:center;justify-content:center;background:#0f1627;border-bottom:1px solid rgba(214,174,92,.16);pointer-events:none}
html[data-appearance=dark] .kx-theme:not(#kx-none) #kxPageTitle{margin:0;font:700 17px/1.3 var(--f-head);letter-spacing:.5px;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-appearance=dark] .kx-theme:not(#kx-none) .screen.active:not(#room):not(#onboarding):not(#accountClosure){padding-top:calc(var(--kx-header-h) + 12px)!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #support.screen.active{padding-top:var(--kx-header-h)!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) body.onboardingLock #kxPageHeader{display:none!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) .screen:not(#onboarding):not(#accountClosure) .kx-page-title{display:none!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) :is(#wallet,#promo,#me) .kx-page-title+.kx-page-caption{display:none!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #chat .kx-chat-list-header{display:none!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-home-page .kx-carousel-wrap{margin-top:0!important;padding-top:0!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-home-page .kx-carousel-slide img{height:100%!important;margin-top:0!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-home-page .kx-default-banner-copy{top:35px!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-referral-header{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;border:0!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-scene-heading.wallet{display:none!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) :is(#terms,#privacy) .legalHero h2{display:none!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #ranking .kx-ranking-hero>:is(h1,h2):first-child,html[data-appearance=dark] .kx-theme:not(#kx-none) #ranking h1.<h1>每周棋牌积分榜<,html[data-appearance=dark] .kx-theme:not(#kx-none) #ranking h2.<h1>每周棋牌积分榜<{display:none!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) .toast{top:calc(var(--kx-header-h) + 8px)!important}
:root{--kx-composer-pb:max(6px,var(--kx-room-bottom,env(safe-area-inset-bottom,0px)))}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room .kx-room-composer #roomLeftToolBtn{top:calc((100% + 6px - var(--kx-composer-pb))/2)!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #room.tools-open .kx-room-composer #roomLeftToolBtn{top:50%!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #support .supportComposer{position:fixed!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;width:min(430px,100%)!important;max-width:none!important;min-height:56px!important;margin:0!important;padding:6px 10px var(--kx-composer-pb)!important;display:flex!important;align-items:center!important;gap:8px!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;z-index:40}
html[data-appearance=dark] .kx-theme:not(#kx-none) #support .supportComposer::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(180deg,rgba(11,17,32,0),rgba(11,17,32,.55) 60%)}
html[data-appearance=dark] .kx-theme:not(#kx-none) #support .supportComposer .kx-support-add{order:0;flex:none;width:44px!important;height:44px!important;min-width:44px!important;padding:0!important;display:grid!important;place-items:center;border-radius:50%!important;background:rgba(18,26,46,.7)!important;border:1px solid rgba(240,200,105,.28)!important;color:var(--gold)!important;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
html[data-appearance=dark] .kx-theme:not(#kx-none) #support .supportComposer #supportInput{order:1;flex:1;min-width:0;min-height:40px!important;max-height:96px;margin:0!important;padding:10px 44px 10px 14px!important;box-sizing:border-box;font-size:15px!important;line-height:20px!important;resize:none;color:var(--text)!important;background:rgba(18,26,46,.7)!important;border:1px solid rgba(240,200,105,.3)!important;border-radius:22px!important;box-shadow:none!important;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
html[data-appearance=dark] .kx-theme:not(#kx-none) #support .supportComposer #supportInput:focus{border-color:var(--gold2)!important;box-shadow:0 0 0 3px rgba(236,198,111,.14)!important;outline:0}
html[data-appearance=dark] .kx-theme:not(#kx-none) #support .supportComposer .kx-support-smile{order:2;position:absolute!important;right:66px;top:calc((100% + 6px - var(--kx-composer-pb))/2);transform:translateY(-50%);z-index:2;width:34px!important;height:34px!important;min-width:34px!important;padding:0!important;display:grid!important;place-items:center;background:transparent!important;border:0!important;box-shadow:none!important;color:var(--gold)!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #support .supportComposer .kx-support-smile .uiIcon{width:22px!important;height:22px!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #support .supportComposer #supportSendBtn{order:3;flex:none;width:40px!important;height:40px!important;min-width:40px!important;padding:0!important;display:grid!important;place-items:center;border:0!important;border-radius:50%!important;box-shadow:none!important;background:linear-gradient(180deg,#e64e33,var(--cinnabar2))!important;color:#fff4de!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) #support .supportComposer #supportSendBtn:disabled{background:var(--ink2)!important;color:var(--muted2)!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kxSupportPage .supportMessages{padding-bottom:calc(72px + var(--kx-composer-pb))!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kxSupportPage .kxSupportStatus{padding-top:12px!important}
html[data-appearance=dark] .kx-theme:not(#kx-none) .kx-poster-page{padding-bottom:24px!important}
