/* TheGoonerLounge.Online — dark cyber lounge */
:root {
  --pink: #ff2bd6;
  --pink-hot: #ff5ae0;
  --pink-soft: #ffc2f3;
  --purple: #b026ff;
  --cyan: #3df0ff;
  --gold: #7af6ff;
  --gold-dim: rgba(122, 246, 255, 0.62);
  --rose: #ff2bd6;
  --blush: #f0b7ff;
  --mint: #3df0ff;
  --text: #f4f7ff;
  --muted: rgba(226, 236, 255, 0.74);
  --dim: rgba(226, 236, 255, 0.46);
  --line: rgba(61, 240, 255, 0.22);
  --void: #05060c;
  --ink: #070910;
  --panel: rgba(6, 8, 16, 0.82);
  --ok: #3dffc4;
  --err: #ff4d88;
  --font: "Outfit", system-ui, sans-serif;
  --display: "Unbounded", Syne, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --serif: "Fraunces", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 64px;
  --dock-h: 62px;
  --gutter: clamp(1rem, 3.2vw, 2.2rem);
  --max: 72rem;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --glow-rose: 0 0 28px rgba(255, 45, 106, 0.35);
  --glow-pink: 0 0 40px rgba(255, 45, 149, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; min-height: 100%; overflow-x: clip; max-width: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 480px at 8% -10%, rgba(176, 38, 255, 0.18), transparent 55%),
    radial-gradient(800px 420px at 100% 0%, rgba(255, 43, 214, 0.12), transparent 50%),
    radial-gradient(700px 380px at 80% 100%, rgba(61, 240, 255, 0.08), transparent 55%),
    #05060c;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(61, 240, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 240, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 20%, #000 10%, transparent 72%);
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--pink); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 90;
  padding: 0.7rem 1rem; background: var(--pink); color: #fff;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.skip:focus { top: 0.7rem; }

.bg-vid,
video.bg-vid {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
  object-position: center 20% !important;
  z-index: 0;
  pointer-events: none;
  background: #05010a;
}
.bg-veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5,1,10,0.42) 0%, rgba(5,1,10,0.05) 24%, rgba(5,1,10,0.04) 62%, rgba(5,1,10,0.58) 100%),
    linear-gradient(90deg, rgba(5,1,10,0.5) 0%, rgba(5,1,10,0.12) 38%, rgba(5,1,10,0.08) 100%);
}
body.clips-page .bg-veil,
body.lounge-page .bg-veil,
body.chat-page .bg-veil {
  background:
    linear-gradient(180deg, rgba(5,1,10,0.5) 0%, rgba(5,1,10,0.22) 36%, rgba(5,1,10,0.55) 100%);
}
.bg-veil::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: radial-gradient(rgba(255, 255, 255, 0.45) 0.55px, transparent 0.6px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
}
.house-intro {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #05010a;
}
.house-intro video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background: #05010a;
}
.house-intro-skip,
.house-intro-sound,
.house-intro-go {
  position: absolute;
  z-index: 2;
  min-height: 48px;
  padding: 0 1.1rem;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.house-intro-skip {
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1.1rem, env(safe-area-inset-bottom));
  border: 1px solid rgba(232, 196, 138, 0.55);
  background: rgba(8, 2, 14, 0.72);
  color: #f6e0b4;
}
.house-intro-sound {
  left: max(1rem, env(safe-area-inset-left));
  bottom: max(1.1rem, env(safe-area-inset-bottom));
  border: 1px solid rgba(61, 240, 255, 0.55);
  background: rgba(8, 2, 14, 0.72);
  color: #d9fbff;
}
.house-intro-go {
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  display: none;
  border: 0;
  color: #041018;
  background: linear-gradient(90deg, #3df0ff, #d56bff 52%, #ff2bd6);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
.house-intro.needs-tap .house-intro-go { display: inline-flex; align-items: center; }
.gl-geo {
  position: fixed;
  z-index: 85;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: min(440px, calc(100% - 24px));
  padding: 1.05rem 1.05rem 0.95rem;
  border-radius: 22px;
  border: 1px solid rgba(61, 240, 255, 0.45);
  background: rgba(6, 8, 16, 0.94);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 32px rgba(176, 38, 255, 0.28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
body.gl-has-dock .gl-geo {
  bottom: calc(var(--dock-h) + 14px + env(safe-area-inset-bottom, 0px));
}
.gl-geo-kicker {
  margin: 0 0 0.35rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.gl-geo h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.gl-geo-copy, .gl-geo-status {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}
.gl-geo-status { color: var(--gold); }
.gl-geo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.9rem;
}
.gl-geo-yes, .gl-geo-no {
  min-height: 48px;
  padding: 0 1rem;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.gl-geo-yes {
  border: 0;
  color: #041018;
  background: linear-gradient(90deg, #3df0ff, #d56bff 55%, #ff2bd6);
}
.gl-geo-no {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: #fff;
}
.gl-geo-yes:disabled, .gl-geo-no:disabled { opacity: 0.55; }
@media (min-width: 760px) {
  body.gl-has-dock .gl-geo { bottom: 24px; }
}
.house-intro.is-out {
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.kicker {
  margin: 0 0 0.8rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.kicker .live,
.term-state .live {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
  flex-shrink: 0;
}

.btn-primary, .btn-ghost, .btn-row-full {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0 1.35rem; border: 0; border-radius: 999px;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer;
  transition: transform 0.2s var(--ease), filter 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary {
  color: #041018;
  background: linear-gradient(90deg, #3df0ff, #d56bff 52%, #ff2bd6);
  box-shadow: 0 10px 28px rgba(176, 38, 255, 0.35);
}
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-ghost {
  color: #fff;
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.22);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-row-full {
  width: 100%; color: #fff;
  background: linear-gradient(90deg, #ff2bd6, #b026ff 55%, #1490b8);
  box-shadow: 0 0 24px rgba(176, 38, 255, 0.28);
}

.soc-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}
.soc-app-btn {
  --soc-size: 58px;
  width: var(--soc-size);
  height: var(--soc-size);
  border-radius: 18px;
  overflow: hidden;
  display: block;
  background: transparent;
  box-shadow: 0 10px 22px rgba(0,0,0,.4);
  transition: transform 0.18s var(--ease), box-shadow 0.18s ease;
}
.soc-app-btn img, .soc-app-btn svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: transparent;
}
.soc-app-btn:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 14px 28px rgba(0,0,0,.5); }
.soc-app-btn.hot { --soc-size: 62px; }

.gl-foot {
  position: relative; z-index: 3;
  margin-top: 2.4rem; padding: 1.4rem var(--gutter) 2rem;
  text-align: center; font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim);
}
.gl-foot .word {
  display: block;
  margin-bottom: 0.4rem;
  font-family: Orbitron, var(--display), sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: #fff;
}
.gl-foot a { color: var(--cyan); }

@media (max-width: 759px) {
  body.gl-has-dock {
    padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px));
  }
  .soc-app-btn { --soc-size: 52px; }
  .soc-app-btn.hot { --soc-size: 56px; }
}

#gl-intro {
  position: fixed; inset: 0; z-index: 40000; background: #05010a;
}
#gl-intro.is-out { opacity: 0; pointer-events: none; transition: opacity 0.45s ease; }
#gl-intro video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: center center; background: #05010a;
  opacity: 0;
  transition: opacity 0.35s ease;
}
#gl-intro video.is-on { opacity: 1; }
#gl-intro-skip {
  position: absolute;
  right: max(14px, env(safe-area-inset-right, 0px));
  bottom: max(18px, env(safe-area-inset-bottom, 0px));
  z-index: 2; min-height: 48px; padding: 0 1.15rem;
  border: 1px solid #ff2d95; border-radius: 12px;
  color: #fff; background: rgba(8,2,16,0.86);
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; cursor: pointer;
}
body.gl-intro-lock { overflow: hidden !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bg-vid { display: none; }
  body::before { display: none; }
  .arthur-card, .arthur-terminal { animation: none; }
  .dice.is-rolling, .dice.is-landed { animation: none; }
}
