
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/fraunces-var.069cb90e11a3.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-sans-var.fa41c43a3d8e.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-var.b636a65da4f0.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces Fallback';
  src: local('Georgia');
  size-adjust: 107%;
  ascent-override: 91.4%;
  descent-override: 23.83%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Instrument Sans Fallback';
  src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('Arimo');
  size-adjust: 101.6%;
  ascent-override: 95.47%;
  descent-override: 24.61%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'JetBrains Mono Fallback';
  src: local('Courier New'), local('CourierNewPSMT'), local('Liberation Mono'), local('Cousine');
  size-adjust: 99.98%;
  ascent-override: 102.02%;
  descent-override: 30.01%;
  line-gap-override: 0%;
}
:root {
--bg-app:         #0b0a09;   
  --bg-sidebar:     #100e0c;   
  --bg-card:        #141210;   
  --bg-card-hover:  #1b1815;
--border-subtle:  rgba(237, 232, 218, 0.13);
  --border-focus:   rgba(226, 84, 63, 0.55);
--primary:        #e2543f;
  --primary-hover:  #ea6a55;
  --primary-glow:   rgba(226, 84, 63, 0.28);
  --primary-deep:   #8e2a1e;   
  --accent:         #e3a557;   
--success:        #10b981;
  --success-bg:     rgba(16, 185, 129, 0.1);
  --danger:         #f43f5e;
  --danger-bg:      rgba(244, 63, 94, 0.1);
--primary-fill:       #e4dfd2;
  --primary-fill-hover: #f0ece1;
  --on-primary-fill:    #0b0a09;
  --up-fill:            #12684f;
  --up-fill-hover:      #15795e;
  --down-fill:          #a32340;
  --down-fill-hover:    #bb2949;
  --on-fill:            #f2f5f4;
--text-primary:   #e4dfd2;
  --text-secondary: #a9a396;
  --text-tertiary:  #8a8477;   
  --text-muted:     #a9a396;
--bg-secondary:   rgba(237, 232, 218, 0.03);
  --bg-tertiary:    rgba(237, 232, 218, 0.06);
--gradient-brand:   linear-gradient(135deg, #e2543f 0%, #c1382a 100%);
  --gradient-surface: linear-gradient(180deg, #16130f 0%, #0d0b0a 100%);
--lit-bg:      #e9e3d5;
  --lit-ink:     #17140f;
  --lit-ink-dim: #5a5348;
  --lit-accent:  #a52f22;
  --lit-on-ink:  #f4f0e6;   
  --lit-ink-2:   #2f2920;   
  --lit-rule:    rgba(23, 20, 15, 0.16);
  --lit-rule-2:  rgba(23, 20, 15, 0.34);
--bg:          var(--bg-app);
  --bg-panel:    var(--bg-card);
  --bg-panel-2:  #100e0c;
  --bg-panel-3:  var(--bg-card-hover);
  --border:      var(--border-subtle);
  --border-2:    rgba(237, 232, 218, 0.26);
  --text:        var(--text-primary);
  --text-dim:    var(--text-secondary);
  --text-faint:  var(--text-tertiary);
  --up:          var(--success);
  --down:        var(--danger);
  --gold:        var(--accent);
--display: "Fraunces", "Fraunces Fallback", Georgia, serif;
  --body:    "Instrument Sans", "Instrument Sans Fallback", system-ui, sans-serif;
  --mono:    "JetBrains Mono", "JetBrains Mono Fallback", ui-monospace, Menlo, monospace;
--fs-xs:      0.75rem;
  --fs-sm:      0.875rem;
  --fs-base:    1rem;
  --fs-md:      1.125rem;
  --fs-lg:      1.375rem;
  --fs-xl:      1.75rem;
  --fs-2xl:     2.25rem;
  --fs-display: clamp(2.25rem, 5vw, 4rem);
--washi-dim: #9b9789;
  --washi:     #ede8da;
  --shu:       #c1382a;
--radius:      6px;
  --radius-sm:   var(--radius);
  --radius-md:   var(--radius);
  --radius-lg:   var(--radius);
  --radius-xl:   var(--radius);
  --radius-pill: var(--radius);
--shadow-sm:    0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md:    0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
--content-width: 1240px;
--ease: cubic-bezier(.16, .8, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
html {
  color-scheme: dark;
  overflow-x: clip;
  max-width: 100%;
scroll-padding-top: 6rem;
}
body {
  touch-action: manipulation;
  overflow-x: clip;
  max-width: 100%;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
h1, h2, h3 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
h1 { font-size: clamp(2.25rem, 5vw, 4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p { color: var(--text); max-width: 34em; }
dd, .disclosure li { max-width: 31em; }
a { color: var(--text); text-decoration-color: var(--text-dim); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--primary); }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary:not(.btn, .nav-toggle, .nav-menu-toggle, .faq *) {
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: color .15s var(--ease);
}
summary:not(.btn, .nav-toggle, .nav-menu-toggle, .faq *):hover { color: var(--primary); }
summary:not(.nav-toggle, .nav-menu-toggle, .faq *)::after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 1.35em;
  height: 1.35em;
  margin-left: 0.5em;
  flex: none;
  border: 1px solid var(--border-2);
  border-radius: 50%;
background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 6.5 8 10l3.5-3.5' fill='none' stroke='%23e4dfd2' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 75% no-repeat;
  transition: transform .2s var(--ease), border-color .15s var(--ease);
}
summary:not(.nav-toggle, .nav-menu-toggle, .faq *):hover::after { border-color: var(--primary); }
details[open] > summary:not(.nav-toggle, .nav-menu-toggle, .faq *)::after { transform: rotate(180deg); }
summary.btn::after { border: 0; width: 1.1em; height: 1.1em; margin-left: 0.35em; background-size: 100%; }
summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  summary::after { transition: none; }
}
.num, .mono, time, .price {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums lining-nums;
}
.eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-bottom: 0.75rem;
}
.up   { color: var(--up); }
.down { color: var(--down); }
.gold { color: var(--gold); }
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
main:focus { outline: none; }
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  background: var(--primary-fill);
  border: 1px solid var(--primary-fill);
  color: var(--on-primary-fill);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.skip-link:focus {
  top: 1rem;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
html.js-reveal [data-reveal],
html.js-reveal [data-reveal-group] > * {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s cubic-bezier(.16,.8,.3,1), transform .5s cubic-bezier(.16,.8,.3,1);
transition-delay: calc(var(--i, 0) * 50ms);
}
@media (prefers-reduced-motion: reduce) {
  html.js-reveal [data-reveal],
  html.js-reveal [data-reveal-group] > * { opacity: 1; transform: none; transition: none; }
}
html.js-reveal [data-reveal].in-view,
html.js-reveal [data-reveal-group] > *.in-view {
  opacity: 1;
  transform: none;
}
@keyframes card-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.card-in { animation: card-in .5s cubic-bezier(.16,.8,.3,1) both; animation-delay: calc(var(--i, 0) * 60ms); }
.wrap {
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
section { padding-block: clamp(2.5rem, 6vw, 5rem); }
.terminal-section { padding-block: 1.5rem 3rem; }
.terminal-section .wrap { max-width: none; padding-inline: 2rem; }
.site-header .wrap,
.site-footer .wrap {
  max-width: none;
  padding-inline: 2rem;
}
@media (max-width: 900px) {
  .terminal-section .wrap { padding-inline: 1.25rem; }
.site-header .wrap { padding-inline: 1.25rem; }  
  .site-footer .wrap { padding-inline: 1.5rem; }
}
section + section { border-top: 1px solid var(--border); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
background: rgba(11, 10, 9, 0.97);
  backdrop-filter: blur(10px);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 48px;
  height: 48px;
  flex: none;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-balance {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0.3rem 0.3rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  font-size: 0.85rem;
  white-space: nowrap;
  transition: border-color 0.15s ease, opacity 0.15s ease;
}
.nav-balance:hover { border-color: var(--border-2); text-decoration: none; }
.nav-balance-label {
  color: var(--on-primary-fill);
  background: var(--primary-fill);
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 600;
}
.nav-balance.disabled { cursor: not-allowed; }
.nav-balance.disabled .nav-balance-label { background: var(--bg-tertiary); color: var(--text-faint); }
@media (max-width: 480px) {
  .nav-balance-label { display: none; }
  .nav-balance { padding: 0.4rem 0.8rem; font-size: 0.8rem; }
}
[data-tooltip] { position: relative; }
[data-tooltip]:not([data-tooltip=""])::after,
[data-tooltip]:not([data-tooltip=""])::before {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.1s ease;
}
[data-tooltip]:not([data-tooltip=""])::after {
  content: attr(data-tooltip);
  top: calc(100% + 9px);
  z-index: 20;
  padding: 0.45rem 0.7rem;
  background: var(--bg-panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 32px -16px rgba(0, 0, 0, 0.55);
  font-size: 0.78rem;
  font-weight: 400;
  white-space: nowrap;
}
[data-tooltip]:not([data-tooltip=""])::before {
  content: "";
  top: 100%;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-bottom-color: var(--bg-panel);
  z-index: 21;
}
[data-tooltip]:not([data-tooltip=""]):hover::after,
[data-tooltip]:not([data-tooltip=""]):hover::before,
[data-tooltip]:not([data-tooltip=""]):focus-visible::after,
[data-tooltip]:not([data-tooltip=""]):focus-visible::before {
  opacity: 1;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.92rem;
}
.nav a:not(.btn) { color: var(--text-dim); }
.nav a:not(.btn):hover, .nav a:not(.btn)[aria-current="page"] { color: var(--text); }
.nav .signout-form { display: contents; }
.nav .linklike {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--text-dim);
  cursor: pointer;
  background-image: linear-gradient(var(--primary), var(--primary));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size .25s ease, color .15s ease;
}
.nav .linklike:hover { color: var(--text); background-size: 100% 1px; }
[data-open-support][hidden] { display: none !important; }
.nav-menu { position: relative; }
.nav-menu-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem 0.25rem 0.25rem;
  list-style: none;
  cursor: pointer;
  color: var(--text-dim);
  border: 1px solid var(--border);
border-radius: var(--radius-sm);
  transition: border-color .15s var(--ease), background-color .15s var(--ease), color .15s var(--ease);
}
.nav-menu-toggle::-webkit-details-marker { display: none; }
.nav-menu-toggle::marker { content: ""; }
.nav-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--radius);
  background: var(--bg-panel-3);
  border: 1px solid var(--border-2);
  color: var(--text);
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
}
.nav-avatar.is-large { width: 2.4rem; height: 2.4rem; font-size: 1.1rem; }
.nav-menu-name { max-width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-menu-toggle::after {
  content: "";
  width: 0.35em;
  height: 0.35em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  opacity: 0.6;
  transform: translateY(-0.15em) rotate(45deg);
  transition: transform .2s var(--ease);
}
.nav-menu-toggle:hover,
.nav-menu-toggle[data-current] { color: var(--text); border-color: var(--border-2); }
.nav-menu[open] > .nav-menu-toggle { color: var(--text); border-color: var(--border-2); background: var(--bg-panel-2); }
.nav-menu[open] > .nav-menu-toggle::after { transform: translateY(0.1em) rotate(-135deg); }
.nav-menu-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
@keyframes nav-panel-in { from { opacity: 0; transform: translateY(-4px) scale(0.98); } to { opacity: 1; transform: none; } }
.nav-menu-panel {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  z-index: 30;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  padding: 0.35rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.75);
  transform-origin: top right;
  animation: nav-panel-in .16s cubic-bezier(.16, 1, .3, 1);
}
.nav-menu-panel a,
.nav-menu-panel .linklike {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--text-dim);
  background-image: none;
  text-decoration: none;
  transition: background-color .12s ease, color .12s ease;
}
.nav-menu-panel a .icon,
.nav-menu-panel .linklike .icon { flex: none; width: 1rem; height: 1rem; color: var(--text-faint); transition: color .12s ease; }
.nav-menu-panel a:hover,
.nav-menu-panel .linklike:hover,
.nav-menu-panel a:focus-visible,
.nav-menu-panel .linklike:focus-visible { background-color: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary-hover); outline: none; }
.nav-menu-panel a:hover .icon,
.nav-menu-panel .linklike:hover .icon,
.nav-menu-panel a:focus-visible .icon { color: var(--primary-hover); }
.nav-menu-panel a[aria-current="page"] { color: var(--text); background-color: var(--bg-panel-2); }
.nav-menu-panel a[aria-current="page"] .icon { color: var(--primary-hover); }
.nav-account-panel { width: 17rem; }
.nav-account-who { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.7rem 0.8rem; }
.nav-account-id { display: grid; min-width: 0; line-height: 1.3; }
.nav-account-id strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--text); }
.nav-account-id > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-xs); color: var(--text-faint); }
.site-header .nav-menu-panel a.nav-account-pick { display: inline; padding: 0; width: auto; font-size: inherit; font-weight: 500; color: var(--primary-hover); text-decoration: underline; text-underline-offset: 3px; }
.site-header .nav-menu-panel a.nav-account-pick:hover { background: none; color: var(--text); }
.nav-account-group { display: grid; gap: 1px; padding: 0.3rem 0; border-top: 1px solid var(--border); }
.nav-menu-panel .signout-form {
  display: block;
  margin-top: 0;
  padding-top: 0.3rem;
  border-top: 1px solid var(--border);
}
.nav-menu-panel .signout-form .linklike:hover,
.nav-menu-panel .signout-form .linklike:focus-visible { color: var(--down); background-color: color-mix(in srgb, var(--down) 10%, transparent); }
.nav-menu-panel .signout-form .linklike:hover .icon { color: var(--down); }
@media (prefers-reduced-motion: reduce) {
  .nav-menu-panel { animation: none; }
  .nav-menu-toggle::after { transition: none; }
}
.nav-invites-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.6rem;
  list-style: none;
  cursor: pointer;
  color: var(--text);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
}
.nav-invites-toggle::-webkit-details-marker { display: none; }
.nav-invites-toggle::marker { content: ""; }
.nav-invites-count {
  min-width: 1.3em;
  padding: 0 0.3em;
  border-radius: var(--radius);
  background: var(--primary-fill);
  color: var(--on-primary-fill);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
}
.nav-invites-panel { min-width: 280px; max-width: calc(100vw - 32px); }
.nav-invites-panel a { display: flex; flex-direction: column; gap: 0.15rem; }
.nav-invites-head { margin: 0.3rem 0.75rem 0.2rem; font-size: 0.8rem; font-weight: 600; color: var(--text-dim); }
.nav-drawer { display: none; }
@media (max-width: 680px) {
  .site-header .nav-actions > .nav { display: none; }
.site-header .wrap { padding-block: 0.6rem; gap: 0.75rem; }
  .brand-mark { width: 40px; height: 40px; }
  .nav-actions { gap: 0.6rem; margin-left: auto; }
.nav-drawer { display: block; }
  .nav-toggle {
    position: relative;
    z-index: 2;              
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -10px;     
    list-style: none;
    cursor: pointer;
    border-radius: var(--radius-sm);
  }
  .nav-toggle::-webkit-details-marker { display: none; }
  .nav-toggle::marker { content: ""; }
  .nav-toggle:hover { background: var(--bg-tertiary); }
.nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: transform .25s var(--ease), background-color .2s ease;
  }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -7px; }
  .nav-toggle-bars::after { top: 7px; }
  .nav-drawer[open] .nav-toggle-bars { background: transparent; }
  .nav-drawer[open] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-drawer[open] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }
html:has(.nav-drawer[open]) { overflow: hidden; }
  .site-header:has(.nav-drawer[open]) {
    z-index: 1000;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
.nav-drawer[open]::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    animation: nav-fade .3s ease;
  }
  .nav-sheet {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 1;
    width: min(100%, 28rem);
    display: flex;
    flex-direction: column;
padding-top: 4rem;
    background: var(--bg);
    animation: nav-slide .4s var(--ease);
  }
  .nav-sheet-links {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
    padding: 0.5rem 1.25rem 2rem;
-webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 3rem), transparent);
    mask-image: linear-gradient(to bottom, #000 calc(100% - 3rem), transparent);
  }
  .nav-sheet-label {
    margin: 1.6rem 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-faint);
  }
  .nav-sheet-label:first-child { margin-top: 0.5rem; }
  .nav-sheet-links a,
  .nav-sheet-links .linklike {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 0.2rem 0;
    font-family: var(--display);
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.01em;
    text-align: left;
    color: var(--text);
    background-image: none;
    text-decoration: none;
    transition: color .15s ease;
  }
  .nav-sheet-links a:hover,
  .nav-sheet-links .linklike:hover { color: var(--primary); }
  .nav-sheet-links a[aria-current="page"] { color: var(--primary); }
  .nav-sheet-links a[aria-current="page"]::after {
    content: "";
    width: 6px;
    height: 6px;
    margin-left: 0.6rem;
    border-radius: 50%;
    background: currentColor;
  }
  .nav-sheet-links .signout-form { display: block; }
  .nav-sheet-links .signout-form .linklike { color: var(--text-dim); }
  .nav-sheet-cta {
    flex: none;
    display: grid;
    gap: 0.65rem;
    padding: 0.75rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
  }
  .nav-sheet-cta .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    font-size: 1rem;
  }
}
@keyframes nav-slide { from { transform: translateX(100%); } }
@keyframes nav-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .nav-sheet, .nav-drawer[open]::before { animation: none; }
}
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.site-footer .wrap {
  padding-block: 1.25rem;
padding-bottom: 4.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-faint);
}
.site-footer .wrap:not(:last-child) { padding-bottom: 0; }
.site-footer .wrap + .wrap { padding-top: 0.5rem; }
.brand-mark path:first-child { fill: var(--bg); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.site-footer a { color: var(--text-dim); }
.site-footer .linklike {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--text-dim);
  cursor: pointer;
}
.site-footer .linklike:hover { color: var(--text); }
.site-footer nav a,
.site-footer nav .linklike,
.nav > a,
.nav .linklike {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.site-footer nav a[rel~="me"] { min-width: 44px; justify-content: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease, transform .15s ease;
}
.btn:hover { border-color: var(--primary); background: rgba(226, 84, 63, 0.14); color: var(--text); }
.btn:active { transform: none; }
.btn:disabled { color: var(--text-faint); cursor: not-allowed; }
.btn:disabled:hover { border-color: var(--border); background: transparent; }
.btn:disabled:active { transform: none; }
.btn-primary {
  background: var(--primary-fill);
  border-color: var(--primary-fill);
  color: var(--on-primary-fill);
  font-weight: 600;
}
.btn-primary:hover { background: var(--primary-deep); border-color: var(--primary); color: var(--text); }
.btn-primary:disabled { background: var(--bg-panel-2); border-color: var(--border); color: var(--text-faint); }
.btn-primary:disabled:hover { background: var(--bg-panel-2); border-color: var(--border); color: var(--text-faint); }
.btn-quiet {
  background: transparent;
  border-color: var(--border);
  color: var(--text-dim);
}
.btn-quiet:hover { color: var(--text); border-color: var(--primary); background: rgba(226, 84, 63, 0.10); }
.nav a:not(.btn), .site-footer a, .site-footer .linklike {
  background-image: linear-gradient(var(--primary), var(--primary));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size .25s ease, color .15s ease;
  text-decoration: none;
}
.nav a:hover, .site-footer a:hover, .site-footer .linklike:hover { background-size: 100% 1px; }
.nav .nav-menu-panel a, .nav .nav-menu-panel .linklike { background-image: none; }
.site-footer nav a, .site-footer nav .linklike { background-position: 0 calc(50% + 0.75em); }
label { display: block; font-size: 0.88rem; color: var(--text-dim); margin-bottom: 0.4rem; }
input[type="text"], input[type="email"], input[type="number"] {
  width: 100%;
  background: var(--bg-panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 0.65rem 0.8rem;
  font-size: 0.95rem;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--text-dim);
  outline-color: var(--text-dim);
}
.field { margin-bottom: 1.1rem; }
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
}
.check-row:last-of-type { border-bottom: 1px solid var(--border); }
.check-row input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  flex: none;
}
.check-row label { color: var(--text); font-size: 0.92rem; margin: 0; cursor: pointer; }
.check-row ~ .btn-block { margin-top: 1.25rem; }
.consent-group { border: 0; padding: 0; margin: 0.75rem 0 0; min-width: 0; }
.consent-group legend { padding: 0; margin-bottom: 0.25rem; }
.candle-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-faint);
  flex: none;
}
.candle-status.live .candle-dot { background: var(--up); }
.candle-status.down .candle-dot { background: var(--text-faint); }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
.disclosure-heading { font-size: clamp(1.15rem, 2vw, 1.4rem); margin-bottom: 1.25rem; }
.landing-page {
background: var(--bg);
  color: var(--text);
}
h1, h2 {
  font-variation-settings: "opsz" 144;
  line-height: 0.98;
  letter-spacing: -0.03em;
word-spacing: 0.08em;
}
h3, h4 {
  font-variation-settings: "opsz" 24;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.landing-page .btn {
  background: transparent;
  border-color: var(--border-2);
  color: var(--text);
  border-radius: var(--radius);
}
.landing-page .btn:hover {
  background: rgba(226, 84, 63, 0.14);
  border-color: var(--primary);
}
.landing-page .btn-primary {
  background: var(--primary-fill);
  border-color: var(--primary-fill);
  color: var(--on-primary-fill);
}
.landing-page .btn-primary:hover {
  background: var(--primary-deep);
  border-color: var(--primary);
  color: var(--text);
}
.btn-lg {
  padding: 0.95rem 1.6rem;
  font-size: 1rem;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn-lg:active { transform: none; }
.cta { display: flex; gap: 0.85rem; flex-wrap: wrap; }
.landing-page .candle-card {
  width: 100%;
  max-width: 424px;
  justify-self: end;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #16130f 0%, #0d0b0a 100%);
  box-shadow:
    0 40px 80px -34px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(237, 232, 218, 0.05);
  padding: 1.4rem;
}
.landing-page .candle-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--border);
}
.landing-page .candle-symbol {
  font-size: 0.75rem;
  color: var(--text-faint);
}
.landing-page .candle-price {
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.landing-page .candle-price.up { color: var(--up); }
.landing-page .candle-price.down { color: var(--down); }
.candle-plot {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: stretch;
}
.candle-svg { position: relative; width: 100%; height: auto; }
.landing-page .candle-svg {
  background-image:
    repeating-linear-gradient(to bottom, var(--border) 0 1px, transparent 1px 20%),
    repeating-linear-gradient(to right, var(--border) 0 1px, transparent 1px 16.667%);
}
.landing-page .candle-wick { stroke: var(--text-faint); stroke-width: 2; }
.landing-page .candle-body { fill: var(--text-faint); transition: y .3s ease, height .3s ease; }
.landing-page .candle-body.up, .landing-page .candle-wick.up { fill: var(--up); stroke: var(--up); }
.landing-page .candle-body.down, .landing-page .candle-wick.down { fill: var(--down); stroke: var(--down); }
.landing-page .candle-open-line {
  stroke: var(--text-faint);
  stroke-width: 1;
  stroke-dasharray: 3 4;
  opacity: 0.6;
}
.landing-page .candle-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-faint);
  padding-block: 0.9rem;
  padding-left: 0.7rem;
  border-left: 1px solid var(--border);
  text-align: right;
width: calc(12ch + 0.7rem + 1px);
}
.landing-page .candle-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-top: 1.1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}
.candle-samples { margin-left: auto; }
.landing-page .candle-samples { color: var(--text-faint); }
.landing-page .candle-note {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-dim);
min-height: 3lh;
}
.landing-page .candle-note.is-doji { color: var(--primary); }
@media (max-width: 900px) {
.landing-page .candle-card { max-width: none; justify-self: stretch; }
}
.page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(0.75rem, 4vw, 3.5rem);
align-items: start;
  padding-bottom: clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--border);
}
.page-head h1 {
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  max-inline-size: 18ch;
  text-wrap: balance;
}
.page-head > div:last-child > :first-child { margin-top: 0; }
.page-head p {
  max-width: 38.6em;
  color: var(--text-dim);
  line-height: 1.6;
  text-wrap: pretty;
}
.page-head .eyebrow { margin-bottom: 0.9rem; }
@media (max-width: 800px) {
  .page-head { grid-template-columns: 1fr; align-items: start; }
  .page-head h1 { max-inline-size: 20ch; }
}
.band { margin-top: clamp(2rem, 5vw, 3.5rem); }
h1 + p, h2 + p, h3 + p, h4 + p { margin-top: 0.9rem; }
h1 + .eyebrow, h2 + .eyebrow, p + .eyebrow, form + .eyebrow { margin-top: clamp(2rem, 4vw, 3rem); }
.page-head + .empty-state {
  border-top: 0;
  padding-top: 0;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}
.table-scroll { overflow-x: auto; margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.scroll-x { overflow-x: auto; }
.auth-pane { max-width: 30rem; }
.error-pane {
  padding-block: clamp(4rem, 12vw, 7rem);
  text-align: center;
  max-width: 46rem;
}
.error-pane .eyebrow { font-size: 0.75rem; }
.error-pane h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  max-inline-size: 16ch;
  margin-inline: auto;
  text-wrap: balance;
}
.error-pane p { margin-inline: auto; max-width: 48ch; }
.error-pane .cta { justify-content: center; margin-top: clamp(1.75rem, 4vw, 2.5rem); }
.auth-pane h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.band-sm { margin-top: 1.25rem; }
.band-xs { margin-top: 0.75rem; }
.stack-list { display: flex; flex-direction: column; gap: 0.5rem; }
.btn-block { width: 100%; }
.rule-sep {
  margin-block: clamp(2rem, 4vw, 2.75rem);
  border: 0;
  border-top: 1px solid var(--border);
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(0.75rem, 4vw, 3.5rem);
align-items: first baseline;
  max-width: none;
  padding-bottom: clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--border);
}
.section-head h2 {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  max-inline-size: 15ch;
  text-wrap: balance;
}
.section-head p {
  margin-top: 0;
  max-width: 34em;
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.6;
  text-wrap: pretty;
}
.landing-page .section-head { border-bottom: 0; padding-bottom: 0; }
.landing-page .section-head h2 { font-size: clamp(var(--fs-xl), 3.4vw, var(--fs-2xl)); max-inline-size: 18ch; }
.landing-page .section-head p { font-size: var(--fs-base); }
@media (min-width: 1000px) {
.landing-page #faq > .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); column-gap: clamp(0.75rem, 4vw, 3.5rem); align-items: start; }
  .landing-page #faq .section-head { grid-template-columns: minmax(0, 1fr); position: sticky; top: 6rem; }
  .landing-page #faq .faq { margin-top: 0; }
}
@media (max-width: 800px) {
  .section-head { grid-template-columns: 1fr; }
  .section-head h2 { max-inline-size: 20ch; }
  .section-head p { margin-top: 0.9rem; }
}
.landing-page .proof-section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.landing-page .lp-proof {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.landing-page .lp-proof-intro { position: sticky; top: 6.5rem; }
.landing-page .lp-proof-intro h2 { font-size: clamp(var(--fs-2xl), 4.4vw, 3.25rem); max-inline-size: 11ch; line-height: 1; }
.landing-page .lp-proof-lede { margin-top: 1.1rem; font-size: 1.02rem; line-height: 1.6; color: var(--text-dim); }
.landing-page .lp-proof-empty {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text-dim);
}
.landing-page .lp-proof-empty strong { color: var(--accent); font-weight: 600; }
.landing-page .lp-proof-note { margin-top: 1.5rem; font-size: 0.9rem; line-height: 1.6; color: var(--text-faint); }
.landing-page .lp-proof-note a { color: var(--text-dim); }
.landing-page .lp-checks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border-2); }
.landing-page .lp-checks > li { border-bottom: 1px solid var(--border); }
.landing-page .lp-check {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "what state" "why why" "go go";
  gap: 0.35rem 1.5rem;
  padding: 1.35rem 0.25rem 1.3rem;
  color: var(--text);
  text-decoration: none;
  background-image: none;
  transition: background-color .2s var(--ease);
}
.landing-page .lp-check:hover { background-color: rgba(237, 232, 218, 0.025); }
.landing-page .lp-check:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.landing-page .lp-check-what { grid-area: what; font-family: var(--display); font-size: 1.2rem; font-weight: 600; line-height: 1.25; }
.landing-page .lp-check-why { grid-area: why; font-size: 0.92rem; line-height: 1.55; color: var(--text-dim); max-width: 34em; }
.landing-page .lp-check-state {
  grid-area: state;
  align-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.2rem;
  font-size: var(--fs-sm);
  color: var(--text-dim);
  white-space: nowrap;
}
.landing-page .lp-check-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--text-faint); }
.landing-page .lp-check-state.is-on { color: var(--up); }
.landing-page .lp-check-state.is-on::before { background: var(--up); }
.landing-page .lp-check-state.is-empty { color: var(--accent); }
.landing-page .lp-check-state.is-empty::before { background: transparent; border: 1px solid var(--accent); }
.landing-page .lp-check-state.is-off { color: var(--down); }
.landing-page .lp-check-state.is-off::before { background: var(--down); }
.landing-page .lp-check-state .mono { color: var(--text); }
.landing-page .lp-check-go { grid-area: go; margin-top: 0.4rem; font-size: var(--fs-sm); font-weight: 500; color: var(--primary-hover); }
.landing-page .lp-check-go::after {
  content: "";
  display: inline-block;
  width: 1.25rem;
  height: 1px;
  margin-left: 0.6rem;
  vertical-align: middle;
  background: currentColor;
  transition: width .2s var(--ease);
}
.landing-page .lp-check:hover .lp-check-go::after { width: 2.25rem; }
@media (max-width: 900px) {
  .landing-page .lp-proof { grid-template-columns: minmax(0, 1fr); }
  .landing-page .lp-proof-intro { position: static; }
  .landing-page .lp-proof-intro h2 { max-inline-size: 14ch; }
}
.landing-page .absent-list {
  list-style: none;
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
column-gap: clamp(1.75rem, 4vw, 3.5rem);
  row-gap: 0;
  border-top: 1px solid var(--border);
}
.landing-page .absent-list li {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
@media (max-width: 720px) {
  .landing-page .absent-list { grid-template-columns: 1fr; }
}
.landing-page .absent-list h3 {
  font-size: 1.02rem;
  margin-bottom: 0.4rem;
display: grid;
  grid-template-columns: 1.15rem minmax(0, 1fr);
  column-gap: 0.7rem;
  align-items: start;
}
.landing-page .absent-list h3::before {
  content: "";
  display: inline-block;
  height: 1px;
  margin-top: 0.62em;
  background: var(--text-faint);
}
.landing-page .absent-list p { padding-left: 1.85rem; }
.landing-page .absent-list p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 46ch;
}
.landing-page .steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(2rem, 4vw, 3rem);
  column-gap: clamp(1.5rem, 3vw, 2.5rem);
  row-gap: clamp(1.75rem, 3vw, 2.5rem);
}
@media (max-width: 860px) {
  .landing-page .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .landing-page .steps { grid-template-columns: 1fr; }
}
.landing-page .steps > li {
  background: none;
  border: 0;
  border-radius: 0;
  border-top: 1px solid var(--border-2);
  padding: 1.1rem 0 0;
}
.landing-page .steps li::before {
  content: counter(step);
  position: static;
  display: block;
  font-family: var(--mono);
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--text-faint);
  line-height: 1;
  margin-bottom: 1rem;
}
.landing-page .steps li h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.landing-page .steps li p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-dim);
}
@keyframes hero-rise { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: no-preference) {
  .landing-page .candle-card { animation: hero-rise .9s var(--ease) .15s both; }
}
html.js-reveal .absent-list > li h3::before {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .55s var(--ease) calc(var(--i, 0) * 70ms + .3s);
}
html.js-reveal .absent-list > li.in-view h3::before { transform: none; }
.lit-section {
  --text:       var(--lit-ink);
  --text-dim:   var(--lit-ink-dim);
  --text-faint: var(--lit-ink-dim);
  --text-muted: var(--lit-ink-dim);
  --border:     var(--lit-rule);
  --border-2:   var(--lit-rule-2);
  --bg-panel:   rgba(23, 20, 15, 0.045);
  background: var(--lit-bg);
  color: var(--lit-ink);
  padding-block: clamp(3.75rem, 8vw, 6.5rem);
}
.lit-section,
.lit-section + section { border-top: 0; }
.lit-section a:hover { text-decoration-color: var(--lit-accent); }
.lit-section :focus-visible { outline-color: var(--lit-accent); }
.lit-section .btn-primary {
  background: var(--lit-ink);
  border-color: var(--lit-ink);
  color: var(--lit-on-ink);
}
.lit-section .btn-primary:hover {
  background: var(--lit-accent);
  border-color: var(--lit-accent);
  color: var(--lit-on-ink);
}
.landing-page .lit-section .btn:not(.btn-primary):hover { background: rgba(165, 47, 34, 0.10); border-color: var(--lit-accent); color: var(--lit-ink); }
.race {
  margin: 0;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid var(--lit-rule-2);
  border-radius: var(--radius);
  background: #f1ece1;
  box-shadow: 0 36px 70px -44px rgba(23, 20, 15, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.race-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--lit-rule);
}
.race-side {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--lit-ink-dim);
  transition: color .3s ease;
}
.race-them { justify-self: end; }
.race-side i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; }
.race-you i  { background: var(--lit-ink); }
.race-them i { background: var(--lit-ink-dim); }
.race[data-lead="you"] .race-you,
.race[data-lead="them"] .race-them { color: var(--lit-ink); font-weight: 600; }
.race-clock {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--lit-ink);
  font-variant-numeric: tabular-nums;
  min-width: 5ch;
  text-align: center;
}
.race.is-done .race-clock { color: var(--lit-accent); }
.race-svg { display: block; width: 100%; height: auto; margin-block: 0.9rem 0.5rem; overflow: visible; }
.race-grid   { stroke: var(--lit-rule); stroke-width: 1; }
.race-base   { stroke: var(--lit-rule-2); stroke-width: 1; stroke-dasharray: 3 5; }
.race-buzzer { stroke: var(--lit-ink); stroke-width: 2; }
.race-line   { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.race-line-you  { stroke: var(--lit-ink); stroke-width: 3.25; }
.race-line-them { stroke: var(--lit-ink-dim); stroke-width: 2.25; }
.race-start  { fill: var(--lit-ink); stroke: #f1ece1; stroke-width: 2.5; }
.race-end    { stroke: #f1ece1; stroke-width: 2.5; transform-box: fill-box; transform-origin: center; }
.race-end-you  { fill: var(--lit-ink); }
.race-end-them { fill: var(--lit-ink-dim); }
.race-armed .race-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.race-armed.is-running .race-line {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset var(--race-ms, 6.5s) linear;
}
.race-armed .race-end { opacity: 0; transform: scale(0.2); transition: opacity .3s ease, transform .5s cubic-bezier(.16, 1, .3, 1); }
.race-armed.is-done .race-end { opacity: 1; transform: none; }
@keyframes race-win {
  0%   { stroke-width: 2.5; stroke: #f1ece1; }
  50%  { stroke-width: 9; stroke: rgba(165, 47, 34, 0.18); }
  100% { stroke-width: 2.5; stroke: #f1ece1; }
}
.race-armed.is-done .race-end-you { animation: race-win 1.4s ease-out .3s 2; }
.race-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--lit-rule);
  font-size: 0.88rem;
  color: var(--lit-ink-dim);
}
.race-status { min-height: 1.5em; }
.race-replay {
  flex: none;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--lit-rule-2);
  border-radius: var(--radius);
  background: transparent;
  font-size: 0.75rem;
  color: var(--lit-ink);
  cursor: pointer;
}
.race-replay:hover { background: rgba(23, 20, 15, 0.06); }
.duel-chart { --you: var(--primary); --them: var(--text-faint); margin: 0; }
.duel-chart-svg { display: block; width: 100%; height: auto; overflow: visible; }
.duel-claim { opacity: 0.17; }
.duel-claim-you  { fill: var(--you); }
.duel-claim-them { fill: var(--them); opacity: 0.22; }
.duel-chart-line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.duel-chart-you  { stroke: var(--you); stroke-width: 3; }
.duel-chart-dot-you  { fill: var(--you); }
.duel-chart-dot-them { fill: var(--them); }
.duel-chart-dot-start { fill: var(--text); stroke: var(--bg); stroke-width: 2.5; }
html.js-reveal .duel-chart .duel-claim {
  transform: scaleY(0);
  transform-box: fill-box;
  transform-origin: center bottom;
  transition: transform .7s var(--ease) calc(.25s + var(--n, 0) * .35s);
}
html.js-reveal :is(.duel-chart.in-view, .in-view .duel-chart) .duel-claim { transform: none; }
html.js-reveal .duel-chart .duel-chart-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.6s cubic-bezier(.45, .05, .35, 1) 1.1s;
}
html.js-reveal :is(.duel-chart.in-view, .in-view .duel-chart) .duel-chart-line { stroke-dashoffset: 0; }
html.js-reveal .duel-chart .duel-chart-dot { opacity: 0; transition: opacity .4s ease 2.5s; }
html.js-reveal :is(.duel-chart.in-view, .in-view .duel-chart) .duel-chart-dot { opacity: 1; }
.landing-page .origin {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.landing-page .origin-copy h2 {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  max-inline-size: 14ch;
  text-wrap: balance;
}
.landing-page .origin-copy > p {
  margin-top: 1.1rem;
  max-width: 34em;
  line-height: 1.65;
  color: var(--text-dim);
  text-wrap: pretty;
}
.landing-page .origin-copy > h2 + p { margin-top: 1.5rem; }
.landing-page .origin-note { margin-top: 1.5rem; color: var(--text-faint); font-size: 0.85rem; }
.landing-page .origin-note a { color: var(--text-dim); }
.origin-mark { margin: 0; justify-self: center; width: min(100%, 300px); }
.origin-mark svg { width: 100%; height: auto; overflow: visible; }
.masu { fill: none; stroke-width: 14.4; stroke-linecap: square; }
.masu-1 { stroke: var(--washi-dim); }
.masu-2 { stroke: var(--washi); }
.masu-3 { fill: var(--shu); stroke: none; transform-box: fill-box; transform-origin: center; }
@keyframes masu-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes masu-pop  { from { transform: scale(0); } }
.masu-svg { display: block; width: 100%; height: auto; overflow: visible; }
.brand-mark path { stroke-linecap: square; }
.brand-mark path:nth-child(4) { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .masu-anim .masu-1,
  .masu-anim .masu-2 { stroke-dasharray: 1; animation: masu-draw 1.4s cubic-bezier(.45, .05, .35, 1) .15s both; }
  .masu-anim .masu-2 { animation-delay: .65s; }
  .masu-anim .masu-3 { animation: masu-pop .6s cubic-bezier(.16, 1, .3, 1) 1.5s both; }
.brand:hover .brand-mark path:nth-child(2),
  .brand:hover .brand-mark path:nth-child(3),
  .landing-page .brand-mark path:nth-child(2),
  .landing-page .brand-mark path:nth-child(3) { stroke-dasharray: 1; animation: masu-draw .8s cubic-bezier(.45, .05, .35, 1) both; }
  .brand:hover .brand-mark path:nth-child(3),
  .landing-page .brand-mark path:nth-child(3) { animation-delay: .25s; }
  .brand:hover .brand-mark path:nth-child(4),
  .landing-page .brand-mark path:nth-child(4) { animation: masu-pop .45s cubic-bezier(.16, 1, .3, 1) .6s both; }
.landing-page .brand:hover .brand-mark path:nth-child(2),
  .landing-page .brand:hover .brand-mark path:nth-child(3) { animation-name: masu-redraw; }
  .landing-page .brand:hover .brand-mark path:nth-child(4) { animation-name: masu-repop; }
}
@keyframes masu-redraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes masu-repop  { from { transform: scale(0); } }
.error-mark { width: 120px; margin: 0 auto clamp(1.5rem, 4vw, 2.25rem); }
@keyframes masu-loop {
  0%       { stroke-dashoffset: 1; }
  40%, 60% { stroke-dashoffset: 0; }
  100%     { stroke-dashoffset: -1; }
}
.chart-loader {
  display: none;
  position: absolute;
  inset: 0;
  place-items: center;
  pointer-events: none;
}
.chart-loader .masu-svg { width: 64px; opacity: 0.85; }
[aria-busy="true"] .chart-loader { display: grid; }
@media (prefers-reduced-motion: no-preference) {
  .masu-loop .masu-1,
  .masu-loop .masu-2 { stroke-dasharray: 1; animation: masu-loop 2.4s cubic-bezier(.45, .05, .35, 1) infinite; }
  .masu-loop .masu-2 { animation-delay: .3s; }
}
.banner.has-mark { align-items: center; }
.banner.has-mark::before { display: none; }
.banner-mark { flex: none; width: 2.5rem; }
.result-icon.result-mark,
.is-win .result-icon.result-mark { border: 0; border-radius: 0; background: none; animation: none; }
.draft-verdict:has(.verdict-mark) {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 1.25rem;
  align-items: center;
}
.verdict-mark { grid-row: span 2; width: 3.25rem; }
html.js-reveal .origin .masu-1,
html.js-reveal .origin .masu-2 {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.4s cubic-bezier(.45, .05, .35, 1) .2s;
}
html.js-reveal .origin .masu-2 { transition-delay: .7s; }
html.js-reveal .origin.in-view .masu-1,
html.js-reveal .origin.in-view .masu-2 { stroke-dashoffset: 0; }
html.js-reveal .origin .masu-3 { transform: scale(0); transition: transform .6s cubic-bezier(.16, 1, .3, 1) 1.6s; }
html.js-reveal .origin.in-view .masu-3 { transform: none; }
@media (max-width: 860px) {
  .landing-page .origin { grid-template-columns: 1fr; }
  .origin-mark { width: min(60%, 220px); justify-self: start; grid-row: 1; }
}
.landing-page .closer-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3.5rem, 9vw, 7rem);
}
.landing-page .closer-section > * { position: relative; z-index: 1; }
.landing-page .closer { text-align: center; }
.landing-page .closer h2 {
  font-size: var(--fs-display);
  max-width: 15ch;
  margin-inline: auto;
  text-wrap: balance;
}
.landing-page .closer p {
  margin-top: 1.1rem;
  margin-inline: auto;
  max-width: 44ch;
  color: var(--text-dim);
}
.landing-page .closer .cta { margin-top: 2rem; justify-content: center; }
@media (max-width: 560px) {
  .landing-page .closer .cta .btn { width: 100%; text-align: center; }
}
.wick {
  display: grid;
  gap: 0.4rem;
}
.wick-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  cursor: help;
}
.wick-head .mono { color: var(--text); font-weight: 600; }
.wick-labels {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  gap: 0.5rem 1.25rem;
}
.wick-labels .mid { color: var(--text-faint); text-align: center; }
.wick-labels .wick-target { text-align: right; }
@media (max-width: 560px) {
  .wick-labels { grid-template-columns: 1fr 1fr; }
  .wick-labels .wick-target { grid-column: 2; grid-row: 1; }
  .wick-labels .mid { grid-column: 1 / -1; grid-row: 2; }
}
.wick-floor, .wick-target { font-weight: 700; }
.wick-floor { color: var(--down); }
.wick-target { color: var(--up); }
.wick-labels .mono { color: var(--text); }
.wick-bar {
  position: relative;
  height: 10px;
  border-radius: 2px;
  overflow: hidden;
  background: var(--bg-panel-2);
  border: 1px solid var(--border);
}
.wick-fill {
  position: absolute;
  inset: 0;
  height: 10px;
  width: 0%;
  background: var(--up);
  transition: width .6s cubic-bezier(.16,.8,.3,1), background-color .3s ease;
}
.wick-fill.breach { background: var(--down); }
.wick-fill.below-start { background: var(--down); }
.wick-fill.cushioned { background: linear-gradient(to right, var(--text-faint) 0 var(--cushion), var(--up) var(--cushion)); }
.wick-fill.gold { background: var(--gold); }
.wick-zero {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--text);
opacity: 0.9;
  transform: translateX(-1.5px);
}
.steps { list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.75rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.5rem;
  top: 1.5rem;
line-height: calc(1.15 * clamp(1.1rem, 2vw, 1.4rem));
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--primary);
}
.steps li h3 { margin-bottom: 0.4rem; }
.steps li p { font-size: 0.92rem; color: var(--text-dim); }
.disclosure,
.risk-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-panel);
  padding: 1.75rem;
}
.disclosure ul { list-style: none; display: grid; gap: 0.85rem; }
.disclosure li {
  padding-left: 1.1rem;
  position: relative;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.disclosure li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--text-faint);
}
.disclosure strong { color: var(--text); font-weight: 600; }
.risk-box { margin-block: 2rem; }
.risk-box h2 { font-size: 1.05rem; margin-bottom: 1rem; }
.risk-box ul { list-style: none; display: grid; gap: 0.6rem; }
.risk-box li { padding-left: 1.1rem; position: relative; font-size: 0.9rem; color: var(--text-dim); }
.risk-box li::before { content: "–"; position: absolute; left: 0; color: var(--text-faint); }
.risk-box p { margin-top: 1rem; font-size: 0.9rem; }
.what-yodoya-is { font-size: 0.9rem; color: var(--text-dim); max-width: 34em; }
.legal-callout { padding: 0.9rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); }
.tier-badge {
  margin-left: 0.5rem;
  padding: 0.1rem 0.45rem;
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  color: var(--primary);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  vertical-align: 0.1em;
}
.faq {
  display: block;
  max-width: 34em;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid var(--border);
}
.faq details {
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: none;
  padding: 0;
}
.faq summary {
  position: relative;
  cursor: pointer;
  padding: 1.15rem 2.5rem 1.15rem 0;
  font-family: var(--display);
  font-variation-settings: "opsz" 24;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
  list-style: none;
  transition: color .15s ease;
}
.faq summary:hover { color: var(--primary); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 1.15rem;
  color: var(--text-faint);
  font-family: var(--mono);
}
.faq details[open] summary::after { content: "\2212"; color: var(--primary); }
.faq p {
  margin-top: 0;
  padding-bottom: 1.3rem;
  max-width: 34em;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--text-dim);
}
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-rise { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(10, 10, 10, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: modal-fade .2s ease-out;
}
.modal-backdrop[hidden] { display: none; }
@keyframes modal-fade-out { to { opacity: 0; } }
@keyframes modal-sink { to { opacity: 0; transform: translateY(10px) scale(.98); } }
.modal-backdrop.closing { animation: modal-fade-out .15s ease-in forwards; }
.modal-backdrop.closing .modal { animation: modal-sink .15s ease-in forwards; }
.modal {
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 3rem);
  max-height: calc(100dvh - 3rem);
  overflow-y: auto;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.7);
  padding: 1.75rem;
  animation: modal-rise .25s cubic-bezier(.16,.8,.3,1);
}
.modal.modal-wide { max-width: 560px; }
@media (max-width: 480px) {
  .modal-backdrop:has(.modal-wide) { padding: 0.85rem; }
  .modal.modal-wide { padding: 1.1rem; }
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}
.modal-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
padding: 0.65rem;
  margin: -0.65rem;
}
.modal-close:hover { color: var(--text); }
.modal .error { color: var(--down); font-size: 0.88rem; margin-top: 0.75rem; display: none; }
.modal .error.show { display: block; }
.account-card { display: flex; flex-direction: column; gap: 1rem; transition: background-color .2s ease, border-color .2s ease; margin-top: 1rem;}
.account-card .head { display: flex; justify-content: space-between; align-items: baseline; }
.account-card .status {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-faint);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.15rem 0.6rem;
}
.account-card .status.active { color: var(--up); border-color: rgba(16, 185, 129, 0.35); }
.account-card .status.breached { color: var(--down); border-color: rgba(244, 63, 94, 0.35); }
.account-card .status.funded, .account-card .status.passed { color: var(--gold); border-color: rgba(255, 180, 84, 0.35); }
.account-card .figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.account-card .figures .num { display: block; font-size: 1.15rem; }
.account-card .figures .label { display: block; font-size: 0.75rem; color: var(--text-faint); margin-bottom: 0.2rem; }
.account-card .actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: auto; }
@media (max-width: 480px) {
  .account-card .figures { grid-template-columns: repeat(2, 1fr); }
}
.skeleton, .sk { position: relative; overflow: hidden; background: var(--bg-panel); }
.skeleton { min-height: 9rem; }
.sk {
  display: inline-block;
  vertical-align: middle;
height: 0.72em;
  width: var(--sk-w, 100%);
  border-radius: var(--radius);
  background: var(--bg-tertiary);
}
.skeleton::after, .sk::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
  animation: skeleton-sweep 1.6s ease-in-out infinite;
}
@keyframes skeleton-sweep {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}
.ticker-strip .row.sk-row {
  gap: 0.3rem;
  border-color: transparent;
  cursor: default;
}
.empty-state {
  border: 0;
  border-top: 1px solid var(--border-2);
  border-radius: 0;
  background: none;
  padding: 1.4rem 0 0;
  text-align: left;
  max-width: 34em;
  color: var(--text-dim);
}
.empty-state .btn { margin-top: 1.25rem; }
.feed-flag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-bottom: 1.5rem;
}
.feed-flag .candle-dot { background: var(--down); }
.feed-flag.healthy .candle-dot { background: var(--up); }
.banner {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-panel);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  animation: banner-in .35s var(--ease);
}
.banner::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 0.4rem;
  border-radius: 50%;
  background: var(--text-dim);
  flex: none;
}
.banner.gold { background: rgba(255, 180, 84, 0.08); border-color: rgba(255, 180, 84, 0.3); }
.banner.gold::before { background: var(--gold); }
.banner.danger { background: rgba(244, 63, 94, 0.08); border-color: rgba(244, 63, 94, 0.3); }
.banner.ok { background: var(--success-bg); border-color: rgba(16, 185, 129, 0.3); }
.banner.ok::before { background: var(--success); }
.status-h { font-size: clamp(1.2rem, 2vw, 1.45rem); margin: 2.5rem 0 0.75rem; }
.banner.danger::before { background: var(--down); }
.banner > div { flex: 1; }
.banner .btn { margin-top: 0.6rem; }
@keyframes banner-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.breach-details { margin-top: 0.85rem; }
.breach-details summary { cursor: pointer; color: var(--text-dim); font-size: 0.85rem; }
.breach-details summary:hover { color: var(--text); }
.breach-details table { margin-top: 0.75rem; }
.rule-meter {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-panel);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.rule-meter-equity-num {
  font-size: 2.6rem;
  font-weight: 600;
  font-family: var(--mono);
  line-height: 1;
  transition: color .2s ease;
white-space: nowrap;
}
.rule-meter-equity-num.up { color: var(--up); }
.rule-meter-equity-num.down { color: var(--down); }
.rule-meter .wick-bar { height: 12px; border-radius: var(--radius); }
.rule-meter-stat .label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rule-meter-stat .num { font-size: 1.1rem; transition: color .2s ease; }
@keyframes figure-flash {
  from { background-color: rgba(255, 180, 84, 0.18); }
  to { background-color: transparent; }
}
.figure-flash { animation: figure-flash 420ms var(--ease); border-radius: var(--radius-sm); }
.tabs {
  position: relative;
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
}
.tabs::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: var(--tab-x, 0px);
  width: var(--tab-w, 0px);
  height: 2px;
  background: var(--primary);
  transition: left .25s var(--ease), width .25s var(--ease);
}
.tab {
  background: none;
  border: none;
  margin-bottom: -1px;
  padding: 0.6rem 0.9rem;
  color: var(--text-dim);
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: color .15s ease;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); }
@keyframes tab-panel-in { from { opacity: 0; } to { opacity: 1; } }
[data-tab-panel] { animation: tab-panel-in .2s var(--ease); }
.terminal-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) 2.6fr 1fr;
  align-items: start;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 1101px) {
  .watchlist-panel, .chart-panel { min-height: 0; }
}
@media (max-width: 1100px) {
  .terminal-grid { grid-template-columns: minmax(220px, 1fr) 1.6fr; }
  .terminal-grid > .col:nth-child(3) { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .terminal-grid { grid-template-columns: 1fr; }
  .terminal-grid > .col:nth-child(2) { order: 1; }
  .terminal-grid > .col:nth-child(3) { order: 2; }
  .terminal-grid > .col:nth-child(1) { order: 3; }
.terminal-section:not(.duel-room) .ticket-action .side-buttons {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;
  }
  .terminal-section:not(.duel-room) .ticket-action .side-buttons .btn { min-height: 48px; width: 100%; }
}
.terminal-grid > .col { display: grid; gap: 1rem; }
.panel {
  display: flex;
  flex-direction: column;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.7rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.panel-head h3 { margin: 0; }
.hero-panel {
  position: relative;
  overflow: hidden;
  border-color: var(--border-2);
}
.chart-toolbar { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.chart-interval-picker { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chart-timezone-select {
  width: auto;
  padding: 0.35rem 1.6rem 0.35rem 0.6rem;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
}
@media (pointer: coarse) { .chart-timezone-select { min-height: 44px; } }
.chart-tools { display: flex; gap: 0.4rem; align-items: center; }
.chart-interval-picker .btn,
.chart-tools .btn {
min-height: 32px;
  padding: 0.25rem 0.7rem;
  font-size: 0.78rem;
  background: transparent;
  border-color: var(--border);
}
@media (pointer: coarse) {
  .chart-interval-picker .btn, .chart-tools .btn { min-height: 44px; padding-inline: 0.9rem; }
}
.chart-interval-picker .btn.active,
.chart-tools .btn[aria-pressed="true"] { border-color: var(--primary); background: var(--bg-panel-2); color: var(--primary); }
.chart-panel .tv-chart-wrap { position: relative; width: 100%; height: auto; aspect-ratio: 4 / 3; min-height: 420px; margin-bottom: 0.75rem; }
.chart-legend { position: absolute; top: 6px; left: 8px; z-index: 3; pointer-events: none; font-size: 0.75rem; white-space: nowrap; color: var(--text); }
.chart-measure { position: absolute; z-index: 3; pointer-events: none; border: 1px solid; }
.chart-measure.up { border-color: var(--up); background: color-mix(in srgb, var(--up) 14%, transparent); }
.chart-measure.down { border-color: var(--down); background: color-mix(in srgb, var(--down) 14%, transparent); }
.chart-measure-label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius-sm);
  background: var(--bg-panel-2);
  color: var(--text);
  font-size: 0.75rem;
  white-space: nowrap;
}
.chart-measure.up .chart-measure-label { bottom: calc(100% + 4px); }
.chart-measure.down .chart-measure-label { top: calc(100% + 4px); }
@media (min-width: 1101px) {
.chart-panel .tv-chart-wrap { flex: 1; min-height: 520px; aspect-ratio: auto; margin-bottom: 0.5rem; }
}
#tv-chart-container { position: relative; width: 100%; height: 100%; }
.order-ticket { display: flex; flex-direction: column; }
.equity-readout { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.85rem; }
.equity-readout .label { display: block; font-size: 0.75rem; color: var(--text-faint); margin-bottom: 0.2rem; }
.equity-readout .num { font-size: 1.4rem; font-weight: 600; }
#equity-current-delta { font-size: 0.95rem; }
#equity-current-delta.up { color: var(--up); }
#equity-current-delta.down { color: var(--down); }
.equity-chart-wrap { position: relative; }
.equity-curve { display: block; width: 100%; height: auto; }
.equity-curve-sk { display: block; width: 100%; aspect-ratio: 3 / 1; border-radius: var(--radius-sm); }
.equity-line { fill: none; stroke: var(--text); stroke-width: 1.5; }
.equity-area { stroke: none; }
.equity-area.up { fill: url(#equity-fill-up); }
.equity-area.down { fill: url(#equity-fill-down); }
.equity-floor, .equity-target { stroke: var(--text-faint); stroke-width: 1; stroke-dasharray: 4 4; }
.equity-target { stroke: var(--text-dim); }
.equity-crosshair { stroke: var(--border-2); stroke-width: 1; }
.equity-dot { fill: var(--bg-card); stroke: var(--text); stroke-width: 1.5; }
.equity-hover-dot { fill: var(--bg-card); stroke-width: 1.5; }
.equity-dot.up, .equity-hover-dot.up { stroke: var(--up); }
.equity-dot.down, .equity-hover-dot.down { stroke: var(--down); }
.equity-line-label {
  position: absolute;
  right: 0.4rem;
  transform: translateY(-50%);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--mono);
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  pointer-events: none;
}
.equity-floor-label { color: var(--down); }
.equity-target-label { color: var(--up); }
.equity-hover-tooltip {
  position: absolute;
  transform: translate(-50%, -100%);
  margin-top: -10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.35rem 0.6rem;
  box-shadow: 0 16px 32px -16px rgba(0, 0, 0, 0.55);
  font-size: 0.78rem;
  white-space: nowrap;
  pointer-events: none;
  z-index: 5;
}
@keyframes row-enter {
  from { opacity: 0; transform: translateY(-6px) scale(.98); background-color: rgba(255, 180, 84, 0.16); }
  60%  { opacity: 1; transform: none; }
  to   { background-color: transparent; }
}
tr.row-enter { animation: row-enter .6s var(--ease); }
table.dj-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
table.dj-table th, table.dj-table td { text-align: left; padding: 0.85rem 1.25rem 0.85rem 0; border-bottom: 1px solid var(--border); }
table.dj-table th:last-child, table.dj-table td:last-child { padding-right: 0; }
table.dj-table thead th { border-bottom-color: var(--border-2); }
table.dj-table tbody tr { transition: background-color .15s ease; }
table.dj-table tbody tr:hover { background: rgba(237, 232, 218, 0.03); }
table.dj-table td.num, table.dj-table td .num { font-variant-numeric: tabular-nums; }
table.dj-table th.num, table.dj-table td.num { text-align: right; }
table.dj-table th { color: var(--text-faint); font-family: var(--mono); font-weight: 500; font-size: 0.75rem; }
table.dj-table tbody tr:last-child td { border-bottom: none; }
table.dj-table .btn { min-height: 44px; padding: 0.3rem 0.9rem; font-size: 0.82rem; }
.row-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.btn-close-now { border-color: var(--down); color: var(--down); }
.btn-close-now:hover:not(:disabled) { background: var(--down-fill); color: var(--on-fill); }
#panel-positions table.dj-table { table-layout: fixed; }
#positions-body td { white-space: nowrap; }
#panel-positions thead th:nth-child(1) { width: 9%; }   
#panel-positions thead th:nth-child(2) { width: 6%; }   
#panel-positions thead th:nth-child(3) { width: 10%; }  
#panel-positions thead th:nth-child(4) { width: 5%; }   
#panel-positions thead th:nth-child(5),
#panel-positions thead th:nth-child(6) { width: 10%; }  
#panel-positions thead th:nth-child(7) { width: 10%; }  
#panel-positions thead th:nth-child(8) { width: 12%; }  
#live-pnl-me, #live-pnl-opp { display: inline-block; min-width: calc(20ch + 1rem); text-align: right; white-space: nowrap; }
#live-status-me, #live-status-opp { display: inline-block; min-width: calc(9ch + 1rem); text-align: center; }
#duel-my-equity-display, #duel-opponent-equity { display: inline-block; min-width: 11ch; }
#duel-my-pnl-display, #duel-opponent-pnl { display: inline-block; min-width: 20ch; white-space: nowrap; }
#hud-spread { display: inline-block; min-width: calc(15ch + 1rem); text-align: center; }
.rule-meter-stat .num { white-space: nowrap; }
#duel-stat-opp-pnl { display: block; white-space: normal; min-height: 2lh; }
#ticket-margin-hint { min-height: 3lh; }
#duel-time-left, #hud-time-left { display: inline-block; min-width: 6ch; text-align: right; }
.duel-clock #duel-time-left { text-align: center; }
.pos-symbol {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}
.pos-symbol:hover { text-decoration-color: var(--primary); }
.panel h3 { margin-bottom: 1rem; }
.panel + .panel { border-top: 1px solid var(--border); }
.empty-row td { color: var(--text-faint); text-align: center; padding: 1.25rem 0; }
.empty-row td .icon { width: 0.9rem; height: 0.9rem; vertical-align: -0.1em; margin-right: 0.3rem; opacity: 0.7; }
.duel-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 2.5rem 1rem;
  text-align: center;
}
.duel-empty-state p { margin: 0; max-width: 40ch; }
.ticker-bar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 1101px) {
  .ticker-bar { flex: 1; min-height: 0; }
}
.ticker-search {
  width: 100%;
  min-height: 44px;
  background: var(--bg-panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 0.6rem 0.75rem;
  font-size: 0.88rem;
}
.ticker-search:focus-visible { border-color: var(--primary); }
.ticker-search::placeholder { color: var(--text-faint); }
.ticker-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  align-content: start;
  gap: 0.6rem;
  overflow-y: auto;
}
@media (min-width: 1101px) {
  .ticker-strip { flex: 1; min-height: 0; }
}
@media (max-width: 900px) {
  .ticker-strip { max-height: 38vh; }
}
.ticker-strip .ticker-empty { grid-column: 1 / -1; padding: 0.75rem 0.5rem; }
.ticker-strip .row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  background: transparent;
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.ticker-strip .row:hover { background: var(--bg-panel-3); }
@keyframes row-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.ticker-strip .row.row-in { animation: row-in .3s var(--ease) both; animation-delay: calc(var(--i, 0) * 25ms); }
.ticker-strip .row.active { border-color: var(--primary); background: var(--bg-panel-2); }
@keyframes flash-up { from { color: var(--up); } to { color: inherit; } }
@keyframes flash-down { from { color: var(--down); } to { color: inherit; } }
.ticker-strip .row.flash-up .px { animation: flash-up 420ms ease-out; }
.ticker-strip .row.flash-down .px { animation: flash-down 420ms ease-out; }
@media (prefers-reduced-motion: reduce) {
  .ticker-strip .row.flash-up .px,
  .ticker-strip .row.flash-down .px { animation: none; }
}
.ticker-strip .row .sym { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.01em; }
.ticker-strip .row .px { font-size: 0.9rem; }
.ticker-strip .row .chg { font-size: 0.75rem; }
.ticker-strip .row .chg.up { color: var(--up); }
.ticker-strip .row .chg.down { color: var(--down); }
.ticker-strip .row .chg.muted { color: var(--text-faint); }
.lev-col { display: none; }
body.has-leverage .lev-col { display: table-cell; }
.ticket-config .field { margin-bottom: 0.85rem; }
.price-pct-pair { display: grid; grid-template-columns: 1fr 7rem; gap: 0.5rem; }
@media (max-width: 480px) { .price-pct-pair { grid-template-columns: 1fr; } }
.protective-fields { margin-bottom: 0.85rem; }
.protective-fields summary { cursor: pointer; color: var(--text-dim); font-size: 0.85rem; padding: 0.4rem 0; }
.protective-fields summary:hover { color: var(--text); }
.protective-fields .field:first-of-type { margin-top: 0.6rem; }
.protective-fields .field:last-of-type { margin-bottom: 0.4rem; }
.ticket-action {
  flex: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
select {
  width: 100%;
  background: var(--bg-panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 0.65rem 0.8rem;
  font-size: 0.95rem;
}
.quick-sizes { display: flex; gap: 0.6rem; margin-top: 0.6rem; margin-bottom: 0.85rem; }
.size-slider { display: flex; align-items: center; gap: 0.75rem; margin: 0.5rem 0 0.6rem; }
.size-slider input[type="range"] { flex: 1; min-height: 32px; }
.size-slider-pct { flex: 0 0 5.5rem; padding-left: 0; padding-right: 0.8rem; }
.size-slider-pct input[type="number"] { text-align: right; padding: 0 0.35rem 0 0.5rem; min-width: 0; appearance: textfield; -moz-appearance: textfield; }
.size-slider-pct input::-webkit-inner-spin-button,
.size-slider-pct input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.quick-sizes .btn { flex: 1; min-height: 44px; padding: 0.5rem; font-size: 0.82rem; }
.ticket-readout {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-panel-2);
  padding: 0.6rem 0.9rem;
  margin-bottom: 0.75rem;
}
.ticket-readout .label { font-size: 0.78rem; color: var(--text-dim); }
.ticket-readout .num { font-size: 1.3rem; }
.side-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.btn-long, .btn-short {
  padding: 0.8rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border-width: 1px;
}
.btn-long, .btn-short { transition: background-color .15s ease, transform .1s ease, box-shadow .2s ease; }
.btn-long { background: var(--up-fill); border-color: var(--up); color: var(--on-fill); }
.btn-long:hover:not(:disabled) { background: var(--up-fill-hover); }
.btn-short { background: var(--down-fill); border-color: var(--down); color: var(--on-fill); }
.btn-short:hover:not(:disabled) { background: var(--down-fill-hover); }
.btn-long:active:not(:disabled), .btn-short:active:not(:disabled) { transform: none; filter: brightness(0.92); }
.btn-long:disabled, .btn-short:disabled { background: var(--bg-panel-2); border-color: var(--border); color: var(--text-faint); }
#terminal[aria-busy] .btn-long:disabled { background: var(--up-fill); border-color: var(--up); color: var(--on-fill); }
#terminal[aria-busy] .btn-short:disabled { background: var(--down-fill); border-color: var(--down); color: var(--on-fill); }
@keyframes order-queued-pulse-up {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  100% { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); }
}
@keyframes order-queued-pulse-down {
  0%   { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.55); }
  100% { box-shadow: 0 0 0 12px rgba(244, 63, 94, 0); }
}
.btn-long.order-queued { animation: order-queued-pulse-up .6s var(--ease); }
.btn-short.order-queued { animation: order-queued-pulse-down .6s var(--ease); }
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: var(--bg-panel-2);
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-hover);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
padding-block: 0.6rem;
}
.cookie-banner-text { flex: 1 1 320px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; }
.cookie-banner-text p { margin: 0; max-width: none; color: var(--text-dim); font-size: 0.88rem; line-height: 1.45; }
.cookie-banner-details { font-size: 0.82rem; max-width: 100%; overflow-x: auto; }
.cookie-banner-details[open] { flex-basis: 100%; }
.cookie-banner-details summary { color: var(--primary); cursor: pointer; width: fit-content; padding-block: 0.35rem; }
.cookie-banner-details summary:hover { color: var(--primary-hover); text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner-details table { margin-top: 0.4rem; border-collapse: collapse; width: 100%; }
.cookie-banner-details th, .cookie-banner-details td {
  text-align: left;
  padding: 0.35rem 0.75rem 0.35rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
}
.cookie-banner-details p { margin-top: 0.4rem; }
@media (max-width: 560px) {
  .cookie-banner-inner { gap: 0.6rem; }
  .cookie-banner-text p { font-size: 0.82rem; }
  .cookie-banner-details summary { display: flex; align-items: center; min-height: 44px; padding-block: 0; }
  .cookie-banner .cookie-banner-actions { flex: 1 1 100%; }
  .cookie-banner .cookie-banner-actions .btn { flex: 1 1 0; min-height: 44px; }
}
.cookie-banner-actions { display: flex; gap: 0.6rem; flex: 0 0 auto; }
.cookie-banner-actions .btn { min-height: 40px; padding-block: 0.45rem; }
.toast-stack {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 30;
  display: grid;
  gap: 0.5rem;
  max-width: min(340px, calc(100vw - 2.5rem));
}
.chat-bubble-on .toast-stack { bottom: 5rem; }
.support-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 29;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1rem 0.6rem 0.8rem;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text);
  font: 500 0.9rem/1 var(--body);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}
.support-fab:hover { background: var(--bg-card-hover); }
.support-fab:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.support-fab-glyph { display: grid; place-items: center; width: 20px; height: 20px; }
.support-fab-glyph > * { grid-area: 1 / 1; }
.support-fab-spinner { display: none; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: fab-spin .7s linear infinite; }
.support-fab[aria-busy="true"] { cursor: progress; }
.support-fab[aria-busy="true"] .support-fab-icon { visibility: hidden; }
.support-fab[aria-busy="true"] .support-fab-spinner { display: block; }
@keyframes fab-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .support-fab-spinner { animation-duration: 2s; }
}
@media (max-width: 640px) {
  .support-fab { display: none !important; }
  .chat-bubble-on .toast-stack { bottom: 1.25rem; }
  .site-footer .wrap:last-child { padding-bottom: 1.5rem; }
}
@keyframes toast-in {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: none; }
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.6);
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  animation: toast-in .3s cubic-bezier(.16,.8,.3,1);
}
.toast::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 0.4rem;
  border-radius: 50%;
  background: var(--text-dim);
}
.toast.error { border-color: color-mix(in srgb, var(--down) 45%, transparent); }
.toast.error::before { background: var(--down); }
.toast.success { border-color: color-mix(in srgb, var(--up) 40%, transparent); }
.toast.success::before { background: var(--up); }
@keyframes toast-out { to { opacity: 0; transform: translateX(16px); } }
.toast.leaving { animation: toast-out .2s ease-in forwards; }
.toast-text { flex: 1; }
.toast-close {
  flex: none;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
padding: 0.6rem;
  margin: -0.6rem -0.5rem -0.6rem 0;
}
.toast-close:hover { color: var(--text); }
.center { text-align: center; }
.muted { color: var(--text-dim); }
.small { font-size: 0.85rem; }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 540px) {
.terminal-section .wrap { padding-inline: 0.85rem; }
  .terminal-section .panel,
  .terminal-section .rule-meter { padding: 1.1rem; }
  .rule-meter-equity-num { font-size: 1.9rem; }
.chart-panel .candle-head { flex-wrap: wrap; row-gap: 0.35rem; }
input[type="text"], input[type="email"], input[type="number"],
  input[type="search"], select {
    font-size: 16px;
  }
}
@media (max-width: 380px) {
  .wrap,
  .site-header .wrap,
  .site-footer .wrap { padding-inline: 1rem; }
}
.legal { max-width: 49.28em; }
.legal .crumb { margin-bottom: 1.25rem; }
.legal .page-head { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
.legal .page-head h1 { max-inline-size: 24ch; }
.legal .page-head + h2 { border-top: 0; padding-top: 0; margin-top: 1.75rem; }
.legal h2 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  scroll-margin-top: 5rem;  
}
.rule-fig {
  font-family: var(--mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -0.02em;
color: var(--text);
}
.rule-fig.up   { color: var(--up); }
.rule-fig.down { color: var(--down); }
.legal h3 { font-size: 1.02rem; margin-top: 1.9rem; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--text-dim); font-size: 0.95rem; line-height: 1.65; max-width: 34em; }
.legal p { margin-top: 0.85rem; }
.legal ul, .legal ol { margin: 0.85rem 0 0 1.25rem; display: grid; gap: 0.5rem; }
.legal li { padding-left: 0.25rem; }
.legal strong { color: var(--text); font-weight: 600; }
.legal a:not(.btn) { color: var(--primary); }
.legal .dj-table { margin-top: 1rem; }
.legal-toc {
  margin-top: 1.75rem;
  padding: 1.1rem 0;
  border: 0;
  border-block: 1px solid var(--border);
  border-radius: 0;
  background: none;
}
.legal-toc ol {
  margin: 0;
display: block;
  columns: 2;
  column-gap: 2rem;
  font-size: 0.88rem;
}
.legal-toc li { break-inside: avoid; }
.legal-toc a { display: inline-block; padding-block: 0.2rem; }
@media (max-width: 640px) { .legal-toc ol { columns: 1; } .legal-toc a { padding-block: 0.6rem; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
.btn-lg:hover { transform: none; }
}
.deposit-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.875rem;
  margin-top: 0.75rem;
}
.deposit-address-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.deposit-address {
  flex: 1;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.5;
  word-break: break-all;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.625rem;
}
.deposit-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.625rem;
  padding-top: 0.625rem;
  border-top: 1px solid var(--border);
}
.deposit-meta .num { font-family: var(--mono); }
.deposit-waiting {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.625rem;
}
.deposit-waiting::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
@media (prefers-reduced-motion: reduce) {
  .deposit-waiting::before { animation: none; }
}
.deposit-warn {
  margin-top: 0.625rem;
  padding: 0.5rem 0.625rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 180, 84, 0.08);
  border: 1px solid rgba(255, 180, 84, 0.3);
  color: var(--text);
}
.duel-scoreboard {
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(20, 18, 16, 0.95) 100%);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
@media (max-width: 640px) {
  .duel-scoreboard {
    padding: 0.85rem 0.85rem;
    margin-top: 0.75rem;
    margin-bottom: 1rem;
  }
.vs-circle {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.75rem;
  }
}
@media (max-width: 380px) {
  .duel-scoreboard {
    padding: 0.75rem 0.65rem;
  }
}
.combatant-you-badge,
.combatant-opp-badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius);
  line-height: 1.2;
}
.combatant-you-badge {
  background: rgba(226, 84, 63, 0.2);
  color: var(--primary);
  border: 1px solid rgba(226, 84, 63, 0.4);
}
.combatant-opp-badge {
  background: rgba(227, 165, 87, 0.2);
  color: var(--accent);
  border: 1px solid rgba(227, 165, 87, 0.4);
}
.vs-circle {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.duel-time-urgent {
  color: var(--down);
  animation: duel-time-pulse 1s ease-in-out infinite;
}
@keyframes duel-time-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.duel-lead-flash {
  animation: duel-lead-flash 0.6s ease-out;
}
@keyframes duel-lead-flash {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  100% { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); }
}
.duel-tug-fill {
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}
.duel-tug-me {
  background: linear-gradient(90deg, var(--primary) 0%, rgba(226, 84, 63, 0.8) 100%);
}
.duel-tug-opp {
  background: linear-gradient(90deg, rgba(227, 165, 87, 0.8) 0%, var(--accent) 100%);
}
.pnl-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}
.pnl-pill.up {
  background: rgba(16, 185, 129, 0.15);
  color: var(--up);
  border-color: rgba(16, 185, 129, 0.35);
}
.pnl-pill.down {
  background: rgba(244, 63, 94, 0.15);
  color: var(--down);
  border-color: rgba(244, 63, 94, 0.35);
}
.duel-leaderboard-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.5rem;
}
.duel-leaderboard-table th {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  text-align: left;
  border: 0;
}
.duel-leaderboard-table th.num,
.duel-leaderboard-table td.num {
  text-align: right;
}
.rank-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.9rem;
}
.rank-1 {
  background: rgba(227, 165, 87, 0.2);
  color: var(--accent);
  border: 1px solid rgba(227, 165, 87, 0.4);
}
.rank-2 {
  background: rgba(237, 232, 218, 0.1);
  color: var(--text);
  border: 1px solid var(--border-2);
}
.rank-3 {
  background: rgba(196, 128, 82, 0.16);
  color: #d49a70;
  border: 1px solid rgba(196, 128, 82, 0.42);
}
.trader-cell {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.duel-match-recap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
}
@media (max-width: 640px) {
  .duel-match-recap {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    padding: 0.75rem 0.85rem;
    margin-top: 1.25rem;
  }
}
.duel-recap-stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.duel-recap-stat .label {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.duel-recap-stat .num {
  font-size: 1.05rem;
  font-weight: 700;
}
@media (max-width: 640px) {
.duel-leaderboard-table th,
  .duel-leaderboard-table td {
    padding: 0.6rem 0.45rem;
  }
  .rank-pill {
    width: 1.6rem;
    height: 1.6rem;
    font-size: 0.78rem;
  }
}
#duel-pending-list li,
#duel-invites-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}
@media (max-width: 640px) {
  #duel-pending-list li,
  #duel-invites-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.75rem 0.85rem;
  }
#duel-pending-list li .btn,
  #duel-invites-list li .btn {
    flex: 1;
    min-height: 44px;
    justify-content: center;
  }
  #duel-invite-accept,
  #duel-cancel-btn {
    width: 100%;
    max-width: 380px;
    min-height: 48px;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  #duel-create-submit {
    min-height: 48px;
    font-size: 1rem;
  }
  #duel-cashout-submit {
    min-height: 44px;
    width: 100%;
  }
}
.trade-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.125em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
:is(.ticket-leverage, .size-slider) input[type="range"] {
  width: 100%;
  margin: 0.35rem 0 0.15rem;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}
:is(.ticket-leverage, .size-slider) input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: var(--border-subtle);
}
:is(.ticket-leverage, .size-slider) input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: var(--border-subtle);
}
:is(.ticket-leverage, .size-slider) input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}
:is(.ticket-leverage, .size-slider) input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}
:is(.ticket-leverage, .size-slider) input[type="range"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.ticket-liq .num {
  color: var(--down);
}
.tabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.duel-sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  padding: 0.3rem 0.65rem;
}
.duel-sound-toggle[aria-pressed="false"] {
  color: var(--text-faint);
}
.trade-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-family: var(--mono);
  font-weight: 500;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text);
  white-space: nowrap;
}
.trade-pill.trade-long {
  background: rgba(16, 185, 129, 0.12);
  color: var(--up);
  border-color: rgba(16, 185, 129, 0.3);
}
.trade-pill.trade-short {
  background: rgba(244, 63, 94, 0.12);
  color: var(--down);
  border-color: rgba(244, 63, 94, 0.3);
}
.trade-pill.trade-flat {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  border-color: var(--border-subtle);
  font-style: italic;
}
.duel-page .wrap {
  max-width: none;
  padding-inline: clamp(1.25rem, 3vw, 3rem);
}
.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: rgba(226, 84, 63, 0.12);
  border: 1px solid rgba(226, 84, 63, 0.25);
  color: var(--primary);
}
.section-icon .icon {
  width: 1.05rem;
  height: 1.05rem;
  stroke-width: 1.75;
}
.duel-history-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.duel-match {
  display: grid;
  grid-template-columns: minmax(0, 9rem) minmax(0, 1fr) minmax(0, 12rem);
  align-items: start;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  transition: border-color 0.15s ease;
}
.duel-match:hover { border-color: var(--border-2); }
.duel-match.is-tie { border-style: dashed; }
.duel-match-bout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 1.25rem;
  min-width: 0;
}
.duel-trader {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
}
.duel-trader .trade-cell {
  margin-top: auto;
  padding-top: 0.15rem;
}
.duel-trader.is-winner { background: rgba(227, 165, 87, 0.08); }
@media (max-width: 900px) {
  .duel-match {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
  }
.duel-match-bout { grid-template-columns: 1fr; gap: 0.5rem; }
  .duel-trader { padding: 0.5rem 0.65rem; background: rgba(255, 255, 255, 0.02); }
}
@media (max-width: 480px) {
  .duel-page .wrap { padding-inline: 1rem; }
}
.table-scroll,
.scroll-x {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.duel-mode-switch {
  display: flex;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 1.25rem;
}
.mode-switch-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}
.mode-switch-btn .icon {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.mode-switch-btn:hover {
  color: var(--text-primary);
}
.mode-switch-btn.active {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(226, 84, 63, 0.3);
}
.duration-chips,
.entry-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.45rem;
}
.chip-btn {
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.chip-btn:hover {
  border-color: rgba(226, 84, 63, 0.4);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}
.chip-btn.active {
  border-color: var(--primary);
  background: rgba(226, 84, 63, 0.15);
  color: var(--primary);
}
.duel-calc-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 1.25rem 0;
}
.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  color: var(--text-muted);
  padding: 0.25rem 0;
}
.calc-row.calc-total {
  border-top: 1px dashed var(--border-subtle);
  margin-top: 0.5rem;
  padding-top: 0.65rem;
  font-size: 0.95rem;
  color: var(--text-primary);
}
.calc-purse-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.calc-purse-val {
  color: var(--success);
  font-size: 1.15rem;
  font-weight: 800;
}
.duel-waiting-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem 0.85rem;
  padding: 0.75rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}
.duel-waiting-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.duel-waiting-row.is-live { border-color: rgba(16, 185, 129, 0.35); }
.duel-waiting-row.is-live .duel-waiting-dot { background: var(--up); }
.duel-waiting-text { display: flex; flex-direction: column; gap: 0.15rem; flex: 1 1 16rem; min-width: 0; }
.duel-waiting-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
@media (prefers-reduced-motion: reduce) {
  .duel-waiting-dot { animation: none; }
}
.duel-stats-group h3 {
  margin: 0.4rem 0 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.chart-overlays { position: relative; }
.chart-overlays > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; }
.chart-overlays > summary::-webkit-details-marker { display: none; }
.chart-overlays[open] > summary { border-color: var(--primary); color: var(--primary); }
.chart-overlays-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 14rem;
  padding: 0.4rem;
  background: var(--bg-panel-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.7);
}
.chart-overlays-menu label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.45rem;
  border-radius: var(--radius);
  font-size: 0.82rem;
  cursor: pointer;
}
.chart-overlays-menu label:hover { background: var(--bg-panel); }
@media (pointer: coarse) { .chart-overlays-menu label { min-height: 44px; } }
.board-record {
  margin-left: 0.4rem;
  padding: 0.05rem 0.45rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  font-size: 0.75rem;
  color: var(--text-dim);
  white-space: nowrap;
}
.board-rating {
  margin-left: 0.4rem;
  padding: 0.05rem 0.45rem;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  font-size: 0.75rem;
  color: var(--primary);
  white-space: nowrap;
}
.board-rating.is-provisional { border-color: var(--border-subtle); color: var(--text-dim); }
#duel-quick-submit { margin-top: 0.5rem; }
.duel-quick-note { margin: 0.35rem 0 0; text-align: center; }
.duel-match-list { list-style: none; margin: 0; padding: 0; }
.duel-match-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto 6.5rem;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.35rem;
  border-top: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
}
.duel-match-list li:first-child .duel-match-link { border-top: 0; }
.duel-match-link:hover { background: rgba(255, 255, 255, 0.03); }
.duel-match-link .num { text-align: right; }
.duel-match-who { display: flex; flex-direction: column; min-width: 0; }
.duel-match-who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) {
  .duel-match-link { grid-template-columns: auto minmax(0, 1fr) auto; }
  .duel-match-link .num.small { display: none; }
}
.duel-race-chart { height: 300px; margin-top: 0.25rem; }
.duel-race-legend { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.race-key { display: inline-flex; align-items: center; gap: 0.35rem; }
.race-key::before { content: ""; width: 14px; height: 3px; border-radius: 2px; }
.race-me::before { background: var(--primary); }
.race-opp::before { background: var(--accent); }
.duel-race-note { margin: 0.75rem 0 0; }
.duel-watch-page { padding-top: 1.25rem; }
.duel-card-page { padding: clamp(2rem, 6vw, 4rem) 0; }
.duel-share-card {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(20, 18, 16, 0.95) 100%);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
}
.duel-share-head h1 { margin: 0.4rem 0 0; font-size: clamp(1.4rem, 3.5vw, 2rem); line-height: 1.2; overflow-wrap: anywhere; }
.duel-share-sides {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  margin: 1.75rem 0;
}
.duel-share-side {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}
.duel-share-side.is-winner { border-color: rgba(16, 185, 129, 0.4); }
.duel-share-name {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}
.duel-share-side strong { font-size: 1.35rem; }
.duel-share-foot { margin: 0; }
.duel-share-cta { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; margin-top: 1.5rem; }
@media (max-width: 560px) {
  .duel-share-sides { grid-template-columns: 1fr; }
}
.share-trigger { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.share-trigger > .btn[hidden] { display: none; }
.duel-share-card + .share-trigger { justify-content: center; margin-top: 1.5rem; }
.pp .share-trigger { margin-top: 1.75rem; }
.result-share .share-trigger { justify-content: flex-end; }
.match-dialog.share-sheet { width: min(46rem, calc(100vw - 2rem)); }
.share-sheet-title { margin: 0 2.5rem 1.25rem 0; font-size: 1.5rem; font-variation-settings: "opsz" 24; }
.share-sheet-body { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 1.75rem; align-items: start; }
.share-sheet-body.is-linkonly { grid-template-columns: minmax(0, 1fr); }
.share-sheet-body[hidden] { display: none; }
.share-preview {
  display: grid;
  place-items: center;
  margin: 0;
  aspect-ratio: 4 / 5;
  background: var(--bg-app);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
}
.share-preview[hidden], .share-preview img[hidden], .share-preview-wait[hidden] { display: none; }
.share-preview img { display: block; width: 100%; height: 100%; }
.share-preview-wait { color: var(--text-tertiary); }
.share-field-label { display: block; margin: 0 0 0.4rem; font-size: 0.85rem; color: var(--text-secondary); }
.share-link { display: flex; gap: 0.5rem; margin-bottom: 1.25rem; }
.share-link input.mono { flex: 1; min-width: 0; font-size: 0.8rem; text-overflow: ellipsis; }
.share-targets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}
.share-targets a {
  display: block;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  text-decoration: none;
}
.share-targets a:hover, .share-targets a:focus-visible { border-color: var(--border-2); background: var(--bg-card-hover); }
.share-sheet-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.share-sheet-actions .btn[hidden] { display: none; }
.share-status { min-height: 1.2em; margin: 0.75rem 0 0; color: var(--text-secondary); }
.share-gate {
  padding: 1rem 1.1rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}
.share-gate[hidden] { display: none; }
.share-gate p { margin: 0; }
.share-gate-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-top: 1rem; }
@media (max-width: 600px) {
.match-dialog.share-sheet {
    width: 100%;
    max-width: none;
    max-height: 92dvh;
    margin: auto 0 0;
    border-width: 1px 0 0;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }
  .share-sheet-body { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .share-preview { width: min(13rem, 100%); margin-inline: auto; }
  .result-share .share-trigger { justify-content: flex-start; }
}
@media (max-width: 600px) and (prefers-reduced-motion: no-preference) {
  .share-sheet[open] { animation: share-sheet-up 0.28s cubic-bezier(.45, .05, .35, 1); }
}
@keyframes share-sheet-up { from { transform: translateY(24px); opacity: 0.6; } }
.pp { padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(3rem, 8vw, 6rem); }
.pp-owner {
  margin: 0 0 2rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}
.pp-head { max-width: 60rem; }
.pp-since { margin: 0; font-family: var(--mono); font-size: 0.85rem; color: var(--text-tertiary); }
.pp-name {
  margin: 0.4rem 0 0;
  font-size: clamp(3.25rem, 11vw, 8rem);
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.038em;
  line-height: 0.94;
  overflow-wrap: anywhere;
}
.pp-record { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1rem; margin: 1.25rem 0 0; }
.pp-record-score {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.pp-record-note { color: var(--text-secondary); }
.pp-casual { margin: 0.4rem 0 0; color: var(--text-secondary); font-size: 0.9rem; }
.pp-game-casual, .duel-casual { margin: 0.4rem 0 0.8rem; }
.pp-form { margin: clamp(2rem, 5vw, 3rem) 0 0; }
.pp-form-plot { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.75rem; }
.pp-form-axis { position: relative; min-width: 3.4rem; }
.pp-form-axis span {
  position: absolute; right: 0; transform: translateY(-50%);
  font-family: var(--mono); font-size: 0.75rem; color: var(--text-secondary); white-space: nowrap;
}
.pp-form-area { position: relative; height: clamp(150px, 24vw, 220px); margin-right: 4.5rem; }
.pp-form-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pp-gridline { stroke: var(--border-subtle); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pp-gridline.is-zero { stroke: var(--text-tertiary); stroke-dasharray: 3 4; }
.pp-area { fill: var(--text-primary); fill-opacity: 0.06; stroke: none; }
.pp-line { fill: none; stroke: var(--text-primary); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.pp-dots { list-style: none; margin: 0; padding: 0; }
.pp-dots li { position: absolute; transform: translate(-50%, -50%); }
.pp-dot {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; text-decoration: none;
}
.pp-dot span {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  font: 600 0.68rem/1 var(--mono); color: var(--bg);
  background: var(--text-tertiary); box-shadow: 0 0 0 2px var(--bg);
  transition: transform 120ms ease;
}
.pp-dot.is-w span { background: var(--up); }
.pp-dot.is-l span { background: var(--down); }
.pp-dot:hover span, .pp-dot:focus-visible span { transform: scale(1.2); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--text-primary); }
.pp-dot:focus-visible { outline: none; }
.pp-form-end {
  position: absolute; left: 100%; transform: translate(1.1rem, -50%);
  font: 600 0.85rem/1 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.pp-form-x {
  display: flex; justify-content: space-between; margin: 0.5rem 4.5rem 0 calc(3.4rem + 0.75rem);
  font-size: 0.75rem; color: var(--text-secondary);
}
@media (prefers-reduced-motion: no-preference) {
  .pp-dots li { animation: pp-pop 0.35s ease both; }
}
@keyframes pp-pop { from { opacity: 0; } }
.pp-empty { margin: 2.5rem 0 0; color: var(--text-secondary); }
.pp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
.pp-block { padding-block: 0; border-top: 0; }
.pp-grid > * { min-width: 0; }
.pp-col { display: flex; flex-direction: column; gap: clamp(2rem, 4vw, 3rem); min-width: 0; }
.pp-block h2 {
  margin: 0 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-2);
  font-size: 1.35rem;
  font-variation-settings: "opsz" 24;
}
.pp-game + .pp-game { margin-top: 1.5rem; }
.pp-game h3 { margin: 0 0 0.5rem; font-family: var(--body); font-size: 0.95rem; font-weight: 600; color: var(--text-secondary); }
.pp-game-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.pp-game-head h3 { margin: 0; }
.pp-game-score { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 1.5rem; font-weight: 600; }
.pp-game .duel-winrate-bar { margin: 0.4rem 0 0.75rem; }
.pp-facts { margin: 0; }
.pp-facts div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--border-subtle); }
.pp-facts dt { color: var(--text-tertiary); font-size: 0.85rem; }
.pp-facts dd { margin: 0; font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; }
.pp-facts-big dd { font-size: 1.35rem; font-weight: 600; }
.pp-markets { display: grid; gap: 0.4rem; margin: 0.9rem 0 0; padding: 0; list-style: none; font-family: var(--mono); font-size: 0.8rem; }
.pp-markets li { display: grid; grid-template-columns: 5.5rem 1fr 2.75rem; align-items: center; gap: 0.75rem; }
.pp-markets li span:last-child { text-align: right; color: var(--text-tertiary); }
.pp-market-bar { height: 4px; background: var(--bg-tertiary); }
.pp-market-bar span { display: block; height: 100%; background: var(--text-secondary); }
.pp-matches { margin: 0; padding: 0; list-style: none; }
.pp-matches a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.25rem;
  border-bottom: 1px solid var(--border-subtle);
  color: inherit;
  text-decoration: none;
}
.pp-matches a:hover, .pp-matches a:focus-visible { background: var(--bg-secondary); }
.pp-match-who { display: flex; flex-direction: column; min-width: 0; }
.pp-match-who strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-match-who span { font-size: 0.8rem; color: var(--text-tertiary); }
.pp-match-figure { display: flex; flex-direction: column; align-items: flex-end; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.pp-match-figure small { font-size: 0.75rem; color: var(--text-tertiary); }
.pp-cta {
  margin-top: clamp(3rem, 8vw, 5rem);
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
  border-top: 1px solid var(--border-2);
}
.pp-cta h2 { margin: 0; font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: -0.03em; text-wrap: balance; overflow-wrap: anywhere; }
.pp-cta p { margin: 0.6rem 0 0; color: var(--text-secondary); }
.pp-cta-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; }
.pp-note { margin: 2rem 0 0; color: var(--text-tertiary); max-width: 34em; }
@media (max-width: 760px) {
  .pp-grid { grid-template-columns: 1fr; }
}
.pp-highlights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(1.75rem, 4vw, 2.5rem) 0 0;
  border-block: 1px solid var(--border-2);
}
.pp-highlights > div { display: flex; flex-direction: column; gap: 0.3rem; padding: 1.1rem 1.25rem 1.2rem; min-width: 0; }
.pp-highlights > div:first-child { padding-left: 0; }
.pp-highlights > div + div { border-left: 1px solid var(--border-subtle); }
.pp-highlights dt { font-size: 0.85rem; color: var(--text-tertiary); }
.pp-highlights dd { margin: 0; }
.pp-hl-figure {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.pp-hl-note { font-size: 0.85rem; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-hl-note a { color: inherit; }
.pp-hl-bar { display: block; height: 4px; margin-top: 0.55rem; background: var(--bg-tertiary); }
.pp-hl-bar span { display: block; height: 100%; background: var(--up); }
@media (max-width: 760px) {
  .pp-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pp-highlights > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .pp-highlights > div:nth-child(n + 3) { border-top: 1px solid var(--border-subtle); }
}
.pp-game-form { margin: 0 0 0.6rem; }
.pp-sub { margin: 1.1rem 0 0.4rem; font-family: var(--body); font-size: 0.85rem; font-weight: 500; color: var(--text-tertiary); }
.pp-split { display: flex; height: 6px; margin: 0.5rem 0 0.4rem; gap: 2px; }
.pp-split .is-long { background: var(--up); }
.pp-split .is-short { background: var(--down); }
.pp-split-legend { display: flex; justify-content: space-between; margin-bottom: 0.4rem; font-family: var(--mono); font-size: 0.8rem; color: var(--text-secondary); }
.pp-rivals { margin: 0; padding: 0; list-style: none; }
.pp-rivals li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 5rem auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.75rem 0.25rem;
  border-bottom: 1px solid var(--border-subtle);
}
.pp-rival-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-rival-name a { color: inherit; text-decoration-color: var(--border-2); text-underline-offset: 3px; }
.pp-rival-name a:hover { text-decoration-color: var(--primary); }
.pp-rival-record { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 600; }
.pp-rival-played { font-size: 0.8rem; color: var(--text-tertiary); text-align: right; min-width: 5.5rem; }
@media (max-width: 420px) {
  .pp-rivals li { grid-template-columns: minmax(0, 1fr) auto auto; }
  .pp-rival-bar { display: none; }
}
.pp-block-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; margin-bottom: 1rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--border-2); }
.pp-block-head h2 { margin: 0; padding: 0; border: 0; }
.pp-block-head p { margin: 0; font-size: 0.9rem; color: var(--text-secondary); }
.pp-cal-months, .pp-cal-grid { display: grid; grid-template-columns: repeat(26, minmax(0, 1fr)); gap: 3px; }
.pp-cal-months { margin-bottom: 0.4rem; font-family: var(--mono); font-size: 0.75rem; color: var(--text-tertiary); }
.pp-cal-months span { white-space: nowrap; overflow: visible; }
.pp-cal-week { display: grid; grid-template-rows: repeat(7, auto); gap: 3px; }
.pp-cal-day { display: block; aspect-ratio: 1; border-radius: 2px; background: var(--bg-tertiary); }
.pp-cal-day.lvl-1 { background: rgba(237, 232, 218, 0.22); }
.pp-cal-day.lvl-2 { background: rgba(237, 232, 218, 0.42); }
.pp-cal-day.lvl-3 { background: rgba(237, 232, 218, 0.66); }
.pp-cal-day.lvl-4 { background: var(--text-primary); }
.pp-cal-day.is-future { background: transparent; }
.pp-cal-legend { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 0.75rem; font-size: 0.75rem; color: var(--text-tertiary); }
.pp-cal-legend .pp-cal-day { width: 11px; }
.pp-cal-legend .pp-cal-day:first-of-type { margin-left: 4px; }
.pp-cal-legend .pp-cal-day:last-of-type { margin-right: 4px; }
@media (max-width: 560px) {
  .pp-cal-months, .pp-cal-grid { gap: 2px; }
  .pp-cal-week { gap: 2px; }
  .pp-cal-months { font-size: 0.75rem; }
}
.share-badge { display: block; height: 28px; width: auto; margin-bottom: 0.6rem; }
.public-master { padding-bottom: 1rem; margin-bottom: 0.5rem; border-bottom: 1px solid var(--border-2); }
.public-address { overflow-wrap: anywhere; }
.public-sections { transition: opacity 0.2s ease; }
.public-editor.is-off .public-sections { opacity: 0.6; }
.public-editor .toggle-foot .btn[hidden] { display: none; }
.public-fields { border: 0; margin: 0; padding: 0; min-width: 0; }
.public-fields:disabled .switch { opacity: 0.45; cursor: not-allowed; }
.public-fields:disabled .toggle-row { cursor: not-allowed; }
.public-fields:disabled .public-sections { opacity: 0.6; }
.duel-stats { display: flex; flex-direction: column; gap: 0.85rem; }
.duel-stats-hero { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem; }
@media (max-width: 800px) { .duel-stats-hero { grid-template-columns: 1fr; } }
.duel-stat-big {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}
.duel-stat-big .label {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.duel-stat-big strong { font-size: 1.6rem; line-height: 1.15; }
.duel-winrate-bar { height: 6px; border-radius: var(--radius); background: rgba(244, 63, 94, 0.35); overflow: hidden; }
.duel-winrate-bar span { display: block; height: 100%; background: var(--up); }
.duel-form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; min-height: 1.6rem; }
.form-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
}
.form-w { background: rgba(16, 185, 129, 0.15); color: var(--up); border: 1px solid rgba(16, 185, 129, 0.35); }
.form-l { background: rgba(244, 63, 94, 0.15); color: var(--down); border: 1px solid rgba(244, 63, 94, 0.35); }
.form-t { background: rgba(255, 255, 255, 0.06); color: var(--text); border: 1px solid var(--border-subtle); }
.duel-stats .duel-stats-grid { margin-top: 0; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); }
.duel-stats-markets {
  padding: 1rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}
.duel-stats-markets h3 { margin: 0 0 0.6rem; font-size: 1rem; }
.market-row {
  display: grid;
  grid-template-columns: 6rem 1fr 4.5rem 7.5rem;
  gap: 0.75rem;
  align-items: center;
  padding: 0.45rem 0;
  border-top: 1px solid var(--border-subtle);
}
.market-row-head { border-top: 0; padding-top: 0; }
.market-row .num { text-align: right; }
.market-bar { height: 6px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.market-bar span { display: block; height: 100%; background: var(--accent); }
.duel-stats-empty {
  margin: 0;
  padding: 1.25rem;
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius);
  color: var(--text-muted);
}
@media (max-width: 640px) {
  .market-row { grid-template-columns: 5rem 1fr 6.5rem; }
  .market-row .market-trades { display: none; }
}
.duel-top-duelists-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.duel-top-duelists-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}
.duel-top-duelists-list .rank-pill.rank-other {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.checkout-summary-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}
.checkout-summary-card .summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  padding: 0.25rem 0;
  color: var(--text-muted);
}
.checkout-summary-card .summary-val {
  color: var(--text-primary);
}
.checkout-summary-card .summary-val.highlight {
  color: var(--success);
  font-weight: 700;
}
.wallet-account-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.wallet-account-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}
@media (prefers-reduced-motion: reduce) {
  .account-card { transition: none; }
}
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.85rem; min-height: 38px; }
.btn.is-armed { border-color: var(--danger); background: var(--danger-bg); color: var(--danger); }
.btn-xs { padding: 0.25rem 0.6rem; font-size: 0.78rem; min-height: 30px; }
.btn .icon { width: 1em; height: 1em; }
.btn-quiet.btn-sm { padding-inline: 0.8rem; }
.btn-quiet.btn-xs { padding-inline: 0.55rem; }
@media (pointer: coarse) {
  .btn-sm, .btn-xs, .duel-sound-toggle { min-height: 44px; }
}
.linklike {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--text-dim);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--border-2);
  text-underline-offset: 3px;
  transition: color .15s ease, text-decoration-color .15s ease;
}
.linklike:hover { color: var(--text); text-decoration-color: var(--primary); }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.label { font-size: 0.78rem; color: var(--text-dim); }
.error { color: var(--down); font-size: 0.88rem; margin-top: 0.6rem; }
.error:empty { display: none; }
.text-success { color: var(--up); }
.app-page { padding-block: clamp(1.75rem, 3vw, 2.5rem) clamp(3rem, 6vw, 4.5rem); }
.app-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 2rem;
}
.app-head h1 {
  font-size: 2.25rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 72;
}
.app-sub { margin-top: 0.6rem; color: var(--text-dim); max-width: 34em; text-wrap: pretty; }
.app-head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
@media (max-width: 640px) {
.app-page { padding-block-start: 1.1rem; }
  .app-head { margin-bottom: 1rem; gap: 0.6rem 1rem; }
  .app-head h1 { font-size: 1.6rem; }
  .app-sub { margin-top: 0.35rem; }
  .app-head-actions { width: 100%; }
}
.section-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin: 3rem 0 1rem;
}
@media (max-width: 640px) {
  .section-title { margin: 2rem 0 0.75rem; }
}
.section-title h2 {
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 36;
}
.section-title p { margin: 0; color: var(--text-dim); font-size: 0.9rem; }
.section-title .icon { color: var(--text-faint); margin-right: 0.4rem; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-pill);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-dim);
  white-space: nowrap;
}
.badge.is-up { color: var(--up); border-color: color-mix(in srgb, var(--up) 40%, transparent); background: color-mix(in srgb, var(--up) 8%, transparent); }
.badge.is-down { color: var(--down); border-color: color-mix(in srgb, var(--down) 40%, transparent); background: color-mix(in srgb, var(--down) 8%, transparent); }
.badge.is-gold { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 40%, transparent); background: color-mix(in srgb, var(--gold) 8%, transparent); }
.badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.live-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  white-space: nowrap;
}
.live-status .candle-dot { background: var(--down); }
.live-status.healthy .candle-dot,
.live-status .candle-dot.live { background: var(--up); }
.figure { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.figure .num { font-size: 1.15rem; white-space: nowrap; }
.figure-lg .num { font-size: 1.9rem; letter-spacing: -0.02em; line-height: 1.1; }
.note {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-dim);
}
.note .icon { flex: none; width: 1rem; height: 1rem; margin-top: 0.15rem; color: var(--text-faint); }
.note strong { color: var(--text); font-weight: 600; }
.note-list { display: grid; gap: 0.6rem; list-style: none; }
.summary-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2.5rem;
  padding: 1.1rem 1.5rem;
  margin-bottom: 1.25rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.summary-strip-action { margin-left: auto; }
@media (max-width: 560px) {
  .summary-strip { gap: 0.75rem 1.75rem; padding: 0.85rem 1.1rem; margin-bottom: 0.85rem; }
  .summary-strip-action { margin-left: 0; width: 100%; }
}
.accounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 1rem;
}
.accounts-grid > .account-card:only-of-type { max-width: 38rem; }
.past-accounts { grid-column: 1 / -1; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-panel); }
.past-accounts > summary { cursor: pointer; padding: 0.85rem 1.25rem; font-weight: 600; }
.past-accounts ul { list-style: none; margin: 0; padding: 0; }
.past-accounts li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1rem; padding: 0.6rem 1.25rem; border-top: 1px solid var(--border); }
.past-accounts li > :first-child { flex: 1 1 12rem; }
.accounts-grid .account-card {
  margin: 0;
  padding: 1.5rem;
  gap: 1.25rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.accounts-grid .account-card:hover { border-color: var(--border-2); }
.accounts-grid .skeleton { min-height: 20rem; }
@media (max-width: 640px) {
.accounts-grid .skeleton { min-height: 11rem; }
  .accounts-grid .account-card { padding: 1.15rem; gap: 1rem; }
  .account-card-equity .equity-value { font-size: 1.6rem; }
}
.account-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.account-card-head h3 { font-size: 1.25rem; line-height: 1.2; margin-bottom: 0.15rem; }
.account-card-equity { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.75rem; }
.account-card-equity .label { flex-basis: 100%; }
.account-card-equity .equity-value { font-size: 1.9rem; letter-spacing: -0.02em; line-height: 1.1; }
.account-card-equity .equity-change { font-size: 1rem; }
.account-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.account-facts .num { font-size: 0.95rem; }
.account-card > p.small { margin: 0; max-width: none; }
.account-card .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: auto; }
.account-card .actions .btn-quiet { margin-left: auto; }
@media (max-width: 420px) {
  .account-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.accounts-empty h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.accounts-empty .cta { margin-top: 1.25rem; }
.accounts-empty .btn { margin-top: 0; }
#pending-instant:not(:empty) { display: grid; gap: 1rem; margin-top: 1rem; }
#pending-instant .account-card { margin: 0; }
.payouts-table th:first-child { width: 8rem; }
.payouts-table .num { width: 8rem; padding-right: 2.5rem; }
.panel-flush { padding-block: 0.25rem; }
.panel .panel-title { font-size: 1.05rem; margin-bottom: 0.35rem; }
.codes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 1rem;
}
.codes-grid .panel + .panel { border-top: 1px solid var(--border); }
.codes-grid .panel { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
.codes-grid .panel[hidden] { display: none; }
.paid-only[hidden], #duel-create-form .field[hidden] { display: none; }
#duel-create-modal .note + #duel-create-form { margin-top: 1rem; }
.field-inline { display: flex; align-items: center; gap: 0.5rem; margin: 1rem 0 0.6rem; }
.field-inline input { flex: 1; min-width: 0; }
.banner-actions { display: flex; align-items: center; gap: 0.5rem; }
.banner .banner-actions .btn { margin-top: 0; }
.rule-list {
  list-style: none;
  display: grid;
  gap: 0.4rem;
  padding: 0.85rem 1rem;
  background: var(--bg-panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.rule-list li { position: relative; padding-left: 1rem; }
.rule-list li::before { content: "–"; position: absolute; left: 0; color: var(--text-faint); }
.stage-note { margin: 0.3rem 0 0; }
.profile-identity { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.profile-identity h1 { overflow-wrap: anywhere; }
.profile-identity .app-sub { margin-top: 0.3rem; }
.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius);
  background: var(--bg-panel-2);
  border: 1px solid var(--border-2);
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--text);
}
.settings-layout {
  display: grid;
  grid-template-columns: 11.5rem minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}
.settings-nav { position: sticky; top: 6.5rem; display: flex; flex-direction: column; gap: 0.15rem; }
.settings-nav a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 40px;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.settings-nav a:hover { background: var(--bg-panel); color: var(--text); }
.settings-nav a[aria-current="page"] { background: var(--bg-panel); color: var(--text); font-weight: 600; }
.settings-nav a[aria-current="page"] .icon { color: var(--primary); }
.settings-nav .icon { width: 1rem; height: 1rem; color: var(--text-faint); transition: color .15s ease; }
.settings-main { min-width: 0; }
.pf-page-head { display: block; }
.pf-page-head .app-sub { margin-top: 0.4rem; text-align: left; }
.settings-section { padding-block: 0; scroll-margin-top: 6rem; }
.settings-section + .settings-section { border-top: 0; }
.settings-main > .settings-section:first-child > .section-title { margin-top: 0; }
@media (max-width: 860px) {
  .settings-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .settings-nav {
    position: static;
    flex-direction: row;
flex-wrap: wrap;
    gap: 0.35rem;
  }
  .settings-nav a { border: 1px solid var(--border); }
}
@media (max-width: 640px) {
.settings-layout { gap: 1rem; }
  .settings-nav a { min-height: 34px; padding: 0.4rem 0.6rem; font-size: 0.85rem; }
}
.username-callout { display: grid; gap: 0.85rem; }
.username-callout .field-inline { margin: 0; max-width: 30rem; }
.username-callout .panel-title { font-size: 1.15rem; }
.wallet-overview {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.25rem 3rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
@media (max-width: 640px) {
  .wallet-overview { gap: 1rem 1.5rem; padding: 1rem 1.1rem; margin-bottom: 0.75rem; }
}
.wallet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1rem;
}
.wallet-grid .panel + .panel { border-top: 1px solid var(--border); }
.panel-head h3 { font-size: 1.05rem; }
.panel-foot { margin-top: 1rem; padding-top: 0.85rem; border-top: 1px solid var(--border); }
.panel-foot-action { align-self: flex-start; margin-top: 0.85rem; }
.wallet-account-list li { padding: 0.85rem 1rem; background: var(--bg-panel-2); border-color: var(--border); }
.wallet-account-main { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.wallet-account-main strong { font-size: 1.15rem; font-weight: 500; }
.wallet-account-blocked { color: var(--gold); }
.payout-wallet-manager { background: var(--bg-panel); border-color: var(--border); padding: 1.5rem; margin-top: 0; }
.payout-wallet-manager:hover { border-color: var(--border); }
.wallet-address-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0.4rem 0.4rem 0.75rem;
  margin: 0.85rem 0 0;
  background: var(--bg-panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.wallet-address-text { min-width: 0; font-size: 0.8rem; overflow-wrap: anywhere; word-break: normal; font-family: var(--mono); color: var(--text); }
.wallet-address-actions { display: flex; flex: none; gap: 0.15rem; }
.wallet-actions-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-top: 0.85rem; }
#payout-wallet-kind { font-family: var(--body); }
.payout-account-option { margin-top: 0.85rem; display: grid; gap: 0.5rem; justify-items: start; }
.wallet-manual-form { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.input-with-action { display: flex; gap: 0.5rem; }
.input-with-action input { flex: 1; min-width: 0; }
#use-privy-wallet-btn { margin-top: 0.5rem; }
.toggle-list { display: grid; }
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 0;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
}
.toggle-row:first-child { padding-top: 0; }
.toggle-row:last-child { border-bottom: 0; padding-bottom: 0; }
.toggle-text { display: flex; flex-direction: column; gap: 0.2rem; }
.toggle-text strong { font-weight: 600; }
.switch {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex: none;
  width: 2.5rem;
  height: 1.4rem;
  margin: 0;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-pill);
  background: var(--bg-panel-2);
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(1.4rem - 6px);
  height: calc(1.4rem - 6px);
  border-radius: calc(var(--radius) - 3px);
  background: var(--text-dim);
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.switch:checked { background: var(--up-fill); border-color: var(--up); }
.switch:checked::after { transform: translateX(1.1rem); background: var(--on-fill); }
.switch:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.toggle-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; }
.panel.stat-row { flex-direction: row; flex-wrap: wrap; gap: 1rem 3rem; }
.detail-list { display: grid; }
.detail-list > div {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}
.detail-list > div:first-child { padding-top: 0; }
.detail-list > div:last-child { padding-bottom: 0; border-bottom: 0; }
.detail-list dt { font-size: 0.88rem; color: var(--text-dim); }
.detail-list dd { font-size: 0.9rem; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .detail-list > div { grid-template-columns: 1fr; gap: 0.15rem; }
}
.kyc-form { max-width: 26rem; }
.nav .linklike { text-decoration: none; }
@media (min-width: 1101px) {
  .wallet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wallet-grid:has(> :nth-child(3)) > .payout-wallet-manager { grid-row: span 2; }
}
.duel-page .wrap { max-width: none; padding-inline: clamp(1.25rem, 3vw, 3rem); }
@media (max-width: 480px) { .duel-page .wrap { padding-inline: 1rem; } }
.duel-queue { display: grid; gap: 1rem; }
.duel-queue:has(> .panel:not([hidden])) { margin-bottom: 1.25rem; }
.lobby-invite-setting { margin-top: 1.25rem; padding-top: 0.9rem; border-top: 1px solid var(--border); }
.lobby-invite-setting .toggle-row { padding: 0; border-bottom: 0; align-items: flex-start; font-size: 0.9rem; }
.panel-head .panel-title { margin: 0; }
.duel-board-table td { vertical-align: middle; }
.duel-board-table td:last-child { text-align: right; }
.duel-board-panel .table-scroll { margin-top: 0.5rem; }
.chip-btn {
  border-color: var(--border);
  background: transparent;
  color: var(--text-dim);
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.chip-btn:hover { border-color: var(--border-2); color: var(--text); background: var(--bg-panel-2); }
.chip-btn.active {
  border-color: var(--primary);
  color: var(--text);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
}
.duel-waiting-row { background: var(--bg-panel-2); border-color: var(--border); }
@media (max-width: 640px) {
.duel-waiting-text { flex-basis: auto; }
}
.duel-top-duelists-list li { background: var(--bg-panel); border-color: var(--border); border-radius: var(--radius-sm); }
.duel-faq { margin-top: 0; }
.field-label { display: block; margin-bottom: 0.4rem; font-size: 0.88rem; }
.input-affix {
  display: flex;
  align-items: center;
  padding-left: 0.8rem;
  background: var(--bg-panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.input-affix:focus-within { border-color: var(--text-dim); outline: 2px solid var(--text-dim); outline-offset: 2px; }
.input-affix > span { font-family: var(--mono); color: var(--text-dim); }
.input-affix input[type="number"] { border: 0; background: transparent; padding-left: 0.35rem; }
.input-affix input:focus-visible { outline: none; }
.duel-mode-switch { background: var(--bg-panel-2); border-color: var(--border); border-radius: var(--radius); }
.mode-switch-btn { color: var(--text-dim); border: 1px solid transparent; }
.mode-switch-btn.active { background: var(--bg-panel-3); border-color: var(--border-2); box-shadow: none; color: var(--text); }
.duel-calc-card {
  margin: 1.25rem 0 1rem;
  padding: 0.85rem 1rem;
  background: var(--bg-panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.calc-row { color: var(--text-dim); }
.calc-row.calc-total { border-top: 1px solid var(--border); color: var(--text); }
.modal .note-list { margin-bottom: 0.25rem; }
input[type="file"] { max-width: 100%; }
.terminal-section { padding-block: 1.25rem 3rem; }
.terminal-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1rem;
}
.terminal-title { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.85rem; min-width: 0; }
.terminal-title h1 { font-size: 1.6rem; line-height: 1.1; letter-spacing: -0.02em; font-variation-settings: "opsz" 48; }
.terminal-meta { font-size: 0.8rem; color: var(--text-dim); }
@media (max-width: 640px) { .terminal-title { flex: 1 1 100%; } }
.terminal-bar-actions { display: flex; align-items: center; gap: 0.5rem; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 32px;
  padding-right: 0.85rem;
  border-right: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.85rem;
  text-decoration: none;
}
.back-link:hover { color: var(--text); }
.rule-meter {
  display: grid;
  grid-template-columns: minmax(12rem, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem 2.5rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  background: var(--bg-panel);
  overflow: visible;
}
.rule-meter .wick-bar { height: 10px; border-radius: 2px; }
.rm-equity { display: grid; gap: 0.2rem; }
.rm-equity .rule-meter-equity-num { font-size: 2rem; font-weight: 500; letter-spacing: -0.02em; }
.rm-pnl { display: flex; align-items: baseline; gap: 0.4rem; }
.rm-pnl .num { font-size: 0.95rem; }
.rm-progress { min-width: 0; }
.rm-sub { margin: 0.35rem 0 0; max-width: none; font-size: 0.8rem; }
.rm-stats { display: grid; grid-template-columns: repeat(2, minmax(7.5rem, auto)); gap: 0.75rem 2rem; }
.rm-stats-3 { grid-template-columns: repeat(3, minmax(7rem, auto)); }
@media (min-width: 1101px) and (max-height: 900px) {
  .terminal-section .rule-meter { padding-block: 0.8rem; margin-bottom: 0.75rem; }
  .terminal-section .rm-sub { display: none; }
  .order-ticket-panel { padding-block: 1rem; }
  .order-ticket-panel .ticket-config .field { margin-bottom: 0.5rem; }
  .order-ticket-panel .ticket-readout { padding-block: 0.4rem; margin-bottom: 0.5rem; }
  .order-ticket-panel .panel-head { padding-bottom: 0.6rem; margin-bottom: 0.75rem; }
  .order-ticket-panel .quick-sizes .btn { min-height: 36px; padding-block: 0.3rem; }
  .order-ticket-panel .ticket-config input { padding-block: 0.5rem; }
  .order-ticket-panel .protective-fields { margin-bottom: 0.4rem; }
  .order-ticket-panel .side-buttons .btn { padding-block: 0.65rem; }
}
.rule-meter-stat .num { font-size: 1rem; }
.rule-meter-stat .num.risk-warn { color: var(--gold); }
.rule-meter-stat .num.risk-danger { color: var(--down); }
@media (max-width: 1100px) {
  .rule-meter { grid-template-columns: auto minmax(0, 1fr); }
  .rm-stats { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 1rem; border-top: 1px solid var(--border); }
.rm-stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .rule-meter { grid-template-columns: 1fr; gap: 1rem; }
  .rm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rm-equity .rule-meter-equity-num { font-size: 1.75rem; }
.rm-stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem 0.75rem; }
  .rm-stats-3 .rule-meter-stat .num { font-size: 0.85rem; }
  .rm-stats-3 .rule-meter-stat .label { font-size: 0.75rem; }
  #rule-meter-sub { display: none; }
}
@media (max-width: 640px) {
  .terminal-page .terminal-section .rule-meter {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr);
    align-items: end; gap: 0.5rem 0.75rem; padding: 0.75rem 0.85rem;
  }
  .terminal-page .rm-equity { grid-column: 1; grid-row: 1; gap: 0; }
  .terminal-page .rm-equity .label,
  .terminal-page .rule-meter-stat .label { font-size: 0.75rem; }
  .terminal-page .rm-equity .rule-meter-equity-num { font-size: 1.15rem; line-height: 1.2; }
  .terminal-page .rm-pnl { display: none; }
  .terminal-page .rm-stats { display: contents; }
  .terminal-page .rm-stats .rule-meter-stat { display: grid; gap: 0; min-width: 0; }
  .terminal-page .rm-stats .rule-meter-stat:first-child { display: none; }
  .terminal-page .rm-stats .rule-meter-stat .num { font-size: 0.9rem; line-height: 1.3; }
  .terminal-page #fig-daily-reset { display: none; }
  .terminal-page .rm-progress {
    grid-column: 1 / -1; grid-row: 2;
    display: flex; align-items: center; gap: 0.6rem;
  }
  .terminal-page .rm-progress .wick-bar { flex: 1; order: 1; margin: 0; }
  .terminal-page .rm-progress .wick-head { order: 2; margin: 0; }
  .terminal-page .rm-progress #meter-caption,
  .terminal-page .rm-progress .wick-labels { display: none; }
.terminal-page .terminal-section .ticket-action .side-buttons {
position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;
    margin: 0;
    padding: 0.6rem 0.85rem max(0.6rem, env(safe-area-inset-bottom));
    background: var(--bg-card);
    border-top: 1px solid var(--border-2);
  }
  .terminal-page .terminal-section .ticket-action .side-buttons .btn { min-height: 48px; width: 100%; }
body.terminal-page { padding-bottom: calc(4.4rem + env(safe-area-inset-bottom)); }
  .terminal-page .toast-stack { bottom: calc(5rem + env(safe-area-inset-bottom)); }
}
.terminal-section .panel-head h3 { font-size: 1.05rem; }
.ticker-bar { gap: 0.6rem; }
.ticker-head,
.ticker-strip .row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 4.25rem;
  align-items: center;
  gap: 0.5rem;
}
.ticker-head {
  padding: 0 0.6rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-faint);
}
.ticker-head span:not(:first-child) { text-align: right; }
.ticker-strip { display: flex; flex-direction: column; gap: 1px; }
.ticker-strip .row {
  width: 100%;
  padding: 0.5rem 0.6rem;
  text-align: left;
  color: var(--text);
}
.ticker-strip .row .sym { font-size: 0.82rem; }
.ticker-strip .row .px { font-family: var(--mono); font-size: 0.85rem; text-align: right; }
.ticker-strip .row .chg { font-size: 0.78rem; text-align: right; }
.ticker-strip .row.active { border-color: var(--border-2); background: var(--bg-panel-3); }
.ticker-strip .row.active .sym { font-weight: 600; }
.chart-interval-picker { gap: 0; padding: 2px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.chart-interval-picker .btn { min-height: 28px; padding: 0.2rem 0.55rem; border-color: transparent; }
.chart-interval-picker .btn.active { background: var(--bg-panel-3); border-color: var(--border-2); color: var(--text); }
.chart-timezone-select { max-width: 11rem; }
.chart-note { margin: 0; padding: 0; max-width: none; }
.order-ticket { flex: 1; }
.order-ticket-panel .ticket-action { margin-top: 0.5rem; padding-top: 0; border-top: 0; }
.ticket-symbol { font-size: 0.95rem; font-weight: 600; }
.order-ticket .quick-sizes { margin: 0.5rem 0 0.25rem; }
#ticket-margin-hint { min-height: 2lh; margin: 0.25rem 0 0.5rem; }
.ticket-readout {
  margin: 0;
  padding: 0.75rem 0 0.6rem;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
}
.protective-fields summary .muted { font-size: 0.8rem; }
.positions-panel { padding-top: 0.5rem; }
.positions-panel .tabs { margin-bottom: 0.5rem; }
.legal table.dj-table, .rulebook table.dj-table { max-width: 40em; }
.panel-title,
.panel-head h2,
.panel-head h3 { line-height: 1.25; letter-spacing: -0.005em; font-variation-settings: "opsz" 24; }
.duel-board-table .empty-row td { text-align: center; }
@media (max-width: 640px) {
.chart-legend { right: 8px; white-space: normal; font-size: 0.75rem; line-height: 1.35; }
}
.duel-room .duel-scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem 2rem;
  margin: 0 0 1rem;
  padding: 1.25rem 1.5rem 1.1rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: visible;
}
.duel-side { display: grid; justify-items: start; gap: 0.25rem; min-width: 0; padding: 0.5rem 0.75rem; border-radius: var(--radius-sm); }
.duel-side-opp { justify-items: end; text-align: right; }
.duel-side-opp .num { text-align: right; }
.duel-side-name { display: flex; align-items: center; gap: 0.5rem; min-width: 0; max-width: 100%; font-size: 0.85rem; color: var(--text-dim); }
.duel-side-name .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.duel-side-equity { font-size: 1.9rem; line-height: 1.1; letter-spacing: -0.02em; }
.duel-side-pnl { font-size: 0.9rem; }
.duel-clock { display: grid; justify-items: center; gap: 0.2rem; min-width: 11rem; }
.duel-clock-num { font-size: 2.5rem; font-weight: 500; line-height: 1; letter-spacing: -0.02em; }
.duel-clock.is-urgent .duel-clock-num { color: var(--down); }
.duel-lead {
  padding: 0.15rem 0.65rem;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  color: var(--text-dim);
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease;
}
.duel-lead.is-up { color: var(--up); border-color: color-mix(in srgb, var(--up) 40%, transparent); }
.duel-lead.is-down { color: var(--down); border-color: color-mix(in srgb, var(--down) 40%, transparent); }
.duel-room .duel-tug {
  grid-column: 1 / -1;
  position: relative;
  display: flex;
  height: 6px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-panel-2);
}
.duel-room .duel-tug::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-1px);
  background: var(--bg-panel);
}
.duel-room .duel-tug-fill { height: 6px; transition: width .4s var(--ease); }
.duel-room .duel-tug-me { background: var(--primary-fill); }
.duel-room .duel-tug-opp { background: var(--accent); }
.combatant-you-badge,
.combatant-opp-badge {
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-pill);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
}
.combatant-you-badge { background: var(--bg-panel-3); color: var(--text); border: 1px solid var(--border-2); }
.combatant-opp-badge { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.ticket-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.ticket-facts .num { font-size: 0.95rem; }
.tabs-row .tabs { flex: 1; }
@media (max-width: 720px) {
  .duel-room .duel-scoreboard { grid-template-columns: 1fr 1fr; gap: 0.75rem; padding: 1rem; }
  .duel-clock { grid-column: 1 / -1; grid-row: 1; grid-auto-flow: column; align-items: baseline; justify-content: center; gap: 0.75rem; min-width: 0; }
  .duel-clock-num { font-size: 1.9rem; }
  .duel-side { padding: 0.25rem 0; }
  .duel-side-equity { font-size: 1.3rem; }
  .duel-side-pnl { font-size: 0.8rem; }
  #duel-my-pnl-display, #duel-opponent-pnl { min-width: 0; white-space: normal; }
}
@media (min-width: 1101px) {
.chart-panel .tv-chart-wrap { min-height: 460px; }
}
.result-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1.25rem; }
.result-bar .back-link { border-right: 0; padding-right: 0; }
.result-share { display: flex; gap: 0.5rem; }
.result-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 1.25rem 1.75rem;
  padding: 1.75rem;
  margin-bottom: 1rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.result-hero.is-win { border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.result-hero.is-loss { border-color: var(--border-2); }
.result-hero.is-tie { border-color: color-mix(in srgb, var(--up) 35%, transparent); }
.result-icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  color: var(--text-dim);
}
.result-icon .icon { width: 1.6rem; height: 1.6rem; }
.is-win .result-icon { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 50%, transparent); background: color-mix(in srgb, var(--gold) 8%, transparent); }
.is-tie .result-icon { color: var(--up); border-color: color-mix(in srgb, var(--up) 45%, transparent); }
.result-copy { display: grid; gap: 0.5rem; min-width: 0; }
.result-copy h1 { font-size: 2.5rem; line-height: 1.05; letter-spacing: -0.02em; font-variation-settings: "opsz" 96; }
.result-copy p { color: var(--text-dim); max-width: 34em; text-wrap: pretty; }
.result-figure { display: grid; justify-items: end; gap: 0.2rem; text-align: right; }
.result-figure .num { font-size: 2rem; letter-spacing: -0.02em; line-height: 1.1; }
@keyframes result-in { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
.result-icon { animation: result-in .5s var(--ease) both; }
@media (max-width: 720px) {
  .result-hero { grid-template-columns: auto minmax(0, 1fr); padding: 1.25rem; }
  .result-figure { grid-column: 1 / -1; justify-items: start; text-align: left; padding-top: 1rem; border-top: 1px solid var(--border); }
  .result-copy h1 { font-size: 1.9rem; }
  .result-icon { width: 2.75rem; height: 2.75rem; }
}
.result-panel { margin-bottom: 1rem; }
.dj-table.duel-leaderboard-table { border-collapse: collapse; border-spacing: 0; }
.dj-table.duel-leaderboard-table th { padding: 0.85rem 1.25rem 0.85rem 0; }
.dj-table tr.is-me { background: color-mix(in srgb, var(--text) 3%, transparent); }
.trader-cell { display: inline-flex; align-items: center; gap: 0.6rem; }
.rank { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border: 1px solid var(--border-2); border-radius: 50%; font-family: var(--mono); font-size: 0.75rem; }
.result-recap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: 1rem 2rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.result-recap .num { font-size: 1rem; }
.result-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.result-hero + .result-actions { margin: 1rem 0 1.5rem; }
.duel-race-chart { height: 300px; }
.panel-head { flex-wrap: wrap; row-gap: 0.25rem; }
@media (max-width: 1100px) {
#ticket-margin-hint { min-height: 0; }
  #ticket-margin-hint:empty { margin: 0; }
}
.empty-row .empty-msg {
  position: sticky;
  left: 0;
  display: inline-block;
  max-width: min(100%, calc(100vw - 5rem));
  white-space: normal;
  text-align: left;
}
.scroll-x, .table-scroll { position: relative; }
@media (max-width: 480px) {
.mode-switch-btn .icon { display: none; }
}
.duel-board-table th:nth-child(2) { width: 9rem; }
.duel-board-table th:nth-child(3) { width: 7rem; }
.duel-board-table th:nth-child(4) { width: 9rem; }
.duel-board-table th:nth-child(5) { width: 6.5rem; }
@media (max-width: 1100px) {
.duel-board-panel { order: 1; }
  #duel-live-panel { order: 2; }
}
.duel-history-list { container-type: inline-size; }
.duel-trader > * { max-width: 100%; }
.duel-trader .trade-cell { display: flex; flex-wrap: wrap; }
@container (max-width: 860px) {
  .duel-match { grid-template-columns: minmax(0, 1fr); gap: 0.85rem; padding: 1rem 1.1rem; }
}
@container (max-width: 520px) {
  .duel-match-bout { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
}
.duel-board-table th:nth-child(1) { width: 34%; }
.duel-board-table th:nth-child(2) { width: 22%; }
.duel-stats-group h3 {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  font-variation-settings: normal;
  color: var(--text-faint);
}
.ticker-head,
.ticker-strip .row { grid-template-columns: auto minmax(0, 1fr) 3.75rem; }
.ticker-strip .row .sym { white-space: nowrap; }
.ticker-strip .row .px { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticker-bar { container-type: inline-size; }
.ticker-head,
.ticker-strip .row { grid-template-columns: auto minmax(0, 1fr) 3.25rem; gap: 0.4rem; }
.ticker-strip .row { padding-inline: 0.5rem; }
.ticker-head { padding-inline: 0.5rem; }
.ticker-strip .row .sym { font-size: 0.78rem; }
.ticker-strip .row .px { font-size: 0.82rem; overflow: visible; text-overflow: clip; }
.ticker-strip .row .chg { font-size: 0.75rem; }
@container (max-width: 225px) {
  .ticker-head,
  .ticker-strip .row { grid-template-columns: auto minmax(0, 1fr); }
  .ticker-head span:last-child,
  .ticker-strip .row .chg { display: none; }
}
.draft-room {
  --seat-creator: #e4dfd2;
  --seat-opponent: #e3a557;
  padding-block: 1rem 3rem;
}
.draft-wrap { max-width: 1480px; }
.draft-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1rem;
}
.draft-head-title { display: flex; align-items: baseline; gap: 1rem; min-width: 0; }
.draft-head-title h1 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.2;
  text-wrap: balance;
}
.draft-head-sep { margin-inline: 0.2em; color: var(--text-tertiary); font-family: var(--body); font-size: 0.7em; font-weight: 400; }
.draft-head-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.draft-head-meta .duel-sound-toggle { white-space: nowrap; }
.draft-pill {
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
}
.draft-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  grid-template-rows: auto 1fr;
  grid-template-areas: "main panel" "moves panel";
  gap: 1.25rem;
  align-items: start;
}
.draft-main { grid-area: main; min-width: 0; }
.draft-panel { grid-area: panel; }
.draft-layout > .draft-moves { grid-area: moves; min-width: 0; }
.draft-panel { display: flex; flex-direction: column; gap: 0.75rem; }
.draft-board-frame {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0.5rem 0.25rem 0.25rem;
}
.draft-board { position: relative; min-height: 300px; }
.draft-svg {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-select: none;
  cursor: default;
}
.draft-board.is-picking .draft-svg { cursor: crosshair; touch-action: none; }
.draft-wick, .draft-body { stroke-width: 1; }
.draft-wick.is-up, .draft-body.is-up { stroke: var(--up); fill: var(--up); }
.draft-wick.is-down, .draft-body.is-down { stroke: var(--down); fill: var(--down); }
.draft-grid { stroke: var(--border-subtle); stroke-width: 1; }
.draft-axis-label {
  fill: var(--text-tertiary);
  font-size: 11px;
  font-family: var(--mono);
}
.draft-band-creator { color: var(--seat-creator); }
.draft-band-opponent { color: var(--seat-opponent); }
.draft-band { fill: currentColor; fill-opacity: 0.08; }
.draft-band-tab { fill: currentColor; fill-opacity: 0.2; stroke: currentColor; stroke-opacity: 0.55; }
.draft-band-ghost { fill: currentColor; fill-opacity: 0.06; stroke: currentColor; stroke-opacity: 0.45; stroke-dasharray: 4 4; }
.draft-band-label {
  font-size: 11.5px;
  font-weight: 600;
  font-family: var(--mono);
  pointer-events: none;
}
.draft-band-label-up { fill: var(--up); }
.draft-band-label-down { fill: var(--down); }
.draft-band-label.is-ghost { fill-opacity: 0.8; font-weight: 500; font-size: 10.5px; }
.draft-claim-band.is-new .draft-band { animation: draft-band-land 1.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
.draft-claim-band.is-new .draft-band-tab { animation: draft-tab-land 1.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes draft-band-land { from { fill-opacity: 0.32; } to { fill-opacity: 0.08; } }
@keyframes draft-tab-land { from { fill-opacity: 0.6; } to { fill-opacity: 0.2; } }
.draft-dead { opacity: 0.7; }
.draft-hatch-line { stroke: var(--border-2); stroke-width: 1.5; }
.draft-sel { stroke-width: 1.5; stroke-dasharray: 5 4; }
.draft-sel-long { fill: var(--up); fill-opacity: 0.12; stroke: var(--up); }
.draft-sel-short { fill: var(--down); fill-opacity: 0.12; stroke: var(--down); }
.draft-sel.is-illegal { fill: var(--text-tertiary); fill-opacity: 0.1; stroke: var(--text-tertiary); }
.draft-sel-line { stroke: var(--text-primary); stroke-width: 1.5; stroke-opacity: 0.8; }
.draft-sel-line.is-illegal { stroke-opacity: 0.35; }
.draft-marker { stroke: var(--text-primary); stroke-width: 1.5; }
.draft-marker-exit { stroke-dasharray: 3 3; }
.draft-marker-dot { fill: var(--bg-card); stroke: var(--text-primary); stroke-width: 2; }
.draft-marker-hover { stroke: var(--text-tertiary); stroke-width: 1; stroke-opacity: 0.6; }
.draft-marker-cursor { stroke: var(--text-secondary); stroke-width: 1; stroke-dasharray: 2 4; }
.draft-axis-pill { fill: var(--primary-fill); }
.draft-axis-pill-text {
  fill: var(--on-primary-fill);
  font-size: 11px;
  font-weight: 600;
  font-family: var(--mono);
}
.draft-tip {
  position: absolute;
  z-index: 2;
  padding: 0.3rem 0.55rem;
  background: var(--bg-app);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--text-primary);
  white-space: nowrap;
  pointer-events: none;
  box-shadow: var(--shadow-md);
}
.draft-tip.is-up { border-color: var(--up); }
.draft-tip.is-down { border-color: var(--down); }
.draft-tip.is-illegal { color: var(--text-secondary); }
.draft-banner {
  position: absolute;
  top: 0.9rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.6rem 0.45rem 0.9rem;
  background: var(--bg-app);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  box-shadow: var(--shadow-md);
  pointer-events: none;
  white-space: nowrap;
}
.draft-banner[hidden] { display: none; }
.draft-banner strong { color: var(--text-primary); }
.draft-banner span { color: var(--text-secondary); }
.draft-countdown {
  min-width: 3ch;
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--primary-fill);
  color: var(--on-primary-fill) !important;
  font-weight: 600;
  text-align: center;
}
.draft-countdown.is-low { background: var(--down-fill); color: var(--on-fill) !important; }
.draft-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin: 0.65rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.draft-legend li { display: flex; align-items: center; gap: 0.45rem; }
.draft-legend li[hidden] { display: none; }
.draft-swatch {
  display: inline-block;
  flex: none;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: var(--radius);
}
.draft-swatch-creator { background: var(--seat-creator); }
.draft-swatch-opponent { background: var(--seat-opponent); }
.draft-swatch-ghost { background: var(--text-tertiary); opacity: 0.4; }
.draft-swatch-dead {
  background: repeating-linear-gradient(45deg, var(--border-2) 0 1.5px, transparent 1.5px 5px);
  border: 1px solid var(--border-subtle);
}
.draft-help {
  margin-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  max-width: 34em;
}
.draft-help summary { cursor: pointer; color: var(--text-primary); font-weight: 500; }
.draft-help ul { margin: 0.6rem 0; padding-left: 1.1rem; }
.draft-help li { margin-bottom: 0.4rem; text-wrap: pretty; }
.draft-help strong { color: var(--text-primary); font-weight: 600; }
.draft-keys { line-height: 1.9; }
.draft-toolbar { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.4rem 1.25rem; margin-bottom: 0.5rem; }
.draft-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}
.draft-switch[hidden] { display: none; }
.draft-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.draft-switch-track {
  position: relative;
  width: 2rem;
  height: 1.1rem;
  border-radius: var(--radius-pill);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-2);
  transition: background-color 150ms ease;
}
.draft-switch-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(1.1rem - 6px);
  height: calc(1.1rem - 6px);
  border-radius: calc(var(--radius) - 3px);
  background: var(--text-secondary);
  transition: transform 150ms ease, background-color 150ms ease;
}
.draft-switch input:checked + .draft-switch-track { background: var(--up-fill); border-color: var(--up); }
.draft-switch input:checked + .draft-switch-track::after { transform: translateX(0.9rem); background: var(--on-fill); }
.draft-switch input:focus-visible + .draft-switch-track { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.draft-switch:hover { color: var(--text-primary); }
.draft-end-label-bg { fill: var(--bg-app); stroke: var(--border-2); }
.draft-end-label { fill: var(--text-primary); font-size: 11px; font-family: var(--mono); }
.draft-resign-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.75rem; padding: 0 0.15rem; }
.draft-resign {
  padding: 0.3rem 0;
  border: 0;
  background: none;
  color: var(--text-tertiary);
  font: inherit;
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.draft-resign:hover { color: var(--text-primary); }
.draft-resign:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.draft-resign.is-armed {
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--danger);
  border-radius: var(--radius);
  background: var(--danger-bg);
  color: var(--danger);
  text-decoration: none;
  font-weight: 600;
}
.draft-resign:disabled { opacity: 0.5; cursor: default; }
.draft-resign-note { font-size: 0.8rem; color: var(--danger); }
.draft-resign-note[hidden] { display: none; }
.draft-player {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 0.6rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: border-color 200ms ease, background-color 200ms ease;
}
.draft-player .draft-swatch { grid-row: 1; }
.draft-player-name {
  grid-row: 1;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.draft-rating { color: var(--text-tertiary); font-weight: 400; font-size: 0.8rem; }
.draft-player-equity { grid-row: 2; grid-column: 2; display: grid; font-size: 0.85rem; color: var(--text-secondary); }
.draft-player-match { color: var(--text-primary); }
.draft-clock {
  grid-row: 1 / span 2;
  grid-column: 3;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius);
  background: var(--bg-panel-2);
  font-size: 1.6rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-tertiary);
  line-height: 1.1;
}
.draft-player.is-to-move { border-color: var(--border-2); background: var(--bg-card-hover); }
.draft-player.is-to-move .draft-clock { background: var(--primary-fill); color: var(--on-primary-fill); }
.draft-clock.is-low { color: var(--down); }
.draft-player.is-to-move .draft-clock.is-low {
  background: var(--down-fill);
  color: var(--on-fill);
  animation: draft-clock-urgent 1s ease-in-out infinite;
}
@keyframes draft-clock-urgent { 50% { background: var(--down-fill-hover); } }
.draft-standing { display: grid; gap: 0.4rem; padding: 0 0.15rem; }
.draft-standing-text { font-size: 0.86rem; color: var(--text-primary); font-weight: 500; }
.draft-standing-bar {
  position: relative;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--bg-tertiary);
  overflow: hidden;
}
.draft-standing-bar::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border-2);
}
.draft-standing-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  border-radius: var(--radius-pill);
  transition: width 400ms cubic-bezier(0.22, 1, 0.36, 1), left 400ms cubic-bezier(0.22, 1, 0.36, 1);
}
.draft-standing-creator { background: var(--seat-creator); }
.draft-standing-opponent { background: var(--seat-opponent); }
.draft-status {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-panel-2);
}
.draft-status p { margin: 0; }
.draft-reconnect { margin: 0; font-size: 0.85rem; color: var(--text-primary); }
.draft-reconnect:not(:empty) { padding: 0.5rem 0.75rem; border: 1px dashed var(--border-subtle); border-radius: var(--radius); }
.draft-status-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}
.draft-status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--text-tertiary);
  flex: none;
}
.draft-status .draft-status-detail { margin-top: 0.3rem; font-size: 0.88rem; color: var(--text-secondary); text-wrap: pretty; }
.draft-status .draft-status-detail:empty { display: none; }
.draft-status .draft-status-last {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  font-family: var(--mono);
  color: var(--text-secondary);
}
.draft-status-last[hidden] { display: none; }
.draft-status[data-tone="you"] { border-color: var(--primary-fill); }
.draft-status[data-tone="you"] .draft-status-dot { background: var(--primary-fill); animation: draft-pulse 1.8s ease-in-out infinite; }
.draft-status[data-tone="alert"] { border-color: var(--danger); background: var(--danger-bg); }
.draft-status[data-tone="alert"] .draft-status-dot { background: var(--danger); }
@keyframes draft-pulse { 50% { opacity: 0.35; } }
.draft-order-wrap { display: grid; gap: 0.35rem; }
.draft-order-label { margin: 0; font-size: 0.78rem; color: var(--text-secondary); }
.draft-order {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.draft-slot {
  display: grid;
  place-items: center;
  height: 2rem;
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--on-primary-fill);
  transition: opacity 200ms ease;
}
.draft-slot-creator { background: var(--seat-creator); }
.draft-slot-opponent { background: var(--seat-opponent); }
.draft-slot.is-done { opacity: 0.25; }
.draft-slot.is-current { outline: 2px solid var(--text-primary); outline-offset: 2px; }
.draft-ticket {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: border-color 200ms ease;
}
.draft-ticket.is-idle { border-style: dashed; }
.draft-ticket.is-idle :is(button, input, select):disabled { opacity: 0.55; }
.draft-ticket-title { margin: 0; font-family: var(--body); font-size: 0.95rem; font-weight: 600; letter-spacing: 0; }
.draft-ticket-empty { margin: 0; font-size: 0.88rem; color: var(--text-secondary); }
.draft-ticket-empty strong { color: var(--text-primary); }
.draft-ticket.has-selection .draft-ticket-empty,
.draft-ticket.is-idle .draft-ticket-empty { display: none; }
.draft-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  background: var(--bg-panel-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}
.draft-seg-btn {
  padding: 0.5rem;
  border: 1px solid transparent;
  border-radius: calc(var(--radius) - 2px);
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}
.draft-seg-btn { display: grid; gap: 0.1rem; line-height: 1.2; }
.draft-seg-btn small { font-size: 0.75rem; font-weight: 400; opacity: 0.85; }
.draft-seg-btn:hover { color: var(--text-primary); }
.draft-seg-btn:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 1px; }
#draft-long[aria-pressed="true"] { background: var(--up-fill); border-color: var(--up); color: var(--on-fill); }
#draft-short[aria-pressed="true"] { background: var(--down-fill); border-color: var(--down); color: var(--on-fill); }
.draft-ticket-candles { display: flex; align-items: flex-end; gap: 0.5rem; }
.draft-arrow { padding-bottom: 0.55rem; color: var(--text-tertiary); }
.draft-field { display: grid; gap: 0.25rem; flex: 1; min-width: 0; }
.draft-field-label { font-size: 0.75rem; color: var(--text-secondary); }
.draft-stepper { display: flex; align-items: stretch; }
.draft-stepper .input {
  width: 100%;
  min-width: 0;
  text-align: center;
  border-radius: 0;
  -moz-appearance: textfield;
  appearance: textfield;
}
.draft-stepper .input::-webkit-inner-spin-button,
.draft-stepper .input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.draft-step {
  flex: none;
  width: 2rem;
  border: 1px solid var(--border-subtle);
  background: var(--bg-panel-2);
  color: var(--text-secondary);
  font: inherit;
  cursor: pointer;
}
.draft-step:first-child { border-radius: var(--radius) 0 0 var(--radius); border-right: 0; }
.draft-step:last-child { border-radius: 0 var(--radius) var(--radius) 0; border-left: 0; }
.draft-step:hover { color: var(--text-primary); background: var(--bg-card-hover); }
.draft-step:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 1px; }
.draft-ticket-readout {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 0.15rem 0.75rem;
}
.draft-ticket:not(.has-selection) .draft-ticket-move,
.draft-ticket:not(.has-selection) .draft-ticket-money,
.draft-ticket:not(.has-selection) .draft-ticket-sub { display: none; }
.draft-ticket-move { font-size: 1.7rem; font-weight: 600; color: var(--text-tertiary); line-height: 1.1; }
.draft-ticket-move.is-up { color: var(--up); }
.draft-ticket-move.is-down { color: var(--down); }
.draft-ticket-money { font-size: 0.85rem; color: var(--text-primary); }
.draft-ticket-sub { font-size: 0.8rem; color: var(--text-secondary); }
.draft-why { grid-column: 1 / -1; font-size: 0.85rem; color: var(--danger); }
.draft-why:empty { display: none; }
.draft-why.is-hint { color: var(--text-secondary); }
.draft-ticket-actions { display: grid; gap: 0.4rem; }
.draft-claim { width: 100%; padding-block: 0.75rem; font-size: 1rem; }
.draft-pass { width: 100%; }
.draft-pass.is-armed { color: var(--danger); border-color: var(--danger); }
.draft-watching {
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px dashed var(--border-2);
  border-radius: var(--radius-lg);
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.draft-moves { margin: 0; padding: 0; }
.draft-moves h2 { margin: 0 0 0.4rem; font-family: var(--body); font-size: 0.9rem; font-weight: 600; color: var(--text-secondary); letter-spacing: 0; }
.draft-move-list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 16rem;
  overflow-y: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}
.draft-move {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 5.5rem) minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.84rem;
}
.draft-move:last-child { border-bottom: 0; }
.draft-move-num { color: var(--text-tertiary); font-size: 0.75rem; }
.draft-move-who { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.draft-move-creator .draft-move-who { color: var(--seat-creator); }
.draft-move-opponent .draft-move-who { color: var(--seat-opponent); }
.draft-move-what { color: var(--text-primary); }
.draft-move.is-pass .draft-move-what { color: var(--text-tertiary); }
.draft-move-pct.is-up { color: var(--up); }
.draft-move-pct.is-down { color: var(--down); }
.draft-move.is-new { animation: draft-move-land 1.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes draft-move-land { from { background: var(--bg-tertiary); } to { background: transparent; } }
.draft-move-leg {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  background: var(--bg-panel-2);
  border-bottom: 1px solid var(--border-subtle);
}
.draft-move-empty { padding: 0.75rem; font-size: 0.85rem; color: var(--text-tertiary); }
@media (prefers-reduced-motion: reduce) {
  .draft-claim-band.is-new .draft-band,
  .draft-claim-band.is-new .draft-band-tab,
  .draft-move.is-new,
  .draft-status[data-tone="you"] .draft-status-dot { animation: none; }
  .draft-player, .draft-slot, .draft-seg-btn, .draft-ticket, .draft-standing-fill,
  .draft-switch-track, .draft-switch-track::after { transition: none; }
  .draft-player.is-to-move .draft-clock.is-low { animation: none; }
}
@media (max-width: 1000px) {
  .draft-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: none; grid-template-rows: none; gap: 0.75rem; }
  .draft-main, .draft-panel, .draft-layout > .draft-moves { grid-area: auto; }
  .draft-standing { order: 2; }
  .draft-panel { display: contents; }
  .draft-player-top { order: 1; }
  .draft-status { order: 2; }
  .draft-main { order: 3; }
  .draft-order-wrap { order: 4; }
  .draft-ticket, .draft-watching { order: 5; }
  .draft-player-bottom { order: 6; }
  .draft-resign-row { order: 6; }
  .draft-moves { order: 7; }
  .draft-clock { font-size: 1.35rem; }
}
@media (max-width: 560px) {
  .draft-head-title { flex-direction: column; gap: 0.25rem; }
  .draft-head-title h1 { font-size: 1.25rem; }
  .draft-banner { white-space: normal; width: max-content; max-width: calc(100% - 1.5rem); }
}
.draft-bot-option, .draft-tc-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 0.6rem;
  align-items: baseline;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}
.draft-bot-option .small { grid-column: 2; }
.draft-bot-name { font-weight: 600; }
.draft-practice-form fieldset { border: 0; padding: 0; margin: 0 0 1.2rem; }
.draft-scores, .draft-ledger, .draft-pools { width: 100%; border-collapse: collapse; }
.draft-scores th, .draft-scores td,
.draft-ledger th, .draft-ledger td,
.draft-pools th, .draft-pools td {
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
}
.draft-scores thead th, .draft-ledger thead th {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.draft-scores .num, .draft-ledger .num, .draft-pools .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.draft-leg { margin-top: 1.5rem; }
.draft-result { padding-block: 1rem 3rem; }
.draft-result .draft-wrap { max-width: 1100px; }
.draft-verdict {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}
.draft-verdict p { margin: 0; }
.draft-verdict-title {
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1.15;
  color: var(--text-primary);
  text-wrap: balance;
}
.draft-verdict-detail { margin-top: 0.35rem !important; color: var(--text-secondary); }
.draft-verdict[data-tone="won"] { border-color: var(--up); background: var(--success-bg); }
.draft-verdict[data-tone="won"] .draft-verdict-title { color: var(--up); }
.draft-verdict[data-tone="lost"] .draft-verdict-title { color: var(--text-primary); }
.draft-result .result-actions { margin: 1rem 0 2rem; }
.draft-scores caption {
  caption-side: bottom;
  padding-top: 0.6rem;
  text-align: left;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.draft-scores tbody th { font-weight: 600; white-space: nowrap; }
.draft-scores tbody th .draft-swatch { margin-right: 0.45rem; vertical-align: -0.05rem; }
.draft-you { font-weight: 400; font-size: 0.8rem; color: var(--text-secondary); }
.draft-win-badge {
  margin-left: 0.5rem;
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--primary-fill);
  color: var(--on-primary-fill);
  font-size: 0.75rem;
  font-weight: 600;
}
.draft-score-total { font-weight: 600; color: var(--text-primary); }
.draft-scores tr.is-winner .draft-score-total { font-size: 1.05rem; }
.draft-result .draft-leg { margin-top: 2.5rem; padding: 0; }
.draft-result section + section { border-top: 0; }
.draft-leg-head { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 0.6rem; }
.draft-leg-head h2 { margin: 0; font-size: 1.35rem; }
.draft-leg-note { font-size: 0.85rem; color: var(--text-secondary); }
.draft-leg-board { min-height: 220px; }
.draft-leg-sides { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 560px), 1fr)); gap: 1.25rem 1.5rem; margin-top: 1rem; }
.draft-leg-side .table-scroll { margin: 0; }
.draft-leg-side-head { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.35rem; max-width: none; }
.draft-leg-side-head strong { font-weight: 600; color: var(--text-primary); }
.draft-leg-equity { margin-left: auto; color: var(--text-secondary); }
.draft-leg-equity.is-ahead { color: var(--text-primary); font-weight: 600; }
.draft-leg-empty { margin: 0.25rem 0 0; font-size: 0.85rem; color: var(--text-tertiary); }
.draft-ledger { font-size: 0.84rem; }
.draft-ledger th, .draft-ledger td { white-space: nowrap; }
.draft-dir { font-weight: 600; }
.draft-dir-long { color: var(--up); }
.draft-dir-short { color: var(--down); }
.draft-verify { margin-top: 2rem; font-size: 0.82rem; color: var(--text-secondary); max-width: 34em; }
.draft-review { margin-top: 2.5rem; padding: 0; }
.draft-review h2 { font-size: 1.35rem; margin: 0 0 0.35rem; }
.draft-ledger tr.grade-inaccuracy td { color: var(--text-secondary); }
.draft-ledger tr.grade-mistake td { color: var(--accent); }
.draft-ledger tr.grade-blunder td { color: var(--down); }
.table-scroll { overflow-x: auto; }
.draft-practice-form { margin-top: 1rem; }
.draft-practice-form legend.label {
  padding: 0;
  margin-bottom: 0.3rem;
  color: var(--text-secondary);
}
.draft-bot-picker .draft-bot-option {
  padding: 0.45rem 0.55rem;
  border-bottom: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 100ms ease;
}
.draft-bot-picker .draft-bot-option:last-child { border-bottom: 0; }
.draft-bot-picker .draft-bot-option:hover { background: var(--bg-secondary); }
.draft-bot-picker .draft-bot-option:has(input:checked) {
  background: var(--primary-glow);
  border-bottom-color: transparent;
}
.draft-bot-picker .draft-bot-option:has(input:checked) .draft-bot-name { color: var(--primary-hover); }
.draft-tc-picker { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.draft-tc-picker .draft-tc-option {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  cursor: pointer;
  border-bottom: 1px solid var(--border-subtle);
}
.draft-tc-picker .draft-tc-option:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-glow);
}
.duel-page.lobby .wrap { margin-inline: auto; }
.lobby section { padding-block: 0; }
.lobby section + section { border-top: 0; }
.lobby-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
  padding-block: 0 1.5rem;
}
.lobby-title {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 380;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.02em;
  line-height: 1;
}
.lobby-lede {
  margin-top: 0.85rem; max-width: 34em;
  color: var(--text-secondary); font-size: 1.02rem; line-height: 1.55;
}
.lobby-h { font-family: var(--body); font-size: 1rem; font-weight: 600; color: var(--text-primary); }
.lobby-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.85rem; }
.lobby-count { color: var(--text-tertiary); font-size: 0.85rem; }
.lobby-empty { color: var(--text-secondary); max-width: 44ch; }
.lobby-hint { margin: 0.35rem 0 1rem; color: var(--text-secondary); font-size: 0.92rem; max-width: 52ch; }
.lobby-section-head a, .lobby-winnings a, .panel-head a:not(.btn) {
  display: inline-block;
  padding-block: 0.3rem;
}
.lobby-unlock {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 1rem; padding: 0.85rem 1rem;
  border-radius: var(--radius); background: var(--bg-secondary);
  color: var(--text-secondary); font-size: 0.9rem;
}
.lobby-unlock strong { color: var(--text-primary); font-weight: 600; }
.lobby-unlock progress {
  flex: 0 0 7rem; height: 6px; appearance: none; border: 0; border-radius: var(--radius);
  background: var(--bg-tertiary); overflow: hidden;
}
.lobby-unlock progress::-webkit-progress-bar { background: var(--bg-tertiary); }
.lobby-unlock progress::-webkit-progress-value { background: var(--primary-fill); }
.lobby-unlock progress::-moz-progress-bar { background: var(--primary-fill); }
.lobby .lobby-board {
  padding: 1.1rem 1.25rem 0.5rem;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.lobby .duel-board-table th {
  font-family: var(--body); font-size: 0.8rem; font-weight: 500;
  text-transform: none; letter-spacing: 0; white-space: nowrap; color: var(--text-tertiary);
}
.lobby .duel-board-table td { padding-block: 0.7rem; }
.lobby .duel-board-table th { width: auto; }
.lobby .duel-board-table td:nth-child(2) { white-space: nowrap; }
.lobby .duel-board-table td:first-child { white-space: nowrap; }
.lobby .duel-board-table td:first-child { font-weight: 500; }
.lobby .duel-board-table tbody tr:last-child td { border-bottom: 0; }
.lobby-live { margin-top: 2rem; }
.lobby-live .lobby-h { margin-bottom: 0.75rem; }
.lobby .duel-queue:has(> .panel:not([hidden])) { margin-bottom: 2rem; }
.lobby-score {
  font-family: var(--display); font-size: 3.4rem; font-weight: 360;
  font-variation-settings: "opsz" 144; font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -0.02em; line-height: 1;
}
.lobby-score-sep { color: var(--text-tertiary); margin-inline: 0.12em; }
.lobby-winbar { height: 4px; margin: 0.9rem 0 1.1rem; border-radius: 2px; background: rgba(244, 63, 94, 0.35); overflow: hidden; }
.lobby-winbar span { display: block; height: 100%; background: var(--up); }
.lobby-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.lobby-facts dt { color: var(--text-tertiary); font-size: 0.8rem; }
.lobby-facts dd { margin-top: 0.2rem; font-family: var(--mono); font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.lobby-history { list-style: none; margin-top: 1.4rem; }
.lobby-history a {
display: grid; grid-template-columns: 1.6rem minmax(0, 1fr) 5.5rem; align-items: center; gap: 0.75rem;
  padding: 0.6rem 0.25rem; border-top: 1px solid var(--border);
  color: var(--text-primary); text-decoration: none;
}
.lobby-history a:hover { background: var(--bg-secondary); }
.lobby-history a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.lobby-history-who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lobby-history-main { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.lobby-history-when { color: var(--text-tertiary); font-size: 0.78rem; }
.lobby-history a > .num, .lobby-history a > .lr-tag { text-align: right; white-space: nowrap; }
.lobby-history .num, .lobby-results-table .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.lobby-winnings {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  margin-top: 1.25rem; padding-top: 0.9rem; border-top: 1px solid var(--border);
  color: var(--text-secondary); font-size: 0.9rem;
}
.lobby-winnings strong { margin-left: 0.4rem; color: var(--text-primary); font-weight: 500; }
.lobby-results-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; table-layout: fixed; min-width: 34rem; }
.lobby-results-table col.lr-player { width: auto; }
.lobby-results-table th.num { font-family: var(--body); }
.lobby-results-table col.lobby-clock-cell { width: 9.5rem; }
.lobby-results-table col.lr-prize { width: 5.5rem; }
.lobby-results-table col.lr-when { width: 8.5rem; }
.lr-cell { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; min-width: 0; }
.lr-cell .lobby-player { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lr-pnl { flex: none; font-size: 0.85rem; }
.lobby-results-table td + td .lr-cell { padding-left: 0.25rem; }
.lobby-results-table th + th { padding-left: 0.85rem; }
.lobby-results-table td + td { padding-left: 0.85rem; }
.lobby-results-table tr.is-draw .lobby-player { color: var(--text-secondary); }
.lr-tag { font-family: var(--body); font-size: 0.82rem; color: var(--text-tertiary); }
.lobby-results-table th {
  padding: 0 0.6rem 0.6rem; text-align: left;
  color: var(--text-tertiary); font-size: 0.8rem; font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.lobby-results-table td { padding: 0.75rem 0.6rem; border-bottom: 1px solid var(--border); vertical-align: baseline; }
.lobby-results-table td.lobby-clock-cell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lobby-results-table th:first-child, .lobby-results-table td:first-child { padding-left: 0; }
.lobby-results-table th:last-child, .lobby-results-table td:last-child { padding-right: 0; }
.lobby-results-table .num { text-align: right; white-space: nowrap; }
.lobby-player { margin-right: 0.4rem; }
.lobby-player.is-winner { font-weight: 600; }
.lobby-when, .lobby-clock-cell { color: var(--text-tertiary); }
.lobby-when, .lobby-results-table .lobby-when-head { text-align: right; white-space: nowrap; font-size: 0.85rem; }
.lobby-clock-cell { font-size: 0.85rem; }
.lobby-faq { grid-column: 1 / -1; max-width: 46rem; }
@media (max-width: 900px) {
.lobby-head { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 480px) {
.lobby .lobby-board { padding-inline: 0.9rem; }
.lobby .duel-board-table th:nth-child(4), .lobby .duel-board-table td:nth-child(4):not(:last-child) { display: none; }
  .lobby .duel-board-table .board-record { display: none; }
  .lobby .duel-board-table td:first-child, .lobby .duel-board-table td:nth-child(2) { white-space: normal; }
  .lobby .duel-board-table td, .lobby .duel-board-table th { padding-inline: 0.35rem; }
  .lobby-unlock { flex-direction: column; align-items: stretch; }
  .lobby-unlock progress { flex-basis: auto; width: 100%; }
  .lobby-results-table .lobby-clock-cell { display: none; }
}
@keyframes lobby-tile-in { from { opacity: 0; transform: translateY(6px); } }
.lobby-results-table tr[data-match-row] { cursor: pointer; }
.lobby-results-table tr[data-match-row]:hover td { background: var(--bg-secondary); }
.lobby-row-link { color: inherit; text-decoration: none; }
.lobby-row-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.lobby-row-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 2px; }
@media (pointer: coarse) {
  .lobby-row-link { display: inline-block; max-width: 100%; padding-block: 11px; margin-block: -11px; }
  .lobby .toggle-row { min-height: 44px; }
  .lobby .toggle-row .switch { margin-block: 0.15rem; }
}
.match-dialog {
  width: min(42rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  margin: auto; padding: 0;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  overflow: auto;
}
.match-dialog::backdrop { background: rgba(8, 7, 6, 0.74); backdrop-filter: blur(3px); }
.match-dialog-inner { position: relative; padding: clamp(1.25rem, 3vw, 2rem); }
.match-dialog section { padding-block: 0; }
.match-dialog section + section { border-top: 0; }
.match-close-form { position: absolute; top: 0.9rem; right: 0.9rem; }
.match-close {
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  border: 1px solid transparent; background: none;
  color: var(--text-secondary); font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.match-close:hover { color: var(--text-primary); border-color: var(--border); }
.match-close:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.match-loading { padding: 3rem 0; color: var(--text-secondary); text-align: center; }
.match-head { padding-right: 2.5rem; }
.match-kicker { color: var(--text-secondary); font-size: 0.88rem; }
.match-title {
  margin-top: 0.4rem; max-width: 28ch;
  font-family: var(--display); font-size: clamp(1.5rem, 3.4vw, 2rem); font-weight: 400;
  font-variation-settings: "opsz" 96; line-height: 1.15; letter-spacing: -0.01em;
}
.match-title:focus { outline: none; }
.match-meta { margin-top: 0.5rem; color: var(--text-tertiary); font-size: 0.88rem; }
.match-faceoff {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch;
  gap: 1rem; margin: 1.75rem 0 2rem;
}
.match-vs { align-self: center; }
.match-side {
  display: flex; flex-direction: column;
  padding: clamp(1.1rem, 2.6vw, 1.5rem);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--bg-panel-2);
}
.match-side.is-winner { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--up) 50%, transparent); }
.match-side-name { display: flex; align-items: center; gap: 0.5rem; min-width: 0; font-weight: 600; }
.match-side-name span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-you {
  flex: none; padding: 0.05rem 0.5rem; border: 1px solid var(--border-2); border-radius: var(--radius-pill);
  color: var(--text-secondary); font-size: 0.75rem; font-weight: 500;
}
.match-outcome { margin-top: 0.3rem; font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); }
.match-outcome.up { color: var(--up); }
.match-outcome.down { color: var(--down); }
.match-figure {
  margin-top: 1.35rem;
  font-family: var(--display); font-size: clamp(1.7rem, 3.6vw, 2.2rem); font-weight: 380;
  font-variation-settings: "opsz" 144; font-variant-numeric: lining-nums tabular-nums; line-height: 1;
}
.match-figure-label { margin-top: 0.45rem; color: var(--text-tertiary); font-size: 0.78rem; }
.match-pnl {
  margin-top: 1.1rem; padding-top: 0.85rem; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 0.15rem 0.5rem;
  font-family: var(--mono); font-size: 0.88rem;
}
.match-pnl .muted { color: var(--text-tertiary); }
.match-vs { font-family: var(--display); font-size: 1.05rem; color: var(--text-tertiary); }
.match-caption { margin-bottom: 0.55rem; text-align: left; font-family: var(--body); font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.match-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.match-table th, .match-table td { padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--border); text-align: left; }
.match-table thead th { color: var(--text-tertiary); font-family: var(--body); font-size: 0.8rem; font-weight: 500; }
.match-table th:first-child { padding-left: 0; }
.match-table .num { text-align: right; font-family: var(--mono); color: var(--text-secondary); }
.match-table thead th.num { font-family: var(--body); }
.match-table td.is-lead { color: var(--text-primary); font-weight: 600; }
.match-table tbody th { font-weight: 500; }
.match-table tbody th .small { display: block; font-weight: 400; }
.match-claims { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.1rem; }
.match-claims dt { color: var(--text-tertiary); font-size: 0.8rem; }
.match-claims dd { margin-top: 0.15rem; font-size: 0.9rem; }
.match-trades { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.match-trades ul { list-style: none; }
.match-trades li {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.6rem;
  padding: 0.5rem 0; border-top: 1px solid var(--border); font-size: 0.9rem;
}
.match-trades li.muted { display: block; }
.match-trades .num { font-family: var(--mono); }
.match-trade-symbol { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-side-tag {
  padding: 0.05rem 0.45rem; border: 1px solid currentColor; border-radius: var(--radius-sm);
  font-size: 0.75rem; font-weight: 600;
}
.match-side-tag.is-long { color: var(--up); }
.match-side-tag.is-short { color: var(--down); }
.match-actions {
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.75rem;
  margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--border);
}
@media (max-width: 560px) {
  .match-faceoff { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  .match-side { padding: 1rem; }
  .match-figure { margin-top: 1rem; }
  .match-vs { display: none; }
  .match-trades { grid-template-columns: minmax(0, 1fr); }
  .match-actions { flex-direction: column-reverse; }
  .match-actions .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: no-preference) {
  .match-dialog[open] { animation: match-open 0.22s var(--ease); }
  .match-dialog[open]::backdrop { animation: match-fade 0.22s ease-out; }
}
@keyframes match-open { from { opacity: 0; transform: translateY(8px) scale(0.985); } }
@keyframes match-fade { from { opacity: 0; } }
.ticket-fill-est { margin: 0.25rem 0 0.5rem; min-height: 1lh; font-size: 0.75rem; }
.pin-toggle { min-height: 28px; padding: 0.1rem 0.5rem; font-size: 1rem; line-height: 1; color: var(--text-faint); border-color: transparent; }
.pin-toggle[aria-pressed="true"] { color: var(--gold); }
.pin-star { width: 1em; height: 1em; vertical-align: -0.125em; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; }
.pin-toggle[aria-pressed="true"] .pin-star, .pin-mark .pin-star { fill: currentColor; }
.ticker-strip .row .pin-mark { color: var(--gold); font-size: 0.75rem; }
.rule-meter-stat #fig-daily-reset { display: block; margin-top: 0.1rem; font-size: 0.75rem; }
.positions-bar { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.25rem 0 0.5rem; }
.positions-bar:not(:has(> :not([hidden]))) { display: none; }
.positions-summary { margin: 0; color: var(--text-dim); font-size: 0.88rem; }
.positions-summary .num { font-weight: 600; }
.pos-summary-sep { margin-inline: 0.35rem; color: var(--text-faint); }
.positions-bar .btn { margin-left: auto; flex: none; white-space: nowrap; }
#positions-body .pos-pnl-amt, #positions-body .pos-level { display: block; }
#positions-body .pos-pnl-amt { font-weight: 600; }
#positions-body .pos-pnl-pct { display: block; font-size: 0.78rem; }
#positions-body .pos-level { font-size: 0.82rem; line-height: 1.45; }
#positions-body .pos-level-tag { display: inline-block; min-width: 2.2ch; margin-right: 0.45rem; color: var(--text-faint); font-size: 0.75rem; letter-spacing: 0.06em; }
#positions-body .row-actions { flex-wrap: nowrap; justify-content: flex-end; }
#positions-body .row-actions .btn { white-space: nowrap; padding-inline: 0.75rem; }
#positions-body td { vertical-align: middle; }
#panel-positions table:has(.empty-row) thead { display: none; }
#panel-positions #positions-body > tr.empty-row { display: block; border: 1px dashed var(--border-2); border-radius: var(--radius); padding: 0; background: none; }
#positions-body > tr.empty-row > td { display: block; border: 0; padding: 1.25rem; text-align: center; white-space: normal; }
@media (max-width: 1200px) {
#panel-positions .scroll-x { overflow: visible; }
  #panel-positions table.dj-table, #panel-positions table.dj-table tbody { display: block; width: 100%; }
  #panel-positions table.dj-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  #panel-positions #positions-body { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); gap: 0.75rem; }
  #positions-body > tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
      "market side   pnl"
      "size   entry  mark"
      "sltp   sltp   lev"
      "act    act    act";
    gap: 0.7rem 0.75rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-panel-2);
  }
  #positions-body > tr > td { display: block; padding: 0; border: 0; text-align: left; white-space: normal; min-width: 0; }
  #positions-body > tr > td[data-label]::before {
    content: attr(data-label); display: block; margin-bottom: 0.15rem;
    color: var(--text-faint); font-family: var(--body); font-size: 0.75rem; letter-spacing: 0;
  }
  #positions-body .pos-market { grid-area: market; font-size: 1.05rem; font-weight: 600; }
  #positions-body .pos-side { grid-area: side; align-self: center; }
  #positions-body .pos-side span {
    display: inline-block; padding: 0.1rem 0.55rem; border: 1px solid currentColor; border-radius: var(--radius);
    font-size: 0.75rem; font-weight: 600;
  }
  #positions-body .pos-market { align-self: center; }
  #positions-body .pos-size { grid-area: size; }
  #positions-body .pos-entry { grid-area: entry; }
  #positions-body .pos-mark { grid-area: mark; }
  #positions-body .pos-lev { grid-area: lev; }
  #positions-body .pos-sltp { grid-area: sltp; }
  #positions-body .pos-sltp .pos-level { display: inline-block; margin-right: 1rem; }
  #positions-body .pos-pnl { grid-area: pnl; text-align: right; align-self: start; }
  #positions-body .pos-pnl::before { text-align: right; }
  #positions-body .pos-pnl-amt { font-size: 1.15rem; }
  #positions-body > tr > td.lev-col { display: none; }
  body.has-leverage #positions-body > tr > td.lev-col { display: block; }
  #positions-body .row-actions {
    grid-area: act; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem;
    padding-top: 0.75rem; border-top: 1px solid var(--border);
  }
  #positions-body .row-actions .btn { width: 100%; padding-inline: 0.4rem; }
#positions-body > tr.sk-tr { display: block; grid-column: 1 / -1; }
  #positions-body > tr.empty-row { grid-column: 1 / -1; }
  #positions-body > tr.sk-tr > td { display: inline-block; margin-right: 1rem; }
}
.chart-note summary { cursor: pointer; width: max-content; }
.chart-note[open] summary { margin-bottom: 0.25rem; }
.pricing-head { padding-block: clamp(1.5rem, 3.5vw, 2.75rem) 0; }
.pricing-head .page-head { border-bottom: 0; }
section.plan-section { padding-top: 0; border-top: 0; }
.plan-section .plan-steps { margin-top: 1.5rem; }
.demo-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem 2.5rem;
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
  padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  scroll-margin-top: 6rem;
}
.demo-row h3 { margin: 0; font-family: var(--display); font-size: clamp(1.35rem, 2.4vw, 1.7rem); font-weight: 600; letter-spacing: -0.01em; }
.demo-row .demo-what { margin: 0.35rem 0 0.4rem; color: var(--text-dim); }
.demo-row .demo-what .mono { color: var(--text); }
.demo-row p { margin: 0; max-width: 34em; }
.demo-row .btn { white-space: nowrap; }
.demo-row:target { border-color: var(--border-2); }
@media (max-width: 760px) {
  .demo-row { grid-template-columns: minmax(0, 1fr); }
  .demo-row .btn { justify-self: stretch; justify-content: center; }
}
.limits-list { max-width: 34em; padding-left: 1.25rem; }
.limits-list li + li { margin-top: 0.6rem; }
.limits-list + p { margin-top: 1.5rem; }
.plan-steps {
  list-style: none;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 1rem 2rem;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.plan-steps li { display: flex; gap: 0.75rem; align-items: baseline; }
.plan-steps strong { color: var(--text); font-weight: 600; }
.plan-steps li > .mono {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border: 1px solid var(--border-2);
  border-radius: 50%;
  font-size: 0.75rem;
  color: var(--primary);
}
.plan-compare { width: 100%; max-width: 56rem; border-collapse: collapse; font-size: 0.9rem; }
.plan-compare th, .plan-compare td { padding: 0.7rem 1rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.plan-compare thead th { color: var(--text); font-weight: 600; }
.plan-compare tbody th { color: var(--text-dim); font-weight: 500; white-space: nowrap; }
.plan-compare td { color: var(--text); }
.plan-compare .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .plan-steps { grid-template-columns: minmax(0, 1fr); }
  .plan-steps { grid-auto-flow: row; }
}
#checkout-modal { z-index: 45; padding: 1rem; }
#checkout-modal .modal {
  max-width: 440px;
  max-height: calc(100dvh - 2rem);
  padding: 1.25rem 1.5rem 0;
  overflow-x: hidden;
}
#checkout-modal .checkout-head { padding-bottom: 1rem; margin-bottom: 1.1rem; }
#checkout-modal .checkout-head h3 { font-size: 1.5rem; line-height: 1.15; text-wrap: balance; }
#checkout-modal .checkout-head .small { display: block; margin-top: 0.2rem; }
.split-choice { border: 0; margin: 0 0 1.1rem; padding: 0; min-width: 0; }
.split-choice legend {
  padding: 0;
  margin-bottom: 0.45rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.split-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.split-choice legend { grid-column: 1 / -1; }
.split-choice[hidden] { display: none; }
.split-option {
  position: relative;
  display: grid;
  gap: 0.1rem;
  padding: 0.6rem 0.85rem;
  background: var(--bg-panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.split-option input { position: absolute; opacity: 0; pointer-events: none; }
.split-option strong { font-size: 1.05rem; color: var(--text); font-weight: 600; }
.split-option span { font-size: 0.78rem; color: var(--text-faint); }
.split-option:hover { border-color: var(--border-2); }
.split-option:has(input:checked) { background: var(--bg-panel-3); border-color: var(--primary); }
.split-option:has(input:focus-visible) { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.checkout-summary {
  padding: 0.85rem 0 0;
  border-top: 1px solid var(--border);
}
.checkout-summary dl { margin: 0; display: grid; gap: 0.4rem; }
.checkout-line { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.88rem; }
.checkout-line dt { color: var(--text-dim); min-width: 0; }
.checkout-line dd { margin: 0; color: var(--text); white-space: nowrap; }
.checkout-line.is-minus dd { color: var(--up); }
.checkout-summary .num, .pay-step .num, .deposit-facts .num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.checkout-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px dashed var(--border);
}
.checkout-total span { color: var(--text); font-weight: 600; }
.checkout-total strong { font-size: 1.4rem; color: var(--text); font-weight: 600; }
#checkout-modal .code-details { margin-top: 0.6rem; }
#checkout-modal .code-details > summary {
  display: inline;
  list-style: none;
  cursor: pointer;
  color: var(--text-dim);
  text-decoration: underline;
  text-decoration-color: var(--border-2);
  text-underline-offset: 3px;
}
#checkout-modal .code-details > summary::-webkit-details-marker { display: none; }
#checkout-modal .code-details > summary:hover { color: var(--text); }
#checkout-modal .code-details[open] > summary { display: none; }
.code-row { display: flex; gap: 0.5rem; }
.code-row input { flex: 1; min-width: 0; }
#checkout-modal #checkout-code-note:empty { display: none; }
#checkout-modal #checkout-code-note { margin: 0.45rem 0 0; }
#checkout-modal .checkout-consent {
  margin-top: 1.1rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-panel-2);
}
#checkout-modal .checkout-consent:last-of-type { border-bottom: 1px solid var(--border); }
#checkout-modal .checkout-consent:has(input:checked) { border-color: var(--border-2); }
#checkout-modal .checkout-consent label { font-size: 0.84rem; line-height: 1.45; color: var(--text-dim); }
#checkout-modal .checkout-consent[hidden] { display: none; }
.checkout-footer {
  position: sticky;
  bottom: 0;
  margin-top: 1rem;
  padding: 0.75rem 0 1.1rem;
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
}
.checkout-footer .btn-lg { font-weight: 600; }
.checkout-footer .error:empty { display: none; }
.checkout-fineprint {
  margin: 0.6rem 0 0;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--text-faint);
  text-align: center;
  text-wrap: pretty;
}
.checkout-fineprint a { color: var(--text-dim); }
#checkout-modal .pay-step { padding-bottom: 1.25rem; display: grid; gap: 0.85rem; }
#checkout-modal .pay-step[hidden] { display: none; }
.pay-amount {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.pay-amount strong { font-size: 2rem; line-height: 1; color: var(--text); font-weight: 600; letter-spacing: -0.02em; }
.pay-chips { display: flex; gap: 0.35rem; }
.pay-chips .chip {
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.pay-chips .chip:empty { display: none; }
.pay-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  background: var(--bg-panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.pay-tabs button {
  padding: 0.5rem;
  font: inherit;
  font-size: 0.88rem;
  color: var(--text-dim);
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.pay-tabs button:hover { color: var(--text); }
.pay-tabs button[aria-selected="true"] { color: var(--text); background: var(--bg-panel-3); border-color: var(--border-2); }
.pay-tabs button:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 1px; }
.pay-panel { display: grid; gap: 0.7rem; }
.pay-panel[hidden] { display: none; }
.pay-panel > p { margin: 0; }
.pay-step #crypto-status:empty, .pay-step #crypto-error:empty, .pay-step #crypto-deposit-status:empty { display: none; }
.deposit-facts { margin: 0.6rem 0 0; display: grid; gap: 0.3rem; }
.deposit-facts div { display: flex; justify-content: space-between; gap: 1rem; }
.deposit-facts dt { color: var(--text-dim); }
.deposit-facts dd { margin: 0; color: var(--text); }
@media (max-width: 560px) {
  #checkout-modal { padding: 0; align-items: flex-end; }
  #checkout-modal .modal {
    max-width: none;
    width: 100%;
    max-height: 92dvh;
    padding: 1.1rem 1.1rem 0;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    border-bottom: 0;
    animation: sheet-rise .25s var(--ease);
  }
  #checkout-modal .checkout-head h3 { font-size: 1.3rem; }
  .checkout-footer { padding-bottom: max(1rem, env(safe-area-inset-bottom)); }
  #checkout-modal .pay-step { padding-bottom: max(1.25rem, env(safe-area-inset-bottom)); }
  .pay-amount strong { font-size: 1.75rem; }
}
@keyframes sheet-rise { from { transform: translateY(24px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  #checkout-modal .modal { animation: none; }
  .split-option, .pay-tabs button { transition: none; }
}
.account-card-equity .spark { flex: 1 1 0; max-width: 120px; min-width: 0; height: 28px; margin-left: auto; align-self: center; overflow: visible; }
.spark polyline { fill: none; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.spark.up polyline { stroke: var(--up); }
.spark.down polyline { stroke: var(--down); }
.spark-base { stroke: var(--border-2); stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.banner.coach { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.banner.coach[hidden] { display: none; }
.coach-steps { margin: 0.4rem 0; padding-left: 1.2rem; }
.coach-steps li { margin: 0.15rem 0; }
.accounts-empty:has(.play-choices) { max-width: none; }
.play-choices { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); text-align: left; }
.play-choices li { display: grid; gap: 0.4rem; align-content: start; padding: 1rem;
  border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); background: var(--bg-card); }
.play-choices span { color: var(--text-muted); font-size: 0.9rem; }
.play-choices .btn { justify-self: start; margin-top: 0.25rem; }
.shortcuts-dialog { max-width: 26rem; padding: 1.25rem 1.5rem; border: 1px solid var(--border-2);
  border-radius: var(--radius-sm); background: var(--bg-card); color: var(--text); }
.shortcuts-dialog::backdrop { background: rgba(0, 0, 0, 0.6); }
.shortcuts-dialog h2 { margin: 0 0 0.75rem; font-size: 1.1rem; }
.shortcuts-list { display: grid; gap: 0.4rem; margin: 0 0 0.75rem; }
.shortcuts-list > div { display: grid; grid-template-columns: 6rem 1fr; gap: 0.75rem; }
.shortcuts-list dt, .shortcuts-list dd { margin: 0; }
.account-switch { position: relative; }
.account-switch > summary { list-style: none; }
.account-switch > summary::-webkit-details-marker { display: none; }
.account-switch-menu { position: absolute; z-index: 20; top: calc(100% + 0.25rem); left: 0; min-width: 16rem;
  margin: 0; padding: 0.35rem; list-style: none; background: var(--bg-card); border: 1px solid var(--border-2);
  border-radius: var(--radius-sm); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); }
.account-switch-menu a { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0.6rem;
  color: var(--text); text-decoration: none; border-radius: var(--radius-sm); }
.account-switch-menu a:hover, .account-switch-menu a:focus-visible { background: var(--bg-card-hover); }
@media (max-width: 560px) {
  .terminal-title { position: relative; }
  .account-switch { position: static; }
  .account-switch-menu { left: 0; right: 0; min-width: 0; }
}
.account-data-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
@media (hover: none) and (pointer: coarse) {
  [data-shortcuts], .kbd-only { display: none !important; }
}
@media (max-width: 640px) {
  .banner.coach { flex-direction: column; gap: 0.5rem; padding: 0.75rem 0.9rem; }
.banner.coach::before { display: none; }
  .banner.coach .coach-foot { display: none; }
  .coach-steps { margin: 0.25rem 0 0; font-size: 0.9rem; }
  .banner.coach #coach-dismiss { align-self: flex-end; }
}
.lb { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5rem); }
.lb section { padding-block: 0; }
.lb-hero h1 { font-size: clamp(2.25rem, 4.5vw, 3.25rem); }
.lb-hero p { margin-top: 0.75rem; color: var(--text-dim); max-width: 34em; line-height: 1.6; text-wrap: pretty; }
.lb-tabs {
  display: flex; gap: 0.25rem; width: fit-content; max-width: 100%;
  margin-top: clamp(1.75rem, 4vw, 2.5rem); padding: 0.3rem;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-panel-2);
  overflow-x: auto; scrollbar-width: none;
}
.lb-tabs::-webkit-scrollbar { display: none; }
.lb-tab {
  display: inline-flex; align-items: center; gap: 0.5rem; flex: none;
  min-height: 44px; padding: 0.5rem 1rem; border-radius: var(--radius);
  color: var(--text-dim); font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: color .15s var(--ease), background-color .15s var(--ease);
}
.lb-tab .icon { width: 1.05rem; height: 1.05rem; }
.lb-tab:hover { color: var(--text); background: var(--bg-secondary); }
.lb-tab:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.lb-tab[aria-selected="true"] { color: var(--text); background: var(--bg-panel-3); box-shadow: inset 0 0 0 1px var(--border-2); }
.lb-tab[aria-selected="true"] .icon { color: var(--primary); }
.lb-tab-count {
  min-width: 1.6rem; padding: 0.05rem 0.45rem; border-radius: var(--radius); text-align: center;
  background: var(--bg-tertiary); color: var(--text-dim);
  font-family: var(--mono); font-size: 0.75rem; font-variant-numeric: tabular-nums;
}
.lb-board { margin-top: clamp(1.75rem, 4vw, 2.5rem); scroll-margin-top: 6rem; }
html:not(.lb-tabbed) .lb-board + .lb-board { margin-top: clamp(3rem, 7vw, 4.5rem); }
.lb-board-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap;
  padding-bottom: 1.25rem; border-bottom: 1px solid var(--border);
}
.lb-board-head h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.lb-board-head p { margin-top: 0.45rem; color: var(--text-dim); font-size: 0.95rem; max-width: 34em; }
.lb-board-head .btn { flex: none; }
.lb-podium {
  list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem;
  margin-top: 1.5rem;
}
.lb-podium-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0.35rem 0.85rem;
  padding: 1.2rem 1.3rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-card);
}
.lb-podium-card.is-1 { border-color: rgba(227, 165, 87, 0.45); background: color-mix(in srgb, var(--accent) 5%, var(--bg-card)); }
.lb-podium-card .rank-pill { width: 2.25rem; height: 2.25rem; font-size: 0.95rem; }
.lb-podium-name { font-size: 1.1rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-podium-wins { grid-column: 1 / -1; margin-top: 0.85rem; color: var(--text-dim); }
.lb-podium-wins strong {
  font-family: var(--display); font-size: 2.4rem; font-weight: 400; line-height: 1;
  font-variant-numeric: lining-nums tabular-nums; color: var(--text); margin-right: 0.2rem;
}
.lb-podium-meta { grid-column: 1 / -1; color: var(--text-faint); font-size: 0.85rem; }
.lb-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; font-size: 0.95rem; }
.lb-table th {
  padding: 0 0.75rem 0.65rem; text-align: left; border-bottom: 1px solid var(--border);
  color: var(--text-faint); font-size: 0.8rem; font-weight: 500; white-space: nowrap;
}
.lb-table td { padding: 0.7rem 0.75rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.lb-table th:first-child, .lb-table td:first-child { padding-left: 0; }
.lb-table th:last-child, .lb-table td:last-child { padding-right: 0; }
.lb-table .num { text-align: right; white-space: nowrap; }
.lb-table th.num { font-family: var(--body); }
.lb-table tbody tr:hover td { background: var(--bg-secondary); }
.lb-rank-col { width: 4.5rem; }
.lb-wins-col { width: 38%; }
.lb-name { font-weight: 500; }
.lb-bar { display: flex; align-items: center; gap: 0.75rem; }
.lb-bar .num { min-width: 2.5ch; }
.lb-bar-track { flex: 1; height: 6px; border-radius: var(--radius); background: var(--bg-tertiary); overflow: hidden; }
.lb-bar-track span { display: block; height: 100%; border-radius: inherit; background: var(--washi-dim); }
.lb-paid { font-weight: 600; }
.empty-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1.25rem 1.5rem;
  margin-top: 1.5rem; padding: 1.75rem; border: 1px dashed var(--border-2); border-radius: var(--radius-lg);
}
.page-head + .empty-card { margin-top: clamp(1.75rem, 4vw, 2.5rem); }
.empty-card-icon {
  display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%;
  border: 1px solid var(--border-2); background: var(--bg-panel-2); color: var(--primary);
}
.empty-card-icon .icon { width: 1.35rem; height: 1.35rem; }
.empty-card h2, .empty-card h3 { font-size: 1.2rem; }
.empty-card p { margin-top: 0.35rem; color: var(--text-dim); font-size: 0.95rem; }
.lb-foot { margin-top: clamp(2.5rem, 6vw, 4rem); color: var(--text-faint); font-size: 0.85rem; }
@media (max-width: 720px) {
  .lb-podium { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
  .lb-podium-card { grid-template-columns: auto minmax(0, 1fr) auto; padding: 0.9rem 1rem; }
  .lb-podium-wins { grid-column: auto; margin-top: 0; white-space: nowrap; }
  .lb-podium-wins strong { font-size: 1.6rem; }
  .lb-podium-meta { grid-column: 2 / -1; margin-top: -0.2rem; }
  .empty-card { grid-template-columns: auto minmax(0, 1fr); padding: 1.25rem; }
  .empty-card .btn { grid-column: 1 / -1; justify-self: start; }
  .lb-board-head { align-items: flex-start; }
  .lb-wins-col { width: auto; }
  .lb-bar-track { display: none; }
.lb-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; border-radius: var(--radius-lg); }
  .lb-tab { justify-content: center; padding: 0.5rem 0.4rem; border-radius: var(--radius); font-size: 0.9rem; white-space: normal; text-align: center; line-height: 1.2; }
  .lb-tab .icon, .lb-tab-count { display: none; }
  .lb-name { white-space: nowrap; }
}
@media (max-width: 480px) {
  .lb-played, .lb-minor { display: none; }
}
@media (prefers-reduced-motion: reduce) { .lb-tab { transition: none; } }
.code-details[open] > summary { margin-bottom: 0.75rem; }
.app-head-actions .duel-sound-toggle { padding: 0.7rem 1.4rem; font-size: 0.95rem; }
.leverage-stepper { display: flex; align-items: stretch; gap: 0.35rem; margin-top: 0.35rem; }
.leverage-stepper .input-affix { flex: 1; justify-content: center; padding-inline: 0.8rem; }
.leverage-stepper .input-affix input[type="number"] { width: 3ch; min-width: 0; padding: 0; text-align: right; appearance: textfield; -moz-appearance: textfield; }
.leverage-stepper input::-webkit-inner-spin-button,
.leverage-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.leverage-stepper .input-affix > span { color: var(--text); padding-left: 0.1ch; }
.leverage-stepper .btn { min-width: 2.75rem; padding-inline: 0; font-size: 1.1rem; }
.active-match-bar {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 16px; font-size: 14px; text-align: center;
  background: var(--bg-card); border-bottom: 1px solid var(--border);
  color: var(--text-primary); text-decoration: none;
}
.active-match-bar:hover { background: var(--bg-card-hover); }
.active-match-bar strong { color: var(--accent); }
.active-match-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--danger);
}
.promo-bar {
  position: relative; display: flex; align-items: center; justify-content: center;
  padding: 8px 44px; font-size: 14px; text-align: center;
  background: var(--bg-sidebar); border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.promo-bar { z-index: 2; }
.promo-bar[hidden] { display: none; }
.promo-bar-text { margin: 0; line-height: 1.6; max-width: none; }
.promo-bar-text a { color: var(--text-primary); font-weight: 500; text-decoration: underline; text-decoration-color: var(--border-2); text-underline-offset: 3px; white-space: nowrap; }
.promo-bar-text a:hover { text-decoration-color: currentColor; }
.promo-bar-text a { display: inline-block; padding-block: 2px; min-height: 24px; vertical-align: baseline; }
.promo-bar-sep { margin: 0 6px; color: var(--text-muted); }
.promo-bar-offer { white-space: nowrap; }
.promo-bar-code {
  margin-left: 4px; font: inherit; font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em;
  color: var(--text-primary); background: transparent;
}
.promo-bar-text a.promo-bar-code { font-weight: 400; }
.promo-bar-text a.promo-bar-code:hover { text-decoration-color: currentColor; }
.promo-bar-close {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; font-size: 20px; line-height: 1;
  color: var(--text-muted); background: none; border: 0; cursor: pointer;
}
.promo-bar-close:hover { color: var(--text-primary); }
@media (max-width: 600px) {
  .promo-bar { padding: 8px 40px 8px 16px; font-size: 13px; justify-content: flex-start; text-align: left; }
  .promo-bar-sep { display: none; }
  .promo-bar-offer { display: block; }
}
.age-bar { position: relative; z-index: 2; background: var(--bg-card); border-bottom: 1px solid var(--border); color: var(--text-primary); font-size: 14px; }
.age-bar-form { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem 1rem; padding-block: 8px; }
.age-bar-text { margin: 0; line-height: 1.6; }
.age-bar-text a { color: var(--accent); font-weight: 600; white-space: nowrap; }
.age-bar-check { display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap; }
@media (max-width: 640px) {
  .age-bar { font-size: 13px; }
  .age-bar-form { justify-content: flex-start; }
}
.ticket-action .protective-fields { margin: 0.5rem 0 0; }
.protective-pair { display: flex; gap: 0.5rem; }
.protective-pair .input-affix:first-child { flex: 1; min-width: 0; }
.compare-table tbody th {
  font: inherit;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
  text-align: left;
}
.compare-table tbody th .small { display: block; font-weight: 400; }
.compare-table tr.is-us { background: var(--bg-panel); --sticky-bg: var(--bg-panel); }
.compare-notes { margin-top: clamp(2rem, 4vw, 3rem); }
.compare-table { min-width: 56rem; }
.nav-balance.is-quiet { padding: 0.3rem 0.9rem; gap: 0.45rem; background: transparent; }
.nav-balance.is-quiet .nav-balance-label {
  background: none;
  color: var(--text-dim);
  padding: 0;
  font-weight: 400;
}
.nav-balance.is-quiet .mono { color: var(--text); }
@media (max-width: 480px) {
  .nav-balance.is-quiet { padding: 0.4rem 0.8rem; }
}
.wick-fill.realised { background: var(--text-faint); }
#fig-free-margin-note { display: block; }
#fig-free-margin-note[hidden] { display: none; }
.ticket-amount-row { display: flex; align-items: stretch; gap: 0.5rem; }
.ticket-amount-row .input-affix { flex: 1 1 auto; min-width: 0; }
.ticket-amount-row .btn { flex: 0 0 auto; }
.rm-glossary { margin-top: 0.35rem; font-size: 0.8rem; }
.rm-glossary summary { cursor: pointer; color: var(--text-dim); width: fit-content; }
.rm-glossary summary:hover { color: var(--text); }
.rm-glossary dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.3rem 1rem; margin: 0.5rem 0 0; }
.rm-glossary dt { color: var(--text); }
.rm-glossary dd { margin: 0; color: var(--text-dim); max-width: 34em; }
@media (max-width: 640px) {
  .rm-glossary dl { grid-template-columns: 1fr; gap: 0.1rem; }
  .rm-glossary dd { margin-bottom: 0.4rem; }
}
#status-banner .breach-details + .banner-actions { margin-top: 0.75rem; }
#status-banner .banner-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.size-picker button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.05rem;
  min-height: 44px;
  padding: 0.5rem 1rem;
  font: inherit;
  text-align: center;
  color: var(--text-dim);
  background: none;
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.size-picker button:hover { color: var(--text); background: var(--bg-panel-3); }
.size-picker button[aria-checked="true"] { color: var(--on-primary-fill); background: var(--primary-fill); }
.size-picker button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.size-picker,
.js .size-picker[hidden] {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 2px;
  width: 100%;
  max-width: 44rem;
  margin: 0.6rem 0 clamp(1.5rem, 3vw, 2rem);
  padding: 4px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}
.size-picker[hidden] { display: none; }
.size-picker button {
  padding-inline: 0.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.lineup-size + .lineup-size { margin-top: 2.5rem; }
.lineup-size-title { margin: 0 0 1rem; font-size: var(--fs-lg); }
.js .lineup-size-title {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.js .lineup:not(.is-ready) .lineup-size:not([data-default]) { display: none; }
.js .lineup .lineup-size + .lineup-size { margin-top: 0; }
.lineup-size[hidden] { display: none; }
.plan-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  align-items: stretch;
}
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 2.2vw, 1.75rem);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color .2s var(--ease);
}
.plan-card:hover { border-color: var(--border-2); }
.plan-card:has(.plan-tag) { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }
.plan-card:has(.plan-tag):hover { border-color: color-mix(in srgb, var(--primary) 70%, var(--border)); }
.plan-card .plan-tag { color: var(--primary-hover); border-color: color-mix(in srgb, var(--primary) 55%, transparent); }
.plan-card-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 1rem; }
.plan-card-head .plan-blurb { grid-column: 1 / -1; }
.plan-size { font-family: var(--mono); font-size: var(--fs-sm); color: var(--text-dim); }
.plan-name {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--text);
}
.plan-tag {
  margin-left: 0.35rem; padding: 0.1rem 0.5rem; vertical-align: 0.2em;
  font-family: var(--body); font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0;
  color: var(--text-dim); border: 1px solid var(--border-2); border-radius: var(--radius-sm);
}
.plan-blurb { margin: 0.2rem 0 0; font-size: var(--fs-sm); line-height: 1.45; color: var(--text-dim); }
.plan-price { margin-top: clamp(1.25rem, 2.5vw, 1.75rem); }
.plan-price p { margin: 0; }
.plan-fee {
  font-family: var(--mono);
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
  font-variant-numeric: tabular-nums lining-nums;
}
.plan-fee-unit { margin-left: 0.2rem; font-size: var(--fs-sm); color: var(--text-dim); }
.plan-price .first-time-price { margin-top: 0.5rem; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.plan-specs {
  display: grid;
  margin: 1.1rem 0 1.25rem;
  font-size: var(--fs-sm);
}
.plan-specs > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 1rem;
  align-items: baseline;
  padding: 0.55rem 0;
  border-top: 1px solid var(--border);
}
.plan-specs dt { color: var(--text-dim); }
.plan-specs dd { margin: 0; text-align: right; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.plan-specs .num { font-family: var(--mono); }
.plan-specs .is-target dd > .num:first-child { color: var(--up); }
.plan-specs .is-daily dd > .num:first-child { color: var(--accent); }
.plan-specs .is-floor dd > .num:first-child { color: var(--down); }
.plan-specs .plan-usd { color: var(--text-faint); }
.plan-specs .plan-usd { margin-left: 0.45rem; }
.plan-specs .is-target dd > .num:first-child::before { content: "+"; }
.plan-specs .is-daily dd > .num:first-child::before,
.plan-specs .is-floor dd > .num:first-child::before,
.plan-specs .is-daily .plan-usd::before,
.plan-specs .is-floor .plan-usd::before { content: "−"; }
.plan-specs .plan-spec-note {
  grid-column: 1 / -1;
  margin-top: 0.15rem;
  font-size: var(--fs-xs);
  line-height: 1.4;
  color: var(--text-dim);
}
.plan-card .plan-cta { margin-top: auto; min-height: 48px; }
.plan-coupon {
  align-self: center;
  justify-self: center;
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--text-dim);
  background: none;
  border: 0;
  text-decoration: underline;
  text-decoration-color: var(--border-2);
  text-underline-offset: 3px;
  cursor: pointer;
}
.plan-coupon:hover { color: var(--text); text-decoration-color: var(--primary); }
@supports (grid-template-rows: subgrid) {
  .plan-cards { row-gap: clamp(0.75rem, 1.5vw, 1.25rem); }
  .plan-card { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
  .plan-card > .plan-cta { align-self: end; }
}
.plan-section .plan-cards + .plan-steps,
.plan-section .lineup + .plan-steps { margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.plan-compare th[scope="col"] { white-space: nowrap; }
@media (max-width: 900px) {
  .plan-cards { grid-template-columns: minmax(0, 1fr); max-width: 34rem; margin-inline: auto; }
.size-picker, .js .size-picker[hidden] { margin-inline: auto; }
}
@media (max-width: 420px) {
  .size-picker button { font-size: 0.82rem; }
  .size-picker, .js .size-picker[hidden] { grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: var(--radius-lg); }
}
.pr-notes > * { max-width: 40em; }
.pr-notes .what-yodoya-is { margin-top: 0.6rem; font-size: 0.86rem; line-height: 1.55; color: var(--text-faint); }
.plan-specs > .is-common dd { color: var(--text-dim); }
@keyframes pr-card-in { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes pr-part-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.lineup-size.is-entering .plan-card { --d: 0s; animation: pr-card-in .7s cubic-bezier(.16, 1, .3, 1) var(--d) both; }
.lineup-size.is-entering .plan-card:nth-child(2) { --d: .1s; }
.lineup-size.is-entering .plan-card:nth-child(3) { --d: .2s; }
.lineup-size.is-entering .plan-price > p { animation: pr-part-in .5s cubic-bezier(.16, 1, .3, 1) calc(var(--d) + .2s) both; }
.lineup-size.is-entering .plan-specs > div { animation: pr-part-in .45s cubic-bezier(.16, 1, .3, 1) calc(var(--d) + .4s) both; }
.lineup-size.is-entering .plan-specs > div:nth-child(n + 3) { animation-delay: calc(var(--d) + .46s); }
.lineup-size.is-entering .plan-specs > div:nth-child(n + 5) { animation-delay: calc(var(--d) + .52s); }
.plan-compare thead th { font-family: var(--display); font-size: 1.05rem; }
.plan-compare tr.is-fee td { font-weight: 600; color: var(--text); }
.plan-compare tbody tr { transition: background-color .15s var(--ease); }
.plan-compare tbody tr:hover { background-color: rgba(237, 232, 218, 0.025); }
.mh-page .limits-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2.5rem;
  max-width: none;
  padding: 0;
}
.mh-page .limits-list li + li { margin-top: 0; }
.mh-page .limits-list li { padding-top: 1rem; border-top: 1px solid var(--border); font-size: 0.92rem; line-height: 1.6; color: var(--text-dim); }
.mh-page .limits-list li strong { display: block; margin-bottom: 0.35rem; font-family: var(--display); font-size: 1.05rem; font-weight: 600; color: var(--text); }
@media (min-width: 1000px) {
#faq.mh-page .mh-panel { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); column-gap: clamp(2rem, 5vw, 4rem); align-items: start; }
  #faq.mh-page .mh-panel-head { position: sticky; top: 6.5rem; }
  #faq.mh-page .faq { margin-top: 0; max-width: none; }
}
@media (max-width: 900px) {
  .mh-page .limits-list { grid-template-columns: minmax(0, 1fr); }
}
.risk-box { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.risk-box h2 { color: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .lineup-size.is-entering .plan-card,
  .lineup-size.is-entering .plan-price > p,
  .lineup-size.is-entering .plan-specs > div { animation: none; }
}
.landing-page {
  --lp-ease: cubic-bezier(.16, 1, .3, 1);
}
.landing-page .lp-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
padding-block: clamp(2.5rem, min(9vw, 8vh), 5.5rem) clamp(2.5rem, 5vw, 4rem);
background-image: linear-gradient(180deg, var(--bg-app) 0%, var(--bg-app) 48%, #120d0b 80%, #170f0c 100%);
}
.landing-page .lp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.landing-page .lp-horizon {
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  top: clamp(14rem, 34vh, 21rem);
  height: clamp(15rem, 38vh, 24rem);
  pointer-events: none;
-webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent), linear-gradient(180deg, rgba(0, 0, 0, 0.4), #000 62%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent), linear-gradient(180deg, rgba(0, 0, 0, 0.4), #000 62%);
  mask-composite: intersect;
}
.landing-page .lp-hero .lp-ghost { background-color: var(--bg-app); }
.landing-page .lp-horizon svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.landing-page .lp-hz-line { fill: none; stroke: rgba(237, 232, 218, 0.34); stroke-width: 1.25; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.landing-page .lp-hz-now {
  position: absolute;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: var(--washi);
  opacity: 0;
}
.landing-page .lp-hz-cap {
  position: absolute;
  z-index: -1;
  right: clamp(1rem, 4vw, 3rem);
  top: clamp(14rem, 34vh, 21rem);
  font-size: var(--fs-xs);
  color: var(--text-faint);
  opacity: 0;
}
.landing-page .lp-horizon.is-drawn .lp-hz-now,
.landing-page .lp-horizon.is-drawn + .lp-hz-cap { opacity: 1; transition: opacity .6s ease 1.6s; }
.landing-page .lp-horizon svg { clip-path: inset(0 100% 0 0); }
.landing-page .lp-horizon.is-drawn svg { clip-path: inset(0 0 0 0); transition: clip-path 2.4s cubic-bezier(.65, 0, .35, 1) .2s; }
@media (max-width: 700px) {
  .landing-page .lp-horizon { top: 15rem; height: 13rem; }
.landing-page .lp-hz-cap { display: none; }
}
.landing-page .lp-hero-copy {
  display: grid;
  justify-items: center;
  text-align: center;
}
.landing-page .lp-title {
  display: grid;
  font-size: clamp(2.6rem, min(7.2vw, 10.5vh), 5.75rem);
  line-height: 0.98;
  letter-spacing: -0.032em;
  word-spacing: 0.06em;
  font-variation-settings: "opsz" 144;
  max-inline-size: 15ch;
}
.landing-page .lp-title-a { font-weight: 600; }
.landing-page .lp-title-b { font-weight: 330; color: var(--washi); }
.landing-page .lp-sub {
  margin-top: clamp(1.1rem, 2.4vw, 1.6rem);
  max-width: 40ch;
  font-size: clamp(1.05rem, 1.9vw, 1.3rem);
  line-height: 1.5;
  color: var(--text-dim);
  text-wrap: balance;
}
@media (min-width: 600px) { .landing-page .lp-sub > span { display: block; } }
.landing-page .lp-cta { margin-top: clamp(1.75rem, 3.5vw, 2.4rem); justify-content: center; }
.landing-page .lp-cta .btn { min-width: 11.5rem; }
.landing-page .lp-proofline {
  margin: 1.6rem auto 0;
  max-width: 40em;
  text-align: center;
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--text-dim);
  text-wrap: balance;
}
.landing-page .lp-proofline a { color: var(--text); text-underline-offset: 3px; }
.landing-page .lp-proofline .mono { font-size: 0.8125rem; }
.landing-page .lp-proofline-honest { color: var(--text); }
@keyframes lp-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes lp-lift { from { opacity: 0; transform: translateY(40px) scale(0.985); } to { opacity: 1; transform: none; } }
.landing-page .lp-hero-copy > * { animation: lp-rise .9s var(--lp-ease) both; }
.landing-page .lp-hero-copy > :nth-child(2) { animation-delay: .08s; }
.landing-page .lp-hero-copy > :nth-child(3) { animation-delay: .16s; }
.landing-page .lp-hero-copy > :nth-child(4) { animation-delay: .24s; }
.landing-page .lp-frame { animation: lp-lift 1.2s var(--lp-ease) .3s both; }
.landing-page .lp-stage { margin-top: clamp(2.25rem, min(5vw, 6vh), 3.75rem); }
.landing-page .lp-frame {
  position: relative;
  margin: 0 auto;
  max-width: 68rem;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  background: #0f0d0b;
  overflow: hidden;
}
.landing-page .lp-frame-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(237, 232, 218, 0.025);
  font-size: var(--fs-sm);
}
.landing-page .lp-frame-mark { display: block; width: 18px; flex: none; }
.landing-page .lp-frame-mark svg { width: 100%; height: auto; }
.landing-page .lp-frame-title { font-weight: 600; }
.landing-page .lp-chip {
  padding: 0.12rem 0.55rem;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  font-size: var(--fs-xs);
  color: var(--text-dim);
}
.landing-page .lp-frame-sim {
  margin-left: auto;
  font-size: var(--fs-xs);
  color: var(--text-faint);
}
.landing-page .lp-frame-body {
  display: grid;
  grid-template-columns: minmax(0, 13.5rem) minmax(0, 1fr) minmax(0, 17rem);
}
.landing-page .lp-frame-body > * + * { border-left: 1px solid var(--border); }
.landing-page .lp-panel-label {
  font-size: var(--fs-xs);
  color: var(--text-faint);
}
.landing-page .lp-watch { padding: 1.1rem 1.1rem 0.6rem; }
.landing-page .lp-watch ul { list-style: none; margin-top: 0.6rem; }
.landing-page .lp-watch li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-sm);
}
.landing-page .lp-watch li:last-child { border-bottom: 0; }
.landing-page .lp-watch-sym span,
.landing-page .lp-coin-sym span { color: var(--text-faint); font-weight: 400; }
.landing-page .lp-px { font-variant-numeric: tabular-nums; color: var(--text-dim); transition: color .4s ease; }
.landing-page .lp-watch .lp-px:empty::before { content: "\2014"; color: var(--text-faint); }
.landing-page .lp-px[data-dir="up"] { color: var(--up); }
.landing-page .lp-px[data-dir="down"] { color: var(--down); }
.landing-page .lp-px[data-dir="up"]::after { content: " \2191"; }
.landing-page .lp-px[data-dir="down"]::after { content: " \2193"; }
.landing-page .lp-frame .candle-card {
  max-width: none;
  justify-self: stretch;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  padding: 1.1rem 1.4rem 1.2rem;
}
.landing-page .lp-frame .candle-note { min-height: 2lh; }
.landing-page .lp-acct { padding: 1.1rem 1.2rem; display: flex; flex-direction: column; }
.landing-page .lp-acct-bal {
  margin-top: 0.35rem;
  font-size: 1.75rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.landing-page .lp-meters { margin-top: 1rem; display: grid; gap: 0.95rem; }
.landing-page .lp-meter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.3rem 0.75rem;
  align-items: baseline;
}
.landing-page .lp-meter dt { font-size: var(--fs-sm); color: var(--text-dim); }
.landing-page .lp-meter dd { font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.landing-page .lp-meter dd span { color: var(--text-faint); margin-left: 0.3rem; }
.landing-page .lp-bar {
  grid-column: 1 / -1;
  height: 6px;
  border-radius: var(--radius);
  background-color: var(--bg-tertiary);
  overflow: hidden;
}
.landing-page .lp-bar i { display: block; height: 100%; border-radius: inherit; }
.landing-page .lp-bar-target i { width: 0; }
.landing-page .lp-bar-room i { width: 100%; background-color: var(--text-faint); transform-origin: left center; }
@keyframes lp-room { from { transform: scaleX(0); } to { transform: none; } }
.landing-page .lp-bar-room i { animation: lp-room .9s var(--lp-ease) 1.25s both; }
.landing-page .lp-meter + .lp-meter + .lp-meter .lp-bar-room i { animation-delay: 1.4s; }
.landing-page .lp-acct-foot {
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-sm);
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  max-width: none;
}
.landing-page .lp-acct-foot .mono { color: var(--text); }
.landing-page .lp-frame-cap {
  padding: 0.7rem 1.1rem;
  border-top: 1px solid var(--border);
  font-size: var(--fs-xs);
  color: var(--text-faint);
  text-align: center;
}
@media (max-width: 1000px) {
  .landing-page .lp-frame-body { grid-template-columns: minmax(0, 1fr) minmax(0, 16rem); }
  .landing-page .lp-watch { display: none; }
  .landing-page .lp-frame-body > .candle-card { border-left: 0; }
}
@media (max-width: 680px) {
  .landing-page .lp-frame-body { grid-template-columns: minmax(0, 1fr); }
  .landing-page .lp-frame-body > .lp-acct { border-left: 0; border-top: 1px solid var(--border); }
  .landing-page .lp-frame-sim { display: none; }
  .landing-page .lp-frame .candle-card { padding: 1rem; }
  .landing-page .lp-cta .btn { width: 100%; }
}
.landing-page .lp-stats-section { padding-block: clamp(1.75rem, 3.5vw, 2.75rem); border-top: 0; }
.landing-page .lp-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 1.25rem;
}
.landing-page .lp-stat {
  flex: 1 1 9.5rem;
  max-width: 14rem;
  padding: 0.2rem 1.25rem;
  text-align: center;
  border-left: 1px solid var(--border);
display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.landing-page .lp-stat:first-child { border-left: 0; }
.landing-page .lp-stat dt { font-family: var(--mono); font-size: var(--fs-xs); color: var(--text-dim); }
.landing-page .lp-stat dd {
  margin-top: 0.35rem;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.landing-page .lp-stat dd.lp-stat-word {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.6;
}
@media (max-width: 560px) {
  .landing-page .lp-stat { flex-basis: 45%; border-left: 0; padding-inline: 0.5rem; }
}
.landing-page .lp-marquee-section { padding-block: 1.75rem 1.4rem; }
.landing-page .lp-tape {
  position: relative;
  display: flex;
  align-items: stretch;
  border-block: 1px solid var(--border);
  background-color: var(--bg-sidebar);
}
.landing-page .lp-marquee {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.landing-page .lp-marquee-track {
  display: flex;
  width: max-content;
  animation: lp-marquee 140s linear infinite;
}
@keyframes lp-marquee { to { transform: translateX(-50%); } }
.landing-page .lp-marquee:hover .lp-marquee-track,
.landing-page .lp-marquee:focus-within .lp-marquee-track,
.landing-page .lp-marquee.is-paused .lp-marquee-track { animation-play-state: paused; }
.landing-page .lp-marquee-list {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}
.landing-page .lp-coin {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.95rem 1.4rem;
  font-size: var(--fs-sm);
  white-space: nowrap;
  border-right: 1px solid var(--border);
}
.landing-page .lp-coin-sym { font-weight: 600; color: var(--text); }
.landing-page .lp-coin-sym span { font-weight: 400; color: var(--text-faint); }
.landing-page .lp-marquee .lp-px { min-width: 5ch; }
.landing-page .lp-marquee .lp-px:empty { display: none; }
.landing-page .lp-tape-toggle {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 1.1rem;
  border: 0;
  border-left: 1px solid var(--border);
  background: var(--bg-sidebar);
  color: var(--text-dim);
  font: inherit;
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: color .15s var(--ease);
}
.landing-page .lp-tape-toggle:hover { color: var(--text); }
.landing-page .lp-tape-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: -4px; }
.landing-page .lp-tape-toggle .icon { width: 14px; height: 14px; }
@media (prefers-reduced-motion: reduce) {
  .landing-page .lp-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .landing-page .lp-marquee-track { animation: none; }
  .landing-page .lp-marquee-list[aria-hidden="true"], .landing-page .lp-tape-toggle { display: none; }
}
@media (max-width: 600px) {
  .landing-page .lp-coin { padding: 0.8rem 1.1rem; }
  .landing-page .lp-tape-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .landing-page .lp-tape-toggle { padding: 0 0.9rem; min-width: 44px; justify-content: center; }
}
.landing-page .lp-picker {
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.landing-page .lp-seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background-color: var(--bg-card);
  min-width: 0;
}
.landing-page .lp-seg legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.landing-page .lp-seg input { position: absolute; opacity: 0; pointer-events: none; }
.landing-page .lp-seg label {
  display: inline-block;
  margin: 0;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
  color: var(--text-dim);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.landing-page .lp-seg label:hover { color: var(--text); }
.landing-page .lp-seg input:checked + label { background-color: var(--primary-fill); color: var(--on-primary-fill); }
.landing-page .lp-seg input:focus-visible + label { outline: 2px solid var(--primary); outline-offset: 2px; }
.landing-page .lp-seg-type { display: none; }
@media (max-width: 560px) {
  .landing-page .lp-seg-size { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .landing-page .lp-seg-size label { text-align: center; padding-inline: 0.4rem; }
}
.landing-page .lp-plans {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.landing-page .lp-plan {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background-color: var(--bg-card);
}
@supports selector(:has(*)) {
  .landing-page .lp-plan { display: none; }
  .landing-page .lp-pricing:has(#lp-size-5k:checked) .lp-plan[data-size="5k"],
  .landing-page .lp-pricing:has(#lp-size-10k:checked) .lp-plan[data-size="10k"],
  .landing-page .lp-pricing:has(#lp-size-25k:checked) .lp-plan[data-size="25k"],
  .landing-page .lp-pricing:has(#lp-size-50k:checked) .lp-plan[data-size="50k"],
  .landing-page .lp-pricing:has(#lp-size-100k:checked) .lp-plan[data-size="100k"],
  .landing-page .lp-pricing:has(#lp-size-200k:checked) .lp-plan[data-size="200k"] { display: flex; }
}
.landing-page .lp-plan-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.landing-page .lp-plan-head h3 { font-size: 1.35rem; color: var(--text); }
.landing-page .lp-plan-size { font-size: var(--fs-sm); color: var(--text-dim); }
.landing-page .lp-plan-blurb { font-size: 0.92rem; line-height: 1.5; color: var(--text-dim); min-height: 3lh; }
.landing-page .lp-plan-fee { font-size: var(--fs-sm); color: var(--text-dim); }
.landing-page .lp-plan-fee .mono {
  font-size: 2.1rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-right: 0.35rem;
}
.landing-page .lp-plan-rules { display: grid; }
.landing-page .lp-plan-rules > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--border);
  font-size: var(--fs-sm);
}
.landing-page .lp-plan-rules dt { color: var(--text-dim); }
.landing-page .lp-plan-rules dd { font-variant-numeric: tabular-nums; text-align: right; }
.landing-page .lp-plan-rules dd span { color: var(--text-faint); margin-left: 0.35rem; display: inline-block; min-width: 7ch; text-align: right; }
.landing-page .lp-plan-go { margin-top: auto; width: 100%; }
@keyframes lp-card-in { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes lp-part-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.landing-page .lp-plans .lp-plan { --d: 0s; animation: lp-card-in .7s var(--lp-ease) var(--d) both; }
.landing-page .lp-plans .lp-plan:nth-child(3n + 2) { --d: .1s; }
.landing-page .lp-plans .lp-plan:nth-child(3n) { --d: .2s; }
.landing-page .lp-plans .lp-plan-fee { animation: lp-part-in .5s var(--lp-ease) calc(var(--d) + .2s) both; }
.landing-page .lp-plans .lp-plan-rules > div { animation: lp-part-in .45s var(--lp-ease) calc(var(--d) + .3s) both; }
.landing-page .lp-plans .lp-plan-rules > div:nth-child(2) { animation-delay: calc(var(--d) + .36s); }
.landing-page .lp-plans .lp-plan-rules > div:nth-child(3) { animation-delay: calc(var(--d) + .42s); }
.landing-page .lp-plans .lp-plan-rules > div:nth-child(4) { animation-delay: calc(var(--d) + .48s); }
.landing-page .lp-plan-rules .is-target dd { color: var(--up); }
.landing-page .lp-plan-rules .is-daily dd { color: var(--accent); }
.landing-page .lp-plan-rules .is-floor dd { color: var(--down); }
.landing-page .lp-plan { transition: border-color .2s var(--ease); }
.landing-page .lp-plan:hover { border-color: var(--border-2); }
.landing-page .lp-plan-classic { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }
.landing-page .lp-plan-classic:hover { border-color: color-mix(in srgb, var(--primary) 70%, var(--border)); }
.landing-page .lp-plan-classic .lp-plan-tag { color: var(--primary-hover); border-color: color-mix(in srgb, var(--primary) 55%, transparent); }
.landing-page .lp-plan-classic .lp-plan-go {
  background-color: var(--primary-fill);
  border-color: var(--primary-fill);
  color: var(--on-primary-fill);
  font-weight: 600;
}
.landing-page .lp-plan-classic .lp-plan-go:hover { background-color: var(--primary-deep); border-color: var(--primary); color: var(--text); }
.landing-page .lp-plan-tag {
  margin-left: 0.35rem; padding: 0.1rem 0.5rem; vertical-align: 0.2em;
  font-family: var(--body); font-size: var(--fs-xs); font-weight: 500;
  color: var(--text-dim); border: 1px solid var(--border-2); border-radius: var(--radius);
}
.landing-page .lp-pricing-foot { margin-top: 1.5rem; font-size: 0.95rem; }
.landing-page .lp-pricing-foot a { color: var(--primary); }
@media (max-width: 760px) {
  .landing-page .lp-plans { grid-template-columns: minmax(0, 1fr); }
  .landing-page .lp-plan-blurb { min-height: 0; }
}
@media (max-width: 760px) {
  @supports selector(:has(*)) {
    .landing-page .lp-seg-type { display: inline-flex; }
    .landing-page .lp-pricing:has(#lp-type-classic:checked) .lp-plan:not([data-type="classic"]),
    .landing-page .lp-pricing:has(#lp-type-turbo:checked) .lp-plan:not([data-type="turbo"]),
    .landing-page .lp-pricing:has(#lp-type-pro:checked) .lp-plan:not([data-type="pro"]) { display: none; }
  }
}
.landing-page .lp-steps {
  --gap: clamp(1.5rem, 3vw, 2.5rem);
  list-style: none;
  counter-reset: lp-step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.landing-page .lp-steps > li {
  counter-increment: lp-step;
  position: relative;
  padding-top: 3rem;
}
.landing-page .lp-steps > li::before {
  content: counter(lp-step);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  background-color: var(--bg);
  font-family: var(--mono);
  font-size: var(--fs-sm);
  color: var(--text);
}
.landing-page .lp-steps > li::after {
  content: "";
  position: absolute;
  top: 1.05rem;
  left: 2.6rem;
  right: calc(-1 * var(--gap) + 0.5rem);
  height: 1px;
  background-color: var(--border-2);
  transform-origin: left center;
}
.landing-page .lp-steps > li:last-child::after { content: none; }
.landing-page .lp-steps > li:last-child::before { border-color: var(--primary); color: var(--primary); }
html.js-reveal .landing-page .lp-steps > li::after { transform: scaleX(0); transition: transform .8s var(--lp-ease) calc(var(--i, 0) * 120ms + .25s); }
html.js-reveal .landing-page .lp-steps > li.in-view::after { transform: none; }
.landing-page .lp-steps h3 { font-size: 1.3rem; }
.landing-page .lp-steps p { margin-top: 0.5rem; font-size: 0.94rem; line-height: 1.6; color: var(--text-dim); }
@media (max-width: 760px) {
  .landing-page .lp-steps { grid-template-columns: minmax(0, 1fr); }
  .landing-page .lp-steps > li { padding: 0.2rem 0 0 3.25rem; }
  .landing-page .lp-steps > li::after {
    top: 2.6rem;
    left: 1.05rem;
    right: auto;
    bottom: calc(-1 * var(--gap) + 0.5rem);
    width: 1px;
    height: auto;
    transform-origin: center top;
  }
  html.js-reveal .landing-page .lp-steps > li::after { transform: scaleY(0); }
  html.js-reveal .landing-page .lp-steps > li.in-view::after { transform: none; }
}
.landing-page .lp-ladders {
  --head: 3.5rem;
  --plot: 19rem;
  --span: calc(var(--hi) + var(--lo) + 5);
  --zero: calc((var(--hi) + 2.5) / var(--span) * 100%);
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 3rem repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--border);
}
.landing-page .lp-ladders-axis {
  position: relative;
  margin-top: var(--head);
  height: var(--plot);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--text-faint);
}
.landing-page .lp-ladders-axis span {
  position: absolute;
  right: 0.6rem;
  top: calc((var(--hi) + 2.5 - var(--v)) / var(--span) * 100%);
  transform: translateY(-50%);
}
.landing-page .lp-ladder { margin: 0; min-width: 0; border-left: 1px solid var(--border); }
.landing-page .lp-ladder-head {
  height: var(--head);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.1rem;
  padding-inline: 1rem;
}
.landing-page .lp-ladder-name { font-family: var(--display); font-weight: 600; font-size: 1.3rem; line-height: 1.1; color: var(--text); }
.landing-page .lp-ladder-size { font-size: var(--fs-xs); color: var(--text-faint); }
.landing-page .lp-ladder-plot {
  position: relative;
  height: var(--plot);
  container-type: size;
background-image: linear-gradient(180deg,
    rgba(16, 185, 129, 0.07) 0%, rgba(16, 185, 129, 0.015) var(--zero),
    rgba(244, 63, 94, 0.02) var(--zero), rgba(244, 63, 94, 0.08) 100%);
}
.landing-page .lp-rung {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  top: calc((var(--hi) + 2.5 - var(--v)) / var(--span) * 100%);
  font-size: var(--fs-xs);
  color: var(--text-dim);
}
.landing-page .lp-rung::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  border-top: 1px solid var(--rung, var(--border-2));
  transform-origin: left center;
}
.landing-page .lp-rung > span {
  position: absolute;
  bottom: 0.3rem;
  left: 1rem;
  white-space: nowrap;
}
.landing-page .lp-rung > span + span { left: auto; right: 1rem; color: var(--text-faint); }
.landing-page .lp-rung-word { font-style: normal; }
.landing-page .lp-rung b { font-weight: 500; color: var(--rung-ink, var(--text)); }
.landing-page .lp-rung-target { --rung: var(--up); --rung-ink: var(--up); }
.landing-page .lp-rung-start { --rung: var(--border-2); }
.landing-page .lp-rung-start::before { border-top-style: dashed; }
.landing-page .lp-rung-daily { --rung: var(--accent); --rung-ink: var(--accent); }
.landing-page .lp-rung-daily::before { border-top-style: dashed; }
.landing-page .lp-rung-floor { --rung: var(--down); --rung-ink: var(--down); }
.landing-page .lp-rung-floor::before { border-top-width: 2px; }
.landing-page .lp-rung-floor > span { bottom: auto; top: 0.45rem; }
html.js-reveal .landing-page .lp-ladders:not(.in-view) .lp-rung-start::before { transform: scaleX(0); }
html.js-reveal .landing-page .lp-ladders:not(.in-view) .lp-rung:not(.lp-rung-start) {
  transform: translateY(calc(var(--v) / var(--span) * 100cqh));
}
html.js-reveal .landing-page .lp-ladders:not(.in-view) .lp-rung > span { opacity: 0; }
html.js-reveal .landing-page .lp-ladders .lp-rung-start::before { transition: transform .6s var(--lp-ease); }
html.js-reveal .landing-page .lp-ladders .lp-rung:not(.lp-rung-start) { transition: transform .8s var(--lp-ease) .45s; }
html.js-reveal .landing-page .lp-ladders .lp-ladder:nth-of-type(2) .lp-rung:not(.lp-rung-start) { transition-delay: .53s; }
html.js-reveal .landing-page .lp-ladders .lp-ladder:nth-of-type(3) .lp-rung:not(.lp-rung-start) { transition-delay: .61s; }
html.js-reveal .landing-page .lp-ladders .lp-rung > span { transition: opacity .35s ease 1.15s; }
html.js-reveal .landing-page .lp-ladders[data-reveal] { opacity: 1; transform: none; }
.landing-page .lp-ladder-key {
  list-style: none;
  margin: 1.25rem 0 0 3rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem 2rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-dim);
}
.landing-page .lp-ladder-key b { display: block; color: var(--text); font-weight: 600; }
.landing-page .lp-ladder-key li::before {
  content: "";
  display: block;
  width: 1.75rem;
  margin-bottom: 0.6rem;
  border-top: 1px solid var(--k);
}
.landing-page .lp-key-target { --k: var(--up); }
.landing-page .lp-key-daily { --k: var(--accent); }
.landing-page .lp-key-daily::before { border-top-style: dashed !important; }
.landing-page .lp-key-floor { --k: var(--down); }
.landing-page .lp-key-floor::before { border-top-width: 2px !important; }
.landing-page .lp-absent-title { margin-top: clamp(2.5rem, 5vw, 3.75rem); font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
.landing-page .lp-rules .absent-list { margin-top: 1.25rem; }
.landing-page .absent-list h4 {
  font-size: 1.02rem;
  margin-bottom: 0.4rem;
  display: grid;
  grid-template-columns: 1.15rem minmax(0, 1fr);
  column-gap: 0.7rem;
  align-items: start;
}
.landing-page .absent-list h4::before {
  content: "";
  display: inline-block;
  height: 1px;
  margin-top: 0.62em;
  background-color: var(--text-faint);
}
@media (max-width: 860px) {
  .landing-page .lp-ladders { --plot: 17rem; grid-template-columns: 2.25rem repeat(3, minmax(0, 1fr)); }
  .landing-page .lp-ladders-axis span { right: 0.35rem; }
  .landing-page .lp-ladder-head { padding-inline: 0.6rem; }
  .landing-page .lp-ladder-name { font-size: 1.05rem; }
  .landing-page .lp-rung-word { display: none; }
  .landing-page .lp-rung > span { left: 0.5rem; }
  .landing-page .lp-rung > span + span { right: 0.5rem; }
  .landing-page .lp-ladder-key { grid-template-columns: minmax(0, 1fr); margin-left: 0; }
}
@media (max-width: 420px) {
.landing-page .lp-rung > span + span { display: none; }
  .landing-page .lp-ladder-size { display: none; }
}
.landing-page .lp-train-grid {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 1rem;
}
.landing-page .lp-game {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background-color: var(--bg-panel);
}
.landing-page .lp-game-duel { grid-row: span 2; }
.landing-page .lp-game .race { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.landing-page .lp-game-draft .duel-chart { --you: var(--lit-accent); --them: var(--lit-ink-dim); }
.landing-page .lp-game-draft .duel-chart-dot-start { fill: var(--lit-ink); stroke: var(--lit-bg); }
.landing-page .lp-game-copy h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
.landing-page .lp-game-copy p { margin-top: 0.6rem; font-size: 0.95rem; line-height: 1.6; color: var(--text-dim); max-inline-size: 46ch; }
.landing-page .lp-game-copy .lp-game-maths { font-size: var(--fs-sm); }
.landing-page .lp-game-go { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.1rem; }
.landing-page .lp-game-duel .lp-game-copy { margin-top: auto; }
.landing-page .lp-game-demo {
  --text: var(--lit-on-ink);
  --text-dim: #cbc4b5;   
  --border-2: rgba(244, 240, 230, 0.3);
  background-color: var(--lit-ink);
  border-color: var(--lit-ink);
  color: var(--lit-on-ink);
  justify-content: flex-end;
}
.landing-page .lp-game-demo .btn-primary { background-color: var(--primary-fill); border-color: var(--primary-fill); color: var(--on-primary-fill); }
.landing-page .lp-game-demo .btn-primary:hover { background-color: var(--primary-deep); border-color: var(--primary); color: var(--text); }
.landing-page .lp-game-demo :focus-visible { outline-color: var(--washi); }
@media (max-width: 860px) {
  .landing-page .lp-train-grid { grid-template-columns: minmax(0, 1fr); }
  .landing-page .lp-game-duel { grid-row: auto; }
}
.landing-page .lp-origin .origin-mark { width: min(100%, 240px); }
.landing-page .lp-closer h2 { max-width: 17ch; }
@media (prefers-reduced-motion: reduce) {
  .landing-page .lp-hero-copy > *,
  .landing-page .lp-frame,
  .landing-page .lp-bar-room i,
  .landing-page .lp-plans .lp-plan,
  .landing-page .lp-plans .lp-plan-fee,
  .landing-page .lp-plans .lp-plan-rules > div { animation: none; }
  .landing-page .lp-horizon svg,
  .landing-page .lp-horizon.is-drawn svg { clip-path: none; transition: none; }
  .landing-page .lp-horizon.is-drawn .lp-hz-now,
  .landing-page .lp-horizon.is-drawn + .lp-hz-cap { transition: none; }
  .landing-page .lp-px { transition: none; }
}
.rulebook .rb-head { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.rulebook .rb-head h1 { max-inline-size: 16ch; }
.rb-layout {
  display: grid;
  grid-template-columns: 15rem minmax(0, 49.28em);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.rulebook .rb-sec { padding-block: 0; border-top: 0; }
.rulebook .rb-sec + .rb-sec { border-top: 0; }
.rb-body > .rb-sec:first-child > h2 { border-top: 0; padding-top: 0; margin-top: 0; }
.rb-body h2 { scroll-margin-top: 6rem; }
.rb-n {
  display: inline-block;
  min-width: 2.1em;
  font-family: var(--mono);
  font-size: 0.72em;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  vertical-align: 0.08em;
}
.rb-h3-meta {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-faint);
  margin-left: 0.5rem;
  white-space: nowrap;
}
.rb-toc {
  position: sticky;
  top: 6rem;
  max-height: calc(100vh - 7.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  font-size: 0.86rem;
  padding-right: 0.5rem;
}
.rb-toc-title { font-weight: 600; color: var(--text); margin-bottom: 0.75rem; }
.rb-toc-fold > summary { list-style: none; }
.rb-toc-fold > summary::-webkit-details-marker { display: none; }
@media (min-width: 961px) { .rb-toc-fold > summary { pointer-events: none; } }
@media (max-width: 960px) {
  .rb-toc-fold > summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin: 0; cursor: pointer; }
  .rb-toc-fold > summary::after { content: ""; width: 0.45rem; height: 0.45rem; margin-right: 0.3rem; border-right: 1.5px solid var(--text-dim); border-bottom: 1.5px solid var(--text-dim); transform: translateY(-25%) rotate(45deg); }
  .rb-toc-fold[open] > summary { margin-bottom: 0.75rem; }
  .rb-toc-fold[open] > summary::after { transform: translateY(25%) rotate(-135deg); }
}
.rb-toc ol { list-style: none; margin: 0; padding: 0; }
.rb-toc-groups > li + li { margin-top: 1rem; }
.rb-toc-group { display: block; color: var(--text-faint); font-size: 0.8rem; margin-bottom: 0.3rem; }
.rb-toc a {
  display: flex;
  gap: 0.6rem;
  padding: 0.3rem 0.5rem;
  margin-left: -0.5rem;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  text-decoration: none;
  transition: color .15s var(--ease), background-color .15s var(--ease);
}
.rb-toc a:hover { color: var(--text); background: var(--bg-tertiary); }
.rb-toc a[aria-current] { color: var(--text); background: var(--bg-tertiary); }
.rb-toc a[aria-current] .rb-toc-n { color: var(--primary); }
.rb-toc-n { font-family: var(--mono); font-size: 0.78rem; color: var(--text-faint); font-variant-numeric: tabular-nums; padding-top: 0.08rem; }
.legal p.rb-formula {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.9rem;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-panel);
  color: var(--text);
}
.legal p.rb-formula { max-width: none; }
.rb-formula + .rb-formula { margin-top: 0.5rem; }
.rb-formula-label { font-size: 0.82rem; color: var(--text-dim); min-width: 10rem; }
.rb-formula code { font-family: var(--mono); font-size: 0.86rem; color: var(--text); overflow-wrap: anywhere; }
.rb-scroll { margin-top: 1rem; }
.rb-table caption:not(.visually-hidden) { caption-side: top; text-align: left; font-size: 0.85rem; color: var(--text-dim); padding-bottom: 0.5rem; }
.rb-table tbody th { font-family: var(--body); font-size: 0.88rem; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--text); }
.rb-table td { color: var(--text-dim); }
.rb-qref td.num { color: var(--text); }
.rb-table tbody tr:last-child th { border-bottom: none; }
.rb-date { white-space: nowrap; }
.rb-defs { margin-top: 1rem; display: grid; grid-template-columns: minmax(9rem, 13rem) minmax(0, 1fr); border-top: 1px solid var(--border); }
.rb-defs dt, .rb-defs dd { padding: 0.75rem 0; border-bottom: 1px solid var(--border); font-size: 0.93rem; }
.rb-defs dt { color: var(--text); font-weight: 600; padding-right: 1rem; }
.rb-defs dd { color: var(--text-dim); line-height: 1.6; margin: 0; }
.legal ol.rb-steps { list-style: none; counter-reset: rb-step; margin-left: 0; gap: 0.75rem; }
.legal .rb-steps li { counter-increment: rb-step; position: relative; padding-left: 2rem; }
.rb-steps li::before { content: counter(rb-step); position: absolute; left: 0; top: 0.12rem; font-family: var(--mono); color: var(--text-faint); font-size: 0.85rem; }
.legal ul.rb-symbols { list-style: none; margin-left: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 0.4rem 1rem; }
.rb-symbols li { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.35rem 0; border-bottom: 1px solid var(--border); }
.rb-sym { font-family: var(--mono); font-size: 0.85rem; color: var(--text); }
.rb-spread { font-family: var(--mono); font-size: 0.8rem; color: var(--text-faint); }
.legal ul.rb-checks { list-style: none; margin-left: 0; }
.rb-checks li { position: relative; padding-left: 1.5rem; }
.rb-checks li::before { content: "✓"; position: absolute; left: 0; color: var(--up); }
.rb-calc {
  margin-top: 1.75rem;
  padding: clamp(1.1rem, 3vw, 1.6rem);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
}
.legal .rb-calc h3 { margin-top: 0; }
.rb-calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; margin-top: 1.1rem; }
.rb-calc .field { margin-bottom: 0.9rem; }
.rb-calc label { font-size: 0.84rem; }
.rb-calc input[type="number"] { font-family: var(--mono); font-variant-numeric: tabular-nums; min-height: 44px; }
.rb-calc select { min-height: 44px; }
.rb-calc-out dl { display: grid; gap: 0; border-top: 1px solid var(--border); }
.rb-calc-out dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
.rb-calc-out dt { font-size: 0.85rem; color: var(--text-dim); }
.rb-calc-out dd { margin: 0; }
.rb-calc-out output { font-family: var(--mono); font-size: 0.95rem; color: var(--text); font-variant-numeric: tabular-nums; text-align: right; }
.legal p.rb-status {
  margin-top: 1rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.rb-status::before { font-family: var(--mono); width: 1rem; text-align: center; }
.rb-status[data-state="idle"]::before { content: "·"; color: var(--text-faint); }
.rb-status[data-state="safe"] { border-color: color-mix(in srgb, var(--up) 45%, transparent); background: var(--success-bg); }
.rb-status[data-state="safe"]::before { content: "✓"; color: var(--up); }
.rb-status[data-state="warn"] { border-color: color-mix(in srgb, var(--gold) 50%, transparent); background: color-mix(in srgb, var(--gold) 10%, transparent); }
.rb-status[data-state="warn"]::before { content: "!"; color: var(--gold); }
.rb-status[data-state="danger"],
.rb-status[data-state="breach"] { border-color: color-mix(in srgb, var(--down) 50%, transparent); background: var(--danger-bg); }
.rb-status[data-state="danger"]::before { content: "!"; color: var(--down); }
.rb-status[data-state="breach"]::before { content: "×"; color: var(--down); }
.rulebook .risk-box h2 { border-top: 0; padding-top: 0; margin-top: 0; }
@media (max-width: 960px) {
  .rb-layout { grid-template-columns: minmax(0, 1fr); }
  .rb-toc {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 1rem 0;
    border-block: 1px solid var(--border);
  }
  .rb-toc-groups { columns: 2; column-gap: 2rem; }
  .rb-toc-groups > li { break-inside: avoid; }
}
@media (max-width: 640px) {
  .rb-toc-groups { columns: 1; }
  .rb-calc-grid { grid-template-columns: minmax(0, 1fr); }
  .rb-defs { grid-template-columns: minmax(0, 1fr); }
  .rb-defs dt { border-bottom: 0; padding-bottom: 0.15rem; }
  .rb-defs dd { padding-top: 0; }
  .rb-formula-label { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .rb-toc a, .legal p.rb-status { transition: none; }
}
.site-footer .footer-disclosure {
  flex: 1 1 100%;
  padding: 0;  
  max-width: 100ch;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-dim);
  text-wrap: pretty;
}
.site-footer .footer-disclosure p + p { margin-top: 0.6rem; }
.site-footer .footer-disclosure strong { color: var(--text); font-weight: 600; }
.site-footer .footer-disclosure a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
  background: none;
}
.rule-meter.acct {
  display: block;
  container: acct / inline-size;
  padding: 1rem 1.25rem 0.75rem;
}
.acct-grid {
  display: grid;
  grid-template-columns: minmax(10.5rem, auto) minmax(11rem, 14rem) minmax(15rem, 1.1fr) minmax(14rem, 1fr);
  grid-template-areas:
    "equity figs gauges target"
    "foot   foot foot   foot";
  gap: 0.75rem 2rem;
  align-items: start;
}
.acct .rm-equity { grid-area: equity; display: grid; gap: 0.15rem; align-content: start; }
.acct-id {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.5rem;
  margin: 0 0 0.45rem;
  font-family: var(--body); font-size: 0.8rem; font-weight: 500; letter-spacing: 0; line-height: 1.3;
  color: var(--text-dim);
}
.acct-name { color: var(--text); font-weight: 600; }
.acct-kind {
  padding: 0.05rem 0.45rem;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-pill);
  font-family: var(--mono); font-size: 0.75rem;
}
.acct[data-kind="funded"] .acct-kind { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.acct .rm-equity .rule-meter-equity-num { font-size: 1.75rem; font-weight: 500; letter-spacing: -0.02em; }
.acct-figs { grid-area: figs; display: grid; gap: 0.4rem; margin: 0; padding-top: 1.55rem; }
.acct-fig { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; min-width: 0; }
.acct-fig dt { font-size: 0.75rem; color: var(--text-dim); white-space: nowrap; }
.acct-fig dd { margin: 0; font-family: var(--mono); font-size: 0.9rem; color: var(--text); text-align: right; white-space: nowrap; }
.acct-fig dd.up { color: var(--up); }
.acct-fig dd.down { color: var(--down); }
.acct-note { display: block; font-family: var(--body); font-size: 0.75rem; white-space: normal; }
.acct-gauges { grid-area: gauges; display: grid; gap: 0.7rem; padding-top: 0.2rem; }
.gauge { min-width: 0; }
.gauge-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; }
.gauge-head .label { font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gauge-val { font-size: 0.8rem; color: var(--text-dim); white-space: nowrap; }
.gauge-val > span:first-child { color: var(--text); }
.gauge-bar {
  position: relative;
  height: 6px;
  margin: 0.3rem 0 0.25rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--bg-panel-2);
  overflow: hidden;
}
.gauge-fill {
  height: 100%;
  width: 0;
  background: var(--text-dim);
  transition: width 240ms var(--ease), background-color 200ms ease;
}
.gauge-foot { display: flex; justify-content: flex-start; align-items: baseline; gap: 0.25rem 0.75rem; flex-wrap: wrap; color: var(--text-dim); font-size: 0.75rem; }
.gauge-foot > :last-child { margin-left: auto; }
.gauge-state:empty { display: none; }
.gauge-foot .num { font-family: var(--mono); color: var(--text); }
.gauge-foot .mono { color: var(--text-dim); }
.gauge.risk-warn .gauge-fill { background: var(--gold); }
.gauge.risk-warn .gauge-val > span:first-child,
.gauge.risk-warn .gauge-state,
.gauge.risk-warn .gauge-foot .num { color: var(--gold); }
.gauge.risk-danger .gauge-fill { background: var(--down); }
.gauge.risk-danger .gauge-val > span:first-child,
.gauge.risk-danger .gauge-state,
.gauge.risk-danger .gauge-foot .num { color: var(--down); }
.gauge-state { font-weight: 600; }
.gauge-state::before { content: "· "; font-weight: 400; }
.acct .rm-progress { grid-area: target; padding-top: 0.2rem; }
.acct .rm-progress .wick-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; }
.acct .rm-progress .wick-bar { height: 6px; margin: 0.3rem 0 0.35rem; }
.acct .rm-progress .wick-fill { height: 6px; }
.acct .wick-labels { font-size: 0.75rem; }
.acct .wick-labels > :last-child { text-align: right; }
.acct #meter-caption { font-size: 0.75rem; color: var(--text-dim); }
.acct #meter-pct { font-size: 0.8rem; }
.acct-payout { margin: 0.45rem 0 0; color: var(--text-dim); font-size: 0.78rem; }
.acct-payout .mono { color: var(--text); }
.acct-payout strong.up { color: var(--up); font-weight: 600; }
.acct .rm-sub { font-size: 0.75rem; }
.acct-foot {
  grid-area: foot;
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border);
}
.acct-fees { margin: 0; font-size: 0.75rem; color: var(--text-dim); }
.acct-fees .label { font-size: 0.75rem; margin-right: 0.35rem; }
.acct-fees-val { color: var(--text); }
.acct-foot .rm-glossary { margin: 0; font-size: 0.75rem; }
.acct-foot .rm-glossary[open] { flex: 1 1 100%; order: 2; }
@container acct (max-width: 62rem) {
  .acct-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "equity figs"
      "gauges target"
      "foot   foot";
    gap: 0.9rem 1.75rem;
  }
}
@container acct (max-width: 34rem) {
  .acct-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "equity" "figs" "gauges" "target" "foot";
    gap: 0.85rem;
  }
  .acct-figs { padding-top: 0.6rem; border-top: 1px solid var(--border); }
  .acct-gauges { padding-top: 0; }
.acct .wick-labels { grid-template-columns: 1fr 1fr; row-gap: 0.15rem; }
  .acct .wick-labels > :last-child { grid-column: 2; grid-row: 1; }
  .acct .wick-labels .mid { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 640px) {
  .terminal-page .terminal-section .rule-meter.acct { padding: 0.7rem 0.85rem 0.5rem; }
  .terminal-page .acct-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "equity daily dd"
      "target target target"
      "foot   foot   foot";
    gap: 0.5rem 0.75rem;
    align-items: end;
  }
  .terminal-page .acct .rm-equity { grid-area: equity; grid-column: auto; grid-row: auto; gap: 0; }
  .terminal-page .acct-id,
  .terminal-page .acct .rm-pnl,
  .terminal-page .acct-figs,
  .terminal-page .acct-fees,
  .terminal-page .gauge-foot > :not(.gauge-state) { display: none; }
.terminal-page .gauge-foot { font-size: 0.75rem; }
  .terminal-page .gauge-state::before { content: none; }
  .terminal-page .acct .rm-equity .rule-meter-equity-num { font-size: 1.15rem; line-height: 1.2; }
  .terminal-page .acct-gauges { display: contents; }
  .terminal-page #gauge-daily { grid-area: daily; }
  .terminal-page #gauge-dd { grid-area: dd; }
  .terminal-page .gauge-head { display: grid; gap: 0; }
  .terminal-page .gauge-head .label { font-size: 0.75rem; }
  .terminal-page .gauge-val { font-size: 0.85rem; }
  .terminal-page .gauge-bar { margin-bottom: 0; }
  .terminal-page .acct .rm-progress { grid-area: target; grid-column: 1 / -1; grid-row: auto; padding-top: 0; }
  .terminal-page .acct .rm-progress { flex-wrap: wrap; }
  .terminal-page .acct-payout { flex-basis: 100%; order: 3; margin-top: 0.1rem; }
  .terminal-page .acct-foot { padding-top: 0.4rem; justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .gauge-fill { transition: none; }
}
.bottom-tabs .tabs { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.bottom-tabs .tabs::-webkit-scrollbar { display: none; }
.bottom-tabs .tabs::after { bottom: 0; }
.bottom-tabs .tab { flex: none; white-space: nowrap; }
.bottom-tabs .tab:focus-visible { outline: 2px solid var(--text-dim); outline-offset: -2px; border-radius: var(--radius-sm); }
.tab-count { color: var(--text-dim); font-variant-numeric: tabular-nums; }
.tab.active .tab-count { color: var(--text); }
.side-tag { display: inline-flex; align-items: center; gap: 0.3em; font-weight: 500; white-space: nowrap; }
.side-arrow { width: 0.72em; height: 0.72em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#positions-body .pos-fee-paid { display: block; }
#positions-body .pos-fee-close { display: block; font-size: 0.75rem; color: var(--text-dim); white-space: nowrap; }
#positions-body .pos-breach { color: var(--text-dim); }
@media (min-width: 1201px) {
  .bottom-tabs #panel-positions table.dj-table { min-width: 61rem; }
  .bottom-tabs #positions-body td.row-actions { display: table-cell; text-align: right; white-space: normal; }
  .bottom-tabs #positions-body td.row-actions .btn { margin: 0.15rem 0 0.15rem 0.35rem; }
}
.bottom-tabs #panel-positions th, .bottom-tabs #panel-positions td { padding-right: 0.75rem; }
.bottom-tabs #panel-positions th { white-space: nowrap; }
.bottom-tabs #panel-positions thead th:nth-child(1) { width: 7%; }    
.bottom-tabs #panel-positions thead th:nth-child(2) { width: 7%; }    
.bottom-tabs #panel-positions thead th:nth-child(3) { width: 9%; }    
.bottom-tabs #panel-positions thead th:nth-child(4) { width: 3.5%; }  
.bottom-tabs #panel-positions thead th:nth-child(5),
.bottom-tabs #panel-positions thead th:nth-child(6) { width: 9.5%; }  
.bottom-tabs #panel-positions thead th:nth-child(7) { width: 8%; }    
.bottom-tabs #panel-positions thead th:nth-child(8) { width: 9.5%; }  
.bottom-tabs #panel-positions thead th:nth-child(9) { width: 9%; }    
.bottom-tabs #panel-positions thead th:nth-child(10) { width: 15%; }  
.bottom-tabs #positions-body .row-actions { flex-wrap: wrap; gap: 0.35rem; }
.bottom-tabs #positions-body .row-actions .btn { min-height: 30px; padding: 0.2rem 0.6rem; font-size: 0.8rem; }
#positions-body .pos-fee-close { font-family: var(--body); }
.bottom-tabs #positions-body .pos-sltp { white-space: nowrap; }
.bottom-tabs #positions-body .pos-sltp-levels { display: inline-block; vertical-align: middle; text-align: right; }
.bottom-tabs #positions-body .pos-sltp-edit { min-height: 28px; margin-left: 0.5rem; padding: 0.15rem 0.55rem; font-size: 0.78rem; vertical-align: middle; }
#orders-body td, #history-body td { vertical-align: middle; }
#orders-body .row-actions { flex-wrap: nowrap; justify-content: flex-end; }
#orders-body .row-actions .btn { white-space: nowrap; min-height: 32px; padding: 0.25rem 0.7rem; }
.ord-tag {
  display: inline-block; margin-left: 0.35rem; padding: 0 0.4rem; border: 1px solid var(--border-2);
  border-radius: var(--radius); color: var(--text-dim); font-size: 0.75rem; line-height: 1.5; vertical-align: 0.1em;
}
.ord-lev { color: var(--text-dim); font-size: 0.78rem; }
#orders-body tr.is-editing { background: color-mix(in srgb, var(--text) 4%, transparent); }
.ord-input {
  width: 9ch; min-height: 32px; padding: 0.2rem 0.45rem; text-align: right;
  font-family: var(--mono); font-size: 0.85rem;
}
.ord-input[aria-invalid="true"] { border-color: var(--down); }
.ord-status { font-weight: 500; }
.ord-status-cancelled { color: var(--text-dim); }
.ord-status-rejected { color: var(--down); }
.fill-liq-maker { color: var(--text); }
.fill-liq-taker { color: var(--text-dim); }
#panel-orders table:has(.empty-row) thead,
#panel-history table:has(.empty-row) thead,
.bottom-tabs #panel-fills table:has(.empty-row) thead { display: none; }
#orders-body > tr.empty-row, #history-body > tr.empty-row, .bottom-tabs #fills-body > tr.empty-row {
  display: block; border: 1px dashed var(--border-2); border-radius: var(--radius); background: none;
}
#orders-body > tr.empty-row > td, #history-body > tr.empty-row > td, .bottom-tabs #fills-body > tr.empty-row > td {
  display: block; border: 0; padding: 1.25rem; text-align: center; white-space: normal;
}
@media (max-width: 1200px) {
.bottom-tabs #positions-body > tr {
    grid-template-areas:
      "market side   pnl"
      "size   entry  mark"
      "fees   breach lev"
      "sltp   sltp   sltp"
      "act    act    act";
  }
  .bottom-tabs #positions-body .pos-fees { grid-area: fees; text-align: left; }
  .bottom-tabs #positions-body .pos-breach { grid-area: breach; text-align: left; }
  .bottom-tabs #positions-body .pos-sltp { display: flex; align-items: center; flex-wrap: wrap; gap: 0.25rem 1rem; }
  .bottom-tabs #positions-body .pos-sltp-levels { text-align: left; }
  .bottom-tabs #positions-body .pos-sltp-edit { margin-left: auto; }
  .bottom-tabs #positions-body .row-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .bottom-tabs .tabs::after { transition: none; }
}
.book-panel {
  min-width: 0;
  height: 100%;
  padding: 0.75rem 0.85rem 0.7rem;
  gap: 0.4rem;
}
.book-head { padding-bottom: 0; margin-bottom: 0.1rem; align-items: flex-end; }
.book-tabs { display: flex; gap: 0.15rem; }
.book-tab {
  background: none;
  border: 0;
  padding: 0.35rem 0.55rem 0.55rem;
  color: var(--text-dim);
  font: 500 0.82rem var(--body);
  cursor: pointer;
  box-shadow: inset 0 -2px 0 transparent;
  transition: color .15s var(--ease), box-shadow .2s var(--ease);
}
.book-tab:hover { color: var(--text); }
.book-tab.active { color: var(--text); box-shadow: inset 0 -2px 0 var(--primary); }
.book-tab:focus-visible { outline: 2px solid var(--border-focus); outline-offset: -2px; border-radius: var(--radius-sm); }
.book-group { margin: 0 0 0.35rem; }
.book-group select {
  width: auto;
  min-height: 0;
  padding: 0.2rem 1.5rem 0.2rem 0.5rem;
  font: 0.74rem var(--mono);
  font-variant-numeric: tabular-nums;
  border-radius: var(--radius-sm);
}
.book-panel[data-view="trades"] .book-group,
.book-panel[data-state="blocked"] .book-group,
.book-panel[data-state="none"] .book-group { visibility: hidden; }
.book-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums lining-nums;
  font-size: 0.75rem;
  line-height: 1.2;
}
.book-col-px { width: 38%; }
.book-table th {
  padding: 0.3rem 0.3rem 0.35rem;
  font: 500 0.7rem var(--body);
  color: var(--text-faint);
  text-align: right;
  white-space: nowrap;
}
.book-table th:first-child,
.book-table td:first-child { text-align: left; }
.book-table td {
  height: 1.3rem;
  padding: 0 0.3rem;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  color: var(--text);
}
.book-table td:last-child { color: var(--text-dim); }
.book-coin { color: var(--text-faint); }
.book-row { --d: 0%; cursor: pointer; }
.book-asks .book-row { background-image: linear-gradient(to left, var(--book-ask-fill) var(--d), transparent var(--d)); }
.book-bids .book-row { background-image: linear-gradient(to left, var(--book-bid-fill) var(--d), transparent var(--d)); }
.book-panel {
  --book-ask-fill: color-mix(in srgb, var(--down) 11%, transparent);
  --book-bid-fill: color-mix(in srgb, var(--up) 11%, transparent);
}
.book-asks .book-px, .book-trade.sell .book-px { color: var(--down); }
.book-bids .book-px, .book-trade.buy .book-px { color: var(--up); }
.book-row:hover { background-color: var(--bg-card-hover); }
.book-row.is-empty { cursor: default; background-color: transparent; }
.book-table:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 3px; border-radius: 2px; }
.book-table:focus-visible .book-row.is-cursor td { box-shadow: inset 0 1px 0 var(--border-2), inset 0 -1px 0 var(--border-2); }
.book-table:focus-visible .book-row.is-cursor { background-color: var(--bg-card-hover); }
.book-mid td { padding: 0; height: auto; }
.book-spread {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0.2rem 0;
  padding: 0.3rem 0;
  border-block: 1px solid var(--border);
  color: var(--text-dim);
}
.book-spread-label { font-family: var(--body); color: var(--text-faint); font-size: 0.75rem; }
.book-spread .num { color: var(--text); }
.book-spread .book-spread-pct { color: var(--text-dim); }
.book-trades td.book-time { color: var(--text-faint); }
.book-trades tbody tr { height: 1.3rem; }
.book-state {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-dim);
  max-width: none;
}
.book-panel[data-state="live"] .book-state { display: none; }
.book-view { flex: 1 1 auto; min-height: 0; overflow: hidden; transition: opacity .2s var(--ease); }
#book-view-trades { overflow-y: auto; max-height: 34rem; overscroll-behavior: contain; }
#book-view-trades thead th { position: sticky; top: 0; background: var(--bg-panel); }
.book-panel[data-state="stale"] .book-view,
.book-panel[data-state="connecting"] .book-view { opacity: 0.5; }
.book-panel[data-state="connecting"] .book-row.is-empty td::after {
  content: "";
  display: block;
  height: 0.45rem;
  border-radius: 2px;
  background: var(--bg-tertiary);
}
.book-panel[data-state="connecting"] .book-row.is-empty td:first-child::after { width: 70%; }
.book-panel[data-state="connecting"] .book-row.is-empty td:nth-child(2)::after { width: 45%; margin-left: auto; }
.book-panel[data-state="connecting"] .book-row.is-empty td:last-child::after { width: 60%; margin-left: auto; }
.book-panel[data-state="blocked"] .book-view,
.book-panel[data-state="none"] .book-view { display: none; }
.book-panel[data-state="blocked"] .book-state,
.book-panel[data-state="none"] .book-state {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 12rem;
  padding: 1.5rem 0.75rem;
  text-align: center;
  text-wrap: balance;
  line-height: 1.5;
}
.book-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 0.75rem;
  margin: auto 0 0;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.74rem;
  color: var(--text-dim);
  max-width: none;
}
.book-foot .num { color: var(--text); }
.book-source { color: var(--text-faint); }
@media (pointer: coarse) {
  .book-tab { min-height: 44px; }
  .book-table td { height: 1.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .book-tab, .book-view { transition: none; }
}
.terminal-page .terminal-bar { margin-bottom: 0.6rem; gap: 0.5rem 1rem; }
.terminal-page .terminal-title { gap: 0.4rem 0.75rem; }
.terminal-page .terminal-title h1 { font-size: 1.15rem; letter-spacing: -0.01em; }
.terminal-page .back-link { min-height: 28px; font-size: 0.8rem; }
.market-header {
  display: flex;
  align-items: stretch;
  min-height: 3.5rem;
  padding: 0;
  background: var(--bg-panel);
  border: 1px solid var(--border);
}
.market-picker { position: relative; display: flex; flex: none; border-right: 1px solid var(--border); }
.market-picker-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 10rem;
  padding: 0 1rem;
  background: none;
  border: 0;
  color: var(--text);
  font: 600 1.05rem/1 var(--mono);
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background-color .15s var(--ease);
}
.market-picker-btn:hover,
.market-picker-btn[aria-expanded="true"] { background: var(--bg-card-hover); }
.market-picker-btn:focus-visible { outline-offset: -2px; border-radius: 0; }
.market-symbol { flex: 1; text-align: left; }
.market-caret { width: 10px; height: 6px; color: var(--text-dim); flex: none; transition: transform .2s var(--ease); }
.market-picker-btn[aria-expanded="true"] .market-caret { transform: rotate(180deg); }
@keyframes market-pop-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}
.market-picker-pop {
  position: absolute;
  top: calc(100% + 1px);
  left: -1px;
  z-index: 14;
  display: grid;
  gap: 0.4rem;
  width: min(25rem, calc(100vw - 2rem));
  padding: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 28px 48px -24px rgba(0, 0, 0, 0.75);
  animation: market-pop-in .16s var(--ease);
}
.market-picker-pop[hidden] { display: none; }
.market-search { min-height: 40px; }
.market-list-head,
.market-list [role="option"] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 6.75rem 4.5rem;
  gap: 0.75rem;
  align-items: center;
  padding: 0.45rem 0.6rem;
}
.market-list-head { padding-block: 0.15rem; font-size: 0.75rem; color: var(--text-faint); }
.market-list-head span:not(:first-child) { text-align: right; }
.market-list {
  max-height: min(22rem, 55vh);
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.market-list [role="option"] {
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  cursor: pointer;
}
.market-list [role="option"].is-active { background: var(--bg-tertiary); }
.market-list [role="option"][aria-selected="true"] .mo-sym { color: var(--primary); }
.mo-sym { display: flex; align-items: center; gap: 0.35rem; min-width: 0; white-space: nowrap; }
.mo-sym .pin-mark { color: var(--gold); font-size: 0.75rem; }
.mo-lev {
  padding: 0 0.3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-dim);
}
.mo-px, .mo-chg { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.mo-chg { color: var(--text-dim); }
.mo-chg.up { color: var(--up); }
.mo-chg.down { color: var(--down); }
.market-empty { padding: 0.75rem 0.6rem; color: var(--text-dim); font-size: 0.85rem; }
.market-list-foot { margin: 0; padding: 0.4rem 0.6rem 0.1rem; border-top: 1px solid var(--border); font-size: 0.75rem; }
.market-stats {
  display: flex;
  align-items: center;
  gap: 0 1.75rem;
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0.45rem 1.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.market-stats::-webkit-scrollbar { display: none; }
.market-stat { display: grid; flex: none; gap: 0.2rem; white-space: nowrap; }
.market-stat dd, .market-stat dt { white-space: nowrap; }
.market-stat dt { font-size: 0.75rem; color: var(--text-faint); cursor: help; }
.market-stat dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.market-stat-mark dd { font-size: 1.05rem; font-weight: 600; line-height: 1.1; transition: color .2s var(--ease); }
.market-stat dd.up { color: var(--up); }
.market-stat dd.down { color: var(--down); }
.market-tick { display: inline-block; width: 1em; margin-left: 0.25em; font-size: 0.6em; vertical-align: 0.2em; }
.market-feed { align-self: center; flex: none; margin: 0 0.75rem 0 0.5rem; padding: 0.25rem 0.6rem; }
@media (max-width: 640px) {
  .terminal-page .terminal-bar { margin-bottom: 0.5rem; }
  .market-header { min-height: 3.25rem; }
  .market-picker-btn { min-width: 0; padding: 0 0.75rem; font-size: 0.95rem; gap: 0.45rem; }
  .market-stats { gap: 0 1.25rem; padding-inline: 0.75rem; }
  .market-stat-mark dd { font-size: 0.95rem; }
.terminal-page .terminal-bar [data-shortcuts] { display: none; }
.market-feed { margin-right: 0.5rem; padding: 0.4rem; border: 0; }
  .market-feed #terminal-feed-label {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
}
@media (pointer: coarse) {
  .market-list [role="option"] { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .market-picker-pop { animation: none; }
  .market-caret, .market-stat-mark dd, .market-picker-btn { transition: none; }
}
.terminal-page .terminal-section { padding-block: 0.75rem 2rem; }
.terminal-page .terminal-section .wrap { padding-inline: 1rem; }
.term-layout {
  --term-chart-h: clamp(460px, calc(100vh - 13rem), 860px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "chart" "book" "side" "bottom";
  gap: 1px;
margin-top: -1px;
  background: var(--border);
  border: 1px solid var(--border);
}
#terminal > .banner:not([hidden]) ~ .term-layout { margin-top: 0.75rem; }
.terminal-page #terminal > .banner { margin-top: 0.75rem; margin-bottom: 0; }
.term-area { display: flex; flex-direction: column; min-width: 0; background: var(--bg-panel); }
.term-chart { grid-area: chart; }
.term-book { grid-area: book; }
.term-side { grid-area: side; }
.term-bottom { grid-area: bottom; }
.term-layout:not(:has(> .term-book > :not([hidden]))) .term-book { display: none; }
.term-layout:not(:has(> .term-book > :not([hidden]))) { grid-template-areas: "chart" "side" "bottom"; }
:where(.term-layout) .panel {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  padding: 0.75rem 0.85rem;
}
.term-layout .hero-panel { box-shadow: none; }
:where(.term-layout) .panel-head { padding-bottom: 0.55rem; margin-bottom: 0.65rem; }
.term-chart > .col:has(> .watchlist-panel) { display: none; }
.term-chart > .col { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.term-chart .chart-panel { flex: 1; min-height: 0; height: auto !important; padding-bottom: 0.5rem; }
.term-chart .chart-panel .tv-chart-wrap { flex: 1; min-height: 0; height: auto; aspect-ratio: auto; margin-bottom: 0.35rem; }
.term-chart .chart-toolbar { margin-bottom: 0.5rem; }
.term-chart .chart-note { margin: 0; }
.term-side > .col { display: block; }
.term-side > * + * { border-top: 1px solid var(--border); }
.term-side .order-ticket-panel { min-height: 0 !important; }
:where(.term-side) .rule-meter { margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.term-bottom > .panel { flex: 1; }
:where(.term-bottom) .tabs { margin-bottom: 0.75rem; }
.term-chart { height: clamp(340px, 62vh, 520px); }
@media (min-width: 900px) {
  .term-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    grid-template-rows: var(--term-chart-h);
    grid-template-areas: "chart side" "book side" "bottom side";
  }
  .term-layout:not(:has(> .term-book > :not([hidden]))) { grid-template-areas: "chart side" "bottom side"; }
  .term-chart { height: auto; }
}
@media (min-width: 1200px) {
  .term-layout {
    grid-template-columns: minmax(0, 1fr) 280px 320px;
    grid-template-rows: var(--term-chart-h) auto;
    grid-template-areas: "chart book side" "bottom bottom side";
  }
  .term-layout:not(:has(> .term-book > :not([hidden]))) {
    grid-template-columns: minmax(0, 1fr) 320px;
    grid-template-areas: "chart side" "bottom side";
  }
.term-book { min-height: 0; overflow: hidden; }
}
@media (min-width: 1600px) {
  .term-layout { grid-template-columns: minmax(0, 1fr) 300px 340px; }
  .term-layout:not(:has(> .term-book > :not([hidden]))) { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (max-width: 640px) {
  .terminal-page .terminal-section { padding-top: 0.5rem; }
  .terminal-page .terminal-section .wrap { padding-inline: 0.5rem; }
  .term-chart .chart-panel { padding-inline: 0.5rem; }
}
#ticket-form .ticket-config .field { margin-bottom: 0.75rem; }
#ticket-form .ticket-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}
#ticket-form .ticket-label-row label { margin: 0; }
#ticket-form .ticket-label-row .small { font-size: 0.75rem; }
.ticket-type {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  margin: 0 0 0.85rem;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-panel-2);
}
.ticket-type label { position: relative; margin: 0; cursor: pointer; }
.ticket-type input {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: pointer;
}
.ticket-type span {
  display: flex; align-items: center; justify-content: center;
  min-height: 32px;
  border: 1px solid transparent;
  border-radius: calc(var(--radius-sm) - 1px);
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}
.ticket-type label:hover span { color: var(--text); }
.ticket-type input:checked + span { background: var(--bg-panel-3); border-color: var(--border-2); color: var(--text); }
.ticket-type input:focus-visible + span { outline: 2px solid var(--text-dim); outline-offset: 1px; }
.ticket-link {
  padding: 0.15rem 0;
  background: none;
  border: 0;
  color: var(--text-dim);
  font: inherit;
  font-size: 0.75rem;
  text-decoration: underline;
  text-decoration-color: var(--border-2);
  text-underline-offset: 2px;
  cursor: pointer;
}
.ticket-link:hover { color: var(--text); text-decoration-color: currentColor; }
.ticket-price-hint { margin: 0.3rem 0 0; min-height: 1lh; font-size: 0.75rem; }
.ticket-leverage-row { display: flex; align-items: center; gap: 0.75rem; }
.ticket-leverage-row input[type="range"] { flex: 1; min-width: 0; min-height: 32px; margin: 0; }
.ticket-leverage-row .leverage-stepper { flex: 0 0 9rem; margin-top: 0; }
.ticket-leverage-row .leverage-stepper .btn { min-width: 2.25rem; min-height: 36px; }
#ticket-leverage-hint { margin: 0.3rem 0 0; font-size: 0.75rem; }
#ticket-form .size-slider { margin: 0.5rem 0 0.25rem; }
.ticket-pct-marks {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.35rem;
  margin: 0 0 0.35rem;
}
.ticket-pct-marks button {
  min-height: 28px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 0.75rem;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.ticket-pct-marks button:hover { color: var(--text); border-color: var(--border-2); }
.ticket-pct-marks button:focus-visible { outline: 2px solid var(--text-dim); outline-offset: 2px; }
#ticket-form #ticket-margin-hint { min-height: 1lh; margin: 0.15rem 0 0.4rem; font-size: 0.78rem; }
#ticket-form #ticket-margin-hint:empty { display: none; }
#ticket-form .ticket-pct-marks { margin-bottom: 0.75rem; }
.ticket-reduce { display: grid; gap: 0.1rem; margin: 0 0 0.25rem; }
.ticket-reduce label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin: 0; color: var(--text); font-size: 0.85rem; cursor: pointer;
}
.ticket-reduce input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: var(--text-dim); }
.ticket-reduce .small { font-size: 0.75rem; padding-left: calc(16px + 0.5rem); }
#ticket-form .ticket-action { margin-top: 0.5rem; }
.ticket-summary {
  display: grid;
  gap: 0.3rem;
  margin: 0 0 0.5rem;
  padding: 0.65rem 0 0;
  border-top: 1px solid var(--border);
}
.ticket-summary > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}
.ticket-summary dt { color: var(--text-dim); font-size: 0.78rem; white-space: nowrap; }
.ticket-summary dt .muted { font-size: 0.75rem; }
.ticket-summary dt abbr { text-decoration: underline dotted var(--border-2); text-underline-offset: 3px; cursor: help; }
.ticket-summary dd {
  margin: 0;
  color: var(--text);
  font-size: 0.8rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: pre-line;
  line-height: 1.45;
}
#ticket-form .ticket-summary .ticket-readout {
  margin: 0 0 0.15rem;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}
#ticket-form .ticket-summary .ticket-readout .num { font-size: 1.2rem; }
#ticket-form .ticket-fill-est { min-height: 0; margin: 0; font-size: 0.8rem; }
.ticket-fee-note:empty, .ticket-side-hint:empty { display: none; }
.ticket-fee-note { margin: 0 0 0.35rem; font-size: 0.75rem; }
.ticket-no-liq { margin: 0 0 0.6rem; font-size: 0.75rem; }
.ticket-side-hint { margin: 0 0 0.5rem; color: var(--text); font-size: 0.78rem; }
#ticket-form .side-buttons .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  white-space: nowrap;
}
#ticket-form .side-arrow { font-family: var(--body); font-weight: 700; line-height: 1; }
#ticket-form .protective-fields summary { font-size: 0.82rem; }
@media (pointer: coarse) {
  .ticket-type span { min-height: 44px; }
  .ticket-pct-marks button { min-height: 40px; }
}
@media (max-width: 380px) {
  #ticket-form .side-buttons .btn { font-size: 0.92rem; padding-inline: 0.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ticket-type span, .ticket-pct-marks button { transition: none; }
}
.mk-head { padding-bottom: 0; }
.mk-head .mk-deck { color: var(--text); font-size: var(--fs-md); line-height: 1.55; }
.mk-head .mk-deck + p { margin-top: 0.75rem; }
.mk-head + .mk-universe { border-top: 0; padding-top: clamp(1.25rem, 3vw, 2rem); }
.mk-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.mk-tabs,
.js .mk-tabs[hidden] {
  display: flex;
  gap: 0.15rem;
  min-width: 0;
  max-width: 100%;
  margin-bottom: -1px;
  overflow-x: auto;
  scrollbar-width: none;
}
.mk-tabs::-webkit-scrollbar { display: none; }
.mk-tabs[hidden] { display: none; }
.mk-tabs [role="tab"] {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: none;
  min-height: 44px;
  padding: 0.5rem 0.8rem;
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-dim);
  white-space: nowrap;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  cursor: pointer;
  transition: color .18s var(--ease), border-color .18s var(--ease), background-color .18s var(--ease);
}
.mk-tabs [role="tab"]:hover { color: var(--text); background: var(--bg-secondary); }
.mk-tabs [role="tab"][aria-selected="true"] { color: var(--text); border-bottom-color: var(--primary); }
.mk-tabs [role="tab"]:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.mk-count {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
  color: var(--text-faint);
}
.mk-tabs [role="tab"][aria-selected="true"] .mk-count { color: var(--text-dim); }
.mk-search,
.js .mk-search[hidden] {
  position: relative;
  display: block;
  flex: 0 1 17rem;
  margin-bottom: 0.6rem;
}
.mk-search[hidden] { display: none; }
.mk-search-icon {
  position: absolute;
  top: 50%;
  left: 0.85rem;
  width: 1rem;
  height: 1rem;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--text-faint);
  stroke-width: 1.75;
  stroke-linecap: round;
  pointer-events: none;
}
.mk-search input {
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 0.9rem 0.5rem 2.3rem;
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--text);
  background: var(--bg-panel);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-pill);
  transition: border-color .18s var(--ease);
}
.mk-search input::placeholder { color: var(--text-faint); opacity: 1; }
.mk-search input:hover { border-color: var(--text-faint); }
.mk-search input:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-color: var(--border-2); }
.mk-panel .table-scroll { margin-top: 0; }
.mk-table { font-size: var(--fs-sm); }
table.mk-table thead th { padding-top: 1rem; white-space: nowrap; }
table.mk-table td.num { white-space: nowrap; }
table.mk-table tbody th {
  font-family: var(--body);
  font-size: inherit;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
}
table.mk-table .mk-group-row th {
  padding: 1.75rem 0 0.6rem;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--text-dim);
  border-bottom-color: var(--border-2);
}
table.mk-table .mk-group-row th .mk-count { margin-left: 0.4rem; letter-spacing: 0; }
table.mk-table tbody tr.mk-group-row:hover { background: none; }
.mk-group.is-solo .mk-group-row { display: none; }
.mk-group[hidden], .mk-row[hidden], .mk-empty[hidden] { display: none; }
table.mk-table tbody.mk-group tr:last-child td,
table.mk-table tbody.mk-group tr:last-child th { border-bottom: 1px solid var(--border); }
table.mk-table .mk-cell { display: flex; align-items: center; gap: 0.8rem; min-width: 0; }
.mk-id { display: grid; min-width: 0; line-height: 1.3; }
.mk-ticker { font-weight: 600; font-variant-numeric: lining-nums; }
.mk-name { font-size: var(--fs-xs); color: var(--text-dim); }
.mk-price { color: var(--text); }
.mk-chg { color: var(--text-dim); }
.mk-chg.is-up { color: var(--up); }
.mk-chg.is-down { color: var(--down); }
.mk-lev { color: var(--text); }
table.mk-table tr > :nth-child(4):not([colspan]) { padding-right: clamp(1.25rem, 3vw, 2.5rem); }
.mk-col-source { color: var(--text-dim); white-space: nowrap; }
.mk-narrow { display: none; }
.mk-price.tick-up { animation: mk-tick-up .9s var(--ease); }
.mk-price.tick-down { animation: mk-tick-down .9s var(--ease); }
@keyframes mk-tick-up { from { color: var(--up); } to { color: var(--text); } }
@keyframes mk-tick-down { from { color: var(--down); } to { color: var(--text); } }
table.mk-table .mk-empty td { padding: 2.5rem 0; text-align: center; color: var(--text-dim); }
.mk-empty p { margin: 0 0 1rem; }
.mk-empty q { color: var(--text); }
.mk-status {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 1rem 0 0;
  color: var(--text-dim);
}
.mk-dot {
  position: relative;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-faint);
}
.mk-status[data-state="live"] .mk-dot { background: var(--up); }
.mk-status[data-state="live"] .mk-dot::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--up);
}
.mk-status[data-state="stale"] .mk-dot { background: var(--accent); }
.mk-status[data-state="error"] .mk-dot { background: var(--down); }
.mk-notes h2 { margin: 0; font-size: var(--fs-xl); }
.mk-facts { margin: clamp(1.25rem, 3vw, 2rem) 0 0; }
.mk-facts > div {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 0.4rem clamp(1rem, 4vw, 3.5rem);
  padding-block: 1.25rem;
  border-top: 1px solid var(--border);
}
.mk-facts > div:last-child { border-bottom: 1px solid var(--border); }
.mk-facts dt { font-weight: 600; color: var(--text); }
.mk-facts dd { max-width: 31em; margin: 0; line-height: 1.6; color: var(--text-dim); text-wrap: pretty; }
.mk-closer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "h cta" "p cta";
  align-items: center;
  gap: 0.5rem clamp(1.5rem, 4vw, 3rem);
}
.mk-closer h2 { grid-area: h; margin: 0; font-size: var(--fs-2xl); text-wrap: balance; }
.mk-closer p { grid-area: p; margin: 0; }
.mk-closer .cta { grid-area: cta; }
@media (max-width: 800px) {
  .mk-facts > div { grid-template-columns: minmax(0, 1fr); }
  .mk-closer-inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "h" "p" "cta"; }
  .mk-closer .cta { margin-top: 1rem; }
}
@media (max-width: 640px) {
  .mk-toolbar { flex-direction: column-reverse; align-items: stretch; gap: 0; }
  .mk-search, .js .mk-search[hidden] { flex-basis: auto; margin-bottom: 0.5rem; }
  .mk-col-source { display: none; }
  .mk-wide { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .mk-narrow { display: inline; }
  table.mk-table th, table.mk-table td { padding-right: 0.75rem; }
  table.mk-table tr > :nth-last-child(2):not([colspan]) { padding-right: 0; }
  table.mk-table .mk-cell { gap: 0.6rem; }
.mk-tabs, .js .mk-tabs[hidden] { flex-wrap: wrap; overflow: visible; }
  .mk-tabs [role="tab"] { padding-inline: 0.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .mk-tabs [role="tab"], .mk-search input { transition: none; }
  .mk-price.tick-up, .mk-price.tick-down { animation: none; }
  .mk-status[data-state="live"] .mk-dot::after { animation: none; opacity: 0; }
}
#checkout-modal .pay-methods { border: 0; margin: 1.1rem 0 0; padding: 0; min-width: 0; display: grid; gap: 4px; }
#checkout-modal .pay-methods[hidden] { display: none; }
#checkout-modal .pay-methods legend { padding: 0; margin-bottom: 0.45rem; font-size: 0.8rem; color: var(--text-dim); }
.pay-method {
  position: relative;
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr) 1rem;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0.65rem 0.85rem;
  background: var(--bg-panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.pay-method input { position: absolute; opacity: 0; pointer-events: none; }
.pay-method-icon {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: var(--text-dim);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pay-method-text { display: grid; gap: 0.1rem; min-width: 0; }
.pay-method-text strong { font-size: 0.95rem; font-weight: 600; color: var(--text); }
.pay-method-sub { font-size: 0.78rem; line-height: 1.4; color: var(--text-dim); text-wrap: pretty; }
.pay-method::after {
  content: "";
  grid-column: 3;
  grid-row: 1;
  width: 1rem;
  height: 1rem;
  border: 1.5px solid var(--border-2);
  border-radius: 50%;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.pay-method:hover { border-color: var(--border-2); }
.pay-method:has(input:checked) { background: var(--bg-panel-3); border-color: var(--primary); }
.pay-method:has(input:checked) .pay-method-icon { stroke: var(--text); }
.pay-method:has(input:checked)::after { border-color: var(--primary); box-shadow: inset 0 0 0 3px var(--bg-panel-3), inset 0 0 0 8px var(--primary); }
.pay-method:has(input:focus-visible) { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.pay-method.is-disabled, .pay-method:has(input:disabled) { cursor: not-allowed; border-style: dashed; background: transparent; }
.pay-method.is-disabled:hover, .pay-method:has(input:disabled):hover { border-color: var(--border); }
.pay-method:has(input:disabled) strong { color: var(--text-dim); }
.pay-method:has(input:disabled) .pay-method-icon { stroke: var(--text-faint); }
.pay-method:has(input:disabled)::after { border-style: dashed; border-color: var(--border); }
#checkout-modal .pay-billing { border: 0; margin: 0.85rem 0 0; padding: 0; min-width: 0; }
#checkout-modal .pay-billing[hidden] { display: none; }
#checkout-modal .pay-billing legend { padding: 0; margin-bottom: 0.2rem; font-size: 0.8rem; color: var(--text-dim); }
.pay-billing-note { margin: 0 0 0.7rem; color: var(--text-dim); font-size: 0.78rem; line-height: 1.45; }
.billing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 0.6rem; }
.billing-grid .field { margin: 0; min-width: 0; }
.billing-grid .field.is-wide { grid-column: 1 / -1; }
.billing-grid label { font-size: 0.78rem; margin-bottom: 0.25rem; }
.billing-grid input, .billing-grid select {
  width: 100%;
  padding: 0.5rem 0.65rem;
  font-size: 0.9rem;
  background: var(--bg-panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
}
.billing-grid input:user-invalid, .billing-grid select:user-invalid { border-color: var(--down); }
@media (max-width: 360px) {
  .billing-grid { grid-template-columns: minmax(0, 1fr); }
}
#checkout-modal .pay-balance { margin-top: 0.75rem; display: grid; gap: 0.5rem; }
#checkout-modal .pay-balance[hidden] { display: none; }
#checkout-modal .pay-balance .field { margin: 0; }
#checkout-modal .pay-balance label { font-size: 0.78rem; margin-bottom: 0.25rem; }
#checkout-modal .pay-balance p { margin: 0; }
.pay-balance-one { color: var(--text); }
.checkout-paid-from { margin: 0.45rem 0 0; color: var(--text-dim); text-align: right; }
.checkout-paid-from[hidden] { display: none; }
#checkout-modal .checkout-done { padding: 1.5rem 0 2rem; text-align: center; display: grid; justify-items: center; gap: 0.35rem; }
#checkout-modal .checkout-done[hidden] { display: none; }
#checkout-modal .checkout-done:focus { outline: none; }
.checkout-done-icon, .checkout-return-icon {
  width: 2.5rem;
  height: 2.5rem;
  fill: none;
  stroke: var(--text-dim);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.checkout-done-icon, .checkout-return-icon.is-paid { stroke: var(--up); }
.checkout-return-icon.is-failed { stroke: var(--down); }
.checkout-done-title { margin: 0.25rem 0 0; font-size: 1.25rem; font-weight: 600; color: var(--text); }
.checkout-done p { margin: 0; }
.checkout-return-section { padding-block: clamp(2rem, 7vh, 4.5rem); }
.checkout-return { max-width: 34rem; margin-inline: auto; }
.checkout-return-what {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  margin: 0 0 1.5rem;
  padding: 0 0 0.85rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-dim);
}
.checkout-return-what span:first-child { color: var(--text); font-weight: 600; margin-right: auto; }
.checkout-return .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.checkout-steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.75rem;
  padding: 0;
  font-size: 0.82rem;
  color: var(--text-faint);
}
.checkout-steps[hidden] { display: none; }
.checkout-steps li {
  counter-increment: step;
  padding-top: 0.6rem;
  border-top: 2px solid var(--border);
}
.checkout-steps li::before { content: counter(step) "  "; font-family: var(--mono); }
.checkout-steps li[aria-current="step"] { color: var(--text); border-top-color: var(--text); }
.checkout-steps li.is-done { color: var(--text-dim); border-top-color: var(--up); }
.checkout-steps li.is-done::before { content: "¹3  "; color: var(--up); }
.checkout-return-state h1 { font-size: 1.75rem; line-height: 1.15; margin: 0 0 0.6rem; text-wrap: balance; }
.checkout-return-state p { margin: 0 0 0.75rem; color: var(--text-dim); max-width: 60ch; text-wrap: pretty; }
.checkout-return-state[hidden], .checkout-return-state [hidden] { display: none; }
.checkout-return-state .checkout-return-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0 0; }
.checkout-return-state .error:empty { display: none; }
@media (max-width: 480px) {
  .checkout-return-state h1 { font-size: 1.5rem; }
  .checkout-return-state .checkout-return-links .btn { flex: 1 1 auto; justify-content: center; }
}
.dev-card-badge {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  color: var(--accent);
  border: 1px dashed var(--accent);
  border-radius: var(--radius-pill);
}
.dev-card-checkout h1 { font-size: 1.5rem; margin: 0 0 0.4rem; }
.dev-card-facts { margin: 1.25rem 0; display: grid; gap: 0.4rem; font-size: 0.88rem; }
.dev-card-facts div { display: flex; justify-content: space-between; gap: 1rem; }
.dev-card-facts dt { color: var(--text-dim); }
.dev-card-facts dd { margin: 0; color: var(--text); text-align: right; overflow-wrap: anywhere; }
.dev-card-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.tp-page {
  --tp-in: var(--primary-fill);
  --tp-out: var(--primary);
  --tp-people: var(--text-dim);
}
.tp-hero { max-width: 40rem; margin: 0 auto; padding-bottom: clamp(2rem, 5vw, 3rem); text-align: center; }
.tp-hero h1 { margin: 0; font-size: clamp(2.3rem, 1.6rem + 2.6vw, 3.6rem); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
.tp-hero h1 span { display: block; color: var(--text-dim); }
.tp-lede { max-width: 32rem; margin: 1.1rem auto 0; color: var(--text-dim); line-height: 1.6; text-wrap: pretty; }
.tp-hero dl.arena-stats { justify-content: center; margin-top: 1.5rem; }
.tp-hero dl.arena-stats > div { padding-inline: 0.75rem; justify-items: center; }
.tp-hero dl.arena-stats > .is-in b { color: var(--tp-in); }
.tp-hero dl.arena-stats > .is-out b { color: var(--tp-out); }
.tp-hero .tp-stamp { justify-content: center; margin-top: 1.25rem; color: var(--text-faint); }
.tp-stamp { display: flex; align-items: center; gap: 0.5rem; margin: 0; }
.tp-stamp time { font-family: var(--mono); color: inherit; }
.tp-dot { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--up-fill); flex: none; }
.tp-layout { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2rem); align-items: start; }
.tp-nav { position: sticky; top: 5.5rem; display: flex; flex-direction: column; gap: 0.1rem; }
.tp-nav a {
  display: flex; align-items: center; min-height: 34px; padding: 0.35rem 0.6rem; border-radius: var(--radius);
  color: var(--text-dim); font-size: 0.85rem; text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.tp-nav a:hover { background: var(--bg-panel); color: var(--text); }
.tp-nav a[aria-current="true"] { background: var(--bg-panel-3); color: var(--text); }
.tp-nav-rule { height: 1px; margin: 0.5rem 0.6rem; background: var(--border); }
.tp-main { display: grid; gap: 1rem; min-width: 0; }
.tp-main > section { scroll-margin-top: 5.5rem; }
.tp-chart { scroll-margin-top: 5.5rem; }
.tp-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; margin: 0; }
.tp-tile, .tp-card { min-width: 0; background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius); }
.tp-tile { display: flex; flex-direction: column; padding: 0.8rem 0.9rem 0.85rem; }
.tp-tile dt {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.45rem;
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint);
}
.tp-tile dd { margin: 0; }
.tp-tile .tp-value {
  margin-top: 0.4rem; font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem); font-weight: 600; line-height: 1.15;
  color: var(--text); letter-spacing: -0.01em; overflow-wrap: anywhere; font-variant-numeric: tabular-nums;
}
.tp-tile.is-in .tp-value { color: var(--tp-in); }
.tp-tile.is-out .tp-value { color: var(--tp-out); }
.tp-tile .tp-note { margin-top: 0.3rem; font-size: 0.72rem; line-height: 1.45; color: var(--text-faint); text-wrap: pretty; }
.tp-flag { font-size: 0.68rem; letter-spacing: 0; text-transform: none; font-style: italic; color: var(--text-faint); }
.tp-tile-sim .tp-value { color: var(--text-dim); }
.tp-meter { position: relative; height: 3px; margin-top: auto !important; padding-top: 0; background: var(--border); border-radius: 2px; overflow: hidden; }
.tp-note + .tp-meter { margin-top: 0.6rem !important; }
.tp-meter i { position: absolute; inset: 0 auto 0 0; width: min(var(--v), 100%); min-width: 2px; background: var(--tp-key, var(--tp-in)); }
#tile-reserve .tp-meter i { background: var(--tp-out); }
.tp-card, .tp-page.mh-page .wrap .tp-main section.tp-card { padding: clamp(1rem, 2.5vw, 1.25rem); }
.tp-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.tp-chart { margin: 0; }
.tp-chart.is-traders, .tp-monthly { grid-column: 1 / -1; }
.tp-chart figcaption { display: grid; gap: 0.3rem; }
.tp-chart-cap { display: flex; align-items: center; gap: 0.55rem; margin: 0; font-family: var(--body); font-weight: 600; color: var(--text); font-size: 1rem; letter-spacing: 0; }
.tp-chart-sub { margin: 0; font-size: 0.8rem; line-height: 1.5; color: var(--text-faint); }
.tp-key { width: 0.6rem; height: 0.6rem; border-radius: 2px; flex: none; background: var(--tp-key); }
.tp-chart.is-revenue { --tp-key: var(--tp-in); }
.tp-chart.is-payouts { --tp-key: var(--tp-out); }
.tp-chart.is-traders { --tp-key: var(--tp-people); }
.tp-chart-empty { margin: 1rem 0 0; padding: 1rem; color: var(--text-dim); font-size: 0.85rem; line-height: 1.55; border: 1px dashed var(--border-2); border-radius: var(--radius); }
.tp-plot { position: relative; margin-top: 1rem; }
.tp-svg { display: block; width: 100%; height: auto; overflow: visible; }
.tp-svg text { font-family: var(--mono); font-size: 10.5px; fill: var(--text-faint); font-variant-numeric: tabular-nums; }
.tp-grid line { stroke: var(--border); stroke-width: 1; vector-effect: non-scaling-stroke; shape-rendering: crispEdges; }
.tp-grid line.tp-base { stroke: var(--border-2); }
.tp-mark { fill: var(--tp-key); transition: fill-opacity .15s ease; }
.tp-bar.is-partial .tp-mark { fill-opacity: 0.7; }
.tp-hit { fill: transparent; transition: fill .15s ease; }
.tp-bar:hover .tp-hit, .tp-bar.is-on .tp-hit { fill: rgba(237, 232, 218, 0.05); }
.tp-bar:hover .tp-mark, .tp-bar.is-on .tp-mark { fill-opacity: 0.8; }
.tp-svg .tp-peak { fill: var(--text); }
.tp-tip {
  position: absolute; z-index: 30; pointer-events: none; margin: 0;
  transform: translate(-50%, calc(-100% - 8px));
  padding: 0.35rem 0.55rem; border-radius: var(--radius);
  background: var(--lit-bg); color: var(--lit-ink); font-family: var(--mono); font-size: 0.78rem;
  white-space: nowrap; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}
.tp-monthly { padding-block: 0.85rem; }
.tp-monthly summary {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; cursor: pointer; list-style: none;
  font-size: 0.9rem; color: var(--text-dim);
}
.tp-monthly summary::-webkit-details-marker { display: none; }
.tp-monthly summary::after { content: ""; width: 0.4em; height: 0.4em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-0.15em) rotate(45deg); transition: transform .2s var(--ease); }
.tp-monthly[open] summary::after { transform: translateY(0.1em) rotate(-135deg); }
.tp-monthly summary:hover { color: var(--text); }
.tp-monthly .tp-table, .tp-payouts .tp-table { margin-top: 0.9rem; }
.tp-table tbody th {
  font-family: var(--mono); font-size: 0.88rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--text);
  border-bottom: 1px solid var(--border);
}
.tp-table tbody tr:last-child th { border-bottom: none; }
.tp-payouts .tp-chart-sub { margin-top: 0.3rem; }
.tp-empty { margin: 1rem 0 0; padding: 1rem 1.1rem; color: var(--text-dim); font-size: 0.85rem; line-height: 1.6; border: 1px dashed var(--border-2); border-radius: var(--radius); }
.tp-foot { margin-top: 0.9rem; }
.tp-foot code { font-family: var(--mono); }
.tp-main > .tp-foot { margin-top: 0.5rem; }
@media (max-width: 960px) {
  .tp-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .tp-layout { grid-template-columns: minmax(0, 1fr); }
  .tp-nav {
    top: 3.5rem; z-index: 5; flex-direction: row; overflow-x: auto; scrollbar-width: none;
    margin-inline: -1rem; padding: 0.4rem 1rem; background: var(--bg); border-bottom: 1px solid var(--border);
  }
  .tp-nav-rule { width: 1px; height: auto; margin: 0.4rem 0.3rem; }
  .tp-tiles, .tp-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-chart { grid-column: 1 / -1; }
.tp-chart.is-traders .tp-plot { overflow-x: auto; }
  .tp-chart.is-traders .tp-svg { min-width: 36rem; }
}
@media (prefers-reduced-motion: reduce) {
  .tp-mark, .tp-hit, .tp-nav a { transition: none; }
}
.market-cats { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.market-cats[hidden] { display: none; }
.market-picker-pop:has(.market-cats:not([hidden])) { width: min(28rem, calc(100vw - 2rem)); }
.market-cat {
  min-height: 28px;
  padding: 0 0.6rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-dim);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.market-cat:hover { color: var(--text); border-color: var(--border-2); }
.market-cat[aria-pressed="true"] { background: var(--bg-tertiary); border-color: var(--border-2); color: var(--text); }
.market-group { margin: 0; padding: 0; }
.market-group + .market-group { margin-top: 0.35rem; }
.market-group-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0.6rem 0.25rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 600;
}
.market-group-lev { color: var(--text-faint); font-family: var(--mono); font-weight: 400; font-size: 0.75rem; }
.market-group-list { margin: 0; padding: 0.15rem 0 0; list-style: none; }
.mo-tk { flex: none; }
.mo-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-dim);
  font-size: 0.76rem;
}
.market-list [role="option"][aria-selected="true"] .mo-name { color: var(--text-dim); font-weight: 400; }
.mo-sym .mo-lev { flex: none; margin-left: auto; }
.market-header { flex-wrap: wrap; }
.market-note {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 1 0 100%;
  max-width: none;
  margin: 0;
  padding: 0.35rem 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.75rem;
}
.market-note[hidden] { display: none; }
.market-note .icon { width: 14px; height: 14px; flex: none; color: var(--text-faint); }
@media (max-width: 640px) {
  .mo-name { display: none; }
  .market-note { padding-inline: 0.75rem; }
}
@media (pointer: coarse) {
  .market-cat { min-height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .market-cat { transition: none; }
}
.landing-page .lp-marquee-cat {
  display: inline-flex;
  align-items: center;
  padding: 0.95rem 0.25rem 0.95rem 2.25rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--primary-hover);
  white-space: nowrap;
}
.landing-page .lp-marquee-cat + .lp-coin { padding-left: 1rem; }
.landing-page .lp-markets-line {
  margin-top: 0.9rem;
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  text-wrap: pretty;
}
.landing-page .lp-markets-line a { color: var(--text); white-space: nowrap; }
.rulebook .rb-markets, .rulebook .rb-leverage { margin-bottom: 0.75rem; }
.rulebook .rb-markets caption, .rulebook .rb-leverage caption { text-align: left; font-weight: 600; }
.rulebook .rb-markets th .rb-sym { font-weight: 600; }
.terminal-page .site-footer,
.terminal-page .support-fab { display: none; }
.terminal-page .terminal-section { padding: 0; }
.terminal-page .terminal-section .wrap { padding-inline: 0; max-width: none; }
.terminal-page .term-layout { border-inline: 0; }
.acct-strip {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 46px;
  padding: 0.35rem 0.85rem;
  margin: 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-sidebar);
  overflow-x: auto;
  scrollbar-width: none;
}
.acct-strip::-webkit-scrollbar { display: none; }
@media (max-width: 900px) {
  .acct-strip, .market-stats {
    mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
    padding-right: 28px;
  }
}
.strip-account { position: relative; flex: none; }
.strip-account-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  list-style: none; cursor: pointer;
  padding: 0.3rem 0.6rem; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-panel); font-size: 0.85rem; white-space: nowrap;
}
.strip-account-btn::-webkit-details-marker { display: none; }
.strip-account-btn:hover { border-color: var(--border-2); }
.strip-account-size { font-weight: 600; color: var(--text); }
.strip-account-id { font-size: 0.75rem; }
.strip-badge {
  font-size: 0.75rem;
  padding: 0.1rem 0.4rem; border-radius: var(--radius-pill);
  border: 1px solid var(--border-2); color: var(--accent);
}
.strip-caret { width: 10px; height: 6px; opacity: 0.7; flex: none; }
.strip-account[open] .strip-caret { transform: rotate(180deg); }
.strip-account-menu {
  position: fixed; z-index: 30; margin-top: 0.35rem; min-width: 260px;
  padding: 0.4rem; border: 1px solid var(--border-2); border-radius: var(--radius-md);
  background: var(--bg-panel); box-shadow: var(--shadow-md);
}
.strip-menu-label { font-size: 0.75rem; color: var(--text-faint); padding: 0.3rem 0.5rem; margin: 0; }
.strip-account-menu ul { list-style: none; margin: 0; padding: 0; }
.strip-account-menu a {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.45rem 0.5rem; border-radius: var(--radius-sm); font-size: 0.85rem; color: var(--text);
  text-decoration: none; background-image: none;
}
.strip-account-menu a:hover, .strip-account-menu a[aria-current] { background: var(--bg-panel-3); }
.strip-menu-new { border-top: 1px solid var(--border); margin-top: 0.3rem; color: var(--text-dim) !important; }
.strip-figs { display: flex; gap: 1.4rem; margin: 0; flex: none; }
.strip-figs > div { display: flex; flex-direction: column; gap: 0.05rem; white-space: nowrap; }
.strip-figs dt { font-size: 0.75rem; color: var(--text-faint); }
.strip-figs dd { margin: 0; font-family: var(--mono); font-size: 0.8rem; color: var(--text); }
.strip-figs .muted { color: var(--text-faint); }
.strip-actions { display: flex; gap: 0.35rem; margin-left: auto; flex: none; }
.strip-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.3rem 0.6rem; font-size: 0.78rem; color: var(--text-dim);
  background: transparent; border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer; white-space: nowrap;
}
.strip-btn:hover { color: var(--text); border-color: var(--border-2); background: var(--bg-panel); }
.strip-btn .icon { width: 14px; height: 14px; }
@media (max-width: 640px) {
  .acct-strip { overflow: visible; mask-image: none; padding-right: 0.85rem; }
  .strip-figs { flex: 1 1 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem 0.75rem; }
  .strip-figs > div { min-width: 0; }
  .strip-figs .strip-rule { order: -1; }
  .strip-figs dd { overflow-wrap: anywhere; white-space: normal; }
}
.terminal-page .market-header { border-inline: 0; }
@media (min-width: 1200px) {
  .terminal-page .term-layout {
--term-chart-h: clamp(300px, calc(100vh - 445px), 900px);
grid-template-rows: calc(var(--term-chart-h) + var(--term-split, 0px)) calc(210px - var(--term-split, 0px));
    grid-template-columns: minmax(0, 1fr) var(--term-book-w, 280px) var(--term-side-w, 320px);
    position: relative;
  }
  .terminal-page .term-layout:not(:has(> .term-book > :not([hidden]))) { grid-template-columns: minmax(0, 1fr) var(--term-side-w, 320px); }
  .terminal-page .term-bottom { overflow: auto; }
  .terminal-page .term-side { overflow: auto; max-height: calc(var(--term-chart-h) + 211px); }
  body.hide-book.terminal-page .term-layout {
    grid-template-columns: minmax(0, 1fr) var(--term-side-w, 340px);
    grid-template-areas: "chart side" "bottom side";
  }
}
@media (min-width: 900px) and (max-width: 1199px) {
  body.hide-book .term-layout { grid-template-areas: "chart side" "bottom side"; }
}
body.hide-book .term-book { display: none; }
.term-side .order-ticket-panel > .panel-head { display: none; }
.tp-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; margin-bottom: 0.6rem; }
.tp-top:not(:has(#tp-lev-btn)) { grid-template-columns: repeat(2, 1fr); }
.tp-menu { position: relative; display: grid; }
.tp-select {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 34px; padding: 0.3rem 0.6rem;
  font-size: 0.82rem; font-weight: 500; color: var(--text);
  background: var(--bg-panel-2); border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer;
}
.tp-select:hover { border-color: var(--border-2); }
.tp-static { cursor: help; color: var(--text-dim); }
.tp-menu-list {
  position: absolute; top: calc(100% + 4px); left: 0; z-index: 15; min-width: 100%;
  display: grid; padding: 0.3rem; border: 1px solid var(--border-2); border-radius: var(--radius-md);
  background: var(--bg-panel); box-shadow: var(--shadow-md);
}
.tp-menu-list[hidden] { display: none; }
.tp-menu-list button {
  text-align: left; padding: 0.5rem 0.65rem; font-size: 0.85rem; color: var(--text);
  background: none; border: 0; border-radius: var(--radius-sm); cursor: pointer;
}
.tp-menu-list button:hover, .tp-menu-list button:focus-visible { background: var(--bg-panel-3); outline: none; }
.tp-side {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem; padding: 0.2rem;
  margin-bottom: 0.85rem; border-radius: var(--radius); background: var(--bg-panel-2);
}
.tp-side button {
  min-height: 34px; font-size: 0.85rem; font-weight: 600; color: var(--text-dim);
  background: transparent; border: 1px solid transparent; border-radius: calc(var(--radius) - 2px); cursor: pointer;
}
.tp-side button:hover { color: var(--text); }
.tp-side button[data-side="long"][aria-checked="true"] { background: var(--up-fill); border-color: var(--up); color: var(--on-fill); }
.tp-side button[data-side="short"][aria-checked="true"] { background: var(--down-fill); border-color: var(--down); color: var(--on-fill); }
.tp-legacy { display: none !important; }
#ticket-form #ticket-margin { font-size: 1.35rem; font-weight: 600; text-align: start; }
.tp-readouts { margin: 0.6rem 0 0.4rem; display: grid; gap: 0.25rem; }
.tp-readouts > div, #confirm-rows > div { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.8rem; }
.tp-readouts dt, #confirm-rows dt { color: var(--text-dim); }
.tp-readouts dd, #confirm-rows dd { margin: 0; color: var(--text); }
.term-side .ticket-action { display: flex; flex-direction: column; gap: 0.5rem; }
.term-side .ticket-action .protective-fields { order: 1; }
.term-side .ticket-action .ticket-side-hint { order: 2; }
.term-side .ticket-action .tp-place { order: 3; }
.term-side .ticket-action .ticket-summary { order: 4; }
.term-side .ticket-action .ticket-fee-note { order: 5; }
.term-side .ticket-action .ticket-no-liq { order: 6; }
.term-side .side-buttons { display: none !important; }
.tp-place {
  width: 100%; min-height: 42px; font-weight: 600; font-size: 0.92rem;
  color: var(--on-fill); border: 1px solid var(--up); background: var(--up-fill);
}
.tp-place:hover:not(:disabled) { background: var(--up-fill-hover); }
.tp-place[data-side="short"] { border-color: var(--down); background: var(--down-fill); }
.tp-place[data-side="short"]:hover:not(:disabled) { background: var(--down-fill-hover); }
.tp-place:disabled { opacity: 0.45; cursor: not-allowed; }
@media (max-width: 899px) {
  .terminal-page .term-side .tp-place { position: sticky; bottom: 0.5rem; z-index: 5; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
}
.term-side .acct-gauges,
.term-side .rm-progress,
.term-side .acct-id { display: none; }
.book-tabs .book-tab { font-size: 0.78rem; padding-inline: 0.45rem; }
.depth-head { display: flex; justify-content: space-between; color: var(--text-dim); margin: 0 0 0.4rem; }
.depth-chart { width: 100%; height: clamp(160px, calc(var(--term-chart-h, 460px) - 200px), 600px); display: block; }
#book-view-info { padding-right: 0.35rem; }
.depth-bid-area { fill: var(--success-bg); }
.depth-ask-area { fill: var(--danger-bg); }
.depth-bid-line { fill: none; stroke: var(--up); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.depth-ask-line { fill: none; stroke: var(--down); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.depth-mid { stroke: var(--border-2); stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.depth-axis { display: flex; justify-content: space-between; color: var(--text-faint); margin: 0.3rem 0 0; }
.acct-strip .up, .depth-head .up, .stat-kpi .up, .tp-readouts .up { color: var(--up); }
.acct-strip .down, .depth-head .down, .stat-kpi .down, .tp-readouts .down { color: var(--down); }
.info-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.85rem; }
.info-head strong { display: block; }
.info-coin {
  width: 32px; height: 32px; display: grid; place-items: center; flex: none;
  border-radius: 50%; background: var(--primary-deep); color: var(--text); font-weight: 700;
}
.info-list { display: grid; gap: 0.5rem; margin: 0; }
.info-list > div { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.82rem; border-bottom: 1px solid var(--border); padding-bottom: 0.45rem; }
.info-list dt { color: var(--text-dim); }
.info-list dd { margin: 0; text-align: right; }
.term-status {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1.25rem;
  padding: 0.35rem 0.85rem; border-top: 1px solid var(--border);
  background: var(--bg-sidebar); color: var(--text-dim); font-size: 0.74rem;
}
.term-status-item { display: inline-flex; align-items: center; gap: 0.35rem; }
.term-status-link { margin-left: auto; color: var(--text-dim); }
body.hide-pnl #fig-pnl, body.hide-pnl #fig-equity, body.hide-pnl #acct-upnl, body.hide-pnl #stat-pnl,
body.hide-pnl #strip-equity, body.hide-pnl .positions-summary,
body.hide-pnl #positions-body td:nth-child(7), body.hide-pnl #positions-body td:nth-child(8) { filter: blur(6px); }
dialog.term-dialog {
  margin: auto;  
  width: min(440px, calc(100vw - 2rem));
  max-height: calc(100dvh - 3rem);
  padding: 1.35rem; color: var(--text);
  background: var(--bg-panel); border: 1px solid var(--border-2); border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.7);
}
dialog.term-dialog-wide { width: min(680px, calc(100vw - 2rem)); }
dialog.term-dialog[open] { animation: modal-rise .22s cubic-bezier(.16,.8,.3,1); }
dialog.term-dialog::backdrop { background: rgba(8, 7, 6, 0.72); backdrop-filter: blur(2px); }
.term-dialog-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 0.85rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border); }
.term-dialog-head h2 { font-size: 1.1rem; margin: 0; }
.term-dialog-head form { margin: 0; }
.term-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 1rem; }
.term-dialog-actions form { display: grid; margin: 0; }
.term-dialog-actions .btn { width: 100%; }
.settings-body { display: grid; gap: 1.25rem 2rem; }
.settings-body > section { padding: 0; }  
@media (min-width: 640px) { .settings-body { grid-template-columns: 1fr 1fr; } }
.settings-group { font-size: 0.75rem; color: var(--text-faint); margin: 0 0 0.5rem; font-family: var(--body); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; font-size: 0.85rem; cursor: pointer; }
input[role="switch"] {
  appearance: none; flex: none; width: 34px; height: 20px; margin: 0; cursor: pointer;
  border-radius: var(--radius); background: var(--bg-panel-3); border: 1px solid var(--border-2);
  position: relative; transition: background .15s;
}
input[role="switch"]::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px;
  border-radius: calc(var(--radius) - 3px); background: var(--text-dim); transition: transform .15s, background .15s;
}
input[role="switch"]:checked { background: var(--up-fill); border-color: var(--up); }
input[role="switch"]:checked::after { transform: translateX(14px); background: var(--on-fill); }
input[role="switch"]:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.stats-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; margin-bottom: 0.85rem; }
@media (min-width: 640px) { .stats-kpis { grid-template-columns: repeat(4, 1fr); } }
.stat-kpi { display: grid; gap: 0.2rem; padding: 0.7rem 0.8rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-panel-2); }
.stat-kpi .label { font-size: 0.75rem; color: var(--text-dim); }
.stat-kpi .num { font-family: var(--mono); font-size: 1.05rem; }
.rule-rings { list-style: none; margin: 0 0 0.75rem; padding: 0; display: grid; gap: 0.25rem; }
.rule-rings li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--border); }
.rule-rings li > div { display: grid; gap: 0.15rem; }
.rule-rings .label { font-size: 0.8rem; color: var(--text-dim); }
.rule-ring-val { font-family: var(--mono); font-size: 1.1rem; }
.rule-ring-val .up { color: var(--up); }
.ring { width: 64px; height: 38px; flex: none; }
.ring-track, .ring-fill { fill: none; stroke-width: 4; stroke-linecap: round; }
.ring-track { stroke: var(--bg-panel-3); }
.ring-fill { stroke: var(--text-dim); transition: stroke-dasharray .4s ease; }
.ring-fill.ring-up { stroke: var(--up); }
.ring-fill.is-warn { stroke: var(--accent); }
.ring-fill.is-danger { stroke: var(--down); }
.lev-row { display: grid; grid-template-columns: 1fr 88px; gap: 0.75rem; align-items: center; margin-bottom: 0.75rem; }
.lev-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.75rem; }
.lev-chip {
  flex: 1; min-width: 52px; padding: 0.4rem 0.5rem; font-family: var(--mono); font-size: 0.8rem;
  color: var(--text-dim); background: var(--bg-panel-2); border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer;
}
.lev-chip:hover { color: var(--text); }
.lev-chip.active { color: var(--text); border-color: var(--primary); }
#confirm-rows { display: grid; gap: 0.45rem; margin: 0 0 0.75rem; }
.terminal-page #market-picker-pop {
  position: fixed; top: 12vh; left: 50%; transform: translateX(-50%);
  z-index: 40; width: min(44rem, calc(100vw - 2rem)); padding: 0.85rem;
  border-radius: var(--radius-lg); background: var(--bg-panel);
  box-shadow: 0 0 0 100vmax rgba(8, 7, 6, 0.72), 0 24px 60px -16px rgba(0, 0, 0, 0.7);
  animation: none;
}
.terminal-page .market-list { max-height: min(30rem, 62vh); }
#checkout-modal .modal { max-width: 460px; }
#checkout-form { display: flex; flex-direction: column; }
#checkout-form > .checkout-summary { order: 1; border-top: 0; padding-top: 0; }
#checkout-form > .code-details { order: 2; }
#checkout-form > #checkout-code-note { order: 3; }
#checkout-form > .pay-methods { order: 4; }
#checkout-form > .split-choice { order: 5; margin: 1rem 0 0; }
#checkout-form > .pay-balance { order: 6; }
#checkout-form > .pay-billing { order: 7; }
#checkout-form > .checkout-consent { order: 8; }
#checkout-form > .checkout-footer { order: 9; }
#checkout-modal .checkout-summary dl { padding: 0.75rem 0.85rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-panel-2); }
#checkout-modal .checkout-total { border-top: 0; margin-top: 0.6rem; padding: 0 0.15rem; }
#checkout-modal .pay-methods { gap: 0.4rem; }
#checkout-modal .pay-method { grid-template-columns: 1rem 1.5rem minmax(0, 1fr); padding: 0.75rem 0.9rem; }
#checkout-modal .pay-method::after { grid-column: 1; }
#checkout-modal .pay-method-icon { grid-column: 2; grid-row: 1; }
#checkout-modal .pay-method-text { grid-column: 3; grid-row: 1; }
#checkout-modal .pay-method:has(input:checked) { border-color: var(--up); background: var(--success-bg); }
#checkout-modal .pay-method:has(input:checked)::after { border-color: var(--up); box-shadow: inset 0 0 0 3px var(--bg-panel-3), inset 0 0 0 8px var(--up); }
#checkout-modal .split-option { grid-auto-flow: column; justify-content: start; align-items: baseline; gap: 0.4rem; padding: 0.45rem 0.7rem; }
#checkout-modal .split-option strong { font-size: 0.92rem; }
#checkout-modal .checkout-consent { padding: 0.6rem 0.75rem; }
#checkout-modal .checkout-consent label { font-size: 0.78rem; }
#checkout-form.is-billing > .split-choice,
#checkout-form.is-billing > .code-details,
#checkout-form.is-billing > #checkout-code-note,
#checkout-form.is-billing > .pay-methods,
#checkout-form.is-billing > .checkout-consent { display: none; }
.pay-billing-back {
  display: inline-block; margin: 0 0 0.6rem; padding: 0; background: none; border: 0;
  color: var(--text-dim); cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.pay-billing-back:hover { color: var(--text); }
#checkout-modal .pay-billing :is(input, select):not(:user-invalid) { border-color: var(--border); box-shadow: none; }
#checkout-modal .split-option:has(input:checked) { border-color: var(--up); background: var(--success-bg); }
.dash-overview { text-align: center; padding: 0.5rem 0 1.75rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.dash-overview > p { max-width: none; }
.dash-welcome { margin: 0; color: var(--text-dim); font-size: 0.9rem; }
.dash-total { margin: 0.25rem 0 0.6rem; font-family: var(--mono); font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 600; color: var(--text); }
.dash-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.4rem; margin: 0; }
.dash-chip { padding: 0.2rem 0.6rem; border: 1px solid var(--border-2); border-radius: var(--radius-pill); font-size: 0.78rem; color: var(--text-dim); }
.dash-chip:empty { display: none; }
.dash-chip.up { color: var(--up); border-color: color-mix(in srgb, var(--up) 45%, transparent); }
.dash-chip.down { color: var(--down); border-color: color-mix(in srgb, var(--down) 45%, transparent); }
.chart-toolbar { display: flex; align-items: center; gap: 0.15rem; flex-wrap: nowrap; min-width: 0; }
.chart-toolbar .chart-tools { margin-left: auto; display: flex; align-items: center; gap: 0.15rem; }
.tb-btn {
  display: inline-flex; align-items: center; gap: 0.35rem; height: 30px; padding: 0 0.55rem;
  font-size: 0.8rem; font-weight: 500; color: var(--text-dim); background: transparent;
  border: 0; border-radius: var(--radius-sm); cursor: pointer; list-style: none; white-space: nowrap;
}
.tb-btn { min-width: 24px; justify-content: center; } 
.tb-btn::-webkit-details-marker { display: none; }
.tb-btn:hover:not(:disabled), .tb-menu[open] > .tb-btn { color: var(--text); background: var(--bg-panel-2); }
.tb-btn:disabled { opacity: 0.35; cursor: default; }
.tb-icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tb-sep { width: 1px; height: 18px; background: var(--border); margin: 0 0.2rem; flex: none; }
.tb-menu { position: relative; }
.tb-menu-list {
  position: absolute; top: calc(100% + 4px); left: 0; z-index: 25; min-width: 170px;
  display: grid; padding: 0.3rem; max-height: min(70vh, 460px); overflow-y: auto;
  background: var(--bg-panel); border: 1px solid var(--border-2); border-radius: var(--radius-md); box-shadow: var(--shadow-md);
}
.tb-menu-list .btn {
  justify-content: flex-start; text-align: left; min-height: 0; padding: 0.42rem 0.6rem; font-size: 0.82rem;
  background: transparent; border: 0; color: var(--text); border-radius: var(--radius-sm); width: 100%;
}
.tb-menu-list .btn:hover { background: var(--bg-panel-3); }
.tb-menu-list .btn.active { background: var(--bg-panel-3); color: var(--text); }
.tb-menu-head { margin: 0.35rem 0.6rem 0.15rem; font-size: 0.75rem; color: var(--text-faint); }
.chart-toolbar .chart-overlays > summary.btn { height: 30px; min-height: 0; padding: 0 0.55rem; font-size: 0.8rem; background: transparent; border: 0; color: var(--text-dim); }
.chart-toolbar .chart-overlays > summary.btn:hover { color: var(--text); background: var(--bg-panel-2); }
.chart-body { display: flex; flex: 1; min-height: 0; gap: 0; }
.chart-body .tv-chart-wrap { flex: 1; min-width: 0; }
.draw-bar {
  display: flex; flex-direction: column; align-items: center; gap: 0.15rem; flex: none;
  width: 38px; padding: 0.3rem 0; margin-right: 0.35rem; border-right: 1px solid var(--border);
}
.draw-btn {
  width: 30px; height: 30px; display: grid; place-items: center; padding: 0; background: transparent;
  border: 0; border-radius: var(--radius-sm); color: var(--text-dim); cursor: pointer;
}
.draw-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.draw-btn:hover { color: var(--text); background: var(--bg-panel-2); }
.draw-btn.active, .draw-btn[aria-pressed="true"] { color: var(--text); background: var(--bg-panel-3); box-shadow: inset 0 0 0 1px var(--border-2); }
.draw-sep { width: 18px; height: 1px; background: var(--border); margin: 0.2rem 0; }
.tv-chart-wrap.is-drawing { cursor: crosshair; }
.chart-bottom { display: flex; align-items: center; gap: 0.75rem; padding: 0.3rem 0 0; border-top: 1px solid var(--border); margin-top: 0.3rem; }
.chart-ranges, .chart-scales { display: flex; gap: 0.1rem; }
.chart-ranges button, .chart-scales button {
  padding: 0.2rem 0.45rem; font-size: 0.74rem; font-family: var(--mono); color: var(--text-dim);
  background: transparent; border: 0; border-radius: var(--radius-sm); cursor: pointer;
}
.chart-ranges button:hover, .chart-scales button:hover { color: var(--text); background: var(--bg-panel-2); }
.chart-scales button[aria-pressed="true"] { color: var(--text); background: var(--bg-panel-3); }
.chart-clock { margin-left: auto; font-size: 0.74rem; color: var(--text-dim); }
.term-chart .chart-note { display: none; }
.study-legend { position: absolute; top: 1.6rem; left: 0.5rem; z-index: 3; display: grid; gap: 0.1rem; font-size: 0.75rem; color: var(--text-dim); pointer-events: none; }
.study-legend:empty { display: none; }
.study-legend b { color: var(--text); font-weight: 500; margin-right: 0.25rem; }
.study-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 0.35rem; vertical-align: 0; }
#chart-panel:fullscreen { background: var(--bg-panel); padding: 0.75rem; display: flex; flex-direction: column; }
#chart-panel:fullscreen .chart-body { flex: 1; }
.ind-search { width: 100%; margin-bottom: 0.85rem; }
.ind-list { list-style: none; margin: 0 0 0.85rem; padding: 0; display: grid; max-height: 46vh; overflow-y: auto; }
.ind-item {
  display: flex; justify-content: space-between; gap: 1rem; width: 100%; padding: 0.5rem 0.6rem;
  font-size: 0.86rem; text-align: left; color: var(--text); background: transparent; border: 0; border-radius: var(--radius-sm); cursor: pointer;
}
.ind-item:hover, .ind-item:focus-visible { background: var(--bg-panel-3); outline: none; }
.ind-kind { font-size: 0.75rem; color: var(--text-faint); }
.ind-active-row { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.5rem; font-size: 0.85rem; border-radius: var(--radius-sm); background: var(--bg-panel-2); margin-bottom: 0.3rem; }
.ind-active-row > span:nth-child(2) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ind-dot { width: 10px; height: 10px; border-radius: var(--radius); flex: none; }
.ind-param { flex: none; width: 60px !important; padding: 0.2rem 0.35rem; font-size: 0.78rem; min-height: 0; }
.ind-remove { width: 26px; height: 26px; background: transparent; border: 0; color: var(--text-dim); font-size: 1.1rem; cursor: pointer; border-radius: var(--radius-sm); }
.ind-remove:hover { color: var(--down); background: var(--bg-panel-3); }
input[type="color"] { width: 42px; height: 26px; padding: 0; border: 1px solid var(--border-2); border-radius: var(--radius-sm); background: transparent; cursor: pointer; }
#chart-settings-dialog .chart-timezone-select { max-width: 200px; }
.hours-note { margin: 0 0 0.6rem; }
.hours-grid { display: grid; gap: 0.35rem; }
.hours-row { display: grid; grid-template-columns: 210px 1fr; align-items: center; gap: 0.75rem; font-size: 0.78rem; }
.hours-name { display: block; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hours-name b { color: var(--text-faint); font-weight: 500; margin-right: 0.3rem; font-size: 0.75rem; }
.hours-name small { display: block; font-size: 0.75rem; }
.hours-name small.up { color: var(--up); }
.hours-name small.down { color: var(--text-faint); }
.hours-track { position: relative; height: 16px; border-radius: var(--radius); background: var(--bg-panel-2); }
.hours-track i { position: absolute; top: 0; bottom: 0; border-radius: var(--radius); background: color-mix(in srgb, var(--up) 55%, transparent); }
.hours-track em { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--text); border-radius: 1px; }
.hours-axis .hours-track { background: none; height: 14px; }
.hours-axis .hours-track span { position: absolute; font-size: 0.75rem; color: var(--text-faint); font-family: var(--mono); }
#chart-settings-dialog .settings-group { margin-top: 0.9rem; }
#chart-settings-dialog .settings-group:first-of-type { margin-top: 0; }
.terminal-page .site-header .wrap { padding-block: 0.45rem; }
.terminal-page .site-header .brand svg, .terminal-page .site-header .brand img { width: 28px; height: 28px; }
button.strip-account-btn { font: inherit; font-size: 0.85rem; color: var(--text); }
.acct-tabs { display: flex; gap: 1.25rem; border-bottom: 1px solid var(--border); margin-bottom: 0.75rem; }
.acct-tabs button { padding: 0.45rem 0; font-size: 0.85rem; color: var(--text-dim); background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; }
.acct-tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--primary); }
.acct-filters { display: flex; gap: 0.3rem; margin-bottom: 0.75rem; }
.acct-filters button { padding: 0.25rem 0.7rem; font-size: 0.78rem; color: var(--text-dim); background: none; border: 1px solid transparent; border-radius: var(--radius-pill); cursor: pointer; }
.acct-filters button[aria-pressed="true"] { color: var(--text); background: var(--bg-panel-3); border-color: var(--border-2); }
.acct-rows { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 52px 1fr auto auto 110px; align-content: start; gap: 0.2rem 0.75rem; min-height: 160px; max-height: 50vh; overflow-y: auto; }
.acct-rows > li { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; }
.acct-rows > li.acct-empty { display: block; }
.acct-row {
  grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center;
  padding: 0.6rem 0.7rem; border-radius: var(--radius); color: var(--text); text-decoration: none; background-image: none; font-size: 0.86rem;
}
.acct-row:hover, .acct-row.is-current { background: var(--bg-panel-3); }
.acct-row-eq { text-align: right; }
.acct-row-eq.up { color: var(--up); }
.acct-row-eq.down { color: var(--down); }
.acct-empty { padding: 1.5rem 0.7rem; text-align: center; }
.tp-coin { margin: 0.3rem 0 0.4rem; text-align: center; font-size: 0.78rem; color: var(--text-faint); min-height: 1.1em; }
#ticket-form .ticket-pct-marks button { font-size: 0.75rem; padding-block: 0.2rem; }
.term-side .ticket-reduce, .term-side .protective-fields > summary {
  padding: 0.5rem 0.65rem; border-radius: var(--radius); background: var(--bg-panel-2); border: 1px solid var(--border);
}
.term-side .protective-fields > summary { list-style: none; color: var(--text); font-size: 0.82rem; }
.term-side .protective-fields[open] > summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.term-side .protective-fields[open] .protective-fields-body { padding: 0.65rem; border: 1px solid var(--border); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }
.book-layout { display: flex; gap: 0.15rem; margin-left: auto; margin-right: 0.35rem; }
.book-layout button { width: 24px; height: 22px; padding: 2px; display: grid; place-items: center; background: none; border: 1px solid transparent; border-radius: var(--radius-sm); cursor: pointer; opacity: 0.55; }
.book-layout button[aria-pressed="true"] { opacity: 1; border-color: var(--border-2); }
.book-layout svg { width: 15px; height: 15px; }
.book-layout .ask { fill: color-mix(in srgb, var(--down) 70%, transparent); }
.book-layout .bid { fill: color-mix(in srgb, var(--up) 70%, transparent); }
.book-panel[data-layout="bids"] .book-asks, .book-panel[data-layout="asks"] .book-bids { display: none; }
.book-panel:not([data-view="book"]) .book-layout { visibility: hidden; }
.term-side .rule-meter.acct::before {
  content: "Account summary"; display: block; margin-bottom: 0.6rem; padding-inline: 0.85rem; padding-inline: 0.85rem; font-size: 0.78rem; font-weight: 600; color: var(--text);
}
.term-side .rule-meter-equity-num { font-size: 1.25rem; }
.term-side .acct-figs > div, .term-side .rm-pnl { font-size: 0.8rem; }
.chart-panel.is-tv { padding: 0 !important; }
.chart-panel.is-tv > :not(.tv-widget) { display: none !important; }
.tv-widget { flex: 1; min-height: 0; height: 100%; }
.chart-toolbar .tb-menu > summary.tb-btn { padding: 0 0.45rem; }
.chart-toolbar .tb-menu > summary.tb-btn::after {
  content: ""; width: 5px; height: 5px; margin-left: 0.15rem; border: 0;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; border-radius: 0;
  background: none; transform: translateY(-2px) rotate(45deg); opacity: 0.7;
}
.chart-toolbar .tb-menu[open] > summary.tb-btn::after { transform: translateY(1px) rotate(225deg); }
.chart-toolbar .tb-menu > summary.tb-btn:hover,
.chart-toolbar .tb-menu[open] > summary.tb-btn { color: var(--text); background: var(--bg-panel-2); }
.study-legend { top: 1.55rem; gap: 0.15rem; }
.study-legend > span {
  justify-self: start; padding: 0.05rem 0.4rem; border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--bg-panel) 82%, transparent);
}
.term-chart .chart-legend { padding: 0.05rem 0.4rem; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--bg-panel) 82%, transparent); }
.term-side .ticket-pct-marks { display: none; }
.term-side #ticket-reduce-hint { display: none; }
.term-side .ticket-reduce { display: flex; align-items: center; min-height: 36px; padding-block: 0.35rem; }
.term-side .ticket-reduce label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; cursor: pointer; }
.term-side .protective-fields > summary { display: flex; align-items: center; justify-content: space-between; min-height: 36px; padding-block: 0.35rem; }
.term-side .protective-fields > summary:hover { color: var(--text); border-color: var(--border-2); }
.term-side .size-slider { margin-top: 0.15rem; }
#ticket-form .ticket-amount-row .btn { min-height: 0; height: auto; }
.term-side .rule-meter.acct { padding-top: 0.85rem; }
.term-side .rm-equity { padding-inline: 0.85rem; }
.term-side .figure-flash { animation: none !important; background: none !important; }
.term-side .rule-meter.acct::before { position: static; inset: auto; width: auto; height: auto; background: none; opacity: 1; transform: none; margin: 0 0 0.75rem; }
:is(.ticket-leverage, .size-slider, .lev-row) input[type="range"] {
  --fill: 0%;
  width: 100%; margin: 0.35rem 0 0.15rem; appearance: none; -webkit-appearance: none;
  background: transparent; cursor: pointer;
}
:is(.ticket-leverage, .size-slider, .lev-row) input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px;
  background: linear-gradient(to right, var(--primary) var(--fill), var(--border-subtle) var(--fill));
}
:is(.ticket-leverage, .size-slider, .lev-row) input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--border-subtle); }
:is(.ticket-leverage, .size-slider, .lev-row) input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--primary); }
:is(.ticket-leverage, .size-slider, .lev-row) input[type="range"]::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%;
  background: var(--primary-deep); border: 2px solid var(--primary); box-shadow: 0 0 0 3px var(--primary-glow);
  transition: box-shadow .15s ease;
}
:is(.ticket-leverage, .size-slider, .lev-row) input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%; background: var(--primary-deep); border: 2px solid var(--primary); box-shadow: 0 0 0 3px var(--primary-glow);
}
:is(.ticket-leverage, .size-slider, .lev-row) input[type="range"]:hover::-webkit-slider-thumb { box-shadow: 0 0 0 6px var(--primary-glow); }
:is(.ticket-leverage, .size-slider, .lev-row) input[type="range"]:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 3px; }
input[role="switch"]:checked { background: var(--primary-deep); border-color: var(--primary); }
input[role="switch"]:checked::after { background: var(--text); }
.ticket-reduce input[type="checkbox"], .term-dialog input[type="checkbox"]:not([role="switch"]) { accent-color: var(--primary); }
.settings-group { color: var(--primary); }
.lev-chip.active { color: var(--text); border-color: var(--primary); background: color-mix(in srgb, var(--primary) 14%, var(--bg-panel-2)); }
.acct-tabs button[aria-selected="true"], .tabs .tab.active, .book-tab.active { border-bottom-color: var(--primary); }
.acct-filters button[aria-pressed="true"], .chart-scales button[aria-pressed="true"] { color: var(--primary-hover);  border-color: color-mix(in srgb, var(--primary) 45%, transparent); background: color-mix(in srgb, var(--primary) 10%, transparent); }
.draw-btn.active, .draw-btn[aria-pressed="true"] { color: var(--primary); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 45%, transparent); }
.tp-select:hover, .strip-btn:hover, .strip-account-btn:hover { border-color: color-mix(in srgb, var(--primary) 50%, var(--border-2)); }
.tp-menu-list button[aria-current], .tb-menu-list .btn.active { color: var(--primary); }
.strip-badge { color: var(--primary); border-color: color-mix(in srgb, var(--primary) 45%, transparent); }
.chart-ranges button:hover, .chart-scales button:hover { color: var(--primary); }
#chart-indicators-btn .tb-icon { stroke: var(--primary); }
.term-status-link:hover { color: var(--primary); }
#checkout-modal .pay-method:has(input:checked),
#checkout-modal .split-option:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 9%, var(--bg-panel-2)); }
#checkout-modal .pay-method:has(input:checked)::after { border-color: var(--primary); box-shadow: inset 0 0 0 3px var(--bg-panel-3), inset 0 0 0 8px var(--primary); }
.nav-more-toggle {
  display: inline-flex; align-items: center; gap: 0.4rem; list-style: none; cursor: pointer;
  color: var(--text-dim); font-size: inherit; padding: 0.35rem 0; background: none; border: 0;
}
.nav-more-toggle::-webkit-details-marker { display: none; }
details.nav-more > summary.nav-more-toggle { font-weight: 400; color: var(--text-dim); }
details.nav-more > summary.nav-more-toggle::after {
  content: ""; width: 0.35em; height: 0.35em; margin: 0; border: 0;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; border-radius: 0;
  background: none; opacity: 0.6; transform: translateY(-0.15em) rotate(45deg); transition: transform .15s var(--ease);
}
details.nav-more > summary.nav-more-toggle:hover, details.nav-more > summary.nav-more-toggle[data-current], details.nav-more[open] > summary.nav-more-toggle { color: var(--text); }
details.nav-more[open] > summary.nav-more-toggle::after { transform: translateY(0.1em) rotate(-135deg); }
.site-header .wrap { position: relative; }
.site-header details.nav-menu { position: static; }
.site-header .nav-menu-panel { top: calc(100% + 0.5rem); right: 2rem; }
.nav-more-panel {
  left: auto; transform: none;
  width: min(36rem, calc(100vw - 2rem)); min-width: 0;
  padding: 0.5rem; gap: 0;
  background: var(--bg-panel);
  border-color: var(--border-2);
}
.nav-more-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem 0.5rem; }
.nav-more-cols > div { display: grid; align-content: start; gap: 2px; }
.nav-more-label {
  margin: 0.35rem 0.7rem 0.4rem; font-size: 0.75rem; color: var(--text-faint);
}
.nav-more-panel .nav-more-cols a {
  display: grid !important; grid-template-columns: 1rem 1fr; column-gap: 0.75rem; row-gap: 0.15rem;
  align-items: start; padding: 0.6rem 0.7rem !important; border-radius: var(--radius-sm);
  background-image: none !important; border: 0;
  transition: background-color .12s ease;
}
.nav-more-panel .nav-more-ico { grid-row: span 2; width: 1rem; height: 1rem; margin-top: 0.15rem; color: var(--text-faint); transition: color .12s ease; }
.nav-more-cols a strong { font-weight: 500; color: var(--text); font-size: 0.92rem; line-height: 1.25; }
.nav-more-cols a span { font-size: 0.78rem; line-height: 1.35; color: var(--text-faint); }
.nav-more-cols a:hover, .nav-more-cols a:focus-visible { background-color: color-mix(in srgb, var(--primary) 12%, transparent); box-shadow: none; outline: none; }
.nav-more-cols a:hover strong, .nav-more-cols a:focus-visible strong { color: var(--primary-hover); }
.nav-more-cols a:hover .nav-more-ico, .nav-more-cols a:focus-visible .nav-more-ico { color: var(--primary-hover); }
.nav-more-cols a[aria-current] { background-color: var(--bg-panel-2); }
.nav-more-cols a[aria-current] .nav-more-ico { color: var(--primary-hover); }
.nav-more-foot {
  display: flex; gap: 0.25rem; margin: 0.5rem 0 0; padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}
.nav-more-panel .nav-more-foot a {
  width: auto; padding: 0.45rem 0.7rem !important; font-size: 0.82rem; color: var(--text-dim);
  border-radius: var(--radius-sm); background-image: none !important;
}
.nav-more-panel .nav-more-foot a:hover, .nav-more-panel .nav-more-foot a[aria-current] { color: var(--primary-hover); background-color: color-mix(in srgb, var(--primary) 12%, transparent); box-shadow: none; }
@media (max-width: 560px) { .nav-more-cols { grid-template-columns: 1fr; } }
@media (min-width: 681px) {  
  .nav-cta { margin-left: calc(0.625rem - 1.75rem); }
  .nav > a.btn:not(.nav-cta) { margin-left: 0.5rem; }
}
.site-footer .footer-grid {
  display: grid; grid-template-columns: minmax(220px, 1.2fr) 3fr; gap: 2.5rem 3rem; align-items: start;
  padding-block: 3rem 2rem !important;
}
.footer-brand { display: grid; gap: 0.85rem; justify-items: start; }
.footer-brand .brand { display: inline-flex; align-items: center; gap: 0.6rem; background-image: none !important; color: var(--text) !important; }
.footer-brand .brand-mark { width: 30px; height: 30px; }
.footer-wordmark { font-family: var(--display); font-size: 1.25rem; color: var(--text); }
.footer-tagline { margin: 0; max-width: 30ch; color: var(--text-dim); font-size: 0.86rem; line-height: 1.5; }
.footer-social { display: flex; gap: 1rem; margin: 0; }
.footer-social a { display: inline-block; min-width: 24px; min-height: 24px; text-align: center; }
.site-footer nav.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem 2rem; }
.footer-col { display: grid; gap: 0.15rem; align-content: start; justify-items: start; }
.footer-head { margin: 0 0 0.45rem; font-size: 0.875rem; color: var(--text-dim); font-weight: 600; }
.site-footer .footer-col a, .site-footer .footer-col .linklike { padding: 0.2rem 0; min-height: 0; font-size: 0.86rem; color: var(--text-dim); }
.site-footer .footer-col a:hover, .site-footer .footer-col .linklike:hover { color: var(--text); }
.site-footer .footer-bottom { padding-block: 1rem 4.5rem !important; border-top: 1px solid var(--border); font-size: 0.78rem; color: var(--text-faint); }
.site-footer .wrap:has(.footer-disclosure) { padding-bottom: 1.5rem !important; }
@media (max-width: 900px) {
  .site-footer .footer-grid { grid-template-columns: 1fr; }
  .site-footer nav.footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.auth-pane {
  max-width: 27rem !important; margin-inline: auto; padding: 2rem 2rem 1.75rem !important;
  background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.auth-pane::before {
  content: ""; display: block; width: 36px; height: 36px; margin-bottom: 1.1rem; border-radius: var(--radius);
  background: radial-gradient(circle, transparent 0, transparent 0) , conic-gradient(from 0deg, transparent 0 0);
  background:
    linear-gradient(#c1382a, #c1382a) center / 32% 32% no-repeat,
    linear-gradient(#1e1e1e, #1e1e1e) center / 52% 52% no-repeat,
    linear-gradient(#ede8da, #ede8da) center / 64% 64% no-repeat,
    linear-gradient(#1e1e1e, #1e1e1e) center / 80% 80% no-repeat,
    linear-gradient(#9b9789, #9b9789) center / 92% 92% no-repeat,
    #1e1e1e;
}
section:has(> .auth-pane) { padding-block: clamp(2.5rem, 8vh, 5rem) !important; }
.arena-hero { position: relative; isolation: isolate; padding-bottom: clamp(1.5rem, 3.5vw, 2.5rem); margin-bottom: clamp(1.5rem, 3.5vw, 2.5rem); }
.arena-hero::before {
  content: ""; position: absolute; z-index: -1; top: -5rem; bottom: 0; left: 0; right: 0; pointer-events: none;
}
.arena-hero::before {
  border-image: linear-gradient(transparent calc(100% - 1px), var(--border) calc(100% - 1px)) fill 0 / / 0 100vw;
}
.wrap > :has(~ .arena-hero) { position: relative; z-index: 1; }
section.arena-hero { margin-bottom: 0; }
section.arena-hero::before { top: 0; }
.arena-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1.03; letter-spacing: -0.015em; text-wrap: balance; }
.arena-hero :is(.page-head, .lobby-head) p.muted, .arena-hero .lobby-lede { color: var(--text-dim); max-width: 52ch; }
.arena-hero.page-head, .arena-hero .page-head { align-items: end; }
.arena-cta { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; }
@media (max-width: 560px) {
  .arena-cta, .cta { display: grid; grid-template-columns: minmax(0, 1fr); }
  .arena-cta > .btn, .cta > .btn { justify-content: center; text-align: center; }
}
.arena-stats { display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; margin: 1.25rem 0 0; }
.arena-stats > div { display: grid; gap: 0.1rem; }
.arena-stats b { font-family: var(--mono); font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
.arena-stats span { font-size: 0.78rem; color: var(--text-faint); }
.arena-stats .is-live b::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 0.45rem; vertical-align: middle; border-radius: 50%; background: var(--success); }
.arena-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; }
.arena-tile {
  display: grid; gap: 0.45rem; padding: 1rem 1.1rem; text-align: left; color: var(--text);
  background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius-md);
  transition: border-color .15s var(--ease), transform .15s var(--ease), background-color .15s var(--ease);
}
.arena-tile:hover { border-color: var(--primary); }
.arena-tile.is-hot { border-color: color-mix(in srgb, var(--primary) 60%, var(--border)); background: color-mix(in srgb, var(--primary) 7%, var(--bg-panel)); }
.arena-card { display: grid; gap: 0.75rem; align-content: start; padding: 1rem 1.1rem; background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius-md); }
.vs-bar { display: flex; width: 100%; max-width: 120px; height: 4px; border-radius: 2px; overflow: hidden; background: var(--bg-panel-3); }
.vs-bar i { display: block; flex-basis: 1px; flex-shrink: 0; height: 100%; }
.vs-bar i:first-child { background: var(--up-fill); }
.vs-bar i:last-child { background: var(--down-fill); }
tr.is-draw .vs-bar i { background: var(--text-faint); }
ol.podium { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; align-items: end; }
ol.podium > li:nth-child(-n+3) {
  display: grid; justify-items: center; gap: 0.3rem; text-align: center; padding: 0.85rem 0.5rem;
  background: var(--bg-panel-2); border: 1px solid var(--border); border-radius: var(--radius-md) var(--radius-md) var(--radius-sm) var(--radius-sm);
}
ol.podium > li:nth-child(1) { order: 2; padding-top: 1.5rem; border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); background: color-mix(in srgb, var(--accent) 6%, var(--bg-panel-2)); }
ol.podium > li:nth-child(2) { order: 1; padding-top: 1.1rem; }
ol.podium > li:nth-child(3) { order: 3; }
ol.podium > li:nth-child(n+4) { order: 4; grid-column: 1 / -1; display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0.2rem; border-top: 1px solid var(--border); }
ol.podium > li:nth-child(1) .rank-pill { color: var(--accent); }
.record-ring { width: 76px; height: 76px; flex: none; }
.record-ring .ring-bg { stroke: var(--bg-panel-3); }
.record-ring .ring-win { stroke: var(--primary); stroke-linecap: round; transition: stroke-dasharray .6s var(--ease); }
.record-ring text { fill: var(--text); font-family: var(--mono); font-size: 9px; }
.lobby-record-row { display: flex; align-items: center; gap: 1rem; }
.onpage { font-size: 0.85rem; }
.onpage p { margin: 0 0 0.5rem; font-size: 0.85rem; font-weight: 600; color: var(--text-dim); }
.onpage ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.1rem; }
.onpage a { display: block; padding: 0.3rem 0.6rem; border-left: 2px solid var(--border); color: var(--text-dim); text-decoration: none; background-image: none; }
.onpage a:hover { color: var(--text); }
.onpage a[aria-current="true"] { color: var(--text); border-left-color: var(--primary); }
@media (min-width: 1100px) {
  .wrap.has-onpage { display: grid; grid-template-columns: minmax(0, 1fr) 220px; column-gap: 3rem; align-items: start; }
  .wrap.legal.has-onpage { max-width: calc(49.28em + 220px + 3rem); }
  .has-onpage > * { grid-column: 1; min-width: 0; }
  .has-onpage > .arena-hero { grid-column: 1 / -1; }
  .has-onpage > .onpage { grid-column: 2; grid-row: 2 / span 60; position: sticky; top: 5.5rem; max-height: calc(100vh - 7rem); overflow-y: auto; }
}
@media (max-width: 1099px) {
  .onpage { margin-bottom: 1.5rem; padding: 0.75rem 0.9rem; border: 1px solid var(--border); border-radius: var(--radius-md); }
  .onpage ol { grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); }
}
.arena-empty { display: grid; justify-items: center; gap: 0.6rem; padding: 1.75rem 1rem; text-align: center; color: var(--text-dim); }
@media (max-width: 900px) {
  .arena-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .arena-tile, .record-ring .ring-win { transition: none; }
  .arena-tile:hover { transform: none; }
}
.arena-hero.lobby-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.5rem 2.5rem; align-items: center; }
.lobby-record .record-ring { float: right; margin: 0 0 0.5rem 1rem; }
.lobby-clock-cell .vs-bar { margin-bottom: 0.3rem; }
@media (max-width: 900px) {
  .arena-hero.lobby-head { grid-template-columns: 1fr; }
}
dl.arena-stats { margin-top: 1.1rem; }
dl.arena-stats dt { order: -1; font-size: 0.8125rem; color: var(--text-faint); }
dl.arena-stats dd { margin: 0; }
dl.arena-stats > div { padding-right: 1.5rem; border-right: 1px solid var(--border); }
dl.arena-stats > div:last-child { border-right: 0; }
nav.onpage ol a { color: var(--text-dim); text-decoration: none; }
nav.onpage ol a:hover { color: var(--text); }
nav.onpage ol a[aria-current="true"] { color: var(--text); border-left-color: var(--primary); }
.modal-backdrop { background: rgba(8, 7, 6, 0.74); backdrop-filter: blur(3px); }
.modal, dialog.term-dialog, dialog.shortcuts-dialog {
  border: 1px solid var(--border-2); border-radius: var(--radius-lg);
  background: var(--bg-panel);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.7);
}
dialog.shortcuts-dialog { margin: auto; padding: 1.35rem; color: var(--text); max-width: min(440px, calc(100vw - 2rem)); }
dialog.shortcuts-dialog::backdrop, dialog.term-dialog::backdrop { background: rgba(8, 7, 6, 0.74); backdrop-filter: blur(3px); }
.modal-head h3, .modal-head h2, .term-dialog-head h2, dialog.shortcuts-dialog h2 { font-family: var(--display); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; }
.modal-close {
  display: inline-grid; place-items: center; width: 32px; height: 32px; margin: -0.35rem -0.35rem -0.35rem 0; padding: 0;
  border-radius: 50%; font-size: 1.25rem; line-height: 1; color: var(--text-dim);
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.modal-close:hover { color: var(--text); background: var(--bg-panel-3); }
.modal .chip, .modal [data-duration] { transition: border-color .15s var(--ease), background-color .15s var(--ease); }
.modal [data-duration][aria-pressed="true"], .modal [data-duration].active, .modal .chip.active {
  border-color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, var(--bg-panel-2)); color: var(--text);
}
.pp-highlights { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; border: 0 !important; padding: 0 !important; }
.pp-highlights > div { display: grid; gap: 0.3rem; align-content: start; padding: 0.9rem 0 0 !important; border: 0 !important; border-top: 1px solid var(--border) !important; }
.pp-block { padding: 1.25rem 0 0; border-top: 1px solid var(--border); }
.pp-matches li { border-radius: var(--radius-sm); transition: background-color .15s var(--ease); }
.pp-matches li:hover { background: var(--bg-panel-2); }
@media (max-width: 900px) { .pp-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.draft-bot-picker .draft-bot-option:has(input:checked) {
  background: color-mix(in srgb, var(--primary) 10%, transparent); border-radius: var(--radius-sm);
}
.draft-tc-picker .draft-tc-option:has(input:checked) { background: color-mix(in srgb, var(--primary) 10%, transparent); }
@media (min-width: 900px) {
  .site-footer .footer-disclosure {
    display: grid; grid-template-columns: 1.15fr 1.15fr 0.8fr; gap: 0 2.5rem; max-width: none !important;
    font-size: 0.76rem; line-height: 1.55;
  }
  .site-footer .footer-disclosure p + p { margin-top: 0; }
}
.site-footer .wrap:has(.footer-disclosure) { padding-top: 1.5rem !important; border-top: 1px solid var(--border); }
.site-footer .footer-grid { padding-block: 2.5rem 1.75rem !important; }
.mh-meta { margin-top: 0.75rem; font-size: 0.875rem; color: var(--text-dim); }
.mh-meta a { color: var(--text); }
.mh-chip { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8125rem; font-weight: 500; color: var(--text-dim); white-space: nowrap; }
.mh-chip.is-free { color: var(--up); border-color: color-mix(in srgb, var(--up) 45%, transparent); }
.mh-chip.is-live { color: var(--primary); border-color: color-mix(in srgb, var(--primary) 50%, transparent); }
.mh-chip.is-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.mh-hero .lobby-title { font-weight: 500; max-width: 16ch; }
.mh-big { padding: 0.75rem 1.2rem; font-size: 0.98rem; }
.mh-big .icon { width: 17px; height: 17px; }
.mh-card {
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-panel);
}
.mh-card-top { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding: 0.8rem 1.1rem; border-bottom: 1px solid var(--border); font-size: 0.8rem; color: var(--text-dim); }
.mh-versus { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 0.75rem; padding: 1.6rem 1.25rem; }
.mh-player { display: grid; justify-items: start; gap: 0.35rem; min-width: 0; }
.mh-player.is-right { justify-items: end; text-align: right; }
.mh-player b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.02rem; }
.mh-player .num { font-family: var(--mono); font-size: 0.9rem; }
.mh-av { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius); background: var(--bg-panel-3); border: 1px solid var(--border-2); font-family: var(--mono); font-weight: 600; }
.mh-clock { display: grid; justify-items: center; gap: 0.2rem; text-align: center; }
.mh-clock .num { font-family: var(--mono); font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-variant-numeric: tabular-nums; }
.mh-vs { font-family: var(--mono); font-size: 0.875rem; color: var(--text-dim); line-height: 1; }
.mh-clock small { font-size: 0.75rem; color: var(--text-faint); max-width: 12ch; }
.mh-card-cta { display: flex; justify-content: center; margin: 0 1.1rem 1.1rem; }
.mh-card-empty { display: grid; justify-items: center; gap: 0.85rem; padding: 2.5rem 1.5rem; text-align: center; color: var(--text-dim); }
.mh-card-empty b { color: var(--text); }
.mh-band { margin-top: clamp(2rem, 4vw, 3rem); }
.mh-band-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1.25rem; margin-bottom: 1rem; }
.mh-band-title { font-family: var(--display); font-size: clamp(1.4rem, 2.2vw, 1.7rem); font-weight: 500; letter-spacing: -0.01em; }
.mh-band-head .lobby-hint { margin: 0; max-width: 34em; }
.mh-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.mh-pair.is-wide-right { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.mh-pair:has(> [hidden]) { grid-template-columns: minmax(0, 1fr); }
.mh-panel, .lobby .mh-panel { min-width: 0; padding: 1.25rem 0 0; background: none; border: 0; border-top: 1px solid var(--border); border-radius: 0; }
.mh-panel-head, .mh .lobby-section-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.mh-panel-head h2, .mh .lobby-section-head h2 { margin: 0; }
.mh-panel-head p { margin: 0.1rem 0 0; font-size: 0.8rem; color: var(--text-faint); }
.mh-panel-head .lobby-count, .mh .lobby-section-head > a { margin-left: auto; }
.mh .lobby-live { margin-top: 0; }
.mh-clocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.75rem; }
.mh-clock-tile {
  display: grid; gap: 0.7rem; padding: 1.1rem 1.2rem; text-align: left; font: inherit; color: var(--text); cursor: pointer;
  background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius-md);
  transition: border-color .15s var(--ease), transform .15s var(--ease), background-color .15s var(--ease);
}
.mh-clock-tile:hover { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 6%, var(--bg-panel)); }
.mh-clock-tile:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.mh-clock-tile:disabled { opacity: 0.55; cursor: progress; }
.mh-speed { display: flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; font-weight: 500; color: var(--text-dim); }
.mh-speed .icon, .mh-go .icon { width: 15px; height: 15px; }
.mh-fig { font-family: var(--display); font-size: clamp(2rem, 3vw, 2.5rem); line-height: 1; letter-spacing: -0.01em; }
.mh-fig small { margin-left: 0.35rem; font-family: var(--body); font-size: 0.82rem; letter-spacing: 0; color: var(--text-dim); }
.mh-go { display: flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; font-weight: 600; }
.mh-clock-tile:hover .mh-go { color: var(--primary); }
.mh-clock-tile.is-bot { background: transparent; border-style: dashed; border-color: var(--border-2); }
.mh-clock-tile.is-next { border-style: solid; border-color: color-mix(in srgb, var(--primary) 60%, var(--border)); background: color-mix(in srgb, var(--primary) 8%, var(--bg-panel)); }
.mh .lobby-unlock { margin-top: 1rem; }
.mh-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.mh-steps li { padding: 0.9rem 0 0; border-top: 1px solid var(--border); }
.mh-steps strong { display: block; margin-bottom: 0.25rem; font-weight: 600; }
.mh-steps span { display: block; font-size: 0.9rem; line-height: 1.5; color: var(--text-dim); }
.mh-settings { display: grid; gap: 0.75rem; justify-items: start; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.mh-settings-title { display: flex; align-items: center; gap: 0.4rem; margin: 0; font-size: 0.8rem; color: var(--text-faint); }
.mh-settings-title .icon { width: 14px; height: 14px; }
.mh .lobby-invite-setting { margin: 0; }
.mh .lobby-results-table { min-width: 30rem; }
.mh ol.podium > li:nth-child(-n+3) { border: 1px solid var(--border); background: var(--bg-panel-2); }
.mh ol.podium > li:nth-child(1) { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); background: color-mix(in srgb, var(--accent) 6%, var(--bg-panel-2)); }
.mh ol.podium > li:nth-child(n+4) { background: none; border: 0; border-top: 1px solid var(--border); border-radius: 0; }
.mh ol.podium .mono { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--body); }
.mh .lobby-faq { grid-column: auto; max-width: none; }
.mh .lobby-faq .faq details:first-child { border-top: 0; }
@media (max-width: 900px) {
  .mh-pair, .mh-pair.is-wide-right, .mh-steps { grid-template-columns: minmax(0, 1fr); }
  .mh-hero .lobby-title { max-width: none; }
}
@media (max-width: 480px) {
  .mh-versus { padding: 1.2rem 0.9rem; gap: 0.5rem; }
  .mh-av { width: 40px; height: 40px; }
  .mh-panel, .lobby .mh-panel.lobby-board { padding-inline: 0.9rem; }
}
.lobby .mh-feature .mh-card { background: var(--lit-bg); color: var(--lit-ink); border: 0; }
.lobby .mh-feature .mh-card-top { border-bottom-color: var(--lit-rule); color: var(--lit-ink-dim); }
.lobby .mh-feature .mh-chip { color: var(--lit-ink); font-weight: 600; }
.lobby .mh-feature .mh-chip.is-live { color: var(--lit-accent); }
.lobby .mh-feature .mh-chip.is-live::before { background: var(--lit-accent); }
.lobby .mh-feature .mh-versus { padding-block: 1.9rem; }
.lobby .mh-feature .mh-av { background: var(--lit-ink); color: var(--lit-on-ink); border: 0; font-family: var(--display); font-size: 1.25rem; font-weight: 500; }
.lobby .mh-feature .mh-player b { color: var(--lit-ink); font-family: var(--display); font-size: 1.3rem; font-weight: 500; }
.lobby .mh-feature .mh-player .num { font-size: 1rem; font-weight: 600; color: var(--lit-ink-dim); }
.lobby .mh-feature .mh-player .num.up { color: var(--up-fill); }
.lobby .mh-feature .mh-player .num.down { color: var(--lit-accent); }
.lobby .mh-feature .mh-vs { font-family: var(--display); font-style: italic; font-size: 1.6rem; color: var(--lit-accent); }
.lobby .mh-feature .mh-clock .num { color: var(--lit-ink); }
.lobby .mh-feature .mh-clock small, .lobby .mh-feature .mh-card-empty { color: var(--lit-ink-dim); }
.lobby .mh-feature .mh-card-empty b { color: var(--lit-ink); }
.lobby .mh-feature .mh-card-cta { background: var(--lit-ink); border-color: var(--lit-ink); color: var(--lit-on-ink); }
.lobby .mh-feature .mh-card-cta:hover { background: var(--lit-accent); border-color: var(--lit-accent); color: var(--lit-on-ink); }
.lobby .mh-feature :focus-visible { outline-color: var(--lit-accent); }
.lobby .arena-stats b { font-family: var(--display); font-size: clamp(1.6rem, 2.4vw, 2rem); font-weight: 500; color: var(--primary-fill); }
.lobby .arena-stats .is-live b::after { background: var(--primary); }
.lobby .duel-queue + .mh-band { margin-top: 1.5rem; }
.lobby .mh-clocks { gap: 0.85rem; }
@media (max-width: 600px) { .lobby .mh-clock-tile.is-bot { grid-column: 1 / -1; } }
.lobby .mh-clock-tile { gap: 0.95rem; padding: 1.25rem 1.35rem; background: var(--bg-card); border-color: var(--border-2); }
.lobby .mh-clock-tile:hover { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 7%, var(--bg-card)); transform: translateY(-2px); }
.lobby .mh-speed .icon { color: var(--primary); }
.lobby .mh-fig { font-size: clamp(2.4rem, 3.4vw, 3rem); color: var(--primary-fill); }
.lobby .mh-go { color: var(--primary); }
.lobby .mh-clock-tile:hover .mh-go { color: var(--primary-hover); }
.lobby .mh-clock-tile.is-bot,
.lobby .mh-clock-tile.is-bot.is-next { background: var(--lit-bg); border: 1px solid var(--lit-bg); color: var(--lit-ink); }
.lobby .mh-clock-tile.is-bot:hover { background: var(--primary-fill-hover); border-color: var(--lit-accent); }
.lobby .mh-clock-tile.is-bot .mh-fig { color: var(--lit-ink); }
.lobby .mh-clock-tile.is-bot .mh-speed, .lobby .mh-clock-tile.is-bot .mh-fig small { color: var(--lit-ink-dim); }
.lobby .mh-clock-tile.is-bot .mh-speed .icon, .lobby .mh-clock-tile.is-bot .mh-go { color: var(--lit-accent); }
.lobby .mh-clock-tile.is-bot:focus-visible { outline-color: var(--lit-accent); }
.lobby .mh-steps { counter-reset: mh-step; gap: 1.5rem; }
.lobby .mh-steps li { counter-increment: mh-step; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 0.9rem; padding: 0; border: 0; }
.lobby .mh-steps li::before { content: counter(mh-step, decimal-leading-zero); font-family: var(--mono); font-size: 0.85rem; line-height: 1.6; color: var(--primary); }
.lobby-split { align-items: start; }
.lobby-col { display: grid; gap: clamp(2rem, 4vw, 2.75rem); align-content: start; min-width: 0; }
.lobby details.mh-settings { display: block; }
.lobby details.mh-settings > summary { display: flex; align-items: center; gap: 0.45rem; cursor: pointer; list-style: none; font-size: 0.875rem; color: var(--text-dim); }
.lobby details.mh-settings > summary::-webkit-details-marker { display: none; }
.lobby details.mh-settings > summary::after { content: ""; width: 0.38em; height: 0.38em; margin-left: 0.15rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-0.15em) rotate(45deg); transition: transform .2s var(--ease); }
.lobby details.mh-settings[open] > summary::after { transform: translateY(0.1em) rotate(-135deg); }
.lobby details.mh-settings > summary:hover { color: var(--primary-hover); }
.lobby details.mh-settings[open] > summary { margin-bottom: 0.9rem; }
.lobby details.mh-settings > :not(summary) + :not(summary) { margin-top: 0.75rem; }
@media (prefers-reduced-motion: reduce) {
  .mh-clock-tile { transition: none; }
  .mh-clock-tile:hover, .lobby .mh-clock-tile:hover { transform: none; }
  .lobby details.mh-settings > summary::after { transition: none; }
}
.mh-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.5rem 2.75rem; align-items: center; }
.mh-hero:not(:has(> :nth-child(2))) { grid-template-columns: minmax(0, 1fr); }
.mh-hero h1, .mh-hero .mh-title { font-family: var(--display); font-weight: 500; font-size: clamp(2.2rem, 4.4vw, 3.3rem); line-height: 1.03; letter-spacing: -0.02em; max-width: 18ch; text-wrap: balance; }
.mh-hero .mh-lede { margin-top: 0.9rem; max-width: 34em; color: var(--text-dim); font-size: 1.02rem; line-height: 1.55; }
.mh-hero .mh-lede + .mh-lede { margin-top: 0.6rem; }
.mh-hero .mh-lede.small { font-size: 0.88rem; }
.mh-hero .arena-cta .btn { padding: 0.75rem 1.2rem; font-size: 0.98rem; }
.mh-hero .arena-cta .icon { width: 17px; height: 17px; }
.mh-hero-side { min-width: 0; }
.mh-card-body { padding: 1.1rem 1.15rem 1.2rem; }
.mh-card-body > * + * { margin-top: 0.9rem; }
.mh-grid { display: grid; gap: 1.1rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
.mh-grid.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mh-grid.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mh-grid.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mh-grid.is-side { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.mh-grid.is-stretch { align-items: stretch; }
.mh-panel > :last-child { margin-bottom: 0; }
.mh-panel h2.lobby-h, .mh-panel h3.lobby-h { font-family: var(--body); font-size: 1rem; font-weight: 600; letter-spacing: 0; margin: 0; border: 0; padding: 0; }
.mh-panel-head .mh-panel-sub, .mh-panel-head p { margin: 0.1rem 0 0; font-size: 0.8rem; color: var(--text-faint); }
.mh-panel-head > div { min-width: 0; }
.mh-panel-head .mh-panel-end { margin-left: auto; display: flex; gap: 0.5rem; align-items: center; font-size: 0.85rem; }
.mh-prose { color: var(--text-dim); font-size: 0.94rem; line-height: 1.6; }
.mh-prose > * + * { margin-top: 0.75rem; }
.mh-prose p, .mh-prose li { max-width: 34em; }
.mh-prose strong, .mh-prose b { color: var(--text); font-weight: 600; }
.mh-prose a:not(.btn) { color: var(--primary); }
.mh-prose h3 { font-family: var(--body); font-size: 0.98rem; font-weight: 600; color: var(--text); margin-top: 1.2rem; }
.mh-prose ul, .mh-prose ol:not(.mh-steps) { list-style: none; margin-left: 0; padding: 0; display: grid; gap: 0.5rem; }
.mh-prose ul > li, .mh-prose ol:not(.mh-steps) > li { position: relative; padding-left: 1.15rem; }
.mh-prose ul > li::before { content: ""; position: absolute; left: 0.1rem; top: 0.72em; width: 0.5rem; height: 1.5px; background: var(--primary); }
.mh-prose ol:not(.mh-steps) { counter-reset: mh-n; }
.mh-prose ol:not(.mh-steps) > li { counter-increment: mh-n; padding-left: 1.6rem; }
.mh-prose ol:not(.mh-steps) > li::before { content: counter(mh-n); position: absolute; left: 0; top: 0.05em; font-family: var(--mono); font-size: 0.78rem; color: var(--primary); }
.mh-prose .dj-table { margin-top: 0.75rem; }
.mh-prose .table-scroll { margin-top: 0.75rem; }
.mh-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.mh-checks li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.6rem; align-items: start; padding: 0.4rem 0; color: var(--text-dim); font-size: 0.92rem; line-height: 1.5; }
.mh-checks li::before { content: ""; width: 16px; height: 16px; margin-top: 0.15rem; background: var(--success, var(--up)); -webkit-mask: var(--mh-tick) center / contain no-repeat; mask: var(--mh-tick) center / contain no-repeat; }
.mh-checks li.is-no::before { background: var(--down); -webkit-mask-image: var(--mh-cross); mask-image: var(--mh-cross); }
.mh-checks strong { color: var(--text); font-weight: 600; }
:root {
  --mh-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E");
  --mh-cross: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}
.mh-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
.mh-kpis.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mh-kpis.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mh-kpi { display: grid; gap: 0.2rem; align-content: start; padding: 0.8rem 0 0; border-top: 1px solid var(--border); min-width: 0; }
.mh-kpi > span, .mh-kpi dt { font-size: 0.78rem; color: var(--text-faint); }
.mh-kpi > b, .mh-kpi dd { margin: 0; font-family: var(--mono); font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.mh-kpi > small { font-size: 0.76rem; color: var(--text-faint); }
dl.mh-kpis { margin: 0; }
dl.mh-kpis > div { display: grid; }
.mh-tile { display: flex; align-items: center; gap: 0.8rem; padding: 0.95rem 1.05rem; background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text); text-decoration: none; background-image: none; transition: border-color .15s var(--ease), transform .15s var(--ease); }
.mh-tile:hover { border-color: var(--primary); }
.mh-tile > div { min-width: 0; flex: 1; }
.mh-tile b { display: block; font-weight: 600; font-size: 0.95rem; }
.mh-tile span { display: block; font-size: 0.8rem; color: var(--text-faint); }
.mh-tile > .icon { width: 16px; height: 16px; color: var(--text-faint); }
.mh-panel .dj-table { margin: 0; }
.mh-panel > .table-scroll { margin-inline: -0.25rem; }
.mh-page .onpage { margin: 0 0 0.5rem; padding: 0; border: 0; }
.mh-page .onpage p { display: none; }
.mh-page .onpage ol { display: flex; flex-wrap: wrap; gap: 0.4rem; grid-template-columns: none; }
.mh-page .onpage a { padding: 0.35rem 0.8rem; border: 1px solid var(--border-2); border-left-width: 1px; border-radius: var(--radius); font-size: 0.82rem; }
.mh-page .onpage a[aria-current="true"] { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); }
@media (max-width: 1000px) {
  .mh-grid.is-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mh-grid.is-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .mh-hero, .mh-grid.is-2, .mh-grid.is-side { grid-template-columns: minmax(0, 1fr); }
  .mh-hero h1, .mh-hero .mh-title { max-width: none; }
}
@media (max-width: 600px) {
  .mh-grid.is-3, .mh-grid.is-4 { grid-template-columns: minmax(0, 1fr); }
  .mh-kpis.is-3, .mh-kpis.is-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .mh-tile { transition: none; } .mh-tile:hover { transform: none; } }
.mh-statgrid dl.arena-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0.65rem; margin: 0; }
.mh-statgrid dl.arena-stats > div { padding: 0.8rem 0 0; border: 0; border-top: 1px solid var(--border); }
.mh-statgrid dl.arena-stats > div:last-child { border-right: 0; }
.mh-statgrid dl.arena-stats dd b { font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
.mh-hero .banner { margin-top: 1.1rem; }
.mh-chip.mh-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.mh-market-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); gap: 0.45rem; }
.mh-market-grid li { display: flex; align-items: center; gap: 0.55rem; padding: 0.5rem 0.7rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.85rem; }
.mh-market-grid li b { font-weight: 500; }
.mh-market-grid li > :last-child { margin-left: auto; }
.mh-state { width: 7px; height: 7px; border-radius: 50%; background: var(--up); flex: none; }
.mh-market-grid li.is-frozen { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }
.mh-market-grid li.is-frozen .mh-state { background: var(--primary); }
.mh-page .wrap section:not(.mh-panel):not(.mh-card) { padding-block: 0; border-top: 0; }
.mk-facts.mh-grid { margin-top: 0; }
.mk-facts.mh-grid > div { display: block; padding: 1.1rem 0 0; border: 0; border-top: 1px solid var(--border); }
.mk-facts.mh-grid dt { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.7rem; }
.mk-facts.mh-grid dd { font-size: 0.92rem; }
.mk-notes .mh-band-head { margin-bottom: 1rem; }
.mk-closer-inner { padding: clamp(1.25rem, 3vw, 2rem) 0 0; border-top: 1px solid var(--border); }
.mh-statgrid dl.arena-stats:has(> div:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mh-page .lb-board-head { align-items: flex-start; gap: 0.85rem; margin-bottom: 1.1rem; }
.mh-page .lb-board-head > div { flex: 1; min-width: 0; }
.mh-page .lb-board-head h2 { font-family: var(--body); font-size: 1.1rem; font-weight: 600; letter-spacing: 0; }
.mh-page .lb-board-head p { font-size: 0.86rem; color: var(--text-faint); }
.mh-page .lb-board .empty-card { margin: 0; }
.mh-kpis:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mh-page .lb-board-head { padding-bottom: 1rem; }
.mh-page .lb-board { padding-top: 1.5rem; }
.rulebook.mh-page .rb-sec { padding-top: 1.5rem; border-top: 1px solid var(--border); }
.rulebook.mh-page .rb-sec + .rb-sec { margin-top: 1.75rem; }
.rulebook.mh-page .rb-sec > h2 { display: flex; align-items: center; gap: 0.75rem; margin-top: 0; padding-top: 0; border-top: 0; font-family: var(--body); font-size: 1.1rem; font-weight: 600; letter-spacing: 0; }
.rulebook.mh-page .rb-sec > h2 .rb-n { flex: none; min-width: 2ch; font-family: var(--mono); font-size: 0.875rem; font-weight: 400; color: var(--text-dim); }
.rulebook.mh-page .rb-head { margin-bottom: 0; }
.rulebook.mh-page .rb-head h1 { max-inline-size: none; }
.rb-types-card .mh-kpi small { overflow-wrap: anywhere; }
.mh-panel.mh-warn { padding: 1.1rem 1.25rem 1.2rem; border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--border)); border-radius: var(--radius-lg); background: var(--bg-panel); }
.mh-warn .disclosure-heading { margin: 0; padding: 0; border: 0; font-size: 1rem; }
.mh-page .legal-toc.mh-panel { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.mh-page .legal-toc.mh-panel .mh-panel-head { margin-bottom: 0.75rem; }
section.mh-page + section.mh-page { border-top: 0; padding-top: 0; }
section.mh-page:has(+ section.mh-page) { padding-bottom: clamp(1.25rem, 2.5vw, 2rem); }
section.pricing-head:has(+ section.mh-page) { padding-bottom: 0; }
.mh-warn .disclosure { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.mh-page .legal-toc.mh-panel ol { padding-left: 1.6rem; }
.mh-auth-grid { display: grid; grid-template-columns: minmax(0, 28rem) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.mh-auth-pitch { position: sticky; top: 7rem; padding-top: 2rem; }
@media (max-width: 900px) { .mh-auth-pitch { position: static; padding-top: 0; } }
.mh-auth-card { max-width: none; margin: 0; padding: clamp(1.25rem, 3vw, 1.75rem); background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.mh-auth-card .band { margin-top: 1.5rem; }
.mh-auth-card h1 { font-size: clamp(1.8rem, 3vw, 2.3rem); }
.mh-auth-pitch .mh-title { font-family: var(--display); font-weight: 500; font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.05; letter-spacing: -0.02em; max-width: 14ch; }
.mh-auth-sub { margin: 0.9rem 0 0; color: var(--text-dim); max-width: 34ch; }
.mh-auth-box { margin-top: 1.75rem; background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.mh-auth-list { list-style: none; margin: 0; padding: 0.4rem clamp(1.25rem, 3vw, 1.75rem); counter-reset: pitch; }
.mh-auth-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--border); }
.mh-auth-stats div { display: flex; flex-direction: column-reverse; gap: 0.2rem; padding: 1.1rem clamp(1.25rem, 3vw, 1.75rem); }
.mh-auth-stats div + div { border-left: 1px solid var(--border); }
.mh-auth-stats dd { margin: 0; font-family: var(--display); font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1; letter-spacing: -0.02em; }
.mh-auth-stats dt { font-size: 0.8rem; color: var(--text-dim); }
@media (max-width: 420px) { .mh-auth-stats div { padding-inline: 0.9rem; } }
.mh-auth-list li { display: flex; gap: 1rem; align-items: baseline; padding: 1.1rem 0; counter-increment: pitch; }
.mh-auth-list li + li { border-top: 1px solid var(--border); }
.mh-auth-list li::before { content: counter(pitch, decimal-leading-zero); font-family: var(--mono); font-size: 0.8rem; color: var(--text-faint); }
.mh-auth-list b { display: block; font-weight: 600; }
.mh-auth-list span { display: block; font-size: 0.88rem; color: var(--text-dim); }
@media (max-width: 900px) { .mh-auth-grid { grid-template-columns: minmax(0, 1fr); } .mh-auth-pitch .mh-title { font-size: 1.8rem; } }
.mh-titled { display: flex; align-items: center; gap: 0.7rem; }
.mh-page .dash-overview { margin: 0; padding: 0; border: 1px solid var(--border); }
.mh-page .dash-overview .dash-total { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-top: 0.15rem; }
.mh-page .dash-overview .dash-welcome { margin: 0; font-size: 0.8rem; color: var(--text-faint); }
.mh-page .mh-meta .live-status { font-family: var(--mono); }
.mh-page .accounts-grid, .mh-page #accounts { margin-top: 0; }
.mh-page .panel-title.mh-titled { font-family: var(--body); font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.mh-page .settings-section .section-title h2.mh-titled { font-family: var(--body); font-size: 1.1rem; font-weight: 600; letter-spacing: 0; }
.mh-profile-head .profile-identity .avatar { width: 56px; height: 56px; border-radius: var(--radius); font-size: 1.3rem; }
.mh-page .plan-steps { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.mh-page .plan-steps li { align-items: flex-start; padding: 0.9rem 0 0; border-top: 1px solid var(--border); line-height: 1.5; }
.mh-page .plan-steps li > span > strong:first-child { display: block; margin-bottom: 0.2rem; }
.mh-page .mh-panel .faq.band, .mh-page .mh-panel .limits-list.band, .mh-page .mh-panel .table-scroll.band { margin-top: 0; }
@media (max-width: 900px) { .mh-page .plan-steps { grid-template-columns: minmax(0, 1fr); } }
.mh-page .pp-head { max-width: none; }
.pp-identity { display: flex; align-items: center; gap: clamp(0.9rem, 2vw, 1.4rem); }
.pp-avatar { display: grid; place-items: center; width: clamp(64px, 8vw, 92px); height: clamp(64px, 8vw, 92px); flex: none; border-radius: var(--radius);
  background: var(--bg-panel-3); border: 1px solid var(--border-2);
  font-family: var(--display); font-size: clamp(1.8rem, 3.6vw, 2.6rem); color: var(--text); }
.mh-page .pp-name { margin: 0; font-size: clamp(2.4rem, 5.5vw, 4.2rem); line-height: 1; }
.mh-page .pp-record { margin-top: 0.6rem; }
.mh-page .pp-record-score { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.pp-hero-actions { align-items: center; }
.mh-page .pp-hero-actions .share-trigger { margin-top: 0; }
.mh-page .pp-form { margin: 0; }
.mh-page .pp-form .pp-form-area { height: clamp(150px, 16vw, 190px); margin-right: 0.5rem; }
.mh-page .pp-form figcaption { margin-top: 0.6rem; }
.mh-page .pp-form-total { font-size: 0.95rem; }
.mh-page .pp-highlights { margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.mh-page .pp-block .mh-panel-head h2 { margin: 0; padding: 0; border: 0; }
.pp-style-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1rem 2.5rem; }
.pp-style-grid .pp-game + .pp-game { margin-top: 0; }
.mh-page .pp-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: clamp(1.25rem, 3vw, 2rem) 0 0; border-top: 1px solid var(--border); }
.mh-page .pp-cta-actions { margin-top: 0; }
.mh-page .pp-note { margin-top: 1rem; }
@media (max-width: 600px) { .pp-identity { align-items: flex-start; } }
.pp-hero-actions:has(> a.btn-primary) [data-share-open] { background: var(--bg-panel); color: var(--text); border-color: var(--border-2); }
.mh-page .pp-hero-actions .btn-sm { padding: 0.75rem 1.2rem; font-size: 0.98rem; }
.mh-page .pp-cal-day.lvl-1 { background: color-mix(in srgb, var(--primary-deep) 40%, var(--bg-panel-3)); }
.mh-page .pp-cal-day.lvl-2 { background: color-mix(in srgb, var(--primary-deep) 65%, var(--bg-panel-3)); }
.mh-page .pp-cal-day.lvl-3 { background: color-mix(in srgb, var(--primary-deep) 85%, var(--bg-panel-3)); }
.mh-page .pp-cal-day.lvl-4 { background: var(--primary-deep); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 55%, transparent); }
.mh-profile-head .profile-identity { gap: 1.1rem; align-items: center; }
.mh-profile-head .profile-identity .avatar.pp-avatar { width: clamp(64px, 7vw, 84px); height: clamp(64px, 7vw, 84px); font-size: clamp(1.7rem, 3vw, 2.3rem); border-radius: var(--radius); }
.mh-profile-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.mh-page .settings-section .section-title { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 0.3rem; }
.mh-page .settings-section .section-title p { margin: 0; text-align: left; }
.mh-page .section-title h2.mh-titled { font-family: var(--body); font-size: 1.1rem; font-weight: 600; letter-spacing: 0; }
.mh-page .duel-stats-empty { max-width: none; padding: 1rem 0 0; border-top: 1px solid var(--border); color: var(--text-dim); }
.mh-page .settings-main .panel-head h3, .mh-page .settings-main .panel-title { font-family: var(--body); font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.mh-hero .what-yodoya-is { margin-top: 0.9rem; max-width: 34em; font-size: 0.86rem; line-height: 1.55; color: var(--text-faint); }
.mh-hero .what-yodoya-is + .small { margin-top: 0.55rem; max-width: 34em; font-size: 0.82rem; color: var(--text-faint); }
.src-ref { display: inline-block; min-width: 24px; min-height: 24px; text-align: center; line-height: 24px; }
.pf-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 2rem;
  align-self: center;
  margin: 0;
}
.pf-summary > div { display: grid; align-content: start; gap: 0.15rem; padding-top: 0.85rem; border-top: 1px solid var(--border); min-width: 0; }
.pf-summary dt { font-size: 0.8125rem; color: var(--text-faint); }
.pf-summary dd { margin: 0; }
.pf-summary dd.mono, .pf-summary dd > a.mono { font-size: clamp(1.35rem, 2.2vw, 1.7rem); font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; text-decoration: none; background-image: none; }
.pf-summary dd > a.mono:hover { color: var(--primary-hover); }
.pf-summary .pf-note { font-size: 0.8125rem; color: var(--text-dim); }
.pf-summary .pf-record { font-size: 1.05rem !important; line-height: 1.5; }
.pf-summary .pf-record small { margin-left: 0.35rem; font-family: var(--body); font-size: 0.8125rem; color: var(--text-dim); }
.pf-summary .is-gain, .rc-status.rc-paid, .rc-status.rc-confirmed { color: var(--up) !important; }
.pf-summary .is-loss, .rc-status.rc-failed, .rc-status.rc-rejected { color: var(--down) !important; }
.rc-status.rc-pending, .rc-status.rc-refunded, .rc-status.rc-processing { color: var(--accent); }
.mh-page .settings-section { margin-top: clamp(2.25rem, 4vw, 3rem); }
.mh-page .settings-main > .settings-section:first-child, .mh-page .settings-main > .username-callout + .settings-section { margin-top: 0; }
.mh-page .settings-main > .username-callout { margin-bottom: clamp(2.25rem, 4vw, 3rem); }
.mh-page .settings-section .section-title h2.mh-titled { font-family: var(--display); font-size: 1.45rem; font-weight: 600; letter-spacing: -0.01em; }
.mh-page .settings-section .section-title { margin: 0 0 1rem; }
.mh-page .section-lede { margin: -0.4rem 0 1.1rem; font-size: 0.92rem; color: var(--text-dim); }
.mh-page .settings-main .panel:not(.username-callout):not(.payout-wallet-manager):not(#wallet-send):not(.wallet-grid > .panel) {
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}
.mh-page .settings-main .wallet-grid .panel {
  padding: 1.25rem 1.35rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.mh-page .settings-main .panel.stat-row { padding-top: 0.9rem; border-top: 1px solid var(--border); }
.mh-page .settings-main .panel-flush .dj-table { border-top: 1px solid var(--border-2); }
.mh-page .username-callout {
  padding: 1.25rem 1.35rem;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border));
  background: color-mix(in srgb, var(--accent) 5%, var(--bg-panel));
  border-radius: var(--radius);
}
.mh-page .username-callout .panel-title { font-family: var(--display); color: var(--text); }
#payout-wallet-badge:not(.is-up) { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
#payout-wallet-badge.is-up { color: var(--up); border-color: color-mix(in srgb, var(--up) 45%, transparent); }
.mh-page .settings-nav a[aria-current="true"] { background: var(--bg-panel-2); color: var(--text); }
.mh-page .settings-nav a[aria-current="true"] .icon { color: var(--primary-hover); }
.mh-page .account-data-actions a.linklike:hover { color: var(--down); }
@media (max-width: 900px) { .pf-summary { margin-top: 1.25rem; } }
.mh-page #stats .section-title ~ .section-title,
.mh-page #stats .panel + .section-title { margin-top: 1.75rem; }
.mh-page #stats .section-title ~ .section-title h2.mh-titled { font-size: 1.1rem; }
.mh-page #stats .duel-stats-empty { margin: 0; padding: 0.9rem 0 0; border: 0; border-top: 1px solid var(--border); border-radius: 0; background: none; font-size: 0.92rem; color: var(--text-dim); }
.mh-page .pf-shell {
  grid-template-columns: 12.5rem minmax(0, 1fr);
  gap: 0;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.mh-page .pf-shell > .settings-nav {
  position: static;
  align-self: stretch;
  padding: 0.75rem 0.6rem;
  border-right: 1px solid var(--border);
}
.mh-page .pf-shell > .settings-nav a { min-height: 36px; padding: 0.4rem 0.65rem; font-size: 0.88rem; }
.mh-page .pf-shell > .settings-nav a[aria-current="page"] { background: var(--bg-panel-3); font-weight: 500; }
.mh-page .pf-shell > .settings-main { padding: 0 clamp(1rem, 2.5vw, 1.5rem) clamp(1.25rem, 2.5vw, 1.5rem); }
.pf-shell-head {
  margin: 0 calc(-1 * clamp(1rem, 2.5vw, 1.5rem)) 1.25rem;
  padding: 1rem clamp(1rem, 2.5vw, 1.5rem);
  border-bottom: 1px solid var(--border);
}
.pf-shell-head h1 { margin: 0; font-family: var(--body); font-size: 1.05rem; font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.pf-shell-head .app-sub { margin: 0.2rem 0 0; font-size: 0.82rem; color: var(--text-faint); text-align: left; }
.mh-page .pf-shell > .settings-main > .settings-section:first-child,
.mh-page .pf-shell > .settings-main > .username-callout:first-child { margin-top: 1.25rem; }
.mh-page .wrap .pf-shell .settings-main > section.settings-section + section.settings-section { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.mh-page .pf-shell .settings-section .section-title { margin: 0 0 0.6rem; gap: 0.25rem; }
.mh-page .pf-shell .settings-section .section-title h2.mh-titled {
  font-family: var(--body); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-faint);
}
.mh-page .pf-shell .settings-section .section-title p { font-size: 0.8rem; color: var(--text-faint); }
.mh-page .pf-shell .toggle-row, .pf-action-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
  padding: 0.75rem 0; border-bottom: 1px solid var(--border);
}
.mh-page .pf-shell .toggle-row:first-child { padding-top: 0.25rem; }
.mh-page .pf-shell .toggle-text { gap: 0.15rem; max-width: 34rem; }
.mh-page .pf-shell .toggle-text strong { font-size: 0.9rem; font-weight: 600; }
.mh-page .pf-shell .toggle-text .small { font-size: 0.78rem; line-height: 1.45; }
.mh-page .pf-shell .switch { width: 2.2rem; height: 1.25rem; }
.mh-page .pf-shell .switch::after { width: calc(1.25rem - 6px); height: calc(1.25rem - 6px); }
.mh-page .pf-shell .switch:checked::after { transform: translateX(0.95rem); }
.mh-page .pf-shell .toggle-foot { padding-top: 0.75rem; }
.mh-page .pf-shell .detail-list > div { grid-template-columns: 8rem minmax(0, 1fr); padding: 0.6rem 0; }
.mh-page .pf-shell .detail-list > div:last-child { padding-bottom: 0.6rem; border-bottom: 1px solid var(--border); }
.mh-page .pf-shell .detail-list dt { font-size: 0.82rem; }
.mh-page .pf-shell .detail-list dd { font-size: 0.85rem; }
.pf-action-row:last-child { border-bottom: 0; padding-bottom: 0; }
.mh-page .pf-shell .toggle-row:last-child { border-bottom: 0; padding-bottom: 0.25rem; }
.mh-page .pf-shell #stats .section-title ~ .section-title h2.mh-titled,
.mh-page .pf-shell #stats .panel + .section-title h2.mh-titled { font-size: 0.7rem; }
.pf-action-row .btn { flex: none; }
.pf-action-note { margin-top: 0.75rem; }
.mh-page .pf-shell .pf-danger { color: var(--down); border-color: color-mix(in srgb, var(--down) 45%, var(--border)); }
.mh-page .pf-shell .pf-danger:hover { background: color-mix(in srgb, var(--down) 12%, transparent); color: var(--down); }
@media (max-width: 860px) {
  .mh-page .pf-shell { grid-template-columns: minmax(0, 1fr); }
  .mh-page .pf-shell > .settings-nav { padding: 0.6rem; border-right: 0; border-bottom: 1px solid var(--border); }
  .mh-page .pf-shell > .settings-nav a { border: 0; }
}
@media (max-width: 560px) {
  .pf-action-row { flex-wrap: wrap; }
}
.mh-page .dash-overview { border-color: var(--border); }
.mh-page .dash-overview .mh-card-body { text-align: left; padding: 1.25rem 1.4rem 1.4rem; }
.mh-page .dash-overview .dash-welcome { font-size: 0.8125rem; color: var(--text-faint); }
.mh-page .dash-overview .dash-total { margin: 0.2rem 0 0.6rem; font-family: var(--mono); font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }
.mh-page .dash-overview .dash-chips { margin: 0; }
.mh-page .dash-overview .dash-chip { display: inline-flex; padding: 0.2rem 0.55rem; border: 1px solid var(--border-2); border-radius: var(--radius); font-family: var(--mono); font-size: 0.85rem; color: var(--text-dim); }
.mh-page .dash-overview .dash-chip.up { color: var(--up); border-color: color-mix(in srgb, var(--up) 45%, transparent); background: color-mix(in srgb, var(--up) 8%, transparent); }
.mh-page .dash-overview .dash-chip.down { color: var(--down); border-color: color-mix(in srgb, var(--down) 45%, transparent); background: color-mix(in srgb, var(--down) 8%, transparent); }
.mh-page .dash-overview .mh-card-top .dash-chip { border: 0; padding: 0; background: none; font-family: var(--body); }
.accounts-grid .account-card { position: relative; transition: border-color .2s var(--ease); }
.accounts-grid .account-card:has(.badge.is-gold) { border-color: color-mix(in srgb, var(--gold) 40%, var(--border)); }
.accounts-grid .account-card:has(.badge.is-down) { border-color: color-mix(in srgb, var(--down) 35%, var(--border)); }
.account-card-head h3 { font-family: var(--display); font-weight: 600; font-size: 1.35rem; letter-spacing: -0.01em; }
.account-card-equity .equity-value { font-family: var(--mono); font-weight: 500; }
.account-card-equity .equity-change.up { color: var(--up); }
.account-card-equity .equity-change.down { color: var(--down); }
.lines-togo { color: var(--up); }
.lines-bar { position: relative; height: 10px; margin: 0.65rem 0 0.55rem; border-radius: var(--radius); background: var(--bg-panel-3); }
.lines-bar i { position: absolute; top: 0; bottom: 0; display: block; }
.lines-bar .lb-loss { left: 0; border-radius: var(--radius) 0 0 var(--radius); background: color-mix(in srgb, var(--down) 22%, transparent); }
.lines-bar .lb-gain { border-radius: 0 var(--radius) var(--radius) 0; background: color-mix(in srgb, var(--up) 14%, transparent); }
.lines-bar .lb-fill { transition: left .5s var(--ease), width .5s var(--ease); }
.lines-bar .lb-fill.up { background: color-mix(in srgb, var(--up) 75%, transparent); }
.lines-bar .lb-fill.down { background: color-mix(in srgb, var(--down) 75%, transparent); }
.lines-bar .lb-daily { top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--accent); }
.lines-bar .lb-start { top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--text-faint); }
.lines-bar .lb-now { top: -5px; bottom: -5px; width: 4px; margin-left: -2px; border-radius: 2px; background: var(--text); box-shadow: 0 0 0 2px var(--bg-panel); transition: left .5s var(--ease); }
.lines-bar .lb-now.up { background: var(--up); }
.lines-bar .lb-now.down { background: var(--down); }
.lines-bar.is-entering .lb-fill { animation: lb-grow .7s cubic-bezier(.16, 1, .3, 1) .15s both; }
@keyframes lb-grow { from { transform: scaleX(0); } to { transform: none; } }
.lines-bar.is-entering .lb-fill.up { transform-origin: left center; }
.lines-bar.is-entering .lb-fill.down { transform-origin: right center; }
.wick-labels .mid { color: var(--text-faint); }
.account-facts .figure.is-floor .num { color: var(--down); }
.account-facts .figure.is-daily .num { color: var(--accent); }
.account-facts .figure.is-gain .num { color: var(--up); }
.account-facts .figure .label { font-size: 0.78rem; color: var(--text-faint); }
.mh-page .play-choices li { border-radius: var(--radius); }
.mh-page .play-choices li:first-child { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); background: color-mix(in srgb, var(--primary) 6%, var(--bg-panel)); }
.mh-page .play-choices strong { font-family: var(--display); font-size: 1.15rem; }
.payouts-table td .badge { font-size: 0.78rem; }
.summary-strip { border-color: color-mix(in srgb, var(--up) 35%, var(--border)); }
.summary-strip .summary-total { color: var(--up); }
@media (prefers-reduced-motion: reduce) {
  .lines-bar .lb-fill, .lines-bar .lb-now { transition: none; }
  .lines-bar.is-entering .lb-fill { animation: none; }
}
.mh-page .dash-overview, .mh-page .dash-overview .dash-chips { text-align: left; }
.wick-head .lines-togo { color: var(--up); }
.accounts-grid > .account-card:only-of-type { max-width: none; }
.accounts-grid .account-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 14rem;
  text-align: center;
  color: var(--text-dim);
  text-decoration: none;
  background: transparent;
  border: 1px dashed var(--border-2);
  transition: border-color .2s var(--ease), color .2s var(--ease), background-color .2s var(--ease);
}
.accounts-grid .account-add strong { font-family: var(--display); font-size: 1.25rem; color: var(--text); }
.accounts-grid .account-add > span:last-child { font-size: 0.9rem; }
.account-add-plus { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; margin-bottom: 0.4rem; border: 1px solid var(--border-2); border-radius: var(--radius); font-size: 1.4rem; line-height: 1; color: var(--primary-hover); }
.accounts-grid .account-add:hover { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 6%, transparent); }
.accounts-grid .account-add:hover strong { color: var(--primary-hover); }
.mh-page .dash-overview .dash-chips { display: flex; justify-content: flex-start; }
.wick-head .lines-togo { white-space: nowrap; }
@media (max-width: 640px) { .accounts-grid .account-add { min-height: 9rem; } }
.yl.arena-hero { padding-bottom: 0; margin-bottom: 0; }
.yl.arena-hero::before { content: none; }
.yl { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 1.5rem; align-items: start; grid-template-rows: auto 1fr; }
.lobby .yl-play { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; min-width: 0; padding: 1.5rem; background: var(--bg-card); border-radius: var(--radius); }
.yl-stage { grid-column: 1; grid-row: 1; }
.yl > .yl-main { grid-column: 1; grid-row: 2; }
.yl-title { font-family: var(--display); font-size: 2.1rem; font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; font-variation-settings: "opsz" 144; }
.yl-tag { margin: 0.6rem 0 0; font-size: 0.95rem; line-height: 1.5; color: var(--text-dim); text-wrap: pretty; }
.yl-label { margin: 1.4rem 0 0.55rem; font-size: 0.85rem; font-weight: 600; color: var(--text); }
.yl-clock-grid { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 0.45rem; }
.yl-clock {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15rem;
  min-height: 4.6rem; padding: 0.6rem 0.4rem; text-align: center; cursor: pointer;
  font: inherit; color: var(--text); background: var(--bg-sidebar); border: 1px solid var(--border); border-radius: var(--radius);
  transition: background-color .15s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.yl-clock:hover { background: var(--bg-card-hover); border-color: var(--border-2); }
.yl-clock[aria-pressed="true"] { background: var(--bg-card-hover); border-color: var(--primary-fill); box-shadow: inset 0 0 0 1px var(--primary-fill); }
.yl-clock:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.yl-clock-time { font-family: var(--mono); font-size: 1.3rem; line-height: 1.1; letter-spacing: -0.02em; }
.yl-clock-name { font-size: 0.8rem; line-height: 1.3; color: var(--text-dim); }
.yl-clock[data-clock-any] { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; gap: 0.75rem; min-height: 0; padding: 0.7rem 0.9rem; text-align: left; }
.yl-clock[data-clock-any] .yl-clock-time { font-family: var(--body); font-weight: 600; font-size: 1rem; }
.yl-clock[data-clock-any] .yl-tile-wait { margin-left: auto; }
.yl-tile-wait { font-size: 0.75rem; color: var(--text-faint); }
.yl-tile-wait:empty { display: none; }
.yl-tile-wait.is-waiting { color: var(--up); }
.yl-clock-desc { min-height: 2.9em; margin: 0.6rem 0 0; font-size: 0.85rem; line-height: 1.45; color: var(--text-dim); }
.yl-go { width: 100%; justify-content: center; margin-top: 0.9rem; padding-block: 1rem; font-size: 1.05rem; }
.yl-go[aria-busy="true"] { cursor: progress; opacity: .7; }
.yl-go-note { margin: 0.65rem 0 0; font-size: 0.82rem; line-height: 1.5; color: var(--text-faint); }
.yl-go-note a { color: var(--text-dim); }
.yl-play .lobby-unlock { margin-top: 1rem; }
.yl-opts { margin-top: 1.2rem; border-top: 1px solid var(--border); }
.yl-opt {
  display: flex; align-items: center; gap: 0.85rem; width: 100%; padding: 0.85rem 0.1rem; text-align: left; cursor: pointer;
  font: inherit; color: var(--text); background: none; border: 0; border-bottom: 1px solid var(--border);
}
.yl-opt > span { flex: 1; min-width: 0; }
.yl-opt b { display: block; font-size: 0.95rem; font-weight: 600; transition: color .15s var(--ease); }
.yl-opt small { display: block; margin-top: 0.1rem; font-size: 0.82rem; color: var(--text-dim); }
.yl-opt .yl-opt-go { width: 16px; height: 16px; color: var(--text-faint); transition: color .15s var(--ease); }
.yl-opt:hover b, .yl-opt:hover .yl-opt-go { color: var(--primary-hover); }
.yl-opt:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: var(--radius); }
.yl-opt.is-next { margin-top: 0.6rem; padding-inline: 0.85rem; border: 1px solid var(--border-2); border-radius: var(--radius); }
.yl-me { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.4rem 1rem; margin-top: auto; padding-top: 1.1rem; font-size: 0.88rem; }
.yl-me p { margin: 0; }
.yl-me-label { color: var(--text-faint); }
.yl-me b { margin: 0 0.3rem; font-weight: 600; }
.yl-me-sub { color: var(--text-dim); }
.yl-me-links { display: flex; gap: 1rem; }
.yl-me-links a { color: var(--text-dim); text-decoration: none; background-image: none; }
.yl-me-links a:hover { color: var(--text); }
.yl-me-set { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0; border: 0; background: none; color: var(--text-dim); font: inherit; cursor: pointer; }
.yl-me-set:hover, .yl-me-set:focus-visible { color: var(--text); }
.yl-me-set .icon { width: 14px; height: 14px; }
.lobby .yl-stage { display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 1.25rem 1.5rem 1.4rem; background: var(--bg-card); border-radius: var(--radius); }
.yl-ex { position: relative; display: grid; place-items: center; }
.yl-ex-label { position: absolute; top: 0; right: 0; font-size: 0.78rem; color: var(--text-faint); }
.yl-ex-svg { display: block; width: 100%; height: auto; max-height: 280px; overflow: visible; }
.yl-ex-svg .st-up { fill: var(--up); stroke: var(--up); stroke-width: 1; }
.yl-ex-svg .st-down { fill: var(--down); stroke: var(--down); stroke-width: 1; }
.yl-ex-svg .st-claim.is-a { fill: color-mix(in srgb, var(--text-primary) 7%, transparent); stroke: color-mix(in srgb, var(--text-primary) 45%, transparent); }
.yl-ex-svg .st-claim.is-b { fill: color-mix(in srgb, var(--accent) 9%, transparent); stroke: color-mix(in srgb, var(--accent) 55%, transparent); }
.yl-ex-svg .st-tag { font: 600 12px var(--body); }
.yl-ex-svg .st-tag.is-a { fill: var(--text-primary); }
.yl-ex-svg .st-tag.is-b { fill: var(--accent); }
.yl-ex-svg .st-line { fill: none; stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.yl-ex-svg .st-line.is-a { stroke: var(--text-primary); }
.yl-ex-svg .st-line.is-b { stroke: var(--accent); }
.yl-ex-svg .st-dot.is-a { fill: var(--text-primary); }
.yl-ex-svg .st-dot.is-b { fill: var(--accent); }
.yl-ex-svg .st-base { stroke: var(--border-2); stroke-dasharray: 3 4; }
.yl-ex-svg .st-now { stroke: var(--border); }
.yl-ex-svg .st-axis { font: 11px var(--body); fill: var(--text-faint); }
.yl-stage figcaption { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem 1.5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.yl-stage figcaption .yl-steps { flex: 1 1 32rem; }
.yl-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin: 0; padding: 0; list-style: none; counter-reset: yl-step; }
.yl-steps li { counter-increment: yl-step; font-size: 0.84rem; line-height: 1.45; color: var(--text-dim); }
.yl-steps b { display: block; margin-bottom: 0.2rem; font-size: 0.95rem; font-weight: 600; color: var(--text); }
.yl-steps b::before { content: counter(yl-step) ". "; font-family: var(--mono); font-weight: 400; color: var(--text-faint); }
.yl-how-link { display: inline-block; font-size: 0.85rem; color: var(--text-dim); white-space: nowrap; }
.yl-how-link:hover { color: var(--text); }
.yl-floor { margin-top: 1.5rem; }
.yl-main, .yl-aside { display: flex; flex-direction: column; min-width: 0; }
.yl-aside { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; align-items: start; }
.yl-list { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; }
.yl-tabs { display: flex; gap: 0.25rem; padding: 0.4rem; border-bottom: 1px solid var(--border); }
.yl-tabs button { display: inline-flex; align-items: baseline; font: 500 0.9rem var(--body); color: var(--text-faint); background: none; border: 0; border-radius: calc(var(--radius) - 2px); padding: 0.45rem 0.75rem; cursor: pointer; }
.yl-tabs button:hover { color: var(--text); }
.yl-tabs button[aria-pressed="true"] { color: var(--text); background: var(--bg-card-hover); }
.yl-tabs button:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.yl-tabs b { margin-left: 0.35rem; font-weight: 400; font-size: 0.8rem; color: var(--text-faint); }
.yl-list[data-tab="live"] #yl-pane-open { display: none; }
.yl-list:not([data-tab="live"]) #duel-live-panel { display: none; }
.lobby .yl-list .lobby-board { padding: 0; background: none; border: 0; border-radius: 0; }
.yl-list .table-scroll { margin-top: 0; }
.lobby .yl-list .duel-board-table { margin: 0; }
.lobby .yl-list .duel-board-table th { padding: 0.65rem 1rem; font-size: 0.82rem; font-weight: 500; color: var(--text-faint); border-bottom: 0; }
.lobby .yl-list .duel-board-table td { padding: 0.85rem 1rem; border-bottom: 0; border-top: 1px solid var(--border); }
.lobby .yl-list .duel-board-table tbody tr:hover td { background: var(--bg-card-hover); }
.lobby .yl-list .duel-board-table .btn-primary { background: transparent; color: var(--text); border: 1px solid var(--border-2); }
.lobby .yl-list .duel-board-table .btn-primary:hover { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent); }
.lobby .yl-list .duel-board-table:has(.empty-row) thead { display: none; }
.lobby .yl-list .duel-board-table .empty-row td { padding: 1.4rem 1rem; font-size: 0.9rem; color: var(--text-faint); text-align: left; }
.yl-list .stack-list { gap: 0; }
.yl-list .duel-waiting-row { background: none; border: 0; border-top: 1px solid var(--border); border-radius: 0; padding: 0.85rem 1rem; }
.yl-list .duel-waiting-row:first-child { border-top: 0; }
.yl-empty { margin: 0; padding: 1.4rem 1rem; font-size: 0.9rem; color: var(--text-faint); }
.yl-list:not([data-tab="live"]) .yl-empty,
.yl-list[data-tab="live"] #duel-live-panel:not([hidden]) ~ .yl-empty { display: none; }
.yl-empty-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.25rem; }
.yl-empty-row .btn { flex: none; }
.lobby .yl-list .duel-board-table tr.is-mine td { background: var(--bg-card-hover); }
.yl-mine-note { margin-left: 0.35rem; font-size: 0.82rem; color: var(--text-faint); }
.lobby .yl-list .duel-board-table tbody:has(.is-mine) .empty-row { display: none; }
.yl-feature-card { padding: 0.9rem 1rem 1rem; background: var(--bg-card); border-radius: var(--radius); }
.yl-feature-head { display: flex; flex-direction: column; gap: 0.1rem; margin: 0 0 0.5rem; font-size: 0.82rem; color: var(--text-faint); }
.yl-feature-head > :first-child { white-space: nowrap; color: var(--text-dim); font-weight: 500; }
.yl-live { color: var(--up); display: inline-flex; align-items: center; gap: 0.4rem; }
.yl-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--up); }
.yl-feature-player { display: flex; align-items: center; gap: 0.5rem; margin: 0; padding: 0.45rem 0; font-size: 0.95rem; }
.yl-feature-player b { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yl-feature-player .num { font-size: 0.9rem; }
.yl-seat { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.yl-seat.is-a { background: var(--text-primary); }
.yl-seat.is-b { background: var(--accent); }
.yl-feature-clock { display: flex; align-items: baseline; gap: 0.6rem; margin: 0; padding: 0.6rem 0; border-block: 1px solid var(--border); }
.yl-feature-clock > :first-child { font-family: var(--mono); font-size: 1.5rem; line-height: 1; color: var(--text); }
.yl-feature-clock.is-verdict > :first-child { font-family: var(--body); font-weight: 600; font-size: 1.05rem; }
.yl-feature-clock small { font-size: 0.8rem; color: var(--text-faint); }
.yl-feature-cta { width: 100%; justify-content: center; margin-top: 0.8rem; }
.yl-feature-empty { margin: 0; font-size: 0.9rem; color: var(--text-dim); }
.yl-feature-empty b { display: block; color: var(--text); margin-bottom: 0.2rem; }
.yl-feature:not(:has(.yl-feature-card:not([hidden]))) { display: none; }
.lobby .yl-top { padding: 0.9rem 1rem; background: var(--bg-card); border-radius: var(--radius); }
.yl-top-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.4rem; }
.yl-top-head h2 { font-family: var(--display); font-size: 1.05rem; font-weight: 600; font-variation-settings: "opsz" 24; }
.yl-top-head a { font-size: 0.82rem; color: var(--text-dim); }
.yl-top ol.podium { display: block; }
.yl-top ol.podium > li, .yl-top ol.podium > li:nth-child(-n+3) {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0; text-align: left;
  background: none; border: 0; border-top: 1px solid var(--border); border-radius: 0; order: 0;
}
.yl-top ol.podium > li:first-child { border-top: 0; }
.yl-top ol.podium .rank-pill { width: auto; height: auto; min-width: 1.3rem; padding: 0; background: none; border: 0; font-family: var(--mono); font-size: 0.8rem; color: var(--text-faint); }
.yl-top ol.podium > li:nth-child(1) .rank-pill { color: var(--accent); }
.yl-top ol.podium .mono { flex: 1; min-width: 0; font-family: var(--body); font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yl-top .duel-empty-state { padding: 0.5rem 0; }
.yl-more { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--border); }
.yl-more-col { display: grid; gap: 2.5rem; align-content: start; min-width: 0; }
.yl-more-title, .yl-more .lobby-h { font-family: var(--display); font-size: 1.3rem; font-weight: 600; font-variation-settings: "opsz" 24; }
.yl-more-title { margin-bottom: 0.9rem; }
.yl-more .lobby-section-head { margin-bottom: 0.9rem; }
.yl-more .mh-steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
.yl-more .mh-steps li { padding: 0.85rem 0; }
.yl-more .lobby-lede { margin: 0 0 1.1rem; max-width: 40em; color: var(--text-dim); }
.yl-more .lobby-lede.small { font-size: 0.85rem; color: var(--text-faint); }
.yl-more .lobby-winnings { margin-top: 0.75rem; padding-top: 0; border-top: 0; justify-content: flex-start; font-size: 0.85rem; }
.yl-more .lobby-when { white-space: normal; }
.yl-more .lobby-record, .yl-more .lobby-results { min-width: 0; }
.duel-page.lobby .wrap { max-width: var(--content-width); }
.yl-pop {
  position: fixed; inset: auto; margin: 0; width: min(360px, calc(100vw - 2rem)); max-height: calc(100vh - 6rem); overflow: auto;
  padding: 1rem 1.1rem 1.1rem; color: var(--text); background: var(--bg-card-hover); border: 1px solid var(--border-2); border-radius: var(--radius);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.7);
}
.yl-pop::backdrop { background: transparent; }
.yl-pop-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.9rem; }
.yl-pop-head h2 { font-family: var(--display); font-size: 1.1rem; font-weight: 600; font-variation-settings: "opsz" 24; }
.yl-pop-close { display: inline-grid; place-items: center; width: 2rem; height: 2rem; padding: 0; border: 1px solid transparent; border-radius: var(--radius); background: none; color: var(--text-dim); cursor: pointer; }
.yl-pop-close:hover { color: var(--text); border-color: var(--border-2); }
.yl-pop .lobby-invite-setting { margin: 0; padding: 0 0 0.9rem; border-top: 0; border-bottom: 1px solid var(--border); }
.yl-pop .toggle-row { gap: 1rem; }
.yl-pop .toggle-text .small { line-height: 1.5; font-size: 0.82rem; }
.yl-sound-row { padding: 0.9rem 0 0; border-bottom: 0; align-items: flex-start; cursor: default; font-size: 0.9rem; }
.yl-sound-row .duel-sound-toggle { flex: none; }
@media (max-width: 1080px) {
  .yl { grid-template-columns: minmax(0, 1fr) 360px; }
  .yl-more { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .yl { grid-template-columns: minmax(0, 1fr); }
  .lobby .yl-play, .yl-stage, .yl > .yl-main { grid-column: 1; grid-row: auto; }
}
@media (max-width: 560px) {
  .lobby .yl-play, .lobby .yl-stage { padding: 1.1rem; }
  .yl-title { font-size: 1.85rem; }
  .yl-steps { grid-template-columns: minmax(0, 1fr); gap: 0.9rem; }
  .yl-ex-label { position: static; justify-self: end; margin-bottom: 0.4rem; }
.yl-ex-svg .st-tag { font-size: 16px; }
  .yl-ex-svg .st-axis { font-size: 15px; }
}
.site-header .wrap { max-width: var(--content-width); padding-inline: 1.5rem; padding-block: 0.7rem; position: relative; }
.site-footer .wrap { max-width: var(--content-width); padding-inline: 1.5rem; }
.terminal-page .site-header .wrap { max-width: none; padding-inline: 2rem; }
.brand-mark { width: 40px; height: 40px; }
.nav-links { display: contents; }
@media (min-width: 1100px) {
.site-header .nav-links {
    display: flex; align-items: center; gap: 1.75rem;
    position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin-inline: auto; width: max-content;
  }
.site-header .nav-links > details.nav-more { position: relative; align-self: stretch; display: flex; align-items: center; }
  .site-header .nav-links .nav-more-panel {
    right: auto; left: 50%;
    margin-left: calc(min(36rem, 100vw - 2rem) / -2);
    transform-origin: top center;
  }
}
.duel-page.lobby .wrap { padding-inline: 1.5rem; }
.mh-page .mh-panel:not(.legal-toc):not(.mh-warn) > .mh-panel-head h2.lobby-h {
  font-family: var(--display); font-size: clamp(1.4rem, 2.2vw, 1.7rem); font-weight: 500;
  letter-spacing: -0.01em; line-height: 1.15;
}
.mh-page .mh-panel:not(.legal-toc):not(.mh-warn) > .mh-panel-head p { margin-top: 0.3rem; font-size: 0.88rem; color: var(--text-dim); }
.mh-page .plan-compare { max-width: none; }
@media (min-width: 900px) {
  .mh-warn .disclosure ul { display: block; columns: 2; column-gap: 2.75rem; }
  .mh-warn .disclosure li { max-width: none; break-inside: avoid; margin-bottom: 0.85rem; }
}
.rulebook table.dj-table, .rulebook .rb-defs, .rulebook p.rb-formula, .legal.rulebook p.rb-formula { max-width: 38rem; }
.draft-pools thead th { font-size: 0.78rem; font-weight: 500; color: var(--text-secondary); }
.game-public-body { margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.game-public-body > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.draft-result .share-trigger, .share-trigger + .table-scroll, .share-trigger + table { margin-bottom: 1.25rem; }
@media (min-width: 1000px) {
  .coach-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2.5rem; }
}
.site-footer .footer-disclosure p { color: inherit; }
#ticket-form .ticket-amount-row .input-affix { min-height: 38px; }
#ticket-form #ticket-margin { height: 36px; padding-block: 0; font-family: var(--mono); font-size: 1.05rem; font-weight: 500; }
#ticket-form .ticket-amount-row .btn { min-height: 38px; padding-inline: 0.8rem; }
#ticket-form .ticket-label-row .tp-coin { margin: 0; min-height: 0; text-align: end; font-size: 0.75rem; color: var(--text-faint); }
.term-side .size-slider-pct { min-height: 32px; }
.term-side .size-slider-pct input[type="number"] { height: 30px; font-size: 0.85rem; }
@media (min-width: 1600px) {
  .terminal-page .term-layout { grid-template-columns: minmax(0, 1fr) var(--term-book-w, 300px) var(--term-side-w, 340px); }
  .terminal-page .term-layout:not(:has(> .term-book > :not([hidden]))) { grid-template-columns: minmax(0, 1fr) var(--term-side-w, 340px); }
}
.term-resizer { position: absolute; z-index: 5; touch-action: none; }
.term-resizer[hidden] { display: none; }
.term-resizer.is-vertical { width: 9px; cursor: col-resize; }
.term-resizer.is-horizontal { height: 9px; cursor: row-resize; }
.term-resizer::after { content: ""; position: absolute; background: transparent; transition: background-color .15s var(--ease); }
.term-resizer.is-vertical::after { top: 0; bottom: 0; left: 4px; width: 1px; }
.term-resizer.is-horizontal::after { left: 0; right: 0; top: 4px; height: 1px; }
.term-resizer:hover::after, .term-resizer.is-dragging::after, .term-resizer:focus-visible::after { background: var(--primary); }
.term-resizer.is-vertical:is(:hover, .is-dragging, :focus-visible)::after { width: 2px; left: 3.5px; }
.term-resizer.is-horizontal:is(:hover, .is-dragging, :focus-visible)::after { height: 2px; top: 3.5px; }
.term-resizer:focus-visible { outline: none; }
.term-resizer::before {
  content: ""; position: absolute; z-index: 1; border-radius: 2px;
  background: var(--text-dim); transition: background-color .15s var(--ease);
}
.term-resizer.is-vertical::before { top: 50%; left: 3px; width: 3px; height: 36px; margin-top: -18px; }
.term-resizer.is-horizontal::before { left: 50%; top: 3px; height: 3px; width: 36px; margin-left: -18px; }
.term-resizer:is(:hover, .is-dragging, :focus-visible)::before { background: var(--primary); }
body.is-resizing-panes { user-select: none; }
body.is-resizing-x, body.is-resizing-x * { cursor: col-resize !important; }
body.is-resizing-y, body.is-resizing-y * { cursor: row-resize !important; }
body.is-resizing-panes iframe { pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .term-resizer::before, .term-resizer::after { transition: none; } }
.mh-page .plan-steps { gap: 1rem 2rem; }
.mh-page .plan-steps li { gap: 1rem; padding-top: 1.1rem; }
.mh-page .plan-steps li > .mono {
  width: auto; height: auto; border: 0; border-radius: 0; place-items: start;
  font-family: var(--display); font-size: 2.1rem; font-weight: 500; line-height: 0.9;
  font-variant-numeric: lining-nums; color: var(--primary);
}
.mh-page .plan-steps li > span:last-child { color: var(--text-dim); }
.mh-page .plan-steps li > span > strong:first-child { font-family: var(--display); font-size: 1.05rem; }
.pr-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem clamp(2rem, 5vw, 4rem); }
.pr-notes > div { padding-top: 1rem; border-top: 1px solid var(--border); }
.pr-notes-h { margin: 0 0 0.45rem; font-family: var(--display); font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.pr-notes .pr-pay, .pr-notes .what-yodoya-is { margin: 0; max-width: 34em; font-size: 0.92rem; line-height: 1.6; color: var(--text-dim); }
@media (max-width: 760px) { .pr-notes { grid-template-columns: minmax(0, 1fr); } }
.pr-compare .plan-compare thead th { font-size: 1.35rem; letter-spacing: -0.01em; }
.pr-compare .plan-compare tr.is-fee td.num {
  font-family: var(--display); font-size: 1.45rem; font-weight: 600; letter-spacing: -0.015em;
  font-variant-numeric: lining-nums; color: var(--text);
}
.pr-compare .plan-compare tr.is-lines td { padding-block: 1rem 0.85rem; }
.pr-compare .plan-compare tr.is-key td { font-weight: 600; color: var(--text); }
.pr-compare .plan-compare tr.is-same th, .pr-compare .plan-compare tr.is-same td { color: var(--text-dim); font-size: 0.85rem; }
.pr-compare .plan-compare tr:not(.is-same) + tr.is-same > * { border-top: 1px solid var(--border-2); }
.plan-lines { --span: calc(var(--lo) + var(--hi)); display: block; min-width: 9.5rem; max-width: 15rem; }
.pl-track { position: relative; display: block; height: 0.5rem; border-radius: 2px; background: rgba(237, 232, 218, 0.07); }
.pl-track i { position: absolute; top: 0; bottom: 0; }
.pl-down { left: calc((var(--lo) - var(--f)) / var(--span) * 100%); width: calc(var(--f) / var(--span) * 100%); background: var(--down); border-radius: 2px 0 0 2px; }
.pl-up { left: calc(var(--lo) / var(--span) * 100%); width: calc(var(--t) / var(--span) * 100%); background: var(--up); border-radius: 0 2px 2px 0; }
.pl-track .pl-start { left: calc(var(--lo) / var(--span) * 100%); width: 2px; margin-left: -1px; top: -0.3rem; bottom: -0.3rem; background: var(--text); }
.pl-ends { position: relative; display: block; height: 1.1rem; margin-top: 0.45rem; font-size: 0.75rem; color: var(--text-dim); white-space: nowrap; }
.pl-ends > span { position: absolute; top: 0; }
.pl-lo { left: calc((var(--lo) - var(--f)) / var(--span) * 100%); }
.pl-hi { left: calc((var(--lo) + var(--t)) / var(--span) * 100%); transform: translateX(calc(-100% * min(var(--t), 1))); }
.plan-compare .pl-ends .num { font-family: var(--mono); }
.limits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.75rem clamp(2rem, 5vw, 4rem); }
.limit-payout, .limit-leverage { padding-top: 1.25rem; border-top: 1px solid var(--border); }
.limits h3 { margin: 0 0 1.1rem; font-family: var(--display); font-size: 1.3rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; color: var(--text); }
.limits p { margin: 0; max-width: 34em; font-size: 0.92rem; line-height: 1.6; color: var(--text-dim); }
.limits .limit-aside { margin-top: 0.75rem; font-size: 0.84rem; color: var(--text-faint); }
.sweep-flow {
  list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 1.1rem; padding: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card);
}
.sweep-flow li { position: relative; display: flex; flex-direction: column; gap: 0.3rem; padding: 0.95rem 1rem 0.9rem 1.35rem; font-size: 0.8rem; line-height: 1.35; color: var(--text-dim); }
.sweep-flow li:first-child { padding-left: 1rem; }
.sweep-flow li + li { border-left: 1px solid var(--border); }
.sweep-flow li + li::before {
  content: ""; position: absolute; left: -6px; top: 50%; width: 10px; height: 10px;
  border-top: 1px solid var(--border-2); border-right: 1px solid var(--border-2); background: var(--bg-card);
  transform: translateY(-50%) rotate(45deg);
}
.sf-fig { font-family: var(--display); font-size: 1.75rem; font-weight: 500; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: lining-nums; color: var(--text); }
.lev-chart { list-style: none; display: grid; gap: 0.5rem; margin: 0 0 1.1rem; padding: 0; }
.lev-chart li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 1rem; align-items: center; font-size: 0.86rem; color: var(--text-dim); }
.lev-bar { display: block; justify-self: end; height: 0.55rem; width: calc(var(--lev) / var(--lev-max) * 100%); min-width: 4px; border-radius: 2px; background: color-mix(in srgb, var(--text) 45%, transparent); }
.lev-label { font-variant-numeric: tabular-nums; }
.mh-page .limits .limits-list.limits-short { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem 2rem; }
.mh-page .limits .limits-list.limits-short li { padding-top: 1.1rem; font-size: 0.88rem; }
.mh-page .limits .limits-list li strong { font-size: 1rem; line-height: 1.3; }
@media (max-width: 1000px) { .mh-page .limits .limits-list.limits-short { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .limits { grid-template-columns: minmax(0, 1fr); }
  .mh-page .limits .limits-list.limits-short { grid-template-columns: minmax(0, 1fr); }
  .sf-fig { font-size: 1.45rem; }
  .sweep-flow li { padding-inline: 0.75rem 0.6rem; }
  .sweep-flow li + li { padding-left: 1rem; }
}
.pt-link .input-with-action input { font-size: 0.85rem; }
.pt-terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0 0; }
.pt-terms div { display: grid; gap: 0.15rem; min-width: 0; }
.pt-terms dt { font-size: 0.8125rem; color: var(--text-faint); }
.pt-terms dd { margin: 0; }
.pt-bars { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.75rem; align-items: end; margin-bottom: 1rem; }
.pt-bar { display: grid; justify-items: center; gap: 0.35rem; min-width: 0; }
.pt-bar-value { font-size: 0.8125rem; color: var(--text-dim); min-height: 1.2em; }
.pt-bar-track { display: flex; align-items: flex-end; width: 100%; max-width: 3.5rem; height: 9rem; border-bottom: 1px solid var(--border); }
.pt-bar-fill { display: block; width: 100%; min-height: 2px; background: var(--up); border-radius: 4px 4px 0 0; }
.pt-bar:hover .pt-bar-fill { opacity: 0.8; }
.pt-bar-label { font-size: 0.8125rem; color: var(--text-faint); }
.rc-status.rc-available { color: var(--up); }
@media (max-width: 640px) {
  .pt-terms { grid-template-columns: 1fr; gap: 0.6rem; }
  .pt-bars { gap: 0.4rem; }
  .pt-bar-track { height: 6rem; }
  #partner-sales th:nth-child(2), #partner-sales td:nth-child(2) { display: none; }
  #partner-sales td:first-child { white-space: nowrap; }
}
@property --scroll-fade-l { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --scroll-fade-r { syntax: "<length>"; inherits: false; initial-value: 0px; }
@keyframes scroll-edge-fade {
  0% { --scroll-fade-l: 0px; --scroll-fade-r: 2rem; }
  6% { --scroll-fade-l: 2rem; }
  94% { --scroll-fade-r: 2rem; }
  100% { --scroll-fade-l: 2rem; --scroll-fade-r: 0px; }
}
@supports (animation-timeline: scroll()) {
  .scroll-x, .table-scroll {
    animation: scroll-edge-fade linear both;
    animation-timeline: scroll(self inline);
    mask-image: linear-gradient(to right, transparent, #000 var(--scroll-fade-l), #000 calc(100% - var(--scroll-fade-r)), transparent);
  }
@media (max-width: 1200px) { #panel-positions .scroll-x { animation: none; mask-image: none; } }
  @media (max-width: 760px) {
    .tp-chart.is-traders .tp-plot, .tp-nav {
      animation: scroll-edge-fade linear both;
      animation-timeline: scroll(self inline);
      mask-image: linear-gradient(to right, transparent, #000 var(--scroll-fade-l), #000 calc(100% - var(--scroll-fade-r)), transparent);
    }
  }
}
@media (max-width: 560px) {
.mh-page .lb-board-head > div { flex: 1 1 100%; }
.mh-page .pf-shell > .settings-nav { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0.25rem; }
  .mh-page .pf-shell > .settings-nav a { flex-direction: column; justify-content: center; gap: 0.25rem; min-height: 52px; padding: 0.4rem 0.2rem; font-size: 0.78rem; text-align: center; }
.mh-market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.4rem; }
  .mh-market-grid li { flex-wrap: wrap; row-gap: 0.1rem; padding: 0.45rem 0.6rem; }
  .mh-market-grid li > :last-child { margin-left: 0; flex-basis: 100%; padding-left: calc(7px + 0.55rem); }
.draft-scores { display: flex; flex-direction: column; position: relative; }
  .draft-scores tbody { display: block; }
  .draft-scores thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .draft-scores caption { display: block; order: 1; }
  .draft-scores tbody tr {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.35rem 0.75rem;
    padding: 0.75rem 0; border-bottom: 1px solid var(--border-subtle);
  }
  .draft-scores tbody th { grid-column: 1 / -1; padding: 0; border: 0; white-space: normal; }
  .draft-scores tbody td.num { padding: 0; border: 0; text-align: left; font-size: 0.85rem; white-space: nowrap; }
  .draft-scores tbody td::before {
    content: attr(data-label); display: block; margin-bottom: 0.1rem;
    font-family: var(--body); font-size: 0.75rem; color: var(--text-secondary);
  }
  .draft-scores tr.is-winner .draft-score-total { font-size: 0.95rem; }
.lobby-results-table, .mh .lobby-results-table { min-width: 0; font-size: 0.86rem; table-layout: auto; }
  .lobby-results-table td:not(.lobby-when) { width: 50%; }
  .lobby-results-table col.lobby-clock-cell, .lobby-results-table .lobby-clock-cell { display: none; }
  .lobby-results-table col.lr-when { width: 5.25rem; }
  .lobby-results-table col.lr-prize { width: 4.5rem; }
  .lobby-results-table th + th, .lobby-results-table td + td { padding-left: 0.5rem; }
  .lr-cell { flex-direction: column; gap: 0.1rem; }
  .lobby-results-table td.lobby-when { font-size: 0.78rem; }
  .lobby-results-table td { vertical-align: top; }
.lobby-results-table .lr-cell .lobby-player { padding-block: 4px; }
.chart-toolbar { flex-wrap: wrap; row-gap: 0.25rem; }
  .chart-bottom { flex-wrap: wrap; row-gap: 0.25rem; column-gap: 0.4rem; }
  .chart-clock { margin-left: 0; order: 3; flex-basis: 100%; }
  .hours-row { grid-template-columns: minmax(0, 9rem) 1fr; }
.chart-toolbar { position: relative; }
  .chart-toolbar .chart-tools, .chart-toolbar .chart-overlays, .chart-toolbar .tb-menu { position: static; }
  .chart-toolbar .chart-overlays-menu, .chart-toolbar .tb-menu-list { left: 0; right: auto; max-width: 100%; }
}
.duel-room .terminal-bar { padding: 0.5rem 0.85rem 0; }
.duel-room .terminal-bar-actions { flex-wrap: wrap; }
.duel-room .terminal-bar-actions .btn { white-space: nowrap; }
@media (max-width: 480px) {
.duel-room .terminal-bar-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .duel-room .terminal-bar-actions .btn { width: 100%; justify-content: center; }
  .duel-room .terminal-bar-actions > :not(.btn) { grid-column: 1 / -1; }
}
@media (max-width: 400px) {
.lobby-results-table col.lr-when, .lobby-results-table .lobby-when-head, .lobby-results-table td.lobby-when { display: none; }
}
@media (max-width: 420px) {
.bottom-tabs #positions-body > tr {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "market pnl"
      "side   pnl"
      "size   entry"
      "mark   lev"
      "fees   breach"
      "sltp   sltp"
      "act    act";
  }
}
@media (max-width: 640px) {
  .scroll-x:has(> table.t-cards), .table-scroll:has(> table.t-cards) { overflow: visible; animation: none; mask-image: none; }
  table.t-cards { display: block; width: 100%; min-width: 0 !important; }
  table.t-cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table.t-cards caption:not(.visually-hidden) { display: block; }
  table.t-cards tbody { display: grid; gap: 0.6rem; }
  table.t-cards tbody + tbody { margin-top: 0.6rem; }
  table.t-cards tbody > tr {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border); border-radius: var(--radius);
    background: color-mix(in srgb, var(--text) 3%, transparent);
  }
  table.t-cards tbody > tr > * {
    padding: 0; border: 0; text-align: left !important; white-space: normal; min-width: 0; overflow-wrap: anywhere;
  }
  table.t-cards tbody > tr > [data-label]::before {
    content: attr(data-label); display: block; margin-bottom: 0.15rem;
    font-family: var(--body); font-size: 0.75rem; font-weight: 400; letter-spacing: 0; color: var(--text-faint);
  }
table.t-cards tbody > tr > :first-child { grid-column: 1 / -1; font-weight: 600; color: var(--text); }
  table.t-cards tbody > tr > :first-child::before,
  table.t-cards tbody > tr > :has(.btn)::before { content: none; }
  table.t-cards tbody > tr > :has(.btn) { grid-column: 1 / -1; }
  table.t-cards tbody > tr > :has(.btn) .row-actions,
  table.t-cards tbody > tr > .row-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: flex-start; }
table.t-cards tbody > tr.empty-row { display: block; padding: 1rem; border-style: dashed; background: none; }
  table.t-cards tbody > tr.empty-row > td { display: block; font-weight: 400; color: var(--text-dim); }
  table.t-cards tbody > tr.sk-tr { display: block; }
}
@media (max-width: 640px) {
  table.t-sticky tr > :first-child {
    position: sticky; left: 0; z-index: 1;
    background: var(--sticky-bg, var(--bg));
    box-shadow: 1px 0 0 var(--border);
  }
  @supports (animation-timeline: scroll()) {
    .scroll-x:has(> table.t-sticky), .table-scroll:has(> table.t-sticky) {
      mask-image: linear-gradient(to right, #000 calc(100% - var(--scroll-fade-r)), transparent);
    }
  }
}
.mk-lev-sub { display: none; }
@media (max-width: 480px) {
  .mk-lev-sub { display: inline; }
  table.mk-table tr > .mk-lev, table.mk-table thead th:nth-child(4) { display: none; }
  table.mk-table tr > :nth-child(3):not([colspan]) { padding-right: 0; }
}
