/* CUE landing page */

/* ---------- Top bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; gap: 2rem;
  padding: 14px var(--gutter);
  transition: background-color 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.bar--solid { background: rgba(12, 10, 8, 0.94); border-bottom-color: rgba(227, 181, 79, 0.16); }
.bar__logo img { width: clamp(92px, 9vw, 124px); }
.bar__logo { opacity: 0; transform: translateY(-6px); transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out); }
.bar--solid .bar__logo { opacity: 1; transform: none; }
.bar__nav { display: flex; gap: 1.75rem; margin-left: auto; }
.bar__nav a {
  font: 600 0.95rem/1 var(--f-text); letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none; color: var(--ivory-dim);
  padding: 0.5em 0; border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.bar__nav a:hover { color: var(--ivory); border-bottom-color: var(--gold); }
.bar__cta { min-height: 42px; padding: 0.55em 1.05em; font-size: 0.92rem; }
@media (max-width: 760px) {
  .bar { gap: 1rem; }
  .bar__nav { display: none; }
  .bar__cta { margin-left: auto; }
}

/* ---------- Hero: the table ---------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 620px;
  overflow: hidden; isolation: isolate;
  background: var(--room);
}
.hero--static { background: linear-gradient(180deg, var(--room) 0 34%, var(--baize-deep) 34%, var(--baize) 100%); }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; z-index: 0; }
.hero--static .hero__canvas { display: none; }
.hero--static .hero__play { display: none; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(12, 10, 8, 0.72) 0%, rgba(12, 10, 8, 0) 26%),
    linear-gradient(0deg, rgba(12, 10, 8, 0.94) 0%, rgba(12, 10, 8, 0.55) 30%, rgba(12, 10, 8, 0) 58%),
    linear-gradient(90deg, rgba(12, 10, 8, 0.55) 0%, rgba(12, 10, 8, 0) 50%);
}
.hero__logo {
  position: absolute; z-index: 2; left: 50%; top: clamp(76px, 12vh, 132px);
  width: clamp(240px, 36vw, 540px); margin-left: calc(clamp(240px, 36vw, 540px) / -2);
  pointer-events: none; will-change: transform;
}
.hero__logo img { width: 100%; filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.65)); }
.hero__copy {
  position: absolute; z-index: 2; left: var(--gutter); bottom: clamp(32px, 8vh, 88px);
  max-width: 640px; pointer-events: none; will-change: transform;
}
.hero__copy a, .hero__copy button { pointer-events: auto; }
.hero__title {
  font: italic 800 clamp(3rem, 7.2vw, 5.75rem)/0.88 var(--f-slant);
  text-transform: uppercase; letter-spacing: -0.01em;
  display: flex; flex-wrap: wrap; column-gap: 0.28em;
}
.hero__title-gold { color: var(--gold); }
.hero__lede { margin-top: 1.1rem; max-width: 34ch; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ivory); }
.hero__status { margin-top: 1.1rem; color: var(--ivory); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.5rem; }
.hero__actions .btn:not(.btn--gold) { background: rgba(12, 10, 8, 0.55); }

.hero__play {
  position: absolute; z-index: 2; right: var(--gutter); bottom: clamp(32px, 8vh, 88px);
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.hero__hint {
  font: italic 600 0.95rem/1 var(--f-slant); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ivory);
  transition: opacity 0.6s var(--ease-out);
}
.hero--played .hero__hint { opacity: 0; }
.hero__replay {
  display: inline-flex; align-items: center; gap: 0.5em;
  min-height: 40px; padding: 0.45em 0.95em; border-radius: 999px;
  border: 1px solid rgba(227, 181, 79, 0.45); background: rgba(12, 10, 8, 0.6);
  color: var(--gold); font: 600 0.88rem/1 var(--f-text); cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, opacity 0.3s;
}
.hero__replay:hover { border-color: var(--gold); background: rgba(12, 10, 8, 0.85); }
.hero__replay[aria-disabled="true"] { opacity: 0.35; cursor: default; }

@media (max-width: 760px) {
  .hero__logo { top: 84px; }
  .hero__copy { right: var(--gutter); bottom: 28px; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero__actions .btn--gold { flex-basis: 100%; }
  .hero__play { top: 84px; bottom: auto; right: var(--gutter); display: none; }
}

/* ---------- Two rooms ---------- */
.rooms { padding: clamp(88px, 12vw, 168px) 0 0; }
.rooms__title {
  padding: 0 var(--gutter) clamp(40px, 6vw, 72px);
  font: 900 clamp(2.9rem, 8.5vw, 6rem)/0.9 var(--f-display);
  text-transform: uppercase; letter-spacing: -0.005em;
}
.rooms__title span { color: var(--gold); }

.room {
  display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center;
  gap: clamp(28px, 5vw, 80px);
  padding: clamp(56px, 8vw, 112px) var(--gutter);
}
.room__name {
  font: 900 clamp(2.4rem, 5.6vw, 4.5rem)/0.92 var(--f-display);
  text-transform: uppercase;
}
.room__line { margin-top: 1rem; max-width: 40ch; font-size: clamp(1.05rem, 1.35vw, 1.2rem); }
.room__facts {
  list-style: none; margin: 1.6rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  font: italic 700 1.15rem/1.2 var(--f-slant); letter-spacing: 0.05em; text-transform: uppercase;
}

/* The Lounge: a field of baize */
.room--lounge {
  background:
    radial-gradient(70% 90% at 72% 40%, rgba(255, 236, 190, 0.13), transparent 60%),
    radial-gradient(120% 120% at 50% 50%, var(--baize) 0%, var(--baize-deep) 100%);
  color: var(--baize-ink);
  position: relative;
}
.room--lounge::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}
.room--lounge > * { position: relative; }
.room--lounge .room__name { color: var(--ivory); }
.room--lounge .room__facts li { color: var(--gold-hi); }
.room--lounge .room__facts li::before {
  content: ""; width: 0.55em; height: 0.55em; margin-right: 0.5em; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, #f07a7f 0 12%, var(--red) 45%, #5a070b 100%);
}
.room__facts li { display: inline-flex; align-items: center; }

/* a rack of reds you can break */
.room__rack {
  justify-self: center;
  width: min(460px, 82vw);
  display: grid; grid-template-columns: repeat(10, 1fr);
  cursor: pointer;
}
.rb {
  grid-column: var(--c) / span 2; grid-row: var(--r);
  aspect-ratio: 1; margin-top: -2.68%; /* touching rows: 0.866 × diameter pitch (diameter = 20% of the rack width) */
  border-radius: 50%;
  background:
    /* lamp reflection: small and sharp, like a real phenolic ball under one bulb */
    radial-gradient(ellipse 9% 7% at 37% 27%, rgba(255, 248, 236, 0.92) 0%, rgba(255, 248, 236, 0.5) 45%, rgba(255, 248, 236, 0) 100%),
    /* broad soft sheen of the lacquer, the lamp's larger reflection */
    radial-gradient(ellipse 40% 28% at 40% 30%, rgba(255, 225, 215, 0.3), rgba(255, 225, 215, 0) 75%),
    /* green bounce light from the cloth along the underside */
    radial-gradient(ellipse 70% 30% at 52% 100%, rgba(40, 150, 85, 0.35), rgba(40, 150, 85, 0) 70%),
    radial-gradient(circle at 42% 36%, #d3262d 0%, #b0151c 38%, #7a0a10 70%, #3a0306 100%);
  box-shadow:
    inset -0.12em -0.16em 0.4em rgba(0, 0, 0, 0.35),
    0 0.9em 0.7em -0.6em rgba(0, 0, 0, 0.75);
  font-size: clamp(14px, 2.4vw, 22px);
  transition: transform 1.1s var(--ease-out);
}
.rb:nth-child(1) { --c: 5; --r: 1; }
.rb:nth-child(2) { --c: 4; --r: 2; }
.rb:nth-child(3) { --c: 6; --r: 2; }
.rb:nth-child(4) { --c: 3; --r: 3; }
.rb:nth-child(5) { --c: 5; --r: 3; }
.rb:nth-child(6) { --c: 7; --r: 3; }
.rb:nth-child(7) { --c: 2; --r: 4; }
.rb:nth-child(8) { --c: 4; --r: 4; }
.rb:nth-child(9) { --c: 6; --r: 4; }
.rb:nth-child(10) { --c: 8; --r: 4; }
.rb:nth-child(11) { --c: 1; --r: 5; }
.rb:nth-child(12) { --c: 3; --r: 5; }
.rb:nth-child(13) { --c: 5; --r: 5; }
.rb:nth-child(14) { --c: 7; --r: 5; }
.rb:nth-child(15) { --c: 9; --r: 5; }
.room__rack.is-broken .rb { transform: translate(var(--bx), var(--by)) rotate(var(--br)); transition-duration: 0.9s; }

/* Gaming Arena + walls: the club's own neon wall world, on brick */
.room--arena, .walls {
  background:
    radial-gradient(120% 90% at 50% 50%, rgba(8, 7, 9, 0.25) 0%, rgba(8, 7, 9, 0.82) 100%),
    url("../assets/brick-wall.jpg") center / 512px auto repeat,
    #0d0c0e;
}
.room--arena { grid-template-columns: 1.1fr 0.9fr; position: relative; padding-bottom: clamp(24px, 4vw, 48px); }
.room__art { margin: 0; perspective: 1200px; }
.room__art img, .wall img {
  width: 100%;
  mix-blend-mode: lighten; /* the art's own dark brick merges into the wall; only the neon stays on top */
  -webkit-mask-image: radial-gradient(ellipse 70% 68% at 50% 50%, #000 58%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 68% at 50% 50%, #000 58%, transparent 100%);
}
.room__art img {
  transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg));
  transition: transform 0.6s var(--ease-out);
}
.room__name--neon {
  color: #fff2fb;
  text-shadow: 0 0 1px #fff, 0 0 8px var(--neon-sq), 0 0 22px var(--neon-sq), 0 0 44px rgba(255, 79, 216, 0.55);
}
.room--arena .room__line { color: #cfcbe0; }
.room__facts--neon li { gap: 0.55em; color: var(--ivory); }
.ps { width: 18px; height: 18px; flex: none; display: inline-block; position: relative; }
.ps--tri { border: 0; }
.ps--tri::before {
  content: ""; position: absolute; inset: 1px 0 0;
  background: var(--neon-tri); clip-path: polygon(50% 0, 100% 100%, 0 100%, 50% 0, 50% 22%, 18% 86%, 82% 86%, 50% 22%);
}
.ps--o { border: 2.5px solid var(--neon-o); border-radius: 50%; }
.ps--sq { border: 2.5px solid var(--neon-sq); border-radius: 2px; }
.ps--x::before, .ps--x::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 2.5px; margin: -1.25px 0 0 -10px;
  background: var(--neon-x); border-radius: 2px; transform: rotate(45deg);
}
.ps--x::after { transform: rotate(-45deg); }

@media (max-width: 860px) {
  .room, .room--arena { grid-template-columns: 1fr; }
  .room--lounge .room__rack { order: -1; width: min(300px, 70vw); }
}

/* ---------- What's on the table ---------- */
.inside { padding: clamp(88px, 12vw, 160px) var(--gutter); background: var(--room); }
.inside__title {
  font: italic 800 clamp(2.2rem, 5vw, 3.6rem)/0.95 var(--f-slant);
  text-transform: uppercase; color: var(--gold); margin-bottom: clamp(28px, 4vw, 48px);
}
.inside__list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.pot {
  display: grid; grid-template-columns: clamp(44px, 5vw, 64px) minmax(0, 1fr) minmax(0, 1fr);
  align-items: center; gap: clamp(16px, 3vw, 40px);
  padding: clamp(18px, 2.6vw, 30px) 0;
  border-top: 1px solid rgba(227, 181, 79, 0.2);
}
.pot:last-child { border-bottom: 1px solid rgba(227, 181, 79, 0.2); }
.pot__ball {
  aspect-ratio: 1; border-radius: 50%; font-size: 16px;
  background:
    radial-gradient(circle at 36% 27%, rgba(255, 250, 240, 0.95) 0 2.4%, rgba(255, 250, 240, 0.45) 4%, rgba(255, 250, 240, 0) 8%),
    radial-gradient(ellipse 48% 34% at 40% 30%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 72%),
    radial-gradient(circle at 42% 36%, var(--ball) 0%, color-mix(in srgb, var(--ball) 80%, #000) 40%, color-mix(in srgb, var(--ball) 50%, #000) 72%, color-mix(in srgb, var(--ball) 18%, #000) 100%);
  box-shadow: inset -0.15em -0.2em 0.45em rgba(0, 0, 0, 0.3), 0 0.75em 0.6em -0.5em rgba(0, 0, 0, 0.75);
  transition: transform 0.7s var(--ease-out);
}
.pot:hover .pot__ball { transform: translateX(10px) rotate(160deg); }
.pot__name { font: 800 clamp(1.9rem, 4.4vw, 3.4rem)/0.95 var(--f-display); text-transform: uppercase; }
.pot__line { color: var(--ivory-dim); max-width: 36ch; }
@media (max-width: 700px) {
  .pot { grid-template-columns: 44px minmax(0, 1fr); row-gap: 6px; }
  .pot__line { grid-column: 2; }
}

/* ---------- Hours: scoreboard on baize ---------- */
.hours {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center;
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(72px, 10vw, 136px) var(--gutter);
  background: radial-gradient(120% 140% at 30% 50%, var(--baize) 0%, var(--baize-deep) 100%);
  color: var(--baize-ink);
  position: relative;
}
.hours::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}
.hours > :not(.sr-only) { position: relative; }
/* the table's rail: mahogany with a gold inlay, framing every baize field */
.room--lounge, .hours { --rail: #2b140a 0 4px, #c99a3e 4px 6px, #4a2512 6px 14px; }
.room--lounge::after, .hours::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, var(--rail), transparent 14px) top / 100% 14px no-repeat,
    linear-gradient(0deg, var(--rail), transparent 14px) bottom / 100% 14px no-repeat;
}
.hours__board {
  display: flex; align-items: center; gap: clamp(14px, 2.2vw, 28px);
  font: 900 clamp(4rem, 11vw, 6rem)/0.85 var(--f-display); color: var(--ivory);
}
.hours__digit { display: inline-flex; align-items: flex-start; gap: 0.08em; }
.hours__digit small { font-size: 0.32em; line-height: 1; margin-top: 0.12em; font-weight: 800; color: var(--gold-hi); letter-spacing: 0.04em; }
.hours__digit--late { color: var(--gold); }
.hours__cue {
  flex: 1; height: 10px; min-width: 60px; border-radius: 6px;
  background: linear-gradient(90deg, #f2e1bb 0 2%, #d9b984 2% 52%, var(--gold) 52% 55%, #2a140a 55% 100%);
  box-shadow: 0 8px 14px -8px rgba(0, 0, 0, 0.6);
  transform-origin: left center;
}
.hours__lead { font: 800 clamp(1.8rem, 3.6vw, 2.6rem)/1 var(--f-display); text-transform: uppercase; color: var(--ivory); }
.hours__sub { margin-top: 0.9rem; max-width: 38ch; }
.hours__status { margin-top: 1.4rem; color: var(--ivory); }
@media (max-width: 860px) { .hours { grid-template-columns: 1fr; } }

/* ---------- The walls ---------- */
.walls { padding: clamp(24px, 4vw, 48px) var(--gutter) clamp(88px, 12vw, 140px); overflow: hidden; }
.walls__title {
  font: italic 800 clamp(2.4rem, 6vw, 4.6rem)/0.92 var(--f-slant); text-transform: uppercase;
  color: #f2f6ff; text-shadow: 0 0 1px #fff, 0 0 8px var(--neon-x), 0 0 22px var(--neon-x), 0 0 44px rgba(77, 141, 255, 0.5);
}
.walls__sub { margin-top: 0.6rem; color: #b6b2c6; }
.walls__strip {
  display: grid; grid-template-columns: 1.25fr 0.95fr; gap: clamp(16px, 3vw, 40px);
  align-items: start; margin-top: clamp(32px, 5vw, 64px);
}
.wall { margin: 0; will-change: transform; }
.wall--tall { margin-top: clamp(40px, 8vw, 120px); }
@media (max-width: 700px) {
  .room__art img, .wall img {
    -webkit-mask-image: radial-gradient(ellipse 62% 60% at 50% 50%, #000 40%, transparent 100%);
    mask-image: radial-gradient(ellipse 62% 60% at 50% 50%, #000 40%, transparent 100%);
  }
  .walls__strip { grid-template-columns: 1fr; }
  .wall--tall { margin-top: 0; width: 82%; justify-self: end; }
}

/* ---------- Find us ---------- */
.visit {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px);
  padding: clamp(88px, 12vw, 160px) var(--gutter);
  align-items: center;
}
.visit__title { font: 900 clamp(2.9rem, 7vw, 5.5rem)/0.9 var(--f-display); text-transform: uppercase; }
.visit__address { margin-top: 1.4rem; font-style: normal; font-size: 1.25rem; line-height: 1.45; }
.visit__note { color: var(--ivory-mute); font-size: 1rem; }
.visit__phone { margin-top: 1rem; font: 800 1.6rem/1 var(--f-display); letter-spacing: 0.02em; }
.visit__phone a { text-decoration: none; color: var(--gold); }
.visit__phone a:hover { text-decoration: underline; }
.visit__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.6rem; }
.visit__rating { margin-top: 1.8rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5em 0.7em; color: var(--ivory-dim); }
.visit__rating a { color: var(--gold-hi); }
.visit__stars { display: inline-flex; gap: 2px; color: var(--gold); }
.visit__stars svg { width: 18px; height: 18px; }
.visit__map {
  aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(227, 181, 79, 0.3); background: var(--room-2);
}
.visit__map iframe { width: 100%; height: 100%; border: 0; filter: invert(0.9) hue-rotate(180deg) saturate(0.6) brightness(0.95); }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.foot { padding: clamp(72px, 10vw, 136px) var(--gutter) calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(227, 181, 79, 0.18); }
.foot__close { font: italic 800 clamp(2.4rem, 7vw, 5.5rem)/0.9 var(--f-slant); text-transform: uppercase; }
.foot__close span { color: var(--gold); display: block; }
.foot__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: clamp(40px, 6vw, 72px); flex-wrap: wrap; }
.foot__logo { width: 180px; }
.foot__social { display: flex; gap: 10px; }
.foot__social a {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(244, 239, 226, 0.25); color: var(--ivory);
  transition: border-color 0.2s, color 0.2s;
}
.foot__social a:hover { border-color: var(--gold); color: var(--gold); }
.foot__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.foot__fine { margin-top: 28px; font-size: 0.88rem; color: var(--ivory-mute); }

/* ---------- Mobile quick-action dock ---------- */
.dock { display: none; }
@media (max-width: 760px) {
  .dock {
    position: fixed; inset: auto 0 0; z-index: 30;
    display: grid; grid-template-columns: repeat(3, 1fr);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    background: rgba(12, 10, 8, 0.97); border-top: 1px solid rgba(227, 181, 79, 0.22);
    transform: translateY(110%); transition: transform 0.4s var(--ease-out);
  }
  .past-hero .dock { transform: none; }
  .dock a {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    min-height: 52px; justify-content: center; border-radius: 10px;
    font: 600 0.8rem/1 var(--f-text); text-decoration: none; color: var(--ivory-dim);
  }
  .dock a:first-child { color: var(--gold); }
  .dock svg { width: 22px; height: 22px; }
  .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
