/* İstanbul Kuyumculuk | fiyat ekranı
   Ölçü birimi rem: geniş ekranda 192rem x 108rem (16:9) sahne ekrana sığacak şekilde ölçeklenir.
   html yazı boyutunu ekran.js ayarlar; aşağıdaki vw değeri betik çalışmadan önceki karşılıktır. */

@font-face {
  font-family: "General Sans";
  src: url("../fonts/GeneralSans-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("../fonts/GeneralSans-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/CormorantGaramond-600-latin-ext.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/CormorantGaramond-600-latin.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --zemin: #0a0907;
  --altin: #d4a84e;
  --altin-acik: #f0d896;
  --fildisi: #f7f1e1;
  --soluk: rgba(247, 241, 225, .62);
  --cizgi: rgba(212, 168, 78, .38);
  --cizgi-ince: rgba(212, 168, 78, .15);
  --artis: #5fd693;
  --dusus: #f47a6c;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: .5208vw;
  background: #0a0907;
  background: var(--zemin);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #f7f1e1;
  color: var(--fildisi);
  font-family: "General Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  background: radial-gradient(120% 90% at 50% 0%, #1d170c 0%, #0f0c08 46%, #080706 100%) fixed;
  -webkit-font-smoothing: antialiased;
}

h1, h2 { margin: 0; font-weight: inherit; font-size: inherit; }
img { display: block; }
html.imlec-yok, html.imlec-yok * { cursor: none !important; }

/* ---------- Sahne ---------- */
.sahne {
  position: absolute;
  left: 50%; top: 50%;
  width: 192rem; height: 108rem;
  margin: -54rem 0 0 -96rem;
  padding: 3rem 4.8rem 2.4rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 4s ease-in-out;
}
html.genis body { overflow: hidden; height: 100vh; }

/* ---------- Üst bölüm ---------- */
.bas {
  flex: none;
  height: 13.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.marka { display: flex; align-items: center; }
.marka .amblem { height: 12.6rem; width: auto; }
.marka .yazi { height: 7.2rem; width: auto; margin-left: 2.8rem; }

.saat { text-align: right; }
.saat-rakam {
  font-size: 7.4rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.saniye { font-size: .5em; color: var(--altin); margin-left: .12em; }
.tarih {
  margin-top: .9rem;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 3.1rem;
  line-height: 1.1;
  color: var(--altin-acik);
}

.cizgi {
  flex: none;
  height: 1px;
  margin: 1.5rem 0 2.5rem;
  background: linear-gradient(90deg, rgba(212, 168, 78, 0), var(--altin) 14%, var(--altin) 86%, rgba(212, 168, 78, 0));
  opacity: .7;
}

/* ---------- Panolar ---------- */
.govde { flex: 1 1 auto; min-height: 0; display: flex; }

.pano {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 0 2.8rem .6rem;
  border: 1px solid var(--cizgi);
  background: linear-gradient(180deg, rgba(212, 168, 78, .085), rgba(212, 168, 78, .02) 38%, rgba(212, 168, 78, .03));
}
.pano-altin { flex: 0 0 40%; }
.pano-sarrafiye { flex: 1 1 0; margin-left: 3rem; }

.pano-bas {
  flex: none;
  height: 10.6rem;
  display: flex;
  align-items: flex-end;
  padding-bottom: 1.3rem;
  border-bottom: 1px solid var(--cizgi);
}
.pano-ad {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 5.6rem;
  line-height: .9;
  color: var(--altin-acik);
  min-width: 0;            /* başlık sütununu genişletmesin, taşan kısım yandaki boşluğa yazılır */
  white-space: nowrap;
}
.sutun {
  text-align: right;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--altin);
  padding-right: 2.2rem;
}
.grup-ad {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--altin-acik);
  text-align: center;
  padding-bottom: 1.3rem;
}
.grup-sutun { display: flex; }
.grup-sutun .sutun { flex: 0 0 50%; }

/* Sütun genişlikleri */
.pano-altin .pano-ad, .pano-altin .ad { flex: 0 0 41%; }
.pano-altin .sutun, .pano-altin .deger { flex: 0 0 29.5%; }
.pano-sarrafiye .pano-ad, .pano-sarrafiye .ad { flex: 0 0 15%; }
.pano-sarrafiye .grup { flex: 0 0 42.5%; }
.pano-sarrafiye .deger { flex: 0 0 21.25%; }

/* Yeni ve Eski sütunlarını ayıran çizgi */
.ayrac {
  position: absolute;
  top: 1.6rem; bottom: 1.6rem;
  left: calc(2.8rem + (100% - 5.6rem) * .575 + .6rem);
  width: 1px;
  background: var(--cizgi);
}

.satirlar { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.satir {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  align-items: center;
  margin: 0 -2.8rem;
  padding: 0 2.8rem;
  border-top: 1px solid var(--cizgi-ince);
}
.satir:first-child { border-top: 0; }
.satir:nth-child(even) { background: rgba(247, 241, 225, .028); }

.ad { min-width: 0; }
.ad-1 { display: block; font-size: 3.1rem; line-height: 1.1; white-space: nowrap; }
.ad-2 { display: block; margin-top: .5rem; font-size: 1.9rem; line-height: 1; color: var(--altin); }
.pano-sarrafiye .ad-1 { font-size: 3.8rem; }

.deger {
  position: relative;
  text-align: right;
  padding-right: 2.2rem;
  font-size: 4.7rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
/* Eşit genişlikli rakam kutusu (ekran.js kutula) */
.rakam b, .saat-rakam b { display: inline-block; width: .6em; text-align: center; font-weight: inherit; }
.rakam { transition: color .5s ease; }
.kusur { font-size: .62em; opacity: .82; }
.kusur.tam-boy { font-size: 1em; opacity: 1; }

/* Son değişimin yönü: küçük üçgen kalır, rakam kısa süre renklenir */
.ok {
  position: absolute;
  right: .2rem; top: 50%;
  width: 0; height: 0;
  margin-top: -.6rem;
  border-left: .8rem solid transparent;
  border-right: .8rem solid transparent;
  opacity: 0;
  transition: opacity .5s ease;
}
.deger.yon-y .ok { border-bottom: 1.2rem solid var(--artis); opacity: .95; }
.deger.yon-a .ok { border-top: 1.2rem solid var(--dusus); opacity: .95; }
.deger.parla.yon-y .rakam { color: var(--artis); }
.deger.parla.yon-a .rakam { color: var(--dusus); }

/* ---------- Alt bölüm ---------- */
.alt {
  flex: none;
  height: 4.6rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  font-size: 2.1rem;
  line-height: 1;
  color: var(--soluk);
}
.durum { display: flex; align-items: center; }
.nokta {
  width: 1.1rem; height: 1.1rem;
  margin-right: 1.1rem;
  border-radius: 50%;
  background: var(--artis);
  animation: nabiz 2.4s ease-in-out infinite;
}
html.bekliyor .nokta { background: var(--altin); }
html.hata .nokta { background: var(--dusus); animation: none; }
html.hata .durum { color: #ffd9a6; }
.guncelleme { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

@keyframes nabiz {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

.js-yok { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; padding: 12px 16px; font-size: 16px; text-align: center; background: #2a1d0c; color: #f7f1e1; }

/* ---------- Dar ve dik ekran (telefon, dik monitör): alt alta, kaydırılabilir ---------- */
html.dar .sahne {
  position: static;
  width: auto; height: auto;
  margin: 0;
  padding: 3rem 2.4rem 3rem;
  overflow: visible;
  transform: none !important;
}
html.dar .bas { height: auto; flex-direction: column; align-items: center; }
html.dar .marka .amblem { height: 14rem; }
html.dar .marka .yazi { height: 7.4rem; margin-left: 2.4rem; }
html.dar .saat { text-align: center; margin-top: 2.6rem; }
html.dar .saat-rakam { font-size: 6.4rem; }
html.dar .cizgi { margin: 2.2rem 0 2.6rem; }
html.dar .govde { display: block; }
html.dar .pano { padding: 0 2rem .4rem; }
html.dar .pano-sarrafiye { margin: 2.6rem 0 0; }
html.dar .pano-bas { height: 9.6rem; }
html.dar .pano-ad { font-size: 5rem; }
html.dar .satirlar { display: block; }
html.dar .satir { height: 8.2rem; margin: 0 -2rem; padding: 0 2rem; }
html.dar .ayrac { left: calc(2rem + (100% - 4rem) * .575 + .4rem); }
html.dar .ad-1 { font-size: 3.1rem; }
html.dar .pano-sarrafiye .ad-1 { font-size: 3.1rem; }
html.dar .ad-2 { font-size: 2rem; }
html.dar .deger { font-size: 4rem; padding-right: 1.9rem; }
html.dar .pano-sarrafiye .deger { font-size: 3.5rem; padding-right: 1.5rem; }
html.dar .sutun { font-size: 2.4rem; padding-right: 1.9rem; }
html.dar .pano-sarrafiye .sutun { padding-right: 1.5rem; }
html.dar .ok { border-left-width: .5rem; border-right-width: .5rem; right: .1rem; }
html.dar .alt { height: auto; display: block; margin-top: 2.4rem; font-size: 2.4rem; line-height: 1.35; }
html.dar .guncelleme { margin-top: .8rem; }

@media (prefers-reduced-motion: reduce) {
  .nokta { animation: none; }
  .sahne, .rakam, .ok { transition: none; }
}
