@font-face { font-family: 'Young Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/young-serif-latin-400-normal.woff2) format('woff2'); 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: 'Young Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/young-serif-latin-ext-400-normal.woff2) format('woff2'); 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: 'Alegreya Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/alegreya-sans-latin-400-normal.woff2) format('woff2'); 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: 'Alegreya Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/alegreya-sans-latin-ext-400-normal.woff2) format('woff2'); 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: 'Alegreya Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/alegreya-sans-latin-700-normal.woff2) format('woff2'); 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: 'Alegreya Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/alegreya-sans-latin-ext-700-normal.woff2) format('woff2'); 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; }

/* Carteo's screens on plain styling, laid out to Dice's measurements (handover, 17 Nov) so the
   full design drops in on Mon 23 Nov. Colours: scheme 1, Chart paper; fonts follow with the design. */
:root {
  --ink: #2B2219; --ink-2: #5C4F3F;
  --paper: #EFE7D3; --tile: #F9F4E6; --outline: #8A8377; --chosen: #E6E1D4;
  --shadow: 0 1px 3px rgba(43,34,25,0.08), 0 18px 44px rgba(43,34,25,0.14);
  --kb: 0px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1); /* one easing for everything that moves (Dice, 18 Nov) */
  --serif: 'Young Serif', Georgia, serif;
  --sans: 'Alegreya Sans', system-ui, sans-serif;
}
body[data-scheme="2"] { --paper: #E6E4D8; --tile: #F5F4EC; --outline: #88837A; --chosen: #E3E1D9; }
body[data-scheme="3"] { --paper: #D9E5E0; --tile: #EEF4F1; --outline: #85837C; --chosen: #DCE1DE; }
body[data-scheme="4"] { --paper: #DDE3CF; --tile: #F0F3E6; --outline: #868277; --chosen: #DEE0D4; }
body[data-scheme="5"] { --paper: #EDD9D2; --tile: #F8ECE7; --outline: #897F78; --chosen: #E6DAD4; }
body[data-scheme="6"] { --paper: #E0DCE8; --tile: #F1EFF5; --outline: #86807E; --chosen: #DFDDE1; }
body[data-scheme="7"] { --paper: #D8E2EC; --tile: #EDF2F7; --outline: #84827F; --chosen: #DCDFE3; }
body[data-scheme="8"] { --paper: #EBD6C1; --tile: #F7EADC; --outline: #897E73; --chosen: #E5D8CA; }
body[data-scheme="9"] { --paper: #F1F1EE; --tile: #FFFFFF; --outline: #8D8883; --chosen: #ECEBEA; }
body[data-scheme="10"] { --paper: #FCEBB3; --tile: #FFFFFF; --outline: #8D8883; --chosen: #ECEBEA; }
body[data-scheme="11"] { --paper: #FAD0C1; --tile: #FFFFFF; --outline: #8D8883; --chosen: #ECEBEA; }
body[data-scheme="12"] { --paper: #F9D3E0; --tile: #FFFFFF; --outline: #8D8883; --chosen: #ECEBEA; }
body[data-scheme="13"] { --paper: #E2DAF9; --tile: #FFFFFF; --outline: #8D8883; --chosen: #ECEBEA; }
body[data-scheme="14"] { --paper: #CEE2F9; --tile: #FFFFFF; --outline: #8D8883; --chosen: #ECEBEA; }
body[data-scheme="15"] { --paper: #CDEDDD; --tile: #FFFFFF; --outline: #8D8883; --chosen: #ECEBEA; }

* { box-sizing: border-box; }
/* The paper sits on body only, so it fills the whole window, overscroll included, in the survey's own scheme (Dice, 23 Nov). */
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); }
body { font: 17px/1.45 var(--sans); -webkit-text-size-adjust: 100%; }
/* No bounce past the top or bottom of the page, so the bar stays put (Tag, 20 Nov). */
html, body { overscroll-behavior-y: none; }
/* Alegreya Sans has old-style figures by default; codes, counts and prices use lining ones. */
.code, .count, .progress, .rank-n, .hint { font-feature-settings: 'lnum' 1; }
main { max-width: 460px; margin: 0 auto; padding: 0 0 calc(100px + var(--note-h, 0px) + env(safe-area-inset-bottom)); min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
h1, h2 { font-family: var(--serif); font-weight: 400; margin: 0; }
h1:focus { outline: none; }
p { margin: 0 0 12px; }
.visually-hidden { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.noscript { padding: 24px 20px; }

/* the host strip */
.host { display: flex; align-items: center; gap: 10px; padding: 16px 20px 0; }
.host-big { padding-top: 22px; }
.host-logo { border-radius: 8px; display: block; }
.host-big .host-logo { border-radius: 9px; }
.host-text { margin: 0; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.host-big .host-text { font-size: 17px; }
.host-name { font-weight: 700; }

.progress-wrap { padding: 8px 20px 0; }
.progress-wrap .line { display: block; max-width: 370px; height: auto; }
.map-wrap { padding: 16px 20px 0; }
.line-map { display: block; height: auto; }
.line { overflow: visible; } /* the ring can sit at the line's highest or lowest point */
.line-label { font: 400 13.5px var(--sans); fill: var(--ink-2); } /* Dice, 20 Nov: 13.5 on 15 */
.line-label-now { font-weight: 700; fill: var(--ink); } /* arriving: the part you're starting */
@media (prefers-reduced-motion: no-preference) {
  /* The finale (Tag, 18 Nov; Dice's idea 10): the route draws itself once in 1.5 s, the one
     exception to "nothing longer than 0.75 s"; then the X is struck, 0.15 s a stroke. */
  .line-finale { animation: carteo-route 1.5s var(--ease) both; }
  .line-x1 { animation: carteo-stroke .15s linear 1.5s both; }
  .line-x2 { animation: carteo-stroke .15s linear 1.65s both; }
}
@keyframes carteo-route { from { stroke-dasharray: 0 1000; } to { stroke-dasharray: 1000 1000; } }
@keyframes carteo-stroke { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.progress { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.3; font-variant-numeric: lining-nums; }

/* the tile */
.tile { background: var(--tile); border-radius: 24px; box-shadow: var(--shadow); margin: 12px 10px 0; padding: 26px 18px 24px; }
.tile-door { padding: 32px 18px 28px; }
.q-title { font-size: 26px; line-height: 1.2; margin-bottom: 8px; }
.tile-title { font-size: 28px; line-height: 1.15; margin-bottom: 12px; }
.door-title { font-size: 34px; line-height: 1.1; padding: 22px 20px 0; }
.exit-title { font-size: 44px; line-height: 1.02; padding: 22px 20px 0; }
.end-title { font-size: 60px; line-height: 1.02; padding: 22px 20px 8px; }
.end-under { padding: 6px 20px 0; } /* 12 px under the map's lower names (Dice, 20 Nov) */
.arrive { padding: 40px 20px 0; }
.arrive-title { font-size: 34px; line-height: 1.2; margin-bottom: 8px; }
.label { font-weight: 700; margin-top: 16px; }
@media (min-width: 700px) {
  .door-title { font-size: 40px; }
  .tile-door { padding: 32px 28px 28px; }
  /* Desktop (Tag, 18 Nov; Exo's version until Dice draws it): the survey is one column about the
     height of a large phone, centred in a tall window. The frame gap is half the height left over
     above 820 px, never under 24 px: the content starts that far down and the bar sits that far
     up, still fixed, so it never moves between screens. Phones are unchanged. */
  main { --frame-gap: max(24px, calc((100dvh - 820px) / 2)); padding-top: var(--frame-gap); padding-bottom: calc(90px + var(--frame-gap) + var(--note-h, 0px) + env(safe-area-inset-bottom)); }
  /* Dice (18 Nov): the door, the exit and the end have no bar, so each is centred in the window as
     one block, with at least 24 px above and below. */
  main.no-bar { justify-content: center; padding: 24px 0; }
  main.no-bar .host-big { padding-top: 0; }
  main.no-bar .door-title { padding-top: 20px; }
  main.no-bar .tile { margin-top: 14px; }
  main.no-bar .foot { margin-top: 0; padding-top: 8px; }
  /* Tag (20 Nov): a longer greeting, and the notice under the tile, tightened on desktop. A door
     taller than the window starts 24 px down and scrolls; nothing is squeezed, and everything down
     to Begin is in view at 1440 x 900 (Dice's handover, section 9; Tag, 20 Nov, 18:26). */
  .door-title { font-size: 36px; }
  .tile-door { padding-bottom: 22px; }
  .door-after { padding-top: 6px; }
  /* Dice (18 Nov): the line runs the column, 420 px and 20 px in, ending above the count. */
  .progress-wrap .line, .map-wrap .line-map { max-width: 420px; }
}

.hint-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.hint { color: var(--ink-2); font-size: 16px; line-height: 1.4; margin: 0; }
.count { font-weight: 700; font-size: 16px; margin: 0; white-space: nowrap; font-variant-numeric: lining-nums; }

/* answers */
.choices { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; min-height: 52px; padding: 14px; border: 1.5px solid var(--outline); border-radius: 12px; font-size: 18px; line-height: 1.25; background: var(--tile); }
.row { flex-direction: column; align-items: stretch; gap: 10px; }
.row-main { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.row-main > span, .row-check > span { flex: 1; padding-top: 1px; }
label.row-check { flex-direction: row; }
.row input[type=radio], .row input[type=checkbox] { width: 22px; height: 22px; margin: 0; accent-color: var(--ink); flex: none; }
/* Dice's radio, drawn the same on every phone: a 22 px circle; chosen, an ink ring and dot. */
.row input[type=radio] { -webkit-appearance: none; appearance: none; border: 1.5px solid var(--outline); border-radius: 50%; background: var(--tile); }
.row input[type=radio]:checked { border: 2px solid var(--ink); background: radial-gradient(circle, var(--ink) 0 5px, transparent 5.5px) var(--tile); }
@media (forced-colors: active) { .row input[type=radio] { -webkit-appearance: auto; appearance: auto; } }
.row-off { opacity: 0.5; cursor: default; }
.row-check { margin: 16px 0; }
/* The whole row answers a tap (Tag, 18 Nov): in a row holding a label, the label carries the
   padding and fills the row, edge to edge. */
.row:has(> .row-main) { padding: 0; gap: 0; }
.row > .row-main { padding: 14px; flex: 1 0 auto; }
.row > .self-box { padding: 0 14px 14px; margin-top: -4px; }
/* Chosen: Dice's 2 px ink edge, the chosen fill. The edge is drawn inside the row, so choosing
   never moves anything (Tag, 18 Nov). */
.row:has(input:checked) { border-color: var(--ink); outline: 2px solid var(--ink); outline-offset: -2px; }
/* The chosen fill sits in its own layer, so it can soak in from the touch (Tag, 18 Nov; Dice's
   idea 11): the edge and the dot change at once; the tint spreads from where the finger landed,
   or from the radio when chosen by keyboard, in 0.2 s. With reduced motion it's there at once. */
.row { position: relative; isolation: isolate; }
.row::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--chosen); opacity: 0; pointer-events: none; }
.row:has(input:checked)::before { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .row.soak::before { animation: carteo-soak .2s var(--ease) both; } }
@keyframes carteo-soak { from { clip-path: circle(0 at var(--sx, 25px) var(--sy, 50%)); } to { clip-path: circle(150% at var(--sx, 25px) var(--sy, 50%)); } }
/* The joined scale: each row draws its own sides, so a chosen row's ink edge covers them. */
.scale { gap: 0; }
.scale .row { border-width: 0 1.5px; border-radius: 0; min-height: 54px; }
.scale .row:first-child { border-top-width: 1.5px; border-radius: 12px 12px 0 0; }
.scale .row:last-child { border-bottom-width: 1.5px; border-radius: 0 0 12px 12px; }
.scale .row + .row { border-top-width: 1.5px; }
.scale .row:has(input:checked) + .row { border-top-color: transparent; }
.self-box { flex-basis: 100%; display: flex; flex-direction: column; gap: 6px; }
.self-box label { font-size: 16px; }
.self-input, .text-input { width: 100%; font: 18px/1.25 var(--sans); color: var(--ink); background: var(--tile); border: 1.5px solid var(--ink); border-radius: 12px; padding: 12px; }
.self-input { min-height: 52px; }
.text-input { min-height: 132px; resize: vertical; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* ranking */
.rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rank-row { display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 6px 6px 6px 10px; border: 1.5px solid var(--outline); border-radius: 12px; background: var(--tile); font-size: 18px; }
.rank-grip { cursor: grab; touch-action: none; padding: 10px 4px; color: var(--ink-2); user-select: none; }
.rank-n { font-weight: 700; min-width: 1.4em; font-variant-numeric: lining-nums; }
.rank-label { flex: 1; }
.rank-arrow { width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font-size: 20px; cursor: pointer; }
.rank-arrow[aria-disabled=true] { opacity: 0.3; cursor: default; }
.rank-row { position: relative; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.rank-lifted { border: 2px solid var(--ink); box-shadow: 0 2px 6px rgba(43,34,25,0.12), 0 24px 48px rgba(43,34,25,0.22); z-index: 2; }
/* The dashed space where the dragged row will land. */
.rank { position: relative; }
.rank-space { position: absolute; left: 0; right: 0; border: 1.5px dashed var(--outline); border-radius: 12px; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .rank-dragging .rank-row:not(.rank-lifted) { transition: transform .15s var(--ease); } }
@media (prefers-reduced-motion: no-preference) { .rank-row { transition: box-shadow .15s; } }

/* errors */
.error { display: flex; gap: 10px; align-items: center; border: 2px solid var(--ink); background: var(--chosen); border-radius: 12px; padding: 12px; margin: 0 0 16px; font-weight: 700; font-size: 17px; line-height: 1.3; }
@media (prefers-reduced-motion: no-preference) { .error { animation: carteo-fade .15s var(--ease) both; } }
.error-mark { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--tile); display: grid; place-items: center; font-size: 15px; }

/* buttons */
.btn { min-height: 56px; border-radius: 12px; font: 700 18px var(--sans); cursor: pointer; }
.btn-go { background: var(--ink); color: var(--tile); border: 0; flex: 1; }
.btn-back { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); padding: 0 22px; }
.btn-quiet { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-wide { width: 100%; margin-top: 8px; }
.btn-go { display: inline-flex; align-items: center; justify-content: center; }
/* Sending (Dice's idea 2): three dots in the tile's colour, at 100%, 60% and 30%, running along. */
.dots { margin-left: 8px; flex: none; }
.dots circle { fill: var(--tile); }
.dots circle:nth-child(2) { opacity: 0.6; }
.dots circle:nth-child(3) { opacity: 0.3; }
@media (prefers-reduced-motion: no-preference) {
  .dots circle { animation: carteo-dot .9s linear infinite; }
  .dots circle:nth-child(2) { animation-delay: -.6s; }
  .dots circle:nth-child(3) { animation-delay: -.3s; }
}
@keyframes carteo-dot { 0%, 100% { opacity: 1; } 33% { opacity: 0.3; } 66% { opacity: 0.6; } }

/* the bar: fixed, above the keyboard and inside the safe area; questions scroll and fade beneath */
.bar-wrap { position: fixed; left: 0; right: 0; bottom: 0; pointer-events: none; z-index: 5;
  padding: 0 10px calc(10px + env(safe-area-inset-bottom)); transform: translateY(calc(-1 * var(--kb)));
  min-height: 128px; display: flex; flex-direction: column; justify-content: flex-end; }
/* the fade, only while more of the page lies below the bar (app.js sets .bar-fade) */
.bar-wrap::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: linear-gradient(to top, var(--paper) calc(100% - 36px), transparent 100%); }
.bar-wrap.bar-fade::before, .bar-wrap:has(.bar-note)::before { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .bar-wrap::before { transition: opacity .2s var(--ease); } }
.bar { pointer-events: auto; display: flex; gap: 10px; padding: 12px; background: var(--tile); border-radius: 24px; box-shadow: var(--shadow); width: 100%; max-width: 460px; margin: 0 auto; }
/* A send that fails: the message sits above the bar, in the error style (Dice's idea 2). */
.bar-note { pointer-events: auto; width: 100%; max-width: 460px; margin: 0 auto 10px; }
.bar-note .error { margin: 0; padding: 10px 12px; }
/* "More answers below" (Tag, 24 Nov): above the bar on a long list, until the last answer has been seen. */
.more-below { pointer-events: auto; align-self: center; margin: 0 auto 10px; min-height: 36px; padding: 6px 14px;
  font: inherit; font-size: 15px; color: var(--ink); background: var(--tile); border: 1px solid var(--outline);
  border-radius: 999px; box-shadow: var(--shadow); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.more-below svg { flex: none; display: block; } /* Dice's Lasso (Tag, 24 Nov, 09:47): 16 x 22, the pill stays 36 px */
.more-below:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* It rises and falls, slowly, to catch the eye (Tag, 24 Nov): twice, about 4.4 s, then rests, since anything moving for more than 5 s needs a way to stop it (WCAG 2.2.2). With reduced motion it stays still. */
@keyframes carteo-bob { from { transform: translateY(0); } to { transform: translateY(-6px); } }
@media (prefers-reduced-motion: no-preference) { .more-below { animation: carteo-rise .3s var(--ease) both, carteo-bob 1.1s var(--ease) .3s 4 alternate; } }

/* "Carteo", and the full foot */
.wordmark { font-family: var(--serif); font-size: 18px; line-height: 22px; }
.wordmark-end { margin: auto 0 0; padding: 14px 20px 0; }
.foot { margin-top: auto; padding: 24px 20px 0; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.foot-links { display: flex; gap: 16px; font-size: 15px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; }
.public-line { color: var(--ink-2); font-size: 13.5px; line-height: 1.4; margin-top: 8px; }

/* the code */
.code { font: 700 32px/1.2 var(--sans); letter-spacing: 0.08em; font-variant-numeric: lining-nums; margin: 4px 0 12px; }
.turnstile:empty { display: none; }
.turnstile { margin-top: 16px; }

/* The way into each screen (Tag, 18 Nov; Exo's version until Dice draws it). See enter() in app.js. */
@media (prefers-reduced-motion: no-preference) {
  .enter { animation: carteo-rise .25s var(--ease) both; }
  .enter-back { animation: carteo-drop .25s var(--ease) both; }
  .enter-slow { animation: carteo-fade .4s var(--ease) both; }
}
@keyframes carteo-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes carteo-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes carteo-fade { from { opacity: 0; } to { opacity: 1; } }

/* Desktop: the bar raised by the frame gap (see main's rule above). After the bar's own rule, so it
   takes effect. */
@media (min-width: 700px) {
  .bar-wrap { --frame-gap: max(24px, calc((100dvh - 820px) / 2)); padding-bottom: calc(var(--frame-gap) + env(safe-area-inset-bottom)); min-height: calc(118px + var(--frame-gap)); }
  /* Dice (18 Nov): the bar as wide as the tile, 440 px. */
  .bar, .bar-note { max-width: 440px; }
}

/* GT's draft 3 (19 Nov): Exo's versions, in Carteo's own pieces, until Dice draws them. */
.pipe { display: inline-block; font: 700 14px/1.2 var(--sans); letter-spacing: 0.02em; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 999px; padding: 5px 12px; margin-bottom: 12px; }
.q-note { color: var(--ink-2); margin: 0 0 8px; }
.boxes { display: grid; gap: 10px; margin-top: 8px; }
.after-buttons { display: grid; gap: 10px; margin: 18px 30px 6px; } /* above the code (Tag, 20 Nov) */
/* The invitation to the host's questions after Submit (Tag, 24 Nov): the host's heading and line, "Tell
   us more" in ink, then "Finish" as a plain link in full ink with a 44 px tap area; the code tile below.
   Exo's version, in Carteo's own pieces, until Dice draws it. */
.invite-tile { margin-top: 20px; }
.invite-tile .tile-title { margin-bottom: 8px; }
.invite-buttons { display: grid; gap: 8px; margin-top: 20px; }
.link-btn { justify-self: center; min-height: 44px; padding: 0 16px; font: inherit; font-weight: 700; color: var(--ink);
  background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 8px; }
.extra { margin-top: 18px; }
.extra-q { display: block; font: 400 20px/1.25 var(--serif); margin-bottom: 4px; }
.extra .hint { margin-bottom: 8px; }
.small { font-size: 15.5px; line-height: 1.35; color: var(--ink-2); margin-top: 12px; }
.btn:disabled { opacity: 0.35; cursor: not-allowed; }
.row-off { opacity: 0.5; }
.notice { max-width: 640px; margin: 0 auto; padding: 24px 20px 48px; }
.notice h1 { font-size: 34px; margin-bottom: 12px; }
.notice li { margin: 0 0 12px; }
.notice h2 { font: 400 22px/1.2 var(--serif); margin: 24px 0 8px; } /* Carteo's site notice (SAS-LGL-002) */

/* GT's draft 6, as Dice drew it (section 14 of her handover; Tag decided, 20 Nov) ------------ */
/* The part line (14.4): the opening line only, as the part's name is in the row just above;
   16 px under that row, 14 px above the tile, 18 px above a pair's question. */
.part-intro { padding: 16px 20px 0; margin-bottom: 2px; }
.part-line { font: 400 22px/1.2 var(--serif); color: var(--ink); margin: 0; text-wrap: balance; }
/* The pick above a follow-up question (14.5): no outline, so it doesn't look like a button. */
.pipe { display: inline-block; font: 700 15.5px/1.3 var(--sans); color: var(--ink); background: var(--chosen); border: 0; border-radius: 8px; padding: 4px 10px; margin-bottom: 12px; }
/* Quick-fire pairs (14.2): the question on the paper; two cards, each a tile and one button;
   "or" between them; eight dots for the round. One tap: the ink soaks the card from the touch,
   the other card fades back, and 0.35 s later the next pair comes in. */
.pair-stem { font: 400 26px/1.2 var(--serif); margin: 18px 20px 0; text-wrap: balance; }
.pair-stem:focus { outline: none; }
.part-intro + .pair-stem { margin-top: 16px; }
.pair { position: relative; display: grid; grid-auto-rows: 1fr; gap: 12px; margin: 16px 10px 0; }
.pair-card { position: relative; isolation: isolate; overflow: hidden; min-height: 120px; padding: 18px 26px; background: var(--tile); color: var(--ink); border: 0; border-radius: 24px; box-shadow: var(--shadow); font: 400 24px/1.2 var(--serif); text-align: center; text-wrap: balance; cursor: pointer; transition: opacity .2s var(--ease); }
.pair-first .pair-card { min-height: 100px; } /* 104 in Dice's frame; 100 keeps it clear of the bar on a 690 px phone now the line is drawn true */
.pair-card > span { position: relative; z-index: 1; }
.pair-card::before { content: ''; position: absolute; inset: 0; background: var(--ink); clip-path: circle(0 at var(--sx, 50%) var(--sy, 50%)); }
.pair-card.pair-on, .pair-card.pair-was { color: var(--tile); }
.pair-card.pair-on::before, .pair-card.pair-was::before { clip-path: circle(150% at var(--sx, 50%) var(--sy, 50%)); }
@media (prefers-reduced-motion: no-preference) { .pair-card.pair-on::before { animation: carteo-soak .2s var(--ease) both; } }
.pair-card.pair-off { opacity: .45; }
.pair-card:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.pair-or { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; background: var(--paper); color: var(--ink); font: 400 16px/40px var(--serif); text-align: center; pointer-events: none; z-index: 2; }
.pair-dots { display: block; margin: 16px auto 0; overflow: visible; }
@media (min-width: 700px) { .pair { grid-template-columns: 1fr 1fr; } .pair-card, .pair-first .pair-card { min-height: 190px; } }
/* "Skip" (14.3): on an optional question with nothing chosen, the bar's main button reads "Skip",
   outlined like Back; with an answer it reads "Continue", in ink. */
.btn-skip { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); flex: 1; display: inline-flex; align-items: center; justify-content: center; }
/* The door: who runs the survey and the privacy notice, under the tile on the paper (Tag, 20 Nov). */
.door-after { padding: 14px 28px 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.4; }
.door-after p { margin: 0; }
.door-after a { display: inline-block; padding: 10px 0; line-height: 24px; color: var(--ink); }
.text-note { margin: 8px 2px 0; color: var(--ink-2); font-size: 14px; line-height: 1.35; } /* quiet, under the box (Tag, 20 Nov) */

/* Carteo's own pages: the front page (/) and the not-found page (Tag, 20 Nov; Dice's handover for
   the front page, frames fp-a-under-phone, fp-a-under-desktop, fp-nf-phone, fp-nf-desktop). Chart
   paper. On a phone: the name block, then the tile floating 10 px above the bottom of the first
   screen, then the foot (centred, 460 px at most). From 1240 px: Bower's placing, the name block
   left and the tile right, both centred top to bottom, the foot along the bottom. Dice drew it from
   960 px, but below 1240 the line and the words run under the 460 px tile (Exo, 20 Nov), so up to
   there the phone's layout holds. */
.fp { max-width: 460px; margin: 0 auto; }
@media (prefers-reduced-motion: no-preference) { .fp { animation: carteo-fade .4s var(--ease) both; } }
main.fp-main { max-width: none; margin: 0; padding: 0 0 10px; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
/* The big name with its rose (Tag, 20 Nov; Dice's handover, section 11). The name shrinks on phones
   narrower than 390 px so the rose's east point isn't cut off; the needle's tip stands 0.48em above
   the name's box, so the name sits 14 px lower than that (60 px at 96 px); the words sit 0.48em of the
   name under its box. Nothing above it may clip the rose. */
.fp-front { --name: min(96px, calc((100vw - 30px) / 3.74)); }
/* The rose's square box runs past a phone's right edge, though nothing drawn does: no sideways scroll.
   clip cuts only the empty box, never the needle above (older browsers: the html rule). */
.fp-front { overflow-x: clip; }
html.fp-page { overflow-x: hidden; }
.fp-name { margin: calc(var(--name) * 0.48 + 14px) 20px 0 16px; font-size: var(--name); line-height: 0.9; letter-spacing: -0.02em; white-space: nowrap; }
.fp-rose { display: inline-block; position: relative; width: 0; height: 0; vertical-align: baseline; }
.fp-rose svg { position: absolute; left: -0.267em; top: -0.25em; width: 3em; height: 3em; transform: translate(-50%, -50%); overflow: visible; }
/* M6a (Tag, 20:06): once, after the page's fade, the rose turns a few degrees back and forth about the
   centre of the "o", each swing smaller, and is still after 6 s. Tag's second exception to "nothing
   longer than 0.75 s". Nothing with reduced motion. */
@media (prefers-reduced-motion: no-preference) { .fp-rose svg { animation: carteo-rose 6s ease-in-out .4s 1 both; } }
@keyframes carteo-rose {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  10% { transform: translate(-50%, -50%) rotate(4deg); }
  26.67% { transform: translate(-50%, -50%) rotate(-2.9deg); }
  43.33% { transform: translate(-50%, -50%) rotate(2.1deg); }
  58.33% { transform: translate(-50%, -50%) rotate(-1.4deg); }
  73.33% { transform: translate(-50%, -50%) rotate(0.8deg); }
  86.67% { transform: translate(-50%, -50%) rotate(-0.4deg); }
  100% { transform: translate(-50%, -50%) rotate(0deg); }
}
.fp-front .fp-words { margin-top: calc(var(--name) * 0.48); }
/* A phone narrower than 390 px (Dice's frame fp-rose-phone-360): a size smaller in the words and tile. */
@media (max-width: 389px) {
  .fp-front .fp-words { font-size: 19px; }
  .fp-front .fp-tile { padding: 26px 18px 18px; }
  .fp-front .fp-tile-title { font-size: 26px; }
  .fp-front .fp-tile p { font-size: 16.5px; }
}
.fp-line { margin: 18px 20px 0; }
.fp-svg { display: block; overflow: visible; }
.fp-desk { display: none; }
.fp-words { margin: 14px 20px 0; font-size: 20px; line-height: 1.35; }
.fp-gap { flex: 1; }
.fp-tile { margin: 18px 10px 0; padding: 28px 18px 20px; }
.fp-tile p { margin: 8px 0 0; }
.fp-tile-title { font-size: 28px; line-height: 1.15; }
.fp-who { margin-top: 18px; padding-top: 16px; border-top: 1.5px solid var(--chosen); }
.fp-who p { margin: 0; }
.fp-who p + p { margin-top: 2px; }
.fp-label { font-weight: 700; }
.fp-go a { display: inline-flex; align-items: center; min-height: 44px; }
.fp-foot { margin-top: 0; padding: 18px 20px 16px; }
.fp-small { margin: 34px 20px 0; font: 400 30px/1 var(--serif); letter-spacing: -0.01em; }
.fp-lost .fp-line { margin-top: 14px; } /* the line under the name, on every page (Tag, 20 Nov, 18:58) */
.fp-headline { margin: 36px 20px 0; font-size: 44px; line-height: 1.05; text-wrap: balance; }
.fp-lost .fp-tile { padding: 26px 18px 16px; }
.fp-lost .fp-tile p:first-child { margin-top: 0; }
.fp-tile .fp-go { margin-top: 6px; }
.fp-go a { font-weight: 700; }
@media (min-width: 1240px) {
  /* The side margins (Bower's): 128 px at 1440, growing by a quarter of any extra width, and
     shrinking towards 64 px at 960 (101 px at 1240), as the name shrinks from 160 towards 112. */
  .fp { --m: max(calc(64px + (100vw - 960px) * 0.13333), calc(128px + (100vw - 1440px) * 0.25)); max-width: none; position: relative; min-height: 100vh; }
  main.fp-main { flex-direction: row; align-items: center; justify-content: space-between; gap: 48px; padding: 104px var(--m); min-height: 100vh; }
  .fp-block { min-width: 0; }
  .fp-front { --name: clamp(112px, calc(112px + (100vw - 960px) * 0.1), 160px); }
  .fp-name { margin: 0 0 0 -6px; }
  .fp-front .fp-words { margin-top: 34px; }
  .fp-line { margin: 30px 0 0; }
  .fp-phone { display: none; }
  .fp-desk { display: block; }
  .fp-words { margin: 22px 0 0; font-size: 24px; }
  .fp-gap { display: none; }
  .fp-tile { flex: none; width: 460px; margin: 0; padding: 40px 44px 36px; }
  .fp-tile p { line-height: 1.5; }
  .fp-tile-title { font-size: 32px; }
  .fp-foot { position: absolute; left: var(--m); right: var(--m); bottom: 30px; padding: 0; display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: flex-end; gap: 24px; }
  .fp-foot .wordmark { display: none; }
  .fp-foot .foot-links { gap: 28px; }
  .fp-foot .public-line { margin: 0 0 12px; }
  .fp-lost .fp-block { max-width: 640px; }
  .fp-small { margin: 0; font-size: 44px; }
  .fp-lost .fp-line { margin-top: 20px; }
  .fp-headline { margin: 44px 0 0; font-size: 72px; line-height: 1.02; }
  .fp-lost .fp-tile { padding: 40px 44px 30px; }
  .fp-tile .fp-go { margin-top: 8px; }
}
