/* Design IQ: on top of the game's site look (app.css + site.css), demos.css and rounds.css, which bring the
   headings, the bar along the bottom and the two AI rounds' styles. */

/* ---------- The run: progress along the top ---------- */
.ey-top {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: stretch; height: 64px;
  margin: -24px -24px 0; background: var(--bg); border-bottom: 1px solid var(--line);
}
.ey-top .ey-exit { flex: none; width: 64px; height: auto; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: none; }
.ey-top .ey-exit:hover { background: var(--surface); }
.ey-top .score-chip { flex: none; justify-content: center; min-width: 64px; height: auto; padding: 0 20px; border: 0; border-left: 1px solid var(--line); border-radius: 0; background: none; }
.ey-top .pips { flex: 1; display: flex; align-items: center; gap: 4px; padding: 0 20px; }
.ey-top .pip { flex: 1; height: 8px; border-radius: 99px; background: var(--surface-2); }
.ey-top .pip.now { background: color-mix(in oklab, var(--ink) 55%, var(--surface-2)); }
.ey-top .pip.great { background: var(--green); }
.ey-top .pip.close { background: var(--amber); }
.ey-top .pip.miss { background: var(--red); }
.ey-exit .ic { width: 20px; height: 20px; }

/* ---------- The bar along the bottom, built like the top one ---------- */
/* Square cells split by hairlines, fixed to the page's column: the result in a tinted cell (like the back cell),
   what happened, the points (like the score cell), and the button filling the last cell. */
.sheet {
  left: 50%; right: auto; bottom: 0; width: min(860px, 100%); max-width: none; box-sizing: border-box; margin: 0; padding: 0 0 env(safe-area-inset-bottom);
  overflow: visible; border: 0; border-top: 1px solid var(--line); border-inline: 1px solid var(--line); border-radius: 0; box-shadow: none;
  background: var(--bg); translate: -50% 0; animation: sheet-up 0.35s var(--ease-pop) both;
}
.sheet.waiting { border-color: var(--line); background: var(--bg); }
.sheet-in { max-width: none; min-height: 64px; margin: 0; gap: 0; align-items: stretch; flex-wrap: nowrap; }
.sheet-badge {
  flex: none; width: 64px; height: auto; border-radius: 0; border-right: 1px solid var(--line); box-shadow: none; animation: none;
  background: color-mix(in oklab, var(--tone) 16%, var(--bg)); color: var(--tone);
}
.sheet-badge .ic { width: 24px; height: 24px; animation: pop-in 0.45s 0.1s var(--ease-pop) both; }
.sheet-text { flex: 1 1 0; min-width: 0; align-self: center; padding: 10px 20px; }
.sheet-title { font: 600 16px/1.25 Geist; letter-spacing: -0.01em; }
.sheet.waiting .sheet-title { font: 600 16px/1.25 Geist; }
.sheet-sub { margin-top: 3px; color: var(--text-muted); font-size: 14px; font-weight: 400; line-height: 1.4; }
.sheet-pts {
  display: grid; flex: none; place-items: center; min-width: 64px; box-sizing: border-box; padding: 0 20px; border-left: 1px solid var(--line); border-radius: 0;
  background: none; color: var(--tone); font: 600 18px/1 Geist; letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.sheet-actions { flex: none; gap: 0; margin-left: 0; border-left: 1px solid var(--line); }
.sheet-actions .key { flex: 1; height: auto; min-height: 64px; padding: 0 28px; border: 0; border-radius: 0; box-shadow: none; font-size: 15px; }
.sheet-actions .key:disabled { background: none; }
@media (max-width: 720px) {
  .sheet { width: 100%; border-inline: 0; }
  .sheet-in { flex-wrap: wrap; min-height: 0; }
  .sheet-badge { width: 56px; }
  .sheet-text { padding: 10px 14px; }
  .sheet-pts { min-width: 56px; padding: 0 14px; }
  /* The result's button gets its own full-width row; Check stays a cell beside the text. */
  .sheet-actions { width: 100%; border-left: 0; border-top: 1px solid var(--line); }
  .sheet-actions .key { min-height: 56px; }
  .sheet.waiting .sheet-in { flex-wrap: nowrap; }
  .sheet.waiting .sheet-actions { width: auto; border-top: 0; border-left: 1px solid var(--line); }
  .sheet.waiting .sheet-actions .key { padding: 0 20px; }
}

/* ---------- Start: the title, the game playing itself, the levels ---------- */
.ey-start, .ey-end { max-width: 720px; margin: 40px auto 0; text-align: center; }
.ey-start h1 { margin: 0; font: 700 clamp(44px, 7vw, 68px)/1 Geist; letter-spacing: -0.045em; }
.ey-lede { margin: 12px auto 0; max-width: 40ch; color: var(--text-muted); font-size: 16px; line-height: 1.5; text-wrap: balance; }

/* The showcase: four rounds play themselves, 4 s each, on a 16 s loop. `--i` is the scene's place in the loop. */
.ey-show { max-width: 560px; margin: 30px auto 0; }
.ey-show .ey-fit { border-radius: 16px; }
.ey-art.sh { background: #0f1012; }
.sh-scene { position: absolute; inset: 0; opacity: 0; animation: sh-vis 16s calc(var(--i) * 4s) infinite both; }
.sh-scene * { animation-delay: calc(var(--i) * 4s); animation-duration: 16s; animation-iteration-count: infinite; animation-fill-mode: both; }
@keyframes sh-vis { 0% { opacity: 0; } 2%, 23% { opacity: 1; } 25%, 100% { opacity: 0; } }
.sh-chip {
  position: absolute; left: 50%; bottom: 22px; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 8px; border-radius: 99px;
  background: #fff; color: #0b7a3e; font: 600 13px/1 Geist; white-space: nowrap; translate: -50% 0; box-shadow: 0 6px 18px -6px rgb(0 0 0 / 0.4);
  animation-name: sh-chip;
}
.sh-chip .ic { width: 18px; height: 18px; color: #12a150; }
@keyframes sh-chip { 0%, 13% { opacity: 0; transform: translateY(6px) scale(0.9); } 15%, 100% { opacity: 1; transform: none; } }
/* 1. The play icon lands on the maths centre, then moves right to the optical one. */
.sh-video { position: absolute; inset: 0; background: center / cover; }
.sh-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgb(0 0 0 / 0.1), rgb(0 0 0 / 0.45)); }
.sh-btn { position: absolute; left: 220px; top: 97px; width: 120px; height: 120px; border-radius: 50%; background: rgb(255 255 255 / 0.95); box-shadow: 0 12px 30px -8px rgb(0 0 0 / 0.5); }
.sh-axis { position: absolute; left: 280px; top: 80px; width: 0; height: 154px; border-left: 1px solid #ff3d6e; animation-name: sh-axis; }
@keyframes sh-axis { 0%, 5% { opacity: 0; } 6%, 9.5% { opacity: 1; } 11%, 100% { opacity: 0; } }
.sh-tri { position: absolute; left: 259.5px; top: 133px; width: 41px; height: 48px; background: #131417; clip-path: polygon(0 0, 100% 50%, 0 100%); animation-name: sh-tri; }
@keyframes sh-tri {
  0% { transform: translate(-150px, 60px); }
  6%, 9% { transform: translate(0, 0); animation-timing-function: ease-in-out; }
  12%, 100% { transform: translate(6px, 0); }
}
/* 2. The photo's corner goes from square, to too round, to the card's radius less the padding. */
.sh-canvas { background: radial-gradient(circle, rgb(0 0 0 / 0.09) 1px, transparent 1.5px) 0 0 / 20px 20px, #ecebe7; }
.sh-card { position: absolute; left: 160px; top: 26px; width: 240px; padding: 10px; border-radius: 28px; background: #fff; text-align: left; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.05), 0 12px 28px -14px rgb(0 0 0 / 0.25); }
.sh-photo { position: relative; height: 150px; background: center / cover; animation-name: sh-photo; }
@keyframes sh-photo { 0%, 3% { border-radius: 0; } 7% { border-radius: 40px; } 11%, 100% { border-radius: 18px; } }
.sh-card p { display: grid; gap: 2px; margin: 10px 4px 2px; color: #6a6a6a; font: 400 13px/1.3 Geist; }
.sh-card b { color: #16181c; font-size: 14px; font-weight: 600; }
.sh-ring { position: absolute; border: 1.5px dashed #12a150; border-radius: 50%; animation-name: sh-ring; }
.sh-ring.o { left: -10px; top: -10px; width: 56px; height: 56px; }
.sh-ring.n { left: 0; top: 0; width: 36px; height: 36px; }
@keyframes sh-ring { 0%, 11.5% { opacity: 0; } 13%, 100% { opacity: 1; } }
/* 3. One size in the scale grows too big, then settles into step. */
.sh-white { background: #fff; }
.sh-scale { position: absolute; left: 0; right: 0; top: 84px; height: 120px; display: flex; align-items: baseline; justify-content: center; gap: 22px; color: #16181c; font: 600 13px/1 Geist; letter-spacing: -0.02em; }
.sh-scale span { line-height: 1; }
.sh-scale .free { color: #2f7bff; animation-name: sh-free; }
@keyframes sh-free { 0%, 3% { font-size: 19px; } 7% { font-size: 44px; } 11%, 100% { font-size: 30.8px; } }
/* 4. Four colours even out, then turn grey: one grey means equally bright. */
.sh-swatches { position: absolute; left: 0; right: 0; top: 78px; display: flex; justify-content: center; gap: 14px; }
.sh-swatches i { width: 96px; height: 130px; border-radius: 14px; animation-name: sh-sw; }
@keyframes sh-sw { 0%, 3% { background: var(--from); } 8%, 11% { background: var(--to); } 13%, 100% { background: var(--grey); } }
.sh-caps { position: relative; height: 22px; margin: 12px 0 0; color: var(--text-muted); font-size: 14px; }
.sh-caps span { position: absolute; inset: 0; opacity: 0; animation: sh-vis 16s calc(var(--i) * 4s) infinite both; }
@media (prefers-reduced-motion: reduce) {
  .sh-scene, .sh-scene *, .sh-caps span { animation: none !important; }
  .sh-scene[style*="--i:0"], .sh-caps span:first-child { opacity: 1; }
  .sh-tri { transform: translate(6px, 0); }
}

/* The levels, a short path of nodes (Mimo's and Life Reset's): a ring for your best, a lock until it opens. */
.ey-path { display: grid; grid-template-columns: repeat(3, 1fr); margin: 34px auto 0; padding: 0; max-width: 560px; list-style: none; }
.ey-level { position: relative; display: grid; align-content: start; justify-items: center; gap: 4px; }
.ey-level:not(:last-child)::after { content: ""; position: absolute; top: 32px; left: calc(50% + 42px); right: calc(-50% + 42px); border-top: 2px dashed var(--line); }
.ey-node {
  position: relative; display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 8px; padding: 0; border: 0; border-radius: 20px; cursor: pointer;
  background: conic-gradient(var(--ink) calc(var(--p) * 360deg), var(--surface-2) 0); color: var(--text); font: 650 22px/1 Geist;
}
.ey-node::before { content: ""; position: absolute; inset: 4px; border-radius: 16px; background: var(--surface); }
.ey-node > * { position: relative; }
.ey-node:hover:not(:disabled)::before { background: var(--surface-2); }
/* The level up next stays the same size as the others: its ring's empty part is tinted, its number in colour. */
.ey-level.current .ey-node { background: conic-gradient(var(--ink) calc(var(--p) * 360deg), color-mix(in oklab, var(--ink) 38%, var(--surface-2)) 0); color: var(--ink); }
.ey-node:disabled { cursor: default; background: var(--surface); color: var(--text-faint); }
.ey-node .ic { width: 22px; height: 22px; }
.ey-level-name { font-size: 15px; font-weight: 600; }
.ey-level small { max-width: 18ch; color: var(--text-faint); font-size: 13px; line-height: 1.35; text-wrap: balance; }
.ey-level.locked .ey-level-name { color: var(--text-muted); }
.ey-go { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; margin-top: 30px; color: var(--text-faint); font-size: 13.5px; }

/* ---------- The end of a level ---------- */
.ey-total { margin: 0; font: 700 clamp(60px, 10vw, 92px)/1 Geist; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.ey-total small { color: var(--text-faint); font-size: 0.34em; letter-spacing: -0.02em; }
.ey-verdict { margin: 10px 0 0; color: var(--text-muted); font-size: 16px; }
.ey-status { display: inline-block; margin: 14px 0 0; padding: 7px 12px; border-radius: 99px; background: var(--surface); color: var(--text-muted); font: 500 13.5px/1.2 Geist; }
.ey-status.good { background: color-mix(in oklab, var(--green) 16%, transparent); color: var(--green); }
.ey-parts { display: flex; justify-content: center; gap: 1px; width: fit-content; margin: 24px auto 0; background: var(--line); border: 1px solid var(--line); }
.ey-part { display: grid; gap: 6px; min-width: 150px; padding: 14px 18px; background: var(--surface); }
.ey-part b { font: 650 28px/1 Geist; letter-spacing: -0.03em; }
.ey-part span { color: var(--text-muted); font-size: 13px; }
.ey-list { display: grid; gap: 1px; max-width: 520px; margin: 24px auto 0; padding: 0; list-style: none; text-align: left; background: var(--line); border: 1px solid var(--line); }
.ey-list li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--bg); }
.ey-list li > span { display: grid; flex: 1; gap: 2px; min-width: 0; font-size: 14px; font-weight: 500; line-height: 1.3; }
.ey-list small { color: var(--text-faint); font-size: 12.5px; font-weight: 400; }
.ey-list b { font: 600 16px/1 Geist; font-variant-numeric: tabular-nums; }
.ey-list li.great b { color: var(--green); }
.ey-list li.close b { color: var(--amber); }
.ey-list li.miss b { color: var(--red); }
.ey-again { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 28px; }
.ey-again .text-btn { padding: 0 12px; height: 48px; border: 0; background: none; color: var(--text-muted); font: 500 14px/1 Geist; cursor: pointer; }
.ey-again .text-btn:hover { color: var(--text); }

/* ---------- A craft round: an artboard in design pixels, scaled to fit ---------- */
.ey { display: grid; gap: 18px; }
.ey-fit { position: relative; width: 100%; margin: 0 auto; overflow: hidden; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
.ey-art {
  position: absolute; left: 0; top: 0; overflow: hidden; transform-origin: 0 0; color: #16181c;
  background: radial-gradient(circle, rgb(0 0 0 / 0.09) 1px, transparent 1.5px) 0 0 / 20px 20px, #ecebe7;
  font-family: Geist, system-ui, sans-serif; -webkit-user-select: none; user-select: none;
}
/* Handles, in the blue of a design tool's selection. They stay finger-sized when the artboard shrinks. */
.ey-h {
  position: absolute; z-index: 5; box-sizing: border-box; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 2px #2f7bff, 0 2px 6px rgb(0 0 0 / 0.3); cursor: grab; touch-action: none; outline: none; scale: var(--hk, 1);
}
.ey-h::before { content: ""; position: absolute; inset: -14px; border-radius: 50%; }
.ey-h:focus-visible { box-shadow: 0 0 0 2px #2f7bff, 0 0 0 7px rgb(47 123 255 / 0.35); }
.ey-h.dragging { cursor: grabbing; }
.done .ey-h { display: none; }
.ey-over { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; overflow: visible; pointer-events: none; animation: ov-in 0.5s ease-out both; }
@keyframes ov-in { from { opacity: 0; } }

/* The reveal under the artboard. */
/* In the site's look, like the top bar and the end screen: square cells split by hairlines, no icon tile. The
   title and its text first, the pictures in the next cell, the credit last. */
.ey-why { display: grid; gap: 1px; border: 1px solid var(--line); background: var(--line); }
.ey-why-cell { display: grid; gap: 16px; padding: 18px 20px; background: var(--bg); }
.ey-why-head { gap: 0; }
.ey-why-foot { padding-block: 12px; }
.ey-why h3 { margin: 0; font: 600 17px/1.3 Geist; letter-spacing: -0.015em; }
.ey-lesson { margin: 6px 0 0; color: var(--text-muted); font-size: 14.5px; line-height: 1.5; text-wrap: pretty; }
.ey-credit { margin: 0; color: var(--text-faint); font-size: 12.5px; line-height: 1.45; }
.ey-key { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0; color: var(--text-muted); font-size: 13px; }
/* Each swatch stays with its words when the line wraps. */
.ey-key span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.ey-key i { flex: none; width: 12px; height: 12px; }
.ey-key .k-box { border: 1px dashed #2f7bff; }
.ey-key .k-hollow { border: 1.5px solid #2f7bff; border-radius: 50%; background: #fff; }
.ey-key .k-dot { border-radius: 50%; background: #ff3d6e; }
.ey-compare { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.ey-compare figure { display: grid; justify-items: center; align-content: start; gap: 8px; margin: 0; }
.ey-compare figcaption { max-width: 22ch; color: var(--text-muted); font-size: 13px; line-height: 1.35; text-align: center; }
.ey-compare .good figcaption { color: var(--green); }
.ey-compare .off figcaption { color: var(--amber); }
.ey-compare .ey-fit { width: min(280px, 78vw); }

/* ---------- 1. Centre the play button ---------- */
.ey-art.cp { background-position: center; background-size: cover; }
.ey-art.cp::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgb(0 0 0 / 0.1), transparent 40%, rgb(0 0 0 / 0.55)); }
.cp-btn { position: absolute; border-radius: 50%; background: rgb(255 255 255 / 0.95); box-shadow: 0 12px 34px -6px rgb(0 0 0 / 0.45); }
.cp-bar { position: absolute; left: 22px; right: 22px; bottom: 16px; z-index: 1; display: flex; align-items: center; gap: 12px; color: #fff; font: 500 12px/1 Geist; font-variant-numeric: tabular-nums; }
.cp-bar i { flex: 1; height: 4px; border-radius: 99px; background: rgb(255 255 255 / 0.35); }
.cp-tri { position: absolute; z-index: 3; cursor: grab; touch-action: none; outline: none; filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff); }
.cp-tri::before { content: ""; position: absolute; inset: -18px; }
.cp-tri svg { display: block; fill: #131417; }
.cp-tri:focus-visible { outline: 1.5px dashed #2f7bff; outline-offset: 5px; }
.cp-tri.dragging { cursor: grabbing; }
.done .cp-tri { cursor: default; }
.ov-axis { stroke: #ff3d6e; stroke-width: 1; }
.ov-box { fill: none; stroke: #2f7bff; stroke-width: 1; stroke-dasharray: 4 3; }
.ov-hollow { fill: #fff; stroke: #2f7bff; stroke-width: 1.5; }
.ov-dot { fill: #ff3d6e; }
.cp-mini { display: block; width: 120px; height: 120px; border-radius: 12px; background: #2b2d33; }
.cp-mini .cp-mini-btn { fill: #fff; }
.cp-mini path { fill: #131417; }

/* ---------- 2. Round the inner corner ---------- */
.ic-card { position: absolute; box-sizing: border-box; background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.05), 0 2px 4px rgb(0 0 0 / 0.04), 0 12px 28px -14px rgb(0 0 0 / 0.22); }
.ic-img { position: relative; border-radius: calc(var(--r) * 1px); background: center / cover; }
.ic-heart { position: absolute; right: 10px; top: 10px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgb(255 255 255 / 0.92); color: #e8384f; box-shadow: 0 1px 4px rgb(0 0 0 / 0.18); }
.ic-heart .ic { width: 15px; height: 15px; }
.ic-text { display: grid; gap: 2px; padding: 12px 4px 4px; color: #6a6a6a; font: 400 14px/1.35 Geist; }
.ic-text p { margin: 0; }
.ic-line { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; color: #16181c; }
.ic-line b { font-weight: 600; font-size: 15px; }
.ic-rate { display: inline-flex; align-items: center; gap: 3px; font-size: 13.5px; }
.ic-rate .ic { width: 12px; height: 12px; color: #16181c; }
.ic-price { margin-top: 6px !important; color: #16181c; }
.ic-price b { font-weight: 600; }
.ic-price span { color: #6a6a6a; text-decoration: underline; text-underline-offset: 2px; }
.ic-lens { position: absolute; left: 376px; top: 70px; display: grid; justify-items: center; gap: 14px; color: #6b6e75; font-size: 13px; }
.ic-loupe { position: relative; width: 180px; height: 180px; overflow: hidden; border-radius: 50%; background: radial-gradient(circle, rgb(0 0 0 / 0.09) 1px, transparent 1.5px) 0 0 / 60px 60px, #ecebe7; box-shadow: 0 0 0 4px #fff, 0 12px 30px -8px rgb(0 0 0 / 0.35); }
.ic-loupe.mini { width: 132px; height: 132px; box-shadow: none; }
.ic-zoom { position: absolute; left: 0; top: 0; width: 600px; height: 400px; transform-origin: 0 0; }
.ic-zoom .ic-card { box-shadow: 0 1px 1px rgb(0 0 0 / 0.08); }
.ic-rings { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; animation: ov-in 0.5s ease-out both; }
.ov-ring { fill: none; stroke: #2f7bff; stroke-width: 1.2; stroke-dasharray: 3 2; vector-effect: non-scaling-stroke; }
.ov-ring.ok { stroke: #12a150; }
.ov-ring.no { stroke: #ff3d6e; }
.ov-c { fill: #2f7bff; }
.ov-c.ok { fill: #12a150; }
.ov-c.no { fill: #ff3d6e; }

/* ---------- 3. Same size, by eye ---------- */
.ss-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ss-pill { fill: #17181b; }
.ss-btn { fill: #2b2d33; }
.ss-shape { fill: #f4f4f5; }
.ss-sel { fill: none; stroke: #2f7bff; stroke-width: 1; stroke-dasharray: 3 2; }
.ss-out { fill: none; stroke-width: 1.5; animation: ov-in 0.6s ease-out both; }
.ss-out.sq { stroke: #f4f4f5; }
.ss-out.ci { stroke: #ff7a9a; }
.ss-out.tr { stroke: #5ab0ff; }
.ss-knob { border-radius: 2px; width: 12px; height: 12px; margin: -6px 0 0 -6px; }
.ss-fig { position: relative; width: min(228px, 78vw); aspect-ratio: 560 / 230; overflow: hidden; border-radius: 12px; background: #ecebe7; }

/* ---------- 4. Hang the quote mark ---------- */
.ey-art.hq { background: #f7f3ea; }
.hq-block { position: absolute; top: 54px; width: 440px; }
.hq-kicker { margin: 0 0 16px; color: #b0412e; font: 600 12px/1 Geist; letter-spacing: 0.14em; text-transform: uppercase; }
.hq-quote { margin: 0; color: #1d1a16; font: 400 30px/1.25 Georgia, "Times New Roman", serif; letter-spacing: -0.01em; }
.hq-by { margin: 18px 0 0; color: #6f675c; font: 400 14px/1.4 Geist; }
.hq-mark { position: relative; z-index: 2; border-radius: 3px; box-shadow: 0 0 0 1.5px #2f7bff; background: rgb(47 123 255 / 0.1); cursor: grab; touch-action: none; outline: none; }
.hq-mark::before { content: ""; position: absolute; inset: -16px -12px; }
.hq-mark:focus-visible { box-shadow: 0 0 0 1.5px #2f7bff, 0 0 0 5px rgb(47 123 255 / 0.3); }
.hq-mark.dragging { cursor: grabbing; }
.done .hq-mark { box-shadow: none; background: none; cursor: default; }
.hq-edge { position: absolute; top: 34px; bottom: 34px; z-index: 3; border-left: 1px solid #ff3d6e; animation: ov-in 0.5s ease-out both; }

/* ---------- 5. Even out the type scale ---------- */
.ey-art.ts { background: #fff; }
.ts-row { position: absolute; left: 0; right: 0; bottom: 116px; display: flex; align-items: baseline; justify-content: center; gap: 26px; }
.ts-aa { position: relative; color: #16181c; font-family: Geist; font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.ts-aa.free { color: #2f7bff; outline: 1px dashed #2f7bff; outline-offset: 3px; }
.done .ts-aa.free { outline: none; }
.ts-base { width: 0; height: 0; margin-left: -26px; }
.ts-knob { cursor: ns-resize; }
.ts-stem { position: absolute; width: 0; border-left: 1px dashed #2f7bff; pointer-events: none; }
.done .ts-stem { display: none; }
.ts-name, .ts-px, .ts-ratio { position: absolute; translate: -50% 0; white-space: nowrap; }
.ts-name { color: #6b6e75; font: 500 12px/1 Geist; }
.ts-px { color: #16181c; font: 500 11px/1 var(--mono); animation: ov-in 0.5s ease-out both; }
.ts-ratio { padding: 3px 5px; border-radius: 5px; background: rgb(18 161 80 / 0.12); color: #0d7a3c; font: 600 11px/1 var(--mono); animation: ov-in 0.5s ease-out both; }
.ts-ratio.off { background: rgb(229 72 77 / 0.12); color: #c62a30; }

/* ---------- 6. Make it easy to read ---------- */
.ey-art.er { background: #fff; }
.er-title { position: absolute; top: 46px; margin: 0; color: #16181c; font: 650 26px/1.15 Geist; letter-spacing: -0.02em; }
.er-text { position: absolute; margin: 0; color: #2a2c31; font-family: Geist; outline: 1px dashed rgb(47 123 255 / 0.55); outline-offset: 6px; }
.done .er-text { outline: none; }
/* Width: the column's right edge itself, a blue line with a grip half-way down. Line spacing: a round knob on a track. */
.er-edge { width: 24px; height: 0; margin: 0 0 0 -12px; border-radius: 0; background: none; box-shadow: none; scale: 1; cursor: ew-resize; }
.er-edge::before { inset: 0 auto 0 50%; width: 2px; margin-left: -1px; border-radius: 1px; background: #2f7bff; }
.er-edge::after, .er-lead { box-shadow: 0 0 0 1.5px #2f7bff, 0 2px 8px rgb(0 0 0 / 0.22); }
.er-edge::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 36px; translate: -50% -50%; scale: var(--hk, 1); border-radius: 6px;
  background: #fff linear-gradient(90deg, transparent 4px, #2f7bff 4px 5px, transparent 5px 7px, #2f7bff 7px 8px, transparent 8px) center / 100% 14px no-repeat;
}
.er-edge:focus-visible { box-shadow: none; }
.er-edge:focus-visible::after, .er-lead:focus-visible { box-shadow: 0 0 0 1.5px #2f7bff, 0 0 0 6px rgb(47 123 255 / 0.3); }
.er-lead { width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; cursor: ns-resize; }
.er-track { position: absolute; width: 2px; height: 112px; margin-left: -1px; border-radius: 2px; background: #dfe3ea; }
.done .er-track { display: none; }
.er-band { position: absolute; bottom: 0; background: rgb(18 161 80 / 0.08); animation: ov-in 0.5s ease-out both; }
.er-rule { position: absolute; bottom: 0; padding: 2px 0 0 4px; border-left: 1px dashed #12a150; color: #0d7a3c; font: 600 11px/1 var(--mono); animation: ov-in 0.5s ease-out both; }
.er-probe { position: absolute; visibility: hidden; white-space: nowrap; font-family: Geist; }

/* ---------- 7. The faintest grey that passes ---------- */
.ey-art.fg { color: var(--ink); --hair: rgb(0 0 0 / 0.14); }
.ey-art.fg.dark { --hair: rgb(255 255 255 / 0.16); }
.bp { position: absolute; left: 40px; top: 26px; width: 400px; height: 324px; border-radius: 18px; background: var(--pass); box-shadow: 0 1px 2px rgb(0 0 0 / 0.08), 0 18px 40px -20px rgb(0 0 0 / 0.4); }
.bp-head { position: absolute; left: 24px; right: 24px; top: 20px; display: flex; align-items: center; gap: 10px; }
.bp-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #e2542c; color: #fff; }
.bp-mark .ic { width: 17px; height: 17px; }
.bp-air { font: 650 15px/1 Geist; letter-spacing: -0.01em; }
.bp-top { display: flex; gap: 22px; margin-left: auto; text-align: right; }
.bp-label { display: block; color: var(--grey); font: 600 10.5px/1 Geist; letter-spacing: 0.08em; text-transform: uppercase; }
.bp-val { display: block; margin-top: 6px; font: 550 17px/1 Geist; letter-spacing: -0.01em; }
.bp-route { position: absolute; left: 24px; right: 24px; top: 76px; display: flex; align-items: flex-start; justify-content: space-between; }
.bp-route .right { text-align: right; }
.bp-iata { display: block; font: 300 48px/1 Geist; letter-spacing: -0.03em; }
.bp-city { display: block; margin-top: 6px; color: var(--grey); font: 400 13px/1 Geist; }
.bp-plane { margin-top: 14px; }
.bp-plane .ic { width: 22px; height: 22px; }
.bp-fields { position: absolute; left: 24px; right: 24px; top: 160px; display: grid; grid-template-columns: 1.7fr 1fr 1fr 0.7fr; gap: 12px; }
.bp-fields .bp-val { font-size: 15px; }
.bp-tear { position: absolute; left: 14px; right: 14px; top: 220px; border-top: 1.5px dashed var(--hair); }
.bp-tear::before, .bp-tear::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--page); }
.bp-tear::before { left: -25px; }
.bp-tear::after { right: -25px; }
.bp-bar { position: absolute; left: 0; right: 0; top: 242px; display: grid; justify-items: center; gap: 10px; }
.bp-code { display: flex; height: 40px; }
.bp-code i { display: block; height: 100%; background: var(--ink); }
.bp-note { color: var(--grey); font: 400 12px/1 Geist; }
.fg-slide { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; width: 100%; max-width: 480px; margin: 0 auto; color: var(--text-muted); font-size: 13px; }
.fg-ramp { display: grid; grid-template-columns: repeat(11, 1fr); gap: 2px; padding: 12px 8px; border-radius: 12px; }
.fg-sw { display: grid; justify-items: center; gap: 6px; }
.fg-sw span { font: 600 18px/1 Geist; }
.fg-sw small { opacity: 0.75; font: 500 11px/1 var(--mono); }
.fg-sw.fail span { text-decoration: line-through 2px #ff3d6e; }

/* ---------- 8. Equally bright ---------- */
.ey-art.cb { background: #fff; }
.cb-title { position: absolute; left: 34px; top: 26px; margin: 0; font: 650 20px/1 Geist; letter-spacing: -0.02em; }
.cb-sub { position: absolute; left: 34px; top: 54px; margin: 0; color: #6a6a6a; font: 400 14px/1 Geist; }
.cb-sw { position: absolute; border-radius: 14px; cursor: ns-resize; touch-action: none; outline: none; transition: background 0.35s; }
.cb-sw.dragging { transition: none; }
.cb-sw:focus-visible { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #2f7bff; }
.cb-sw.ref { cursor: default; }
.cb-track { position: absolute; left: 50%; top: 14px; bottom: 14px; width: 2px; margin-left: -1px; border-radius: 1px; background: rgb(255 255 255 / 0.55); }
.cb-knob { position: absolute; left: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px rgb(0 0 0 / 0.12), 0 2px 6px rgb(0 0 0 / 0.3); scale: var(--hk, 1); }
.cb-lock { position: absolute; right: 10px; top: 10px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgb(255 255 255 / 0.9); color: #16181c; }
.cb-lock .ic { width: 14px; height: 14px; }
.done .cb-sw { cursor: default; }
.done .cb-track, .done .cb-knob { display: none; }
.cb-name { position: absolute; display: grid; gap: 3px; margin: 0; font: 600 14px/1.2 Geist; }
.cb-hex { color: #6a6a6a; font: 500 12px/1 var(--mono); }
.ey-toggle { justify-self: start; height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--text); font: 500 13.5px/1 Geist; cursor: pointer; }
.ey-toggle:hover { background: var(--raised); }

/* ---------- 9. Black or white text? ---------- */
.ey-art.bw { background: #fff; }
.bw-head { position: absolute; left: 34px; top: 26px; }
.bw-title { margin: 0; font: 650 20px/1 Geist; letter-spacing: -0.02em; }
.bw-sub { margin: 8px 0 0; color: #6a6a6a; font: 400 14px/1 Geist; }
.bw-grid { position: absolute; left: 34px; right: 34px; top: 100px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 16px; }
.bw-cell { display: grid; justify-items: start; gap: 8px; }
.bw-pill { min-width: 120px; height: 46px; padding: 0 22px; border: 0; border-radius: 23px; font: 600 16px/1 Geist; cursor: pointer; transition: color 0.15s; }
.bw-pill:hover:not(:disabled) { filter: brightness(1.05); }
.bw-pill:focus-visible { outline: 2px solid #2f7bff; outline-offset: 3px; }
.bw-pill:disabled { cursor: default; }
.bw-pill.right { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #12a150; }
.bw-pill.wrong { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #e5484d; }
.bw-cr { min-height: 14px; color: #6a6a6a; font: 400 12px/1.2 Geist; }
.bw-cr b { color: #16181c; font-weight: 600; }

/* ---------- 10. Fill the missing shade ---------- */
.ey-art.pk { background: #fafafa; }
.pk-title { position: absolute; left: 20px; top: 24px; margin: 0; font: 650 20px/1 Geist; letter-spacing: -0.02em; }
.pk-sub { position: absolute; left: 20px; top: 52px; margin: 0; color: #6a6a6a; font: 400 14px/1 Geist; }
.pk-dot { position: absolute; width: 50px; height: 50px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.06); }
.pk-dot.empty { display: grid; place-items: center; border: 1.5px dashed #9a9aa2; box-sizing: border-box; color: #9a9aa2; font: 600 18px/1 Geist; box-shadow: none; }
.pk-label { position: absolute; display: grid; justify-items: center; gap: 3px; margin: 0; translate: -50% 0; font: 600 12px/1 Geist; white-space: nowrap; }
.pk-hex { min-height: 10px; color: #6a6a6a; font: 500 10px/1 var(--mono); }
.pk-panel { position: absolute; padding: 12px 14px 10px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.06), 0 14px 32px -14px rgb(0 0 0 / 0.3); }
.pk-panel-head { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 10px; font: 600 13px/1 Geist; }
.pk-panel-hex { color: #6a6a6a; font: 500 12px/1 var(--mono); }
.pk-area { position: relative; cursor: crosshair; touch-action: none; }
.pk-canvas { display: block; width: 100%; height: 100%; border-radius: 8px; }
.pk-knob { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; box-shadow: 0 0 0 2.5px #fff, 0 0 0 3.5px rgb(0 0 0 / 0.25), 0 2px 6px rgb(0 0 0 / 0.3); outline: none; scale: var(--hk, 1); pointer-events: none; }
.pk-knob:focus-visible { box-shadow: 0 0 0 2.5px #fff, 0 0 0 5px #2f7bff; }
.done .pk-area { cursor: default; }
.pk-axes { display: flex; justify-content: space-between; margin: 8px 0 0; color: #6a6a6a; font: 400 11px/1 Geist; }
.pk-swatch { display: block; width: 64px; height: 64px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08); }
.pk-chart { display: block; width: 100%; max-width: 420px; justify-self: center; overflow: visible; }
.pk-line { fill: none; stroke: var(--text-faint); stroke-width: 1.5; stroke-dasharray: 4 3; }
.pk-target { fill: none; stroke: var(--text); stroke-width: 1.5; }
.pk-mine { stroke: #ff3d6e; stroke-width: 2; }
.pk-mine.ok { stroke: #34d27b; }

@media (max-width: 720px) {
  .ey-top { height: 56px; margin-inline: -16px; }
  .ey-top .ey-exit { width: 56px; }
  .ey-top .score-chip { padding: 0 14px; }
  .ey-top .pips { padding: 0 14px; }
  .ey-level small { font-size: 12px; }
  .ey-node { width: 56px; height: 56px; }
  .ey-level:not(:last-child)::after { top: 28px; left: calc(50% + 36px); right: calc(-50% + 36px); }
  .ey-why-cell { padding: 14px; }
  .ey-parts { width: 100%; }
  .ey-part { flex: 1; min-width: 0; }
  .ey-compare { gap: 12px; }
  .cp-mini { width: 96px; height: 96px; }
  .ic-loupe.mini { width: 100px; height: 100px; }
  .fg-sw span { font-size: 14px; }
  .fg-sw small { font-size: 9px; }
}

/* ---------- 11. Group the settings (Lightyear's and Partiful's settings on Mobbin) ---------- */
.ey-art.gp { background: #fff; }
.gp-back { position: absolute; left: 20px; top: 18px; color: #16181c; }
.gp-back .ic { width: 22px; height: 22px; }
.gp-title { position: absolute; left: 24px; top: 52px; margin: 0; font: 700 28px/1 Geist; letter-spacing: -0.03em; }
.gp-row { position: absolute; left: 0; right: 0; display: flex; align-items: center; gap: 14px; padding: 0 24px; color: #16181c; font: 450 15px/1 Geist; }
.gp-row .ic { flex: none; width: 20px; height: 20px; }
.gp-row .ic:last-child { width: 16px; height: 16px; margin-left: auto; color: #9aa0a8; }
.gp-label { position: absolute; left: 24px; height: 16px; margin: 0; color: #80858e; font: 500 13px/16px Geist; }
.gp-label.free { margin-left: -6px; padding: 0 6px; border-radius: 4px; outline: 1px dashed #2f7bff; outline-offset: 2px; cursor: ns-resize; touch-action: none; }
.gp-label.free:focus-visible, .gp-label.free.dragging { outline-style: solid; background: rgb(47 123 255 / 0.08); }
.done .gp-label.free { outline: none; background: none; cursor: default; }
.gp-band.up { fill: rgb(47 123 255 / 0.07); }
.gp-band.ok { fill: rgb(18 161 80 / 0.14); }
.gp-band.no { fill: rgb(255 61 110 / 0.14); }
.gp-dim { stroke-width: 1.5; }
.gp-dim.up { stroke: #2f7bff; }
.gp-dim.ok { stroke: #12a150; }
.gp-dim.no { stroke: #e5484d; }
.gp-num { font: 600 12px/1 var(--mono); }
.gp-num.up { fill: #2f7bff; }
.gp-num.ok { fill: #0d7a3c; }
.gp-num.no { fill: #d0303a; }

/* ---------- 12. Sit on the baseline (Unify's pricing on Mobbin) ---------- */
.ey-art.bl { background: #f6f5f1; }
.bl-card { position: absolute; top: 24px; width: 264px; height: 252px; box-sizing: border-box; padding: 22px; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px #e6e2d9; }
.bl-card.pro { background: #fffaf6; box-shadow: 0 0 0 1px #f2bfa8; }
.bl-name { margin: 0; font: 600 21px/1 Geist; letter-spacing: -0.02em; }
.bl-note { margin: 8px 0 0; color: #6b6b6b; font: 400 13px/1.35 Geist; }
.bl-row { display: flex; align-items: baseline; gap: 6px; margin-top: 26px; color: #16181c; }
.bl-price { font: 650 48px/1 Geist; letter-spacing: -0.04em; }
.bl-per { position: relative; color: #6b6b6b; font: 500 14px/1 Geist; white-space: nowrap; }
.bl-card .bl-per { margin: -3px -5px; padding: 3px 5px; border-radius: 4px; outline: 1px dashed #2f7bff; cursor: ns-resize; touch-action: none; }
.bl-card .bl-per:focus-visible, .bl-card .bl-per.dragging { outline-style: solid; background: rgb(47 123 255 / 0.08); }
.done .bl-card .bl-per { outline: none; background: none; cursor: default; }
.bl-bill { margin: 10px 0 0; color: #9a9a9a; font: 400 12.5px/1 Geist; }
.bl-cta { position: absolute; left: 22px; right: 22px; bottom: 22px; display: grid; place-items: center; height: 40px; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px #dcd8cf; font: 550 14px/1 Geist; }
.bl-card.pro .bl-cta { background: #16181c; color: #fff; box-shadow: none; }
.bl-probe { display: inline-block; width: 0; height: 0; vertical-align: baseline; }
.bl-base { stroke: #2f7bff; stroke-width: 1; stroke-dasharray: 4 3; }
.bl-off { stroke: #ff3d6e; stroke-width: 1; }
.bl-mini { display: grid; place-items: center; width: 200px; height: 92px; border-radius: 12px; background: #fff; }
.bl-mini .bl-row { margin: 0; }
.bl-mini .bl-price { font-size: 40px; }

/* ---------- 13. Even out the letters (Headway's splash screen on Mobbin) ---------- */
.kn-icon { position: absolute; left: 268px; top: 44px; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: #fff; }
.kn-icon .ic { width: 32px; height: 32px; }
.kn-l { position: absolute; top: 160px; color: #fff; font: 700 96px/1 Geist; opacity: 0; }
.ey-art.kn.set .kn-l, .kn-mini .kn-l { opacity: 1; }
.kn-l.free { cursor: ew-resize; touch-action: none; outline: none; }
.kn-l.free::after { content: ""; position: absolute; left: 50%; top: calc(100% + 16px); width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgb(255 255 255 / 0.3); scale: var(--hk, 1); }
.kn-l.free:focus-visible::after, .kn-l.free.dragging::after { box-shadow: 0 0 0 5px rgb(255 255 255 / 0.45); }
.done .kn-l.free { cursor: default; }
.done .kn-l.free::after { display: none; }
.kn-err { position: absolute; top: 276px; padding: 4px 7px; border-radius: 6px; background: rgb(0 0 0 / 0.3); color: #fff; font: 600 12px/1 var(--mono); translate: -50% 0; animation: ov-in 0.5s ease-out both; }
.kn-err.ok { background: #12a150; }
.kn-mini { position: relative; width: 270px; height: 64px; overflow: hidden; border-radius: 12px; }
.kn-mini-in { position: absolute; left: 0; top: 0; width: 600px; height: 140px; transform: scale(0.45); transform-origin: 0 0; }
.kn-mini .kn-l { top: 22px; }

/* ---------- 14. Shadows from one light (Square's dropdown on Mobbin) ---------- */
.ey-art.sd { background: #f3f3f1; }
.sd-scene { position: absolute; left: 0; top: 0; width: 600px; height: 380px; color: #16181c; font-family: Geist, system-ui, sans-serif; text-align: left; }
.sd-card { position: absolute; left: 40px; top: 36px; width: 360px; height: 152px; box-sizing: border-box; padding: 22px 24px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.05), 0 2px 6px rgb(0 0 0 / 0.1); }
.sd-title { margin: 0; font: 650 17px/1.2 Geist; letter-spacing: -0.01em; }
.sd-text { margin: 6px 0 0; color: #6b6b6b; font: 400 13px/1.35 Geist; }
.sd-field { position: absolute; left: 24px; right: 24px; top: 84px; display: flex; align-items: center; height: 44px; box-sizing: border-box; padding: 0 14px; border-radius: 8px; box-shadow: inset 0 0 0 1.5px #16181c; color: #8b8b8b; font: 400 14px/1 Geist; }
.sd-menu { position: absolute; left: 64px; top: 170px; display: grid; width: 312px; box-sizing: border-box; padding: 6px; border-radius: 10px; background: #fff; }
.sd-menu span { padding: 10px 12px; border-radius: 6px; font: 500 14px/1 Geist; }
.sd-menu span:first-child { background: #f2f2f0; }
/* The drop-shadow panel, after Figma's: light, a hairline instead of a shadow (it's a tool, not part of the page),
   the pad and the fields 8 px in with a 12 − 8 = 4 px radius, so their corners follow the panel's. */
.sd-panel { position: absolute; left: 428px; top: 99px; width: 156px; box-sizing: border-box; padding: 8px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.09); color: #16181c; }
.sd-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0; padding: 5px 4px 11px; font: 600 12px/1 Geist; letter-spacing: -0.005em; }
.sd-head span { color: #8a8d93; font-weight: 450; }
.sd-pad {
  position: relative; width: 140px; height: 108px; overflow: hidden; border-radius: 4px; cursor: crosshair; touch-action: none;
  background: radial-gradient(circle, rgb(0 0 0 / 0.12) 0.75px, transparent 1.25px) 5px 4px / 10px 10px, #f4f4f2;
}
.sd-axis { position: absolute; background: rgb(0 0 0 / 0.1); }
.sd-axis.x { left: 0; right: 0; top: 50%; height: 1px; }
.sd-axis.y { top: 0; bottom: 0; left: 50%; width: 1px; }
.sd-vec { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.sd-vec line { stroke: #2f7bff; stroke-width: 1.5; stroke-linecap: round; }
.sd-origin { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: #2f7bff; }
.sd-dot { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px #2f7bff; outline: none; pointer-events: none; scale: var(--hk, 1); }
.sd-dot:focus-visible, .sd-dot.dragging { box-shadow: 0 0 0 1.5px #2f7bff, 0 0 0 5px rgb(47 123 255 / 0.22); }
.done .sd-pad { cursor: default; }
.sd-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.sd-num { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 9px; border-radius: 4px; background: #f4f4f2; font: 500 12px/1 Geist; font-variant-numeric: tabular-nums; }
.sd-num i { color: #8a8d93; font-style: normal; }
.sd-mini { position: relative; width: 200px; height: 190px; overflow: hidden; border-radius: 10px; background: #f3f3f1; }
.sd-mini-in { position: absolute; left: 0; top: 0; width: 600px; height: 380px; transform: scale(0.5); transform-origin: 0 0; }

/* ---------- 15. Text on a photo (TikTok's travel cards on Mobbin) ---------- */
.ey-art.sc { background: #000; }
.sc-card { position: absolute; inset: 0; background: center / cover; }
.sc-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / var(--a)), rgb(0 0 0 / 0) 75%); }
.sc-save { position: absolute; right: 18px; top: 18px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgb(255 255 255 / 0.92); color: #16181c; }
.sc-save .ic { width: 18px; height: 18px; }
.sc-text { position: absolute; left: 28px; bottom: 26px; color: #fff; }
.sc-title { width: fit-content; margin: 0; font: 700 34px/1.1 Geist; letter-spacing: -0.03em; }
.sc-sub { width: fit-content; margin: 6px 0 0; font: 500 15px/1.3 Geist; }
.sc-box { fill: none; stroke-width: 1.5; stroke-dasharray: 4 3; }
.sc-box.ok { stroke: #34d27b; }
.sc-box.no { stroke: #ff3d6e; }
.sc-num { position: absolute; z-index: 5; padding: 5px 8px; border-radius: 6px; background: rgb(12 12 14 / 0.78); font: 600 12px/1 var(--mono); white-space: nowrap; translate: 0 -50%; animation: ov-in 0.5s ease-out both; }
.sc-num.ok { color: #4ee08f; }
.sc-num.no { color: #ff7a95; }
.sc-mini { position: relative; width: 224px; height: 126px; overflow: hidden; border-radius: 10px; }
.sc-mini-in { position: absolute; left: 0; top: 0; width: 560px; height: 315px; transform: scale(0.4); transform-origin: 0 0; }

/* ---------- 16. Find the odd one (Tally's and Quo's integrations on Mobbin) ---------- */
.ey-art.od { background: #fff; }
.od-title { position: absolute; left: 28px; top: 26px; margin: 0; font: 650 20px/1 Geist; letter-spacing: -0.02em; }
.od-sub { position: absolute; left: 28px; top: 54px; margin: 0; color: #6b6b6b; font: 400 13.5px/1 Geist; }
.od-count { position: absolute; right: 28px; top: 26px; padding: 5px 10px; border-radius: 99px; background: #f1f1ef; color: #55575d; font: 600 12px/1 Geist; }
.od-grid { position: absolute; left: 28px; right: 28px; top: 88px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.od-card { display: flex; flex-direction: column; align-items: flex-start; height: 140px; box-sizing: border-box; padding: 16px; border: 0; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px #e4e4e2; color: #16181c; font: inherit; text-align: left; cursor: pointer; transition: background 0.15s; }
.od-card:hover { background: #fafaf8; }
.od-card:focus-visible { outline: 2px solid #2f7bff; outline-offset: 2px; }
.od-ic { display: grid; flex: none; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: #fff; }
.od-ic .ic { width: 18px; height: 18px; }
.od-card b { margin-top: 12px; font: 600 15px/1.2 Geist; letter-spacing: -0.01em; }
.od-desc { margin-top: 4px; color: #6b6b6b; font: 400 12.5px/1.4 Geist; }
.od-card.right, .od-card.answer { box-shadow: inset 0 0 0 1px #e4e4e2, 0 0 0 3px #fff, 0 0 0 5px #12a150; }
.od-card.wrong { box-shadow: inset 0 0 0 1px #e4e4e2, 0 0 0 3px #fff, 0 0 0 5px #e5484d; }
/* The three sets as plain rows, like the end screen's list: Found or Missed, then what was off. */
.od-list { display: grid; margin: 0; padding: 0; list-style: none; }
.od-list li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 10px 0; color: var(--text-muted); font-size: 14px; line-height: 1.4; }
.od-list li + li { border-top: 1px solid var(--line); }
.od-list li:first-child { padding-top: 0; }
.od-list li:last-child { padding-bottom: 0; }
.od-list b { font-weight: 600; }
.od-list .ok b { color: var(--green); }
.od-list .no b { color: var(--red); }

@media (max-width: 720px) {
  .kn-mini { width: 216px; height: 52px; }
  .kn-mini-in { transform: scale(0.36); }
  .sd-mini { width: 120px; height: 114px; }
  .sd-mini-in { transform: scale(0.3); }
  .sc-mini { width: 140px; height: 79px; }
  .sc-mini-in { transform: scale(0.25); }
}

/* ---------- Playing together: the forms, the lobby, a round's clock and countdown, standings, the end ---------- */
.ey-go .key .ic { width: 18px; height: 18px; }
.ey-together { display: grid; gap: 12px; width: 100%; max-width: 420px; box-sizing: border-box; margin: 22px auto 0; padding: 22px; border: 1px solid var(--line); text-align: left; animation: fade-up 0.35s ease-out; }
.ey-field { display: grid; gap: 8px; color: var(--text-muted); font-size: 13px; }
.ey-together > .key.big { width: 100%; justify-content: center; }
.ey-or { display: flex; align-items: center; gap: 12px; margin: 6px 0 0; color: var(--text-faint); font-size: 13px; }
.ey-or::before, .ey-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ey-together .join-row .key { height: 48px; }
.ey-together .error { margin: 0; }
.ey-room-title { margin: 0; font: 700 clamp(34px, 5.5vw, 52px)/1.05 Geist; letter-spacing: -0.04em; text-wrap: balance; }

/* The lobby: the other games' lobby (app.css, site.css) stacked to fit this page's column: how to join on top,
   then the seats four a row, then the level and Start. */
.ey-lobby { margin-top: 10px; text-align: left; }
.ey-lobby-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.ey-lobby-head h1 { margin: 0; font: 700 28px/1 Geist; letter-spacing: -0.03em; }
.ey-lobby .lobby { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 0; }
.ey-lobby .lobby-join, .ey-lobby .lobby-room { grid-row: auto; grid-template-rows: none; }
.ey-lobby .lobby-join { border-right: 0; border-bottom: 1px solid var(--line); }
.ey-lobby .lobby-join-body { flex-direction: row; justify-content: space-between; gap: 24px; }
.ey-lobby .lobby-join-body .code-tiles { flex: 1; }
.ey-lobby .qr-card { flex: none; width: 136px; }
.ey-lobby .code-tiles span { aspect-ratio: auto; height: 96px; }
.ey-lobby .roster { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ey-lobby .lobby .seat:nth-child(n) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ey-lobby .lobby .seat:nth-child(4n) { border-right: 0; }
.ey-lobby .lobby .seat:nth-last-child(-n + 4) { border-bottom: 0; }
.ey-lobby .lobby-start { display: grid; gap: 14px; border-top: 1px solid var(--line); }
.ey-lobby .lobby-start > .key.big { justify-content: center; }
.ey-lobby .wait-card { padding: 4px 0; }
/* The host's level: three cells in a hairline row, the chosen one in its level's colour. */
.ey-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); }
.ey-pick-opt { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px 14px; border: 0; background: none; color: var(--text-muted); font: 500 14px/1.2 Geist; text-align: left; cursor: pointer; }
.ey-pick-opt + .ey-pick-opt { border-left: 1px solid var(--line); }
.ey-pick-opt b { display: grid; flex: none; place-items: center; width: 28px; height: 28px; box-shadow: inset 0 0 0 1px var(--line); color: var(--text); font: 600 14px/1 Geist; }
.ey-pick-opt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ey-pick-opt:hover { background: var(--surface); }
.ey-pick-opt.on { background: color-mix(in oklab, var(--ink) 14%, transparent); color: var(--text); }
.ey-pick-opt.on b { background: var(--ink); box-shadow: none; color: var(--on-ink); }

/* A round's clock, a cell in the top bar beside the score. */
.ey-top .ey-clock { display: flex; flex: none; align-items: center; justify-content: center; gap: 7px; min-width: 64px; padding: 0 18px; border-left: 1px solid var(--line); color: var(--text-muted); }
.ey-top .ey-clock .ic { width: 16px; height: 16px; }
.ey-top .ey-clock b { color: var(--text); font: 600 15px/1 Geist; font-variant-numeric: tabular-nums; }

/* The countdown: the round waits under a veil with its name, so everyone starts together. */
.ey-count { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 24px; background: color-mix(in oklab, var(--bg) 76%, transparent); backdrop-filter: blur(6px); animation: ov-in 0.25s ease-out both; }
.ey-count-in { display: grid; justify-items: center; gap: 8px; text-align: center; }
.ey-count h2 { margin: 0; font: 650 clamp(26px, 4vw, 38px)/1.1 Geist; letter-spacing: -0.03em; text-wrap: balance; }
.ey-count p { margin: 0; color: var(--text-muted); font-size: 15px; }
.ey-count-n { display: grid; place-items: center; width: 72px; height: 72px; margin-top: 16px; border: 1px solid var(--line); color: var(--ink); font: 600 32px/1 Geist; font-variant-numeric: tabular-nums; }

/* Standings under a scored round, and the table at the end of a level: hairline rows. */
.ey-board { margin-top: 18px; border: 1px solid var(--line); text-align: left; }
.ey-board h3 { margin: 0; padding: 14px 20px; border-bottom: 1px solid var(--line); font: 600 15px/1.2 Geist; }
.ey-board ol { margin: 0; padding: 0; list-style: none; }
.ey-board li { display: grid; grid-template-columns: 22px 30px minmax(0, 1fr) auto 52px; align-items: center; gap: 12px; padding: 10px 20px; font-size: 14px; }
.ey-board li + li { border-top: 1px solid var(--line); }
.ey-board li.me { background: var(--surface); }
.ey-board .ey-nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ey-rank { color: var(--text-faint); font-variant-numeric: tabular-nums; }
.ey-gain { color: var(--green); font: 500 13px/1 Geist; font-variant-numeric: tabular-nums; }
.ey-board b { text-align: right; font: 600 15px/1 Geist; font-variant-numeric: tabular-nums; }
.ey-board.total li { grid-template-columns: 22px 30px minmax(0, 1fr) 52px; }
.ey-end .ey-board { max-width: 520px; margin: 28px auto 0; }
.ey-end .podium { margin-top: 40px; }
.ey-waitline { margin: 0; color: var(--text-muted); font-size: 14px; }
@media (max-width: 720px) {
  /* A phone shows the players and the Invite seat only (app.css hides the empty ones), two a row; the strip under
     them draws the last line. */
  .ey-lobby .roster { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: -1px; }
  .ey-lobby .lobby .seat:nth-child(n) { border-bottom: 1px solid var(--line); }
  .ey-lobby .lobby .seat:nth-child(odd) { border-right: 1px solid var(--line); }
  .ey-lobby .lobby .seat:nth-child(even) { border-right: 0; }
  .ey-lobby .qr-card { width: 112px; }
  .ey-lobby .code-tiles span { height: 72px; }
  .ey-pick-opt { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px; font-size: 12.5px; }
  .ey-top .ey-clock { min-width: 0; padding: 0 12px; }
  .ey-board li { padding: 10px 14px; gap: 10px; }
}
