/* ============================================================
   The Merry Meeple - Design System
   Dark Academia board game cafe, Bed-Stuy Brooklyn
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
button { font: inherit; color: inherit; }

:root {
  --ink:       #1a1208;
  --parchment: #f5edd6;
  --cream:     #faf5e8;
  --hunter:    #2a3d2e;
  --moss:      #3d5c3a;
  --brass:     #b08c4a;
  --gold:      #d4a94b;
  --shadow:    rgba(26,18,8,0.55);
  --serif-display: 'IM Fell English', serif;
  --serif-body:    'Cormorant Garamond', serif;
  --serif-fine:    'Crimson Pro', serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--parchment);
  font-family: var(--serif-body);
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* -- grain overlay -- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.06'/%3E%3C/svg%3E");
  opacity: 0.35;
  pointer-events: none;
  z-index: 999;
}

/* -- radial vignette -- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, transparent 35%, rgba(10,8,4,0.72) 100%);
  pointer-events: none;
  z-index: 1;
}

/* -- background pattern -- */
.bg-pattern {
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg,   transparent, transparent 39px, rgba(176,140,74,0.04) 40px),
    repeating-linear-gradient(90deg,  transparent, transparent 39px, rgba(176,140,74,0.04) 40px);
  z-index: 0;
}

/* -- corner ornaments -- */
.corner { position: fixed; width: 120px; height: 120px; opacity: 0.22; z-index: 2; pointer-events: none; }
.corner svg { width: 100%; height: 100%; }
.corner--tl { top: 16px; left: 16px; }
.corner--tr { top: 16px; right: 16px; transform: scaleX(-1); }
.corner--bl { bottom: 16px; left: 16px; transform: scaleY(-1); }
.corner--br { bottom: 16px; right: 16px; transform: scale(-1,-1); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4 {
  font-family: var(--serif-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--parchment);
}

h1 { font-size: clamp(36px, 7vw, 68px); }
h2 { font-size: clamp(28px, 5vw, 44px); margin-bottom: 16px; }
h3 { font-size: clamp(20px, 3vw, 28px); margin-bottom: 12px; }
h4 { font-size: clamp(17px, 2.5vw, 22px); margin-bottom: 8px; }

p { margin-bottom: 1em; }

a {
  color: var(--brass);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--gold); }

.eyebrow {
  font-family: var(--serif-fine);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 12px;
}

.body-muted {
  color: rgba(245,237,214,0.65);
}

/* ============================================================
   LAYOUT
   ============================================================ */

.page-wrap {
  position: relative;
  z-index: 10;
}

.section {
  padding: 80px 24px;
  max-width: 960px;
  margin: 0 auto;
}

.section--narrow { max-width: 680px; }
.section--wide { max-width: 1100px; }
.section--center { text-align: center; }

.section--hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: background 0.3s, box-shadow 0.3s;
}

.site-nav.scrolled {
  background: rgba(26,18,8,0.92);
  box-shadow: 0 1px 0 rgba(176,140,74,0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--parchment);
}

.nav-logo svg { width: 36px; height: 36px; }

.nav-logo-text {
  font-family: var(--serif-display);
  font-size: 16px;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--serif-fine);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245,237,214,0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--brass); }

.nav-cta {
  font-family: var(--serif-fine);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink) !important;
  background: var(--brass);
  padding: 8px 18px;
  transition: background 0.2s, color 0.2s;
}

.nav-cta:hover {
  background: var(--gold);
  color: var(--ink) !important;
}

/* hamburger */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--parchment);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* mobile overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,18,8,0.97);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}

.nav-overlay.open { display: flex; }

.nav-overlay a {
  font-family: var(--serif-display);
  font-size: 28px;
  color: var(--parchment);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-overlay a:hover { color: var(--brass); }

/* ============================================================
   DIVIDER ORNAMENT
   ============================================================ */

.divider {
  width: 260px;
  margin: 32px auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.divider--left { margin-left: 0; }

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(176,140,74,0.5));
}
.divider-line.right {
  background: linear-gradient(to left, transparent, rgba(176,140,74,0.5));
}
.divider-gem {
  width: 6px; height: 6px;
  background: var(--brass);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ============================================================
   CANDLES (hero)
   ============================================================ */

.candles {
  display: flex;
  gap: 48px;
  align-items: flex-end;
  margin-bottom: 32px;
}

.candle { position: relative; display: flex; flex-direction: column; align-items: center; }

.flame {
  width: 10px; height: 20px;
  background: radial-gradient(ellipse at 50% 85%, #f9e04b 0%, #e8922a 55%, transparent 100%);
  border-radius: 50% 50% 30% 30%;
  animation: flicker 1.8s ease-in-out infinite alternate;
  filter: blur(0.5px);
  margin-bottom: -2px;
}
.flame.small { width: 7px; height: 14px; animation-duration: 1.4s; animation-delay: 0.3s; }
.wick { width: 1px; height: 5px; background: #8a7050; margin-bottom: -1px; }
.candle-body { width: 12px; height: 60px; background: linear-gradient(to right, #c8b478, #e8d090, #c8b478); border-radius: 2px; }
.candle-body.short { height: 40px; width: 10px; }
.wax-drip {
  position: absolute; bottom: 0; left: 2px;
  width: 4px; height: 12px;
  background: #e0cc88; border-radius: 0 0 4px 4px;
}
.glow {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  width: 60px; height: 60px;
  background: radial-gradient(circle, rgba(249,224,75,0.18) 0%, transparent 70%);
  animation: glow-pulse 1.8s ease-in-out infinite alternate;
  pointer-events: none;
}

/* ============================================================
   CARDS
   ============================================================ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.card-grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: rgba(42,61,46,0.12);
  border: 0.5px solid rgba(176,140,74,0.2);
  padding: 32px 28px;
  transition: border-color 0.3s, transform 0.2s;
}

.card:hover {
  border-color: rgba(176,140,74,0.45);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px; height: 48px;
  margin-bottom: 16px;
  color: var(--brass);
}

.card-icon svg { width: 100%; height: 100%; }

.card h3 {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 20px;
  margin-bottom: 8px;
}

.card p {
  font-size: 15px;
  color: rgba(245,237,214,0.65);
  line-height: 1.7;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-block;
  font-family: var(--serif-fine);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 28px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn--brass {
  background: var(--brass);
  color: var(--ink);
}
.btn--brass:hover {
  background: var(--gold);
  color: var(--ink);
}

.btn--outline {
  background: transparent;
  color: var(--brass);
  border: 0.5px solid rgba(176,140,74,0.4);
}
.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ============================================================
   FORMS
   ============================================================ */

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-label {
  display: block;
  font-family: var(--serif-fine);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245,237,214,0.5);
  margin-bottom: 6px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 0.5px solid rgba(176,140,74,0.3);
  padding: 12px 16px;
  font-family: var(--serif-body);
  font-size: 15px;
  font-weight: 300;
  color: var(--parchment);
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--brass);
}

.form-input::placeholder,
.form-textarea::placeholder { color: rgba(245,237,214,0.25); }

.form-textarea { resize: vertical; min-height: 100px; }

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23b08c4a' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-consent {
  font-family: var(--serif-fine);
  font-size: 10px;
  color: rgba(245,237,214,0.3);
  line-height: 1.5;
  margin-top: 12px;
}

.form-success {
  display: none;
  font-family: var(--serif-body);
  font-style: italic;
  font-size: 16px;
  color: var(--brass);
  padding: 20px 0;
}

/* ============================================================
   ACCORDION (FAQ)
   ============================================================ */

.accordion { margin-top: 24px; }

.accordion-item {
  border-bottom: 0.5px solid rgba(176,140,74,0.15);
}

.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  font-family: var(--serif-body);
  font-size: 17px;
  font-weight: 400;
  color: var(--parchment);
  transition: color 0.2s;
}

.accordion-trigger:hover { color: var(--brass); }

.accordion-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.3s;
}

.accordion-item.open .accordion-icon { transform: rotate(45deg); }

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.accordion-inner {
  padding: 0 0 20px;
  font-size: 15px;
  color: rgba(245,237,214,0.65);
  line-height: 1.7;
}

/* ============================================================
   LOCATION BLOCK
   ============================================================ */

.location-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif-fine);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  border: 0.5px solid rgba(176,140,74,0.35);
  padding: 8px 20px;
}

.location-dot {
  width: 5px; height: 5px;
  background: var(--brass);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================================
   EVENT CARDS
   ============================================================ */

.event-card {
  background: rgba(42,61,46,0.1);
  border: 0.5px solid rgba(176,140,74,0.18);
  padding: 28px 24px;
  transition: border-color 0.3s;
}

.event-card:hover { border-color: rgba(176,140,74,0.4); }

.event-date {
  font-family: var(--serif-fine);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 8px;
}

.event-card h3 {
  font-style: italic;
  margin-bottom: 8px;
}

.event-card p {
  font-size: 14px;
  color: rgba(245,237,214,0.6);
}

/* ============================================================
   TEAM CARDS
   ============================================================ */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 32px;
}

.team-card {
  text-align: center;
  padding: 40px 28px;
  border: 0.5px solid rgba(176,140,74,0.15);
}

.team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(42,61,46,0.3);
  border: 1px solid rgba(176,140,74,0.25);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif-display);
  font-size: 28px;
  color: var(--brass);
}

.team-card h3 { font-style: italic; margin-bottom: 4px; }

.team-role {
  font-family: var(--serif-fine);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 12px;
}

.team-card p {
  font-size: 15px;
  color: rgba(245,237,214,0.6);
}

/* ============================================================
   MENU SECTION
   ============================================================ */

.menu-section { margin-bottom: 48px; }

.menu-section h3 {
  font-style: italic;
  border-bottom: 0.5px solid rgba(176,140,74,0.2);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 0.5px solid rgba(176,140,74,0.08);
}

.menu-item-name {
  font-family: var(--serif-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--parchment);
}

.menu-item-desc {
  font-size: 14px;
  color: rgba(245,237,214,0.5);
  font-style: italic;
}

.menu-item-price {
  font-family: var(--serif-fine);
  font-size: 13px;
  color: var(--brass);
  flex-shrink: 0;
  margin-left: 16px;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  position: relative;
  z-index: 10;
  border-top: 0.5px solid rgba(176,140,74,0.15);
  padding: 48px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

.footer-col h4 {
  font-family: var(--serif-fine);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 16px;
}

.footer-col p,
.footer-col a {
  font-size: 14px;
  color: rgba(245,237,214,0.5);
  line-height: 1.8;
}

.footer-col a:hover { color: var(--brass); }

.footer-nav {
  list-style: none;
}

.footer-nav li { margin-bottom: 8px; }

.footer-nav a {
  font-family: var(--serif-body);
  font-size: 14px;
  color: rgba(245,237,214,0.5);
  text-decoration: none;
}

.footer-nav a:hover { color: var(--brass); }

.footer-bottom {
  max-width: 1100px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 0.5px solid rgba(176,140,74,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--serif-fine);
  font-size: 11px;
  color: rgba(245,237,214,0.25);
  letter-spacing: 0.08em;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: rgba(245,237,214,0.35);
  transition: color 0.2s;
}

.footer-social a:hover { color: var(--brass); }

/* ============================================================
   MAP
   ============================================================ */

.map-embed {
  width: 100%;
  height: 300px;
  border: 0.5px solid rgba(176,140,74,0.2);
  filter: grayscale(0.6) brightness(0.7) sepia(0.3);
}

/* ============================================================
   HOW IT WORKS STEPS
   ============================================================ */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 32px 0;
  text-align: center;
}

.step-num {
  font-family: var(--serif-display);
  font-size: 36px;
  color: rgba(176,140,74,0.3);
  margin-bottom: 8px;
}

.step h4 {
  font-style: italic;
  font-size: 18px;
  margin-bottom: 4px;
}

.step p {
  font-size: 14px;
  color: rgba(245,237,214,0.55);
}

/* ============================================================
   SIGNUP BLOCK (footer newsletter)
   ============================================================ */

.signup-inline {
  margin-top: 8px;
}

.signup-row {
  display: flex;
  gap: 0;
  border: 0.5px solid rgba(176,140,74,0.35);
}

.signup-row input {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: none;
  padding: 10px 14px;
  font-family: var(--serif-fine);
  font-size: 13px;
  color: var(--parchment);
  outline: none;
  min-width: 0;
}

.signup-row input::placeholder { color: rgba(245,237,214,0.25); }

.signup-row button {
  background: var(--brass);
  border: none;
  padding: 10px 16px;
  font-family: var(--serif-fine);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.signup-row button:hover { background: var(--gold); }

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes flicker {
  0%   { transform: rotate(-2deg) scaleX(1) scaleY(1); opacity: 0.9; }
  25%  { transform: rotate(1deg) scaleX(0.95) scaleY(1.05); }
  50%  { transform: rotate(-1deg) scaleX(1.03) scaleY(0.97); opacity: 1; }
  75%  { transform: rotate(2deg) scaleX(0.97) scaleY(1.02); }
  100% { transform: rotate(-1deg) scaleX(1.01) scaleY(0.98); opacity: 0.88; }
}

@keyframes glow-pulse {
  0%   { opacity: 0.6; transform: translateX(-50%) scale(1); }
  100% { opacity: 1;   transform: translateX(-50%) scale(1.15); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .corner { width: 70px; height: 70px; }

  .nav-links { display: none; }
  .nav-hamburger { display: block; }

  .card-grid--3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }

  .section { padding: 60px 20px; }
  .section--hero { padding: 100px 20px 60px; }
}

@media (max-width: 480px) {
  .candles { gap: 32px; }
  .steps { grid-template-columns: 1fr; }
  .signup-row { flex-direction: column; }
  .signup-row button { padding: 10px; }
}

/* ============================================================
   LFG - LOOKING FOR GROUP
   ============================================================ */

.lfg-hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

/* -- filters -- */
.lfg-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 24px;
}

.lfg-filter {
  background: rgba(255,255,255,0.04);
  border: 0.5px solid rgba(176,140,74,0.25);
  padding: 8px 14px;
  font-family: var(--serif-fine);
  font-size: 12px;
  color: var(--parchment);
  appearance: none;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.lfg-filter:focus { border-color: var(--brass); }

.lfg-filter option { background: var(--ink); color: var(--parchment); }

/* -- group cards -- */
.lfg-group-card {
  background: rgba(42,61,46,0.1);
  border: 0.5px solid rgba(176,140,74,0.18);
  padding: 24px;
  transition: border-color 0.3s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lfg-group-card:hover { border-color: rgba(176,140,74,0.45); }

.lfg-game-label {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 20px;
  color: var(--parchment);
}

.lfg-category-tag {
  display: inline-block;
  font-family: var(--serif-fine);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  border: 0.5px solid rgba(176,140,74,0.3);
  padding: 3px 10px;
  margin-top: 2px;
}

.lfg-schedule {
  font-family: var(--serif-body);
  font-size: 14px;
  color: rgba(245,237,214,0.6);
}

.lfg-players {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lfg-meeple {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  max-width: 20px;
  max-height: 20px;
  display: inline-block;
  vertical-align: middle;
  opacity: 0.3;
  transition: opacity 0.2s;
}

.lfg-meeple.filled { opacity: 1; }

.lfg-creator {
  font-family: var(--serif-fine);
  font-size: 11px;
  color: rgba(245,237,214,0.4);
  letter-spacing: 0.1em;
}

.lfg-note {
  font-family: var(--serif-body);
  font-size: 13px;
  font-style: italic;
  color: rgba(245,237,214,0.45);
}

.lfg-card-footer {
  margin-top: auto;
  padding-top: 8px;
}

.lfg-empty {
  text-align: center;
  padding: 48px 24px;
  color: rgba(245,237,214,0.4);
  font-style: italic;
  font-size: 16px;
}

/* -- modal -- */
.lfg-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(10,8,4,0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lfg-modal.open { display: flex; }

.lfg-modal-inner {
  background: #1e1710;
  border: 0.5px solid rgba(176,140,74,0.3);
  max-width: 440px;
  width: 100%;
  padding: 40px 32px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.lfg-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: rgba(245,237,214,0.4);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.lfg-modal-close:hover { color: var(--brass); }

/* -- code input -- */
.lfg-code-inputs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 20px 0;
}

.lfg-code-input {
  width: 44px;
  height: 52px;
  text-align: center;
  font-family: var(--serif-body);
  font-size: 22px;
  font-weight: 400;
  color: var(--parchment);
  background: rgba(255,255,255,0.04);
  border: 0.5px solid rgba(176,140,74,0.3);
  outline: none;
  transition: border-color 0.2s;
}

.lfg-code-input:focus { border-color: var(--brass); }

/* -- game picker -- */
.lfg-game-search-wrap {
  position: relative;
}

.lfg-game-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #1e1710;
  border: 0.5px solid rgba(176,140,74,0.3);
  border-top: none;
  max-height: 200px;
  overflow-y: auto;
  z-index: 20;
  display: none;
}

.lfg-game-dropdown.open { display: block; }

.lfg-game-result {
  padding: 10px 16px;
  cursor: pointer;
  font-family: var(--serif-body);
  font-size: 14px;
  color: var(--parchment);
  border-bottom: 0.5px solid rgba(176,140,74,0.08);
  transition: background 0.15s;
}

.lfg-game-result:hover { background: rgba(176,140,74,0.1); }

.lfg-game-result-meta {
  font-family: var(--serif-fine);
  font-size: 10px;
  color: rgba(245,237,214,0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* -- category chips -- */
.lfg-category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.lfg-chip {
  font-family: var(--serif-fine);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 0.5px solid rgba(176,140,74,0.3);
  background: transparent;
  color: rgba(245,237,214,0.6);
  cursor: pointer;
  transition: all 0.2s;
}

.lfg-chip:hover { border-color: var(--brass); color: var(--parchment); }

.lfg-chip.active {
  background: var(--brass);
  color: var(--ink);
  border-color: var(--brass);
}

/* -- stepper -- */
.lfg-stepper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lfg-stepper-btn {
  width: 36px;
  height: 36px;
  background: transparent;
  border: 0.5px solid rgba(176,140,74,0.3);
  color: var(--brass);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.lfg-stepper-btn:hover { background: rgba(176,140,74,0.15); }

.lfg-stepper-val {
  font-family: var(--serif-display);
  font-size: 24px;
  color: var(--parchment);
  min-width: 24px;
  text-align: center;
}

/* -- schedule toggle -- */
.lfg-toggle {
  display: flex;
  border: 0.5px solid rgba(176,140,74,0.3);
  margin-bottom: 16px;
}

.lfg-toggle-opt {
  flex: 1;
  padding: 10px 16px;
  font-family: var(--serif-fine);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  background: transparent;
  border: none;
  color: rgba(245,237,214,0.5);
  cursor: pointer;
  transition: all 0.2s;
}

.lfg-toggle-opt.active {
  background: var(--brass);
  color: var(--ink);
}

/* -- my groups -- */
.lfg-my-group {
  background: rgba(42,61,46,0.08);
  border: 0.5px solid rgba(176,140,74,0.15);
  padding: 20px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.lfg-my-group-info { flex: 1; min-width: 200px; }

.lfg-status {
  font-family: var(--serif-fine);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 3px 10px;
}

.lfg-status--open { color: var(--moss); border: 0.5px solid rgba(61,92,58,0.4); }
.lfg-status--confirming { color: var(--gold); border: 0.5px solid rgba(212,169,75,0.4); }
.lfg-status--confirmed { color: var(--brass); border: 0.5px solid rgba(176,140,74,0.4); }

.lfg-leave-btn {
  background: none;
  border: 0.5px solid rgba(176,140,74,0.2);
  color: rgba(245,237,214,0.4);
  font-family: var(--serif-fine);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.lfg-leave-btn:hover { color: #c44; border-color: rgba(204,68,68,0.4); }

/* -- LFG responsive -- */
@media (max-width: 768px) {
  .lfg-modal-inner { padding: 32px 20px; }
  .lfg-code-input { width: 38px; height: 46px; font-size: 18px; }
  .lfg-filters { gap: 8px; }
  .lfg-my-group { flex-direction: column; align-items: stretch; }
}

@media (max-width: 480px) {
  .lfg-hero-actions { flex-direction: column; align-items: center; }
  .lfg-code-inputs { gap: 6px; }
  .lfg-code-input { width: 34px; height: 42px; font-size: 16px; }
}

/* ============================================================
   GAME BROWSER
   ============================================================ */

.browse-nav {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  min-height: 32px;
}

.browse-back,
.browse-reset {
  background: none;
  border: none;
  font-family: var(--serif-fine);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.2s;
}

.browse-back:hover,
.browse-reset:hover { color: var(--gold); }

/* party size grid */
.browse-size-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 360px;
  margin: 0 auto;
}

.browse-size-btn {
  background: transparent;
  border: 1px solid rgba(176,140,74,0.3);
  padding: 20px 16px;
  font-family: var(--serif-display);
  font-size: 28px;
  color: var(--parchment);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  -webkit-appearance: none;
  appearance: none;
}

.browse-size-btn span {
  display: block;
  font-family: var(--serif-fine);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245,237,214,0.5);
  margin-top: 4px;
}

.browse-size-btn:hover {
  border-color: var(--gold);
  background: rgba(176,140,74,0.1);
}

/* hub buttons */
.browse-hub-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
}

.browse-hub-btn {
  background: transparent;
  border: 1px solid rgba(176,140,74,0.25);
  padding: 18px 20px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 16px;
  -webkit-appearance: none;
  appearance: none;
}

.browse-hub-btn:hover {
  border-color: var(--gold);
  background: rgba(176,140,74,0.08);
}

.browse-hub-primary {
  border-color: rgba(176,140,74,0.5);
}

.browse-hub-icon {
  font-size: 22px;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
  opacity: 0.7;
}

.browse-hub-label {
  font-family: var(--serif-body);
  font-size: 17px;
  font-weight: 400;
  color: var(--parchment);
  display: block;
}

.browse-hub-desc {
  font-family: var(--serif-fine);
  font-size: 12px;
  color: rgba(245,237,214,0.45);
  display: block;
  margin-top: 2px;
}

/* chips (category/mechanic/theme pickers) */
.browse-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 520px;
  margin: 0 auto;
}

.browse-chip {
  font-family: var(--serif-fine);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid rgba(176,140,74,0.3);
  background: transparent;
  color: rgba(245,237,214,0.7);
  cursor: pointer;
  transition: all 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.browse-chip:hover {
  border-color: var(--brass);
  color: var(--parchment);
}

.browse-chip.active {
  background: var(--brass);
  color: var(--ink);
  border-color: var(--brass);
}

.browse-chip:disabled {
  opacity: 0.3;
  cursor: default;
}

.browse-chip-count {
  font-size: 10px;
  opacity: 0.5;
  margin-left: 4px;
}

/* option buttons (playtime, complexity) */
.browse-option-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
  margin: 0 auto;
}

.browse-option {
  background: transparent;
  border: 1px solid rgba(176,140,74,0.25);
  padding: 14px 20px;
  font-family: var(--serif-body);
  font-size: 16px;
  color: var(--parchment);
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
}

.browse-option:hover {
  border-color: var(--gold);
  background: rgba(176,140,74,0.08);
}

/* active filters */
.browse-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}

.browse-filter-pill {
  font-family: var(--serif-fine);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid rgba(176,140,74,0.4);
  background: transparent;
  color: var(--brass);
  cursor: pointer;
  transition: all 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.browse-filter-pill:hover {
  border-color: rgba(204,68,68,0.5);
  color: #c44;
}

/* game list */
.browse-game-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 600px;
  margin: 0 auto;
}

.browse-game-card {
  background: transparent;
  border: 1px solid rgba(176,140,74,0.18);
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
  overflow: hidden;
}

.browse-game-card:hover {
  border-color: var(--gold);
  background: rgba(176,140,74,0.06);
}

.browse-card-img {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  overflow: hidden;
  background: rgba(42,61,46,0.15);
  border: 0.5px solid rgba(176,140,74,0.1);
}

.browse-card-img img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  display: block;
}

.browse-card-img--empty { width: 72px; height: 72px; }

.browse-card-body {
  flex: 1;
  min-width: 0;
}

.browse-game-title {
  font-family: var(--serif-body);
  font-size: 17px;
  font-weight: 400;
  color: var(--parchment);
}

.browse-game-meta {
  font-family: var(--serif-fine);
  font-size: 11px;
  color: rgba(245,237,214,0.45);
  letter-spacing: 0.08em;
  margin-top: 2px;
}

.browse-game-desc {
  font-family: var(--serif-body);
  font-size: 13px;
  color: rgba(245,237,214,0.5);
  margin-top: 4px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.browse-game-cat {
  font-family: var(--serif-fine);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: 4px;
  opacity: 0.7;
}

/* detail view */
.browse-detail {
  max-width: 600px;
  margin: 0 auto;
}

.browse-detail-img {
  margin-bottom: 20px;
  border: 0.5px solid rgba(176,140,74,0.15);
  overflow: hidden;
  max-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(42,61,46,0.08);
}

.browse-detail-img img {
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
}

.browse-detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.browse-detail-stat {
  font-family: var(--serif-fine);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(245,237,214,0.6);
  padding: 4px 12px;
  border: 0.5px solid rgba(176,140,74,0.2);
}

.browse-detail-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.browse-detail-pill {
  font-family: var(--serif-fine);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  padding: 3px 10px;
  border: 0.5px solid rgba(176,140,74,0.25);
}

.browse-detail-short {
  font-family: var(--serif-body);
  font-size: 17px;
  font-weight: 400;
  font-style: italic;
  color: rgba(245,237,214,0.75);
  margin: 16px 0 8px;
  line-height: 1.6;
}

.browse-detail-full {
  font-family: var(--serif-body);
  font-size: 14px;
  font-weight: 300;
  color: rgba(245,237,214,0.5);
  line-height: 1.7;
  margin-bottom: 20px;
}

.browse-detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

@media (max-width: 480px) {
  .browse-card-img { width: 56px; min-height: 56px; }
  .browse-card-body { padding: 10px 12px; }
  .browse-detail-img { max-height: 240px; }
  .browse-detail-img img { max-height: 240px; }
}
