/* PriceDle, Zoom and Artist (/play/<game>), on top of play.css. One-shot
   motion only (a new try slides in); reduced motion drops it. */

/* the hub tabs (also on /play) live in play.css; the autocomplete must be able to hang below the stage */
.gm-stage { overflow: visible; }

/* ------------------------------------------------------------- PriceDle */
.gm-pd { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: clamp(1rem, 3vw, 2.2rem); align-items: start;
  max-width: 820px; margin: 0 auto; }
.gm-card-img { aspect-ratio: 63 / 88; border-radius: 4.6% / 3.3%; overflow: hidden; background: #16171b; box-shadow: 0 22px 40px -22px rgba(0, 0, 0, 0.85); }
.gm-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gm-pd-card .pp-cap { margin: 0.6rem 0 0; }
.gm-pd-play { min-width: 0; display: grid; gap: 0.8rem; }
.gm-pd-play .pp-q { margin-bottom: 0; }
.gm-market { justify-self: start; }
.gm-tries { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.gm-try { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 0.6rem; min-height: 44px; padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.gm-try b { font-size: 1.1rem; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.gm-try .gm-way { font-weight: 800; font-size: 0.86rem; }
.gm-try .gm-band { font-size: 0.72rem; font-weight: 800; padding: 0.15rem 0.5rem; border-radius: var(--pill); color: #10141a; }
.gm-try.is-empty { color: var(--faint); font-size: 0.8rem; font-weight: 800; box-shadow: inset 0 0 0 1px var(--line); background: none; }
.gm-try.b-hit { box-shadow: inset 0 0 0 1px rgba(86, 192, 138, 0.6); background: rgba(86, 192, 138, 0.12); }
.gm-try.b-hit .gm-band { background: var(--pos); }
.gm-try.b-warm .gm-band { background: #ffe08a; }
.gm-try.b-near .gm-band { background: #f3a86b; }
.gm-try.b-far .gm-band { background: #e0736a; }
.gm-try.is-new { animation: gm-in 0.45s var(--ease) both; }
@keyframes gm-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
.gm-pd-form, .gm-zoom-form { display: flex; gap: 0.5rem; align-items: stretch; }
.gm-pd-type { flex: 1; height: 46px; }
.gm-pd-type input { font-size: 1.05rem; }
.gm-answer { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.6rem; padding: 0.8rem 1rem; border-radius: var(--radius);
  background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.gm-answer span { color: var(--muted); font-weight: 700; }
.gm-answer b { font-size: clamp(1.3rem, 4vw, 1.8rem); font-weight: 900; letter-spacing: -0.03em;
  background: var(--foil-ink); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.gm-answer small { color: var(--muted); flex-basis: 100%; }

/* ----------------------------------------------------------------- Zoom */
.gm-zoom, .gm-artist { max-width: 640px; margin: 0 auto; display: grid; gap: 0.9rem; }
.gm-zoom .pp-q, .gm-artist .pp-q { margin-bottom: 0; }
.gm-start { max-width: 640px; margin: 0 auto; text-align: center; display: grid; gap: 1rem; }
.gm-start h2 { margin: 0; font-size: clamp(1.3rem, 3.4vw, 1.8rem); font-weight: 900; letter-spacing: -0.03em; }
.gm-modes { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.gm-mode { display: grid; gap: 0.3rem; text-align: left; padding: 1rem 1.1rem; border: 0; border-radius: var(--radius); cursor: pointer; font: inherit;
  color: var(--ink); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.gm-mode b { font-size: 1.1rem; }
.gm-mode span { font-size: 0.86rem; color: var(--ink-dim); }
.gm-mode:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--ice); }
.gm-mode:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; }
.gm-mode.is-hard { background: linear-gradient(var(--panel-2), var(--panel-2)) padding-box, var(--rainbow) border-box; border: 1px solid transparent; box-shadow: none; }
.gm-zoom-frame, .gm-art-frame { position: relative; aspect-ratio: 0.83 / 0.39; border-radius: var(--radius); overflow: hidden; background: #111216;
  box-shadow: inset 0 0 0 1px var(--line-2), 0 24px 44px -24px rgba(0, 0, 0, 0.9); }
.gm-zoom-frame img, .gm-art-frame img { display: block; width: 100%; height: 100%; object-fit: cover; animation: gm-zoom 0.6s var(--ease) both; }
@keyframes gm-zoom { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: none; } }
.gm-palette-big { display: flex; }
.gm-palette-big i { flex: 1; }
.gm-palette-big i:first-child { flex: 2.2; }
.gm-palette { display: flex; height: 14px; border-radius: 99px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.gm-palette i { flex: 1; }
.gm-palette i:first-child { flex: 2; }
.gm-zoom-reveal { width: min(260px, 70%); margin: 0 auto; aspect-ratio: 63 / 88; border-radius: 4.6% / 3.3%; overflow: hidden;
  box-shadow: 0 26px 60px -26px rgba(191, 232, 247, 0.55); animation: gm-zoom 0.7s var(--ease) both; }
.gm-zoom-reveal img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gm-zgs { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.gm-zg { display: flex; justify-content: space-between; gap: 0.6rem; padding: 0.45rem 0.8rem; border-radius: var(--radius-sm);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 0.9rem; }
.gm-zg span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gm-zg b { flex: none; font-size: 0.78rem; }
.gm-zg.v-wrong b { color: var(--neg); }
.gm-zg.v-close { box-shadow: inset 0 0 0 1px rgba(255, 224, 138, 0.5); }
.gm-zg.v-close b { color: var(--warn); }
.gm-zg.v-right { box-shadow: inset 0 0 0 1px rgba(86, 192, 138, 0.6); background: rgba(86, 192, 138, 0.12); }
.gm-zg.v-right b { color: var(--pos); }
.gm-zg.is-new { animation: gm-in 0.45s var(--ease) both; }
.gm-ac { position: relative; flex: 1; min-width: 0; }
.gm-ac input { width: 100%; height: 46px; padding: 0 0.9rem; border: 0; border-radius: var(--radius-sm); background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: inherit; font-size: 1rem; }
.gm-ac input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--ice); }
.gm-ac-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 0.3rem; list-style: none; border-radius: var(--radius-sm);
  background: var(--elev); box-shadow: inset 0 0 0 1px var(--line-2), 0 18px 40px -12px rgba(0, 0, 0, 0.7); max-height: 300px; overflow-y: auto; }
.gm-ac-list[hidden] { display: none; }
.gm-ac-list li { padding: 0.5rem 0.7rem; border-radius: 8px; cursor: pointer; font-size: 0.92rem; }
.gm-ac-list li:hover, .gm-ac-list li.on { background: var(--surface-2); }

/* --------------------------------------------------------------- Artist */
.gm-choices { display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.gm-choice { min-height: 48px; padding: 0.6rem 0.9rem; border: 0; border-radius: var(--radius-sm); font: inherit; font-weight: 700; text-align: left; cursor: pointer;
  color: var(--ink); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: transform 0.2s var(--ease), box-shadow 0.2s; }
.gm-choice:hover:not(:disabled) { transform: translateY(-1px); box-shadow: inset 0 0 0 1px var(--ice); }
.gm-choice:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; }
.gm-choice:disabled { cursor: default; }
.gm-choice.is-right { box-shadow: inset 0 0 0 2px var(--pos); background: rgba(86, 192, 138, 0.14); }
.gm-choice.is-wrong { box-shadow: inset 0 0 0 2px var(--neg); background: rgba(224, 115, 106, 0.12); }
.gm-choice.is-off { opacity: 0.55; }

/* -------------------------------------------------------------- phones */
@media (max-width: 640px) {
  .gm-pd { grid-template-columns: minmax(0, 1fr); }
  .gm-pd-card { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 0.8rem; align-items: center; }
  .gm-pd-card .pp-cap { margin: 0; }
  .gm-zoom-frame, .gm-art-frame { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  .gm-try.is-new, .gm-zg.is-new, .gm-zoom-frame img, .gm-art-frame img, .gm-zoom-reveal { animation: none; }
  .gm-mode, .gm-choice { transition: none; }
}
