/* Penis Rank: measured for you, by hand */
@font-face { font-family: "Cormorant"; src: url(fonts/cormorantgaramond-normal.woff2) format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url(fonts/cormorantgaramond-italic.woff2) format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Garamond Text"; src: url(fonts/ebgaramond-normal.woff2) format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Chalk"; src: url(fonts/coveredbyyourgrace-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --paper: #f4ecda;
  --paper-2: #ebdfc4;
  --kraft: #dcc8a0;
  --kraft-line: rgba(122, 92, 46, .16);
  --ink: #1b2747;          /* tailor's navy */
  --ink-2: #3c4766;
  --ink-soft: #5b6380;
  --chalk-red: #a8323f;     /* red tailor's chalk, on paper */
  --chalk-pink: #f3c9cf;
  --chalk-white: #fbf7ee;
  --tape: #f1c84b;
  --tape-deep: #d9a92a;
  --silk: #6b1428;
  --silk-2: #8a1f36;
  --silk-3: #4c0c1c;
  --label: #f3e6c4;
  --gold: #b88a2e;
  --shadow-soft: 0 10px 30px -12px rgba(43, 28, 10, .35), 0 2px 6px -2px rgba(43, 28, 10, .18);
  --shadow-lift: 0 18px 40px -16px rgba(43, 28, 10, .45), 0 4px 10px -4px rgba(43, 28, 10, .2);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --serif: "Cormorant", "Iowan Old Style", Georgia, serif;
  --text: "Garamond Text", Georgia, serif;
  --hand: "Chalk", "Bradley Hand", cursive;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scrollbar-color: var(--kraft) var(--paper); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--kraft); border-radius: 10px; border: 2px solid var(--paper); }
::selection { background: var(--silk); color: var(--chalk-white); }

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 1px 1px, var(--kraft-line) 1px, transparent 1.4px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .34 0 0 0 0 .18 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 18px 18px, 220px 220px;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
  caret-color: var(--chalk-red);
}

button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--chalk-red); outline-offset: 3px; border-radius: 4px; }
img { display: block; max-width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- prototype bar ---------- */
.titlebar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  height: 34px; padding: 0 52px;
  background: rgba(244, 236, 218, .94);
  border-bottom: 1px solid var(--kraft-line);
}
.titlebar__t {
  margin: 0; font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1;
  letter-spacing: .01em; color: var(--ink);
}
/* prototype only, kept discreet in the corner */
.titlebar__speed {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  border: 0; background: none; cursor: pointer; padding: 4px 8px; border-radius: 3px;
  font-family: var(--text); font-size: 12px; color: var(--ink-soft); opacity: .45;
}
.titlebar__speed:hover, .titlebar__speed:focus-visible { opacity: 1; background: var(--paper-2); }

/* ---------- screens ---------- */
main { padding-top: 34px; }
.screen { display: none; min-height: calc(100dvh - 34px); }
.screen.is-on { display: grid; }

/* portrait */
.portrait {
  position: relative; margin: 0; overflow: hidden;
  background: var(--silk-3);
}
.portrait img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0;
  transition: opacity .9s var(--ease-out);
}
.portrait img.is-off { opacity: 0; }
/* silk lining seen at the edge of the portrait */
.portrait::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 18px;
  background: linear-gradient(180deg, transparent, rgba(76, 12, 28, .55));
  pointer-events: none;
}

/* the yellow cloth tape, vertical, pinned along the portrait */
.tape {
  --u: 26px;
  position: absolute; display: flex;
  background: var(--tape);
  color: var(--ink);
  box-shadow: 0 6px 14px -6px rgba(43, 28, 10, .55);
  font-family: var(--text); font-size: 11px; font-weight: 500;
  overflow: hidden;
}
.tape--v {
  top: -10px; bottom: -10px; left: 14px; width: 30px; flex-direction: column;
  transform: rotate(-1.4deg);
  background-image:
    repeating-linear-gradient(180deg, rgba(27, 39, 71, .75) 0 1px, transparent 1px calc(var(--u) / 2)),
    linear-gradient(90deg, rgba(0,0,0,.08), transparent 18%, transparent 82%, rgba(0,0,0,.1));
  background-size: 9px 100%, 100% 100%;
  background-repeat: repeat-y, no-repeat;
}
.tape--v span { height: var(--u); flex: none; display: grid; place-items: end center; padding-bottom: 2px; padding-left: 8px; }
.tape--v span:nth-child(5n) { color: var(--chalk-red); }

/* the pattern sheet */
.sheet {
  position: relative;
  padding: 26px 22px 24px;
  display: flex; flex-direction: column;
}
.cutline { position: absolute; left: 0; right: 0; top: -1px; width: 100%; height: 22px; color: var(--ink-2); pointer-events: none; }

.phrase {
  font-family: var(--hand);
  font-size: clamp(30px, 8.4vw, 44px);
  line-height: 1.12;
  color: var(--ink);
  margin: 10px 0 0;
  min-height: 4.6em;
  letter-spacing: .005em;
  text-wrap: pretty;
}
.phrase .w { display: inline; clip-path: inset(0 100% 0 0); }
.phrase.write { animation: write 1.5s var(--ease-out) both; }
@keyframes write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.phrase.write.multi { animation-duration: 2s; }

.note { font-family: var(--hand); color: var(--chalk-red); font-size: 22px; line-height: 1.1; }
.small { font-size: 15px; color: var(--ink-soft); }

/* tally of phrases, in chalk */
.tally { display: flex; gap: 6px; align-items: center; color: var(--ink-soft); }
.tally i { width: 3px; height: 20px; background: currentColor; border-radius: 2px; opacity: .28; transform: rotate(6deg); transition: opacity .4s var(--ease-out), background-color .4s; }
.tally i.on { opacity: 1; background: var(--chalk-red); }

/* buttons */
.row { display: flex; align-items: center; gap: 12px; }
.btn {
  min-height: 52px; padding: 0 22px; border-radius: 4px; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: .01em;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background-color .25s;
}
.btn--silk {
  color: var(--chalk-white);
  background: var(--silk);
  background-image: linear-gradient(115deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.12) 46%, rgba(255,255,255,0) 60%);
  box-shadow: var(--shadow-soft);
}
.btn--silk:hover { background-color: var(--silk-2); transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.btn--silk:active { transform: translateY(1px); }
.btn--silk:disabled { background-color: #b9a8a0; color: #3b2f2a; box-shadow: none; cursor: not-allowed; transform: none; background-image: none; }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--line:hover { background: rgba(27, 39, 71, .06); }
.btn--icon { width: 52px; padding: 0; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink-2); color: var(--ink); }
.btn--icon:hover { background: var(--paper-2); }
.btn--icon[aria-pressed="true"] { background: var(--tape); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--wide { flex: 1; }

/* ---------- step zero ---------- */
#s0 { grid-template-rows: minmax(46dvh, 1fr) auto; }
#s0 .portrait { min-height: 46dvh; }
#s0 .portrait img { object-position: 50% 30%; }
#s0 .sheet { margin-top: -26px; background: var(--paper); border-radius: 2px 2px 0 0; box-shadow: 0 -12px 26px -16px rgba(43,28,10,.5); cursor: pointer; }
#s0 .sheet::before { /* faint pattern drafting behind the words */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300' preserveAspectRatio='none'%3E%3Cpath d='M20 280 C 90 200 120 60 210 30 S 360 80 390 20' fill='none' stroke='%231b2747' stroke-opacity='.08' stroke-width='1.2' stroke-dasharray='6 5'/%3E%3Cpath d='M0 210 L400 170' stroke='%23a8323f' stroke-opacity='.10' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 100% 100%;
}
#s0 .foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#s0 .cta { margin-top: 14px; }
#s0 .cta[hidden] { display: none; }

/* ---------- step 1, warm-up ---------- */
#s1 { grid-template-rows: minmax(34dvh, 1fr) auto; }
#s1 .portrait { min-height: 34dvh; }
#s1 .portrait img { object-position: 50% 32%; }
#s1 .sheet { padding-top: 0; }

.tape-run {
  position: relative; height: 46px; margin: -23px -22px 0; overflow: hidden;
  filter: drop-shadow(0 6px 8px rgba(43, 28, 10, .3));
}
.tape-run__strip {
  position: absolute; top: 0; left: 0; height: 46px; display: flex;
  background: var(--tape);
  background-image:
    repeating-linear-gradient(90deg, rgba(27,39,71,.8) 0 1px, transparent 1px 8px),
    linear-gradient(180deg, rgba(0,0,0,.08), transparent 30%, transparent 70%, rgba(0,0,0,.1));
  background-size: 100% 12px, 100% 100%;
  background-repeat: repeat-x, no-repeat;
  will-change: transform;
}
.tape-run__strip span {
  width: 80px; flex: none; height: 100%;
  box-shadow: inset 1px 0 0 rgba(27,39,71,.9);
  display: flex; align-items: flex-end; padding: 0 0 5px 5px;
  font-size: 15px; font-weight: 500; color: var(--ink);
}
.tape-run__strip span:nth-child(5n) { color: var(--chalk-red); }
.tape-run__mark { position: absolute; top: -4px; bottom: -4px; left: 50%; width: 3px; margin-left: -1.5px; background: var(--chalk-red); border-radius: 2px; box-shadow: 0 0 0 2px rgba(251,247,238,.8); }
.tape-run.is-held .tape-run__strip { filter: saturate(.55); }

.w1-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-top: 18px; }
.count { font-family: var(--serif); font-weight: 600; font-size: 54px; line-height: .9; color: var(--ink); font-variant-numeric: tabular-nums lining-nums; }
.bpm { text-align: right; }
.bpm b { font-family: var(--serif); font-size: 30px; font-weight: 600; display: block; line-height: 1; }
.bpm span { font-size: 15px; color: var(--ink-soft); }
#s1 .phrase { min-height: 3.5em; margin-top: 10px; font-size: clamp(28px, 7.6vw, 40px); }

.count-wrap { display: flex; flex-direction: column; gap: 6px; }
.total { font-size: 15px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.book {
  list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid rgba(27,39,71,.18);
  max-height: 140px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14px, #000 calc(100% - 18px), transparent);
          mask-image: linear-gradient(180deg, transparent 0, #000 14px, #000 calc(100% - 18px), transparent);
}
.book li i { font-style: normal; font-size: 14px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.book li { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 6px 0; border-bottom: 1px solid rgba(27,39,71,.12); font-size: 15px; color: var(--ink-soft); position: relative; }
.book li b { font-family: var(--serif); font-weight: 600; color: var(--ink-2); }
.book li.done span { text-decoration: line-through; text-decoration-color: var(--chalk-red); text-decoration-thickness: 1.5px; }
.book li.now { color: var(--ink); }
.book li.now b { color: var(--chalk-red); }
.ready { display: none; flex-direction: column; gap: 16px; margin-top: 18px; }
#s1.is-done .ready { display: flex; }
#s1.is-done .w1-live { display: none; }
#s1 .controls { margin-top: 14px; }
.ready__btns { display: flex; flex-direction: column; gap: 12px; }
.btn--big { min-height: 64px; font-size: 20px; width: 100%; justify-content: center; }
.ready__note { margin: 0; color: var(--ink-soft); }
.titlebar__speed { font-variant-numeric: tabular-nums; }
.titlebar__speed[aria-pressed="true"] { opacity: 1; color: var(--chalk-red); box-shadow: inset 0 0 0 1.5px var(--chalk-red); }

/* ---------- step 2, length card ---------- */
#s2, #sg { align-content: start; justify-items: center; padding: 22px 16px 28px; }
.card {
  width: 100%; max-width: 560px;
  background: var(--chalk-white);
  border-radius: 3px;
  box-shadow: var(--shadow-lift);
  padding: 22px 20px 20px;
  position: relative;
}
.card::before { /* the pinked edge of a pattern card */
  content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 7px;
  background: radial-gradient(circle at 5px 7px, var(--chalk-white) 4.5px, transparent 5px) 0 0 / 10px 7px repeat-x;
}
.card h1 { font-family: var(--serif); font-weight: 600; font-size: 40px; line-height: 1; margin: 0; letter-spacing: -.005em; }
.card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.client { font-size: 14px; color: var(--ink-soft); text-align: right; line-height: 1.25; }
.client b { font-family: var(--serif); font-size: 18px; color: var(--ink); display: block; }
.fig { margin: 16px -6px 0; border: 1px dashed rgba(27,39,71,.3); border-radius: 2px; overflow: hidden; background: #f4efe6; }
.fig svg { display: block; width: 100%; height: auto; }
.howto { margin: 14px 0 0; font-size: 17px; }
.stay { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.stay img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 30% 30%; box-shadow: 0 0 0 2px var(--chalk-white), 0 0 0 3.5px var(--silk); }
.stay .note { font-size: 26px; }
.beat { width: 10px; height: 10px; border-radius: 50%; background: var(--chalk-red); margin-left: auto; animation: beat 1.5s var(--ease-out) infinite; }
@keyframes beat { 0% { transform: scale(1.6); opacity: 1; } 100% { transform: scale(.7); opacity: .35; } }

.field { margin-top: 18px; border-top: 1.5px solid var(--ink); padding-top: 10px; }
.field label { font-family: var(--serif); font-weight: 600; font-size: 15px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); }
.field__row { display: flex; align-items: flex-end; gap: 12px; margin-top: 4px; }
.field input {
  flex: 1; min-width: 0; width: 100%;
  font-family: var(--serif); font-weight: 600; font-size: 66px; line-height: 1;
  color: var(--ink); background: transparent; border: 0; padding: 4px 0 6px;
  border-bottom: 2px dashed rgba(27,39,71,.35);
  font-variant-numeric: tabular-nums lining-nums;
  border-radius: 0;
}
.field input::placeholder { color: rgba(27,39,71,.3); }
.field input:focus { outline: none; border-bottom-color: var(--chalk-red); border-bottom-style: solid; }
.unit { display: inline-flex; background: var(--paper-2); border-radius: 4px; padding: 3px; flex: none; margin-bottom: 8px; }
.unit button { min-width: 52px; min-height: 46px; border: 0; background: none; border-radius: 3px; cursor: pointer; font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--ink-soft); }
.unit button[aria-pressed="true"] { background: var(--ink); color: var(--chalk-white); box-shadow: 0 3px 8px -3px rgba(27,39,71,.6); }
.unit button:not([aria-pressed="true"]):hover { color: var(--ink); }
.hint { min-height: 1.4em; margin: 6px 0 0; font-size: 15px; color: var(--ink-soft); }
.hint.err { color: var(--chalk-red); }
#s2 .btn--silk, #sg .btn--silk { width: 100%; margin-top: 14px; }

/* ---------- step 3, reveal ---------- */
#s3 { align-content: start; justify-items: center; padding: 30px 16px 40px; }
.report { width: 100%; max-width: 620px; }
.report h1 { font-family: var(--serif); font-weight: 500; font-style: italic; font-size: clamp(38px, 10vw, 58px); line-height: 1; margin: 6px 0 6px; letter-spacing: -.01em; }
.report .lede { margin: 0 0 22px; color: var(--ink-2); }

.lining {
  position: relative; border-radius: 4px; padding: 30px 18px;
  background: var(--silk);
  background-image:
    repeating-linear-gradient(125deg, rgba(255,255,255,.035) 0 2px, transparent 2px 5px),
    linear-gradient(120deg, var(--silk-3) 0%, var(--silk) 32%, var(--silk-2) 50%, var(--silk) 68%, var(--silk-3) 100%);
  box-shadow: var(--shadow-lift), inset 0 0 40px rgba(0,0,0,.35);
  display: grid; place-items: center;
}
.lining__hand { position: absolute; left: 16px; bottom: 10px; font-family: var(--hand); font-size: 18px; color: var(--chalk-pink); transform: rotate(-3deg); }
.wlabel {
  position: relative; width: min(100%, 340px);
  padding: 20px 22px 18px;
  background: var(--label);
  background-image:
    repeating-linear-gradient(0deg, rgba(120, 90, 40, .07) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(120, 90, 40, .05) 0 1px, transparent 1px 3px);
  color: var(--ink);
  text-align: center;
  box-shadow: 0 8px 18px -8px rgba(0,0,0,.6);
  border-radius: 1px;
}
.wlabel svg.stitch { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.wlabel .stitch rect { fill: none; stroke: var(--silk); stroke-width: 2.2; stroke-dasharray: 6 4; stroke-linecap: round; }
.wlabel__house { font-family: var(--serif); font-weight: 600; font-size: 13px; letter-spacing: .34em; text-transform: uppercase; }
.wlabel__big { font-family: var(--serif); font-weight: 600; font-size: 50px; line-height: 1; margin: 8px 0 2px; font-variant-numeric: lining-nums tabular-nums; }
.wlabel__big small { font-size: 22px; margin-left: 4px; }
.wlabel__sub { font-family: var(--serif); font-style: italic; font-size: 19px; }
.wlabel__rule { height: 1px; background: rgba(27,39,71,.35); margin: 12px 18px; }
.wlabel__pair { display: flex; justify-content: center; gap: 22px; font-family: var(--serif); font-weight: 600; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; }
.wlabel__in { opacity: 0; transition: opacity .9s var(--ease-out); }
.is-stitched .wlabel__in { opacity: 1; }
.needle { position: absolute; width: 34px; height: 34px; color: var(--chalk-white); pointer-events: none; opacity: 0; }

.measures { margin-top: 34px; display: grid; gap: 30px; }
.measure { opacity: 0; transform: translateY(10px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.is-stitched .measure { opacity: 1; transform: none; }
.is-stitched .measure + .measure { transition-delay: .25s; }
.measure__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1.5px solid var(--ink); padding-bottom: 6px; }
.measure__head h2 { font-family: var(--serif); font-weight: 600; font-size: 30px; margin: 0; line-height: 1; }
.measure__val { font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.measure__val .u { font-size: 17px; color: var(--ink-soft); font-weight: 500; }
.measure p { margin: 10px 0 0; }
.pct { font-family: var(--serif); font-weight: 600; font-size: 22px; }
.bell { width: 100%; height: auto; display: block; margin-top: 8px; overflow: visible; }
.bell .axis { stroke: rgba(27,39,71,.5); stroke-width: 1; }
.bell .curve { fill: none; stroke: var(--ink); stroke-width: 1.8; }
.bell .area { fill: none; }
.bell .tick { stroke: rgba(27,39,71,.4); }
.bell .brace { fill: none; stroke: rgba(27,39,71,.6); stroke-width: 1; }
.bell .track { fill: rgba(27,39,71,.05); stroke: rgba(27,39,71,.35); stroke-width: 1; }
.bell .avg { fill: rgba(241,200,75,.45); stroke: rgba(27,39,71,.55); stroke-width: 1; }
.bell .avglab { font-family: var(--text); font-size: 11.5px; fill: var(--ink); letter-spacing: .02em; }
.bell .mark { stroke: var(--chalk-red); stroke-width: 2.4; }
.bell text { font-family: var(--text); font-size: 12px; fill: var(--ink-soft); font-variant-numeric: tabular-nums; }
.bell .you { font-family: var(--hand); font-size: 19px; fill: var(--chalk-red); }
.bell .mean { stroke: rgba(27,39,71,.4); stroke-dasharray: 3 3; }
/* ---------- by region ---------- */
.regions { margin-top: 40px; opacity: 0; transform: translateY(10px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.is-stitched .regions { opacity: 1; transform: none; transition-delay: .5s; }
.regions > p { margin: 10px 0 0; }
.regchart { width: 100%; display: block; margin-top: 10px; overflow: visible; }
.regchart text { font-family: var(--text); font-size: 13px; fill: var(--ink-soft); font-variant-numeric: lining-nums tabular-nums; }
.regchart .rname { fill: var(--ink); font-size: 14px; }
.regchart .rval { fill: var(--ink); font-weight: 600; }
.regchart .grid { stroke: var(--kraft-line); stroke-width: 1; }
.regchart .axis { stroke: rgba(27,39,71,.5); stroke-width: 1; }
.regchart .ci { stroke: rgba(107, 20, 40, .38); stroke-width: 7; stroke-linecap: round; }
.regchart .dot { fill: var(--silk); }
.regchart .row.is-below .rname { fill: var(--ink-soft); }
.regchart .you { stroke: var(--chalk-red); stroke-width: 2.4; }
.regchart .youlab { font-family: var(--hand); font-size: 19px; fill: var(--chalk-red); }
.regnote { font-size: 14px; color: var(--ink-soft); line-height: 1.45; }

.fun { margin-top: 26px; padding: 14px 16px; background: rgba(241, 200, 75, .28); border-radius: 3px; }
.fun .note { font-size: 24px; color: var(--ink); }
.fun p { margin: 4px 0 0; font-size: 15px; color: var(--ink-2); }
.actions { margin-top: 26px; display: flex; flex-direction: column; gap: 10px; }
.cite { margin-top: 18px; font-size: 14px; color: var(--ink-soft); }

/* ---------- desktop ---------- */
/* step zero on phones: her video (or photo) fills the screen, her words sit on the lower third like subtitles */
.portrait video { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
@media (max-width: 899px) {
  #s0 { grid-template-rows: 1fr; }
  #s0 .portrait, #s0 .sheet { grid-area: 1 / 1; }
  #s0 .portrait { min-height: calc(100dvh - 34px); }
  #s0 .portrait img, #s0 .portrait video { object-position: 50% 22%; }
  #s0 .portrait::after { display: none; }
  #s0 .sheet {
    align-self: end; margin: 0; padding-top: 120px; border-radius: 0; box-shadow: none; z-index: 1;
    background: linear-gradient(to top, rgba(22, 14, 9, .86) 0%, rgba(22, 14, 9, .72) 48%, rgba(22, 14, 9, 0) 100%);
  }
  #s0 .sheet::before, #s0 .cutline { display: none; }
  #s0 .phrase { color: var(--chalk-white); min-height: 3.5em; text-shadow: 0 2px 10px rgba(0, 0, 0, .45); }
  #s0 .note { color: var(--chalk-pink); }
  #s0 .tally { color: var(--chalk-white); }
  #s0 .tally i.on { background: var(--chalk-pink); }
  #s0 .btn--icon { box-shadow: none; }
}

@media (min-width: 900px) {
  #s0, #s1 { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-rows: none; height: calc(100dvh - 34px); }
  #s0 .portrait, #s1 .portrait { min-height: 0; height: 100%; }
  #s0 .sheet, #s1 .sheet { margin: 0; padding: 64px 56px 40px; box-shadow: -14px 0 30px -18px rgba(43,28,10,.5); justify-content: center; }
  #s0 .phrase { font-size: 46px; min-height: 4.4em; }
  #s0 .foot { margin-top: 28px; }
  .cutline { display: none; }
  #s1 .tape-run { margin: 0 -56px 18px; }
  #s1 .phrase { font-size: 40px; }
  #s1 .sheet { padding-top: 40px; }
  #s2, #sg { padding-top: 40px; }
  .card { max-width: 640px; padding: 30px 34px 28px; }
  .measures { grid-template-columns: 1fr 1fr; gap: 40px; }
  .report { max-width: 760px; }
  #s1 .sheet { justify-content: flex-start; }
  #s1 .tape-run { margin-top: 0; }
  .book { max-height: 34dvh; }
  .ready__btns { flex-direction: row; }
}

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

/* ---------- print: the report ---------- */
@media print {
  @page { size: A4; margin: 16mm; }
  body { background: #fff; font-size: 12pt; }
  .titlebar, .screen:not(#s3), .actions, .needle, .lining__hand { display: none !important; }
  main { padding: 0; }
  #s3 { display: block !important; padding: 0; }
  .report { max-width: none; }
  .measure, .regions, .wlabel__in { opacity: 1 !important; transform: none !important; }
  .regions { break-inside: avoid; }
  .lining, .wlabel, .fun { -webkit-print-color-adjust: exact; print-color-adjust: exact; box-shadow: none; }
  .measure { break-inside: avoid; }
}

/* 08-10: no rhythm numbers on screen (owner's call) */
#s1 .bpm { display: none; }
/* 08-10: phases appear one by one as she reaches them, never the whole list up front */
.book li:not(.now):not(.done) { display: none; }
.book li.now { animation: rowIn .6s var(--ease-out) both; }
@keyframes rowIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .book li.now { animation: none; } }
/* 08-10: keep her words clear of the vertical tape on the left (phones) */
@media (max-width: 899px) { #s0 .sheet { padding-left: 60px; } }

/* ---------- 08-10: the reveal, one screen at a time ---------- */
.wlabel__big--word { font-size: 38px; font-style: italic; font-weight: 500; }
.print-title { display: none; }
#s3.is-on { display: block; padding: 0; }
.rvs { display: none; }
.rvs.is-on { animation: rowIn .6s var(--ease-out) both; }
.say { margin: 0; font-family: var(--hand); color: var(--ink); line-height: 1.14; text-wrap: pretty; }
.say.write { animation: write 1.7s var(--ease-out) both; }
.rvp__words { display: grid; gap: 12px; }

/* photo screens: like the welcome */
.rvp.is-on { display: grid; grid-template-rows: 1fr; min-height: calc(100dvh - 34px); cursor: pointer; }
.rvp .portrait img { object-position: 50% 22%; }
.rvp .foot { margin-top: auto; padding-top: 16px; display: flex; justify-content: flex-end; }
@media (max-width: 899px) {
  .rvp .portrait, .rvp .sheet { grid-area: 1 / 1; }
  .rvp .portrait { min-height: calc(100dvh - 34px); }
  .rvp .portrait::after { display: none; }
  .rvp .sheet {
    align-self: end; padding: 130px 22px 18px; z-index: 1;
    background: linear-gradient(to top, rgba(22, 14, 9, .88) 0%, rgba(22, 14, 9, .74) 52%, rgba(22, 14, 9, 0) 100%);
  }
  .rvp .say { color: var(--chalk-white); font-size: clamp(27px, 7.4vw, 34px); text-shadow: 0 2px 10px rgba(0, 0, 0, .45); }
  .rvp.is-long .say { font-size: clamp(24px, 6.5vw, 29px); }
}

/* data screens: the paper of the prototype, centred */
.rvd.is-on { display: block; padding: 26px 16px 34px; min-height: calc(100dvh - 34px); }
.rvd__card { max-width: 600px; margin: 0 auto; }
.dtitle { font-variant-numeric: lining-nums; font-family: var(--serif); font-weight: 600; font-size: 34px; line-height: 1; margin: 0; padding-bottom: 8px; border-bottom: 1.5px solid var(--ink); }
.dbig { font-family: var(--serif); font-weight: 600; font-size: clamp(78px, 23vw, 116px); line-height: .95; margin: 20px 0 6px; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.01em; }
.dbig small { font-size: .3em; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; }
.dbig--word { font-style: italic; font-weight: 500; font-size: clamp(64px, 18vw, 96px); text-transform: capitalize; }
.dsub { margin: 0; font-size: 19px; color: var(--ink-2); }
.dsub b { font-variant-numeric: lining-nums tabular-nums; font-family: var(--serif); font-weight: 600; font-size: 24px; color: var(--chalk-red); }
.dline { margin: 4px 0 0; font-size: 17px; color: var(--ink-soft); }
.dsrc { margin: 12px 0 0; font-size: 14px; color: var(--ink-soft); }
.rvd .bell { margin-top: 18px; }
.rvd .regions { opacity: 1; transform: none; margin-top: 34px; }
.rvd__foot { margin-top: 24px; display: flex; justify-content: flex-end; }
.rv-next { width: 100%; min-height: 56px; }
.rvd .lining { margin-top: 4px; }
.rvd .wlabel__in { opacity: 0; }
.rvd .is-stitched .wlabel__in { opacity: 1; }
.sum { margin: 24px 0 0; }
.sum > div { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid rgba(27, 39, 71, .16); }
.sum dt { font-size: 17px; color: var(--ink-2); }
.sum dd { margin: 0; text-align: right; font-family: var(--serif); font-weight: 600; font-size: 26px; line-height: 1.05; font-variant-numeric: lining-nums tabular-nums; }
.sum dd small { display: block; margin-top: 2px; font-family: var(--text); font-weight: 400; font-size: 14px; color: var(--ink-soft); }

.men { width: 100%; height: auto; display: block; margin-top: 20px; overflow: visible; }
.men .axis { stroke: rgba(27,39,71,.5); stroke-width: 1; }
.men .bar { fill: rgba(27, 39, 71, .32); transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform .9s var(--ease-out); }
.men.is-grown .bar { transform: none; }
.men .bar.me { fill: var(--chalk-red); }
.men .youline { stroke: var(--chalk-red); stroke-width: 1.4; stroke-dasharray: 3 3; }
.men .youlab { font-family: var(--hand); font-size: 19px; fill: var(--chalk-red); }
.men text { font-family: var(--text); font-size: 12px; fill: var(--ink-soft); font-variant-numeric: lining-nums tabular-nums; }

.condoms { width: 100%; height: auto; display: block; margin-top: 18px; overflow: visible; }
.condoms text { font-family: var(--text); font-size: 15px; fill: var(--ink-soft); font-variant-numeric: lining-nums tabular-nums; }
.condoms .cbar { fill: rgba(27, 39, 71, .2); }
.condoms .me .cbar { fill: var(--silk); }
.condoms .me text { fill: var(--ink); font-weight: 600; }


@media (min-width: 900px) {
  .rvp.is-on { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); height: calc(100dvh - 34px); min-height: 0; }
  .rvp .portrait { height: 100%; }
  .rvp .sheet { padding: 64px 56px 40px; justify-content: center; box-shadow: -14px 0 30px -18px rgba(43,28,10,.5); }
  .rvp .say { font-size: 40px; }
  .rvp.is-long .say { font-size: 33px; }
  .rvp .foot { margin-top: 28px; justify-content: flex-start; }
  .rvd.is-on { padding: 48px 16px 48px; }
  .rvd__card { max-width: 680px; }
  .rv-next { width: auto; min-width: 200px; }
  .men, .condoms { max-width: 520px; }
}

/* ---------- print: the whole report at once, her words and every data screen, no buttons ---------- */
@media print {
  .print-title { display: block; font-family: var(--serif); font-style: italic; font-size: 30pt; margin: 0 0 4mm; }
  #s3 .rvs { display: block !important; min-height: 0 !important; height: auto !important; padding: 0 !important; animation: none !important; }
  #s3 .rvp .portrait, #s3 .tapon, #s3 .rvd__foot, #s3 .actions, .needle, .lining__hand { display: none !important; }
  #s3 .rvp .sheet { background: none !important; padding: 0 !important; margin: 6mm 0 3mm !important; box-shadow: none !important; }
  #s3 .rvp .say { color: var(--ink) !important; text-shadow: none !important; font-size: 16pt !important; animation: none !important; clip-path: none !important; }
  #s3 .rvd__card { box-shadow: none; padding: 0; background: none; max-width: none; break-inside: avoid; margin-bottom: 4mm; }
  #s3 .card::before { display: none; }
  .dbig { font-size: 48pt; margin: 3mm 0 1mm; }
  .men .bar { transform: none !important; }
  .rvd .wlabel__in { opacity: 1 !important; }
  .men .bar.me, .condoms .me .cbar, .bell .area, .bell .avg { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* 08-10: Loading screen before the welcome video (downloads it in full so it never stalls) */
.loading { position: fixed; inset: 0; z-index: 50; background: var(--paper); display: grid; place-content: center; justify-items: center; gap: 18px; padding: 24px; transition: opacity .6s var(--ease-out); }
.loading[hidden] { display: none; }
.loading.is-out { opacity: 0; pointer-events: none; }
.loading__tape { position: relative; width: min(320px, 72vw); height: 34px; border-radius: 2px; background:
  repeating-linear-gradient(90deg, rgba(27,39,71,.55) 0 1px, transparent 1px 10px) bottom / 100% 10px no-repeat,
  repeating-linear-gradient(90deg, rgba(27,39,71,.8) 0 1.5px, transparent 1.5px 50px) bottom / 100% 18px no-repeat,
  rgba(241,200,75,.28); box-shadow: 0 6px 14px -8px rgba(43,28,10,.5); overflow: hidden; }
.loading__fill { position: absolute; inset: 0; clip-path: inset(0 100% 0 0); transition: clip-path .3s linear; background:
  repeating-linear-gradient(90deg, rgba(27,39,71,.7) 0 1px, transparent 1px 10px) bottom / 100% 10px no-repeat,
  repeating-linear-gradient(90deg, var(--ink) 0 1.5px, transparent 1.5px 50px) bottom / 100% 18px no-repeat,
  var(--tape); }
.loading__t { margin: 0; font-family: var(--hand); font-size: 40px; line-height: 1; color: var(--ink); }
.loading__dots i { font-style: normal; animation: ldot 1.2s infinite both; }
.loading__dots i:nth-child(2) { animation-delay: .2s; } .loading__dots i:nth-child(3) { animation-delay: .4s; }
@keyframes ldot { 0%, 80%, 100% { opacity: .15; } 40% { opacity: 1; } }
.loading__pct { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 22px; color: var(--ink); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .loading__dots i { animation: none; opacity: 1; } .loading__fill { transition: none; } }
.rvp .foot { display: flex; justify-content: flex-end; }
/* 08-10: while she asks if it's hard, the stroke tape goes away and her photo gets the height */
#s1.is-done .tape-run, #s1.is-done .tapehint { display: none; }
#s1.is-done { grid-template-rows: minmax(54dvh, 1fr) auto; }
#s1.is-done .portrait { min-height: 54dvh; }
#s1.is-done .sheet { padding-top: 16px; }
/* 08-10: the questions stand alone: no notes under the buttons, no speaker */
#s1.is-done .ready__note, #s1.is-done .controls { display: none; }
@media (min-width: 900px) { #s1.is-done .sheet { justify-content: center; } }

/* 08-10: her video among the "is it hard?" takes */
#w1-portrait video { transition: opacity .9s var(--ease-out); object-position: 50% 30%; }
#w1-portrait video.is-off { opacity: 0; }

/* 18+ gate */
.gate { position: fixed; inset: 0; z-index: 60; background: var(--paper); display: grid; place-content: center; justify-items: center; gap: 16px; padding: 24px; text-align: center; }
.gate[hidden] { display: none; }
.gate__t { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 44px; color: var(--ink); line-height: 1; }
.gate__p { margin: 0; max-width: 32ch; color: var(--ink); }
.gate__b { display: grid; gap: 10px; width: min(320px, 86vw); margin-top: 8px; }
.gate__b .btn { width: 100%; text-align: center; justify-content: center; }
/* the x20 test button only exists with ?dev in the address */
html:not(.dev) .titlebar__speed { display: none; }

/* oral / anal suitability card */
.suit { margin: 18px 0 8px; display: grid; gap: 4px; }
.suit__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(27,39,71,.15); }
.suit__row span { color: var(--ink-soft); }
.suit__row b { font-family: var(--serif); font-weight: 600; font-size: 26px; color: var(--ink); text-align: right; }
.suit__row b.suit--0 { color: var(--chalk-red); }
.dbig.suit--0 { color: var(--chalk-red); }

/* closing countdown: 60 s to come */
.cum { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-top: 14px; }
.cum__t { margin: 0; font-family: var(--hand); font-size: 26px; line-height: 1.1; color: var(--chalk-pink); }
.cum__n { font-family: var(--serif); font-weight: 600; font-size: 56px; line-height: 1; color: var(--chalk-white); font-variant-numeric: tabular-nums; }
.cum-over .cum { display: none; }
.rvp .foot .btn--wide { width: 100%; }
@media (min-width: 900px) {
  .cum__t { color: var(--chalk-red); }
  .cum__n { color: var(--ink); }
}
@media print { .cum, [data-cumdone] { display: none !important; } }
[data-cumdone][hidden] { display: none !important; }

/* 09-10 (Uxío): on desktop her photo is shown at full height, never cropped top and bottom.
   The photo column takes the width of a 900x1612 portrait at the screen's height; the words get the rest. */
@media (min-width: 900px) {
  #s0, .rvp.is-on { grid-template-columns: calc((100dvh - 34px) * 900 / 1612) minmax(0, 1fr); }
  #s0 .portrait img, #s0 .portrait video, .rvp .portrait img { object-position: 50% 50%; }
}

/* 09-10 (Uxío): no needle, no stitching. Her red ink stamp slams onto the report instead */
.wlabel { position: relative; }
.stamp { position: absolute; right: 12px; bottom: 10px; z-index: 2; display: grid; justify-items: center; padding: 6px 12px 7px;
  border: 3px double var(--chalk-red); border-radius: 6px; color: var(--chalk-red); background: rgba(255,255,255,.12);
  font-family: var(--serif); text-transform: uppercase; line-height: 1; transform: rotate(-12deg) scale(2.4); opacity: 0;
  mix-blend-mode: multiply; pointer-events: none; }
.stamp span { font-size: 11px; letter-spacing: .3em; font-weight: 600; }
.stamp b { font-size: 22px; letter-spacing: .08em; font-weight: 700; margin-top: 2px; }
.is-stamped .stamp { animation: stampIn .38s cubic-bezier(.2, .9, .3, 1.25) forwards; }
@keyframes stampIn { 0% { opacity: 0; transform: rotate(-12deg) scale(2.4); } 70% { opacity: .95; transform: rotate(-12deg) scale(.94); } 100% { opacity: .9; transform: rotate(-12deg) scale(1); } }
@media (prefers-reduced-motion: reduce) { .is-stamped .stamp { animation: none; opacity: .9; transform: rotate(-12deg); } }
@media print { .stamp { opacity: .9 !important; transform: rotate(-12deg) !important; animation: none !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
.rvd .wlabel__pair { justify-content: flex-start; padding-left: 20px; }
/* 09-10: photos of the positions carry the action on the right; keep it in frame on phones */
.rvp .portrait img[src*="/pos_"] { object-position: 72% 45%; }
.rvp .portrait img[src*="/pos_standing"] { object-position: 50% 40%; }
.rvp .portrait img[src*="/pos_frog"] { object-position: 45% 45%; }

/* 09-10 (Uxío): each sex position on its own screen. The photo starts at the top, whole; any spare height goes
   below it only, and a gradient fades the photo into that space, where its name sits. Nothing else. */
.rvpos.is-on { display: block; position: relative; height: calc(100vh - 34px); height: calc(100dvh - 34px); background: #1c222b; overflow: hidden; cursor: pointer; }
.posfig { margin: 0; position: absolute; inset: 0; }
.posfig img { width: 100%; height: auto; display: block; -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%); mask-image: linear-gradient(to bottom, #000 78%, transparent 100%); }
.posband { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  padding: 140px 20px calc(56px + env(safe-area-inset-bottom)); background: linear-gradient(to bottom, rgba(28,34,43,0) 0%, rgba(28,34,43,.85) 55%, #1c222b 100%); }
.postitle { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 40px; line-height: 1.05; color: #f4ecdc; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
@media print { #s3 .rvpos .posband .tapon { display: none !important; } #s3 .rvpos .posfig img { max-height: 120mm; } }
@media (min-width: 900px) { .rvpos.is-on { width: calc((100dvh - 34px) * 0.54); margin-inline: auto; } }
#s3 > .rv { justify-self: stretch; width: 100%; }
/* 09-10 (Uxío): the title bar stays, and the photos run underneath it instead of stacking below it:
   position screens and her speaking screens start at the very top of the screen */
.rvpos.is-on { margin-top: -34px; height: 100vh; height: 100dvh; }
@media (min-width: 900px) { .rvpos.is-on { width: calc(100dvh * 0.54); } }
.rvp.is-on { margin-top: -34px; min-height: 100vh; min-height: 100dvh; }
.rvp .portrait { min-height: 100vh; min-height: 100dvh; }
@media (min-width: 900px) { .rvp.is-on { height: 100vh; height: 100dvh; } }

/* 09-10 (Uxío): the report shows the two positions with their photos, and closes with her verdict */
.repw { margin-top: 26px; }
.repw__t, .verdict__k { font-family: var(--serif); font-weight: 600; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink); margin: 0 0 12px; }
.repw__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.repw figure { margin: 0; }
.repw img { width: 100%; height: auto; aspect-ratio: 900 / 1100; object-fit: cover; object-position: 50% 15%; display: block; border-radius: 4px; }
.repw figcaption { font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.1; color: var(--ink); margin-top: 6px; }
.verdict { margin-top: 28px; display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: center; padding-top: 20px; border-top: 1.5px solid var(--ink); }
.verdict img { width: 112px; height: 140px; object-fit: cover; object-position: 50% 12%; border-radius: 4px; display: block; }
.verdict__k { margin-bottom: 4px; }
.verdict__v { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 42px; line-height: 1; color: var(--chalk-red); }
@media print { .repw, .verdict { break-inside: avoid; } .repw img, .verdict img { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
/* 09-10 (Uxío): positions full width, one under the other; the verdict is her photo full width with the words over it, in white */
.repw__grid { grid-template-columns: 1fr; gap: 18px; }
.repw img { aspect-ratio: auto; height: auto; object-fit: initial; }
.repw figcaption { font-size: 26px; margin-top: 8px; }
.verdict { display: block; position: relative; padding-top: 0; border-top: 0; }
.verdict img { width: 100%; height: auto; border-radius: 4px; }
.verdict__txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 90px 22px 24px; border-radius: 0 0 4px 4px;
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.65)); text-align: center; }
.verdict__k { color: #fff; margin-bottom: 8px; }
.verdict__v { color: #fff; font-style: normal; font-weight: 600; font-size: 46px; letter-spacing: .02em; text-transform: uppercase; text-shadow: 0 2px 14px rgba(0,0,0,.45); }
@media print { .verdict__txt { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
.verdict__v { font-size: min(46px, 7.4vw); overflow-wrap: anywhere; }

/* 09-10 (Uxío: "el PDF es un desastre"): the PDF is ONLY the final report, laid out for A4.
   Page 1 label + numbers, page 2 the two positions side by side, page 3 her verdict */
@media print {
  #s3 .rv > .rvs { display: none !important; }
  #s3 .rv > .rvs:last-child { display: block !important; }
  #s3 .rvd__card { max-width: none; }
  .sum { margin-top: 6mm; }
  .sum > div { padding: 3mm 0; }
  .repw { break-before: page; margin-top: 0; }
  .repw__grid { grid-template-columns: 1fr 1fr !important; gap: 8mm !important; }
  .repw figure { break-inside: avoid; }
  .repw img { width: 100%; height: auto; max-height: 220mm; object-fit: contain; }
  .repw figcaption { font-size: 18pt; }
  .verdict { break-before: page; width: 120mm; margin: 0 auto; }
  .verdict img { width: 100%; height: auto; }
  .verdict__v { font-size: 30pt !important; }
  .cite { margin-top: 6mm; }
}
@media print { .sum dt { font-size: 13pt; } .sum dd { font-size: 20pt; } .sum dd small { font-size: 10pt; } }

/* 09-10: feedback at the end, a quiet line; the box only appears if he taps it */
.fb { margin-top: 22px; text-align: center; }
.fb__open { background: none; border: 0; padding: 6px 4px; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.fb__form { display: grid; gap: 10px; text-align: left; }
.fb__form textarea { width: 100%; box-sizing: border-box; font: 17px/1.4 var(--serif); color: var(--ink); background: #fff; border: 1.5px solid var(--ink); border-radius: 4px; padding: 10px 12px; resize: vertical; }
.fb__ok { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--ink); margin: 6px 0 0; }
@media print { .fb { display: none !important; } }
.fb__form[hidden], .fb__ok[hidden], .fb__open[hidden] { display: none !important; }
.share-link { font-family: var(--serif); font-size: 16px; color: var(--ink); background: #fff; border: 1px dashed var(--ink-soft); border-radius: 4px; padding: 8px 10px; margin: 0; -webkit-user-select: all; user-select: all; word-break: break-all; }
@media print { .share-link { display: none !important; } }
.gate__need { margin-top: 10px; }
/* 10-10 (Uxío): the verdict higher on her photo and bigger */
.verdict__txt { bottom: 11%; padding: 0 14px; background: none; }
.verdict::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 55%; border-radius: 0 0 4px 4px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.72) 70%, rgba(0,0,0,.8)); }
.verdict__txt { z-index: 1; }
.verdict__k { font-size: 16px; letter-spacing: .32em; margin-bottom: 10px; }
.verdict__v { font-size: 72px; letter-spacing: .01em; line-height: 1; }

.verdict__v { white-space: nowrap; overflow-wrap: normal; }
@media (max-width: 899px) { .verdict__txt { padding: 0 30px; } }
/* 10-10 (Uxío): her description of each position, on its own page after the photo */
.posdesc { margin: 22px 0 0; font-family: var(--hand); font-size: clamp(27px, 7vw, 34px); line-height: 1.18; color: var(--ink); text-wrap: pretty; }
/* 10-10 (Uxío: "en el PDF la imagen de ella no sale completa"): her verdict photo never taller than the page */
@media print { .verdict { width: auto; max-width: 120mm; } .verdict img { max-height: 225mm; width: auto; max-width: 100%; margin: 0 auto; } }
/* 10-10 (Uxío): back button on the positions and their explanations */
.rvnav { display: flex; gap: 12px; flex: none; }
.rvp .foot:has(.rvback) { justify-content: space-between; }
/* 10-10: a photo screen can carry her video on top of its still (first frame), played once, holding the last frame */
.portrait .pvid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
@media (min-width: 900px) { .portrait .pvid { object-position: 50% 50%; } }
@media print { .pvid { display: none !important; } }
