:root {
  --gold: #c7a363;
  --gold-soft: rgba(214, 169, 86, .45);
  --dark: #050403;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--dark);
  color: #d7c5a3;
  font-family: Georgia, "Times New Roman", serif;
}
.site-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(75, 51, 26, .22), transparent 58%), #030302;
}
.room { display: grid; place-items: center; width: 100vw; height: 100svh; }
.mobile-room { display: none; }
.room-frame {
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 90px rgba(0,0,0,.9);
}
.desktop-frame {
  width: min(100vw, 150svh);
  aspect-ratio: 3 / 2;
}
.room-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}
.hotspot {
  position: absolute;
  display: block;
  z-index: 5;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  transition: box-shadow .42s ease, background-color .42s ease, border-color .42s ease, transform .42s ease, filter .42s ease;
  outline: none;
}
.hotspot:hover,
.hotspot:focus-visible {
  border-color: rgba(228,180,92,.62);
  background: rgba(214,169,86,.055);
  box-shadow: 0 0 18px rgba(214,169,86,.40), inset 0 0 34px rgba(214,169,86,.15);
  filter: brightness(1.08);
}
.desktop-book:hover,
.desktop-book:focus-visible,
.mobile-book:hover,
.mobile-book:focus-visible { transform: translateY(-2px); }

/* DESKTOP hotspotok a 1920×1280-as háttérkép százalékában */
.desktop-amazon   { left: 22.5%; top:  8.5%; width: 16.0%; height: 23.5%; }
.desktop-facebook { left: 22.5%; top: 32.0%; width: 15.5%; height: 18.0%; }
.desktop-gallery  { left: 39.0%; top:  5.5%; width: 34.0%; height: 38.0%; }
.desktop-book     { left: 36.0%; top: 51.0%; width: 27.0%; height: 34.0%; }
.desktop-game     { left: 78.5%; top: 11.0%; width: 15.0%; height: 29.0%; }
.desktop-mail     { left: 12.5%; top: 65.5%; width: 16.0%; height: 18.0%; }

.light-layer, .shadow-layer, .vignette-layer { position: absolute; inset: 0; pointer-events: none; }
.light-layer { z-index: 2; mix-blend-mode: screen; }
.light-candle {
  background:
    radial-gradient(circle at 13.4% 38.5%, rgba(255,176,77,.28), transparent 7.0%),
    radial-gradient(circle at 13.4% 38.5%, rgba(255,132,42,.12), transparent 13%);
  opacity: .62;
  animation: candle-breathe 4.8s ease-in-out infinite alternate;
}
.light-oil {
  background:
    radial-gradient(circle at 86.0% 34.0%, rgba(255,190,92,.24), transparent 8.5%),
    radial-gradient(circle at 86.0% 34.0%, rgba(230,139,54,.10), transparent 16%);
  opacity: .62;
  animation: oil-breathe 7.1s ease-in-out infinite alternate;
}
.light-desk {
  background:
    radial-gradient(circle at 96.0% 37.0%, rgba(255,211,126,.26), transparent 11%),
    radial-gradient(circle at 91.5% 45.0%, rgba(196,126,58,.11), transparent 20%);
  opacity: .70;
  animation: desk-breathe 8.4s ease-in-out infinite alternate;
}
.shadow-layer {
  z-index: 3;
  background: linear-gradient(102deg, rgba(0,0,0,.18), transparent 28%, rgba(0,0,0,.16) 70%, transparent 100%);
  opacity: .36;
  animation: shadows 12s ease-in-out infinite alternate;
}
.vignette-layer { z-index: 1; box-shadow: inset 0 0 110px rgba(0,0,0,.54); }
@keyframes candle-breathe { 0%{opacity:.42; filter:brightness(.92)} 31%{opacity:.66; filter:brightness(1.10)} 67%{opacity:.48; filter:brightness(.98)} 100%{opacity:.82; filter:brightness(1.13)} }
@keyframes oil-breathe { 0%{opacity:.46; filter:brightness(.95)} 35%{opacity:.68; filter:brightness(1.08)} 72%{opacity:.52; filter:brightness(.99)} 100%{opacity:.76; filter:brightness(1.06)} }
@keyframes desk-breathe { 0%{opacity:.52; filter:brightness(.96)} 42%{opacity:.74; filter:brightness(1.09)} 69%{opacity:.56; filter:brightness(1.00)} 100%{opacity:.80; filter:brightness(1.05)} }
@keyframes shadows { from{transform:translateX(-.55%) scale(1.006); opacity:.26} to{transform:translateX(.65%) scale(1.014); opacity:.44} }
.sound-toggle {
  position: fixed;
  right: 18px;
  bottom: 16px;
  z-index: 8;
  border: 1px solid rgba(199,163,99,.45);
  background: rgba(5,4,3,.55);
  color: rgba(215,197,163,.86);
  padding: .45rem .75rem;
  font: 13px Georgia, "Times New Roman", serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.sound-toggle:hover, .sound-toggle:focus-visible { color: #f2d899; border-color: rgba(242,216,153,.8); }
@media (prefers-reduced-motion: reduce) {
  .light-layer, .shadow-layer, .mobile-light, .mobile-shadow { animation: none; }
  .hotspot { transition: none; }
}
@media (max-width: 760px), (orientation: portrait) {
  .desktop-room { display: none; }
  .mobile-room { display: grid; }
  .site-shell { background: radial-gradient(circle at center, rgba(64,42,24,.24), transparent 58%), #030302; }
  .mobile-frame {
    width: min(100vw, 56.28svh);
    height: min(100svh, 177.68vw);
    aspect-ratio: 941 / 1672;
    box-shadow: 0 0 70px rgba(0,0,0,.88);
  }
  /* MOBIL hotspotok a 941×1672-es háttérkép százalékában */
  .mobile-gallery  { left:  3.0%; top:  0.8%; width: 94.0%; height: 31.0%; }
  .mobile-amazon   { left:  9.0%; top: 35.5%; width: 37.0%; height: 14.5%; }
  .mobile-facebook { left: 54.0%; top: 35.5%; width: 35.5%; height: 14.5%; }
  .mobile-game     { left:  8.5%; top: 53.6%; width: 38.0%; height: 14.8%; }
  .mobile-mail     { left: 53.0%; top: 53.6%; width: 39.5%; height: 15.0%; }
  .mobile-book     { left: 24.0%; top: 72.5%; width: 53.0%; height: 21.0%; }

  .mobile-light, .mobile-shadow { position: absolute; inset: 0; pointer-events: none; }
  .mobile-light { z-index: 2; mix-blend-mode: screen; }
  .mobile-light-lamp {
    background:
      radial-gradient(circle at 83.5% 78%, rgba(255,197,94,.28), transparent 9%),
      radial-gradient(circle at 83.5% 78%, rgba(225,135,48,.12), transparent 18%);
    opacity: .66;
    animation: oil-breathe 6.9s ease-in-out infinite alternate;
  }
  .mobile-light-candle {
    background: radial-gradient(circle at 8% 77%, rgba(255,185,82,.18), transparent 12%);
    opacity: .45;
    animation: candle-breathe 4.8s ease-in-out infinite alternate;
  }
  .mobile-shadow {
    z-index: 3;
    background: linear-gradient(94deg, rgba(0,0,0,.15), transparent 36%, rgba(0,0,0,.12) 75%, transparent 100%);
    opacity: .32;
    animation: shadows 13s ease-in-out infinite alternate;
  }
  .sound-toggle {
    left: 12px;
    right: auto;
    bottom: 10px;
    padding: .42rem .70rem;
    background: rgba(5,4,3,.50);
  }
}

/* Levél / kapcsolat ablak */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background: rgba(0, 0, 0, .62);
  opacity: 0;
  pointer-events: none;
  transition: opacity .32s ease;
}
.contact-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.contact-panel {
  position: relative;
  width: min(92vw, 420px);
  padding: 2.2rem 1.55rem 1.45rem;
  color: #d7c5a3;
  background:
    radial-gradient(circle at 50% 0%, rgba(104, 68, 34, .26), transparent 62%),
    linear-gradient(180deg, rgba(25, 17, 10, .96), rgba(7, 5, 4, .96));
  border: 1px solid rgba(199, 163, 99, .48);
  box-shadow: 0 0 90px rgba(0,0,0,.88), inset 0 0 42px rgba(199,163,99,.08);
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
}
.contact-panel::before,
.contact-panel::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(199,163,99,.65), transparent);
}
.contact-panel::before { top: 15px; }
.contact-panel::after { bottom: 15px; }
.contact-close {
  position: absolute;
  top: .35rem;
  right: .55rem;
  border: 0;
  background: transparent;
  color: rgba(215,197,163,.75);
  font: 28px Georgia, "Times New Roman", serif;
  cursor: pointer;
}
.contact-close:hover { color: #f2d899; }
.contact-panel h2 {
  margin: 0 0 .7rem;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #f2d899;
}
.contact-intro {
  margin: 0 0 .75rem;
  color: #cdbb98;
  line-height: 1.45;
}
.contact-address {
  margin: .8rem 0 1rem;
  padding: .75rem .85rem;
  border: 1px solid rgba(199,163,99,.32);
  background: rgba(0,0,0,.22);
  color: #f2d899;
  word-break: break-all;
  letter-spacing: .02em;
}
.contact-actions {
  display: flex;
  gap: .65rem;
  justify-content: center;
  flex-wrap: wrap;
}
.contact-copy,
.contact-gmail {
  border: 1px solid rgba(199,163,99,.48);
  background: rgba(5,4,3,.56);
  color: rgba(215,197,163,.92);
  padding: .62rem .82rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .06em;
  font: 13px Georgia, "Times New Roman", serif;
  cursor: pointer;
}
.contact-copy:hover,
.contact-gmail:hover,
.contact-copy:focus-visible,
.contact-gmail:focus-visible {
  color: #f2d899;
  border-color: rgba(242,216,153,.82);
  box-shadow: 0 0 18px rgba(214,169,86,.26);
}
.contact-status {
  min-height: 1.1em;
  margin: .8rem 0 0;
  color: #d7c5a3;
  font-size: .92rem;
}
