                                                                                                                      
                                                                                                                        
                                                                                                                       
.tb { --tb-edge: #c7a879; --tb-edge-hi: #e6c382; --tb-gold: #f1cc7c; --tb-gold-text: #ffe5ad; --tb-text: #fff7e8; --tb-surface: #251d37; --tb-surface-2: #38233f;
  --tb-ghost: #171329e0; --tb-shine: #ffffff22; --tb-glow: #e6c38244; --tb-focus: #9aead7;
                                                                                                                      
  display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex: 1 1 0; min-width: 0; margin-left: auto; font-family: "Be Vietnam Pro", system-ui, sans-serif; }
.tb[hidden] { display: none !important; }
.tb button { position: relative; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tb button:focus-visible { outline: 3px solid var(--tb-focus); outline-offset: 2px; }
.tb-coins, .tb-lang { display: inline-flex; align-items: center; justify-content: center; flex: none; min-width: 44px; height: 44px; border: 1px solid var(--tb-edge); border-radius: 22px; background: var(--tb-ghost); white-space: nowrap; }
.tb-coins { gap: 6px; padding: 0 12px 0 8px; color: var(--tb-gold-text); font: 700 15px/1 "Be Vietnam Pro", system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.tb-coin { width: 22px; height: 22px; flex: none; }
.tb-coins.free { padding: 0 12px; }
.tb-coins.free .tb-coin { display: none; }                           
.tb-lang { padding: 0 12px; color: var(--tb-text); font: 600 14px/1 "Be Vietnam Pro", system-ui, sans-serif; }
.tb-account { display: inline-flex; align-items: center; gap: 8px; flex: 0 1 auto; min-width: 0; height: 48px; padding: 0 10px 0 3px; border: 1px solid var(--tb-edge); border-radius: 24px; background: linear-gradient(160deg, var(--tb-surface), var(--tb-surface-2)); color: var(--tb-text); box-shadow: inset 0 1px 0 var(--tb-shine); }
.tb-account:hover, .tb-coins:hover, .tb-lang:hover { border-color: var(--tb-edge-hi); }
.tb-account[aria-expanded="true"] { border-color: var(--tb-gold); box-shadow: inset 0 1px 0 var(--tb-shine), 0 0 14px var(--tb-glow); }
                                                                                                                         
                                                                   
.tb-sign { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 50% 38%, #3d2b55, #1b1430 72%); box-shadow: inset 0 0 0 1px #e9c47a59; overflow: hidden; }
.tb-sign img { display: block; width: 34px; height: 34px; }
.tb-sign img.flip { transform: scaleX(-1); }                                             
.tb-name { min-width: 1.6em; max-width: min(34vw, 240px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 16px/1.25 "Be Vietnam Pro", system-ui, sans-serif; }
                                                                                                                           
                                                          
.tb-exp { width: 24px; height: 24px; flex: none; margin-left: -2px; fill: none; stroke: var(--tb-gold); stroke-width: 2.5; stroke-linecap: round; transition: transform .22s cubic-bezier(.2, .8, .2, 1); }
.tb-account[aria-expanded="true"] .tb-exp { transform: rotate(45deg); }
                                                                                                                   
                                                                                                                        
                                                                
@media (max-width: 359px) {
  .tb { gap: 4px; }
  .tb-coins { gap: 4px; padding: 0 9px 0 6px; }
  .tb-account { gap: 6px; padding-right: 8px; }
  header.tb-tight .brand { display: none; }
  header.tb-tight { justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) { .tb-exp { transition: none; } }
:root[data-motion="off"] .tb-exp { transition: none; }
