@font-face { font-family: ArenaWallet; src: url('/arena/fonts/RuneScape-Bold-12.ttf') format('truetype'); font-display: swap; }
.ingame-wallet { --wallet-line: #71634d; --wallet-gold: #ffcb69; color-scheme: dark; box-sizing: border-box; width: min(900px, calc(100vw - 32px)); max-width: none; height: min(690px, calc(100dvh - 32px)); max-height: none; margin: auto; padding: 0; border: 5px ridge #736c59; border-radius: 3px; background: #493f32 url('/arena/assets/wallet/panel-texture.png'); color: #f4e7cc; box-shadow: 0 0 0 1px #151610, 0 16px 80px #000b; font: 14px/1.45 'Segoe UI', sans-serif; text-align: left; }
.ingame-wallet[open] { display: flex; flex-direction: column; }
.ingame-wallet::backdrop { background: #12140fab; }
.ingame-wallet *, .ingame-wallet *::before, .ingame-wallet *::after { box-sizing: border-box; }
.ingame-wallet [hidden] { display: none !important; }
.ingame-wallet .ingame-wallet-heading { flex: none; display: flex; align-items: center; gap: 16px; border-bottom: 4px ridge #756b54; background: #2d2a24c9; padding: 8px 12px 8px 20px; }
.ingame-wallet-heading > div { flex: 1; }
.ingame-wallet .ingame-wallet-eyebrow { color: #bcaf94; font-size: 10px; letter-spacing: 1.8px; text-transform: uppercase; }
.ingame-wallet .ingame-wallet-heading h2 { font: 30px/1 ArenaWallet, Georgia, serif; color: #ffbd45; margin: 0; text-shadow: 1px 2px #000; }
.ingame-wallet .ingame-wallet-network { font-size: 11px; color: #d4c7a6; }
.ingame-wallet button { min-height: 44px; border: 2px outset #807762; border-radius: 2px; padding: 8px 14px; color: #ffdf93; background: linear-gradient(#625a48, #403c30); font: 16px/1.15 ArenaWallet, Georgia, serif; text-shadow: 1px 1px #191910; box-shadow: inset 0 0 0 1px #27251e; cursor: pointer; touch-action: manipulation; }
.ingame-wallet button:hover:enabled { background: linear-gradient(#7a6e54, #564934); color: #fff5c8; filter: none; }
.ingame-wallet button:active:enabled { border-style: inset; }
.ingame-wallet button:disabled { opacity: .5; cursor: default; }
.ingame-wallet :focus-visible { outline: 2px solid #ffd17a; outline-offset: 2px; }
.ingame-wallet .ingame-wallet-close { flex: none; padding: 0; width: 44px; font: 30px/1 Georgia, serif; color: #e4d5b5; }
.ingame-wallet .ingame-wallet-context { flex: none; margin: 0; padding: 7px 20px; font-size: 12px; color: #dfcfae; background: #302c238c; border-bottom: 1px solid #8b7a4c55; }
.ingame-wallet .ingame-wallet-tabs { display: flex; gap: 5px; padding: 8px 16px 0; flex: none; }
.ingame-wallet-tabs button { flex: 1; }
.ingame-wallet-tabs button[aria-pressed=true], .ingame-wallet .transfer-tabs button[aria-pressed=true] { color: #ffe9a0; background: linear-gradient(#795f37, #51402a); border-color: #ac945e; }
.ingame-wallet .ingame-wallet-body { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 14px 18px; scrollbar-color: #91846b #292820; }
.ingame-wallet .ingame-wallet-footer { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px; background: #302d25; border-top: 2px groove #716a55; color: #d1c3a5; font-size: 11px; text-align: left; }
.ingame-wallet .ingame-wallet-footer button { flex: none; min-width: 140px; }
.ingame-wallet h2 { color: #ffd477; font: 21px/1.2 ArenaWallet, Georgia, serif; margin: 0 0 10px; text-shadow: 1px 1px #000; }
.ingame-wallet h3 { font-size: 15px; margin: 10px 0; }
.ingame-wallet p { margin: 6px 0 12px; }
.ingame-wallet .panel { border: 1px solid #73644b; border-radius: 2px; padding: 16px; background: #28261e70; margin: 0 0 12px; box-shadow: inset 0 0 0 1px #19181077; }
.ingame-wallet .notice { background: #28251dd9; color: #f1d5a2; border: 1px solid #998255; border-radius: 2px; padding: 12px; }
.ingame-wallet .small { font-size: 12px; }
.ingame-wallet .muted { color: #c8bfa9; }
.ingame-wallet .mono { font: 12px/1.5 monospace; overflow-wrap: anywhere; }
.ingame-wallet .panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ingame-wallet .network { color: #f6d08d; font-size: 12px; }
.ingame-wallet .form-row { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.ingame-wallet .form-row > * { flex: 1; min-width: 130px; }
.ingame-wallet label { display: block; margin: 6px 0 10px; color: #ead9b4; font: 13px/1.4 'Segoe UI', sans-serif; }
.ingame-wallet input, .ingame-wallet select { display: block; width: 100%; min-width: 0; min-height: 44px; margin: 5px 0 0; padding: 8px 10px; border: 2px inset #7b7056; border-radius: 2px; background: #26251f; color: #fff1d7; font: 16px/1.2 'Segoe UI', sans-serif; }
.ingame-wallet .currency-select { position: relative; display: block; }
.ingame-wallet .currency-icon { width: 20px; height: 20px; object-fit: contain; vertical-align: middle; margin-right: 5px; }
.ingame-wallet .currency-select > .currency-icon { position: absolute; top: 12px; left: 10px; pointer-events: none; }
.ingame-wallet select.has-currency-icon { padding-left: 38px; }
.ingame-wallet .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.ingame-wallet .actions button { flex: 1 1 150px; }
.ingame-wallet .text-button { border: 0; box-shadow: none; background: none; text-decoration: underline; }
.ingame-wallet .balances { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.ingame-wallet .balance { padding: 10px 12px; border: 1px solid #7d6e51; border-radius: 2px; background: #26261cb5; min-width: 0; }
.ingame-wallet .balance-heading { display: flex; align-items: center; color: #e8d4a5; gap: 6px; }
.ingame-wallet .balance-heading .currency-icon { width: 23px; height: 23px; }
.ingame-wallet .balance strong { display: block; font-size: 21px; font-weight: 600; margin-top: 5px; overflow-wrap: anywhere; }
.ingame-wallet .balance p { margin: 3px 0 0; font-size: 11px; }
.ingame-wallet .columns { display: block; }
.ingame-wallet .transfer-tabs { display: flex; gap: 6px; margin: 5px 0 12px; }
.ingame-wallet .transfer-tabs button { flex: 1; }
.ingame-wallet .transfer-direction { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.ingame-wallet .withdrawal-amount-row { display: flex; gap: 8px; }
.ingame-wallet .withdrawal-amount-row input { flex: 1; margin: 0; }
.ingame-wallet [data-cashier-id="get-quote"] { width: 100%; background: linear-gradient(#57643c, #34402c); border-color: #8d9b66; }
.ingame-wallet [data-cashier-id="approve"] { background: linear-gradient(#57643c, #34402c); border-color: #8d9b66; }
.ingame-wallet .conversion > div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid #776b4e66; padding: 8px 0; }
.ingame-wallet .conversion dt { color: #cfc1a6; }
.ingame-wallet .conversion dd { margin: 0; text-align: right; overflow-wrap: anywhere; max-width: 65%; }
.ingame-wallet a { color: #f9ce78; }
.ingame-wallet [data-error="true"] { color: #ffb3a1; }
.ingame-wallet [data-cashier-id="feedback"] { margin-bottom: 10px; font-size: 12px; }
.ingame-wallet [data-cashier-id="feedback"]:empty { display: none; }
.ingame-wallet [data-cashier-id="operation"] { border: 2px solid #b79758; }
.ingame-wallet .production-cashier-history-list { list-style: none; padding: 0; }
.ingame-wallet .production-cashier-history-item { border-top: 1px solid #796c4e; padding: 12px 0; overflow-wrap: anywhere; }
.ingame-wallet .production-cashier-history-item p { margin: 4px 0; }
.ingame-wallet [data-cashier-id="production-transfers"] > button { margin-right: 8px; }
/* Keep the shared DOM/controller intact; only the selected presentation changes. */
.ingame-wallet:not([data-wallet-view="account"]) .connection,
.ingame-wallet:not([data-wallet-view="account"]) [data-cashier-id="player-profile"],
.ingame-wallet:not([data-wallet-view="transfer"]) .balances,
.ingame-wallet:not([data-wallet-view="transfer"]) [data-cashier-id="cashier"],
.ingame-wallet:not([data-wallet-view="transfer"]) [data-cashier-id="operation"],
.ingame-wallet:not([data-wallet-view="help"]) .columns > .panel:not([data-cashier-id="cashier"]),
.ingame-wallet:not([data-wallet-view="activity"]) [data-cashier-id="production-transfers"],
.ingame-wallet:not([data-wallet-view="activity"]) [data-cashier-id="production-support"],
.ingame-wallet:not([data-wallet-view="activity"]) [data-cashier-id="production-closure"] { display: none; }
@media (max-height: 520px) and (orientation: landscape) {
  .ingame-wallet { width: min(920px, calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right) - 12px)); height: calc(100dvh - 8px); }
  .ingame-wallet .ingame-wallet-heading { padding: 2px 8px 2px 14px; }
  .ingame-wallet .ingame-wallet-eyebrow { display: none; }
  .ingame-wallet .ingame-wallet-heading h2 { font-size: 26px; }
  .ingame-wallet .ingame-wallet-context { font-size: 11px; padding: 4px 14px; }
  .ingame-wallet .ingame-wallet-tabs { padding: 5px 10px 0; }
  .ingame-wallet .ingame-wallet-body { padding: 8px 12px; }
  .ingame-wallet .ingame-wallet-footer { display: none; }
  .ingame-wallet .balances { float: left; width: 27%; display: flex; flex-direction: column; gap: 6px; margin: 0 12px 0 0; }
  .ingame-wallet .balance { padding: 5px 10px; }
  .ingame-wallet .balance strong { font-size: 17px; line-height: 1.1; margin-top: 2px; }
  .ingame-wallet .balance p { font-size: 11px; line-height: 1.2; margin-top: 2px; }
  .ingame-wallet .balance-heading .currency-icon { width: 20px; height: 20px; }
  .ingame-wallet[data-wallet-view="transfer"] .columns, .ingame-wallet [data-cashier-id="operation"] { margin-left: calc(27% + 12px); }
  .ingame-wallet[data-wallet-pending="true"] [data-cashier-id="cashier"] { display: none; }
  .ingame-wallet .panel { padding: 12px; }
  .ingame-wallet [data-cashier-id="cashier"] > .panel-heading { display: none; }
  .ingame-wallet [data-cashier-id="quote-form"] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 12px; }
  .ingame-wallet [data-cashier-id="quote-form"] > .form-row { grid-area: 1 / 1 / 3 / 2; display: block; }
  .ingame-wallet [data-cashier-id="amount-label"] { grid-area: 1 / 2 / 2 / 3; margin-bottom: 5px; }
  .ingame-wallet .withdrawal-amount-row { grid-area: 2 / 2 / 3 / 3; align-self: start; }
  .ingame-wallet [data-cashier-id="quote-form"] > p, .ingame-wallet [data-cashier-id="get-quote"] { grid-column: 1 / -1; }
  .ingame-wallet [data-cashier-id="denomination"] { font-size: 11px; margin: 0 0 8px; }
  .ingame-wallet [data-cashier-id="withdraw-all"] { padding: 6px 8px; font-size: 14px; }
}
@media (max-width: 500px) and (orientation: portrait) {
  .ingame-wallet { width: calc(100vw - 12px); height: calc(100dvh - 12px); }
  .ingame-wallet .ingame-wallet-network { display: none; }
  .ingame-wallet .balances { grid-template-columns: 1fr; }
  .ingame-wallet .ingame-wallet-footer span { display: none; }
}
.ingame-wallet .notice.attention { border-color: #c9a35e; color: #f8e3b8; }
.ingame-wallet [data-cashier-id="transfer-feedback"], .ingame-wallet [data-cashier-id="operation-feedback"] { margin: 8px 0 0; font-size: 12px; }
.ingame-wallet [data-cashier-id="operation"].in-flight { border-color: #e6bb72; }
.ingame-wallet .pending-line { color: #f1d5a2; font-weight: 700; }
