/* Tint (tint.kytepush.com). Paper, ink and the day's own colors: the page wash and logo re-tint every day. */
:root {
  --paper: #F3EEE4; --paper-2: #FBF8F2; --paper-3: #E9E2D5;
  --ink: #1E1B17; --ink-soft: #6F675B; --rule: #DDD3C2;
  --wash: #F6EADF; --wash-2: #EAF0F2;
  --good: #2F8A57; --warn: #C2741A; --bad: #C0472F; --ok2: #7FA33A;
  --sans: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  /* the shared kit (toasts), in paper */
  --bg: var(--paper); --bg-2: var(--paper-2); --bg-3: var(--paper-3); --line: var(--rule); --text: var(--ink); --muted: var(--ink-soft);
  --violet: var(--ink); --violet-2: var(--ink); --font: var(--sans); --mono: var(--sans);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body.tn {
  min-height: 100dvh;
  background: radial-gradient(90% 55% at 0% 0%, var(--wash) 0%, transparent 70%), radial-gradient(80% 50% at 100% 30%, var(--wash-2) 0%, transparent 70%), var(--paper);
  background-repeat: no-repeat;
}
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* header */
/* A sticky bar in the page's own paper. kp.css already pads the body by the top safe area and paints a paper strip behind
   the status bar, so the bar only adds its own 6px (it used to add the inset a second time: a doubled band on notched
   home-screen web apps). It sticks right under that strip, is solid (nothing shows through) and spans the full width,
   with the content kept to the 520px column. The day's wash starts under it and a short paper fade hides the seam. */
.tn-top { position: sticky; top: env(safe-area-inset-top); z-index: 30; background: var(--paper); display: flex; align-items: center; justify-content: space-between;
  padding: 6px max(12px, calc(50% - 248px)) 0 max(16px, calc(50% - 244px)); }
.tn-top::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; background: linear-gradient(var(--paper), rgba(243,238,228,0)); pointer-events: none; }
.tn-logo { text-decoration: none; color: var(--ink); display: inline-flex; align-items: baseline; gap: 6px; }
.tn-logo #tnWord { font-family: var(--serif); font-style: italic; font-size: 40px; line-height: 1; letter-spacing: -0.01em; }
.tn-logo b { font-weight: 700; font-size: 15px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.tn-tools { display: flex; gap: 2px; }
.tn-tool { width: 44px; height: 44px; border: 0; background: none; border-radius: 12px; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.tn-tool:hover { background: rgba(30,27,23,.06); }
.tn-tool svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
/* six tools on a phone: the buttons give up a little width (never height) instead of pushing the bar off screen */
.tn-top h1 { flex-shrink: 0; }
.tn-tools { min-width: 0; }
.tn-tool { flex: 0 1 44px; min-width: 32px; }
@media (max-width: 420px) { .tn-top { padding-right: 6px; } .tn-tools { gap: 0; } }
.tn-tool[aria-pressed="false"] { color: var(--ink-soft); }

.tn-stage { max-width: 520px; margin: 0 auto; padding: 0 16px 24px; min-height: min(calc(100dvh - 60px), 860px); display: flex; flex-direction: column; }
/* the circle's glow (.t-glow, inset -22%) reaches past a phone's edges: clip it at the stage, which is the screen width on phones,
   so it can't widen the page (iOS lets you drag a wider page sideways even with overflow clipped on html) */
@media (max-width: 600px) { .tn-stage { overflow-x: clip; } }

/* play */
.tint { display: flex; flex-direction: column; align-items: center; flex: 1; position: relative; }
.t-banner { width: 100%; margin: 6px 0 0; padding: 9px 14px; border-radius: 12px; background: var(--ink); color: var(--paper-2); font-size: 14px; text-align: center; }
.t-chips { display: flex; gap: 8px; margin: 10px 0 4px; }
.t-chip { width: 44px; height: 28px; border-radius: 7px; border: 1.5px dashed var(--rule); background: transparent; padding: 0; position: relative; cursor: default; }
.t-chip.cur { border: 2px solid var(--ink); background: var(--c); }
.t-chip.done { border: 0; background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.t-chip b { position: absolute; inset: auto 0 -16px; font-size: 10px; letter-spacing: 1px; color: var(--ink-soft); font-weight: 700; }
/* E12: "2 of 5 · about 1 min left" over the chips (replaces "Color 2 of 5" in the info line) */
.t-prog { margin-top: 8px; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.t-prog[hidden] { display: none; }
.t-prog + .t-chips { margin-top: 6px; }
.t-info.nostep #tStep, .t-info.nostep i:nth-of-type(2) { display: none; }
/* the circle takes the room the screen has (pots stay in thumb reach at the bottom), so tall phones get a bigger circle, not a hole */
/* (-516px: 16px went to the E12 progress line over the chips) */
.t-swwrap { position: relative; width: clamp(200px, calc(100dvh - 516px), min(80vw, 360px)); aspect-ratio: 1; margin: 18px 0 6px; }
.t-glow { position: absolute; inset: -22%; border-radius: 50%; opacity: .45; filter: blur(14px); pointer-events: none; }
.t-ring { position: absolute; inset: -9px; width: calc(100% + 18px); height: calc(100% + 18px); transform: rotate(-90deg); }
.t-ring circle { fill: none; stroke-width: 2.6; }
.t-ring .bg { stroke: var(--rule); }
.t-ring .fg { stroke-linecap: round; transition: stroke-dashoffset .5s cubic-bezier(.3,1.35,.5,1), stroke .35s; }
.t-swatch { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; display: flex; box-shadow: 0 18px 40px -18px rgba(60,44,24,.45), inset 0 0 0 1px rgba(0,0,0,.05); background: var(--paper-2); }
.t-half { flex: 1; position: relative; transition: background-color .3s; }
.t-mix { border-left: 2px solid var(--paper); overflow: hidden; }
.t-mix.empty { background: repeating-linear-gradient(-45deg, var(--paper-2) 0 8px, var(--paper-3) 8px 9px); }
.t-emptytxt { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ink-soft); line-height: 1.05; }
.t-mix:not(.empty) .t-emptytxt { display: none; }
.t-ripple { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px; border: 3px solid; border-radius: 50%; animation: tnrip .7s ease-out forwards; pointer-events: none; }
@keyframes tnrip { to { transform: scale(7); opacity: 0; } }
.t-name { font-family: var(--serif); font-size: 30px; line-height: 1.1; margin-top: 8px; text-align: center; }
.t-match { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.t-pct { font-weight: 800; font-size: 44px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.t-pct sup { font-size: .45em; margin-left: 2px; vertical-align: .9em; }
.t-sub { font-size: 13px; color: var(--ink-soft); }
.t-assist { margin-top: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(30,27,23,.06); font-size: 14px; text-align: center; }
.t-info { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 13px; color: var(--ink-soft); }
.t-info i { width: 3px; height: 3px; border-radius: 50%; background: var(--rule); }
.t-info b { color: var(--ink); font-variant-numeric: tabular-nums; }
.t-info .over b { color: var(--warn); }
.t-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; min-height: 12px; margin: 8px 0 0; max-width: 300px; }
.t-strip i { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.t-coach { margin: 8px 0 0; font-size: 14px; color: var(--ink); background: var(--paper-2); border: 1.5px solid var(--ink); border-radius: 12px; padding: 7px 12px; text-align: center; max-width: 340px; }
.t-pots { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; width: 100%; max-width: 420px; margin-top: auto; padding-top: 14px; }
/* first visit, first color: a bubble pointing at a pot the recipe uses (shared/fx.js FX.tip), in paper and ink */
.tn-tip { --fx-bg: var(--ink); --fx-fg: var(--paper); --fx-w: 700; --fx-r: 12px; --fx-sh: 0 8px 20px -8px rgba(30,27,23,.5); font-size: 14px; }
.tn-tip b { text-decoration-thickness: 1.5px; }
.tn .fx-glow { --fx-ring: var(--ink); }
.t-pot { border: 0; background: none; padding: 4px 0 0; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; min-height: 48px; }
/* open paint cans (SVG from tint.js canSvg); the art is 64x60, as tall as the old 62 px pots */
.t-can { display: block; width: min(16vw, 64px); aspect-ratio: 64 / 60; border-radius: 50%; transition: transform .1s; }
.t-can svg { display: block; width: 100%; height: 100%; overflow: visible; }
.t-can .can-body { transform-box: view-box; transform-origin: 50% 80%; }
.t-pot.press .t-can, .t-pot:active .t-can { transform: scale(.94); }
.t-pot:disabled { opacity: .45; cursor: default; }
.t-pn { font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.t-actions { position: relative; display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px; width: 100%; max-width: 420px; margin-top: 12px; }
/* E12: the "stuck?" chip hangs under Lock in, out of the flow: it never moves Lock in or the layout */
.t-help { position: absolute; right: 0; top: calc(100% + 4px); height: 26px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--rule); background: var(--paper-2);
  color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; touch-action: manipulation; animation: tnhelp .35s ease-out; }
.t-help[hidden] { display: none; }
.t-help:active { transform: scale(.96); }
@keyframes tnhelp { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.t-ast { margin-left: 2px; font-weight: 800; color: var(--ink-soft); }
.tr-row .ast { margin-left: 2px; font-weight: 800; }
.r-asst { margin: 6px 0 0; font-size: 13px; color: var(--ink-soft); text-align: center; }
.t-btn { min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--paper-2); font-weight: 700; font-size: 15px; cursor: pointer; }
.t-btn:disabled { opacity: .35; cursor: default; }
.t-btn { transition: transform .16s cubic-bezier(.3,1.8,.5,1), background-color .15s, border-color .15s; touch-action: manipulation; }
.t-btn:active:not(:disabled) { transform: scale(.95); transition-duration: .05s; }
.linkish:active, .t-reply:active, .r-xg a:active { transform: scale(.95); }
.t-go { background: var(--ink); color: var(--paper-2); }
.t-go.confirm { background: var(--warn); border-color: var(--warn); }
.t-drop { position: absolute; width: 18px; height: 18px; margin: -9px; border-radius: 50% 50% 50% 25%; transform-origin: center; pointer-events: none; z-index: 50; box-shadow: inset 0 0 0 1px rgba(30,27,23,.24); }
.t-spark { position: absolute; border-radius: 50%; pointer-events: none; z-index: 50; }

/* round sheet */
.t-sheet { position: absolute; left: 0; right: 0; bottom: 0; background: var(--paper-2); border: 1.5px solid var(--ink); border-radius: 22px; padding: 18px 18px 16px; text-align: center;
  transform: translateY(36px) scale(.96); opacity: 0; pointer-events: none; transition: transform .2s ease-in, opacity .15s; box-shadow: 0 20px 50px -20px rgba(60,44,24,.5); }
.t-sheet.show { transition: transform .42s cubic-bezier(.2,1.35,.4,1), opacity .18s; }
.t-sheet.show { transform: none; opacity: 1; pointer-events: auto; }
.t-sheet h3 { margin: 4px 0 2px; font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.05; }
.t-sheet .t-cn { margin: 0 0 10px; color: var(--ink-soft); font-size: 14px; }
.t-sheet .t-cn em { font-family: var(--serif); font-size: 18px; color: var(--ink); }
.t-sheet .t-go { width: 100%; }
.t-stars { font-size: 26px; letter-spacing: 4px; }
.t-stars .on { color: #D69A16; display: inline-block; animation: tnstar .35s backwards cubic-bezier(.2,1.6,.4,1); }
.t-stars .off { color: var(--rule); }
@keyframes tnstar { from { transform: scale(0) rotate(-30deg); } }
.t-recipe { display: flex; align-items: center; justify-content: center; gap: 4px; margin-bottom: 14px; font-size: 12px; color: var(--ink-soft); }
.t-recipe span { margin-right: 6px; }
.t-recipe i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }

/* results */
.t-results { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 2px; }
.r-k { font-size: 13px; color: var(--ink-soft); font-weight: 600; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-results h2 { font-family: var(--serif); font-weight: 400; font-size: 32px; margin: 0 0 10px; line-height: 1.05; }
.r-score { font-weight: 800; font-size: 64px; letter-spacing: -0.04em; line-height: 1; margin-top: 6px; }
.r-score span { font-size: 22px; font-weight: 600; color: var(--ink-soft); letter-spacing: 0; margin-left: 4px; }
.r-verdict { font-family: var(--serif); font-style: italic; font-size: 22px; margin: 4px 0 10px; }
.t-vs { width: 100%; padding: 10px 14px; border-radius: 12px; font-size: 15px; margin-bottom: 10px; background: var(--paper-3); }
.t-vs.win { background: var(--good); color: #fff; }
.r-card { width: 100%; max-width: 360px; }
.r-card img { width: 100%; height: auto; display: block; border-radius: 18px; box-shadow: 0 24px 50px -24px rgba(60,44,24,.55); aspect-ratio: 1080 / 760; background: var(--paper-3); }
.r-actions { display: grid; gap: 10px; width: 100%; max-width: 360px; margin-top: 12px; }
.r-global { width: 100%; max-width: 360px; margin-top: 18px; }
.r-wait { color: var(--ink-soft); font-size: 14px; }
.r-rank { font-size: 17px; margin: 0 0 10px; }
.r-bars { display: grid; grid-template-columns: repeat(16, 1fr); gap: 3px; height: 64px; align-items: end; }
.r-bars .b { height: 100%; display: flex; align-items: flex-end; }
.r-bars .b i { width: 100%; border-radius: 3px 3px 0 0; background: var(--rule); }
.r-bars .b.me i { background: var(--ink); }
.r-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-soft); margin-top: 4px; }
.r-stats { display: flex; justify-content: center; gap: 22px; margin-top: 18px; font-size: 12px; color: var(--ink-soft); flex-wrap: wrap; }
.r-stats b { display: block; font-size: 26px; color: var(--ink); font-variant-numeric: tabular-nums; }
.r-next { margin-top: 16px; font-size: 14px; color: var(--ink-soft); }
.r-next b { color: var(--ink); font-variant-numeric: tabular-nums; }
.r-more { display: flex; gap: 18px; justify-content: center; margin-top: 10px; }
.linkish { border: 0; background: none; padding: 12px 4px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 14px; }

/* dialogs */
.tn-dlg { border: 1.5px solid var(--ink); border-radius: 22px; padding: 0; width: min(440px, calc(100vw - 24px)); max-height: 86dvh; background: var(--paper-2); color: var(--ink); }
.tn-dlg::backdrop { background: rgba(30,27,23,.35); }
.tn-dlg-in { padding: 20px 20px 22px; position: relative; }
.tn-dlg h2 { font-family: var(--serif); font-weight: 400; font-size: 34px; margin: 0 0 12px; }
.d-x { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: none; font-size: 18px; cursor: pointer; border-radius: 12px; }
.d-steps { padding-left: 20px; margin: 0; line-height: 1.5; }
.d-steps li { margin-bottom: 8px; }
.d-fine { font-size: 13px; color: var(--ink-soft); }
.d-arch { display: grid; gap: 6px; }
.d-day { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border: 1px solid var(--rule); border-radius: 14px; background: var(--paper); cursor: pointer; text-align: left; min-height: 52px; }
.d-day:hover { border-color: var(--ink); }
.d-sw { display: flex; border-radius: 8px; overflow: hidden; flex: none; }
.d-sw i { width: 14px; height: 34px; }
.d-l { flex: 1; display: flex; flex-direction: column; }
.d-l small { color: var(--ink-soft); font-size: 12px; }
.d-r { font-weight: 700; font-size: 14px; }
.d-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--rule); cursor: pointer; }
.d-row span { flex: 1; }
.d-row small { display: block; color: var(--ink-soft); font-size: 13px; margin-top: 2px; }
.d-row input { width: 24px; height: 24px; accent-color: var(--ink); }

/* about (below the game; for search and first-time visitors) */
.tn-about { max-width: 640px; margin: 0 auto; padding: 40px 20px 60px; border-top: 1px solid var(--rule); line-height: 1.6; }
.tn-about h2 { font-family: var(--serif); font-weight: 400; font-size: 36px; margin: 0 0 8px; }
.tn-about h3 { font-size: 16px; margin: 0 0 4px; }
.tn-about p { margin: 0 0 14px; max-width: 62ch; }
.tn-cols { display: grid; gap: 16px; margin: 20px 0 34px; }
@media (min-width: 640px) { .tn-cols { grid-template-columns: repeat(3, 1fr); } }
.tn-about details { border-top: 1px solid var(--rule); padding: 12px 0; }
.tn-about summary { font-weight: 700; cursor: pointer; min-height: 28px; }
.tn-about details p { margin: 8px 0 0; }
.tn-made { margin-top: 30px !important; font-size: 13px; color: var(--ink-soft); }
.tn-made a { color: inherit; }

@media (max-height: 700px) {
  .t-swwrap { width: clamp(170px, calc(100dvh - 436px), min(64vw, 260px)); margin-top: 12px; }
  .t-name { font-size: 24px; margin-top: 4px; }
  .t-pct { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .t-help { animation: none; }
  .t-ring .fg, .t-sheet, .t-half { transition: none; }
  .t-stars .on { animation: none; }
}
/* replay video */
.r-card video { width: 100%; height: auto; display: block; border-radius: 18px; box-shadow: 0 24px 50px -24px rgba(60,44,24,.55); aspect-ratio: 1080 / 1920; background: var(--paper-3); }
.r-vbtn { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; }
.r-vp { display: inline-block; width: 70px; height: 6px; border-radius: 3px; background: var(--rule); overflow: hidden; }
.r-vp i { display: block; height: 100%; width: 0; background: var(--ink); }
.r-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.r-row .t-btn[hidden] { display: none; }
.r-row:has(.t-btn[hidden]) { grid-template-columns: 1fr; }
.r-card video { aspect-ratio: 1080 / 1920; max-height: 70vh; width: auto; margin: 0 auto; }
.r-xg { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; font-size: 14px; color: var(--ink-soft); }
.r-xg span { width: 100%; text-align: center; }
.r-xg a { padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--ink); color: var(--ink); text-decoration: none; font-weight: 700; }
/* share: big post button + one tap per app; leaderboard + more games (shared kp.css styles, softened for Tint) */
.r-post { min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-size: 19px; }
.r-post small { font-size: 12.5px; font-weight: 600; opacity: .7; }
/* E54: emoji-grid share card, first full-width button under the verdict */
.r-sharecard { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; margin: 12px 0 0; padding: 14px 16px 12px; border: 0; border-radius: 18px;
  background: var(--ink); color: var(--paper); font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.r-sharecard:active { transform: scale(.98); }
.r-sc-k { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; opacity: .7; }
.r-sc-g { display: flex; gap: 6px; width: 100%; max-width: 320px; margin: 4px 0 2px; }
.r-sc-g i { flex: 1; height: 44px; border-radius: 8px; font-style: normal; font-size: 10px; letter-spacing: 1px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.55);
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 4px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.r-sc-s { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.r-sc-b { margin-top: 6px; width: 100%; padding: 12px 10px; border-radius: 12px; background: var(--paper); color: var(--ink); font-size: 18px; }
.r-sc-b i { font-style: normal; }
.tn .kp-ib { border-width: 1.5px; box-shadow: none; border-radius: 20px; margin-top: 16px; }
.tn .kp-ib-tabs button { border-width: 1.5px; }
.tn .kp-cg { margin-top: 18px; }
.tn .kp-cg-card { border-width: 1.5px; box-shadow: none; }
.tn .kp-soc i { border-width: 1.5px; box-shadow: none; }
.tn .kp-ib h3, .tn .kp-cg h3 { font-family: "Instrument Serif", serif; font-weight: 400; font-style: italic; font-size: 28px; letter-spacing: -.01em; }
/* leaderboard in the dialog: one panel, not a card inside a card; the close button keeps its own corner */
.tn-dlg #dlgBoard.kp-ib { border: 0; box-shadow: none; background: none; padding: 0; max-width: none; border-radius: 0; }
.tn-dlg #dlgBoard .kp-ib-head { margin: 0 44px 12px 0; row-gap: 10px; }
.tn-dlg #dlgBoard h3 { font-family: var(--serif); font-weight: 400; font-size: 34px; letter-spacing: 0; line-height: 1.05; }
.tn-dlg #dlgBoard .kp-ib-tabs button { border-width: 1.5px; }
.tn-dlg-in:focus { outline: none; }

/* reply to the friend who challenged you */
.t-reply { display: block; margin: 10px auto 0; padding: 9px 16px; border-radius: 999px; border: 0; background: var(--ink); color: var(--paper);
  font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.t-vs.win .t-reply { background: #fff; color: var(--good); }
.t-reply:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
/* come back tomorrow: streak + countdown in one card */
.t-tmr { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; width: 100%; max-width: 360px; margin: 18px auto 0; padding: 14px 16px;
  border-radius: 18px; border: 2px solid var(--ink); background: var(--paper); box-shadow: 4px 4px 0 var(--ink); text-align: left; }
.t-tmr-s { display: flex; flex-direction: column; align-items: center; padding-right: 14px; border-right: 2px dashed var(--ink); }
.t-tmr-s b { font-size: 28px; line-height: 1; }
.t-tmr-s span { font-size: 12px; font-weight: 700; }
.t-tmr-t { display: flex; flex-direction: column; gap: 2px; }
.t-tmr-t span { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.t-tmr-t b { font-size: 26px; line-height: 1.05; font-variant-numeric: tabular-nums; color: var(--ink); }
.t-tmr-t small { font-size: 12px; color: var(--ink-soft); }
.t-tmr-t small.t-tmr-day { font-size: 14px; font-weight: 800; color: var(--ink); }
/* E16: "tomorrow: <color name>" + the 9am reminder, a full-width row under the streak and countdown */
.t-tmr-n { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 10px; padding-top: 10px; border-top: 2px dashed var(--ink); }
.t-tmr-n span { font-size: 13px; font-weight: 700; color: var(--ink-soft); min-width: 0; }
.t-tmr-n span b { color: var(--ink); font-style: italic; }
.t-rem { flex: none; min-height: 36px; padding: 0 12px; border-radius: 99px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink);
  font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; box-shadow: 2px 2px 0 var(--ink); touch-action: manipulation; }
.t-rem:active { transform: translate(2px, 2px); box-shadow: none; }
.t-rem:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* intro: "Tint #10" pops in over the paper, then the board boots up underneath (tint.js playIntro) */
.t-intro { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; cursor: pointer;
  background: radial-gradient(90% 55% at 0% 0%, var(--wash) 0%, transparent 70%), radial-gradient(80% 50% at 100% 30%, var(--wash-2) 0%, transparent 70%), var(--paper); }
.ti-word { display: flex; align-items: baseline; gap: 2px; font-family: var(--serif); font-style: italic; font-size: 104px; line-height: 1; letter-spacing: -0.01em; }
.ti-word span { display: inline-block; }
.ti-word b { font-family: var(--sans); font-style: normal; font-weight: 800; font-size: 22px; margin-left: 10px; padding: 4px 11px; border-radius: 999px; background: var(--ink); color: var(--paper); letter-spacing: 0; transform-origin: left center; align-self: center; display: inline-block; }
.ti-dots { display: flex; gap: 8px; }
.ti-dots i { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 -2px 0 rgba(0,0,0,.12), inset 0 0 0 1px rgba(0,0,0,.08); display: block; }
.ti-sub { margin: 0; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--ink-soft); }
.tint.t-fadein { animation: tnfade .3s ease-out; }
@keyframes tnfade { from { opacity: 0; } }

/* results reveal: rows stamp in, the score counts up (tint.js revealResults) */
.t-reveal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 16px; cursor: pointer;
  background: radial-gradient(90% 55% at 0% 0%, var(--wash) 0%, transparent 70%), radial-gradient(80% 50% at 100% 30%, var(--wash-2) 0%, transparent 70%), var(--paper); }
.tr-in { width: 100%; max-width: 340px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.tr-k { font-size: 14px; font-weight: 700; color: var(--ink-soft); margin-bottom: 12px; }
.tr-rows { width: 100%; display: grid; gap: 6px; }
.tr-row { display: flex; align-items: center; justify-content: space-between; height: 54px; padding: 0 16px; border-radius: 14px; box-shadow: 0 10px 22px -14px rgba(60,44,24,.6), inset 0 0 0 1px rgba(0,0,0,.05); }
.tr-row em { font-family: var(--serif); font-size: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-row b { font-size: 18px; letter-spacing: 2px; flex: none; }
.tr-row b span { display: inline-block; }
.tr-row b .off { opacity: .3; }
.tr-score { margin-top: 18px; font-weight: 800; font-size: 84px; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.tr-score small { font-size: 28px; font-weight: 600; color: var(--ink-soft); letter-spacing: 0; margin-left: 4px; }
.tr-v { margin: 8px 0 0; font-family: var(--serif); font-style: italic; font-size: 26px; }

/* the results layout settles in top to bottom */
.t-results.t-in > * { animation: tnup .42s cubic-bezier(.2,.8,.2,1) backwards; }
.t-results.t-in > :nth-child(2) { animation-delay: .05s; }
.t-results.t-in > :nth-child(3) { animation-delay: .1s; }
.t-results.t-in > :nth-child(4) { animation-delay: .15s; }
.t-results.t-in > :nth-child(5) { animation-delay: .2s; }
.t-results.t-in > :nth-child(n+6) { animation-delay: .25s; }
.t-results.t-in .r-card img { animation: tncard .5s cubic-bezier(.2,1.3,.4,1) .08s backwards; }
@keyframes tnup { from { opacity: 0; transform: translateY(12px); } }
@keyframes tncard { from { transform: scale(.9) rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) {
  .t-results.t-in > *, .t-results.t-in .r-card img { animation: tnfade .3s ease-out backwards; }
}

/* ---------- motion: swirl, shine, idle breathing, springy dialogs ---------- */
/* a drop lands: its paint swirls into the mix half while the half blends to the new color */
.t-swirl { position: absolute; left: 50%; top: 50%; width: 170%; aspect-ratio: 1; margin: -85% 0 0 -85%; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, var(--c), transparent 22%, var(--c) 34%, transparent 55%, var(--c) 68%, transparent 88%, var(--c));
  -webkit-mask: radial-gradient(closest-side, #000 30%, transparent 100%); mask: radial-gradient(closest-side, #000 30%, transparent 100%); opacity: 0; will-change: transform, opacity; }
/* the round seals: a band of light sweeps across both halves */
.t-shine { position: absolute; inset: -10% -30%; pointer-events: none; opacity: 0; z-index: 1;
  background: linear-gradient(90deg, transparent 30%, rgba(255,255,255,.0) 36%, rgba(255,255,255,.55) 50%, rgba(255,255,255,0) 64%, transparent 70%); }
/* idle: the glow breathes, the cans' paint glints, until the first touch */
.t-glow { will-change: opacity; }
.tint.idle .t-glow { animation: tnbreathe 3.4s ease-in-out infinite; }
@keyframes tnbreathe { 0%, 100% { opacity: .4; } 50% { opacity: .66; } }
.t-can .can-gleam { transform-box: fill-box; transform-origin: center; }
.tint.idle .t-can .can-gleam { animation: tnglint 3s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .32s); }
@keyframes tnglint { 0%, 100% { transform: none; opacity: .85; } 45% { transform: translateX(5px) scaleX(1.15); opacity: .25; } 60% { opacity: 1; } }
.r-bars .b i { transform-origin: 50% 100%; }
.t-tmr-t b i { will-change: transform; }
.t-reveal, .t-intro { overflow: hidden; }
/* dialogs open with a quick spring */
.tn-dlg[open] { animation: tndlg .34s cubic-bezier(.2,1.35,.4,1); }
.tn-dlg[open]::backdrop { animation: tnfade .2s ease-out; }
@keyframes tndlg { from { opacity: 0; transform: translateY(18px) scale(.93); } }
@media (prefers-reduced-motion: reduce) {
  .tint.idle .t-glow, .tint.idle .t-can .can-gleam { animation: none; }
  .t-sheet, .t-sheet.show, .t-btn { transition: opacity .15s; }
  .t-sheet { transform: none; }
  .tn-dlg[open] { animation: tnfade .2s ease-out; }
  .t-btn:active:not(:disabled) { transform: none; }
}
/* exit ✕ (shared/kp.css .kp-exit) sits left of the wordmark */
.tn-left { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
@media (max-width: 380px) { .tn-left { gap: 8px; } }
/* E14: precise accuracy + "about you" line in the results head */
.r-acc { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 4px 10px; margin: -2px 0 2px; }
.r-acc b { font-weight: 800; font-size: 52px; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.r-acc span { font-size: 15px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.r-you { margin: 4px 0 12px; font-size: 16px; font-weight: 600; }

/* E20: color streak pill (top bar) + its little info sheet */
.kp-cs { flex: none; height: 26px; padding: 0 7px; border: 1.5px solid var(--ink); border-radius: 99px; background: var(--paper-2); color: var(--ink);
  font: 700 13px/1 var(--sans); font-variant-numeric: tabular-nums; cursor: pointer; display: inline-flex; align-items: center; position: relative; white-space: nowrap; }
.kp-cs::before { content: ""; position: absolute; inset: -8px -2px; } /* 44px tap target */
.kp-cs[hidden] { display: none; }
/* room for the pill on a phone: a slightly smaller wordmark while it shows */
.tn-top:has(.kp-cs:not([hidden])) .tn-left { gap: 6px; }
@media (max-width: 440px) { .tn-top:has(.kp-cs:not([hidden])) .tn-logo #tnWord { font-size: 34px; } }
@media (max-width: 384px) { .tn-top:has(.kp-cs:not([hidden])) .tn-logo #tnWord { font-size: 31px; } .tn-top:has(.kp-cs:not([hidden])) .tn-tool { min-width: 29px; } .kp-cs { padding: 0 5px; } }
@media (max-width: 370px) { .tn-top:has(.kp-cs:not([hidden])) .tn-logo #tnWord { font-size: 29px; } .tn-top:has(.kp-cs:not([hidden])) .tn-logo b { font-size: 13px; } .tn-top:has(.kp-cs:not([hidden])) .tn-left { gap: 4px; } }
@media (max-width: 340px) { .kp-cs { display: none; } } /* the smallest phones: the bar is already full */
.kp-toast.kp-cs-toast { background: var(--ink); color: var(--paper-2); }
.kp-cs-sheet { position: fixed; z-index: 60; width: min(280px, calc(100vw - 24px)); box-sizing: border-box; padding: 12px 14px; border: 1.5px solid var(--ink); border-radius: 16px;
  background: var(--paper-2); color: var(--ink); box-shadow: 0 10px 28px rgba(30,27,23,.18); display: flex; flex-direction: column; gap: 4px; font-family: var(--sans); }
.kp-cs-sheet b { font-size: 16px; }
.kp-cs-sheet span { font-size: 14px; line-height: 1.35; }
.kp-cs-sheet small { font-size: 12px; color: var(--ink-soft); line-height: 1.35; }

/* E39: labeled leaderboard chip under the top bar (was a bare trophy among six tools), the results button, and the dialog note */
.tn-lbrow { position: relative; z-index: 1; display: flex; min-height: 34px; padding: 4px max(16px, calc(50% - 244px)) 0; }
.tn-lbrow .kp-lbchip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 32px; padding: 0 12px 0 10px; border: 1.5px solid var(--ink); border-radius: 99px;
  background: var(--paper-2); color: var(--ink); font: 700 14px/1 var(--sans); cursor: pointer; white-space: nowrap; position: relative; touch-action: manipulation; }
.tn-lbrow .kp-lbchip::before { content: ""; position: absolute; inset: -6px -2px; } /* 44px tap target */
.tn-lbrow .kp-lbchip:hover { background: #fff; }
.tn-lbrow .kp-lbchip[hidden] { display: none; }
.kp-lbchip-t { display: inline-flex; align-items: center; gap: 5px; }
.kp-lbchip-t svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tn-lbrow .kp-lbchip-h { font-weight: 600; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tn-lbrow .kp-lbchip-h::before { content: "· "; }
.tn-lbrow .kp-lbchip-h[hidden] { display: none; }
.tn-lbrow .kp-lbchip-go { font-family: var(--serif); font-size: 20px; line-height: 0; color: var(--ink-soft); }
.r-seelb { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; min-height: 58px; }
.r-seelb small { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.r-seelb[hidden] { display: none; }
#rBoard { scroll-margin-top: 72px; }
#rBoard.kp-flash { animation: tnlbflash 1.2s ease-out; }
@keyframes tnlbflash { 0%, 30% { box-shadow: 0 0 0 5px rgba(30,27,23,.18); } 100% { box-shadow: 0 0 0 0 rgba(30,27,23,0); } }
.d-lbnote { margin: -2px 0 12px; font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.2; color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) { #rBoard.kp-flash { animation: none; } }
/* the chip row takes ~38px: the paint circle and the stage give that back so the cans and Lock in stay on screen */
.tn-lbrow:has(.kp-lbchip[hidden]) { display: none; }
.tn-stage { min-height: min(calc(100dvh - 98px), 860px); }
.t-swwrap { width: clamp(200px, calc(100dvh - 554px), min(80vw, 360px)); }
@media (max-height: 700px) { .t-swwrap { width: clamp(170px, calc(100dvh - 474px), min(64vw, 260px)); } }

/* E38 quick start (in-app browsers, arm b): one big line over the paint cans, pointing down at them, and a soft pulse on the cans */
.t-quick { position: absolute; left: 0; right: 0; bottom: calc(100% - 4px); margin: 0 auto; width: max-content; max-width: calc(100% - 8px); z-index: 5;
  padding: 10px 16px; border-radius: 14px; background: var(--ink); color: var(--paper); font-size: 18px; font-weight: 600; line-height: 1.25; text-align: center;
  box-shadow: 0 10px 24px -10px rgba(30,27,23,.55); pointer-events: none; animation: tnup .3s ease-out; }
.t-quick b { font-weight: 800; }
.t-quick::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -9px; border: 9px solid transparent; border-top-color: var(--ink); border-bottom: 0; }
.tint.quick .t-can { animation: tnquick 1.5s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .12s); }
@keyframes tnquick { 0%, 100% { transform: none; } 45% { transform: scale(1.07) translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .tint.quick .t-can, .t-quick { animation: none; } }

/* E81 color tools footer: plain crawlable links below the about section */
.kp-tools { margin: 28px 0 8px; }
.kp-tools h2 { font-size: 15px !important; margin: 0 0 6px !important; }
.kp-tools ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 12px; }
.kp-tools li { margin: 0; }
.kp-tools a { display: flex; align-items: center; min-height: 44px; font-size: 14px; color: inherit; opacity: .8; }
