/* Starting-hands and equity-calculator pages (scripts/build-hands.mjs). One ocean scene, left aligned: the sky
   holds the headline, the tool floats on the waterline, and everything ranked sinks below it. The deeper a hand
   sits, the weaker it is. Fonts are the self-hosted ones of the ocean landing. */
@font-face { font-family: 'Newsreader'; src: url(/fonts/newsreader.woff2) format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Schibsted Grotesk'; src: url(/fonts/schibsted-grotesk.woff2) format('woff2'); font-weight: 400 900; font-style: normal; font-display: swap; }
:root {
  --sky-top: #eef9f7; --sky: #dcf3f1; --shallows: #a9e1e4; --water: #0e6f8f; --mid: #0b4f72; --deep: #08304c; --abyss: #03101b;
  --ink: #06283d; --ink-soft: #2a5467; --foam: #ecfbf9; --mist: #b4d3da; --lagoon: #45d8d2;
  --panel: #f5fbfa; --panel-line: rgba(6, 40, 61, 0.12); --line: rgba(236, 251, 249, 0.16);
  --spade: #2a333e; --heart: #c4323c; --diamond: #2361c2; --club: #1b8150;
  --serif: 'Newsreader', 'Palatino Linotype', Palatino, Georgia, serif;
  --sans: 'Schibsted Grotesk', 'Segoe UI', system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--abyss); color: var(--foam); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--lagoon); outline-offset: 2px; }
.wrap { max-width: 1112px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.num { font-variant-numeric: tabular-nums; }

/* sky */
.sky { position: relative; background: linear-gradient(180deg, var(--sky-top) 0, var(--sky) 55%, var(--shallows) 100%); color: var(--ink); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.top .home { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; }
.top nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 22px; font-size: 0.95rem; }
.top nav a { text-decoration: none; color: var(--ink-soft); }
.top nav a[aria-current] { color: var(--ink); font-weight: 600; box-shadow: 0 2px 0 var(--ink); }
.hero { padding-top: clamp(28px, 6vw, 64px); display: grid; gap: 18px; justify-items: start; }
.hero h1 { font-family: var(--serif); font-weight: 520; font-size: clamp(2.3rem, 6.2vw, 4.2rem); line-height: 1.03; letter-spacing: -0.02em; max-width: 15ch; text-wrap: balance; }
.hero p { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-soft); max-width: 52ch; }
.games { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(6, 40, 61, 0.08); margin-top: 6px; }
.games a { border-radius: 999px; padding: 8px 18px; font-weight: 600; color: var(--ink-soft); text-decoration: none; }
.games a[aria-current] { background: var(--ink); color: var(--foam); }
.sky :focus-visible { outline-color: var(--water); }
.waves { position: absolute; left: 0; right: 0; bottom: -1px; height: 72px; overflow: hidden; pointer-events: none; }
.waves svg { position: absolute; left: 0; top: 0; width: 200%; height: 100%; display: block; }
.waves .w1 { animation: drift 30s linear infinite reverse; }
.waves .w2 { animation: drift 19s linear infinite; }
@keyframes drift { to { transform: translateX(-50%); } }

/* sea */
.sea { background: linear-gradient(180deg, var(--water) 0, var(--mid) 24%, var(--deep) 62%, var(--abyss) 100%); }
.sea > .wrap { display: flex; flex-direction: column; gap: 64px; padding-block: 36px 96px; }
.lift { margin-top: -16px; position: relative; z-index: 2; }   /* the first panel starts just under the waterline */
.sea h2 { font-family: var(--serif); font-weight: 520; font-size: clamp(1.6rem, 3.2vw, 2.2rem); letter-spacing: -0.015em; line-height: 1.15; }
.sub { color: var(--mist); font-size: 0.95rem; }
.headrow { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; margin-bottom: 10px; }

/* cards */
.hand { display: flex; gap: 3px; }
.pc { position: relative; display: inline-grid; place-items: center; flex: none; width: 34px; aspect-ratio: 5 / 7; border-radius: 6px; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 6px 10px -6px rgba(3, 16, 27, 0.7); }
.pc b { font-family: var(--serif); font-weight: 650; font-size: 1.1rem; line-height: 1; transform: translate(-12%, -16%); }
.pc i { position: absolute; right: 3px; bottom: 2px; font-style: normal; font-size: 0.74rem; line-height: 1; font-family: 'Segoe UI Symbol', 'Apple Symbols', 'Noto Sans Symbols 2', sans-serif; }
.pc.lg { width: clamp(40px, 11.5vw, 60px); border-radius: 9px; }
.pc.lg b { font-size: clamp(1.4rem, 4.6vw, 2.1rem); transform: translateY(-12%); }
.pc.lg i { font-size: clamp(0.72rem, 2.2vw, 1.05rem); right: 5px; bottom: 4px; }
.pc.sm { width: 25px; border-radius: 5px; }
.pc.sm b { font-size: 0.86rem; }
.pc.sm i { font-size: 0.6rem; right: 2px; bottom: 1px; }
.su-s { background: var(--spade); } .su-h { background: var(--heart); } .su-d { background: var(--diamond); } .su-c { background: var(--club); }
.slot { width: clamp(40px, 11.5vw, 60px); aspect-ratio: 5 / 7; border-radius: 9px; border: 1.5px dashed rgba(6, 40, 61, 0.28); flex: none; }

/* the tool panel */
.panel { background: var(--panel); color: var(--ink); border-radius: 24px; box-shadow: 0 40px 70px -40px rgba(3, 16, 27, 0.75); }
.panel :focus-visible { outline-color: var(--water); }
.check { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
.check > div { padding: clamp(18px, 3vw, 30px); min-width: 0; }
.check > div + div { border-left: 1px solid var(--panel-line); }
.solo { max-width: 640px; padding: clamp(18px, 3vw, 30px); }
.panel h2 { font-family: var(--serif); font-weight: 520; font-size: 1.45rem; letter-spacing: -0.01em; }
.slots { display: flex; gap: 4px; margin: 16px 0 18px; min-height: 60px; }
.pick { display: grid; gap: 7px; }
.suit-row { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: center; gap: 8px; }
.suit-row > span { color: var(--c); font-size: 1.05rem; text-align: center; font-family: 'Segoe UI Symbol', 'Apple Symbols', 'Noto Sans Symbols 2', sans-serif; }
.cells { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 4px; }
.cells button { aspect-ratio: 5 / 6; border: 0; border-radius: 6px; padding: 0; cursor: pointer; font-family: var(--serif); font-weight: 650; font-size: 1rem; background: color-mix(in srgb, var(--c) 11%, #fff); color: var(--c); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 26%, transparent); transition: transform 0.12s ease, background 0.12s ease; }
.cells button:hover:not(:disabled) { background: color-mix(in srgb, var(--c) 22%, #fff); }
.cells button[aria-pressed="true"] { background: var(--c); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 12px -8px rgba(3, 16, 27, 0.8); }
.cells button:disabled { opacity: 0.32; cursor: default; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.btn { border: 1.5px solid rgba(6, 40, 61, 0.22); background: none; color: var(--ink); border-radius: 999px; padding: 9px 18px; cursor: pointer; font-weight: 600; text-decoration: none; display: inline-block; }
.btn:hover { border-color: var(--ink); }
.btn.go { background: var(--ink); color: var(--foam); border-color: var(--ink); }
.btn.sea-go { background: var(--lagoon); color: var(--ink); border-color: var(--lagoon); padding: 13px 24px; }
.btn.ghost { border-color: var(--line); color: var(--foam); }
.btn.ghost:hover { border-color: var(--foam); }

/* result */
.res-tag { font-size: 0.9rem; color: var(--ink-soft); }
.res-cards { display: flex; gap: 4px; margin: 10px 0 14px; }
.res-name { font-size: 1rem; font-weight: 600; }
.res-big { font-family: var(--serif); font-weight: 520; font-size: clamp(2.6rem, 6.4vw, 3.9rem); line-height: 1.02; letter-spacing: -0.025em; margin: 2px 0 8px; }
.res-line { color: var(--ink-soft); max-width: 40ch; }
.res-line b { color: var(--ink); font-weight: 650; }
.res-empty { display: grid; gap: 10px; align-content: center; justify-items: start; min-height: 240px; }
.res-empty .res-big { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.strip { margin: 22px 0 6px; }
.strip .bar { position: relative; height: 12px; border-radius: 999px; background: linear-gradient(90deg, var(--shallows) 0, var(--water) 30%, var(--deep) 70%, var(--abyss) 100%); }
.strip .mark { position: absolute; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--ink), 0 6px 12px -4px rgba(3, 16, 27, 0.7); transition: left 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.strip .ends { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--ink-soft); margin-top: 8px; }
.opp { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--panel-line); }
.opp h3 { font-size: 1rem; font-weight: 650; margin-bottom: 10px; }
.opp li { display: grid; grid-template-columns: 104px minmax(0, 1fr) 58px; align-items: center; gap: 10px; padding: 4px 0; font-size: 0.92rem; }
.opp .track { position: relative; height: 10px; border-radius: 999px; background: rgba(6, 40, 61, 0.09); }
.opp .fill { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--water); transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.opp .even { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); }
.opp .val { text-align: right; font-weight: 650; }
.fine { font-size: 0.8rem; color: var(--ink-soft); margin-top: 8px; }
.mini { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--panel-line); color: var(--ink-soft); }
.mini b { color: var(--ink); }

/* hand against hand */
.grps { display: grid; gap: 6px; margin: 14px 0 16px; }
.grp { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 1.5px solid transparent; border-radius: 14px; background: rgba(6, 40, 61, 0.05); text-align: left; cursor: pointer; }
.grp[aria-pressed="true"] { border-color: var(--ink); background: #fff; }
.grp .lab { font-weight: 650; font-size: 0.95rem; }
.grp .lab small { display: block; font-weight: 400; font-size: 0.78rem; color: var(--ink-soft); }
.slot.s { width: 34px; border-radius: 6px; }
.cells button.taken { opacity: 0.32; }
.vs { display: grid; gap: 14px; }
.side { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; }
.side .res-tag, .side .who { grid-column: 1 / -1; }
.side .res-big { margin: 0; font-size: clamp(2.3rem, 5.6vw, 3.4rem); }
.side .who { font-size: 0.9rem; color: var(--ink-soft); min-height: 1.4em; }
.side + .side { padding-top: 14px; border-top: 1px solid var(--panel-line); }
.split { display: flex; height: 14px; border-radius: 999px; overflow: hidden; margin: 22px 0 10px; background: rgba(6, 40, 61, 0.09); }
.split span { display: block; transition: width 0.35s ease; }
.split .p1 { background: var(--water); }
.split .tie { background: var(--mist); }
.split .p2 { background: var(--ink); }

/* ranked rows (list and dive) */
.rows li { border-top: 1px solid var(--line); }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.row { width: 100%; display: grid; grid-template-columns: 52px auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 11px 6px; border: 0; background: none; text-align: left; cursor: pointer; border-radius: 10px; }
.row:hover { background: rgba(236, 251, 249, 0.07); }
.row .no { font-family: var(--serif); font-size: 1.3rem; color: var(--mist); }
.row .nm { color: var(--mist); font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .eq { font-weight: 650; font-size: 1.05rem; }
.dive .row { grid-template-columns: 96px auto minmax(0, 1fr) auto; padding-block: 15px; }
.dive .at { font-family: var(--serif); font-size: 1.3rem; }
.dive .at small { display: block; font-family: var(--sans); font-size: 0.78rem; color: var(--mist); }
.dive li.you { border-color: transparent; }
.dive li.you + li { border-top-color: transparent; }
.dive li.you .row { background: rgba(69, 216, 210, 0.14); box-shadow: inset 0 0 0 1.5px var(--lagoon); cursor: default; }
.dive li.you .nm, .dive li.you .at small { color: var(--foam); }
.more { margin-top: 18px; }

/* method */
.method { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; }
.method p { color: var(--mist); max-width: 62ch; margin-top: 12px; }

@media (max-width: 860px) {
  .check { grid-template-columns: minmax(0, 1fr); }
  .check > div + div { border-left: 0; border-top: 1px solid var(--panel-line); }
  .method { grid-template-columns: minmax(0, 1fr); align-items: start; }
}
@media (max-width: 560px) {
  .row { grid-template-columns: 34px auto minmax(0, 1fr) auto; gap: 10px; padding-inline: 0; }
  .row .nm { visibility: hidden; }
  .row .no { font-size: 1.05rem; }
  .dive .row { grid-template-columns: 62px auto minmax(0, 1fr) auto; }
  .dive .at { font-size: 1.05rem; }
  .pc.sm { width: 23px; }
  .opp li { grid-template-columns: 92px minmax(0, 1fr) 54px; }
  .grp { grid-template-columns: 76px minmax(0, 1fr); padding-inline: 8px; }
  .grp .pc, .slot.s { width: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .waves .w1, .waves .w2 { animation: none; }
  .strip .mark, .opp .fill, .cells button, .split span { transition: none; }
}

/* static parts of the real pages */
[hidden] { display: none !important; }
img { max-width: 100%; }
.rows .row.static { cursor: default; }
.rows .row.static:hover { background: none; }
.faq { display: grid; gap: 18px; max-width: 70ch; }
.faq h3 { font-size: 1.05rem; font-weight: 650; }
.faq p { color: var(--mist); margin-top: 4px; }
.links { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 14px; }
.links a { color: var(--foam); text-underline-offset: 4px; }
.links a:hover { color: var(--lagoon); }
.langs { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.92rem; color: var(--mist); }
.langs a { color: var(--mist); text-decoration: none; }
.langs a[aria-current] { color: var(--foam); font-weight: 600; }
.langs a:hover { color: var(--foam); }
.foot { border-top: 1px solid var(--line); padding-top: 24px; display: grid; gap: 14px; font-size: 0.9rem; color: var(--mist); }
.foot a { color: var(--mist); }
.noscript { color: var(--ink-soft); padding: 8px 0; }
@media (max-width: 560px) { .top nav a.wide { display: none; } }

/* Chinese and Japanese have no spaces: break headlines only where a space is, and let them run wider. */
:lang(ja) .hero h1, :lang(zh-Hans) .hero h1 { word-break: keep-all; max-width: 22ch; font-size: clamp(2rem, 5.2vw, 3.4rem); line-height: 1.15; }
:lang(ja) .sea h2, :lang(zh-Hans) .sea h2 { word-break: keep-all; }

/* equity curve */
.chartbox h2 { margin-bottom: 10px; }
.curve { width: 100%; height: auto; display: block; touch-action: none; cursor: ew-resize; }
.curve .g { stroke: rgba(6, 40, 61, 0.1); stroke-width: 1; }
.curve .t { fill: var(--ink-soft); font-size: 12px; font-family: var(--sans); }
.curve .even { stroke: rgba(6, 40, 61, 0.45); stroke-width: 1; stroke-dasharray: 4 5; }
.curve .other { fill: none; stroke: rgba(6, 40, 61, 0.22); stroke-width: 2; }
.curve .main { fill: none; stroke: var(--water); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.curve .guide { stroke: var(--ink); stroke-width: 1; }
.curve .mark { fill: #fff; stroke: var(--ink); stroke-width: 3; }
#curve-range { width: 100%; margin: 10px 0 6px; accent-color: var(--water); }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 0.82rem; color: var(--ink-soft); }
.legend .k { display: inline-block; width: 22px; height: 0; border-top: 3.5px solid var(--water); margin-left: 10px; }
.legend .k:first-child { margin-left: 0; }
.legend .k.other { border-top: 2px solid rgba(6, 40, 61, 0.3); }
#finder { margin-top: -28px; }
.curve { touch-action: pan-y; }   /* a finger still scrolls the page up and down over the chart */

/* calculator: up to four hands, share */
.grp-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: stretch; }
.grp-row .x { border: 0; background: rgba(6, 40, 61, 0.05); border-radius: 12px; width: 38px; cursor: pointer; font-size: 1.2rem; color: var(--ink-soft); }
.grp-row .x:hover { background: rgba(6, 40, 61, 0.12); color: var(--ink); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; }
.c1 { background: var(--water); } .c2 { background: var(--ink); } .c3 { background: var(--lagoon); } .c4 { background: var(--heart); }
.split .seg { display: block; transition: width 0.35s ease; }
.btn.add { margin: 0 0 14px; padding: 6px 14px; font-size: 0.92rem; }
.many .side .res-big { font-size: clamp(1.8rem, 4.4vw, 2.5rem); }
.many .side + .side { padding-top: 10px; }
.many .vs { gap: 10px; }
.share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.btn.wa { background: #128c7e; border-color: #128c7e; color: #fff; }
@media (prefers-reduced-motion: reduce) { .split .seg { transition: none; } }

/* calculator as a poker table: seats around the felt, board in the middle */
.tablebox { position: relative; }
.felt { position: relative; aspect-ratio: 16 / 8.6; border-radius: 999px; background: radial-gradient(ellipse at 50% 40%, #1b93a3 0, #0f6f84 55%, #0a5169 100%); box-shadow: 0 0 0 10px #06283d, 0 0 0 12px rgba(236, 251, 249, 0.25), 0 40px 70px -30px rgba(3, 16, 27, 0.8), inset 0 0 60px rgba(3, 16, 27, 0.35); margin: 12px 12px 26px; }
.felt { --rx: 43%; --ry: 39%; }
.seat { position: absolute; left: calc(50% + var(--cx) * var(--rx)); top: calc(50% + var(--cy) * var(--ry)); transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 4px; padding: 8px 10px; border: 2px solid transparent; border-radius: 16px; background: var(--panel); color: var(--ink); cursor: pointer; box-shadow: 0 14px 22px -12px rgba(3, 16, 27, 0.8); min-width: 96px; }
.seat.sel, .seat[aria-pressed="true"] { border-color: var(--lagoon); box-shadow: 0 0 0 4px rgba(69, 216, 210, 0.35), 0 14px 22px -12px rgba(3, 16, 27, 0.8); }
.seat .who { font-size: 0.82rem; font-weight: 650; white-space: nowrap; }
.seat .eq { font-family: var(--serif); font-size: 1.35rem; font-weight: 520; line-height: 1; min-height: 1em; }
.seat .rng { font-size: 0.9rem; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: rgba(6, 40, 61, 0.08); white-space: nowrap; }
.seat .pc, .seat .slot.s { width: 22px; border-radius: 4px; }
.seat .pc b { font-size: 0.78rem; }
.seat .pc i { font-size: 0.5rem; right: 1px; bottom: 0; }
.seat .hand { gap: 2px; }
.seat.boardseat { background: none; box-shadow: none; padding: 6px; min-width: 0; }
.seat.boardseat .pc, .seat.boardseat .slot.s { width: 40px; border-radius: 7px; }
.seat.boardseat .pc b { font-size: 1.3rem; }
.seat.boardseat .pc i { font-size: 0.8rem; right: 3px; bottom: 2px; }
.seat.boardseat .slot.s { border-color: rgba(236, 251, 249, 0.45); }
.seat.boardseat .hand { gap: 5px; }
.seat.boardseat .who { color: var(--foam); font-weight: 500; }
.modes { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(6, 40, 61, 0.08); margin: 12px 0 14px; }
.modes button { border: 0; background: none; border-radius: 999px; padding: 6px 16px; cursor: pointer; font-weight: 600; color: var(--ink-soft); }
.modes button[aria-pressed="true"] { background: var(--ink); color: var(--foam); }
.rangebox { display: grid; gap: 8px; margin-bottom: 8px; }
.rangebox output { font-family: var(--serif); font-size: 2.2rem; font-weight: 520; line-height: 1.1; }
.rangebox input { width: 100%; accent-color: var(--water); }
.c5 { background: #e39a2d; } .c6 { background: var(--club); }
.edit-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.edit-head h2 { display: flex; align-items: center; }
@media (max-width: 760px) {
  .felt { aspect-ratio: 10 / 13; margin: 10px 8px 22px; --rx: 33%; --ry: 42%; }
  .seat { padding: 6px 6px; min-width: 84px; }
  .seat .pc, .seat .slot.s { width: 19px; }
  .seat .pc b { font-size: 0.7rem; }
  .seat .eq { font-size: 1.15rem; }
  .seat.boardseat .pc, .seat.boardseat .slot.s { width: 30px; }
  .seat.boardseat .pc b { font-size: 1rem; }
  .seat.boardseat .hand { gap: 3px; }
}

/* equity curve: larger chart, chips for the kinds of hands, their band under the curve */
.widechart { grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.8fr); }
.curve .band { fill: var(--lagoon); opacity: 0.75; }
.chips-title { font-size: 1rem; font-weight: 650; margin: 18px 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { border: 1.5px solid rgba(6, 40, 61, 0.2); background: none; color: var(--ink); border-radius: 999px; padding: 6px 14px; cursor: pointer; font-weight: 600; font-size: 0.92rem; }
.chips button[aria-pressed="true"] { background: var(--lagoon); border-color: var(--lagoon); }
.groupline { margin-top: 10px; font-size: 0.95rem; color: var(--ink-soft); min-height: 2.9em; }
@media (max-width: 860px) { .widechart { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 861px) {
  .widechart .res-cards .pc.lg { width: clamp(36px, 3.5vw, 46px); border-radius: 7px; }
  .widechart .res-cards .pc.lg b { font-size: clamp(1.15rem, 2.1vw, 1.6rem); }
  .widechart .res-cards .pc.lg i { font-size: 0.8rem; right: 4px; bottom: 3px; }
}

/* section buttons beside the game buttons; range sizes from the solver on the curve */
.switches { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 6px; }
.switches .games { margin-top: 0; }
.games.sections a { padding-inline: 14px; }
.curve .rfi { stroke: rgba(6, 40, 61, 0.55); stroke-width: 1; stroke-dasharray: 2 3; }
.curve .rfi-t { font-size: 10.5px; font-weight: 700; fill: var(--ink); }
.curve .zone-r { fill: rgba(196, 50, 60, 0.16); }
.curve .zone-c { fill: rgba(227, 154, 45, 0.2); }
.vsbox { margin-top: 10px; }
.vsbox summary { cursor: pointer; font-weight: 600; font-size: 0.92rem; color: var(--ink-soft); padding: 4px 0; }
.vsbox .chips { margin-top: 8px; }
.groupline .src { display: block; font-size: 0.8rem; margin-top: 4px; }
.zoneline { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--panel-line); color: var(--ink-soft); }
.zoneline b { color: var(--ink); }
@media (max-width: 560px) { .games.sections a { padding: 8px 11px; font-size: 0.9rem; } }

/* more than six players: three more seat colours; on a phone a crowded table shows a hand as its ranks, not as cards */
.c7 { background: #7c5cff; } .c8 { background: #8a8f98; } .c9 { background: #d6589f; }
.seat .short { display: none; }
.rangebox .chips { margin-top: 4px; }
@media (max-width: 760px) {
  .felt.crowd .seat .hand { display: none; }
  .felt.crowd .seat .short { display: inline-block; }
  .felt.crowd .seat { min-width: 0; padding: 5px 7px; }
  .felt.crowd .seat .rng { font-size: 0.78rem; padding: 4px 8px; }
  .felt.crowd .seat .who { font-size: 0.72rem; }
  .felt.crowd .seat .eq { font-size: 1rem; }
  .felt.crowd .seat.boardseat .hand { display: flex; }
}

/* second chip row (suit kind) and the players select of the ranking */
.chips.second { margin-top: 6px; }
.players { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 600; }
.players select { font: inherit; font-weight: 600; color: var(--ink); background: #fff; border: 1.5px solid rgba(6, 40, 61, 0.22); border-radius: 999px; padding: 7px 14px; }

/* flop equity */
.chartpanel { max-width: none; }
.flopcurve { cursor: default; touch-action: auto; }
.ftables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 48px; }
.ftable { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.ftable th { text-align: left; font-weight: 600; color: var(--mist); padding: 0 10px 8px 0; font-size: 0.85rem; }
.ftable th:first-child { font-family: var(--serif); font-size: 1.5rem; font-weight: 520; color: var(--foam); }
.ftable td { padding: 9px 10px 9px 0; border-top: 1px solid var(--line); }
.ftable td.num, .ftable th + th { text-align: right; white-space: nowrap; }
.eqbar { display: inline-block; vertical-align: middle; width: 70px; height: 6px; border-radius: 999px; background: rgba(236, 251, 249, 0.14); margin-right: 10px; overflow: hidden; }
.eqbar i { display: block; height: 100%; background: var(--lagoon); }
@media (max-width: 860px) { .ftables { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .eqbar { width: 40px; } }

/* the hand at the marker as cards inside the chart */
.curve .chip { fill: #fff; stroke: var(--ink); stroke-width: 1.5; }
.curve .cardrank { fill: #fff; font-family: var(--serif); font-weight: 700; font-size: 15px; }
#curve-hand { pointer-events: none; }

/* calculator: a hint with an arrow to the second player, until a seat is clicked */
.hint { position: absolute; left: 50%; top: calc(50% - var(--ry) + 62px); transform: translateX(-50%); margin: 0; padding: 8px 14px; border-radius: 12px; background: var(--lagoon); color: var(--ink); font-weight: 650; font-size: 0.92rem; text-align: center; max-width: 80%; box-shadow: 0 10px 18px -10px rgba(3, 16, 27, 0.8); animation: nudge 1.6s ease-in-out infinite; pointer-events: none; z-index: 3; }
.hint::before { content: ""; position: absolute; left: 50%; top: -9px; margin-left: -9px; border: 9px solid transparent; border-top: 0; border-bottom-color: var(--lagoon); }
@keyframes nudge { 50% { transform: translate(-50%, 5px); } }
@media (max-width: 760px) { .hint { top: calc(50% - var(--ry) + 52px); font-size: 0.85rem; } .hint.low { top: calc(50% - var(--ry) + 82px); } }
@media (prefers-reduced-motion: reduce) { .hint { animation: none; } }

/* ---- 2026-11-13: the hand bar above the equity curve, and the phone layout of the whole equity area ---- */
.suit-tabs { display: none; }
.slots .pc { cursor: pointer; }

/* equity curve: "find your hand" as a low bar above the chart; slots and buttons left, the 52 cards right */
.handbar { padding: 16px clamp(18px, 3vw, 30px); margin-bottom: -44px; }
.slimpick { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px clamp(20px, 4vw, 48px); }
.slimpick h2 { font-size: 1.25rem; }
.slimpick .slots { margin: 10px 0 6px; min-height: 0; }
.slimpick .pc.lg, .slimpick .slot { width: 40px; border-radius: 7px; }
.slimpick .pc.lg b { font-size: 1.35rem; }
.slimpick .pc.lg i { font-size: 0.74rem; right: 4px; bottom: 3px; }
.slimpick .tools { margin-top: 6px; }
.slimpick .btn { padding: 6px 14px; font-size: 0.9rem; }
.slimpick .pick { gap: 5px; width: 100%; max-width: 660px; justify-self: end; }
.slimpick .cells button { aspect-ratio: auto; height: 31px; font-size: 0.95rem; }
.pk-hint { font-size: 0.88rem; color: var(--ink-soft); min-height: 1.4em; }
@media (max-width: 760px) {
  .slimpick { grid-template-columns: minmax(0, 1fr); }
  .slimpick .pick { max-width: none; }
}

/* equity curve: chart top left, the hand at the marker beside it, kinds of hands and solver sizes under the chart */
.widechart > .chartbox { grid-column: 1; grid-row: 1; }
.widechart > #result { grid-column: 2; grid-row: 1 / span 2; }
.widechart > .chipbox { grid-column: 1; grid-row: 2; border-left: 0; padding-top: 0; }
.fold > summary { font-size: 1rem; font-weight: 650; cursor: pointer; padding: 6px 0; }
.fold[open] > summary { margin-bottom: 4px; }
.fold + .fold { margin-top: 8px; }
.axnote { display: none; }
@media (max-width: 860px) {
  .widechart > .chartbox, .widechart > #result, .widechart > .chipbox { grid-column: 1; grid-row: auto; }
  .widechart > .chipbox { border-top: 1px solid var(--panel-line); padding-top: clamp(14px, 3vw, 30px); }
}

/* phone */
@media (max-width: 560px) {
  /* header: the section buttons under the headline are the navigation */
  .top nav a:not(.homelink) { display: none; }   /* only "Home" stays */
  .switches { gap: 8px; }
  .switches .games { display: flex; width: 100%; }
  .games a { flex: 1 1 auto; text-align: center; white-space: nowrap; }
  .games.sections { flex-wrap: wrap; border-radius: 20px; }
  .games.sections a { padding: 8px 7px; font-size: 0.84rem; }
  /* card grid: one suit at a time, large keys */
  .suit-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .suit-tabs button { border: 0; border-radius: 10px; padding: 9px 0; cursor: pointer; font-size: 1.3rem; line-height: 1; font-family: 'Segoe UI Symbol', 'Apple Symbols', 'Noto Sans Symbols 2', sans-serif; background: color-mix(in srgb, var(--c) 11%, #fff); color: var(--c); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 26%, transparent); }
  .suit-tabs button[aria-pressed="true"] { background: var(--c); color: #fff; }
  .suit-row { display: none; grid-template-columns: minmax(0, 1fr); }
  .suit-row.on { display: grid; }
  .suit-row > span { display: none; }
  .cells, .slimpick .cells { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
  .cells button, .slimpick .cells button { aspect-ratio: auto; height: 44px; font-size: 1.15rem; }
  .slots { margin: 12px 0 14px; }
  .tools { margin-top: 14px; }
  .handbar { padding: 14px 16px 16px; margin-bottom: -48px; }
  .slimpick .pc.lg, .slimpick .slot { width: clamp(38px, 12vw, 50px); }
  /* charts are drawn at about half size: larger labels, axis titles as two lines under the chart */
  .curve { overflow: visible; }   /* the percent labels may reach into the panel's padding */
  .curve .t { font-size: 20px; }
  .curve .ax, #curve-marks { display: none; }
  .curve .main { stroke-width: 5.5; }
  .curve .guide { stroke-width: 2; }
  .curve .mark { stroke-width: 5; }
  .curve .chip { stroke-width: 2.5; }
  .axnote { display: grid; gap: 1px; margin-top: 8px; font-size: 0.8rem; color: var(--ink-soft); }
  .check > div { padding: 16px; }
  .widechart .res-big { font-size: 2.5rem; }
  .res-empty { min-height: 120px; }
}

/* ---- 2026-11-13: calculator, a player with a range has its slider on the seat ---- */
div.seat { cursor: default; }
.seat-main { all: unset; box-sizing: border-box; display: grid; justify-items: center; gap: 4px; cursor: pointer; }
.seat-main:focus-visible { outline: 3px solid var(--water); outline-offset: 5px; border-radius: 10px; }
.seat-range { display: block; width: 108px; height: 18px; margin: 2px 0 0; accent-color: var(--water); cursor: ew-resize; }
.hint.low { top: calc(50% - var(--ry) + 96px); }   /* under the slider of the second player */
@media (max-width: 760px) {
  .seat-range { width: 88px; }
  .felt.crowd .seat-range { width: 60px; height: 14px; margin: 0; }
  .felt.crowd .seat:not(.sel) .seat-range { display: none; }   /* a full table on a phone: only the picked player shows the slider */
}

/* ---- 2026-11-13: the angler and the whale at the waterline (hands/whale.css); room for them under the headline ---- */
.hero { padding-bottom: 76px; }   /* the angler and the rod stay clear of the buttons, whatever their width */
@media (max-width: 1000px) { .hero { padding-bottom: clamp(62px, 13vw, 120px); } }

/* ---- 2026-11-13: calculator, Hand | Range on every seat; the cards to pick from open in the middle of the table ---- */
.seat-modes { display: inline-flex; padding: 2px; border-radius: 999px; background: rgba(6, 40, 61, 0.08); }
.seat-modes button { all: unset; box-sizing: border-box; padding: 3px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 650; line-height: 1.3; color: var(--ink-soft); cursor: pointer; white-space: nowrap; }
.seat-modes button:hover { color: var(--ink); }
.seat-modes button[aria-pressed="true"] { background: var(--ink); color: var(--foam); }
.seat-modes button:focus-visible { outline: 2px solid var(--water); outline-offset: 1px; }
.pickpop { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 5; width: min(480px, 94%); display: grid; gap: 10px; padding: 12px 14px 14px; border-radius: 18px; background: var(--panel); color: var(--ink); box-shadow: 0 0 0 3px var(--lagoon), 0 34px 60px -20px rgba(3, 16, 27, 0.95); }
.pop-head { display: flex; align-items: center; gap: 10px; }
.pop-title { display: inline-flex; align-items: center; font-weight: 650; }
.pop-count { margin-right: auto; color: var(--ink-soft); font-size: 0.9rem; }
.pop-head .btn { padding: 5px 14px; font-size: 0.88rem; }
.pickpop .pick { gap: 5px; }
.pickpop .cells button { aspect-ratio: auto; height: 31px; font-size: 0.95rem; }
@media (max-width: 760px) {
  .seat-modes button { padding: 3px 7px; font-size: 0.68rem; }
  .felt.crowd .seat:not(.sel) .seat-modes { display: none; }   /* a full table on a phone: only the picked player shows them */
}
@media (max-width: 560px) {
  .pickpop { padding: 10px 10px 12px; }
  .pickpop .cells button { height: 40px; font-size: 1.1rem; }
  .pickpop .suit-tabs button { padding: 7px 0; }
}

/* ---- 2026-11-13: back to the start page: the logo beside the name, "Home" first in the header links ---- */
.top .home { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.top .home .mark { height: 2.1em; width: auto; margin-block: -0.5em; }
.rangebox { margin-top: 12px; }
