/* Shared chrome for Oakgate mini-games */

.game-page {
  background: #0a120d;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--cream);
}

.game-bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 3.4rem;
  padding: 0.45rem 0.9rem;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(12, 22, 16, 0.94);
  position: sticky;
  top: 0;
  z-index: 20;
}
.game-bar .back {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold-2);
  white-space: nowrap;
}
.game-bar h1 {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 3.2vw, 1.05rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
  font-weight: 700;
  flex: 1;
  min-width: 0;
}

.game-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 0;
  background: #0c1610;
}

.game-stage canvas {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100dvh - 3.4rem);
  margin: 0 auto;
  touch-action: none;
  background: #102016;
}

.hud {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  right: 0.6rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  pointer-events: none;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
  z-index: 5;
}
.hud strong { color: var(--gold-2); font-weight: 700; }
.hud-pills { display: flex; flex-wrap: wrap; gap: 0.35rem; justify-content: flex-end; }
.pill {
  pointer-events: none;
  background: rgba(12, 22, 16, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background: rgba(8, 14, 10, 0.72);
  z-index: 8;
  text-align: center;
}
.overlay[hidden] { display: none !important; }
.panel {
  background: linear-gradient(180deg, #f6eed8, #ead9b3);
  color: var(--ink);
  border-radius: 1.1rem;
  padding: 1.5rem 1.3rem 1.4rem;
  max-width: 26rem;
  width: min(26rem, 100%);
  box-shadow: var(--shadow);
  border: 1px solid rgba(201, 162, 39, 0.45);
}
.panel h2 {
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 1.25rem;
  margin: 0 0 0.6rem;
  text-align: center;
}
.panel p { margin: 0 0 0.7rem; font-size: 1rem; }
.panel .controls {
  font-size: 0.92rem;
  text-align: left;
  background: rgba(74, 50, 32, 0.07);
  border-radius: 0.6rem;
  padding: 0.7rem 0.8rem;
  margin: 0 0 1rem;
}
.panel .controls dt { font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 0.3rem; }
.panel .controls dd { margin: 0 0 0.25rem; }
.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.game-page .btn { font-size: 0.7rem; }

.touch-controls {
  position: absolute;
  bottom: 0.7rem;
  left: 0.7rem;
  right: 0.7rem;
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  z-index: 6;
  pointer-events: none;
}
.touch-controls button {
  pointer-events: auto;
  min-width: 3.4rem;
  min-height: 3.4rem;
  border-radius: 0.8rem;
  border: 1px solid var(--line);
  background: rgba(12, 22, 16, 0.72);
  color: var(--gold-2);
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.touch-controls button:disabled { opacity: 0.35; }
.touch-controls .jump-btn { margin-left: auto; font-size: 0.7rem; text-transform: uppercase; padding: 0 0.8rem; }

/* Trivia / memory (DOM games) */
.quiz, .memory-wrap, .fact-card {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.2rem 1rem 2rem;
  width: 100%;
}
.progress-row {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.question {
  font-size: 1.25rem;
  line-height: 1.45;
  margin: 0 0 1rem;
}
.choices { display: grid; gap: 0.65rem; }
.choice {
  text-align: left;
  background: var(--bg-3);
  color: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: 0.8rem;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1.02rem;
  cursor: pointer;
  min-height: 3rem;
}
.choice:hover { border-color: var(--line); }
.choice.correct { border-color: #7dcea0; background: #163224; }
.choice.wrong { border-color: #c47a6a; background: #2a1614; }
.choice[disabled] { cursor: default; }
.explain {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--gold);
  background: rgba(201, 162, 39, 0.08);
  color: var(--cream);
  font-size: 0.98rem;
}
.explain a { color: var(--gold-2); }
.source { font-family: var(--font-ui); font-size: 0.82rem; color: var(--muted); }

.memory-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
  perspective: 800px;
}
@media (max-width: 520px) {
  .memory-board { gap: 0.4rem; }
}
.card {
  aspect-ratio: 3 / 4;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 0.6rem;
  position: relative;
}
.card-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.45s ease;
  border-radius: 0.6rem;
}
.card.flipped .card-inner,
.card.matched .card-inner { transform: rotateY(180deg); }
.card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  border: 1px solid var(--line);
}
.card-back {
  background:
    radial-gradient(ellipse at 50% 40%, rgba(201,162,39,0.2), transparent 55%),
    #1a2a1f;
  color: var(--gold-2);
  font-size: 1.4rem;
}
.card-front {
  background: #f3ead5;
  color: var(--ink);
  transform: rotateY(180deg);
}
.card-front .icon { font-size: 1.6rem; line-height: 1; }
.card-front .label {
  font-family: var(--font-display);
  font-size: clamp(0.48rem, 2.4vw, 0.68rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.25rem;
  text-align: center;
}
.card.matched .card-front { box-shadow: 0 0 0 2px var(--gold); }
.card:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }

.fact-toast {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  background: var(--bg-3);
  border-radius: 0.7rem;
  border: 1px solid var(--line-soft);
  min-height: 4.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (prefers-reduced-motion: reduce) {
  .card-inner { transition: none; }
}


/* Climb Monks Mound v2 HUD and panels */
.hud-left, .hud-right {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}
.hud-right {
  align-items: flex-end;
}
.sound-toggle {
  pointer-events: auto;
  margin-top: 0.35rem;
  border: 1px solid var(--line);
  background: rgba(12, 22, 16, 0.72);
  color: var(--gold-2);
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  cursor: pointer;
}
.sound-toggle[aria-pressed="true"] {
  background: rgba(201, 162, 39, 0.22);
  color: var(--gold-3);
}
.panel .game-emblem {
  width: 72px;
  height: 72px;
  display: block;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(26, 20, 12, 0.22);
  background: #f3ead5;
}
.panel .over-extra {
  font-size: 0.95rem;
  color: rgba(26, 20, 12, 0.78);
}
.game-stage .hud {
  z-index: 7;
}
@media (max-width: 520px) {
  .touch-controls {
    bottom: calc(0.45rem + env(safe-area-inset-bottom, 0px));
  }
  .touch-controls button {
    min-width: 3.1rem;
    min-height: 3.1rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sound-toggle { transition: none; }
}

.game-stage .playfield {
  position: relative;
  flex: 1 1 auto;
  width: min(100%, calc((100dvh - 3.4rem) * 0.62));
  max-width: 560px;
  height: calc(100dvh - 3.4rem);
  max-height: calc(100dvh - 3.4rem);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.game-stage .playfield canvas {
  flex: 1;
  width: 100%;
  height: 100%;
  max-height: none;
  background: #102016;
}
.game-page .overlay {
  background: rgba(8, 14, 10, 0.55);
}
@media (max-width: 520px) {
  .panel {
    padding: 1.1rem 0.95rem 1.05rem;
  }
  .panel .game-emblem {
    width: 56px;
    height: 56px;
    margin-bottom: 0.45rem;
  }
  .panel h2 { font-size: 1.05rem; margin-bottom: 0.4rem; }
  .panel p { font-size: 0.92rem; margin-bottom: 0.5rem; }
  .panel .controls { font-size: 0.84rem; padding: 0.5rem 0.65rem; margin-bottom: 0.75rem; }
}


/* v3 game polish: dig, identify, trivia — does not change Climb rules */
.playfield-wide {
  max-width: 720px;
  width: min(100%, 720px);
}
.shop-btn { margin-top: 0.35rem; }
.shop-panel { max-width: 28rem; text-align: left; }
.tool-list { display: grid; gap: 0.55rem; margin: 0.8rem 0 1rem; }
.tool-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 0.7rem;
  background: rgba(74, 50, 32, 0.06);
}
.tool-row.current { border-color: var(--gold); background: rgba(201, 162, 39, 0.12); }
.tool-row strong { display: block; font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }
.tool-row span { display: block; font-size: 0.88rem; color: rgba(26,20,12,0.75); }
.tool-row .btn { font-size: 0.62rem; white-space: nowrap; }
#find-art {
  display: block;
  margin: 0.4rem auto 0.8rem;
  border-radius: 0.6rem;
  background: #1a2418;
  max-width: 100%;
}

/* Name the Find */
.identify-wrap { max-width: 44rem; margin: 0 auto; padding: 1.2rem 1rem 2rem; width: 100%; }
.identify-prompt {
  text-align: center;
  color: var(--muted);
  margin: 0 0 1rem;
  font-size: 1rem;
}
.identify-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 1rem;
  align-items: center;
}
@media (max-width: 640px) {
  .identify-stage { grid-template-columns: 1fr; }
}
.identify-card {
  background: linear-gradient(180deg, #f6eed8, #ead9b3);
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: 1rem;
  padding: 0.6rem;
  cursor: grab;
  touch-action: none;
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
  color: var(--ink);
  text-align: center;
  user-select: none;
  max-width: 20rem;
  margin: 0 auto;
  width: 100%;
}
.identify-card:active, .identify-card[aria-grabbed="true"] { cursor: grabbing; z-index: 4; }
.identify-card canvas { display: block; width: 100%; height: auto; border-radius: 0.6rem; }
.identify-card .card-word {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2.4rem 0.6rem;
}
.identify-targets { display: grid; gap: 0.55rem; }
.id-target {
  text-align: left;
  background: var(--bg-3);
  color: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: 0.8rem;
  padding: 0.8rem 1rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  min-height: 3rem;
}
.id-target:hover, .id-target.hovering { border-color: var(--gold); background: #163224; }
.id-target.correct { border-color: #7dcea0; background: #163224; }
.id-target.snap-ok { animation: pop-ok 0.4s ease; }
.id-target.snap-no, .identify-card.snap-no { animation: shake-no 0.35s ease; }
.identify-card.snap-ok { animation: pop-ok 0.4s ease; }
@keyframes pop-ok {
  0% { transform: scale(1); }
  40% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
@keyframes shake-no {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-7px); }
  75% { transform: translateX(7px); }
}
.fact-toast.good { border-color: #7dcea0; color: var(--cream); }
.fact-toast.hot { border-color: var(--gold); color: var(--gold-3); }
.fact-toast.cold { border-color: #8fa4c2; }

.quiz-bar {
  height: 4px;
  background: rgba(201,162,39,0.15);
  border-radius: 999px;
  margin: -0.3rem 0 1rem;
  overflow: hidden;
}
.quiz-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold);
  transition: width 0.35s ease;
}
.choices.flash-ok { outline: 2px solid rgba(125, 206, 160, 0.5); outline-offset: 4px; border-radius: 0.8rem; }
.choices.flash-no { outline: 2px solid rgba(196, 122, 106, 0.5); outline-offset: 4px; border-radius: 0.8rem; }

@media (prefers-reduced-motion: reduce) {
  .id-target.snap-ok, .id-target.snap-no, .identify-card.snap-ok, .identify-card.snap-no,
  .quiz-bar span { animation: none; transition: none; }
}

/* Play page thumbs */
.game-card .thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0.7rem;
  margin: 0 0 0.85rem;
  background: #102016;
  border: 1px solid var(--line-soft);
}


/* v4: Name the Find + Artifact Dig polish — Climb selectors are not restyled */
.identify-wrap { max-width: 56rem; }
.round-pips {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
}
.round-pips .pip {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 39, 0.55);
  background: transparent;
}
.round-pips .pip-now { background: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2); }
.round-pips .pip-ok { background: #7dcea0; border-color: #7dcea0; }
.identify-stage {
  grid-template-columns: minmax(16rem, 0.95fr) minmax(0, 1.05fr);
  gap: 1.3rem;
  align-items: stretch;
}
.identify-card {
  max-width: 26rem;
  padding: 0.55rem;
  box-shadow: 0 14px 36px rgba(0,0,0,0.38), 0 0 0 1px rgba(201,162,39,0.2);
  position: relative;
  z-index: 3;
  will-change: transform;
}
.identify-card.lifting {
  cursor: grabbing;
  z-index: 8;
  box-shadow: 0 28px 50px rgba(0,0,0,0.55), 0 0 0 1px rgba(228,200,106,0.45);
}
.identify-card.snap-ok {
  animation: none;
  box-shadow: 0 0 0 3px #e4c86a, 0 0 28px rgba(201,162,39,0.55), 0 18px 36px rgba(0,0,0,0.4);
}
.identify-card.is-shaking {
  z-index: 8;
}
.identify-targets { display: grid; gap: 0.65rem; align-content: center; }
.identify-target {
  text-align: left;
  background: #132318;
  color: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: 0.9rem;
  padding: 0.95rem 1.05rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  min-height: 3.35rem;
  transition: border-color 0.15s, background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.identify-target:hover, .identify-target.is-hover, .identify-target.is-focus {
  border-color: var(--gold);
  background: #1a3324;
  box-shadow: 0 0 0 1px rgba(201,162,39,0.35);
}
.identify-target.is-correct {
  border-color: #e4c86a;
  background: #1d3a28;
  box-shadow: 0 0 0 2px rgba(228,200,106,0.7), 0 0 22px rgba(201,162,39,0.35);
}
.identify-target.is-wrong {
  border-color: #c47a6a;
  animation: shake-no 0.35s ease;
}
.fact-toast.is-warm { border-color: var(--gold); color: var(--gold-3); }
.fact-toast.is-cold { border-color: #8fa4c2; }
.fact-toast.is-right { border-color: #7dcea0; color: var(--cream); }

.collection-shelf {
  margin-top: 1.6rem;
  padding: 1rem 0.8rem 1.2rem;
  border-top: 1px solid var(--line-soft);
}
.shelf-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin: 0 0 0.75rem;
  text-align: center;
}
.shelf-slots {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.45rem;
}
.shelf-slot {
  border-radius: 0.55rem;
  min-height: 5.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(16, 32, 22, 0.7);
  border: 1px dashed rgba(201, 162, 39, 0.28);
}
.shelf-slot.empty span {
  font-family: var(--font-display);
  color: rgba(243, 234, 213, 0.28);
  font-size: 0.85rem;
}
.shelf-slot.filled {
  border-style: solid;
  border-color: rgba(201, 162, 39, 0.45);
  background: #1a2418;
}
.shelf-slot canvas { width: 100%; height: auto; display: block; }
.shelf-slot.filled span {
  display: block;
  font-size: 0.55rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-display);
  color: var(--gold-3);
  text-align: center;
  padding: 0.2rem 0.15rem 0.35rem;
  line-height: 1.2;
}
@media (max-width: 720px) {
  .shelf-slots { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Artifact Dig layout */
.dig-stage { width: 100%; max-width: 1180px; margin: 0 auto; }
.dig-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  padding: 0.5rem 0.6rem 1.2rem;
  width: 100%;
}
.dig-board {
  position: relative;
  min-width: 0;
}
.dig-board canvas {
  width: 100%;
  height: auto;
  max-height: calc(100dvh - 3.4rem);
  display: block;
  border-radius: 0.85rem;
  background: #102016;
}
.dig-side {
  display: grid;
  gap: 0.7rem;
  align-content: start;
}
.side-card {
  background: #132318;
  border: 1px solid var(--line-soft);
  border-radius: 0.85rem;
  padding: 0.8rem 0.85rem;
}
.side-card h3 {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin: 0 0 0.45rem;
}
.side-coins .amount {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--gold-2);
  letter-spacing: 0.04em;
  line-height: 1;
}
.side-coins .label { font-size: 0.8rem; color: var(--muted); }
.side-tool .tool-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.2rem;
}
.side-tool .tool-hint { font-size: 0.88rem; color: var(--muted); margin: 0 0 0.7rem; }
.side-tool .shop-btn, .side-tool #sideShopBtn {
  pointer-events: auto;
  width: 100%;
}
.shop-btn.can-buy, #sideShopBtn.can-buy {
  animation: shed-pulse 1.6s ease-in-out infinite;
  box-shadow: 0 0 0 2px rgba(201,162,39,0.45);
}
@keyframes shed-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,162,39,0.0); }
  50% { box-shadow: 0 0 0 6px rgba(201,162,39,0.22); }
}
.upgrade-nudge {
  margin: 0.45rem 0 0;
  padding: 0.4rem 0.5rem;
  border-radius: 0.5rem;
  background: rgba(201,162,39,0.12);
  color: var(--gold-3);
  font-size: 0.85rem;
}
.upgrade-nudge[hidden] { display: none; }
.depth-meter { display: grid; gap: 0.25rem; }
.depth-row {
  display: grid;
  grid-template-columns: 5.6rem 1fr auto;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.75rem;
}
.depth-row .bar {
  height: 0.45rem;
  background: rgba(201,162,39,0.1);
  border-radius: 99px;
  overflow: hidden;
}
.depth-row .bar > span { display: block; height: 100%; background: var(--gold); width: 0; }
.depth-row.is-here { color: var(--gold-2); }
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
}
.cat-cell {
  border: 1px solid var(--line-soft);
  border-radius: 0.45rem;
  min-height: 4.2rem;
  background: #102016;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 0.4;
}
.cat-cell.found { opacity: 1; border-color: rgba(201,162,39,0.4); }
.cat-cell canvas { width: 100%; height: auto; display: block; }
.cat-cell span {
  font-size: 0.52rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-family: var(--font-display);
  text-align: center;
  padding: 0.15rem 0.15rem 0.3rem;
  line-height: 1.15;
  color: var(--gold-3);
}
.find-popup .coin-earn {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gold-2);
  letter-spacing: 0.06em;
}
#find-art { width: min(100%, 280px); height: auto; background: #f3ead5; }

@media (min-width: 960px) {
  .dig-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
  }
  .dig-side { position: sticky; top: 4.1rem; }
  .dig-board .hud-right .hud-pills,
  .dig-board .hud-right .shop-btn { display: none; }
}
@media (max-width: 959px) {
  .dig-side { grid-template-columns: 1fr 1fr; }
  .side-catalog, .side-depth { grid-column: 1 / -1; }
  .catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .shop-btn.can-buy, #sideShopBtn.can-buy { animation: none; }
  .identify-card.snap-ok { animation: none; }
}
