
/* Chat-style layout; reuse the established black and gold surfaces. */
body.chat-bet-active #content>.tabs[hidden]{display:none!important}body.chat-bet-active main>footer{display:none!important}.chat-layout{display:flex;flex-direction:column;height:clamp(330px,calc(100dvh - 390px),620px);min-height:330px;overflow:hidden;border:1px solid #a57b3d55;border-radius:13px;background:linear-gradient(120deg,#20190f,#17130d);box-shadow:inset 0 1px 0 #eac2760d;margin-top:12px}.chat-topline{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-shrink:0;padding:9px 12px;border-bottom:1px solid #c3994e26;color:#e7ce95;font-size:11px}.chat-topline small{margin-left:7px;color:#9e8c69;font-size:9px}.chat-topline button{border-radius:14px;padding:4px 9px;min-height:24px;border:1px solid #b2863f44;background:#382916;color:#e0c48c;font-size:9px}.chat-topline button[aria-pressed="false"]{color:#8e826b;background:#231c12}
.chat-feed{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:12px 11px 15px;scrollbar-width:thin;scrollbar-color:#795c2e transparent;background:radial-gradient(ellipse at 50% 0,#4a351311,transparent 70%)}.chat-system{max-width:92%;margin:0 auto 17px;padding:11px 12px;border:1px solid #bb8f432e;border-radius:10px;background:#3e2d183d;color:#c5b185;font-size:11px;line-height:1.8}.chat-system>span{display:block;font-size:10px;color:#eed28c;margin-bottom:4px}.chat-system small{display:block;color:#9d8b65;font-size:9px;margin-top:5px}
.chat-message{display:flex;align-items:flex-start;gap:8px;margin:0 0 15px}.chat-avatar{display:grid;place-items:center;flex-shrink:0;width:32px;height:32px;border-radius:50%;border:1px solid #b18842;background:linear-gradient(145deg,#705022,#38260f);color:#f1d38d;font-size:15px;box-shadow:inset 0 0 0 2px #f8ce5d0c}.chat-message-content{max-width:83%;min-width:0}.chat-message-content>header{display:flex;align-items:center;gap:6px;padding:0!important;margin:0 0 5px!important;border:0!important;background:none!important;min-height:0!important;font-size:10px;color:#b7a27a!important}.chat-message-content>header>b{font-size:8px;line-height:1.3;font-weight:400;background:#86652b33;border:1px solid #a7803933;border-radius:3px;padding:2px 4px;color:#d8b972}.chat-message-content time{font-size:9px;color:#8e8065}.chat-bubble{display:inline-block;position:relative;background:linear-gradient(125deg,#42321d,#302413);color:#eed8a6;border:1px solid #b98e3e35;border-radius:3px 11px 11px 11px;padding:9px 12px;font-size:13px;line-height:1.5;overflow-wrap:anywhere;box-shadow:0 2px 5px #0002}.chat-message-content>small{display:block;margin-top:5px;color:#897b5e;font-size:8px;line-height:1.4}.chat-message.mine{flex-direction:row-reverse}.chat-message.mine .chat-message-content{text-align:right}.chat-message.mine header{justify-content:flex-end}.chat-message.mine .chat-bubble{background:linear-gradient(135deg,#80602e,#513a1a);color:#ffebbd;border-color:#d6ad5a66;border-radius:11px 3px 11px 11px}.chat-message.mine .chat-avatar{background:linear-gradient(#e4bf73,#a57730);color:#3e2910}
.chat-tools{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;padding:7px 8px;border-top:1px solid #a17a3d33;background:#251c10;flex-shrink:0}.chat-tools button{min-width:0;min-height:30px;padding:5px 2px;border:1px solid #97713a33;border-radius:15px;background:#382917;color:#d8c08d;font-size:10px;white-space:nowrap}.chat-composer{display:flex;align-items:stretch;gap:6px;padding:8px;background:#1c160d;border-top:1px solid #a17a3d33;flex-shrink:0}.chat-quick-entry{flex-shrink:0;padding:4px 8px;min-width:43px;border-radius:7px;border:1px solid #b38c4855;background:#3a2b17;color:#dabb7c;font-size:10px;line-height:1.4}.chat-input-label{flex:1;display:flex;min-width:0}.chat-input-label input{width:100%;min-width:0;margin:0;min-height:40px;padding:9px 10px;background:#241a0f!important;border:1px solid #99713b66!important;border-radius:7px;color:#eed5a0!important;font-size:14px!important}.chat-input-label input::placeholder{color:#8d7b59;font-size:11px}.chat-composer .chat-send{flex-shrink:0;width:59px;min-width:59px;min-height:40px;border-radius:7px;padding:8px 7px;font-size:12px}.chat-composer .chat-send:disabled{opacity:.5}.chat-error{flex-shrink:0;margin:0!important;padding:0 10px 7px;color:#edb087!important;font-size:10px!important;line-height:1.5}.chat-error:empty{display:none}.chat-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.chat-quick-dialog{max-width:500px!important;width:calc(100vw - 26px)!important;max-height:85dvh;overflow:auto}.chat-quick-cats{display:flex;gap:6px;overflow:auto;margin:15px 0 12px;padding-bottom:5px}.chat-quick-cats button{padding:7px 11px;white-space:nowrap;font-size:11px;border-radius:7px;background:#332615;color:#cdb181;border-color:#8e693555}.chat-quick-cats button.active{background:linear-gradient(#e1bf75,#af7d31);color:#3e280d}#chatQuickOptions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-bottom:17px}#chatQuickOptions button{min-height:54px;padding:8px 4px;display:grid;gap:5px;place-items:center;border:1px solid #8c693955;border-radius:8px;background:#2d2214;color:#e3c68e}#chatQuickOptions button[aria-pressed="true"]{background:linear-gradient(#d9b76f,#a57834);color:#332006;border-color:#eac67f}#chatQuickOptions strong{font-size:14px;font-weight:500}#chatQuickOptions small{font-size:9px;opacity:.8}.chat-quick-dialog label{font-size:12px;display:grid;gap:9px}.chat-quick-dialog input{width:100%;padding:11px;font-size:16px}.chat-amounts{display:flex;gap:8px;margin:12px 0}.chat-amounts button{flex:1;font-size:12px;padding:9px;border-radius:7px;background:#3c2c18;color:#dfc188}.chat-quick-dialog>p{font-size:11px;line-height:1.6}
@media(min-width:821px){.chat-layout{height:560px;max-width:1100px;margin-inline:auto}.chat-feed{padding:20px}.chat-message-content{max-width:65%}.chat-bubble{font-size:15px}.chat-topline{padding:11px 17px}.chat-tools button{font-size:12px}.chat-composer{padding:11px}.chat-input-label input{font-size:16px!important}.chat-tools{gap:10px}.chat-topline small{font-size:11px}}
@media(max-width:360px){.chat-topline{font-size:10px}.chat-topline small{font-size:8px}.chat-tools{gap:3px;padding-inline:5px}.chat-tools button{font-size:9px}.chat-layout{min-height:310px}.chat-feed{padding:10px 8px}.chat-message-content>header{gap:4px}.chat-message-content time{font-size:8px}.chat-message-content>header>b{font-size:7px}.chat-send{font-size:10px!important}}

.chat-message:last-child{animation:chatAppear .22s ease-out}@keyframes chatAppear{from{opacity:.45;transform:translateY(5px)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.chat-message:last-child{animation:none}}

.chat-message.admin{flex-direction:row-reverse}.chat-message.admin .chat-message-content{max-width:87%}.chat-message.admin .chat-message-content>header{justify-content:flex-end}.chat-message.admin .chat-avatar{background:linear-gradient(#e6c178,#9b6c29);border-color:#e3bb68;color:#50350d}.chat-message.admin .chat-avatar svg{width:22px;height:22px}.chat-message.admin .chat-bubble{display:block;border-radius:11px 3px 11px 11px;background:linear-gradient(125deg,#534022,#392a15);color:#eed5a0;border-color:#ccaa5c55;line-height:1.8;font-size:12px;padding:10px 12px}.chat-message-content>header .chat-official-mark{font-style:normal;background:#9f5c20;border:1px solid #cd974b55;color:#ffdf9b;padding:1px 3px;border-radius:3px;font-size:9px;line-height:1.2}.chat-admin-result>div{line-height:1.8}.chat-admin-result strong{font-weight:600;color:#f3dca2}.chat-admin-result b{color:#ffb56c;font-weight:600;font-variant-numeric:tabular-nums}.chat-result-drawtime{color:#b49a6c;font-size:9px}.chat-recent-title{font-size:10px;color:#cbb27b;margin-top:5px}.chat-recent-title small{font-size:8px;margin-left:5px;opacity:.7}.chat-recent-sums{display:flex;flex-wrap:wrap;gap:4px 7px;margin-top:3px}.chat-recent-sums span{font-size:11px;color:#f0d79b;min-width:12px;text-align:center;font-variant-numeric:tabular-nums}.chat-order-summary{margin:0 0 14px 39px;border:1px solid #b28a4333;background:#2f231377;border-radius:10px;padding:10px 12px;color:#cbb27e}.chat-order-summary>header{display:flex;align-items:center;justify-content:space-between;gap:7px;margin:0 0 7px!important;padding:0 0 7px!important;min-height:0!important;background:none!important;border:0;border-bottom:1px solid #b28a4322;font-size:11px}.chat-order-summary>header strong{font-size:11px;color:#ead099;font-weight:500}.chat-order-summary>header small{font-size:8px;color:#9e8b64}.chat-order-summary>p{font-size:10px!important;margin:7px 0!important;color:#9f8b65!important}.chat-summary-row{display:flex;align-items:center;gap:8px;padding:7px 0;border-top:1px solid #a27b3925;line-height:1.4}.chat-summary-row>b{font-size:10px;min-width:39px;color:#c6a564;font-weight:500}.chat-summary-row>span{flex:1;min-width:0;font-size:11px;color:#ead4a4;overflow-wrap:anywhere}.chat-summary-row>small{font-size:8px;color:#9e8c67;white-space:nowrap}.chat-order-summary>button{display:block;margin:8px auto 0;padding:4px 10px;border:0;background:none;color:#dfbe7b;font-size:10px;min-height:26px}.chat-message.admin .chat-message-content>small{font-size:8px;color:#8e7c58}@media(max-width:360px){.chat-order-summary{margin-left:28px;padding:9px}.chat-message.admin .chat-bubble{font-size:11px}.chat-order-summary>header{flex-wrap:wrap}.chat-order-summary>header small{font-size:7px}}

/* Hide the global bottom bar inside a game; keep the in-game back button. */
body.zodiac-unified[data-in-game="true"]>aside>#nav{display:none!important}
body.zodiac-unified[data-in-game="true"]{padding-bottom:calc(14px + env(safe-area-inset-bottom,0px))!important}
body.zodiac-unified[data-in-game="true"] .chat-layout{height:clamp(360px,calc(100dvh - 300px),720px)!important}
@media(max-width:360px){body.zodiac-unified[data-in-game="true"] .chat-layout{min-height:330px;height:clamp(330px,calc(100dvh - 295px),650px)!important}}

.chat-quick-quote{display:grid;gap:7px;padding:13px;margin:12px 0 15px;border:1px solid #b68b4255;border-radius:9px;background:#3b2a1633;color:#d7ba7f}.chat-quick-quote>span{font-size:11px;color:#ae966c}.chat-quick-quote>strong{font-size:14px;color:#f0d296;font-weight:600}.chat-quick-quote>small{font-size:9px;color:#9e8862}#chatQuickError{font-size:11px;line-height:1.6;color:#edb182}#chatQuickError:empty{display:none}#chatQuickSubmit:disabled{opacity:.5}
.quick-bet-status{padding:11px 13px!important;margin:12px 0!important;border:1px solid #d19c50!important;border-radius:9px;background:#70402140;color:#ffcf8a!important;font-size:12px!important;line-height:1.7!important}.quick-bet-status[hidden]{display:none!important}.chat-quick-dialog button[data-blocked="true"]{background:linear-gradient(#776145,#514332)!important;border-color:#9f8054!important;color:#f0d7b1!important;box-shadow:none!important;cursor:not-allowed}
