:root {
  --ink: #0c120e;
  --gold: #e4c47a;
  --cream: #f6f1e6;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Outfit", sans-serif;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.showroom {
  height: 100%;
  display: grid;
  grid-template-rows: 92px 1fr 88px 78px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.2rem;
  background: linear-gradient(#101810, #0c120e);
}
.brand { display: flex; align-items: center; gap: 1rem; }
.brand img { height: 64px; }
.brand strong {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
  font-weight: 600;
  display: block;
  line-height: 1;
}
.brand span {
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: .85rem;
}
.clock { text-align: right; }
.clock .h {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  line-height: .9;
}
.clock .d {
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(246,241,230,.65);
  font-size: .9rem;
}

.stage {
  position: relative;
  overflow: hidden;
  background: #111;
  contain: layout paint;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  transition: opacity .55s ease;
  pointer-events: none;
}
.slide.on { opacity: 1; z-index: 1; pointer-events: auto; }
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateZ(0);
}
.slide.on img {
  animation: ken 28s linear infinite alternate;
  will-change: transform;
}
.slide.poster {
  background: #071627;
}
.slide.poster img {
  object-fit: contain;
  animation: none !important;
  will-change: auto;
}
.slide.poster .veil,
.slide.poster .txt { display: none; }
@keyframes ken {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}
.slide .veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,18,14,.15) 20%, rgba(12,18,14,.82) 100%);
}
.slide .txt {
  position: absolute;
  left: 6vw;
  right: 18vw;
  bottom: 7.5rem;
  z-index: 2;
}
.slide.has-qr .txt { right: 30vw; }
.qr-box {
  position: absolute;
  right: 3vw;
  bottom: 6.2rem;
  z-index: 3;
  width: min(24vw, 340px);
  background: #fff;
  color: #141c16;
  border-radius: 18px;
  padding: .85rem .85rem 1rem;
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
  text-align: center;
}
.qr-box img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
.qr-box span {
  display: block;
  margin-top: .55rem;
  font-size: clamp(1rem, 1.45vw, 1.4rem);
  font-weight: 600;
  line-height: 1.25;
}
.kicker {
  color: var(--gold);
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  margin: 0 0 .5rem;
}
.slide h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.2rem, 6.2vw, 7rem);
  line-height: .95;
  margin: 0 0 .6rem;
  text-shadow: 0 8px 40px rgba(0,0,0,.45);
}
.slide.on h2, .slide.on p { animation: rise .45s ease both; }
.slide.on p { animation-delay: .08s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.slide p {
  font-size: clamp(1.35rem, 2.1vw, 2rem);
  line-height: 1.4;
  margin: 0;
  max-width: 36ch;
  color: rgba(246,241,230,.94);
}

.navbtn {
  position: absolute;
  top: 50%;
  z-index: 8;
  width: 92px;
  height: 92px;
  margin-top: -46px;
  border: 0;
  border-radius: 50%;
  background: rgba(12,18,14,.38);
  color: var(--gold);
  font-size: 3rem;
  line-height: 1;
  display: grid;
  place-items: center;
}
.navbtn.l { left: 1.2rem; }
.navbtn.r { right: 1.2rem; }
.navbtn:active { transform: scale(.92); background: rgba(228,196,122,.28); }

.progress {
  display: none;
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 6px;
  background: rgba(255,255,255,.12);
  z-index: 8;
}
.progress > i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold);
}

.thumbs {
  display: flex;
  gap: .55rem;
  padding: .55rem 1.2rem;
  background: #101610;
  overflow: hidden;
}
.thumbs button {
  flex: 1;
  min-width: 0;
  height: 76px;
  border: 3px solid transparent;
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  background: #222;
}
.thumbs button.on { border-color: var(--gold); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.ripple {
  position: absolute;
  width: 40px; height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  border: 3px solid rgba(228,196,122,.95);
  background: rgba(228,196,122,.16);
  animation: ripple .5s ease-out forwards;
  pointer-events: none;
  z-index: 7;
}
@keyframes ripple { to { transform: scale(8); opacity: 0; } }
.hint {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  padding: .6rem 1.3rem;
  border-radius: 999px;
  background: rgba(12,18,14,.55);
  color: var(--gold);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 1rem;
  pointer-events: none;
}
.hint.hide { opacity: 0; transition: opacity .5s; }

.ticker {
  display: flex;
  align-items: center;
  background: #d4ae5d;
  color: #141c16;
  overflow: hidden;
}
.ticker-track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  width: max-content;
  font-size: clamp(1.3rem, 2.2vw, 1.85rem);
  font-weight: 500;
  animation: tick 70s linear infinite;
  will-change: transform;
  padding-left: 2rem;
}
.ticker-track span::before {
  content: "●";
  margin-right: 3rem;
  color: #173023;
}
@keyframes tick {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ball-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity .35s;
}
.ball-layer.on { opacity: 1; }
.float-ball {
  position: absolute;
  left: 0;
  top: 0;
  font-size: clamp(1.6rem, 2.4vw, 2.6rem);
  line-height: 1;
  animation: rugby-float linear infinite;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.35));
}
@keyframes rugby-float {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  100% { transform: translate3d(var(--dx), var(--dy), 0) rotate(360deg); }
}
.boom {
  position: absolute;
  z-index: 9;
  pointer-events: none;
  line-height: 1;
  margin: 0;
  animation: rugby-boom .7s ease-out forwards;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,.3));
}
@keyframes rugby-boom {
  0% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(.25) rotate(280deg); opacity: 0; }
}
.paused .slide.on img,
.paused .ticker-track,
.paused .float-ball { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .slide.on img, .ticker-track, .ripple, .float-ball { animation: none; }
}
