/* Jetonlu · Görünümler
   Renkler aşağıdaki değişkenlerle verilir. Her görünüm (Neon, Lüks, Klasik, Sade) bu değişkenleri değiştirir.
   Seçili görünüm <html data-gorunum="..."> ile gelir (index.html'deki küçük betik koyar). */
:root,
:root[data-gorunum='jetonlu'] {
  --zemin: radial-gradient(120% 80% at 50% 0%, #2e2314 0%, #1E1710 60%, #140f0a 100%);
  --ust-metin: #F1DDA2;
  --yuzey: #2a2016;
  --yuzey-2: #33281b;
  --kenar: #4a3b25;
  --metin: #F1DDA2;
  --metin-soluk: #b9a57a;
  --vurgu: #C9A24E;
  --vurgu-koyu: #e3c27a;
  --vurgu-yazi: #1E1710;
  --vurgu-golge: rgba(201, 162, 78, 0.35);
  --ikinci: #3A2708;
  --altin: #C9A24E;
  --kart-golge: 0 0 0 1px #3d3020, 0 8px 22px rgba(0, 0, 0, 0.45);
  --panel-zemin: linear-gradient(180deg, #221a11, #17110b);
  --kazanma-zemin: radial-gradient(circle at 50% 38%, #4a3818, #1E1710 62%, #120d08);
  --cubuk: linear-gradient(90deg, #6b4d16, #C9A24E 55%, #F1DDA2);
  --font: 'Poppins', system-ui, 'Segoe UI', sans-serif;
  --baslik-font: 'Poppins', system-ui, sans-serif;
  --logo-golge: none;
  --yaricap: 14px;
  color-scheme: dark;
}
:root[data-gorunum='neon'] {
  --zemin: radial-gradient(120% 80% at 50% 0%, #241a3d 0%, #0d0b16 60%, #07060c 100%);
  --ust-metin: #f4f1ff;
  --yuzey: #1a1726;
  --yuzey-2: #231f33;
  --kenar: #3a3452;
  --metin: #f1eefe;
  --metin-soluk: #a49fbf;
  --vurgu: #ff2d95;
  --vurgu-koyu: #ff6fb6;
  --vurgu-yazi: #ffffff;
  --vurgu-golge: rgba(255, 45, 149, 0.55);
  --ikinci: #22e4ff;
  --altin: #ffc400;
  --kart-golge: 0 0 0 1px #2c2740, 0 8px 24px rgba(0, 0, 0, 0.45);
  --panel-zemin: linear-gradient(180deg, #120f1d, #0a0912);
  --kazanma-zemin: radial-gradient(circle at 50% 38%, #3a1f5c, #120f1d 60%, #07060c);
  --cubuk: linear-gradient(90deg, #22e4ff, #a855ff 55%, #ff2d95);
  --font: 'Manrope', system-ui, 'Segoe UI', sans-serif;
  --baslik-font: 'Sora', 'Manrope', system-ui, sans-serif;
  --logo-golge: 0 0 12px rgba(255, 45, 149, 0.8), 0 0 2px #fff;
  --yaricap: 14px;
  color-scheme: dark;
}
:root[data-gorunum='luks'] {
  --zemin: radial-gradient(120% 80% at 50% 0%, #2a2116 0%, #0b0a09 60%, #050505 100%);
  --ust-metin: #f3e6c0;
  --yuzey: #15120e;
  --yuzey-2: #1f1a13;
  --kenar: #3d3322;
  --metin: #f3ead2;
  --metin-soluk: #b3a587;
  --vurgu: #d4af37;
  --vurgu-koyu: #e8c766;
  --vurgu-yazi: #1a1408;
  --vurgu-golge: rgba(212, 175, 55, 0.35);
  --ikinci: #c3123f;
  --altin: #d4af37;
  --kart-golge: 0 0 0 1px #3a3020, 0 8px 24px rgba(0, 0, 0, 0.5);
  --panel-zemin: linear-gradient(180deg, #120f0b, #070605);
  --kazanma-zemin: radial-gradient(circle at 50% 38%, #4a3a17, #15120e 60%, #050505);
  --cubuk: linear-gradient(90deg, #8a6d1d, #d4af37 55%, #fff1b8);
  --font: 'Manrope', system-ui, 'Segoe UI', sans-serif;
  --baslik-font: 'Playfair Display', Georgia, serif;
  --logo-golge: none;
  --yaricap: 10px;
  color-scheme: dark;
}
:root[data-gorunum='klasik'] {
  --zemin: linear-gradient(180deg, #1b2c66 0%, #101a3a 55%, #0a1128 100%);
  --ust-metin: #ffffff;
  --yuzey: #ffffff;
  --yuzey-2: #f1f3f8;
  --kenar: #d5dae6;
  --metin: #141a2e;
  --metin-soluk: #5a6178;
  --vurgu: #c8102e;
  --vurgu-koyu: #c8102e;
  --vurgu-yazi: #ffffff;
  --vurgu-golge: rgba(200, 16, 46, 0.35);
  --ikinci: #ffd100;
  --altin: #ffd100;
  --kart-golge: 0 1px 0 #d5dae6, 0 6px 18px rgba(10, 17, 40, 0.18);
  --panel-zemin: linear-gradient(180deg, #eef1f7, #e3e8f2);
  --kazanma-zemin: repeating-conic-gradient(from 0deg at 50% 38%, rgba(255, 209, 0, 0.18) 0 10deg, transparent 10deg 20deg), radial-gradient(circle at 50% 38%, #2a49c9, #101a3a 70%);
  --cubuk: linear-gradient(90deg, #1d3fbb, #ffd100 55%, #c8102e);
  --font: 'Manrope', system-ui, 'Segoe UI', sans-serif;
  --baslik-font: 'Archivo Black', 'Arial Black', sans-serif;
  --logo-golge: 0 2px 0 #c8102e;
  --yaricap: 12px;
  color-scheme: light;
}
:root[data-gorunum='sade'] {
  --zemin: #f5f5f7;
  --ust-metin: #1d1d1f;
  --yuzey: #ffffff;
  --yuzey-2: #f2f2f4;
  --kenar: #e2e3e7;
  --metin: #1d1d1f;
  --metin-soluk: #6e6e73;
  --vurgu: #1d1d1f;
  --vurgu-koyu: #1d1d1f;
  --vurgu-yazi: #ffffff;
  --vurgu-golge: rgba(0, 0, 0, 0.18);
  --ikinci: #8a8a90;
  --altin: #c9a227;
  --kart-golge: 0 0 0 1px #e8e8ec, 0 4px 14px rgba(0, 0, 0, 0.05);
  --panel-zemin: #f5f5f7;
  --kazanma-zemin: radial-gradient(circle at 50% 38%, #ffffff, #ececf0);
  --cubuk: linear-gradient(90deg, #c9cdd3, #6e6e73 60%, #1d1d1f);
  --font: 'Manrope', system-ui, 'Segoe UI', sans-serif;
  --baslik-font: 'Manrope', system-ui, sans-serif;
  --logo-golge: none;
  --yaricap: 12px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--zemin);
  background-color: #1E1710;
  color: var(--metin);
  font-family: var(--font);
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
:root[data-gorunum='sade'] body, :root[data-gorunum='sade'] { background-color: #f5f5f7; }

button { font-family: inherit; color: inherit; touch-action: manipulation; cursor: pointer; }

#oyun {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}

/* Üst şerit */
#ust {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 0;
  gap: 8px;
}
.logo {
  font-family: var(--baslik-font);
  font-weight: 800;
  font-size: 22px;
  color: var(--ust-metin);
  letter-spacing: 0.2px;
  white-space: nowrap;
  text-shadow: var(--logo-golge);
}
:root[data-gorunum='luks'] .logo { color: var(--vurgu); font-weight: 700; letter-spacing: 0.5px; }
.sayaclar { display: flex; gap: 6px; }
@media (max-width: 400px) {
  #ust { padding: 8px 10px 0; gap: 4px; }
  .logo { font-size: 18px; }
  .sayaclar { gap: 4px; }
  .rozet { font-size: 12px; padding: 3px 8px; }
}
.rozet {
  background: var(--yuzey);
  color: var(--metin);
  border: 1px solid var(--kenar);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.rozet.vurgu { background: var(--vurgu); color: var(--vurgu-yazi); border-color: transparent; }
.rozet.kisi { display: inline-flex; align-items: center; gap: 5px; }
.rozet.kisi i { width: 8px; height: 8px; border-radius: 50%; background: #3fdc8f; box-shadow: 0 0 0 3px rgba(63, 220, 143, 0.25); }

/* Diğer oyuncuların duyurusu (alt kısımda, küçük) */
#akis {
  position: absolute;
  left: 50%;
  bottom: 10px;
  max-width: calc(100% - 32px);
  transform: translate(-50%, 8px);
  background: rgba(10, 10, 16, 0.82);
  color: #fff;
  padding: 4px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}
#akis.gorunur { opacity: 1; transform: translate(-50%, 0); }

/* 3D sahne */
#sahne { position: relative; flex: 1; min-height: 0; touch-action: none; }
#sahne canvas, #kazanma-sahne canvas { display: block; width: 100%; height: 100%; }

#mesaj {
  position: absolute;
  left: 50%;
  top: 50px;
  max-width: calc(100% - 24px);
  transform: translate(-50%, -8px);
  background: var(--yuzey);
  color: var(--metin);
  border: 1px solid var(--kenar);
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 17px;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
  width: max-content;
  text-align: center;
  line-height: 1.25;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
#mesaj.gorunur { opacity: 1; transform: translate(-50%, 0); }

/* Güç çizgisi */
#guc-alani {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  height: 46px;
  transition: opacity 0.2s;
  color: var(--ust-metin);
}
#guc-alani.gizli { opacity: 0; }
.guc-baslik { font-weight: 800; font-size: 13px; width: 40px; text-transform: uppercase; letter-spacing: 1px; }
#guc-cubuk {
  position: relative;
  flex: 1;
  height: 16px;
  border-radius: 999px;
  background:
    repeating-linear-gradient(90deg, transparent 0, transparent calc(11.111% - 1px), rgba(127, 127, 140, 0.35) calc(11.111% - 1px), rgba(127, 127, 140, 0.35) 11.111%),
    var(--yuzey-2);
  border: 1px solid var(--kenar);
  overflow: hidden;
}
#guc-dolu {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: 999px;
  background: var(--cubuk);
}
#guc-alani.kilitli #guc-dolu { box-shadow: 0 0 0 2px #fff inset; }
#guc-deger { font-weight: 800; font-size: 20px; width: 40px; text-align: right; font-variant-numeric: tabular-nums; }

/* Kontroller */
#kontroller {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 20px 16px;
}
#yon {
  display: grid;
  grid-template-columns: repeat(3, 56px);
  grid-template-rows: repeat(3, 50px);
  gap: 5px;
}
.yon {
  border: 1px solid var(--kenar);
  border-radius: var(--yaricap);
  background: var(--yuzey);
  font-size: 18px;
  color: var(--metin);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
  touch-action: none;
}
.yon:active, .yon.basili { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35); background: var(--yuzey-2); border-color: var(--vurgu); color: var(--vurgu-koyu); }
.yon:disabled { opacity: 0.4; }
.yon[data-yon='ileri'] { grid-column: 2; grid-row: 1; }
.yon[data-yon='sol'] { grid-column: 1; grid-row: 2; }
.yon[data-yon='sag'] { grid-column: 3; grid-row: 2; }
.yon[data-yon='geri'] { grid-column: 2; grid-row: 3; }

/* Ana düğme: her görünümde farklı */
#ana-buton {
  flex: 0 0 auto;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  border: 0;
  font-family: var(--baslik-font);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  touch-action: none;
  transition: transform 0.08s;
}
:root[data-gorunum='neon'] #ana-buton {
  background: radial-gradient(circle at 50% 35%, #ff5fb0, #ff2d95 50%, #a3125c);
  color: #fff;
  box-shadow: 0 0 0 4px #0d0b16, 0 0 0 6px #ff2d95, 0 0 28px rgba(255, 45, 149, 0.7);
}
:root[data-gorunum='luks'] #ana-buton {
  background: radial-gradient(circle at 40% 30%, #fff1b8, #d4af37 45%, #7a5c12);
  color: #1a1408;
  box-shadow: 0 0 0 4px #0b0a09, 0 0 0 5px #8a6d1d, 0 10px 30px rgba(0, 0, 0, 0.6);
  font-weight: 700;
}
:root[data-gorunum='klasik'] #ana-buton {
  background: radial-gradient(circle at 40% 30%, #ff6b7f, #c8102e 55%, #7d0a1d);
  color: #fff;
  box-shadow: 0 0 0 6px #ffd100, 0 7px 0 6px #b38f00, 0 14px 24px rgba(0, 0, 0, 0.45);
  font-weight: 400;
}
:root[data-gorunum='sade'] #ana-buton {
  background: #1d1d1f;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  font-size: 20px;
}
:root[data-gorunum='jetonlu'] #ana-buton {
  background: radial-gradient(circle at 40% 30%, #F1DDA2, #C9A24E 50%, #6b4d16);
  color: #1E1710;
  box-shadow: 0 0 0 4px #1E1710, 0 0 0 6px #94702A, 0 10px 26px rgba(0, 0, 0, 0.55);
  font-weight: 700;
}
:root[data-gorunum='jetonlu'] #ana-buton.tut { box-shadow: 0 0 0 4px #1E1710, 0 0 0 7px #F1DDA2, 0 0 26px rgba(201, 162, 78, 0.6); }
#ana-buton:active { transform: scale(0.96); }
#ana-buton.tut { animation: nabiz 0.6s ease-in-out infinite alternate; filter: brightness(1.15); }
:root[data-gorunum='neon'] #ana-buton.tut { box-shadow: 0 0 0 4px #0d0b16, 0 0 0 6px #22e4ff, 0 0 34px rgba(34, 228, 255, 0.8); }
:root[data-gorunum='luks'] #ana-buton.tut { box-shadow: 0 0 0 4px #0b0a09, 0 0 0 6px #fff1b8, 0 0 30px rgba(212, 175, 55, 0.7); }
:root[data-gorunum='klasik'] #ana-buton.tut { box-shadow: 0 0 0 6px #fff, 0 7px 0 6px #c9ccd4, 0 0 30px rgba(255, 209, 0, 0.8); }
:root[data-gorunum='sade'] #ana-buton.tut { background: #3a3a3e; }
#ana-buton:disabled { opacity: 0.5; }
@keyframes nabiz { to { transform: scale(1.05); } }

/* Kazanma ekranı */
#kazanma {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--kazanma-zemin);
  background-color: #1E1710;
  z-index: 10;
  animation: belir 0.35s ease-out;
}
#kazanma.gizli, #yukleniyor.gizli { display: none; }
#kazanma-sahne { flex: 1; min-height: 0; }
.kazanma-kart {
  margin: 0 16px calc(20px + env(safe-area-inset-bottom));
  padding: 18px 16px 20px;
  background: var(--yuzey);
  border: 1px solid var(--kenar);
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
}
.kazandin { font-family: var(--baslik-font); font-size: 34px; font-weight: 800; color: var(--vurgu-koyu); line-height: 1.1; }
#obje-adi { font-size: 20px; font-weight: 800; margin-top: 6px; }
#nadirlik-etiketi {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: #fff;
}
#nadirlik-etiketi.sik { background: #2f9e78; }
#nadirlik-etiketi.nadir { background: #7a4dff; }
#nadirlik-etiketi.cokNadir { background: linear-gradient(90deg, #b8860b, #ffd75e, #b8860b); color: #3d2a00; }
#tekrar {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  border: 0;
  border-radius: var(--yaricap);
  background: var(--vurgu);
  color: var(--vurgu-yazi);
  font-size: 19px;
  font-weight: 800;
  box-shadow: 0 6px 18px var(--vurgu-golge);
}
#tekrar:active { transform: translateY(2px); }
@keyframes belir { from { opacity: 0; transform: scale(1.03); } }

/* Yükleniyor */
#yukleniyor {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  background: var(--zemin);
  background-color: #1E1710;
  color: var(--ust-metin);
}
:root[data-gorunum='sade'] #yukleniyor { background-color: #f5f5f7; }
.yukleniyor-logo { width: min(72vw, 300px); height: auto; }
.yukleniyor-oyun { font-weight: 600; letter-spacing: 3px; text-transform: uppercase; font-size: 14px; color: var(--metin-soluk); }
#yukleniyor-yazi { font-size: 16px; max-width: 320px; opacity: 0.8; }

button.rozet { cursor: pointer; }
button.rozet:active { transform: translateY(1px); }

/* Sahnenin üstündeki küçük düğmeler */
#yapboz-hap, #gorunum-sec, #makine-sec {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 6px;
  border: 1px solid var(--kenar);
  border-radius: 999px;
  background: var(--yuzey);
  color: var(--metin);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
#yapboz-hap { left: 12px; top: 12px; }
#gorunum-sec { left: 12px; top: 48px; }
#yapboz-hap.parladi { animation: parla 0.7s ease-out; }
@keyframes parla { 40% { transform: scale(1.15); border-color: var(--vurgu); } }
.yapboz-simge {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background:
    radial-gradient(circle at 50% 0, var(--yuzey) 3px, transparent 3.5px),
    radial-gradient(circle at 100% 50%, var(--yuzey) 3px, transparent 3.5px),
    var(--vurgu);
}
.gorunum-simge {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: conic-gradient(#ff2d95 0 25%, #d4af37 0 50%, #c8102e 0 75%, #e2e3e7 0);
}
#gorunum-liste, #makine-liste {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  border-radius: 16px;
  background: var(--yuzey);
  border: 1px solid var(--kenar);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
#gorunum-liste { left: 12px; top: 84px; min-width: 230px; }
#gorunum-liste.gizli, #makine-liste.gizli { display: none; }
#gorunum-liste button {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  background: none;
  padding: 8px 10px;
  border-radius: 12px;
  text-align: left;
  color: var(--metin);
}
#gorunum-liste button.secili { border-color: var(--vurgu); background: var(--yuzey-2); }
#gorunum-liste b { display: block; font-size: 15px; }
#gorunum-liste small { display: block; font-size: 12px; color: var(--metin-soluk); }
.gorunum-ornek { display: inline-flex; flex: 0 0 auto; }
.gorunum-ornek i { width: 14px; height: 28px; display: block; }
.gorunum-ornek i:first-child { border-radius: 8px 0 0 8px; }
.gorunum-ornek i:last-child { border-radius: 0 8px 8px 0; }

/* Kayıt daveti */
#davet {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 44px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--yuzey);
  border: 1px solid var(--kenar);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  font-size: 15px;
  animation: belir 0.3s ease-out;
}
#davet.gizli { display: none; }
#davet b { font-size: 17px; color: var(--vurgu-koyu); }
.davet-dugmeler { display: flex; gap: 8px; margin-top: 6px; }
.davet-dugmeler button { flex: 1; padding: 9px; border: 0; border-radius: var(--yaricap); font-size: 15px; font-weight: 800; }
#davet-evet { background: var(--vurgu); color: var(--vurgu-yazi); }
#davet-sonra { background: var(--yuzey-2); }

/* Panel: koleksiyon, yapboz, hesap */
#panel {
  position: fixed;
  inset: 0;
  z-index: 15;
  display: flex;
  flex-direction: column;
  background: var(--panel-zemin);
  background-color: var(--yuzey-2);
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  animation: belir 0.25s ease-out;
  -webkit-user-select: text;
  user-select: text;
}
#panel.gizli { display: none; }
.panel-ust { display: flex; align-items: center; gap: 8px; padding: 10px 12px 6px 16px; }
.sekmeler { flex: 1; display: flex; gap: 4px; background: var(--yuzey); border: 1px solid var(--kenar); border-radius: 999px; padding: 4px; }
.sekmeler button { flex: 1; border: 0; background: none; padding: 7px 4px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--metin-soluk); }
.sekmeler button.secili { background: var(--vurgu); color: var(--vurgu-yazi); }
#panel-kapat { width: 40px; height: 40px; border: 1px solid var(--kenar); border-radius: 50%; background: var(--yuzey); font-size: 16px; font-weight: 800; }
#panel-icerik { flex: 1; overflow-y: auto; padding: 8px 16px 24px; -webkit-overflow-scrolling: touch; }
#panel h3 { margin: 18px 0 2px; font-size: 18px; font-family: var(--baslik-font); }
.bilgi { margin: 6px 0; line-height: 1.4; }
.bilgi.kucuk { font-size: 14px; color: var(--metin-soluk); }
.bilgi.bos { text-align: center; margin-top: 40px; font-size: 16px; }
.not { background: var(--yuzey); border-left: 4px solid var(--altin); border-radius: 10px; padding: 10px 12px; margin: 4px 0 8px; }

.oranlar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; margin: 4px 0 12px; }
.oran { padding: 1px 10px; border-radius: 999px; font-weight: 800; color: #fff; }
.oran.sik, .etiket.sik { background: #2f9e78; }
.oran.nadir, .etiket.nadir { background: #7a4dff; }
.oran.cokNadir, .etiket.cokNadir { background: linear-gradient(90deg, #b8860b, #ffd75e, #b8860b); color: #3d2a00; }

.kartlar { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.kart { position: relative; background: var(--yuzey); border-radius: 16px; padding: 8px 8px 10px; text-align: center; box-shadow: var(--kart-golge); }
.kart img { width: 100%; max-width: 120px; aspect-ratio: 1; display: block; margin: 0 auto; }
.kart-ad { font-weight: 800; font-size: 15px; line-height: 1.2; }
.kart-ad.buyuk { font-size: 21px; }
.etiket { display: inline-block; margin: 4px 0; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #fff; }
.adet { position: absolute; top: 8px; right: 10px; font-weight: 800; color: var(--vurgu-koyu); }
.gercek { margin-top: 4px; width: 100%; padding: 6px; border: 1px solid var(--vurgu); border-radius: 10px; background: transparent; color: var(--vurgu-koyu); font-weight: 800; font-size: 12px; }
.istendi { margin-top: 6px; font-size: 13px; font-weight: 800; color: #2f9e78; }

.yapboz-ust { display: flex; gap: 14px; align-items: center; background: var(--yuzey); border-radius: 18px; padding: 12px; box-shadow: var(--kart-golge); }
.parcalar { flex: 0 0 132px; display: grid; gap: 3px; aspect-ratio: 1; }
.parca { border-radius: 6px; }
.parca.dolu { background-color: var(--yuzey-2); box-shadow: inset 0 0 0 1px var(--kenar); }
.parca.bos { background: var(--yuzey-2); border: 2px dashed var(--kenar); }
.parca.yok { visibility: hidden; }
.sayac { margin: 6px 0 0; font-size: 16px; }

.secici { background: var(--yuzey); border-radius: 18px; padding: 12px; margin-top: 8px; box-shadow: var(--kart-golge); }
.secenekler { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.secenekler button { padding: 6px 12px; border: 1px solid var(--kenar); border-radius: 999px; background: var(--yuzey-2); font-weight: 700; font-size: 14px; }
.secenekler button.secili { border-color: var(--vurgu); color: var(--vurgu-koyu); }
.secenekler button.renk { width: 34px; height: 34px; padding: 0; border: 3px solid var(--yuzey); box-shadow: 0 0 0 1px var(--kenar); }
.secenekler button.renk.secili { box-shadow: 0 0 0 2px var(--vurgu-koyu); }
.secenekler.kapali { opacity: 0.3; pointer-events: none; }
.onizleme { display: flex; align-items: center; gap: 12px; }
.onizleme img { width: 96px; height: 96px; }

button.ana, button.ikincil { width: 100%; margin-top: 8px; padding: 12px; border: 0; border-radius: var(--yaricap); font-size: 17px; font-weight: 800; }
button.ana { background: var(--vurgu); color: var(--vurgu-yazi); box-shadow: 0 6px 18px var(--vurgu-golge); }
button.ana:disabled { background: var(--kenar); color: var(--metin-soluk); box-shadow: none; }
button.ikincil { background: transparent; color: var(--vurgu-koyu); border: 1px solid var(--vurgu); }

.hesap-kart { background: var(--yuzey); border-radius: 18px; padding: 4px 14px 14px; margin-top: 10px; box-shadow: var(--kart-golge); }
.hesap-kart form { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.hesap-kart label { display: flex; flex-direction: column; gap: 3px; font-size: 13px; font-weight: 700; color: var(--metin-soluk); }
.hesap-kart input, .ust-katman input, .ust-katman textarea, .ust-katman select {
  font: inherit;
  font-size: 16px;
  padding: 10px 12px;
  border: 1px solid var(--kenar);
  border-radius: 10px;
  background: var(--yuzey-2);
  color: var(--metin);
}
.hesap-kart input:focus, .ust-katman input:focus, .ust-katman textarea:focus { outline: none; border-color: var(--vurgu); }
.hata { margin: 0; min-height: 1.2em; color: #e5484d; font-size: 14px; font-weight: 600; }
.yakinda { margin-top: 10px; text-align: center; }

/* ---------- Makine seçici, kupon ---------- */
#makine-sec { right: 12px; top: 12px; max-width: 48%; padding: 4px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#makine-sec.tek { display: none; }
#makine-liste { right: 12px; top: 46px; }
#makine-liste button { border: 0; background: none; padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 15px; text-align: left; color: var(--metin); }
#makine-liste button.secili { background: var(--yuzey-2); color: var(--vurgu-koyu); }
#kazanma-kupon { margin-top: 6px; font-weight: 700; color: var(--altin); }
#kazanma-kupon:empty { display: none; }
.kazanma-dugmeler { display: flex; gap: 8px; margin-top: 12px; }
.kucuk-dugme { flex: 1; padding: 10px 6px; border: 1px solid var(--kenar); border-radius: var(--yaricap); background: var(--yuzey-2); color: var(--metin); font-size: 15px; font-weight: 700; }
#kazanma.kupon #hediye-et, #kazanma.kupon #kamerada-gor { display: none; }
#ana-ekran {
  position: absolute; left: 16px; right: 16px; bottom: 44px; z-index: 4;
  display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 16px;
  background: var(--yuzey); border: 1px solid var(--kenar); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); font-size: 15px;
}
#ana-ekran.gizli, #ana-ekran-ios.gizli { display: none; }
#ana-ekran b { font-size: 17px; color: var(--vurgu-koyu); }
#ana-ekran .kucuk { font-size: 13px; color: var(--metin-soluk); }
#ana-ekran-ekle { flex: 1; background: var(--vurgu); color: var(--vurgu-yazi); }
#ana-ekran-kapat { flex: 1; background: var(--yuzey-2); }

.sekmeler { overflow-x: auto; scrollbar-width: none; justify-content: flex-start; }
.sekmeler::-webkit-scrollbar { display: none; }
.sekmeler button { flex: 0 0 auto; padding: 7px 12px; }

.kupon-kart { display: flex; gap: 12px; align-items: center; background: var(--yuzey); border-radius: 16px; padding: 12px; margin-bottom: 10px; box-shadow: var(--kart-golge); border-left: 6px solid var(--mekan, var(--vurgu)); }
.kupon-kart.pasif { opacity: 0.55; }
.kupon-kart > div { flex: 1; min-width: 0; }
.kupon-kart .mekan-ad { font-size: 13px; font-weight: 600; color: var(--metin-soluk); }
.kupon-kart button { flex: 0 0 auto; width: auto; margin: 0; padding: 10px 16px; font-size: 15px; }
.durum-etiket { display: inline-block; margin-top: 4px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: #eee; color: #333; }
.durum-etiket.aktif { background: #d9f7e8; color: #1f6b47; }
.durum-etiket.kullanildi { background: #e8e0f5; color: #5b3f8c; }
.durum-etiket.suresi_doldu { background: #ffe0e0; color: #9b2c2c; }

#kupon-goster {
  position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 24px; background: #fff; color: #1d1d1f; text-align: center; animation: belir 0.25s ease-out;
}
#kupon-goster.gizli { display: none; }
#kupon-goster .qr-kutu { width: min(72vw, 300px); aspect-ratio: 1; }
#kupon-goster .qr-kutu img, #kupon-goster .qr-kutu svg { width: 100%; height: 100%; image-rendering: pixelated; }
#kupon-goster .kod { font-size: 34px; font-weight: 800; letter-spacing: 3px; font-variant-numeric: tabular-nums; }
#kupon-goster .afiyet { font-size: 40px; font-weight: 800; color: #2f9e6f; }
#kupon-goster button { max-width: 320px; }
#kupon-goster button.ikincil { color: #1d1d1f; border-color: #1d1d1f; }

.pasaport-kart { background: var(--yuzey); border-radius: 16px; padding: 12px; margin-bottom: 10px; box-shadow: var(--kart-golge); }
.pasaport-ust { display: flex; gap: 12px; align-items: center; }
.pasaport-ust img { width: 72px; height: 72px; }
.ilerleme { height: 8px; border-radius: 999px; background: var(--yuzey-2); overflow: hidden; margin: 6px 0; }
.ilerleme i { display: block; height: 100%; background: var(--cubuk); border-radius: 999px; }
#harita { height: 260px; border-radius: 16px; overflow: hidden; margin-bottom: 12px; background: #eee; }
.harita-noktasi { width: 22px; height: 22px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); }

/* ---------- Hediye ve kamera ---------- */
.ust-katman {
  position: fixed; inset: 0; z-index: 25; display: flex; flex-direction: column;
  background: var(--panel-zemin); background-color: var(--yuzey-2); color: var(--metin); padding: env(safe-area-inset-top) 16px env(safe-area-inset-bottom);
  overflow-y: auto; animation: belir 0.25s ease-out;
}
.ust-katman.gizli { display: none; }
.ust-katman h2 { margin: 16px 0 4px; font-size: 24px; font-family: var(--baslik-font); color: var(--vurgu-koyu); }
.ust-katman .kapat-x { position: absolute; right: 12px; top: calc(10px + env(safe-area-inset-top)); width: 40px; height: 40px; border: 1px solid var(--kenar); border-radius: 50%; background: var(--yuzey); font-size: 16px; font-weight: 800; }
.hediye-onizleme { display: flex; align-items: center; gap: 12px; background: var(--yuzey); border-radius: 16px; padding: 10px; margin: 8px 0; }
.hediye-onizleme img { width: 80px; height: 80px; }
.ust-katman form { display: flex; flex-direction: column; gap: 8px; }
.ust-katman label { display: flex; flex-direction: column; gap: 3px; font-size: 13px; font-weight: 700; color: var(--metin-soluk); }
.ust-katman textarea { min-height: 70px; resize: vertical; }
.kutular { display: flex; gap: 8px; flex-wrap: wrap; }
.kutular button { width: 60px; height: 60px; border-radius: 14px; border: 3px solid var(--yuzey); box-shadow: 0 0 0 1px var(--kenar); }
.kutular button.secili { box-shadow: 0 0 0 2px var(--vurgu-koyu); }
.kutular button:disabled { opacity: 0.35; }
.link-kutusu { display: flex; gap: 6px; margin-top: 8px; }
.link-kutusu input { flex: 1; min-width: 0; font-size: 14px; }

#kamera { background: #000; padding: 0; }
#kamera video, #kamera canvas.kamera-3d { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#kamera canvas.kamera-3d { pointer-events: none; }
.kamera-alt { position: absolute; left: 0; right: 0; bottom: calc(20px + env(safe-area-inset-bottom)); display: flex; justify-content: center; align-items: center; gap: 24px; }
.deklansor { width: 76px; height: 76px; border-radius: 50%; border: 6px solid #fff; background: var(--vurgu); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4); }
.kamera-alt .kucuk-dugme { flex: 0 0 auto; background: rgba(255, 255, 255, 0.92); color: #1d1d1f; }
.kamera-uyari { position: absolute; left: 16px; right: 16px; top: 40%; color: #fff; text-align: center; font-size: 17px; }
#kamera .kapat-x { z-index: 2; }
.foto-onizleme { max-width: 100%; max-height: 60vh; border-radius: 14px; display: block; margin: 0 auto; }

.bildirim-listesi .bildirim { background: var(--yuzey); border-radius: 12px; padding: 8px 12px; margin-bottom: 6px; font-size: 15px; }
.gonderilen { display: flex; align-items: center; gap: 10px; background: var(--yuzey); border-radius: 14px; padding: 8px 10px; margin-bottom: 8px; }
.gonderilen img { width: 52px; height: 52px; }
.gonderilen > div { flex: 1; min-width: 0; font-size: 14px; }
.gonderilen button { width: auto; margin: 0; padding: 6px 10px; font-size: 13px; }

/* ---------- Canlı mesaj balonları ---------- */
#baloncuklar { position: absolute; inset: 0; pointer-events: none; overflow: hidden; transition: opacity 0.3s; }
#baloncuklar.soluk { opacity: 0.25; }
#baloncuklar.gizli { display: none; }
.balon {
  position: absolute; bottom: 70px; max-width: 46%; padding: 6px 12px; border-radius: 14px;
  background: var(--yuzey); color: var(--metin); border: 1px solid var(--kenar); font-size: 14px; line-height: 1.25; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  pointer-events: auto; animation: suzul 7s linear forwards; word-break: break-word;
}
.balon.sol { left: 8px; border-bottom-left-radius: 4px; }
.balon.sag { right: 8px; border-bottom-right-radius: 4px; text-align: right; }
.balon b { display: block; font-size: 12px; color: var(--vurgu-koyu); }
.balon.oyun { border-color: var(--altin); font-weight: 600; }
@keyframes suzul { 0% { transform: translateY(20px); opacity: 0; } 8% { opacity: 1; transform: translateY(0); } 85% { opacity: 1; } 100% { transform: translateY(-260px); opacity: 0; } }
#mesaj-ac, #balon-gizle { position: absolute; bottom: 12px; border: 1px solid var(--kenar); border-radius: 50%; background: var(--yuzey); color: var(--metin); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); }
#mesaj-ac { right: 12px; width: 42px; height: 42px; font-size: 19px; }
#mesaj-ac.gizli, #mesaj-formu.gizli { display: none; }
#balon-gizle { left: 12px; width: 36px; height: 36px; font-size: 16px; }
#balon-gizle.kapali { opacity: 0.4; }
#mesaj-formu { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; gap: 6px; z-index: 3; }
#mesaj-formu input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 8px 12px; border: 1px solid var(--vurgu); border-radius: 999px; background: var(--yuzey); color: var(--metin); }
#mesaj-formu button { border: 0; border-radius: 999px; padding: 0 14px; background: var(--vurgu); color: var(--vurgu-yazi); font-weight: 800; }
.balon-menu { position: absolute; z-index: 5; display: flex; gap: 4px; padding: 4px; background: var(--yuzey); border: 1px solid var(--kenar); border-radius: 12px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); pointer-events: auto; }
.balon-menu button { border: 0; background: var(--yuzey-2); border-radius: 8px; padding: 6px 10px; font-weight: 600; font-size: 13px; }

/* ---------- Makinem, vitrin, sıralama ---------- */
.vitrin { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.vitrin button { position: relative; background: var(--yuzey-2); border: 1px solid var(--kenar); border-radius: 12px; padding: 4px; }
.vitrin button.secili { border-color: var(--vurgu); }
.vitrin img { width: 100%; aspect-ratio: 1; }
.siralama { width: 100%; border-collapse: collapse; background: var(--yuzey); border-radius: 14px; overflow: hidden; }
.siralama td { padding: 7px 10px; border-bottom: 1px solid var(--kenar); }
.siralama td:first-child { width: 32px; font-weight: 800; color: var(--vurgu-koyu); }
.siralama td:last-child { text-align: right; font-weight: 800; }
.pro-rozet { display: inline-block; padding: 0 8px; border-radius: 999px; background: linear-gradient(90deg, #b8860b, #ffd75e); color: #3d2a00; font-size: 12px; font-weight: 800; }
.kilitli-not { font-size: 13px; color: var(--metin-soluk); }

/* Kısa ekranlar */
@media (max-height: 640px) {
  #ana-buton { width: 104px; height: 104px; font-size: 20px; }
  #yon { grid-template-columns: repeat(3, 50px); grid-template-rows: repeat(3, 42px); }
  #kontroller { padding-bottom: 10px; }
}

/* ==========================================================================
   Makine ekranı (Jetonlu yerleşimi, plan/ekran-ve-marka.md)
   Yukarıdan aşağıya: tabela ~%11, kabin ~%67, kontroller ~%14, alt tuşlar ~%8.
   Tabela, kontroller ve alt tuşlar sabit yüksekliktedir; telefon boyu değişince yalnızca kabin esner.
   ========================================================================== */
:root { --tabela-h: 66px; --kontrol-h: 116px; --alt-h: 62px; }
#oyun { padding: env(safe-area-inset-top) 0 0; }

/* Tabela şeridi */
#tabela-serit { flex: 0 0 var(--tabela-h); display: flex; align-items: center; gap: 10px; padding: 8px 12px 4px; }
.tabela {
  flex: 1; min-width: 0; height: 100%;
  display: flex; align-items: center; gap: 10px; padding: 4px 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, #2b2013, #19120a);
  border: 1px solid var(--tabela-kenar, #5a4626);
  box-shadow: inset 0 0 0 1px rgba(241, 221, 162, 0.06), 0 0 18px rgba(201, 162, 78, 0.12);
}
#tabela-logo { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; background: #fff; flex: 0 0 auto; }
#tabela-logo.gizli { display: none; }
.tabela-yazi { min-width: 0; display: flex; flex-direction: column; line-height: 1.08; }
#tabela-ad {
  font-weight: 700; font-size: 22px; letter-spacing: 2.5px; text-transform: uppercase;
  color: #F1DDA2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 0 10px rgba(241, 221, 162, 0.35);
}
.tabela-yazi small { font-size: 9.5px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--metin-soluk); }
.gostergeler { display: flex; gap: 8px; }
.gosterge { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 36px; color: var(--metin); }
.gosterge b { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.simge-kisi { width: 24px; height: 24px; fill: #3fdc8f; }
.simge-jeton { width: 24px; height: 24px; }

/* Kontroller: arkada panel yok, doğrudan zeminde */
html #oyun #kontroller { flex: 0 0 var(--kontrol-h); display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 20px; }
#joystick { position: relative; width: 112px; height: 112px; flex: 0 0 auto; touch-action: none; cursor: grab; }
.joy-taban {
  position: absolute; left: 50%; top: 62%; width: 70px; height: 34px; transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 35%, #4a3a22, #120d07 72%);
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.7), 0 0 0 3px #4a3b25, 0 0 0 4px #120d07, 0 6px 12px rgba(0, 0, 0, 0.5);
}
.joy-cubuk {
  position: absolute; left: 50%; top: 62%; width: 9px; height: 38px; margin-left: -4.5px;
  transform-origin: 50% 100%; transform: translateY(-100%);
  border-radius: 4px;
  background: linear-gradient(90deg, #8c929c, #eef1f5 45%, #7a808a);
}
.joy-top {
  position: absolute; left: 50%; top: 0; width: 42px; height: 42px; transform: translate(-50%, -62%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffb3a6, #e0321f 45%, #7a0f08 100%);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5), inset 0 -3px 6px rgba(0, 0, 0, 0.35);
}
#joystick.aktif { cursor: grabbing; }
#joystick.kilitli { opacity: 0.45; }

#plaka {
  width: 58px; height: 58px; flex: 0 0 auto; padding: 4px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f6e6b8, #c9a24e 55%, #7a5a1c);
  box-shadow: 0 0 0 2px #2b2013, 0 4px 10px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  pointer-events: none; user-select: none;
}

/* Bırak / Yakala: rengi hiçbir mekânda değişmez. Yakala'da güç tek rengin koyuluğuyla ve kenar halkasıyla görünür. */
html #oyun #ana-buton {
  --guc-oran: 0; --l: 80%;
  position: relative; flex: 0 0 auto; width: 100px; height: 100px; border-radius: 50%; border: 0;
  background: radial-gradient(circle at 40% 30%, #f6e6b8, #c9a24e 50%, #6b4d16);
  color: #1E1710; font: 700 15px var(--font); letter-spacing: 2px; text-transform: uppercase;
  box-shadow: 0 0 0 4px #1E1710, 0 0 0 6px #94702A, 0 10px 24px rgba(0, 0, 0, 0.55);
  animation: none; filter: none; transition: transform 0.08s;
}
html #oyun #ana-buton::before {
  content: ''; position: absolute; inset: -10px; border-radius: 50%;
  background: conic-gradient(#F1DDA2 calc(var(--guc-oran) * 1turn), rgba(241, 221, 162, 0.12) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4.5px));
  opacity: 0; transition: opacity 0.15s;
}
html #oyun #ana-buton.yakala { background: hsl(5 74% var(--l)); color: var(--yazi-rengi, #1E1710); box-shadow: 0 0 0 4px #1E1710, 0 10px 24px rgba(0, 0, 0, 0.55); }
html #oyun #ana-buton.yakala::before, html #oyun #ana-buton.kilit::before { opacity: 1; }
html #oyun #ana-buton.kilit { background: hsl(5 74% var(--l)); color: var(--yazi-rengi, #1E1710); }
html #oyun #ana-buton:active { transform: scale(0.95); }
html #oyun #ana-buton:disabled { opacity: 0.7; }

/* Alt tuşlar: ekran genişliğine eşit aralıklı beş yuvarlak tuş, yazısız simgeler */
#alt-tuslar {
  position: relative; z-index: 16;
  flex: 0 0 calc(var(--alt-h) + env(safe-area-inset-bottom));
  display: flex; justify-content: space-evenly; align-items: flex-start;
  padding: 4px 8px env(safe-area-inset-bottom);
}
#alt-tuslar button {
  position: relative; width: 50px; height: 50px; padding: 0; border-radius: 50%;
  border: 1px solid var(--kenar); background: var(--yuzey); color: var(--metin);
  display: grid; place-items: center;
}
#alt-tuslar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#alt-tuslar svg .dolu { fill: currentColor; }
#alt-tuslar img { width: 32px; height: 32px; }
#alt-tuslar button.secili { border-color: var(--vurgu); background: var(--yuzey-2); color: var(--vurgu-koyu); box-shadow: 0 0 0 2px rgba(201, 162, 78, 0.25); }
#alt-tuslar button.pasif { opacity: 0.35; }
.tus-adi {
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  white-space: nowrap; font-style: normal; font-size: 11px; font-weight: 600;
  background: var(--yuzey); border: 1px solid var(--kenar); color: var(--metin);
  padding: 1px 8px; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
#alt-tuslar.adlar .tus-adi, #alt-tuslar button.ad-goster .tus-adi { opacity: 1; }
#alt-tuslar .nokta { position: absolute; top: 3px; right: 4px; width: 10px; height: 10px; border-radius: 50%; background: #e5484d; box-shadow: 0 0 0 2px #1E1710; }
#alt-tuslar .nokta.gizli { display: none; }

/* Paneller alt tuşların üstünde açılır; alt tuşlar hep görünür */
#panel { bottom: calc(var(--alt-h) + env(safe-area-inset-bottom)); padding-bottom: 0; }
#makine-liste { left: 12px; right: auto; top: auto; bottom: 10px; min-width: 200px; }
#makine-liste .baslik { font-size: 12px; color: var(--metin-soluk); padding: 4px 14px 2px; }

@media (max-height: 700px) {
  :root { --tabela-h: 56px; --kontrol-h: 100px; --alt-h: 56px; }
  #tabela-ad { font-size: 19px; }
  #joystick { transform: scale(0.88); }
  html #oyun #ana-buton { width: 86px; height: 86px; font-size: 13px; }
  #plaka { width: 48px; height: 48px; }
  #alt-tuslar button { width: 44px; height: 44px; }
}

/* ==========================================================================
   Kasa ve Koleksiyon (Jetonlu)
   ========================================================================== */
.sekmeler.tek { background: none; border: 0; padding: 0; }
.panel-baslik { margin: 0; font: 700 20px var(--baslik-font); letter-spacing: 1px; color: var(--metin); }
details.gecmis { margin-top: 18px; }
details.gecmis summary { cursor: pointer; font-weight: 600; color: var(--metin-soluk); padding: 6px 0; }

/* Matbaa harf kasası gibi raf: koyu ahşap çerçeve, küçük gözler */
.raf-ust { font-size: 14px; color: var(--metin-soluk); margin: 4px 0 8px; }
.raf-ust b { color: var(--metin); }
.raf {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px;
  padding: 6px; margin-bottom: 12px; border-radius: 10px;
  background: linear-gradient(180deg, #3a2a16, #24190c);
  box-shadow: inset 0 0 0 2px #5a4626, 0 6px 14px rgba(0, 0, 0, 0.35);
}
.raf.tasan { background: none; box-shadow: none; border: 1px dashed var(--kenar); }
.goz {
  position: relative; aspect-ratio: 1; padding: 2px; border: 0; border-radius: 4px;
  background: linear-gradient(180deg, #120c05, #1e150a);
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.7), inset 0 -1px 0 rgba(201, 162, 78, 0.18);
}
.goz img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.6)); }
.goz.dolu { cursor: pointer; }
.goz.dolu.nadir::after, .goz.dolu.cokNadir::after, .goz.dolu.mekan::after {
  content: ''; position: absolute; right: 3px; bottom: 3px; width: 6px; height: 6px; border-radius: 50%; background: #9b7bff;
}
.goz.dolu.cokNadir::after { background: #ffd75e; }
.goz.dolu.mekan::after { background: #C9A24E; }
.goz.secili { box-shadow: inset 0 0 0 2px var(--vurgu); }

#obje-detay {
  display: flex; gap: 12px; align-items: center; margin: 4px 0 14px; padding: 10px 12px;
  background: var(--yuzey); border: 1px solid var(--kenar); border-radius: 16px;
}
#obje-detay.gizli { display: none; }
#obje-detay img { width: 96px; height: 96px; flex: 0 0 auto; }
#obje-detay .detay-yazi { flex: 1; min-width: 0; }
.detay-dugmeler { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.detay-dugmeler button { width: auto; margin: 0; padding: 7px 12px; font-size: 13px; }

/* ==========================================================================
   Sohbet şeridi ve Yaz (Jetonlu)
   ========================================================================== */
#sohbet-serit {
  flex: 0 0 var(--kontrol-h); display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 12px;
}
#sohbet-serit.gizli, html body.sohbette #oyun #kontroller { display: none; }
#sohbet-serit .emojiler { display: flex; gap: 6px; }
#sohbet-serit .emojiler button {
  width: 50px; height: 50px; padding: 0; border-radius: 50%; font-size: 26px; line-height: 1;
  border: 1px solid var(--kenar); background: var(--yuzey);
}
#sohbet-serit .emojiler button:active { transform: scale(0.9); }
#sohbet-serit .emojiler button:disabled { opacity: 0.5; }
#yaz-ac {
  height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--vurgu);
  background: transparent; color: var(--vurgu); font: 600 14px var(--font);
}
#yaz-ac.gizli { display: none; }
html body.yaziyor #oyun #tabela-serit, html body.yaziyor #oyun #kontroller, html body.yaziyor #oyun #sohbet-serit, html body.yaziyor #oyun #alt-tuslar { display: none; }
body.yaziyor #mesaj-formu { bottom: 6px; }
.balon.emoji { font-size: 28px; line-height: 1.1; padding: 4px 10px; }
.balon.emoji b { font-size: 11px; }
#alt-tuslar button.pasif { opacity: 0.35; }
@media (max-width: 360px) {
  #sohbet-serit .emojiler button { width: 42px; height: 42px; font-size: 22px; }
}

/* ==========================================================================
   Satma, birleştirme, dolu raf ve sadakat yapbozu (Jetonlu)
   ========================================================================== */
.kazanma-dugmeler.raf-secenek { margin-top: 8px; flex-wrap: wrap; }
.kazanma-dugmeler.raf-secenek:not(:has(button:not(.gizli))) { display: none; }
.kucuk-dugme.gizli { display: none; }
#kazanma-sat { border-color: var(--vurgu); color: var(--vurgu); }
#obje-detay button.uyari { border-color: #d9734e; color: #f0a283; }
#obje-detay button:disabled { opacity: 0.5; }
.sadakat { margin: 10px 0 8px; padding: 10px 12px; border-radius: 14px; background: var(--yuzey-2); border: 1px solid var(--kenar); }
.sadakat-ust { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; margin-bottom: 8px; }
.sadakat-ust span { color: var(--vurgu); font-weight: 700; }
.sadakat-parcalar { display: grid; gap: 4px; margin-bottom: 6px; }
.sadakat-parcalar i {
  aspect-ratio: 1; border-radius: 6px; border: 1px dashed var(--kenar); background: transparent;
}
.sadakat-parcalar i.dolu { border: none; background: var(--cubuk); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15); }
