  :root {
    --cream: #1a1a0e;
    --orange: #d4a853;
    --ink: #0a0a06;
    --wall: #d4a853;
    --floor: #111108;
    --terracotta: #c4623a;
    --mustard: #b8882a;
    --sage: #4a6a40;
    --brown: #8b7a57;
    --room-bg: #1c1c10;
    --room-hover: #2e2810;
  }

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

  body {
    background: var(--cream);
    font-family: 'Press Start 2P', monospace;
    color: var(--ink);
    overflow: hidden;
    height: 100vh; width: 100vw;
  }

  /* ===================== ENTRANCE ===================== */
  #entrance {
    position: fixed; inset: 0;
    background: #0e0e08 url('images/entrance-bg.jpg') center/cover no-repeat;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    z-index: 500; transition: opacity 0.6s ease;
  }
  #entrance::before {
    content: '';
    position: absolute; inset: 0;
    background: rgba(10, 8, 4, 0.70);
    z-index: 0;
  }
  #entrance > * { position: relative; z-index: 1; }
  #entrance.hidden { opacity: 0; pointer-events: none; }

  .entrance-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.1; color: #e8e4d4;
    text-align: center; margin-bottom: 0.5rem;
  }
  .entrance-title span { color: var(--orange); font-style: italic; }
  .entrance-subtitle {
    font-family: 'Special Elite', serif;
    font-size: 1rem; letter-spacing: 4px;
    color: #7a6a4a; margin-bottom: 2.5rem;
    text-transform: uppercase; text-align: center;
  }
  .pixel-dialog {
    background: #1a1a0e; color: #e8e4d4; border: 1px solid var(--orange);
    padding: 2.5rem 3rem; position: relative; text-align: center; min-width: 320px;
    box-shadow:
      0 -4px 0 0 var(--ink), 0 4px 0 0 var(--ink), -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink),
      0 -8px 0 0 var(--cream), 0 8px 0 0 var(--cream), -8px 0 0 0 var(--cream), 8px 0 0 0 var(--cream),
      0 -12px 0 0 var(--ink), 0 12px 0 0 var(--ink), -12px 0 0 0 var(--ink), 12px 0 0 0 var(--ink);
  }
  .pixel-dialog::before {
    content: ''; position: absolute; top: -12px; left: -12px; width: 12px; height: 12px;
    background: var(--cream);
    box-shadow: calc(100% + 24px) 0 0 #0e0e08, 0 calc(100% + 24px) 0 #0e0e08, calc(100% + 24px) calc(100% + 24px) 0 #0e0e08;
  }
  .dialog-text { font-size: 0.65rem; line-height: 2.5; color: var(--orange); margin-bottom: 2rem; }
  .enter-btn {
    background: var(--orange); color: var(--ink); border: 2px solid var(--orange);
    padding: 0.8rem 2rem; font-family: 'Press Start 2P', monospace;
    font-size: 0.5rem; cursor: pointer; letter-spacing: 2px; transition: all 0.1s;
  }
  .enter-btn::before { content: '▶ '; color: var(--ink); }
  .enter-btn:hover { background: #f0a050; border-color: #f0a050; color: var(--ink); }
  .enter-btn:hover::before { color: var(--ink); }
  @keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
  .blink { animation: blink 1s step-end infinite; }

  /* ===================== MUSEUM ===================== */
  #museum {
    width: 100vw; height: 100vh;
    opacity: 0; transition: opacity 0.5s ease 0.1s;
    position: fixed; inset: 0; pointer-events: none;
    display: flex; flex-direction: column;
  }
  #museum.visible { opacity: 1; pointer-events: all; }

  /* TOP BAR */
  .top-bar {
    height: 48px; background: #0e0e08;
    border-bottom: 2px solid var(--orange);
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 0 1.2rem; flex-shrink: 0; z-index: 10;
  }
  .top-bar-title { font-size: clamp(0.38rem, 0.75vw, 0.52rem); color: #e8e4d4; letter-spacing: 2px; }
  .top-bar-title span { color: var(--orange); }
  .top-bar-right { display: flex; align-items: center; gap: 1rem; }
  .top-bar-visitor { font-size: clamp(0.38rem, 0.75vw, 0.52rem); color: var(--orange); letter-spacing: 2px; }
  .top-bar-btn {
    background: transparent; color: #e8e4d4;
    border: 2px solid #e8e4d4;
    padding: 0.5rem 1.2rem;
    font-family: 'Press Start 2P', monospace;
    font-size: clamp(0.38rem, 0.75vw, 0.52rem); cursor: pointer; letter-spacing: 1px; transition: all 0.1s;
  }
  .top-bar-btn:hover { background: var(--orange); border-color: var(--orange); color: #0e0e08; }

  .modal-back-btn {
    font-family: 'Press Start 2P', monospace; font-size: 0.45rem;
    background: none; border: 1px solid var(--orange); color: var(--orange);
    padding: 0.4rem 0.8rem; cursor: pointer; letter-spacing: 1px;
    transition: background 0.15s, color 0.15s;
  }
  .modal-back-btn:hover { background: var(--orange); border-color: var(--orange); color: #0e0e08; }

  .contact-action-btn {
    font-family: 'Press Start 2P', monospace; font-size: 0.42rem;
    background: none; border: 1px solid var(--orange); color: var(--orange);
    padding: 0.6rem 0.9rem; cursor: pointer; letter-spacing: 1px;
    text-decoration: none; display: inline-block;
    transition: background 0.15s, color 0.15s;
  }
  .contact-action-btn:hover { background: var(--orange); color: #0e0e08; }

  .exp-link-block {
    display: block; text-decoration: none; color: inherit;
    padding: 0.7rem 0.9rem; margin: -0.7rem -0.9rem 1.2rem -0.9rem;
    border-radius: 4px; transition: background 0.15s;
    position: relative;
  }
  .exp-link-block:hover { background: rgba(212,168,83,0.09); }
  .exp-link-block .exp-link-arrow {
    position: absolute; right: 0.9rem; top: 0.7rem;
    opacity: 0; transition: opacity 0.15s; color: var(--orange); font-size: 0.9rem;
  }
  .exp-link-block:hover .exp-link-arrow { opacity: 1; }

  /* FLOOR PLAN AREA */
  .floorplan-wrap {
    flex: 1; background: #111108;
    position: relative; overflow: hidden;
  }

  /* Diagonal hatch — aged architectural paper feel */
  .floorplan-wrap::before {
    content: ''; position: absolute; inset: 0;
    background-image:
      repeating-linear-gradient(
        45deg,
        rgba(232,146,58,0.04) 0px,
        rgba(232,146,58,0.04) 1px,
        transparent 1px,
        transparent 18px
      ),
      repeating-linear-gradient(
        -45deg,
        rgba(232,146,58,0.025) 0px,
        rgba(232,146,58,0.025) 1px,
        transparent 1px,
        transparent 18px
      );
    pointer-events: none; z-index: 0;
  }

  /* Vignette — museum lighting effect, bright center fading to dark corners */
  .floorplan-wrap::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(
      ellipse 60% 55% at 50% 50%,
      transparent 0%,
      transparent 35%,
      rgba(5,5,3,0.35) 65%,
      rgba(5,5,3,0.72) 100%
    );
    pointer-events: none; z-index: 5;
  }

  /* OUTER BORDER — the museum building */
  .fp-outer {
    position: absolute;
    inset: 3% 2%;
    z-index: 1;
    background: #111108;
  }

  /* ===================== SVG FLOOR PLAN ===================== */
  /* Using absolute positioning to match the reference image layout exactly */

  /* Rooms are boxes with border */
  .fp-room {
    position: absolute;
    border: 2px solid var(--orange);
    background: #1c1c10;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, border-color 0.2s, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), z-index 0s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.8rem;
    z-index: 3;
  }
  .fp-room:hover { box-shadow: 0 0 55px rgba(232,146,58,0.7), inset 0 0 32px rgba(232,146,58,0.2); border-color: var(--orange); transform: scale(1.07) translateY(-6px); z-index: 6; }
  .fp-room.no-click { cursor: default; background: #161610; }
  .fp-room.no-click:hover { background: #161610; box-shadow: none; }
  .fp-room.static-tile:hover { transform: none; z-index: 401; box-shadow: none; border-color: #b8944f; background: #26200f; }

  /* Room color tints */
  .fp-room[data-room="product"]  { background: #1a1e12; border-color: #c8a050; }
  .fp-room[data-room="product"]:hover  { background: #303a20; box-shadow: 0 0 40px rgba(200,160,60,0.65), inset 0 0 28px rgba(200,160,60,0.18); border-color: #d8b060; }
  .fp-room[data-room="health"]   { background: #121a18; border-color: #4a8c6a; }
  .fp-room[data-room="health"]:hover   { background: #1e3828; box-shadow: 0 0 40px rgba(74,160,106,0.65), inset 0 0 28px rgba(74,160,106,0.18); border-color: #5aaa7a; }
  .fp-room[data-room="travel"]   { background: #1a1614; border-color: #c06840; }
  .fp-room[data-room="travel"]:hover   { background: #382820; box-shadow: 0 0 40px rgba(210,104,64,0.65), inset 0 0 28px rgba(210,104,64,0.18); border-color: #d07050; }
  .fp-room[data-room="reading"]  { background: #161820; border-color: #6070a8; }
  .fp-room[data-room="reading"]:hover  { background: #282e40; box-shadow: 0 0 40px rgba(96,112,200,0.65), inset 0 0 28px rgba(96,112,200,0.18); border-color: #7080c0; }

  .fp-room.dne { background: #100808; border-color: #ff2020; border-style: dashed; box-shadow: 0 0 10px rgba(255,30,30,0.35), inset 0 0 8px rgba(255,30,30,0.08); }
  .fp-room.dne:hover { background: #2a0808; box-shadow: 0 0 50px rgba(255,30,30,0.8), inset 0 0 28px rgba(255,30,30,0.25); border-color: #ff4040; }

  /* Room labels — improved hierarchy */
  .fp-room-num {
    font-size: clamp(0.2rem, 0.35vw, 0.28rem);
    letter-spacing: 3px; opacity: 0.45; margin-bottom: 0.4rem; color: var(--orange);
  }
  .fp-room-name {
    font-size: clamp(0.55rem, 1.1vw, 0.82rem);
    line-height: 1.8; letter-spacing: 1px; color: #e8e4d4;
    font-weight: bold;
  }
  .fp-room-sub {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(0.72rem, 1.2vw, 0.95rem);
    color: #9a8a64; margin-top: 0.5rem;
    opacity: 0;
    transform: translateY(16px) scale(0.94);
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .fp-room:hover .fp-room-sub { opacity: 1; transform: translateY(0) scale(1); }
  .fp-room.guide-room .fp-room-sub { opacity: 1; transform: translateY(0) scale(1); }

  @media (prefers-reduced-motion: reduce) {
    .fp-room, .fp-room-sub { transition: opacity 0.2s ease, background 0.2s, box-shadow 0.2s, border-color 0.2s !important; }
    .fp-room:hover { transform: none !important; }
  }
  /* Tinted room subtitles match their accent */
  .fp-room[data-room="product"] .fp-room-sub  { color: #b8a060; }
  .fp-room[data-room="health"]  .fp-room-sub  { color: #5a9a78; }
  .fp-room[data-room="travel"]  .fp-room-sub  { color: #b07858; }
  .fp-room[data-room="reading"] .fp-room-sub  { color: #7888b8; }
  .fp-room.dne .fp-room-name { color: #ff3030; font-size: clamp(0.38rem, 0.7vw, 0.55rem); text-shadow: 0 0 8px rgba(255,30,30,0.5); }
  .fp-room.dne .fp-room-num { color: #ff3030; }

  /* YOU ARE HERE */
  .you-here {
    font-size: clamp(0.22rem, 0.4vw, 0.32rem);
    color: var(--orange); letter-spacing: 2px; margin-top: 0.6rem; text-shadow: 0 0 6px rgba(232,146,58,0.6);
  }

  /* Museum guide room (special) */
  .fp-room.guide-room {
    border: 2px solid #888860;
    background: #1a1a10;
    cursor: pointer;
  }
  .fp-room.guide-room:hover { background: #252518; box-shadow: 0 0 14px rgba(232,146,58,0.2); }
  .fp-room.guide-room .fp-room-name { font-size: clamp(0.52rem, 0.9vw, 0.72rem); color: #a09060; }

  /* Vertical divider between the static tile and the room grid — combined with the
     top-bar's bottom border and bottom-bar's top border, this boxes the room grid
     in on all sides without needing a separate outer frame element. */
  .static-divider {
    position: absolute; left: 17.44%; top: 0; bottom: 0; width: 2px;
    background: var(--orange); z-index: 6;
  }

  /* About Ash — static tile: content always visible, not clickable (new) */
  .fp-room.static-tile {
    border-color: #b8944f; background: #26200f;
    cursor: default;
    align-items: flex-start; justify-content: center; text-align: left;
    padding: 1.4rem 1.1rem;
    z-index: 401; /* above the floorplan vignette (5) AND the room modal (400), so it stays visible even with a room open */
  }
  .static-title {
    font-family: 'Special Elite', serif;
    font-size: clamp(0.75rem, 1.2vw, 0.95rem);
    color: #e8e4d4; letter-spacing: 0.5px;
    margin-bottom: 1.1rem;
  }
  .static-greeting {
    font-family: 'Special Elite', serif;
    font-size: clamp(0.65rem, 1.05vw, 0.85rem);
    color: #e8e4d4;
    line-height: 1.6;
    margin-bottom: 1.6rem;
  }
  .static-bullets { list-style: none; padding: 0; margin: 0; }
  .static-bullets li {
    font-size: clamp(0.34rem, 0.66vw, 0.48rem);
    color: #e8e4d4; letter-spacing: 0.5px; line-height: 2.5;
    font-weight: bold;
    padding-left: 1.2rem; position: relative;
  }
  .static-bullets li::before {
    content: '▸'; position: absolute; left: 0; color: var(--orange);
    font-size: 1.3em;
  }

  /* DOORWAYS — drawn as overlapping same-background rectangles
     that break the wall line */
  .fp-door {
    position: absolute;
    background: var(--floor);
    z-index: 4;
  }

  /* CORRIDORS — thin connecting passages between rooms */
  .fp-corridor {
    position: absolute;
    background: var(--floor);
    border: 2px solid var(--wall);
    z-index: 2;
  }

  /* BOTTOM BAR */
  .bottom-bar {
    height: 68px;
    background: #0e0e08;
    border-top: 2px solid var(--orange);
    flex-shrink: 0;
    display: flex; align-items: center;
    padding: 0 1.2rem; z-index: 10;
  }
  .bottom-bar-inner {
    border: 2px solid var(--orange);
    padding: 0.5rem 1rem;
    flex: 1; height: 50px;
    display: flex; flex-direction: column; justify-content: center;
  }
  .bottom-line {
    font-size: clamp(0.3rem, 0.55vw, 0.42rem);
    color: var(--orange); letter-spacing: 2px; line-height: 2.2;
    opacity: 0.5;
  }
  .bottom-line::before { content: '> '; color: var(--orange); opacity: 1; }
  .bottom-line.active { opacity: 1; color: var(--orange); }

  /* ===================== MODAL ===================== */
  .room-modal {
    position: fixed; inset: 0;
    background: rgba(10,6,2,0.88); z-index: 400;
    display: flex; align-items: center; justify-content: center;
    padding: 2rem; opacity: 0; pointer-events: none;
    transition: opacity 0.2s; backdrop-filter: blur(3px);
  }
  .room-modal.active { opacity: 1; pointer-events: all; }
  .modal-dialog {
    background: #1e1c14; color: var(--cream);
    max-width: 820px; width: 100%;
    position: relative;
    border: 1px solid rgba(212,168,83,0.18);
    box-shadow:
      0 -4px 0 0 #1e1c14, 0 4px 0 0 #1e1c14, -4px 0 0 0 #1e1c14, 4px 0 0 0 #1e1c14,
      0 -8px 0 0 rgba(10,6,2,0.88), 0 8px 0 0 rgba(10,6,2,0.88), -8px 0 0 0 rgba(10,6,2,0.88), 8px 0 0 0 rgba(10,6,2,0.88),
      0 -12px 0 0 #1e1c14, 0 12px 0 0 #1e1c14, -12px 0 0 0 #1e1c14, 12px 0 0 0 #1e1c14;
    max-height: 85vh; display: flex; flex-direction: column; overflow: hidden;
  }
  .modal-topbar {
    flex-shrink: 0; display: flex; justify-content: flex-end;
    padding: 1rem 1.5rem 0.6rem 1.5rem;
    border-bottom: 1px solid rgba(212,168,83,0.12);
  }
  .modal-body {
    flex: 1; overflow-y: auto; padding: 2rem 2.8rem 2.8rem 2.8rem;
  }
  .modal-dialog::before {
    content: ''; position: absolute; top:-12px; left:-12px; width:12px; height:12px;
    background: rgba(10,6,2,0.88);
    box-shadow: calc(100% + 24px) 0 0 rgba(10,6,2,0.88), 0 calc(100% + 24px) 0 rgba(10,6,2,0.88), calc(100% + 24px) calc(100% + 24px) 0 rgba(10,6,2,0.88);
  }
  .modal-num { font-size: 0.38rem; color: var(--orange); letter-spacing: 3px; margin-bottom: 0.8rem; }
  .modal-title { font-size: clamp(0.6rem, 1.4vw, 0.85rem); line-height: 2; margin-bottom: 0.5rem; color: var(--orange); }
  .modal-sub { font-family: 'Special Elite', serif; font-size: 1rem; color: var(--orange); margin-bottom: 1.5rem; opacity: 0.8; }
  .modal-divider { border: none; border-top: 2px solid rgba(232,228,212,0.1); margin-bottom: 1.5rem; }
  .modal-note-label { font-size: 0.35rem; color: var(--orange); letter-spacing: 3px; opacity: 0.7; margin-bottom: 0.8rem; }
  .modal-note { font-family: 'Special Elite', serif; font-size: 1rem; line-height: 1.8; color: rgba(232,228,212,0.8); margin-bottom: 2rem; }
  .modal-wip { display: inline-block; background: var(--terracotta); color: white; font-size: 0.38rem; padding: 0.4rem 0.8rem; letter-spacing: 2px; margin-bottom: 1.5rem; }
  .modal-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
  .pixel-btn {
    background: var(--orange); border: 2px solid var(--orange); color: var(--ink);
    padding: 0.6rem 1.2rem; font-family: 'Press Start 2P', monospace;
    font-size: 0.4rem; cursor: pointer; letter-spacing: 1px; transition: all 0.1s;
  }
  .pixel-btn:hover { background: #f0a050; border-color: #f0a050; color: var(--ink); transform: translate(-2px,-2px); }
  .pixel-btn.primary { border-color: var(--orange); color: var(--orange); background: transparent; }


  /* Reading room - currently reading shelf */
  .reading-section-label { font-size: 0.35rem; color: var(--orange); letter-spacing: 3px; opacity: 0.7; margin-bottom: 1.2rem; }
  .books-shelf {
    display: flex; gap: 1.4rem; margin-bottom: 2rem; flex-wrap: wrap;
  }
  .book-card {
    display: flex; flex-direction: column; align-items: center;
    cursor: default; flex: 1; min-width: 130px; max-width: 180px;
    justify-content: flex-start;
  }
  .book-cover {
    width: 100%; aspect-ratio: 2/3; object-fit: cover;
    border: 2px solid rgba(232,146,58,0.3);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.5), 0 0 18px rgba(232,146,58,0.12);
    transition: transform 0.15s, box-shadow 0.15s;
    display: block;
  }
  .book-card:hover .book-cover {
    transform: translateY(-4px) rotate(-1deg);
    box-shadow: 6px 10px 0 rgba(0,0,0,0.5), 0 0 24px rgba(232,146,58,0.25);
  }
  .book-title {
    font-family: 'Press Start 2P', monospace; font-size: 0.3rem;
    color: var(--cream); text-align: center; margin-top: 0.7rem; line-height: 1.8;
    letter-spacing: 1px; min-height: 2.5rem;
  }
  .book-author {
    font-family: 'Special Elite', serif; font-size: 0.75rem;
    color: rgba(200,155,90,0.8); text-align: center; margin-top: auto; padding-top: 0.3rem;
  }
  .shelf-plank {
    width: 100%; height: 3px;
    background: linear-gradient(90deg, transparent, rgba(232,146,58,0.3) 20%, rgba(232,146,58,0.15) 80%, transparent);
    margin-bottom: 1.8rem;
  }

  /* Spine bookshelf */
  .spine-shelf {
    display: flex; align-items: flex-end; gap: 3px; margin-bottom: 1.8rem;
    overflow-x: auto; padding: 0.5rem 0.3rem 0;
  }
  .spine {
    flex-shrink: 0; cursor: pointer; border-radius: 2px 2px 1px 1px;
    display: flex; align-items: flex-end; justify-content: center;
    padding-bottom: 0.7rem;
    box-shadow: inset -3px 0 6px rgba(0,0,0,0.25), 2px 3px 8px rgba(0,0,0,0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  }
  .spine:hover {
    transform: translateY(-8px);
    box-shadow: inset -3px 0 6px rgba(0,0,0,0.25), 3px 10px 14px rgba(0,0,0,0.5);
    filter: brightness(1.12);
  }
  .spine-title {
    writing-mode: vertical-rl; transform: rotate(180deg);
    font-family: 'Special Elite', serif; letter-spacing: 1px;
    font-size: 0.72rem; line-height: 1.3; white-space: nowrap;
    color: rgba(255,250,240,0.92); text-shadow: 0 1px 2px rgba(0,0,0,0.4);
    max-height: calc(100% - 0.8rem); overflow: hidden;
  }
  .book-detail { display: none; gap: 2rem; margin-bottom: 1.8rem; flex-wrap: wrap; }
  .book-detail-back {
    font-family: 'Press Start 2P', monospace; font-size: 0.4rem;
    color: var(--orange); cursor: pointer; letter-spacing: 1px;
    margin-bottom: 1.2rem; display: inline-block; flex-basis: 100%;
  }
  .book-detail-back:hover { text-decoration: underline; }
  .book-detail-cover {
    width: 180px; flex-shrink: 0; aspect-ratio: 2/3; object-fit: cover;
    border: 2px solid rgba(232,146,58,0.3);
    box-shadow: 6px 6px 0 rgba(0,0,0,0.5), 0 0 22px rgba(232,146,58,0.15);
  }
  .book-detail-info { display: flex; flex-direction: column; justify-content: center; min-width: 200px; }
  .book-detail-title {
    font-family: 'Special Elite', serif; font-size: 1.2rem; color: var(--cream);
    line-height: 1.5; margin-bottom: 0.5rem;
  }
  .book-detail-author {
    font-family: 'Special Elite', serif; font-size: 0.9rem;
    color: rgba(200,155,90,0.8); margin-bottom: 0.5rem;
  }
  .book-detail-stars { color: var(--orange); font-size: 1rem; letter-spacing: 2px; }

  /* Guide modal special */
  .guide-modal-content { display: flex; flex-direction: column; gap: 0.8rem; }
  .guide-modal-item { display: flex; align-items: center; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid rgba(232,228,212,0.1); }
  .guide-modal-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
  .guide-modal-text { font-family: 'Special Elite', serif; font-size: 0.95rem; color: var(--cream); line-height: 1.4; }
  .guide-modal-text strong { font-family: 'Press Start 2P', monospace; font-size: 0.38rem; display: block; color: var(--orange); margin-bottom: 0.2rem; letter-spacing: 1px; }

  .easter-egg {
    position: fixed; bottom: 5rem; right: 1rem;
    font-size: 0.9rem; cursor: pointer; opacity: 0.1;
    transition: opacity 0.3s, transform 0.3s; z-index: 20;
  }
  .easter-egg:hover { opacity: 1; transform: scale(1.3) rotate(20deg); }

  @keyframes flicker {
    0%,100% { opacity:1; }
    8%  { opacity:0.05; }
    10% { opacity:0.9; }
    12% { opacity:0; }
    20% { opacity:0.85; }
    22% { opacity:0.05; }
    35% { opacity:0.9; }
    50% { opacity:0.1; }
    65% { opacity:0.85; }
    80% { opacity:0.05; }
    90% { opacity:0.9; }
  }
  .screen-flicker { animation: flicker 0.85s linear forwards; }

  @keyframes btn-pulse {
    0%,100% { box-shadow: 0 0 8px rgba(232,146,58,0.5); }
    50%      { box-shadow: 0 0 24px rgba(232,146,58,1), 0 0 48px rgba(232,146,58,0.3); }
  }
  .btn-flash { animation: btn-pulse 1.3s ease-in-out infinite; }

  /* ===================== CUSTOM CURSOR ===================== */
  body.floor-mode .floorplan-wrap,
  body.floor-mode .floorplan-wrap * { cursor: none !important; }
  #custom-cursor { display: none; }
  body.floor-mode #custom-cursor {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    will-change: transform;
  }
  .cursor-label {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.62rem;
    color: var(--orange);
    white-space: nowrap;
    letter-spacing: 1px;
    margin-top: 2px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-shadow: 0 0 10px rgba(232,146,58,0.7);
  }

  /* Linked image animation */
  .img-linked {
    animation: img-pulse 2.5s ease-in-out infinite;
    cursor: pointer;
  }
  @keyframes img-pulse {
    0%, 100% { box-shadow: 0 0 0px 0px rgba(255, 255, 255, 0); opacity: 1; }
    50% { box-shadow: 0 0 10px 3px rgba(255, 255, 255, 0.35); opacity: 0.88; }
  }
  .img-linked:hover {
    animation: none;
    box-shadow: 0 0 14px 4px rgba(255, 255, 255, 0.6);
    opacity: 1;
    transition: box-shadow 0.2s ease;
  }
