
@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;
--washi-dim: #9b9789;
  --washi:     #ede8da;
  --shu:       #c1382a;
--radius-sm:   4px;
  --radius:      8px;
  --radius-md:   var(--radius);
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-pill: 28px;
--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 { 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: 60ch; }
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;
}
.eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  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(14px);
  transition: opacity .6s cubic-bezier(.16,.8,.3,1), transform .6s cubic-bezier(.16,.8,.3,1);
  transition-delay: calc(var(--i, 0) * 70ms);
}
html.js-reveal [data-reveal].in-view,
html.js-reveal [data-reveal-group] > *.in-view {
  opacity: 1;
  transform: none;
}
html.js-reveal [data-reveal] .profit-lock-wick .wick-fill {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .9s cubic-bezier(.16,.8,.3,1) .2s;
}
html.js-reveal [data-reveal].in-view .profit-lock-wick .wick-fill { 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); }
.grid {
  display: grid;
  gap: 1rem;
}
.grid > * {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 860px) {
  .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-4, .grid-5 { grid-template-columns: 1fr; }
}
.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-pill);
  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-pill);
  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 { color: var(--text-dim); }
.nav a:hover, .nav a[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.2rem 0.65rem 0.2rem 0.2rem;
  list-style: none;
  cursor: pointer;
  color: var(--text-dim);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  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;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--bg-panel-3);
  color: var(--primary);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
}
.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 .15s var(--ease);
}
.nav-menu-toggle:hover,
.nav-menu-toggle[data-current],
.nav-menu[open] > .nav-menu-toggle { color: var(--text); border-color: var(--primary); background: var(--bg-panel-2); }
.nav-menu[open] > .nav-menu-toggle::after { transform: translateY(0.1em) rotate(-135deg); }
.nav-menu-panel {
  position: absolute;
  top: calc(100% + 0.9rem);
  right: 0;
  z-index: 30;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  padding: 0.4rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.75);
  animation: modal-rise .18s var(--ease);
}
.nav-menu-panel a,
.nav-menu-panel .linklike {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
}
.nav-menu-panel a:hover,
.nav-menu-panel .linklike:hover { background-color: var(--bg-panel-2); color: var(--text); text-decoration: none; }
.nav-menu-panel .signout-form {
  display: block;
  margin-top: 0.3rem;
  padding-top: 0.3rem;
  border-top: 1px solid var(--border);
}
@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: 999px;
}
.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: 999px;
  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; }
.nav-toggle { display: none; }
@media (max-width: 680px) {
  .site-header .nav-actions > .nav { display: none; }
  .nav-drawer {
    display: block;
    position: relative;
  }
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    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-panel-2); }
.nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: transform .2s ease, opacity .2s 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: -6px; }
  .nav-toggle-bars::after { top: 6px; }
.nav-drawer[open] .nav-toggle { background: var(--bg-panel-2); }
  .nav-drawer[open] .nav-toggle-bars { background: transparent; }
  .nav-drawer[open] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-drawer[open] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
.nav-drawer .nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    min-width: 220px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(20, 18, 16, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-2);
    border-radius: var(--radius);
    padding: 0.5rem;
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.75);
    z-index: 1000;
    animation: modal-rise .18s var(--ease);
  }
.nav-drawer .nav a {
    display: flex;
    align-items: center;
    background-image: none;
    min-height: 44px;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--text-dim);
  }
  .nav-drawer .nav a + a { margin-top: 2px; }
  .nav-drawer .nav a:hover { background: var(--bg-panel-2); color: var(--text); }
  .nav-drawer .nav a[aria-current="page"] {
    background: var(--bg-panel-2);
    color: var(--primary);
    font-weight: 600;
  }
  .nav-drawer .nav .linklike {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    text-align: left;
    background-image: none;
    padding: 0.75rem 1rem;
    margin-top: 2px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--text-dim);
  }
  .nav-drawer .nav .linklike:hover { background: var(--bg-panel-2); color: var(--text); }
  .nav-drawer .nav .btn {
    margin: 0.5rem 0.25rem 0.25rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
.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;
}
.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(--text-faint); background: rgba(237, 232, 218, 0.05); }
.btn:active { transform: translateY(1px); }
.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-fill-hover); border-color: var(--primary-fill-hover); }
.btn-primary:disabled { 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(--border-2); background: var(--bg-secondary); }
.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; }
.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; }
#split-upgrade-wrapper .check-row { border-bottom: 0; }
#split-upgrade-wrapper { margin-bottom: 0; }
.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(--up);
  flex: none;
}
.candle-status.live .candle-dot { animation: pulse 2s ease-in-out infinite; }
.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: 4px;
}
.landing-page .btn:hover {
  background: rgba(237, 232, 218, 0.05);
  border-color: var(--text-faint);
}
.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-fill-hover);
  border-color: var(--primary-fill-hover);
}
.btn-lg {
  padding: 0.95rem 1.6rem;
  font-size: 1rem;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn-lg:active { transform: translateY(1px); }
.cta { display: flex; gap: 0.85rem; flex-wrap: wrap; }
.landing-page .hero-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(2rem, 5vw, 4rem) clamp(2.5rem, 6vw, 4.5rem);
}
.landing-page .hero-section > * { position: relative; z-index: 1; }
.landing-page .hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 84px 84px;
  -webkit-mask-image: radial-gradient(105% 80% at 82% 12%, #000 0%, transparent 68%);
  mask-image: radial-gradient(105% 80% at 82% 12%, #000 0%, transparent 68%);
}
.landing-page .hero {
  display: grid;
grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.landing-page .hero-copy { min-width: 0; }
.landing-page .hero-title {
display: grid;
  gap: 0.6rem;
}
.landing-page .hero-title-lede {
  display: block;
  font-family: var(--body);
  font-size: clamp(0.92rem, 1.5vw, 1.05rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
word-spacing: normal;
  color: var(--text-dim);
  max-width: 46ch;
  text-wrap: balance;
}
.landing-page .hero-title-punch {
  display: block;
  font-size: clamp(2.7rem, 6.6vw, 5.1rem);
  letter-spacing: -0.038em;
  line-height: 0.94;
text-wrap: balance;
}
.landing-page .hero-title-accent {
  display: block;
  color: var(--primary);
}
.landing-page .hero-foot { text-wrap: balance; }
.landing-page .hero-lede {
  margin-top: 1.5rem;
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 48ch;
  text-wrap: pretty;
}
.landing-page .hero-actions {
  margin-top: clamp(1.75rem, 3.5vw, 2.25rem);
  display: grid;
  gap: 1.1rem;
  max-width: 37rem;
}
.landing-page .hero .cta .btn { flex: 1 1 auto; }
.landing-page .duel-free-note {
  display: block;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.landing-page .duel-free-note a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.landing-page .proof-section:has(.trust-grid) { padding-block: clamp(2.5rem, 6vw, 5rem); }
.landing-page .proof-section:has(.trust-grid) .proof-empty { margin-block: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.75rem, 3.5vw, 2.5rem); }
.landing-page .proof-section:has(.trust-grid) .proof-empty p:first-child {
  font-family: inherit;
  font-variation-settings: normal;
  font-size: 1.02rem;
  line-height: 1.6;
  letter-spacing: normal;
  color: var(--text-dim);
}
.landing-page .proof-section:has(.trust-grid) .proof-empty strong { color: var(--text); }
.tier-card[id] { scroll-margin-top: 6rem; }
.landing-page .hero-foot {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--text-faint);
  max-width: none;
  text-wrap: balance;
}
.landing-page .candle-card {
  width: 100%;
  max-width: 424px;
  justify-self: end;
  border: 1px solid var(--border-2);
  border-radius: 4px;
  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;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  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;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  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 .hero { grid-template-columns: 1fr; }
.landing-page .candle-card { max-width: none; justify-self: stretch; }
.landing-page .hero-section::before { opacity: 0.45; }
}
.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: 58ch;
  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: start;
  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: 58ch;
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.6;
  text-wrap: pretty;
}
.section-foot { margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.landing-page .section-head { border-bottom: 0; padding-bottom: 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(2.5rem, 5vw, 4rem); }
.landing-page .proof-empty {
  border: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
  max-width: 68ch;
}
.landing-page .proof-empty p:first-child {
  font-family: var(--display);
  font-variation-settings: "opsz" 48;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--text);
}
.landing-page .proof-empty p:first-child strong { font-weight: 600; }
.landing-page .proof-empty .small { color: var(--text-dim); }
.landing-page .proof-empty a { color: var(--primary); }
.landing-page .rule-detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  column-gap: clamp(1.5rem, 4vw, 3rem);
  row-gap: clamp(2rem, 4vw, 2.75rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.landing-page .rule-detail-item {
  background: none;
  border: 0;
  padding: 0;
  border-top: 1px solid var(--border-2);
  padding-top: 1.25rem;
}
.landing-page .rule-detail-item h3 {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}
.landing-page .rule-detail-item h3 .mono {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
  line-height: 1;
}
.landing-page .rule-detail-label {
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.landing-page .rule-detail-item p {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text-dim);
}
.landing-page .absent-list {
  list-style: none;
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 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: 1.4rem 0;
}
.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(--primary);
}
.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: "0" counter(step);
  position: static;
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--primary);
  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);
}
.landing-page .profit-lock {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.landing-page .profit-lock-copy h2 {
  font-size: clamp(1.9rem, 4.2vw, 2.8rem);
  max-inline-size: 14ch;
  text-wrap: balance;
}
.landing-page .profit-lock-copy p { margin-top: 1rem; max-width: 52ch; }
.landing-page .profit-lock-wick { max-width: 460px; }
@media (max-width: 860px) {
  .landing-page .profit-lock { grid-template-columns: 1fr; }
  .landing-page .profit-lock-wick { max-width: none; }
}
.tier-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
@media (max-width: 860px) {
  .tier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .tier-grid { grid-template-columns: 1fr; }
}
.landing-page .hero-title-accent { position: relative; width: fit-content; }
.landing-page .hero-title-accent::after {
  content: "";
  position: absolute;
  left: 0.04em;
  right: 0.02em;
  bottom: -0.06em;
  height: 0.07em;
  background: currentColor;
  border-radius: 1px;
  transform-origin: left center;
}
@keyframes hero-stroke { from { transform: scaleX(0); } }
@keyframes hero-rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes hero-grid { to { background-position: 84px 84px, 84px 84px; } }
@media (prefers-reduced-motion: no-preference) {
  .landing-page .hero-title-accent::after { animation: hero-stroke 1s var(--ease) .35s both; }
  .landing-page .candle-card { animation: hero-rise .9s var(--ease) .15s both; }
  .landing-page .hero-actions { animation: hero-rise .8s var(--ease) .25s both; }
  .landing-page .modes > * { animation: hero-rise .8s var(--ease) both; }
  .landing-page .modes > :nth-child(1) { animation-delay: .4s; }
  .landing-page .modes > :nth-child(2) { animation-delay: .5s; }
  .landing-page .modes > :nth-child(3) { animation-delay: .6s; }
  .landing-page .hero-section::before { animation: hero-grid 18s linear infinite; }
}
.landing-page .modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-top: clamp(2.75rem, 6vw, 4.5rem);
}
.landing-page .mode {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.45rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border-2);
  color: var(--text);
  text-decoration: none;
}
.landing-page .mode::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .45s var(--ease);
}
.landing-page .mode:hover::before,
.landing-page .mode:focus-visible::before { transform: none; }
.mode-glyph { width: 64px; height: 40px; overflow: visible; margin-bottom: 0.45rem; }
.mode-glyph polyline, .mode-glyph line { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.mode-glyph .g-line   { stroke: var(--primary); stroke-width: 2; }
.mode-glyph .g-them   { stroke: var(--text-faint); stroke-width: 1.5; }
.mode-glyph .g-target { stroke: var(--up); stroke-width: 1; stroke-dasharray: 3 3; }
.mode-glyph .g-floor  { stroke: var(--down); stroke-width: 1; stroke-dasharray: 3 3; }
.mode-glyph .g-buzzer { stroke: var(--text); stroke-width: 1.5; }
.mode-glyph .g-claim  { fill: var(--primary); opacity: 0.2; }
.mode-glyph .g-claim-them { fill: var(--text-faint); }
@keyframes glyph-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .landing-page .mode:hover .g-line,
  .landing-page .mode:hover .g-them,
  .landing-page .mode:focus-visible .g-line {
    stroke-dasharray: 1;
    animation: glyph-draw .9s var(--ease) both;
  }
}
.landing-page .mode-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.75rem;
  font-family: var(--display);
  font-variation-settings: "opsz" 36;
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.landing-page .mode-text {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 34ch;
}
.landing-page .mode-meta {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.landing-page .mode:hover .mode-meta { color: var(--primary); }
.mode-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--up);
}
@keyframes live-ping {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
@media (prefers-reduced-motion: no-preference) {
  .live-dot { animation: live-ping 2s ease-out infinite; }
}
@media (max-width: 760px) {
  .landing-page .modes { grid-template-columns: 1fr; row-gap: 1.6rem; }
  .landing-page .mode {
    grid-template-columns: 64px minmax(0, 1fr);
    column-gap: 1.1rem;
  }
  .landing-page .mode > :not(.mode-glyph) { grid-column: 2; }
  .landing-page .mode-glyph { grid-row: 1 / span 3; margin: 0.2rem 0 0; }
}
.landing-page .rule-chart {
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding-top: clamp(1.25rem, 2.5vw, 1.75rem);
  border-top: 1px solid var(--border);
}
.rule-chart-svg { display: block; width: 100%; height: auto; overflow: visible; }
.rule-chart-svg line, .rule-chart-svg polyline { fill: none; }
.rc-day     { stroke: var(--border); stroke-width: 1; stroke-dasharray: 2 6; }
.rc-start   { stroke: var(--border-2); stroke-width: 1; stroke-dasharray: 3 5; }
.rc-target  { stroke: var(--up); stroke-width: 1.5; }
.rc-floor   { stroke: var(--down); stroke-width: 1.5; }
.rc-daily   { stroke: var(--down); stroke-width: 1.5; stroke-dasharray: 5 5; opacity: 0.7; }
.rc-balance { stroke: var(--text); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.rc-pass    { fill: var(--up); stroke: var(--bg); stroke-width: 3; }
.rule-chart-key {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.75rem;
  margin-top: 1.1rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.rule-chart-key span { display: inline-flex; align-items: center; gap: 0.6rem; }
.rule-chart-key .key { display: inline-block; width: 22px; border-top: 2px solid; }
.rule-chart-key .key-target { border-color: var(--up); }
.rule-chart-key .key-floor  { border-color: var(--down); }
.rule-chart-key .key-daily { border-color: var(--down); border-top-style: dashed; opacity: 0.8; }
html.js-reveal .rule-chart .rc-balance {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.4s cubic-bezier(.45, .05, .35, 1) .25s;
}
html.js-reveal .rule-chart.in-view .rc-balance { stroke-dashoffset: 0; }
html.js-reveal .rule-chart .rc-daily { opacity: 0; transition: opacity .5s ease; }
html.js-reveal .rule-chart.in-view .rc-daily { opacity: 0.7; }
html.js-reveal .rule-chart.in-view .rc-daily:nth-of-type(7) { transition-delay: .3s; }
html.js-reveal .rule-chart.in-view .rc-daily:nth-of-type(8) { transition-delay: .9s; }
html.js-reveal .rule-chart.in-view .rc-daily:nth-of-type(9) { transition-delay: 1.5s; }
html.js-reveal .rule-chart.in-view .rc-daily:nth-of-type(10) { transition-delay: 2.1s; }
html.js-reveal .rule-chart .rc-pass {
  transform: scale(0);
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .5s cubic-bezier(.3, 1.6, .5, 1) 2.6s;
}
html.js-reveal .rule-chart.in-view .rc-pass { transform: none; }
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); }
.landing-page .lit-section .steps li::before { 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-ink-2);
  border-color: var(--lit-ink-2);
  color: var(--lit-on-ink);
}
.landing-page .lit-section .btn:not(.btn-primary):hover { background: rgba(23, 20, 15, 0.05); }
.landing-page .duel-section .section-head h2 { max-inline-size: 13ch; }
.landing-page .duel-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-top: clamp(2rem, 4vw, 3rem);
}
@media (max-width: 860px) {
  .landing-page .duel-showcase { grid-template-columns: 1fr; }
}
.race {
  margin: 0;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid var(--lit-rule-2);
  border-radius: 4px;
  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;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  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-accent); }
.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-accent); 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-accent); }
.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(.3, 1.6, .5, 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: 4px;
  background: transparent;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lit-ink);
  cursor: pointer;
}
.race-replay:hover { background: rgba(23, 20, 15, 0.06); }
.duel-figures { margin: 0; }
.duel-figure {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
}
.duel-figure:first-child { border-top: 1px solid var(--border); }
.duel-figure dt {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.duel-figure dd {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
  text-align: right;
}
.duel-clocks { display: grid; justify-items: end; gap: 0.2rem; }
.duel-maths {
  margin-top: 1.3rem;
  max-width: 46ch;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-dim);
}
.duel-honest {
  margin-top: 1rem;
  padding-left: 0.9rem;
  border-left: 2px solid var(--lit-accent);
  max-width: 46ch;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--lit-ink-dim);
}
.landing-page .duel-steps-landing,
.landing-page .draft-steps { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.landing-page .duel-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}
.landing-page .duel-cta .duel-free-note { margin-top: 0; }
.landing-page .draft-section .section-head h2 { max-inline-size: 14ch; }
.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 .duel-chart.in-view .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 .duel-chart.in-view .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 .duel-chart.in-view .duel-chart-dot { opacity: 1; }
.duel-legend {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-dim);
}
.duel-legend-row { display: flex; align-items: baseline; gap: 0.65rem; }
.duel-legend strong { color: var(--text); font-weight: 600; }
.duel-swatch {
  flex: none;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 2px;
  transform: translateY(0.1em);
}
.duel-swatch-you  { background: color-mix(in srgb, var(--primary) 28%, transparent); border: 1px solid var(--primary); }
.duel-swatch-them { background: color-mix(in srgb, var(--text-faint) 28%, transparent); border: 1px solid var(--text-faint); }
.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: 60ch;
  line-height: 1.65;
  color: var(--text-dim);
  text-wrap: pretty;
}
.landing-page .origin-copy > h2 + p { margin-top: 1.5rem; }
.origin-timeline {
  list-style: none;
  margin-top: 1.75rem;
  border-left: 1px solid var(--border-2);
  max-width: 52ch;
}
.origin-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.5rem 0 0.5rem 1.35rem;
  font-size: 0.92rem;
  color: var(--text-dim);
}
.origin-timeline li::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 0.95rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid var(--primary);
  background: var(--bg);
}
.origin-timeline li:last-child { color: var(--text); }
.origin-timeline li:last-child::before { background: var(--primary); }
.origin-timeline .mono { font-size: 0.8rem; color: var(--primary); padding-top: 0.1rem; }
.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(.3, 1.6, .5, 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(.3, 1.6, .5, 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(.3, 1.6, .5, 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 .trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  column-gap: clamp(1.75rem, 4vw, 3.5rem);
  row-gap: 2rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.landing-page .trust-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: none;
  border: 0;
  border-radius: 0;
  border-top: 1px solid var(--border-2);
  padding: 1.25rem 0 0;
  color: var(--text);
  text-decoration: none;
  transition: border-color .2s var(--ease);
}
.landing-page .trust-card:hover {
  background: none;
  transform: none;
  border-top-color: var(--primary);
}
.landing-page .trust-card h3 { font-size: 1.08rem; }
.landing-page .trust-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-dim);
}
.landing-page .trust-go {
  margin-top: auto;
  padding-top: 0.9rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}
.landing-page .trust-go::after {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-left: 0.6rem;
  transition: width .2s var(--ease);
}
.landing-page .trust-card:hover .trust-go::after { width: 2.25rem; }
.landing-page .trust-honest {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.4rem;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: none;
  max-width: 76ch;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--text-dim);
}
.landing-page .trust-honest strong { color: var(--text); }
.landing-page .trust-honest a { color: var(--primary); }
.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-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 84px 84px;
  -webkit-mask-image: radial-gradient(80% 110% at 50% 100%, #000 0%, transparent 70%);
  mask-image: radial-gradient(80% 110% at 50% 100%, #000 0%, transparent 70%);
}
.landing-page .closer { text-align: center; }
.landing-page .closer h2 {
  font-size: clamp(2.2rem, 5.4vw, 3.8rem);
  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 .hero .cta .btn,
  .landing-page .closer .cta .btn { width: 100%; text-align: center; }
  .landing-page .hero-actions .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: 62ch; }
.legal-callout { border-left: 2px solid var(--border); padding-left: 1rem; }
.tier-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: none;
  border: 0;
  border-radius: 0;
  border-top: 1px solid var(--border-2);
  padding: 1.1rem 0 0;
  transition: border-color .2s var(--ease);
}
.tier-card:hover { background: none; transform: none; border-top-color: var(--primary); }
.tier-card.is-recommended { border-top: 2px solid var(--primary); padding-top: calc(1.1rem - 1px); }
.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;
}
.tier-card h3 {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.tier-card .cap {
  font-family: var(--mono);
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
  line-height: 1;
}
.tier-card .fee { font-size: 0.85rem; color: var(--text-dim); }
.tier-card ul { list-style: none; display: grid; gap: 0.4rem; margin: 0.5rem 0 1rem; font-size: 0.85rem; color: var(--text-dim); }
.tier-card .btn { margin-top: auto; }
.faq {
  display: block;
  max-width: 74ch;
  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: 62ch;
  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;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  border: 1px solid var(--border);
  border-radius: 999px;
  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: 3px;
  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: 62ch;
  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); animation: pulse 2s ease-in-out infinite; }
.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); animation: pulse 1.6s ease-in-out infinite; }
.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:
    linear-gradient(135deg, rgba(255, 180, 84, 0.06) 0%, transparent 50%),
    var(--bg-panel);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.rule-meter::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary) 30%, var(--primary) 70%, transparent);
  opacity: 0.7;
}
.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: 3px; }
.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);
  box-shadow: 0 24px 56px -30px rgba(0, 0, 0, 0.6);
}
.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; text-transform: uppercase; letter-spacing: 0.18em; }
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); transform: translateY(-1px); }
.btn-short { background: var(--down-fill); border-color: var(--down); color: var(--on-fill); }
.btn-short:hover:not(:disabled) { background: var(--down-fill-hover); transform: translateY(-1px); }
.btn-long:active:not(:disabled), .btn-short:active:not(:disabled) { transform: scale(.97); }
.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 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: 999px;
  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; }
.stack { display: grid; gap: 1rem; }
.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; }
  .hero .cta { flex-direction: column; align-items: stretch; }
}
.legal { max-width: 74ch; }
.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;
  letter-spacing: -0.02em;
  color: var(--primary);
}
.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: 74ch; }
.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 { 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; }
@media (max-width: 640px) { .legal-toc ol { columns: 1; } }
@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,
  .trust-card:hover,
  .tier-card: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);
  animation: pulse 1.6s ease-in-out infinite;
}
@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, 8px);
  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: 4px;
  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, #8a847c);
}
.duel-time-urgent {
  color: var(--down, #f43f5e);
  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: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted, #8a847c);
  border: 1px solid var(--border-subtle);
}
.pnl-pill.up {
  background: rgba(16, 185, 129, 0.15);
  color: var(--up, #10b981);
  border-color: rgba(16, 185, 129, 0.35);
}
.pnl-pill.down {
  background: rgba(244, 63, 94, 0.15);
  color: var(--down, #f43f5e);
  border-color: rgba(244, 63, 94, 0.35);
}
.finish-badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  text-transform: uppercase;
}
.finish-badge.badge-win {
  background: rgba(227, 165, 87, 0.18);
  color: var(--accent);
  border: 1px solid rgba(227, 165, 87, 0.45);
}
.finish-badge.badge-runner {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted, #8a847c);
  border: 1px solid var(--border-subtle);
}
.finish-badge.badge-tie {
  background: rgba(16, 185, 129, 0.12);
  color: var(--up, #10b981);
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.duel-leaderboard-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.5rem;
}
.duel-leaderboard-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted, #8a847c);
  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-sm, 6px);
  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;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted, #8a847c);
}
.duel-recap-stat .num {
  font-size: 1.05rem;
  font-weight: 700;
}
@media (max-width: 640px) {
.duel-leaderboard-panel .duel-leaderboard-table {
    min-width: 620px;
  }
  .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-leaderboard-panel {
    padding: 1.1rem 0.85rem !important;
    margin-top: 1.5rem !important;
  }
}
#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-sm, 6px);
}
@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, #12100e);
}
: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, #12100e);
}
:is(.ticket-leverage, .size-slider) input[type="range"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.ticket-liq .num {
  color: var(--down, #f43f5e);
}
.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: 4px;
  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, #10b981);
  border-color: rgba(16, 185, 129, 0.3);
}
.trade-pill.trade-short {
  background: rgba(244, 63, 94, 0.12);
  color: var(--down, #f43f5e);
  border-color: rgba(244, 63, 94, 0.3);
}
.trade-pill.trade-flat {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted, #8a847c);
  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: 8px;
  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-when {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
padding-top: 0.5rem;
}
.duel-match-duration {
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}
.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); }
.duel-pnl {
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.duel-pnl.up { color: var(--up); }
.duel-pnl.down { color: var(--down); }
.duel-ended { font-family: var(--mono); font-size: 0.75rem; }
.duel-versus {
  align-self: center;
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
}
.duel-money {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-left: 1.25rem;
padding-top: 0.5rem;
  border-left: 1px solid var(--border-subtle);
}
.duel-money-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
}
.duel-money-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}
.duel-money-won { color: var(--accent); font-weight: 700; }
.duel-money-void { color: var(--text-faint); }
.duel-money-note {
  font-size: 0.75rem;
  line-height: 1.35;
  margin-top: 0.1rem;
}
@media (max-width: 900px) {
  .duel-match {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
  }
  .duel-match-when { flex-direction: row; gap: 0.6rem; align-items: baseline; padding-top: 0; }
.duel-match-bout { grid-template-columns: 1fr; gap: 0.5rem; }
  .duel-versus { justify-self: start; }
  .duel-trader { padding: 0.5rem 0.65rem; background: rgba(255, 255, 255, 0.02); }
  .duel-money {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem 1.5rem;
    padding-left: 0;
    padding-top: 0.75rem;
    border-left: 0;
    border-top: 1px solid var(--border-subtle);
  }
  .duel-money-row { flex-direction: column; gap: 0.1rem; }
.duel-money-note { flex-basis: 100%; margin-top: 0; }
}
@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: 8px;
  padding: 4px;
  margin-bottom: 1.25rem;
}
.mode-switch-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-muted, #8a847c);
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  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, #ede8da);
}
.mode-switch-btn.active {
  background: var(--bg-card-hover, #1f1b18);
  color: var(--text-primary, #ede8da);
  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, #8a847c);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  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, #ede8da);
  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: 8px;
  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, #8a847c);
  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, #ede8da);
}
.calc-purse-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.calc-purse-val {
  color: var(--success, #10b981);
  font-size: 1.15rem;
  font-weight: 800;
}
.escrow-addr-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
}
.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-sm, 6px);
}
.duel-waiting-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 1.6s ease-in-out infinite;
}
.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;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted, #8a847c);
}
.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: 4px;
  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: 999px;
  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: 999px;
  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: 4px;
  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, 8px);
  box-shadow: 0 24px 56px -30px rgba(0, 0, 0, 0.6);
}
.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-sm, 6px);
}
.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-left: 2px solid var(--primary);
  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-left: 2px solid var(--primary);
  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: 60ch; }
@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.7rem; 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.6rem; }
}
.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-sm, 6px);
}
.duel-stat-big .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted, #8a847c);
}
.duel-stat-big strong { font-size: 1.6rem; line-height: 1.15; }
.duel-winrate-bar { height: 6px; border-radius: 999px; 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: 4px;
  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-sm, 6px);
}
.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: 999px; 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-sm, 6px);
  color: var(--text-muted, #8a847c);
}
@media (max-width: 640px) {
  .market-row { grid-template-columns: 5rem 1fr 6.5rem; }
  .market-row .market-trades { display: none; }
}
.duel-board-filters {
  --filter-h: 2.15rem;
  display: flex;
  gap: 1.1rem;
  margin: 0.7rem 0 0.85rem;
  flex-wrap: wrap;
  align-items: flex-end;
}
.duel-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.duel-filter-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted, #8a847c);
}
.duel-board-filters .chip-btn {
  height: var(--filter-h);
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
}
.duel-board-stake-filter {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  height: var(--filter-h);
}
.duel-board-stake-filter input[type="number"] {
  width: 4.5rem;
  height: var(--filter-h);
  box-sizing: border-box;
  font-size: 0.82rem;
  padding: 0 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}
.duel-board-filters #board-filter-clear {
  height: var(--filter-h);
  box-sizing: border-box;
}
.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: 8px;
  background: rgba(255, 255, 255, 0.02);
}
.duel-top-duelists-list .rank-pill.rank-other {
  background: transparent;
  color: var(--text-muted, #8a847c);
  border: 1px solid var(--border);
}
.checkout-summary-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  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, #8a847c);
}
.checkout-summary-card .summary-val {
  color: var(--text-primary, #ede8da);
}
.checkout-summary-card .summary-val.highlight {
  color: var(--success, #10b981);
  font-weight: 700;
}
.checkout-source-badge {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  background: rgba(226, 84, 63, 0.06);
  border: 1px solid rgba(226, 84, 63, 0.2);
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  margin-bottom: 1rem;
}
.checkout-source-badge .source-icon .icon {
  width: 1.1rem;
  height: 1.1rem;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
  margin-top: 0.1rem;
}
.checkout-source-badge strong {
  font-size: 0.84rem;
  color: var(--text-primary, #ede8da);
}
.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);
}
.payout-quick-actions .linklike {
  font-size: 0.75rem;
  color: var(--accent, #d4af37);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}
.payout-quick-actions .linklike:hover {
  color: var(--text-primary, #ede8da);
}
@media (prefers-reduced-motion: reduce) {
  .account-card { transition: none; }
}
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.85rem; min-height: 38px; }
.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; }
.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: 64ch; 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;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  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); animation: pulse 2s ease-in-out infinite; }
.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-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; }
.banner-actions { display: flex; align-items: center; gap: 0.5rem; }
.banner .banner-actions .btn { margin-top: 0; }
.code-chip { padding: 0.25rem 0.55rem; border: 1px dashed var(--border-2); border-radius: var(--radius-sm); }
.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="true"] { background: var(--bg-panel); color: var(--text); }
.settings-nav a[aria-current="true"] .icon { color: var(--primary); }
.settings-nav .icon { width: 1rem; height: 1rem; color: var(--text-faint); transition: color .15s ease; }
.settings-main { min-width: 0; }
.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-form {
  margin-top: 0.5rem;
  padding: 1rem;
  background: var(--bg-panel-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
}
.field-label-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 0.75rem;
  margin-bottom: 0.4rem;
}
.field-label-row label { margin: 0; }
.payout-quick-actions { display: flex; gap: 0.75rem; }
.payout-quick-actions .linklike { font-size: 0.8rem; color: var(--text-dim); }
.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; }
.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: 50%;
  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: 1100px) {
  .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-bottom: 1.25rem; padding: 0.75rem 1rem; }
.lobby-invite-setting .toggle-row { padding: 0; border-bottom: 0; }
.panel-head .panel-title { margin: 0; }
.duel-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20rem;
  gap: 1.25rem;
  align-items: start;
}
.duel-main, .duel-aside { display: grid; gap: 1rem; min-width: 0; }
@media (max-width: 1000px) {
  .duel-layout { grid-template-columns: 1fr; }
  .duel-aside { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
}
.duel-steps { list-style: none; counter-reset: step; display: grid; gap: 0.85rem; margin-top: 0.85rem; }
.duel-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.1rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-dim);
}
.duel-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border: 1px solid var(--border-2);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text);
}
.duel-steps strong { color: var(--text); font-weight: 600; }
.record-figures { display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.duel-aside .escrow-addr-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.duel-board-panel .duel-board-filters {
  --filter-h: 2.1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin: 0 0 0.25rem;
}
.duel-board-panel .duel-filter-group { flex-direction: row; align-items: center; gap: 0.6rem; }
.duel-filter-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.duel-board-filters .duration-chips { margin-top: 0; }
.duel-board-stake-filter input[type="number"] { border-color: var(--border); background: var(--bg-panel-2); border-radius: var(--radius-sm); }
.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-results-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr);
  gap: 0 1.5rem;
  align-items: start;
}
@media (max-width: 1000px) { .duel-results-grid { grid-template-columns: 1fr; } }
.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::before { content: none; }
.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.72rem; }
  #rule-meter-sub { display: none; }
}
.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;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  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; }
table.dj-table th { letter-spacing: 0.08em; }
.code-box {
  display: grid;
  justify-items: start;
  gap: 0.2rem;
  padding: 1rem;
  margin: 0.25rem 0 1.25rem;
  background: var(--bg-panel-2);
  border: 1px dashed var(--border-2);
  border-radius: var(--radius-sm);
}
.code-value { font-size: 1.35rem; letter-spacing: 0.04em; color: var(--gold); }
.modal-actions { display: flex; gap: 0.6rem; }
.modal-actions .btn-primary { flex: 1; }
.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: 3px;
  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;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  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: 62ch; 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; letter-spacing: 0.08em; }
.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; }
.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-layout { grid-template-columns: minmax(0, 1fr) 20rem; gap: 1.5rem; }
.duel-main, .duel-aside { align-content: start; }
.duel-block .section-title { margin-top: 1.5rem; }
.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-layout { display: flex; flex-direction: column; gap: 1rem; }
  .duel-main { display: contents; }
  .duel-board-panel { order: 1; }
  #duel-live-panel { order: 2; }
  .duel-aside { order: 3; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
  .duel-block { order: 4; }
}
.duel-aside .duel-top-duelists-list { gap: 0; }
.duel-aside .duel-top-duelists-list li {
  padding: 0.55rem 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}
.duel-aside .duel-top-duelists-list li:first-child { padding-top: 0; }
.duel-aside .duel-top-duelists-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.duel-aside .duel-top-duelists-list .mono { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.85rem; }
.duel-aside .duel-empty-state { flex-direction: row; align-items: center; gap: 0.6rem; padding: 0; text-align: left; }
.duel-aside .duel-empty-state .section-icon { display: none; }
.duel-history-list { container-type: inline-size; }
.duel-trader > * { max-width: 100%; }
.duel-trader .trade-cell { display: flex; flex-wrap: wrap; }
.duel-pnl { white-space: nowrap; }
.duel-ended { overflow-wrap: anywhere; }
@container (max-width: 860px) {
  .duel-match { grid-template-columns: minmax(0, 1fr); gap: 0.85rem; padding: 1rem 1.1rem; }
  .duel-match-when { flex-direction: row; align-items: baseline; gap: 0.6rem; padding-top: 0; }
  .duel-money {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem 1.5rem;
    padding: 0.75rem 0 0;
    border-left: 0;
    border-top: 1px solid var(--border-subtle);
  }
  .duel-money-row { flex-direction: column; gap: 0.1rem; }
  .duel-money-note { flex-basis: 100%; margin-top: 0; }
}
@container (max-width: 520px) {
  .duel-match-bout { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
  .duel-versus { justify-self: start; }
}
@media (max-width: 1100px) {
.duel-layout > *, .duel-main > * { min-width: 0; }
}
.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);
}
@media (max-width: 1100px) {
.duel-layout { align-items: stretch; }
}
.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: 3px;
}
.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: 75ch;
}
.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: 50%;
  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-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: opacity 200ms ease;
}
.draft-ticket.is-idle { 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-rules ol { padding-left: 1.2rem; }
.draft-rules li { margin-bottom: 0.3rem; }
.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: 75ch; }
.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: 6px;
  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); }
.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: 8px;
  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: 60ch;
  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-grid .lobby-section-head { justify-content: flex-start; gap: 1.25rem; }
.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-intro .lobby-hint { max-width: 80ch; }
.lobby-hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.75rem); align-items: start;
}
.lobby-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.lobby-tiles.is-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lobby-tile {
  position: relative;
  display: grid; align-content: space-between; gap: 1.25rem;
  min-height: 8.25rem; padding: 1.1rem 1.2rem;
  text-align: left; color: var(--text-primary); font: inherit;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.12s var(--ease);
}
.lobby-tile::after {
  content: ""; position: absolute; top: 1.05rem; right: 1.1rem;
  width: 0.6rem; height: 0.6rem;
  border: 1px solid var(--washi-dim); border-radius: 1px;
opacity: 0;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), opacity 0.18s var(--ease);
}
.lobby-tile:hover::after, .lobby-tile:focus-visible::after { opacity: 1; }
.lobby-tile:hover { background: var(--bg-card-hover); border-color: var(--border-2); }
.lobby-tile:hover::after, .lobby-tile:focus-visible::after { background: var(--shu); border-color: var(--shu); }
.lobby-tile:active { transform: translateY(1px); }
@media (hover: none) { .lobby-tile::after { display: none; } }
.lobby-actions > a, .lobby-section-head a, .lobby-winnings a, .panel-head a:not(.btn) {
  display: inline-block;
  padding-block: 0.3rem;
}
.lobby-tile:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.lobby-tile:disabled { opacity: 0.55; cursor: progress; }
.lobby-tile-figure {
  font-family: var(--display);
  font-size: clamp(2.4rem, 4.2vw, 3.1rem);
  font-weight: 360;
  font-variation-settings: "opsz" 144;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -0.02em; line-height: 1;
}
.lobby-tile-unit {
  margin-left: 0.3rem;
  font-family: var(--body); font-size: 0.95rem; font-weight: 500; letter-spacing: 0;
  color: var(--text-secondary);
}
.lobby-tile-word { font-size: clamp(1.8rem, 3vw, 2.2rem); }
.lobby-tile-name { color: var(--text-secondary); font-size: 0.9rem; }
.lobby-tile.is-practice { background: transparent; border-style: dashed; border-color: var(--border-2); }
.lobby-tile.is-practice:hover { background: var(--bg-secondary); }
.lobby-tile.is-practice.is-next {
  order: -1;
  background: var(--bg-card);
  border-style: solid;
  border-color: var(--primary);
}
.lobby-tile.is-practice.is-next:hover { background: var(--bg-card-hover); }
@media (max-width: 560px) {
  .lobby-tiles:not(.is-four) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lobby-tiles:not(.is-four) .lobby-tile.is-practice { grid-column: 1 / -1; min-height: 0; }
}
.lobby-tile.is-wide { grid-column: 1 / -1; min-height: 0; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0.5rem 1.5rem; }
.lobby-tile.is-wide .lobby-tile-name { padding-right: 1.5rem; }
@media (max-width: 480px) { .lobby-tile.is-wide { grid-template-columns: minmax(0, 1fr); } }
.practice-form { margin-top: 1.5rem; }
.practice-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.practice-form legend { margin-bottom: 0.6rem; padding: 0; color: var(--text-secondary); font-size: 0.85rem; }
.practice-form .field + .field { margin-top: 1.25rem; }
.practice-form .error:not([hidden]) { display: block; margin-top: 0.75rem; }
.lobby-secondary { margin-top: 1rem; }
.lobby-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 1rem; }
.lobby-actions .lobby-secondary { margin-top: 0; }
.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: 3px;
  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-grid {
  display: grid; grid-template-columns: minmax(0, 21rem) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem); margin-top: clamp(2.5rem, 5vw, 4rem); align-items: start;
}
.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-draw, .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-foot {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem clamp(2rem, 5vw, 5rem);
  margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 2rem; border-top: 1px solid var(--border);
}
.lobby-foot .lobby-h { margin-bottom: 0.9rem; }
.lobby-faq { grid-column: 1 / -1; max-width: 46rem; }
.lobby-steps { list-style: none; counter-reset: step; display: grid; gap: 0.8rem; }
.lobby-steps li {
  counter-increment: step; position: relative; padding-left: 2rem;
  color: var(--text-secondary); font-size: 0.92rem; line-height: 1.5;
}
.lobby-steps li::before {
  content: counter(step); position: absolute; left: 0; top: -0.1rem;
  font-family: var(--display); font-size: 1.2rem; color: var(--text-tertiary);
}
.lobby-steps strong { color: var(--text-primary); font-weight: 600; }
.lobby-foot > section > .small { margin-top: 1rem; }
.lobby-foot .duel-top-duelists-list { gap: 0; }
.lobby-foot .duel-top-duelists-list li {
  padding: 0.5rem 0; background: none; border: 0; border-bottom: 1px solid var(--border); border-radius: 0;
}
.lobby-foot .duel-top-duelists-list li:last-child { border-bottom: 0; }
.lobby-foot .duel-top-duelists-list .mono { flex: 1; font-family: var(--body); font-size: 0.95rem; }
@media (max-width: 900px) {
  .lobby-hero, .lobby-grid, .lobby-foot { grid-template-columns: minmax(0, 1fr); }
  .lobby-head { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 480px) {
  .lobby-tiles, .lobby-tiles.is-four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  .lobby-tile { min-height: 7rem; padding: 0.95rem; }
  .lobby-tile::after { top: 0.9rem; right: 0.9rem; }
  .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; }
}
@media (prefers-reduced-motion: no-preference) {
  .lobby-tile { animation: lobby-tile-in 0.5s var(--ease) both; }
  .lobby-tile:nth-child(2) { animation-delay: 50ms; }
  .lobby-tile:nth-child(3) { animation-delay: 100ms; }
  .lobby-tile:nth-child(4) { animation-delay: 150ms; }
}
@keyframes lobby-tile-in { from { opacity: 0; transform: translateY(6px); } }
@media (min-width: 1200px) { .lobby-tiles.is-four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .lobby-grid { grid-template-columns: minmax(0, 24rem) minmax(0, 1fr); } }
.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; }
.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 2px 0 var(--up); }
.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); }
.ticker-strip .row .pin-mark { color: var(--gold); font-size: 0.7rem; }
.rule-meter-stat #fig-daily-reset { display: block; margin-top: 0.1rem; font-size: 0.7rem; }
.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; opacity: 0.8; }
#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.7rem; 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.72rem; 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: 999px;
    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; }
.tier-rules { margin: 0.5rem 0 0; color: var(--text-dim); font-size: 0.9rem; }
.tier-rules strong { color: var(--text); font-weight: 600; }
.plan-toggle-hint { margin: 0.75rem 0 0; max-width: 60ch; }
@media (max-width: 860px) { .board-pair { grid-template-columns: minmax(0, 1fr); } }
.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; }
[data-plan-section]:not([hidden]) + [data-plan-section] { padding-top: clamp(2.5rem, 6vw, 5rem); border-top: 1px solid var(--border); }
.pricing-head:has(.plan-toggle:not([hidden])) ~ .plan-section .plan-intro {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.plan-intro { margin-bottom: 1.5rem; }
.plan-section .plan-steps { margin-top: 1.5rem; }
.demo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 1.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 6rem;
}
.demo-row h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.demo-row p { margin: 0; max-width: 60ch; }
.limits-list { max-width: 72ch; padding-left: 1.25rem; }
.limits-list li + li { margin-top: 0.6rem; }
.limits-list + p { margin-top: 1.5rem; }
.tier-card .per-k { font-size: 0.75rem; color: var(--text-faint); }
.plan-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  max-width: 40rem;
  padding: 4px;
  margin-top: 1.25rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
}
.plan-toggle[hidden] { display: none; }
.plan-toggle:not([hidden]) + .plan-toggle-hint { display: none; }
.plan-toggle button {
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem 1rem;
  text-align: left;
  font: inherit;
  color: var(--text-dim);
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.plan-toggle button strong { font-size: 1rem; font-weight: 600; }
.plan-toggle button span { font-size: 0.8rem; color: var(--text-faint); }
.plan-toggle button:hover { color: var(--text); background: var(--bg-panel-2); }
.plan-toggle button[aria-pressed="true"] { color: var(--text); background: var(--bg-panel-3); border-color: var(--primary); }
.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);
}
.price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.price-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .2s var(--ease);
}
.price-card:hover { border-color: var(--border-2); }
.price-card.is-recommended { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary) inset; }
.price-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.price-card p { margin: 0; }
.price-cap .num {
  font-family: var(--mono);
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
  color: var(--text);
}
.price-fee .num { font-family: var(--mono); font-size: 1.15rem; font-weight: 600; color: var(--primary); }
.price-card .per-k { font-size: 0.75rem; color: var(--text-faint); }
.price-specs { display: grid; gap: 0.45rem; margin: 1rem 0 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: 0.85rem; }
.price-specs div { display: flex; justify-content: space-between; gap: 1rem; }
.price-specs dt { color: var(--text-dim); }
.price-specs dd { margin: 0; color: var(--text); font-family: var(--mono); font-variant-numeric: tabular-nums; }
.price-card .btn { margin-top: auto; }
.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: 960px) {
  .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .price-grid, .plan-steps { grid-template-columns: minmax(0, 1fr); }
  .plan-steps { grid-auto-flow: row; }
  .plan-toggle button { padding: 0.65rem 0.75rem; }
}
.code-row { display: flex; gap: 0.5rem; }
#split-upgrade-wrapper label { cursor: pointer; }
.checkout-total { display: flex; justify-content: space-between; align-items: baseline; margin: 0.75rem 0; }
.checkout-total strong { font-size: 1.15rem; }
.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; }
a.tier-card { color: inherit; text-decoration: none; }
.activity-line { color: var(--text-muted); margin: 0 0 1rem; }
.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; }
}
.lobby-tile-note { font-size: 0.75rem; color: var(--text-muted); }
.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; }
}
@media (pointer: coarse) { .board-jump a { min-height: 44px; } }
.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: 56ch; 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: 999px; 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: 999px;
  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: 999px; 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: 62ch; }
.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: 3px; 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 { 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 {
  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(--accent);
  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); animation: active-match-pulse 1.6s ease-in-out infinite;
}
@keyframes active-match-pulse { 50% { opacity: 0.3; } }
@media (prefers-reduced-motion: reduce) { .active-match-dot { animation: none; } }
.promo-bar {
  position: relative; display: flex; align-items: center; justify-content: center;
  padding: 8px 44px; font-size: 14px; text-align: center;
  background: var(--bg-card); border-bottom: 1px solid var(--accent);
  color: var(--text-primary);
}
.promo-bar[hidden] { display: none; }
.promo-bar-text { margin: 0; line-height: 1.6; }
.promo-bar-text a { color: var(--accent); font-weight: 600; text-decoration: none; white-space: nowrap; }
.promo-bar-text a:hover { text-decoration: underline; }
.promo-bar-sep { margin: 0 6px; color: var(--text-muted); }
.promo-bar-offer { white-space: nowrap; }
.promo-bar-code {
  margin-left: 4px; padding: 1px 8px; font: inherit; font-size: 13px; letter-spacing: 0.04em;
  color: var(--accent); background: transparent;
  border: 1px dashed var(--accent); border-radius: 4px;
}
.promo-bar-text a.promo-bar-code { font-weight: 400; }
.promo-bar-text a.promo-bar-code:hover { background: var(--bg-card-hover); text-decoration: none; }
.promo-bar-close {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; 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; }
}
.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; }
