/* Pseudo text leaves original DOM strings available to legacy game calculations. */
html body [data-money-display]{font-size:0!important}
html body [data-money-display]::after{content:attr(data-money-display);font-size:var(--tc-money-size,14px);font-variant-numeric:tabular-nums}
html body input[data-money-covered]{color:transparent!important;-webkit-text-fill-color:transparent!important;caret-color:auto}
.tc-money-input-display{font-variant-numeric:tabular-nums;white-space:nowrap}
.tc-money-input-display[hidden]{display:none!important}
html[data-theme=light] .tc-money-input-display{--gs-ink:var(--ui-p-243e4c,#243e4c);--gs-muted:var(--ui-p-526b79,#526b79)}
/* Compact amounts keep source text/values intact; tap, click or keyboard reveals the full amount. */
html body [data-money-full]{cursor:pointer;touch-action:manipulation;white-space:nowrap}
html body [data-money-full]::after{text-decoration:underline dotted;text-decoration-color:color-mix(in srgb,currentColor 35%,transparent);text-underline-offset:4px}
html body [data-money-full]:focus-visible{outline:2px solid var(--ui-focus);outline-offset:4px;border-radius:3px}
.tc-money-input-display.is-compact{pointer-events:auto!important;text-decoration:underline dotted;text-underline-offset:4px}
html body .tc-money-popover{position:fixed;inset:auto;margin:0;box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr) 44px;column-gap:12px;width:max-content;min-width:190px;max-width:calc(100vw - 24px);padding:14px 12px 14px 16px;border:1px solid var(--ui-border);border-radius:var(--ui-radius);background:var(--ui-surface);color:var(--ui-text);font:400 14px/1.5 var(--ui-font);box-shadow:0 8px 30px color-mix(in srgb,var(--ui-p-000000,#000) 24%,transparent);z-index:10010}
html body .tc-money-popover:not(:popover-open),html body .tc-money-popover[hidden]{display:none}
@supports not selector(:popover-open){html body .tc-money-popover:not([hidden]){display:grid}}
.tc-money-popover-label{grid-column:1;font-size:11px;color:var(--ui-muted);text-transform:uppercase;letter-spacing:.05em}
.tc-money-popover strong{grid-column:1;font-size:16px;line-height:1.5;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;white-space:normal;user-select:text}
html body .tc-money-popover button{grid-column:2;grid-row:1/3;align-self:center;width:44px;height:44px;border:0;border-radius:6px;background:transparent;color:var(--ui-muted);font:400 24px/1 var(--ui-font);cursor:pointer}
.tc-money-popover button:hover{background:var(--ui-raised);color:var(--ui-text)}
.tc-money-popover button:focus-visible{outline:2px solid var(--ui-focus);outline-offset:2px}
html body .tc-money-popover[hidden]{display:none!important}
html body .user_balance[data-money-full]{display:inline-flex;align-items:center;min-height:30px}
[data-money-display]::after,.tc-money-popover strong{direction:ltr;unicode-bidi:isolate}

/* Currency icons and amounts are one non-wrapping inline unit in cards and tables. */
html body .ui-money-amount{display:inline-flex;align-items:center;justify-content:flex-end;gap:5px;white-space:nowrap;vertical-align:middle;font-variant-numeric:tabular-nums}
html body .ui-money-amount>img{display:block!important;flex:0 0 16px;width:16px!important;height:16px!important;object-fit:contain;margin:0!important}
html body .ui-money-amount>[data-money-amount]{display:inline-block;white-space:nowrap}
@media(max-width:640px){
 html body.tc-faucet-page .tc-level-rewards #level_system :is(th,td){padding:10px 7px!important}
 html body.tc-faucet-page .tc-level-rewards #level_system th{font-size:11px!important;white-space:normal}
 html body.tc-faucet-page .tc-level-rewards [data-money-amount]{--tc-money-size:13px!important}
}
