/* CORE cabinet in the exchange demo's design language (tokens and components from arena-exchange-redesign/src/styles.css). */
@font-face { font-family: Commissioner; src: url('assets/commissioner.woff2') format('woff2'); font-weight: 400 500; font-display: swap; }
@font-face { font-family: Commissioner; src: url('assets/commissioner-semibold.woff2') format('woff2'); font-weight: 600 800; font-display: swap; }
@font-face { font-family: Halvar; src: url('assets/halvar-bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
:root {
  --accent-fill: #4d5cf0;
  --edge: linear-gradient(180deg, rgba(170, 182, 255, .28), rgba(170, 182, 255, .07) 42%, rgba(170, 182, 255, .05));
  --bg: #060914; --card: #0b1023; --card-2: #10172e; --card-3: #18213f;
  --line: rgba(148, 163, 226, .11); --line-2: rgba(148, 163, 226, .2);
  --text: #eef1ff; --text-2: #a7b0d0; --text-3: #7c86aa;
  --accent: #5b6bff; --accent-2: #8d98ff;
  --green: #2fd39a; --green-ink: #7cefc5; --red-ink: #ff9fb1; --amber: #f6b74b; --reserve: #4cc2f2;
  --radius: 20px;
  --display: Halvar, 'Arial Black', sans-serif;
  font-family: Commissioner, system-ui, sans-serif; font-size: 15px; line-height: 1.5;
  color: var(--text); background: var(--bg); color-scheme: dark; font-synthesis: none; -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 80px; }
body { margin: 0; min-width: 0; min-height: 100vh; display: flex; flex-direction: column; }
/* The page's two glows stand still while it scrolls. As a fixed background of the body they were repainted on every
   frame of a scroll (and a phone's browser may not hold such a background still at all); as a fixed layer under the
   content they are painted once. The picture is the same: the glows are placed against the screen, as before, over
   the page colour that the root element paints. */
body::before { content: ''; position: fixed; z-index: -1; inset: 0; pointer-events: none; background: radial-gradient(900px 520px at 78% -8%, rgba(91, 107, 255, .14), transparent 65%), radial-gradient(700px 500px at -10% 30%, rgba(91, 107, 255, .05), transparent 60%); }
main { flex: 1; outline: 0; }
h1, h2, h3, p, dl, dd, ol, ul, fieldset { margin: 0; }
h1, h2, h3 { font-weight: 600; line-height: 1.2; }
h2 { font-size: 19px; letter-spacing: -.2px; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { cursor: not-allowed; }
b, strong, dd, td, .num { font-variant-numeric: tabular-nums; }
svg, img { flex-shrink: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
h1[tabindex="-1"]:focus, main[tabindex="-1"]:focus { outline: none; }
::selection { background: #3d4fd6; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--accent-fill); color: #fff; }
.skip:focus { top: 12px; }
.eyebrow { display: block; font-size: var(--f115, 11.5px); font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); }
.fine { color: var(--text-3); font-size: var(--f125, 12.5px); line-height: 1.55; }
.lead { color: var(--text-2); font-size: var(--f145, 14.5px); }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-2); font-size: var(--f135, 13.5px); font-weight: 600; white-space: nowrap; }
.link:hover, .link-button:hover { color: #b3baff; }
.link-button { color: var(--accent-2); font-size: var(--f135, 13.5px); font-weight: 600; padding: 4px 0; }
.link-button.quiet { color: var(--text-2); font-weight: 500; }
.link-button.quiet:hover { color: var(--text); }

/* ---------- Buttons and controls (exchange) ---------- */
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 22px; border-radius: 14px; background: linear-gradient(135deg, #4b5cff, #6a5ff0); box-shadow: 0 10px 28px -12px rgba(91, 107, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .18); color: #fff; font-weight: 600; font-size: var(--f155, 15.5px); white-space: nowrap; transition: filter .15s, transform .15s; }
.btn-primary:hover:not(:disabled) { filter: brightness(1.1); }
.btn-primary:active:not(:disabled) { transform: translateY(1px); }
.btn-primary:disabled { background: #232b4d; box-shadow: none; color: var(--text-2); }
.btn-primary[aria-busy=true] { color: transparent; position: relative; background: linear-gradient(135deg, #4b5cff, #6a5ff0); }
.btn-primary[aria-busy=true]::after { content: ''; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .8s linear infinite; }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); font-weight: 600; font-size: 14px; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn-ghost:hover:not(:disabled) { background: rgba(255, 255, 255, .07); border-color: rgba(148, 163, 226, .35); }
.btn-ghost:disabled { opacity: .5; }
.btn-ghost.sm { min-height: 36px; padding: 6px 14px; font-size: var(--f135, 13.5px); border-radius: 10px; }
.btn-ghost.danger { color: var(--red-ink); border-color: rgba(255, 102, 128, .35); }
.wide { width: 100%; }
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 13px; background: var(--bg); border: 1px solid var(--line); }
.segmented button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 12px; border-radius: 9px; color: var(--text-2); font-weight: 600; font-size: 14px; white-space: nowrap; transition: background .15s, color .15s; }
.segmented button:hover:not(:disabled) { color: var(--text); }
.segmented button[aria-pressed=true] { background: var(--card-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2), 0 2px 8px -2px rgba(0, 0, 0, .5); }
.segmented button:disabled { opacity: .5; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; color: #b8c0ff; background: rgba(91, 107, 255, .16); font-size: var(--f125, 12.5px); font-weight: 600; letter-spacing: 0; white-space: nowrap; vertical-align: middle; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { color: var(--green-ink); background: rgba(34, 201, 139, .12); }
.pill.warn { color: #f8cf83; background: rgba(246, 183, 75, .12); }
.pill.off { color: var(--text-3); background: rgba(148, 163, 226, .08); }
/* The ring that spreads from a live dot: a disc under the dot that grows and fades (the graphics card's work alone;
   as the dot's shadow, grown on every frame, it kept the page repainting). It stands where the dot stands: an
   out-of-flow box in a flex row takes the place of the row's first item. */
.pill.live { position: relative; isolation: isolate; }
.pill.live::after { content: ''; position: absolute; z-index: -1; width: 6px; height: 6px; border-radius: 50%; background: rgb(124, 239, 197); opacity: 0; animation: pill-ring 1.6s infinite; }
@keyframes pill-ring { 0% { opacity: .6; transform: scale(1); } 100% { opacity: 0; transform: scale(3.3333); } }
.ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: rgba(91, 107, 255, .14); color: var(--accent-2); border: 1px solid rgba(141, 152, 255, .18); }
.ico.teal { background: rgba(76, 194, 242, .12); color: var(--reserve); border-color: rgba(76, 194, 242, .2); }
.ico.green { background: rgba(34, 201, 139, .12); color: var(--green-ink); border-color: rgba(34, 201, 139, .2); }
.ico.amber { background: rgba(246, 183, 75, .12); color: #f8cf83; border-color: rgba(246, 183, 75, .2); }
.ico.coin { background: url('assets/core-participation-mobile.webp') center / 132% no-repeat, rgba(91, 107, 255, .12); }
.chip.quiet { background: rgba(76, 194, 242, .1); color: #a9e2fb; }
.quote span small { display: block; margin-top: 2px; color: var(--text-3); font-size: var(--f125, 12.5px); }
.perks li::before { display: none; }
.perks i { background: rgba(91, 107, 255, .14); border-color: rgba(141, 152, 255, .22); color: var(--accent-2); }
.coin-dot { display: inline-block; width: 18px; height: 18px; border-radius: 50%; background: url('assets/core-account-coin.webp?v=20261103-studio') center / 122% no-repeat; box-shadow: 0 0 0 1px rgba(141, 152, 255, .35), 0 0 10px rgba(91, 107, 255, .6); }

/* Fields */
.field { display: grid; gap: 8px; margin-top: 18px; }
.field > span, .field label, .field-top label, .amount-field > label, legend, .addr-label { color: var(--text-2); font-size: var(--f135, 13.5px); font-weight: 500; }
.field-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field small, .field-help { color: var(--text-3); font-size: var(--f125, 12.5px); line-height: 1.5; }
input[type=email], input[type=text], input[type=password] { width: 100%; height: 52px; padding: 0 16px; border-radius: 12px; background: rgba(6, 9, 20, .8); border: 1px solid var(--line-2); color: var(--text); font-size: 16px; outline: 0; transition: border-color .15s, box-shadow .15s; }
input[type=email]:hover, input[type=text]:hover, input[type=password]:hover { border-color: rgba(148, 163, 226, .32); }
input[type=email]:focus, input[type=text]:focus, input[type=password]:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(91, 107, 255, .18); }
input[readonly] { color: var(--text-2); }
input::placeholder { color: var(--text-3); }
input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #0a0f20 inset; -webkit-text-fill-color: var(--text); caret-color: var(--text); }
.code-input { text-align: center; font-variant-numeric: tabular-nums; letter-spacing: .5em; text-indent: .5em; font-size: 22px !important; font-weight: 600; }
.code-input::placeholder { color: rgba(124, 134, 170, .55); }
.password-input { position: relative; }
.password-input input { padding-right: 54px; }
.password-toggle { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 44px; display: grid; place-items: center; border-radius: 9px; color: var(--text-3); }
.password-toggle:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.password-toggle .eye-slash { display: none; }
.password-toggle[aria-pressed=true] .eye-slash { display: block; }
.password-strength { display: grid; gap: 4px; margin-top: 2px; }
.password-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 4px; }
.password-bars span { height: 4px; border-radius: 4px; background: rgba(148, 163, 226, .14); transition: background .2s; }
.password-strength[data-score="1"] .password-bars span:nth-child(-n+1) { background: #f0566e; }
.password-strength[data-score="2"] .password-bars span:nth-child(-n+2) { background: var(--amber); }
.password-strength[data-score="3"] .password-bars span:nth-child(-n+3) { background: #8bd96a; }
.password-strength[data-score="4"] .password-bars span { background: var(--green); }
.password-strength-label { color: var(--text-2); font-size: var(--f125, 12.5px); font-weight: 600; }
.password-strength-label:empty { display: none; }
.password-strength p:last-child { color: var(--text-3); font-size: var(--f125, 12.5px); }
.form-message { margin-top: 14px; padding: 11px 14px; border-radius: 12px; background: rgba(240, 86, 110, .1); border: 1px solid rgba(240, 86, 110, .25); color: var(--red-ink); font-size: var(--f135, 13.5px); }
.form-info { margin-top: 14px; padding: 11px 14px; border-radius: 12px; background: rgba(91, 107, 255, .1); border: 1px solid rgba(141, 152, 255, .22); color: #c3c9ff; font-size: var(--f135, 13.5px); }
.accept-terms { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; color: var(--text-2); font-size: 14px; cursor: pointer; }
.accept-terms input { appearance: none; flex-shrink: 0; width: 22px; height: 22px; margin: 0; border-radius: 7px; border: 1.5px solid var(--line-2); background: rgba(6, 9, 20, .8); display: grid; place-items: center; cursor: pointer; transition: background .15s, border-color .15s; }
.accept-terms input::after { content: ''; width: 11px; height: 6px; margin-top: -3px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg); opacity: 0; }
.accept-terms input:checked { background: var(--accent-fill); border-color: var(--accent-fill); }
.accept-terms input:checked::after { opacity: 1; }
.accept-terms a { color: var(--accent-2); font-weight: 600; }
.notice { max-width: 1360px; margin: 16px auto 0; padding: 12px 16px; border-radius: 12px; background: rgba(91, 107, 255, .1); border: 1px solid rgba(141, 152, 255, .22); color: #c3c9ff; font-size: 14px; width: calc(100% - 56px); }

/* ---------- Top bar (exchange) ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(6, 9, 20, .78); backdrop-filter: blur(16px) saturate(1.3); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 1360px; margin: 0 auto; height: 64px; padding: 0 28px; display: flex; align-items: center; gap: 40px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 17px var(--display); letter-spacing: .6px; white-space: nowrap; }
.views-desk { display: flex; align-self: stretch; gap: 6px; }
.views a { display: flex; align-items: center; padding: 0 14px; color: var(--text-2); font-weight: 500; position: relative; white-space: nowrap; transition: color .15s; }
.views a:hover { color: var(--text); }
.views a[aria-current=page] { color: var(--text); }
.views a[aria-current=page]::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.views-phone { display: none; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; min-height: 48px; }
#account-language { flex: 0 0 auto; }
#account-language .lang-switch__button:disabled { opacity: .5; cursor: default; }
#guest-link { white-space: nowrap; }
.quiet-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 14px; font-weight: 500; }
.quiet-link:hover { color: var(--text); }
.wallet { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line-2); font-weight: 600; white-space: nowrap; transition: border-color .15s; }
.wallet:hover { border-color: var(--accent); }
.wallet small { color: var(--text-2); font-size: var(--f125, 12.5px); font-weight: 600; }
#wallet-core { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.me-wrap { position: relative; }
.me { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px 0 4px; border-radius: 12px; color: var(--text-2); font-size: var(--f135, 13.5px); transition: background .15s, color .15s; }
.me:hover, .me[aria-expanded=true] { background: rgba(255, 255, 255, .05); color: var(--text); }
.me i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, #4b5cff, #6a5ff0); color: #fff; font-style: normal; font-weight: 600; text-transform: uppercase; }
.me span { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: 260px; padding: 8px; border-radius: 16px; border: 1px solid transparent; background: linear-gradient(var(--card-2), var(--card-2)) padding-box, var(--edge) border-box; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .9); }
.me-panel p { display: grid; gap: 2px; padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.me-panel p small { color: var(--text-3); font-size: 12px; }
.me-panel p b { overflow: hidden; text-overflow: ellipsis; font-size: 14px; font-weight: 600; }
.me-panel a, .me-panel button { display: flex; width: 100%; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 10px; color: var(--text-2); font-size: 14px; font-weight: 500; text-align: left; }
.me-panel a:hover, .me-panel button:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.me-panel button { color: var(--red-ink); }

/* ---------- Page ---------- */
.shell { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 28px 40px; }
.mk-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding: 36px 0 24px; }
.mk-head h1 { padding-bottom: 2px; font: 600 40px/1.12 Commissioner, sans-serif; letter-spacing: -1.2px; background: linear-gradient(180deg, #fff 35%, #aeb7e8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mk-head p { margin-top: 8px; color: var(--text-2); font-size: 15px; }
.view { animation: rise .35s cubic-bezier(.2, .7, .2, 1) backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.card { border: 1px solid transparent; border-radius: var(--radius); background: var(--glow, linear-gradient(rgba(255, 255, 255, .025), rgba(255, 255, 255, 0) 160px)) padding-box, linear-gradient(var(--card), var(--card)) padding-box, var(--edge) border-box; box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .85); min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px 14px; }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; width: calc(100% - 56px); max-width: 1304px; margin: 12px auto 0; padding: 20px 0 28px; border-top: 1px solid var(--line); color: var(--text-3); font-size: var(--f125, 12.5px); }
/* While the cabinet loads, the footer is left out: the spinner's height is a guess, and the footer used to jump from
   there to its place under the real content (into view under a short history, out of view under the overview). */
body:has(#boot:not([hidden])) .foot { display: none; }
/* The signed-in views fill at least the first screen, so the footer always starts below it: their content settles after
   the data arrives, and the footer must not slide into view or out of it while it does. */
#cabinet { min-height: calc(100svh - 65px); }
@media (max-width: 720px) { #cabinet { min-height: calc(100svh - 57px); } }
.foot a { color: var(--text-2); }
.foot a:hover { color: var(--text); }
body.signed-out .foot { margin-top: 0; }

.toast { position: fixed; z-index: 60; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: 14px; background: #18213f; border: 1px solid var(--line-2); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); font-size: 14px; font-weight: 500; animation: toast-in .25s ease-out; }
.toast svg { color: var(--green); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }
.boot { display: grid; place-items: center; min-height: calc(100vh - 160px); }
.boot .spin { width: 28px; height: 28px; border-width: 3px; }

/* ---------- Sign-in ---------- */
.auth { position: relative; min-height: calc(100vh - 65px - 64px); display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.auth::before { content: ''; position: absolute; inset: 0; z-index: -2; background: url('assets/arena-spotlight-background.webp') 70% 40% / cover no-repeat; opacity: .9; }
.auth::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 9, 20, .97) 0%, rgba(6, 9, 20, .85) 34%, rgba(6, 9, 20, .35) 62%, rgba(6, 9, 20, .55) 100%), linear-gradient(180deg, rgba(6, 9, 20, .55), rgba(6, 9, 20, 0) 30%, rgba(6, 9, 20, .2) 60%, var(--bg) 100%); }
.auth-in { width: 100%; max-width: 1360px; margin: 0 auto; padding: 48px 28px 56px; display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 64px; align-items: center; }
.auth-copy { position: relative; min-height: 500px; display: flex; flex-direction: column; justify-content: center; }
.auth-copy h1 { margin-top: 14px; font: 600 clamp(40px, 3.7vw, 54px)/1.08 Commissioner, sans-serif; letter-spacing: -1.6px; background: linear-gradient(180deg, #fff 30%, #aeb7e8); -webkit-background-clip: text; background-clip: text; color: transparent; max-width: 760px; }
.auth-copy h1 .line { display: block; text-wrap: balance; }
.auth-copy h1 .accent { background: linear-gradient(90deg, #8d98ff, #b59bff); -webkit-background-clip: text; background-clip: text; }
.auth-copy > p { margin-top: 16px; max-width: 470px; color: var(--text-2); font-size: 17px; line-height: 1.55; }
.facts { display: grid; gap: 14px; margin-top: 34px; padding: 0; list-style: none; max-width: 470px; }
.facts li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: center; }
.facts b { display: block; font-weight: 600; }
.facts span { color: var(--text-2); font-size: 14px; }
.auth-coin { position: absolute; right: -96px; bottom: -8px; width: 330px; aspect-ratio: 1; background: url('assets/core-participation.webp') center / contain no-repeat; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .7)) drop-shadow(0 0 40px rgba(91, 107, 255, .35)); transform: rotate(-8deg); pointer-events: none; }
.auth-card { --glow: radial-gradient(420px 220px at 50% 0%, rgba(91, 107, 255, .16), transparent 70%); padding: 26px 28px 24px; backdrop-filter: blur(6px); }
.auth-card h2 { margin-top: 26px; font-size: 26px; letter-spacing: -.5px; text-wrap: balance; }
.auth-card .sub { margin-top: 6px; color: var(--text-2); font-size: var(--f145, 14.5px); }
.auth-card .btn-primary { margin-top: 24px; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; }
.auth-links:not(:has(> :not([hidden]))) { display: none; }
.note { display: flex; gap: 10px; align-items: flex-start; color: var(--text-3); font-size: 13px; line-height: 1.5; }
.note svg { color: var(--accent-2); margin-top: 2px; }
.auth-foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- Overview ---------- */
.summary { --glow: radial-gradient(720px 320px at 0% 0%, rgba(91, 107, 255, .2), transparent 65%), radial-gradient(520px 280px at 100% 100%, rgba(76, 194, 242, .07), transparent 70%); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-areas: 'total round' 'facts facts'; border-radius: 22px; overflow: hidden; }
.total { grid-area: total; position: relative; display: grid; align-content: center; justify-items: start; gap: 6px; padding: 30px 32px; min-height: 236px; }
.total > span { color: var(--text-2); font-size: var(--f135, 13.5px); }
.big { position: relative; z-index: 1; max-width: 100%; overflow-wrap: anywhere; font-size: 60px; font-weight: 600; letter-spacing: -2px; line-height: 1.05; }
.big .balance-fraction { color: var(--text-2); font-size: 32px; letter-spacing: -.6px; }
.big em { font-style: normal; margin-left: 12px; color: var(--accent-2); font-size: 22px; letter-spacing: 0; }
.total p { max-width: calc(100% - 190px); position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; color: var(--text-3); font-size: var(--f135, 13.5px); }
.chip { padding: 4px 10px; border-radius: 8px; background: rgba(91, 107, 255, .14); color: #c3c9ff; font-weight: 600; }
.chip b { font-weight: 600; }
.phone-action { display: none; }
.coin-big { position: absolute; right: 26px; top: 50%; width: 168px; aspect-ratio: 1; transform: translateY(-50%); background: url('assets/core-account-coin.webp?v=20261103-studio') center / contain no-repeat; filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .5)) drop-shadow(0 0 24px rgba(91, 137, 255, .25)); pointer-events: none; }
.round { grid-area: round; display: grid; grid-template-columns: 140px minmax(0, 1fr); align-items: center; gap: 30px; padding: 28px 32px; border-left: 1px solid var(--line); }
.ring { position: relative; width: 140px; height: 140px; }
.ring svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 12; }
.ring .track { stroke: rgba(148, 163, 226, .08); }
.ring .sold { stroke: url(#ring-grad); stroke-linecap: round; transition: stroke-dasharray .9s cubic-bezier(.2, .7, .2, 1); }
.ring > span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring b { font-size: 24px; font-weight: 600; }
.ring small { color: var(--text-3); font-size: 12px; }
.round-info h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-height: 26px; font-size: 16px; }  /* room for the status pill, which arrives with the data */
.legend { display: grid; gap: 10px; margin-top: 16px; }
.legend div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.legend dt { color: var(--text-2); }
.legend dd { font-weight: 600; text-align: right; }
.facts-row { grid-area: facts; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.facts-row > div { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: 'ico label act' 'ico value act' 'ico note act'; align-content: center; align-items: center; column-gap: 14px; padding: 18px 28px; min-height: 92px; }
.facts-row > div + div { border-left: 1px solid var(--line); }
.facts-row .ico { grid-area: ico; }
.fact-label { grid-area: label; color: var(--text-3); font-size: 13px; }
.fact-value { grid-area: value; font-size: 17px; font-weight: 600; }
.fact-value small { color: var(--text-3); font-size: 13px; font-weight: 500; }
.fact-value .balance-fraction { color: var(--text-2); font-size: 14px; font-weight: 500; }
.fact-note { grid-area: note; color: var(--text-3); font-size: var(--f125, 12.5px); }
.fact-act { grid-area: act; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; margin-top: 20px; align-items: stretch; }
.table { width: 100%; border-collapse: collapse; }
.table th { padding: 10px 22px; color: var(--text-3); font-size: var(--f125, 12.5px); font-weight: 500; text-align: left; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .015); white-space: nowrap; }
.table td { padding: 15px 22px; border-bottom: 1px solid var(--line); font-size: var(--f145, 14.5px); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: rgba(255, 255, 255, .02); }
.table tbody tr.clickable { position: relative; cursor: pointer; }
.table tbody tr.clickable td:first-child { position: relative; }
.table tbody tr.clickable td:first-child::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; border-radius: 0 2px 2px 0; background: var(--accent); opacity: 0; transition: opacity .2s; }
.table tbody tr.clickable:hover td:first-child::before { opacity: 1; }
.table .r { text-align: right; }
.table td small { display: block; color: var(--text-3); font-size: var(--f125, 12.5px); }
.table td b { font-weight: 600; }
.route { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.tokpair { position: relative; display: inline-flex; width: 28px; height: 28px; flex-shrink: 0; }
.tokpair img { width: 28px; height: 28px; }
.tokpair .badge { position: absolute; right: -3px; bottom: -3px; width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 2px var(--card); background: var(--card); }
.row-open { min-height: 32px; padding: 0 10px; border-radius: 9px; color: var(--accent-2); font-size: 13px; font-weight: 600; white-space: nowrap; }
.row-open:hover { background: rgba(91, 107, 255, .12); }
.empty { display: grid; justify-items: center; gap: 6px; padding: 34px 22px 38px; text-align: center; color: var(--text-3); font-size: var(--f135, 13.5px); border-top: 1px solid var(--line); }
.empty b { color: var(--text); font-size: 15px; font-weight: 600; }
.empty .btn-ghost { margin-top: 10px; }
.empty-ico { width: 52px; height: 52px; margin-bottom: 6px; border-radius: 50%; background: url('assets/core-participation-mobile.webp') center / 140% no-repeat; box-shadow: 0 0 0 1px rgba(141, 152, 255, .25), 0 0 28px rgba(91, 107, 255, .35); opacity: .9; }
.steps { margin: 0; padding: 4px 22px 22px; list-style: none; }
.steps li { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; padding: 10px 0; }
.steps li::before { content: ''; position: absolute; left: 14px; top: 40px; bottom: -10px; width: 2px; background: var(--line-2); }
.steps li:last-child::before { display: none; }
.steps i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--card-3); border: 1px solid var(--line-2); color: var(--text-2); font-style: normal; font-size: 13px; font-weight: 600; }
.steps b { display: block; font-weight: 600; font-size: var(--f145, 14.5px); }
.steps span { color: var(--text-2); font-size: var(--f135, 13.5px); }

/* ---------- Buy ---------- */
.pay-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; }
.buy-card { --glow: radial-gradient(600px 300px at 30% 0%, rgba(91, 107, 255, .14), transparent 70%); }
.buy-form { padding: 26px 28px 26px; }
fieldset { border: 0; padding: 0; margin-top: 22px; min-width: 0; }
legend { padding: 0; margin-bottom: 8px; }
.input-box { display: flex; align-items: center; gap: 8px; height: 62px; margin-top: 8px; padding: 0 16px; border-radius: 15px; background: var(--bg); border: 1px solid var(--line-2); transition: border-color .15s, box-shadow .15s; }
.input-box:hover { border-color: rgba(148, 163, 226, .32); }
.input-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(91, 107, 255, .18); }
.input-box input { flex: 1; width: 100%; min-width: 0; height: 100% !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; outline: 0; font: 700 28px var(--display) !important; letter-spacing: -.3px; font-variant-numeric: tabular-nums; }
.prefix { font: 700 26px var(--display); color: var(--text-3); }
.unit { color: var(--text-3); font-size: 13px; font-weight: 600; }
.amount-field .field-help { margin-top: 8px; }
.presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.presets button { height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--card-2); color: var(--text-2); font-size: var(--f135, 13.5px); font-weight: 600; transition: border-color .15s, color .15s, background .15s; }
.presets button:hover { color: var(--text); border-color: var(--line-2); }
.presets button[aria-pressed=true] { color: var(--text); border-color: var(--accent); background: rgba(91, 107, 255, .14); }
.choice-row img { width: 22px; height: 22px; }
.networks img { width: 20px; height: 20px; }
.quote { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding: 16px 18px; border-radius: 16px; background: radial-gradient(260px 120px at 0% 0%, rgba(91, 107, 255, .2), transparent 70%), var(--card-2); border: 1px solid var(--line-2); }
.quote span:first-child { flex: 1; color: var(--text-2); font-size: 14px; }
.quote strong { font-size: 24px; letter-spacing: -.4px; }
.quote .coin-dot { width: 36px; height: 36px; }
.buy-form .btn-primary { margin-top: 20px; }
.buy-form .fine { margin-top: 12px; }

/* Invoice */
.track-caption { display: none; }
.track4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 22px 26px 6px; list-style: none; }
.track4 li { display: grid; gap: 10px; }
.track4 i { height: 4px; border-radius: 4px; background: rgba(148, 163, 226, .12); }
.track4 span { display: flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 13px; font-weight: 500; }
.track4 .done i { background: var(--green); }
.track4 .done span { color: var(--green-ink); }
.track4 .done span::before { content: ''; width: 10px; height: 5px; margin-top: -3px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.track4 .now i { background: linear-gradient(90deg, rgba(91, 107, 255, .3), var(--accent), #b3bbff, var(--accent), rgba(91, 107, 255, .3)); background-size: 200% 100%; box-shadow: 0 0 10px rgba(91, 107, 255, .4); animation: payment-await 2.4s linear infinite; }
@keyframes payment-await { from { background-position: 200% 0; } to { background-position: 0 0; } }
.track4 .now span { color: var(--text); font-weight: 600; }
.track4 .warn i { background: var(--amber); }
.track4 .warn span { color: #f8cf83; font-weight: 600; }
.payment-heading { display: grid; justify-items: start; gap: 8px; padding: 18px 26px 0; }
.payment-heading h2 { font-size: 24px; letter-spacing: -.4px; }
.payment-heading p { color: var(--text-2); font-size: var(--f145, 14.5px); max-width: 640px; }
.inv-body { display: grid; grid-template-columns: minmax(0, 1fr) 184px; gap: 24px; padding: 22px 26px 24px; }
.inv-main { min-width: 0; }
.inv-amount > span { color: var(--text-2); font-size: var(--f135, 13.5px); }
.inv-amount > div { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 4px; }
.inv-amount strong { font-size: 44px; font-weight: 600; letter-spacing: -1.2px; line-height: 1.1; }
.inv-amount strong small { color: var(--text-2); font-size: 26px; letter-spacing: 0; margin-left: 8px; }
.copy { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 11px; background: rgba(91, 107, 255, .14); border: 1px solid rgba(141, 152, 255, .25); color: #c3c9ff; font-size: var(--f135, 13.5px); font-weight: 600; white-space: nowrap; transition: background .15s; }
.copy:hover { background: rgba(91, 107, 255, .24); }
.partial { display: grid; gap: 6px; max-width: 340px; margin-top: 12px; color: #f8cf83; font-size: var(--f135, 13.5px); font-weight: 600; }
.partial .bar i { background: linear-gradient(90deg, #f6b74b, #ffd88c); box-shadow: 0 0 12px rgba(246, 183, 75, .55); }
.net { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 7px 14px 7px 8px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line-2); font-weight: 600; font-size: 14px; }
.addr { margin-top: 22px; }
.addr-box { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 5px 5px 5px 14px; border-radius: 12px; background: rgba(6, 9, 20, .85); border: 1px solid var(--line-2); }
.addr-box code { display: flex; flex: 1; min-width: 0; font: 500 14px/1.5 ui-monospace, 'Cascadia Mono', Consolas, monospace; color: #dfe3ff; white-space: nowrap; user-select: all; }
.addr-box code .edge { flex-shrink: 0; }
.addr-box code .middle { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.addr-box .copy { flex: 0 0 44px; width: 44px; min-height: 44px; padding: 0; border-color: transparent; background: transparent; }
.addr-box .copy:hover, .addr-box .copy[data-copied=true] { background: rgba(91, 107, 255, .16); color: var(--text); }
.warn-line { display: flex; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: rgba(246, 183, 75, .08); border: 1px solid rgba(246, 183, 75, .2); color: #f3d9a8; font-size: var(--f135, 13.5px); }
.warn-line svg { color: var(--amber); margin-top: 1px; }
.qr { display: grid; justify-items: center; gap: 14px; align-content: start; }
.qr-box { width: 184px; padding: 8px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); overflow: hidden; }
.qr-box img { display: block; width: 100%; height: auto; }
.timer { width: 100%; }
.timer > div { display: flex; justify-content: space-between; color: var(--text-3); font-size: 13px; }
.timer b { flex: none; color: var(--text); font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* The countdown changes every second; in equal-width digits it never widens and rewraps the label beside it (in German
   the label went to two lines and back, moving everything under it). */
.timer > i { display: block; height: 4px; margin-top: 8px; border-radius: 4px; background: rgba(148, 163, 226, .12); overflow: hidden; }
.timer > i > i { display: block; height: 100%; width: 100%; border-radius: 4px; background: var(--accent); transform-origin: left; transition: transform 1s linear; }
.timer[data-low=true] > i > i { background: var(--amber); }
.timer[data-low=true] b { color: #f8cf83; }
.timer small { display: block; margin-top: 8px; color: var(--text-3); font-size: var(--f125, 12.5px); }
.inv-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 26px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 13px; }
.inv-status { display: flex; align-items: center; gap: 8px; }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(141, 152, 255, .25); border-top-color: var(--accent-2); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.invoice[data-state=closed] .inv-status { display: none; }
.invoice[data-state=closed] .inv-foot:not(:has(.payment-actions:not([hidden]))) { display: none; }
.invoice[data-state=closed] .payment-heading { padding-bottom: 20px; }
.payment-heading:not(:has(> :not([hidden]))) { display: none; }
@media (min-width: 1101px) { .invoice[data-plain=true] .payment-heading { display: none; } }
.invoice[data-state=open] .payment-heading { padding-top: 14px; }
.payment-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
/* Desktop footer: the explanation wraps, the two actions stay on one line at the right. */
.inv-foot > .payment-actions { flex: 0 0 auto; flex-wrap: nowrap; justify-content: flex-end; }
.inv-foot > .payment-actions button { white-space: nowrap; }
.inv-foot > :not(.payment-actions) { flex: 1 1 auto; min-width: 0; }
.payment-confirm { margin: 0 26px 18px; padding: 16px 18px; border-radius: 14px; background: rgba(246, 183, 75, .07); border: 1px solid rgba(246, 183, 75, .22); color: #f3d9a8; font-size: 14px; }
.payment-confirm .payment-actions { margin-top: 12px; }
.payment-recovery { margin: 0 26px 18px; padding: 14px 18px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line); }
.payment-recovery summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; color: var(--text); font-weight: 600; font-size: var(--f145, 14.5px); }
.payment-recovery summary::-webkit-details-marker { display: none; }
.payment-recovery summary::after { content: ''; width: 8px; height: 8px; margin-right: 4px; border: solid var(--text-3); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; }
.payment-recovery[open] summary::after { transform: rotate(-135deg); }
.payment-recovery[open] summary { margin-bottom: 10px; }
.payment-recovery label { display: block; margin-top: 12px; color: var(--text-2); font-size: var(--f135, 13.5px); }
.recover-row { display: flex; gap: 10px; margin-top: 8px; }
.recover-row input { font-family: ui-monospace, Consolas, monospace; font-size: 14px; }
.invoice > .form-message, .invoice > .form-info { margin: 0 26px 18px; }
#payment-feedback[data-tone=error] { background: rgba(240, 86, 110, .1); border-color: rgba(240, 86, 110, .25); color: var(--red-ink); }
#payment-feedback[data-tone=warn] { background: rgba(246, 183, 75, .08); border-color: rgba(246, 183, 75, .22); color: #f3d9a8; }
.copy[data-copied=true] { background: rgba(34, 201, 139, .14); border-color: rgba(34, 201, 139, .35); color: var(--green-ink); }
.inv-close { padding: 0 26px 22px; }
.inv-close:not(:has(> :not([hidden]))) { display: none; }

/* Side card */
.side-card { --glow: radial-gradient(360px 200px at 100% 0%, rgba(91, 107, 255, .14), transparent 70%); position: sticky; top: 84px; }
.side-price { display: flex; align-items: baseline; justify-content: space-between; padding: 0 22px 6px; color: var(--text-2); font-size: 14px; }
.side-price strong { color: var(--text); font-size: 34px; letter-spacing: -.8px; }
.side-price small { color: var(--text-2); font-size: 15px; letter-spacing: 0; }
.side-progress { padding: 10px 22px 6px; }
.bar { height: 8px; border-radius: 8px; background: rgba(148, 163, 226, .1); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 8px; background: linear-gradient(90deg, #4b5cff, #8d98ff); box-shadow: 0 0 12px rgba(91, 107, 255, .7); transition: width .9s cubic-bezier(.2, .7, .2, 1); }
.side-progress p { margin-top: 8px; font-size: 14px; }
.side-progress p span { color: var(--text-3); }
.side-list { padding: 6px 22px 0; }
.side-list div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--f145, 14.5px); }
.side-list div:last-child { border-bottom: 0; }
.side-list dt { color: var(--text-2); }
.side-list dd { font-weight: 600; text-align: right; }
.side-fine { margin-top: 6px; padding: 12px 22px 16px; border-top: 1px solid var(--line); }
.get { margin: 4px 22px 6px; padding: 18px; border-radius: 16px; background: radial-gradient(240px 120px at 0% 0%, rgba(91, 107, 255, .22), transparent 70%), var(--card-2); border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.get span:first-child { color: var(--text-2); font-size: var(--f135, 13.5px); }
.get strong { display: block; font-size: 30px; letter-spacing: -.6px; }
.get .coin-dot { width: 54px; height: 54px; }

/* ---------- History ---------- */
.history-card .table th:first-child, .history-card .table td:first-child { padding-left: 26px; }
.history-card .table th:last-child, .history-card .table td:last-child { padding-right: 18px; text-align: right; width: 1%; }
.pages { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 14px 22px; border-top: 1px solid var(--line); color: var(--text-3); font-size: var(--f135, 13.5px); }
.pages b { color: var(--text); }

/* ---------- Security ---------- */
.security-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.sec-card .card-head { flex-wrap: wrap; gap: 12px; }
.sec-title { display: flex; align-items: center; gap: 14px; flex: 1 1 220px; min-width: 0; }
.sec-title .ico { flex-shrink: 0; }
.sec-title h2 { min-width: 0; overflow-wrap: anywhere; }
.sec-card .card-head > .pill { flex-shrink: 0; }
.row-link { display: inline-flex; min-height: 32px; align-items: center; padding: 0; text-align: left; font: inherit; }
.row-link:hover { color: var(--accent-2); }
#order-aside .side-fine:has(> [hidden]) { display: none; }
.sec-body { padding: 0 22px 24px; }
.sec-body > .lead { margin-bottom: 4px; }
.sec-body > .btn-primary, .sec-body > .btn-ghost { margin-top: 20px; }
.sec-body .field:first-child { margin-top: 10px; }
#two-factor-password-step .btn-primary { justify-self: start; margin-top: 8px; }
#two-factor-cancel { margin-top: 14px; }
.tf-setup { display: grid; gap: 16px; margin-top: 6px; }
.tf-step { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; }
.tf-step i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(91, 107, 255, .16); color: #c3c9ff; font-style: normal; font-weight: 600; font-size: 13px; }
.tf-step b { display: block; font-weight: 600; }
.tf-step span { color: var(--text-2); font-size: var(--f135, 13.5px); }
.tf-qr { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 18px; align-items: start; }
.tf-qr img { width: 168px; height: 168px; border-radius: 14px; background: #fff; padding: 8px; }
.tf-qr .field { margin-top: 0; }
.two-factor-secret { font-family: ui-monospace, Consolas, monospace !important; font-size: 14px !important; letter-spacing: .04em; }
.tf-setup .btn-primary { justify-self: start; }

/* The side card names the status beside the invoice on wide screens. */
@media (min-width: 1101px) { #payment-state { display: none; } }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .topbar-in { gap: 24px; }
  .me span { display: none; }
  .pay-grid, .grid2 { grid-template-columns: minmax(0, 1fr); }
  .side-card { position: static; }
  .auth-in { grid-template-columns: minmax(0, 1fr) 420px; gap: 36px; }
  .auth-coin { width: 260px; right: -40px; }
  .round { grid-template-columns: 110px minmax(0, 1fr); gap: 20px; padding: 24px; }
  .ring { width: 110px; height: 110px; }
  .coin-big { width: 120px; right: 14px; }
}
/* Laptop widths: the tilted coin must never sit on the pillar texts. */
@media (max-width: 1240px) and (min-width: 1101px) {
  .auth-coin { width: 260px; right: -50px; bottom: 0; }
  .auth-copy .facts { max-width: calc(100% - 200px); }
}
@media (max-width: 1100px) and (min-width: 901px) { .auth-coin { display: none; } }
/* 901-1100px: the desktop menu and the balance pill must fit in one row (no sideways scroll). The page keeps the
   header's 20 px sides, so the logo and the blocks under it start on one line (audit of 14 Nov 2026). */
@media (max-width: 1100px) and (min-width: 901px) { .shell { padding-left: 20px; padding-right: 20px; } .foot { width: calc(100% - 40px); } }
@media (max-width: 1100px) and (min-width: 901px) { .topbar-in { padding: 0 20px; gap: 16px; } .views-desk { gap: 0; } .views-desk a { padding: 0 10px; } .views-desk a[aria-current=page]::after { left: 10px; right: 10px; } }
@media (max-width: 900px) {
  .views-desk { display: none; }
  /* Phones and small tablets: the four sections are a bar at the bottom of the screen, under the thumb, an icon each,
     the same bar as on the exchange (Apple HIG «Tab bars», Material 3 «Navigation bar»). The header is one row that
     leaves with the page, so the screen belongs to the content. */
  .topbar { position: relative; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .views-phone { position: fixed; z-index: 26; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, minmax(min-content, 1fr)); height: calc(56px + env(safe-area-inset-bottom)); padding: 0 max(4px, calc(50% - 300px)) env(safe-area-inset-bottom); border-top: 1px solid var(--line-2); background: rgb(8, 12, 26); }
  .views-phone a { display: grid; justify-items: center; align-content: center; gap: 4px; padding: 0 2px; font-size: 12px; font-weight: 600; line-height: 1; -webkit-tap-highlight-color: transparent; }
  .views-phone svg { width: 24px; height: 24px; fill: currentColor; color: var(--text-3); }
  .views-phone svg.on, .views-phone a[aria-current=page] svg:not(.on) { display: none; }
  .views-phone a[aria-current=page] svg.on { display: block; color: var(--accent-2); }
  .views-phone a[aria-current=page]::after { left: 50%; right: auto; top: -1px; bottom: auto; width: 32px; margin-left: -16px; border-radius: 0 0 2px 2px; }
  body:has(#views-phone:not([hidden])) { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  body:has(#views-phone:not([hidden])) .toast { bottom: calc(72px + env(safe-area-inset-bottom)); }
  html { scroll-padding-top: 16px; }
  /* The account's menu opens under the header's row, edge to edge. */
  .me-wrap { position: static; }
  .me-panel { left: 12px; right: 12px; top: calc(100% + 4px); width: auto; }
  .summary { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'total' 'round' 'facts'; }
  .round { border-left: 0; border-top: 1px solid var(--line); }
  .facts-row { grid-template-columns: minmax(0, 1fr); }
  .facts-row > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .security-grid { grid-template-columns: minmax(0, 1fr); }
  .auth-in { grid-template-columns: minmax(0, 1fr); gap: 24px; max-width: 560px; }
  .auth-copy { min-height: 0; }
  .auth-copy .facts { display: none; }
  .auth-coin { width: 150px; right: -20px; top: 0; bottom: auto; }
  .auth-copy h1 { font-size: 44px; max-width: calc(100% - 140px); }
  .auth-copy > p { max-width: calc(100% - 140px); }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; }
  .table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'core status' 'route sum' 'date open'; gap: 6px 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
  .table tbody tr:last-child { border-bottom: 0; }
  .table td { padding: 0 !important; border: 0; text-align: left !important; width: auto !important; }
  .table td.c-date { grid-area: date; color: var(--text-3); font-size: var(--f125, 12.5px); }
  .table td.c-date small { display: none; }
  .table td.c-core { grid-area: core; font-weight: 600; }
  .table td.c-route { grid-area: route; }
  .table td.c-sum { grid-area: sum; text-align: right !important; align-self: center; }
  .table td.c-status { grid-area: status; text-align: right !important; }
  .table td.c-open { grid-area: open; text-align: right !important; }
  #recent-table td.c-date { display: none; }
  #recent-table tbody tr { grid-template-areas: 'core status' 'route sum'; }
}

/* ---------- Phone ---------- */
@media (max-width: 720px) {
  /* Exchange scale on phones: primary actions 44px, secondary controls 32-36px
     (above the WCAG 2.2 24px target minimum), inputs 44px with 16px text. */
  .btn-primary { min-height: 44px; padding: 10px 16px; border-radius: 13px; font-size: 15px; }
  .btn-ghost { min-height: 40px; padding: 8px 14px; border-radius: 11px; font-size: 14px; }
  .btn-ghost.sm, .copy { min-height: 34px; padding: 0 12px; border-radius: 10px; font-size: 13px; }
  .row-open { min-height: 32px; }
  .segmented { padding: 3px; gap: 3px; border-radius: 12px; }
  .segmented button { min-height: 34px; padding: 6px 10px; border-radius: 9px; font-size: var(--f135, 13.5px); }
  .field { gap: 6px; margin-top: 12px; }
  .field label, .field-top label { font-size: var(--f135, 13.5px); }
  input[type=email], input[type=text], input[type=password] { height: 44px; padding-inline: 12px; border-radius: 11px; }
  .password-input input { padding-right: 54px; }
  .password-toggle { top: 2px; bottom: 2px; right: 2px; }
  .field-top .link-button { position: relative; padding-block: 0; }
  .field-top .link-button::before { content: ''; position: absolute; inset: -11px 0; }
  .auth-links .link-button { min-height: 36px; }
  .form-message, .form-info { margin-top: 10px; padding: 10px 12px; }
  .card-head { padding: 16px 16px 12px; gap: 12px; }
  .card-head h2 { font-size: 16px; }
  .topbar-in { height: 56px; padding: 0 16px; gap: 12px; }
  .brand { font-size: 15px; gap: 8px; }
  .brand img { width: 26px; height: 21px; }
  .wallet { height: 36px; padding: 0 12px; }
  .wallet small { display: none; }
  .me { position: relative; width: 36px; height: 36px; padding: 4px; border-radius: 11px; }
  .me::before, .wallet::before { content: ''; position: absolute; inset: -4px; }
  .me::before { inset: -4px 0 -4px -8px; }
  .me svg { display: none; }
  .shell { padding: 0 16px 28px; }
  .notice { width: calc(100% - 32px); }
  .mk-head { padding: 16px 0 12px; align-items: center; gap: 12px; }
  .mk-head h1 { font-size: 24px; letter-spacing: -.6px; }
  .mk-head p { margin-top: 3px; font-size: var(--f135, 13.5px); }
  .head-action { display: none; }
  .total { min-height: 0; padding: 16px; gap: 4px; }
  .total > span { font-size: 13px; }
  .big { font-size: 34px; letter-spacing: -1px; }
  .big .balance-fraction { font-size: 21px; }
  .big em { font-size: 15px; margin-left: 7px; }
  .coin-big { width: 76px; right: 16px; top: 16px; transform: none; }
  .phone-action { display: inline-flex; width: 100%; margin-top: 10px; }
  .total p { max-width: none; gap: 6px; margin-top: 5px; font-size: var(--f125, 12.5px); }
  .total .chip { padding: 3px 7px; font-size: 12px; }
  #core-invested { flex-basis: 100%; }
  .round { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 14px 16px; }
  .ring { width: 64px; height: 64px; }
  .ring b { font-size: 16px; }
  .ring small { font-size: var(--f10, 10px); }
  .round-info h2 { gap: 6px; min-height: 22px; font-size: 15px; }
  .round-info .pill { height: 22px; padding-inline: 7px; font-size: 11px; }
  .legend { margin-top: 8px; gap: 4px; }
  .legend div { font-size: 13px; gap: 8px; }
  .facts-row > div { grid-template-columns: 34px minmax(0, 1fr) auto; column-gap: 10px; padding: 11px 16px; min-height: 0; }
  .facts-row .ico { width: 34px; height: 34px; border-radius: 10px; }
  .fact-value { font-size: 15px; overflow-wrap: anywhere; }
  .fact-value small { font-size: 12px; }
  .fact-value .balance-fraction { font-size: 12px; }
  .fact-note { font-size: 12px; }
  .facts-row .fact-act { min-height: 32px; padding: 0 12px; border-radius: 9px; font-size: var(--f125, 12.5px); }
  .grid2, .pay-grid { gap: 16px; margin-top: 16px; }
  .pay-grid { margin-top: 0; }
  .tokpair, .tokpair img { width: 24px; height: 24px; }
  .tokpair .badge { width: 12px; height: 12px; }
  .auth { min-height: 0; align-items: start; }
  .auth::before { background-image: url('assets/arena-spotlight-background-mobile.webp'); background-size: auto 420px; background-position: center top; opacity: .6; }
  .auth::after { background: linear-gradient(180deg, rgba(6, 9, 20, .35) 0, rgba(6, 9, 20, .75) 200px, var(--bg) 380px); }
  .auth-in { gap: 14px; padding: 16px 16px 24px; }
  .auth-copy h1 { margin-top: 0; font-size: clamp(24px, 6.4vw, 28px); letter-spacing: -.6px; max-width: none; }
  .auth-copy > .eyebrow, .auth-copy > p, .auth-coin { display: none; }
  .auth-card { padding: 16px; }
  .auth-card h2 { font-size: 20px; margin-top: 16px; }
  .auth-card .sub { margin-top: 4px; font-size: 14px; }
  .auth-card .btn-primary { margin-top: 16px; }
  .auth-links { margin-top: 6px; }
  .auth-foot { margin-top: 14px; padding-top: 12px; font-size: var(--f125, 12.5px); }
  .buy-form { padding: 16px; }
  .input-box { height: 52px; margin-top: 6px; padding-inline: 12px; border-radius: 13px; }
  .input-box input { font-size: 26px; }
  .amount-field .field-help { margin-top: 6px; }
  .presets { margin-top: 8px; }
  .presets button { height: 34px; font-size: 13px; }
  fieldset { margin-top: 16px; }
  legend { margin-bottom: 6px; }
  .quote { margin-top: 16px; padding: 12px; gap: 10px; }
  .quote strong { font-size: 22px; white-space: nowrap; }
  .quote .coin-dot { width: 30px; height: 30px; }
  .accept-terms { margin-top: 14px; font-size: 13px; }
  .buy-form .btn-primary { margin-top: 14px; }
  .buy-form .fine { margin-top: 8px; }
  .networks button { padding: 6px; gap: 6px; font-size: 13px; }
  .networks img { width: 18px; height: 18px; }
  .track4 { padding: 18px 18px 4px; gap: 6px; }
  .track4 span { font-size: var(--f115, 11.5px); }
  .track4 span { display: none; }
  .track-caption:not([hidden]) { display: block; padding: 10px 18px 0; color: var(--text-2); font-size: 13px; font-weight: 600; }
  .track4 { padding: 18px 18px 0; }
  .payment-heading { padding: 14px 18px 0; }
  .payment-heading h2 { font-size: 21px; }
  .inv-body { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 14px 16px 16px; }
  .inv-amount strong { font-size: 32px; }
  .inv-amount > div { gap: 10px; }
  .addr-box code { font-size: 14px; }
  .qr { grid-template-columns: 136px minmax(0, 1fr); gap: 16px; align-items: center; }
  .qr-box { width: 136px; padding: 4px; }
  .timer > div { flex-direction: column; gap: 4px; }
  .timer b { font-size: 20px; }
  .inv-foot { flex-direction: column; align-items: stretch; padding: 14px 18px; }
  .inv-foot .payment-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .inv-foot .payment-actions button { min-height: 40px; }
  .inv-foot #payment-change { color: var(--text); border-color: var(--line-2); background: var(--card-3); }
  .payment-confirm, .payment-recovery, .invoice > .form-message, .invoice > .form-info { margin-left: 18px; margin-right: 18px; }
  .recover-row { flex-direction: column; }
  .inv-close { padding: 0 18px 18px; }
  .inv-close .btn-primary { width: 100%; }
  .side-price strong { font-size: 28px; }
  .side-price, .side-progress, .side-list, .side-fine { padding-inline: 16px; }
  .side-list div { padding-block: 10px; font-size: 14px; }
  .get { margin-inline: 16px; padding: 14px; }
  .get strong { font-size: 26px; }
  .table tbody tr { padding: 11px 16px; gap: 4px 10px; }
  .table .pill { height: 22px; padding-inline: 8px; gap: 5px; font-size: var(--f115, 11.5px); }
  .table td { font-size: var(--f135, 13.5px); }
  .table td.c-date { align-self: center; }
  .route { gap: 7px; white-space: normal; }
  .steps { padding: 0 16px 16px; }
  .steps li { gap: 10px; padding-block: 8px; }
  .empty { padding: 24px 16px; }
  .pages { padding: 10px 16px; gap: 12px; }
  .security-grid { gap: 16px; }
  .sec-title { gap: 10px; flex-basis: 180px; }
  .sec-title .ico { width: 36px; height: 36px; border-radius: 11px; }
  .tf-qr { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .tf-qr .field { width: 100%; }
  .sec-body { padding: 0 16px 16px; }
  .sec-body > .btn-primary, .sec-body > .btn-ghost { margin-top: 14px; }
  .foot { flex-direction: column; gap: 6px; width: calc(100% - 32px); padding: 16px 0 20px; }
}
@media (max-width: 480px) {
  #guest-link { display: none; } /* The brand remains the link to the project. */
  /* On a phone the balance in the header was a bare coin that led to «Обзор»; the bar at the bottom does that now. */
  .wallet { display: none; }
  .top-actions { gap: 8px; }
  .auth-coin { display: none; }
  #two-factor-state { margin-left: 46px; }
}
@media (max-width: 420px) {
  .coin-big { display: none; }
}
@media (max-width: 380px) {
  .auth-links { flex-direction: column; align-items: center; gap: 0; }
  .side-card .card-head { flex-wrap: wrap; row-gap: 8px; }
  .side-card .card-head h2 { white-space: nowrap; }
  .legend div { font-size: var(--f125, 12.5px); gap: 6px; }
  #round-raised { white-space: nowrap; }
  .topbar-in { padding-inline: 12px; gap: 8px; }
  .topbar-in .brand { font-size: 14px; gap: 7px; }
  .topbar-in .brand img { flex-shrink: 0; }
}
@media (max-width: 360px) {
  .top-actions { gap: 4px; }
  .topbar-in { padding-inline: 8px; gap: 4px; }
  .big { font-size: 34px; }
  .big .balance-fraction { font-size: 21px; }
  .big em { font-size: 15px; margin-left: 6px; }
  .presets button { font-size: 12px; }
  .round { grid-template-columns: 64px minmax(0, 1fr); gap: 10px; }
  .ring { width: 64px; height: 64px; }
  .networks button { gap: 4px; padding-inline: 3px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Early-round bonus */
.bonus-line { margin: 8px 2px 0; color: var(--green-ink); font-size: var(--f135, 13.5px); font-weight: 600; line-height: 1.4; }
.bonus-line span { white-space: nowrap; }
.get .bonus-line span { color: inherit; font-size: inherit; }
.get .bonus-line { display: block; margin: 4px 0 0; font-size: 13px; }
.table td.c-core small.bonus-note { display: block; margin-top: 2px; color: var(--green-ink); font-size: 12px; font-weight: 500; }
.chip.bonus { color: var(--green-ink); background: rgba(34, 201, 139, .12); }
/* The «Что даёт CORE» card leads on to the holders' section on the exchange (owner, 2026-11-06). */
.how-bridge { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.how-bridge .link { display: inline-flex; align-items: center; gap: 8px; }
.how-bridge small { color: var(--text-3, #7d8aa8); font-size: 12px; }
/* Landing «Купить» → cabinet: the chosen purchase waits for sign-in (2026-11-07). */
.auth-purchase { margin-top: 14px; padding: 10px 14px; border: 1px solid rgba(91, 107, 255, .3); border-radius: 12px; background: rgba(91, 107, 255, .1); color: var(--text); font-size: 14px; line-height: 1.45; }
.timer .pay-late { margin-top: 4px; }
/* The card's own side padding for its footer link, and long translations wrap instead of widening the page (de at 390 px). */
.how-bridge { margin: 0 22px; padding-bottom: 20px; }
.how-bridge .link { white-space: normal; }
@media (max-width: 720px) { .how-bridge { margin: 0 16px; padding-bottom: 16px; } }

/* The consent line on a touch screen: the whole line with the tick answers to a touch of 44 px (it was 21 px tall); the
   space it takes on the page is the same. */
@media (pointer: coarse) {
  .accept-terms { margin: 2px 0 -12px; padding-block: 12px; }
  .pay-grid:has(#round-aside:not([hidden])) .accept-terms { margin-top: 6px; }
}

/* ---------- Phone concept (11 Nov 2026, pass 4) ----------
   A view on a phone starts with what it is for. The sentence under a title only repeated the title; the overview keeps
   the last three purchases (the rest are one touch away in «Вся история»); «Что даёт CORE» is four names, and a touch
   opens a name's text. Nothing here changes a tablet or a computer. */
@media (max-width: 760px) {
  #view-overview .mk-head p, #view-history .mk-head p, #view-security .mk-head p { display: none; }
  #recent-table tbody tr:nth-child(n + 4) { display: none; }
  .perks > li { padding-block: 2px; }
  .perks > li > i { margin-top: 5px; }
  .perks > li > div > b { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .perks > li > div > b::after { content: ''; flex-shrink: 0; width: 7px; height: 7px; margin: 0 6px 4px 0; border: solid var(--text-3); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; }
  .perks > li.open > div > b::after { margin-bottom: -4px; transform: rotate(-135deg); }
  .perks > li:not(.open) > div > span { display: none; }
  .perks > li.open > div > span { display: block; padding-bottom: 8px; }
}
@media (pointer: coarse) and (max-width: 760px) {
  .perks > li > div > b { min-height: 44px; }
}
