/* Site chrome matches clarity.poker. The calculator panel matches the Mac app. */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/instrument-serif-latin.woff2') format('woff2');
}
:root {
  --bg: #FAFAF9;
  --bg2: #FFFFFF;
  --s1: #FFFFFF;
  --s2: #F4F4F2;
  --line: #E7E7E3;
  --t1: #111113;
  --t2: #52525B;
  --t3: #71717A;
  --g: #15803D;
  --serif: 'Instrument Serif', Georgia, serif;
  --ui: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--t1);
  font-family: var(--ui);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--t1); text-decoration: none; }
a:hover { color: var(--g); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; width: 100%; }
.tool-wrap { max-width: 1360px; margin: 0 auto; padding: 0 32px; width: 100%; }
.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;
}

.announce {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f5132 0%, #15803d 50%, #166534 100%);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  width: 100%;
}
.announce::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.08) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: banner-shimmer 3s ease-in-out infinite;
}
@keyframes banner-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.announce .wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  height: 44px;
}
.announce-text { display: flex; align-items: center; gap: 8px; }
.announce-text b { color: #fff; font-weight: 600; }
.announce-price {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  font-weight: 600;
  color: #fff;
  font-size: 12px;
}
.announce-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #fff;
  color: #15803d;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.announce-cta:hover {
  color: #15803d;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.announce-cta svg { flex-shrink: 0; }
.announce-full { display: flex; align-items: center; gap: 8px; }
.announce-short { display: none; }
@media (max-width: 600px) {
  .announce .wrap { gap: 10px; height: 48px; padding: 0 16px; }
  .announce-full { display: none; }
  .announce-short { display: flex; align-items: center; gap: 8px; font-size: 13px; }
  .announce-cta { padding: 7px 16px; font-size: 13px; }
}

nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 250, 249, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
nav .wrap { display: flex; align-items: center; height: 68px; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--t1); }
.brand:hover { color: var(--t1); }
.brand .nm { font-family: var(--serif); font-size: 24px; letter-spacing: -0.02em; line-height: 1; }
.navlinks { display: flex; gap: 22px; font-size: 14px; }
.navlinks a { color: var(--t2); }
.navlinks a:hover, .navlinks a.is-on { color: var(--t1); }
.navr { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.navr .ln { color: var(--t2); font-size: 14px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}
.btn-p { background: var(--t1); color: #FAFAF9; }
.btn-p:hover { color: #FAFAF9; }
.btn-sm { height: 36px; padding: 0 14px; }
nav .btn-p {
  background: var(--g);
  color: #FFFFFF;
  border-radius: 8px;
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
}
nav .btn-p:hover { color: #FFFFFF; filter: brightness(1.06); }

.crumbs {
  position: static;
  z-index: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
  height: auto;
  padding-top: 36px;
  background: none;
  border: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--t3);
  font-size: 13px;
}
.eq-page-title {
  flex-shrink: 0;
  margin: 22px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.eq-topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-shrink: 0;
  margin: 0 0 10px;
}
.crumbs a { color: var(--t2); }
.crumbs [aria-current="page"] { color: var(--t1); }
.page-intro { padding: 18px 0 8px; max-width: 760px; }
.study-note {
  margin: 14px 0 0;
  padding: 14px 18px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--t2);
  font-size: 15px;
  line-height: 1.45;
}
.article p { color: var(--t2); max-width: 68ch; font-size: 16px; }
.study-equity-kind {
  margin-top: 2px;
  min-height: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.01em;
  color: #a1a1aa;
}
.page-intro h1 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -0.03em;
  line-height: 0.98;
}
.page-intro p { margin: 0; color: var(--t2); font-size: 17px; max-width: 62ch; }

.eq-app {
  margin: 18px 0 0;
  background: #0F0F10;
  color: #F4F4F5;
  border-radius: 18px;
  border: 1px solid #222226;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', sans-serif;
  user-select: none;
  overflow: hidden;
}
.eq-app button, .eq-app a { font-family: inherit; }
.study-tool-page {
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px 22px 22px;
}
.study-tool-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.study-tool-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: #60a5fa;
}
.study-tool-kicker__back {
  color: #60a5fa;
  font-size: 12px;
  line-height: 1;
  text-decoration: none;
}
.study-tool-kicker__back:hover { color: #93c5fd; }
.study-tool-h1,
.study-tool-title {
  margin: 8px 0 0;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #fafafa;
}
.study-tool-label {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.3;
  color: #d4d4d8;
}
.study-tool-subtitle {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #71717a;
}
.equity-variant-toggle {
  display: inline-flex;
  padding: 4px;
  border-radius: 10px;
  background: #141416;
  border: 1px solid #27272a;
}
.equity-variant-toggle__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: 7px;
  background: #27272a;
  color: #93c5fd;
  font-size: 12px;
  font-weight: 500;
}
.equity-variant-toggle__fan { flex-shrink: 0; }

.study-equity-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
}
.study-equity-main, .study-equity-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.study-equity-card, .study-equity-players {
  background: #17171a;
  border: 1px solid #222226;
  border-radius: 12px;
  padding: 14px;
}
.study-equity-card__head, .study-equity-players__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.study-equity-card__head span, .study-equity-range__label {
  font-size: 10px;
  letter-spacing: 0.08em;
  font-weight: 700;
  text-transform: uppercase;
  color: #71717a;
}
.study-equity-card__head .study-equity-method {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: #71717a;
  font-weight: 500;
}
.study-equity-street-tabs, .study-equity-mode {
  display: inline-flex;
  gap: 4px;
  padding: 2px;
  border-radius: 999px;
  border: 1px solid #2a2a2e;
  background: #101012;
}
.study-equity-mode { margin-top: 8px; }
.study-equity-street-tabs button, .study-equity-mode button, .study-equity-presets button {
  border: none;
  background: transparent;
  color: #71717a;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 10px;
  cursor: pointer;
}
.study-equity-street-tabs button.is-on, .study-equity-mode button.is-on {
  background: rgba(96, 165, 250, 0.2);
  color: #60a5fa;
}
.study-equity-board-row, .study-equity-dead-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.study-equity-board-slot {
  width: 56px;
  height: 80px;
  flex: 0 0 auto;
  border: 1px solid #2a2a2e;
  border-radius: 8px;
  background: #111113;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #52525b;
  font-size: 10px;
  cursor: pointer;
  padding: 0;
}
.study-equity-board-slot.is-selected, .study-equity-hole-slot.is-selected, .study-equity-dead-add.is-selected {
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.2);
}
.study-equity-dead {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #222226;
}
.study-equity-dead-row { flex-wrap: wrap; overflow: visible; }
.study-equity-dead-card, .study-equity-dead-add {
  border: 1px solid #2a2a2e;
  background: #111113;
  color: #a1a1aa;
  border-radius: 8px;
  min-height: 36px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 12px;
}
.study-equity-players__head {
  color: #71717a;
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.study-equity-players__head button {
  border: none;
  background: transparent;
  color: #60a5fa;
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.study-equity-players__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.study-equity-player-card {
  border: 1px solid #222226;
  border-radius: 10px;
  background: #111113;
  padding: 10px;
  min-width: 0;
}
.study-equity-player-card.is-range { box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.35); }
.study-equity-player-card__head {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #f4f4f5;
  font-weight: 600;
}
.study-equity-player-card__head button.remove {
  margin-left: auto;
  border: none;
  background: transparent;
  color: #71717a;
  cursor: pointer;
  width: 22px;
  height: 22px;
  font-size: 14px;
}
.study-equity-player-cards { margin-top: 8px; display: flex; gap: 7px; }
.study-equity-hole-slot {
  width: 48px;
  height: 68px;
  border: 1px solid #2a2a2e;
  border-radius: 7px;
  background: #0f0f11;
  color: #52525b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
  padding: 0;
}
.study-equity-player-equity {
  margin-top: 10px;
  min-height: 34px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 28px;
  line-height: 1.1;
  color: #60a5fa;
  user-select: text;
}
.study-equity-player-split {
  margin-top: 4px;
  min-height: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  color: #71717a;
  user-select: text;
}
.study-equity-combo {
  margin-top: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: #d4d4d8;
}
.eq-share {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}
.eq-copy {
  flex: 0 0 auto;
  border: 1px solid #2a2a2e;
  background: #111113;
  color: #60a5fa;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  cursor: pointer;
}
.eq-share-url {
  flex: 1;
  min-width: 0;
  border: 1px solid #2a2a2e;
  background: #101012;
  color: #a1a1aa;
  border-radius: 8px;
  padding: 8px 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}
.eq-share-hint {
  margin: 8px 0 0;
  color: #71717a;
  font-size: 12px;
}
.study-equity-distribution {
  display: flex;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #222226;
  min-height: 28px;
  background: #101012;
}
.study-equity-distribution > div {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: #0b0b0c;
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.study-equity-selecting {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #f4f4f5;
  font-size: 13px;
}
.study-equity-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.study-equity-picker-card {
  border: 1px solid #222226;
  border-radius: 7px;
  background: #111113;
  padding: 5px 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.study-equity-picker-card.is-disabled { opacity: 0.25; cursor: not-allowed; }
.study-equity-picker-card:not(.is-disabled):hover { border-color: #3f3f46; }
.study-equity-scenarios { display: flex; flex-direction: column; gap: 4px; }
.study-equity-scenarios button, .study-equity-presets button {
  border: 1px solid #222226;
  background: #111113;
  color: #d4d4d8;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}
.study-equity-presets { display: flex; flex-wrap: wrap; gap: 4px; }
.study-equity-presets button { padding: 4px 8px; border-radius: 999px; font-size: 10px; }
.study-equity-range-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.study-equity-range {
  display: grid;
  grid-template-columns: repeat(13, minmax(0, 1fr));
  gap: 2px;
}
.study-equity-range button {
  aspect-ratio: 1;
  border: 1px solid #222226;
  background: #111113;
  color: #a1a1aa;
  border-radius: 3px;
  padding: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(7px, 0.72vw, 11px);
  letter-spacing: -0.04em;
  cursor: pointer;
  line-height: 1;
}
.study-equity-range button.is-pair { color: #e4e4e7; background: #1c1c20; }
.study-equity-range button.is-suited { color: #93c5fd; }
.study-equity-range button.is-on {
  background: var(--range, #60A5FA);
  color: #0b0b0c;
  border-color: transparent;
  font-weight: 700;
}

.rpc {
  color: #fff;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 800;
  line-height: 1;
  border-radius: 6px;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
.rpc-sm { width: 36px; height: 52px; }
.rpc-seat { width: 44px; height: 62px; }
.rpc-corner {
  position: absolute;
  top: 3px;
  left: 4px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 0.85;
}
.rpc-rank { color: #fff; font-weight: 800; letter-spacing: -0.03em; }
.rpc-sm .rpc-rank { font-size: 15px; }
.rpc-seat .rpc-rank { font-size: 19px; }
.rpc-suit { color: #fff; line-height: 1; margin-top: 1px; }
.rpc-sm .rpc-suit { font-size: 10px; }
.rpc-seat .rpc-suit { font-size: 12px; }
.rpc-large {
  position: absolute;
  right: 2px;
  bottom: -2px;
  line-height: 0.82;
  letter-spacing: -0.05em;
  pointer-events: none;
  color: #fff;
  font-weight: 800;
}
.rpc-sm .rpc-large { font-size: 26px; }
.rpc-seat .rpc-large { font-size: 32px; }
.rpc.is-ten.rpc-sm .rpc-large { font-size: 19px; }
.rpc.is-ten.rpc-seat .rpc-large { font-size: 23px; }

.eq-slim { margin: 12px 0 0; }
.eq-after {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.35;
  color: #a1a1aa;
}
.examples { margin: 8px 0 0; padding-left: 1.2em; }
.examples li { margin: 10px 0; color: var(--t2); max-width: 68ch; font-size: 16px; }
.eq-cta {
  margin-top: 8px;
  padding: 28px 0;
}
.eq-cta .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
}
.eq-cta p { margin: 0; color: var(--t1); font-size: 17px; line-height: 1.45; max-width: 68ch; }
.section { padding: 72px 0 8px; }
.section h2 {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t3);
}
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.steps article { border-top: 1px solid var(--line); padding-top: 14px; }
.steps .n { font-family: var(--mono); font-size: 11px; color: var(--t3); }
.steps h3 { margin: 8px 0; font-size: 16px; font-weight: 600; }
.steps p { margin: 0; color: var(--t2); font-size: 14px; }
.faq-list { margin-top: 22px; max-width: 760px; }
.faq-list details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq-list summary { cursor: pointer; font-weight: 600; }
.faq-list p { margin: 8px 0 0; color: var(--t2); }
.faq-lede { color: var(--t2); margin-top: 8px; }
.faq-lede a { text-decoration: underline; text-underline-offset: 3px; }

footer { border-top: 1px solid var(--line); margin-top: 72px; padding: 48px 0 32px; color: var(--t3); font-size: 14px; }
.fgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.fgrid h2, .fgrid h5 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; color: var(--t3); margin: 0 0 12px; }
.fgrid a { display: block; color: var(--t2); margin: 0 0 8px; }
.fgrid a:hover { color: var(--t1); }
.fbot { margin-top: 28px; font-family: var(--mono); font-size: 12px; }

@media (max-width: 1220px) {
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1100px) {
  .study-tool-header { flex-direction: column; gap: 16px; }
}
@media (max-width: 800px) {
  .wrap, .tool-wrap { padding: 0 20px; }
  nav .wrap { height: 56px; gap: 12px; }
  .navlinks a { display: none; }
  .navlinks a.nav-price { display: inline; color: var(--t1); font-weight: 600; }
  .navr .ln { display: none; }
  .study-tool-page { padding: 18px 14px 16px; }
  .study-tool-h1, .study-tool-title { font-size: 28px; }
  .study-equity-players__grid { grid-template-columns: 1fr; }
  .eq-cta .wrap { flex-direction: column; align-items: flex-start; }
  .eq-cta .btn { width: 100%; }
  .fgrid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .page-intro { padding-top: 24px; }
  .page-intro p { font-size: 16px; }
  .study-equity-board-slot { width: 52px; height: 74px; }
  .rpc-seat { width: 40px; height: 56px; }
  .rpc-seat .rpc-rank { font-size: 16px; }
  .rpc-seat .rpc-large { font-size: 26px; }
  .fgrid { grid-template-columns: 1fr; }
  .section { padding-top: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .eq-sheet { transition: none; }
  .announce::before { animation: none; opacity: 0; }
  .announce-cta { transition: none; }
  .announce-cta:hover { transform: none; }
}

/* Desktop: the tool fills the first screen. Only the card picker scrolls. */
@media (min-width: 801px) {
  nav .wrap { height: 48px; }
  .tool-wrap { max-width: 1320px; padding: 0 20px; }
  .crumbs { padding-top: 26px; font-size: 12px; }
  .eq-page-title { margin: 18px 0 0; font-size: 26px; line-height: 1; }
  .eq-topbar { margin-bottom: 4px; }
  .equity-variant-toggle { padding: 2px; }
  .equity-variant-toggle__btn { padding: 3px 10px 3px 6px; gap: 6px; font-size: 13px; }
  .equity-variant-toggle__fan { width: 26px; height: 20px; }
  .page-intro { padding: 2px 0 4px; }
  .page-intro h1 { font-size: 26px; margin: 0; line-height: 1; }
  .page-intro p {
    font-size: 13px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: none;
  }
  .fit-screen {
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .fit-screen .tool-wrap {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .eq-app {
    flex: 1;
    min-height: 0;
    height: auto;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
  }
  .study-tool-page {
    flex: 1;
    min-height: 0;
    height: auto;
    width: 100%;
    max-width: 1280px;
    display: flex;
    flex-direction: column;
    padding: 8px 16px 6px;
    overflow: hidden;
  }
  .study-tool-header { margin-bottom: 6px; flex-shrink: 0; align-items: center; }
  #eq-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .study-tool-h1, .study-tool-title { font-size: 22px; margin: 2px 0 0; line-height: 1; }
  .study-tool-label { margin: 1px 0 0; font-size: 12px; }
  .study-tool-subtitle { margin: 2px 0 0; font-size: 12px; }
  .eq-after { margin: 4px 0 0; font-size: 11px; }
  .eq-scenario-card { flex-shrink: 0; }
  .study-equity-layout {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    grid-template-columns: minmax(340px, 0.86fr) minmax(520px, 1.2fr);
    gap: 12px;
    align-items: stretch;
  }
  .study-equity-main, .study-equity-side { gap: 10px; min-height: 0; height: 100%; overflow: hidden; }
  .study-equity-card, .study-equity-players { padding: 8px; border-radius: 10px; }
  .study-equity-card__head, .study-equity-players__head { margin-bottom: 6px; }
  .eq-result-card { flex-shrink: 0; }
  .study-equity-distribution { min-height: 22px; }
  .eq-share { margin-top: 6px; }
  .eq-share-url { padding: 5px 8px; }
  .eq-share-hint { margin: 4px 0 0; }
  .study-equity-board-slot { width: 52px; height: 72px; }
  .study-equity-hole-slot { width: 58px; height: 80px; }
  .rpc-seat { width: 52px; height: 74px; border-radius: 6px; }
  .rpc-seat .rpc-rank { font-size: 16px; }
  .rpc-seat .rpc-suit { font-size: 12px; }
  .rpc-seat .rpc-large { font-size: 28px; }
  .rpc.is-ten.rpc-seat .rpc-large { font-size: 20px; }
  .study-equity-dead { margin-top: 6px; padding-top: 0; border-top: 0; }
  .study-equity-dead-label {
    font-size: 10px;
    letter-spacing: 0.08em;
    font-weight: 700;
    text-transform: uppercase;
    color: #71717a;
  }
  .study-equity-dead-card .rpc-sm { width: 22px; height: 30px; }
  .study-equity-dead-card .rpc-sm .rpc-rank { font-size: 10px; }
  .study-equity-dead-card .rpc-sm .rpc-large { font-size: 14px; }
  .study-equity-players__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .study-equity-player-card { padding: 10px; }
  .study-equity-player-cards { margin-top: 8px; gap: 8px; }
  .study-equity-mode { margin-top: 6px; }
  .study-equity-player-equity { font-size: 26px; min-height: 28px; margin-top: 8px; }
  .study-equity-player-split { margin-top: 2px; }
  .eq-picker-card {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .study-equity-picker-scroll {
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }
  .study-equity-picker-grid {
    height: 100%;
    grid-template-columns: repeat(13, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
  .study-equity-picker-card {
    height: 100%;
    padding: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
  }
  .study-equity-picker-card .rpc-sm {
    width: 100%;
    height: auto;
    max-height: 100%;
    aspect-ratio: 5 / 7;
    border-radius: 6px;
  }
  .study-equity-picker-card .rpc-corner .rpc-rank { display: none; }
  .study-equity-picker-card .rpc-sm .rpc-suit { font-size: 13px; }
  .study-equity-picker-card .rpc-sm .rpc-large {
    font-size: 18px;
    left: 4px;
    right: auto;
    bottom: 3px;
  }
  .study-equity-picker-card .rpc.is-ten.rpc-sm .rpc-large { font-size: 15px; }
  .eq-scenario-card {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 10px;
  }
  .study-equity-scenarios {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    align-content: start;
  }
  .study-equity-scenarios button {
    height: auto;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 13px;
  }
  .study-equity-picker-card .rpc-large { bottom: 2px; }
  .eq-modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
  }
  .eq-modal-card {
    width: min(640px, 100%);
    background: #17171a;
    border: 1px solid #222226;
    border-radius: 14px;
    padding: 14px;
  }
}

@media (max-width: 800px) {
  .fit-screen { height: auto; display: block; overflow: visible; }
  .page-intro h1 { font-size: 30px; }
  .page-intro p {
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .study-equity-layout { display: flex; flex-direction: column; gap: 8px; }
  .study-equity-main, .study-equity-side { display: contents; }
  .eq-result-card { order: 1; }
  .study-equity-side > .study-equity-card { order: 2; }
  .study-equity-players { order: 3; }
  .eq-scenario-card { order: 4; }
  .eq-picker-card { display: none; }
  .study-equity-scenarios { display: flex; flex-direction: row; flex-wrap: wrap; }
  .study-equity-scenarios button { height: auto; padding: 6px 8px; font-size: 11px; }
  .eq-app { height: auto; margin-top: 18px; }
  .eq-page-title { margin-top: 20px; font-size: 34px; }
  .study-tool-page { padding: 10px 12px 0; }
  .study-tool-h1, .study-tool-title { font-size: 26px; }
  .study-tool-label { font-size: 13px; }
  .study-tool-header { margin-bottom: 4px; }
  .page-intro { padding-top: 8px; }
  .page-intro h1 { font-size: 32px; }
  .page-intro p { font-size: 14px; }
  .crumbs { padding-top: 28px; }
  .study-equity-players__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .study-equity-board-slot { width: 44px; height: 60px; }
  .study-equity-hole-slot { width: 40px; height: 56px; }
  .rpc-seat { width: 34px; height: 48px; }
  .study-equity-player-equity { font-size: 22px; min-height: 24px; }
  .eq-sheet-back {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 50;
  }
  .eq-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 51;
    background: #17171a;
    color: #f4f4f5;
    border-radius: 16px 16px 0 0;
    border-top: 1px solid #2a2a2e;
    padding: 8px 14px 18px;
    max-height: 62vh;
    display: flex;
    flex-direction: column;
  }
  .eq-sheet-handle {
    width: 42px;
    height: 5px;
    border-radius: 99px;
    background: #3f3f46;
    margin: 2px auto 10px;
    cursor: grab;
    touch-action: none;
  }
  .eq-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
  }
  .eq-sheet-head button {
    border: none;
    background: transparent;
    color: #60a5fa;
    font-size: 14px;
    cursor: pointer;
  }
  .eq-sheet-body { overflow: hidden; }
  .eq-suit-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
  }
  .eq-suit-tab {
    height: 48px;
    border-radius: 12px;
    border: 2px solid transparent;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
  }
  .eq-suit-tab[data-suit="s"] { border-color: #3f3f46; }
  .eq-suit-tab.is-on { border-color: #f4f4f5; }
  .eq-pager { overflow: hidden; touch-action: pan-y; }
  .eq-pager-track { display: flex; will-change: transform; }
  .eq-page {
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
  }
  .eq-page-card {
    border: none;
    background: transparent;
    padding: 0;
    display: flex;
    justify-content: center;
    cursor: pointer;
  }
  .eq-page-card .rpc-seat { width: 100%; height: 74px; }
  .eq-page-card .rpc-seat .rpc-large { font-size: 28px; }
  .eq-page-card .rpc-seat .rpc-suit { font-size: 13px; }
  .eq-page-card.is-disabled { opacity: 0.28; cursor: not-allowed; }
  .eq-sheet .study-equity-range { gap: 3px; }
  .eq-sheet .study-equity-range button { font-size: 9px; min-height: 28px; }
  nav .wrap { height: 52px; }
  .crumbs { padding-top: 28px; }
  .eq-page-title { margin-top: 18px; font-size: 32px; }
  .page-intro { padding: 2px 0 4px; }
  .page-intro h1 { font-size: 24px; margin: 0; }
  .page-intro p { font-size: 13px; line-height: 1.3; }
  .study-tool-page { padding: 8px 10px 0; }
  .study-tool-header { margin-bottom: 4px; gap: 8px; }
  .study-tool-subtitle { display: none; }
  .study-tool-h1, .study-tool-title { font-size: 22px; margin: 0; }
  .study-tool-label { font-size: 12px; margin: 2px 0 0; }
  .eq-share-hint { display: none; }
  .eq-result-card, .study-equity-card, .study-equity-players { padding: 8px; }
  .eq-scenario-card { padding-bottom: 2px; }
  .study-equity-card__head, .study-equity-players__head { margin-bottom: 4px; }
  .study-equity-distribution { min-height: 20px; }
  .eq-share { margin-top: 6px; }
  .study-equity-board-slot { width: 36px; height: 50px; }
  .study-equity-hole-slot { width: 34px; height: 46px; }
  .rpc-seat { width: 30px; height: 40px; }
  .rpc-seat .rpc-large { font-size: 16px; }
  .study-equity-dead { margin-top: 6px; padding-top: 0; border-top: 0; }
  .study-equity-dead-card .rpc-sm { width: 20px; height: 28px; }
  .study-equity-player-card { padding: 6px; }
  .study-equity-player-equity { font-size: 18px; margin-top: 2px; min-height: 20px; }
  .study-equity-mode { margin-top: 4px; }
  .study-equity-player-cards { margin-top: 4px; }
}
