
:root {
  --bg: #f5f5f4;
  --surface: #fff;
  --ink: #292524;
  --ink-deep: #1c1917;
  --ink-hover: #44403c;
  --muted: #6b645f;
  --muted-strong: #57534e;
  --dim: #a8a29e;
  --dim-soft: #c4c1be;
  --line: #e7e5e4;
  --tile: #f5f5f4;
  --tile-hover: #e7e5e4;
  --tile-active: #d6d3d1;
  --raised: #fafaf9;
  --badge: #ea580c;
  --badge-secondary: #9ca3af;
  --warn: #b45309;
  --warn-hover: #92400e;
  --range: #3a83f2;
  --fit-ok: oklch(.56 .13 150);
  --fit-near: oklch(.64 .13 70);
  --fit-miss: oklch(.56 .17 28);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
}

.smooth-shadow-ring {
  --smooth-shadow-color: var(--tw-shadow-color, black);
  --smooth-ring-color: rgba(0, 0, 0, .05);
  --smooth-ring-width: 1px;
  box-shadow: 0 17.54px 23.39px 0 color-mix(in srgb, var(--smooth-shadow-color) 4%, transparent),
    0 9.4px 12.5px 0 color-mix(in srgb, var(--smooth-shadow-color) 3%, transparent),
    0 5.25px 7px 0 color-mix(in srgb, var(--smooth-shadow-color) 2%, transparent),
    0 2.79px 3.72px -2px color-mix(in srgb, var(--smooth-shadow-color) 1%, transparent),
    0 1.16px 1.5px 0 color-mix(in srgb, var(--smooth-shadow-color) 1%, transparent),
    0 0 0 var(--smooth-ring-width) var(--smooth-ring-color);
}
.shadow-black { --tw-shadow-color: #000; }
.smooth-ring-neutral-300\/30 { --smooth-ring-color: rgb(212 212 216 / 30%); }

@font-face {
  font-family: Inter;
  src: url('../fonts/Inter-latin-400-700.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px Inter, Arial, sans-serif;
  font-optical-sizing: auto;
  overflow: hidden;
}

button, a {
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}
button:focus-visible, a:focus-visible {
  outline: 2px solid var(--muted);
  outline-offset: 5px;
}
[hidden] { display: none !important }

.status, .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.noscript { max-width: 480px; margin: 128px auto; padding: 0 24px; text-align: center; color: var(--muted); }

#scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.mouse {
  position: absolute;
  top: 0;
  left: 0;
  width: 190px;
  height: 222px;
  padding: 0;
  pointer-events: auto;
  cursor: pointer;
  transform-origin: center;
  mix-blend-mode: multiply;
  will-change: transform;
  transition: transform 620ms var(--ease-out), opacity 195ms var(--ease-out);
}
body:not(.ready) .mouse { transition: none }
.mouse.featured { z-index: 2 }
.mouse:hover { opacity: 1 !important }

.mouse img {
  display: block;
  width: 228px;
  height: 228px;
  margin: -19px -19px 0;
  object-fit: contain;
  pointer-events: none;
  transition: transform .25s;
}
@media (hover: hover) and (pointer: fine) {
  .mouse:hover img { transform: translateY(-7px) }
}

.mouse .caption {
  display: block;
  width: 190px;
  min-height: 32px;
  text-align: center;
  white-space: normal;
  font-size: 15px;
  line-height: 1.25;
  opacity: 0;
  transition: opacity 230ms var(--ease-out);
}
.mouse .caption small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
}
.mouse .caption small:empty { display: none }
.mouse.featured .caption {
  font-size: 12px;
  line-height: 1.2;
  opacity: 1;
}
.mouse.featured .caption small { font-size: 10px }
.mouse:not(.featured) .caption { visibility: hidden }

@media (max-width: 700px) {
  .mouse.featured .caption {
    font-size: calc(13px / var(--s, 1));
    font-weight: 600;
  }
  .mouse.featured .caption small {
    font-size: calc(11px / var(--s, 1));
    margin-top: calc(2px / var(--s, 1));
    color: var(--muted-strong);
  }
  .mouse.featured .caption { width: var(--capw, 190px) }
  .mouse .caption-name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }
}

.questionnaire {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 760px;
  padding: 28px 26px;
  background: var(--surface);
  border: 0;
  border-radius: 15px;
  z-index: 5;
}
.questionnaire h2 {
  margin: 0 28px 24px;
  text-align: center;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -.6px;
  line-height: 1.3;
}
#question:focus, .l-head h2:focus { outline: none }

.question-head {
  position: absolute;
  top: 30px;
  right: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.question-footer {
  position: absolute;
  inset: 0;
  padding: 0;
  margin: 0;
  min-height: 0;
  border-top: 0;
  pointer-events: none;
}
.help,
.question-footer button {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  pointer-events: auto;
}
.help {
  font-size: 13px;
  border-radius: 50%;
}
.question-footer button {
  position: absolute;
  top: 30px;
  font-size: 0;
  border-radius: 8px;
  transition: background .18s;
}
.question-footer button:disabled { opacity: .25; cursor: default }
.help svg,
.question-footer button svg {
  display: block;
  width: 21px;
  height: 21px;
  margin: 0;
}
.help:hover,
.question-footer button:hover { color: var(--ink-hover) }
.question-footer #back { left: 26px }
.question-footer #reset { left: 66px }
.question-footer #back:disabled { display: none }

@media (max-width: 700px) {
  .questionnaire {
    left: 0;
    right: 0;
    width: 100%;
    bottom: 0;
    transform: none;
    padding: 20px 17px calc(14px + env(safe-area-inset-bottom, 0px));
    border-radius: 16px 16px 0 0;
  }
  .questionnaire h2 {
    margin: 3px 0 14px;
    padding: 0 74px;
    font-size: clamp(17px, 4.7vw, 19px);
    letter-spacing: -.45px;
    line-height: 1.25;
    text-wrap: balance;
  }
  .question-head { top: 24px; right: 16px }
  .question-footer button { top: 24px }
  .question-footer button::before { content: ""; position: absolute; inset: -4px -3px }
  .question-footer #back { left: 14px }
  .question-footer #reset { left: 50px }
}

@media (max-height: 500px) and (min-width: 701px) {
  .questionnaire { max-height: calc(100vh - 100px); overflow-y: auto }
  #multi-actions { position: sticky; bottom: 0; z-index: 1; background: var(--surface) }
}

.options {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
  overflow: visible;
}
.option {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  min-height: 96px;
  padding: 15px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 0;
  border-radius: 8px;
  background: var(--tile);
  text-align: center;
  user-select: none;
  -webkit-user-select: none;
  transition: background .18s, border-color .18s;
}
.option:hover { background: var(--tile-hover) }
.option.selected {
  outline: 2px solid var(--ink);
  outline-offset: -2px;
  background: var(--tile-hover);
}
.option-check {
  position: absolute;
  top: -7px;
  right: -7px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 0 0 2px var(--surface);
  pointer-events: none;
}
.option-check svg { width: 12px; height: 12px }
.option strong {
  display: block;
  width: 100%;
  font-size: 13px;
  font-weight: 700;
}
.option small {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin: 0 auto;
  max-width: 150px;
  min-height: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted-strong);
}
.option[data-field="side"] strong { font-size: 20px }
.option[data-field="msize"],
.option[data-field="msize"].has-badge {
  min-height: 104px;
  padding-top: 15px;
  padding-bottom: 15px;
}
.option[data-field="weight"] { min-height: 96px }
.option[data-field="connection"] { min-height: 116px }

.options.with-shots .option {
  min-height: 180px;
  justify-content: center;
  padding-top: 12px;
  padding-bottom: 12px;
}
.option-shot {
  display: block;
  width: 100%;
  max-width: 146px;
  height: 114px;
  margin: 0 auto 2px;
  object-fit: contain;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.option[data-value="trackball"] .option-shot { transform: scale(1.1) }
.options.with-shots:has(.option[data-field="ballType"]) .option { min-height: 168px }
.option[data-field="ballType"] .option-shot { height: 112px }

.option.has-icon {
  min-height: 198px;
  justify-content: center;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 2px;
}
.grip-icon {
  display: block;
  width: 100%;
  height: 108px;
  margin: 0 auto 5px;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}
.options:has(> .option[data-field="grip"]) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  overflow: visible;
}
.options:has(> .option[data-field="grip"]) > .option {
  flex: none;
  min-width: 0;
}
.questionnaire:has(.option[data-field="grip"]) .grip-icon { height: 118px }
.questionnaire:has(.option[data-field="grip"]) h2 { white-space: nowrap }
@media (min-width: 900px) {
  .questionnaire:has(.option[data-field="grip"]) { width: min(1100px, calc(100vw - 64px)) }
  .options:has(> .option[data-field="grip"]) { grid-template-columns: repeat(6, minmax(0, 1fr)) }
}

.rec-badge {
  position: absolute;
  top: 0;
  left: 0;
  padding: 3px 8px;
  white-space: nowrap;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: #fff;
  background: var(--badge);
  border-radius: 8px 0 8px 0;
  pointer-events: none;
}
.rec-badge.secondary {
  background: var(--badge-secondary);
  font-weight: 600;
}

.option.unavailable {
  overflow: visible;
  cursor: not-allowed;
  color: var(--dim);
  background: var(--raised);
}
.option.unavailable:hover { background: var(--raised) }
.option.unavailable strong { font-weight: 500 }
.option.unavailable small { color: var(--dim-soft) }
.option.unavailable .option-shot {
  transform: none;
  filter: grayscale(1);
  opacity: .35;
}
.option.unavailable .grip-icon {
  filter: grayscale(1);
  opacity: .38;
}

@property --fade {
  syntax: '<length>';
  inherits: false;
  initial-value: 0px;
}
@keyframes options-fade {
  0%, 92% { --fade: 56px }
  100% { --fade: 0px }
}

@media (max-width: 700px) {
  .options {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .options::-webkit-scrollbar { display: none }
  .options:has(> .option) {
    margin: -8px -17px 0;
    padding: 8px 17px 2px;
    scroll-padding: 0 17px;
  }
  @supports (animation-timeline: scroll()) {
    .options:has(> .option) {
      -webkit-mask-image: linear-gradient(to right, #000 calc(100% - var(--fade)), transparent);
      mask-image: linear-gradient(to right, #000 calc(100% - var(--fade)), transparent);
      animation: options-fade linear both;
      animation-timeline: scroll(self inline);
    }
  }
  .options > .option {
    flex: 1 1 140px;
    min-width: 128px;
    min-height: 68px;
    padding: 12px 7px;
  }
  .options > .option:first-child:nth-last-child(3),
  .options > .option:first-child:nth-last-child(3) ~ .option { min-width: 0 }
  .option strong { font-size: 13px }
  .option small { font-size: 11px }
  .option[data-field="msize"],
  .option[data-field="msize"].has-badge {
    min-height: 98px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .option[data-field="weight"] { min-height: 82px }
  .option[data-field="connection"] { min-height: 98px }
  .options.with-shots .option {
    min-height: 142px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .option-shot { max-width: 100px; height: 76px }
  .option.has-icon {
    min-height: 156px;
    padding-top: 9px;
    padding-bottom: 9px;
  }
  .grip-icon { height: 76px; margin-bottom: 4px }
  .options:has(> .option[data-field="grip"]) {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .options:has(> .option[data-field="grip"]) > .option {
    flex: 1 1 140px;
    min-width: 128px;
  }
  .questionnaire:has(.option[data-field="grip"]) .option.has-icon { min-height: 166px }
  .questionnaire:has(.option[data-field="grip"]) .grip-icon { height: 90px }
  .rec-badge { font-size: 8px; padding: 2px 6px }
}

#multi-actions {
  display: block;
  height: 0;
  overflow: hidden;
  transition: height 220ms var(--ease-out);
}
#multi-actions.open { height: var(--row-h, 60px) }
.multi-row {
  display: flex;
  padding-top: 10px;
}
#next {
  flex: 1;
  width: 100%;
  padding: 17px 20px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
  transition: background .18s, opacity 220ms var(--ease-out), transform 220ms var(--ease-out),
              visibility 0s 220ms;
}
#multi-actions.open #next {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: background .18s, opacity 220ms var(--ease-out), transform 220ms var(--ease-out),
              visibility 0s;
}
#next:disabled { cursor: default }
#multi-actions.open #next:disabled { opacity: .4 }
@media (max-width: 700px) {
  #next { padding: 14px 20px }
}
#next:focus-visible { outline-offset: -4px; outline-color: #fff }
@media (hover: hover) and (pointer: fine) {
  #next:hover { background: var(--ink-hover) }
}

.budget-control { width: 100%; min-width: 0 }
.budget-layout {
  --rail-h: 48px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.budget-range {
  position: relative;
  flex: 1;
  min-width: 0;
  height: var(--rail-h);
  margin: 8px 0 34px;
  background: var(--tile);
  border-radius: 12px;
  touch-action: pan-y;
  user-select: none;
}
.budget-interval {
  position: absolute;
  left: var(--range-left);
  width: var(--range-width);
  top: 0;
  bottom: 0;
  background: var(--range);
  border-radius: 12px;
  pointer-events: none;
}
.budget-tick {
  position: absolute;
  top: calc(100% + 18px);
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}
.budget-handle {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  cursor: grab;
  z-index: 1;
}
.budget-handle strong {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.budget-handle:hover {
  border-color: var(--tile-active);
}
.budget-range.dragging,
.budget-range.dragging .budget-handle { cursor: grabbing }
.budget-range.unlimited .budget-interval { background: transparent; box-shadow: none }
.budget-range.unlimited .budget-handle {
  color: var(--dim);
  background: var(--raised);
}
.budget-unlimited {
  align-self: flex-start;
  height: var(--rail-h);
  margin-top: 8px;
  padding: 0 19px;
  border: 0;
  border-radius: 12px;
  background: var(--tile);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.budget-unlimited:hover { background: var(--tile-hover) }
.budget-unlimited[aria-pressed="true"] { background: var(--tile-active) }
.budget-handle:focus-visible,
.budget-unlimited:focus-visible {
  outline: 2px solid var(--muted);
  outline-offset: 2px;
}

.budget-count {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}
.budget-count:empty { display: none }
.budget-count strong { color: var(--ink); font-weight: 600 }
.budget-count.warn { color: var(--warn) }
.qtitle:has(.budget-count:not(:empty)) { display: flex; align-items: baseline }
.qtitle:has(.budget-count:not(:empty)) .qtitle-pad { flex: 1 1 0 }
.qtitle:has(.budget-count:not(:empty)) .budget-count { flex: 1 1 0; text-align: right }
.budget-fix {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--warn);
  text-decoration: underline;
}
.budget-fix:hover { color: var(--warn-hover) }
.budget-fix:focus-visible {
  outline: 2px solid var(--muted);
  outline-offset: 2px;
  border-radius: 3px;
}

@media (max-width: 700px) {
  .qtitle:has(.budget-count:not(:empty)) { display: block }
  .qtitle:has(.budget-count:not(:empty)) .budget-count { text-align: center }
  .qtitle:has(.budget-count:not(:empty)) h2 { margin-bottom: 2px }
  .budget-count { margin-bottom: 12px; font-size: 13px }
  .budget-layout { --rail-h: 44px; gap: 8px }
  .budget-handle { width: 50px; height: 60px }
  .budget-handle strong { font-size: 10px }
  .budget-unlimited { font-size: 11px; padding: 0 10px }
}

.option-tip {
  position: fixed;
  z-index: 100;
  width: 236px;
  max-width: calc(100vw - 24px);
  padding: 10px 12px;
  background: var(--ink);
  color: var(--raised);
  border-radius: 9px;
  box-shadow: 0 10px 30px #1c191733;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  pointer-events: none;
  opacity: 0;
  transition: opacity .12s ease;
}
.option-tip.is-visible { opacity: 1 }
.option-tip.has-action { pointer-events: auto }
.tip-action {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 6px 10px;
  border: 0;
  border-radius: 6px;
  background: var(--raised);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.tip-action:hover { background: #fff }
.option-tip:after {
  content: '';
  position: absolute;
  left: var(--arrow-x, 50%);
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border: 6px solid transparent;
}
.option-tip:not(.below):after { bottom: -12px; border-top-color: var(--ink) }
.option-tip.below:after { top: -12px; border-bottom-color: var(--ink) }
.option-tip.detached:after { display: none }

.result-actions {
  min-height: 68px;
  width: 100%;
  display: flex;
  gap: 8px;
}
#best {
  flex: 1;
  padding: 12px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: var(--raised);
  font-weight: 600;
}
#best:hover { background: var(--ink-hover) }
#best.rescue { background: var(--tile); color: var(--ink) }
#best.rescue:hover { background: var(--tile-hover) }

dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
  width: min(470px, calc(100% - 28px));
  box-shadow: none;
}
dialog::backdrop {
  background: #29252442;
  backdrop-filter: blur(8px);
}
#details:not([open]) { display: none !important }
dialog h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -.6px;
}
dialog p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
dialog a { color: var(--muted-strong) }
dialog img {
  display: block;
  width: 200px;
  height: 200px;
  margin: 0 auto;
  object-fit: contain;
}
dialog img.diagram {
  width: 100%;
  height: auto;
  max-width: 100%;
  margin: 2px 0 16px;
}
.close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 27px;
  color: var(--muted);
}

#details.wide {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}
#details.wide .close { display: none }
body.gallery-open #scene { opacity: .55; pointer-events: none }

.price-row {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: -8px 0 0;
  padding-bottom: 6px;
}
.price { font-size: 23px; letter-spacing: -.7px }
.price-unknown { font-size: 14px; color: var(--muted) }

.tabs {
  position: relative;
  display: flex;
  margin-top: 8px;
  padding: 3px;
  background: var(--tile);
  border-radius: 10px;
}
.tab {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  padding: 7px 0;
  border: 0;
  border-radius: 7px;
  text-align: center;
  background: none;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .1px;
  color: var(--muted-strong);
  cursor: pointer;
  transition: color .18s;
}
.tab:hover { color: var(--ink) }
.tab.is-on { color: var(--ink) }
.tabs::after {
  content: "";
  position: absolute;
  top: 3px; bottom: 3px; left: 3px;
  width: calc((100% - 6px) / var(--tabs, 2));
  background: var(--surface);
  border-radius: 7px;
  box-shadow: 0 1px 2px rgb(41 37 36 / 12%), 0 0 0 .5px rgb(41 37 36 / 6%);
  transition: transform 220ms var(--ease-out);
}
.tabs[data-on="1"]::after { transform: translateX(100%) }
.tabs[data-on="2"]::after { transform: translateX(200%) }

.specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 12px 0 4px;
}
.spec {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.spec .k { font-size: 12px; letter-spacing: .2px; color: var(--muted) }
.spec .v { font-size: 14px; line-height: 1.3; overflow-wrap: anywhere }
.spec-wide { grid-column: 1 / -1 }
.spec-wide .v { white-space: nowrap; overflow-wrap: normal }

.buy-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--raised);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background .18s;
}
.buy-btn:hover { background: var(--ink-deep) }
.buy-btn.shop-search { margin-top: 12px }
.buy-btn.is-shop {
  margin-top: 8px;
  background: #eeedec;
  color: var(--ink);
}
.buy-btn.is-shop:hover { background: var(--tile-hover) }
.shop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.shop-grid .buy-btn.is-shop {
  margin-top: 0;
  gap: 8px;
  padding: 11px 10px;
  line-height: 1.2;
}
.shop-grid .buy-btn.is-shop:last-child:nth-child(odd) { grid-column: 1 / -1 }
@supports (height: 100dvh) {
  #details.wide { height: 100dvh }
}

@media (max-width: 700px) {
  #details.wide {
    overflow: hidden;
    justify-content: center;
    overscroll-behavior: contain;
  }
  #details.wide #detail-content { flex: 0 0 auto; margin-block: 0 }
  #details.wide .close { right: 14px; top: 10px }
  .price { font-size: 21px }
  .tab { padding: 7px 0; font-size: 13px }
  .buy-btn { padding: 12px 14px; font-size: 13px }
  .specs {
    column-gap: 12px;
    row-gap: 9px;
    margin: 12px 0 2px;
  }
  .spec .k { font-size: 11px }
  .spec .v { font-size: 13px }
  .spec-wide .v { font-size: 13px }
}
@media (max-width: 360px) {
  .spec-wide .v { font-size: 13px }
}

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after {
    transition: none !important;
    animation: none !important;
  }
  #multi-actions #next {
    transform: none;
    transition: opacity 150ms ease !important;
  }
  .option-tip { transition: none }
  .mouse:hover img { transform: none }
}
