/* /auction — the stage (public/js/auction.js) */
.stage {
  position: relative; overflow: hidden; isolation: isolate; margin: 8px 0 22px; padding: 34px 16px 30px; border-radius: 12px; text-align: center; color: #fff;
  background: radial-gradient(ellipse at 50% 0%, #b3214d 0%, #7c1233 45%, #4a0a1f 100%);
  box-shadow: inset 0 0 0 4px #d9a63a, inset 0 0 0 7px #6b0e2a, 0 12px 28px rgba(0, 0, 0, .25);
}
/* a spotlight */
.stage::before { content: ''; position: absolute; inset: -20% 25% 30%; z-index: -1; background: radial-gradient(ellipse at 50% 0%, rgba(255, 236, 170, .32), transparent 70%); pointer-events: none; }
/* the curtains: velvet pleats that slide open when the page loads */
.curtain {
  position: absolute; top: 0; bottom: 0; width: 50%; z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(90deg, #6d0c26 0 14px, #a01a40 22px, #6d0c26 34px);
  box-shadow: 0 0 24px rgba(0, 0, 0, .5);
  transition: transform 1.4s cubic-bezier(.6, 0, .2, 1);
}
.curtain.c1 { right: 0; transform-origin: 100% 50%; }
.curtain.c2 { left: 0; transform-origin: 0 50%; }
/* gathered at the sides once the page is ready */
.stage.open .curtain { transform: scaleX(.12); }
@media (max-width: 600px) { .stage.open .curtain { transform: scaleX(.07); } }
.stin { position: relative; z-index: 1; display: grid; justify-items: center; gap: 10px; }
/* the marquee bulbs, along the top */
.bulbs { position: absolute; top: 12px; left: 6%; right: 6%; display: flex; justify-content: space-between; z-index: 1; pointer-events: none; }
.bulbs i { width: 10px; height: 10px; border-radius: 50%; background: #ffe39a; box-shadow: 0 0 8px 2px rgba(255, 210, 90, .8); animation: aBulb 1.2s calc(var(--i) * -.15s) steps(2) infinite; }
@keyframes aBulb { 50% { background: #8a5a12; box-shadow: none; } }
.sttitle { margin: 6px 0 0; font: 400 clamp(26px, 5vw, 46px)/1.1 'Secular One', Rubik, sans-serif; color: #ffe39a; text-shadow: 0 2px 0 #6b0e2a, 0 0 18px rgba(255, 200, 80, .55); }
.stpill { margin: 0; padding: 6px 16px; border-radius: 4px; font-weight: 700; background: rgba(0, 0, 0, .3); border: 1px solid rgba(255, 227, 154, .5); }
.stage.live .stpill { background: #f2c14e; color: #3a1d00; border-color: #f2c14e; }
.stwhen { margin: 0; font-size: 15px; color: #ffeef3; }
/* the gavel: swings down and hits the block */
.gavel { position: relative; width: 120px; height: 70px; }
.gavel .ghead { position: absolute; top: 0; left: 28px; font-size: 48px; line-height: 1; transform-origin: 80% 85%; transform: scaleX(-1) rotate(-10deg); animation: aGavel 4s ease-in infinite; }
.gavel .block { position: absolute; bottom: 4px; left: 18px; width: 84px; height: 14px; border-radius: 4px; background: linear-gradient(#a8742f, #6e4517); box-shadow: 0 4px 0 #4a2c0c; }
.gavel .tok { position: absolute; top: 4px; right: -22px; font: 800 18px Rubik, sans-serif; color: #ffe39a; opacity: 0; animation: aTok 4s ease-out infinite; }
@keyframes aGavel { 0%, 70%, 100% { transform: scaleX(-1) rotate(-10deg); } 80% { transform: scaleX(-1) rotate(-48deg); } 86% { transform: scaleX(-1) rotate(14deg); } 92% { transform: scaleX(-1) rotate(-4deg); } }
@keyframes aTok { 0%, 85% { opacity: 0; transform: scale(.6); } 88% { opacity: 1; transform: scale(1.15); } 100% { opacity: 0; transform: scale(1) translateY(-8px); } }
/* the big countdown */
.clock { display: flex; gap: 10px; direction: rtl; }
.cbox { display: grid; justify-items: center; min-width: 74px; padding: 8px 6px 6px; border-radius: 8px; background: linear-gradient(#2b0612, #170309); border: 2px solid #d9a63a; box-shadow: inset 0 -16px 0 rgba(255, 255, 255, .04); }
.cbox b { font: 800 clamp(28px, 6vw, 44px)/1 Rubik, sans-serif; font-variant-numeric: tabular-nums; color: #fff; }
.cbox span { font-size: 12px; color: #ffe39a; margin-top: 4px; }
.stage.hour .cbox { border-color: #ff5a6e; }
.stage.hour .cbox b { color: #ffd0d6; }

.lhead { margin: 6px 0 12px; }
.rules { margin: 24px 0; padding: 14px 18px; }
.rules ol { margin: 6px 0 0; padding-inline-start: 20px; display: grid; gap: 4px; }
.lots { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; margin-bottom: 18px; }
.lot { position: relative; display: grid; gap: 6px; padding: 0 0 12px; overflow: hidden; color: inherit; text-decoration: none; border: 2px solid #d9a63a; transition: transform .2s, box-shadow .2s; }
.lot:hover, .lot:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0, 0, 0, .18); }
.lot img, .lot .noimg { width: 100%; aspect-ratio: 1; object-fit: cover; display: grid; place-items: center; background: var(--bg); font-size: 40px; }
.lot .lotno { position: absolute; top: 8px; right: 8px; z-index: 1; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 700; background: #7c1233; color: #fff; }
.lot .in { padding: 0 12px; display: grid; gap: 2px; }
.lot .t { font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lot .cur { font-size: 22px; font-weight: 800; color: var(--link); }
.lot .bidbtn { justify-self: start; margin-top: 4px; padding: 6px 12px; border-radius: 4px; font-weight: 700; background: var(--primary); color: #fff; }
.lot.soon { border-style: dashed; }
/* a price that went up since the last look */
.lot.up .cur { animation: aUp 1.2s ease-out; }
@keyframes aUp { 0% { transform: scale(1); } 30% { transform: scale(1.35); color: #d4102f; } 100% { transform: scale(1); } }
@media (max-width: 600px) {
  .stage { padding: 28px 8px 22px; }
  .clock { gap: 6px; }
  .cbox { min-width: 60px; padding: 6px 4px 4px; }
  .lots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lot .cur { font-size: 18px; }
}
@media (max-width: 360px) { .cbox { min-width: 52px; } }
/* still: nothing moves (the curtains are simply open) */
.a11y-still .bulbs i, .a11y-still .gavel *, .a11y-still .lot.up .cur { animation: none !important; }
.a11y-still .curtain, .a11y-still .lot { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .bulbs i, .gavel *, .lot.up .cur { animation: none !important; }
  .curtain, .lot { transition: none !important; }
}
.a11y-still .gavel .tok { opacity: 0; }
.stgo { margin-top: 10px; position: relative; z-index: 2; }
