/* Shared display currency layer, loaded in the shell and native game frames. */
/* Only two private-use outlines: all letters/digits keep their native font. */
@font-face{font-family:BaksupCurrency;src:url(currency-icons.woff2) format('woff2');font-weight:100 900;font-display:block;unicode-range:U+E000-E001}
.fx-symbol-font{font-family:BaksupCurrency,var(--fx-text-font,Golos,Arial,sans-serif)!important}
.fx-rub-input{display:none!important}
.fx-input{box-sizing:border-box;min-width:0;max-width:100%;font-family:inherit}
.fx-input-hint{display:block;flex-basis:100%;font:500 10px/1.4 Golos,Arial,sans-serif;color:#9cabc5;margin:3px 0 0}
.fx-input-hint[hidden],.fx-input[hidden]{display:none!important}
.req-amount .fx-input{font-size:36px;font-weight:700;width:var(--fx-size,6ch)!important;max-width:75%;flex:0 1 auto;text-align:right;background:none;border:0;color:inherit;padding:0}
.req-amount [data-fx-input-unit]{font-size:18px!important;flex:none}
.req-amount .fx-input-hint{text-align:center;font-size:11px}
.stake .val-row .fx-input{width:var(--fx-size,4ch)!important;max-width:11ch}
.tu-amount-edit .fx-input{width:6ch!important;max-width:65%;background:none;border:0;color:inherit;font-size:36px;font-weight:700;text-align:right}
.tu-amount-edit [data-fx-input-unit]{font-size:19px!important;flex:none}
.agg-amount .fx-input{width:var(--fx-size,6ch)!important;max-width:75%}
.ставка .fx-input-hint,.низ>.fx-input-hint{position:fixed;bottom:85px;left:12px;right:12px;z-index:9;background:#131e30e8;padding:5px;border-radius:8px;text-align:center;pointer-events:none;opacity:0}
.ставка:focus-within .fx-input-hint,.низ:focus-within>.fx-input-hint{opacity:1}
.полебокс:has(.fx-input:not([hidden])) i,.ставкабокс:has(.fx-input:not([hidden])) i.руб{font-size:9px;flex:none}
/* Jumper: the stake field sits in .ставкасумма (flex row inside positioned .низ); widen it for the converted figure. */
.ставкасумма:has(.fx-input:not([hidden])){flex-basis:156px}
.ставкасумма>.полебокс .fx-input{font-size:16px;letter-spacing:-.3px;padding:0}
[data-display-currency]:not([data-display-currency=RUB]) .wallet-amount{font-size:clamp(27px,7.5vw,42px)!important;letter-spacing:-1.5px}
[data-display-currency]:not([data-display-currency=RUB]) .er-hero:not([data-fx-fixed]) .er-amount b{font-size:clamp(38px,10vw,54px)!important}
[data-display-currency]:not([data-display-currency=RUB]) .er-hero:not([data-fx-fixed]) .er-amount small{font-size:.42em!important}
[data-display-currency]:not([data-display-currency=RUB]) .jp-bal{font-size:13px!important;white-space:nowrap}
:is(.pu-root,.pulse-game-header) .currency-wallet{display:flex;align-items:center;gap:4px;padding:5px;border:1px solid #303a4b;border-radius:28px;background:#121a26;min-width:0}
:is(.pu-root,.pulse-game-header) .currency-balance{display:flex;align-items:center;gap:7px;min-width:0;padding:4px 5px;background:none;border:0;color:#edf1fa;cursor:pointer}
.currency-mark{display:inline-flex;align-items:center;justify-content:center;flex:none;width:25px;height:25px;border-radius:50%;font:700 18px/1 Golos,Arial,sans-serif;color:#fff}
:is(.pu-root,.pulse-game-header) .currency-mark svg,.pu-layer .currency-mark svg{display:block;width:100%;height:100%;margin:0;stroke:none;flex:none}
.currency-mark-rub{background:#3376ec}.currency-mark-usdt,.currency-mark-ton,.currency-mark-stars{background:none}
:is(.pu-root,.pulse-game-header) .currency-mark-usdt svg,.pu-layer .currency-mark-usdt svg{width:120%;height:120%}
:is(.pu-root,.pulse-game-header) .currency-amount{font:650 15px/1.15 Golos,Arial,sans-serif;font-variant-numeric:tabular-nums;letter-spacing:-.4px;min-width:0}
:is(.pu-root,.pulse-game-header) .currency-chevron{display:flex;align-items:center;color:#99a9b8;transform:rotate(90deg)}
:is(.pu-root,.pulse-game-header) .currency-chevron .ic{width:15px;height:15px}
:is(.pu-root .app-header,.pulse-game-header) .currency-add{background:#3f99e1;color:#fff;border:1px solid #58a8e7;border-radius:50%;box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:38px;height:38px;min-height:38px;padding:0;line-height:1;flex:none;transition:background .15s,transform .15s}
:is(.pu-root,.pulse-game-header) .currency-add:active{background:#2c82c9;transform:scale(.94)}
:is(.pu-root .app-header,.pulse-game-header) .currency-add .ic{display:block;width:23px;height:23px;margin:0;padding:0;transform:none;flex:none;stroke-width:2.3}
/* Keep every corner inside Telegram's rounded viewport, including iOS safe areas.
   Only the currency picker floats; native game/payment sheets are unchanged. */
.pu-layer.currency-layer{--currency-safe-bottom:max(env(safe-area-inset-bottom,0px),var(--tg-safe-area-inset-bottom,0px),var(--tg-content-safe-area-inset-bottom,0px));--currency-safe-top:max(env(safe-area-inset-top,0px),var(--tg-content-safe-area-inset-top,0px))}
.pu-layer.currency-layer>.pu-dialog{width:min(calc(100% - 24px),456px);bottom:calc(12px + var(--currency-safe-bottom));max-height:calc(100dvh - 24px - var(--currency-safe-bottom) - var(--currency-safe-top));border-radius:26px}
.currency-layer .sheet-head{flex:none}
.currency-layer .sheet-head h2{font-size:22px}
.currency-options{display:flex;flex-direction:column;gap:10px}
.currency-layer .currency-option{display:flex;align-items:center;gap:12px;width:100%;padding:15px;border-radius:18px;background:#1b2537;border:1px solid #354259;color:#f0f3ff;text-align:left;min-height:76px;font:inherit}
.currency-option .currency-mark{width:38px;height:38px;font-size:26px}
.currency-option>span:nth-child(2){flex:1;min-width:0}
.currency-option b{font-size:16px;line-height:1.25;letter-spacing:.3px}
.currency-layer .currency-option[aria-pressed=true]{background:linear-gradient(120deg,#2d4267,#263151);border-color:#8ca9ef}
.currency-option-value{width:23px;height:23px;border:1px solid #586984;border-radius:50%;display:grid;place-items:center}
.currency-option[aria-pressed=true] .currency-option-value{background:#9bb8ff;border-color:#9bb8ff;color:#233862}
.currency-option-value .ic{width:16px;height:16px}
.currency-status{margin:8px 0 0;font-size:12px;line-height:1.5;color:#b5c2d9}
.currency-status[hidden]{display:none}
.pu-root .app-header .head-tools{min-width:0}
@media(max-width:370px){.pu-root .app-header{padding-inline:14px;gap:7px}.pu-root .app-header .brand{font-size:23px}:is(.pu-root,.pulse-game-header) .currency-balance{gap:4px;padding:3px}:is(.pu-root,.pulse-game-header) .currency-amount{font-size:12px}:is(.pu-root,.pulse-game-header) .currency-mark{width:21px;height:21px;font-size:15px}:is(.pu-root .app-header,.pulse-game-header) .currency-add{width:32px;height:32px;min-height:32px;padding:0}.pu-root .head-tools{gap:4px}.pu-root .app-header .icon-button{padding:5px;width:30px;min-width:30px}}
