/* 東京の落とし物センターの1年  固有スタイル（色は変数のみ） */
:root { --o-acc: #c77700; --o-soft: #fdf1d8; --o-c1: #e8a33a; --o-c2: #3f74c9; --o-c3: #ffffff; --o-ink: #3a2c14; --o-wall: #f3ead8; --o-board: #a87f4b; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --o-acc: #f2b04d; --o-soft: #3a2d17; --o-c1: #e3a547; --o-c2: #7aa6ec; --o-c3: #1d1b18; --o-ink: #f3e6cc; --o-wall: #2b2519; --o-board: #7c6040; }
}
:root[data-theme="dark"] { --o-acc: #f2b04d; --o-soft: #3a2d17; --o-c1: #e3a547; --o-c2: #7aa6ec; --o-c3: #1d1b18; --o-ink: #f3e6cc; --o-wall: #2b2519; --o-board: #7c6040; }

.h-sec { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.o-sub { font-size: 15px; font-weight: 800; margin: 14px 0 8px; }
.o-hero > * + * { margin-top: 10px; }
.o-hero { padding: 4px 0 16px; }
.o-landing { border-color: var(--o-acc); background: var(--o-soft); }
.o-landing-q { font-weight: 800; font-size: 18px; margin-bottom: 10px; }
.o-daily .daily-box b { display: block; line-height: 1.4; }

/* 絵 */
.o-hero-art svg { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; }
.o-wall { fill: var(--o-wall); }
.o-board { fill: var(--o-board); }
.o-f1 { fill: var(--o-c1); }
.o-f2 { fill: var(--o-c2); }
.o-f3 { fill: var(--o-c3); }
.o-ln { fill: none; stroke: var(--o-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.o-ln.o-w { stroke: var(--o-c3); }
.o-tag rect { fill: var(--surface); stroke: var(--o-board); }
.o-tag text { font-size: 8px; font-weight: 700; fill: var(--o-ink); }
.o-shelf .o-hl { animation: o-wiggle 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes o-wiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-6deg); } 90% { transform: rotate(6deg); } 95% { transform: rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) { .o-shelf .o-hl { animation: none; } }
.o-icon { display: inline-grid; place-items: center; flex: none; }
.o-icon svg { display: block; }

/* 問題 */
.o-head { margin-bottom: 12px; }
.o-head .progress { margin-top: 6px; }
.o-count { white-space: nowrap; font-variant-numeric: tabular-nums; }
.o-q-top { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.o-q-text { font-size: 18px; font-weight: 800; line-height: 1.55; margin: 0; }
.o-verdict { font-size: 26px; font-weight: 900; margin: 4px 0; }
.o-verdict.is-ok { color: var(--good); }
.o-verdict.is-ng { color: var(--bad); }
.o-exp { font-size: 15px; line-height: 1.7; background: var(--o-soft); border-radius: var(--radius-sm); padding: 10px 12px; }
.o-next { margin-top: 10px; }
.o-cash-val { font-size: 36px; font-weight: 900; color: var(--o-acc); text-align: center; font-variant-numeric: tabular-nums; margin: 4px 0; }
.o-slider { width: 100%; height: 40px; accent-color: var(--o-acc); }
.o-ticks { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-sub); margin-bottom: 6px; }
.o-cashbar { position: relative; height: 64px; margin: 8px 6px; }
.o-cashbar-line { position: absolute; left: 0; right: 0; top: 30px; height: 6px; border-radius: 3px; background: var(--surface-2); }
.o-cashbar-pin { position: absolute; transform: translateX(-50%); font-size: 11px; font-weight: 800; white-space: nowrap; padding: 2px 6px; border-radius: 6px; }
.o-cashbar-pin.is-real { top: 40px; background: var(--o-acc); color: var(--accent-ink); }
.o-cashbar-pin.is-me { top: 4px; background: var(--o-c2); color: var(--accent-ink); }
.o-rank { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.o-rank-item { display: flex; align-items: center; gap: 6px; min-height: 56px; padding: 6px 8px; border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font-size: 14px; font-weight: 700; text-align: left; cursor: pointer; }
.o-rank-item.is-on { border-color: var(--o-acc); background: var(--o-soft); }
.o-rank-n { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 900; background: var(--surface-2); }
.o-rank-item.is-on .o-rank-n { background: var(--o-acc); color: var(--accent-ink); }
.o-rank-ans { padding-left: 22px; margin: 6px 0; font-size: 14px; }
.o-rank-ans li.is-hit { font-weight: 800; color: var(--good); }

/* 結果 */
.o-result > * + * { margin-top: 12px; }
.o-score { font-size: 18px; font-weight: 800; }
.o-score b { font-size: 48px; color: var(--o-acc); font-variant-numeric: tabular-nums; }
.o-title-name { font-size: 18px; font-weight: 900; margin: 0 0 6px; }
.o-type { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--o-soft); margin: 10px 0; }
.o-type-name { font-size: 20px; font-weight: 900; margin: 2px 0 0; line-height: 1.35; }
.o-again .btn { min-width: 140px; }
.o-chart svg { display: block; width: 100%; height: auto; }
.o-ch-l { font-size: 13px; font-weight: 700; fill: var(--text); }
.o-ch-v { font-size: 12px; fill: var(--text-sub); }
.o-ch-bar { fill: var(--o-acc); }
.o-zukan { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.o-zk { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border: 1px dashed var(--line); border-radius: var(--radius-sm); text-align: center; color: var(--text-sub); }
.o-zk.on { border-style: solid; border-color: var(--o-acc); color: var(--text); background: var(--o-soft); }
.o-zk small { font-size: 11px; line-height: 1.35; }
.o-zk-q { width: 36px; height: 36px; display: grid; place-items: center; font-weight: 900; font-size: 20px; }
.o-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bar-row { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: 13px; }
.bar-row .bar-label { width: 72px; flex: none; }
.bar-row .bar-pct { width: 44px; text-align: right; flex: none; font-variant-numeric: tabular-nums; }
.bar-row.is-me { font-weight: 800; }
.src-list { padding-left: 18px; margin: 6px 0; font-size: 13px; }
.src-list li { margin: 4px 0; }
.o-about h3 { font-size: 15px; margin: 12px 0 4px; }
