* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--c-bg); color: var(--c-ink); font: var(--fs-3)/1.55 var(--font-sans); word-break: keep-all; }
main { width: min(100%, 790px); margin: auto; padding: 0 clamp(14px, 4vw, 26px) 42px; }
header, nav { display: flex; align-items: center; gap: 16px; }
header { min-height: 54px; justify-content: space-between; }
a { display: inline-flex; align-items: center; min-height: 44px; color: var(--c-accent); font-weight: 600; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, p, figure, fieldset { margin: 0; }
h1 { margin-top: 14px; font-size: var(--fs-1); letter-spacing: -.035em; }
h2 { font-size: var(--fs-2); letter-spacing: -.025em; }
p { color: var(--c-ink-sub); }
figure { margin: 16px 0 10px; aspect-ratio: 16/9; position: relative; overflow: hidden; background: #dcebe3; border-radius: var(--r-3); }
figure img, figure canvas { width: 100%; height: 100%; display: block; object-fit: contain; }
figure canvas { position: absolute; inset: 0; }
fieldset { display: flex; padding: 4px; border: 0; border-radius: var(--r-1); background: var(--c-fill); }
fieldset label { flex: 1; text-align: center; }
fieldset span { display: grid; place-items: center; min-height: 44px; padding-inline: 3px; font-size: var(--fs-sub); font-weight: 600; white-space: nowrap; border-radius: 11px; cursor: pointer; }
fieldset input:checked + span { background: var(--c-surface); box-shadow: 0 1px 3px #191f281c; }
fieldset input, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
fieldset input:focus-visible + span, a:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.details { margin-top: 16px; padding: 18px 20px; border-radius: var(--r-2); background: var(--c-surface); }
.details p { margin-top: 5px; }
.growth-note { margin: 14px 4px; font-size: var(--fs-sub); }
nav { flex-wrap: wrap; gap: 6px 18px; }
.action { padding: 0 18px; background: var(--c-accent); color: white; border-radius: var(--r-1); }

#mine-return {
  min-height: 44px;
  margin-top: 4px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--c-accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
#mine-return:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
