/* 浮世絵まちがい探し */
:root {
  --accent: #b7412e; --accent-ink: #fff8ec; --accent-soft: #f5e0d6;
  --bg: #f3ecdc; --surface: #fffaf0; --surface-2: #efe5cf; --line: #dccdaa; --text: #2a2219; --text-sub: #6c5d48;
  --um-ink: #1f3f6b; --um-frame: #fffaf0; --um-hit: #e0362c; --um-hint: #e9c45b;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #ef8a6d; --accent-ink: #1b120c; --accent-soft: #3a231b;
    --bg: #12141d; --surface: #1b1e2b; --surface-2: #252a3b; --line: #333a52; --text: #eef0f7; --text-sub: #a9b0c6;
    --um-ink: #9fc0d6; --um-frame: #252a3b;
  }
}
:root[data-theme="dark"] {
  --accent: #ef8a6d; --accent-ink: #1b120c; --accent-soft: #3a231b;
  --bg: #12141d; --surface: #1b1e2b; --surface-2: #252a3b; --line: #333a52; --text: #eef0f7; --text-sub: #a9b0c6;
  --um-ink: #9fc0d6; --um-frame: #252a3b;
}
.mn-title { font-family: var(--font-serif); }
.mn-app { max-width: 1100px; }
.mn-app > section { max-width: 560px; margin: 0 auto; }
.mn-app > section.um-play { max-width: 1100px; }

.um-hero { background: var(--um-frame); border-radius: 10px; padding: 10px; box-shadow: 0 6px 18px rgba(30, 20, 10, .18), 0 0 0 1px var(--line); }
.um-hero svg, .um-hero img { display: block; width: 100%; height: auto; }
.um-hero-photo img { aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; }
.um-hero-ring { animation: um-pulse 1.8s ease-in-out infinite; transform-origin: 136px 120px; }
@keyframes um-pulse { 50% { transform: scale(1.12); opacity: .6; } }

.um-stage > * + * { margin-top: 10px; }
.um-loading { text-align: center; padding: 60px 0; color: var(--text-sub); }
.um-hud { position: sticky; top: 57px; z-index: 10; display: flex; align-items: center; gap: 10px; background: color-mix(in srgb, var(--bg) 92%, transparent); padding: 6px 2px; }
.um-dots { display: flex; gap: 6px; }
.um-dots i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--um-hit); display: block; }
.um-dots i.on { background: var(--um-hit); }
.um-clock { font-size: 22px; font-variant-numeric: tabular-nums; min-width: 4.2em; text-align: right; }
.um-pair { display: grid; gap: 10px; }
@media (min-width: 900px) { .um-pair { grid-template-columns: 1fr 1fr; } .um-pair.is-tall { max-width: 900px; margin-left: auto; margin-right: auto; } }
.um-pane { position: relative; background: var(--um-frame); padding: 6px; border-radius: 8px; box-shadow: 0 4px 14px rgba(30, 20, 10, .16), 0 0 0 1px var(--line); cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.um-cv { display: block; width: 100%; height: auto; border-radius: 3px; }
.um-ov { position: absolute; left: 6px; bottom: 6px; width: calc(100% - 12px); aspect-ratio: var(--ar); pointer-events: none; overflow: visible; }
.um-label { display: block; order: -1; font-size: 12px; font-weight: 700; color: var(--text-sub); padding: 0 2px 4px; pointer-events: none; }
.um-pane { display: flex; flex-direction: column; }
.um-hit { fill: none; stroke: var(--um-hit); stroke-width: 6; animation: um-pop .35s cubic-bezier(.2, 1.6, .4, 1); transform-box: fill-box; transform-origin: center; }
.um-reveal { fill: none; stroke: var(--um-hint); stroke-width: 6; stroke-dasharray: 10 6; }
.um-hint { fill: rgba(233, 196, 91, .22); stroke: var(--um-hint); stroke-width: 4; }
.um-miss { fill: var(--um-hit); text-anchor: middle; dominant-baseline: middle; font-weight: 900; opacity: .9; }
@keyframes um-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.um-small-btn { min-height: 40px; padding: 6px 12px; font-size: 14px; }

.um-result { text-align: center; border-top: 6px solid var(--type, var(--accent)); background: linear-gradient(180deg, var(--surface-2), var(--surface) 40%); }
.um-r-label { margin: 0; font-size: 13px; letter-spacing: .1em; color: var(--text-sub); font-weight: 700; }
.um-r-name { font-family: var(--font-serif); font-size: clamp(26px, 7.5vw, 36px); margin: 4px 0 8px; }
.um-r-big { display: flex; align-items: baseline; justify-content: center; gap: 6px; font-weight: 700; }
.um-r-marks { font-size: 28px; letter-spacing: .08em; margin: 6px 0; }
.um-cmp { font-weight: 900; font-size: 18px; color: var(--accent); }
.um-cmp:empty { display: none; }
.um-col { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.um-col-i { font-size: 11px; padding: 2px 7px; border-radius: 6px; background: var(--surface-2); color: var(--text-sub); }
.um-col-i.is-got { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
