/* Samesies
   The page is a viewing booth: a neutral grey surround, the way colour is judged in print and paint,
   so every colour reads true and nothing competes with it. The only colour anywhere comes from people.
   Things you touch are soft raised keys; the day itself is a colour chip, and yours is laid on top. */

/* Funnel in two parts: basic Latin, then the extended Latin most European languages and Turkish need.
   Each phone only downloads the part its text uses. Greek, Cyrillic and other scripts use the phone's own font. */
@font-face { font-family: "Funnel Display"; src: url("/fonts/funnel-display-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Funnel Display"; src: url("/fonts/funnel-display-latin-ext-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Funnel Display"; src: url("/fonts/funnel-display-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Funnel Display"; src: url("/fonts/funnel-display-latin-ext-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Funnel Display"; src: url("/fonts/funnel-display-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Funnel Display"; src: url("/fonts/funnel-display-latin-ext-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Funnel Sans"; src: url("/fonts/funnel-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Funnel Sans"; src: url("/fonts/funnel-sans-latin-ext-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Funnel Sans"; src: url("/fonts/funnel-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Funnel Sans"; src: url("/fonts/funnel-sans-latin-ext-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --paper: #ECE7E0;   /* the booth: a soft warm grey surround */
  --ink: #000000;
  --lift1: 44%;       /* panels sit a little lighter than the booth */
  --lift2: 74%;       /* keys sit lighter still */
  --sink: 6%;         /* wells sit darker */
  --edge-hi: rgba(255, 255, 255, .75);
  --edge-lo: rgba(0, 0, 0, .07);
  --art: #000000;     /* the ground every artwork and drawing sits on, in both themes */
  --bg: var(--paper);
  --fg: var(--ink);
  --panel: color-mix(in srgb, var(--paper), #FFFFFF var(--lift1));
  --key: color-mix(in srgb, var(--paper), #FFFFFF var(--lift2));
  --well: color-mix(in srgb, var(--paper), #000000 var(--sink));
  --line: color-mix(in srgb, var(--ink) 11%, transparent);
  --quiet: color-mix(in srgb, var(--ink) 58%, transparent);
  /* Charts are drawn in shades of the day's colour (set from the app); ink until one is set. */
  --c1: var(--ink);
  --c2: color-mix(in srgb, var(--c1) 48%, var(--panel));
  --c3: color-mix(in srgb, var(--c1) 22%, var(--panel));
  --raised: inset 0 1px 0 var(--edge-hi), 0 1px 0 var(--edge-lo), 0 3px 6px -3px rgba(0, 0, 0, .16);
  --pressed: inset 0 2px 5px rgba(0, 0, 0, .2), inset 0 0 0 1px rgba(0, 0, 0, .06);
  --lifted: 0 1px 1px rgba(0, 0, 0, .08), 0 14px 32px -10px rgba(0, 0, 0, .34);
  --r-slab: 30px;
  --r-panel: 24px;
  --r-key: 18px;
  --display: "Funnel Display", "Helvetica Neue", Arial, sans-serif;
  --text: "Funnel Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
/* Vietnamese and Hausa letters aren't in Funnel, and two fonts inside one word looks broken, so these
   use the phone's own font throughout. */
:root:lang(vi), :root:lang(ha) { --display: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --text: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: #201D1B; --ink: #F4F1EC; --lift1: 5%; --lift2: 10%; --sink: 25%; --edge-hi: rgba(255, 255, 255, .06); --edge-lo: rgba(0, 0, 0, .4); color-scheme: dark; }
}
:root[data-theme="dark"], :root[data-skin="ink"] { --paper: #201D1B; --ink: #F4F1EC; --lift1: 5%; --lift2: 10%; --sink: 25%; --edge-hi: rgba(255, 255, 255, .06); --edge-lo: rgba(0, 0, 0, .4); color-scheme: dark; }

/* A page flooded with a colour (the zoom view) takes the light or dark set to match it, whatever the theme. */
:root[data-surface="dark"] { --paper: #201D1B !important; --ink: #F4F1EC !important; --lift1: 5%; --lift2: 10%; --sink: 25%; --edge-hi: rgba(255, 255, 255, .06); --edge-lo: rgba(0, 0, 0, .4); color-scheme: dark; }
:root[data-surface="light"] { --paper: #ECE7E0 !important; --ink: #000000 !important; --lift1: 44%; --lift2: 74%; --sink: 6%; --edge-hi: rgba(255, 255, 255, .75); --edge-lo: rgba(0, 0, 0, .07); color-scheme: light; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.5;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px));
  transition: background-color .6s ease, color .6s ease;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
::selection { background: color-mix(in srgb, var(--fg) 20%, transparent); }

.soft { opacity: .58; }
.hair { border: 0; border-top: 1px solid var(--line); margin: 0; }
.shell { max-width: 500px; margin: 0 auto; }

/* ---------- top: the name, and a dot that turns into the day's colour once you have played ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px 22px; max-width: 500px; margin: 0 auto; }
.mark { font-family: var(--display); font-weight: 700; font-size: 25px; letter-spacing: -0.03em; text-decoration: none; line-height: 1; display: inline-flex; align-items: baseline; gap: 4px; }
.markdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--day, transparent); box-shadow: inset 0 0 0 1.5px var(--day-ring, currentColor); transition: background-color .8s ease, box-shadow .8s ease; }
.toplinks { display: flex; align-items: center; gap: 14px; flex: none; }
.toplink { font-size: 14px; text-decoration: none; opacity: .58; }
.gearlink { display: inline-flex; padding: 4px; margin: -4px; }
.settingslink { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 15px; opacity: .7; }
.toplink[aria-current="page"] { opacity: 1; }

/* ---------- bottom: the sections, within reach of a thumb ---------- */
.tabs {
  position: fixed; z-index: 15; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  width: min(468px, calc(100% - 32px)); display: flex; gap: 2px; padding: 5px;
  border-radius: 999px; background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--fg) 9%, transparent), 0 10px 30px -12px rgba(0, 0, 0, .35);
  color: var(--fg); transition: background-color .6s ease, color .6s ease;
}
.tabs a { flex: 1; text-align: center; text-decoration: none; padding: 10px 6px; border-radius: 999px; font-size: 14px; opacity: .6; transition: background-color .2s ease, opacity .2s ease; }
.tabs a[aria-current="page"] { opacity: 1; font-weight: 500; background: color-mix(in srgb, var(--fg) 9%, transparent); }

/* ---------- type ---------- */
.eyebrow { font-size: 13px; font-weight: 500; color: var(--quiet); letter-spacing: 0; }
.eyebrow::first-letter { text-transform: uppercase; }
.big { font-family: var(--display); font-weight: 500; font-size: clamp(34px, 10vw, 48px); line-height: 1.02; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
.mid { font-family: var(--display); font-weight: 500; font-size: 22px; line-height: 1.12; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
.lead { font-family: var(--display); font-weight: 500; font-size: clamp(24px, 6.8vw, 30px); line-height: 1.12; letter-spacing: -0.022em; margin: 0; text-wrap: balance; }
p { margin: 0; }
.prose { display: flex; flex-direction: column; gap: 14px; max-width: 34em; }
.prose h2 { font-family: var(--display); font-weight: 500; font-size: 22px; letter-spacing: -0.015em; margin: 18px 0 0; line-height: 1.15; }
.small { font-size: 13px; line-height: 1.45; }
.num { font-variant-numeric: tabular-nums; }
.note { font-size: 13px; color: var(--quiet); }
.stack { display: flex; flex-direction: column; gap: 18px; }

/* ---------- steps: a short sequence, so a short progress bar ---------- */
.steps { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin-bottom: 4px; }
.steps button { appearance: none; background: none; border: 0; padding: 11px 0 0; cursor: pointer; text-align: left; font-size: 12px; color: var(--quiet); position: relative; }
.steps button::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 3px; background: var(--well); transition: background-color .3s ease; }
.steps button.done::before { background: color-mix(in srgb, var(--ink) 40%, transparent); }
.steps button[aria-current="step"] { color: var(--ink); }
.steps button[aria-current="step"]::before { background: var(--ink); }

/* ---------- the colour field ---------- */
.fieldwrap { position: relative; }
/* The two picking screens fit a phone without scrolling: everything above the tab bar, with the colour field
   and the number keys taking whatever height is left (svh is the screen with the browser's bars showing). */
.stack.pick { gap: 12px; }
.pick .steps { margin-bottom: 0; }
.pickq { font-size: clamp(28px, 7.8vw, 40px); }
.pick .field { height: clamp(150px, calc(100vh - 440px), 400px); height: clamp(150px, calc(100svh - 440px), 400px); }
.pick .chosen { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; }
.pick .chosen .swatch { width: 40px; height: 40px; border-radius: 12px; }
.pick .cnames { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pick .cnames .mid { font-size: 19px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick .chosen .textbtn { justify-self: end; text-align: right; }
.pick .digits button { aspect-ratio: auto; height: clamp(60px, calc((100vh - 345px) / 3), 112px); height: clamp(60px, calc((100svh - 345px) / 3), 112px); }
.pick #ts:empty { display: none; }

.field { width: 100%; height: min(44vh, 400px); display: block; touch-action: none; cursor: crosshair; border-radius: var(--r-slab); background: var(--well); box-shadow: 0 0 0 1px var(--line); }
.loupe { position: absolute; width: 66px; height: 66px; border-radius: 50%; pointer-events: none; opacity: 0; transform: translate(-50%, calc(-100% - 20px)) scale(.6); transform-origin: 50% 130%; transition: opacity .14s ease, transform .18s cubic-bezier(.2, .9, .3, 1.2); box-shadow: 0 0 0 4px var(--key), var(--lifted); }
.loupe.on { opacity: 1; transform: translate(-50%, calc(-100% - 20px)) scale(1); }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; margin: 0; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 12px; border-radius: 999px; background: var(--track, var(--well)); box-shadow: inset 0 0 0 1px var(--line); }
.range::-moz-range-track { height: 12px; border-radius: 999px; background: var(--track, var(--well)); box-shadow: inset 0 0 0 1px var(--line); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: var(--key); margin-top: -8px; border: 0; box-shadow: var(--raised), 0 0 0 1px var(--line); }
.range::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: var(--key); border: 0; box-shadow: var(--raised), 0 0 0 1px var(--line); }
.rangerow { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; font-size: 13px; color: var(--quiet); }
.chosen { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.swatch { width: 48px; height: 48px; border-radius: 14px; display: block; box-shadow: 0 0 0 1px var(--line); transition: background-color .1s linear; }
.chosen .hex { font-size: 13px; color: var(--quiet); font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* ---------- keys ---------- */
.digits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.digits button {
  appearance: none; border: 0; background: var(--key); border-radius: var(--r-key); box-shadow: var(--raised);
  aspect-ratio: 1.12; font-family: var(--display); font-weight: 300; font-size: clamp(46px, 14vw, 70px); line-height: 1; letter-spacing: -0.03em;
  cursor: pointer; padding: 0 0 .06em; transition: background-color .25s ease, color .25s ease, transform .12s ease, box-shadow .12s ease;
}
.digits button:active { transform: translateY(1px) scale(.985); }
.digits button[aria-checked="true"] { box-shadow: var(--pressed); }

/* ---------- primary action ---------- */
.go {
  appearance: none; border: 0; width: 100%; background: var(--fg); color: var(--bg); border-radius: 999px;
  font-family: var(--display); font-weight: 500; font-size: 19px; letter-spacing: -0.01em; padding: 17px 24px; cursor: pointer;
  display: flex; justify-content: center; align-items: center; gap: 10px; transition: opacity .2s ease, transform .12s ease; position: relative; overflow: hidden; text-decoration: none;
}
.go:active:not(:disabled) { transform: scale(.99); }
.go:disabled { background: color-mix(in srgb, var(--fg) 14%, var(--bg)); color: color-mix(in srgb, var(--fg) 40%, var(--bg)); cursor: default; }
.go svg { width: 20px; height: 20px; flex: none; }
.go.arming::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--arm, currentColor); transform-origin: left; animation: arm 1.2s linear forwards; }
@keyframes arm { from { transform: scaleX(0); } to { transform: scaleX(1); } }
a.go { text-decoration: none; }
.go.small-go { width: auto; flex: 1; font-size: 17px; padding: 14px 20px; }
.textbtn { appearance: none; background: none; border: 0; padding: 4px 0; cursor: pointer; font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.textbtn:hover { text-decoration-color: currentColor; }
.textbtn:disabled { opacity: .3; cursor: default; }
.guesslink { align-self: center; }
.error { font-size: 14px; background: var(--panel); border-radius: 14px; padding: 12px 14px; box-shadow: inset 3px 0 0 var(--ink); }
.actions { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.actions.spread { justify-content: space-between; }

/* ---------- the day as a chip, with yours laid on top ---------- */
.reveal { display: flex; flex-direction: column; gap: 24px; }
.slabwrap { position: relative; }
.slabwrap.withmine { padding-bottom: 40px; }
.slab {
  position: relative; border-radius: var(--r-slab); aspect-ratio: 1 / .94; padding: 20px 22px 18px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto 1fr; box-shadow: var(--lifted);
  transition: background-color .8s ease;
}
.slab .sdate { font-size: 14px; font-weight: 500; opacity: .78; }
.slab .scount { font-size: 14px; opacity: .78; text-align: right; font-variant-numeric: tabular-nums; }
.slab .sname { grid-column: 1 / -1; font-family: var(--display); font-weight: 500; font-size: clamp(26px, 7.4vw, 34px); line-height: 1.05; letter-spacing: -0.025em; margin-top: 6px; }
.slab .snum { grid-column: 2; grid-row: 3; align-self: end; justify-self: end; font-family: var(--display); font-weight: 300; font-size: clamp(150px, 47vw, 228px); line-height: .74; letter-spacing: -0.05em; margin-right: -6px; font-variant-numeric: tabular-nums; }
.mychip {
  position: absolute; left: 16px; bottom: 0; width: 34%; aspect-ratio: 3 / 4; border-radius: 18px; padding: 12px 13px;
  display: flex; flex-direction: column; justify-content: space-between; text-decoration: none;
  box-shadow: 0 0 0 5px var(--bg), var(--lifted); transform: rotate(-4deg);
}
.mychip .mlabel { font-size: 13px; font-weight: 500; opacity: .8; }
.mychip .mnumber { font-family: var(--display); font-weight: 300; font-size: clamp(54px, 16vw, 76px); line-height: .8; letter-spacing: -0.04em; }
.mychip.drop { animation: chipdrop .7s cubic-bezier(.2, .9, .25, 1.12) .35s both; }
@keyframes chipdrop { from { opacity: 0; transform: translate(-14px, -70px) rotate(-16deg); } 60% { opacity: 1; } to { opacity: 1; transform: rotate(-4deg); } }
.headline { display: flex; flex-direction: column; gap: 8px; }
.headline .metaline { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--quiet); }
.headline .metaline span { display: inline-block; }
.headline .metaline span::first-letter, .result .meta::first-letter, .slab .sname::first-letter { text-transform: uppercase; }

/* ---------- panels: grouped facts on a slightly lighter surface ---------- */
.card, .optional { background: var(--panel); border-radius: var(--r-panel); padding: 20px; border: 0; }
.results { display: flex; flex-direction: column; background: var(--panel); border-radius: var(--r-panel); padding: 2px 18px; }
.result, .you { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 4px 14px; padding-block: 16px; border-top: 1px solid var(--line); align-items: baseline; }
.results > :first-child { border-top: 0; }
.result .eyebrow, .you > .eyebrow { padding-top: 2px; }
.result .val { font-family: var(--display); font-weight: 500; font-size: clamp(28px, 8vw, 36px); line-height: 1; letter-spacing: -0.025em; overflow-wrap: anywhere; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.result .val.numeral { font-weight: 300; font-size: clamp(80px, 24vw, 120px); line-height: .8; }
.result .meta { grid-column: 2; font-size: 14px; color: var(--quiet); }
.result.compact .meta { grid-column: 2; color: inherit; font-size: 15px; }
.standout { display: inline-block; align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--twin, var(--ink)) 16%, transparent); font-weight: 500; }
.boldbar { grid-column: 2; position: relative; height: 12px; margin-top: 10px; border-radius: 6px; background: linear-gradient(90deg, var(--lo), var(--hi)); }
.boldbar i { position: absolute; top: 50%; width: 6px; height: 24px; border-radius: 3px; transform: translate(-50%, -50%); background: var(--ink); box-shadow: 0 0 0 2px var(--panel); }
.boldbar i.me { width: 14px; height: 14px; border-radius: 50%; background: var(--panel); border: 3px solid var(--ink); box-shadow: none; }
.boldends { grid-column: 2; display: flex; justify-content: space-between; }
.youtags { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-family: var(--display); font-weight: 500; font-size: 26px; line-height: 1; }
.chip { width: 26px; height: 26px; display: inline-block; border-radius: 8px; box-shadow: 0 0 0 1px var(--line); vertical-align: middle; flex: none; }
.chip.big { width: 44px; height: 44px; border-radius: 12px; }
.daytype { font-family: var(--display); font-weight: 500; font-size: 20px; line-height: 1.15; letter-spacing: -0.015em; }
.daytype a { text-decoration: none; }

.art { width: 100%; aspect-ratio: 1; display: block; background: var(--art); max-width: 100%; border-radius: var(--r-slab); }
.art.small-art { max-width: 240px; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.gallery button { appearance: none; border: 0; padding: 0; background: var(--art); aspect-ratio: 1; cursor: zoom-in; border-radius: 12px; overflow: hidden; }
.gallery canvas { width: 100%; height: 100%; display: block; }

details { background: var(--panel); border-radius: var(--r-panel); padding: 0 18px; }
summary { cursor: pointer; font-size: 15px; font-weight: 500; list-style: none; padding: 16px 0; display: flex; justify-content: space-between; align-items: center; }
summary::after { content: "+"; font-family: var(--display); font-weight: 300; font-size: 24px; line-height: 1; transition: transform .25s ease; }
details[open] summary::after { transform: rotate(45deg); }
summary::-webkit-details-marker { display: none; }
.charts { display: flex; flex-direction: column; gap: 26px; padding: 4px 0 20px; }
.cols { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; align-items: end; height: 110px; position: relative; }
.cols i { display: block; background: var(--c2); min-height: 1px; border-radius: 4px 4px 1px 1px; }
.cols .chance { position: absolute; left: 0; right: 0; border-top: 1px dashed currentColor; opacity: .5; }
.collabels { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; text-align: center; font-family: var(--display); font-weight: 500; font-size: 17px; }
.rows { display: flex; flex-direction: column; gap: 7px; }
.row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 40px; gap: 10px; align-items: center; font-size: 13px; }
.row .t { height: 8px; border-radius: 999px; background: var(--well); overflow: hidden; }
.row .t i { display: block; height: 100%; background: var(--c1); border-radius: 999px; }
.row .p { text-align: right; font-variant-numeric: tabular-nums; }
.ring { width: 100%; max-width: 240px; display: block; margin: 0 auto; }
.hours { display: flex; align-items: flex-end; gap: 2px; height: 46px; border-bottom: 1px solid var(--line); }
.hours i { flex: 1; background: var(--c1); opacity: .85; min-height: 1px; border-radius: 2px 2px 0 0; }
.axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--quiet); font-variant-numeric: tabular-nums; }

/* ---------- optional steps ---------- */
.feelings { display: flex; flex-direction: column; gap: 6px; }
.feelings button { appearance: none; background: var(--key); border: 0; border-radius: 14px; box-shadow: var(--raised); text-align: left; padding: 8px 14px 10px; font-family: var(--display); font-weight: 300; font-size: clamp(30px, 9vw, 40px); line-height: 1.05; cursor: pointer; }
.pad { width: 100%; aspect-ratio: 1; display: block; background: var(--art); touch-action: none; cursor: crosshair; max-width: 100%; border-radius: var(--r-panel); }
.tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.toolset { display: flex; align-items: center; gap: 8px; }
.tool { appearance: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--key); box-shadow: var(--raised); cursor: pointer; display: grid; place-items: center; padding: 0; }
.tool[aria-pressed="true"] { box-shadow: var(--pressed), 0 0 0 2px var(--ink); }
.tool i { display: block; border-radius: 50%; background: currentColor; }
.feelpad {
  position: relative; width: 100%; aspect-ratio: 1; max-width: 100%; border-radius: 18px; touch-action: none; cursor: crosshair; user-select: none; -webkit-user-select: none; overflow: hidden;
  background: linear-gradient(var(--line), var(--line)) center / 1px 100% no-repeat, linear-gradient(var(--line), var(--line)) center / 100% 1px no-repeat, var(--key);
  box-shadow: inset 0 0 0 1px var(--line);
}
.feelpad .fw { position: absolute; transform: translate(-50%, -50%); font-size: 13px; opacity: .45; white-space: nowrap; pointer-events: none; transition: opacity .15s ease, font-size .15s ease; }
.feelpad .fw.on { opacity: 1; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.feelpad .dot { position: absolute; width: 24px; height: 24px; border-radius: 50%; transform: translate(-50%, -50%); background: var(--ink); box-shadow: 0 0 0 4px var(--key), var(--lifted); pointer-events: none; }
.feelpad .axis-l { position: absolute; font-size: 11px; color: var(--quiet); pointer-events: none; }
.axis-top { top: 8px; left: 50%; transform: translateX(-50%); }
.axis-bottom { bottom: 8px; left: 50%; transform: translateX(-50%); }
.axis-left { left: 8px; top: 50%; transform: translateY(-50%) rotate(-90deg); transform-origin: left center; margin-top: 30px; }
.axis-right { right: 8px; top: 50%; transform: translateY(-50%) rotate(90deg); transform-origin: right center; margin-top: 30px; }
.feelmap { grid-column: 2; width: 140px; height: auto; display: block; margin-top: 6px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tiles.t-animal, .tiles.compass { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles.t-season { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile { appearance: none; background: var(--key); border: 0; border-radius: 14px; box-shadow: var(--raised); padding: 12px 6px 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; min-width: 0; transition: box-shadow .12s ease, transform .12s ease; }
.tile:active { transform: scale(.98); }
.tile[aria-pressed="true"] { box-shadow: var(--pressed), 0 0 0 2px var(--ink); }
.tile span { overflow-wrap: anywhere; text-align: center; }
.compass .tile { aspect-ratio: 1; justify-content: center; }
.emoji { line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.bignum, .bigword { width: 100%; font-family: var(--display); font-weight: 300; font-size: 56px; letter-spacing: -0.03em; line-height: 1; padding: 12px 18px 14px; background: var(--key); color: inherit; border: 0; border-radius: var(--r-key); box-shadow: inset 0 0 0 1px var(--line); }
.bigword { font-size: 40px; }
.bignum:focus, .bigword:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink); }
.bignum::placeholder, .bigword::placeholder { color: currentColor; opacity: .3; }
.wildrows { grid-column: 2; margin-top: 10px; }
.wildrows .row { grid-template-columns: minmax(0, 120px) minmax(0, 1fr) 40px; }
.wildrows .row span:first-child { display: flex; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.wildrows .row.mine span:first-child { font-weight: 600; }

/* ---------- lists ---------- */
.grouplinks, .grouplist { display: flex; flex-direction: column; background: var(--panel); border-radius: var(--r-panel); padding: 0 18px; }
.grouplink { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 0; border-top: 1px solid var(--line); text-decoration: none; font-family: var(--display); font-weight: 500; font-size: 20px; letter-spacing: -0.015em; line-height: 1.15; }
.grouplinks > :first-child, .grouplist > :first-child { border-top: 0; }
.grouplink .small { font-family: var(--text); font-weight: 400; letter-spacing: 0; text-align: right; }
.guesscard { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: baseline; padding: 16px 18px; background: var(--panel); border-radius: var(--r-panel); text-decoration: none; }
.guesscard .small { grid-column: 1 / -1; }
.gpts { font-family: var(--display); font-weight: 500; font-size: 22px; letter-spacing: -0.02em; line-height: 1; }

.daynav { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.memberrows { display: flex; flex-direction: column; background: var(--panel); border-radius: var(--r-panel); padding: 0 16px; }
.memberrow { display: grid; grid-template-columns: 26px minmax(0, 1fr) 36px minmax(0, 1.2fr) 36px auto; gap: 10px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.memberrows > :first-child { border-top: 0; }
.memberrow .mname { font-weight: 500; overflow-wrap: anywhere; }
.memberrow .mnum { font-family: var(--display); font-weight: 500; font-size: 24px; line-height: 1; text-align: center; }
.memberrow .mextra { display: flex; align-items: center; gap: 4px; overflow-wrap: anywhere; }
.memberrow .mscore { text-align: right; font-weight: 500; }
@media (max-width: 420px) { .memberrow { grid-template-columns: 22px minmax(0, 1fr) 30px 34px; } .memberrow .mextra { grid-column: 2 / -1; grid-row: 2; } .memberrow > :last-child { grid-column: 2 / -1; justify-self: start; } }
.table { display: flex; flex-direction: column; font-variant-numeric: tabular-nums; background: var(--panel); border-radius: var(--r-panel); padding: 2px 16px; }
.tr { display: grid; grid-template-columns: 28px minmax(0, 1fr) 60px 48px; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); align-items: baseline; }
.table > :first-child { border-top: 0; }
.tr.th { font-size: 12px; color: var(--quiet); padding-block: 12px 8px; }
.tr.unq { opacity: .5; }
.tr .num { text-align: right; }
.awards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.awards div { display: flex; flex-direction: column; gap: 4px; background: var(--key); border-radius: var(--r-key); padding: 14px; box-shadow: var(--raised); }
.awards b { font-family: var(--display); font-weight: 500; font-size: 22px; letter-spacing: -0.02em; line-height: 1.05; }

/* ---------- overlay and sheet ---------- */
.overlay { position: fixed; inset: 0; z-index: 20; background: color-mix(in srgb, var(--art) 92%, transparent); display: grid; place-items: center; padding: max(20px, env(safe-area-inset-top, 0px)) var(--gutter-r) max(20px, env(safe-area-inset-bottom, 0px)) var(--gutter); color: #F2F2F0; }
.overlay .inner { width: min(100%, 480px); display: flex; flex-direction: column; gap: 14px; }
.overlay canvas { width: 100%; aspect-ratio: 1; display: block; background: var(--art); border-radius: var(--r-panel); }
.overlay .bar { display: flex; justify-content: space-between; gap: 16px; }
.sheet { position: fixed; inset: 0; z-index: 25; background: color-mix(in srgb, #000 40%, transparent); display: flex; align-items: flex-end; justify-content: center; }
.sheetbody { background: var(--paper); color: var(--ink); width: min(100%, 540px); border-radius: var(--r-slab) var(--r-slab) 0 0; padding: 26px max(20px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 14px; animation: rise .4s cubic-bezier(.2, .8, .2, 1); position: relative; }
.sheetbody::before { content: ""; position: absolute; top: 9px; left: 50%; width: 38px; height: 5px; margin-left: -19px; border-radius: 999px; background: var(--well); }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- days ---------- */
.daysgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
.daytile { text-decoration: none; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.daytile canvas { width: 100%; aspect-ratio: 1; display: block; background: var(--art); border-radius: 20px; }
.daytile .cap { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; }
.daytile .cap b { font-family: var(--display); font-weight: 500; font-size: 20px; letter-spacing: -0.02em; line-height: 1; }

/* ---------- you ---------- */
.quilt { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.quilt a { aspect-ratio: 1; display: grid; place-items: center; text-decoration: none; font-family: var(--display); font-weight: 500; font-size: clamp(16px, 4.6vw, 22px); line-height: 1; border-radius: 9px; padding-bottom: .06em; }
.keybox { font-family: var(--text); font-size: 13px; letter-spacing: .03em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; padding: 13px 15px; background: var(--well); border-radius: 14px; user-select: all; }
.input { width: 100%; font: inherit; font-size: 16px; padding: 13px 16px; background: var(--key); color: inherit; border: 0; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink); }
.input::placeholder { color: var(--quiet); }
.typehero { display: flex; flex-direction: column; gap: 6px; }
.types { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.typecard { background: var(--key); border-radius: var(--r-key); padding: 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; box-shadow: var(--raised); }
.typename { font-family: var(--display); font-weight: 500; font-size: 22px; letter-spacing: -0.02em; line-height: 1.05; }
.shopitem { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.dayrow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.dotcount { font-family: var(--display); font-weight: 700; font-size: 32px; letter-spacing: -0.03em; line-height: 1; }
.empty { padding-block: 40px; display: flex; flex-direction: column; gap: 14px; }
.loading { padding-block: 60px; color: var(--quiet); font-size: 14px; }

/* ---------- explore ---------- */
.xfilters { display: flex; flex-direction: column; gap: 12px; }
.xdate { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; text-align: center; font-weight: 500; font-size: 15px; }
.xstep { appearance: none; border: 0; background: var(--key); box-shadow: var(--raised); width: 40px; height: 40px; border-radius: 50%; font-family: var(--display); font-size: 22px; line-height: 1; cursor: pointer; padding: 0 0 3px; }
.xstep:disabled { opacity: .3; cursor: default; }
.xchips { display: flex; gap: 8px; flex-wrap: wrap; }
.xchip { appearance: none; border: 0; background: var(--key); box-shadow: var(--raised); border-radius: 999px; padding: 9px 16px 9px 16px; font-size: 14px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.xchip:not(#xClear)::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .6; }
.xchip.on { background: var(--ink); color: var(--paper); box-shadow: none; }
#xClear { background: none; box-shadow: none; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); padding-inline: 4px; }
.xslab { aspect-ratio: auto; min-height: 220px; }
.xslab .snum { font-size: clamp(110px, 32vw, 160px); }
.xcard { background: var(--panel); border-radius: var(--r-panel); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.xline { font-family: var(--display); font-weight: 500; font-size: 19px; line-height: 1.2; letter-spacing: -0.015em; }
.trend { display: flex; gap: 4px; height: 72px; }
.trend.dense { gap: 0; height: 56px; border-radius: 10px; overflow: hidden; }
.tbar { appearance: none; border: 0; padding: 0 0 6px; flex: 1; min-width: 0; border-radius: 8px; display: flex; align-items: flex-end; justify-content: center; font-family: var(--display); font-size: 15px; cursor: pointer; }
.trend.dense .tbar { border-radius: 0; }
.tbar.empty { background: var(--well); cursor: default; }
.huebars { display: flex; align-items: flex-end; gap: 2px; height: 64px; }
.huebars i { flex: 1; border-radius: 3px 3px 1px 1px; }
.numbars { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; height: 110px; position: relative; }
.numbars .chance { position: absolute; left: 0; right: 0; border-top: 1px dashed currentColor; opacity: .45; }
.nb { position: relative; display: flex; align-items: flex-end; }
.nb i { display: block; width: 100%; background: var(--c2); border-radius: 5px 5px 2px 2px; min-height: 2px; }
.nb.peak i { background: var(--c1); }
.nb b { position: absolute; left: -2px; right: -2px; height: 2px; background: var(--ink); border-radius: 2px; box-shadow: 0 0 0 1.5px var(--panel); }
.prows { display: flex; flex-direction: column; gap: 2px; }
.prow { appearance: none; border: 0; background: none; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 48px; gap: 10px; align-items: center; padding: 7px 0; font-size: 14px; text-align: left; cursor: pointer; border-radius: 8px; }
.prow .t { height: 8px; border-radius: 999px; background: var(--well); overflow: hidden; }
.prow .t i { display: block; height: 100%; background: var(--c1); border-radius: 999px; }
.prow .p { text-align: right; font-variant-numeric: tabular-nums; color: var(--quiet); }
.heatwrap { display: grid; grid-template-columns: 1fr; gap: 6px; font-size: 11px; color: var(--quiet); text-align: center; }
.heat { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; aspect-ratio: 1.6; }
.heat i { background: var(--c1); border-radius: 5px; }
.hx { display: flex; justify-content: space-between; }
.cmpchips { display: grid; grid-template-columns: 44px 1fr 44px 1fr; gap: 10px; align-items: center; }
.cmplist { margin: 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.lightbars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; height: 100px; }
.lightbars div { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.lightbars i { display: block; background: var(--c2); border-radius: 5px 5px 2px 2px; }
.lightbars b { display: block; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line); }
.explorelink { grid-template-columns: 1fr; gap: 4px; }
.sopts { display: flex; flex-direction: column; gap: 6px; }
.sopt { appearance: none; border: 0; background: var(--key); box-shadow: var(--raised); border-radius: 14px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 15px; cursor: pointer; text-align: left; }
.sopt.on { box-shadow: 0 0 0 2px var(--ink); }
.sopt:disabled { opacity: .45; cursor: default; }
.sheetbody { max-height: 88vh; overflow-y: auto; }
.switches { display: flex; flex-direction: column; }
.switchrow { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.switchrow > span { display: flex; flex-direction: column; gap: 2px; }
.switchrow b { font-weight: 500; }
.switch { -webkit-appearance: none; appearance: none; flex: none; width: 50px; height: 30px; border-radius: 999px; background: var(--well); position: relative; cursor: pointer; transition: background-color .2s ease; margin: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--key); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s cubic-bezier(.3, .7, .3, 1.2); }
.switch:checked { background: var(--ink); }
.switch:checked::after { transform: translateX(20px); background: var(--paper); }

/* ---------- samesies moment, invite, tomorrow's guess ---------- */
.samesies { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; background: var(--panel); border-radius: var(--r-panel); padding: 16px 18px; }
.samesies .mid { font-size: 24px; }
.sschips { display: flex; padding-right: 4px; }
.sschips i { width: 40px; height: 52px; border-radius: 10px; flex: none; display: flex; align-items: flex-end; padding: 0 0 4px 6px; font-style: normal; font-family: var(--display); font-weight: 300; font-size: 22px; line-height: 1; box-shadow: 0 0 0 3px var(--panel), 0 4px 10px -4px rgba(0, 0, 0, .3); position: relative; }
.samesies.alone .sschips i { box-shadow: 0 0 0 3px var(--panel), 0 4px 10px -4px rgba(0, 0, 0, .3); }
.backbtn { align-self: flex-start; display: inline-block; margin-top: 18px; }
.prose .titlerow h1 { margin: 0; }
.titlerow { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.closex { flex: none; width: 40px; height: 40px; margin-top: 4px; border-radius: 50%; border: 0; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); cursor: pointer; }
.closex:hover { background: color-mix(in srgb, var(--ink) 14%, transparent); }
.nomrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.namedgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.nswatch { border: 0; border-radius: 10px; min-height: 52px; padding: 6px; font: 500 11.5px/1.2 var(--text); cursor: pointer; text-align: center; overflow-wrap: anywhere; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.mcal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.mcal > * { aspect-ratio: 1; border-radius: 10px; display: flex; align-items: center; justify-content: center; text-decoration: none; font: 300 clamp(16px, 5vw, 24px)/1 var(--display); }
.mcal .blank { background: color-mix(in srgb, var(--ink) 5%, transparent); color: var(--quiet); font: 400 11px/1 var(--text); }
.collect { display: flex; flex-wrap: wrap; gap: 6px; }
.cdot { width: 28px; height: 28px; border-radius: 8px; box-shadow: inset 0 0 0 1.5px var(--line); }
.cnum { min-width: 28px; height: 28px; padding: 0 6px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font: 500 13px/1 var(--text); font-style: normal; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--quiet); }
.cnum.on { background: var(--ink); color: var(--paper); box-shadow: none; }
.plusteaser { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; width: 100%; border: 1px dashed var(--line); background: transparent; color: inherit; border-radius: var(--r-panel); padding: 16px 18px; cursor: pointer; font: inherit; }
.quiltmore { aspect-ratio: 1; border: 1px dashed var(--line); background: transparent; color: inherit; border-radius: 8px; font: 500 13px/1 var(--text); cursor: pointer; }
.seasonhead { display: flex; align-items: center; gap: 12px; }
.gthemes { display: flex; flex-wrap: wrap; gap: 10px; }
.gtheme { width: 40px; height: 40px; border-radius: 12px; border: 0; cursor: pointer; box-shadow: 0 0 0 1px var(--line); }
.gtheme[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--panel), 0 0 0 5px var(--ink); }
.gtheme.none { background: repeating-linear-gradient(45deg, transparent 0 6px, var(--line) 6px 8px); }
.planpick.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pwtitle { font-size: clamp(28px, 8vw, 36px); }
.startgroup { display: flex; flex-direction: column; gap: 14px; background: var(--panel); border-radius: var(--r-panel); padding: 20px; }
.startgroup .go { align-self: stretch; }
.invitecard { display: flex; flex-direction: column; gap: 14px; background: var(--ink); color: var(--paper); border-radius: var(--r-panel); padding: 20px; text-decoration: none; }
.invitecard .go { background: var(--paper); color: var(--ink); align-self: flex-start; flex: none; }
.tomorrow { background: var(--panel); border-radius: var(--r-panel); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.tnums, .tfams { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 5px; }
.tnums button { appearance: none; border: 0; background: var(--key); box-shadow: var(--raised); border-radius: 10px; aspect-ratio: 1; font-family: var(--display); font-size: 20px; cursor: pointer; padding: 0; }
.tnums button[aria-checked="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.tfams button { appearance: none; border: 0; border-radius: 50%; aspect-ratio: 1; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.tfams button[aria-checked="true"] { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--ink); }
.tomorrow .go { align-self: flex-start; }
.artcap { text-align: center; }

/* ---------- welcome and unlocks ---------- */
.welcome { display: flex; flex-direction: column; gap: 18px; padding-top: 6px; }
.wchips { position: relative; height: 240px; margin-bottom: 8px; }
.wworld, .wyou { position: absolute; display: flex; align-items: flex-end; justify-content: flex-end; padding: 14px 18px; box-shadow: var(--lifted); }
.wworld { left: 16%; top: 0; width: 72%; height: 200px; border-radius: var(--r-slab); transform: rotate(3deg); }
.wyou { left: 2%; top: 92px; width: 34%; height: 140px; border-radius: 18px; transform: rotate(-5deg); box-shadow: 0 0 0 5px var(--bg), var(--lifted); }
.wworld b, .wyou b { font-family: var(--display); font-weight: 300; line-height: .8; letter-spacing: -0.05em; }
.wworld b { font-size: 120px; }
.wyou b { font-size: 64px; }
.welcome a { color: inherit; }
.unlocknote { background: var(--panel); border-radius: var(--r-panel); padding: 14px 18px; font-size: 15px; }

/* ---------- odd one out ---------- */
.oddcard .go { margin-top: 2px; }
.oddjoin { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.oddjoin .input { text-transform: uppercase; letter-spacing: .3em; font-family: var(--display); font-weight: 500; font-size: 20px; }
.oddcodechip { font-family: var(--display); font-weight: 700; letter-spacing: .16em; font-size: 15px; background: var(--well); border-radius: 999px; padding: 4px 12px; }
.oddcode { background: var(--panel); border-radius: var(--r-panel); padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.oddcode b { font-family: var(--display); font-weight: 700; font-size: clamp(64px, 20vw, 96px); letter-spacing: .14em; line-height: 1; padding-left: .14em; }
.oddplayers { display: flex; flex-wrap: wrap; gap: 8px; }
.oddplayer { background: var(--key); box-shadow: var(--raised); border-radius: 999px; padding: 8px 14px; font-weight: 500; font-size: 15px; }
.oddplayer i, .oname i, .scorerow i { font-style: normal; font-weight: 400; font-size: 12px; color: var(--quiet); }
.oddplayer.away { opacity: .45; }
.oddtimer { height: 6px; border-radius: 999px; background: var(--well); overflow: hidden; }
.oddtimer i { display: block; height: 100%; background: var(--ink); transform-origin: left; transition: transform .25s linear; }
.oddrole { background: var(--panel); border-radius: var(--r-panel); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.oddrole.odd { background: var(--ink); color: var(--paper); }
.oddpalette { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.oddpalette button { appearance: none; border: 0; aspect-ratio: 1; border-radius: 10px; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); transition: transform .1s ease; }
.oddpalette button:active { transform: scale(.94); }
.oddpalette button[aria-checked="true"] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--ink); }
.odddigits button { aspect-ratio: 1.5; font-size: clamp(36px, 11vw, 52px); }
.odddigits button[aria-checked="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.oddlocked { display: flex; gap: 16px; align-items: center; background: var(--panel); border-radius: var(--r-panel); padding: 18px; }
.oddcol { display: block; width: 44px; height: 44px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); flex: none; }
.oddcol.big { width: 100%; height: auto; aspect-ratio: 1.2; border-radius: 14px; }
.oddcol.empty { background: var(--well); }
.oddnum { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--key); box-shadow: var(--raised); font-family: var(--display); font-weight: 300; font-size: 28px; flex: none; }
.oddnum.big { width: 100%; height: auto; aspect-ratio: 1.2; font-size: clamp(48px, 14vw, 64px); }
.oddlocked .oddcol.big, .oddlocked .oddnum.big { width: 88px; aspect-ratio: 1; }
.oddq { font-size: clamp(30px, 9vw, 40px); }
.oddgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.oddcard2 { appearance: none; border: 0; background: var(--panel); border-radius: 18px; padding: 8px 8px 10px; display: flex; flex-direction: column; gap: 6px; text-align: left; cursor: pointer; transition: box-shadow .15s ease, transform .12s ease; }
.oddcard2:active:not(:disabled) { transform: scale(.98); }
.oddcard2:disabled { cursor: default; }
.oddcard2 .oname { font-weight: 500; font-size: 14px; padding-inline: 4px; overflow-wrap: anywhere; }
.oddcard2 .small { padding-inline: 4px; }
.oddcard2.chosen { box-shadow: 0 0 0 2px var(--ink); }
.oddcard2.isodd { box-shadow: 0 0 0 3px var(--ink); background: var(--key); }
.oddverdict { display: flex; flex-direction: column; gap: 8px; }
.oddverdict .big { font-size: clamp(30px, 9vw, 42px); }
.scorerow { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--line); font-size: 15px; }
.prows > .scorerow:first-child { border-top: 0; }
.scorerow b { font-family: var(--display); font-weight: 500; font-size: 20px; }

/* ---------- looks: picture styles and themes ---------- */
.looks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.looks.themes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.look { appearance: none; border: 0; background: var(--key); border-radius: var(--r-key); box-shadow: var(--raised); padding: 6px 6px 9px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; text-align: left; min-width: 0; transition: box-shadow .15s ease, transform .12s ease; }
.look:active { transform: scale(.98); }
.look canvas { width: 100%; aspect-ratio: 1; display: block; background: var(--art); border-radius: 11px; }
.look .lname { font-size: 13px; font-weight: 500; padding-inline: 4px; line-height: 1.2; }
.look .lstate { font-size: 11px; color: var(--quiet); padding-inline: 4px; min-height: 1.2em; font-variant-numeric: tabular-nums; }
.look[aria-checked="true"] { box-shadow: 0 0 0 2px var(--ink); }
.look.locked canvas, .look.locked .themeprev { opacity: .45; }
.themeprev { display: grid; place-items: center; width: 100%; aspect-ratio: 1.4; border-radius: 11px; box-shadow: inset 0 0 0 1px var(--line); }
.themeprev b { width: 34%; aspect-ratio: 3 / 4; border-radius: 6px; transform: rotate(-4deg); background: var(--day, #7C2CCC); box-shadow: 0 0 0 3px currentColor; }
.tp-paper { background: linear-gradient(135deg, #ECE7E0 50%, #201D1B 50%); color: #ECE7E0; }
.tp-ink { background: #1E1E1E; color: #1E1E1E; }
.tp-mine { background: color-mix(in srgb, var(--day, #7C2CCC) 14%, #E1E1DF); color: color-mix(in srgb, var(--day, #7C2CCC) 14%, #E1E1DF); }
.lookbuy { background: var(--panel); border-radius: var(--r-panel); padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.styleseg { align-self: center; width: 100%; }

/* ---------- places, Plus ---------- */
.places { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.places.bands { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.place { appearance: none; border: 0; border-radius: var(--r-key); aspect-ratio: 1 / .9; padding: 10px 12px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; text-align: left; cursor: pointer; font-size: 12px; font-weight: 500; box-shadow: 0 1px 2px rgba(0, 0, 0, .1); transition: transform .12s ease, box-shadow .2s ease; min-width: 0; }
.place span { opacity: .82; overflow-wrap: anywhere; line-height: 1.2; }
.place b { font-family: var(--display); font-weight: 300; font-size: clamp(38px, 11vw, 52px); line-height: .8; letter-spacing: -0.04em; align-self: flex-end; }
.place.small-place { aspect-ratio: 1 / .78; }
.place.small-place b { font-size: clamp(28px, 8vw, 38px); }
.place:active { transform: scale(.97); }
.place.on { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--ink); }
.place:disabled { background: var(--well); color: var(--quiet); cursor: default; box-shadow: none; }
.segpanel { background: var(--panel); border-radius: var(--r-panel); padding: 16px 18px; }
.segrow { display: flex; gap: 12px; align-items: flex-start; }
.badge { font-size: 11px; font-weight: 500; background: var(--well); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--well); border-radius: 999px; padding: 4px; gap: 2px; }
.seg button { appearance: none; background: none; border: 0; border-radius: 999px; padding: 9px 6px; cursor: pointer; font-size: 14px; transition: background-color .2s ease; }
.seg button[aria-selected="true"] { background: var(--key); box-shadow: var(--raised); font-weight: 500; }
.seg.small-seg { max-width: 260px; }
.numhist { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px 6px; }
.numhist div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.numhist b { font-family: var(--display); font-weight: 300; font-size: 36px; line-height: 1; }
.pair { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.pairscore { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.pairscore b { font-family: var(--display); font-weight: 500; font-size: 28px; line-height: 1; }
.spark { display: flex; align-items: flex-end; gap: 2px; height: 48px; border-bottom: 1px solid var(--line); }
.spark i { flex: 1; background: currentColor; opacity: .7; min-height: 1px; border-radius: 2px 2px 0 0; }

/* ---------- guessing, match links, duels ---------- */
.guessdigits button { font-size: clamp(36px, 11vw, 54px); aspect-ratio: 1.5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0; }
.guessdigits button[aria-checked="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.odds { font-family: var(--text); font-size: 12px; font-weight: 400; letter-spacing: .01em; opacity: .6; min-height: 1em; font-variant-numeric: tabular-nums; }
.fams { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fams button { appearance: none; background: var(--key); border: 0; border-radius: 14px; box-shadow: var(--raised); display: grid; grid-template-columns: 20px 1fr; grid-template-rows: auto auto; column-gap: 9px; align-items: center; text-align: left; padding: 11px 12px; cursor: pointer; font-size: 15px; transition: box-shadow .12s ease; }
.fams button[aria-checked="true"] { box-shadow: var(--pressed), 0 0 0 2px var(--ink); }
.fams i { grid-row: span 2; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.fams .odds { grid-column: 2; }
.matchscore { font-family: var(--display); font-weight: 300; font-size: clamp(110px, 34vw, 170px); letter-spacing: -0.05em; line-height: .85; }
.vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 12px; background: var(--panel); border-radius: var(--r-panel); padding: 18px; }
.vsside { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vsside:last-child { text-align: right; }
.vsside b { font-family: var(--display); font-weight: 500; font-size: 20px; letter-spacing: -0.015em; line-height: 1.1; overflow-wrap: anywhere; }
.vspts { font-family: var(--display); font-weight: 300; font-size: 76px; letter-spacing: -0.04em; line-height: .9; }
.vsmid { font-family: var(--display); font-weight: 300; font-size: 36px; padding-bottom: 12px; opacity: .4; }
.famdot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: middle; }

/* ---------- motion: one moment on reveal, and answers to touch; nothing else moves on its own ---------- */
.flood { position: fixed; inset: 0; z-index: 30; pointer-events: none; clip-path: circle(0px at var(--x) var(--y)); animation: flood .75s cubic-bezier(.65, 0, .25, 1) forwards; transition: opacity 1s ease; }
.flood.out { opacity: 0; }
@keyframes flood { to { clip-path: circle(160vmax at var(--x) var(--y)); } }
@keyframes enter { from { opacity: 0; } to { opacity: 1; } }
.enter { animation: enter .35s ease both; }
.result .val.numeral { transition: opacity .3s ease; }
.zero { width: 52px; height: auto; display: block; opacity: .8; }
.zero path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.8s cubic-bezier(.6, .1, .3, 1) .2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (min-width: 640px) {
  .daysgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .zero path { stroke-dashoffset: 0; }
}

/* ---------- the reward: score, run of days, moments, yesterday ---------- */
.synccard { background: var(--panel); border-radius: var(--r-panel); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.syncrow { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; }
.syncscore { position: relative; width: 84px; height: 84px; flex: none; }
.syncscore svg { width: 100%; height: 100%; display: block; overflow: visible; }
.syncscore .strack { fill: none; stroke: var(--well); stroke-width: 7; }
.syncscore .sfill { fill: none; stroke-width: 7; stroke-linecap: round; filter: drop-shadow(0 0 0.5px rgba(0, 0, 0, .25)); }
.syncscore b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 500; font-size: 30px; letter-spacing: -0.03em; line-height: 1; }
.synccard .mid { font-size: 24px; }
.synccard > .hair { margin: 0; }
.runline { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.runline .mid { font-size: 20px; }
.strip { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 4px; }
.strip .st { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 4; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); font: 400 clamp(11px, 3.4vw, 16px)/1 var(--display); font-style: normal; font-variant-numeric: tabular-nums; text-decoration: none; }
.strip .st.gap { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.strip .st.now { box-shadow: 0 0 0 2px var(--panel), 0 0 0 3.5px var(--ink); }
.strip .st.gap.now { box-shadow: inset 0 0 0 1.5px var(--line), 0 0 0 2px var(--panel), 0 0 0 3.5px var(--ink); }
/* How in sync each day was, as a bar under its colour: no number, tap the day to see it. */
.syncrings { margin-top: 8px; }
.syncrings .sb { display: block; aspect-ratio: 1; }
.syncrings svg { width: 100%; height: 100%; display: block; overflow: visible; }
.syncrings .strack { fill: none; stroke: var(--well); stroke-width: 3.4; }
.syncrings .sfill { fill: none; stroke-width: 3.4; stroke-linecap: round; }
.syncrings span.sb { opacity: .45; }
.strip .st.land { animation: stripland .6s cubic-bezier(.2, .9, .25, 1.25) 1.5s both; }
@keyframes stripland { from { opacity: 0; transform: translateY(-26px) scale(1.5) rotate(-12deg); } to { opacity: 1; transform: none; } }

.moment { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 28px max(24px, env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-left, 0px)); animation: momentin .5s cubic-bezier(.2, .8, .2, 1) both; transition: opacity .4s ease; }
.moment.plain { background: var(--ink); color: var(--paper); }
.moment.out { opacity: 0; }
.momentbody { width: min(100%, 460px); display: flex; flex-direction: column; gap: 16px; }
.momentbody .eyebrow { color: inherit; opacity: .7; }
.momentbody .lead { font-weight: 400; font-size: 21px; line-height: 1.3; }
.momentbody .mdays { font-family: var(--display); font-weight: 500; font-size: clamp(28px, 8vw, 36px); letter-spacing: -0.025em; line-height: 1.05; margin: 0; }
.momentbody .go { background: var(--mfg, var(--paper)); color: var(--mbg, var(--ink)); box-shadow: none; margin-top: 10px; }
.moment .textbtn { align-self: flex-start; color: inherit; }
.mbig { font-family: var(--display); font-weight: 300; font-size: clamp(150px, 48vw, 240px); line-height: .8; letter-spacing: -0.06em; animation: mbig .9s cubic-bezier(.2, .9, .25, 1.15) .15s both; }
@keyframes mbig { from { opacity: 0; transform: translateY(30px) scale(.85); } to { opacity: 1; transform: none; } }
@keyframes momentin { from { opacity: 0; } to { opacity: 1; } }

.opener { display: flex; flex-direction: column; gap: 16px; padding-top: 6px; }
.opener .wchips { margin-bottom: 0; }
.opener .go { margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .strip .st.land, .mbig, .moment { animation: none; } }

/* ---------- picture of the week ---------- */
.picks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.picktile { padding: 0; aspect-ratio: auto; overflow: hidden; gap: 4px; background: var(--key); }
.picktile canvas { width: 100%; aspect-ratio: 1; display: block; background: var(--art); border-radius: 12px; }
.picktile[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--panel), 0 0 0 5px var(--ink); }
.picktile .small { padding: 0 4px 6px; font-size: 12px; }
.weekcard { display: flex; flex-direction: column; gap: 12px; background: var(--panel); border-radius: var(--r-panel); padding: 18px; text-decoration: none; }
.weekpics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.weekpic { display: flex; flex-direction: column; gap: 6px; }
.weekpic canvas, .weekone canvas { width: 100%; aspect-ratio: 1; display: block; background: var(--art); border-radius: 16px; }
.weekone { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: 16px; align-items: center; }
.yeargrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.yearpic { appearance: none; border: 0; padding: 0; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--art); cursor: pointer; display: block; }
.yearpic canvas { width: 100%; height: 100%; display: block; }
.yearpic.empty { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); display: grid; place-items: center; cursor: default; }
.yearpic.empty.now { box-shadow: inset 0 0 0 2px var(--ink); }
.yearpic.empty .small { font-size: 11px; }
.sheetart, .wonart { width: min(100%, 360px); aspect-ratio: 1; display: block; background: var(--art); border-radius: var(--r-panel); }
.wonart { width: min(70vw, 300px); box-shadow: var(--lifted); }

/* ---------- explore: sync first ---------- */
.xhero { gap: 14px; }
.xhero .mid { font-size: 24px; }
.xbars { display: flex; flex-direction: column; gap: 8px; }
.xbar { display: grid; grid-template-columns: 64px minmax(0, 1fr) 30px; gap: 10px; align-items: center; }
.xbar .t { height: 8px; border-radius: 999px; background: var(--well); overflow: hidden; }
.xbar .t i { display: block; height: 100%; background: var(--c1); border-radius: 999px; }
.xbar b { text-align: right; font-weight: 500; }
.xfoot { display: flex; align-items: center; gap: 8px; }
.xfoot .chip { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.sbars { display: flex; gap: 4px; height: 110px; align-items: stretch; }
.sbars.dense { gap: 1px; }
.sbar { appearance: none; border: 0; background: var(--well); padding: 0; flex: 1; min-width: 0; border-radius: 6px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; cursor: pointer; overflow: hidden; }
.sbars.dense .sbar { border-radius: 2px; }
.sbar i { display: block; width: 100%; border-radius: 6px 6px 0 0; }
.sbar span { position: absolute; top: 4px; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--quiet); }
.sbar.empty { cursor: default; opacity: .5; }
.prow.rank > span:first-child b { display: inline-block; min-width: 20px; color: var(--quiet); font-weight: 500; }
.prow.rank.on { background: var(--well); padding-inline: 8px; margin-inline: -8px; }

/* ---------- paint ---------- */
.padthumb { appearance: none; border: 0; padding: 0; background: none; position: relative; display: block; width: 100%; cursor: pointer; border-radius: var(--r-panel); }
.padthumb .pad { pointer-events: none; }
.padhint { position: absolute; inset: 0; display: grid; place-items: center; color: #F2F2F0; font-family: var(--display); font-weight: 500; font-size: 20px; opacity: .7; }
body.painting { overflow: hidden; }
.paint { position: fixed; inset: 0; z-index: 45; background: var(--paper); color: var(--ink); display: flex; flex-direction: column; gap: 10px; overflow-y: auto; overscroll-behavior: contain;
  padding: max(10px, env(safe-area-inset-top, 0px)) max(14px, env(safe-area-inset-right, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px)); animation: rise .3s cubic-bezier(.2, .8, .2, 1); }
.paint > * { width: min(100%, 560px); margin-inline: auto; }
.ptop { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.ptheme { text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pundo { display: flex; gap: 6px; }
.pcanvas { touch-action: none; cursor: crosshair; }
.pcanvas canvas { width: 100%; aspect-ratio: 1; display: block; border-radius: 18px; background: var(--art); pointer-events: none; }
.ptools { display: flex; flex-direction: column; gap: 8px; }
.ptrow { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.ptool { appearance: none; border: 0; width: 38px; height: 38px; flex: none; border-radius: 11px; background: var(--key); box-shadow: var(--raised); color: var(--ink); display: grid; place-items: center; padding: 0; cursor: pointer; }
.ptool.sm { width: 34px; height: 34px; border-radius: 10px; }
.ptool[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.ptool:disabled { opacity: .35; }
.popts { gap: 10px; min-height: 38px; }
.psize { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 140px; }
.psize input { flex: 1; accent-color: var(--ink); }
.pdot { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1px var(--line); }
.pfills { display: flex; gap: 4px; }
.pcols { gap: 6px; }
.pcol { appearance: none; border: 0; width: 28px; height: 28px; border-radius: 50%; padding: 0; cursor: pointer; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); position: relative; }
.pcol.gap { margin-left: 6px; }
.pcol[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.pcol.custom { background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); overflow: hidden; }
.pcol.custom input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.pmirror { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.pmirror .seg button { font-family: var(--display); font-weight: 500; font-size: 15px; padding: 6px 4px; color: var(--ink); }
.pmirror .seg button[aria-pressed="true"] { background: var(--key); box-shadow: var(--raised); }
.perr { color: var(--ink); }
.pfoot .go { margin-top: 2px; }

.cols i.peak { background: var(--c1); }
.row .t, .prow .t, .xbar .t { background: var(--c3); }

/* ---------- the sound of the day ---------- */
.tiles.vowels { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vtile { padding: 12px 4px 10px; gap: 2px; }
.vtile b { font-family: var(--display); font-weight: 500; font-size: 26px; letter-spacing: -0.02em; line-height: 1; }
.vtile span { font-size: 15px; opacity: .7; }
.vtile small { font-size: 11px; color: var(--quiet); line-height: 1.2; }

/* ---------- guessing: odds format, the reveal, today's call ---------- */
.oddsrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.oddsrow p { flex: 1; min-width: 180px; margin: 0; }
.oddsfmt { max-width: 150px; }
.oddsfmt button { font-variant-numeric: tabular-nums; font-size: 13px; padding: 7px 4px; color: var(--ink); }
.oddsfmt button[aria-checked="true"] { background: var(--key); box-shadow: var(--raised); font-weight: 500; }
.greveal { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.greveal p { margin: 0; display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: baseline; font-size: 14px; }
.greveal p.small { display: block; }
.gmark { font-style: normal; width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--well); color: var(--quiet); }
.gmark.ok { background: var(--ink); color: var(--paper); }
.gmark.near { background: var(--c3, var(--well)); color: var(--ink); }
.callcard { background: var(--panel); border-radius: var(--r-panel); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.callpills { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.callpill { display: flex; flex-direction: column; gap: 2px; background: var(--well); border-radius: 14px; padding: 10px 12px; }
.callpill b { font-family: var(--display); font-weight: 500; font-size: 22px; letter-spacing: -0.02em; line-height: 1.05; }
.callpill small { font-size: 12px; color: var(--quiet); }
.callpill.ok { background: var(--ink); color: var(--paper); }
.callpill.ok small { color: inherit; opacity: .8; }

/* Your guesses, settled: a row a day */
.callsum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.callsum span { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 18px; background: color-mix(in srgb, var(--ink) 5%, transparent); }
.callsum b { font-size: 22px; line-height: 1; }
.callsum small { font-size: 12px; opacity: .6; }
.calls { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.callrow > a, .callrow { display: grid; grid-template-columns: 58px 1fr auto auto; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.callrow > a { grid-column: 1 / -1; padding: 6px 0; }
.callrow .cday { font-size: 12px; opacity: .65; }
.callrow .cvs { display: flex; align-items: center; gap: 6px; min-width: 0; }
.callrow .cvs i { font-style: normal; opacity: .45; }
.cchip { display: inline-flex; align-items: baseline; gap: 5px; padding: 5px 9px; border-radius: 999px; white-space: nowrap; }
.cchip b { font-size: 15px; }
.cchip small { font-size: 11px; opacity: .85; }
.callrow .cmarks { display: flex; gap: 3px; }
.callrow .cmarks .gmark { width: 20px; height: 20px; font-size: 11px; }
.callrow .cpts { font-size: 15px; min-width: 26px; text-align: right; }
.callrow .codds { grid-column: 2 / -1; margin-top: -4px; }
.callrow .cwhy { grid-column: 3 / -1; }
@media (max-width: 380px) { .cchip small { display: none; } }

/* Accounts */
.account { display: flex; flex-direction: column; gap: 16px; padding-top: 6px; }
.account a { color: inherit; }
.acctgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.afield { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.afield.wide { grid-column: 1 / -1; }
.afield .input, .afield select.input { width: 100%; box-sizing: border-box; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.passwrap { position: relative; display: block; }
.passwrap .input { padding-right: 64px; }
.passwrap .peek { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 13px; }
/* Sections that fold away, and long lists that show their first few rows. */
.fold > summary { gap: 10px; }
.fold > summary .eyebrow { flex: 1; }
.foldcount { font-size: 13px; min-width: 24px; height: 24px; padding: 0 8px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--ink) 8%, transparent); }
.fold > .foldbody { display: flex; flex-direction: column; gap: 12px; padding-bottom: 18px; }
/* Lists inside a fold sit on the fold's own panel. */
.fold .grouplist, .fold .table, .fold .memberrows { background: transparent; padding: 0; border-radius: 0; }
.fold .fold { background: color-mix(in srgb, var(--ink) 4%, transparent); border-radius: 18px; padding: 0 14px; }
.fold .fold > summary { padding: 12px 0; }
.morerows { display: contents; }
.morerows[hidden] { display: none; }
.showall { align-self: flex-start; }
.groupfind { margin-bottom: 2px; }
.table .tr.me { font-weight: 600; }
.acctmore { border-radius: 18px; background: color-mix(in srgb, var(--ink) 4%, transparent); padding: 12px 14px; }
.acctmore summary { cursor: pointer; font-weight: 500; }
.acctmore[open] summary { margin-bottom: 6px; }
.pbgs { flex-direction: column; align-items: stretch; gap: 8px; }
.pbglist { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.pbg { padding: 0; border: 0; background: none; border-radius: 10px; overflow: hidden; aspect-ratio: 1; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); }
.pbg canvas { width: 100%; height: 100%; display: block; }
.codeinput { font-family: var(--display); font-size: 24px; letter-spacing: .4em; text-align: center; }
.blockrows { display: flex; flex-direction: column; gap: 4px; }
.blockrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.blockrow:last-child { border-bottom: 0; }
button.oddplayer { font: inherit; color: inherit; border: 0; cursor: pointer; }

/* Your year in colour */
.yearlink { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--r-card, 24px); background: var(--panel); color: inherit; text-decoration: none; box-shadow: 0 0 0 1px var(--line); }
.yearlink canvas, .yearcard canvas { width: 100%; display: block; margin-top: 6px; }
.yearcard { padding: 18px; border-radius: var(--r-card, 24px); background: var(--panel); box-shadow: 0 0 0 1px var(--line); }
.ystats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ystat { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 18px; background: color-mix(in srgb, var(--ink) 5%, transparent); }
.ystat b { font-family: var(--display); font-size: 30px; line-height: 1.25; padding-bottom: 2px; text-transform: capitalize; }
.ylines { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.textbtn.on { text-decoration-thickness: 2px; font-weight: 600; }

/* Odd one out: rounds that build */
.oddchips { display: inline-flex; gap: 6px; align-items: center; }
.oddmult { font-family: var(--display); font-weight: 700; font-size: 14px; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: var(--paper); }
.oddtwist { font-size: 12px; font-weight: 500; padding: 5px 10px; border-radius: 999px; background: var(--well); white-space: nowrap; }
.oddcardbig { border-radius: var(--r-slab, 30px); padding: 28px 22px; background: var(--panel); display: flex; flex-direction: column; gap: 6px; box-shadow: 0 0 0 1px var(--line); animation: oddpop .45s cubic-bezier(.2, .9, .3, 1.3) both; }
.oddcardbig.t-final, .oddcardbig.t-double { background: var(--ink); color: var(--paper); }
.oddcardbig.t-meld { background: linear-gradient(135deg, #F6D51F, #E04A9B 55%, #2F6FE0); color: #fff; }
.oddcardbig .small { opacity: .75; }
@keyframes oddpop { from { transform: scale(.85) rotate(-2deg); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .oddcardbig { animation: none; } }
.oddrule { border-radius: var(--r-panel, 24px); padding: 16px 18px; background: var(--panel); display: flex; flex-direction: column; gap: 4px; border: 1.5px dashed var(--line); }
.oddrule.twist { border-style: solid; }
.oddoptions { display: flex; flex-direction: column; gap: 8px; }
.scorerow i.neg { color: #C0392B; }
.oddpos { display: inline-block; min-width: 1.4em; opacity: .5; }
.oddpodium { text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.steps3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; align-items: end; width: 100%; margin-top: 8px; }
.steps3 .step { display: flex; flex-direction: column; align-items: center; gap: 4px; border-radius: 18px 18px 8px 8px; background: var(--panel); padding: 12px 6px; position: relative; }
.steps3 .step i { font-style: normal; font-family: var(--display); font-weight: 700; font-size: 26px; opacity: .3; }
.steps3 .s1 { min-height: 150px; background: var(--ink); color: var(--paper); justify-content: flex-end; }
.steps3 .s2 { min-height: 115px; justify-content: flex-end; }
.steps3 .s3 { min-height: 90px; justify-content: flex-end; }
.steps3 .step b { font-size: 22px; }
.oddawards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.oddaward { border-radius: 18px; padding: 14px; background: var(--panel); display: flex; flex-direction: column; gap: 2px; }
.langpick { display: flex; flex-direction: column; gap: 6px; max-width: 260px; }

/* ---------- the Samesies button: two cards, one on the other ----------
   Like the two overlapping chips (yours and the world's), every main button sits on a second card in a
   colour (the day's, once there is one). Pressing slides it down onto its twin. Tabs, segments and filter
   chips use the same idea: square-ish cards rather than generic pills. */
:root { --twin: #8B5CF6; --r-btn: 16px; }
:root[data-surface] { --twin: color-mix(in srgb, var(--fg) 30%, transparent); }
.go { border-radius: var(--r-btn); box-shadow: 4px 5px 0 0 var(--twin); transition: transform .12s ease, box-shadow .12s ease, opacity .2s ease; margin-right: 4px; width: calc(100% - 4px); }
.go:active:not(:disabled) { transform: translate(3px, 4px); box-shadow: 1px 1px 0 0 var(--twin); }
.go:disabled { box-shadow: 4px 5px 0 0 color-mix(in srgb, var(--fg) 8%, transparent); }
.go.small-go { width: auto; border-radius: 14px; box-shadow: 3px 4px 0 0 var(--twin); }
.go.small-go:active:not(:disabled) { transform: translate(2px, 3px); box-shadow: 1px 1px 0 0 var(--twin); }
.textbtn { text-decoration-color: var(--twin); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.textbtn:hover { text-decoration-color: currentColor; }
/* tabs: a card that lifts onto its twin */
.tabs { border-radius: 22px; }
.tabs a { border-radius: 15px; transition: background-color .2s ease, opacity .2s ease, box-shadow .2s ease, transform .2s ease; }
.tabs a[aria-current="page"] { background: var(--fg); color: var(--bg); opacity: 1; box-shadow: 2px 3px 0 0 var(--twin); transform: translate(-1px, -1px); }
/* segments: the chosen one is a small card on its twin */
.seg { border-radius: 14px; padding: 4px; }
.seg button { border-radius: 10px; transition: background-color .15s ease, box-shadow .15s ease, color .15s ease; }
.seg button[aria-selected="true"], .seg button[aria-checked="true"], .seg button[aria-pressed="true"] { background: var(--fg); color: var(--bg); box-shadow: 2px 2px 0 0 var(--twin); font-weight: 500; }
/* filter chips: tags with a corner, not pills */
.xchip { border-radius: 12px 12px 12px 4px; }
.xchip.on { box-shadow: 2px 3px 0 0 var(--twin); }
.sopt.on { box-shadow: 0 0 0 2px var(--fg), 3px 4px 0 2px var(--twin); }
.oddtwist, .oddcodechip { border-radius: 10px; }
.oddmult { border-radius: 10px; box-shadow: 2px 2px 0 0 var(--twin); }

/* Plus in settings */
.pluscard { border-radius: var(--r-panel, 24px); padding: 18px; background: var(--panel); box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 10px; }
.pluscard:empty { display: none; }
.plushead { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.plusbadge { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 8px; background: var(--fg); color: var(--bg); box-shadow: 2px 2px 0 0 var(--twin); }
.planpick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plan { appearance: none; border: 0; text-align: left; cursor: pointer; padding: 14px; border-radius: 16px; background: var(--key); box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 4px; position: relative; color: inherit; font: inherit; }
.plan b { font-family: var(--display); font-weight: 500; font-size: 18px; }
.plan span { font-size: 14px; }
.plan i { font-style: normal; font-size: 11px; font-weight: 600; position: absolute; top: -9px; right: 10px; background: var(--twin); color: #fff; padding: 3px 8px; border-radius: 6px; }
.plan[aria-checked="true"] { box-shadow: 0 0 0 2px var(--fg), 3px 4px 0 2px var(--twin); }
/* The name is longer now: the wordmark tightens on narrow phones. */
.mark { font-size: 22px; letter-spacing: -0.035em; white-space: nowrap; }
@media (max-width: 380px) { .mark { font-size: 19px; } }
.vowels + .eyebrow, .stack > .eyebrow + .tiles.vowels { margin-top: 2px; }
.go.small-go:disabled { box-shadow: 3px 4px 0 0 color-mix(in srgb, var(--fg) 8%, transparent); }

/* The reminder time wheel: two snapping columns over a raised key that marks the chosen time. */
.tw { position: relative; display: flex; justify-content: center; align-items: center; gap: 4px; height: 132px; margin: 4px 0 6px; background: var(--well); border-radius: var(--r-panel); overflow: hidden; }
.twband { position: absolute; left: 50%; top: 44px; width: 176px; height: 44px; transform: translateX(-50%); border-radius: 14px; background: var(--key); box-shadow: var(--raised); pointer-events: none; }
.twcol { position: relative; width: 72px; height: 132px; padding: 44px 0; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; -webkit-mask-image: linear-gradient(transparent, #000 34%, #000 66%, transparent); mask-image: linear-gradient(transparent, #000 34%, #000 66%, transparent); outline: none; }
.twcol::-webkit-scrollbar { display: none; }
.twcol:focus-visible { box-shadow: inset 0 0 0 2px var(--ink); border-radius: 14px; }
.twi { height: 44px; display: grid; place-items: center; scroll-snap-align: center; font-family: var(--display); font-weight: 300; font-size: 28px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; opacity: .38; cursor: pointer; transition: opacity .15s ease; }
.twi.on { opacity: 1; font-weight: 500; }
.twsep { position: relative; font-family: var(--display); font-weight: 500; font-size: 26px; line-height: 1; padding-bottom: 3px; }
