/* ── Reset & base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%; height: 100%;
  background: #0d0d1a;
  font-family: 'Courier New', Courier, monospace;
  color: #e8e8e8;
  overflow: hidden;
}

/* ── Join screen ───────────────────────────────────────────────────────── */
#join-screen {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* Full-bleed background video */
#join-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Soft darkening overlay — light enough to let the video breathe */
.join-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 4, 2, 0.42);
  z-index: 1;
}

.join-card {
  position: relative;
  z-index: 2;
  background: rgba(28, 18, 10, 0.68);
  border: 1px solid rgba(180, 140, 90, 0.28);
  border-radius: 14px;
  padding: 38px 46px;
  width: 420px;
  max-width: 95vw;
  box-shadow: 0 10px 50px rgba(0,0,0,0.55), inset 0 1px 0 rgba(220,180,120,0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.join-card h1 {
  font-size: 28px;
  text-align: center;
  letter-spacing: 3px;
  color: #e8d4a8;
  text-shadow: 0 1px 12px rgba(180,130,60,0.4);
}

.join-card .subtitle {
  text-align: center;
  font-size: 12px;
  color: rgba(210, 185, 145, 0.6);
  margin-top: -6px;
}

.join-card label {
  font-size: 11px;
  color: rgba(210, 185, 145, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: -8px;
}

.join-card input[type="text"] {
  background: rgba(10, 6, 2, 0.55);
  border: 1px solid rgba(160, 120, 70, 0.35);
  border-radius: 8px;
  color: #f0e4cc;
  font-family: inherit;
  font-size: 15px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s;
}
.join-card input[type="text"]::placeholder { color: rgba(180,150,100,0.4); }
.join-card input[type="text"]:focus {
  border-color: rgba(210, 165, 80, 0.7);
}

/* Character selector */
.character-select {
  display: flex;
  gap: 14px;
}

.char-option {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  border: 1px solid rgba(160, 120, 70, 0.3);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font-size: 12px;
  color: rgba(210, 185, 145, 0.7);
  user-select: none;
}

.char-option:hover {
  border-color: rgba(200, 155, 80, 0.6);
  background: rgba(60, 40, 15, 0.35);
}

.char-option.selected {
  border-color: rgba(220, 175, 90, 0.8);
  background: rgba(60, 40, 15, 0.45);
  color: #e8d4a8;
}

.char-sprite {
  width: 72px;
  height: 72px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
}

/* Enter button */
#enter-btn {
  margin-top: 6px;
  padding: 12px;
  background: rgba(190, 145, 65, 0.85);
  color: #1a0f04;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  font-weight: bold;
  cursor: pointer;
  letter-spacing: 1px;
  transition: background 0.2s, transform 0.1s;
}
#enter-btn:hover  { background: rgba(215, 168, 80, 0.95); }
#enter-btn:active { transform: scale(0.98); }

.error-msg {
  color: #e08070;
  font-size: 12px;
  text-align: center;
  min-height: 16px;
}

/* ── Loading screen ────────────────────────────────────────────────────── */
#loading-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
}

.loading-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  color: #f0d080;
  font-size: 14px;
  letter-spacing: 1px;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid #44446a;
  border-top-color: #f0d080;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Game screen ───────────────────────────────────────────────────────── */
#game-screen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #0a0a14;
  overflow: hidden;
}

#canvas-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#game-canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* ── Proximity Chat Panel ──────────────────────────────────────────── */
#chat-panel {
  position: fixed;
  bottom: 84px;
  right: 20px;
  width: 280px;
  background: rgba(14, 9, 4, 0.88);
  border: 1px solid rgba(190, 145, 65, 0.45);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 6px 30px rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  transition: opacity 0.25s, transform 0.25s;
}

#chat-panel.chat-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

#chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px 6px;
  background: rgba(190, 145, 65, 0.12);
  border-bottom: 1px solid rgba(190, 145, 65, 0.2);
}

#chat-nearby-label {
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(230, 195, 120, 0.85);
  text-transform: uppercase;
}

#chat-close-btn {
  background: none;
  border: none;
  color: rgba(210, 175, 110, 0.6);
  font-size: 13px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  transition: color 0.15s;
}
#chat-close-btn:hover { color: rgba(240, 200, 130, 1); }


/* ── Chat toggle button ──────────────────────────────────────────────── */
#chat-toggle-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  border: 1.5px solid rgba(190, 145, 65, 0.45);
  background: rgba(14, 9, 4, 0.82);
  padding: 4px;
  cursor: pointer;
  z-index: 110;
  box-shadow: 0 4px 18px rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
  display: none; /* shown by JS after game starts */
}
#chat-toggle-btn:hover {
  border-color: rgba(220, 175, 90, 0.8);
  background: rgba(40, 25, 8, 0.9);
}
#chat-toggle-btn:active { transform: scale(0.93); }
#chat-toggle-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
#chat-toggle-btn.chat-open {
  border-color: rgba(220, 175, 90, 0.9);
  background: rgba(60, 38, 10, 0.88);
}

/* ── Recipient selector row ──────────────────────────────────────────── */
#chat-recipient-row {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 5px;
  padding: 5px 8px;
  background: rgba(0,0,0,0.18);
  border-bottom: 1px solid rgba(190, 145, 65, 0.15);
  scrollbar-width: none;
}
#chat-recipient-row::-webkit-scrollbar { display: none; }

.recipient-pill {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(190, 145, 65, 0.3);
  background: rgba(10, 6, 2, 0.45);
  color: rgba(210, 185, 145, 0.75);
  font-family: inherit;
  font-size: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.recipient-pill:hover {
  border-color: rgba(210, 165, 80, 0.6);
  background: rgba(60, 40, 15, 0.4);
  color: #e8d4a8;
}
.recipient-pill.selected {
  border-color: rgba(220, 175, 90, 0.85);
  background: rgba(190, 145, 65, 0.22);
  color: #f0e0b0;
  font-weight: bold;
}
.recipient-pill.global-pill.selected {
  border-color: rgba(100, 180, 255, 0.7);
  background: rgba(30, 80, 160, 0.25);
  color: #a8d4ff;
}

/* Blocked player pill */
.recipient-pill.pill-blocked {
  opacity: 0.55;
  text-decoration: line-through;
  border-color: rgba(200, 60, 60, 0.4);
}

/* ── Chat tabs ───────────────────────────────────────────────────────── */
#chat-tabs {
  display: flex;
  border-bottom: 1px solid rgba(190, 145, 65, 0.2);
  flex-shrink: 0;
}

.chat-tab {
  flex: 1;
  padding: 6px 0;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: rgba(200, 175, 130, 0.55);
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  position: relative;
}
.chat-tab:hover { color: rgba(220, 190, 140, 0.85); }
.chat-tab.active {
  color: #e8c86a;
  border-bottom-color: #e8c86a;
}
/* Unread badge dot */
.chat-tab .tab-badge {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e05050;
  margin-left: 4px;
  vertical-align: middle;
  animation: pulse-dot 1.2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

#chat-messages-nearby,
#chat-messages-global {
  height: 180px;
  overflow-y: auto;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  scroll-behavior: smooth;
}
#chat-messages-nearby::-webkit-scrollbar,
#chat-messages-global::-webkit-scrollbar { width: 4px; }
#chat-messages-nearby::-webkit-scrollbar-track,
#chat-messages-global::-webkit-scrollbar-track { background: transparent; }
#chat-messages-nearby::-webkit-scrollbar-thumb,
#chat-messages-global::-webkit-scrollbar-thumb { background: rgba(190,145,65,0.3); border-radius: 2px; }

/* Global messages in global pane */
.chat-msg.chat-global .chat-name      { color: #82c8e8; }
.chat-msg.chat-global-self .chat-name { color: #a8d4ff; }


.chat-msg {
  font-size: 12px;
  line-height: 1.4;
  word-break: break-word;
}

.chat-msg .chat-name {
  font-weight: bold;
  margin-right: 4px;
}

.chat-msg.chat-self .chat-name { color: #e8c86a; }
.chat-msg.chat-other .chat-name { color: #82c8e8; }
.chat-msg .chat-text { color: #ddd; }

#chat-input-row {
  display: flex;
  border-top: 1px solid rgba(190, 145, 65, 0.2);
}

#chat-input {
  flex: 1;
  background: rgba(8, 5, 2, 0.6);
  border: none;
  color: #f0e4cc;
  font-family: inherit;
  font-size: 12px;
  padding: 8px 10px;
  outline: none;
}
#chat-input::placeholder { color: rgba(180,150,100,0.35); }
#chat-input:disabled { opacity: 0.35; cursor: not-allowed; }
#chat-send-btn:disabled { opacity: 0.35; cursor: not-allowed; }

#chat-send-btn {
  background: rgba(190, 145, 65, 0.75);
  border: none;
  color: #1a0f04;
  font-family: inherit;
  font-size: 11px;
  font-weight: bold;
  padding: 0 12px;
  cursor: pointer;
  transition: background 0.15s;
}
#chat-send-btn:hover { background: rgba(215, 168, 80, 0.95); }

/* (room selector removed — will be added later) */

/* ── Sound mute button (inside settings panel) ───────────────────────── */
#sound-btn {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(30, 80, 30, 0.55);
  color: #80e880;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
#sound-btn:hover { background: rgba(40,110,40,0.7); }
#sound-btn.muted {
  background: rgba(100, 20, 20, 0.55);
  border-color: rgba(200, 60, 60, 0.5);
  color: #e07070;
}


/* ── Settings gear button ────────────────────────────────────────────── */
#settings-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: rgba(10, 10, 28, 0.82);
  color: #c8c8e8;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: none; /* shown by JS after game starts */
  align-items: center;
  justify-content: center;
  z-index: 151;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  transition: background 0.15s, transform 0.2s;
}
#settings-btn:hover { background: rgba(60,60,100,0.9); }
#settings-btn.open  { transform: rotate(60deg); color: #e8c86a; border-color: rgba(220,175,90,0.6); }

/* ── Settings panel ──────────────────────────────────────────────────── */
#settings-panel {
  position: fixed;
  bottom: 70px;
  left: 20px;
  width: 210px;
  background: rgba(12, 9, 4, 0.93);
  border: 1px solid rgba(190, 145, 65, 0.4);
  border-radius: 10px;
  padding: 10px 12px;
  z-index: 151;
  box-shadow: 0 6px 24px rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: opacity 0.2s, transform 0.2s;
  transform-origin: bottom left;
}
#settings-panel.settings-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92) translateY(6px);
}

.settings-title {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(220, 185, 110, 0.7);
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(190, 145, 65, 0.18);
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(210, 190, 150, 0.85);
  cursor: default;
  gap: 8px;
}

.settings-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 0 4px 10px;
  border-left: 2px solid rgba(190, 145, 65, 0.2);
  margin-left: 4px;
}
.settings-sub-label {
  font-size: 10px;
  color: rgba(180, 160, 120, 0.6);
  white-space: nowrap;
}

#volume-slider {
  width: 90px;
  height: 4px;
  accent-color: #e8c86a;
  cursor: pointer;
  flex-shrink: 0;
}

.toggle-btn {
  flex-shrink: 0;
  width: 46px;
  padding: 3px 0;
  border-radius: 999px;
  border: 1px solid rgba(80, 200, 80, 0.5);
  background: rgba(30, 100, 30, 0.5);
  color: #80e880;
  font-family: inherit;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.toggle-btn[data-on="false"] {
  border-color: rgba(200, 60, 60, 0.5);
  background: rgba(100, 20, 20, 0.5);
  color: #e07070;
}

/* ── Player HUD overlay (controls on enlarged video circle) ──────────── */
#player-hud {
  position: fixed;
  display: none; /* flex when active, managed by JS */
  flex-direction: row;
  gap: 6px;
  align-items: center;
  justify-content: center;
  z-index: 300;
  pointer-events: auto;
}

.hud-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.35);
  background: rgba(10, 10, 28, 0.82);
  color: #e8e8f8;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.6);
}
.hud-btn:hover { background: rgba(60,60,100,0.9); border-color: rgba(255,255,255,0.6); }

/* Active state — shown when voice is muted or mic is muted */
.hud-btn.hud-active {
  background: rgba(180, 40, 40, 0.85);
  border-color: rgba(255,120,120,0.7);
}
.hud-btn.hud-active:hover { background: rgba(210,50,50,0.9); }

/* Local player HUD — hide voice and block buttons, only show mic + close */
#player-hud.hud-local #hud-mute-voice  { display: none; }
#player-hud.hud-local #hud-block-chat  { display: none; }

/* Close button gets a subtly different tint */
.hud-btn-close {
  font-size: 14px;
  background: rgba(30, 10, 10, 0.82);
}
.hud-btn-close:hover { background: rgba(100,30,30,0.9); }

/* ── Mobile virtual joystick ──────────────────────────────────────────── */

/* Hidden by default — only shown on touch-primary devices */
#joystick-base,
#sit-btn {
  display: none;
}

@media (hover: none) and (pointer: coarse) {
  /* ── Joystick base ──────────────────────────────────────────────────────── */
  #joystick-base {
    display: block;
    position: fixed;
    bottom: 24px;
    left: 20px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    border: 2px solid rgba(255, 255, 255, 0.18);
    touch-action: none;
    z-index: 200;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
  }

  #joystick-knob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(240, 208, 128, 0.82);
    border: 2px solid rgba(240, 208, 128, 0.55);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
    pointer-events: none;
  }

  /* ── Sit / stand button ─────────────────────────────────────────────────── */
  #sit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 44px;
    right: 20px;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(190, 145, 65, 0.82);
    border: 2px solid rgba(220, 175, 90, 0.65);
    color: #1a0f04;
    font-family: inherit;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 3px 16px rgba(0, 0, 0, 0.55);
    z-index: 200;
    touch-action: manipulation;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  #sit-btn:active {
    background: rgba(215, 168, 80, 0.95);
    transform: scale(0.94);
  }

  /* ── Portrait-only adjustments ──────────────────────────────────────────── */
  @media (orientation: portrait) {
    /* Lift chat panel above the controls strip */
    #chat-panel {
      bottom: 186px;
      right: 8px;
      width: calc(100vw - 16px);
      max-width: 340px;
    }

    #chat-toggle-btn {
      bottom: 136px;
      right: 12px;
      width: 38px;
      height: 38px;
    }

    /* Slightly larger controls on tall portrait screens */
    #joystick-base {
      width: 140px;
      height: 140px;
    }

    #joystick-knob {
      width: 56px;
      height: 56px;
    }

    #sit-btn {
      width: 72px;
      height: 72px;
      font-size: 24px;
      bottom: 48px;
    }
  }

  /* Settings gear above joystick on mobile */
  #settings-btn {
    bottom: 168px;
    left: 10px;
  }

  /* Chat toggle: smaller, above the E sit button so they don't overlap */
  #chat-toggle-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    bottom: 126px;
    right: 22px;
  }



  @media (orientation: portrait) {
    #volume-control {
      bottom: 200px;
    }
  }
}

/* ── Table Meeting View ──────────────────────────────────────────────────── */

#meeting-view {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 18, 0.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 500;
  display: flex;
  flex-direction: column;
}
#meeting-view.meeting-hidden { display: none; }

#meeting-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(0,0,0,0.65);
  border-bottom: 1px solid rgba(190,145,65,0.25);
  flex-shrink: 0;
}
#meeting-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
#meeting-title {
  color: #e8c86a;
  font: bold 14px monospace;
  letter-spacing: 1px;
}
#meeting-count {
  color: rgba(200,175,130,0.5);
  font: 11px monospace;
}
#meeting-close-btn {
  background: rgba(14,9,4,0.82);
  color: #e8c86a;
  border: 1.5px solid rgba(190,145,65,0.45);
  border-radius: 8px;
  padding: 7px 16px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.5px;
  transition: background 0.15s, border-color 0.15s;
}
#meeting-close-btn:hover {
  background: rgba(60,38,10,0.9);
  border-color: rgba(220,175,90,0.8);
}

#meeting-grid {
  flex: 1;
  display: grid;
  gap: 10px;
  padding: 16px;
  overflow: hidden;
  align-items: center;
  justify-items: center;
  align-content: center;
  justify-content: center;
  width: 100%;
}
#meeting-grid.p1 { grid-template-columns: minmax(0, 560px); }
#meeting-grid.p2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 960px; margin: 0 auto; width: 100%; }
#meeting-grid.p3,
#meeting-grid.p4 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 900px; margin: 0 auto; width: 100%; }
#meeting-grid.p5,
#meeting-grid.p6 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1100px; margin: 0 auto; width: 100%; }

.meeting-tile {
  width: 100%;
  position: relative;
  background: #16162a;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1.5px solid rgba(255,255,255,0.07);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.meeting-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.meeting-tile-local video {
  transform: scaleX(-1);
}
.meeting-tile-name {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0,0,0,0.68);
  color: #fff;
  font: bold 11px monospace;
  padding: 4px 9px;
  border-radius: 5px;
  letter-spacing: 0.3px;
}
.meeting-tile-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #1a1a2e;
  color: rgba(180,160,130,0.5);
  font: 12px monospace;
}
.meeting-tile-placeholder::before {
  content: '👤';
  font-size: 36px;
  line-height: 1;
}

/* Meeting open/maximize button */
#meeting-btn {
  position: fixed;
  bottom: 20px;
  right: 84px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(14,9,4,0.82);
  border: 1.5px solid rgba(190,145,65,0.45);
  color: #e8c86a;
  cursor: pointer;
  z-index: 110;
  display: none; /* shown by JS when seated */
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
#meeting-btn:hover {
  background: rgba(60,38,10,0.9);
  border-color: rgba(220,175,90,0.8);
}
#meeting-btn:active { transform: scale(0.93); }

@media (hover: none) and (pointer: coarse) {
  #meeting-btn {
    bottom: 196px;
    right: 12px;
    width: 38px;
    height: 38px;
  }
  @media (orientation: portrait) {
    #meeting-btn {
      bottom: 196px;
      right: 12px;
    }
  }
}
