/* ============================================================
   enter.css — The Building | Lionel's Creative Gym
   RTL Hebrew, mobile-first, dark theme
   ============================================================ */

/* ============================================================
   SECTION 1 — CSS Custom Properties
   ============================================================ */
:root {
  --accent-gym: #FBBF24;
  --accent-gym-secondary: #a855f7;
  --accent-stage: #22c55e;
  --accent-stage-secondary: #15803d;
  --accent-compass: #0EA5E9;
  --accent-compass-secondary: #0369a1;
  --accent-rooftop: #ec4899;
  --accent-rooftop-secondary: #a855f7;
  --bg-dark: #0a0a0a;
  --text-primary: #f0f0f0;
  --text-secondary: #94a3b8;
  --font-body: 'Heebo', sans-serif;
  --font-accent: 'Space Grotesk', sans-serif;
  --outline-width: 3px;
}

/* ============================================================
   SECTION 2 — Base + RTL
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background: var(--bg-dark);
  font-family: var(--font-body);
  color: var(--text-primary);
  overflow: hidden;
  min-height: 100vh;
  position: relative;
}

body.skip-mode {
  overflow-y: auto;
}

/* Screen reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Skip-to-content link — visible on focus */
a.sr-only:focus {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  width: auto;
  height: auto;
  clip: auto;
  white-space: normal;
  background: var(--accent-gym);
  color: #000;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  text-align: center;
  z-index: 200;
}

/* ============================================================
   SECTION 3 — Elevator Doors
   ============================================================ */
#elevator-doors {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  overflow: hidden;
  pointer-events: none;
}

/* HTML uses .door .door-left / .door .door-right */
.door {
  width: 50%;
  height: 100%;
  background: linear-gradient(180deg, #555 0%, #2a2a2a 40%, #333 80%, #3a3a3a 100%);
  position: relative;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 0 60px rgba(0,0,0,0.5);
}

/* Brushed metal texture lines */
.door::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent 0px,
    transparent 3px,
    rgba(255, 255, 255, 0.04) 3px,
    rgba(255, 255, 255, 0.04) 4px
  );
  pointer-events: none;
}

/* Door handle / center accent */
.door-left::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 4px;
  height: 60px;
  border-radius: 2px;
  background: rgba(251, 191, 36, 0.3);
}

.door-right::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  width: 4px;
  height: 60px;
  border-radius: 2px;
  background: rgba(251, 191, 36, 0.3);
}

.door-left {
  transform: translateX(0);
  border-right: 2px solid #111;
}

.door-right {
  transform: translateX(0);
  border-left: 2px solid #111;
}

.door-left.open {
  transform: translateX(-100%);
}

.door-right.open {
  transform: translateX(100%);
}

/* Door closing animation */
.door-left.closing {
  transform: translateX(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.door-right.closing {
  transform: translateX(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Door reopening animation */
.door-left.reopening {
  transform: translateX(-100%);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.door-right.reopening {
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Floor number display — centered at top of doors */
.floor-indicator {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 40px;
  background: #1a1a1a;
  border-radius: 0 0 40px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Courier New', monospace;
  color: var(--accent-gym);
  font-size: 1.5rem;
  font-weight: bold;
  z-index: 101;
  border: 2px solid #333;
  pointer-events: none;
}

/* ============================================================
   SECTION 4 — Skip Button
   ============================================================ */
#skip-btn {
  position: fixed;
  bottom: 6px;
  right: 6px;
  z-index: 102;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 0;
  padding: 8px 24px;
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

#skip-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

#skip-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ============================================================
   SECTION 5 — Floor Layout
   ============================================================ */
.floor {
  width: 100%;
  min-height: 100vh;
  position: relative;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.floor.active {
  display: flex;
}

.floor canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.floor-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  width: 100%;
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.floor-logos {
  font-family: var(--font-accent);
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.7;
}

.floor-headline {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.4;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 0, 0, 0.5);
  max-width: 600px;
}

.floor-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 500px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 0, 0, 0.5);
}

.floor-offerings {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
}

.offering {
  font-size: 1rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* CTA buttons */
.floor-cta {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--accent-gym);
  color: #000;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  border: var(--outline-width) solid rgba(0, 0, 0, 0.3);
}

/* Per-floor CTA accent colors */
#floor-gym .floor-cta {
  background: var(--accent-gym);
  color: #000;
}

#floor-stage .floor-cta {
  background: var(--accent-stage);
  color: #000;
}

#floor-compass .floor-cta {
  background: var(--accent-compass);
  color: #fff;
}

#floor-rooftop .floor-cta {
  background: var(--accent-rooftop);
  color: #000;
}

.floor-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Lead magnet area */
.floor-lead-magnet {
  width: 100%;
  max-width: 500px;
}

.lead-magnet-header {
  font-size: 1rem;
  margin-bottom: 0.8rem;
  color: var(--text-secondary);
}

/* Floor 1 spark form (plain <form> in HTML) */
#floor-gym .floor-lead-magnet h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
}

#floor-gym form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

#floor-gym form input,
#floor-gym form textarea {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  direction: rtl;
  text-align: right;
}

#floor-gym form input::placeholder,
#floor-gym form textarea::placeholder {
  color: var(--text-secondary);
}

#floor-gym form button[type="submit"] {
  background: var(--accent-gym);
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 10px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: opacity 0.2s;
}

#floor-gym form button[type="submit"]:hover {
  opacity: 0.85;
}

/* Generic spark-form class (for reuse) */
.spark-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.spark-form input,
.spark-form textarea {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.spark-form button {
  background: var(--accent-gym);
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 10px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: opacity 0.2s;
}

.spark-form button:hover {
  opacity: 0.85;
}

.spark-success {
  color: var(--accent-gym);
  font-weight: 700;
  display: none;
}

/* Cross-sell */
.floor-cross-sell {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.floor-cross-sell a {
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* VAT notice */
.floor-vat {
  font-size: 0.75rem;
  color: var(--text-secondary);
  opacity: 0.6;
}

/* Project links */
.floor-project-links,
.floor-project-link {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.floor-project-links a,
.floor-project-link a {
  text-decoration: underline;
  margin: 0 0.25rem;
}

/* Mixcloud trigger */
.mixcloud-trigger {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 10px 20px;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: background 0.2s;
}

.mixcloud-trigger:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Rooftop view trigger */
.rooftop-view-trigger {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 8px 18px;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 0.9rem;
  font-family: var(--font-body);
  transition: background 0.2s;
}

.rooftop-view-trigger:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Floor fade transitions */
.floor.fading-out {
  opacity: 0;
  transition: opacity 150ms ease;
}

.floor.fading-in {
  opacity: 1;
  transition: opacity 150ms ease;
}

/* ============================================================
   SECTION 6 — Doorman
   ============================================================ */
#doorman {
  position: fixed;
  inset: 0;
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  opacity: 0;
  transition: opacity 0.5s;
}

#doorman.visible {
  opacity: 1;
}

#doorman[hidden] {
  display: none;
}

.doorman-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 420px;
  padding: 2rem;
  text-align: center;
}

.doorman-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--accent-gym);
  object-fit: cover;
}

.doorman-bubble {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  max-width: 380px;
}

/* Upward triangle pointer */
.doorman-bubble::after {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 12px solid rgba(255, 255, 255, 0.08);
}

.doorman-text {
  font-size: 1.2rem;
  line-height: 1.6;
  min-height: 3em;
}

.doorman-cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--accent-gym);
  vertical-align: text-bottom;
  animation: blink 0.8s infinite;
}

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

.doorman-choices {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.doorman-choices[hidden] {
  display: none;
}

.doorman-btn {
  padding: 14px 28px;
  border-radius: 30px;
  border: 2px solid var(--accent-gym);
  background: transparent;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.doorman-btn:hover {
  background: var(--accent-gym);
  color: #000;
}

.doorman-btn:focus-visible {
  outline: 2px solid var(--accent-gym);
  outline-offset: 2px;
}

.doorman-name {
  margin-top: 0.5rem;
}

.doorman-name[hidden] {
  display: none;
}

#visitor-name-input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 10px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  text-align: center;
  width: 200px;
  direction: rtl;
}

#visitor-name-input::placeholder {
  color: var(--text-secondary);
}

/* ============================================================
   SECTION 7 — Skip Mode
   ============================================================ */
body.skip-mode #elevator-doors {
  display: none;
}

body.skip-mode #doorman {
  display: none !important;
}

body.skip-mode #skip-btn {
  display: none;
}

body.skip-mode .floor {
  display: flex;
  min-height: 100vh;
}

body.skip-mode .floor canvas {
  display: none;
}

body.skip-mode #elevator-panel {
  display: none;
}

body.skip-mode #whatsapp-float {
  display: none;
}

body.skip-mode .floor-content {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* Subtle separator between floors in skip mode */
body.skip-mode .floor + .floor {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================================
   SECTION 8 — Elevator Panel (Nav)
   ============================================================ */
#elevator-panel {
  position: fixed;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  /* Mobile: bottom bar */
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  justify-content: center;
  padding: 0 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#elevator-panel[hidden] {
  display: none;
}

.nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-accent);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Active glow by floor */
.nav-btn.active {
  border-color: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.nav-btn[data-floor="1"].active     { color: var(--accent-gym); }
.nav-btn[data-floor="2"].active     { color: var(--accent-stage); }
.nav-btn[data-floor="3"].active     { color: var(--accent-compass); }
.nav-btn[data-floor="rooftop"].active { color: var(--accent-rooftop); }
.nav-btn[data-floor="lobby"].active   { color: var(--text-secondary); }

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-btn:focus-visible {
  outline: 2px solid var(--accent-gym);
  outline-offset: 2px;
}

.panel-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: background 0.3s;
  font-family: var(--font-body);
}

.panel-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.panel-btn:focus-visible {
  outline: 2px solid var(--accent-gym);
  outline-offset: 2px;
}

.panel-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 0.25rem;
  flex-shrink: 0;
}

/* ============================================================
   SECTION 9 — Overlays (Log Panel, Directory, Rooftop View)
   ============================================================ */

/* Log Panel — slides in from right */
#log-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  max-width: 100%;
  background: rgba(10, 10, 10, 0.98);
  z-index: 95;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

/* Log panel uses CSS-only show/hide — not the hidden attribute.
   Always in DOM; off-screen via translateX(100%) when not .open.
   pointer-events blocked unless .open. */
#log-panel:not(.open) {
  pointer-events: none;
  visibility: hidden;
}

#log-panel.open {
  transform: translateX(0);
}

.log-panel-inner {
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.log-panel-inner h3 {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  padding-top: 2rem;
}

.log-panel-inner iframe {
  flex: 1;
  width: 100%;
  border: none;
  border-radius: 8px;
}

/* Close button — RTL means top-left */
.close-btn {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  transition: opacity 0.2s;
}

.close-btn:hover {
  opacity: 0.7;
}

.close-btn:focus-visible {
  outline: 2px solid var(--accent-gym);
  outline-offset: 2px;
}

/* Directory Panel — floats above nav bar */
#directory-panel {
  position: fixed;
  bottom: 64px;
  right: 0;
  background: rgba(15, 15, 15, 0.98);
  border-radius: 12px 12px 0 0;
  padding: 1rem;
  min-width: 250px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 81;
}

#directory-panel[hidden] {
  display: none;
}

.directory-entry {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.directory-entry:last-child {
  border-bottom: none;
}

.directory-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.directory-entry strong {
  margin-left: 0.5rem;
}

.directory-entry a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: underline;
  transition: color 0.2s;
}

.directory-entry a:hover {
  color: var(--text-primary);
}

/* Rooftop View — full-screen overlay */
#rooftop-view {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  cursor: pointer;
}

#rooftop-view[hidden] {
  display: none;
}

.rooftop-view-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.building-miniature {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 200px;
}

.mini-floor {
  height: 60px;
  background: var(--floor-color, #333);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0.8;
  color: #000;
  transition: opacity 0.2s;
}

.mini-floor[data-floor="rooftop"] {
  opacity: 1;
  box-shadow: 0 0 20px var(--floor-color);
}

.building-title {
  font-family: var(--font-accent);
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
}

.building-badge {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 400px;
  text-align: center;
  line-height: 1.5;
}

/* ============================================================
   SECTION 10 — WhatsApp Float
   ============================================================ */
#whatsapp-float {
  position: fixed;
  bottom: 80px;
  left: 20px;
  z-index: 79;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #25D366;
  color: #fff;
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
}

#whatsapp-float[hidden] {
  display: none;
}

#whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.wa-icon {
  font-size: 1.3rem;
}

/* ============================================================
   SECTION 11 — Responsive
   ============================================================ */
@media (min-width: 768px) {
  .floor-headline {
    font-size: 2.2rem;
  }

  .floor-content {
    padding: 3rem 2rem;
  }

  .doorman-inner {
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  /* Desktop: elevator panel moves to right side */
  #elevator-panel {
    flex-direction: column;
    right: 0;
    top: 0;
    bottom: 0;
    left: auto;
    width: 70px;
    height: auto;
    border-top: none;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: center;
    padding: 1rem 0;
  }

  .nav-btn {
    border-radius: 8px;
  }

  .panel-divider {
    width: 32px;
    height: 1px;
    margin: 0.25rem 0;
  }

  .floor-content {
    max-width: 800px;
    padding: 3rem;
  }

  .floor-headline {
    font-size: 2.5rem;
  }

  #whatsapp-float {
    bottom: 30px;
  }

  #log-panel {
    width: 450px;
  }

  /* Directory panel repositioned next to desktop sidebar */
  #directory-panel {
    bottom: auto;
    top: 50%;
    right: 78px;
    transform: translateY(-50%);
    border-radius: 12px;
  }
}

/* ============================================================
   SECTION 12 — Reduced Motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .door {
    transition: none;
  }

  .floor.fading-out,
  .floor.fading-in {
    transition: none;
  }

  #doorman {
    transition: none;
  }

  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ============================================================
   SECTION 13 — Focus Styles
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--accent-gym);
  outline-offset: 2px;
}
