/* SET website — one stylesheet for every page.
   Tokens mirror the app (components/ui/gluestack-ui-provider/config.ts). */

@font-face { font-family: "Manrope"; font-weight: 500; font-display: swap; src: url("/fonts/Manrope-Medium.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url("/fonts/Manrope-Bold.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 800; font-display: swap; src: url("/fonts/Manrope-ExtraBold.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 900; font-display: swap; src: url("/fonts/PlayfairDisplay_900.woff2") format("woff2"); }

:root {
	--bg: #f2f2f6;
	--card: #f9f9f9;
	--edge: #c3c3c7;
	--icon: #e4e4e5;
	--well: #eaeaef;
	--ink: #262627;
	--muted: #737373;
	--btn: #333333;
	--btn-ink: #ffffff;
	--green: #52d95d;
	--pink: #ff0188;
	--lav: #a2a0df;
	--magenta: var(--pink);
	--gold: #f4c653;
	/* Text colours, dark enough to read on a card (4.5:1+). */
	--ok: #1d7f36;
	--bad: #b81d55;
	--pink-ink: #c4006a;
	--r: 14px;
	--title: "Playfair Display", Georgia, serif;
	--ui: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--spring: cubic-bezier(0.2, 0.9, 0.25, 1.2);
	color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
	:root {
		--bg: #1c1c1e;
		--card: #2b2b2d;
		--edge: #3d3d41;
		--icon: #444447;
		--well: #232325;
		--ink: #f5f5f5;
		--muted: #a9a9ae;
		--btn: #f0f0f0;
		--btn-ink: #171717;
		--ok: #52d95d;
		--bad: #ff6f97;
		--pink-ink: #ff6db8;
	}
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 500 17px/1.55 var(--ui);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
/* height: auto keeps an image's shape when CSS sets only its width; without it
   the height= attribute wins and the image stretches. */
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--title); font-weight: 900; line-height: 1.05; letter-spacing: -0.01em; }
h1 { font-size: clamp(42px, 7vw, 80px); }
h2 { font-size: clamp(32px, 4.8vw, 52px); }
h3 { font-weight: 800; font-size: 17px; line-height: 1.25; }
.lead { color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); max-width: 30em; }
.muted { color: var(--muted); }

/* ---------- header ---------- */
.top {
	position: sticky; top: 0; z-index: 20;
	display: flex; align-items: center; justify-content: space-between;
	padding: 12px max(20px, calc((100vw - 1080px) / 2));
	background: color-mix(in srgb, var(--bg) 82%, transparent);
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	border-bottom: 2px solid transparent;
	transition: border-color 0.3s;
}
.top.scrolled { border-bottom-color: var(--edge); }
.mark {
	font: 900 28px/1 var(--title); text-decoration: none; letter-spacing: 0.01em;
}
.top nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 28px); }
.top nav a:not(.btn) { text-decoration: none; font-weight: 700; font-size: 15px; opacity: 0.75; transition: opacity 0.2s; }
.top nav a:not(.btn):hover, .top nav a[aria-current] { opacity: 1; }

/* ---------- buttons (the app's raised button: radius 14, 4px ledge) ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 50px; padding: 0 22px;
	border: 0; border-radius: var(--r); cursor: pointer;
	background: var(--btn); color: var(--btn-ink);
	font: 800 16px/1 var(--ui); text-decoration: none; white-space: nowrap;
	box-shadow: 0 4px 0 color-mix(in srgb, var(--btn) 70%, #000), 0 4px 0 1px transparent;
	transform: translateY(-2px);
	transition: transform 0.12s var(--ease), box-shadow 0.12s var(--ease), opacity 0.2s;
	-webkit-tap-highlight-color: transparent;
}
@media (prefers-color-scheme: dark) {
	.btn { box-shadow: 0 4px 0 #9a9a9e; }
}
@media (hover: hover) { .btn:hover { transform: translateY(-3px); } }
.btn:active { transform: translateY(2px); box-shadow: 0 0 0 transparent; }
.btn[disabled] { opacity: 0.35; pointer-events: none; }
.btn.plain { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 2px var(--edge), 0 4px 0 var(--edge); }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
.btn svg { width: 20px; height: 20px; flex: none; fill: currentColor; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- layout ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
section.band { padding: clamp(64px, 10vw, 120px) 0; }
.head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); }
.head.center { justify-items: center; text-align: center; }

.panel {
	background: var(--card);
	border: 2px solid var(--edge);
	border-radius: 22px;
}

/* rise-in on scroll (only when JS is running) */
.js .rise { opacity: 0; transform: translateY(26px); }
/* The first screen is readable at once: it only slides. Waiting for the script
   to fade it in delays the moment search engines time as the page's load. */
.js .hero .rise { opacity: 1; }
.js .rise.in {
	opacity: 1; transform: none;
	transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
	transition-delay: calc(var(--i, 0) * 70ms);
}

/* ---------- playing card ---------- */
.pc {
	display: block; width: 100%; padding: 0; margin: 0;
	aspect-ratio: 168 / 264;
	background: var(--card);
	border: solid var(--edge); border-width: 2px 2px 5px 5px;
	border-radius: 12px;
	cursor: pointer; position: relative;
	transition: transform 0.18s var(--spring), border-color 0.18s, box-shadow 0.18s;
	-webkit-tap-highlight-color: transparent;
	font: inherit; color: inherit;
}
.pc svg { display: block; width: 100%; height: 100%; }
.pc.static { cursor: default; }
@media (hover: hover) { button.pc:not(.sel):hover { transform: translateY(-2px); } }
.pc.sel { border-color: var(--ink); transform: translateY(-5px); }
.pc.glow { border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 40%, transparent); animation: glow 1.4s ease-in-out infinite; }
.pc.good { border-color: var(--ok); }
.pc.bad { border-color: var(--bad); }
@keyframes glow { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--gold) 16%, transparent); } }

.board { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(7px, 1.4vw, 12px); }
.board .slot { min-width: 0; }

/* ---------- hero ---------- */
.hero { padding: clamp(36px, 7vw, 88px) 0 clamp(48px, 8vw, 96px); }
.hero .wrap { display: grid; gap: clamp(36px, 6vw, 72px); align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.05fr 0.95fr; } }
.hero-copy { display: grid; gap: 22px; justify-items: start; }
.hero h1 span { display: block; white-space: nowrap; }
.hero h1 .c1 { color: var(--pink); }
/* Three big cards, fanned. Each slot holds its place in the fan and drifts a
   little; the card inside is what flips. */
.fan { display: flex; justify-content: center; align-items: center; width: min(100%, 470px); justify-self: center; padding: 18px 0 30px; perspective: 900px; }
.fan-slot { width: 34%; margin: 0 -2.5%; animation: drift 6s ease-in-out infinite; will-change: translate; }
.fan-slot:nth-child(1) { rotate: -9deg; translate: 0 14px; --y: 14px; animation-delay: -2s; }
.fan-slot:nth-child(2) { z-index: 1; --y: 0px; }
.fan-slot:nth-child(3) { rotate: 9deg; translate: 0 14px; --y: 14px; animation-delay: -4s; }
.fan-slot .pc { border-radius: 18px; border-width: 2px 2px 7px 7px; }
@keyframes drift { 0%, 100% { translate: 0 var(--y); } 50% { translate: 0 calc(var(--y) - 9px); } }
.textlink { font-weight: 800; text-decoration: none; border-bottom: 2px solid var(--edge); padding-bottom: 2px; transition: border-color 0.2s; }
.textlink:hover { border-color: var(--ink); }

/* ---------- store screenshots ----------
   Shown the way a store listing shows them: separate rounded screenshots in a
   row. The gap is the store's 45px measured on the full-size 1242px screenshot,
   so it shrinks with the pictures (45 / 1242 = 3.62% of one screenshot's
   width) and the artwork reads as one continuous picture across them. On a
   phone the row scrolls sideways rather than shrinking to nothing. */
.shots { --shot: calc(100% / 3.0725); display: flex; justify-content: center; gap: calc(var(--shot) * 0.0362); max-width: 940px; margin: 0 auto; }
.shots img { flex: 0 0 var(--shot); min-width: 0; height: auto; border: 2px solid var(--edge); border-radius: 22px; }
/* Only the row's outside is framed: every edge that faces another screenshot
   has no border and no rounding, so the three read as one picture. */
.shots img:first-child { border-radius: 22px 0 0 22px; border-right: 0; }
.shots img:nth-child(2) { border-radius: 0; border-left: 0; border-right: 0; }
.shots img:last-child { border-radius: 0 22px 22px 0; border-left: 0; }
@media (max-width: 720px) {
	.shots { --shot: min(68%, 280px); justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 -20px; padding: 0 20px; scroll-padding: 0 20px; }
	.shots::-webkit-scrollbar { display: none; }
	.shots img { scroll-snap-align: center; }
}

/* The three come together as the row scrolls into view: the ends slide in from
   the sides and the middle rises, landing as one picture. The row itself stays
   put — only the screenshots move. */
.js .shots.rise { opacity: 1; transform: none; }
.js .shots.rise img { opacity: 0; transition: opacity 0.9s var(--ease), transform 1.1s var(--ease); }
.js .shots.rise img:nth-child(1) { transform: translateX(-44px); }
.js .shots.rise img:nth-child(2) { transform: translateY(44px); transition-delay: 0.12s; }
.js .shots.rise img:nth-child(3) { transform: translateX(44px); transition-delay: 0.24s; }
.js .shots.rise.seen img:nth-child(n) { opacity: 1; transform: none; }
@media (max-width: 720px) {
	/* In the sideways-scrolling row a sideways slide would fight the scroll. */
	.js .shots.rise img:nth-child(n) { transform: translateY(32px); }
	.js .shots.rise.seen img:nth-child(n) { transform: none; }
}

/* ---------- the rule ---------- */
.rule { display: grid; gap: 28px; justify-items: center; }
.rule .chips { min-height: 44px; }
.rule .trio { perspective: 900px; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 2vw, 18px); width: min(100%, 400px); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chip {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 9px 14px; border-radius: 999px;
	background: var(--card); border: 2px solid var(--edge);
	font-weight: 700; font-size: 14px;
}
.chip b { font-weight: 800; }
.chips .chip b, .verdicts .chip b { display: inline-block; min-width: 4.7em; text-align: right; }
.chip.same b { color: var(--ok); }
.chip.diff b { color: var(--pink-ink); }

/* ---------- tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 1000px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile {
	display: flex; align-items: center; gap: 14px;
	padding: 16px; background: var(--card);
	border: 2px solid var(--edge); border-radius: var(--r);
	transition: transform 0.25s var(--spring);
}
@media (hover: hover) { .tile:hover { transform: translateY(-3px); } }
.tile p { color: var(--muted); font-size: 14px; line-height: 1.35; }
.disc {
	flex: none; width: 48px; height: 48px; border-radius: 50%;
	background: var(--icon); display: grid; place-items: center;
}
.disc img { width: 30px; height: 30px; }
/* Mode glyphs are drawn in the ink colour, whatever colour the art itself is. */
.glyph { object-fit: contain; filter: brightness(0); }
@media (prefers-color-scheme: dark) { .glyph { filter: brightness(0) invert(1); } }
/* On a phone the tiles become a calm icon grid, three across: just the icon
   and the name, no frames and no lines of copy. */
@media (max-width: 400px) {
	.top nav { gap: 12px; }
	.top nav a:not(.btn) { font-size: 14px; }
	.top .btn.sm { padding: 0 12px; font-size: 13px; }
}
@media (max-width: 560px) {
	.tiles { grid-template-columns: repeat(3, 1fr); gap: 22px 8px; }
	.tile { flex-direction: column; gap: 8px; padding: 0; background: none; border: 0; text-align: center; }
	.tile p { display: none; }
	.tile h3 { font-size: 14px; }
	.tile .disc { width: 58px; height: 58px; }
	.tile .disc img { width: 32px; height: 32px; }
}
.nowrap { white-space: nowrap; }
.more { margin-top: 18px; text-align: center; color: var(--muted); font-size: 15px; }

/* ---------- duo (daily + multiplayer) ---------- */
.duo { display: grid; gap: 14px; }
@media (min-width: 820px) { .duo { grid-template-columns: 1fr 1fr; } }
.feature { padding: clamp(22px, 3vw, 34px); display: grid; gap: 22px; align-content: space-between; }
.feature h3 { font: 900 clamp(26px, 3vw, 34px)/1.1 var(--title); }
.feature p { color: var(--muted); margin-top: 8px; }
.week { display: flex; gap: clamp(6px, 1.5vw, 10px); }
.day {
	flex: 1; max-width: 46px; aspect-ratio: 1; border-radius: 50%;
	border: 2px solid var(--edge); display: grid; place-items: center;
	transition: background 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--spring);
	transition-delay: calc(var(--i) * 140ms + 300ms);
}
.day svg { width: 46%; opacity: 0; transition: opacity 0.3s; transition-delay: inherit; stroke: #fff; fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.seen .day:not(.next) { background: var(--green); border-color: var(--green); transform: scale(1.04); }
.seen .day:not(.next) svg { opacity: 1; }
.day.next { border-style: dashed; }
/* The multiplayer modes: the same icon discs as the mode tiles, in two quiet
   columns rather than a row of outlined pills. */
.crew { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.crew li { display: flex; align-items: center; gap: 12px; min-width: 0; }
.crew .disc { width: 42px; height: 42px; }
.crew .disc img { width: 24px; height: 24px; }
.crew b { display: block; font-weight: 800; font-size: 16px; line-height: 1.2; }
.crew small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.3; }
@media (max-width: 380px) { .crew { grid-template-columns: 1fr; } }

/* ---------- chase (ranks + achievements) ---------- */
.medals { display: flex; justify-content: center; align-items: flex-end; gap: clamp(4px, 2vw, 22px); }
.medals img { will-change: transform; width: clamp(54px, 15vw, 128px); animation: bob 5s ease-in-out infinite; animation-delay: calc(var(--i) * -0.9s); }
@keyframes bob { 50% { transform: translateY(-8px); } }

.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee .track { will-change: transform; display: flex; width: max-content; gap: clamp(14px, 2.4vw, 26px); padding-right: clamp(14px, 2.4vw, 26px); animation: slide 46s linear infinite; }
.marquee.rev .track { animation-direction: reverse; animation-duration: 60s; }
.marquee img { width: clamp(64px, 9vw, 96px); height: clamp(64px, 9vw, 96px); object-fit: contain; }
.marquee .sw { width: clamp(76px, 10vw, 104px); height: clamp(76px, 10vw, 104px); padding: 14px; background: var(--card); border: 2px solid var(--edge); border-radius: var(--r); }
.marquee .sw img { width: 100%; height: 100%; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- closing ---------- */
.closing { text-align: center; display: grid; gap: 24px; justify-items: center; }
.closing .stores { justify-content: center; }

footer.foot { border-top: 2px solid var(--edge); padding: 28px 0 36px; font-size: 14px; }
footer.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
footer.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer.foot a { text-decoration: none; color: var(--muted); font-weight: 700; transition: color 0.2s; }
footer.foot a:hover { color: var(--ink); }
footer.foot small { color: var(--muted); font-size: 13px; }

/* ---------- play pages (learn + zen) ---------- */
.play { max-width: 560px; margin: 0 auto; padding: clamp(20px, 4vw, 44px) 20px 72px; display: grid; gap: 20px; }
.play-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.play-head h1 { font-size: clamp(38px, 7vw, 56px); }
.count { text-align: right; line-height: 1.1; }
.count b { display: block; font: 900 clamp(34px, 6vw, 46px)/1 var(--title); }
.count span { color: var(--muted); font-size: 13px; font-weight: 700; white-space: nowrap; }
.zen-board { padding: clamp(10px, 2.4vw, 16px); background: var(--well); }
.play-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 54px; }
.say { color: var(--muted); font-weight: 700; font-size: 15px; min-height: 1.5em; transition: opacity 0.25s; }
.say.bad { color: var(--bad); }
.say.ok { color: var(--ok); }

/* learn */
.progress { display: grid; gap: 8px; }
.progress span { color: var(--muted); font-weight: 700; font-size: 14px; }
.bar { height: 8px; border-radius: 99px; background: var(--icon); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--ink); transition: width 0.6s var(--ease); }
.stage { padding: clamp(20px, 4vw, 32px); display: grid; gap: 22px; justify-items: center; text-align: center; min-height: 480px; align-content: center; }
.stage h2 { font-size: clamp(28px, 5vw, 38px); }
.stage .row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 2.5vw, 16px); width: min(100%, 330px); align-items: center; }
.stage .row.six { width: min(100%, 300px); }
.stage .solo { width: min(46%, 150px); }
.hole { aspect-ratio: 168 / 264; border: 2px dashed var(--edge); border-radius: 12px; display: grid; place-items: center; font: 900 34px var(--title); color: var(--muted); }
.yn { display: flex; gap: 12px; }
.yn .btn { min-width: 110px; }
.verdicts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: min(100%, 330px); }
.verdicts .chip { justify-content: space-between; }
.cap { width: 150px; }
.stage-foot { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* The tutorial fits one screen: the page below the header is exactly the
   window's height, the stage takes whatever the progress bar and Continue leave,
   and the cards are sized from the window's height so the busiest step (two
   rows of cards plus a line of feedback) still fits a small phone. */
.play.learn {
	--top: 66px;
	--row: clamp(190px, calc((100dvh - 410px) * 0.95 + 20px), 330px);
	height: calc(100dvh - var(--top)); min-height: 480px;
	padding: clamp(12px, 2.4dvh, 28px) 20px clamp(12px, 2.4dvh, 24px);
	grid-template-rows: auto 1fr auto; gap: clamp(10px, 2dvh, 20px);
}
.learn .stage { min-height: 0; padding: clamp(14px, 2.4dvh, 28px) 18px; gap: clamp(10px, 2.2dvh, 22px); }
.learn .stage h2 { font-size: clamp(24px, 4.2dvh, 38px); }
.learn .stage .row { width: min(100%, var(--row)); }
.learn .stage .row.six { width: min(100%, calc(var(--row) * 0.92)); }
.learn .stage .solo { width: min(46%, 150px, calc(var(--row) * 0.36)); }
.learn .cap { width: min(150px, calc(var(--row) * 0.45)); }
.learn > * { min-width: 0; }
.learn .verdicts { width: min(100%, 330px); gap: 6px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.learn .verdicts .chip { padding: 6px 10px; gap: 6px; font-size: 13px; }
.learn .verdicts .chip b { min-width: 0; }

/* ---------- get the app ---------- */
.get { min-height: calc(100dvh - 190px); display: grid; align-content: center; justify-items: center; gap: 8px; padding: 32px 20px 56px; text-align: center; }
.get .fan { width: min(74%, 300px); padding: 0 0 26px; }
.get-copy { display: grid; gap: 18px; justify-items: center; }
.get-copy[hidden] { display: none; }
.get-copy h1 { font-size: clamp(38px, 7vw, 60px); }
.get-copy .stores { justify-content: center; }

/* ---------- legal ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: clamp(28px, 5vw, 64px) 20px 80px; }
.doc .hero { padding: 0 0 28px; display: grid; gap: 14px; }
.doc h1 { font-size: clamp(38px, 6.4vw, 60px); }
.doc .eyebrow { font-weight: 800; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pink-ink); }
.doc .updated { color: var(--muted); font-size: 14px; }
.doc .intro { font-size: 18px; color: var(--muted); }
.doc .intro strong { color: var(--ink); }
.doc section { padding-top: 34px; scroll-margin-top: 80px; }
.doc h2 { font-size: clamp(24px, 3.4vw, 30px); margin-bottom: 12px; }
.doc h3 { margin: 18px 0 6px; display: flex; align-items: center; gap: 8px; }
.doc h4 { margin: 0 0 8px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.doc p, .doc li { color: color-mix(in srgb, var(--ink) 82%, var(--bg)); }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 22px; margin: 10px 0; display: grid; gap: 8px; }
.doc a { font-weight: 700; text-decoration: underline; text-decoration-color: var(--edge); text-underline-offset: 3px; }
.doc a:hover { text-decoration-color: var(--ink); }
.doc .sub { color: var(--muted); margin-bottom: 14px; }
.doc .toc, .doc .contact, .doc .card, .doc .panel, .doc .note {
	background: var(--card); border: 2px solid var(--edge); border-radius: var(--r); padding: 18px 20px;
}
.doc .toc ol { columns: 2; display: block; margin: 0; font-size: 15px; }
.doc .toc li { margin-bottom: 6px; break-inside: avoid; }
.doc .toc a { text-decoration: none; }
@media (max-width: 560px) { .doc .toc ol { columns: 1; } }
.doc .contact { display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; align-items: center; margin-top: 8px; }
.doc .contact h3 { margin: 0 0 2px; }
.doc .contact .ic { width: 48px; height: 48px; border-radius: 50%; background: var(--icon); display: grid; place-items: center; }
.doc .contact .ic svg { width: 24px; height: 24px; }
.doc .contact .mail {
	grid-column: 1 / -1; justify-self: start;
	display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px;
	background: var(--btn); color: var(--btn-ink); border-radius: var(--r);
	font-weight: 800; text-decoration: none; word-break: break-all;
}
.doc .grid, .doc .two { display: grid; gap: 12px; }
@media (min-width: 640px) { .doc .grid, .doc .two { grid-template-columns: 1fr 1fr; } }
.doc .card h3, .doc .panel h3 { margin-top: 0; }
.doc .d { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.doc .note { margin-top: 16px; }
.doc .steps { list-style: none; padding: 0; counter-reset: s; gap: 12px; }
.doc .steps > li { counter-increment: s; position: relative; padding: 16px 18px 16px 62px; background: var(--card); border: 2px solid var(--edge); border-radius: var(--r); }
.doc .steps > li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 32px; height: 32px; border-radius: 50%; background: var(--icon); display: grid; place-items: center; font-weight: 800; }
.doc .steps h3 { margin-top: 2px; display: block; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 15px; }
.doc td { padding: 12px 10px; border-top: 2px solid var(--edge); vertical-align: top; }
.doc tr:first-child td { border-top: 0; }
.doc td:first-child { font-weight: 800; width: 34%; }
@media (max-width: 560px) {
	.doc td { display: block; width: auto; padding: 4px 0 12px; border-top: 0; }
	.doc td:first-child { width: auto; padding-top: 12px; border-top: 2px solid var(--edge); }
	.doc tr:first-child td:first-child { border-top: 0; }
}
.doc .tag { display: inline-block; padding: 1px 8px; border-radius: 99px; background: var(--icon); font-size: 12px; font-weight: 800; margin-left: 6px; vertical-align: middle; }
.doc code { font-size: 0.9em; background: var(--icon); padding: 1px 6px; border-radius: 6px; }

/* ---------- pages that also have something to read ---------- */
.doc.below { border-top: 2px solid var(--edge); max-width: none; padding-top: 20px; }
.doc.below > * { max-width: 720px; margin-left: auto; margin-right: auto; }
.doc.below > .hero { padding-top: 34px; }
.doc.below > .cta { margin-top: 44px; }
.hero h1 .kicker { font: 800 clamp(15px, 1.6vw, 18px)/1.2 var(--ui); letter-spacing: 0; color: var(--muted); margin-bottom: 14px; }
.rating { color: var(--muted); font-size: 14px; font-weight: 700; margin-top: 14px; }
.narrow { max-width: 760px; }

.cards { display: grid; grid-template-columns: repeat(3, 76px); gap: 10px; margin: 20px 0 12px; align-items: center; }
.cards figcaption { grid-column: 1 / -1; font-weight: 800; font-size: 14px; }
.cards figcaption.ok { color: var(--ok); }
.cards figcaption.bad { color: var(--bad); }
.cards .pc, .trio-row .pc, .deck .pc, .table .pc { border-radius: 9px; border-width: 2px 2px 4px 4px; }

.cta { display: grid; grid-template-columns: auto 1fr; gap: 16px 18px; align-items: center; padding: clamp(18px, 3vw, 26px); margin-top: 44px; }
.cta img { border-radius: 16px; }
.doc .cta h2 { font-size: clamp(22px, 3vw, 28px); margin: 0 0 4px; }
.cta p { color: var(--muted); }
.doc .cta p + p { margin-top: 4px; }
.cta .stores { grid-column: 1 / -1; }
.cta .btn, .done .btn { text-decoration: none; }
/* On a phone, only its own store. */
.ios .stores .android-only, .android .stores .ios-only { display: none; }

.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 2px solid var(--edge); border-radius: var(--r); }
.faq summary { cursor: pointer; padding: 15px 18px; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 18px 16px; color: var(--muted); }

.guides { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.doc .guides { padding: 0; gap: 12px; }
.guides a, .doc .guides a { display: block; height: 100%; padding: 15px 18px; text-decoration: none; background: var(--card); border: 2px solid var(--edge); border-radius: var(--r); font-weight: 500; }
.guides a:hover { border-color: var(--ink); }
.guides b { display: block; font-weight: 800; }
.guides span { color: var(--muted); font-size: 14px; line-height: 1.35; }

.doc .modes { list-style: none; padding: 0; gap: 18px; margin: 16px 0; }
.modes li { display: flex; gap: 16px; align-items: flex-start; }
.doc .modes h3 { margin: 0 0 2px; }
.foot nav + nav { flex-basis: 100%; }
.more a, .feature p a { font-weight: 700; }

/* daily puzzle + solver */
.done { padding: 24px; display: grid; gap: 14px; justify-items: center; text-align: center; }
.done .stores { justify-content: center; }
.trios { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px 22px; }
.trio-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.doc .picker { padding: clamp(10px, 2.4vw, 16px); background: var(--well); }
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.swatches .btn[aria-pressed="true"] { background: var(--btn); color: var(--btn-ink); box-shadow: 0 4px 0 color-mix(in srgb, var(--btn) 70%, #000); }
.deck { display: grid; grid-template-columns: repeat(9, 1fr); gap: clamp(4px, 1vw, 8px); }
.deck .pc[hidden] { display: none; }
.deck .pc.sel { background: color-mix(in srgb, var(--gold) 28%, var(--card)); }
.solver-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 20px 0 14px; }
.table { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; margin-bottom: 22px; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
	.js .rise, .js .shots.rise img:nth-child(n) { opacity: 1; transform: none; }
}

/* Zen keeps its whole board, counter and Hint on one screen. */
.play.fit { max-width: clamp(320px, calc((100dvh - 290px) / 1.18 + 40px), 560px); }
