/* Puente: one page, three looks (A cuaderno, B metro, C terminal) set by <html data-look>.
   Fonts are the site's own, self-hosted (../assets/fonts). No third parties. */

@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap;
  src: url(../assets/fonts/jetbrains-mono-400-latin.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap;
  src: url(../assets/fonts/jetbrains-mono-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+A720-A7FF; }
@font-face { font-family: 'Syncopate'; font-weight: 700; font-display: swap;
  src: url(../assets/fonts/syncopate-700-latin.woff2) format('woff2'); }
@font-face { font-family: 'Syncopate'; font-weight: 700; font-display: swap;
  src: url(../assets/fonts/syncopate-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+A720-A7FF; }

:root {
  --cream: #F4EFE6; --ink: #141414; --red: #E23D28;
  --bg: var(--cream); --fg: var(--ink); --muted: #5b564e; --accent: var(--red);
  --card: #fffaf2; --line: var(--ink);
  --ring: var(--ink); --ring-w: 4px;
  --display: 'Syncopate', 'Arial Black', sans-serif; --body: 'JetBrains Mono', ui-monospace, monospace;
  --radius: 14px; --chip-radius: 999px;
}
:root[data-look="cuaderno"] {
  --card: #fbf6ec; --ring-w: 3px;
  --radius: 4px; --chip-radius: 4px;
}
:root[data-look="terminal"] {
  --bg: #0d0d0d; --fg: var(--cream); --muted: #a39e95; --card: #171717; --line: #3a3a3a;
  --ring: var(--red); --ring-w: 2px;
  --display: 'JetBrains Mono', ui-monospace, monospace; --radius: 0; --chip-radius: 0;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 1rem; line-height: 1.45;
  -webkit-font-smoothing: antialiased; overscroll-behavior: none;
}
:root[data-look="cuaderno"] body {
  background-image: repeating-linear-gradient(to bottom, transparent 0 31px, rgba(20, 20, 20, .07) 31px 32px);
}
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--fg); color: var(--bg); padding: .5rem 1rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

main { max-width: 34rem; margin: 0 auto; min-height: 100dvh; position: relative; }
.screen { min-height: 100dvh; padding: max(1rem, env(safe-area-inset-top)) 1rem calc(5rem + env(safe-area-inset-bottom)); }
.panel { display: flex; flex-direction: column; gap: 1rem; }

/* type */
.brand { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  font-size: clamp(2.4rem, 12vw, 3.6rem); margin: .2rem 0 .4rem; line-height: 1; }
.brand.small { font-size: 1rem; margin: 0; }
:root[data-look="terminal"] .brand::before { content: '> '; color: var(--accent); }
.eyebrow { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin: 0; }
.lede { font-size: 1.1rem; }
.q { font-family: var(--display); font-weight: 700; font-size: 1.35rem; line-height: 1.2; margin: .5rem 0; text-transform: uppercase; letter-spacing: .03em; }
:root[data-look="terminal"] .q { text-transform: none; letter-spacing: 0; }
.q-help, .fine { color: var(--muted); font-size: .85rem; }
.error { color: var(--accent); min-height: 1.2em; margin: .2rem 0; }

/* welcome */
.welcome { display: flex; flex-direction: column; gap: 1rem; padding-top: 12vh; }

/* buttons and chips */
.btn { font: inherit; font-size: 1rem; min-height: 48px; padding: .7rem 1.2rem; border-radius: var(--radius);
  border: 2px solid var(--fg); background: transparent; color: var(--fg); cursor: pointer; text-align: center; }
.btn.primary { background: var(--fg); color: var(--bg); }
:root[data-look="metro"] .btn.primary, :root[data-look="terminal"] .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--cream); }
.btn.ghost { border-color: transparent; text-decoration: underline; text-underline-offset: 4px; }
.btn:disabled { opacity: .45; cursor: default; }
.answers { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0; }
.answers .group { width: 100%; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: .6rem 0 0; }
.opt { font: inherit; min-height: 44px; padding: .5rem .9rem; border-radius: var(--chip-radius); border: 2px solid var(--fg);
  background: var(--card); color: var(--fg); cursor: pointer; }
.opt[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
:root[data-look="metro"] .opt[aria-pressed="true"], :root[data-look="terminal"] .opt[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--cream); }
.field { width: 100%; font: inherit; font-size: 1.05rem; padding: .8rem; border: 2px solid var(--fg); border-radius: var(--radius);
  background: var(--card); color: var(--fg); }
.check { display: flex; gap: .6rem; align-items: center; min-height: 44px; }
.check input { width: 1.4rem; height: 1.4rem; accent-color: var(--accent); }
.step-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.step-nav .primary { flex: 1; }
.chip { display: inline-block; font-size: .8rem; padding: .25rem .7rem; border-radius: var(--chip-radius); border: 2px solid var(--accent);
  color: var(--accent); background: var(--card); margin: 0; }
.chip.tiny { font-size: .7rem; padding: .05rem .5rem; border-width: 1px; vertical-align: middle; }
.chip.demo { border-color: var(--muted); color: var(--muted); }

.progress { height: 6px; background: rgba(20, 20, 20, .12); border-radius: 3px; overflow: hidden; margin-bottom: 1rem; }
:root[data-look="terminal"] .progress { background: #262626; }
.progress-bar { display: block; height: 100%; width: 0; background: var(--accent); transition: width .25s; }

/* key */

/* bubbles */
.bubble { position: relative; border-radius: 50%; overflow: hidden; background: var(--card);
  border: var(--ring-w) solid var(--ring); aspect-ratio: 1; }
.bubble video { width: 100%; height: 100%; object-fit: cover; display: block; }
:root[data-look="terminal"] .bubble { box-shadow: 0 0 0 1px #3a1a14, 0 0 28px rgba(226, 61, 40, .35); }
:root[data-look="metro"] .bubble.target { box-shadow: 0 0 0 8px var(--bg), 0 0 0 calc(8px + var(--ring-w)) var(--ring); }
.preview-bubble { width: min(60vw, 15rem); margin: 0 auto; }

/* feed */
.feed { padding-bottom: calc(9rem + env(safe-area-inset-bottom)); }
.topbar { display: flex; justify-content: space-between; align-items: center; min-height: 2.5rem; }
.stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: .6rem;
  min-height: calc(100dvh - 12rem); touch-action: none; user-select: none; -webkit-user-select: none; }
.bridge-layer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 2; }
.label { margin-top: .4rem; }
.bubble.target { width: min(72vw, 40dvh, 22rem); margin-top: .4rem; z-index: 1; transition: transform .2s; cursor: pointer; }
.bubble.target.rise { animation: rise .45s ease-out; }
.bubble.target.pop { animation: pop .38s ease-in forwards; }
@keyframes rise { from { transform: translateY(40px) scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pop { 30% { transform: scale(1.12); } 100% { transform: scale(1.5); opacity: 0; } }
.community-face { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 18%; text-align: center; gap: .5rem; }
.community-face .platform { font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); }
.community-face .cname { font-family: var(--display); font-weight: 700; font-size: 1.15rem; line-height: 1.15; text-transform: uppercase; }
.info { width: 100%; text-align: center; z-index: 3; }
.info p { margin: .15rem 0; }
.who strong { font-family: var(--display); text-transform: uppercase; letter-spacing: .04em; }
.world, .sit { color: var(--muted); font-size: .9rem; }
.bubble.mine { width: 4.2rem; margin-top: auto; z-index: 3; flex: none; background-size: cover; background-position: center; }
.end { position: absolute; inset: 20% 0 auto; text-align: center; }
.toast { position: fixed; left: 1rem; right: 1rem; bottom: calc(8.4rem + env(safe-area-inset-bottom)); text-align: center; margin: 0 auto;
  max-width: 30rem; z-index: 6; pointer-events: none; }
.toast:not(:empty) { background: var(--fg); color: var(--bg); padding: .7rem 1rem; border-radius: var(--radius); }

/* lists */
.report { display: grid; gap: .5rem; margin-top: .5rem; }

/* tabs */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; display: flex; background: var(--bg); border-top: 2px solid var(--fg);
  padding-bottom: env(safe-area-inset-bottom); z-index: 7; max-width: 34rem; margin: 0 auto; }
.tabs button { flex: 1; font: inherit; min-height: 3.4rem; background: none; border: 0; color: var(--muted); cursor: pointer; }
.tabs button[aria-current="page"] { color: var(--fg); font-weight: 700; box-shadow: inset 0 4px 0 var(--accent); }

/* look switcher (only with ?looks=1) */
.looks { position: fixed; top: max(.5rem, env(safe-area-inset-top)); right: .5rem; z-index: 20; font-size: .75rem; max-height: 90dvh; overflow: auto; }
.looks[open] { background: var(--bg); border: 2px solid var(--fg); border-radius: 8px; padding: .4rem; display: grid; gap: .3rem; }
.looks summary { cursor: pointer; padding: .35rem .6rem; border: 2px solid var(--fg); border-radius: 6px; background: var(--bg); list-style: none; text-align: center; min-height: 32px; }
.looks-k { margin: .3rem 0 0; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.looks button { font: inherit; font-size: .75rem; cursor: pointer; padding: .35rem .6rem; border: 2px solid var(--fg); background: var(--bg); color: var(--fg); border-radius: 6px; }
.looks button[aria-pressed="true"] { background: var(--accent); color: var(--cream); border-color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* look D: a corporate wall with graffiti on it. Flat colour only: cream, ink, red, and one sticker
   yellow. Every shape has a hard ink outline and a hard offset shadow, like a sticker or a throw-up;
   no gradients, no glow. The one exception is their bubble: a clear soap film with an iridescent rim
   that never sits still (app.js moves its edge). Tone "night" swaps the wall to ink.
   Fonts: Bagel Fat One (the name), DynaPuff (titles, buttons), Nunito (text). All OFL, in fonts/. */
@font-face { font-family: 'Bagel Fat One'; font-weight: 400; font-display: swap; src: url(fonts/bagel-fat-one.woff2) format('woff2'); }
@font-face { font-family: 'DynaPuff'; font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; src: url(fonts/dynapuff.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 200 1000; font-display: swap; src: url(fonts/nunito.woff2) format('woff2'); }
:root[data-look="graffiti"] {
  --bg: var(--cream); --fg: var(--ink); --muted: #5b564e; --card: #FFFBF3; --edge: var(--ink); --line: var(--ink); --sun: #FFD23F; --accent: var(--red);
  --hard: 3px 4px 0 var(--edge);
  --logo: 'Bagel Fat One', 'DynaPuff', sans-serif; --display: 'DynaPuff', 'Nunito', sans-serif; --body: 'Nunito', system-ui, sans-serif;
  --ring: var(--edge); --ring-w: 2.5px; --radius: 16px; --chip-radius: 999px;
}
:root[data-look="graffiti"][data-tone="night"] { --bg: var(--ink); --fg: var(--cream); --muted: #A8A39B; --card: #1F1F1F; --edge: var(--cream); --line: var(--cream); }
:root[data-look="graffiti"] body { font-size: 1.05rem; font-weight: 500; }
/* letters */
:root[data-look="graffiti"] .brand { font-family: var(--logo); font-weight: 400; text-transform: none; letter-spacing: .02em; font-size: clamp(3.6rem, 20vw, 5.2rem);
  color: var(--red); -webkit-text-stroke: 5px var(--edge); paint-order: stroke fill; text-shadow: 4px 5px 0 var(--edge); padding: .05em .06em; }
:root[data-look="graffiti"] .brand.small { font-size: 1.7rem; -webkit-text-stroke-width: 3px; text-shadow: 2px 3px 0 var(--edge); padding: 0 .1em; }
:root[data-look="graffiti"] .brand::before { content: none; }
:root[data-look="graffiti"] .eyebrow { font-weight: 800; }
:root[data-look="graffiti"] .lede { font-size: 1.2rem; }
:root[data-look="graffiti"] .q { font-family: var(--display); font-weight: 650; text-transform: none; letter-spacing: 0; font-size: 1.75rem; line-height: 1.15; }
:root[data-look="graffiti"] .q-help, :root[data-look="graffiti"] .fine { font-size: .92rem; }
:root[data-look="graffiti"] .answers .group { font-weight: 800; }
:root[data-look="graffiti"] .list h3 { font-family: var(--display); font-weight: 650; text-transform: none; letter-spacing: 0; font-size: 1.15rem; }
:root[data-look="graffiti"] .who strong { font-family: var(--display); font-weight: 700; text-transform: none; letter-spacing: 0; font-size: 1.4rem; }
:root[data-look="graffiti"] .community-face .cname { font-family: var(--display); text-transform: none; }
/* stickers: buttons, chips, fields, cards */
:root[data-look="graffiti"] .btn { font-family: var(--display); font-weight: 600; border-radius: 999px; border: 2px solid var(--edge); background: var(--card); }
:root[data-look="graffiti"] .btn.primary { background: var(--red); color: var(--cream); border-color: var(--edge); box-shadow: var(--hard); }
:root[data-look="graffiti"] .btn.primary:active { transform: translate(3px, 4px); box-shadow: none; }
:root[data-look="graffiti"] .btn.ghost { background: none; border-color: transparent; text-decoration: underline; text-decoration-thickness: 2px; }
:root[data-look="graffiti"] .opt { font-weight: 700; border: 2px solid var(--edge); background: var(--card); }
:root[data-look="graffiti"] .opt[aria-pressed="true"] { background: var(--sun); color: var(--ink); border-color: var(--edge); box-shadow: 2px 3px 0 var(--edge); }
:root[data-look="graffiti"] .field { border: 2px solid var(--edge); border-radius: 999px; background: var(--card); padding: .9rem 1.2rem; }
:root[data-look="graffiti"] .progress { background: var(--card); height: 12px; border-radius: 99px; border: 2px solid var(--edge); }
:root[data-look="graffiti"] .progress-bar { background: var(--red); }
:root[data-look="graffiti"] .chip { border: 2px solid var(--edge); color: var(--fg); background: var(--card); font-weight: 700; }
:root[data-look="graffiti"] .chip.demo { color: var(--muted); border: 1.5px dashed var(--muted); background: none; transform: rotate(3deg); }
:root[data-look="graffiti"] .label { font-family: var(--display); font-weight: 700; font-size: .98rem; background: var(--sun); color: var(--ink); border: 2px solid var(--edge);
  padding: .3rem 1rem; transform: rotate(-3deg); z-index: 4; box-shadow: var(--hard); }
:root[data-look="graffiti"] .sheet { border-top: 3px solid var(--edge); border-radius: 24px 24px 0 0; }
:root[data-look="graffiti"] .toast:not(:empty) { border-radius: 999px; font-weight: 700; }
:root[data-look="graffiti"] .tabs { border-top: 2px solid var(--edge); padding: .3rem .5rem calc(.3rem + env(safe-area-inset-bottom)); gap: .3rem; }
:root[data-look="graffiti"] .tabs button { border-radius: 999px; font-family: var(--display); font-weight: 600; min-height: 2.8rem; }
:root[data-look="graffiti"] .tabs button[aria-current="page"] { background: var(--fg); color: var(--bg); box-shadow: none; }
/* every small bubble: a thin clear rim, colour inside the edge, one glare */
:root[data-look="graffiti"] .bubble { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), inset 6px 8px 16px rgba(255, 79, 184, .35), inset -6px -8px 16px rgba(79, 216, 255, .4); }
/* their bubble */
.blob, .film { display: none; }
:root[data-look="graffiti"] .bubble.target { border: 0; border-radius: 0; overflow: visible; background: none; box-shadow: none; }
:root[data-look="graffiti"] .bubble.target::before { content: ''; position: absolute; inset: -9%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 79, 184, .22) 70%, rgba(79, 216, 255, .14) 86%, transparent); }
:root[data-look="graffiti"] .bubble.target video { position: absolute; inset: 0; }
:root[data-look="graffiti"] .bubble.target .community-face { background: var(--card); }
:root[data-look="graffiti"] .film { display: block; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(closest-side, transparent 74%, rgba(255, 79, 184, .28) 86%, rgba(79, 216, 255, .5) 95%, rgba(255, 255, 255, .75) 100%),
    radial-gradient(circle at 27% 24%, rgba(255, 255, 255, .34), transparent 20%),
    radial-gradient(circle at 74% 80%, rgba(79, 216, 255, .3), transparent 22%); }
.film-irid { position: absolute; inset: -6%; border-radius: 50%; mix-blend-mode: screen; opacity: .8;
  background: conic-gradient(from 0deg, #FF4FB8, #FFD84A, #5BE7A9, #4FD8FF, #A78BFA, #FF4FB8);
  -webkit-mask-image: radial-gradient(closest-side, transparent 76%, #000 93%); mask-image: radial-gradient(closest-side, transparent 76%, #000 93%);
  animation: film-turn 14s linear infinite; }
@keyframes film-turn { to { transform: rotate(1turn); } }
.film-glare { position: absolute; inset: 8%; border-radius: 50%; border: 0 solid transparent; border-top: 9px solid rgba(255, 255, 255, .85);
  filter: blur(3px); transform: rotate(-40deg); }
.film-glint { position: absolute; right: 19%; bottom: 15%; width: 9%; height: 5%; border-radius: 50%; background: rgba(255, 255, 255, .8);
  filter: blur(2px); transform: rotate(-38deg); }
:root[data-look="graffiti"] .blob { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.blob-rim { fill: none; stroke-width: 2.5px; }
:root[data-look="graffiti"] .bubble.target.pop { animation: none; }
.drop { position: absolute; border-radius: 50%; pointer-events: none; z-index: 4; border: 1px solid rgba(255, 255, 255, .75);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .85), rgba(79, 216, 255, .3) 45%, rgba(255, 79, 184, .25)); }

/* v3 additions */
.sheet { position: fixed; left: 0; right: 0; bottom: 0; max-height: 75dvh; overflow: auto; z-index: 10; background: var(--card);
  border-top: 3px solid var(--fg); padding: 1.2rem 1rem calc(1rem + env(safe-area-inset-bottom)); max-width: 34rem; margin: 0 auto;
  display: flex; flex-direction: column; gap: .8rem; box-shadow: 0 -12px 40px rgba(0, 0, 0, .18); }
.search { display: grid; gap: .4rem; margin: .8rem 0 1.2rem; }
.search-row { display: flex; gap: .5rem; }
.search-row .field { text-transform: uppercase; }
.list h3 { font-family: var(--display); font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; margin: 1rem 0 .2rem; }
.end .btn { margin-top: 1rem; }
:root[data-look="graffiti"] .bubble.target::before { content: none; }
:root[data-look="graffiti"] .blob-rim { stroke-width: 3.5px; }
:root[data-look="graffiti"] .bubble { box-shadow: none; }
/* look D, its own colours: one main and one second, flat. ANMABE's red stays only on the ANMABE line and on errors. */
/* graffiti fills: two tones top to bottom, inside a thick ink outline, with a shine. Business: everything else is plain. */
:root[data-look="graffiti"] { --main-a: #8FE3FF; --main-b: #1B86E0; --second-a: #FFE95C; --second-b: #FF9A1F; }
:root[data-look="graffiti"][data-pal="fuego"] { --main-a: #FFD93F; --main-b: #E23D28; --second-a: #8FE3FF; --second-b: #1B86E0; }
:root[data-look="graffiti"][data-pal="chicle"] { --main-a: #FFB3D9; --main-b: #EE2F8C; --second-a: #C2F7DC; --second-b: #2DBB84; }
:root[data-look="graffiti"][data-pal="lima"] { --main-a: #DDFF6E; --main-b: #58BD17; --second-a: #CDBBFF; --second-b: #6A47EE; }
:root[data-look="graffiti"] { --main: var(--main-b); --second: var(--second-b);
  --fill-main: linear-gradient(180deg, var(--main-a) 12%, var(--main-b) 88%); --fill-second: linear-gradient(180deg, var(--second-a) 12%, var(--second-b) 88%); }
/* the name: bubble letters. Behind, a second-colour outline; then the ink outline and block shadow; on top, the fill and its shine */
:root[data-look="graffiti"] .brand { position: relative; isolation: isolate; width: fit-content; color: var(--edge);
  -webkit-text-stroke: 8px var(--edge); paint-order: stroke fill; text-shadow: 5px 7px 0 var(--edge); margin-bottom: .6rem; }
:root[data-look="graffiti"] .brand::before, :root[data-look="graffiti"] .brand::after { content: attr(data-text); position: absolute; left: 0; top: 0; padding: inherit; text-shadow: none; }
:root[data-look="graffiti"] .brand::before { z-index: -1; color: var(--second-b); -webkit-text-stroke: 17px var(--second-b); }
:root[data-look="graffiti"] .brand::after { color: transparent; -webkit-text-stroke: 0;
  background: linear-gradient(180deg, transparent 0 21%, rgba(255, 255, 255, .8) 21% 27%, transparent 27%), var(--fill-main); -webkit-background-clip: text; background-clip: text; }
:root[data-look="graffiti"] .brand.small { -webkit-text-stroke-width: 5px; text-shadow: 2px 3px 0 var(--edge); margin: 0 0 0 .3rem; }
:root[data-look="graffiti"] .brand.small::before { -webkit-text-stroke-width: 10px; }
:root[data-look="graffiti"] .btn.primary { background: var(--fill-main); color: var(--ink); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .55), var(--hard); }
:root[data-look="graffiti"] .progress-bar { background: var(--main-a); }
:root[data-look="graffiti"] .label, :root[data-look="graffiti"] .opt[aria-pressed="true"] { background: var(--fill-second); }
:root[data-look="graffiti"] .label { box-shadow: inset 0 3px 0 rgba(255, 255, 255, .6), var(--hard); }
/* spray dots beside the big name */
:root[data-look="graffiti"] .welcome .brand { margin-top: .4rem; }
:root[data-look="graffiti"] .welcome { background:
  radial-gradient(circle, var(--second-b) 0 5px, transparent 5.5px) 84% calc(12vh + 3.2rem) / 14px 14px no-repeat,
  radial-gradient(circle, var(--main-b) 0 3px, transparent 3.5px) 91% calc(12vh + 5rem) / 10px 10px no-repeat,
  radial-gradient(circle, var(--second-b) 0 2.5px, transparent 3px) 88% calc(12vh + 7.4rem) / 8px 8px no-repeat,
  radial-gradient(circle, var(--main-b) 0 4px, transparent 4.5px) 96% calc(12vh + 2.2rem) / 12px 12px no-repeat; }
:root[data-look="graffiti"] .eyebrow { font-family: 'Syncopate', sans-serif; font-size: .7rem; color: var(--fg); }
:root[data-look="graffiti"] :focus-visible { outline-color: var(--main); }
/* look D, the rules that make it one world:
   1 one line: every shape, the bubble included, is drawn with the same 2.5px ink line;
   2 one shadow: 3px 4px, hard, and only on the things you press or read first;
   3 two fills: main = the name and the one action per screen; second = what is chosen or labelled;
   4 three voices: Bagel Fat One only for the name, DynaPuff for titles and buttons, Nunito for reading;
   5 soap is for people: only bubbles carry the film. */
:root[data-look="graffiti"] { --stroke: 2.5px; }
:root[data-look="graffiti"] .btn, :root[data-look="graffiti"] .opt, :root[data-look="graffiti"] .field, :root[data-look="graffiti"] .chip,
:root[data-look="graffiti"] .label,
:root[data-look="graffiti"] .progress { border-width: var(--stroke); }
:root[data-look="graffiti"] .btn.ghost { border-color: transparent; }
:root[data-look="graffiti"] .chip.demo { border-width: 1.5px; }
:root[data-look="graffiti"] .opt[aria-pressed="true"] { box-shadow: 2px 3px 0 var(--edge); }
:root[data-look="graffiti"] .brand { -webkit-text-stroke-width: 6px; letter-spacing: .05em; text-shadow: 4px 6px 0 var(--edge); }
:root[data-look="graffiti"] .brand::before { -webkit-text-stroke-width: 14px; }
:root[data-look="graffiti"] .brand::after { background: var(--fill-main); -webkit-background-clip: text; background-clip: text; }
:root[data-look="graffiti"] .brand.small { -webkit-text-stroke-width: 4px; letter-spacing: .04em; text-shadow: 2px 3px 0 var(--edge); }
:root[data-look="graffiti"] .brand.small::before { -webkit-text-stroke-width: 8px; }
.blob-ink { fill: none; stroke: var(--edge); stroke-width: 8.5px; }
:root[data-look="graffiti"] .blob-rim { stroke-width: 3.5px; }
:root[data-look="graffiti"] .bubble { box-shadow: inset 5px 6px 12px rgba(255, 79, 184, .3), inset -5px -6px 12px rgba(79, 216, 255, .38); }
:root[data-look="graffiti"] .bubble.target { box-shadow: none; }
:root[data-look="graffiti"] .q { margin: .25rem 0 .5rem; }
:root[data-look="graffiti"] .panel { gap: 1.1rem; }
:root[data-look="graffiti"] .brand.small:not([data-app-name]) { font-family: var(--display); font-weight: 650; font-size: 1.5rem; letter-spacing: 0; color: var(--fg); -webkit-text-stroke: 0; text-shadow: none; margin: 0; }
:root[data-look="graffiti"] .brand.small:not([data-app-name])::before, :root[data-look="graffiti"] .brand.small:not([data-app-name])::after { content: none; }
/* colour, corrected: ONE hue. The app owns a single colour, soap blue, used light to dark like a graffiti fill.
   Everything else is neutral (ink, cream) or a pale tint of that same blue. No second hue anywhere in the interface;
   the only other colours on screen are the bubble's film, the person's video, and ANMABE's red signature. */
:root[data-look="graffiti"], :root[data-look="graffiti"][data-pal] {
  --tint: color-mix(in srgb, var(--main-a) 45%, #fff); --deep: color-mix(in srgb, var(--main-b) 62%, var(--ink));
  --second-a: var(--tint); --second-b: var(--deep); --fill-second: var(--tint); }
:root[data-look="graffiti"] .opt[aria-pressed="true"] { background: var(--fg); color: var(--bg); box-shadow: none; }
:root[data-look="graffiti"] .label { box-shadow: var(--hard); }
/* their bubble, as it was: film and rim only, no ink line */
:root[data-look="graffiti"] .blob-ink { display: none; }
:root[data-look="graffiti"] .blob-rim { stroke-width: 2.5px; }
/* soap is for other people: your own bubble (feed, photo, pitch, Tú) is a plain ink circle */
:root[data-look="graffiti"] .bubble.mine { box-shadow: none; }
:root[data-look="graffiti"][data-pal="agua"] { --main-a: #9BF3E4; --main-b: #0FA596; }
:root[data-look="graffiti"][data-pal="verde"] { --main-a: #B4F2A6; --main-b: #1FA046; }
/* the name, grown up: ink letters, no outlines, one hard shadow in the app's colour */
:root[data-look="graffiti"] { --main-a: #9BF3E4; --main-b: #0FA596; }
:root[data-look="graffiti"] .brand[data-app-name] { font-family: var(--display); font-weight: 700; font-stretch: 85%; letter-spacing: -.01em;
  font-size: clamp(2.9rem, 15vw, 4rem); color: var(--fg); -webkit-text-stroke: 0; text-shadow: 3px 4px 0 var(--main-b); padding: 0; margin: .3rem 0 .8rem; }
:root[data-look="graffiti"] .brand.small[data-app-name] { font-size: 1.5rem; text-shadow: 2px 2px 0 var(--main-b); margin: 0; }
:root[data-look="graffiti"] .brand[data-app-name]::before, :root[data-look="graffiti"] .brand[data-app-name]::after { content: none; }
:root[data-look="graffiti"] .welcome { background: none; }
/* Bubrí: the owner's logo (logo.webp, icon.webp), and a feed with more nerve: a bigger bubble, the sticker
   stuck on its edge with spark marks, the person's name big and left like a headline */
:root[data-look="graffiti"] .brand[data-app-name] { font-size: 0; color: transparent; text-shadow: none; background: url(logo.webp) left center / contain no-repeat;
  width: min(74vw, 19rem); aspect-ratio: 720 / 343; margin: .2rem 0 .6rem -.4rem; }
:root[data-look="graffiti"] .brand.small[data-app-name] { width: 6.4rem; margin: 0 0 0 -.2rem; }
:root[data-look="graffiti"] .feed .topbar { min-height: 3.2rem; }
:root[data-look="graffiti"] .bubble.target { width: min(84vw, 43dvh, 23rem); margin-top: 0; }
:root[data-look="graffiti"] .label { align-self: flex-end; margin: 0 .2rem -2.1rem 0; transform: rotate(5deg); background: var(--main-a); font-size: 1rem; border-radius: 8px; padding: .3rem .8rem; }
:root[data-look="graffiti"] .label::after { content: ''; position: absolute; right: -26px; top: -16px; width: 26px; height: 26px; background: url(sparks.svg) center / contain no-repeat; transform: scaleX(-1); }
:root[data-look="graffiti"][data-tone="night"] .label::after { filter: invert(1); }
:root[data-look="graffiti"] .info { text-align: left; padding: 0 .3rem; }
:root[data-look="graffiti"] .who strong { display: block; font-family: var(--body); font-weight: 900; font-size: 2.1rem; line-height: 1.05; letter-spacing: -.02em; }
:root[data-look="graffiti"] .who .world { margin-left: -.35em; }
:root[data-look="graffiti"] .brand.small[data-app-name] { font-size: 0; text-shadow: none; }
:root[data-look="graffiti"] .feed { overflow-x: clip; }
:root[data-look="graffiti"] .label { margin-right: 1.2rem; }
/* buttons, redone: the business half. Clean heavy sans, flat, thin ink line, no shadow, no puffy letters.
   Puffy letters and hard shadows stay on the logo and the stickers only. */
:root[data-look="graffiti"] .btn { font-family: var(--body); font-weight: 800; font-size: 1rem; letter-spacing: 0; min-height: 46px; padding: .55rem 1.1rem;
  border: 2px solid var(--edge); background: var(--card); box-shadow: none; }
:root[data-look="graffiti"] .btn.primary { background: var(--main-a); color: var(--ink); box-shadow: none; }
:root[data-look="graffiti"] .btn.primary:active, :root[data-look="graffiti"] .btn:active { transform: scale(.97); box-shadow: none; }
:root[data-look="graffiti"] .btn.ghost { background: none; border-color: transparent; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
:root[data-look="graffiti"] .opt { font-weight: 700; border-width: 2px; }
:root[data-look="graffiti"] .opt[aria-pressed="true"] { background: var(--main-a); color: var(--ink); border-color: var(--edge); box-shadow: none; }
:root[data-look="graffiti"] .tabs { padding: .2rem .5rem calc(.2rem + env(safe-area-inset-bottom)); }
:root[data-look="graffiti"] .tabs button { font-family: var(--body); font-weight: 800; font-size: .95rem; border-radius: 0; color: var(--muted); background: none; }
:root[data-look="graffiti"] .tabs button[aria-current="page"] { background: none; color: var(--fg); box-shadow: inset 0 -4px 0 var(--main-b); }
.world::before { content: '· '; }
:root[data-look="graffiti"] .world::before { content: none; }
:root[data-look="graffiti"] .who .world { margin-left: 0; }
/* computer: the app is a cream column standing on an aqua wall */
@media (min-width: 46rem) {
  :root[data-look="graffiti"] body { background: var(--main-a); }
  :root[data-look="graffiti"] main { background: var(--bg); border-left: var(--stroke) solid var(--edge); border-right: var(--stroke) solid var(--edge); }
  :root[data-look="graffiti"] .screen { padding-left: 2rem; padding-right: 2rem; }
  :root[data-look="graffiti"] .tabs, :root[data-look="graffiti"] .sheet { max-width: calc(34rem - 5px); }
  :root[data-look="graffiti"] .welcome { padding-top: 8vh; }
  :root[data-look="graffiti"] .btn:hover, :root[data-look="graffiti"] .opt:hover { box-shadow: 2px 3px 0 var(--edge); transform: translate(-1px, -1px); }
  :root[data-look="graffiti"] .btn.ghost:hover { box-shadow: none; transform: none; }
}
@media (min-width: 46rem) { :root[data-look="graffiti"] .bubble.target { width: min(36dvh, 23rem); } }
:root[data-look="graffiti"] .bubble.target { transition: transform .12s ease-out; }

/* ---- motion: everything moves on springs, like things with weight. One curve for a lively spring, one for a calm one. */
:root[data-look="graffiti"] { --spring: linear(0, .25 6%, .68 13%, 1.02 21%, 1.17 28%, 1.2 33%, 1.14 41%, 1.03 51%, .97 61%, .98 72%, 1 86%, 1);
  --spring-soft: linear(0, .4 10%, .8 22%, 1.03 36%, 1.05 46%, 1.01 62%, 1); --fall: cubic-bezier(.5, 0, .9, .45); }
@keyframes screen-in { from { translate: 0 18px; opacity: 0; } }
@keyframes breathe { 50% { scale: 1.017; } }
@keyframes slap { from { scale: 1.8; opacity: 0; } }
@keyframes pick { from { scale: .88; } }
@keyframes sheet-in { from { translate: 0 100%; } }
@keyframes toast-in { from { translate: 0 22px; scale: .9; opacity: 0; } }
@keyframes gulp { 35% { scale: 1.32; } }
@keyframes merge { 25% { scale: 1.9; } 60% { scale: 1.7; } }
:root[data-look="graffiti"] .welcome, :root[data-look="graffiti"] .step, :root[data-look="graffiti"] .panel, :root[data-look="graffiti"] .end { animation: screen-in .5s var(--spring-soft); }
:root[data-look="graffiti"] .bubble.target { animation: breathe 5.5s ease-in-out infinite; }
:root[data-look="graffiti"] .bubble.target.rise { animation: rise .5s var(--spring); }
:root[data-look="graffiti"] .bubble.target.pop { animation: none; }
:root[data-look="graffiti"] .bubble.mine.gulp { animation: gulp .6s var(--spring); }
:root[data-look="graffiti"] .bubble.mine.merge { animation: merge 1s var(--spring); }
:root[data-look="graffiti"] .label:not([hidden]) { animation: slap .5s var(--spring); }
:root[data-look="graffiti"] .btn, :root[data-look="graffiti"] .opt, :root[data-look="graffiti"] .tabs button { transition: scale .35s var(--spring), box-shadow .2s, background-color .2s; }
:root[data-look="graffiti"] .btn:active, :root[data-look="graffiti"] .opt:active, :root[data-look="graffiti"] .tabs button:active { scale: .93; transform: none; }
:root[data-look="graffiti"] .opt[aria-pressed="true"] { animation: pick .4s var(--spring); }
:root[data-look="graffiti"] .sheet:not([hidden]) { animation: sheet-in .55s var(--spring-soft); box-shadow: 0 60px 0 var(--card), 0 -12px 40px rgba(0, 0, 0, .18); }
:root[data-look="graffiti"] .toast:not(:empty) { animation: toast-in .45s var(--spring); }
:root[data-look="graffiti"] .progress-bar { transition: width .6s var(--spring-soft); }
/* ---- icons (masks: they take the colour of the text) */
:root[data-look="graffiti"] .tabs button, .actions .btn { display: flex; align-items: center; justify-content: center; }
:root[data-look="graffiti"] .tabs button { flex-direction: column; gap: 2px; font-size: .72rem; min-height: 3.4rem; box-shadow: none; }
:root[data-look="graffiti"] .tabs button::before, .actions .btn::before { content: ''; width: 24px; height: 24px; flex: none; background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
:root[data-look="graffiti"] .tabs button[aria-current="page"] { box-shadow: none; }
:root[data-look="graffiti"] .tabs button[aria-current="page"]::before { color: var(--main-b); }
:root[data-look="graffiti"] [data-tab="feed"] { --i: url(i-bubbles.svg); } :root[data-look="graffiti"] [data-tab="bridges"] { --i: url(i-bridge.svg); } :root[data-look="graffiti"] [data-tab="me"] { --i: url(i-me.svg); }
[data-pop] { --i: url(i-pop.svg); } [data-skip] { --i: url(i-later.svg); } [data-bridge-btn] { --i: url(i-bridge.svg); }
/* ---- spacing: an 8-point rhythm */
:root[data-look="graffiti"] .screen { padding-top: max(1rem, env(safe-area-inset-top)); }
:root[data-look="graffiti"] .feed .topbar { min-height: 3rem; margin-bottom: .25rem; }
:root[data-look="graffiti"] .stage { gap: .5rem; }
:root[data-look="graffiti"] .info { padding: 0 .5rem; margin-top: .5rem; }
:root[data-look="graffiti"] .info p { margin: .25rem 0; }
:root[data-look="graffiti"] .welcome { gap: 1.25rem; }
:root[data-look="graffiti"] .answers { gap: .5rem; } :root[data-look="graffiti"] .step-nav { margin-top: 1.5rem; }
:root[data-look="graffiti"] .list h3 { margin: 1.5rem 0 .5rem; }
/* ==== round 4: the feed has no action row. Their bubble, what they say, and under it the tray «Hoy»:
   one small bubble per person shown today, then your own circle, where bridges start.
   The screen is one fixed column (bar, stage, tray), so nothing can land on top of anything. */
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.feed,
:root[data-look="graffiti"] .feed {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  padding-bottom: calc(3.9rem + env(safe-area-inset-bottom));
}
.feed .topbar {
  flex: none;
}
.stage,
:root[data-look="graffiti"] .stage {
  flex: 1 1 0;
  min-height: 0;
  --gap: 0.5rem;
  gap: var(--gap);
  --tw: max(7rem, min(84vw, 23rem, 100dvh - 26.5rem));
}
@media (min-width: 46rem) {
  .stage,
  :root[data-look="graffiti"] .stage {
    --tw: max(7rem, min(36dvh, 23rem, 100dvh - 26.5rem));
  }
}
.bubble.target,
:root[data-look="graffiti"] .bubble.target {
  width: var(--tw);
  flex: none;
}
.bubble.target.past {
  cursor: default;
}
.bubble.target.was-pop,
:root[data-look="graffiti"] .bubble.target.was-pop {
  animation: none;
  filter: grayscale(1);
}
.bubble.target.was-pop .film-irid {
  animation: none;
  opacity: 0.35;
}
:root[data-look="graffiti"] .label.was {
  background: var(--card);
}

/* sound: one small round switch on the lower left edge of their bubble, off the face */
.sound {
  position: relative;
  z-index: 3;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--edge, var(--fg));
  background: var(--card);
  color: var(--fg);
  cursor: pointer;
  display: grid;
  place-items: center;
  --i: url(i-mute.svg);
  margin: calc(var(--tw) * -0.1464 - 3.6px - var(--gap)) 0
    calc(var(--tw) * 0.1464 - 40.4px);
  translate: calc(var(--tw) * -0.3536 - 18.4px) 0;
  transition:
    scale 0.35s var(--spring, ease-out),
    background-color 0.2s;
}
.sound::before {
  content: "";
  width: 22px;
  height: 22px;
  background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat;
  mask: var(--i) center / contain no-repeat;
}
.sound[aria-pressed="true"] {
  --i: url(i-sound.svg);
  background: var(--main-a, var(--card));
  color: var(--ink, var(--fg));
}
.sound:active {
  scale: 0.9;
}

/* what they say: it gives way before anything else does */
.info,
:root[data-look="graffiti"] .info {
  position: relative;
  flex: 0 1 auto;
  min-height: 0;
  overflow: hidden;
  margin-top: 0;
}
.info.clipped {
  -webkit-mask-image: linear-gradient(#000 calc(100% - 2.2rem), transparent);
  mask-image: linear-gradient(#000 calc(100% - 2.2rem), transparent);
}
.info .who {
  padding-right: 4.6rem;
}
.info.past .who {
  padding-right: 9.6rem;
}
.info-btns {
  position: absolute;
  top: 6px;
  right: 8px;
  display: flex;
  gap: 0.4rem;
  z-index: 1;
}
.info-btns .btn,
:root[data-look="graffiti"] .info-btns .btn {
  min-height: 44px;
  padding: 0 0.9rem;
  font-size: 0.9rem;
  text-decoration: none;
}
.contact {
  font-weight: 700;
  overflow-wrap: anywhere;
}

/* the tray */
.tray-wrap {
  position: relative;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 0.1rem 0 0.5rem;
}
.tray-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}
.tray {
  position: relative;
  display: flex;
  gap: 0.5rem;
  width: 100%;
  padding: 12px 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.tray::-webkit-scrollbar {
  display: none;
}
.tray > :first-child {
  margin-left: auto;
}
.tray > :last-child {
  margin-right: auto;
}
.tray-wrap .bubble.mine,
:root[data-look="graffiti"] .tray-wrap .bubble.mine {
  width: 3.25rem;
  margin: 0;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.th {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--fg);
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    scale 0.35s var(--spring, ease-out),
    opacity 0.2s;
}
.th-face {
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  overflow: hidden;
  background: var(--tint, var(--card)) center / cover no-repeat;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 1.05rem;
  line-height: 1;
}
/* the soap on a small bubble: a thin iridescent rim that follows the edge, and one glare. No ink line. */
.th::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2.5px;
  pointer-events: none;
  opacity: 0.5;
  background: conic-gradient(
    from 20deg,
    #ff4fb8,
    #ffd84a,
    #5be7a9,
    #4fd8ff,
    #a78bfa,
    #ff4fb8
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0);
}
.th::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 20%;
  top: 13%;
  width: 30%;
  height: 13%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  filter: blur(1px);
  rotate: -32deg;
  pointer-events: none;
}
/* not seen yet: an empty place */
.th.is-new .th-face {
  background: none;
  border: 2px dashed color-mix(in srgb, var(--fg) 38%, transparent);
}
.th.is-new::before,
.th.is-new::after,
.th.is-pop::before,
.th.is-pop::after {
  content: none;
}
/* burst: black and white, flat, still */
.th.is-pop .th-face {
  filter: grayscale(1) contrast(0.9);
  opacity: 0.8;
}
/* ahora no: in colour, still, dimmed */
.th.is-skip {
  opacity: 0.5;
}
/* a bridge: alive. The edge wobbles like a film of soap. */
.th.is-bridge,
.th.is-connection,
.th.is-save {
  animation: th-wobble 4.2s ease-in-out infinite;
}
.th.is-bridge::after,
.th.is-connection::after,
.th.is-save::after {
  opacity: 1;
}
.th.is-connection {
  animation-duration: 3.1s;
}
@keyframes th-wobble {
  0%,
  100% {
    border-radius: 50%;
  }
  25% {
    border-radius: 57% 43% 54% 46% / 45% 56% 44% 55%;
  }
  50% {
    border-radius: 46% 54% 44% 56% / 55% 45% 57% 43%;
  }
  75% {
    border-radius: 54% 46% 57% 43% / 48% 53% 47% 52%;
  }
}
/* the one in the big bubble now */
.th[aria-current="true"] {
  scale: 1.16;
  opacity: 1;
  outline: 2px solid var(--edge, var(--fg));
  outline-offset: 2px;
}
.th:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.th:active {
  scale: 0.92;
}

/* soap beads: the bridge you draw, and the small bridges in the tray. Clear inside, a thin film, one glare. They do not move. */
.bead-fill {
  fill: url(#bead-clear);
}
.bead-rim {
  fill: none;
  stroke: url(#bead-film);
  stroke-width: 1.8px;
}
.bead.small .bead-rim {
  stroke-width: 1.2px;
}
.bead-glare {
  fill: rgba(255, 255, 255, 0.92);
}
.bead-in {
  animation: bead-in 0.2s var(--spring, ease-out) backwards;
}
.bead-out {
  animation: bead-out 0.13s ease-out forwards;
}
[data-chain].locked .bead-rim {
  stroke-width: 2.4px;
}
@keyframes bead-in {
  from {
    transform: scale(0);
  }
}
@keyframes bead-out {
  to {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* a button for every gesture, for keyboards and screen readers: out of sight until one of them takes focus */
.actions {
  position: fixed;
  left: 50%;
  translate: -50% 0;
  bottom: calc(13.4rem + env(safe-area-inset-bottom));
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.3rem;
  width: max-content;
  max-width: calc(100vw - 1rem);
  background: var(--card);
  border: 2px solid var(--edge, var(--fg));
  border-radius: 26px;
  opacity: 0;
  pointer-events: none;
}
.actions:focus-within {
  opacity: 1;
  pointer-events: auto;
}
.actions .btn,
:root[data-look="graffiti"] .actions .btn {
  min-height: 44px;
  padding: 0.25rem 0.6rem;
  gap: 0.35rem;
  font-size: 0.8rem;
  white-space: nowrap;
  text-decoration: none;
  border-color: transparent;
  border-radius: 999px;
}
.actions .btn::before {
  width: 18px;
  height: 18px;
}
.actions .btn[aria-disabled="true"] {
  opacity: 0.4;
  cursor: default;
}
:root[data-look="graffiti"] .toast {
  bottom: calc(13.4rem + env(safe-area-inset-bottom));
}

@media (prefers-reduced-motion: reduce) {
  .th.is-bridge,
  .th.is-connection,
  .th.is-save,
  .film-irid,
  :root[data-look="graffiti"] .bubble.target {
    animation: none;
  }
}

/* ---- welcome picture, choice icons, topic groups, languages, contact fields (round 4) ---- */
/* icons: data-i="name" on the element, drawn as a mask in the colour of the text */
[data-i="rocket"] { --i: url(i-rocket.svg); }
[data-i="bulb"] { --i: url(i-bulb.svg); }
[data-i="search"] { --i: url(i-search.svg); }
[data-i="camera"] { --i: url(i-camera.svg); }
[data-i="trophy"] { --i: url(i-trophy.svg); }
[data-i="book"] { --i: url(i-book.svg); }
[data-i="dumbbell"] { --i: url(i-dumbbell.svg); }
[data-i="code"] { --i: url(i-code.svg); }
[data-i="chip"] { --i: url(i-chip.svg); }
[data-i="pencil"] { --i: url(i-pencil.svg); }
[data-i="box"] { --i: url(i-box.svg); }
[data-i="briefcase"] { --i: url(i-briefcase.svg); }
[data-i="tag"] { --i: url(i-tag.svg); }
[data-i="megaphone"] { --i: url(i-megaphone.svg); }
[data-i="coin"] { --i: url(i-coin.svg); }
[data-i="chart"] { --i: url(i-chart.svg); }
[data-i="doc"] { --i: url(i-doc.svg); }
[data-i="checklist"] { --i: url(i-checklist.svg); }
[data-i="calendar"] { --i: url(i-calendar.svg); }
[data-i="people"] { --i: url(i-people.svg); }
[data-i="medal"] { --i: url(i-medal.svg); }
[data-i="smile"] { --i: url(i-smile.svg); }
[data-i="laptop"] { --i: url(i-laptop.svg); }
[data-i="factory"] { --i: url(i-factory.svg); }
[data-i="flask"] { --i: url(i-flask.svg); }
[data-i="heart"] { --i: url(i-heart.svg); }
[data-i="building"] { --i: url(i-building.svg); }
[data-i="scales"] { --i: url(i-scales.svg); }
[data-i="chat"] { --i: url(i-chat.svg); }
[data-i="cap"] { --i: url(i-cap.svg); }
[data-i="palette"] { --i: url(i-palette.svg); }
[data-i="column"] { --i: url(i-column.svg); }
[data-i="leaf"] { --i: url(i-leaf.svg); }
[data-i="wrench"] { --i: url(i-wrench.svg); }
[data-i="hammer"] { --i: url(i-hammer.svg); }
[data-i="message"] { --i: url(i-message.svg); }
[data-i="phone"] { --i: url(i-phone.svg); }
[data-i="coffee"] { --i: url(i-coffee.svg); }
[data-i="ball"] { --i: url(i-ball.svg); }
[data-i="instagram"] { --i: url(i-instagram.svg); }
[data-i="tiktok"] { --i: url(i-tiktok.svg); }
[data-i="mail"] { --i: url(i-mail.svg); }
[data-i="plus"] { --i: url(i-plus.svg); }
[data-i="x"] { --i: url(i-x.svg); }
[data-i="bridge"] { --i: url(i-bridge.svg); }
[data-i="me"] { --i: url(i-me.svg); }
[data-i="bubbles"] { --i: url(i-bubbles.svg); }
.opt[data-i]::before, .btn[data-i]::before, .icon-btn::before, .cfield::before, a.contact::before, .how3 li::before {
  content: ''; width: 24px; height: 24px; flex: none; background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.opt[data-i], .btn[data-i] { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; text-align: left; }
.answers > .opt[data-i]::before { width: 20px; height: 20px; }

/* tiles: the goal and the worlds (icon above the word) and the topic groups */
.answers.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; width: 100%; }
.answers.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.answers.tiles-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.answers.tiles .opt, :root[data-look="graffiti"] .answers.tiles .opt { position: relative; flex-direction: column; gap: .3rem; min-height: 5.4rem; padding: .6rem .35rem;
  border-radius: 16px; text-align: center; line-height: 1.15; overflow-wrap: anywhere; }
.answers.tiles .opt::before { width: 30px; height: 30px; }
.answers.tiles-3 .opt, .answers.tiles-4 .opt { font-size: .8rem; min-height: 5.6rem; }
.answers.tiles-4 .opt, :root[data-look="graffiti"] .answers.tiles-4 .opt { min-height: 4.6rem; padding: .5rem .2rem; }
.answers.tiles-4 .opt::before { width: 26px; height: 26px; }

/* topics: three slots, group tiles with a count, one open panel */
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; width: 100%; }
.slot { min-height: 44px; border-radius: 999px; }
.slot.empty { border: 2px dashed var(--muted); opacity: .55; }
.opt.slot, :root[data-look="graffiti"] .opt.slot { flex-direction: row-reverse; justify-content: space-between; gap: .2rem; padding: .3rem .5rem .3rem .8rem; font-size: .85rem;
  background: var(--main-a, var(--card)); color: var(--ink, var(--fg)); min-width: 0; line-height: 1.1; overflow-wrap: anywhere; }
.opt.slot::before { width: 16px; height: 16px; }
.tiles .opt[aria-expanded="true"], :root[data-look="graffiti"] .tiles .opt[aria-expanded="true"] { background: var(--tint, var(--card)); color: var(--ink, var(--fg)); box-shadow: none; }
.tiles .opt .n { position: absolute; top: -.45rem; right: -.3rem; min-width: 1.5rem; height: 1.5rem; padding: 0 .3rem; border-radius: 999px; display: grid; place-items: center;
  font-size: .8rem; font-weight: 800; background: var(--main-a, var(--fg)); color: var(--ink, var(--bg)); border: 2px solid var(--edge, var(--fg)); }
.tiles .opt .n:empty { display: none; }
.topic-panel { width: 100%; margin: .2rem 0 0; padding-top: .7rem; border-top: 2px solid var(--edge, var(--fg)); }

/* languages */
.lang-rows { display: grid; gap: .8rem; width: 100%; }
.lang-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .1rem .5rem; width: 100%; }
.lang-row .lang { min-width: 0; font-weight: 800; font-size: 1.05rem; text-transform: capitalize; }
.lang-row .levels { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .4rem; }
.lang-row .opt, :root[data-look="graffiti"] .lang-row .opt { min-height: 44px; padding: .4rem .8rem; font-size: .9rem; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.icon-btn::before { width: 20px; height: 20px; }
.icon-btn:hover { color: var(--fg); }
.btn.add, :root[data-look="graffiti"] .btn.add { min-height: 44px; padding: .4rem 1rem .4rem .8rem; font-size: .95rem; border-style: dashed; }
.btn.add[aria-expanded="true"], :root[data-look="graffiti"] .btn.add[aria-expanded="true"] { background: var(--tint, var(--card)); border-style: solid; }
.btn.add::before { width: 20px; height: 20px; }
.lang-more { width: 100%; margin: 0; }

/* contact: one field per way of writing to you */
.cfield { display: flex; align-items: center; gap: .6rem; width: 100%; min-height: 44px; }
.cfield .field, :root[data-look="graffiti"] .cfield .field { flex: 1; min-width: 0; padding: .65rem 1rem; font-size: 1rem; }
.contacts { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0 .9rem; vertical-align: middle; }
a.contact { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; font-weight: 800; color: inherit; text-underline-offset: 3px; overflow-wrap: anywhere; }
a.contact::before { width: 20px; height: 20px; }

/* welcome: the picture instead of the three sentences. Sizes in em, the box sets the scale from the height of the screen. */
.welcome .demo { position: relative; width: 100%; height: 13.4em; font-size: clamp(10px, 1.85dvh, 15px); flex: none; }
.demo-them { position: absolute; top: 0; left: 50%; width: 5.6em; height: 5.6em; margin-left: -2.8em; border-radius: 50%; overflow: hidden;
  background: var(--tint, var(--card)); animation: demo-them 5s ease-in-out infinite; }
.demo-them::before { content: ''; position: absolute; inset: 22%; background: var(--deep, var(--fg)); opacity: .55;
  -webkit-mask: url(i-me.svg) center / contain no-repeat; mask: url(i-me.svg) center / contain no-repeat; }
.demo-them .film-glare { border-top-width: .32em; filter: blur(1px); }
.demo-them .film-glint { filter: blur(1px); }
.demo-me { position: absolute; bottom: 0; left: 50%; width: 3.3em; height: 3.3em; margin-left: -1.65em; border-radius: 50%; display: grid; place-items: center;
  background: var(--card); border: var(--stroke, 2px) solid var(--edge, var(--fg)); font-family: var(--display); font-weight: 650; line-height: 1;
  animation: demo-me 5s ease-in-out infinite; }
.demo-bead { position: absolute; left: 50%; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2 + var(--x)); border-radius: 50%;
  background: conic-gradient(from 200deg, #FF4FB8, #FFD84A, #5BE7A9, #4FD8FF, #A78BFA, #FF4FB8);
  -webkit-mask: radial-gradient(closest-side, rgba(0, 0, 0, .28) 70%, #000 74%); mask: radial-gradient(closest-side, rgba(0, 0, 0, .28) 70%, #000 74%);
  animation: 5s ease-out infinite; }
.demo-bead.b1 { --s: .9em; --x: .1em; top: 9.65em; animation-name: demo-b1; }
.demo-bead.b2 { --s: .7em; --x: .55em; top: 8.75em; animation-name: demo-b2; }
.demo-bead.b3 { --s: .95em; --x: .6em; top: 7.85em; animation-name: demo-b3; }
.demo-bead.b4 { --s: .7em; --x: .3em; top: 6.95em; animation-name: demo-b4; }
.demo-bead.b5 { --s: .85em; --x: 0em; top: 6.1em; animation-name: demo-b5; }
@keyframes demo-b1 { 0%, 6% { scale: 0; } 9% { scale: 1.2; } 11%, 59% { scale: 1; opacity: 1; } 62%, 100% { scale: 0; opacity: 0; } }
@keyframes demo-b2 { 0%, 12% { scale: 0; } 15% { scale: 1.2; } 17%, 56% { scale: 1; opacity: 1; } 59%, 100% { scale: 0; opacity: 0; } }
@keyframes demo-b3 { 0%, 18% { scale: 0; } 21% { scale: 1.2; } 23%, 53% { scale: 1; opacity: 1; } 56%, 100% { scale: 0; opacity: 0; } }
@keyframes demo-b4 { 0%, 24% { scale: 0; } 27% { scale: 1.2; } 29%, 50% { scale: 1; opacity: 1; } 53%, 100% { scale: 0; opacity: 0; } }
@keyframes demo-b5 { 0%, 30% { scale: 0; } 33% { scale: 1.2; } 35%, 47% { scale: 1; opacity: 1; } 50%, 100% { scale: 0; opacity: 0; } }
@keyframes demo-them {
  0%, 38% { transform: none; opacity: 1; }
  45% { transform: translateY(.5em) scale(1.03, .97); opacity: 1; animation-timing-function: cubic-bezier(.5, 0, .9, .45); }
  62% { transform: translateY(8.95em) scale(.22); opacity: 1; }
  64%, 86% { transform: translateY(8.95em) scale(.1); opacity: 0; }
  87% { transform: scale(.4); opacity: 0; }
  94% { transform: scale(1.06); opacity: 1; }
  100% { transform: none; opacity: 1; }
}
@keyframes demo-me {
  0%, 61% { scale: 1; background-color: var(--card); }
  66% { scale: 1.22; background-color: var(--main-a, var(--card)); }
  72% { scale: .96; background-color: var(--main-a, var(--card)); }
  78%, 86% { scale: 1; background-color: var(--main-a, var(--card)); }
  94%, 100% { scale: 1; background-color: var(--card); }
}
.how3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.how3 li { display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center; font-weight: 800; font-size: .82rem; line-height: 1.15; }
.how3 li::before { width: 26px; height: 26px; color: var(--main-b, currentColor); }
:root[data-look="graffiti"] .welcome { padding-top: 1vh; gap: clamp(.6rem, 1.8dvh, 1.1rem); }
:root[data-look="graffiti"] .welcome .brand[data-app-name] { width: min(56vw, 24dvh, 14rem); margin: 0 0 0 -.3rem; }
:root[data-look="graffiti"] .welcome .lede { font-size: 1.15rem; font-weight: 800; margin: 0; }
:root[data-look="graffiti"] .welcome .fine { font-size: .74rem; line-height: 1.35; margin: 0; }
@media (min-width: 46rem) {
  :root[data-look="graffiti"] .welcome { padding-top: 3vh; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-them, .demo-me, .demo-bead { animation: none; }
}
.answers.tiles .opt { display: flex; align-items: center; justify-content: center; }

/* --- Tú (the public profile), Ajustes (private things and the app), the app's own confirmation --- */
[data-i="gear"] { --i: url(i-gear.svg); }
[data-i="back"] { --i: url(i-back.svg); }
[data-i="copy"] { --i: url(i-copy.svg); }
[data-i="trash"] { --i: url(i-trash.svg); }
[data-i="exit"] { --i: url(i-exit.svg); }
.tag[data-i]::before { content: ''; width: 18px; height: 18px; flex: none; background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.topbar.sub { justify-content: flex-start; gap: .75rem; }
h1.brand.small { line-height: 1.2; }
.icon-btn.line { flex: none; color: var(--fg); border: 2px solid var(--edge, var(--fg)); background: var(--card); }
.icon-btn.line.done { background: var(--main-a, var(--card)); color: var(--ink, var(--fg)); }
.btn.done, :root[data-look="graffiti"] .btn.done { background: var(--main-a, var(--card)); color: var(--ink, var(--fg)); }
[data-screen="me"] .topbar, [data-screen="settings"] .topbar { min-height: 3rem; margin-bottom: 1rem; }
.profile, .settings, :root[data-look="graffiti"] .profile, :root[data-look="graffiti"] .settings { gap: 1rem; padding-bottom: 1rem; }
.profile p, .settings p { margin: 0; }
.sec { display: grid; gap: .5rem; padding-top: 1rem; border-top: 2px solid var(--edge, var(--fg)); }
.sec .k, .set .k, .danger-zone .k { color: var(--muted); font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.sec.goal .tags + .k { margin-top: .5rem; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag { display: inline-flex; align-items: center; gap: .35rem; min-height: 2rem; padding: .2rem .75rem; border: 2px solid var(--edge, var(--fg)); border-radius: 999px;
  background: var(--card); font-weight: 800; font-size: .9rem; line-height: 1.15; overflow-wrap: anywhere; }
.tag.on { background: var(--main-a, var(--card)); color: var(--ink, var(--fg)); }
.code-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .5rem .5rem .5rem 1rem;
  border: 2px dashed var(--edge, var(--fg)); border-radius: 16px; background: var(--card); }
.code-row strong { font-size: 1.15rem; letter-spacing: .04em; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }

.set { display: grid; gap: .5rem; padding: 1rem; border: 2px solid var(--edge, var(--fg)); border-radius: 16px; background: var(--card); }
.set .row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; }
.set .row p { font-weight: 800; }
.switch { position: relative; flex: none; width: 3.5rem; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.switch::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.9rem; translate: 0 -50%; border: 2px solid var(--edge, var(--fg));
  border-radius: 999px; background: var(--bg); transition: background-color .2s; }
.switch::after { content: ''; position: absolute; left: .4rem; top: 50%; width: 1.1rem; height: 1.1rem; translate: 0 -50%; border-radius: 50%;
  background: var(--fg); transition: translate .3s var(--spring, ease-out); }
.switch[aria-checked="true"]::before { background: var(--main-a, var(--fg)); }
.switch[aria-checked="true"]::after { translate: 1.6rem -50%; background: var(--ink, var(--bg)); }
.danger-zone { display: grid; gap: .5rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 2px dashed var(--edge, var(--fg)); }

.scrim { position: fixed; inset: 0; z-index: 11; background: rgba(20, 20, 20, .5); }
.sheet.confirm { z-index: 12; gap: 1rem; padding: 1.5rem 1rem calc(1.5rem + env(safe-area-inset-bottom)); }
.sheet.confirm p, .sheet.confirm .q { margin: 0; }
.sheet.confirm .error:empty { display: none; }
.confirm-btns { display: flex; flex-wrap: wrap; gap: .5rem; }
.confirm-btns .btn { flex: 1 1 9rem; }
.btn.danger, :root[data-look="graffiti"] .btn.danger { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn[disabled] { opacity: .55; cursor: default; }
@media (min-width: 46rem) {
  .sheet.confirm { bottom: auto; top: 50%; translate: 0 -50%; border: 2px solid var(--edge, var(--fg)); }
  :root[data-look="graffiti"] .sheet.confirm { border: 2px solid var(--edge); border-radius: 24px; box-shadow: none; animation: none; max-width: 26rem; }
}
/* the toast now lives outside the feed: above the tab bar everywhere, above the tray only on the feed */
:root:not([data-at="feed"]) .toast { bottom: calc(5rem + env(safe-area-inset-bottom)); }
/* review fixes: the toast stacks above the keyboard pill while it shows; no second hue on controls */
:root[data-at="feed"] main:has(.actions:focus-within) .toast { bottom: calc(17.2rem + env(safe-area-inset-bottom)); }
:root[data-look="graffiti"] .check input { accent-color: var(--main-b); }
:root[data-look="graffiti"] .community-face .platform { color: var(--muted); }

/* ==== round 5, the feed. The card says the main things only (no «Más»): name, world, one line,
   what they bring and what they look for. My circle sits above today's row, the row at the very
   bottom, and whatever you decide travels into its own place in that row. ==== */
.info .who,
:root[data-look="graffiti"] .info .who {
  padding-right: 0;
}
.info.past .who,
:root[data-look="graffiti"] .info.past .who {
  padding-right: 6.6rem;
}
.info .sit,
:root[data-look="graffiti"] .info .sit {
  font-size: 1rem;
  line-height: 1.3;
}
.fit {
  position: relative;
  margin: 0.5rem 0 0;
  padding-left: 2rem;
  min-height: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.35;
  color: var(--muted);
}
:root[data-look="graffiti"] .info .fit {
  margin: 0.5rem 0 0;
}
.fit::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.08em;
  width: 22px;
  height: 22px;
  background: var(--fg);
  -webkit-mask: var(--i) center / contain no-repeat;
  mask: var(--i) center / contain no-repeat;
}
.fit-k {
  font-size: 0.9rem;
}
.fit strong {
  font-weight: 700;
}
.fit.match strong {
  font-weight: 900;
  color: var(--fg);
}
.fit.match::before {
  background: var(--main-b, var(--fg));
}

/* the bottom, turned over: my circle (where bridges start), then the row */
.tray-wrap {
  gap: 0.35rem;
  padding: 0.25rem 0 0;
}
.tray {
  padding: 10px 12px 11px;
}
/* the toast sits in the gap right above my circle, off the card */
:root[data-look="graffiti"][data-at="feed"] .toast {
  bottom: calc(12.3rem + env(safe-area-inset-bottom));
}
.th.landing {
  visibility: hidden;
}
.bubble.target.gone,
:root[data-look="graffiti"] .bubble.target.gone {
  visibility: hidden;
  animation: none;
}

/* the copy that travels from the big bubble to its place in the row */
.lander {
  position: fixed;
  z-index: 5;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}
.lander-in {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  background: var(--tint, var(--card)) center / cover no-repeat;
  color: var(--fg);
  display: grid;
  place-items: center;
  font-family: var(--display);
  line-height: 1;
  will-change: transform, opacity;
}
.lander-in canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.lander-in::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 1.4%;
  background: conic-gradient(
    from 20deg,
    #ff4fb8,
    #ffd84a,
    #5be7a9,
    #4fd8ff,
    #a78bfa,
    #ff4fb8
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0);
}
.lander.is-pop .lander-in {
  transform-origin: 50% 100%;
  filter: grayscale(1) contrast(0.9);
}
.lander.is-pop .lander-in::after {
  content: none;
}

/* ==== round 5, accounts and sign-up. The account screen (email, password, the code by email), several
   goals with a small header, five topic slots, the city as a field with suggestions, each language on
   one line, contact as chips that add a field. ==== */
[data-i="eye"] { --i: url(i-eye.svg); }
[data-i="eye-off"] { --i: url(i-eye-off.svg); }
[data-i="telegram"] { --i: url(i-telegram.svg); }
[data-i="whatsapp"] { --i: url(i-whatsapp.svg); }
[data-i="linkedin"] { --i: url(i-linkedin.svg); }
[data-i="atom"] { --i: url(i-atom.svg); }
[data-i="pin"] { --i: url(i-pin.svg); }

/* account */
.account { gap: .9rem; padding-top: 5vh; }
.account .q, :root[data-look="graffiti"] .account .q { margin: .4rem 0 0; }
.account p { margin: 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 0; border: 2px solid var(--edge, var(--fg)); border-radius: 999px; background: var(--card); }
.seg .opt, :root[data-look="graffiti"] .seg .opt { min-height: 44px; padding: .3rem .4rem; border: 0; border-radius: 999px; background: none; box-shadow: none; font-size: .95rem; font-weight: 800; }
.seg .opt[aria-pressed="true"], :root[data-look="graffiti"] .seg .opt[aria-pressed="true"] { background: var(--main-a, var(--fg)); color: var(--ink, var(--bg)); box-shadow: 0 0 0 2px var(--edge, var(--fg)); }
:root[data-look="graffiti"] .seg .opt:hover { transform: none; box-shadow: none; }
:root[data-look="graffiti"] .seg .opt[aria-pressed="true"]:hover { box-shadow: 0 0 0 2px var(--edge); }
.lfield { display: grid; gap: .3rem; }
.lfield label { font-weight: 800; font-size: .9rem; padding-left: .3rem; }
.lfield .fine { padding-left: .3rem; }
.pass { position: relative; }
.pass .field, :root[data-look="graffiti"] .pass .field { padding-right: 3.4rem; }
.pass .icon-btn { position: absolute; right: .3rem; top: 50%; translate: 0 -50%; color: var(--fg); }
.pass .icon-btn[aria-pressed="true"] { color: var(--main-b, var(--fg)); }
.account .check { align-items: center; min-height: 44px; padding: .35rem 0 .35rem .3rem; line-height: 1.3; cursor: pointer; }
.account .check input { flex: none; margin: 0; }
.account .error:empty { display: none; }
.account .error { margin: 0; font-weight: 700; }
.account .btn.ghost { align-self: center; }
.mailmark { display: grid; place-items: center; width: 68px; height: 68px; margin: 1rem 0 0; border: 2px solid var(--edge, var(--fg)); border-radius: 50%;
  background: var(--main-a, var(--card)); color: var(--ink, var(--fg)); box-shadow: var(--hard, none); rotate: -6deg; }
.mailmark::before { content: ''; width: 34px; height: 34px; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.account strong { overflow-wrap: anywhere; }
.field.code, :root[data-look="graffiti"] .field.code { text-align: center; font-size: 1.8rem; font-weight: 800; letter-spacing: .35em; padding: .6rem 1rem .6rem calc(1rem + .35em); font-variant-numeric: tabular-nums; }
.field.code::placeholder { color: var(--muted); opacity: .4; }
.code-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 .5rem; }
.code-links .btn, :root[data-look="graffiti"] .code-links .btn { padding-left: .3rem; padding-right: .3rem; }

/* several goals: whose turn it is, above the question */
.goal-head { display: flex; align-items: center; gap: .4rem; width: fit-content; margin: .9rem 0 .1rem; padding: .25rem .75rem .25rem .55rem; border: 2px solid var(--edge, var(--fg));
  border-radius: 999px; background: var(--main-a, var(--card)); color: var(--ink, var(--fg)); font-weight: 800; font-size: .9rem; line-height: 1.2; }
.goal-head::before { content: ''; width: 18px; height: 18px; flex: none; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.goal-head .of { font-weight: 600; opacity: .7; }

/* topics: the slots flow (three today, five when the server takes them). A picked one is as wide as its
   word, an empty one is a small dashed pill */
.slots { display: flex; flex-wrap: wrap; }
.slots .slot.empty { width: 44px; }
.slots .opt.slot, :root[data-look="graffiti"] .slots .opt.slot { flex: 0 1 auto; max-width: 100%; gap: .45rem; overflow-wrap: normal; }

/* city */
.city, .city .cfield { width: 100%; }
.city .group { margin-bottom: .5rem; }
.city-list, :root[data-look="graffiti"] .city-list { margin: .5rem 0 0; gap: .4rem; }
.city-list:empty, .city-note:empty { display: none; }
.city-list .opt, :root[data-look="graffiti"] .city-list .opt { padding: .35rem .8rem; font-size: .9rem; }
.city-note { margin: .5rem 0 0 .3rem; }

/* languages: one line each. Name, the three levels, the x */
.lang-row { display: flex; align-items: center; gap: .3rem; }
.lang-row .lang { flex: 1 1 0; min-width: 0; font-weight: 500; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lang-row .levels { flex: none; flex-wrap: nowrap; gap: .25rem; }
.lang-row .opt, :root[data-look="graffiti"] .lang-row .opt { padding: .3rem .45rem; font-size: .8rem; white-space: nowrap; }
.lang-row .icon-btn { flex: none; margin-right: -.6rem; }
.lang-rows { gap: .45rem; }

/* contact: chips that add a field */
.crows { display: grid; gap: .5rem; width: 100%; }
.crows:empty { display: none; }
.cfield .icon-btn { flex: none; margin: 0 -.6rem 0 -.3rem; }
.cadds { width: 100%; margin: 0; }
.opt.addc, :root[data-look="graffiti"] .opt.addc { padding: .35rem .65rem; font-size: .9rem; border-style: dashed; gap: .35rem; }
.opt.addc::before { width: 18px; height: 18px; }
.opt.addc::after { content: ''; width: 13px; height: 13px; flex: none; background: currentColor; opacity: .6; -webkit-mask: url(i-plus.svg) center / contain no-repeat; mask: url(i-plus.svg) center / contain no-repeat; }

/* ==== round 5, «Tú», Ajustes, Puentes. «Tú» is the profile as others see it and its owner changes it in
   place: photo, name and world on top, the bubble of the minute floating under them (it is the picker, the
   preview and the progress). Without a minute the app stays here, with no tab bar. ==== */
[data-i="qr"] { --i: url(i-qr.svg); }
[data-i="scan"] { --i: url(i-scan.svg); }
.profile .error:empty, .pf-status:empty { display: none; }
.profile .error { margin: 0; text-align: center; }
.pf-head { display: flex; align-items: center; gap: .8rem; }
.pf-photo { position: relative; flex: none; width: 4.4rem; height: 4.4rem; padding: 0; border-radius: 50%; cursor: pointer; color: var(--muted);
  border: var(--stroke, 2px) solid var(--edge, var(--fg)); background: var(--card) center / cover no-repeat; }
.pf-photo.empty::before { content: ''; position: absolute; inset: 24%; background: currentColor;
  -webkit-mask: url(i-me.svg) center / contain no-repeat; mask: url(i-me.svg) center / contain no-repeat; }
.pf-badge { position: absolute; right: -5px; bottom: -5px; width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--main-a, var(--card)); color: var(--ink, var(--fg)); border: 2px solid var(--edge, var(--fg)); }
.pf-badge::before { content: ''; width: 13px; height: 13px; background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.pf-id { flex: 1; min-width: 0; display: grid; gap: .15rem; overflow-wrap: anywhere; }
.pf-name { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .5rem; }
.pf-name strong { font-family: var(--display); font-weight: 650; font-size: 1.55rem; line-height: 1.1; }
.pf-name .world { padding: .1rem .6rem; border: 2px solid var(--edge, var(--fg)); border-radius: 999px; background: var(--tint, var(--card)); color: var(--ink, var(--fg));
  font-weight: 800; font-size: .82rem; line-height: 1.3; }
.pf-id .sit { font-size: .95rem; line-height: 1.3; }
.pf-head > .icon-btn { flex: none; margin-right: -.6rem; color: var(--fg); }

.pf-stage { display: grid; justify-items: center; gap: .7rem; padding: .9rem 0 .4rem; }
.pf-wrap { position: relative; width: min(66vw, 36dvh, 17rem); aspect-ratio: 1; animation: pf-float 6s ease-in-out infinite; }
@keyframes pf-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
.pf-bubble { display: grid; place-items: center; width: 100%; height: 100%; padding: 0; overflow: hidden; border-radius: 50%; cursor: pointer; font: inherit; color: var(--fg);
  border: var(--stroke, 2.5px) solid var(--edge, var(--fg)); background: var(--card); transition: scale .35s var(--spring, ease-out); }
.pf-bubble:active { scale: .97; }
.pf-bubble:not(.has) { border-style: dashed; }
.pf-bubble video { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-call { grid-area: 1 / 1; display: grid; justify-items: center; gap: .5rem; padding: 0 1rem; font-family: var(--display); font-weight: 650; font-size: 1.2rem; line-height: 1.15; }
.pf-call::before { content: ''; width: 3.2rem; height: 3.2rem; background: var(--main-b, currentColor);
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
/* a minute that is not playing shows a play mark; it is a picture, not words, over the video */
.pf-bubble.has:not(.playing):not(.busy)::after { content: ''; grid-area: 1 / 1; z-index: 1; width: 3.4rem; height: 3.4rem; border-radius: 50%;
  background: var(--cream, #fff) url(i-play.svg) 56% 50% / 46% no-repeat; border: 2px solid var(--ink, #000); }
.pf-ring { position: absolute; inset: -9px; width: calc(100% + 18px); height: calc(100% + 18px); rotate: -90deg; pointer-events: none; opacity: 0; }
.pf-ring circle { fill: none; stroke: var(--main-b, var(--fg)); stroke-width: 2.4; stroke-linecap: round; transition: stroke-dashoffset .3s linear; }
.pf-bubble.busy ~ .pf-ring { opacity: 1; }
.pf-ring.wait { animation: pf-spin 1.2s linear infinite; }
@keyframes pf-spin { from { rotate: -90deg; } to { rotate: 270deg; } }
.pf-edit { position: absolute; right: 3%; bottom: 3%; }
.pf-status { margin: 0; font-weight: 800; text-align: center; }
.pf-tip { max-width: 17rem; text-align: center; }
.pf-stage .btn { min-width: 13rem; }
/* locked: the bubble is the one call on the page */
:root[data-locked] .pf-bubble:not(.has) { background: var(--tint, var(--card)); color: var(--ink, var(--fg)); border-style: solid; }
:root[data-locked] .pf-wrap:has(.pf-bubble:not(.has)) { animation: pf-float 6s ease-in-out infinite, pf-call 2.6s var(--spring-soft, ease-in-out) infinite; }
@keyframes pf-call { 0%, 70%, 100% { scale: 1; } 82% { scale: 1.045; } }
:root[data-locked] .screen { padding-bottom: 1.5rem; }

.pf-rest { display: grid; gap: 1rem; }
.sec-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.sec-top .icon-btn { margin: -.7rem -.6rem -.7rem 0; color: var(--fg); }
.code-row strong { flex: 1; min-width: 0; }
.btn.qr-btn, :root[data-look="graffiti"] .btn.qr-btn { flex: none; min-height: 44px; padding: .3rem .9rem .3rem .7rem; font-size: .95rem; gap: .35rem; }
.btn.qr-btn::before { width: 20px; height: 20px; }

/* the second sheet: QR, camera, small edit forms */
.sheet.pane { z-index: 12; gap: .8rem; padding: 1rem 1rem calc(1.5rem + env(safe-area-inset-bottom)); max-height: 88dvh; }
.pane-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.pane-top .q { margin: 0; }
.pane-top .icon-btn { flex: none; min-width: 44px; margin-right: -.5rem; color: var(--fg); }
.pane-form { display: grid; gap: .8rem; }
.pane-form .answers { margin: 0; }
.pane-form .answers label.group { margin-top: .3rem; }
.pane-form .error:empty { display: none; }
.qr-box { display: grid; justify-items: center; gap: .8rem; padding: .3rem 0 .5rem; text-align: center; }
.qr-box p { margin: 0; }
.qr { width: min(68vw, 42dvh, 16rem); overflow: hidden; border: var(--stroke, 2.5px) solid var(--ink, #000); border-radius: 18px; background: #fff; box-shadow: 3px 4px 0 var(--edge, var(--fg)); }
.qr svg { display: block; width: 100%; height: auto; }
.qr-code { font-size: 1.35rem; letter-spacing: .06em; user-select: all; -webkit-user-select: all; }
.scan { display: grid; gap: .6rem; justify-items: center; }
.scan p { margin: 0; }
.scan-view { width: min(100%, 46dvh); aspect-ratio: 1; object-fit: cover; border: var(--stroke, 2.5px) solid var(--edge, var(--fg)); border-radius: 18px; background: #000; }
@media (min-width: 46rem) {
  .sheet.pane { bottom: auto; top: 50%; translate: 0 -50%; }
  :root[data-look="graffiti"] .sheet.pane { border: 2px solid var(--edge); border-radius: 24px; box-shadow: none; animation: none; max-width: 26rem; }
}

/* Ajustes */
.seg.three { grid-template-columns: repeat(3, 1fr); }
.settings > .btn { justify-self: stretch; }
/* night: the logo keeps its ink outline, so it gets a thin cream sticker edge to stand off the dark wall */
:root[data-look="graffiti"][data-tone="night"] .brand[data-app-name] {
  filter: drop-shadow(1.5px 0 0 var(--cream)) drop-shadow(-1.5px 0 0 var(--cream)) drop-shadow(0 1.5px 0 var(--cream)) drop-shadow(0 -1.5px 0 var(--cream)); }
:root[data-look="graffiti"][data-tone="night"] .scrim { background: rgba(0, 0, 0, .66); }

/* Puentes: other people are soap bubbles in a row; a connection is a card with the ways to write to them */
.search-row { align-items: center; }
.search-row .field { flex: 1; min-width: 0; }
.search-row .icon-btn.line { width: 48px; height: 48px; }
.search-row .icon-btn.line::before { width: 24px; height: 24px; }
[data-search-result]:empty { display: none; }
.found { display: grid; gap: .8rem; justify-items: stretch; padding: 1rem; border: 2px solid var(--edge, var(--fg)); border-radius: 16px; background: var(--card); }
.found p { margin: 0; }
.found .prow { padding: 0; }
.list .chip.demo { justify-self: start; align-self: flex-start; }
.pgroup { display: grid; gap: .6rem; }
.list .pgroup h2, :root[data-look="graffiti"] .list .pgroup h2 { font-family: var(--display); font-weight: 650; font-size: 1.15rem; line-height: 1.2; text-transform: none; letter-spacing: 0; margin: .9rem 0 0; }
.prow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .5rem .8rem; }
.prow p { margin: 0; }
.prow:has(.pfoot) { padding: .8rem .9rem .6rem; border: 2px solid var(--edge, var(--fg)); border-radius: 16px; background: var(--card); }
.pface { position: relative; display: grid; place-items: center; flex: none; width: 3.5rem; height: 3.5rem; overflow: hidden; border-radius: 50%;
  background: var(--tint, var(--card)) center / cover no-repeat; }
.pface .ini { font-family: var(--display); font-weight: 650; font-size: 1.45rem; line-height: 1; color: var(--deep, var(--fg)); }
.pface .film-glare { border-top-width: 3px; filter: blur(1px); }
.pface .film-glint { filter: blur(1px); }
.pmeta { min-width: 0; display: grid; gap: .1rem; overflow-wrap: anywhere; }
.pname { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .45rem; }
.pname strong { font-size: 1.12rem; font-weight: 900; line-height: 1.2; }
.pname .world { font-size: .85rem; font-weight: 700; }
.pmeta .sit { font-size: .9rem; line-height: 1.3; }
.pfoot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem .8rem; }
.cicons { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.cicon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--edge, var(--fg)); background: var(--main-a, var(--card)); color: var(--ink, var(--fg));
  transition: scale .35s var(--spring, ease-out); }
.cicon::before { content: ''; width: 22px; height: 22px; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.cicon:active { scale: .93; }
.ctext { font-weight: 800; }
.pfoot .btn.ghost, :root[data-look="graffiti"] .pfoot .btn.ghost { min-height: 44px; padding: .3rem .1rem; font-size: .9rem; }
.pfoot .report { flex: 1 1 100%; }
.btn.pact, :root[data-look="graffiti"] .btn.pact { min-height: 44px; padding: .35rem .95rem .35rem .75rem; font-size: .95rem; gap: .35rem; }
.btn.pact::before { width: 20px; height: 20px; }
.pgroup.calm { gap: .5rem; }
.pgroup.calm .pface { width: 2.7rem; height: 2.7rem; opacity: .75; }
.pgroup.calm .pface .ini { font-size: 1.1rem; }
.pgroup.calm .pname strong { font-size: 1rem; font-weight: 800; }
.pempty { display: grid; justify-items: center; gap: .3rem; padding: 3.5rem 0 2rem; text-align: center; }
.pempty::before { content: ''; width: 3.2rem; height: 3.2rem; margin-bottom: .4rem; background: var(--main-b, currentColor); -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.pempty p { margin: 0; }
.pempty p:first-of-type { font-family: var(--display); font-weight: 650; font-size: 1.25rem; }
@media (prefers-reduced-motion: reduce) {
  .pf-wrap, :root[data-locked] .pf-wrap:has(.pf-bubble:not(.has)) { animation: none; }
  .pf-ring.wait { animation: none; }
  .pface .film-irid { animation: none; }
}
.pf-head { align-items: flex-start; }
.pf-head > .icon-btn { align-self: center; }
.pf-id { min-height: 4.4rem; align-content: center; }
.pf-name .world { border-radius: 14px; }
.pf-bubble { position: relative; }
.pf-bubble.has:not(.playing):not(.busy)::after { position: absolute; left: 50%; top: 50%; translate: -50% -50%; }
.list .sample-note { margin: 0; }
/* review fixes, round 5 */
.tiles .opt[aria-expanded="true"], :root[data-look="graffiti"] .tiles .opt[aria-expanded="true"] { background: var(--main-a, var(--card)); }
.tray-wrap .bubble.mine.blank::after { content: 'Tú'; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: .95rem; color: var(--fg); }
.th[aria-current="true"] { margin-inline: .4rem; }
/* on the feed the toast sits over my circle, in the gap between the card and the tray, so it never covers the
   card's last lines (on a short screen the card reaches down to that gap) */
:root[data-look="graffiti"][data-at="feed"] .toast { bottom: calc(8.1rem + env(safe-area-inset-bottom)); font-size: .85rem; padding-inline: .6rem; }
/* a narrow phone breaks the hint in two lines: there it sits a little lower, on the edge of the tray */
@media (max-width: 359px) { :root[data-look="graffiti"][data-at="feed"] .toast { bottom: calc(7.3rem + env(safe-area-inset-bottom)); } }
@media (min-width: 46rem) {
  :root[data-look="graffiti"][data-tone="night"] body { background: color-mix(in srgb, var(--main-b) 38%, #000); }
}
@media (max-width: 45.99rem) {
  .pgroup .prow:has(.pact) .sit { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .btn.pact, :root[data-look="graffiti"] .btn.pact { padding: .35rem .8rem .35rem .65rem; font-size: .9rem; }
}

/* round 6: the possible incompatibility on the card, and a person's profile opened from Puentes */
[data-i="minus"] { --i: url(i-minus.svg); }
.fit.minus strong { font-weight: 700; color: var(--muted); }
button.pface-btn { all: unset; flex: none; border-radius: 50%; cursor: pointer; min-width: 44px; min-height: 44px; display: grid; place-items: center; }
button.pface-btn:focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; }
@media (hover: hover) { button.pface-btn:hover .pface { scale: 1.06; } }
.pface { transition: scale .25s var(--spring-soft, ease); }
.pcard { display: grid; justify-items: center; gap: .5rem; text-align: center; padding: .5rem 0 1rem; }
.pcard .pface { width: 9rem; height: 9rem; }
.pcard .pface .ini { font-size: 3.6rem; }
.pcard .pname strong { font-family: var(--display); font-size: 1.7rem; }
.pcard .sit { margin: 0; color: var(--muted); }
.pcard .cicons { justify-content: center; margin-top: .5rem; }
.pcard video { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
/* a minute in a circle plays on a tap (no control bar: it does not fit a circle); a play mark while still */
.tap-play { position: relative; cursor: pointer; }
.pcard .pface.tap-play video { position: absolute; inset: 0; }
.tap-play:not(.playing)::after { content: ''; position: absolute; inset: 0; margin: auto; z-index: 1; width: 3.4rem; height: 3.4rem; border-radius: 50%;
  background: var(--cream, #fff) url(i-play.svg) 56% 50% / 46% no-repeat; border: 2px solid var(--ink, #000); pointer-events: none; }
.tap-play:focus-visible { outline: 3px solid var(--main-b, var(--fg)); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .pface { transition: none; } }

/* welcome: the two ways in, and the retry when the server does not answer */
.starts { display: grid; gap: .35rem; }
.starts .btn { width: 100%; }
.starts .btn.ghost { min-height: 44px; }
.starts .error { margin: 0; font-weight: 700; text-align: center; }
.fine a { color: inherit; font-weight: 800; text-underline-offset: 3px; }
