/* CHAN LONG CAC • NÂU BẢ TRẦU + VÀNG SÁNG
   Public-facing pages only. Does not affect /khanhhangoc/ admin.
   2026-10-07 */
:root {
  --clc-betel-outer:#392b1c;
  --clc-betel-deep:#261b12;
  --clc-betel-panel:#44311f;
  --clc-betel-panel-2:#342516;
  --clc-brass:#d4ad55;
  --clc-gold:#ffe278;
  --clc-gold-bright:#fff0aa;
  --clc-text:#ffe7a8;
  --clc-muted:#efd2a0;
  --clc-danger:#ffd2ad;
}
body.x-subpage,body.x-home {
  color-scheme:dark;
  --ink:var(--clc-text); --muted:var(--clc-muted);
  --line:var(--clc-brass); --gold:var(--clc-gold);--blue:var(--clc-gold);
  background:linear-gradient(180deg,#4b3824 0%,#392b1c 44%,#261c13 100%)!important;
  color:var(--clc-text)!important;
  font-family:Tahoma,Arial,"Segoe UI",sans-serif;
}
body.x-subpage .x-header,body.x-home .x-header{
  background:linear-gradient(180deg,#44301e,#251b12)!important;
  border-bottom:1px solid var(--clc-brass)!important;
  box-shadow:0 8px 22px rgba(17,10,5,.42)!important;
}
body.x-subpage .x-logo img,body.x-home .x-logo img{
  border-color:var(--clc-brass)!important;
  box-shadow:0 0 0 3px rgba(240,190,93,.14)!important;
}
body.x-subpage .x-nav a,body.x-home .x-nav a{
  color:var(--clc-gold-bright)!important;
  -webkit-text-fill-color:var(--clc-gold-bright)!important;
}
body.x-subpage .x-nav a:is(:hover,.active),body.x-home .x-nav a:is(:hover,.active){
  color:#fff8ca!important;-webkit-text-fill-color:#fff8ca!important;
  background:rgba(197,149,64,.16)!important;
}
body.x-subpage .x-nav a::after,body.x-home .x-nav a::after{
  background:var(--clc-gold)!important;
}
body.x-subpage .x-account-actions a,body.x-home .x-account-actions a,
body.x-subpage .x-btn,body.x-home .x-btn {
  background:linear-gradient(180deg,#644826,#3e2c1a)!important;
  border:1px solid var(--clc-brass)!important;
  color:var(--clc-gold-bright)!important;
  -webkit-text-fill-color:var(--clc-gold-bright)!important;
  box-shadow:none!important;
}
body.x-subpage .nav-toggle,body.x-home .nav-toggle {
  background:#4a3520!important;color:var(--clc-gold)!important;border-color:var(--clc-brass)!important;
}
/* Layout, hero and page surfaces */
body.x-subpage .x-sub-main,body.x-subpage .x-sub-content,body.x-subpage .page-content,
body.x-home main{
  background-color:transparent!important;
  color:var(--clc-text)!important;
  -webkit-text-fill-color:var(--clc-text)!important;
}
body.x-subpage .x-sub-hero,body.x-subpage .x-sub-hero-bg{
  background:linear-gradient(110deg,#402e1d,#533b25 52%,#312316)!important;
  border-bottom:1px solid var(--clc-brass)!important;
}
body.x-subpage .x-sub-hero-bg::before,body.x-subpage .x-sub-hero-bg::after{
  background:transparent!important;opacity:0!important;
}
body.x-subpage .x-sub-hero-inner h1,body.x-subpage .x-sub-main h1,
body.x-subpage .x-sub-main h2,body.x-subpage .x-sub-main h3,
body.x-subpage .x-sub-main h4,body.x-subpage .x-sub-main h5,
body.x-subpage .x-sub-main h6,
body.x-home main :is(h1,h2,h3,h4,h5,h6){
  color:var(--clc-gold-bright)!important;
  -webkit-text-fill-color:var(--clc-gold-bright)!important;
  text-shadow:0 1px 1px rgba(0,0,0,.28)!important;
}
body.x-subpage .x-sub-hero-inner :is(p,span),
body.x-subpage .x-sub-main :is(p,li,dt,dd,td,label,small,em,time,blockquote,summary),
body.x-home main :is(p,li,dt,dd,td,label,small,em,time,blockquote,summary){
  color:var(--clc-text)!important;
  -webkit-text-fill-color:var(--clc-text)!important;
}
body.x-subpage .x-sub-main :is(.muted,[class*="muted"],[class*="-desc"],[class*="-meta"],[class*="-hint"],[class*="-sub"],[class*="-note"]),
body.x-home main :is(.muted,[class*="muted"],[class*="-desc"],[class*="-meta"],[class*="-hint"]){
  color:var(--clc-muted)!important;-webkit-text-fill-color:var(--clc-muted)!important;
}
body.x-subpage .x-sub-main :is(strong,b),
body.x-home main :is(strong,b){
  color:var(--clc-gold-bright)!important;-webkit-text-fill-color:var(--clc-gold-bright)!important;
}
/* Public content cards; exclude icons/images and fixed overlays */
body.x-subpage .x-sub-content :is(.card,.panel,.content-card,.section-card,
[class*="-panel"],[class*="-card"],[class*="-box"],[class*="-hero"],
[class*="-section"],[class*="-tile"],[class*="-row"]),
body.x-home :is(.x-card,.x-quickbar,.x-community,.x-server-box){
  background:linear-gradient(180deg,#4a3521,#342517)!important;
  border-color:var(--clc-brass)!important;
  box-shadow:0 8px 22px rgba(10,6,3,.20)!important;
  color:var(--clc-text)!important;
}
/* Explicit components with formerly blue/navy surfaces */
body.x-subpage .x-sub-content :is(.event-page-v3,.event-featured,.event-list,.event-panel,
.guide-page-v3,.guide-hero,.guide-main-panel,.guide-sidebar-card,.guide-card-v3,.guide-detail-section,
.news-page-v3,.contact-page-v3,.download-page-v2,.topup-page,.account-page,
.account-hero,.account-card,.account-modal-box,.register-hero,.register-card,
.clc-page,.clc-hero,.clc-board,.clc-crown,.clc-stat,.clc-nav a,
[class*="info-box"],[class*="notice-box"]) {
  background:linear-gradient(180deg,#4a3521,#342517)!important;
  border-color:var(--clc-brass)!important;
  color:var(--clc-text)!important;
}
body.x-home .x-card-head,body.x-home .x-quick-grid>a,
body.x-home .x-ranking li b,body.x-home .x-rank-tabs,
body.x-home .x-community-links a{
  background:linear-gradient(180deg,#513b26,#362719)!important;
  border-color:var(--clc-brass)!important;
}
body.x-home .x-card-head h3,
body.x-home .x-card-head>a,
body.x-home :is(.x-list a,.x-event-list a,.x-ranking li span,.x-schedule strong,.x-quick-grid strong){
  color:var(--clc-gold-bright)!important;-webkit-text-fill-color:var(--clc-gold-bright)!important;
}
body.x-home :is(.x-list time,.x-event-list time,.x-schedule em,.x-ranking li em,.x-quick-grid small){
  color:var(--clc-muted)!important;-webkit-text-fill-color:var(--clc-muted)!important;
}
body.x-home .x-rank-tabs .active,body.x-home .x-tabs button.active{
  background:#594126!important;color:var(--clc-gold-bright)!important;border-color:var(--clc-brass)!important;
}
body.x-home .x-tabs button,
body.x-home .x-rank-tabs span{
  color:var(--clc-gold)!important;-webkit-text-fill-color:var(--clc-gold)!important;
}
/* Links, buttons, forms */
body.x-subpage .x-sub-content a:not([class*="btn"]):not(.button),
body.x-home main a:not([class*="btn"]):not(.button){
  color:var(--clc-gold-bright)!important;-webkit-text-fill-color:var(--clc-gold-bright)!important;
}
body.x-subpage .x-sub-content :is(a.button,button,.btn,[class*="-btn"],input[type="submit"]),
body.x-home main :is(button,.x-cta,.hs-btn) {
  background:linear-gradient(180deg,#71522d,#452f19)!important;
  border:1px solid var(--clc-brass)!important;
  color:var(--clc-gold-bright)!important;
  -webkit-text-fill-color:var(--clc-gold-bright)!important;
  text-decoration:none!important;
  text-shadow:none!important;
}
body.x-subpage .x-sub-content :is(a.button,button,.btn,[class*="-btn"],input[type="submit"]):hover,
body.x-home main :is(button,.x-cta,.hs-btn):hover{
  background:linear-gradient(180deg,#826032,#594022)!important;
  border-color:#ffe08c!important;
}
body.x-subpage .x-sub-content :is(input:not([type="checkbox"]):not([type="radio"]),textarea,select),
body.x-home main :is(input:not([type="checkbox"]):not([type="radio"]),textarea,select){
  background:#302318!important;
  border:1px solid #d5ae60!important;
  color:#fff0be!important;
  -webkit-text-fill-color:#fff0be!important;
  caret-color:var(--clc-gold)!important;
}
body.x-subpage .x-sub-content :is(input,textarea)::placeholder,
body.x-home main :is(input,textarea)::placeholder{
  color:#dec392!important;-webkit-text-fill-color:#dec392!important;opacity:1!important;
}
body.x-subpage .x-sub-content select option,
body.x-home main select option{
  color:#ffe7a8!important;background:#352617!important;
}
body.x-subpage .x-sub-content :is(input,select,textarea):focus-visible,
body.x-home main :is(input,select,textarea):focus-visible{
  outline:2px solid var(--clc-gold)!important;outline-offset:2px;
}
/* Tables */
body.x-subpage .x-sub-content :is(table,thead,tbody,tr,td),
body.x-home main :is(table,thead,tbody,tr,td){
  background-color:transparent!important;
  color:var(--clc-text)!important;
}
body.x-subpage .x-sub-content table,body.x-home main table{
  border:1px solid var(--clc-brass)!important;
}
body.x-subpage .x-sub-content th,body.x-home main th{
  background:#5a4228!important;
  border-color:var(--clc-brass)!important;
  color:var(--clc-gold-bright)!important;
  -webkit-text-fill-color:var(--clc-gold-bright)!important;
}
body.x-subpage .x-sub-content td,body.x-home main td{
  border-color:#88673d!important;
}
body.x-subpage .x-sub-content tr:nth-child(even) td,
body.x-home main tr:nth-child(even) td{background:rgba(255,225,137,.065)!important}
/* Labels and note panels */
body.x-subpage .x-sub-content :is(.tag,.badge,[class*="-badge"],[class*="-tag"],[class*="-pill"]),
body.x-home main :is(.tag,.badge,[class*="-badge"],[class*="-tag"]){
  background:#604627!important;
  border:1px solid #d4ad55!important;
  color:var(--clc-gold-bright)!important;
  -webkit-text-fill-color:var(--clc-gold-bright)!important;
}
body.x-subpage .x-sub-content :is(.msg-box,.msg,.notice,.alert){
  background:#4b3822!important;border:1px solid var(--clc-brass)!important;color:var(--clc-gold-bright)!important;
}
/* Footer and user support */
body.x-subpage .x-footer,body.x-home .x-footer,
body.x-subpage .clc-support-box,body.x-home .clc-support-box{
  background:linear-gradient(180deg,#44301e,#2b1e13)!important;
  border-color:var(--clc-brass)!important;
  color:var(--clc-text)!important;
}
body.x-subpage .x-footer *,body.x-home .x-footer *,
body.x-subpage .clc-support-box :is(p,small,span,label),body.x-home .clc-support-box :is(p,small,span,label){
  color:var(--clc-text)!important;
}
body.x-subpage .clc-support-head,body.x-home .clc-support-head{
  background:#624728!important;border-color:var(--clc-brass)!important;
}
body.x-subpage .clc-support-box textarea,body.x-home .clc-support-box textarea{
  background:#302318!important;color:#fff0be!important;border-color:var(--clc-brass)!important;
}
body.x-subpage .clc-support-toggle,body.x-home .clc-support-toggle,
body.x-subpage .clc-support-submit,body.x-home .clc-support-submit{
  background:linear-gradient(180deg,#71522d,#452f19)!important;
  border:1px solid var(--clc-brass)!important;color:var(--clc-gold-bright)!important;
}
/* Standalone pages: tournament and pet tables use same palette */
body:not(.x-subpage):not(.x-home) {
  background:linear-gradient(180deg,#4b3824,#34271a 55%,#241a11)!important;
  color:var(--clc-text)!important;
}
body:not(.x-subpage):not(.x-home) :is(.top,.board,.stat,.entry){
  background:linear-gradient(180deg,#4a3521,#342517)!important;
  border-color:var(--clc-brass)!important;
}
body:not(.x-subpage):not(.x-home) :is(.brand,.topnav a,h1,h2,h3,.eyebrow,.entry-title,.name,.number,.member-name,.roster summary){
  color:var(--clc-gold-bright)!important;
}
body:not(.x-subpage):not(.x-home) :is(.sub,.meta,.foot,.small,.stat span,.stat .caption){
  color:var(--clc-muted)!important;
}
body:not(.x-subpage):not(.x-home) :is(td,li,p,summary){
  color:var(--clc-text)!important;
}
body:not(.x-subpage):not(.x-home) :is(.button,.search){
  background:#39291a!important;border-color:var(--clc-brass)!important;color:var(--clc-gold-bright)!important;
}
body:not(.x-subpage):not(.x-home) .button.active{
  background:var(--clc-gold)!important;color:#24180d!important;
}
body:not(.x-subpage):not(.x-home) th{
  color:#fff0aa!important;background:#5d452c!important;border-color:var(--clc-brass)!important;
}
body:not(.x-subpage):not(.x-home) td{
  border-color:#806039!important;
}
body:not(.x-subpage):not(.x-home) .entry{
  color:var(--clc-text)!important;
}
body:not(.x-subpage):not(.x-home) .pill{
  background:#594126!important;color:#ffe6a1!important;border-color:var(--clc-brass)!important;
}
body:not(.x-subpage):not(.x-home) .pill.done{
  background:#22523a!important;color:#ddffe4!important;border-color:#6dc38a!important;
}
body:not(.x-subpage):not(.x-home) .pill.cancelled{
  background:#69342a!important;color:#ffe0cd!important;border-color:#db9584!important;
}
@media(max-width:640px){
 body.x-subpage,body.x-home{font-size:15px!important}
 body.x-subpage .x-sub-content{padding-left:12px!important;padding-right:12px!important}
 body.x-subpage .x-sub-main :is(p,li,td,label){line-height:1.65!important}
}

/* === FINAL BETEL OVERRIDE: neutralize legacy bright/gold surfaces on all public subpages === */
body.x-subpage,
body.x-subpage .x-sub-main,
body.x-subpage .x-sub-content,
body.x-subpage .page-content {
  background:linear-gradient(180deg,#4b3824 0%,#392b1c 48%,#261c13 100%)!important;
  color:var(--clc-text)!important;
}
body.x-subpage .x-sub-main :is(section,article,aside,form,fieldset),
body.x-subpage .x-sub-content :is(section,article,aside,form,fieldset) {
  background:linear-gradient(180deg,#4a3521,#342517)!important;
  border-color:var(--clc-brass)!important;
  color:var(--clc-text)!important;
  box-shadow:none!important;
}
body.x-subpage .x-sub-main :is(h1,h2,h3,h4,h5,h6),
body.x-subpage .x-sub-content :is(h1,h2,h3,h4,h5,h6) {
  color:var(--clc-gold-bright)!important;
  -webkit-text-fill-color:var(--clc-gold-bright)!important;
  text-shadow:0 1px 1px rgba(0,0,0,.30)!important;
}
body.x-subpage .x-sub-main :is(p,span,strong,b,small,label,li,td,th,em,time,summary,blockquote),
body.x-subpage .x-sub-content :is(p,span,strong,b,small,label,li,td,th,em,time,summary,blockquote) {
  color:var(--clc-text)!important;
  -webkit-text-fill-color:var(--clc-text)!important;
  text-shadow:none!important;
}
body.x-subpage .x-sub-main a,
body.x-subpage .x-sub-content a {
  color:var(--clc-gold-bright)!important;
  -webkit-text-fill-color:var(--clc-gold-bright)!important;
}
body.x-subpage .x-sub-main :is(input:not([type="checkbox"]):not([type="radio"]),textarea,select),
body.x-subpage .x-sub-content :is(input:not([type="checkbox"]):not([type="radio"]),textarea,select) {
  background:#302318!important;
  color:#fff0be!important;
  -webkit-text-fill-color:#fff0be!important;
  border-color:var(--clc-brass)!important;
}
body.x-subpage .x-sub-main :is(input,textarea)::placeholder,
body.x-subpage .x-sub-content :is(input,textarea)::placeholder {
  color:#dec392!important;
  -webkit-text-fill-color:#dec392!important;
  opacity:1!important;
}
body.x-subpage .x-sub-main :is(button,input[type="submit"],.btn,[class*="-btn"]),
body.x-subpage .x-sub-content :is(button,input[type="submit"],.btn,[class*="-btn"]) {
  background:linear-gradient(180deg,#71522d,#452f19)!important;
  color:var(--clc-gold-bright)!important;
  -webkit-text-fill-color:var(--clc-gold-bright)!important;
  border-color:var(--clc-brass)!important;
  text-shadow:none!important;
}
body.x-subpage .x-sub-main :is(table,tr,td,th),
body.x-subpage .x-sub-content :is(table,tr,td,th) {
  border-color:#88673d!important;
}
body.x-subpage .x-sub-main th,
body.x-subpage .x-sub-content th {
  background:#5a4228!important;
  color:var(--clc-gold-bright)!important;
  -webkit-text-fill-color:var(--clc-gold-bright)!important;
}


/* === 2026-10-08: GLOBAL COPPER GOLD OUTER GUTTERS ONLY ===
   Unified warm metallic orange/bronze on the outer canvas of
   home, all subpages and standalone public pages.
   Do not recolor inner cards, controls, header, nav or content borders. */
html {
  min-height:100%;
  background-color:#563419 !important;
}
body,
body.x-home,
body.x-subpage,
body:not(.x-subpage):not(.x-home) {
  min-height:100vh;
  background-color:#563419 !important;
  background-image:
    radial-gradient(ellipse 38% 88% at 0% 43%,rgba(190,117,34,.66) 0%,rgba(150,89,32,.28) 43%,transparent 100%),
    radial-gradient(ellipse 38% 88% at 100% 43%,rgba(190,117,34,.66) 0%,rgba(150,89,32,.28) 43%,transparent 100%),
    linear-gradient(180deg,#805123 0%,#65401e 28%,#3d2919 63%,#79501f 100%) !important;
  background-attachment:fixed !important;
  background-repeat:no-repeat !important;
  background-size:cover !important;
}
/* Keep page content panels and borders as they currently are. */

/* Uncover the copper page canvas: .x-sub-main was painting opaque brown
   across both side gutters despite the updated body background. */
body.x-subpage .x-sub-main {
  background:transparent !important;
  background-color:transparent !important;
  background-image:none !important;
}


/* CLC_ACCOUNT_NOTE_CONTRAST_20261010
   Only account-page note labels on their existing yellow bar;
   retain the original backgrounds, layouts, and the rest of the theme. */
body.x-subpage .x-sub-main .account-page .ui-panel p.panel-note,
body.x-subpage .x-sub-content .account-page .ui-panel p.panel-note {
  color: #30200e !important;
  -webkit-text-fill-color: #30200e !important;
  font-weight: 800 !important;
  text-shadow: none !important;
  opacity: 1 !important;
  filter: none !important;
}
