/* Going, Going, Gone!: a grand old auction house. Green baize, mahogany, gold leaf. */
:root {
  --bg: #0c2219; --bg2: #123326; --card: rgba(20, 52, 38, 0.92); --card2: #1d4a37; --line: #3c7a5c;
  --text: #fbf3df; --muted: #b9cdb9; --accent: #f5b642; --yellow: #f5b642; --red: #ff6b5b; --green: #7be0a0;
  --grad: linear-gradient(135deg, #ffe08a, #f5b642 50%, #c9821f);
  --font-head: 'Abril Fatface', Georgia, serif; --font-body: 'Lato', Inter, system-ui, sans-serif; --head-weight: 400;
  --radius: 16px;
}
body { background: radial-gradient(1100px 700px at 50% 0%, #1f5a40, transparent 70%), repeating-linear-gradient(45deg, #0c2219 0 6px, #0e261c 6px 12px) fixed; }
.btn { color: #3a2208; font-weight: 900; box-shadow: 0 5px 0 #8a5412, 0 10px 26px rgba(245, 182, 66, 0.3); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #8a5412; }
.btn.ghost { box-shadow: 0 4px 0 #071510; }
.card { border: 2px solid #b58a3a66; box-shadow: inset 0 0 0 4px #0c2219, inset 0 0 0 5px #b58a3a44; }
.hero { color: #f5b642; text-shadow: 0 2px 0 #7a4a0e, 0 0 30px rgba(245, 182, 66, 0.45); }
.big-code { background: none; color: #f5b642; -webkit-text-fill-color: #f5b642; }
.pop { animation: hammer 0.55s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes hammer { 0% { transform: translateY(-60px) scale(1.2); opacity: 0; } 60% { transform: translateY(6px) scale(0.98); opacity: 1; } 100% { transform: none; } }

.gg-tv { display: flex; flex-direction: column; gap: 1em; flex: 1; }
.gg-stage { position: relative; display: flex; justify-content: center; margin-top: 0.5em; }
.gg-lot { position: relative; text-align: center; background: linear-gradient(180deg, #5a2f14, #3b1d0b); border: 4px solid #d9a441; border-radius: 22px; padding: 0.8em 2.5em 1em; box-shadow: 0 0 0 8px #3b1d0b, 0 0 0 10px #d9a44155, 0 30px 60px rgba(0, 0, 0, 0.5); animation: hammer 0.7s both; min-width: 50%; }
.gg-lot.crate { background: repeating-linear-gradient(90deg, #6b4a26 0 40px, #5c3e1e 40px 44px); }
.gg-lot.finale { border-color: #ffe08a; box-shadow: 0 0 0 8px #3b1d0b, 0 0 60px #f5b64288; }
.gg-tag { position: absolute; top: -0.9em; left: 50%; transform: translateX(-50%); background: #f5b642; color: #3a2208; padding: 0.15em 0.8em; border-radius: 999px; font-weight: 900; white-space: nowrap; }
.gg-emoji { font-size: 6em; line-height: 1.1; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.5)); animation: turn 6s ease-in-out infinite; }
.gg-name { font-family: var(--font-head); font-size: 2.2em; color: #fbf3df; }
.gg-val { font-family: var(--font-head); font-size: 2.6em; color: #f5b642; }
.gg-val span { font-size: 0.7em; color: #e7c98a; }
.gg-carry { margin-top: 0.3em; color: #ffe08a; font-weight: 700; }
.gg-lot.small { font-size: 0.42rem; padding: 10px 14px 12px; min-width: 0; box-shadow: 0 0 0 4px #3b1d0b, 0 10px 20px rgba(0, 0, 0, 0.4); }
.gg-lot.small .gg-carry { font-size: 2em; } .gg-lot.small .gg-tag { font-size: 2em; }
.gg-tv .gg-lot.small { font-size: 0.7rem; }
@keyframes turn { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg) translateY(-6px); } }
.gg-gavel { position: absolute; right: 8%; top: -10px; font-size: 6em; transform-origin: 80% 80%; animation: knock 2.4s ease-in-out infinite; }
@keyframes knock { 0%, 70%, 100% { transform: rotate(0); } 80% { transform: rotate(-35deg); } 88% { transform: rotate(8deg); } }
.gg-reveal { display: grid; grid-template-columns: 1fr 1.3fr; gap: 1.5em; align-items: center; }
.gg-bids { display: flex; flex-direction: column; gap: 0.4em; font-size: 1.5em; }
.gg-bid { display: flex; align-items: center; justify-content: space-between; gap: 0.6em; background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: 0.3em 0.8em; opacity: 0; animation: rise 0.4s both; position: relative; }
.gg-bid span { display: flex; align-items: center; gap: 0.4em; font-weight: 700; }
.gg-bid b { font-family: var(--font-head); font-size: 1.2em; }
.gg-bid.tied { text-decoration: line-through; opacity: 0.6; }
.gg-bid.tied i { position: absolute; right: 4.5em; color: var(--red); font-style: normal; font-weight: 900; transform: rotate(-8deg); border: 3px solid var(--red); padding: 0 0.3em; border-radius: 6px; }
.gg-bid.win { border-color: #f5b642; box-shadow: 0 0 24px #f5b64288; background: #2f5a2a; }
.gg-sold { align-self: center; font-family: var(--font-head); font-size: 3.4em; color: #3a2208; background: var(--grad); padding: 0.05em 0.7em; border-radius: 12px; opacity: 0; animation: stampg 0.5s cubic-bezier(.2, 1.8, .4, 1) forwards; box-shadow: 0 8px 0 #7a4a0e; }
.gg-sold.unsold { background: #5b1f1a; color: #ffd1c9; box-shadow: 0 8px 0 #2d0e0b; }
@keyframes stampg { from { opacity: 0; transform: scale(2.6) rotate(-10deg); } to { opacity: 1; transform: scale(1) rotate(-3deg); } }
.gg-after { opacity: 0; animation: fadeg 0.4s forwards; }
@keyframes fadeg { to { opacity: 1; } }
.gg-amt { font-family: var(--font-head); font-size: 3.4rem; text-align: center; color: #f5b642; }
.gg-range { width: 100%; accent-color: #f5b642; height: 36px; }
.gg-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gg-steps .option { text-align: center; font-size: 1.2rem; }
.gg-final { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5em; align-items: start; }
.gg-hauls { display: flex; flex-direction: column; gap: 0.5em; }
.gg-haul { background: var(--card); border-radius: 14px; padding: 0.5em 0.8em; display: grid; grid-template-columns: auto 1fr; gap: 0.2em 1em; font-size: 1.15em; }
.gg-haul b { display: flex; align-items: center; gap: 0.4em; } .gg-haul .muted { text-align: right; }
.gg-haul div { grid-column: 1 / -1; font-size: 1.5em; }
@media (max-width: 900px) { .gg-reveal, .gg-final { grid-template-columns: 1fr; } }

/* Background: velvet drapes and slowly falling gold coins. */
.scene .drape { position: absolute; top: 0; bottom: 0; width: 9vw; background: repeating-linear-gradient(90deg, #5c1020 0 18px, #7a1a2c 18px 30px, #4a0c18 30px 40px); box-shadow: 0 0 40px #000a; animation: sway 8s ease-in-out infinite; transform-origin: top; }
.scene .drape.l { left: 0; border-bottom-right-radius: 60% 20%; } .scene .drape.r { right: 0; border-bottom-left-radius: 60% 20%; animation-delay: -4s; }
@keyframes sway { 50% { transform: skewX(1.5deg); } }
.scene .coin { position: absolute; top: -50px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe9a8, #f5b642 45%, #a8701a); opacity: 0.32; animation: coinfall linear infinite; }
@keyframes coinfall { to { transform: translateY(115vh) rotateY(720deg); } }
.scene.small .coin { opacity: 0.2; } .scene.small .drape { width: 5vw; }
@media (prefers-reduced-motion: reduce) { .scene * { animation: none !important; } }
.gg-lot.small { animation: none; } .gg-lot.small .gg-emoji { animation: none; }
