/* Outline */
.gm-outline { max-width: 560px; margin: 0 auto; }

.ol-fig { margin: 0 0 20px; height: clamp(200px, 42vw, 300px); display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--ink); border-radius: 10px; background: var(--wash); padding: 18px; position: relative; }
.ol-svg { width: 100%; height: 100%; display: block; }
.ol-svg path { fill: var(--ink); transition: fill .5s var(--ease); }
.ol-fig.won .ol-svg path { fill: var(--cite); }
.ol-fig.pop .ol-svg { animation: ol-pop .5s var(--ease); }
@keyframes ol-pop { 0% { transform: scale(1); } 40% { transform: scale(1.05); } 100% { transform: scale(1); } }

.ol-play { margin-bottom: 14px; }
.ol-form { display: flex; gap: 8px; }
.ol-form[hidden] { display: none; }
.ol-form.shake { animation: ol-shake .35s; }
@keyframes ol-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.ol-combo { position: relative; flex: 1 1 auto; min-width: 0; }
.ol-in { width: 100%; height: 48px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 6px; background: var(--paper);
  font: 600 17px/1 var(--sans); color: var(--ink); }
.ol-in::placeholder { color: var(--quiet); font-weight: 400; }
.ol-in:focus-visible { outline: 3px solid var(--cite); outline-offset: 2px; }
.ol-form .gm-btn { min-height: 48px; border-radius: 6px; }
.ol-left { display: block; margin-top: 6px; font-size: 14px; color: var(--quiet); }

.ol-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px 0; list-style: none;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 6px; box-shadow: 0 10px 28px rgba(0,0,0,.18);
  max-height: 290px; overflow-y: auto; }
.ol-opt { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 14px; cursor: pointer; font-weight: 600; }
.ol-opt small { font-weight: 400; color: var(--quiet); font-size: 13px; }
.ol-opt[aria-selected="true"] { background: var(--hl); }
.ol-opt.used { color: var(--quiet); text-decoration: line-through; }
.ol-opt.used small { text-decoration: none; }

.ol-rows { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 6px; }
.ol-row { display: grid; grid-template-columns: 1.6em minmax(0, 1fr) 6.2em 28px 4.6em; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 10px; border: 2px solid var(--ink); border-radius: 6px; font-variant-numeric: tabular-nums; }
.ol-row.empty { border-color: var(--faint); border-style: dashed; color: var(--faint); }
.ol-row.fresh { animation: ol-in .35s var(--ease); }
@keyframes ol-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.ol-n { font-size: 13px; font-weight: 700; color: var(--quiet); }
.ol-row.empty .ol-n { color: var(--faint); }
.ol-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ol-km { text-align: right; font-size: 15px; }
.ol-dir { display: flex; justify-content: center; }
.ol-arrow { width: 22px; height: 22px; fill: var(--ink); }
.ol-check { font-weight: 800; font-size: 20px; line-height: 1; }
.ol-pct { position: relative; height: 26px; border: 1px solid var(--ink); border-radius: 3px; overflow: hidden; background: var(--paper); }
.ol-pct i { position: absolute; inset: 0 auto 0 0; background: var(--hl); }
.ol-pct b { position: relative; display: block; text-align: center; line-height: 24px; font-size: 13px; }
.ol-row.hit { background: var(--cite); border-color: var(--cite); color: #fff; }
.ol-row.hit .ol-n { color: #fff; }
.ol-row.hit .ol-pct { border-color: #fff; }
.ol-row.hit .ol-pct i { background: #fff; }
.ol-row.hit .ol-pct b { color: var(--cite); }

.ol-reveal:empty { display: none; }
.ol-reveal { border-top: 2px solid var(--ink); padding-top: 16px; }
.ol-ans h2 { margin: 0 0 4px; font-size: clamp(28px, 6vw, 38px); line-height: 1.05; font-weight: 800; letter-spacing: -.02em; }
.ol-k { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--quiet); }
.ol-area { margin: 0 0 14px; color: #333; }
.ol-map { display: block; width: 100%; height: auto; border: 1px solid var(--ink); }
.ol-map .ol-sea { fill: var(--paper); }
.ol-map path { fill: var(--faint); stroke: var(--paper); stroke-width: .25; }
.ol-map path.on { fill: var(--cite); }
.ol-map .ol-ring { fill: none; stroke: var(--cite); stroke-width: 1.4; }
.ol-again { margin-top: 16px; display: flex; justify-content: center; }
.ol-dlg .ol-area { font-size: 15px; }

@media (max-width: 480px) {
  .ol-row { grid-template-columns: 1.2em minmax(0, 1fr) 5.4em 22px 3.6em; gap: 6px; padding: 0 8px; }
  .ol-km { font-size: 14px; }
  .ol-arrow { width: 18px; height: 18px; }
  .ol-pct b { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .ol-fig.pop .ol-svg, .ol-form.shake, .ol-row.fresh { animation: none; }
  .ol-svg path { transition: none; }
}
