/* Price the clean: a glowing price machine for five homes. Everything is scoped under .g-price. */
.g-price {
  --gp-cyan: #22e4f2;
  --gp-gold: #ffc94d;
  --gp-pink: #ff4f8b;
  --gp-green: #4be38a;
  --gp-orange: #ff9a3d;
  --gp-violet: #8c7cff;
  --gp-ink: #f4f7fc;
  --gp-muted: rgba(226, 234, 248, 0.72);
  --gp-faint: rgba(226, 234, 248, 0.5);
  --gp-line: rgba(255, 255, 255, 0.1);
  --gp-glass: rgba(255, 255, 255, 0.05);
  --gp-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  color: var(--gp-ink);
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.g-price *, .g-price *::before, .g-price *::after { box-sizing: border-box; }
.g-price [hidden] { display: none !important; }
.g-price .gp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.g-price svg { display: block; }
.g-price button:not(.btn) { font: inherit; color: inherit; }
.g-price .btn { font-family: inherit; }
.g-price :focus-visible { outline: 3px solid var(--gp-cyan); outline-offset: 2px; }

/* how close a guess was: one color per tier, shared by the pips, the verdict, the gap and the summary */
.g-price .gp-t-bull { --vc: var(--gp-gold); }
.g-price .gp-t-hot { --vc: var(--gp-green); }
.g-price .gp-t-warm { --vc: var(--gp-orange); }
.g-price .gp-t-cold { --vc: #6fd8ff; }
.g-price .gp-t-far { --vc: var(--gp-pink); }

/* line icons */
.g-price .gp-ctl-l svg, .g-price .gp-types svg, .g-price .gp-stat svg, .g-price .gp-missing-ico svg, .g-price .gp-type svg, .g-price .gp-specs svg,
.g-price .gp-life svg, .g-price .gp-end-acts svg, .g-price .gp-actions svg, .g-price .gp-rules svg, .g-price .gp-row-b svg, .g-price .gp-end-stats svg, .g-price .gp-v-pts svg {
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none;
}
.g-price .gp-dot { fill: currentColor; }
.g-price svg .gp-fo { fill: #ff7a2f; stroke: none; }
.g-price svg .gp-fi { fill: #ffd36b; stroke: none; }

/* ───── cabinet: chrome bezel around a dark machine ───── */
.g-price .gp-machine {
  position: relative;
  padding: 5px;
  border-radius: 30px;
  background: linear-gradient(145deg, #f2f5fb 0%, #7d869a 22%, #e9edf5 42%, #4b5366 64%, #cfd6e2 84%, #6c7488 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(34, 228, 242, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.g-price .gp-cab {
  container-type: inline-size; /* the stage sizes itself from the cabinet's width (cqw) */
  border-radius: 25px;
  overflow: hidden;
  background: radial-gradient(120% 60% at 50% 0%, #2a1650 0%, transparent 60%), linear-gradient(180deg, #120d2a 0%, #0a1024 45%, #070b1a 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.12), inset 0 -10px 30px rgba(0, 0, 0, 0.5);
}
.g-price .gp-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 6; }

/* ───── marquee sign with chasing bulbs ───── */
.g-price .gp-sign { position: relative; padding: 8px 14px 7px; text-align: center; background: linear-gradient(180deg, rgba(255, 79, 139, 0.18), rgba(255, 79, 139, 0) 90%); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.g-price .gp-bulbs { display: flex; justify-content: space-between; padding: 0 2px; }
/* each bulb's light is a pre-drawn layer whose opacity blinks (cheap), and the chase only runs while something
   happens: a spin, a jackpot, a hot streak. At rest every third bulb glows, still. */
.g-price .gp-bulbs i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #5a4520; box-shadow: inset 0 -1px 2px rgba(0, 0, 0, 0.5); }
.g-price .gp-bulbs i::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #fff4c2; box-shadow: 0 0 8px 2px rgba(255, 201, 77, 0.9), 0 0 2px #fff; opacity: 0; }
.g-price .gp-bulbs i:nth-child(3n + 1)::after { opacity: 1; }
.g-price[data-phase='spin'] .gp-bulbs i::after, .g-price.gp-jack .gp-bulbs i::after, .g-price.gp-onfire .gp-bulbs i::after { animation: gp-chase 0.9s steps(1, end) infinite; }
.g-price .gp-bulbs i:nth-child(3n + 2)::after { animation-delay: 0.3s; }
.g-price .gp-bulbs i:nth-child(3n + 3)::after { animation-delay: 0.6s; }
.g-price.gp-jack .gp-bulbs i::after, .g-price.gp-onfire .gp-bulbs i::after { animation-duration: 0.3s; }
.g-price.gp-jack .gp-bulbs i:nth-child(3n + 2)::after, .g-price.gp-onfire .gp-bulbs i:nth-child(3n + 2)::after { animation-delay: 0.1s; }
.g-price.gp-jack .gp-bulbs i:nth-child(3n + 3)::after, .g-price.gp-onfire .gp-bulbs i:nth-child(3n + 3)::after { animation-delay: 0.2s; }
/* three homes in a row within 10%: the marquee burns orange */
.g-price.gp-onfire .gp-bulbs i::after { background: #ffd9b0; box-shadow: 0 0 9px 3px rgba(255, 122, 47, 0.95), 0 0 2px #fff; }
.g-price .gp-bulbs + .gp-sign-text { margin-top: 5px; }
.g-price .gp-sign-sub + .gp-bulbs { margin-top: 6px; }
@keyframes gp-chase { 0%, 33% { opacity: 1; } 34%, 100% { opacity: 0; } }
.g-price.gp-onfire .gp-machine { box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 70px rgba(255, 122, 47, 0.38), 0 0 0 1px rgba(255, 190, 120, 0.5); }
/* the speaker: sound is off until the visitor turns it on (here or in the nav) */
.g-price button.gp-snd { position: absolute; right: 9px; top: 50%; z-index: 2; display: grid; place-items: center; width: 32px; height: 32px; margin-top: -16px; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(5, 8, 18, 0.55); color: var(--gp-muted); cursor: pointer; transition: color 0.2s, border-color 0.2s, background 0.2s; }
.g-price .gp-snd svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.g-price .gp-snd svg path:first-child { fill: currentColor; }
.g-price .gp-snd .gp-snd-w { display: none; }
.g-price .gp-snd[aria-pressed='true'] { color: var(--gp-cyan); border-color: rgba(34, 228, 242, 0.5); background: rgba(34, 228, 242, 0.12); }
.g-price .gp-snd[aria-pressed='true'] .gp-snd-w { display: inline; }
.g-price .gp-snd[aria-pressed='true'] .gp-snd-x { display: none; }
/* the first pull with sound off offers it once, just above the buttons (on screen while the reels spin) */
.g-price button.gp-sndhint { position: absolute; left: 50%; bottom: calc(100% + 12px); z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(34, 228, 242, 0.6); background: rgba(5, 8, 18, 0.94); color: #c9fbff; font-size: 13px; font-weight: 800; white-space: nowrap; cursor: pointer; transform: translateX(-50%); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), 0 0 16px rgba(34, 228, 242, 0.25); }
.g-price .gp-sndhint svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.g-price .gp-sndhint svg path:first-child { fill: currentColor; }
.g-price .gp-sndhint .gp-snd-x { display: none; }
.g-price .gp-hint-in { animation: gp-hintin 2.6s ease both; }
@keyframes gp-hintin { 0% { opacity: 0; transform: translate(-50%, 8px) scale(0.85); } 12%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 0); } }
.g-price.gp-onfire .gp-sign { background: linear-gradient(180deg, rgba(255, 122, 47, 0.3), rgba(255, 122, 47, 0) 90%); }
.g-price .gp-sign-text { font-weight: 900; font-size: clamp(21px, 6vw, 28px); letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.05; color: #e9fdff; text-shadow: 0 0 6px rgba(34, 228, 242, 0.9), 0 0 18px rgba(34, 228, 242, 0.6), 0 0 36px rgba(34, 228, 242, 0.35); }
.g-price .gp-sign-text span { color: #fff1f6; text-shadow: 0 0 6px rgba(255, 79, 139, 0.95), 0 0 18px rgba(255, 79, 139, 0.6), 0 0 36px rgba(255, 79, 139, 0.35); }
.g-price .gp-sign-sub { margin-top: 2px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gp-gold); opacity: 0.9; }

/* ───── the HUD: five homes, the score, the flame meter ───── */
.g-price .gp-hud { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px 0; min-height: 46px; }
.g-price .gp-pips { display: flex; gap: 5px; list-style: none; margin: 0; padding: 0; }
.g-price .gp-pips li { position: relative; width: 27px; height: 27px; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--gp-line); color: rgba(226, 234, 248, 0.3); transition: background 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.3s; }
.g-price .gp-pips svg, .g-price .gp-free-tag svg, .g-price .gp-own svg { fill: currentColor; stroke: none; }
.g-price .gp-pips svg { width: 15px; height: 15px; }
.g-price .gp-pips li.gp-cur { color: var(--gp-cyan); border-color: rgba(34, 228, 242, 0.75); background: rgba(34, 228, 242, 0.12); box-shadow: 0 0 6px rgba(34, 228, 242, 0.25); }
/* the current home's glow breathes on its own layer (opacity only) */
.g-price .gp-pips li.gp-cur::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; box-shadow: 0 0 14px 1px rgba(34, 228, 242, 0.55); pointer-events: none; animation: gp-breathe 1.4s ease-in-out infinite; }
.g-price .gp-pips li.gp-done { color: #06101f; background: var(--vc); border-color: var(--vc); box-shadow: 0 0 12px color-mix(in srgb, var(--vc) 55%, transparent); animation: gp-bump 0.45s var(--gp-bounce); }
.g-price .gp-score { display: grid; justify-items: center; line-height: 1; min-width: 70px; }
.g-price .gp-score small { font-size: 9.5px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gp-faint); }
.g-price .gp-score .gp-hbest { margin-top: 3px; font-size: 9.5px; letter-spacing: 0.08em; color: var(--gp-faint); min-height: 1em; }
.g-price .gp-score b { display: inline-block; margin-top: 3px; font-size: 25px; font-weight: 900; color: var(--gp-gold); text-shadow: 0 0 14px rgba(255, 201, 77, 0.45); font-variant-numeric: tabular-nums; }
.g-price .gp-flames { display: grid; justify-items: center; gap: 3px; min-width: 104px; }
.g-price .gp-flx { font-size: 9.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gp-faint); white-space: nowrap; }
.g-price .gp-flames.gp-on .gp-flx { color: #ffb36b; text-shadow: 0 0 10px rgba(255, 122, 47, 0.6); }
.g-price .gp-fls { display: flex; gap: 1px; }
.g-price .gp-fls i { display: block; width: 20px; height: 23px; transform-origin: 50% 90%; }
.g-price .gp-fls svg { width: 100%; height: 100%; }
.g-price .gp-fls i .gp-fo { fill: #313956; }
.g-price .gp-fls i .gp-fi { fill: transparent; }
.g-price .gp-fls i.gp-lit .gp-fo { fill: #ff7a2f; }
.g-price .gp-fls i.gp-lit .gp-fi { fill: #ffd36b; }
.g-price .gp-fls i.gp-lit { filter: drop-shadow(0 0 5px rgba(255, 122, 47, 0.8)); animation: gp-flicker 0.8s ease-in-out infinite alternate; }
.g-price .gp-fls i.gp-lit:nth-child(2n) { animation-delay: 0.25s; }
.g-price .gp-fls i.gp-ignite { animation: gp-ignite 0.55s var(--gp-bounce), gp-flicker 0.8s 0.55s ease-in-out infinite alternate; }
.g-price .gp-flames.gp-hot .gp-lit { filter: drop-shadow(0 0 8px rgba(255, 140, 47, 1)) drop-shadow(0 0 2px #fff3c4); }
@keyframes gp-flicker { from { transform: scale(1) rotate(-3deg); } to { transform: scale(1.06, 1.14) rotate(3deg); } }
@keyframes gp-ignite { 0% { transform: scale(0.2); } 60% { transform: scale(1.55); } 100% { transform: scale(1); } }
.g-price .gp-hud-free { justify-content: space-between; }
.g-price .gp-free-tag { display: inline-flex; align-items: center; gap: 8px; color: var(--gp-cyan); font-size: 14.5px; }
.g-price .gp-free-tag svg { width: 18px; height: 18px; }
.g-price .gp-hud-free small { color: var(--gp-faint); font-size: 12px; font-weight: 700; text-align: right; }

/* ───── reel window + lever ───── */
.g-price .gp-deck { display: flex; align-items: stretch; gap: 10px; padding: 10px 12px 10px 14px; }
.g-price .gp-window {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding: 8px 10px 6px;
  border-radius: 20px;
  background: radial-gradient(120% 90% at 50% 40%, #121a38 0%, #060914 75%);
  border: 2px solid #2a3150;
  box-shadow: inset 0 0 0 2px rgba(255, 201, 77, 0.35), inset 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 0 4px rgba(0, 0, 0, 0.25);
  text-align: center;
}
.g-price .gp-rays { position: absolute; left: 50%; top: 50%; width: 260%; aspect-ratio: 1; transform: translate(-50%, -50%); background: repeating-conic-gradient(from 0deg, rgba(255, 201, 77, 0.32) 0deg 9deg, rgba(255, 201, 77, 0) 9deg 18deg); -webkit-mask: radial-gradient(circle, #000 0%, transparent 60%); mask: radial-gradient(circle, #000 0%, transparent 60%); opacity: 0; transition: opacity 0.5s; pointer-events: none; }
.g-price.gp-jack .gp-rays { opacity: 1; animation: gp-spin 9s linear infinite; }
@keyframes gp-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.g-price .gp-wlabel { position: relative; font-size: 10.5px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gp-muted); min-height: 14px; }
.g-price.gp-co .gp-wlabel { color: var(--gp-pink); }
.g-price.gp-gold .gp-wlabel { color: var(--gp-gold); }

.g-price .gp-reels { position: relative; display: flex; width: max-content; max-width: 100%; align-items: center; justify-content: center; gap: 0.08em; margin: 5px auto 2px; font-size: clamp(40px, 12vw, 58px); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.g-price .gp-dollar { font-size: 0.62em; color: var(--gp-faint); margin-right: 0.04em; transition: color 0.3s; }
.g-price.gp-co .gp-dollar { color: #ffd2e1; }
.g-price.gp-gold .gp-dollar { color: var(--gp-gold); }
.g-price.gp-scoremode .gp-dollar { display: none; }
.g-price .gp-reelrow { display: flex; gap: 0.08em; }
.g-price .gp-reel {
  position: relative;
  width: 0.82em;
  height: 1.2em;
  overflow: hidden;
  border-radius: 0.14em;
  background: linear-gradient(180deg, #0b1022 0%, #1c2547 50%, #0b1022 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4), 0 2px 0 rgba(0, 0, 0, 0.4);
}
.g-price .gp-reel::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 32%, rgba(255, 255, 255, 0.06) 50%, rgba(0, 0, 0, 0) 68%, rgba(0, 0, 0, 0.75) 100%); }
.g-price .gp-strip { display: flex; flex-direction: column; will-change: transform; }
.g-price .gp-strip b { display: block; height: 1.2em; line-height: 1.2em; text-align: center; color: #f4f7fc; text-shadow: 0 0 10px rgba(255, 255, 255, 0.25); transition: color 0.3s, text-shadow 0.3s; }
.g-price.gp-co .gp-strip b { color: #ffe6ef; text-shadow: 0 0 12px rgba(255, 79, 139, 0.6); }
.g-price.gp-gold .gp-strip b { color: var(--gp-gold); text-shadow: 0 0 14px rgba(255, 201, 77, 0.75); }
/* a reel at speed: the digits dim under a still streak overlay (no blur filter repainting every frame) */
.g-price .gp-reel::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0) 0 0.07em, rgba(255, 255, 255, 0.16) 0.07em 0.1em), linear-gradient(180deg, rgba(255, 255, 255, 0) 15%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 85%); }
.g-price .gp-reel.gp-blur::before { opacity: 1; }
.g-price .gp-reel.gp-blur .gp-strip { opacity: 0.5; }
.g-price .gp-reel.gp-land { animation: gp-land 0.35s var(--gp-bounce); }
@keyframes gp-land { 30% { transform: translateY(0.06em) scaleY(0.94); } }
.g-price .gp-reel.gp-blank .gp-strip { opacity: 0; }
.g-price .gp-q { position: absolute; inset: 0; display: none; place-items: center; color: var(--gp-cyan); text-shadow: 0 0 14px rgba(34, 228, 242, 0.7); animation: gp-breathe 1.8s ease-in-out infinite; }
.g-price .gp-reel:nth-child(2) .gp-q { animation-delay: 0.25s; }
.g-price .gp-reel:nth-child(3) .gp-q { animation-delay: 0.5s; }
.g-price .gp-idle .gp-q { display: grid; }
.g-price .gp-idle .gp-strip { visibility: hidden; }
@keyframes gp-breathe { 50% { opacity: 0.45; } }

/* the slash across the typical company price */
.g-price .gp-slash { position: absolute; left: -6%; right: -6%; top: 50%; height: 0.11em; margin-top: -0.055em; border-radius: 99px; background: linear-gradient(90deg, #ff2d6f, var(--gp-pink), #ff9ab9); box-shadow: 0 0 14px rgba(255, 79, 139, 0.9); transform: rotate(-9deg) scaleX(0); transform-origin: left center; transition: transform 0.38s cubic-bezier(0.7, 0, 0.3, 1); pointer-events: none; }
.g-price.gp-struck .gp-slash { transform: rotate(-9deg) scaleX(1); }
.g-price.gp-struck .gp-reels { animation: gp-shake 0.35s 0.25s; }
@keyframes gp-shake { 25% { transform: translateX(-4px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }
/* one fixed line: what shows here never changes the machine's height (the buttons below must not move) */
.g-price .gp-was { position: relative; height: 17px; line-height: 17px; white-space: nowrap; font-size: 12.5px; font-weight: 700; color: var(--gp-muted); opacity: 0; transform: translateY(6px); transition: opacity 0.3s, transform 0.3s; }
.g-price .gp-was s { color: #ff8fb2; text-decoration-color: var(--gp-pink); text-decoration-thickness: 2px; margin-right: 4px; font-weight: 800; }
.g-price .gp-was b { color: var(--gp-green); font-weight: 900; }
.g-price[data-phase='summary'] .gp-was { color: var(--gp-cyan); }
.g-price.gp-was-on .gp-was { opacity: 1; transform: none; }
.g-price.gp-jack .gp-window { animation: gp-flash 0.9s ease-out; border-color: rgba(255, 201, 77, 0.8); }
@keyframes gp-flash { 0% { box-shadow: inset 0 0 0 2px rgba(255, 201, 77, 0.35), 0 0 0 0 rgba(255, 201, 77, 0.8); } 40% { box-shadow: inset 0 0 40px rgba(255, 201, 77, 0.45), 0 0 30px 6px rgba(255, 201, 77, 0.5); } }
.g-price[data-phase='spin'] .gp-window { cursor: pointer; }

.g-price .gp-leverbox { position: relative; flex: none; width: 46px; display: flex; flex-direction: column; align-items: center; }
.g-price .gp-lever { position: relative; width: 46px; height: 100%; min-height: 112px; padding: 0; border: 0; background: transparent; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.g-price .gp-lever.gp-grab { cursor: grabbing; }
.g-price .gp-lslot { position: absolute; left: 50%; top: 10px; bottom: 10px; width: 12px; transform: translateX(-50%); border-radius: 99px; background: linear-gradient(90deg, #04060d, #1a2038 50%, #04060d); box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.g-price .gp-hub { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffffff, #9aa3b5 45%, #3c4356 100%); box-shadow: 0 3px 8px rgba(0, 0, 0, 0.6); }
/* the stick is a fixed bar from the hub, stretched by a transform as the ball moves (no layout per frame) */
.g-price .gp-stick { position: absolute; left: 50%; top: 0; width: 8px; height: 0; border-radius: 99px; transform-origin: 50% 0; background: linear-gradient(90deg, #6b7488, #f2f5fb 45%, #7d869a); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25); }
.g-price .gp-ball { position: absolute; left: 50%; top: 0; width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #ffd0e0 0%, var(--gp-pink) 38%, #a01748 100%); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.55), 0 0 16px rgba(255, 79, 139, 0.55); transform: translate(-50%, 0); }
/* "pull me": a glow on its own layer that breathes (opacity only) */
.g-price .gp-ball::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; box-shadow: 0 0 26px 7px rgba(255, 79, 139, 0.85); opacity: 0; pointer-events: none; }
.g-price .gp-leverbox.gp-ready .gp-ball::after { animation: gp-glow 1.3s ease-in-out infinite; }
@keyframes gp-glow { 50% { opacity: 1; } }
.g-price .gp-leverbox.gp-nudge { animation: gp-shake 0.35s; }

/* ───── the stage: today's home ───── */
/* 2:1 up to a cap (aspect-ratio with max-height would shrink the width instead) */
.g-price .gp-stage { --gp-sm: 12px; --gp-ar: 2; --gp-maxh: 250px; position: relative; margin: 0 var(--gp-sm); height: 172px; height: min(var(--gp-maxh), calc((100cqw - 2 * var(--gp-sm)) / var(--gp-ar))); border-radius: 18px; overflow: hidden; background: #0a1230; box-shadow: inset 0 0 0 1px var(--gp-line), 0 10px 26px rgba(0, 0, 0, 0.35); }
.g-price[data-phase='result'][data-mode='run'] .gp-stage { cursor: pointer; }
.g-price .gp-house { position: absolute; inset: 0; }
.g-price .gp-house svg { width: 100%; height: 100%; }
.g-price .gp-house.gp-out { transform: translateX(-24%) scale(0.96); opacity: 0; transition: transform 0.23s ease-in, opacity 0.23s ease-in; }
.g-price .gp-house.gp-in { animation: gp-slidein 0.55s var(--gp-bounce) both; }
@keyframes gp-slidein { from { transform: translateX(28%); opacity: 0; } }
.g-price .gp-hs { transform-box: view-box; transition: transform 0.45s var(--gp-bounce); }
.g-price .gp-pop { transform-box: fill-box; transform-origin: 50% 100%; animation: gp-pop 0.5s var(--gp-bounce) both; }
@keyframes gp-pop { from { transform: scale(0); opacity: 0; } }
.g-price .gp-twinkle { transform-box: fill-box; transform-origin: center; animation: gp-twinkle 1.6s ease-in-out infinite; }
@keyframes gp-twinkle { 50% { opacity: 0.25; } }
.g-price .gp-bubble { animation: gp-float 3s ease-in-out infinite; }
@keyframes gp-float { 50% { transform: translateY(-5px); } }
.g-price .gp-attic { animation: gp-breathe 3s ease-in-out infinite; }
/* your mini Giggy, the estimator in the yard */
.g-price .gp-me { transform-box: fill-box; transform-origin: 50% 100%; transition: transform 0.35s var(--gp-bounce); }
.g-price .gp-me-think { animation: gp-think 0.7s ease-in-out infinite alternate; }
@keyframes gp-think { from { transform: rotate(-4deg); } to { transform: rotate(4deg) translateY(-1px); } }
.g-price .gp-me-cheer { animation: gp-hop 0.42s ease-in-out 4; }
@keyframes gp-hop { 50% { transform: translateY(-10px) scaleY(1.05); } }
.g-price .gp-me-sad { transform: rotate(-9deg) translate(-1px, 2px) scaleY(0.94); }
.g-price .gp-stars circle { animation: gp-breathe 3.6s ease-in-out infinite; }
.g-price .gp-stars circle:nth-child(2n) { animation-delay: 1.2s; }
.g-price .gp-tags, .g-price .gp-specs { z-index: 2; }
.g-price .gp-tags { position: absolute; left: 8px; right: 8px; top: 8px; display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; pointer-events: none; transition: opacity 0.25s; }
.g-price[data-phase='result'] .gp-tags { opacity: 0; }
/* solid enough to read without a backdrop blur (a blur over the moving scene costs a phone every frame) */
.g-price .gp-name, .g-price .gp-type, .g-price .gp-specs span { background: rgba(5, 8, 18, 0.8); border: 1px solid rgba(255, 255, 255, 0.13); border-radius: 999px; font-weight: 800; white-space: nowrap; }
.g-price .gp-name { display: inline-flex; align-items: center; gap: 7px; min-width: 0; padding: 4px 10px 4px 4px; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
.g-price .gp-name em { flex: none; font-style: normal; padding: 2px 7px; border-radius: 999px; background: var(--gp-cyan); color: #03141c; font-size: 11px; font-weight: 900; }
.g-price .gp-name .gp-nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.g-price .gp-name em.gp-fin { background: var(--gp-gold); color: #241600; text-transform: uppercase; letter-spacing: 0.06em; box-shadow: 0 0 12px rgba(255, 201, 77, 0.7); }
.g-price .gp-name em.gp-final { display: inline-block; animation: gp-final 0.9s var(--gp-bounce) 0.35s both; }
@keyframes gp-final { 0% { transform: scale(0.3); opacity: 0; } 50% { transform: scale(1.3); box-shadow: 0 0 22px rgba(255, 201, 77, 1); } }
.g-price .gp-type { display: inline-flex; align-items: center; gap: 5px; flex: none; padding: 4px 10px; font-size: 12px; }
.g-price .gp-type svg { width: 14px; height: 14px; }
.g-price .gp-ty-standard { color: var(--gp-cyan); border-color: rgba(34, 228, 242, 0.5); }
.g-price .gp-ty-deep { color: #c4b8ff; border-color: rgba(140, 124, 255, 0.65); }
.g-price .gp-ty-moveout { color: #ffbe7d; border-color: rgba(255, 154, 61, 0.6); }
.g-price .gp-specs { position: absolute; left: 6px; right: 6px; bottom: 7px; display: flex; justify-content: center; flex-wrap: wrap; gap: 5px; pointer-events: none; }
.g-price .gp-specs span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; font-size: 12px; }
.g-price .gp-specs svg { width: 14px; height: 14px; color: var(--gp-cyan); }
.g-price .gp-specs.gp-in { animation: gp-rise 0.5s 0.2s var(--gp-bounce) both; }
@keyframes gp-rise { from { transform: translateY(12px); opacity: 0; } }

/* home 1's rules card: gone at the first touch */
.g-price .gp-rules { position: absolute; inset: 0; z-index: 1; display: grid; align-content: center; justify-items: center; gap: 6px; padding: 38px 10px; line-height: 1.2; text-align: center; background: radial-gradient(90% 80% at 50% 45%, rgba(5, 8, 18, 0.86), rgba(5, 8, 18, 0.55)); transition: opacity 0.25s; }
.g-price .gp-rules b { font-size: 15.5px; font-weight: 900; letter-spacing: -0.01em; }
.g-price .gp-rules span { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--gp-muted); }
.g-price .gp-rules span svg { width: 18px; height: 18px; color: var(--gp-gold); }
.g-price .gp-rules em { font-style: normal; color: var(--gp-gold); }
.g-price .gp-rules span + span em { color: #ffb36b; }
.g-price .gp-rules.gp-gone { opacity: 0; }

/* the lifeline's answer */
.g-price .gp-hintchip { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); padding: 8px 15px; border-radius: 999px; border: 1.5px solid currentColor; background: rgba(5, 8, 18, 0.84); font-size: 15px; font-weight: 900; white-space: nowrap; box-shadow: 0 0 24px color-mix(in srgb, currentColor 35%, transparent); pointer-events: none; }
.g-price .gp-hintchip.gp-up { color: var(--gp-green); }
.g-price .gp-hintchip.gp-down { color: var(--gp-pink); }
.g-price .gp-hintchip.gp-on { color: var(--gp-gold); }
.g-price .gp-pop-in { animation: gp-popin 0.45s var(--gp-bounce); }
@keyframes gp-popin { from { transform: translate(-50%, -50%) scale(0.4); opacity: 0; } }

/* the verdict over the house */
/* a glass card over the house: the scene (and your Giggy's reaction) stays in view around it. It's a column: the
   card sits centred in the room the tip (if any) leaves at the bottom, so the two can never overlap. */
.g-price .gp-verdict { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding: 6px 12px 36px; background: rgba(5, 8, 18, 0.22); }
.g-price .gp-stage.gp-has-tip .gp-verdict { padding: 7px 8px; }
.g-price .gp-v-in { display: grid; justify-items: center; gap: 4px; flex: none; max-width: 86%; margin: auto 0; padding: 8px 18px 10px; border-radius: 18px; text-align: center; background: rgba(6, 10, 24, 0.88); border: 1px solid color-mix(in srgb, var(--vc) 50%, transparent); box-shadow: 0 0 34px color-mix(in srgb, var(--vc) 26%, transparent), 0 12px 30px rgba(0, 0, 0, 0.5); }
.g-price .gp-v-word { font-size: clamp(26px, 7.6vw, 38px); font-weight: 900; line-height: 1; letter-spacing: 0.01em; text-transform: uppercase; white-space: nowrap; color: var(--vc); text-shadow: 0 0 22px color-mix(in srgb, var(--vc) 70%, transparent), 0 2px 0 rgba(0, 0, 0, 0.4); }
/* ×3: the streak, stamped next to the word */
.g-price .gp-v-x { display: inline-block; margin-left: 0.22em; padding: 0.1em 0.32em; border-radius: 0.32em; font-size: 0.5em; font-style: normal; letter-spacing: 0; vertical-align: 0.4em; color: #2a1200; background: linear-gradient(180deg, #ffd36b, #ff7a2f); text-shadow: none; box-shadow: 0 0 14px rgba(255, 122, 47, 0.75); }
.g-price .gp-v-off { font-size: 13px; font-weight: 800; color: var(--gp-ink); }
.g-price .gp-v-pts { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 6px; }
.g-price .gp-v-pts b { font-size: 21px; font-weight: 900; color: var(--gp-ink); font-variant-numeric: tabular-nums; }
.g-price .gp-v-pts em { display: inline-flex; align-items: center; gap: 3px; padding: 3px 9px; border-radius: 999px; font-style: normal; font-size: 13px; font-weight: 900; white-space: nowrap; }
.g-price .gp-v-pts svg { width: 14px; height: 14px; }
.g-price .gp-v-bull { background: rgba(255, 201, 77, 0.18); color: var(--gp-gold); }
.g-price .gp-v-fl { background: rgba(255, 122, 47, 0.2); color: #ffb36b; }
/* a broken streak: what the next home would have paid, struck out */
.g-price .gp-v-lost { background: rgba(150, 160, 182, 0.16); color: #c9cfdb; }
.g-price .gp-v-lost svg { color: #8a93a8; }
.g-price .gp-v-lost s { margin-right: 3px; color: #ffb36b; text-decoration-color: var(--gp-pink); text-decoration-thickness: 2px; }
.g-price .gp-v-tip { flex: none; align-self: stretch; margin: 6px 0 0; padding: 6px 10px; border-radius: 12px; background: rgba(5, 8, 18, 0.86); border: 1px solid rgba(255, 255, 255, 0.12); font-size: 12px; font-weight: 700; line-height: 1.35; text-align: center; color: #d8e6ff; }
.g-price .gp-v-tip::before { content: '💡 '; }

/* the FINAL HOME banner sweeps across the house when the last home is dealt */
.g-price .gp-finalbar { position: absolute; left: -6%; right: -6%; top: 50%; z-index: 3; display: grid; place-items: center; height: 46px; margin-top: -30px; pointer-events: none; background: linear-gradient(90deg, rgba(255, 201, 77, 0) 0%, rgba(255, 201, 77, 0.94) 16%, #ffb347 50%, rgba(255, 201, 77, 0.94) 84%, rgba(255, 201, 77, 0) 100%); box-shadow: 0 0 34px rgba(255, 180, 60, 0.45); transform: skewX(-12deg); }
.g-price .gp-finalbar b { font-size: 25px; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; color: #2a1600; transform: skewX(12deg); }
.g-price .gp-finalbar.gp-go { animation: gp-bar 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.g-price .gp-finalbar.gp-go b { animation: gp-barword 1.5s ease both; }
@keyframes gp-bar { 0% { transform: translateX(-105%) skewX(-12deg); } 20%, 80% { transform: translateX(0) skewX(-12deg); opacity: 1; } 100% { transform: translateX(105%) skewX(-12deg); opacity: 0; } }
@keyframes gp-barword { 0%, 12% { transform: scale(0.3) skewX(12deg); opacity: 0; } 28% { transform: scale(1.18) skewX(12deg); opacity: 1; } 38%, 80% { transform: scale(1) skewX(12deg); opacity: 1; } 100% { transform: skewX(12deg); opacity: 0; } }
.g-price .gp-specs { transition: opacity 0.25s; }
.g-price[data-phase='result'] .gp-stage.gp-has-tip .gp-specs { opacity: 0; }
.g-price .gp-stamp { animation: gp-stamp 0.5s var(--gp-bounce) both; }
@keyframes gp-stamp { from { transform: scale(1.7); opacity: 0; } }
.g-price .gp-verdict.gp-stamp { animation: gp-fadein 0.3s ease both; }
.g-price .gp-verdict.gp-stamp .gp-v-word { animation: gp-stamp 0.5s var(--gp-bounce) both; }
.g-price .gp-verdict.gp-stamp .gp-v-pts { animation: gp-rise 0.45s 0.25s var(--gp-bounce) both; }
.g-price .gp-verdict.gp-stamp .gp-v-tip { animation: gp-fadein 0.4s 0.55s ease both; }
.g-price .gp-verdict.gp-stamp .gp-v-x { animation: gp-xin 0.5s 0.4s var(--gp-bounce) both; }
@keyframes gp-xin { from { transform: scale(2.4) rotate(-14deg); opacity: 0; } }
.g-price .gp-verdict.gp-stamp .gp-v-lost { animation: gp-fizz 0.8s 0.45s ease both; }
@keyframes gp-fizz { 0% { opacity: 0; transform: scale(1.3); } 25% { opacity: 1; transform: none; } 40% { transform: translateX(-3px); } 55% { transform: translateX(3px); } 70% { transform: translateX(-1px); } 100% { transform: none; } }
@keyframes gp-fadein { from { opacity: 0; } }

/* points flying into the score */
.g-price .gp-fly { position: absolute; z-index: 7; transform: translate(-50%, -50%); font-size: 30px; font-weight: 900; color: var(--vc, var(--gp-gold)); text-shadow: 0 0 18px color-mix(in srgb, var(--vc, #ffc94d) 70%, transparent), 0 2px 0 rgba(0, 0, 0, 0.5); pointer-events: none; white-space: nowrap; transition: transform 0.7s cubic-bezier(0.55, -0.35, 0.7, 1), opacity 0.7s ease-in; }

/* ───── the dial: your guess on a price tape ───── */
.g-price .gp-dial { padding: 10px 12px 12px; }
/* the same height for the guess and the result, so the tape and the button never move under a finger */
.g-price .gp-readout { min-height: 55px; }
.g-price .gp-rd-guess { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.g-price button.gp-step { flex: none; width: 48px; height: 46px; padding: 0; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.16); background: linear-gradient(180deg, #2c3860, #151d38); box-shadow: 0 4px 0 #060a17, inset 0 1px 0 rgba(255, 255, 255, 0.18); font-size: 26px; font-weight: 800; line-height: 1; cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; transition: transform 0.08s, box-shadow 0.08s, opacity 0.2s; }
.g-price .gp-step:active:not(:disabled), .g-price .gp-step.gp-press { transform: translateY(3px); box-shadow: 0 1px 0 #060a17, inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.g-price .gp-step:disabled { opacity: 0.3; cursor: default; }
.g-price .gp-big { display: grid; justify-items: center; line-height: 1; }
.g-price .gp-big small { font-size: 10.5px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gp-cyan); opacity: 0.85; }
.g-price .gp-big b { display: inline-block; margin-top: 4px; font-size: 40px; font-weight: 900; letter-spacing: -0.01em; color: #e9fdff; text-shadow: 0 0 18px rgba(34, 228, 242, 0.5); font-variant-numeric: tabular-nums; }
.g-price[data-phase='spin'] .gp-big b { opacity: 0.7; }
.g-price .gp-rd-result { display: none; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 8px; min-height: 50px; }
.g-price .gp-rd-gap { align-self: center; }
.g-price[data-phase='result'] .gp-rd-guess { display: none; }
.g-price[data-phase='result'] .gp-rd-result { display: grid; animation: gp-fadein 0.35s ease both; }
.g-price .gp-rd-you, .g-price .gp-rd-real { display: grid; line-height: 1.05; }
.g-price .gp-rd-real { justify-items: end; }
.g-price .gp-rd-you small, .g-price .gp-rd-real small { font-size: 10.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gp-faint); }
.g-price .gp-rd-you b, .g-price .gp-rd-real b { font-size: 27px; font-weight: 900; font-variant-numeric: tabular-nums; }
.g-price .gp-rd-you b { color: var(--gp-cyan); }
.g-price .gp-rd-real b { color: var(--gp-gold); text-shadow: 0 0 14px rgba(255, 201, 77, 0.45); }
/* the crew and the time on site, from the same estimate */
.g-price .gp-rd-crew { display: inline-flex; align-items: center; gap: 3px; margin-top: 3px; font-size: 11px; font-weight: 800; font-style: normal; line-height: 1; color: var(--gp-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.g-price .gp-rd-crew svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.g-price .gp-rd-crew span { margin: 0 2px; opacity: 0.55; }
.g-price .gp-rd-gap { padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 900; white-space: nowrap; color: var(--vc); border: 1px solid var(--vc); background: color-mix(in srgb, var(--vc) 14%, transparent); }
.g-price .gp-rd-gap em { font-style: normal; opacity: 0.75; }
.g-price .gp-tape { position: relative; height: 54px; margin-top: 8px; border-radius: 14px; overflow: hidden; background: linear-gradient(180deg, #0a1022, #141d3e); box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.08); cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.g-price .gp-tape.gp-grab { cursor: grabbing; }
/* "set your guess first": the tape glows a few times */
.g-price .gp-tape.gp-ask { animation: gp-ask 0.6s ease 3; }
@keyframes gp-ask { 50% { box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6), inset 0 0 0 2px var(--gp-cyan), 0 0 22px rgba(34, 228, 242, 0.6); } }
.g-price .gp-tape canvas { display: block; width: 100%; height: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.g-price[data-phase='spin'] .gp-tape, .g-price[data-phase='result'] .gp-tape { cursor: default; }
.g-price .gp-coach { position: absolute; left: 50%; top: 50%; margin-left: 14px; transform: translateY(-62%); display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(34, 228, 242, 0.16); border: 1px solid rgba(34, 228, 242, 0.55); color: #c9fbff; font-size: 11.5px; font-weight: 800; white-space: nowrap; pointer-events: none; animation: gp-coach 1.5s ease-in-out infinite; }
.g-price .gp-coach i { font-style: normal; }
.g-price .gp-coach i::before { content: '↔'; font-size: 14px; }
@keyframes gp-coach { 0%, 100% { transform: translate(-6px, -62%); } 50% { transform: translate(8px, -62%); } }
.g-price .gp-acts { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 8px; margin-top: 10px; }
.g-price .gp-acts .btn { min-height: 50px; }
.g-price .gp-life { gap: 7px; padding: 10px 13px; font-size: 13.5px; }
.g-price .gp-life svg { width: 17px; height: 17px; }
.g-price .gp-life em { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--gp-pink); color: #fff; font-size: 11.5px; font-style: normal; }
.g-price .gp-life.gp-used { opacity: 0.4; }
.g-price .gp-life.gp-used em { background: rgba(255, 255, 255, 0.2); }
.g-price .gp-acts .gp-life[hidden] + .gp-pull { grid-column: 1 / -1; }
.g-price .gp-pull { font-size: 16.5px; }
.g-price .gp-pull.gp-skip { background: rgba(255, 255, 255, 0.08); border-color: var(--gp-line); color: var(--gp-ink); box-shadow: none; }
.g-price .gp-pull:disabled { opacity: 0.6; cursor: default; transform: none; }

/* ───── the end of a run ───── */
.g-price .gp-end { padding: 4px 14px 16px; text-align: center; }
.g-price .gp-end:focus { outline: none; }
.g-price .gp-end-k { margin: 6px 0 0; font-size: 11px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gp-faint); }
.g-price .gp-rank { display: inline-block; margin: 8px 0 4px; padding: 7px 18px; border-radius: 14px; border: 2px solid var(--rc); color: var(--rc); background: color-mix(in srgb, var(--rc) 12%, transparent); box-shadow: 0 0 26px color-mix(in srgb, var(--rc) 30%, transparent), inset 0 0 18px color-mix(in srgb, var(--rc) 14%, transparent); transform: rotate(-3deg); }
.g-price .gp-rank b { font-size: clamp(24px, 7vw, 32px); font-weight: 900; letter-spacing: 0.02em; text-transform: uppercase; }
.g-price .gp-rank.gp-stamp { animation: gp-rankin 0.55s var(--gp-bounce) both; }
@keyframes gp-rankin { from { transform: rotate(-12deg) scale(1.8); opacity: 0; } to { transform: rotate(-3deg); } }
.g-price .gp-rank-0, .g-price .gp-rank-1 { --rc: var(--gp-gold); }
.g-price .gp-rank-2 { --rc: var(--gp-green); }
.g-price .gp-rank-3, .g-price .gp-rank-4 { --rc: var(--gp-cyan); }
.g-price .gp-rank-5 { --rc: var(--gp-orange); }
.g-price .gp-rank-6 { --rc: var(--gp-pink); }
.g-price .gp-end-line { margin: 6px 0 0; font-size: 14.5px; font-weight: 700; }
.g-price .gp-end-next { margin: 3px 0 0; font-size: 13px; color: var(--gp-muted); }
.g-price .gp-end-next b { color: var(--gp-ink); }
.g-price .gp-end-next em { font-style: normal; font-weight: 900; color: var(--gp-gold); }
.g-price .gp-rows { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; text-align: left; }
.g-price .gp-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: rgba(0, 0, 0, 0.26); border: 1px solid var(--gp-line); animation: gp-rowin 0.45s var(--gp-bounce) both; animation-delay: calc(var(--i) * 90ms + 300ms); }
@keyframes gp-rowin { from { transform: translateX(-18px); opacity: 0; } }
.g-price .gp-row-b { display: grid; place-items: center; width: 40px; height: 30px; border-radius: 10px; font-size: 12px; font-weight: 900; color: var(--vc); background: color-mix(in srgb, var(--vc) 16%, transparent); }
.g-price .gp-row-b svg { width: 19px; height: 19px; }
.g-price .gp-row-n { display: grid; min-width: 0; }
.g-price .gp-row-n b, .g-price .gp-row-n small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-price .gp-row-n b { font-size: 13.5px; }
.g-price .gp-row-n small { font-size: 11px; color: var(--gp-faint); }
.g-price .gp-row-g { display: grid; justify-items: end; line-height: 1.15; font-variant-numeric: tabular-nums; }
.g-price .gp-row-g small { font-size: 11px; font-weight: 700; color: var(--gp-cyan); }
.g-price .gp-row-g b { font-size: 15px; color: var(--gp-gold); }
.g-price .gp-row-p { display: grid; justify-items: end; min-width: 44px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.g-price .gp-row-p b { font-size: 15px; }
.g-price .gp-row-p small { display: inline-flex; align-items: center; gap: 1px; font-size: 11px; font-weight: 800; color: #ffb36b; }
.g-price .gp-row-p svg { width: 12px; height: 12px; }
.g-price .gp-end-sum { margin: 10px 0 0; font-size: 13px; color: var(--gp-muted); }
.g-price .gp-end-sum s { color: #ff8fb2; text-decoration-color: var(--gp-pink); text-decoration-thickness: 2px; font-weight: 800; }
.g-price .gp-end-sum b { color: var(--gp-gold); font-weight: 900; }
.g-price .gp-end-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 12.5px; color: var(--gp-muted); }
.g-price .gp-end-stats span { display: inline-flex; align-items: center; gap: 5px; }
.g-price .gp-end-stats svg { width: 15px; height: 15px; color: var(--gp-gold); }
.g-price .gp-end-stats b { color: var(--gp-ink); }
.g-price .gp-post { margin-top: 12px; }
.g-price .gp-post:empty { display: none; }
.g-price .gp-none { margin: 0; font-size: 13.5px; color: var(--gp-muted); }
.g-price .gp-end-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.g-price .gp-end-acts .btn:disabled { opacity: 0.6; cursor: progress; }
.g-price .gp-end-acts .btn { width: 100%; }
.g-price .gp-end-acts svg { width: 16px; height: 16px; }
.g-price .gp-cta { display: grid; gap: 9px; margin-top: 12px; padding: 12px; border-radius: 16px; background: linear-gradient(180deg, rgba(34, 228, 242, 0.1), rgba(34, 228, 242, 0.03)); border: 1px solid rgba(34, 228, 242, 0.3); }
.g-price .gp-cta p { margin: 0; font-size: 13px; color: var(--gp-muted); }
.g-price .gp-cta .btn { width: 100%; }

/* ───── price your own home: the builder ───── */
.g-price .gp-build { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px 0; }
.g-price .gp-ctl { padding: 9px 11px 10px; border-radius: 16px; background: rgba(0, 0, 0, 0.22); border: 1px solid var(--gp-line); min-width: 0; }
.g-price .gp-wide { grid-column: 1 / -1; }
.g-price .gp-ctl-l { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--gp-muted); margin-bottom: 7px; }
.g-price .gp-ctl-l svg { width: 17px; height: 17px; }
.g-price .gp-ctl-l b { margin-left: auto; color: var(--gp-ink); font-weight: 800; }
.g-price .gp-stepper { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.g-price .gp-stepper button { width: 42px; height: 42px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.16); background: linear-gradient(180deg, #2c3860, #151d38); box-shadow: 0 4px 0 #060a17, inset 0 1px 0 rgba(255, 255, 255, 0.18); font-size: 24px; font-weight: 800; line-height: 1; cursor: pointer; transition: transform 0.08s, box-shadow 0.08s, opacity 0.2s; }
.g-price .gp-stepper button:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 #060a17, inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.g-price .gp-stepper button:disabled { opacity: 0.32; cursor: default; }
.g-price .gp-stepper output { min-width: 1.4em; text-align: center; font-size: 28px; font-weight: 900; color: var(--gp-cyan); text-shadow: 0 0 14px rgba(34, 228, 242, 0.45); font-variant-numeric: tabular-nums; }
.g-price .gp-bump { animation: gp-bump 0.3s var(--gp-bounce); display: inline-block; }
@keyframes gp-bump { 40% { transform: scale(1.3); } }
.g-price .gp-range { --fill: 50%; --c: var(--gp-cyan); width: 100%; height: 30px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.g-price .gp-range::-webkit-slider-runnable-track { height: 12px; border-radius: 99px; background: linear-gradient(90deg, var(--c) 0 var(--fill), rgba(255, 255, 255, 0.1) var(--fill) 100%); box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5); }
.g-price .gp-range::-moz-range-track { height: 12px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); }
.g-price .gp-range::-moz-range-progress { height: 12px; border-radius: 99px; background: var(--c); }
.g-price .gp-range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -8px; border-radius: 50%; border: 3px solid #fff; background: var(--c); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5), 0 0 16px var(--c); }
.g-price .gp-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; border: 3px solid #fff; background: var(--c); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5), 0 0 16px var(--c); }
.g-price .gp-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.g-price .gp-types button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 4px; border-radius: 14px; border: 1px solid var(--gp-line); background: var(--gp-glass); color: var(--gp-muted); font-size: 12.5px; font-weight: 800; line-height: 1.2; text-align: center; cursor: pointer; transition: 0.2s; }
.g-price .gp-types button svg { width: 21px; height: 21px; }
.g-price .gp-types button:hover { background: rgba(255, 255, 255, 0.09); }
.g-price .gp-types button[aria-checked='true'] { color: var(--gp-cyan); border-color: var(--gp-cyan); background: rgba(34, 228, 242, 0.13); box-shadow: 0 0 18px rgba(34, 228, 242, 0.18); }
.g-price .gp-blurb { margin: 7px 2px 0; font-size: 12.5px; color: var(--gp-muted); line-height: 1.4; min-height: 2.8em; }

/* the builder's result */
.g-price .gp-fres { padding: 0 12px 14px; animation: gp-rise 0.45s ease both; }
.g-price .gp-compare { display: grid; grid-template-columns: 1fr 1.25fr; gap: 8px; }
.g-price .gp-cmp { display: grid; gap: 2px; padding: 12px; border-radius: 16px; border: 1px solid var(--gp-line); background: rgba(0, 0, 0, 0.22); text-align: center; }
.g-price .gp-cmp small { font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gp-faint); }
.g-price .gp-cmp s { font-size: 26px; font-weight: 800; color: #ff8fb2; text-decoration-color: var(--gp-pink); text-decoration-thickness: 3px; }
.g-price .gp-cmp b { font-size: 34px; font-weight: 900; color: var(--gp-gold); text-shadow: 0 0 18px rgba(255, 201, 77, 0.5); line-height: 1.1; }
.g-price .gp-cmp-gg { border-color: rgba(255, 201, 77, 0.55); background: linear-gradient(180deg, rgba(255, 201, 77, 0.14), rgba(255, 201, 77, 0.04)); }
.g-price .gp-save { margin: 10px 0 0; text-align: center; font-size: 15px; color: var(--gp-muted); }
.g-price .gp-save b { color: var(--gp-green); }
.g-price .gp-guess { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px; border-radius: 16px; border: 1px solid var(--gp-line); background: rgba(0, 0, 0, 0.22); }
.g-price .gp-guess > div { display: grid; gap: 2px; min-width: 0; }
.g-price .gp-guess b { font-size: 14.5px; }
.g-price .gp-guess small { font-size: 12.5px; color: var(--gp-muted); }
.g-price .gp-rate { flex: none; padding: 7px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; color: var(--vc); border: 1px solid var(--vc); background: color-mix(in srgb, var(--vc) 14%, transparent); box-shadow: 0 0 14px color-mix(in srgb, var(--vc) 30%, transparent); }
.g-price .gp-guess.gp-t-bull .gp-rate { animation: gp-bump 0.6s var(--gp-bounce) 0.2s; }
.g-price .gp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.g-price .gp-stat { display: grid; justify-items: center; gap: 3px; padding: 10px 6px; border-radius: 16px; border: 1px solid var(--gp-line); background: var(--gp-glass); text-align: center; }
.g-price .gp-stat svg { width: 17px; height: 17px; color: var(--gp-cyan); }
.g-price .gp-stat small { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gp-faint); }
.g-price .gp-stat b { font-size: 13.5px; line-height: 1.25; }
.g-price .gp-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 12px; }
.g-price .gp-actions svg { width: 16px; height: 16px; }

/* ───── under the machine ───── */
.g-price .gp-under { display: grid; justify-items: center; gap: 10px; margin-top: 14px; }
.g-price button.gp-own { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--gp-line); background: var(--gp-glass); font-size: 14px; font-weight: 800; cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.g-price .gp-own svg { width: 17px; height: 17px; color: var(--gp-cyan); }
.g-price .gp-own:hover { background: rgba(255, 255, 255, 0.09); }
.g-price .gp-own.gp-arm { border-color: var(--gp-pink); color: #ffb3c9; }
.g-price .gp-fine { max-width: 62ch; margin: 0 6px; font-size: 11px; line-height: 1.45; color: var(--gp-faint); text-align: center; }

/* prices not here yet */
.g-price .gp-missing { display: grid; justify-items: center; gap: 10px; padding: 34px 20px; border-radius: 22px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--gp-line); text-align: center; }
.g-price .gp-missing p { margin: 0; }
.g-price .gp-missing-ico { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 201, 77, 0.14); color: var(--gp-gold); }
.g-price .gp-missing-ico svg { width: 24px; height: 24px; }

/* small phones */
@media (max-width: 400px) {
  .g-price .gp-deck { padding: 9px 8px 8px 10px; gap: 6px; }
  .g-price .gp-leverbox, .g-price .gp-lever { width: 40px; }
  .g-price .gp-hud { padding: 9px 10px 0; gap: 6px; }
  .g-price .gp-pips { gap: 4px; }
  .g-price .gp-pips li { width: 24px; height: 24px; border-radius: 8px; }
  .g-price .gp-pips svg { width: 13px; height: 13px; }
  .g-price .gp-score { min-width: 56px; }
  .g-price .gp-score b { font-size: 22px; }
  .g-price .gp-fls i { width: 17px; height: 20px; }
  .g-price .gp-stage { --gp-sm: 8px; border-radius: 16px; }
  .g-price .gp-name { font-size: 11.5px; }
  .g-price .gp-type { font-size: 11px; padding: 4px 8px; }
  .g-price .gp-specs span { font-size: 11px; padding: 3px 7px; }
  .g-price .gp-dial { padding: 9px 8px 10px; }
  .g-price .gp-big b { font-size: 36px; }
  .g-price .gp-readout { min-height: 51px; }
  .g-price .gp-rd-you b, .g-price .gp-rd-real b { font-size: 24px; }
  .g-price .gp-step { width: 44px; height: 44px; }
  .g-price .gp-life { padding: 8px 11px; font-size: 12.5px; }
  .g-price .gp-life span { max-width: 70px; white-space: normal; line-height: 1.12; text-align: left; }
  .g-price .gp-pull { font-size: 15.5px; padding-left: 12px; padding-right: 12px; }
  .g-price .gp-build { padding: 8px 8px 0; gap: 6px; }
  .g-price .gp-fres { padding: 0 8px 12px; }
  .g-price .gp-stepper button { width: 38px; height: 38px; }
  .g-price .gp-stepper output { font-size: 24px; }
  .g-price .gp-bulbs i { width: 7px; height: 7px; }
  .g-price .gp-cmp b { font-size: 28px; }
  .g-price .gp-cmp s { font-size: 22px; }
  .g-price .gp-end { padding: 2px 10px 14px; }
  .g-price .gp-row { gap: 8px; padding: 7px 8px; grid-template-columns: 36px minmax(0, 1fr) auto auto; }
  .g-price .gp-row-b { width: 36px; }
  /* a short stage with a tip: a tighter card, so card and tip both fit on the house */
  .g-price .gp-v-tip { font-size: 11.5px; line-height: 1.3; padding: 5px 9px; }
  .g-price .gp-has-tip .gp-v-in { gap: 2px; padding: 6px 14px 7px; }
  .g-price .gp-has-tip .gp-v-word { font-size: clamp(21px, 6.3vw, 26px); }
  .g-price .gp-has-tip .gp-v-pts b { font-size: 18px; }
  .g-price .gp-has-tip .gp-v-pts em { padding: 2px 8px; font-size: 12px; }
  .g-price .gp-finalbar b { font-size: 21px; }
  .g-price button.gp-snd { right: 7px; width: 30px; height: 30px; margin-top: -15px; }
  .g-price button.gp-sndhint { bottom: calc(100% + 8px); }
  /* a 360 px phone's stage is ~138 px tall: the rules fit between the name chip and the spec chips, not under them */
  .g-price .gp-rules { gap: 4px; padding: 36px 10px 30px; }
  .g-price .gp-rules b { font-size: 15px; }
  .g-price .gp-rules span { font-size: 12.5px; }
  .g-price .gp-rules span svg { width: 16px; height: 16px; }
}
@media (max-width: 440px) {
  .g-price .gp-row-x { display: none; }
}
@media (max-width: 350px) {
  .g-price .gp-life span { display: none; }
}

/* short screens (iPhone SE-class phones, 768 px laptops): the whole machine fits under the nav bar */
@media (max-height: 780px) {
  .g-price .gp-sign { padding: 6px 14px 5px; }
  .g-price .gp-sign-sub { display: none; }
  .g-price .gp-bulbs + .gp-sign-text { margin-top: 3px; }
  .g-price .gp-sign-text + .gp-bulbs { margin-top: 4px; }
  .g-price .gp-sign-text { font-size: 21px; }
  .g-price .gp-hud { padding-top: 7px; min-height: 40px; }
  .g-price .gp-deck { padding-top: 7px; padding-bottom: 7px; }
  .g-price .gp-window { padding: 6px 10px 4px; }
  .g-price .gp-reels { font-size: 38px; margin: 3px auto 1px; }
  .g-price .gp-lever { min-height: 96px; }
  .g-price .gp-stage { --gp-maxh: 222px; }
  .g-price .gp-dial { padding-top: 7px; padding-bottom: 9px; }
  .g-price .gp-readout, .g-price .gp-rd-result { min-height: 46px; }
  .g-price .gp-big b { font-size: 32px; margin-top: 2px; }
  .g-price button.gp-step { width: 44px; height: 42px; }
  .g-price .gp-rd-you b, .g-price .gp-rd-real b { font-size: 21px; }
  .g-price .gp-rd-crew { margin-top: 2px; font-size: 10px; }
  .g-price .gp-rd-crew svg { width: 11px; height: 11px; }
  .g-price .gp-tape { height: 48px; margin-top: 6px; }
  .g-price .gp-acts { margin-top: 8px; }
  .g-price .gp-acts .btn { min-height: 46px; padding-top: 10px; padding-bottom: 10px; }
}
@media (max-height: 780px) and (max-width: 520px) {
  .g-price .gp-stage { --gp-ar: 2.25; }
}

/* idle for a few seconds (or off screen): the scene's ambient loops pause, so a phone isn't painting stars and
   bubbles while the player thinks. The lever's glow keeps breathing (it's cheap: opacity on its own layer). */
.g-price.gp-calm .gp-stars circle, .g-price.gp-calm .gp-twinkle, .g-price.gp-calm .gp-bubble, .g-price.gp-calm .gp-attic,
.g-price.gp-calm .gp-q, .g-price.gp-calm .gp-bulbs i::after, .g-price.gp-calm .gp-fls i, .g-price.gp-calm .gp-pips li::after,
.g-price.gp-calm .gp-coach, .g-price.gp-calm .gp-rays, .g-price.gp-calm .gp-me { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .g-price *, .g-price *::before, .g-price *::after { animation: none !important; transition: none !important; }
  .g-price .gp-house.gp-out { transform: none; opacity: 1; }
  .g-price .gp-coach { transform: translateY(-62%); }
}
