/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --clr-bg:         #fdf6f9;
  --clr-bg2:        #ffffff;
  --clr-surface:    #faedf4;
  --clr-surface2:   #f5dce9;
  --clr-primary:    #73275f;
  --clr-primary-d:  #5a1e4a;
  --clr-primary-l:  #f9eaf4;
  --clr-accent:     #f280aa;
  --clr-accent2:    #f29b88;
  --clr-accent-l:   #fde8f0;
  --clr-text:       #0d0d0d;
  --clr-text-muted: #6b5a65;
  --clr-border:     #f0dde9;
  --radius:         16px;
  --radius-sm:      8px;
  --shadow-sm:      0 2px 12px rgba(115,39,95,0.08);
  --shadow:         0 8px 32px rgba(115,39,95,0.14);
  --shadow-lg:      0 20px 60px rgba(115,39,95,0.18);
  --transition:     0.25s ease;
  --font-heading:   'Raleway', sans-serif;
  --font-body:      'Poppins', sans-serif;
  --container:      1040px;
  --header-h:       72px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-body);
  line-height: 1.7;
  min-height: 100vh;
}

p { text-align: justify; }
.page-hero p,
.section-subtitle,
.stat-label,
.no-events p,
.member-bio { text-align: center; }

a { color: var(--clr-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--clr-primary-d); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; color: var(--clr-text); }

/* ===== UTILITIES ===== */
.container { width: min(var(--container), 100% - 2rem); margin-inline: auto; }

.section-label {
  display: inline-block;
  background: var(--clr-primary-l);
  color: var(--clr-primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  margin-bottom: 0.6rem;
  color: var(--clr-text);
}
.section-subtitle {
  color: var(--clr-text-muted);
  font-size: 1.05rem;
  margin-bottom: 3rem;
  max-width: 560px;
}
.text-center { text-align: center; }
.text-center .section-subtitle { margin-inline: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.9rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--clr-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--clr-primary-d);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(115,39,95,0.35);
}
.btn-outline {
  background: transparent;
  border-color: var(--clr-primary);
  color: var(--clr-primary);
}
.btn-outline:hover {
  background: var(--clr-primary);
  color: #fff;
  transform: translateY(-2px);
}
.btn-pink {
  background: var(--clr-accent);
  color: #fff;
}
.btn-pink:hover {
  background: #db2777;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(242,128,170,0.35);
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(253,246,249,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--clr-border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}
.logo img { height: 44px; width: auto; }
.logo-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--clr-primary);
  letter-spacing: 0.03em;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
}
.main-nav a {
  padding: 0.4rem 0.6rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--clr-text-muted);
  transition: all var(--transition);
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--clr-primary);
  background: var(--clr-primary-l);
}
.main-nav .btn-nav {
  background: var(--clr-primary);
  color: #fff !important;
  padding: 0.4rem 0.9rem;
  margin-left: 0.3rem;
}
.main-nav .btn-nav:hover { background: var(--clr-primary-d); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 1.5rem) 0 3rem;
  background: linear-gradient(135deg, #fff8fb 0%, #faedf4 50%, #fdf3ee 100%);
}

/* decorative blobs */
.hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(115,39,95,0.1) 0%, transparent 70%);
  top: -100px; right: -100px;
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(242,155,136,0.15) 0%, transparent 70%);
  bottom: -50px; left: 5%;
  border-radius: 50%;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
}
.hero-eyebrow span {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
}
.hero-dot { width: 8px; height: 8px; background: var(--clr-accent); border-radius: 50%; }

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--clr-text);
  margin-bottom: 0.5rem;
  line-height: 1.1;
}
.hero-title .highlight {
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--clr-primary);
  margin-bottom: 1.2rem;
}
.hero-desc {
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  margin-bottom: 2.2rem;
  max-width: 460px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-img-wrap {
  position: relative;
  width: 420px;
  max-width: 100%;
}
.hero-img-wrap img {
  width: 100%;
  filter: drop-shadow(0 24px 48px rgba(115,39,95,0.2));
}
.hero-img-placeholder {
  aspect-ratio: 3/4;
  max-width: 360px;
  background: white;
  border-radius: var(--radius);
  border: 2px dashed var(--clr-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--clr-text-muted);
  font-size: 0.9rem;
}

/* floating badges on hero */
.hero-badge-float {
  position: absolute;
  background: white;
  border-radius: var(--radius);
  padding: 0.8rem 1.1rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--clr-text);
  white-space: nowrap;
}
.hero-badge-float .badge-icon { font-size: 1.4rem; }
.hero-badge-float.b1 { top: 10%; left: -20px; }
.hero-badge-float.b2 { bottom: 18%; right: -10px; }

/* ===== STATS BAR ===== */
.stats-bar {
  background: white;
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  padding: 2.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
}
.stat-item { padding: 0.5rem; position: relative; }
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: var(--clr-border);
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-label { color: var(--clr-text-muted); font-size: 0.9rem; font-weight: 600; }

/* ===== SECTIONS ===== */
section { padding: 5.5rem 0; }

/* ===== ABOUT — split with overlap ===== */
.about-section { background: white; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-img-wrap {
  position: relative;
}
.about-img-wrap img {
  border-radius: var(--radius);
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}
.about-img-placeholder {
  aspect-ratio: 4/3;
  background: var(--clr-surface);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--clr-text-muted);
  font-size: 1rem;
  border: 2px dashed var(--clr-border);
}
/* decorative accent card on the image */
.about-img-wrap .accent-card {
  position: absolute;
  bottom: -24px; right: -24px;
  background: var(--clr-primary);
  color: white;
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  box-shadow: var(--shadow);
  font-family: var(--font-heading);
  font-size: 1rem;
  text-align: center;
  line-height: 1.4;
}
.about-img-wrap .accent-card strong { display: block; font-size: 1.8rem; }

.about-content p { color: var(--clr-text-muted); margin-bottom: 1rem; font-size: 1.02rem; }
.feature-list { list-style: none; margin: 1.5rem 0 2rem; display: flex; flex-direction: column; gap: 0.9rem; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-size: 0.97rem; color: var(--clr-text);
}
.feature-list li .fi {
  width: 28px; height: 28px;
  background: var(--clr-primary-l);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
  color: var(--clr-primary);
  font-weight: 800;
}

/* ===== EVENTS ===== */
.events-section { background: var(--clr-bg); }
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.8rem;
}
.event-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--clr-border);
}
.event-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.event-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--clr-surface), var(--clr-surface2));
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.event-card-img img { width: 100%; height: 100%; object-fit: cover; }
.event-date-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--clr-primary);
  color: white;
  font-family: var(--font-body);
  font-size: 0.75rem; font-weight: 800;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
}
.event-card-body { padding: 1.4rem 1.6rem 1.6rem; }
.event-card-body h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--clr-text); }
.event-meta { display: flex; gap: 1rem; font-size: 0.82rem; color: var(--clr-text-muted); margin-bottom: 0.8rem; font-weight: 600; }
.event-card-body p { font-size: 0.9rem; color: var(--clr-text-muted); }

.no-events {
  grid-column: 1/-1;
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: var(--radius);
  border: 2px dashed var(--clr-border);
  color: var(--clr-text-muted);
}
.no-events .no-icon { font-size: 3rem; margin-bottom: 1rem; }

/* ===== MEMBERS ===== */
.members-section { background: white; }
.members-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}
.member-card {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.member-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); background: white; }
.member-avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
}
.member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-card h3 { font-size: 1rem; color: var(--clr-text); margin-bottom: 0.3rem; }
.member-role {
  font-size: 0.78rem; color: var(--clr-primary); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.07em;
}
.member-card.staff {
  border-color: var(--clr-primary);
  background: white;
}
.member-card.staff .member-role {
  color: var(--clr-accent);
}
.member-bio { font-size: 0.85rem; color: var(--clr-text-muted); margin-top: 0.6rem; }
.member-ig {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: var(--clr-text-muted);
  margin-top: 0.5rem;
  text-align: left;
  transition: color var(--transition);
  text-decoration: none;
  word-break: break-all;
}
.member-ig:hover { color: var(--clr-accent); }

/* ===== PARTNERS ===== */
.partners-section { background: var(--clr-bg); }
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
}
.partner-card {
  background: white;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 2rem 1.2rem;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
  transition: transform var(--transition), box-shadow var(--transition);
  color: inherit;
}
.partner-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.partner-card img { max-height: 70px; object-fit: contain; }
.partner-card span { font-size: 0.9rem; color: var(--clr-text-muted); font-weight: 600; }
.partner-no-logo {
  width: 70px; height: 70px;
  background: var(--clr-surface);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}

/* ===== JOIN CTA ===== */
.join-section {
  background: var(--clr-primary-l);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.join-section::before,
.join-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 60px solid rgba(115,39,95,0.06);
}
.join-section::before { width: 380px; height: 380px; top: -140px; right: -90px; }
.join-section::after  { width: 260px; height: 260px; bottom: -110px; left: -70px; }
.join-section .container { position: relative; z-index: 1; }
.join-section-pill {
  display: inline-block;
  background: white;
  color: var(--clr-primary);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--clr-border);
  margin-bottom: 1.2rem;
}
.join-section h2 { color: var(--clr-primary); font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 0.75rem; }
.join-section p { color: var(--clr-text-muted); max-width: 440px; margin: 0 auto 2rem; font-size: 0.92rem; text-align: center; line-height: 1.7; }
.join-section .btn-group { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; }
.btn-white {
  background: white;
  color: var(--clr-primary);
  border: 2px solid white;
}
.btn-white:hover {
  background: transparent;
  color: white;
  transform: translateY(-2px);
}
.btn-white-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-white-outline:hover {
  background: white;
  color: var(--clr-primary);
  transform: translateY(-2px);
}

/* ===== FORM ===== */
.form-card {
  background: white;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}
.form-group { margin-bottom: 1.3rem; }
.form-group label { display: block; font-weight: 700; margin-bottom: 0.4rem; font-size: 0.9rem; color: var(--clr-text); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--clr-bg);
  border: 1.5px solid var(--clr-border);
  color: var(--clr-text);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(115,39,95,0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.alert { padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem; font-size: 0.95rem; }
.alert-success { background: #f0fdf4; border: 1.5px solid #86efac; color: #166534; }
.alert-error   { background: #fef2f2; border: 1.5px solid #fca5a5; color: #991b1b; }

/* ===== PAGE HERO ===== */
.page-hero {
  padding: calc(var(--header-h) + 4rem) 0 3.5rem;
  text-align: center;
  background: linear-gradient(135deg, #fff8fb 0%, #faedf4 60%, #fdf3ee 100%);
  border-bottom: 1px solid var(--clr-border);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(115,39,95,0.08) 0%, transparent 70%);
  top: -100px; right: -100px;
  border-radius: 50%;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 0.6rem; }
.page-hero p { color: var(--clr-text-muted); font-size: 1.05rem; max-width: 500px; margin: 0 auto; }

/* ===== MISSION CARDS ===== */
.mission-card {
  background: white;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.mission-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.mission-icon { font-size: 2.2rem; margin-bottom: 1rem; color: var(--clr-primary); display: flex; justify-content: center; }
.mission-card h3 { font-size: 1rem; margin-bottom: 0.5rem; text-align: center; }
.mission-card p { font-size: 0.9rem; color: var(--clr-text-muted); }

/* ===== FOOTER ===== */
.site-footer {
  background: #0d0d0d;
  color: rgba(255,255,255,0.8);
  padding-top: 3.5rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  align-items: start;
}
.footer-logo-link {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; margin-bottom: 0.85rem;
}
.footer-logo { height: 36px; }
.footer-logo-text {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 1rem; color: white;
}
.footer-desc {
  color: rgba(255,255,255,0.45); font-size: 0.82rem;
  line-height: 1.65; margin-bottom: 1.1rem; text-align: left;
}
.footer-ig-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  border: 1px solid rgba(255,255,255,0.15); border-radius: 999px;
  padding: 0.3rem 0.85rem; color: rgba(255,255,255,0.65);
  font-size: 0.78rem; text-decoration: none; transition: border-color var(--transition), color var(--transition);
}
.footer-ig-btn:hover { border-color: var(--clr-accent); color: var(--clr-accent); }

.footer-col-title {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--clr-accent); margin-bottom: 1rem; font-weight: 600;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { color: rgba(255,255,255,0.55); font-size: 0.83rem; text-decoration: none; transition: color var(--transition); }
.footer-col a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.2rem 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}
.footer-bottom p { text-align: left; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .hero .container, .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { display: none; }
  .about-img-wrap .accent-card { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .members-grid { grid-template-columns: repeat(4, 1fr); }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: white;
    border-bottom: 1px solid var(--clr-border);
    padding: 1rem 0 1.5rem;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 99;
    box-shadow: var(--shadow);
  }
  .main-nav.open { transform: translateY(0); opacity: 1; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 0 1.5rem; gap: 0.3rem; }
  .main-nav a { display: block; padding: 0.75rem 1rem; border-radius: var(--radius-sm); font-size: 0.95rem; }
  .main-nav .btn-nav { text-align: center; margin-left: 0; margin-top: 0.5rem; border-radius: var(--radius-sm); }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item::after { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .footer-bottom p { text-align: center; }
  .form-card { padding: 1.5rem; }
  section { padding: 4rem 0; }
}

@media (max-width: 600px) {
  .members-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ===== LIGHTBOX ===== */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
#lightbox.active { display: flex; }

.lb-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.lb-img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  cursor: default !important;
}
.lb-caption {
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  text-align: center;
  max-width: 60ch;
}
.lb-close,
.lb-prev,
.lb-next {
  position: fixed;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.25); }
.lb-close { top: 1rem; right: 1rem; font-size: 1.6rem; }
.lb-prev  { left: 1rem;  top: 50%; transform: translateY(-50%); font-size: 2rem; }
.lb-next  { right: 1rem; top: 50%; transform: translateY(-50%); font-size: 2rem; }

/* ===== LA TANIÈRE — EASTER EGG MINIGAME ===== */
/* ── La Tanière minigame ──────────────────────────────────── */
#taniere-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(10, 4, 12, 0.88);
  backdrop-filter: blur(6px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  padding: 1rem;
}
/* ── Secret Vault opening sequence ───────────────────────────────────── */
#taniere-overlay.tg-open {
  display: flex;
  animation: tg-vault-bg 2.4s ease forwards;
}
@keyframes tg-vault-bg {
  0%   { opacity:0; background: #000; }
  /* Blinding flash */
  3%   { opacity:1; background: #fff; }
  7%   { background: rgba(242,128,170,0.6); }
  12%  { background: #000; }
  /* Suspenseful darkness */
  40%  { background: #000; }
  /* Slowly reveal the dark chamber */
  55%  { background: rgba(0,0,0,0.6); }
  /* Huge glow explosion when door slams */
  62%  { background: rgba(255,180,210,0.35); }
  72%  { background: rgba(0,0,0,0.88); }
  100% { background: rgba(0,0,0,0.92); }
}

#taniere-overlay.tg-open #tg-modal {
  animation: tg-vault-open 2.4s forwards;
}
@keyframes tg-vault-open {
  /* ── Phase 1: thin seam of light appears ── */
  0%   { opacity:0; transform: scaleY(0.008) scaleX(0.5) translateY(0px);
         filter: brightness(0);
         box-shadow: none; }
  5%   { opacity:1; transform: scaleY(0.012) scaleX(0.65);
         filter: brightness(4);
         box-shadow: 0 0 0 6px #fff, 0 0 60px 30px rgba(242,128,170,0.9), 0 0 200px 80px rgba(255,200,220,0.5); }
  10%  { transform: scaleY(0.015) scaleX(0.72);
         filter: brightness(2);
         box-shadow: 0 0 0 4px rgba(255,255,255,0.9), 0 0 120px 50px rgba(242,128,170,0.7); }

  /* ── Phase 2: long brutal rumble ── */
  13%  { transform: scaleY(0.018) scaleX(0.75) translateX(-18px) rotate(-1.5deg); }
  16%  { transform: scaleY(0.018) scaleX(0.77) translateX( 18px) rotate( 1.5deg); }
  19%  { transform: scaleY(0.020) scaleX(0.75) translateX(-15px) translateY(-5px) rotate(-1deg); }
  22%  { transform: scaleY(0.020) scaleX(0.78) translateX( 15px) translateY( 5px) rotate( 1deg); }
  25%  { transform: scaleY(0.022) scaleX(0.76) translateX(-12px) rotate(-0.8deg); }
  28%  { transform: scaleY(0.022) scaleX(0.79) translateX( 12px) rotate( 0.8deg); }
  31%  { transform: scaleY(0.024) scaleX(0.77) translateX(-20px) translateY(-8px); }
  34%  { transform: scaleY(0.024) scaleX(0.80) translateX( 20px) translateY( 8px); }
  37%  { transform: scaleY(0.026) scaleX(0.78) translateX(-16px); }
  40%  { transform: scaleY(0.026) scaleX(0.81) translateX( 16px); }
  43%  { transform: scaleY(0.028) scaleX(0.79) translateX(-10px) translateY(-4px); }
  46%  { transform: scaleY(0.028) scaleX(0.82) translateX( 10px) translateY( 4px); }
  49%  { transform: scaleY(0.030) scaleX(0.80) translateX(-6px); }
  52%  { transform: scaleY(0.030) scaleX(0.82) translateX( 6px); }
  55%  { transform: scaleY(0.030) scaleX(0.82) translateX( 0px);
         box-shadow: 0 0 0 5px rgba(255,255,255,0.95), 0 0 150px 70px rgba(242,128,170,1); }

  /* ── Phase 3: one beat of silence then EXPLODES open ── */
  58%  { transform: scaleY(0.030) scaleX(0.82) translateX(0);
         filter: brightness(6);
         box-shadow: 0 0 0 12px #fff, 0 0 250px 120px rgba(255,200,220,1); }

  /* THE SLAM */
  65%  { transform: scaleY(1.35) scaleX(1.08) translateY(-12px);
         filter: brightness(2.5);
         box-shadow: 0 0 0 10px rgba(255,255,255,0.7), 0 0 180px 90px rgba(242,128,170,0.6); }

  /* ── Phase 4: heavy elastic bounce ── */
  71%  { transform: scaleY(0.88) scaleX(1.03) translateY(8px); filter: brightness(1); box-shadow: none; }
  77%  { transform: scaleY(1.12) scaleX(1.01) translateY(-5px); }
  82%  { transform: scaleY(0.94) scaleX(1.005) translateY(3px); }
  87%  { transform: scaleY(1.05) translateY(-2px); }
  92%  { transform: scaleY(0.98) translateY(1px); }
  96%  { transform: scaleY(1.01); }
  100% { opacity:1; transform: scale(1) translateY(0);
         filter: brightness(1);
         box-shadow: 0 24px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(242,128,170,0.06) inset; }
}

.tg-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; pointer-events: none; }
.tg-icon svg { width: 100%; height: 100%; pointer-events: none; }

#tg-modal {
  background: #150910;
  border: 1px solid rgba(242, 128, 170, 0.18);
  border-radius: 20px;
  width: min(95vw, 900px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  color: #f0e8ef;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(242,128,170,0.06) inset;
  overflow: hidden;
}

/* Header */
#tg-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.9rem 1.25rem;
  background: linear-gradient(to right, #0c0610, #110814);
  border-bottom: 1px solid rgba(242, 128, 170, 0.12);
  gap: 0.75rem;
  flex-shrink: 0;
}
#tg-brand { display: flex; align-items: center; gap: 0.65rem; color: #f280aa; }
#tg-title { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 800; color: #f280aa; line-height: 1; }
#tg-subtitle { font-size: 0.72rem; color: rgba(255,255,255,0.38); margin-top: 2px; }
#tg-hud { display: flex; align-items: center; gap: 0.6rem; }
.tg-hud-pill {
  display: flex; align-items: center; gap: 0.35rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.82rem; font-weight: 700;
  color: #f2c17a;
}
.tg-rep-pill { color: #a8f2c1; }
.tg-rep-pill .tg-icon { color: #6fdfaa; }
.tg-tier-pill { color: #c4b5f4; }
.tg-tier-pill .tg-icon { color: #a78bfa; }
.tg-hud-pill .tg-icon { color: #f2c17a; }
#tg-close {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6);
  width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
#tg-close:hover { background: rgba(242, 128, 170, 0.2); color: white; }

/* Body layout */
#tg-body {
  display: grid;
  grid-template-columns: 1fr 270px;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}
#tg-left {
  display: flex; flex-direction: column;
  overflow: hidden;
}
#tg-tables-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 1.25rem 0.4rem;
  flex-shrink: 0;
}
#tg-tables-title { font-size: 0.72rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,0.35); }
#tg-served-count { font-size: 0.72rem; color: #a8c2f2; font-weight: 600; }
#tg-tables {
  padding: 0 1.25rem 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 0.75rem;
  align-content: start;
  overflow-y: auto;
}

/* Table cards */
.tg-table {
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 0.85rem 0.75rem 0.7rem;
  transition: transform 0.15s, border-color 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  min-height: 128px;
  position: relative;
}
.tg-empty {
  background: rgba(255,255,255,0.02);
}
.tg-empty-inner {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  color: rgba(255,255,255,0.18);
  font-size: 0.72rem; letter-spacing: 0.04em;
}
.tg-occupied {
  border-color: rgba(115, 39, 95, 0.6);
  cursor: pointer;
  background: rgba(115, 39, 95, 0.1);
}
.tg-occupied:hover {
  transform: translateY(-3px);
  border-color: #f280aa;
  background: rgba(115, 39, 95, 0.22);
  box-shadow: 0 6px 20px rgba(115, 39, 95, 0.3);
}
.tg-urgent {
  border-color: rgba(220, 80, 80, 0.7) !important;
  background: rgba(220, 80, 80, 0.1) !important;
}
.tg-urgent:hover {
  border-color: #e07070 !important;
  box-shadow: 0 6px 20px rgba(200, 60, 60, 0.35) !important;
}
.tg-cust-icon {
  color: #f280aa;
  width: 36px; height: 36px;
  background: rgba(242, 128, 170, 0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tg-urgent .tg-cust-icon { color: #e07070; background: rgba(220, 80, 80, 0.15); }
.tg-cust-info { text-align: center; }
.tg-cust-name { display: block; font-size: 0.76rem; font-weight: 700; color: rgba(255,255,255,0.85); line-height: 1.2; }
.tg-cust-sub  { display: block; font-size: 0.65rem; color: rgba(255,255,255,0.4); margin-top: 1px; }
.tg-timer-wrap {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.15rem;
}
.tg-timer-bar {
  height: 100%;
  background: linear-gradient(90deg, #f280aa, #f2a4c7);
  border-radius: 2px;
  transition: width 0.1s linear;
}
.tg-urgent .tg-timer-bar { background: linear-gradient(90deg, #e05050, #e07070); }
.tg-earn-badge {
  position: absolute; top: 7px; right: 8px;
  font-size: 0.65rem; font-weight: 700;
  color: #f2c17a;
  background: rgba(242, 193, 122, 0.15);
  border-radius: 999px;
  padding: 1px 6px;
}

/* Right panel */
#tg-right {
  border-left: 1px solid rgba(255,255,255,0.07);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.tg-panel-title {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,0.32); padding: 0.75rem 1rem 0.4rem;
  flex-shrink: 0;
}
#tg-shop {
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
#tg-shop-items { display: flex; flex-direction: column; gap: 0.4rem; padding: 0 0.85rem 0.85rem; }
.tg-upgrade {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  text-align: left;
  cursor: pointer;
  color: rgba(255,255,255,0.35);
  display: flex; align-items: center; gap: 0.5rem;
  transition: border-color 0.15s, background 0.15s;
  width: 100%;
}
.tg-upgrade .tg-icon { flex-shrink: 0; }
.tg-upg-text { flex: 1; min-width: 0; }
.tg-upg-text strong { display: block; font-size: 0.76rem; color: rgba(255,255,255,0.35); line-height: 1.2; }
.tg-upg-text span   { display: block; font-size: 0.65rem; color: rgba(255,255,255,0.25); margin-top: 1px; }
.tg-upg-cost {
  display: flex; align-items: center; gap: 3px;
  flex-shrink: 0;
}
.tg-upg-cost .tg-icon { color: rgba(242, 193, 122, 0.4); }
.tg-upg-cost em { font-size: 0.72rem; font-style: normal; color: rgba(242, 193, 122, 0.5); font-weight: 700; }
.tg-can-buy {
  border-color: rgba(115, 39, 95, 0.5);
  color: rgba(255,255,255,0.8);
}
.tg-can-buy:hover { background: rgba(115, 39, 95, 0.2); border-color: #f280aa; }
.tg-can-buy .tg-upg-text strong { color: rgba(255,255,255,0.88); }
.tg-can-buy .tg-upg-text span   { color: rgba(255,255,255,0.45); }
.tg-can-buy .tg-upg-cost .tg-icon { color: #f2c17a; }
.tg-can-buy .tg-upg-cost em { color: #f2c17a; }
.tg-can-buy .tg-icon { color: #f280aa; }
.tg-maxed {
  opacity: 0.35; pointer-events: none;
  gap: 0.5rem;
}
.tg-maxed .tg-upg-text strong { font-size: 0.76rem; color: rgba(255,255,255,0.5); }
.tg-maxed .tg-upg-text span { font-size: 0.65rem; color: rgba(255,255,255,0.3); }

/* Log panel */

/* Game over */
#tg-gameover {
  position: absolute; inset: 0;
  background: rgba(10, 4, 12, 0.94);
  backdrop-filter: blur(4px);
  display: none;
  flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; gap: 0.75rem;
}
#tg-gameover.tg-visible { display: flex; }
#tg-go-inner { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
#tg-go-inner .tg-icon { color: #f2c17a; }
#tg-gameover h2 { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 800; color: #f280aa; }
#tg-score-final { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
#tg-restart {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #73275f; color: white; border: none;
  border-radius: 999px; padding: 0.65rem 1.8rem;
  font-size: 0.9rem; font-weight: 700; cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  margin-top: 0.25rem;
}
#tg-restart:hover { background: #f280aa; transform: scale(1.03); }

/* Leaderboard button in header */
.tg-hud-icon-btn {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: #f2c17a;
  width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.tg-hud-icon-btn:hover { background: rgba(242, 193, 122, 0.2); color: white; }

/* Game over extra UI */
#tg-go-rank {
  font-size: 0.82rem; font-weight: 700;
  padding: 0.3rem 0.9rem;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  min-height: 1.4em;
}
#tg-go-save {
  display: flex; gap: 0.5rem; align-items: center;
  transition: opacity 0.2s;
}
#tg-go-save.tg-saved { opacity: 0.5; pointer-events: none; }
#tg-name-input {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  color: white;
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 0.45rem 0.75rem;
  outline: none;
  width: 160px;
  transition: border-color 0.15s;
}
#tg-name-input::placeholder { color: rgba(255,255,255,0.3); }
#tg-name-input:focus { border-color: #f280aa; }
#tg-save-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: #73275f; color: white; border: none;
  border-radius: 8px; padding: 0.45rem 1rem;
  font-size: 0.82rem; font-weight: 700; cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
#tg-save-btn:hover:not(:disabled) { background: #f280aa; }
#tg-save-btn:disabled { opacity: 0.6; cursor: default; }
#tg-go-actions {
  display: flex; gap: 0.6rem; align-items: center; margin-top: 0.25rem;
}
.tg-btn-ghost {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.65);
  border-radius: 999px; padding: 0.55rem 1.2rem;
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.tg-btn-ghost:hover { border-color: #f280aa; color: white; }

/* Leaderboard slide-in panel */
#tg-lb-panel {
  position: absolute; inset: 0;
  background: #0e0712;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(.4,0,.2,1);
  z-index: 2;
}
#tg-lb-panel.tg-lb-open { transform: translateX(0); }
#tg-lb-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.9rem 1.25rem;
  background: #0c0610;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: #f2c17a;
  font-weight: 700; font-size: 0.95rem;
  flex-shrink: 0;
}
#tg-lb-header span { display: flex; align-items: center; gap: 0.5rem; }
#tg-lb-close {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6);
  width: 30px; height: 30px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
#tg-lb-close:hover { background: rgba(255,255,255,0.15); color: white; }
#tg-lb-list { flex: 1; overflow-y: auto; padding: 0.75rem 1rem; display: flex; flex-direction: column; gap: 0.4rem; }
#tg-lb-empty { display: none; text-align: center; padding: 3rem 1rem; color: rgba(255,255,255,0.3); font-size: 0.85rem; }
.tg-lb-row {
  display: grid;
  grid-template-columns: 28px 1fr auto auto;
  align-items: center; gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  font-size: 0.8rem;
}
.tg-lb-podium { background: rgba(242, 193, 122, 0.06); border-color: rgba(242, 193, 122, 0.18); }
.tg-lb-rank { font-weight: 800; font-size: 0.9rem; text-align: center; }
.tg-lb-name { font-weight: 700; color: rgba(255,255,255,0.88); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-lb-meta { font-size: 0.7rem; color: rgba(255,255,255,0.38); white-space: nowrap; }
.tg-lb-coins { display: flex; align-items: center; gap: 3px; font-weight: 700; color: #f2c17a; white-space: nowrap; }
.tg-lb-coins .tg-icon { color: #f2c17a; }

/* ── Combo pill ──────────────────────────────────────────────── */
.tg-combo-pill { color: #f2c17a; animation: tg-combopop .2s ease; }
.tg-combo-pill .tg-icon { color: #f2c17a; }
.tg-combo-fire { color: #f28050 !important; }
.tg-combo-fire .tg-icon { color: #f28050 !important; }
@keyframes tg-combopop { 0%{transform:scale(.7)} 60%{transform:scale(1.2)} 100%{transform:scale(1)} }

/* ── Drink label on customer card ───────────────────────────── */
.tg-cust-drink {
  display: flex; align-items: center; gap: 3px;
  font-size: 0.6rem; color: rgba(255,255,255,0.38);
  margin-top: 1px;
}
.tg-cust-drink .tg-icon { color: rgba(255,255,255,0.3); }

/* ── Event banner ────────────────────────────────────────────── */
#tg-event-banner {
  display: none;
  align-items: center; gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(0,0,0,0.4);
  border-bottom: 2px solid #a78bfa;
  font-size: 0.75rem;
  flex-shrink: 0;
}
#tg-event-label { font-weight: 700; white-space: nowrap; }
#tg-event-desc  { color: rgba(255,255,255,0.55); }

/* ── Unified slide panels (leaderboard + achievements) ───────── */
.tg-slide-panel {
  position: absolute; inset: 0;
  background: #0e0712;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(.4,0,.2,1);
  z-index: 2;
}
.tg-slide-panel.tg-slide-open { transform: translateX(0); }
.tg-slide-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.9rem 1.25rem;
  background: #0c0610;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: #f2c17a; font-weight: 700; font-size: 0.95rem; flex-shrink: 0;
}
.tg-slide-header span { display: flex; align-items: center; gap: 0.5rem; }
.tg-slide-header button {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6); width: 30px; height: 30px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.tg-slide-header button:hover { background: rgba(255,255,255,0.15); color: white; }
.tg-panel-empty { display: none; text-align: center; padding: 3rem 1rem; color: rgba(255,255,255,0.3); font-size: 0.85rem; }

/* ── Achievements panel ──────────────────────────────────────── */
#tg-ach-panel .tg-slide-header { color: #f2c17a; }
#tg-ach-list { flex: 1; overflow-y: auto; padding: 0.75rem 1rem; display: flex; flex-direction: column; gap: 0.4rem; }
.tg-ach-row {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  opacity: 0.45;
}
.tg-ach-unlocked { opacity: 1; background: rgba(242,193,122,0.07); border-color: rgba(242,193,122,0.2); }
.tg-ach-icon { color: rgba(255,255,255,0.3); flex-shrink: 0; }
.tg-ach-unlocked .tg-ach-icon { color: #f2c17a; }
.tg-ach-text { flex: 1; min-width: 0; }
.tg-ach-text strong { display: block; font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.tg-ach-text span   { display: block; font-size: 0.68rem; color: rgba(255,255,255,0.3); margin-top: 1px; }
.tg-ach-unlocked .tg-ach-text strong { color: rgba(255,255,255,0.9); }
.tg-ach-unlocked .tg-ach-text span   { color: rgba(255,255,255,0.45); }
.tg-ach-check { color: #6fdfaa; flex-shrink: 0; }

/* ── Achievement toast ───────────────────────────────────────── */
.tg-ach-toast {
  position: absolute; bottom: 70px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #1a0f22; border: 1px solid rgba(242,193,122,0.4);
  border-radius: 12px; padding: 0.65rem 1rem;
  display: flex; align-items: center; gap: 0.65rem;
  color: #f2c17a; font-size: 0.8rem; white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  opacity: 0; transition: opacity .3s, transform .3s;
  z-index: 20; pointer-events: none;
}
.tg-ach-toast strong { display: block; font-size: 0.68rem; color: rgba(255,255,255,0.5); font-weight: 400; }
.tg-ach-toast span { display: block; font-weight: 700; }
.tg-ach-in { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Deco section (shop) ─────────────────────────────────────── */
#tg-deco-section { border-top: 1px solid rgba(255,255,255,0.07); }
#tg-deco-items { display: flex; flex-direction: column; gap: 0.4rem; padding: 0 0.85rem 0.85rem; }

/* ── Room decoration layer ───────────────────────────────────── */
#tg-left { position: relative; }
#tg-room-layer {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
  overflow: visible;
}
/* All real content sits above the decoration layer */
#tg-tables-header, #tg-tables { position: relative; z-index: 1; }

/* Guirlandes lumineuses */
.tg-deco-lights {
  position: absolute; top: 0; left: 0; right: 0;
  height: 18px;
  display: flex; align-items: center; justify-content: space-around;
  padding: 0 8px;
}
.tg-light-bulb {
  width: 9px; height: 9px; border-radius: 50%;
  opacity: 0.85;
  animation: tg-twinkle 1.8s ease-in-out infinite alternate;
  box-shadow: 0 0 5px currentColor;
}
@keyframes tg-twinkle {
  0%   { opacity: 0.25; transform: scale(0.7); }
  100% { opacity: 1;    transform: scale(1.1); }
}

/* Affiche convention */
.tg-deco-poster {
  position: absolute; bottom: 16px; right: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 0.5rem 0.6rem;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: rgba(255,255,255,0.35);
  font-size: 0.58rem; text-align: center; line-height: 1.3;
  animation: tg-fadein .4s ease;
}
.tg-deco-poster .tg-icon { color: #f280aa; opacity: 0.6; }

/* Ambiance musicale */
.tg-deco-music {
  position: absolute; left: 0; right: 0;
  bottom: 30px; /* start notes from lower portion of room */
  height: 0;
  pointer-events: none;
}
.tg-music-note {
  position: absolute;
  color: rgba(167, 139, 250, 0.7);
  animation: tg-float-note 3.5s ease-in-out infinite;
}
.tg-music-note svg { display: block; }
@keyframes tg-float-note {
  0%   { transform: translateY(0)    rotate(-8deg); opacity: 0; }
  12%  { opacity: 0.8; }
  80%  { opacity: 0.4; }
  100% { transform: translateY(-140px) rotate(12deg); opacity: 0; }
}

/* Ikebana / flowers */
.tg-deco-flowers {
  position: absolute; top: 22px; left: 10px;
  color: rgba(111, 223, 170, 0.45);
  animation: tg-fadein .4s ease, tg-sway 3s ease-in-out infinite alternate;
}
@keyframes tg-sway {
  0%   { transform: rotate(-4deg); }
  100% { transform: rotate(4deg); }
}

/* Statuette Kitsune — positioned inside #tg-left (position:relative), above tables */
.tg-deco-kitsune {
  position: absolute; bottom: 12px; right: 12px;
  z-index: 5;
  pointer-events: none;
  animation: tg-fadein .4s ease;
}
.tg-deco-kitsune img {
  width: 72px; height: auto;
  display: block;
  animation: tg-kitsune-glow 2.5s ease-in-out infinite alternate;
  opacity: 0.9;
}
@keyframes tg-kitsune-glow {
  0%   { filter: drop-shadow(0 0 4px rgba(242,193,122,0.2)); }
  100% { filter: drop-shadow(0 0 14px rgba(242,193,122,0.7)); }
}

@keyframes tg-fadein {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}

/* Mobile bottom tab bar — hidden on desktop */
#tg-tabs { display: none; }

@media (max-width: 640px) {
  /* Fullscreen modal */
  #tg-modal {
    width: 100vw; max-width: 100vw;
    height: 100dvh; max-height: 100dvh;
    border-radius: 0;
    border: none;
  }
  #taniere-overlay { padding: 0; }

  /* Compact header */
  #tg-header { padding: 0.6rem 0.9rem; }
  #tg-title  { font-size: 1rem; }
  .tg-hide-mobile { display: none !important; }
  .tg-hud-pill { padding: 0.25rem 0.55rem; font-size: 0.78rem; }
  #tg-close, .tg-hud-icon-btn { width: 28px; height: 28px; }

  /* Body fills space between header and tab bar */
  #tg-body {
    grid-template-columns: 1fr;
    overflow: hidden;
  }

  /* Each panel fills the body; visibility controlled by data-tab on modal */
  #tg-left, #tg-right {
    grid-row: 1;
    grid-column: 1;
    display: none;
    overflow-y: auto;
    height: 100%;
  }
  #tg-modal[data-tab="tables"] #tg-left { display: flex; }
  #tg-modal[data-tab="shop"]   #tg-right { display: flex; }

  #tg-right {
    border-left: none;
    flex-direction: column;
  }

  #tg-tables { grid-template-columns: repeat(2, 1fr); padding: 0.75rem; gap: 0.6rem; }
  .tg-table  { min-height: 110px; }
  .tg-cust-name { font-size: 0.72rem; }

  /* Bottom tab bar */
  #tg-tabs {
    display: flex;
    flex-shrink: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: #0c0610;
  }
  .tg-tab {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px;
    padding: 0.55rem 0.25rem;
    background: none; border: none;
    color: rgba(255,255,255,0.35);
    font-family: var(--font-body);
    font-size: 0.62rem; font-weight: 600;
    cursor: pointer;
    transition: color 0.15s;
    -webkit-tap-highlight-color: transparent;
  }
  .tg-tab .tg-icon { color: inherit; }
  .tg-tab-active { color: #f280aa; }
  .tg-tab-active .tg-icon { color: #f280aa; }

  /* Slide panels fill modal on mobile */
  .tg-slide-panel { border-radius: 0; }
  /* Toast sits above tab bar */
  .tg-ach-toast { bottom: 68px; }

  /* Leaderboard rows: hide meta column */
  .tg-lb-row  { grid-template-columns: 24px 1fr auto; }
  .tg-lb-meta { display: none; }

  /* Game over: stack vertically, full width */
  #tg-go-save { flex-direction: column; width: 100%; }
  #tg-name-input { width: 100%; box-sizing: border-box; }
  #tg-save-btn { width: 100%; justify-content: center; }
  #tg-go-actions { flex-direction: column; width: 100%; gap: 0.5rem; }
  #tg-go-actions button { width: 100%; justify-content: center; }
}
