/* Landing page components. */
/* Tape strips with torn edges */
.tape {
  position: absolute; width: 112px; height: 30px; z-index: 5;
  background: rgba(214, 95, 125, .62);
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
  clip-path: polygon(0 8%, 4% 0, 8% 10%, 12% 0, 16% 8%, 20% 0, 80% 0, 84% 10%, 88% 0, 92% 8%, 96% 0, 100% 10%, 100% 92%, 96% 100%, 92% 90%, 88% 100%, 84% 92%, 80% 100%, 20% 100%, 16% 90%, 12% 100%, 8% 92%, 4% 100%, 0 90%);
}
.tape::after { content: ''; position: absolute; inset: 0; background-image: var(--noise); opacity: .35; mix-blend-mode: overlay; }
.tape-brown { background: rgba(184, 140, 82, .78); }
.tape-cyan { background: rgba(0, 240, 255, .45); }

/* Polaroids */
.polaroid { background: #f6f1e7; padding: 10px 10px 44px; box-shadow: 0 14px 30px rgba(0,0,0,.55); position: relative; }
.polaroid img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; filter: saturate(1.25) contrast(1.05) sepia(.15) hue-rotate(-8deg); background: linear-gradient(135deg, #3a1450, #0d0b18 60%, #00505a); }
.polaroid figcaption { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-family: 'Caveat', cursive; font-size: 1.45rem; color: #2a2236; }

/* CRT monitor */
.crt-case {
  background: linear-gradient(160deg, #d8d0bd, #b5ab95);
  border-radius: 18px; padding: 18px 18px 30px;
  box-shadow: inset 0 -6px 0 rgba(0,0,0,.18), 0 20px 40px rgba(0,0,0,.6);
}
.crt-screen {
  position: relative; overflow: hidden; border-radius: 14px / 18px;
  background: radial-gradient(ellipse at center, #062012 0%, #020a05 75%);
  color: var(--phosphor); font-family: 'VT323', monospace;
  text-shadow: 0 0 5px rgba(0,255,102,.85), 0 0 12px rgba(0,255,102,.35);
  box-shadow: inset 0 0 40px rgba(0,0,0,.9), inset 0 0 0 3px #0a0a0a;
  animation: flicker 4s infinite steps(1);
}
.crt-screen::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,.35) 0 2px, transparent 2px 4px);
}
.crt-screen::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.07), transparent 40%);
}
@keyframes flicker { 0%, 100% { opacity: 1; } 47% { opacity: .94; } 48% { opacity: 1; } 82% { opacity: .97; } }
.cursor { display: inline-block; width: .6em; height: 1em; background: var(--phosphor); vertical-align: -0.12em; animation: blink 1s steps(1) infinite; box-shadow: 0 0 8px var(--phosphor); }
@keyframes blink { 50% { opacity: 0; } }

.badge-87 { transform: rotate(8deg); filter: drop-shadow(0 8px 14px rgba(0,0,0,.6)); }

/* Arcade cabinet cards */
.cabinet { background: linear-gradient(180deg, #221a3f, #120e22); border-radius: 14px 14px 6px 6px; }
.marquee { background: linear-gradient(90deg, #d65f7d, #7a2cff, #00f0ff); }
.cab-screen { background: radial-gradient(ellipse at center, #1b1240, #05030c 80%); position: relative; overflow: hidden; }
.cab-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.2) contrast(1.08) brightness(.9); }
.cab-hud { position: absolute; left: 10px; bottom: 6px; z-index: 2; }
.cab-screen::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, rgba(0,0,0,.4) 0 2px, transparent 2px 4px); pointer-events: none; }

/* VHS tape shelves (menu) */
.vhs-shelf { padding: 14px 12px 0; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, #17121f, #0a0810); box-shadow: inset 0 0 30px rgba(0,0,0,.9), inset 0 0 0 1px rgba(255,255,255,.05); }
.vhs-stack { display: flex; flex-direction: column; gap: 4px; }
.vhs {
  position: relative; display: flex; align-items: center; gap: 10px;
  min-height: 66px; padding: 7px 12px; margin-left: var(--l, 0); margin-right: var(--r, 0);
  border-radius: 3px;
  background:
    repeating-linear-gradient(90deg, transparent 0 3px, rgba(255,255,255,.05) 3px 4px) left / 22px 100% no-repeat,
    repeating-linear-gradient(90deg, transparent 0 3px, rgba(255,255,255,.05) 3px 4px) right / 22px 100% no-repeat,
    linear-gradient(180deg, #2a2a2c 0%, #111 45%, #1b1b1d 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 -2px 0 rgba(0,0,0,.7), 0 3px 4px rgba(0,0,0,.6);
}
.vhs-side { width: 34px; flex-shrink: 0; font: 700 8px/1.15 Montserrat, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.vhs-label {
  flex: 1; min-width: 0; padding: 6px 14px; border-radius: 2px;
  background-color: #efe6d2;
  background-image: var(--noise), linear-gradient(180deg, rgba(255,255,255,.4), transparent 40%, rgba(120,90,50,.15));
  background-blend-mode: multiply, normal;
  color: var(--ink); text-align: center;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.15);
}
.vhs-label--brand { display: flex; align-items: center; gap: 14px; padding: 8px 12px; text-align: right; }
.vhs-label--dark { display: flex; align-items: center; gap: 14px; padding: 8px 4px; text-align: left; background: none; box-shadow: none; }
.vhs-stripes { display: flex; align-self: stretch; flex-shrink: 0; }
.vhs-stripes i { width: 22px; }
.vhs-stripes--h { flex-direction: column; width: 42%; gap: 4px; }
.vhs-stripes--h i { width: auto; flex: 1; }
.vhs-title { font-family: 'Permanent Marker', cursive; font-size: 1.35rem; line-height: 1.1; }
.vhs-sub { margin-top: 2px; font: 600 10px/1.3 Montserrat, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: rgba(26,26,26,.75); }
.vhs-price {
  flex-shrink: 0; min-width: 44px; padding: 3px 6px; border-radius: 2px; text-align: center;
  font-family: 'VT323', monospace; font-size: 1.35rem; line-height: 1; color: var(--ink); background: #efe6d2;
}
.vhs-board {
  height: 18px; margin: 6px -12px 0; border-radius: 2px;
  background: linear-gradient(180deg, #a06a3f 0%, #7a4b29 55%, #4e2e17 100%);
  box-shadow: 0 10px 18px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.2);
}
@media (max-width: 480px) {
  .vhs { gap: 8px; padding: 6px 8px; }
  .vhs-side { display: none; }
  .vhs-title { font-size: 1.1rem; }
  .vhs-stripes i { width: 12px; }
}

/* Slot reels */
.reel { height: 120px; overflow: hidden; position: relative; }
.reel-strip { will-change: transform; }
.reel-cell { height: 120px; display: flex; align-items: center; justify-content: center; }
.reel::before, .reel::after { content: ''; position: absolute; left: 0; right: 0; height: 30px; z-index: 2; pointer-events: none; }
.reel::before { top: 0; background: linear-gradient(#020a05, transparent); }
.reel::after { bottom: 0; background: linear-gradient(transparent, #020a05); }
.sym-777 { font-family: 'VT323', monospace; font-size: 3.4rem; color: #d65f7d; text-shadow: 0 0 4px rgba(214,95,125,.7), 0 0 12px rgba(214,95,125,.35); letter-spacing: -2px; }

.sticky-note { background-color: #d9c39a; background-image: var(--noise), linear-gradient(170deg, #e4d0a6, #c9ae7f); background-blend-mode: multiply, normal; box-shadow: 0 14px 26px rgba(0,0,0,.5); }

/* Worn poster frame around the hero (as in the reference) */
.poster-frame {
  padding: 12px; border-radius: 6px;
  background-color: #cbb994;
  background-image: var(--noise), radial-gradient(ellipse at 10% 0%, rgba(255,255,255,.3), transparent 50%), radial-gradient(ellipse at 100% 100%, rgba(90,60,30,.45), transparent 55%);
  background-blend-mode: multiply, normal, normal;
  box-shadow: 0 20px 50px rgba(0,0,0,.6);
}
.poster-inner {
  border-radius: 18px; background: var(--night);
  box-shadow: inset 0 0 0 1px rgba(214,95,125,.45), inset 0 0 60px rgba(0,0,0,.8);
}
.poster-inner::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background-image: var(--noise); opacity: .12; mix-blend-mode: screen;
}

/* Big hero logo: brush script over chrome block letters */
.brush-script {
  color: #d0577a; transform: rotate(-8deg); transform-origin: left bottom; position: relative; z-index: 2;
  text-shadow: 2px 3px 0 #4a1c2a, 0 0 12px rgba(214,95,125,.25);
}
.chrome-block {
  background: linear-gradient(180deg, #f4f7ff 0%, #9fb4dd 40%, #2b2160 49%, #d58bd8 54%, #fbe9ff 72%, #8d6fc4 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.35);
  filter: drop-shadow(0 4px 0 #120a2a) drop-shadow(0 0 14px rgba(0,240,255,.35));
}

/* Paper card with a curled bottom-right corner */
.paper-curl::after {
  content: ''; position: absolute; right: 0; bottom: 0; width: 34px; height: 34px;
  background: linear-gradient(135deg, #b8a988 0%, #d8ccb4 48%, var(--night) 50%);
  box-shadow: -3px -3px 6px rgba(0,0,0,.18);
}

.crt-keyboard {
  height: 34px; margin: 10px -6px 0; border-radius: 6px;
  background: repeating-linear-gradient(90deg, #cfc6b1 0 18px, #a99f88 18px 20px), #cfc6b1;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.2), 0 6px 12px rgba(0,0,0,.4);
}

/* Hero drive scene animation */
.drive-cam { transform-origin: 50% 72%; animation: cruise 10s ease-in-out infinite alternate; }
@keyframes cruise { from { transform: scale(1.02); } to { transform: scale(1.08) translateY(-1%); } }
.drive-scene img { animation: road-hum .45s ease-in-out infinite alternate; }
@keyframes road-hum { to { transform: translateY(.6px); } }
.tail-glow {
  position: absolute; width: 11%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(214,95,125,.85) 0%, rgba(214,95,125,.35) 35%, transparent 68%);
  mix-blend-mode: screen; animation: brake 4s ease-in-out infinite;
}
@keyframes brake { 0%, 55%, 100% { opacity: .35; } 62%, 78% { opacity: 1; } }
.underglow {
  position: absolute; left: 37%; width: 27%; top: 87.5%; height: 3%;
  background: rgba(0,240,255,.7); filter: blur(10px); mix-blend-mode: screen;
  animation: glow-pulse 2.4s ease-in-out infinite;
}
@keyframes glow-pulse { 50% { opacity: .45; } }
.road-shine {
  position: absolute; left: 0; right: 0; bottom: 0; height: 40%;
  background: repeating-linear-gradient(180deg, transparent 0 22px, rgba(230,150,175,.22) 22px 26px, transparent 26px 60px);
  -webkit-mask: linear-gradient(transparent, #000 40%); mask: linear-gradient(transparent, #000 40%);
  mix-blend-mode: screen; opacity: .5; animation: road-flow 1.1s linear infinite;
}
@keyframes road-flow { to { background-position: 0 60px; } }
.vhs-track {
  position: absolute; left: 0; right: 0; height: 7%; top: -10%; pointer-events: none;
  background: linear-gradient(transparent, rgba(255,255,255,.12) 45%, rgba(0,240,255,.08) 55%, transparent);
  mix-blend-mode: screen; animation: tracking 7s linear infinite;
}
@keyframes tracking { 0% { top: -10%; } 60%, 100% { top: 110%; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .crt-screen, .cursor, .drive-cam, .drive-scene img, .tail-glow, .underglow, .road-shine, .vhs-track { animation: none; }
}
