@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Instrument+Sans:ital,wght@0,400;0,500;0,600;1,400&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  color-scheme: light;
  --forest: #141a12;
  --pine: #1e3024;
  --chalk: #f2efe6;
  --parchment: #e9dfc2;
  --sage: #dfe7da;
  --paper: #faf8f1;
  --ink: #20281f;
  --muted: #6e7466;
  --line: rgba(30, 48, 36, .14);
  --dark-line: rgba(242, 239, 230, .11);
  --positive: #557b5e;
  --negative: #975743;
  --display: "Instrument Serif", Georgia, serif;
  --body: "Instrument Sans", Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html, body, #prediction-root { min-width: 320px; min-height: 100%; }
body { margin: 0; overflow: hidden; background: var(--forest); color: var(--ink); font-family: var(--body); -webkit-font-smoothing: antialiased; }
body.v2-modal-open { overflow: hidden; }
button, input, select { color: inherit; font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid var(--parchment); outline-offset: 3px; }
[hidden] { display: none !important; }

.v2-app { min-height: 100vh; background: var(--chalk); }
.v2-loader { position: fixed; z-index: 100; inset: 0; display: grid; place-content: center; justify-items: center; gap: 15px; background: var(--forest); color: var(--chalk); transition: opacity .25s ease, visibility .25s ease; }
.v2-loader > img { width: 72px; height: 72px; border-radius: 18px; object-fit: contain; }
.v2-loader > div { display: grid; justify-items: center; gap: 5px; }
.v2-loader strong { font: 400 36px/1 var(--display); }
.v2-loader span { color: rgba(242, 239, 230, .46); font: 400 9px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.v2-loader > i { width: 116px; height: 2px; overflow: hidden; border-radius: 99px; background: rgba(242, 239, 230, .1); }
.v2-loader > i::after { content: ""; display: block; width: 48%; height: 100%; background: var(--parchment); animation: loader 1s ease-in-out infinite alternate; }
.v2-app:not(.is-loading) .v2-loader { visibility: hidden; opacity: 0; pointer-events: none; }

.terminal-bar { position: relative; z-index: 20; height: 68px; display: grid; grid-template-columns: 220px 1fr auto auto auto; align-items: center; gap: 10px; padding: 0 21px; border-bottom: 1px solid var(--dark-line); background: var(--forest); color: var(--chalk); }
.v2-brand { display: inline-flex; align-items: center; gap: 9px; width: max-content; color: var(--chalk); font: 400 24px/1 var(--display); text-decoration: none; }
.v2-brand-mark { width: 34px; height: 34px; border-radius: 9px; object-fit: contain; }
.terminal-status { width: max-content; display: flex; align-items: center; gap: 8px; color: rgba(242, 239, 230, .48); font: 400 8px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.terminal-status small { padding-left: 9px; border-left: 1px solid var(--dark-line); font: inherit; }
.v2-live-dot, .live-quote-state i, .v2-network-state i, .v2-wallet-status > i, .v2-activity-status i { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #7fb08a; animation: pulse 1.8s ease infinite; }
.terminal-activity, .terminal-social, .v2-wallet-pill { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--dark-line); border-radius: 99px; background: rgba(242, 239, 230, .05); color: var(--chalk); font-size: 10px; font-weight: 500; text-decoration: none; }
.terminal-activity { padding: 0 14px; }
.terminal-social { width: 36px; }
.v2-wallet-pill { gap: 8px; padding: 0 13px; border-color: transparent; background: var(--parchment); color: var(--pine); font-weight: 600; }
.terminal-activity:hover, .terminal-social:hover { background: rgba(242, 239, 230, .1); }
.v2-wallet-pill:hover { background: var(--chalk); }
.v2-wallet-orb { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
.v2-token-icon { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }

.terminal-workspace { position: relative; height: calc(100vh - 68px); overflow: hidden; background: var(--chalk); }
.market-instrument { position: absolute; inset: 0; display: grid; grid-template-rows: 80px minmax(0, 1fr); }
.market-toolbar { position: relative; z-index: 10; display: grid; grid-template-columns: minmax(300px, 1fr) auto auto; align-items: center; gap: 18px; padding: 0 23px; border-bottom: 1px solid var(--line); background: rgba(250, 248, 241, .94); backdrop-filter: blur(14px); }
.v2-instrument { min-width: 0; display: flex; align-items: center; gap: 10px; }
.v2-coin { width: 39px; height: 39px; flex: 0 0 39px; overflow: hidden; border-radius: 50%; background: white; }
.v2-coin img { width: 100%; height: 100%; object-fit: cover; }
.v2-instrument-name { min-width: 82px; display: grid; gap: 2px; }
.v2-instrument-name strong { color: var(--forest); font: 400 18px/1 var(--display); }
.v2-instrument-name span { color: var(--muted); font: 400 8px var(--mono); }
.v2-market-picker { position: relative; margin-left: 3px; }
.v2-market-trigger { min-height: 32px; display: flex; align-items: center; gap: 11px; padding: 0 11px; border: 1px solid var(--line); border-radius: 99px; background: var(--chalk); color: var(--pine); font: 400 8px var(--mono); }
.v2-market-trigger:hover, .v2-market-trigger[aria-expanded="true"] { border-color: rgba(30, 48, 36, .35); background: var(--sage); }
.v2-market-trigger i { width: 6px; height: 6px; border-right: 1px solid var(--pine); border-bottom: 1px solid var(--pine); transform: translateY(-2px) rotate(45deg); transition: transform .16s ease; }
.v2-market-trigger[aria-expanded="true"] i { transform: translateY(2px) rotate(225deg); }
.v2-market-native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; clip-path: inset(50%); }
.v2-market-menu { position: absolute; z-index: 40; top: calc(100% + 8px); left: 0; width: 250px; display: grid; gap: 3px; padding: 7px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); box-shadow: 0 22px 50px rgba(20, 26, 18, .18); }
.v2-market-menu button { width: 100%; display: grid; grid-template-columns: 31px 1fr auto; align-items: center; gap: 9px; padding: 8px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); text-align: left; }
.v2-market-menu button:hover { background: rgba(30, 48, 36, .06); }
.v2-market-menu button[aria-selected="true"] { background: var(--sage); }
.v2-market-menu img { width: 31px; height: 31px; border-radius: 50%; object-fit: cover; }
.v2-market-menu span { display: grid; gap: 2px; }
.v2-market-menu strong { font-size: 11px; font-weight: 600; }
.v2-market-menu small, .v2-market-menu button > i { color: var(--muted); font: 400 7px var(--mono); font-style: normal; }
.live-quote { min-width: 190px; display: grid; gap: 2px; padding: 7px 13px; text-align: right; }
.live-quote-state { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.live-quote-state i { background: #7fb08a; }
.terminal-label { color: var(--muted); font: 400 8px var(--mono); text-transform: uppercase; }
.live-quote strong { color: var(--forest); font-size: 27px; font-weight: 500; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.live-quote small { color: var(--positive); font: 400 8px var(--mono); }
.live-quote small.is-down { color: var(--negative); }
.market-camera { display: flex; align-items: center; gap: 7px; }
.v2-zoom { display: flex; overflow: hidden; border: 1px solid var(--line); border-radius: 99px; }
.v2-zoom button, .v2-live-camera { min-width: 36px; height: 32px; padding: 0 8px; border: 0; border-right: 1px solid var(--line); background: var(--paper); color: var(--muted); font: 400 8px var(--mono); }
.v2-zoom button:last-child { border: 0; }
.v2-zoom button:hover { color: var(--pine); background: var(--sage); }
.v2-zoom button.is-active { background: var(--pine); color: var(--chalk); }
.v2-live-camera { border: 1px solid var(--line); border-radius: 99px; }
.v2-live-camera.is-active { border-color: transparent; background: var(--sage); color: var(--pine); }
.v2-live-camera:not(.is-active) { border-color: rgba(151, 87, 67, .35); color: var(--negative); }

.v2-surface-shell { position: relative; min-height: 0; overflow: hidden; isolation: isolate; background: var(--chalk); }
.v2-surface-shell::after { content: "PICK A PRICE TILE + FINISH TIME"; position: absolute; z-index: 2; left: 50%; top: 17px; color: rgba(20, 26, 18, .36); font: 400 8px var(--mono); letter-spacing: .1em; transform: translateX(-50%); pointer-events: none; }
.v2-surface { display: block; width: 100%; height: 100%; touch-action: none; }
.v2-now-seam { position: absolute; z-index: 2; top: 46px; bottom: 42px; width: 1px; background: repeating-linear-gradient(to bottom, rgba(30, 48, 36, .68) 0 7px, transparent 7px 12px); transform: translateX(-1px); pointer-events: none; }
.v2-price-chip { position: absolute; z-index: 4; width: max-content; max-width: 150px; padding: 6px 9px; border-radius: 7px; background: var(--pine); color: var(--chalk); font: 400 9px var(--mono); line-height: 1; white-space: nowrap; transform: translate(-50%, -100%); pointer-events: none; }
.v2-hover-card { position: absolute; z-index: 6; min-width: 190px; display: grid; gap: 5px; padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: 0 15px 35px rgba(20, 26, 18, .15); pointer-events: none; }
.v2-hover-card span, .v2-hover-card small { color: var(--muted); font: 400 8px var(--mono); }
.v2-hover-card strong { color: var(--forest); font-size: 14px; font-weight: 600; }
.v2-surface-legend, .v2-clock { position: absolute; z-index: 3; bottom: 16px; color: var(--muted); font: 400 8px var(--mono); pointer-events: none; }
.v2-surface-legend { left: 22px; display: flex; gap: 17px; }
.v2-surface-legend span { display: flex; align-items: center; gap: 7px; }
.v2-legend-line { width: 20px; height: 2px; border-radius: 3px; background: var(--pine); }
.v2-clock { right: 22px; }

.light-arena-tray { position: absolute; z-index: 12; left: 50%; bottom: 18px; width: min(1080px, calc(100% - 44px)); min-height: 110px; display: grid; grid-template-columns: 205px 220px minmax(300px, 1fr) 175px; align-items: center; gap: 10px; padding: 11px; border: 1px solid var(--dark-line); border-radius: 21px; background: rgba(20, 26, 18, .96); color: var(--chalk); box-shadow: 0 24px 70px rgba(20, 26, 18, .26); backdrop-filter: blur(16px); transform: translateX(-50%); }
.arena-bank, .arena-stake, .arena-ticket { min-width: 0; }
.arena-bank { display: grid; gap: 8px; padding: 0 5px; }
.arena-bank-button { width: 100%; display: flex; align-items: center; gap: 8px; padding: 9px; border: 1px solid var(--dark-line); border-radius: 12px; background: rgba(242, 239, 230, .055); color: var(--chalk); text-align: left; }
.arena-bank-button:hover { background: rgba(242, 239, 230, .1); }
.arena-bank-button > span { min-width: 0; display: grid; gap: 2px; }
.arena-bank-button small, .arena-record, .arena-label small { color: rgba(242, 239, 230, .46); font: 400 7px var(--mono); text-transform: uppercase; }
.arena-bank-button strong { color: var(--chalk); font-size: 13px; font-weight: 500; white-space: nowrap; }
.arena-bank-button i { width: 23px; height: 23px; display: grid; place-items: center; margin-left: auto; border-radius: 50%; background: var(--parchment); color: var(--pine); font-size: 16px; font-style: normal; }
.arena-record { display: flex; justify-content: space-between; padding: 0 3px; }
.arena-record strong { color: var(--chalk); }
[data-pnl].is-positive { color: #9bc4a5; }
[data-pnl].is-negative { color: #d18a74; }
.arena-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; font-size: 10px; font-weight: 500; }
.arena-stake-row { display: grid; gap: 6px; }
.rail-stake-input { height: 42px; display: grid; grid-template-columns: 38px 1fr 38px; overflow: hidden; border: 1px solid var(--dark-line); border-radius: 11px; background: rgba(242, 239, 230, .055); }
.rail-stake-input button { border: 0; background: transparent; color: var(--chalk); font-size: 18px; }
.rail-stake-input button:hover { background: rgba(242, 239, 230, .08); }
.rail-stake-input label { display: flex; align-items: center; justify-content: center; gap: 5px; border-inline: 1px solid var(--dark-line); }
.rail-stake-input input { width: 72px; border: 0; outline: 0; background: transparent; color: var(--chalk); font: 400 15px var(--mono); text-align: right; }
.rail-stake-input label span { color: rgba(242, 239, 230, .43); font: 400 7px var(--mono); }
.rail-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.rail-presets button { height: 25px; border: 1px solid var(--dark-line); border-radius: 7px; background: transparent; color: rgba(242, 239, 230, .48); font: 400 8px var(--mono); }
.rail-presets button:hover { color: var(--chalk); }
.rail-presets button.is-active { border-color: var(--parchment); background: var(--parchment); color: var(--pine); }
.arena-ticket { position: relative; min-height: 82px; display: flex; align-items: center; padding: 10px 12px; border: 1px solid var(--dark-line); border-radius: 14px; background: rgba(242, 239, 230, .05); }
.ticket-empty { display: flex; align-items: center; gap: 11px; }
.arena-ticket-orb { width: 37px; height: 37px; flex: 0 0 37px; display: grid; place-items: center; border: 1px solid rgba(233, 223, 194, .5); border-radius: 50%; color: var(--parchment); font-size: 20px; }
.ticket-empty div, .ticket-content { min-width: 0; }
.ticket-empty strong { color: var(--chalk); font-size: 13px; font-weight: 500; }
.ticket-empty p { margin: 3px 0 0; color: rgba(242, 239, 230, .45); font-size: 9px; line-height: 1.35; }
.ticket-content { width: 100%; display: grid; grid-template-columns: minmax(125px, .7fr) 1fr; align-items: center; gap: 12px; }
.ticket-range { min-width: 0; display: grid; gap: 4px; }
.ticket-range span, .ticket-details dt { color: rgba(242, 239, 230, .44); font: 400 7px var(--mono); text-transform: uppercase; }
.ticket-range strong { overflow: hidden; color: var(--chalk); font-size: 15px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.ticket-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.ticket-details > div { min-width: 0; display: grid; gap: 4px; }
.ticket-details dd { margin: 0; overflow: hidden; color: var(--chalk); font: 400 9px var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.v2-lime { color: var(--parchment) !important; }
.arena-ticket-state { position: absolute; right: 9px; top: -9px; padding: 4px 8px; border-radius: 99px; background: var(--parchment); color: var(--pine); font: 500 7px var(--mono); text-transform: uppercase; }
.place-prediction { min-height: 82px; display: grid; place-content: center; gap: 4px; border: 0; border-radius: 13px; background: var(--parchment); color: var(--pine); }
.place-prediction:hover:not(:disabled) { background: var(--chalk); }
.place-prediction:disabled { background: rgba(242, 239, 230, .07); color: rgba(242, 239, 230, .3); cursor: not-allowed; }
.place-prediction span:first-child { font-size: 12px; font-weight: 600; }
.place-prediction span:last-child { font: 400 8px var(--mono); }
.v2-dock-note { position: absolute; left: 50%; bottom: calc(100% + 8px); max-width: 500px; padding: 7px 10px; border-radius: 8px; background: var(--pine); color: var(--chalk); font: 400 8px var(--mono); text-align: center; transform: translateX(-50%); }

.v2-overlay { position: fixed; z-index: 60; inset: 0; display: grid; place-items: stretch end; background: rgba(14, 18, 13, .58); backdrop-filter: blur(9px); }
.v2-sheet, .v2-activity { position: relative; width: min(500px, 100%); height: 100%; display: flex; flex-direction: column; overflow-y: auto; padding: 32px; border-left: 1px solid var(--dark-line); background: var(--pine); color: var(--chalk); box-shadow: -24px 0 70px rgba(0, 0, 0, .2); }
.v2-activity { width: min(720px, 100%); overflow: hidden; }
.v2-sheet-close { position: absolute; z-index: 2; top: 20px; right: 20px; width: 35px; height: 35px; border: 1px solid var(--dark-line); border-radius: 50%; background: rgba(242, 239, 230, .05); color: var(--chalk); font-size: 18px; }
.v2-sheet-close:hover { background: var(--parchment); color: var(--pine); }
.v2-wallet-head, .v2-activity-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-right: 43px; }
.v2-wallet-head h2, .v2-activity-head h2 { margin: 7px 0 0; color: var(--parchment); font: 400 38px/1 var(--display); }
.v2-eyebrow { color: rgba(242, 239, 230, .43); font: 400 8px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.v2-network-state, .v2-activity-status { display: flex; align-items: center; gap: 7px; padding-top: 4px; color: rgba(242, 239, 230, .45); font: 400 8px var(--mono); text-transform: uppercase; white-space: nowrap; }
.v2-sheet > p { max-width: 38ch; margin: 18px 0 0; color: rgba(242, 239, 230, .62); font-size: 13px; line-height: 1.55; }
.v2-sheet-balance { display: grid; gap: 9px; margin-top: 30px; padding: 20px; border-radius: 18px; background: var(--parchment); color: var(--pine); }
.v2-sheet-balance > span, .v2-reserve-grid span, .v2-funds-field > span, .v2-wallet-status, .v2-transaction-note { color: inherit; opacity: .58; font: 400 8px var(--mono); text-transform: uppercase; }
.v2-sheet-balance strong { display: flex; align-items: baseline; gap: 8px; font: 400 50px/1 var(--display); }
.v2-sheet-balance small { font: 400 10px var(--mono); }
.v2-reserve-head { display: flex; justify-content: space-between; margin-top: 29px; font-size: 10px; font-weight: 500; }
.v2-reserve-head small { color: rgba(242, 239, 230, .43); font: 400 8px var(--mono); }
.v2-reserve-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.v2-reserve-grid > div { min-width: 0; display: grid; gap: 6px; padding: 13px; border: 1px solid var(--dark-line); border-radius: 12px; background: rgba(242, 239, 230, .045); }
.v2-reserve-grid span { color: rgba(242, 239, 230, .45); opacity: 1; }
.v2-reserve-grid strong { overflow: hidden; color: var(--chalk); font: 400 10px var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.v2-reserve-grid .is-negative { color: #d18a74; }
.v2-funds-field { display: grid; gap: 8px; margin-top: 24px; }
.v2-funds-field > span { color: rgba(242, 239, 230, .45); opacity: 1; }
.v2-funds-field > div { height: 48px; display: flex; align-items: center; padding: 0 13px; border: 1px solid var(--dark-line); border-radius: 12px; background: rgba(242, 239, 230, .055); }
.v2-funds-field input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--chalk); font: 400 16px var(--mono); }
.v2-funds-field b { font: 400 8px var(--mono); }
.v2-sheet-actions { display: grid; grid-template-columns: 1fr 1.35fr; gap: 8px; margin-top: 10px; }
.v2-sheet-actions button { height: 46px; border: 1px solid var(--dark-line); border-radius: 11px; background: rgba(242, 239, 230, .055); color: var(--chalk); font-size: 10px; font-weight: 600; }
.v2-sheet-actions button:hover { background: rgba(242, 239, 230, .1); }
.v2-sheet-actions .is-primary { border-color: transparent; background: var(--parchment); color: var(--pine); }
.v2-sheet-actions button:disabled { opacity: .45; cursor: not-allowed; }
.v2-transaction-note { min-height: 38px; padding-top: 12px; overflow-wrap: anywhere; color: rgba(242, 239, 230, .45); opacity: 1; line-height: 1.5; text-transform: none; }
.v2-transaction-note.is-error { color: #d18a74; }
.v2-wallet-status { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 20px; overflow-wrap: anywhere; border-top: 1px solid var(--dark-line); color: rgba(242, 239, 230, .45); opacity: 1; text-transform: none; }

.v2-activity-head { padding-bottom: 24px; border-bottom: 1px solid var(--dark-line); }
.v2-activity-summary { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.2fr; border-bottom: 1px solid var(--dark-line); }
.v2-activity-summary > div { min-width: 0; display: grid; gap: 6px; padding: 18px 13px; border-right: 1px solid var(--dark-line); }
.v2-activity-summary > div:first-child { padding-left: 0; }
.v2-activity-summary > div:last-child { border: 0; }
.v2-activity-summary span, .v2-activity-row span { color: rgba(242, 239, 230, .43); font: 400 7px var(--mono); text-transform: uppercase; }
.v2-activity-summary strong { color: var(--chalk); font-size: 13px; font-weight: 500; white-space: nowrap; }
.v2-activity-summary .is-positive { color: #9bc4a5; }
.v2-activity-summary .is-negative { color: #d18a74; }
.v2-activity-filters { display: flex; gap: 5px; padding: 15px 0 11px; }
.v2-activity-filters button { height: 33px; display: flex; align-items: center; gap: 7px; padding: 0 11px; border: 1px solid transparent; border-radius: 99px; background: transparent; color: rgba(242, 239, 230, .46); font-size: 9px; font-weight: 500; }
.v2-activity-filters button:hover { background: rgba(242, 239, 230, .06); }
.v2-activity-filters button.is-active { border-color: transparent; background: var(--parchment); color: var(--pine); }
.v2-activity-filters span { min-width: 17px; height: 17px; display: grid; place-items: center; border-radius: 99px; background: rgba(242, 239, 230, .08); font: 400 7px var(--mono); }
.v2-activity-filters button.is-active span { background: rgba(30, 48, 36, .1); color: var(--pine); }
.v2-activity-list { min-height: 0; flex: 1; overflow-y: auto; scrollbar-color: var(--parchment) transparent; }
.v2-activity-row { display: grid; grid-template-columns: minmax(190px, 1.4fr) minmax(120px, .8fr) minmax(150px, 1fr); align-items: center; gap: 16px; padding: 15px 10px; border-top: 1px solid var(--dark-line); }
.v2-activity-row:hover { background: rgba(242, 239, 230, .035); }
.v2-activity-row > div { min-width: 0; display: grid; gap: 5px; }
.v2-activity-row strong { color: var(--chalk); font-size: 12px; }
.v2-activity-row small { overflow: hidden; color: rgba(242, 239, 230, .45); font: 400 8px var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.v2-activity-market strong { font: 400 16px var(--display); }
.v2-activity-outcome { text-align: right; }
.v2-activity-outcome .is-open, .v2-activity-outcome .is-won { color: #9bc4a5; }
.v2-activity-outcome .is-lost { color: #d18a74; }
.v2-activity-outcome .is-void { color: rgba(242, 239, 230, .45); }
.v2-activity-empty { min-height: 300px; height: 100%; display: grid; place-content: center; justify-items: center; padding: 40px; text-align: center; }
.v2-activity-empty > span { width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 17px; border-radius: 50%; background: var(--parchment); color: var(--pine); font: 400 24px var(--mono); }
.v2-activity-empty strong { color: var(--parchment); font: 400 25px var(--display); }
.v2-activity-empty p { max-width: 35ch; margin: 8px 0 0; color: rgba(242, 239, 230, .5); font-size: 12px; line-height: 1.5; }
.v2-activity-empty button { height: 39px; margin-top: 19px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--parchment); color: var(--pine); font-size: 10px; font-weight: 600; }
.v2-activity-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 14px; border-top: 1px solid var(--dark-line); color: rgba(242, 239, 230, .43); font: 400 8px var(--mono); text-transform: uppercase; }
.v2-activity-foot button { height: 34px; padding: 0 12px; border: 0; border-radius: 99px; background: var(--parchment); color: var(--pine); font-size: 9px; font-weight: 600; }

@keyframes loader { to { transform: translateX(60px); } }
@keyframes pulse { 50% { opacity: .45; transform: scale(.72); } }
@keyframes v2-price-flash { 35% { color: var(--positive); transform: translateY(-2px); } }

@media (max-width: 800px) {
  .terminal-bar { height: 62px; grid-template-columns: 1fr auto auto auto; gap: 7px; padding: 0 11px; }
  .v2-brand { font-size: 21px; }
  .v2-brand-mark { width: 32px; height: 32px; }
  .terminal-status { display: none; }
  .terminal-activity { width: 36px; padding: 0; font-size: 0; }
  .terminal-activity::before { content: "↻"; font-size: 16px; }
  .terminal-social { width: 36px; }
  .v2-wallet-pill { min-width: 40px; padding: 0 9px; }
  .v2-wallet-pill span { display: none; }
  .terminal-workspace { height: calc(100svh - 62px); }
  .market-instrument { grid-template-rows: 96px minmax(0, 1fr); }
  .market-toolbar { grid-template-columns: 1fr auto; gap: 8px; padding: 0 10px; }
  .v2-coin { width: 36px; height: 36px; flex-basis: 36px; }
  .v2-instrument-name { min-width: 0; }
  .v2-instrument-name strong { font-size: 16px; }
  .v2-instrument-name span { font-size: 7px; }
  .v2-market-trigger { min-height: 29px; padding: 0 8px; font-size: 7px; }
  .v2-market-menu { left: auto; right: 0; width: min(250px, calc(100vw - 22px)); }
  .live-quote { position: absolute; left: 10px; top: 96px; z-index: 7; min-width: 140px; padding: 7px 8px; text-align: left; }
  .live-quote-state { justify-content: flex-start; }
  .live-quote strong { font-size: 23px; }
  .market-camera { position: absolute; z-index: 8; right: 10px; top: 103px; }
  .v2-surface-shell::after { top: 15px; font-size: 6px; }
  .v2-surface-legend { left: 10px; bottom: 166px; }
  .v2-surface-legend span:last-child { display: none; }
  .v2-clock { right: 10px; bottom: 166px; }
  .light-arena-tray { left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); width: auto; min-height: 0; grid-template-columns: 1fr 1fr; gap: 7px; padding: 8px; border-radius: 18px; transform: none; }
  .arena-bank { grid-column: span 2; display: flex; align-items: center; justify-content: space-between; padding: 0; }
  .arena-bank-button { width: auto; min-width: 155px; }
  .arena-record { display: grid; gap: 3px; padding-right: 3px; text-align: right; }
  .arena-stake { padding: 0; }
  .rail-stake-input { height: 38px; }
  .rail-presets button { height: 23px; }
  .arena-ticket { min-height: 76px; }
  .ticket-empty p { display: none; }
  .ticket-content { grid-template-columns: 1fr; gap: 5px; }
  .ticket-details { grid-template-columns: 1fr 1fr; gap: 5px; }
  .ticket-details > div:first-child { display: none; }
  .place-prediction { min-height: 76px; }
  .v2-overlay { place-items: end stretch; }
  .v2-sheet, .v2-activity { width: 100%; height: auto; min-height: min(650px, 100dvh); max-height: calc(100dvh - 10px); margin-top: 10px; padding: 27px 17px calc(17px + env(safe-area-inset-bottom)); border: 1px solid var(--dark-line); border-bottom: 0; border-radius: 20px 20px 0 0; box-shadow: 0 -20px 50px rgba(0, 0, 0, .18); }
  .v2-sheet-close { top: 14px; right: 14px; }
  .v2-wallet-head h2, .v2-activity-head h2 { font-size: 32px; }
  .v2-network-state, .v2-activity-status { display: none; }
  .v2-sheet-balance { margin-top: 23px; }
  .v2-sheet-balance strong { font-size: 43px; }
  .v2-activity-head { padding: 0 42px 19px 0; }
  .v2-activity-summary { grid-template-columns: 1fr 1fr; }
  .v2-activity-summary > div { padding: 12px 9px; border-bottom: 1px solid var(--dark-line); }
  .v2-activity-summary > div:nth-child(2), .v2-activity-summary > div:last-child { border-right: 0; }
  .v2-activity-summary > div:nth-child(3), .v2-activity-summary > div:last-child { border-bottom: 0; }
  .v2-activity-summary > div:nth-child(3) { padding-left: 0; }
  .v2-activity-filters button { flex: 1; justify-content: center; padding: 0 6px; }
  .v2-activity-row { grid-template-columns: minmax(0, 1fr) auto; gap: 11px; padding: 13px 7px; }
  .v2-activity-terms { display: none !important; }
  .v2-activity-outcome { min-width: 105px; }
  .v2-activity-empty { min-height: 250px; padding: 30px 16px; }
}

@media (max-width: 360px) {
  .terminal-social { display: none; }
  .v2-instrument-name { display: none; }
  .arena-bank-button { min-width: 140px; }
  .arena-bank-button strong { font-size: 12px; }
  .light-arena-tray { left: 6px; right: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
