/* RubberHose — velvet, footlights and fat cartoon lettering on the shared game frame. */
@font-face { font-family: "Chango"; src: url("../fonts/chango-400.woff2") format("woff2"); font-display: swap; }

:root {
  --ground: #140907; --ground-2: #24100f; --fg: #f6e6c2; --mute: #d2bd97; --accent: #f0b440; --accent-ink: #1d120b; --line: rgb(246 230 194 / .22);
  --velvet: #5c1119; --ink: #1d120b; --gold-deep: #b9791a;
  --display: "Chango", "Arial Black", sans-serif;
  --bounce: cubic-bezier(.2, 1.2, .3, 1);
}
h2 { font-weight: 400; letter-spacing: -.01em; line-height: 1.08; }
h3 { font-weight: 400; }
.intro h2 { font-size: clamp(1.7rem, 3.9vw, 3.1rem); color: var(--accent); }

.hero-art { object-position: 50% 60%; filter: brightness(.62) saturate(1.05); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 60% 55% at 50% 42%, transparent 30%, rgb(20 9 7 / .78) 100%); }
.hero-logo { width: min(86vw, 52rem); margin-bottom: 6vh; }
.hero-logo h1 img { width: 100%; filter: drop-shadow(0 1.2rem 1.4rem rgb(0 0 0 / .6)); }
.cabinet { position: absolute; left: clamp(-2rem, 2vw, 4rem); bottom: -4%; height: min(62%, 34rem); width: auto; z-index: -1; filter: drop-shadow(0 1.2rem 1rem rgb(0 0 0 / .55)); transform-origin: 50% 100%; }
@media (prefers-reduced-motion: no-preference) {
  .cabinet { animation: bob 1.15s ease-in-out infinite alternate; }
  @keyframes bob { from { transform: scale(1, 1); } to { transform: scale(1.025, .972); } }
}
.row-art img { border: 4px solid var(--ink); border-radius: 1rem; outline: 2px solid var(--gold-deep); }
.track img { border-radius: 1rem; aspect-ratio: 3 / 2; }
.btn, .signup input[type="email"], .nav-links .top-cta { border-radius: 99px; }
.sub { margin: 1.1rem auto 0; text-align: center; color: var(--mute); max-width: 50ch; }

/* the troupe: a chorus line on the boards */
.troupe { padding-bottom: 0; margin-top: clamp(4rem, 9vw, 7rem); background: linear-gradient(180deg, var(--ground) 0%, var(--ground-2) 100%); overflow: hidden; }
.chorus { margin: 2.6rem calc(var(--pad) * -1) 0; padding: 2rem var(--pad) 0; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: .4rem; align-items: end; background: linear-gradient(180deg, transparent 0 62%, var(--gold-deep) 62% 63.5%, #7a4a1c 63.5% 100%); }
.chorus li { display: grid; justify-items: center; text-align: center; padding-bottom: 1.4rem; }
.chorus img { width: 100%; max-width: 12rem; aspect-ratio: 5 / 6; object-fit: contain; object-position: 50% 100%; transform-origin: 50% 100%; transition: transform .35s var(--bounce); filter: drop-shadow(0 .5rem .3rem rgb(0 0 0 / .4)); }
.chorus li:hover img { transform: translateY(-1.1rem) scale(.95, 1.08); }
.chorus b { margin-top: .7rem; font: 400 clamp(.8rem, 1.2vw, 1.05rem)/1.1 var(--display); color: var(--fg); text-shadow: .08em .08em 0 var(--ink); }
.chorus span { font: 700 .82rem/1.3 var(--label); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-top: .2rem; }

/* the playbill */
.act.curtained .backdrop { visibility: hidden; }
.act.curtained { background: repeating-linear-gradient(90deg, rgb(0 0 0 / .3) 0 2.2%, transparent 2.2% 5%, rgb(255 255 255 / .05) 5% 5.6%, transparent 5.6% 8%), linear-gradient(180deg, #3a0b11, #7d1a22 70%, #5c1119); }
.act.curtained .boss { filter: none; }
.acts { background: var(--ground-2); }
.playbill { margin: 2.4rem auto 0; max-width: 84rem; }
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.tabs button { cursor: pointer; font: 700 1.02rem/1 var(--label); letter-spacing: .09em; text-transform: uppercase; color: var(--fg); background: transparent; border: 1px solid var(--line); border-radius: 99px; padding: .75rem 1.15rem; transition: background .15s, color .15s, border-color .15s; }
.tabs button:hover { border-color: var(--accent); color: var(--accent); }
.tabs button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.act { position: relative; margin-top: 1.6rem; border: 1px solid var(--accent); overflow: hidden; aspect-ratio: 16 / 8.2; background: #3c2414; isolation: isolate; }
.backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; z-index: -1; }
.act::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(20 9 7 / .9) 0%, rgb(20 9 7 / .55) 38%, transparent 62%); }
.boss { position: absolute; right: 6%; bottom: 2%; height: 78%; width: auto; max-width: 42%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 1rem .6rem rgb(0 0 0 / .5)); transform-origin: 50% 100%; transition: translate .22s ease-in, opacity .22s; }
.marquee { position: absolute; left: clamp(1.2rem, 4%, 3rem); bottom: clamp(1.2rem, 9%, 3.5rem); width: min(52%, 30rem); transition: translate .22s ease-in, opacity .22s; }
.now { font: 700 .95rem/1 var(--label); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.marquee h3 { margin-top: .6rem; font-size: clamp(1.7rem, 4.4vw, 3.6rem); line-height: 1; text-shadow: .05em .05em 0 var(--ink); }
.marquee p:last-child { margin-top: .9rem; font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.4; }
.act.exit .boss { translate: 60% 0; opacity: 0; }
.act.exit .marquee { translate: -1.5rem 0; opacity: 0; }
.act.enter .boss { animation: walk-on .5s var(--bounce); }
@keyframes walk-on { from { translate: 60% 0; transform: scale(.94, 1.08); } to { translate: 0 0; transform: none; } }

@media (max-width: 860px) {
  .cabinet { height: 34%; left: -1rem; }
  .hero-logo { margin-bottom: 18vh; }
  .chorus { grid-template-columns: repeat(3, minmax(0, 1fr)); background: #7a4a1c; padding-top: 2.5rem; row-gap: 1rem; }
  .act { aspect-ratio: auto; min-height: 30rem; }
  .act::after { background: linear-gradient(180deg, transparent 30%, rgb(20 9 7 / .92) 68%); }
  .boss { right: 50%; translate: 50% 0; bottom: 42%; height: 52%; max-width: 80%; }
  .act.exit .boss { translate: 120% 0; }
  .marquee { width: auto; right: 1.2rem; bottom: 1.4rem; }
}
