/* Zoom Out — paper, ink and coral, Fraunces headings, Bricolage Grotesque for everything else. */
.zo-page { --paper: #fbf8f2; --ink: #17130e; --ink2: #4a4237; --muted: #776d5f; --line: #e6dece; --coral: #e8543d; --coral-deep: #b9381f; --green: #16803c; --gold: #f6b93b;
  --display: 'Fraunces', Georgia, serif; --ui: 'Bricolage Grotesque', system-ui, sans-serif;
  --cbx-display: var(--display); --cbx-body: var(--ui); background: var(--paper); color: var(--ink); }
.zo-page [hidden] { display: none !important; }
.zo-wrap { max-width: 520px; }
.zo-card { font-family: var(--ui); padding: 4px 0 8px; }

.zo-banner { margin: 0 0 12px; padding: 10px 14px; border-radius: 14px; background: #fff3d6; border: 1.5px solid var(--gold); font: 700 14px/1.45 var(--ui); color: var(--ink); }
.zo-banner b { color: var(--coral-deep); }

.zo-kick { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font: 800 11.5px var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--coral-deep); }
.zo-kick span + span { color: var(--muted); letter-spacing: .02em; text-transform: none; font-size: 13px; text-align: right; }
.zo-kick .ok { color: var(--green); }
.zo-kick .no { color: var(--coral-deep); }
.zo-t { font: 800 26px/1.08 var(--display); margin: 6px 0 12px; color: var(--ink); letter-spacing: 0; }
.zo-t em { color: var(--coral); font-style: italic; }

/* the zoom window: a square frame, the image fitted inside and moved/scaled by transform */
.zo-frame { position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 18px; border: 2px solid var(--ink); overflow: hidden; background: #ddd; isolation: isolate; }
.zo-frame img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: contain; transform-origin: 0 0; transition: transform .7s cubic-bezier(.3, .7, .2, 1); user-select: none; -webkit-user-drag: none; }
.zo-frame.instant img { transition: none; }
.zo-frame.loading img { opacity: 0; }
.zo-badge { position: absolute; left: 10px; top: 10px; z-index: 1; background: rgba(23, 19, 14, .85); color: #fff; font: 800 12.5px var(--ui); border-radius: 999px; padding: 5px 11px; }
.zo-frame.bump { animation: zo-bump .45s ease; }
@keyframes zo-bump { 30% { transform: translateX(-6px); } 60% { transform: translateX(5px); } }
.zo-whole img { transition: none; }

.zo-dots { display: flex; gap: 5px; justify-content: center; margin: 12px 0; }
.zo-dots i { width: 30px; height: 6px; border-radius: 3px; background: #d9cfbd; transition: background .3s; }
.zo-dots i.on { background: var(--coral); }

.zo-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.zo-choices button { min-height: 46px; padding: 10px 6px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: 800 15px var(--ui); cursor: pointer; touch-action: manipulation; }
.zo-choices button:hover:not(:disabled) { border-color: var(--ink); }
.zo-choices button:active:not(:disabled) { transform: translateY(1px); }
.zo-choices button:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.zo-choices button.x { opacity: .5; text-decoration: line-through; background: #f3ece1; cursor: default; }
.zo-choices button.ok { background: #e3f4e8; border-color: var(--green); color: var(--green); }
.zo-hint { color: var(--muted); font: 700 13px/1.4 var(--ui); text-align: center; margin: 12px 0 0; }

.zo-line { font: 700 15px/1.45 var(--ui); color: var(--ink2); margin: 10px 0 0; }
.zo-credit { font: 700 12px/1.4 var(--ui); color: var(--muted); margin: 8px 0 0; }

.zo-btn { display: block; width: 100%; margin-top: 14px; padding: 13px 12px; border: 0; border-radius: 12px; background: var(--coral); color: #fff; font: 800 16px var(--ui); text-align: center; cursor: pointer; box-shadow: 0 4px 0 var(--coral-deep); touch-action: manipulation; }
.zo-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--coral-deep); }
.zo-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.zo-btn.ghost { background: #fff; color: var(--ink); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }

.zo-rows .rw { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px dashed var(--line); font: 700 14.5px var(--ui); }
.zo-rows .rw:first-child { border-top: 0; }
.zo-rows .rw img { width: 62px; height: 46px; object-fit: cover; border-radius: 8px; flex: none; background: #e9e6e1; border: 1px solid var(--line); }
.zo-rows .rw span { flex: 1; min-width: 0; }
.zo-rows .rw small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; margin-top: 1px; }
.zo-rows .rw em { font-style: normal; font-weight: 800; white-space: nowrap; font-size: 14px; }
.zo-rows .rw em.miss { color: var(--coral-deep); }
.zo-stats { color: var(--muted); font: 700 13.5px var(--ui); margin: 12px 0 0; text-align: center; }

/* the shared You-vs-friend box and the group board, in this page's type */
.zo-card .cb-beat-result { margin-top: 12px; font-family: var(--ui); }
.zo-card .cb-gb { font-family: var(--ui); }

/* the read section */
.zo-read { font-family: var(--ui); background: #fff; margin-top: 22px; }
.zo-read h2 { font: 800 22px/1.15 var(--display); }
.zo-read h3 { font: 800 17px var(--ui); }
.zo-read summary { font: 800 15.5px var(--ui); cursor: pointer; }
.zo-read p, .zo-read li { font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  .zo-frame img { transition: none; }
  .zo-frame.bump { animation: none; }
}
@media (max-width: 360px) {
  .zo-t { font-size: 23px; }
  .zo-choices button { font-size: 14px; }
}
