/* ===== VIRTUAL PUB - GŁÓWNY ARKUSZ STYLÓW ===== */
/* Motyw: Ciepły pub, drewno, złoto, klasyczny klimat */

:root {
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --gold-dark: #8a6f2e;
  --wood: #5c3d1e;
  --wood-light: #7a5230;
  --wood-dark: #3a2010;
  --cream: #f5e6c8;
  --cream-dark: #e8d4a8;
  --amber: #c47e17;
  --dark: #1a0e05;
  --text: #2c1a08;
  --text-light: #6b4a28;
  --shadow: rgba(0,0,0,0.4);
  --beer-foam: #f5e6c8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Crimson Text', Georgia, serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== STREET VIEW — PHOTO BACKGROUND ===== */
body.street-view {
  overflow: hidden;
  height: 100vh;
  background: #1a0e05;
}

.street-bg-photo {
  position: relative;
  width: 100%;
  height: 100vh;
  background: url('pub_front.jpg') center center / cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.05) 40%,
    rgba(0,0,0,0.25) 100%
  );
  pointer-events: none;
}

/* Clickable door hotspot — positioned over the door in the photo */
.door-hotspot {
  position: absolute;
  /* Door is roughly center of photo, bottom 30-75% height */
  left: 50%;
  top: 28%;
  transform: translateX(-50%);
  width: 110px;
  height: 55%;
  cursor: pointer;
  z-index: 10;
  border-radius: 4px;
  transition: all 0.3s;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 10px;
}

.door-hotspot:hover {
  background: rgba(255, 200, 50, 0.12);
  box-shadow: 0 0 40px rgba(255,180,0,0.4), inset 0 0 30px rgba(255,180,0,0.1);
}

.door-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.3s;
}

.door-hotspot:hover .door-hint {
  opacity: 1;
}

.door-arrow {
  font-size: 1.8rem;
  animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.door-hint-text {
  font-family: 'Cinzel', serif;
  color: var(--gold-light);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-shadow: 0 0 12px var(--gold), 0 2px 4px rgba(0,0,0,0.8);
  background: rgba(0,0,0,0.5);
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid var(--gold-dark);
}

.music-notes {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.note {
  position: absolute;
  font-size: 1.5rem;
  opacity: 0;
  animation: floatNote 4s ease-in-out infinite;
}
.n1 { left: 15%; animation-delay: 0s; }
.n2 { left: 35%; animation-delay: 0.8s; }
.n3 { left: 55%; animation-delay: 1.6s; }
.n4 { left: 72%; animation-delay: 2.4s; }
.n5 { left: 85%; animation-delay: 3.2s; }

@keyframes floatNote {
  0% { opacity: 0; top: 80%; transform: translateX(0) rotate(0deg); }
  20% { opacity: 1; }
  80% { opacity: 0.7; }
  100% { opacity: 0; top: 10%; transform: translateX(40px) rotate(20deg); }
}

.subtitle {
  position: absolute;
  bottom: 40px;
  color: var(--gold-light);
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  letter-spacing: 3px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* ===== AGE MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.age-modal {
  background: linear-gradient(135deg, var(--cream), var(--cream-dark));
  border: 3px solid var(--gold);
  border-radius: 16px;
  padding: 40px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-icon { font-size: 3.5rem; margin-bottom: 12px; }

.age-modal h2 {
  font-family: 'Cinzel', serif;
  color: var(--wood);
  font-size: 2rem;
  margin-bottom: 8px;
}

.age-modal h3 {
  font-family: 'Cinzel', serif;
  color: var(--wood-dark);
  font-size: 1.4rem;
  margin: 16px 0 8px;
}

.age-modal p { color: var(--text-light); font-size: 1.1rem; }
.age-subtext { font-size: 0.9rem !important; margin-top: 8px; }

.age-buttons {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  justify-content: center;
}

.btn-yes, .btn-no {
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Crimson Text', serif;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-yes {
  background: linear-gradient(135deg, #4a7c4e, #2d5e32);
  color: white;
  box-shadow: 0 4px 12px rgba(74,124,78,0.4);
}
.btn-yes:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(74,124,78,0.5); }

.btn-no {
  background: linear-gradient(135deg, #8b3a3a, #6b2020);
  color: white;
  box-shadow: 0 4px 12px rgba(139,58,58,0.4);
}
.btn-no:hover { transform: translateY(-2px); }

.underage-block {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #1a0e05, #2d1208);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.underage-content {
  text-align: center;
  color: var(--cream);
  padding: 40px;
}
.underage-content h2 { font-family: 'Cinzel', serif; font-size: 2.5rem; margin: 16px 0; }
.underage-content p { font-size: 1.2rem; margin: 8px 0; color: var(--cream-dark); }

/* ===== MUSIC TOGGLE ===== */
.music-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(20,10,2,0.7);
  border: 2px solid var(--gold-dark);
  color: var(--cream-dark);
  padding: 10px 18px;
  border-radius: 30px;
  cursor: pointer;
  font-family: 'Crimson Text', serif;
  font-size: 0.95rem;
  z-index: 999;
  transition: all 0.3s;
  backdrop-filter: blur(8px);
}
.music-toggle:hover { background: rgba(201,168,76,0.2); border-color: var(--gold); color: var(--gold); }
.music-toggle.gra {
  background: rgba(201,168,76,0.15);
  border-color: var(--gold);
  color: var(--gold-light);
  box-shadow: 0 0 12px rgba(201,168,76,0.3);
}

/* ===== LOGIN PAGE ===== */
body.login-page {
  background: linear-gradient(135deg, var(--dark) 0%, var(--wood-dark) 50%, var(--dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.login-container { width: 100%; max-width: 420px; padding: 20px; }

.login-box {
  background: linear-gradient(145deg, var(--cream), var(--cream-dark));
  border: 3px solid var(--gold);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  text-align: center;
  animation: modalIn 0.4s ease;
}

.login-logo { font-size: 3.5rem; margin-bottom: 8px; }

.login-title {
  font-family: 'Cinzel', serif;
  color: var(--wood-dark);
  font-size: 1.8rem;
  font-weight: 900;
}

.login-subtitle {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 24px;
  font-style: italic;
}

.tab-switcher {
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--gold-dark);
  margin-bottom: 24px;
}

.tab {
  flex: 1;
  padding: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  color: var(--text-light);
  transition: all 0.2s;
}

.tab.active {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: white;
}

.form-group { margin-bottom: 16px; text-align: left; }

.form-group label {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  color: var(--wood);
  margin-bottom: 6px;
  font-weight: 600;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: white;
  border: 2px solid var(--cream-dark);
  border-radius: 8px;
  font-family: 'Crimson Text', serif;
  font-size: 1.05rem;
  color: var(--text);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.2);
}

.btn-primary {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-dark));
  color: var(--dark);
  border: none;
  border-radius: 10px;
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 1px;
  box-shadow: 0 4px 16px rgba(201,168,76,0.4);
  margin-top: 8px;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.5);
}

.error-msg {
  color: #c0392b;
  font-size: 0.9rem;
  min-height: 20px;
  margin-bottom: 8px;
  font-style: italic;
}
.success-msg {
  color: #27ae60;
  font-size: 0.9rem;
  min-height: 20px;
  margin-bottom: 8px;
}

.back-link {
  display: block;
  margin-top: 16px;
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.back-link:hover { color: var(--wood); }

/* ===== SHARED NAV ===== */
.pub-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(26,14,5,0.98), rgba(58,32,16,0.95));
  border-bottom: 2px solid var(--gold-dark);
  padding: 5px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  backdrop-filter: blur(8px);
}
.pub-nav-logo {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.welcome-msg {
  color: var(--cream);
  font-size: 1rem;
  font-style: italic;
}
.nav-btn {
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid var(--gold-dark);
  background: rgba(201,168,76,0.12);
  color: var(--gold-light);
  font-family: 'Crimson Text', serif;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.nav-btn:hover { background: rgba(201,168,76,0.25); }
.logout-btn { border-color: #8b3a3a; color: #e07070; }
.logout-btn:hover { background: rgba(139,58,58,0.25); }
/* nav-right: jedna linia, bez zawijania, scroll jeśli za wąsko */
.nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nav-right::-webkit-scrollbar { display: none; }

/* ===== DREWNIANA TABLICZKA — link do sali ===== */
.pub-sign-link {
  position: absolute;
  bottom: 7%;
  right: 3%;
  z-index: 30;
  text-decoration: none;
}

.pub-wooden-sign {
  position: relative;
  padding-top: 14px;
  cursor: pointer;
  transition: transform 0.25s ease, filter 0.25s ease;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.55));
}
.pub-wooden-sign:hover {
  transform: translateY(-4px) rotate(-1deg);
  filter: drop-shadow(0 10px 28px rgba(0,0,0,0.65));
}

/* Sznurki zawieszenia */
.sign-rope-left,
.sign-rope-right {
  position: absolute;
  top: 0;
  width: 3px;
  height: 18px;
  background: linear-gradient(180deg, #8a6020, #5a3a10);
  border-radius: 2px;
}
.sign-rope-left  { left: 22%; }
.sign-rope-right { right: 22%; }

/* Tabliczka */
.sign-inner {
  background: linear-gradient(160deg, #6b3e12 0%, #4a2808 50%, #5c3418 100%);
  border: 3px solid #8a5820;
  border-radius: 8px;
  padding: 12px 18px 14px;
  text-align: center;
  min-width: 140px;
  box-shadow:
    inset 0 2px 6px rgba(255,200,100,0.12),
    inset 0 -2px 4px rgba(0,0,0,0.3),
    0 2px 0 #3a1a06;
  /* Tekstura drewna */
  background-image:
    linear-gradient(160deg, #6b3e12 0%, #4a2808 50%, #5c3418 100%),
    repeating-linear-gradient(90deg, transparent, transparent 8px, rgba(0,0,0,0.04) 8px, rgba(0,0,0,0.04) 9px);
}

.sign-icon {
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 4px;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
}

.sign-text {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 1px;
  line-height: 1.4;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

.sign-sub {
  font-family: 'Crimson Text', serif;
  font-size: 0.7rem;
  color: #c8a060;
  margin-top: 5px;
  font-style: italic;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

/* ===== PUB INTERIOR ===== */
body.pub-interior {
  background: #1a0e05;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: hidden;
  display: flex;
  flex-direction: column;
}

/* Outer wrapper — centruje scenę i daje jej tło */
.pub-scene-outer {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  background: #0d0600;
}

/* Inner wrapper — zachowuje proporcje zdjęcia 2000:1116 = 55.8% */
.pub-scene-inner {
  position: relative;
  width: 100%;
  padding-top: 55.80%;
  overflow: hidden;
  flex-shrink: 0;
}

/* Zdjęcie tła — rozciągnięte dokładnie na wrapper */
.pub-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  user-select: none;
  pointer-events: none;
}

/* SVG overlay — identyczny rozmiar co zdjęcie, viewBox 2000x1116 */
.bottles-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  overflow: hidden;
}

.svg-bottle {
  transition: filter 0.15s ease, transform 0.15s ease;
}

/* Bartender — lewy dolny róg */
.bartender-wrap {
  position: absolute;
  bottom: 2%;
  left: 1.5%;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.bartender-avatar {
  font-size: 2.4rem;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.7));
}

.bartender-bubble {
  background: rgba(245,230,200,0.96);
  border: 2px solid var(--gold);
  border-radius: 14px 14px 14px 0;
  padding: 8px 14px;
  font-size: 0.85rem;
  color: var(--text);
  max-width: 200px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  line-height: 1.4;
  transition: all 0.3s;
}
  transition: all 0.3s;
}

/* ===== BEER WINDOW — styl macOS ===== */
/* Overlay — lekkie przyciemnienie bez blokowania tła */
#beerModal {
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none; /* kliknięcie poza oknem NIE zamyka */
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}
#beerModal.active {
  pointer-events: all;
}

/* Okno w stylu macOS */
.beer-modal {
  pointer-events: all;
  position: fixed;
  top: 80px;
  right: 24px;
  left: auto;
  transform: none;
  width: 380px;
  max-width: 92vw;
  z-index: 9999;
  background: linear-gradient(160deg, #fdf6e8 0%, #f5e8cc 100%);
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.18),
    0 8px 24px rgba(0,0,0,0.28),
    0 32px 80px rgba(0,0,0,0.40);
  overflow: hidden;
  animation: windowSlideIn 0.25s cubic-bezier(0.34,1.46,0.64,1);
  user-select: none;
}

@keyframes windowSlideIn {
  from { transform: translateX(60px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

@keyframes windowPop {
  from { transform: translate(-50%,-50%) scale(0.82); opacity: 0; }
  to   { transform: translate(-50%,-50%) scale(1);    opacity: 1; }
}

/* Pasek tytułowy macOS */
.beer-modal-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px 10px;
  background: linear-gradient(180deg, #e8d9b8 0%, #d9c9a0 100%);
  border-bottom: 1px solid rgba(0,0,0,0.12);
  cursor: move;
}

/* Przyciski traffic light */
.mac-btn {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: filter 0.15s;
}
.mac-btn:hover { filter: brightness(0.82); }
.mac-close   { background: #ff5f56; box-shadow: 0 0 0 0.5px rgba(0,0,0,0.2); }
.mac-minimize{ background: #febc2e; box-shadow: 0 0 0 0.5px rgba(0,0,0,0.2); }
.mac-fullscr { background: #28c840; box-shadow: 0 0 0 0.5px rgba(0,0,0,0.2); }

.mac-title {
  flex: 1;
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--wood-dark);
  letter-spacing: 1px;
  margin-right: 42px; /* kompensuje 3 przyciski po lewej */
}

/* Zawartość okna */
.beer-modal-body {
  padding: 20px 28px 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.beer-modal-bottle {
  flex-shrink: 0;
}

.beer-modal-info {
  flex: 1;
  min-width: 0;
}

.beer-modal-info h2 {
  font-family: 'Cinzel', serif;
  color: var(--wood-dark);
  font-size: 1.35rem;
  margin-bottom: 8px;
  line-height: 1.2;
}

.beer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.beer-badge {
  background: linear-gradient(135deg, var(--gold-dark), var(--amber));
  color: white;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-family: 'Cinzel', serif;
}
.beer-badge.alc { background: linear-gradient(135deg, #8b3a3a, #6b2020); }

.beer-modal-info p {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 12px;
  font-style: italic;
}

.beer-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  font-size: 0.85rem;
  color: var(--text-light);
  gap: 8px;
}
.beer-detail-row span:last-child {
  font-weight: 600;
  color: var(--wood);
  text-align: right;
}

/* Przycisk powrotu w sali */
.sala-back-sign {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  background: linear-gradient(135deg, #5c3418, #3a1a06);
  border: 2px solid var(--gold-dark);
  border-radius: 8px;
  padding: 6px 14px;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.sala-back-sign:hover {
  background: linear-gradient(135deg, #7a4a20, #4a2808);
  border-color: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
}
.sala-back-icon { font-size: 1.2rem; }
.sala-back-text {
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 1px;
}

/* ===== SALA PAGE ===== */
body.sala-page {
  background: linear-gradient(180deg, var(--dark) 0%, var(--wood-dark) 100%);
  min-height: 100vh;
}

.sala-content {
  display: flex;
  gap: 0;
  height: calc(100vh - 54px);
}

.sala-sidebar {
  width: 300px;
  min-width: 260px;
  background: rgba(26,14,5,0.95);
  border-right: 2px solid var(--gold-dark);
  padding: 20px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-title {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: 1.2rem;
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gold-dark);
}

.tables-list { display: flex; flex-direction: column; gap: 10px; flex: 1; }

.no-tables {
  color: var(--text-light);
  text-align: center;
  font-style: italic;
  padding: 20px 0;
  font-size: 0.95rem;
}

.table-card {
  background: linear-gradient(135deg, rgba(92,61,30,0.4), rgba(58,32,16,0.6));
  border: 2px solid var(--wood-light);
  border-radius: 10px;
  padding: 12px;
  transition: all 0.2s;
}
.table-card:hover { border-color: var(--gold-dark); }
.table-card.active { border-color: var(--gold); background: rgba(201,168,76,0.1); }

.table-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.table-card-name {
  font-family: 'Cinzel', serif;
  color: var(--cream);
  font-size: 0.95rem;
  font-weight: 600;
}

.lock-icon { font-size: 0.9rem; }

.table-card-info {
  display: flex;
  gap: 12px;
  color: var(--text-light);
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.table-card-guests { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }

.guest-chip {
  background: rgba(201,168,76,0.2);
  border: 1px solid var(--gold-dark);
  color: var(--cream-dark);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
}
.guest-chip.me { background: rgba(201,168,76,0.35); color: var(--gold-light); }

.btn-join {
  width: 100%;
  padding: 7px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--dark);
  border: none;
  border-radius: 6px;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.2s;
}
.btn-join:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(201,168,76,0.4); }

.btn-full {
  width: 100%;
  padding: 7px;
  background: rgba(100,100,100,0.3);
  color: #888;
  border: 1px solid #555;
  border-radius: 6px;
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  cursor: not-allowed;
}

.btn-leave-sm {
  width: 100%;
  padding: 7px;
  background: rgba(139,58,58,0.4);
  color: #e57373;
  border: 1px solid #8b3a3a;
  border-radius: 6px;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-create-table {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 2px dashed var(--gold-dark);
  color: var(--gold);
  border-radius: 10px;
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 4px;
}
.btn-create-table:hover { background: rgba(201,168,76,0.1); border-color: var(--gold); }

.sala-info {
  border-top: 1px solid var(--wood-light);
  padding-top: 12px;
}
.sala-info p {
  color: var(--text-light);
  font-size: 0.8rem;
  margin: 6px 0;
  line-height: 1.4;
}

/* Sala main */
.sala-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.empty-sala {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  text-align: center;
  gap: 12px;
}
.empty-sala h3 { font-family: 'Cinzel', serif; color: var(--cream-dark); font-size: 1.4rem; }
.empty-sala p { font-size: 1rem; max-width: 300px; }

.video-room {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.video-room-header {
  background: rgba(26,14,5,0.9);
  border-bottom: 2px solid var(--gold-dark);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.video-room-header h3 {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: 1.1rem;
}

.room-guests { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }

.btn-leave {
  padding: 8px 16px;
  background: rgba(139,58,58,0.3);
  border: 1px solid #8b3a3a;
  color: #e57373;
  border-radius: 8px;
  font-family: 'Crimson Text', serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-leave:hover { background: rgba(139,58,58,0.5); }

.video-container {
  flex: 1;
  background: #0d0805;
  overflow: hidden;
  min-height: 300px;
  position: relative;
}

/* Daily.co iframe wypełnia cały kontener */
.video-container iframe {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  display: block;
}

/* Ekran ładowania */
.video-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream-dark);
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  background: #0d0805;
  gap: 12px;
}

/* Ekran błędu */
.video-error {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--cream-dark);
  text-align: center;
  padding: 24px;
  background: #0d0805;
  gap: 8px;
}
.video-error p { font-size: 1rem; color: var(--text-light); }

.video-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: var(--cream-dark);
  gap: 10px;
}

.video-placeholder h3 { font-family: 'Cinzel', serif; font-size: 1.4rem; color: var(--gold); }
.video-placeholder p { font-size: 0.95rem; color: var(--text-light); }

.video-note {
  background: rgba(201,168,76,0.08);
  border: 1px solid var(--gold-dark);
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.7;
  max-width: 400px;
}
.video-note a { color: var(--gold); }
.video-note code { background: rgba(255,255,255,0.1); padding: 2px 6px; border-radius: 4px; font-size: 0.8rem; }

.demo-video-chat {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.demo-participant {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.05);
  border: 2px solid var(--wood-light);
  border-radius: 12px;
  padding: 16px 20px;
  min-width: 120px;
}

.participant-avatar { font-size: 2.5rem; }
.participant-name { font-family: 'Cinzel', serif; color: var(--cream); font-size: 0.9rem; }
.participant-status { font-size: 0.75rem; color: #4caf50; }

.waiting-msg {
  color: var(--text-light);
  font-style: italic;
  font-size: 0.9rem;
  padding: 20px;
}

/* Chat */
.table-chat {
  height: 220px;
  background: rgba(26,14,5,0.95);
  border-top: 2px solid var(--gold-dark);
  display: flex;
  flex-direction: column;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dark) transparent;
}

.chat-empty { color: var(--text-light); text-align: center; font-style: italic; font-size: 0.9rem; padding: 20px 0; }

.chat-message {
  display: flex;
  gap: 8px;
  align-items: baseline;
  max-width: 80%;
  font-size: 0.95rem;
}
.chat-message.mine { align-self: flex-end; flex-direction: row-reverse; }

.chat-user {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  color: var(--gold);
  white-space: nowrap;
}

.chat-text {
  background: rgba(92,61,30,0.5);
  color: var(--cream);
  padding: 6px 12px;
  border-radius: 12px;
  line-height: 1.4;
}
.chat-message.mine .chat-text { background: rgba(201,168,76,0.2); }

.chat-time {
  font-size: 0.7rem;
  color: var(--text-light);
  white-space: nowrap;
}

.chat-input-row {
  display: flex;
  padding: 10px 16px;
  gap: 8px;
  border-top: 1px solid var(--wood-dark);
}

.chat-input-row input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--wood-light);
  border-radius: 8px;
  color: var(--cream);
  font-family: 'Crimson Text', serif;
  font-size: 1rem;
}
.chat-input-row input:focus {
  outline: none;
  border-color: var(--gold-dark);
}
.chat-input-row input::placeholder { color: var(--text-light); }

.chat-input-row button {
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--dark);
  border: none;
  border-radius: 8px;
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.chat-input-row button:hover { transform: translateY(-1px); }

/* Create/Join modal */
.create-modal {
  background: linear-gradient(145deg, var(--cream), var(--cream-dark));
  border: 3px solid var(--gold);
  border-radius: 20px;
  padding: 36px;
  max-width: 400px;
  width: 90%;
  position: relative;
  animation: modalIn 0.3s ease;
}

.create-modal h2 {
  font-family: 'Cinzel', serif;
  color: var(--wood-dark);
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 20px;
}

.create-modal p {
  color: var(--text-light);
  text-align: center;
  margin-bottom: 16px;
}

/* ===== RESPONSIVE ====

/* ===== KARTA STOLIKA — poziomy układ ===== */
.tc-card {
  background: linear-gradient(135deg, rgba(92,61,30,0.5), rgba(40,20,8,0.7));
  border: 2px solid var(--wood-light);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
  transition: border-color 0.2s;
}
.tc-card:hover { border-color: var(--gold-dark); }
.tc-card.active {
  border-color: var(--gold);
  background: rgba(201,168,76,0.1);
  box-shadow: 0 0 12px rgba(201,168,76,0.2);
}

/* Górna linia: nazwa + liczba */
.tc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.tc-title {
  font-family: 'Cinzel', serif;
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 65%;
}
.tc-count {
  font-size: 0.75rem;
  color: var(--text-light);
  flex-shrink: 0;
}

/* Dolna część: awatary po lewej, przycisk po prawej */
.tc-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.tc-seats {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  flex-wrap: nowrap;
  overflow: hidden;
}
.tc-seat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}
.tc-seat.occupied .av-circle {
  border: 2px solid var(--gold-dark);
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.tc-seat.empty .tc-empty-icon {
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 2px dashed rgba(201,168,76,0.25);
  border-radius: 50%;
  opacity: 0.45;
}
.tc-nick {
  font-size: 0.58rem;
  color: var(--cream-dark);
  font-family: 'Cinzel', serif;
  max-width: 40px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}
.tc-btn-wrap {
  flex-shrink: 0;
}

/* ===== PANEL GOŚCI ONLINE ===== */
.goscie-panel {
  position: fixed !important;
  top: 60px !important;
  right: 220px !important;
  left: auto !important;
  z-index: 30;
  background: rgba(20, 10, 2, 0.88);
  border: 2px solid var(--gold-dark);
  border-radius: 12px;
  padding: 10px 14px;
  min-width: 160px;
  max-width: 200px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.goscie-header {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--gold-dark);
}

.goscie-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 200px;
  overflow-y: auto;
}

.goscie-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Crimson Text', serif;
  font-size: 0.9rem;
  color: var(--cream-dark);
}

.goscie-item.ja .goscie-nick {
  color: var(--gold-light);
  font-weight: 600;
}

.goscie-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4caf50;
  box-shadow: 0 0 6px rgba(76,175,80,0.8);
  flex-shrink: 0;
  animation: blink 2s ease-in-out infinite;
}

.goscie-item.ja .goscie-dot {
  background: var(--gold);
  box-shadow: 0 0 6px rgba(201,168,76,0.8);
}

@keyframes blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

.goscie-loading,
.goscie-empty {
  color: var(--text-light);
  font-size: 0.8rem;
  font-style: italic;
}

/* Video info — nowa zakładka */
.video-info {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  color: var(--cream-dark);
  gap: 12px;
}
.video-info h3 {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: 1.4rem;
}
.video-info p {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 360px;
}

/* ===== CZAT PRZY BARZE ===== */
.chat-widget {
  position: fixed;
  bottom: 0;
  left: 12px;
  transform: none;
  width: 380px;
  max-width: 42vw;
  z-index: 200;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.5);
}

.chat-widget-header {
  background: linear-gradient(135deg, var(--wood-dark), var(--wood));
  border: 2px solid var(--gold-dark);
  border-bottom: none;
  padding: 10px 18px;
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  color: var(--gold-light);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 1px;
  user-select: none;
}
.chat-widget-header:hover { background: linear-gradient(135deg, var(--wood), var(--wood-light)); }

.chat-toggle-btn {
  font-size: 0.8rem;
  color: var(--gold);
}

.chat-widget-body {
  display: flex;
  flex-direction: column;
  background: rgba(20, 10, 2, 0.97);
  border: 2px solid var(--gold-dark);
  border-top: none;
  height: 280px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dark) transparent;
}

.chat-empty {
  color: var(--text-light);
  text-align: center;
  font-style: italic;
  font-size: 0.9rem;
  padding: 20px 0;
}

.chat-msg {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.92rem;
  max-width: 90%;
}
.chat-msg.mine { align-self: flex-end; flex-direction: row-reverse; }

.chat-nick {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}
.chat-nick.me { color: var(--gold-light); }

.chat-text {
  background: rgba(92,61,30,0.5);
  color: var(--cream);
  padding: 5px 12px;
  border-radius: 14px;
  line-height: 1.45;
  word-break: break-word;
}
.chat-msg.mine .chat-text {
  background: rgba(201,168,76,0.22);
  color: var(--cream);
}

.chat-time {
  font-size: 0.68rem;
  color: var(--text-light);
  white-space: nowrap;
  flex-shrink: 0;
}

.chat-input-row {
  display: flex;
  padding: 10px 12px;
  gap: 8px;
  border-top: 1px solid var(--wood-dark);
}

.chat-input-row input {
  flex: 1;
  padding: 9px 14px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--wood-light);
  border-radius: 20px;
  color: var(--cream);
  font-family: 'Crimson Text', serif;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}
.chat-input-row input:focus { border-color: var(--gold-dark); }
.chat-input-row input::placeholder { color: var(--text-light); }

.chat-input-row button {
  padding: 9px 18px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--dark);
  border: none;
  border-radius: 20px;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.chat-input-row button:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(201,168,76,0.4)

/* ===== WYSZUKIWARKA PIWA ===== */
.beer-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.beer-search-wrap input {
  padding: 7px 36px 7px 14px;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid var(--gold-dark);
  border-radius: 20px;
  color: var(--cream);
  font-family: 'Crimson Text', serif;
  font-size: 1rem;
  width: 240px;
  outline: none;
  transition: all 0.2s;
}
.beer-search-wrap input:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.15);
  width: 280px;
}
.beer-search-wrap input::placeholder { color: rgba(245,230,200,0.5); }

.search-clear {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--gold);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 2px 4px;
  line-height: 1;
  transition: color 0.2s;
}
.search-clear:hover { color: var(--cream); }

/* Wynik wyszukiwania — pojawia się nad pubem */
.search-result-box {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: rgba(20,10,2,0.97);
  border: 2px solid var(--gold);
  border-radius: 12px;
  padding: 16px 20px;
  max-width: 420px;
  width: 90vw;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  animation: modalIn 0.2s ease;
}

.search-no-result {
  color: var(--cream-dark);
  text-align: center;
  font-size: 1rem;
  padding: 8px 0;
}

.search-one-result { display: flex; flex-direction: column; gap: 6px; }

.search-result-name {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 700;
}

.search-result-meta {
  color: var(--cream-dark);
  font-size: 0.85rem;
  opacity: 0.8;
}

.search-result-desc {
  color: var(--cream);
  font-size: 0.95rem;
  line-height: 1.6;
  font-style: italic;
  border-top: 1px solid var(--gold-dark);
  padding-top: 8px;
  margin-top: 4px;
}

.search-multi-result {
  color: var(--cream);
  font-size: 0.95rem;
  line-height: 1.7;
}
.search-multi-result strong { color: var(--gold-light); }

/* ===== ZNAJOMI ===== */
.goscie-item.znajomy .goscie-nick {
  color: var(--gold-light);
  font-weight: 600;
}

.znajomy-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0 2px;
  line-height: 1;
  margin-left: auto;
  flex-shrink: 0;
  transition: transform 0.15s;
  opacity: 0.7;
}
.znajomy-btn:hover {
  transform: scale(1.3);
  opacity: 1;
}
.dodaj-btn { color: var(--gold); }
.usun-btn  { color: var(--gold-light); }

.goscie-item {
  display: flex;
  align-items: center;
  gap: 7px;
}

/* ===== WIZUALNE STOLIKI Z AWATARAMI ===== */
.table-card-visual {
  background: linear-gradient(135deg, rgba(92,61,30,0.4), rgba(58,32,16,0.6));
  border: 2px solid var(--wood-light);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
  transition: border-color 0.2s;
}
.table-card-visual:hover { border-color: var(--gold-dark); }
.table-card-visual.active { border-color: var(--gold); background: rgba(201,168,76,0.1); }

.table-card-title {
  font-family: 'Cinzel', serif;
  color: var(--cream);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
}

/* Wizualny stół */
.visual-table {
  position: relative;
  margin: 0 auto 10px;
  width: 100%;
  min-height: 90px;
}

.table-surface {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 32px;
  background: linear-gradient(135deg, var(--wood-light), var(--wood));
  border: 2px solid var(--gold-dark);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.seats-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 4px 0;
  position: relative;
  z-index: 1;
}

.seat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.seat.occupied .av-circle {
  border: 2px solid var(--gold-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  flex-shrink: 0;
}

.seat.empty .seat-empty-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border: 2px dashed rgba(201,168,76,0.3);
  border-radius: 50%;
  opacity: 0.5;
}

.seat-nick {
  font-size: 0.62rem;
  color: var(--cream-dark);
  font-family: 'Cinzel', serif;
  max-width: 44px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.table-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  border-top: 1px solid rgba(201,168,76,0.2);
  padding-top: 8px;
}

.table-count {
  font-size: 0.78rem;
  color: var(--text-light);
}

/* Avatar w panelu gości */
.goscie-item .av-circle {
  flex-shrink: 0;
}

/* ===== MODAL PROFILU ===== */
.profil-btn {
  border-color: var(--gold-dark) !important;
  color: var(--gold-light) !important;
}

.profil-modal {
  background: linear-gradient(145deg, var(--cream), var(--cream-dark));
  border: 3px solid var(--gold);
  border-radius: 20px;
  padding: 32px;
  max-width: 420px;
  width: 92vw;
  position: relative;
  animation: modalIn 0.3s ease;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
}

.profil-modal h2 {
  font-family: 'Cinzel', serif;
  color: var(--wood-dark);
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 20px;
}

.profil-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.profil-avatar-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  overflow: hidden;
}

.profil-nick {
  font-family: 'Cinzel', serif;
  color: var(--wood-dark);
  font-size: 1.1rem;
  font-weight: 700;
}

.profil-label {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  color: var(--wood);
  margin-bottom: 10px;
  font-weight: 600;
}

.profil-emoji-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  margin-bottom: 12px;
  max-height: 160px;
  overflow-y: auto;
  padding: 8px;
  background: rgba(0,0,0,0.05);
  border-radius: 10px;
}

.profil-emoji-opt {
  font-size: 1.4rem;
  cursor: pointer;
  text-align: center;
  padding: 3px;
  border-radius: 6px;
  transition: background 0.15s, transform 0.15s;
  line-height: 1;
}
.profil-emoji-opt:hover {
  background: rgba(201,168,76,0.25);
  transform: scale(1.2);
}

.profil-upload-wrap {
  text-align: center;
}

/* ===== ZAPROSZENIA ===== */
.zaproszenia-panel {
  position: absolute;
  top: 12px;
  right: 220px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 220px;
}

.zap-item {
  background: linear-gradient(135deg, rgba(26,14,5,0.97), rgba(58,32,16,0.97));
  border: 2px solid var(--gold);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.6);
  animation: modalIn 0.3s ease;
}

.zap-text {
  color: var(--cream);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 10px;
}
.zap-text strong { color: var(--gold-light); }

.zap-btns {
  display: flex;
  gap: 8px;
}

.zap-btn {
  flex: 1;
  padding: 6px 10px;
  border: none;
  border-radius: 8px;
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.zap-btn.accept {
  background: linear-gradient(135deg, #2e7d32, #1b5e20);
  color: #fff;
}
.zap-btn.accept:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(46,125,50,0.4); }
.zap-btn.reject {
  background: rgba(139,58,58,0.4);
  color: #e57373;
  border: 1px solid #8b3a3a;
}
.zap-btn.reject:hover { background: rgba(139,58,58,0.6); }

.zap-goscia-btn {
  color: var(--gold) !important;
  font-size: 0.85rem !important;
}


/* ===== TABLICA OGŁOSZEŃ — PEŁNA PRAWA KOLUMNA ===== */
@keyframes pulsuj-ramka {
  0%,100% { box-shadow: 0 0 10px 3px rgba(201,168,76,0.4); border-color: var(--gold-dark); }
  50%      { box-shadow: 0 0 28px 8px rgba(201,168,76,0.85); border-color: var(--gold-light); }
}
@keyframes pulsuj-zap-bg {
  0%,100% { background: rgba(139,30,10,0.3); }
  50%      { background: rgba(201,100,30,0.22); }
}
@keyframes sala-glow {
  0%,100% { box-shadow: 0 0 12px 3px rgba(201,168,76,0.5), inset 0 0 12px rgba(201,168,76,0.08); }
  50%      { box-shadow: 0 0 32px 10px rgba(201,168,76,0.9), inset 0 0 20px rgba(201,168,76,0.18); }
}

/* Kolumna — zajmuje prawą pustą sekcję zdjęcia */
.tablica-kolumna {
  position: fixed !important;
  top: 60px !important;
  right: 10px !important;
  left: auto !important;
  width: 200px !important;
  height: calc(56vh - 60px) !important;
  z-index: 25;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 8px;
  background: rgba(20,10,2,0.82);
  border: 2px solid var(--gold-dark);
  border-radius: 12px;
  backdrop-filter: blur(6px);
}

.tablica-kolumna.ma-zaproszenie {
  animation: pulsuj-ramka 1.4s ease-in-out infinite;
}

/* Przycisk DO SALI — duży, świecący */
.tablica-sala-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 8px;
  background: linear-gradient(135deg, rgba(92,61,30,0.7), rgba(58,32,16,0.9));
  border: 2px solid var(--gold);
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  animation: sala-glow 2.2s ease-in-out infinite;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.tablica-sala-btn:hover {
  transform: scale(1.04);
  background: linear-gradient(135deg, rgba(120,80,30,0.85), rgba(80,45,16,0.95));
}

.sala-btn-ikona {
  font-size: 1.8rem;
  line-height: 1;
}
.sala-btn-tekst {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-light);
  text-align: center;
  letter-spacing: 0.5px;
  line-height: 1.3;
}
.sala-btn-sub {
  font-family: 'Crimson Text', serif;
  font-size: 0.65rem;
  color: var(--text-light);
  font-style: italic;
  text-align: center;
}

/* Etykieta tablicy */
.tablica-header-label {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  color: var(--gold-light);
  letter-spacing: 0.5px;
  padding: 4px 4px 6px;
  border-bottom: 1px solid rgba(201,168,76,0.35);
  flex-shrink: 0;
}

/* Lista ogłoszeń */
.tablica-body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dark) transparent;
}

.tablica-pusty {
  color: rgba(245,230,200,0.6);
  font-size: 0.82rem;
  text-align: center;
  padding: 14px 4px;
  font-style: italic;
  line-height: 1.6;
}

.tablica-item {
  border-radius: 7px;
  padding: 9px 10px;
  font-size: 0.88rem;
  color: #f5e6c8;
  line-height: 1.55;
  font-family: 'Crimson Text', serif;
}

.tablica-info {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(201,168,76,0.45);
  color: #f5e6c8;
}

.tablica-uwaga {
  background: rgba(180,80,0,0.25);
  border: 1px solid rgba(255,140,0,0.6);
  color: #ffe0b0;
}

.tablica-impreza {
  background: rgba(60,20,100,0.35);
  border: 1px solid rgba(180,100,255,0.5);
  color: #f0d8ff;
}

.tablica-system {
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold-light);
  font-size: 0.82rem;
}

/* Zaproszenie — pulsuje */
.tablica-zaproszenie {
  border: 2px solid var(--gold);
  border-radius: 8px;
}
.tablica-zaproszenie.pulsuj {
  animation: pulsuj-zap-bg 1.4s ease-in-out infinite;
}

.tablica-zap-tresc {
  margin-bottom: 7px;
  line-height: 1.55;
  font-size: 0.85rem;
  color: #f5e6c8;
}
.tablica-zap-tresc strong { color: var(--gold-light); }
.tablica-zap-tresc em { color: #fff; font-style: normal; font-weight: 600; }

.tablica-zap-btns { display: flex; gap: 5px; }
.tablica-zap-btns .zap-btn {
  flex: 1;
  padding: 5px 6px;
  border: none;
  border-radius: 6px;
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.tablica-zap-btns .zap-btn.accept { background: linear-gradient(135deg,#2e7d32,#1b5e20); color:#fff; }
.tablica-zap-btns .zap-btn.accept:hover { transform: translateY(-1px); }
.tablica-zap-btns .zap-btn.reject { background: rgba(139,58,58,0.4); color:#e57373; border:1px solid #8b3a3a; }

/* ===== RANKING ĆMY BAROWEJ ===== */
/* Ranking — pod tablicą ogłoszeń */
.ranking-widget {
  position: fixed !important;
  top: 56vh !important;
  right: 10px !important;
  left: auto !important;
  width: 200px !important;
  z-index: 25;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.ranking-header {
  background: linear-gradient(135deg, #4a2a08, #7a4a18);
  border: 2px solid var(--gold-dark);
  border-bottom: none;
  padding: 9px 14px;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  color: var(--gold-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
  user-select: none;
}
.ranking-header:hover { background: linear-gradient(135deg, #5c3510, #8a5520); }

.ranking-tabs {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.rtab {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--cream-dark);
  padding: 2px 8px;
  border-radius: 10px;
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  cursor: pointer;
  transition: all 0.2s;
}
.rtab:hover  { border-color: var(--gold); color: var(--gold-light); }
.rtab.active { background: rgba(201,168,76,0.25); border-color: var(--gold); color: var(--gold); }

.ranking-toggle-btn {
  font-size: 0.75rem;
  color: var(--gold);
  flex-shrink: 0;
}

.ranking-body {
  background: rgba(20,10,2,0.97);
  border: 2px solid var(--gold-dark);
  border-top: none;
  padding: 8px 10px;
  max-height: 160px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dark) transparent;
}

.ranking-pusty {
  color: var(--text-light);
  text-align: center;
  font-style: italic;
  font-size: 0.85rem;
  padding: 12px 0;
}

.ranking-loading {
  color: var(--text-light);
  text-align: center;
  font-size: 0.82rem;
  padding: 10px 0;
}

.ranking-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 4px;
  border-bottom: 1px solid rgba(201,168,76,0.1);
  font-size: 0.88rem;
}
.ranking-row:last-child { border-bottom: none; }
.ranking-row.ja { background: rgba(201,168,76,0.08); border-radius: 6px; }

.ranking-medal {
  font-size: 1rem;
  min-width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.ranking-nick {
  flex: 1;
  color: var(--cream);
  font-family: 'Crimson Text', serif;
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ranking-row.ja .ranking-nick { color: var(--gold-light); font-weight: 600; }

.ranking-czas {
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-family: 'Cinzel', serif;
  white-space: nowrap;
  flex-shrink: 0



/* =====================================================
   MOBILE — max 768px
   ===================================================== */
@media (max-width: 768px) {

  /* ── PODSTAWY ───────────────────────────────────── */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
  }

  /* ── NAWIGACJA ──────────────────────────────────── */
  .pub-nav {
    padding: 8px 10px !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
  }
  .pub-nav-logo {
    font-size: 0.75rem !important;
    letter-spacing: 0 !important;
  }
  .nav-btn {
    padding: 5px 8px !important;
    font-size: 0.75rem !important;
  }
  .nav-right {
    display: flex !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    max-width: 120px !important;
  }
  /* Na stronie sali schowaj nick w nav — jest za mało miejsca */
  body.sala-page .welcome-msg {
    display: none !important;
  }
  body.sala-page .pub-nav {
    justify-content: space-between !important;
  }
  body.sala-page .nav-center {
    flex: 1 !important;
    text-align: center !important;
  }
  /* Schowaj wyszukiwarkę piw na mobile — za mało miejsca */
  .beer-search-wrap {
    display: none !important;
  }

  /* ── PANEL GOŚCI — schowaj na mobile (jest w środku) */
  .goscie-panel {
    display: none !important;
  }

  /* ── TABLICA OGŁOSZEŃ I ĆMA BAROWA ─────────────── */
  /* Na mobile: zamiast fixed po prawej — na dole strony */
  .tablica-kolumna {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    max-height: 200px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-top: 2px solid #c9a84c !important;
    border-bottom: none !important;
    overflow-y: auto !important;
  }
  .ranking-widget {
    position: static !important;
    width: 100% !important;
    border-radius: 0 !important;
  }

  /* ── CZAT PRZY BARZE ────────────────────────────── */
  .chat-widget {
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    border-radius: 12px 12px 0 0 !important;
  }
  /* Napraw pionowy tekst w czacie */
  .chat-widget-header,
  .chat-widget-header * {
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    white-space: nowrap !important;
  }
  .chat-widget-header {
    padding: 10px 14px !important;
    cursor: pointer !important;
  }
  /* Treść czatu — lepsza wysokość na mobile */
  .chat-widget-body {
    max-height: 40vh !important;
  }
  .chat-messages {
    max-height: 28vh !important;
  }

  /* ── PUB INTERIOR — zdjęcie baru ───────────────── */
  .pub-scene-inner {
    padding-top: 100% !important; /* bardziej kwadratowe na telefonie */
  }

  /* ── SALA ZE STOLIKAMI ──────────────────────────── */
  /* ── NAWIGACJA SALI ── */
  .sala-back-text { display: none !important; }
  .sala-back-sign {
    padding: 6px 10px !important;
  }
  .pub-nav-logo {
    font-size: 0.72rem !important;
    letter-spacing: 0 !important;
  }

  /* ── GŁÓWNY UKŁAD SALI — kolumna góra/dół ── */
  body.sala-page { overflow-x: hidden !important; }
  /* Na telefonie: tylko sidebar, prawa część (wideo) schowana */
  .sala-content {
    flex-direction: column !important;
    height: auto !important;
    width: 100vw !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  /* Sidebar — pełna szerokość, to jedyne co widać */
  .sala-sidebar {
    width: 100vw !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    height: auto !important;
    max-height: none !important;
    border-right: none !important;
    border-bottom: none !important;
    padding: 12px !important;
    box-sizing: border-box !important;
  }

  /* Prawa część (wideo inline) — ukryta na telefonie */
  /* Wideo otwiera się w nowym oknie więc ramka jest zbędna */
  .sala-main {
    display: none !important;
  }

  /* Karty stolików */
  .table-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .btn-join, .btn-leave, .btn-create-table {
    width: 100% !important;
    padding: 12px !important;
    font-size: 1rem !important;
    box-sizing: border-box !important;
  }

  /* ── VIDEO CHAT (Daily.co iframe) ───────────────── */
  #videoFrame,
  .daily-iframe,
  iframe[src*="daily.co"] {
    width: 100% !important;
    height: 60vh !important;
    min-height: 300px !important;
  }

  /* ── MODAL PROFILU ──────────────────────────────── */
  .profil-modal {
    width: 95% !important;
    max-width: 95% !important;
    padding: 16px !important;
  }

  /* ── PRZYCISKI OGÓLNE ───────────────────────────── */
  button, .btn, .nav-btn {
    touch-action: manipulation !important; /* szybsze kliknięcia na iOS */
  }

  /* ── PADDING NA DOLE (czat zasłania treść) ──────── */
  body.pub-interior {
    padding-bottom: 60px !important;
  }
}

/* ── Video room na mobile — pełna szerokość ── */
  .video-room {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100vw !important;
    height: 55vh !important;
    overflow: hidden !important;
  }
  /* Ukryj gości w nagłówku wideo na małym ekranie */
  .room-guests { display: none !important; }

}

/* ── Bardzo małe ekrany (iPhone SE itp.) ────────── */
@media (max-width: 390px) {
  .pub-nav-logo {
    display: none !important; /* na bardzo małych chowamy logo żeby przyciski się zmieściły */
  }
  .nav-btn {
    padding: 5px 6px !important;
    font-size: 0.7rem !important;
  }
}
