:root {
  --oda-ust: #4d4945;
  --oda-alt: #2b2826;
  --zemin: #191715;
  --siyah: #0e0d0c;
  --aluminyum: #d6d3cc;
  --aluminyum-koyu: #b8b4ac;
  --murekkep: #1a1816;
  --soluk: #57524c;
  --kehribar: #f0a02c;
  --kagit: #efeadf;
  --baslik: "Michroma", "Eurostile", "Arial Narrow", sans-serif;
  --govde: "Barlow", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--govde);
  font-size: 17px;
  line-height: 1.45;
  color: var(--murekkep);
  background: var(--aluminyum);
}
h1, h2, p, dl, dd { margin: 0; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--murekkep); outline-offset: 3px; }

/* ---------- Sahne ---------- */

.sahne {
  position: sticky;
  top: 0;
  z-index: 5;
  overflow: hidden;
  color: var(--kagit);
  background: #24170f;
  border-bottom: 3px solid var(--siyah);
}
.sahne :focus-visible { outline-color: var(--kagit); }

/* sahne 1470x540 birim (oda.jpg ile aynı); içindeki her şey bu orana göre yüzdeyle yerleşir.
   Ekranı boydan boya kaplar, yanlarda boşluk kalmaz. */
.sahne-ic {
  position: relative;
  width: 100%;
  aspect-ratio: 1470 / 540;
  overflow: hidden;
  container-type: inline-size;
}
/* dar ekranda soldaki perde kadraj dışında kalır, sahne daha yüksek görünür */
@media (max-width: 700px) {
  .sahne-ic { width: 118%; margin-left: -18%; }
}
.oda { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.oda-on { pointer-events: none; }

/* oda fotoğrafı */
.oda-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.foto #odaDolu, .foto-bos #odaBos, .foto #odaOn { display: block; }
.foto.foto-bos #odaDolu, .foto.foto-bos #odaOn { opacity: 0; transition: opacity .9s; }
.foto.foto-bos.oturdu #odaDolu, .foto.foto-bos.oturdu #odaOn { opacity: 1; }
.on-plan { pointer-events: none; }

/* dinleyicinin başı (konum ve dönme noktası oda.jpg'ye göre; fotoğraf değişirse yeniden kesilmeli) */
.kafa {
  position: absolute;
  display: none;
  left: 85.034%;
  top: 39.259%;
  width: 9.796%;
  transform-origin: 38.2% 90.9%;   /* ense */
}
.foto .kafa { display: block; }
.foto.foto-bos .kafa { opacity: 0; transition: opacity .9s; }
.foto.foto-bos.oturdu .kafa { opacity: 1; }

.imza {
  position: absolute;
  z-index: 2;
  top: clamp(8px, 1.6vw, 18px);
  left: clamp(12px, 2.4vw, 28px);
  font-family: var(--baslik);
  font-size: clamp(9px, 1.2vw, 13px);
  letter-spacing: .04em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .7);
}
.imza span { display: block; margin-top: 3px; font-family: var(--govde); font-size: 1.05em; letter-spacing: 0; opacity: .8; }

/* duvardaki markalar: perdenin sağındaki duvar parçası (sahnenin %16-27'si) */
.duvar {
  position: absolute;
  left: 16%;
  top: 25%;
  width: 11%;
  height: 34%;
  display: flex;
  flex-direction: column;
  gap: 8%;
}
.duvar-marka {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(18%);
}
.duvar-marka.geldi { opacity: .92; transform: none; transition: opacity .7s .25s, transform .7s .25s cubic-bezier(.2, .8, .3, 1); }
.duvar-marka img {
  width: 100%;          /* gerçek genişliği uygulama.js logonun oranına göre verir */
  height: auto;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 .6cqw rgba(255, 190, 110, .55));
}
/* logolar duvarda ışıklı tabela gibi açık renk görünür (AYAR.logoBeyaz) */
.logo-beyaz .duvar-marka img { filter: brightness(0) invert(1) sepia(.35) drop-shadow(0 0 .6cqw rgba(255, 190, 110, .6)); }
.duvar-marka span {
  font-family: var(--baslik);
  font-size: 1.45cqw;
  line-height: 1.2;
  text-align: center;
  color: #f6e6cb;
  text-shadow: 0 0 .7cqw rgba(255, 190, 110, .75), 0 .1cqw .2cqw rgba(40, 20, 5, .6);
}

/* ürün yuvaları: konum ve yüksekliği uygulama.js gerçek ölçüden hesaplar; nokta = taban ortası */
.yuva {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  opacity: 0;
}
.yuva-sol  { transform: translateX(-50%) translateX(-60vw); }
.yuva-sag  { transform: translateX(-50%) translateX(60vw); }
.yuva-amfi { transform: translateX(-50%) translateY(-320%); }
.yuva-kaynak { transform: translateX(-50%) translateX(40vw); }
.yuva.geldi {
  opacity: 1;
  transform: translateX(-50%);
  transition: transform .8s cubic-bezier(.2, .9, .25, 1.08), opacity .15s, left .7s cubic-bezier(.3, .8, .3, 1);
}
.olcekli { flex: none; display: flex; justify-content: center; }
/* zemine (amfide rafa) temas gölgesi: ürün havada durmasın */
.yuva::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -30%;
  width: 160%;
  bottom: -.9cqw;
  height: 1.9cqw;
  background: radial-gradient(ellipse at center, rgba(18, 9, 3, .62) 0%, rgba(18, 9, 3, .28) 45%, transparent 72%);
}
.yuva-amfi::after, .yuva-kaynak::after { left: -8%; width: 116%; bottom: -.3cqw; height: .7cqw; }
/* raf tipi hoparlör standın üst tablasına oturur, arada boşluk kalmaz */
.olcekli + .stand { margin-top: -1px; }
.yuva img, .yuva svg {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
  filter: drop-shadow(0 8px 10px rgba(20, 10, 4, .55));
}
.sb .yuva img { filter: grayscale(1) contrast(1.08) drop-shadow(0 8px 10px rgba(20, 10, 4, .55)); }
.stand { flex: none; position: relative; width: 30%; background: #17100b; }
.stand::before, .stand::after { content: ""; position: absolute; left: -90%; width: 280%; background: #17100b; }
.stand::before { top: 0; height: 4%; }
.stand::after { bottom: 0; height: 6%; }

/* ses dalgaları */
.ses { opacity: 0; transition: opacity .5s; }
.dalga { fill: none; stroke: #ffdcae; stroke-width: 2.2; stroke-linecap: round; opacity: 0; filter: drop-shadow(0 0 4px #ffb866); }
.dalga.ucan { stroke-width: 2; }
.caliyor .ses { opacity: 1; }
.caliyor .dalga { animation: dalga 1.5s ease-out infinite; }
.caliyor .dalga.d1 { animation-delay: .22s; }
.caliyor .dalga.d2 { animation-delay: .44s; }
.caliyor .dalga.ucan { animation-duration: 2.4s; }
.caliyor .kafa { animation: kafa 1.2s ease-in-out infinite; }
.caliyor .yuva-sol.geldi .olcekli, .caliyor .yuva-sag.geldi .olcekli { animation: vurus .6s ease-in-out infinite; transform-origin: center bottom; }

@keyframes dalga { 0% { opacity: 0; } 30% { opacity: .8; } 100% { opacity: 0; } }
/* baş iki vuruşta bir öne eğilir, sonra geri gelir (hoparlör vuruşunun yarı hızı) */
@keyframes kafa { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-5deg) translateY(1.5%); } 70% { transform: rotate(-.5deg); } }
@keyframes vurus { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.012); } }

/* "seçildi" şeridi */
.duyuru {
  position: absolute;
  z-index: 3;
  top: 16%;
  right: 0;
  max-width: 78%;
  padding: .55em 1.3em .6em 1em;
  background: var(--kagit);
  color: var(--murekkep);
  border-left: .55em solid var(--kehribar);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
  transform: translateX(105%);
  transition: transform .5s cubic-bezier(.2, .85, .25, 1);
  font-size: clamp(13px, 1.7vw, 19px);
}
.duyuru.goster { transform: none; }
.duyuru-tur { display: block; font-size: .78em; color: var(--soluk); }
.duyuru-ad { display: block; font-family: var(--baslik); font-weight: 400; font-size: 1.05em; line-height: 1.25; }

.altyazi {
  position: absolute;
  z-index: 2;
  left: clamp(12px, 2.4vw, 28px);
  right: clamp(12px, 2.4vw, 28px);
  bottom: clamp(5px, 1vw, 12px);
  font-size: clamp(12px, 1.5vw, 16px);
  color: var(--kagit);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .8);
}

/* ---------- Panel (amfi ön yüzü) ---------- */

.panel {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 3px),
    linear-gradient(to bottom, #dedbd4, var(--aluminyum) 30%, #cbc7bf);
  padding: clamp(22px, 4vw, 44px) clamp(16px, 4vw, 40px) 48px;
  min-height: 60vh;
}
.giris, form, .adres { max-width: 940px; margin-left: auto; margin-right: auto; }
.giris h1 { font-family: var(--baslik); font-weight: 400; font-size: clamp(24px, 4.2vw, 40px); line-height: 1.15; letter-spacing: -.01em; }
.giris p { margin-top: .6em; max-width: 56ch; color: #3a3632; }

.adim { margin-top: clamp(26px, 4vw, 40px); padding-top: 16px; border-top: 1px solid #a5a199; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55); }
.adim h2 { display: flex; align-items: center; gap: .7em; font-family: var(--baslik); font-weight: 400; font-size: 15px; margin-bottom: 14px; }
.no {
  display: inline-grid; place-items: center;
  width: 2em; height: 2em; border-radius: 50%;
  background: var(--murekkep); color: var(--kagit); font-size: .85em;
}

.yerel-not { max-width: 940px; margin: 0 auto 18px; padding: 8px 12px; border-left: 4px solid var(--kehribar); background: rgba(255, 255, 255, .5); font-size: 14px; color: #3a3632; }

/* tuşlar */
.urun, .gun, .saat, .ikincil {
  cursor: pointer;
  border: 1px solid #9e9a92;
  border-radius: 6px;
  background: linear-gradient(to bottom, #ebe8e1, #d0ccc4);
  box-shadow: 0 3px 0 #8d8981, inset 0 1px 0 rgba(255, 255, 255, .7);
  transition: transform .08s, box-shadow .08s, background .15s;
}
.urun:hover, .gun:hover, .saat:hover, .ikincil:hover { background: linear-gradient(to bottom, #f3f0ea, #d8d4cc); }
.urun[aria-pressed="true"], .gun[aria-pressed="true"], .saat[aria-pressed="true"] {
  transform: translateY(3px);
  background: #bfbbb3;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, .38);
}

.urunler { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; }
.urun { position: relative; display: flex; flex-direction: column; padding: 8px 8px 10px; text-align: left; }
.urun-gorsel {
  display: flex; align-items: flex-end; justify-content: center;
  height: 112px; padding: 8px 8px 6px;
  border-radius: 3px;
  background: linear-gradient(to bottom, #3f3b38, #23211f);
}
.urun-gorsel img, .urun-gorsel svg { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.urun-yazi { display: block; padding: 8px 20px 0 2px; }
.urun-marka { display: block; font-size: 14px; color: var(--soluk); }
.urun-model { display: block; font-weight: 600; font-size: 18px; line-height: 1.2; }
.urun-tur { display: block; font-size: 14px; color: var(--soluk); margin-top: 2px; }
.led {
  position: absolute; right: 10px; bottom: 12px;
  width: 9px; height: 9px; border-radius: 50%;
  background: #6d685f; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .5);
}
[aria-pressed="true"] > .led { background: var(--kehribar); box-shadow: 0 0 8px 2px rgba(240, 160, 44, .85); }

.istege { font-family: var(--govde); font-size: 14px; color: var(--soluk); margin-left: .2em; }
.kaynak-ipucu { margin-top: 10px; }
.kaynak-ipucu.uyari { color: #8a1f14; font-weight: 500; }

.gunler { display: flex; gap: 9px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -2px; scrollbar-width: thin; }
.gun { flex: 0 0 auto; min-width: 66px; padding: 7px 10px 8px; text-align: center; }
.gun-ad { display: block; font-size: 14px; color: var(--soluk); }
.gun-no { display: block; font-family: var(--baslik); font-size: 20px; line-height: 1.3; }
.gun-ay { display: block; font-size: 13px; color: var(--soluk); }

.saatler { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 9px; margin-top: 8px; }
.saat { padding: 9px 6px; font-variant-numeric: tabular-nums; font-weight: 500; text-align: center; }
.ipucu { grid-column: 1 / -1; color: var(--soluk); }

/* form */
.alanlar { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.alanlar label { display: block; font-size: 15px; font-weight: 500; }
.alanlar .genis { grid-column: 1 / -1; }
.alanlar input {
  display: block; width: 100%; margin-top: 5px; padding: 11px 12px;
  border: 1px solid #000; border-radius: 4px;
  background: #1c1a18; color: #f6d9a4;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, .6), 0 1px 0 rgba(255, 255, 255, .6);
  font-size: 17px;
}
.alanlar input::placeholder { color: #8b7a5c; }
.alanlar input:focus-visible { outline-offset: 2px; }

.ozet { margin-top: 18px; font-weight: 500; }
.hata { margin-top: 6px; color: #8a1f14; font-weight: 500; min-height: 1.45em; }
.onay {
  display: inline-block; cursor: pointer; margin-top: 8px;
  padding: 14px 26px; border: 0; border-radius: 6px;
  background: var(--murekkep); color: var(--kagit);
  font-family: var(--baslik); font-size: 15px; text-decoration: none;
  box-shadow: 0 4px 0 #000, inset 0 1px 0 rgba(255, 255, 255, .18);
}
.onay:hover { background: #2c2926; }
.onay:active { transform: translateY(3px); box-shadow: 0 1px 0 #000; }
.ikincil { padding: 12px 20px; margin-top: 8px; }

/* özet fişi */
.fis {
  margin-top: 28px; padding: 24px clamp(18px, 4vw, 34px) 26px;
  background: var(--kagit);
  border-top: 10px solid var(--kehribar);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  animation: fis .55s cubic-bezier(.2, .85, .25, 1);
}
.fis h2 { font-family: var(--baslik); font-weight: 400; font-size: 20px; margin-bottom: 14px; }
.fis dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 22px; }
.fis dt { color: var(--soluk); }
.fis dd { font-weight: 600; }
.fis-not { margin-top: 16px; max-width: 60ch; color: #3a3632; }
.fis-dugmeler { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 10px; }
@keyframes fis { from { transform: translateY(40px); opacity: 0; } }

.adres { margin-top: 36px; font-size: 15px; color: var(--soluk); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .alanlar { grid-template-columns: 1fr; }
  .urunler { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .urun-gorsel { height: 92px; }
  .duyuru { top: 22%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .caliyor .dalga { opacity: .7; }
}

/* ---------- Sabit sahne düzeni ----------
   Sayfanın kendisi hiç kaymaz: sahne üstte durur, yalnızca alttaki panel kendi içinde kayar.
   Böylece sayfa başka bir sitenin içine (iframe) gömüldüğünde de oda hep görünür kalır.
   Sahne, pencere yüksekliğinin yaklaşık yarısını geçmeyecek şekilde üstten ve alttan kırpılır
   (tavan ve halı); hoparlörler, raf, logolar ve dinleyici her zaman kadrajda kalır. */
:root {
  --sahne-tam: 36.735vw;                                   /* 100vw x 540 / 1470 */
  --sahne-gor: min(var(--sahne-tam), max(52vh, 24.98vw));  /* en fazla %32'si kırpılır */
}
html, body { height: 100%; }
body { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; }
.sahne { position: relative; flex: none; height: var(--sahne-gor); }
.sahne-ic { margin-top: calc((var(--sahne-gor) - var(--sahne-tam)) * .55); }
.panel { flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
@media (max-width: 700px) {
  :root { --sahne-tam: 43.347vw; --sahne-gor: var(--sahne-tam); }   /* 118vw x 540 / 1470, kırpma yok */
}
html, body { overscroll-behavior: none; }
.sahne { touch-action: none; }
