:root {
  color-scheme: dark;
  --bg: #11100f;
  --bg-strong: #080706;
  --panel: #1d1a18;
  --panel-2: #26211d;
  --line: #51443a;
  --text: #fff6ea;
  --muted: #c8b8a6;
  --gold: #f1b950;
  --red: #c7352d;
  --red-dark: #8f211d;
  --green: #39d27d;
  --shadow: 0 18px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(199, 53, 45, 0.28), transparent 34rem),
    linear-gradient(135deg, var(--bg-strong), var(--bg) 42%, #181311);
  color: var(--text);
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
}

button,
input,
select {
  font: inherit;
}

.hidden {
  display: none !important;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0 20px;
}

.header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
  flex-direction: column;
  gap: 10px;
}

.front-door,
.guest-pass {
  display: grid;
  min-height: calc(100vh - 64px);
  place-items: center;
}

.front-door-panel,
.guest-pass-panel {
  width: min(760px, 100%);
  border: 1px solid rgba(255, 246, 234, 0.12);
  background: rgba(29, 26, 24, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 54px);
}

.guest-pass-panel {
  width: min(860px, 100%);
  background:
    linear-gradient(rgba(29, 26, 24, 0.94), rgba(15, 13, 12, 0.94)),
    repeating-linear-gradient(135deg, rgba(241, 185, 80, 0.08) 0 10px, transparent 10px 22px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.tagline {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 900;
}

.status-message {
  max-width: 34rem;
  margin-bottom: 0;
  color: var(--gold);
  font-size: clamp(1rem, 1.7vw, 1.28rem);
  font-weight: 800;
  line-height: 1.35;
  white-space: pre-line;
}

.member-status {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
}

.construction-notice {
  display: grid;
  gap: 6px;
  margin: 22px 0;
  padding: 18px;
  border: 1px solid rgba(241, 185, 80, 0.5);
  border-left: 6px solid var(--gold);
  background: rgba(78, 30, 26, 0.8);
  border-radius: 8px;
}

.status-pill {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid rgba(241, 185, 80, 0.35);
  background: rgba(29, 26, 24, 0.78);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  box-shadow: var(--shadow);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 18px rgba(57, 210, 125, 0.85);
}

.main-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0 22px;
  scrollbar-width: thin;
}

.front-door-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.secondary-button {
  min-height: 56px;
  border: 1px solid var(--line);
  background: rgba(38, 33, 29, 0.92);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  font-weight: 900;
}

.secondary-button:hover,
.secondary-button:focus-visible {
  border-color: var(--gold);
  outline: 3px solid rgba(241, 185, 80, 0.18);
  outline-offset: 2px;
}

.compact-button {
  min-height: 40px;
  padding: 0 12px;
  font-size: 0.9rem;
}

.guest-form {
  margin-top: 20px;
}

.guest-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 800;
}

.form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.auth-actions {
  margin-top: 16px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  color: var(--text);
  font-weight: 800;
}

.check-row input {
  width: auto;
}

.front-door-message {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(241, 185, 80, 0.35);
  background: rgba(15, 13, 12, 0.8);
  border-radius: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.status-banner,
.status-panel,
.status-time,
.countdown,
.announcement-card {
  border: 1px solid rgba(241, 185, 80, 0.35);
  background: rgba(15, 13, 12, 0.78);
  border-radius: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.status-banner,
.status-panel {
  margin: 0 0 18px;
  padding: 16px 18px;
}

.membership-card-panel {
  display: grid;
  gap: 18px;
  margin: 0 0 22px;
  padding: 18px;
  border: 1px solid rgba(241, 185, 80, 0.35);
  background:
    linear-gradient(135deg, rgba(38, 33, 29, 0.95), rgba(15, 13, 12, 0.88)),
    repeating-linear-gradient(135deg, rgba(241, 185, 80, 0.07) 0 10px, transparent 10px 22px);
  border-radius: 8px;
}

.membership-card-panel h2 {
  margin-bottom: 0;
}

.membership-card-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.membership-card-details div {
  padding: 12px;
  border: 1px solid rgba(255, 246, 234, 0.1);
  background: rgba(8, 7, 6, 0.45);
  border-radius: 8px;
}

.membership-card-details dt {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.membership-card-details dd {
  margin: 4px 0 0;
  color: var(--text);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.dog-tag-card {
  position: relative;
  display: grid;
  gap: 6px;
  max-width: 420px;
  padding: 22px 24px 22px 58px;
  border: 1px solid rgba(255, 246, 234, 0.2);
  border-radius: 999px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.dog-tag-card::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 50%;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 246, 234, 0.58);
  border-radius: 999px;
  transform: translateY(-50%);
}

.dog-tag-label,
.dog-tag-meta,
.dog-tag-first-name {
  margin: 0;
}

.dog-tag-label {
  color: rgba(255, 246, 234, 0.72);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dog-tag-card h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.dog-tag-first-name {
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: 900;
}

.dog-tag-meta {
  color: rgba(255, 246, 234, 0.82);
  font-size: 0.9rem;
  font-weight: 800;
}

.dog-tag-classic {
  background: linear-gradient(135deg, #6d6254, #25201b);
}

.dog-tag-black-metal {
  background: linear-gradient(135deg, #0a0a0a, #2d2d2d 48%, #050505);
}

.dog-tag-neon-bar {
  background: linear-gradient(135deg, #23113d, #0a5962 55%, #170818);
}

.dog-tag-cruise-blue {
  background: linear-gradient(135deg, #083b5c, #167a9e 54%, #051f36);
}

.dog-tag-red-stage {
  background: linear-gradient(135deg, #6f1111, #c7352d 48%, #1b0a08);
}

.dog-tag-old-school {
  background: linear-gradient(135deg, #4f4025, #a6782f 52%, #22170c);
}

.dog-tag-profile-form {
  margin-top: 0;
}

.dog-bones-activity h3,
.dog-tag-profile-form h3 {
  margin: 0 0 10px;
  color: var(--gold);
}

.dog-bones-activity-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dog-bones-activity-list li {
  padding: 10px 12px;
  border: 1px solid rgba(255, 246, 234, 0.1);
  background: rgba(8, 7, 6, 0.35);
  border-radius: 8px;
  color: var(--muted);
}

.status-banner strong,
.status-panel strong,
.announcement-card h3 {
  color: var(--gold);
}

.status-time,
.countdown {
  margin: 12px 0;
  padding: 14px 16px;
}

.countdown {
  color: var(--gold);
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 900;
}

.announcement-list {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.announcement-card {
  padding: 16px;
}

.announcement-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.announcement-card p {
  margin-bottom: 0;
}

.form-error {
  margin: 10px 0 0;
  color: var(--gold);
  font-weight: 900;
}

.guest-pass-lede {
  max-width: 48rem;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.6;
}

.guest-pass-card {
  margin: 22px 0;
  padding: 20px;
  border: 1px dashed rgba(241, 185, 80, 0.55);
  background: rgba(15, 13, 12, 0.72);
  border-radius: 8px;
}

.guest-pass-card h2 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
}

.guest-pass-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--gold);
  font-weight: 800;
  line-height: 1.45;
}

.tab-button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: rgba(38, 33, 29, 0.82);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
}

.tab-button:hover,
.tab-button:focus-visible {
  border-color: var(--gold);
  color: var(--text);
  outline: none;
}

.tab-button.active {
  border-color: var(--red);
  background: linear-gradient(180deg, var(--red), var(--red-dark));
  color: #fff;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.bar-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: stretch;
}

.home-panel {
  border: 1px solid rgba(255, 246, 234, 0.12);
  background: rgba(29, 26, 24, 0.88);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 42px);
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.room-card,
.inline-placeholder {
  border: 1px solid rgba(255, 246, 234, 0.1);
  background: rgba(15, 13, 12, 0.62);
  border-radius: 8px;
  padding: 18px;
}

.room-card {
  min-height: 100%;
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.room-card:hover,
.room-card:focus-visible {
  border-color: rgba(241, 185, 80, 0.75);
  background: rgba(78, 30, 26, 0.78);
  outline: none;
  transform: translateY(-2px);
}

.room-card span {
  display: inline-block;
  margin-top: 14px;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
}

.room-card span::after {
  content: " ->";
}

.room-grid h3,
.inline-placeholder h3 {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 1.1rem;
}

.room-grid p,
.inline-placeholder p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.join-panel,
.room-stage,
.placeholder-panel {
  border: 1px solid rgba(255, 246, 234, 0.12);
  background: rgba(29, 26, 24, 0.88);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.join-panel {
  min-height: 480px;
  padding: clamp(24px, 4vw, 42px);
}

.intro-copy {
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
}

.join-form {
  margin-top: 28px;
}

.join-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 800;
}

.join-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.join-row input,
.form-row input,
.form-row select {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--line);
  background: #0f0d0c;
  border-radius: 8px;
  color: var(--text);
  padding: 0 16px;
  outline: none;
}

.join-row input:focus,
.form-row input:focus,
.form-row select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(241, 185, 80, 0.18);
}

.join-button {
  min-height: 60px;
  border: 0;
  background: linear-gradient(180deg, #ec463c, var(--red-dark));
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-size: 1.12rem;
  font-weight: 900;
  text-transform: uppercase;
}

.live-video-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0 18px;
  text-align: center;
  text-decoration: none;
}

.join-button:hover,
.join-button:focus-visible {
  filter: brightness(1.08);
  outline: 3px solid rgba(241, 185, 80, 0.28);
  outline-offset: 2px;
}

.disabled-link {
  background: linear-gradient(180deg, #6b3d39, #402522);
  color: rgba(255, 246, 234, 0.72);
  cursor: not-allowed;
  filter: saturate(0.45) brightness(0.82);
  opacity: 0.72;
  pointer-events: none;
}

.room-tips {
  display: grid;
  gap: 8px;
  margin: 24px 0 14px;
  padding-left: 20px;
  color: var(--gold);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.45;
}

.room-details {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.presence-panel {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid rgba(241, 185, 80, 0.28);
  background: rgba(15, 13, 12, 0.7);
  border-radius: 8px;
}

.presence-panel h3 {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 1.05rem;
}

.presence-note,
.presence-count {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.presence-count {
  color: var(--gold);
  font-weight: 900;
}

.presence-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.presence-list li {
  display: grid;
  gap: 12px;
  border-top: 1px solid rgba(255, 246, 234, 0.08);
  padding-top: 8px;
  color: var(--text);
  font-size: 0.94rem;
}

.presence-list li.presence-dog-tag {
  padding: 12px 14px;
  border: 1px solid rgba(255, 246, 234, 0.14);
  border-radius: 8px;
}

.presence-list span {
  color: var(--muted);
}

.presence-list em {
  color: var(--gold);
  font-style: normal;
  font-weight: 900;
}

.room-stage {
  min-height: 480px;
  padding: 10px;
}

.video-room {
  display: grid;
  width: 100%;
  min-height: 460px;
  height: min(68vh, 720px);
  overflow: hidden;
  border-radius: 6px;
  background:
    linear-gradient(rgba(17, 16, 15, 0.55), rgba(17, 16, 15, 0.75)),
    repeating-linear-gradient(135deg, #151210 0 12px, #1b1714 12px 24px);
}

.video-room iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.empty-room {
  place-self: center;
  max-width: 24rem;
  padding: 24px;
  text-align: center;
  color: var(--muted);
}

.empty-title {
  margin-bottom: 6px;
  color: var(--text);
  font-size: 1.4rem;
  font-weight: 900;
}

.external-room-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  margin-top: 16px;
  padding: 0 18px;
  border-radius: 8px;
  background: linear-gradient(180deg, #ec463c, var(--red-dark));
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.placeholder-panel {
  min-height: 360px;
  padding: clamp(24px, 4vw, 42px);
}

.placeholder-panel p {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 18px;
  margin-top: 18px;
}

.watch-player-panel,
.watch-side-panel,
.game-grid {
  display: grid;
  gap: 14px;
}

.mtv-player {
  width: 100%;
  min-height: 320px;
  border: 1px solid rgba(255, 246, 234, 0.12);
  border-radius: 8px;
  background: #050505;
}

.game-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.phase-notes {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  margin-top: 18px;
}

.help-panel,
.coming-soon {
  border: 1px solid rgba(255, 246, 234, 0.12);
  background: rgba(29, 26, 24, 0.88);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(22px, 3vw, 32px);
}

.camera-help {
  margin-top: 18px;
}

.help-panel h2,
.coming-soon h2 {
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
}

.help-panel p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.6;
}

.coming-soon ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 0;
  padding-left: 20px;
  color: var(--gold);
  font-weight: 800;
  line-height: 1.45;
}

@media (min-width: 760px) {
  .join-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .site-header,
  .bar-layout,
  .watch-layout,
  .game-grid,
  .phase-notes,
  .room-grid,
  .membership-card-details,
  .front-door-actions {
    grid-template-columns: 1fr;
  }

  .site-header {
    display: grid;
  }

  .header-actions {
    align-items: flex-start;
  }

  .status-pill {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .app-shell {
    width: min(100% - 20px, 1180px);
    padding: 18px 0;
  }

  .site-header {
    padding-top: 6px;
  }

  .tab-button {
    min-height: 42px;
    padding: 0 12px;
    font-size: 0.92rem;
  }

  .join-panel,
  .room-stage,
  .placeholder-panel {
    border-radius: 6px;
  }

  .join-panel,
  .placeholder-panel,
  .front-door-panel,
  .guest-pass-panel,
  .home-panel,
  .help-panel,
  .coming-soon {
    padding: 22px;
  }

  .video-room {
    min-height: 420px;
    height: 64vh;
  }

  .coming-soon ul {
    grid-template-columns: 1fr;
  }
}
