/* pvprades: dark trading floor, with a geometric poster look reserved for battles. */

:root {
  --bg: #0E0E11;
  --surface: #16161A;
  --surface-2: #1D1D22;
  --surface-3: #2A2A31;
  --line: #25252B;
  --line-2: #34343C;
  --text: #F3F3F5;
  --text-2: #A3A3AD;
  --text-3: #6E6E78;
  --up: #2BD47D;
  --down: #FF4D52;
  --coral: #FF6B5B;
  --sun: #FFC25C;
  --lagoon: #14B8A3;
  --clay: #C9A08E;
  --paper: #F7F5F2;
  --ink: #101012;
  --chart-grid: rgba(255, 255, 255, 0.045);
  --font: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-xl: 24px;
  --r-lg: 18px;
  --r-md: 14px;
  --r-sm: 10px;
  --pad: clamp(12px, 2.4vw, 24px);
  --waves: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='18' viewBox='0 0 48 18'%3E%3Cpath d='M0 9c6 0 6-6 12-6s6 6 12 6 6-6 12-6 6 6 12 6' fill='none' stroke='%23101012' stroke-width='2.4'/%3E%3C/svg%3E");
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.up { color: var(--up); }
.down { color: var(--down); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; }
h1, h2, p { margin: 0; }

/* ---------------------------------------------------------------- shell */

.app {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100vh;
  height: 100dvh;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 60px;
  padding: env(safe-area-inset-top) var(--pad) 0;
}
.wordmark {
  position: relative;
  font-weight: 800;
  font-stretch: 125%;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  padding-left: 10px;
  isolation: isolate;
}
.wordmark::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  border-radius: 50%;
  background: var(--coral);
  z-index: -1;
}
.wordmark span { color: var(--text-2); }
.topbar-right { display: flex; align-items: center; gap: 10px; min-width: 0; }
.conn { font-size: 13px; color: var(--sun); white-space: nowrap; }
.wallet-chip {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.wallet-chip:hover { border-color: var(--line-2); }
.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-3);
  font-weight: 700;
  font-size: 14px;
  flex: none;
  padding: 0;
  border: 1px solid var(--line-2);
  color: var(--text);
}
button.avatar:hover { background: var(--line-2); }
button.avatar[aria-expanded='true'] { border-color: var(--text-3); }

/* account menu */
.acct-menu {
  position: fixed;
  z-index: 45;
  width: min(340px, calc(100vw - 24px));
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.acct-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.acct-avatar { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--coral); color: var(--ink); font-weight: 800; font-size: 18px; }
.acct-who { display: flex; flex-direction: column; min-width: 0; }
.acct-name { font-weight: 750; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-kind { font-size: 13px; color: var(--text-2); }
.acct-label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.acct-rename-row { display: flex; gap: 8px; }
.acct-rename-row input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: var(--bg);
  font-weight: 600;
  outline: none;
}
.acct-rename-row input:focus-visible { border-color: var(--sun); }
.acct-btn { height: 44px; padding: 0 16px; border: 0; border-radius: var(--r-sm); background: var(--surface-3); font-weight: 700; }
.acct-btn:hover { background: var(--line-2); }
.acct-link { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.acct-text { font-size: 13px; color: var(--text-2); }
.acct-signout { height: 44px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: none; color: var(--down); font-weight: 650; }
.acct-signout:hover { background: color-mix(in srgb, var(--down) 12%, transparent); }

.screens { min-height: 0; position: relative; }
.screen { height: 100%; overflow-y: auto; padding: 0 var(--pad) 12px; }

/* ---------------------------------------------------------------- dock (bottom nav) */

/* The bottom bar holds the dock and, on the trade screen, the order controls: one row, one
   height (--bar-h) for every control. The form uses display: contents so its fields sit
   directly in this grid. */
.bottombar {
  --bar-h: 64px;
  display: grid;
  grid-template-columns: auto 128px minmax(180px, 300px) minmax(260px, 1fr);
  grid-template-areas: 'dock level stake actions';
  align-items: center;
  gap: 12px;
  padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom));
}
/* the dock stays in the same place on every screen */
.app:not([data-screen='trade']) .bottombar { grid-template-columns: auto; grid-template-areas: 'dock'; justify-content: start; }
.app:not([data-screen='trade']) .ticket { display: none; }
.dock { grid-area: dock; display: flex; }
.dock-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--bar-h);
  padding: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #121215, #0B0B0D);
  border: 1px solid #23232F;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.dock-item {
  position: relative;
  display: grid;
  place-items: center;
  width: calc(var(--bar-h) - 8px);
  height: calc(var(--bar-h) - 8px);
  border-radius: 50%;
  color: var(--text-3);
  isolation: isolate;
  transition: color 0.15s;
}
.dock-item svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dock-item:hover { color: var(--text-2); }
.dock-item.is-active { color: var(--text); }
.dock-item.is-active::before,
.dock-item.is-active::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: -1;
}
.dock-item.is-active::before {
  background: conic-gradient(from 0deg, #5B5BF7, #C86BFA, #FF7AB6, #FFC25C, #14B8A3, #5B5BF7);
  filter: saturate(1.1) blur(0.6px);
  animation: spin 9s linear infinite;
}
.dock-item.is-active::after {
  inset: 4px;
  background: #18181C;
}
.dock-badge {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 2px #0B0B0D;
}
.dock-badge.is-live { background: var(--coral); }
@keyframes spin { to { transform: rotate(1turn); } }

/* ---------------------------------------------------------------- trade screen */

.screen-trade {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  padding-bottom: 4px;
}
.screen-trade[hidden] { display: none; }

.chart-card {
  flex: 1;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.chart-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 12px 14px 8px;
}
.sym-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 6px 10px 6px 6px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  background: none;
  text-align: left;
}
.sym-btn:hover:not(:disabled) { background: var(--surface-2); border-color: var(--line); }
.sym-btn:disabled { cursor: default; opacity: 1; }
.sym-btn.is-locked .caret { display: none; }
.sym-text { display: flex; flex-direction: column; min-width: 0; }
.sym-ticker { font-weight: 800; font-size: 17px; line-height: 1.15; letter-spacing: -0.01em; }
.sym-name { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.caret { width: 16px; height: 16px; fill: none; stroke: var(--text-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.mono-tile {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 11px;
  background: color-mix(in srgb, var(--tile, #888) 20%, var(--surface-2));
  color: var(--tile, #888);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tile, #888) 30%, transparent);
  font-weight: 800;
  font-stretch: 90%;
  font-size: 12px;
  letter-spacing: -0.02em;
}
.mono-tile[data-len='4'] { font-size: 10.5px; }
.mono-tile[data-len='5'] { font-size: 9px; }

.quote { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.quote-price { font-weight: 700; font-stretch: 112%; font-size: 22px; letter-spacing: -0.01em; }
.quote-chg { font-size: 13px; font-weight: 600; }
.head-spacer { flex: 1; }
.close-pos {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  font-weight: 650;
  font-size: 14px;
  white-space: nowrap;
}
.close-pos:hover { background: var(--surface-3); }
.close-pos-pnl { font-weight: 700; }

.chart-tools { display: flex; gap: 8px; margin-left: auto; }
.head-break { display: none; }
.chart-head .head-spacer { display: none; }
.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--r-sm);
  background: var(--bg);
  border: 1px solid var(--line);
}
.seg button {
  min-width: 36px;
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 600;
  display: grid;
  place-items: center;
}
.seg button:hover { color: var(--text-2); }
.seg button[aria-checked='true'] { background: var(--surface-3); color: var(--text); }
.seg svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.chart-body {
  position: relative;
  flex: 1;
  min-height: 0;
  margin: 0 0 4px 10px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.pc-canvas { position: absolute; inset: 0; display: block; cursor: crosshair; }
.pc[data-cursor='y'] .pc-canvas { cursor: ns-resize; }
.pc[data-cursor='x'] .pc-canvas { cursor: ew-resize; }
.pc[data-cursor='corner'] .pc-canvas { cursor: default; }
.pc.is-grabbing .pc-canvas { cursor: grabbing; }
.pc-auto {
  position: absolute;
  right: 4px;
  bottom: 1px;
  height: 22px;
  padding: 0 9px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  background: var(--surface-3);
  color: var(--text);
  font-size: 12px;
  font-weight: 650;
}
.pc-auto:hover { background: var(--line-2); }
.pc-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.pc-readout {
  position: absolute;
  top: 6px;
  left: 6px;
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-3);
  pointer-events: none;
}
.pc-readout b { font-weight: 600; color: var(--text-2); }
.pc-readout b.up { color: var(--up); }
.pc-readout b.down { color: var(--down); }
.pc-latest {
  position: absolute;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 600;
}
.pc-pill {
  position: absolute;
  top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  padding: 0 4px 0 10px;
  border-radius: 999px;
  background: rgba(14, 14, 17, 0.92);
  border: 1px solid var(--line-2);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  pointer-events: auto;
  backdrop-filter: blur(6px);
}
.pc-pill.is-long { border-color: color-mix(in srgb, var(--up) 55%, transparent); }
.pc-pill.is-short { border-color: color-mix(in srgb, var(--down) 55%, transparent); }
.pc-pill-side { color: var(--text-2); }
.pc-pill.is-up .pc-pill-pnl { color: var(--up); }
.pc-pill.is-down .pc-pill-pnl { color: var(--down); }
.pc-pill[data-off='up']::before { content: '↑'; color: var(--text-3); }
.pc-pill[data-off='down']::before { content: '↓'; color: var(--text-3); }
.pc-pill.is-closing { opacity: 0.5; }
.pc-pill-x {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--text);
}
.pc-pill-x:hover { background: var(--down); color: var(--ink); }
.pc-pill-x svg { width: 10px; height: 10px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* ticket: lives in the bottom bar, every control is --bar-h tall with its label inside */
.ticket { display: contents; }
.field {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  min-width: 0;
  height: var(--bar-h);
  padding: 0 14px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.field:hover { border-color: var(--line-2); }
.field:focus-within { border-color: var(--line-2); background: var(--surface-2); }
.field-level { grid-area: level; cursor: pointer; }
.field-stake { grid-area: stake; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; align-content: center; column-gap: 8px; padding-right: 8px; }
.field-label { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; line-height: 1.2; color: var(--text-2); font-weight: 500; white-space: nowrap; }
.field-hint { color: var(--text-3); overflow: hidden; text-overflow: ellipsis; }
.field-stake.is-warn { border-color: color-mix(in srgb, var(--sun) 60%, transparent); }
.field-stake.is-warn .field-hint { color: var(--sun); }
.field-level select {
  appearance: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 22px 36px 0 14px;
  border: 0;
  border-radius: inherit;
  background: none;
  font-size: 19px;
  font-weight: 750;
  font-stretch: 112%;
  outline: none;
  cursor: pointer;
}
.field-level .field-label { position: absolute; top: 12px; left: 14px; right: 14px; pointer-events: none; z-index: 1; }
.field-level select option { background: var(--surface-2); color: var(--text); font-size: 15px; }
.field-level .caret { position: absolute; right: 12px; bottom: 15px; pointer-events: none; }
.field-level:has(select:focus-visible) { outline: 2px solid var(--sun); outline-offset: 2px; }
.field-stake .field-label { grid-column: 1; }
.stake-row { grid-column: 1; display: flex; align-items: baseline; min-width: 0; }
.stake-cur { color: var(--text-3); font-size: 19px; font-weight: 600; margin-right: 2px; }
.stake-row input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  font-size: 19px;
  font-weight: 750;
  font-stretch: 112%;
  outline: none;
}
.field-stake:has(input:focus-visible) { outline: 2px solid var(--sun); outline-offset: 2px; }
.stake-steps { grid-column: 2; grid-row: 1 / 3; display: flex; gap: 4px; }
.stake-step {
  width: 38px;
  height: 44px;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--surface-3);
  font-size: 14px;
  font-weight: 700;
}
.stake-step:hover { background: var(--line-2); }
.ticket-actions { grid-area: actions; display: flex; justify-content: flex-end; gap: 10px; min-width: 0; }
.trade-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  flex: 0 1 200px;
  min-width: 125px;
  height: var(--bar-h);
  padding: 0 18px;
  border: 0;
  border-radius: var(--r-lg);
  color: var(--ink);
  text-align: left;
  transition: transform 0.08s, filter 0.15s;
}
.trade-btn.buy { background: var(--up); }
.trade-btn.sell { background: var(--down); }
.trade-btn:hover:not(:disabled) { filter: brightness(1.08); }
.trade-btn:active:not(:disabled) { transform: scale(0.98); }
.trade-btn:disabled { opacity: 0.4; }
.trade-btn-label { font-weight: 800; font-stretch: 118%; font-size: 19px; line-height: 1.1; }
.trade-btn-sub { font-size: 12px; font-weight: 600; opacity: 0.72; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* battle strip */
.battle-strip {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 12px 18px 16px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  flex: none;
}
.bs-side { display: flex; flex-direction: column; min-width: 0; }
.bs-opp { align-items: flex-end; text-align: right; }
.bs-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.bs-you .bs-name::before, .bs-opp .bs-name::after {
  content: '';
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  box-shadow: 0 0 0 1px var(--line-2);
}
.bs-you .bs-name::before { background: var(--coral); }
.bs-opp .bs-name::after { background: var(--sun); }
.bs-pnl { font-weight: 800; font-stretch: 120%; font-size: clamp(20px, 3.2vw, 30px); line-height: 1.15; letter-spacing: -0.01em; white-space: nowrap; }
.bs-clock { position: relative; width: 60px; height: 60px; display: grid; place-items: center; }
.bs-clock svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.bs-clock-track { fill: none; stroke: var(--surface-3); stroke-width: 3; }
.bs-clock-fill { fill: none; stroke: var(--text); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 119.4; transition: stroke-dashoffset 0.25s linear; }
.bs-time { font-weight: 700; font-size: 14px; }
.battle-strip.is-final .bs-clock-fill { stroke: var(--coral); }
.battle-strip.is-final .bs-time { color: var(--coral); }
.bs-tug { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--sun); }
.bs-tug span { position: absolute; inset: 0; background: var(--coral); transform-origin: left; transform: scaleX(0.5); transition: transform 0.4s ease; }

/* ---------------------------------------------------------------- picker */

.picker {
  position: fixed;
  z-index: 40;
  width: 400px;
  max-width: calc(100vw - 24px);
  max-height: min(560px, 72vh);
  display: flex;
  flex-direction: column;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.picker-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  height: 52px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.picker-search svg { width: 16px; height: 16px; fill: none; stroke: var(--text-3); stroke-width: 1.6; stroke-linecap: round; flex: none; }
.picker-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 15px; }
.picker-search input::placeholder { color: var(--text-3); }
.picker-search input::-webkit-search-cancel-button { filter: invert(0.6); }
.picker-list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; overscroll-behavior: contain; }
.picker-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--r-md);
  cursor: pointer;
}
.picker-row.is-active { background: var(--surface-3); }
.picker-row.is-current .pr-sym { color: var(--sun); }
.pr-text { display: flex; flex-direction: column; min-width: 0; }
.pr-sym { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; }
.pr-held { width: 6px; height: 6px; border-radius: 50%; background: var(--sun); }
.pr-name { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-quote { display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; }
.pr-price { font-weight: 600; font-size: 14px; }
.pr-chg { font-size: 12px; font-weight: 600; }
.picker-empty { padding: 20px 14px; color: var(--text-2); font-size: 14px; }

/* ---------------------------------------------------------------- toasts */

.toasts {
  position: fixed;
  z-index: 60;
  left: 50%;
  /* just above the bottom bar, clear of the battle clock and the chart title */
  bottom: calc(104px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  flex-direction: column-reverse;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: calc(100vw - 24px);
  pointer-events: none;
}
.toast {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--surface-3);
  border: 1px solid var(--line-2);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s, transform 0.18s;
  max-width: 100%;
}
.toast.is-in { opacity: 1; transform: none; }
.toast-up { border-color: color-mix(in srgb, var(--up) 50%, transparent); }
.toast-down { border-color: color-mix(in srgb, var(--down) 45%, transparent); }
.toast-error { border-color: var(--down); color: #FFD6D7; }
.toast-good { border-color: var(--sun); }

/* ---------------------------------------------------------------- online */

.screen-online, .screen-portfolio { padding-top: 8px; padding-bottom: 24px; }
.screen-online > *, .screen-portfolio > * { max-width: 1120px; margin-left: auto; margin-right: auto; }
.online-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 16px; }
.screen-title { font-weight: 800; font-stretch: 125%; font-size: 30px; letter-spacing: -0.02em; }
.online-count { color: var(--text-2); font-size: 14px; }
.online-count::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--up); vertical-align: 1px; }

/* the battle tile: a live version of the VS screen, the one loud thing on this page */
.duel {
  border: 3px solid var(--ink);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 0 0 1px var(--line-2);
}
.duel-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: clamp(190px, 26vw, 280px);
  color: var(--ink);
}
.duel-side { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 20px clamp(16px, 4vw, 48px); min-width: 0; }
.duel-you { background: var(--coral); border-right: 3px solid var(--ink); padding-right: clamp(56px, 9vw, 110px); }
.duel-opp { background: var(--sun); align-items: flex-end; text-align: right; padding-left: clamp(56px, 9vw, 110px); position: relative; overflow: hidden; isolation: isolate; }
.duel-role { font-size: 14px; font-weight: 700; }
.duel-name {
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(26px, 5vw, 60px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.duel-meta { font-size: 14px; font-weight: 600; opacity: 0.75; min-height: 1.3em; }
.duel[data-state='idle'] .duel-opp .duel-name { font-size: clamp(56px, 9vw, 110px); }
.duel-disc {
  /* centred with insets + auto margins, not a transform, so animations can't move it */
  position: absolute;
  inset: 0;
  margin: auto;
  width: clamp(84px, 12vw, 136px);
  height: clamp(84px, 12vw, 136px);
  border-radius: 50%;
  border: 3px solid var(--ink);
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.duel-disc::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, var(--paper) calc(50% - 1.5px), var(--ink) calc(50% - 1.5px) calc(50% + 1.5px), var(--lagoon) calc(50% + 1.5px));
}
.duel-disc span { font-weight: 900; font-stretch: 125%; font-size: clamp(22px, 3.2vw, 38px); background: var(--ink); color: var(--paper); padding: 0 0.3em 0.08em; border-radius: 8px; line-height: 1.1; }

/* searching: stripes sweep across the opponent side and the disc turns */
.duel[data-state='searching'] .duel-opp::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(135deg, transparent 0 22px, rgba(16, 16, 18, 0.09) 22px 44px);
  background-size: 62.2px 62.2px;
  animation: duel-sweep 1.2s linear infinite;
}
.duel[data-state='searching'] .duel-disc::before { animation: spin 2.4s linear infinite; }
.duel[data-state='match'] .duel-opp { background: var(--sun); }
@keyframes duel-sweep { to { background-position: 62.2px 0; } }

.duel-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 24px;
  padding: 18px clamp(16px, 4vw, 48px) 20px;
  background: var(--ink);
  color: var(--paper);
  border-top: 3px solid var(--ink);
}
.duel-copy { flex: 1 1 320px; min-width: 0; }
.duel-title { font-weight: 900; font-stretch: 125%; font-size: 22px; letter-spacing: -0.02em; line-height: 1.1; }
.duel-rules { margin-top: 4px; font-size: 14px; color: #B5B5BD; max-width: 62ch; }
.duel-btn {
  flex: none;
  height: 56px;
  padding: 0 28px;
  border: 3px solid var(--paper);
  border-radius: var(--r-md);
  background: var(--coral);
  color: var(--ink);
  font-weight: 800;
  font-stretch: 115%;
  font-size: 17px;
  box-shadow: 4px 4px 0 var(--paper);
  transition: transform 0.08s, box-shadow 0.08s;
}
.duel-btn:hover:not(:disabled) { background: #FF7B6C; }
.duel-btn:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--paper); }
.duel-btn:disabled { opacity: 0.5; }
.duel-btn[data-action='cancel'] { background: var(--paper); }
.duel-btn[data-action='goto'] { background: var(--sun); }

.online-grid { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr); gap: 14px; margin-top: 14px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 20px; min-width: 0; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 12px; }
.panel-title { font-weight: 700; font-size: 17px; }
.panel > .panel-title { margin-bottom: 14px; }
.panel-note { font-size: 13px; color: var(--text-3); }
.record { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; margin: 0; }
.record div { min-width: 0; }
.record dt { font-size: 13px; color: var(--text-2); }
.record dd { margin: 2px 0 0; font-weight: 800; font-stretch: 115%; font-size: 24px; }
.record .record-wide { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid var(--line); }
.history { list-style: none; margin: 0; padding: 0; }
.hist-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.hist-row:first-child { border-top: 0; padding-top: 0; }
.hist-badge { display: grid; place-items: center; height: 28px; border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--ink); }
.hist-win { background: var(--lagoon); }
.hist-loss { background: var(--coral); }
.hist-draw { background: var(--sun); }
.hist-main { display: flex; flex-direction: column; min-width: 0; }
.hist-opp { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist-bot { font-size: 12px; font-weight: 600; color: var(--text-3); border: 1px solid var(--line-2); border-radius: 6px; padding: 0 5px; margin-left: 4px; }
.hist-meta { font-size: 13px; color: var(--text-3); }
.hist-score { display: flex; flex-direction: column; align-items: flex-end; font-weight: 700; white-space: nowrap; }
.hist-vs { font-size: 12px; font-weight: 500; color: var(--text-3); }
.hist-empty, .pos-empty { color: var(--text-2); font-size: 14px; padding: 6px 0; }

/* ---------------------------------------------------------------- portfolio */

.balance-block { padding: 8px 0 22px; }
.balance-label { font-size: 15px; color: var(--text-2); font-weight: 500; }
.balance-big { font-weight: 800; font-stretch: 125%; font-size: clamp(40px, 7vw, 68px); line-height: 1.05; letter-spacing: -0.03em; margin-top: 2px; overflow-wrap: anywhere; }
.balance-sub { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 10px; font-size: 14px; color: var(--text-2); }
.balance-sub b { color: var(--text); font-weight: 650; }
.balance-sub b.up { color: var(--up); }
.balance-sub b.down { color: var(--down); }

.portfolio-grid { display: grid; grid-template-columns: minmax(320px, 420px) minmax(0, 1fr); gap: 14px; align-items: start; }
.panel-ring { display: flex; flex-direction: column; gap: 18px; outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
.panel-ring.is-focused { border-color: color-mix(in srgb, var(--sun) 55%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sun) 14%, transparent); }
.ring:focus-visible { outline: none; }
.ring-keys { align-self: center; margin-top: -6px; font-size: 13px; font-weight: 600; color: var(--text-3); min-height: 1.3em; }
.panel-ring.is-focused .ring-keys { color: var(--sun); }
.ring-help { font-size: 13px; color: var(--text-2); margin-top: 6px; max-width: 46ch; }
.ring-stage { position: relative; align-self: center; width: min(100%, 280px); aspect-ratio: 1; }
.ring-floats { position: absolute; inset: 0; pointer-events: none; }
.ring {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #1B1B20 0 52%, transparent 53%);
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
.ring svg { width: 100%; height: 100%; display: block; overflow: visible; }
.ring-track { fill: none; stroke: var(--surface-3); stroke-width: 16; transition: stroke 0.2s; }
.ring-block { fill: none; stroke: var(--lagoon); stroke-width: 3; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 120px 120px; transition: stroke-dashoffset 0.25s ease; opacity: 0.9; }
.ring-zone { fill: none; stroke: url(#zoneGrad); stroke-width: 16; stroke-linecap: round; transition: opacity 0.2s; }
.ring-spark { fill: #fff; }
.ring-spark-glow { fill: rgba(255, 255, 255, 0.16); transition: fill 0.1s; }
.ring.is-armed .ring-spark-glow { fill: rgba(255, 194, 92, 0.55); }
.ring.is-hot .ring-track { stroke: color-mix(in srgb, var(--down) 45%, var(--surface-3)); }
.ring.is-hot .ring-zone { opacity: 0.25; }
.ring.is-hit { animation: ring-hit 0.18s ease-out; }
.ring.is-miss { animation: ring-miss 0.3s ease-out; }
@keyframes ring-hit { 50% { transform: scale(1.025); } }
@keyframes ring-miss { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.ring-mult { font-weight: 800; font-stretch: 125%; font-size: 34px; letter-spacing: -0.02em; line-height: 1.1; }
.ring-value { font-size: 13px; color: var(--text-2); }
.ring-float {
  position: absolute;
  transform: translate(-50%, -50%);
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
  animation: float-up 0.9s ease-out forwards;
}
.ring-float-gain { color: var(--sun); }
.ring-float-miss { color: var(--down); }
.ring-float-block { color: var(--lagoon); font-size: 17px; left: 50% !important; top: 18% !important; }
@keyframes float-up { from { opacity: 1; margin-top: 0; } to { opacity: 0; margin-top: -34px; } }
.ring-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding-top: 16px; border-top: 1px solid var(--line); }
.ring-stats dt { font-size: 13px; color: var(--text-2); }
.ring-stats dd { margin: 2px 0 0; font-weight: 750; font-size: 17px; white-space: nowrap; }

.pos-list { list-style: none; margin: 0; padding: 0; }
.pos-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.pos-row:first-child { border-top: 0; padding-top: 2px; }
.pos-main { display: flex; flex-direction: column; min-width: 0; }
.pos-name { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos-meta { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos-pnl { display: flex; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap; }
.tri { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; }
.tri-up { border-bottom: 7px solid var(--up); }
.tri-down { border-top: 7px solid var(--down); }
.pos-x { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line-2); border-radius: 50%; background: var(--surface-2); color: var(--text-2); }
.pos-x:hover { background: var(--down); color: var(--ink); border-color: var(--down); }
.pos-x svg { width: 11px; height: 11px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* ---------------------------------------------------------------- overlays */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: blur(8px);
}
.name-card {
  width: min(100%, 420px);
  padding: 28px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line-2);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.name-title { font-weight: 800; font-stretch: 120%; font-size: 26px; letter-spacing: -0.02em; line-height: 1.1; }
.name-text { color: var(--text-2); font-size: 14px; }
.name-field input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  margin-top: 6px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  background: var(--bg);
  font-size: 17px;
  font-weight: 600;
  outline: none;
}
.name-field input:focus-visible { border-color: var(--sun); outline: none; }
.name-error { color: var(--down); font-size: 13px; min-height: 1.3em; }
.name-btn, .res-btn {
  height: 54px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
  font-stretch: 112%;
  font-size: 16px;
}
.name-btn:hover, .res-btn:hover { background: #fff; }
.name-btn:disabled { opacity: 0.6; }
.name-form { display: flex; flex-direction: column; gap: 10px; }
.name-form .name-btn { width: 100%; }
.name-btn.is-quiet { background: var(--surface-3); color: var(--text); }
.name-btn.is-quiet:hover { background: var(--line-2); }
.name-note { font-size: 12px; color: var(--text-3); }
.name-or { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text-3); margin: 4px 0 -4px; }
.name-or::before, .name-or::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.g-slot { display: flex; justify-content: center; min-height: 44px; align-items: center; color-scheme: light; }
.g-loading { font-size: 13px; color: var(--text-3); color-scheme: dark; }

/* battle intro */
.overlay-vs { padding: 0; background: var(--ink); backdrop-filter: none; }
.vs {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: minmax(0, 1fr) auto;
  color: var(--ink);
  overflow: hidden;
}
.vs-half { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 24px clamp(20px, 6vw, 80px); min-width: 0; }
.vs-you { background: var(--coral); border-right: 3px solid var(--ink); animation: vs-left 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.vs-opp { background: var(--sun); align-items: flex-end; text-align: right; animation: vs-right 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.vs-role { font-size: 15px; font-weight: 700; }
.vs-name { font-weight: 900; font-stretch: 125%; font-size: clamp(28px, 6.5vw, 84px); line-height: 0.95; letter-spacing: -0.03em; overflow-wrap: anywhere; max-width: 100%; }
.vs-rating { font-size: 15px; font-weight: 600; opacity: 0.75; }
.vs-disc {
  position: absolute;
  left: 50%;
  top: 46%;
  width: clamp(110px, 18vw, 200px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: linear-gradient(135deg, var(--paper) calc(50% - 1.5px), var(--ink) calc(50% - 1.5px) calc(50% + 1.5px), var(--lagoon) calc(50% + 1.5px));
  display: grid;
  place-items: center;
  animation: vs-pop 0.45s 0.3s cubic-bezier(0.3, 1.5, 0.5, 1) both;
}
.vs-word { font-weight: 900; font-stretch: 125%; font-size: clamp(30px, 5vw, 56px); background: var(--ink); color: var(--paper); padding: 0 0.3em 0.08em; border-radius: 10px; line-height: 1.1; }
.vs-foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 18px clamp(20px, 6vw, 80px) calc(18px + env(safe-area-inset-bottom));
  background: var(--ink);
  color: var(--paper);
  border-top: 3px solid var(--ink);
}
.vs-market { font-size: 17px; }
.vs-market b { font-weight: 900; font-stretch: 125%; }
.vs-meta { font-size: 14px; color: #B5B5BD; }
.vs-count { margin-left: auto; font-weight: 800; font-stretch: 115%; font-size: 20px; color: var(--sun); }
@keyframes vs-left { from { transform: translateX(-100%); } }
@keyframes vs-right { from { transform: translateX(100%); } }
@keyframes vs-pop { from { transform: translate(-50%, -50%) scale(0) rotate(-90deg); } }

/* battle result */
.res {
  width: min(100%, 520px);
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 8px 8px 0 var(--ink), 0 0 0 1px var(--line-2);
}
.res-band { height: 56px; border-bottom: 3px solid var(--ink); background-color: var(--lagoon); background-image: var(--waves), var(--waves); background-position: 0 6px, 24px 28px; background-repeat: repeat-x; }
.res-loss .res-band { background-color: var(--coral); }
.res-draw .res-band { background-color: var(--sun); }
.res-title { padding: 22px 26px 4px; font-weight: 900; font-stretch: 125%; font-size: clamp(36px, 8vw, 56px); line-height: 1; letter-spacing: -0.03em; }
.res-score { display: grid; grid-template-columns: 1fr 1fr; margin: 16px 26px 0; border: 3px solid var(--ink); border-radius: var(--r-md); overflow: hidden; }
.res-col { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; min-width: 0; }
.res-col + .res-col { border-left: 3px solid var(--ink); }
.res-who { font-size: 13px; font-weight: 600; color: #4A4A52; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res-pnl { font-weight: 800; font-stretch: 115%; font-size: 24px; white-space: nowrap; }
.res-pnl.up { color: #0C8A4E; }
.res-pnl.down { color: #D02A2F; }
.res-text { padding: 16px 26px 0; font-size: 15px; color: #2E2E34; }
.res-rating { display: block; padding: 6px 26px 0; font-size: 14px; font-weight: 600; color: #4A4A52; }
.res-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 20px 26px 0; }
.res-btn { flex: 1 1 180px; border: 3px solid var(--ink); }
.res-again { background: var(--coral); box-shadow: 3px 3px 0 var(--ink); }
.res-again:hover { background: #FF7B6C; }
.res-done { background: var(--paper); }
.res-btn:focus-visible { outline-color: var(--ink); }
.res-meta { padding: 14px 26px 20px; font-size: 13px; color: #6A6A72; }

/* ---------------------------------------------------------------- responsive */

/* Narrower: two rows. Level sits above the dock (same width), stake above Sell/Buy. */
@media (max-width: 880px) {
  .bottombar {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: 'level stake' 'dock actions';
    gap: 10px;
    padding-top: 10px;
  }
  .trade-btn { flex: 1 1 0; min-width: 0; }
  .app[data-screen='trade'] ~ .toasts { bottom: calc(166px + env(safe-area-inset-bottom)); }
}

@media (max-width: 480px) {
  .bottombar { --bar-h: 56px; gap: 8px; }
  .dock-pill { gap: 4px; }
  .field { padding: 0 12px; }
  .field-level select { padding-left: 12px; font-size: 17px; }
  .field-level .field-label { left: 12px; top: 9px; }
  .field-level .caret { bottom: 12px; }
  .stake-row input, .stake-cur { font-size: 17px; }
  .stake-step { width: 34px; height: 40px; }
  .trade-btn { padding: 0 14px; }
  .field-stake:not(.is-warn) .field-hint { display: none; }
  .seg button { min-width: 30px; padding: 0 7px; height: 26px; font-size: 12px; }
  .chart-tools { gap: 6px; }
  .close-pos { height: 34px; padding: 0 12px; gap: 6px; font-size: 13px; }
  .trade-btn-label { font-size: 17px; }
}

@media (max-width: 900px) {
  .portfolio-grid, .online-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .quote-price { font-size: 19px; }
  .chart-head { padding: 8px 10px 6px; gap: 6px 10px; }
  .head-break { display: block; flex-basis: 100%; height: 0; }
  .chart-tools { margin-left: 0; }
  .chart-head .head-spacer { display: block; flex: 1; }
  .sym-btn { padding-right: 6px; gap: 10px; }
  .sym-name { display: none; }
  .mono-tile { width: 34px; height: 34px; }
  .chart-body { margin-left: 4px; }
  .pc-readout { display: none; }
  .battle-strip { padding: 10px 12px 14px; gap: 10px; }
  .bs-clock { width: 52px; height: 52px; }
  .vs { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr auto; }
  .vs-you { border-right: 0; border-bottom: 3px solid var(--ink); }
  .vs-opp { align-items: flex-start; text-align: left; }
  .vs-disc { top: 50%; left: auto; right: 16px; transform: translateY(-50%); }
  @keyframes vs-pop { from { transform: translateY(-50%) scale(0) rotate(-90deg); } }
  .vs-count { margin-left: 0; width: 100%; }
}

@media (max-width: 640px) {
  .picker {
    left: 0 !important;
    right: 0;
    top: auto !important;
    bottom: 0;
    width: 100% !important;
    max-width: none;
    max-height: 78vh;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
}

@media (max-width: 420px) {
  .wallet-chip { padding: 0 10px; font-size: 13px; }
  .close-pos { height: 36px; padding: 0 12px; font-size: 13px; }
  .close-pos span:first-child { display: none; }
  .close-pos::before { content: 'Close'; }
  .trade-btn-sub { display: none; }
  .ring-stats dd { font-size: 15px; }
}

@media (max-height: 640px) and (max-width: 720px) {
  .chart-card { min-height: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
