/* Opal Moon · opalmoon.dev
   Renkler: gece laciverti, süt beyazı ay, opal kıvılcımları (turkuaz, mavi, lavanta; pembe seyrek). Altın ve okült simge yok. */
:root {
  --bg: #05080f;
  --navy: #0a1122;
  --ink: #eef1f6;
  --muted: #a9b4c9;
  --dim: #6f7b93;
  --line: rgba(205, 218, 240, 0.22);
  --line-strong: rgba(225, 233, 246, 0.55);
  --teal: #7fe3d8;
  --blue: #8fb7ff;
  --lav: #c6b6ff;
  --pink: #ffc9d2;
  --serif: "Sitka Banner", "Sitka Heading", "Palatino Linotype", "Book Antiqua", Palatino, "Iowan Old Style", Georgia, serif;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --moon: min(58vmin, 540px);
  --gutter: clamp(16px, 4vw, 56px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  background: radial-gradient(120% 90% at 50% 30%, #0b1326 0%, var(--bg) 60%), var(--bg);
  color: var(--ink);
  font: 400 16px/1.65 var(--sans);
  overflow-x: hidden; overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: rgba(143, 183, 255, 0.35); }
:focus-visible { outline: 1px solid var(--teal); outline-offset: 4px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Gökyüzü büyük görünüm yüksekliğinde: telefonda adres çubuğu açılıp kapanınca tuval yeniden kurulmaz, alt kenar açıkta kalmaz */
#sky { position: fixed; top: 0; left: 0; width: 100%; height: 100%; height: 100lvh; z-index: 0; display: block; }
/* main ve altbilgi z-index almaz: yığın bağlamı kurulmaz, yazının ekran karışımı gökyüzüyle yapılır */
main, .foot { position: relative; }

/* Üst çubuk */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background 0.4s, backdrop-filter 0.4s, padding 0.4s;
}
.topbar.scrolled { background: rgba(5, 8, 15, 0.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 50%; }
.brand span { font: 400 15px/1 var(--serif); letter-spacing: 0.32em; text-transform: uppercase; }
.menu { display: flex; gap: clamp(14px, 2.4vw, 34px); }
.menu a { text-decoration: none; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); transition: color 0.3s; }
.menu a:hover, .menu a.on { color: var(--ink); }

/* Ay evreleri gezgini */
.phases { position: fixed; right: max(14px, calc(var(--gutter) - 22px)); top: 50%; transform: translateY(-50%); z-index: 9;
  display: flex; flex-direction: column; gap: 14px; }
.phases a { display: block; width: 18px; height: 18px; opacity: 0.55; transition: opacity 0.3s, transform 0.3s; }
.phases a:hover, .phases a.on { opacity: 1; transform: scale(1.2); }
.phases svg { width: 100%; height: 100%; display: block; overflow: visible; }

/* Giriş */
.hero {
  min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 96px var(--gutter) 64px; text-align: center; position: relative; overflow-x: hidden; overflow-x: clip;
}
.zodiac { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.zodiac .zc { transition: opacity 0.6s; }
.zodiac line { stroke: rgba(214, 226, 246, 0.55); stroke-width: 0.8; }
.zodiac circle { fill: #e8eefa; }
.zodiac text { fill: rgba(214, 226, 246, 0.75); font: 9px/1 var(--sans); letter-spacing: 0.32em; }

.stage { position: relative; width: var(--moon); height: var(--moon); margin-bottom: clamp(10px, 2.5vh, 26px); }
.orrery { position: absolute; left: 50%; top: 50%; width: calc(var(--moon) * 1.9); height: calc(var(--moon) * 1.9);
  transform: translate(-50%, -50%); pointer-events: none; overflow: visible;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 60%, rgba(0,0,0,.35) 70%, transparent 79%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 60%, rgba(0,0,0,.35) 70%, transparent 79%); }
.orrery .ring { fill: none; stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.orrery .ring.faint { stroke: rgba(205, 218, 240, 0.12); }
.orrery .tick { stroke: rgba(214, 226, 246, 0.35); stroke-width: 1; vector-effect: non-scaling-stroke; }
.orrery .tick.long { stroke: rgba(225, 233, 246, 0.6); }
.orrery text { fill: rgba(214, 226, 246, 0.55); font: 11px/1 var(--sans); letter-spacing: 0.12em; }
.orrery .ecl { fill: none; stroke: rgba(143, 183, 255, 0.28); stroke-width: 1; stroke-dasharray: 3 6; vector-effect: non-scaling-stroke; }
.orrery .node { fill: var(--ink); }

/* Ay: logonun kendisi; ilk açılışta renkler süt beyazından açılır (intro'daki gibi), sonra logo birebir */
.moon { position: absolute; inset: 0; margin: 0; transform-style: preserve-3d; transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
.moon img { position: absolute; left: 50%; top: 50%; width: calc(var(--moon) / 0.8384); max-width: none; transform: translate(-50%, -50%);
  animation: uyan 2.2s 0.25s cubic-bezier(.3,.6,.2,1) both; }
@keyframes uyan { from { filter: saturate(0.12) brightness(1.06); opacity: 0; } 30% { opacity: 1; } to { filter: none; opacity: 1; } }
.glint { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; mix-blend-mode: screen; opacity: 0; transition: opacity 0.5s;
  background: radial-gradient(circle at var(--gx, 30%) var(--gy, 30%), rgba(255, 255, 255, 0.34), rgba(160, 230, 255, 0.10) 22%, transparent 46%); }
.stage:hover .glint, .stage.lit .glint { opacity: 1; }

.wordmark { margin: 0; line-height: 0; }
.wordmark img { width: min(76vw, 470px); mix-blend-mode: screen; }
.tagline { margin: 10px 0 0; font: italic 400 clamp(17px, 2.2vw, 22px)/1.4 var(--serif); letter-spacing: 0.04em; color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: clamp(20px, 4vh, 34px); }
.btn {
  appearance: none; cursor: pointer; text-decoration: none; font: 500 12px/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink); padding: 15px 26px; border-radius: 999px; border: 1px solid rgba(225, 233, 246, 0.5); background: rgba(5, 8, 15, 0.35);
  transition: border-color 0.5s, box-shadow 0.5s, background 0.5s, transform 0.3s;
}
.btn:hover { border-color: rgba(127, 227, 216, 0.85); background: rgba(10, 17, 34, 0.6); transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(143, 183, 255, 0.25), 0 0 26px rgba(127, 227, 216, 0.22), inset 0 0 18px rgba(198, 182, 255, 0.12); }
.btn.ghost { border-color: rgba(225, 233, 246, 0.24); background: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--ink); }
.hint { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); margin: 0; display: flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--dim); white-space: nowrap; transition: opacity 1s; }
.hint .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); animation: nefes 2.4s infinite; }
.hint-touch { display: none; }
@media (hover: none) { .hint-desk { display: none; } .hint-touch { display: inline; } }
.hint.gone { opacity: 0; }
@keyframes nefes { 50% { opacity: 0.35; transform: scale(0.7); } }

/* Bölüm başlıkları */
section { padding: clamp(80px, 14vh, 150px) var(--gutter); }
.sec-head { max-width: 760px; margin: 0 auto clamp(30px, 6vh, 56px); text-align: center; }
.eyebrow { margin: 0 0 14px; font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--dim); }
h2 { margin: 0; font: 400 clamp(34px, 5.6vw, 64px)/1.08 var(--serif); letter-spacing: 0.02em; }
.lead { margin: 18px auto 0; max-width: 600px; color: var(--muted); font-size: clamp(15px, 1.6vw, 17px); }

/* Opal yazı: imleç geçtikçe süt beyazının altından renkler */
.opal-text {
  background-image: radial-gradient(170px circle at var(--mx, -400px) var(--my, -400px), var(--teal) 0%, var(--blue) 26%, var(--lav) 44%, var(--pink) 56%, var(--ink) 74%);
  background-color: var(--ink);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}

/* Oyunlar: gök haritası */
.skymap { position: relative; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; gap: clamp(10px, 3vw, 40px); }
.skysvg { width: 100%; height: auto; overflow: visible; }
.grid ellipse, .grid path { fill: none; stroke: rgba(205, 218, 240, 0.09); stroke-width: 1; vector-effect: non-scaling-stroke; }
.const .lines, .const .lines path { fill: none; stroke: rgba(214, 226, 246, 0.16); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.const circle { fill: #e9eef9; }
.const .label { fill: rgba(214, 226, 246, 0.5); font: 12px/1 var(--sans); letter-spacing: 0.4em; text-anchor: middle; }
.furrow { cursor: pointer; outline: none; }
.furrow .hit { fill: transparent; }
.furrow .stars circle { filter: drop-shadow(0 0 4px rgba(200, 225, 255, 0.8)); transition: r 0.5s; }
.furrow .lines path { stroke-dasharray: 1400; stroke-dashoffset: 1400; transition: stroke-dashoffset 1.6s cubic-bezier(.4,.1,.2,1), stroke 0.6s; }
.furrow .flame { fill: #fff3ea; opacity: 0.35; filter: drop-shadow(0 0 8px rgba(255, 210, 190, 0.9)); transition: opacity 0.8s; }
.furrow.on .lines path, .furrow:focus-visible .lines path { stroke-dashoffset: 0; stroke: rgba(225, 235, 250, 0.7); }
.furrow.on .flame, .furrow:focus-visible .flame { opacity: 1; animation: titre 2.8s infinite; }
.furrow.on .label { fill: var(--ink); }
@keyframes titre { 0%,100% { opacity: 1; } 47% { opacity: 0.82; } 52% { opacity: 0.95; } 70% { opacity: 0.86; } }
.unknown { opacity: 0.4; }
.unknown .lines { stroke-dasharray: 2 6; }
.unknown .label { font-size: 9px; }

.card { padding: clamp(22px, 3vw, 34px); border-radius: 18px; border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(14, 22, 42, 0.78), rgba(6, 10, 20, 0.6)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0.35; transform: translateY(10px); transition: opacity 0.8s, transform 0.8s, border-color 0.8s; }
.card.on { opacity: 1; transform: none; border-color: rgba(214, 226, 246, 0.32); }
.card h3 { margin: 0 0 12px; font: 400 clamp(24px, 2.8vw, 34px)/1.15 var(--serif); }
.card h3 span { display: block; letter-spacing: 0.3em; text-transform: uppercase; font-size: 0.72em; margin-top: 4px; color: var(--muted); }
.card p { margin: 0 0 12px; color: var(--muted); }
.nw { white-space: nowrap; }
.card .soon { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }

/* Stüdyo */
.studio-grid { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 6vw, 90px); align-items: end; }
h2.big { font-size: clamp(38px, 6.4vw, 82px); line-height: 1.04; }
.studio-copy p { color: var(--muted); font-size: clamp(16px, 1.5vw, 18px); margin: 0 0 16px; }
.studio-copy .eyebrow { color: var(--dim); }
/* Kurucu: ince çizginin altında, ad imleç geçtikçe opal renk alır */
.studio-copy .founder { margin: 30px 0 0; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.studio-copy .founder .eyebrow { margin: 0; }
.founder-name { font: 400 clamp(24px, 2.4vw, 30px)/1.15 var(--serif); letter-spacing: 0.04em; }

/* İletişim */
.contact { text-align: center; padding-bottom: clamp(70px, 12vh, 130px); }
.mail { display: inline-block; text-decoration: none; font: 400 clamp(30px, 6vw, 72px)/1.1 var(--serif); letter-spacing: 0.01em; word-break: break-word; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 26px var(--gutter) calc(26px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(205, 218, 240, 0.1); font-size: 12px; letter-spacing: 0.14em; color: var(--dim); background: rgba(5, 8, 15, 0.6); }
.foot p { margin: 0; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot-tag { font-family: var(--serif); font-style: italic; letter-spacing: 0.04em; }

/* Intro penceresi: kendi oynatıcımız. Tarayıcı denetimi yok (indirme menüsü, yayın, resim içinde resim kapalı);
   ince çizgi simgeler, opal ilerleme çizgisi, hafif opal hale. Genişlik ekran yüksekliğine de bağlı: başlık ve kapatma düğmesi kısa ekranda da sığar */
.intro { padding: 0; border: 0; background: transparent; width: min(92vw, 1280px, calc((100svh - 120px) * 16 / 9)); max-width: none; overflow: visible; color: var(--ink); }
.intro::backdrop { background: rgba(2, 4, 8, 0.88); backdrop-filter: blur(6px); }
.pl-title { position: absolute; left: 2px; top: -34px; margin: 0; font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.intro .close { position: absolute; top: -46px; right: 0; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: rgba(5, 8, 15, 0.6); color: var(--ink); display: grid; place-items: center; padding: 0; cursor: pointer; transition: border-color 0.4s, box-shadow 0.4s; }
.intro .close:hover { border-color: rgba(127, 227, 216, 0.85); box-shadow: 0 0 18px rgba(127, 227, 216, 0.25); }
.player { position: relative; border-radius: 14px; overflow: hidden; background: #000; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none;
  box-shadow: 0 0 0 1px rgba(214, 226, 246, 0.14), 0 30px 90px rgba(0, 0, 0, 0.65), 0 0 80px rgba(127, 227, 216, 0.08), 0 0 140px rgba(198, 182, 255, 0.06); }
.player video { width: 100%; height: auto; display: block; background: #000; cursor: pointer; }
.player:fullscreen { border-radius: 0; display: flex; align-items: center; justify-content: center; }
.player:fullscreen video { max-height: 100%; }
.player.idle, .player.idle video { cursor: none; }
.pl-btn svg, .pl-big svg, .intro .close svg { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.intro .close svg { width: 18px; height: 18px; }
.pl-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 4px; padding: 30px 10px 8px;
  background: linear-gradient(to top, rgba(2, 4, 8, 0.8), rgba(2, 4, 8, 0)); transition: opacity 0.6s; }
.player.idle .pl-bar { opacity: 0; }
.pl-btn { appearance: none; border: 0; background: transparent; color: var(--ink); width: 40px; height: 40px; border-radius: 50%; padding: 0;
  display: grid; place-items: center; cursor: pointer; opacity: 0.82; transition: opacity 0.3s, background 0.3s; }
.pl-btn:hover { opacity: 1; background: rgba(225, 233, 246, 0.08); }
.pl-btn svg { width: 20px; height: 20px; }
.pl-btn .i-play, .player.paused .pl-btn .i-pause, .pl-btn .i-muted, .player.muted .pl-btn .i-sound { display: none; }
.player.paused .pl-btn .i-play, .player.muted .pl-btn .i-muted { display: block; }
.pl-track { flex: 1; height: 2px; margin: 0 8px; border-radius: 2px; background: rgba(225, 233, 246, 0.16); }
.pl-fill { display: block; height: 100%; border-radius: 2px; clip-path: inset(-8px 100% -8px -8px);
  background: linear-gradient(90deg, var(--teal), var(--blue) 45%, var(--lav) 78%, var(--pink)); box-shadow: 0 0 10px rgba(127, 227, 216, 0.55); }
/* Duraklayınca ortada ay halkası gibi büyük oynat düğmesi */
.pl-big { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(5, 8, 15, 0.35); color: var(--ink); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity 0.4s, box-shadow 0.4s; }
.pl-big svg { width: 100%; height: 100%; }
.pl-big circle { stroke: rgba(225, 233, 246, 0.55); }
.player.paused .pl-big { opacity: 1; pointer-events: auto; }
.pl-big:hover { box-shadow: 0 0 30px rgba(127, 227, 216, 0.3); }
@media (max-width: 640px) { .pl-title { font-size: 10px; letter-spacing: 0.24em; } .pl-big { width: 60px; height: 60px; margin: -30px 0 0 -30px; } }

/* Gizlilik sayfası */
.page { max-width: 760px; margin: 0 auto; padding: 120px var(--gutter) 90px; }
.page h1 { font: 400 clamp(34px, 5vw, 56px)/1.1 var(--serif); margin: 0 0 8px; }
.page h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 38px 0 10px; }
.page p, .page li { color: var(--muted); }
.page .back { display: inline-block; margin-bottom: 30px; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; text-decoration: none; color: var(--dim); }
.page .back:hover { color: var(--ink); }
.page.center { text-align: center; }

/* Kısa ekranlar (768 px yükseklikli dizüstüler): ay biraz küçülür, düğmeler ilk ekranda kalır */
@media (max-height: 820px) and (min-width: 641px) { :root { --moon: min(50vmin, 540px); } .hero { padding-top: 84px; } }

/* Dar ekranlar */
@media (max-width: 900px) {
  .skymap { grid-template-columns: 1fr; }
  .studio-grid { grid-template-columns: 1fr; }
}
/* Telefon: menü kalır (adı ay simgesi taşır), dokunma alanları en az 30 px */
@media (max-width: 640px) {
  :root { --moon: min(78vw, 46svh); }
  .topbar, .topbar.scrolled { padding-block: 6px; }
  .brand span { display: none; }
  .menu { gap: 20px; }
  .menu a { font-size: 11px; letter-spacing: 0.2em; padding-block: 10px; }
  /* Ay evreleri kenara yaslanır: simge 12 px, yazı payının (16 px) dışında; dokunma alanı 26 px */
  .phases { right: 0; gap: 0; }
  .phases a { width: 26px; height: 26px; padding: 7px 3px 7px 11px; }
  /* Gök haritası telefonda yakınlaşır (main.js viewBox'ı daraltır); yazılar okunur boyda */
  .const .label { font-size: 20px; }
  .unknown .label { font-size: 15px; }
  .hero { padding-top: 84px; }
  .orrery text { display: none; }
}
