/* BAGIMSIZ FINAL SURUM KAPSULU — Yalniz ./final.css, 0 dis bagimlilik, 0 saf siyah, CSP 'self' */
:root {
  --oda: #090b10;
  --cam: rgba(14, 18, 27, 0.68);
  --panel: rgba(12, 16, 24, 0.95);
  --kart: rgba(22, 28, 42, 0.86);
  --fildisi: #f3eadc;
  --soluk: rgba(243, 234, 220, 0.68);
  --vurgu: #d8bc8c;
  --yesil: #7fe0b0;
  --cizgi: rgba(243, 234, 220, 0.16);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0; width: 100%; height: 100%; max-width: 100vw;
  background-color: var(--oda); color: var(--fildisi);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px; overflow: hidden;
}
#tuval {
  position: fixed; inset: 0; width: 100vw; height: 100dvh;
  display: block; cursor: grab; touch-action: none; z-index: 1;
}
#tuval:active { cursor: grabbing; }
.ust {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 16px 20px; pointer-events: none;
}
.sol, .sag { pointer-events: auto; display: flex; align-items: center; gap: 6px; }
.damga, .dugme {
  appearance: none; text-decoration: none; color: var(--fildisi);
  background-color: var(--cam); border: 1px solid var(--cizgi);
  border-radius: 999px; padding: 7px 13px; font-family: inherit; font-size: 12px;
  cursor: pointer; backdrop-filter: blur(14px); list-style: none;
}
.damga { font-family: Georgia, serif; letter-spacing: 0.16em; text-transform: uppercase; }
.dugme:hover, .dugme.aktif { border-color: var(--vurgu); color: var(--vurgu); }
.baslik {
  position: fixed; left: 22px; bottom: 76px; z-index: 8;
  max-width: min(440px, calc(100vw - 44px)); pointer-events: none;
}
.baslik h1 {
  margin: 0 0 6px; font-family: Georgia, serif; font-weight: 400;
  font-size: 36px; line-height: 1.08; letter-spacing: -0.02em;
}
.baslik p { margin: 0; font-size: 14px; line-height: 1.4; color: var(--soluk); }
.alt {
  position: fixed; left: 20px; right: 20px; bottom: 18px; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  pointer-events: none;
}
.kontrol { pointer-events: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.etiket {
  pointer-events: none; padding: 7px 13px; border-radius: 999px;
  background-color: var(--cam); border: 1px solid var(--cizgi); color: var(--vurgu); font-size: 12px;
}
/* Etkilesimli Final Atolye Cekmecesi (kapaliyken sifir gorsel kalabalik, acildiginda tam ekran calisma masasi) */
[hidden], .atolye-panel[hidden], .atolye-panel[hidden] * {
  display: none !important;
}
.atolye-panel {
  position: fixed;
  top: 64px;
  right: 20px;
  bottom: 68px;
  width: min(680px, calc(100vw - 40px));
  background: var(--panel);
  border: 1px solid rgba(216, 188, 140, 0.36);
  border-radius: 20px;
  padding: 20px;
  overflow-y: auto;
  z-index: 30;
  box-shadow: 0 24px 64px rgba(4, 7, 14, 0.72);
  user-select: text;
}
.atolye-panel h2 {
  margin: 0 0 6px; font-family: Georgia, serif; font-weight: 400; font-size: 22px; color: var(--fildisi);
}
.atolye-panel .aciklama {
  margin: 0 0 14px; font-size: 13px; line-height: 1.45; color: var(--soluk);
}
.form-izgara {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-bottom: 14px;
}
.alan {
  background: var(--kart); border: 1px solid var(--cizgi); border-radius: 12px; padding: 10px 12px;
}
.alan label {
  display: block; font-size: 11px; color: var(--vurgu); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px;
}
.alan select, .alan input[type="range"], .alan input[type="number"], .alan input[type="text"] {
  width: 100%; background: #0d121c; color: var(--fildisi); border: 1px solid var(--cizgi);
  border-radius: 8px; padding: 6px 8px; font: inherit;
}
.sonuc-kutu {
  background: var(--kart); border: 1px solid rgba(216, 188, 140, 0.28); border-radius: 14px;
  padding: 12px 14px; margin-bottom: 12px; font-size: 13px; line-height: 1.5;
}
.sonuc-kutu strong { color: var(--vurgu); }
.aksiyon-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.indir-bag {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  padding: 8px 14px; border-radius: 999px; background: rgba(216, 188, 140, 0.16);
  border: 1px solid var(--vurgu); color: var(--fildisi); font-size: 12px; cursor: pointer;
}
.svg-kutu {
  background: #0d121c; border: 1px solid var(--cizgi); border-radius: 12px;
  padding: 10px; margin: 10px 0; overflow-x: auto;
}
.svg-kutu svg { width: 100%; height: auto; display: block; }
.kod-cikti {
  margin: 8px 0 0; padding: 10px; border-radius: 10px; background: #0d121c;
  border: 1px solid var(--cizgi); color: var(--yesil); font-family: ui-monospace, Consolas, monospace;
  font-size: 11px; white-space: pre-wrap; word-break: break-word; max-height: 180px; overflow-y: auto;
}
@media (max-width: 640px) {
  .ust { padding: 12px; }
  .baslik { left: 14px; right: 14px; bottom: 68px; }
  .baslik h1 { font-size: 26px; }
  .alt { left: 12px; right: 12px; bottom: 12px; }
  .etiket { display: none; }
  .atolye-panel { left: 12px; right: 12px; width: auto; top: 58px; bottom: 58px; padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
