/* Flopline site (D-44, "paper sheet"): copied as is by scripts/build-site.py. Colours are the app's design tokens
   (docs/DESIGN.md, D-47): warm paper, ink, one lime; dark follows the system or the header's theme button (D-45). Type sizes are in rem so the reader's font size applies;
   breakpoints are in rem too, so very large text gets the one-column layout. No gradients, shadows or cards. */
@font-face{font-family:Inter;font-weight:400;font-display:swap;src:url(fonts/inter_regular.otf) format("opentype")}
@font-face{font-family:Inter;font-weight:600;font-display:swap;src:url(fonts/inter_semibold.otf) format("opentype")}
@font-face{font-family:"JetBrains Mono";font-weight:400;font-display:swap;src:url(fonts/jetbrains_mono_regular.ttf) format("truetype")}

:root{--mono:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,monospace}
/* Colours: the generated site/tokens.css (scripts/design-tokens.py from docs/DESIGN.md, D-47), linked before this file —
   light under :root, dark under prefers-color-scheme and under [data-theme=dark] (the header's button, D-45). Equity
   steps of the 13×13 table against a random hand (< 35 %, 35–40 … 75–80, ≥ 80 %) are --step-0…10: grey below 50 %,
   lime from 50 %, text ≥ 4.5:1 on every step. */

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;color-scheme:light dark}
html[data-theme=light]{color-scheme:light}
html[data-theme=dark]{color-scheme:dark}
body{margin:0;background:var(--paper);color:var(--ink);font:400 1.0625rem/1.55 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
-webkit-font-smoothing:antialiased;overflow-wrap:break-word}
/* Words never break at normal sizes. Only when the text is very large for the screen (≥ 180 % on a phone) may a very long
   word (German compounds) be hyphenated instead of running off the screen. */
@media (max-width:22rem){body{-webkit-hyphens:auto;hyphens:auto;hyphenate-limit-chars:16 7 6;-webkit-hyphenate-limit-before:7;
-webkit-hyphenate-limit-after:6}}
a{color:inherit;text-decoration-thickness:1px;text-underline-offset:.2em}
a:hover{text-decoration-thickness:2px}
a[href^="mailto:"]{overflow-wrap:anywhere;-webkit-hyphens:none;hyphens:none}
:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
h1,h2,h3{font-weight:600}
strong,b{font-weight:600}
p{margin:0 0 1rem}
.read,.legend,.grid,.platforms,sup,.notes,.tag,.duel select,.vs-table,.hand,.when,.hotd{font-family:var(--mono);
font-variant-numeric:tabular-nums}
.sr{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.wrap{width:min(100% - 32px,80rem);margin:0 auto}
@media (min-width:48rem){.wrap{width:min(100% - 64px,80rem)}}
.pro{display:inline-block;padding:0 .3em;background:var(--accent);color:var(--on-accent);font:400 .8em/1.45 var(--mono);
white-space:nowrap}

/* Sheet header: the brand (on the landing it deals a flop), the document links, one ink rule. */
.top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem 1.5rem;padding:14px 0 12px;
border-bottom:1px solid var(--ink)}
.mast{display:flex;align-items:center;gap:.75rem;min-height:2.25rem;margin-right:auto}
.brand{display:inline-flex;align-items:center;gap:.5rem;margin:0;padding:4px 0;border:0;background:none;color:var(--ink);
font:600 1.1875rem/1 Inter,sans-serif;letter-spacing:-.015em;text-decoration:none;cursor:pointer}
.brand img{width:24px;height:24px;border-radius:6px}
.flop{display:inline-flex;gap:3px}
.card{display:block;width:21px;height:30px}
.card rect{fill:var(--card-face);stroke:var(--card-border)}
.card text{font:600 34px Inter,sans-serif;text-anchor:middle;dominant-baseline:central;fill:currentColor}
.card text.ten{font-size:28px;letter-spacing:-1px}
.card use{fill:currentColor}
.s0{color:var(--suit-clubs)}.s1{color:var(--suit-diamonds)}.s2{color:var(--suit-hearts)}.s3{color:var(--suit-spades)}
.flop .card{animation:deal .34s cubic-bezier(.2,.7,.3,1) both}
.flop .card:nth-child(2){animation-delay:.07s}.flop .card:nth-child(3){animation-delay:.14s}
@keyframes deal{from{opacity:0;transform:translateY(-6px) rotate(-6deg)}}
@media (prefers-reduced-motion:reduce){.flop .card{animation:none}}
nav{display:flex;flex-wrap:wrap;gap:.25rem 1.25rem;font-size:.9375rem}
nav a{color:var(--muted);text-decoration:none}
nav a:hover,nav a[aria-current]{color:var(--ink)}
nav a[aria-current]{text-decoration:underline}
@media (max-width:37.5rem){.home nav{display:none}}
/* Theme button (D-45): one line icon, no frame; a moon while the page is light, a sun while it is dark. The right
   margin lines the icon up with the header rule; on phones it stays beside the brand and the nav takes its own row. Hidden until site/theme.js runs. */
.theme{display:inline-grid;place-items:center;width:2.25rem;height:2.25rem;margin:0 -.5625rem 0 -.5rem;padding:0;
border:0;background:none;color:var(--muted);cursor:pointer}
.theme[hidden]{display:none}
.theme{order:1}
@media (max-width:37.5rem){.top nav{order:2;flex-basis:100%}.theme{margin-left:auto}}
.theme:hover{color:var(--ink)}
.theme svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.theme .sun{display:none}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]) .theme .sun{display:block}
:root:not([data-theme=light]) .theme .moon{display:none}}
:root[data-theme=dark] .theme .sun{display:block}
:root[data-theme=dark] .theme .moon{display:none}

/* Hero: the copy on the left, Table 1 as a figure on the right. */
.hero{display:grid;gap:2.5rem;padding:2rem 0 3rem}
.hero h1{margin:0 0 1rem;font-size:max(min(2.5rem,9.4vw),1.5rem);line-height:1.04;letter-spacing:-.032em}
.lead{margin:0 0 1.5rem;max-width:34em;font-size:1.125rem;line-height:1.5;color:var(--muted)}
.cta{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem 1.25rem;margin:0}
.store{display:inline-flex;align-items:center;min-height:2.75rem;padding:.5rem 1rem;border:1px solid var(--ink);
font-weight:600;text-decoration:none;color:var(--ink)}
a.store{background:var(--ink);color:var(--paper)}
.platforms{font-size:.8125rem;color:var(--muted)}
.cta+.cta{margin-top:.75rem}
.hotd{margin:2rem 0 0;font-size:.875rem}
.hotd a{color:var(--ink);text-decoration-color:var(--accent);text-decoration-thickness:3px;text-underline-offset:.3em}
@media (min-width:60rem){
.hero{grid-template-columns:minmax(0,5fr) minmax(0,6fr);column-gap:clamp(2.5rem,5vw,5rem);align-items:start;padding:3.5rem 0 4.5rem}
.hero h1{font-size:min(4.25rem,4.6vw)}
.hero .lead{font-size:1.1875rem}}

/* The 13×13 table. Cells are a fixed graphic: their text scales with the table (container units), not the font size. */
.chart{margin:0}
.gwrap{container-type:inline-size}
.grid{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:1px;font-size:2.55cqi;line-height:1;
-webkit-hyphens:none;hyphens:none}
.grid thead td{width:4.5%}
.grid th{padding:0;font-weight:400;font-size:2.2cqi;color:var(--muted)}
.grid thead th{height:4.5cqi;vertical-align:bottom;padding-bottom:.6cqi}
.grid tbody th{text-align:left}
.grid th.on{color:var(--ink);text-decoration:underline;text-underline-offset:.3em}
.grid td{height:7.15cqi;padding:0;text-align:center;vertical-align:middle;color:var(--on-accent);cursor:default}
.grid .h{display:block;white-space:nowrap}
.grid td.on,.grid td:focus-visible{outline:2px solid var(--ink);outline-offset:0;box-shadow:inset 0 0 0 2px var(--paper)}
.q0{background:var(--step-0)}.q1{background:var(--step-1)}.q2{background:var(--step-2)}.q3{background:var(--step-3)}.q4{background:var(--step-4)}
.q5{background:var(--step-5)}.q6{background:var(--step-6)}.q7{background:var(--step-7)}.q8{background:var(--step-8)}.q9{background:var(--step-9)}
.q10{background:var(--step-10)}
.grid .q0,.grid .q1,.grid .q2,.grid .q3{color:var(--ink)}
.read{margin:.875rem 0 0;font-size:.875rem;line-height:1.45}
.read b{font-weight:400;background:var(--accent);color:var(--on-accent);padding:0 .25em}
.hint{margin:.25rem 0 0;font-size:.8125rem;color:var(--muted)}
figcaption{margin:1rem 0 0;padding-top:.75rem;border-top:1px solid var(--rule);font-size:.9375rem;line-height:1.45}
.tag{font-size:.8125rem;color:var(--muted);margin-right:.5em}
sup{font-size:.7em;line-height:0;vertical-align:.45em}
sup a{text-decoration:none;padding:0 .1em}
.legend{margin:.875rem 0 0;font-size:.75rem;color:var(--muted)}
.legend ol{font-size:min(.75rem,2.6vw)}
.legend p{margin:0 0 .375rem}
.legend ol{display:grid;grid-template-columns:repeat(11,1fr);gap:1px;max-width:24rem;margin:0 0 1.25rem;padding:0;list-style:none}
.legend li{position:relative;height:.75rem}
.legend li span{position:absolute;left:0;top:calc(100% + .2rem);transform:translateX(-50%)}

/* Sections below the hero: a heading in the margin column, the text in the main column — no cards. */
.sec{padding:2.5rem 0 3rem;border-top:1px solid var(--ink)}
.sec h2{margin:0 0 1rem;font-size:max(min(1.75rem,7.5vw),1.25rem);line-height:1.15;letter-spacing:-.02em}
.side .sub{color:var(--muted);max-width:30em}
@media (min-width:60rem){
.sec{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);column-gap:clamp(2.5rem,5vw,5rem);padding:3.5rem 0 4rem}
.sec>.side{grid-column:1}.sec>.main{grid-column:2}.sec.what{display:block}}
.main>:last-child{margin-bottom:0}

/* Two hands */
.when{min-height:1.5em;margin:0 0 .5rem;font-size:.8125rem;color:var(--muted)}
.pick{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin:0 0 1.5rem}
.pick[hidden]{display:none}
.pick label{display:block}
.duel select{min-height:2.75rem;padding:.4rem 2.25rem .4rem .75rem;border:1px solid var(--ink);border-radius:0;color:var(--ink);
font-size:1rem;-webkit-appearance:none;appearance:none;background:var(--paper) no-repeat right .75rem center/.7rem .45rem
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%235B616A' stroke-width='2'/%3E%3C/svg%3E")}
.swap{min-width:2.75rem;min-height:2.75rem;border:1px solid var(--rule);background:none;color:var(--ink);font:1.125rem/1 Inter,sans-serif;cursor:pointer}
.swap:hover{border-color:var(--ink)}
.result{display:grid;grid-template-columns:1fr auto 1fr;align-items:end;gap:.25rem 1rem}
.result .b{text-align:right}
.result .t{text-align:center;padding-bottom:.35rem}
.hand{display:block;font-size:.9375rem}
.eq{display:block;font:600 min(3.25rem,10vw)/1.05 Inter,sans-serif;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.result .t span{display:block;font-size:.8125rem;color:var(--muted)}
.result .t .tv{color:var(--ink);font:600 1.25rem/1.2 Inter,sans-serif;font-variant-numeric:tabular-nums}
.bar{grid-column:1/-1;display:flex;height:.625rem;margin-top:.75rem;background:var(--ink)}
.bar i{display:block;height:100%}
.bar i:first-child{background:var(--accent)}
.bar i:nth-child(2){background:var(--rule)}
.result .note{grid-column:1/-1;margin:.75rem 0 0;font-size:.875rem;color:var(--muted)}
@media (max-width:22rem){.result{grid-template-columns:1fr 1fr}.result .t{grid-column:1/-1;order:3;text-align:left}
.result .bar,.result .note{order:4}}
.well-known{max-width:36rem;margin:2.5rem 0 0}
.vs-table{width:100%;border-collapse:collapse;font-size:.875rem}
.vs-table th,.vs-table td{padding:.45rem .5rem .45rem 0;border-bottom:1px solid var(--hairline);text-align:right;white-space:nowrap}
.vs-table tbody th{white-space:normal}
.scroll{overflow-x:auto}
.vs-table thead th{font-weight:400;color:var(--muted);border-bottom-color:var(--ink)}
.vs-table th:first-child{text-align:left;font-weight:400}

/* What the app does */
.intro{margin:0 0 2.5rem;font-size:max(min(1.5rem,6.2vw),1.125rem);line-height:1.35;letter-spacing:-.01em;max-width:40em}
.feat{padding:2rem 0 2.25rem;border-top:1px solid var(--rule)}
.feat h2{font-size:1.25rem;margin:0 0 .75rem;letter-spacing:-.01em}
.ticks{margin:0;padding:0;list-style:none}
.ticks li{position:relative;margin:0 0 .5rem;padding-left:1.25rem}
.ticks li::before{content:"–";position:absolute;left:0;color:var(--muted)}
.shots{display:grid;gap:1.75rem;margin-top:1.5rem}
.shot{margin:0}
.shot img{display:block;width:100%;height:auto;border:1px solid var(--ink)}
.shot figcaption{border-top:0;padding-top:0;margin-top:.5rem;font-size:.875rem}
.shot figcaption .sub{display:block;color:var(--muted)}
@media (min-width:60rem){
.feat{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);column-gap:clamp(2.5rem,5vw,5rem)}
.feat>h2{grid-column:1}.feat>.main{grid-column:2}
.feat .main.has-shots{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:2.5rem;align-items:start}
.feat .main.has-shots .shots{margin-top:0}}

/* Free / Pro */
.plans{display:grid;gap:1.5rem}
.plans p{margin:0}
.plans h3{margin:0 0 .5rem;font-size:1.125rem}
.plans .plain{padding-top:1rem;border-top:1px solid var(--rule)}
@media (min-width:48rem){.plans{grid-template-columns:1fr 1fr;column-gap:2.5rem}
.plans .pro-plan{padding-left:2.5rem;border-left:1px solid var(--rule)}.plans .plain{grid-column:1/-1}}

/* Closing notes and contact */
.study{font-size:1.125rem;max-width:40em}
.muted{color:var(--muted);max-width:40em}
.links{display:flex;flex-wrap:wrap;gap:.25rem 1.5rem;margin:0}

/* Support, Privacy Policy, Terms of Use */
main.doc{max-width:46rem;padding:2.5rem 0 4rem}
.doc h1{margin:0 0 1.5rem;font-size:min(2.5rem,8.6vw);line-height:1.1;letter-spacing:-.025em}
.doc h2{margin:2.25rem 0 .5rem;font-size:1.25rem;line-height:1.3}
.doc ul{padding-left:1.25rem}
.doc li{margin:.375rem 0}

/* Colophon: notes, the engine line, languages, copyright. */
footer{padding-top:1.5rem;padding-bottom:2.5rem;border-top:1px solid var(--ink);font-size:.875rem;color:var(--muted)}
footer a{color:var(--muted)}
footer a[aria-current]{color:var(--ink);text-decoration:none}
.notes{margin:0 0 1.25rem;padding-left:1.5em;font-size:.8125rem;line-height:1.5;max-width:52rem}
.notes li{margin:.375rem 0}
.notes li::marker{color:var(--ink)}
.notes a[href^="#"]{text-decoration:none}
.engine{margin:0 0 1rem;color:var(--ink)}
.langs{display:flex;flex-wrap:wrap;gap:.25rem 1rem;margin:0 0 .75rem;padding:0;list-style:none}
.langs li{margin:0}
footer p{margin:0 0 .5rem}
