/* clag.club. One stylesheet for every page. The page itself is white, black
   and neutral grey, with one green. Every other colour comes from the app's
   own screens. */

:root {
  --bg: #FFFFFF;
  --fg: #0A0A0B;
  --muted: #5E5E63;
  --faint: #A1A1A6;
  --line: rgba(10, 10, 11, .09);
  /* The grey of every panel leans a little towards the table's green. */
  --soft: #F0F5F2;
  --dark: #0A0A0B;
  --dark-soft: #18181A;
  --on-dark: #F5F5F7;
  --on-dark-muted: #A1A1A6;
  --green: #0A7B4F;
  /* The app's table: felt lit from above. Only the dark bands wear it. */
  --band: radial-gradient(120% 90% at 50% 0%, #1A4736 0%, #123528 38%, #0B241A 78%);

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --margin: 22px;
  --bar: 56px;
  --pad: 104px;
  --gap: 14px;
  --round: 28px;
  --ease: cubic-bezier(.2, .75, .2, 1);
}
@media (min-width: 760px) { :root { --margin: 40px; --bar: 64px; --pad: 152px; --gap: 20px; --round: 36px; } }
@media (min-width: 1200px) { :root { --pad: 184px; } }

* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar) + 16px); }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.5 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, video, svg { display: block; }
img, video { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 2 * var(--margin), 1180px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Type ---------- */

.display { font-weight: 700; font-size: clamp(44px, 8.2vw, 112px); line-height: .98; letter-spacing: -.045em; text-wrap: balance; }
h2, .h2 { font-weight: 700; font-size: clamp(34px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -.04em; text-wrap: balance; }
h3, .h3 { font-weight: 650; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.12; letter-spacing: -.025em; text-wrap: balance; }
.lead { font-size: clamp(19px, 1.75vw, 24px); line-height: 1.38; letter-spacing: -.012em; color: var(--muted); text-wrap: pretty; }
.dim { color: var(--faint); }

/* ---------- The bar ---------- */

.bar { position: sticky; top: 0; z-index: 30; height: var(--bar); background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); transition: box-shadow .3s, background-color .35s, color .35s; }
.bar.dark { background: rgba(9, 30, 22, .92); color: #fff; }
.bar.dark.stuck { box-shadow: 0 1px 0 rgba(255, 255, 255, .1); }
.bar.dark .links a { color: #A9BDB1; }
.bar.dark .links a:hover, .bar.dark .links a[aria-current] { color: #fff; }
.bar.dark .pill { background: #fff; color: var(--fg); }
.bar.dark .pill:hover { background: #E8E8ED; }
.bar.stuck { box-shadow: 0 1px 0 var(--line); }
.bar .wrap { height: 100%; display: flex; align-items: center; gap: 8px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; font-weight: 700; font-size: 21px; letter-spacing: -.03em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.links { display: none; gap: 30px; margin-right: 26px; }
.links a { text-decoration: none; font-size: 15px; color: var(--muted); transition: color .2s; }
.links a:hover, .links a[aria-current] { color: var(--fg); }
/* Every button has the store badges' corners, so the two sit together. */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 11px; position: relative; text-decoration: none; font-weight: 600; font-size: 14px; letter-spacing: -.01em; background: var(--fg); color: #fff; transition: transform .25s var(--ease), background-color .35s, color .35s; }
.pill:hover { background: #2A2A2D; transform: scale(1.04); }
/* The bar's button is smaller than the bar by a clear margin. Its tap area
   still reaches 44 pixels. */
.bar .pill { height: 36px; padding: 0 14px; border-radius: 9px; }
.bar .pill::after { content: ""; position: absolute; inset: -4px 0; }
.menu { width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; padding: 0; display: grid; place-content: center; gap: 6px; cursor: pointer; }
.menu span { display: block; width: 20px; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease); }
.menu[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.drawer { position: fixed; inset: var(--bar) 0 0; z-index: 29; background: var(--bg); padding: 20px var(--margin) 40px; overflow-y: auto; }
.drawer nav { display: grid; }
.drawer a { padding: 14px 0; text-decoration: none; font-weight: 700; font-size: 30px; letter-spacing: -.035em; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) {
  .links { display: flex; }
  .menu, .drawer { display: none; }
}

/* ---------- Store buttons ---------- */

.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px 0 15px; border-radius: 13px; background: var(--fg); color: #fff; text-decoration: none; transition: transform .25s var(--ease), background-color .2s; }
.badge:hover { transform: scale(1.04); background: #2A2A2D; }
.badge svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.badge span { display: flex; flex-direction: column; font-size: 11px; line-height: 1.1; font-weight: 500; }
.badge b { font-size: 19px; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; }
.on-dark { --on-dark-muted: #A9BDB1; }
.on-dark .badge { background: #fff; color: var(--fg); }
.on-dark .badge:hover { background: #E8E8ED; }
.on-ios .badge[href*="play.google"], .on-android .badge[href*="apps.apple"] { display: none; }

/* ---------- The phone. --pw is its width and every part is sized from it. ---------- */

.device { --pw: 280px; position: relative; flex: none; width: var(--pw); }
.phone {
  position: relative; width: var(--pw); padding: calc(var(--pw) * .011); border-radius: calc(var(--pw) * .168);
  background: linear-gradient(100deg, #9A9AA0 0%, #55555A 5%, #2C2C30 30%, #1F1F22 62%, #4C4C52 94%, #A8A8AE 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), 0 0 0 1px rgba(0, 0, 0, .55), 0 2px 4px rgba(0, 0, 0, .12), 0 44px 80px -28px rgba(0, 0, 0, .38);
}
.bezel { padding: calc(var(--pw) * .024); border-radius: calc(var(--pw) * .157); background: #050505; }
.screen { position: relative; aspect-ratio: 1206 / 2622; border-radius: calc(var(--pw) * .134); overflow: hidden; background: #0B241A; isolation: isolate; }
.screen > img, .screen > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.screen::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(118deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, 0) 22%); }
.key { position: absolute; width: calc(var(--pw) * .009); border-radius: 2px; background: linear-gradient(180deg, #7E7E84, #2C2C30 20%, #2C2C30 80%, #5E5E64); }
.k1 { left: calc(var(--pw) * -.007); top: 13.2%; height: 3.6%; }
.k2 { left: calc(var(--pw) * -.007); top: 19.8%; height: 6.4%; }
.k3 { left: calc(var(--pw) * -.007); top: 27.8%; height: 6.4%; }
.k4 { right: calc(var(--pw) * -.007); top: 23%; height: 10.4%; }

/* ---------- The iPad, in landscape. --sw is its width and every part is sized from it. ---------- */

.slate { --sw: min(100vw - 2 * var(--margin), 1040px); position: relative; flex: none; width: var(--sw); padding: calc(var(--sw) * .021); border-radius: calc(var(--sw) * .042); background: #050505; box-shadow: inset 0 0 0 calc(var(--sw) * .0025) #3A3A3E, 0 0 0 1px rgba(0, 0, 0, .55), 0 2px 4px rgba(0, 0, 0, .12), 0 60px 100px -40px rgba(0, 0, 0, .4); }
.glass { position: relative; aspect-ratio: 4 / 3; border-radius: calc(var(--sw) * .02); overflow: hidden; background: #0B241A; isolation: isolate; }
.glass > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.glass::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(118deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 22%); }
.lens { position: absolute; top: calc(var(--sw) * .0075); left: 50%; width: calc(var(--sw) * .006); height: calc(var(--sw) * .006); margin-left: calc(var(--sw) * -.003); border-radius: 50%; background: #1B1B21; box-shadow: inset 0 0 0 1px #2E2E36; }

/* ---------- Motion. Without the script nothing is ever hidden. ---------- */

/* A browser can work out a page's first look before this stylesheet arrives.
   When it then arrives, anything with a colour transition fades in from the
   browser's own blue links and clear buttons. So until the page has loaded,
   only movement and fading are allowed to take time. */
.js:not(.loaded) *, .js:not(.loaded) *::before, .js:not(.loaded) *::after { transition-property: opacity, transform !important; }

.js [data-rise] { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s); }
.js [data-rise].risen { opacity: 1; transform: none; }
[data-drift] { will-change: transform; }

/* ---------- Home: the opening ---------- */

section { position: relative; }
.hero { padding-top: clamp(36px, 7vh, 88px); text-align: center; overflow-x: clip; }
.hero .display span { color: var(--green); }
.hero .lead { max-width: 30em; margin: clamp(18px, 2.4vw, 28px) auto 0; }
.hero .badges { justify-content: center; margin-top: clamp(24px, 3vw, 36px); }
.hero .note { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* Three phones. The two at the sides start behind the middle one and
   spread out, first on arrival and then further as the page scrolls. */
.trio { --pw: clamp(206px, 54vw, 330px); --p: 0; position: relative; display: flex; justify-content: center; margin-top: clamp(44px, 6vw, 84px); padding-bottom: clamp(48px, 7vw, 110px); }
.trio .device { --pw: inherit; }
.trio .main { z-index: 2; transform: translateY(calc(var(--p) * -28px)); }
.trio .side { position: absolute; top: 0; left: 50%; margin-left: calc(var(--pw) / -2); transform: translate(calc(var(--dir) * var(--pw) * (.66 + var(--p) * .34)), calc(7% + var(--p) * 46px)) scale(.86); }
.trio .left { --dir: -1; }
.trio .right { --dir: 1; }
.js .trio:not(.ready) .side { transform: translate(0, 7%) scale(.8); opacity: 0; }
.js .trio:not(.ready) .main { transform: translateY(70px); opacity: 0; }
.js .trio:not(.settled) .device { transition: transform 1.4s var(--ease), opacity .8s var(--ease); }
.js .trio:not(.settled) .side { transition-delay: .25s; }
@media (min-width: 760px) { .trio { --pw: clamp(250px, 24vw, 340px); } .trio .side { transform: translate(calc(var(--dir) * var(--pw) * (.84 + var(--p) * .36)), calc(7% + var(--p) * 60px)) scale(.86); } }

/* ---------- Home: what Clag is ---------- */

.what { padding: var(--pad) 0 0; }
.fill { max-width: 21em; font-weight: 650; font-size: clamp(28px, 4.4vw, 58px); line-height: 1.12; letter-spacing: -.035em; text-wrap: pretty; }
.js .fill span { color: #86868B; transition: color .35s; }
.js .fill span.lit { color: var(--fg); }

/* ---------- Home: a deal, step by step ---------- */

.how { padding: var(--pad) 0 0; }
.how .head { max-width: 30em; }
.how .head .lead { margin-top: 20px; }
.steps { margin-top: clamp(40px, 6vw, 72px); display: grid; gap: 56px; }
/* Each step shows the part of the phone it is about: the foot of the
   screen for the bid, the head of it for the play and the scores. */
.step .shot { --spw: clamp(200px, 58vw, 240px); display: flex; justify-content: center; border-radius: var(--round); overflow: hidden; background: var(--soft); height: calc(var(--spw) * var(--show) + 24px); }
.step .shot .device { --pw: var(--spw); }
.step .shot.high .device { align-self: flex-start; margin-top: 24px; }
.step .shot.low .device { align-self: flex-end; margin-bottom: 24px; }
.step .count { margin-top: 26px; font-weight: 600; font-size: 14px; color: var(--green); font-variant-numeric: tabular-nums; }
.step h3 { margin-top: 8px; font-size: clamp(26px, 3.2vw, 44px); letter-spacing: -.035em; }
.step p { margin-top: 12px; max-width: 24em; font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); }
.how .stick { display: none; }
/* A worked example under a step. Narrow windows show the phone's own
   picture above the words, so only the example's sentences are kept. */
.eg { margin-top: 18px; padding: 16px 18px; border-radius: 18px; background: var(--soft); }
.eg .cards, .eg .table { display: none; }
.step .eg p { margin: 0; max-width: none; font-size: 16px; line-height: 1.5; }
.pc.pick { box-shadow: 0 0 0 2px var(--green), 0 10px 20px -8px rgba(10, 123, 79, .45); }
@media (min-width: 620px) and (max-width: 899px) {
  .step { display: grid; grid-template-columns: 6fr 5fr; gap: 36px; align-items: center; }
  .step .count { margin-top: 0; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .w6, .bento .wide-tablet { grid-column: 1 / -1; }
  .tile .device { --pw: clamp(200px, 30vw, 250px); }
  .tile.wide-tablet { flex-direction: row; min-height: 380px; }
  .tile.wide-tablet .t { flex: 1; align-self: center; padding-bottom: 32px; }
  .tile.wide-tablet .device { margin: 44px 44px -28% 0; align-self: flex-start; }
}
.more { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; text-decoration: none; font-weight: 600; color: var(--green); }
.more::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); transition: transform .25s var(--ease); }
.more:hover::after { transform: translateX(4px) rotate(45deg); }

/* Wide windows: the words scroll past one phone that stays put, and its
   screen changes with the step being read. A step is only as tall as its
   words and its example, so the column never has an empty stretch. */
@media (min-width: 900px) {
  .scene { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 120px); align-items: start; }
  .tell { padding: clamp(40px, 9vh, 104px) 0; }
  .steps { margin-top: clamp(52px, 9vh, 96px); gap: clamp(60px, 10vh, 104px); }
  .step h3, .step .count { transition: color .4s; }
  .step:not(.on) h3 { color: #86868B; }
  .step:not(.on) .count { color: var(--muted); }
  .step p { font-size: 22px; max-width: 21em; }
  .step .count { font-size: 15px; margin-top: 0; }
  .step .shot { display: none; }
  .eg { margin-top: 26px; padding: 26px; border-radius: 24px; }
  .eg .cards { --cw: clamp(40px, 4.4vw, 62px); display: flex; flex-wrap: nowrap; gap: 6px; margin: 0 0 20px; }
  .eg .cards:has(.who) { gap: 14px; margin-top: 8px; }
  .eg .who { display: grid; justify-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
  .eg .table { display: table; margin: 0 0 20px; font-size: 16px; }
  .eg .table th[scope="row"] { font-size: 16px; font-weight: 600; color: var(--fg); padding: 12px 16px 12px 0; }
  .eg .table td { padding: 12px 16px 12px 0; color: var(--muted); }
  .eg .table .hit b { color: var(--green); }
  .eg .table b { font-weight: 700; color: var(--fg); }
  .step .eg p { font-size: 17px; }
  .how .stick { display: flex; justify-content: center; position: sticky; top: var(--bar); height: calc(100vh - var(--bar)); align-items: center; }
  .how .stick .device { --pw: min(37vh, 38vw, 440px); }
  .how .stick .screen img { opacity: 0; transform: scale(1.03); transition: opacity .6s var(--ease), transform .9s var(--ease); }
  .how .stick .screen img.on { opacity: 1; transform: none; }
}

/* ---------- Home: ways to play ---------- */

.ways { padding: var(--pad) 0 0; }
.ways .head { max-width: 40em; }
.ways .head .lead { margin-top: 20px; }
.bento { display: grid; gap: var(--gap); margin-top: clamp(40px, 6vw, 72px); }
.tile { position: relative; overflow: hidden; border-radius: var(--round); background: var(--soft); min-height: 480px; display: flex; flex-direction: column; }
.tile .t { padding: clamp(26px, 3.2vw, 44px) clamp(24px, 3.2vw, 44px) 0; position: relative; z-index: 2; }
.tile p { margin-top: 10px; max-width: 22em; color: var(--muted); font-size: clamp(16px, 1.35vw, 18px); }
.tile .device { --pw: clamp(210px, 56vw, 270px); margin: 34px auto -58%; }
.frag { position: relative; z-index: 1; width: calc(100% - 2 * clamp(24px, 3.2vw, 44px)); max-width: 340px; height: auto; margin: auto; border-radius: 24px; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .5); }
.tile:has(.frag) { padding-bottom: 36px; }
.tile:has(.frag) .t { margin-bottom: 32px; }
.pair { display: flex; gap: clamp(14px, 2.4vw, 32px); justify-content: center; align-items: flex-start; padding: 0 clamp(20px, 3.2vw, 44px); margin-top: 34px; margin-bottom: -34%; }
.pair .device { --pw: clamp(130px, 38vw, 250px); margin: 0; }
.pair .float { width: clamp(140px, 40vw, 280px); margin-top: 16%; border-radius: clamp(16px, 2.4vw, 26px); box-shadow: 0 40px 70px -28px rgba(0, 0, 0, .5); }
.tile .big { font-size: clamp(28px, 3.6vw, 48px); line-height: 1.04; letter-spacing: -.035em; }
.tile.dark { background: var(--dark); color: var(--on-dark); }
.tile.dark p { color: var(--on-dark-muted); }
.code { margin: 30px clamp(24px, 3.2vw, 44px) 0; padding: 18px 22px; border-radius: 20px; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 18px 40px -22px rgba(0, 0, 0, .25); align-self: flex-start; position: relative; z-index: 2; }
.code small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.code b { display: block; margin-top: 4px; font-size: clamp(34px, 4vw, 52px); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .tile { min-height: 560px; }
  .tile.w3 { grid-column: span 3; }
  .tile.w2 { grid-column: span 2; }
  .tile.w4 { grid-column: span 4; }
  .tile.w6 { grid-column: span 6; min-height: 520px; flex-direction: row; align-items: center; }
  .tile .device { --pw: clamp(220px, 20vw, 270px); margin-bottom: -52%; }
  .tile.side { flex-direction: row; }
  .tile.side .t { flex: 1; align-self: center; padding-bottom: clamp(26px, 3.2vw, 44px); }
  .tile.side .pair { flex: none; margin: 64px clamp(24px, 4vw, 64px) -12% 0; padding: 0; align-self: flex-start; }
  .tile.side .t { max-width: 30em; }
  .tile.side .pair .device { --pw: clamp(220px, 20vw, 270px); }

}

/* ---------- Home: the tablet ---------- */

.tablet { padding: var(--pad) 0 0; }
.tablet .head { max-width: 40em; }
.tablet .lead { margin-top: 20px; }
.tablet .slate { margin: clamp(40px, 6vw, 72px) auto 0; }

/* ---------- Home: the table's looks, a strip that slides with the scroll ---------- */

.looks { margin-top: var(--pad); padding: var(--pad) 0 0; background: var(--band); color: var(--on-dark); overflow: clip; }
.looks .lead { margin-top: 20px; max-width: 30em; color: var(--on-dark-muted); }
/* Phones swipe the row. Wider windows slide it with the scroll. A box that
   scrolls cuts off whatever leaves it, so the band's bottom space is inside
   the box and the phones' shadows fade out before its edge. */
.reel { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: var(--pad); }
.reel::-webkit-scrollbar { display: none; }
.strip { display: flex; gap: clamp(20px, 3vw, 44px); margin-top: clamp(48px, 7vw, 96px); width: max-content; padding-inline: max(var(--margin), (100vw - 1180px) / 2); will-change: transform; }
.strip figure { scroll-snap-align: center; }
.strip .device { --pw: clamp(190px, 58vw, 280px); }
@media (min-width: 760px) {
  .strip figure:nth-child(even) { margin-top: clamp(28px, 5vw, 72px); }
}
.strip .phone { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), 0 0 0 1px #000, 0 50px 90px -30px #000; }
.strip figcaption { margin-top: 18px; text-align: center; font-size: 16px; font-weight: 600; color: var(--on-dark); }
.strip figcaption small { margin-left: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; vertical-align: 1px; color: var(--on-dark); background: rgba(255, 255, 255, .14); }

/* ---------- Home: getting better ---------- */

.better { padding: var(--pad) 0 0; }
.better .head { max-width: 40em; }
.better .head .lead { margin-top: 20px; }

/* ---------- Home: what players say ---------- */

.said { padding: var(--pad) 0 0; overflow: hidden; }
/* The reviews are a row to swipe. Where there is a mouse to stop them they
   move on their own, and the row is repeated so the loop has no gap in a
   window up to four rows wide. */
.belt { display: flex; gap: var(--gap); width: max-content; margin-top: clamp(40px, 6vw, 72px); padding: 8px var(--margin) 40px; }
.belt [aria-hidden="true"] { display: none; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .js .belt { padding-inline: 0; animation: belt 60s linear infinite; }
  .js .belt [aria-hidden="true"] { display: flex; }
  .js .belt:hover { animation-play-state: paused; }
}
@keyframes belt { to { transform: translateX(calc(-25% - var(--gap) / 4)); } }
.quote { width: min(84vw, 400px); padding: 28px; border-radius: var(--round); background: var(--soft); display: flex; flex-direction: column; gap: 14px; }
.stars { display: flex; gap: 3px; color: #BF8A1E; }
.stars svg { width: 16px; height: 16px; fill: currentColor; }
.quote h3 { font-size: 21px; }
.quote p { color: var(--muted); font-size: 17px; line-height: 1.45; }
.quote footer { margin-top: auto; padding-top: 8px; font-size: 14px; color: var(--muted); }

/* ---------- Home: questions ---------- */

.asks { padding: var(--pad) 0 0; }
.asks .cols { display: grid; gap: 32px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: clamp(18px, 1.6vw, 21px); letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; background: linear-gradient(currentColor, currentColor) 50% / 100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) 50% / 1.5px 100% no-repeat; transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 24px 0; max-width: 40em; color: var(--muted); }
.faq details p a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (min-width: 760px) { .asks .cols { grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 64px); } .asks h2 { position: sticky; top: calc(var(--bar) + 40px); } }

/* ---------- Home: the close ---------- */

.get { margin-top: var(--pad); padding: var(--pad) 0; background: var(--band); color: var(--on-dark); text-align: center; overflow: hidden; }
.get .icon { width: 104px; height: 104px; margin: 0 auto; border-radius: 24px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 30px 60px -16px rgba(0, 0, 0, .7); }
.get h2 { margin-top: 36px; }
.get .lead { margin-top: 18px; color: var(--on-dark-muted); }
.get .badges { justify-content: center; margin-top: 34px; }
/* The close: an iPad with two phones standing in front of its right-hand
   side, each a little nearer than the last, all on one line. --w is the
   width of the group and everything in it is placed and sized from that. */
.stage { --w: min(100vw - 2 * var(--margin), 1100px); position: relative; width: var(--w); height: calc(var(--w) * .64); margin: clamp(56px, 8vw, 104px) auto 0; }
.stage > * { position: absolute; }
.stage .slate { --sw: calc(var(--w) * .8); left: 0; bottom: calc(var(--w) * .03); box-shadow: inset 0 0 0 calc(var(--sw) * .0025) #3A3A3E, 0 0 0 1px #000, 0 50px 90px -30px #000; }
.stage .device { --pw: calc(var(--w) * .26); left: calc(var(--w) * .5); bottom: calc(var(--w) * .012); z-index: 2; }
.stage .device + .device { left: calc(var(--w) * .72); bottom: 0; z-index: 3; }
.stage .phone { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), 0 0 0 1px #000, 0 30px 60px -20px #000; }
@media (min-width: 760px) {
  .stage { height: calc(var(--w) * .58); }
  .stage .slate { --sw: calc(var(--w) * .72); left: calc(var(--w) * .0175); }
  .stage .device { --pw: calc(var(--w) * .21); left: calc(var(--w) * .5725); }
  .stage .device + .device { left: calc(var(--w) * .755); }
}

/* ---------- The foot ---------- */

.foot { padding: 56px 0 calc(40px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--muted); }
.foot.on-dark { background: var(--dark); color: var(--on-dark-muted); border-top: 1px solid rgba(255, 255, 255, .08); }
.foot .wrap { display: grid; gap: 36px; }
.foot .brand { color: var(--fg); }
.foot.on-dark .brand { color: var(--on-dark); }
.foot .about p { margin-top: 12px; max-width: 22em; }
.foot .cols { display: flex; flex-wrap: wrap; gap: 28px 64px; }
.foot h2 { font-size: 13px; line-height: 1; font-weight: 600; letter-spacing: 0; color: var(--fg); }
.foot.on-dark h2 { color: var(--on-dark); }
.foot ul { margin-top: 6px; display: grid; }
.foot a { text-decoration: none; }
.foot li a { display: flex; align-items: center; min-height: 44px; }
.foot a:hover { color: var(--fg); }
.foot.on-dark a:hover { color: var(--on-dark); }
.foot .small { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.6; max-width: none; }
.foot.on-dark .small { border-color: rgba(255, 255, 255, .08); }
@media (min-width: 760px) { .foot .wrap { grid-template-columns: 1fr auto; } }

@media (prefers-reduced-motion: reduce) {
  .js .trio .device, .js .trio:not(.ready) .device { transition: none; opacity: 1; }
  .js [data-rise] { opacity: 1; transform: none; transition: none; }
  .js .fill span { color: var(--fg); }
  * { scroll-behavior: auto !important; }
}

/* ---------- Reading pages: rules, Clag and Oh Hell, support, privacy ---------- */

.top { padding: clamp(48px, 9vw, 120px) 0 clamp(40px, 6vw, 80px); }
.top .display { font-size: clamp(42px, 7vw, 92px); }
.top .lead { margin-top: clamp(18px, 2.4vw, 28px); max-width: 32em; }
.top .updated { margin-top: 18px; font-size: 15px; color: var(--muted); }

.read { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-bottom: var(--pad); }
.toc { display: none; }
.doc { max-width: 44em; font-size: 18px; line-height: 1.6; color: #424245; }
.doc > p, .doc section > p, .doc section > ul, .doc > ul, .doc h2, .doc h3 { max-width: 36rem; }
.doc section + section, .doc > h2 { margin-top: clamp(56px, 8vw, 104px); }
.doc section { scroll-margin-top: calc(var(--bar) + 24px); }
.doc h2 { font-size: clamp(30px, 3.8vw, 46px); letter-spacing: -.035em; color: var(--fg); }
.doc h3 { margin-top: 40px; font-size: clamp(21px, 2vw, 25px); color: var(--fg); }
.doc p { margin-top: 18px; text-wrap: pretty; }
.doc h2 + p { margin-top: 22px; }
.doc .faq { margin-top: 26px; }
.doc .faq details p { margin-top: 0; font-size: 17px; }
.doc ul { margin-top: 18px; padding-left: 1.2em; list-style: disc; display: grid; gap: 8px; }
.doc ul ::marker { color: var(--faint); }
.doc a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.doc strong { font-weight: 600; color: var(--fg); }
.doc .aside { margin-top: 28px; padding: 22px 26px; border-radius: 22px; background: var(--soft); font-size: 17px; }
.doc .aside p:first-child { margin-top: 0; }
@media (min-width: 760px) {
  .read { grid-template-columns: 180px minmax(0, 1fr); gap: clamp(36px, 6vw, 120px); }
  .read.plain { grid-template-columns: minmax(0, 44em); }
  .toc { display: block; position: sticky; top: calc(var(--bar) + 40px); align-self: start; font-size: 15px; }
  .toc p { font-weight: 600; margin-bottom: 14px; }
  .toc ol { display: grid; gap: 2px; border-left: 1px solid var(--line); }
  .toc a { display: block; padding: 7px 0 7px 18px; margin-left: -1px; border-left: 2px solid transparent; text-decoration: none; color: var(--muted); transition: color .2s, border-color .2s; }
  .toc a:hover { color: var(--fg); }
  .toc a.on { color: var(--fg); border-color: var(--fg); font-weight: 600; }
}

/* Playing cards. The page draws the paper and each card's own drawing
   holds the rank and suits, so a card looks the same in every browser.
   --cw is a card's width. */
.cards { --cw: 56px; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.pc { position: relative; flex: none; display: block; width: var(--cw); height: calc(var(--cw) / .72); border-radius: calc(var(--cw) * .13); background: #F7F1E1; color: #1C1B19; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12), 0 2px 5px rgba(0, 0, 0, .22); }
.pc.r { color: #B0282B; }
.pc svg { width: 100%; height: 100%; fill: currentColor; }
.pc.win { box-shadow: 0 0 0 2px var(--green), 0 10px 20px -8px rgba(10, 123, 79, .45); }
.pc.win::after { content: "WINS"; position: absolute; top: -9px; left: 50%; transform: translateX(-50%); padding: 3px 7px; border-radius: 999px; background: var(--green); color: #fff; font: 700 10px/1 var(--sans); letter-spacing: .06em; }

.example { margin-top: 28px; padding: 26px; border-radius: 24px; background: var(--soft); }
.example > p { margin: 0; font-size: 16px; color: var(--muted); }
.example > p strong { color: var(--fg); }
.example .cards { margin-top: 26px; gap: 14px; }
.example .who { display: grid; justify-items: center; gap: 8px; font-size: 13px; color: var(--muted); }

/* The deals of a game, one column each. */
.ladder { margin-top: 30px; padding: clamp(18px, 4vw, 28px) clamp(12px, 3vw, 22px) 20px; border-radius: 24px; background: var(--soft); }
.ladder ol { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: clamp(3px, 1vw, 6px); align-items: end; height: clamp(140px, 36vw, 200px); }
.ladder li { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; height: 100%; font-size: clamp(10px, 2.6vw, 13px); font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.ladder li::before { content: ""; width: 100%; height: calc(var(--c) / 7 * 82%); border-radius: clamp(3px, 1vw, 7px); background: #AEBBB4; transform-origin: 50% 100%; }
.ladder li.sp::before { background: var(--green); }
.js .ladder[data-rise] li::before { transform: scaleY(0); transition: transform .8s var(--ease) calc(var(--i) * 40ms + .2s); }
.js .ladder[data-rise].risen li::before { transform: none; }
.ladder .axis { margin: 14px 0 0; max-width: none; font-size: 14px; line-height: 1.4; color: var(--muted); text-align: center; }
.ladder .key { position: static; width: auto; background: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.ladder .key span::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 8px; border-radius: 3px; background: #AEBBB4; vertical-align: -2px; }
.ladder .key span.sp::before { background: var(--green); }
/* The name of the special deals sits over their own bars. */
.ladder .over { position: static; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: clamp(3px, 1vw, 6px); margin-bottom: 10px; }
.ladder .over span { grid-column: var(--from) / span var(--span); display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; line-height: 1; color: var(--green); }
.ladder .over b { font-weight: 600; white-space: nowrap; }
.ladder .over span::after { content: ""; align-self: stretch; height: 6px; border: solid var(--green); border-width: 2px 2px 0; border-radius: 3px 3px 0 0; }

.table { margin-top: 26px; width: 100%; border-collapse: collapse; font-size: 17px; font-variant-numeric: tabular-nums; }
.table th { text-align: left; font-size: 14px; font-weight: 600; color: var(--muted); padding: 0 16px 12px 0; border-bottom: 1px solid var(--line); }
.table td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table td:last-child, .table th:last-child { padding-right: 0; }
.table b { font-weight: 600; }

.kinds { margin-top: 28px; border-top: 1px solid var(--line); }
.kind { display: grid; gap: 6px 28px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.doc .kind h3 { margin: 0; font-size: 19px; }
.doc .kind p { margin: 0; font-size: 17px; }
@media (min-width: 620px) { .kind { grid-template-columns: 11em minmax(0, 1fr); align-items: baseline; } }

.doc ul.names { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; padding: 0; list-style: none; }
.names li { padding: 9px 16px; border-radius: 999px; background: var(--soft); font-size: 16px; font-weight: 500; }

/* The call to get the app at the foot of a reading page. */
.next { padding: clamp(56px, 8vw, 96px) 0; background: var(--soft); text-align: center; }
.next h2 { font-size: clamp(30px, 4.4vw, 56px); }
.next .lead { margin-top: 16px; }
.next .badges { justify-content: center; margin-top: 30px; }

/* ---------- Support ---------- */

.help { display: grid; gap: clamp(48px, 7vw, 88px); padding-bottom: var(--pad); }
.help section { display: grid; gap: 20px; }
.help h2 { font-size: clamp(26px, 3vw, 36px); }
.mail { scroll-margin-top: calc(var(--bar) + 24px); }
.mail p { max-width: 30em; font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); }
.mail p + p { margin-top: 10px; }
.mail a { color: var(--green); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.top .more { margin-top: 20px; }
@media (min-width: 760px) { .help section { grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 64px); } }

/* ---------- Pages with one thing to say: a shared table, a shared daily score, an error ---------- */

.land { padding: clamp(48px, 9vw, 120px) 0 var(--pad); }
.land .display { max-width: 13em; font-size: clamp(40px, 6.4vw, 84px); }
.land .display span { color: var(--green); }
.land .lead { margin-top: clamp(18px, 2.4vw, 28px); max-width: 30em; }
.land .tablecode { width: max-content; max-width: 100%; margin-top: clamp(22px, 3vw, 36px); padding: 20px 28px; border-radius: 20px; background: var(--soft); font-weight: 700; font-size: clamp(40px, 9vw, 64px); line-height: 1; letter-spacing: .02em; font-variant-numeric: tabular-nums; color: var(--fg); }
.land .badges { margin-top: clamp(24px, 3vw, 36px); }
.land .scan { justify-content: flex-start; }
.land .more { display: flex; width: max-content; margin-top: 32px; }
.land .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: clamp(26px, 3vw, 38px); }
.land .acts .pill { height: 54px; padding: 0 24px; border-radius: 13px; font-size: 17px; }
.land .acts .more { margin-top: 0; }
.land .errno { margin-top: 44px; font-size: 14px; color: var(--muted); }
.land .device { display: none; }
/* A phone gets the store first and the app's own button second. A computer gets the code to scan. */
.land .on-device, .land .open-app { display: none; }
.on-ios .land .on-device, .on-android .land .on-device { display: block; }
.on-ios .land .on-computer, .on-android .land .on-computer { display: none; }
.on-ios .land .open-app, .on-android .land .open-app { display: inline-flex; margin-top: 12px; height: 54px; padding: 0 24px; border-radius: 13px; font-size: 17px; background: none; color: var(--green); box-shadow: inset 0 0 0 1.5px var(--green); }
.land .open-app:hover { background: rgba(10, 123, 79, .08); }
@media (min-width: 1000px) {
  .land.with-shot .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
  .land .device { display: block; --pw: clamp(240px, 22vw, 300px); justify-self: center; }
}


.doc ol { margin-top: 18px; padding-left: 1.4em; list-style: decimal; display: grid; gap: 8px; max-width: 36rem; }
.doc.legal h2 { margin-top: clamp(44px, 6vw, 72px); font-size: clamp(24px, 2.6vw, 32px); scroll-margin-top: calc(var(--bar) + 24px); }
.doc.legal .updated { color: var(--muted); }

/* The thirteen ranks sit in one row, or in rows of seven and six on a phone. */
.cards.ranks { --cw: clamp(32px, (100vw - 2 * var(--margin) - 48px) / 7, 42px); display: grid; grid-template-columns: repeat(7, max-content); gap: 8px; }
@media (min-width: 620px) { .cards.ranks { --cw: 38px; grid-template-columns: repeat(13, max-content); gap: 6px; } }

/* A guide's contents on a phone: a closed list under the title. */
.jump { border-radius: 18px; background: var(--soft); font-size: 16px; }
.jump summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 20px; cursor: pointer; list-style: none; font-weight: 600; }
.jump summary::-webkit-details-marker { display: none; }
.jump summary::after { content: ""; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .3s var(--ease); }
.jump[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.jump ol { padding: 0 20px 12px; }
.jump a { display: flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--muted); border-top: 1px solid var(--line); }
@media (min-width: 760px) { .jump { display: none; } }
.doc.legal > section { margin-top: clamp(44px, 6vw, 72px); }
.doc.legal section h2 { margin-top: 0; }

/* Wide windows: the phones stand beside the headline, so a deal is being
   played on the first screen. */
@media (min-width: 1100px) {
  .hero { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 10fr); column-gap: 32px; align-items: start; width: min(100% - 2 * var(--margin), 1180px); margin-inline: auto; padding-top: clamp(20px, 4vh, 44px); text-align: left; overflow: visible; }
  .hero > .wrap { width: auto; margin: 0; padding-top: clamp(28px, 11vh, 128px); }
  .hero .display { font-size: clamp(60px, min(5.8vw, 12vh), 88px); }
  .hero .lead { margin-left: 0; max-width: 21em; }
  .hero .badges { justify-content: flex-start; }
  .trio { --pw: clamp(250px, min(21vw, 42vh), 310px); margin-top: 0; }
  .trio .side { transform: translate(calc(var(--dir) * var(--pw) * (.5 + var(--p) * .16)), calc(8% + var(--p) * 40px)) scale(.84); }
}

/* The contents of a long page scroll inside their own column. */
@media (min-width: 760px) {
  .toc { max-height: calc(100vh - var(--bar) - 72px); overflow-y: auto; scrollbar-width: thin; }
  .toc a { text-wrap: balance; }
}
@media (min-width: 1000px) { .read.long { grid-template-columns: 236px minmax(0, 1fr); } }


/* With motion reduced the row of tables doesn't slide, so it scrolls by hand at every width. */
@media (prefers-reduced-motion: reduce) { .reel { overflow-x: auto; } }

/* ---------- Round-the-site pieces ---------- */

.skip { position: absolute; left: 12px; top: -80px; z-index: 40; display: flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 999px; background: var(--fg); color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; }
.skip:focus { top: 10px; }

/* A code for a computer's screen. Phones and tablets have the buttons. */
.scan { display: none; }
@media (min-width: 900px) {
  .scan { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 28px; text-align: left; }
  .scan .qr { width: 104px; height: 104px; flex: none; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
  .scan p { margin: 0; max-width: 11em; font-size: 15px; line-height: 1.35; color: var(--muted); }
  .on-dark .scan p { color: var(--on-dark-muted); }
  .hero .scan { justify-content: flex-start; }
  .on-ios .scan, .on-android .scan { display: none; }
}

.steps-box ol { margin-top: 0; font-size: 20px; font-weight: 600; color: var(--fg); gap: 12px; }

/* Phones: a section's tiles sit in one row that is swiped sideways. */
@media (max-width: 619px) {
  /* A row that scrolls sideways must have nothing taller than itself inside
     it, or a finger moving down the page scrolls the row and cuts off the
     tiles' tops. So its tiles fade in without moving. */
  .bento { display: flex; gap: 12px; margin-inline: calc(var(--margin) * -1); padding-inline: var(--margin); overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-inline: var(--margin); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .bento::-webkit-scrollbar { display: none; }
  .bento > .tile { flex: 0 0 min(84%, 330px); scroll-snap-align: start; min-height: 500px; }
  .js .bento > [data-rise] { transition-delay: 0s; transform: none; }
}

/* ---------- Later corrections ---------- */

/* A reading page indents and spaces its numbered lists. The chart's row of
   bars is a list too and must not take that indent, or it sits off centre. */
.doc .ladder ol { max-width: none; margin: 0; padding: 0; list-style: none; gap: clamp(3px, 1vw, 6px); }
.kinds + p { margin-top: 36px; }

/* The reviews can always be moved by hand. */
.lane { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.lane::-webkit-scrollbar { display: none; }

@media (max-width: 619px) { .bento > .tile { flex-basis: min(78%, 320px); } }


/* Wide windows with a mouse: the section holds still while its row of
   tables slides past, so every table is whole on screen at some point. The
   script sets the section's height to the hold plus the row's travel. A
   touch screen keeps the row it can swipe, at every width. */
@media (min-width: 760px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .js .looks { padding: 0; }
  .js .looks .reel { padding-bottom: 0; overflow: visible; }
  .js .looks .pin { position: sticky; top: var(--bar); height: calc(100vh - var(--bar)); display: flex; flex-direction: column; justify-content: center; }
  .js .looks h2 { font-size: clamp(34px, min(5.4vw, 8.5vh), 72px); }
  .js .looks .strip { margin-top: clamp(24px, 4vh, 44px); }
  .js .looks .strip .device { --pw: clamp(150px, min(22vw, (100vh - var(--bar) - 340px) / 2.2), 280px); }
  .js .looks .strip figure:nth-child(even) { margin-top: clamp(16px, 4vh, 44px); }
}

/* Very wide windows hold all six tables at once, so the row stands still
   in the middle of the page and nothing slides. */
@media (min-width: 1740px) {
  .js .looks, .looks { padding: clamp(72px, 9vh, 184px) 0; }
  .js .looks .pin { position: static; height: auto; display: block; }
  .looks .wrap { text-align: center; }
  .looks .lead { margin-inline: auto; }
  .looks .reel, .js .looks .reel { overflow: visible; padding-bottom: 0; }
  .looks .strip, .js .looks .strip { width: auto; justify-content: center; padding-inline: var(--margin); margin-top: clamp(48px, 6vh, 88px); }
  /* The heading, the six tables and their names fit one window together. */
  .looks .strip .device, .js .looks .strip .device { --pw: min((100vw - 2 * var(--margin) - 220px) / 6, max((100vh - var(--bar) - 520px) / 2.1, 210px), 400px); }
  .looks .strip figure:nth-child(even), .js .looks .strip figure:nth-child(even) { margin-top: 44px; }
}
