@keyframes odHeroRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes odColumnIn { from { opacity: 0; transform: scaleY(.85); } to { opacity: 1; transform: none; } }
@keyframes odTwinkleA { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
@keyframes odTwinkleB { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes odScrubGlow { 0%, 100% { opacity: .95; } 50% { opacity: .55; } }

.od-hero {
  text-align: center;
  padding: clamp(28px, 5vw, 52px) var(--gutter) clamp(18px, 3vw, 28px);
  background:
    radial-gradient(ellipse 70% 120% at 50% 0%, rgba(167, 139, 250, .09), transparent 70%),
    linear-gradient(#0d0f33, var(--bg));
}
.od-hero > div { animation: odHeroRise .7s ease-out both; }
.od-hero h1 { font-size: clamp(25px, 4.6vw, 44px); font-weight: 900; letter-spacing: -.02em; line-height: 1.1; }
.od-hero p { margin: 14px auto 0; max-width: 600px; font-size: 14px; line-height: 1.65; color: var(--muted); }
.od-hero strong { color: var(--ink-2); }

.od-controls {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  padding-top: 4px; padding-bottom: 16px;
}
.od-controls .note { font-size: 11.5px; color: var(--faint); }

.od-stage {
  position: relative;
  border-top: 1px solid rgba(167, 139, 250, .12);
  border-bottom: 1px solid rgba(167, 139, 250, .15);
}
.od-frame {
  position: relative; max-width: var(--wrap); margin: 0 auto;
  border-left: 1px solid rgba(167, 139, 250, .14);
  border-right: 1px solid rgba(167, 139, 250, .14);
}
#od-svg {
  display: block; width: 100%; height: auto;
  cursor: ns-resize; user-select: none; -webkit-user-select: none;
  touch-action: pan-y;
}
#od-svg:focus-visible { outline: 2px solid var(--accent-2); outline-offset: -2px; }
#od-svg text { font-family: var(--mono); }
#od-svg .sans { font-family: var(--sans); }
#od-svg .col { transition: opacity .25s; }
#od-svg .col.in { animation: odColumnIn .6s ease-out both; transform-box: fill-box; transform-origin: 50% 95%; }
#od-svg .tw-a { animation: odTwinkleA 3.8s ease-in-out infinite; }
#od-svg .tw-b { animation: odTwinkleB 5.2s ease-in-out infinite; }
#od-svg .tw-sky-a { animation: odTwinkleA 4.4s ease-in-out infinite; }
#od-svg .tw-sky-b { animation: odTwinkleB 6s ease-in-out infinite; }
#od-svg .scrub-line { animation: odScrubGlow 2.4s ease-in-out infinite; }
#od-svg .noptr { pointer-events: none; }

/* inspector */
.od-inspector {
  background: var(--panel);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-2);
  padding: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
.od-frame.wide .od-inspector { position: absolute; top: 20px; right: 24px; width: 320px; max-height: calc(100% - 40px); overflow: auto; }
.od-frame:not(.wide) .od-inspector { margin: 0; border-left: 0; border-right: 0; border-top: 0; box-shadow: none; }
.od-frame .od-depthbar { border-left: 0; border-right: 0; border-top: 1px solid var(--line); }
.insp-head { display: flex; align-items: center; gap: 10px; }
.insp-head img { width: 26px; height: 26px; }
.insp-name { font-size: 17px; font-weight: 800; color: var(--ink); }
.insp-best { display: flex; align-items: baseline; gap: 10px; margin: 10px 0 4px; flex-wrap: wrap; }
.insp-best .big {
  font: 700 40px/1 var(--mono); color: var(--accent);
  text-shadow: 0 0 24px rgba(167, 139, 250, .4);
}
.insp-best .big.range { font-size: 28px; }
.insp-best .lbl { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.insp-sub { font: 11.5px var(--mono); color: var(--faint); margin-bottom: 12px; }
.insp-alt { font-size: 12px; color: var(--ink-2); margin: -4px 0 12px; }
.insp-alt b { color: var(--accent); font-family: var(--mono); }
.insp-row {
  display: flex; justify-content: space-between; gap: 12px; padding: 6px 0;
  border-top: 1px solid rgba(167, 139, 250, .1); font-size: 12px;
}
.insp-row > span:first-child { color: var(--faint); flex-shrink: 0; }
.insp-row > span:last-child { color: var(--ink); text-align: right; font: 11.5px/1.5 var(--mono); }
.insp-row .warn { color: var(--amber); }
.insp-row .bt { display: block; color: var(--faint); font-size: 10.5px; }
.insp-tip { margin: 12px 0 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.65; }
.insp-note { margin: 10px 0 0; font-size: 12px; color: var(--amber); }
.insp-note button { font: inherit; color: var(--accent-2); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }

/* depth bar */
.od-depthbar-wrap { position: relative; z-index: 2; }
.od-depthbar {
  max-width: var(--wrap); margin: 0 auto;
  background: var(--bg-2); border: 1px solid var(--line); border-top: 0;
  padding: 12px var(--gutter);
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.od-depth { display: flex; flex-direction: column; gap: 3px; flex-shrink: 0; }
.od-depth .k { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.od-depth .row { display: flex; align-items: center; gap: 10px; }
.od-yfield {
  display: flex; align-items: center;
  border: 1px solid rgba(167, 139, 250, .35); background: var(--bg);
  box-shadow: 0 0 18px rgba(167, 139, 250, .12);
}
.od-yfield span { padding: 7px 0 7px 12px; color: var(--accent); font: 700 16px var(--mono); }
.od-yfield input {
  width: 74px; padding: 7px 9px; background: transparent; border: 0; color: var(--ink);
  font: 700 16px var(--mono); outline: none; -moz-appearance: textfield; appearance: textfield;
}
.od-yfield input::-webkit-outer-spin-button, .od-yfield input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.od-yfield button {
  width: 30px; align-self: stretch; border: 0; border-left: 1px solid var(--line);
  background: transparent; color: var(--accent); font: 700 15px var(--mono); cursor: pointer;
}
.od-yfield button:hover { background: rgba(167, 139, 250, .08); }
.od-layer { font: 10.5px var(--mono); color: var(--faint); max-width: 110px; line-height: 1.3; }
.od-divider { width: 1px; align-self: stretch; background: rgba(167, 139, 250, .15); }
.od-chips { display: flex; align-items: center; justify-content: flex-end; gap: 5px; flex-wrap: wrap; flex: 1; min-width: 0; }
.od-chip {
  display: flex; align-items: center; gap: 6px; background: var(--bg);
  border: 1px solid rgba(167, 139, 250, .14); padding: 3px 7px; cursor: pointer; color: var(--ink);
  font: 700 10px var(--mono);
}
.od-chip:hover { border-color: var(--line-2); }
.od-chip.dim { opacity: .55; }
.od-chip img { width: 14px; height: 14px; }
.od-chip .bar { width: 26px; height: 3px; background: rgba(255, 255, 255, .08); position: relative; }
.od-chip .bar i { position: absolute; left: 0; top: 0; bottom: 0; transition: width .35s ease; }
.od-chips .none { font-size: 12px; color: var(--faint); }
@media (max-width: 640px) {
  .od-divider { display: none; }
  .od-chips { justify-content: flex-start; flex-basis: 100%; }
}

/* table */
.od-section { padding-top: 48px; padding-bottom: 8px; }
.od-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.od-table { border: 1px solid var(--line); }
.od-tr {
  display: grid; grid-template-columns: minmax(150px, 240px) 96px minmax(0, 1fr) minmax(150px, 190px);
  gap: 0 18px; align-items: center; padding: 11px 18px;
  border-bottom: 1px solid rgba(167, 139, 250, .07);
}
.od-tr:last-child { border-bottom: 0; }
.od-tr.th {
  background: var(--bg-3); border-bottom: 1px solid var(--line);
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
  padding-top: 10px; padding-bottom: 10px;
}
.od-tr.th .axis { display: flex; justify-content: space-between; }
.od-tr.th .axis span:last-child { color: var(--fainter); font-family: var(--mono); letter-spacing: 0; text-transform: none; }
button.od-tr {
  width: 100%; text-align: left; background: transparent; border-left: 0; border-right: 0; border-top: 0;
  font: inherit; color: inherit; cursor: pointer;
}
button.od-tr:hover, button.od-tr[aria-current="true"] { background: rgba(167, 139, 250, .05); }
.od-ore { display: flex; align-items: center; gap: 10px; min-width: 0; }
.od-ore img { width: 20px; height: 20px; flex-shrink: 0; }
.od-ore b { font-size: 13.5px; color: var(--ink); }
.od-ore .tag { font-size: 10px; padding: 1px 6px; }
.od-best { font: 700 15px var(--mono); color: var(--accent); }
.od-track { position: relative; height: 12px; background: rgba(255, 255, 255, .045); display: block; }
.od-track i { position: absolute; top: 0; bottom: 0; opacity: .35; display: block; }
.od-track b { position: absolute; top: -2px; bottom: -2px; width: 2px; display: block; }
.od-dist { font: 11px var(--mono); color: var(--faint); }
@media (max-width: 760px) {
  .od-tr { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 10px 14px; }
  .od-tr .od-track, .od-tr.th .axis { display: none; }
  .od-tr .od-dist { grid-column: 1 / -1; padding-left: 30px; }
  .od-tr.th span:last-child { display: none; }
}

/* arriving at the ore guide: it slides in over the previous page from the right */
::view-transition-old(root) { animation: vt-to-left-dim .45s cubic-bezier(.2, .8, .25, 1) both; }
::view-transition-new(root) { animation: vt-from-right .45s cubic-bezier(.2, .8, .25, 1) both; box-shadow: -16px 0 48px rgba(0, 0, 0, .55); }
