html,
body {
  min-height: 100%;
  margin: 0;
  background: #191b1e;
}

.canak-oyun-sayfasi {
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: 62px 1fr;
}

.canak-oyun-sayfasi header {
  display: flex;
  align-items: center;
  padding: 0 24px;
  background: #152338;
  border-bottom: 1px solid #43cdbd44;
}

.canak-oyun-sayfasi header a {
  color: #d6d8da;
  text-decoration: none;
  font-weight: bold;
}

.canak-oyun-sayfasi header .canak-oyun-baslik {
  margin: auto;
  color: #43cdbd;
  font-family: Vurgu, Arial, sans-serif;
  letter-spacing: 1px;
}

.canak-oyun-sayfasi iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #152338;
}

[hidden] {
  display: none !important;
}

.canak-masa-kurulum {
  min-height: 0;
  overflow: auto;
  display: grid;
  align-items: center;
  padding: clamp(18px, 4vw, 42px);
  background:
    radial-gradient(circle at 16% 12%, #43cdbd18, transparent 38%),
    linear-gradient(145deg, #202a32, #151c24);
}

.canak-kurulum-duzeni {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 20px;
  width: min(1050px, 100%);
  margin: auto;
}

.canak-kurulum-karti,
.canak-liderlik-karti {
  min-width: 0;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid #43cdbd38;
  border-radius: 22px;
  background: linear-gradient(145deg, #30363c, #22272d);
  box-shadow: 0 18px 48px #0005;
}

.canak-kurulum-etiketi {
  margin: 0 0 8px;
  color: #43cdbd;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.7px;
}

.canak-kurulum-karti h2,
.canak-liderlik-baslik h2 {
  margin: 0;
  color: #f4f0e8;
  font-family: Vurgu, Arial, sans-serif;
}

.canak-kurulum-karti h2 {
  font-size: clamp(28px, 4vw, 38px);
}

.canak-kurulum-aciklama {
  margin: 8px 0 24px;
  color: #c5c8cc;
  line-height: 1.55;
}

.canak-kurulum-karti label {
  display: block;
  margin: 16px 0 7px;
  color: #e6e8e9;
  font-size: 14px;
  font-weight: 800;
}

#oyuncu-adi {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  padding: 0 14px;
  border: 1px solid #66727c;
  border-radius: 12px;
  outline: none;
  color: #fff;
  background: #1d252c;
  font: inherit;
}

#oyuncu-adi:focus {
  border-color: #43cdbd;
  box-shadow: 0 0 0 3px #43cdbd22;
}

.canak-bot-seviyesi {
  min-width: 0;
  margin: 16px 0 0;
  padding: 0;
  border: 0;
}

.canak-bot-seviyesi legend {
  margin-bottom: 7px;
  color: #e6e8e9;
  font-size: 14px;
  font-weight: 800;
}

.canak-seviye-kartlari {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.canak-kurulum-karti .canak-seviye-secim {
  position: relative;
  min-width: 0;
  margin: 0;
  color: inherit;
  cursor: pointer;
}

.canak-seviye-secim input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.canak-seviye-karti {
  display: flex;
  min-height: 62px;
  box-sizing: border-box;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px;
  border: 1px solid #66727c;
  border-radius: 12px;
  color: #d7dcdf;
  background: #1d252c;
  text-align: center;
  transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
}

.canak-seviye-karti strong {
  font-size: clamp(10px, 2.8vw, 13px);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.canak-seviye-karti small {
  color: #aeb8bf;
  font-size: 10px;
  font-weight: 600;
}

.canak-seviye-secim input:checked + .canak-seviye-karti {
  border-color: #43cdbd;
  color: #fff;
  background: linear-gradient(145deg, #176b67, #1d383d);
  box-shadow: inset 0 0 0 1px #43cdbd55, 0 0 16px #43cdbd18;
}

.canak-seviye-secim input:checked + .canak-seviye-karti small {
  color: #baf5eb;
}

.canak-seviye-secim input:focus-visible + .canak-seviye-karti {
  outline: 2px solid #b9fff5;
  outline-offset: 2px;
}

.canak-seviye-secim:hover .canak-seviye-karti {
  border-color: #43cdbd99;
  transform: translateY(-1px);
}

.canak-kayit-bilgisi,
.canak-liderlik-dipnot {
  margin: 10px 0 0;
  color: #aeb8bf;
  font-size: 12px;
  line-height: 1.5;
}

.canak-form-mesaji {
  min-height: 20px;
  margin: 12px 0 0;
  color: #ffc9a9;
  font-size: 13px;
  line-height: 1.45;
}

.canak-form-mesaji:empty {
  display: none;
}

.canak-isim-onerileri {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.canak-isim-onerileri:empty {
  display: none;
}

.canak-isim-onerileri button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #43cdbd66;
  border-radius: 9px;
  color: #baf5eb;
  background: #43cdbd12;
  font-weight: 700;
  cursor: pointer;
}

.canak-oyuna-basla,
.canak-cevrimdisi-basla {
  width: 100%;
  min-height: 50px;
  margin-top: 16px;
  border: 1px solid #43cdbd;
  border-radius: 13px;
  color: #172126;
  background: #43cdbd;
  font-weight: 900;
  letter-spacing: .5px;
  cursor: pointer;
}

.canak-oyuna-basla:disabled,
.canak-cevrimdisi-basla:disabled {
  opacity: .6;
  cursor: wait;
}

.canak-cevrimdisi-basla {
  border-color: #d3a27c;
  color: #ffe2cc;
  background: #523c30;
  font-size: 12px;
}

.canak-liderlik-karti {
  display: flex;
  flex-direction: column;
}

.canak-liderlik-baslik {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.canak-liderlik-baslik h2 {
  font-size: clamp(23px, 3vw, 30px);
}

.canak-liderlik-rozet {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #f1c96a66;
  border-radius: 14px;
  color: #f1c96a;
  background: #f1c96a12;
  font-size: 22px;
}

.canak-liderlik-listesi {
  display: grid;
  gap: 8px;
  max-height: 360px;
  margin: 0;
  padding: 0 4px 0 0;
  overflow-y: auto;
  list-style: none;
}

.canak-liderlik-satiri {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #ffffff0d;
  border-radius: 11px;
  color: #e4e6e8;
  background: #151a20a8;
}

.canak-liderlik-sirasi {
  color: #43cdbd;
  font-weight: 900;
}

.canak-liderlik-adi {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.canak-liderlik-puani {
  color: #f1c96a;
  font-size: 13px;
  font-weight: 900;
}

.canak-liderlik-satiri-ben {
  border-color: #43cdbd;
  background: linear-gradient(135deg, #176b67, #1d3d42);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px #43cdbd55, 0 4px 14px #0005;
}

.canak-liderlik-satiri-ben .canak-liderlik-sirasi {
  color: #fff2a8;
}

.canak-liderlik-satiri-ben .canak-liderlik-puani {
  color: #ffe285;
}

.canak-liderlik-ben-etiketi {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #43cdbd;
  color: #072624;
  font-size: 10px;
  font-weight: 900;
  vertical-align: middle;
}

.canak-liderlik-mesaji {
  margin: 12px 0 0;
  color: #b4bdc3;
  font-size: 13px;
}

.canak-liderlik-mesaji:empty {
  display: none;
}

.canak-liderlik-dipnot {
  margin-top: auto;
  padding-top: 14px;
}

.canak-yukleniyor {
  position: fixed;
  inset: 62px 0 0;
  display: grid;
  place-items: center;
  color: #43cdbd;
  pointer-events: none;
}

.canak-yatay-uyarisi {
  display: none;
}

.canak-oyna-seo {
  padding: 72px 24px 84px;
  color: #d9dbde;
  background:
    radial-gradient(circle at 15% 10%, #43cdbd12, transparent 32%),
    linear-gradient(180deg, #202226 0%, #16181b 100%);
  border-top: 1px solid #43cdbd40;
}

.canak-oyna-seo-icerik {
  width: min(1060px, 100%);
  margin: 0 auto;
}

.canak-oyna-seo-etiket {
  margin: 0 0 10px;
  color: #43cdbd;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.8px;
}

.canak-oyna-seo h1,
.canak-oyna-seo h2,
.canak-oyna-seo h3 {
  color: #f4f0e8;
  font-family: Vurgu, Arial, sans-serif;
}

.canak-oyna-seo h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.08;
}

.canak-oyna-seo-giris {
  max-width: 850px;
  margin: 22px 0 0;
  color: #c7c9cd;
  font-size: 18px;
  line-height: 1.75;
}

.canak-oyna-seo-kartlar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.canak-oyna-seo-kart {
  padding: 24px;
  border: 1px solid #ffffff12;
  border-radius: 18px;
  background: linear-gradient(145deg, #303338, #25282c);
  box-shadow: 0 14px 34px #0004;
}

.canak-oyna-seo-kart h2 {
  margin: 0 0 12px;
  color: #43cdbd;
  font-size: 19px;
}

.canak-oyna-seo-kart p {
  margin: 0;
  color: #c5c8cc;
  line-height: 1.65;
}

.canak-oyna-seo-baglanti {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.canak-oyna-seo-baglanti a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #43cdbd66;
  border-radius: 12px;
  color: #43cdbd;
  background: #43cdbd0d;
  font-weight: 800;
  text-decoration: none;
}

.canak-oyna-seo-baglanti a:first-child {
  color: #152338;
  background: #43cdbd;
}

.canak-oyna-seo-baglanti a:hover,
.canak-oyna-seo-baglanti a:focus-visible {
  border-color: #b9fff5;
  transform: translateY(-1px);
}

.canak-oyna-seo-sorular {
  margin-top: 54px;
}

.canak-oyna-seo-sorular h2 {
  margin: 0 0 18px;
  font-size: clamp(24px, 3vw, 34px);
}

.canak-oyna-seo-sorular details {
  margin-top: 10px;
  padding: 18px 20px;
  border: 1px solid #ffffff14;
  border-radius: 14px;
  background: #26292d;
}

.canak-oyna-seo-sorular summary {
  color: #f0e8da;
  font-weight: 800;
  cursor: pointer;
}

.canak-oyna-seo-sorular p {
  margin: 12px 0 0;
  color: #c5c8cc;
  line-height: 1.65;
}

.canak-cikis-onayi[hidden] {
  display: none;
}

.canak-cikis-onayi {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: #090a0ccc;
  backdrop-filter: blur(6px);
}

.canak-cikis-karti {
  width: min(430px, calc(100vw - 40px));
  box-sizing: border-box;
  padding: 24px;
  border: 1px solid #43cdbd88;
  border-radius: 22px;
  background: linear-gradient(145deg, #4b5057, #24272b);
  box-shadow: 0 24px 70px #000c;
  color: #fff;
  text-align: center;
}

.canak-cikis-karti h2 {
  margin: 0 0 10px;
  color: #43cdbd;
  font: 700 22px Vurgu, Arial, sans-serif;
}

.canak-cikis-karti p {
  margin: 0;
  color: #d6d8dc;
  line-height: 1.55;
}

.canak-cikis-dugmeleri {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.canak-cikis-dugmeleri button {
  flex: 1;
  min-height: 44px;
  border: 1px solid #747980;
  border-radius: 12px;
  color: #fff;
  background: #393d42;
  font-weight: 800;
  cursor: pointer;
}

.canak-cikis-dugmeleri .canak-cikisi-onayla {
  border-color: #a5eee4;
  color: #282a2e;
  background: #43cdbd;
}

@media (max-width: 780px) {
  .canak-oyun-sayfasi header {
    padding: 0 12px;
  }

  .canak-oyun-sayfasi header .canak-oyun-baslik {
    font-size: 13px;
    letter-spacing: 0;
  }

  .canak-oyun-sayfasi header a {
    font-size: 13px;
  }

  .canak-oyna-seo {
    padding: 50px 18px 64px;
  }

  .canak-oyna-seo-kartlar {
    grid-template-columns: 1fr;
  }

  .canak-masa-kurulum {
    align-items: start;
    padding: 18px 14px;
  }

  .canak-kurulum-duzeni {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .canak-kurulum-karti,
  .canak-liderlik-karti {
    padding: 22px;
    border-radius: 18px;
  }

  .canak-oyna-seo-giris {
    font-size: 16px;
  }
}

@media (orientation: portrait) and (max-width: 900px) {
  .canak-yatay-uyarisi {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 28px;
    color: #f4f0e8;
    background:
      radial-gradient(circle at 50% 42%, #43cdbd22, transparent 34%),
      #191b1ef5;
    text-align: center;
  }

  body:not(.canak-oyun-basladi) .canak-yatay-uyarisi {
    display: none;
  }

  .canak-yatay-uyarisi-simgesi {
    display: grid;
    width: 78px;
    height: 48px;
    place-items: center;
    margin-bottom: 8px;
    border: 3px solid #43cdbd;
    border-radius: 10px;
    color: #43cdbd;
    font-size: 32px;
    line-height: 1;
    transform: rotate(90deg);
    box-shadow: 0 12px 30px #0008;
  }

  .canak-yatay-uyarisi strong {
    color: #43cdbd;
    font: 700 24px Vurgu, Arial, sans-serif;
  }

  .canak-yatay-uyarisi span {
    max-width: 300px;
    color: #d2d4d7;
    line-height: 1.55;
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  .canak-oyun-sayfasi {
    grid-template-rows: 42px 1fr;
  }

  .canak-oyun-sayfasi header {
    padding: 0 12px;
  }

  .canak-oyun-sayfasi header a,
  .canak-oyun-sayfasi header .canak-oyun-baslik {
    font-size: 12px;
  }

  .canak-yukleniyor {
    inset: 42px 0 0;
  }
}

.canak-cip-kutusu {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #f4c65a55;
  border-radius: 12px;
  background: linear-gradient(145deg, #272113, #181c20);
  box-shadow: inset 0 1px 0 #ffe6a026, 0 6px 16px #0004;
  color: #fff6dc;
}

.canak-cip-kutusu-ust {
  justify-self: end;
  padding: 4px 10px;
  font-size: 12px;
}

.canak-ust-oyun-kutulari {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
}

.canak-ust-oyun-kutulari[hidden] {
  display: none;
}

.canak-ust-odul-kutusu {
  border-color: #43cdbd55;
  background: linear-gradient(145deg, #102a29, #151c20);
}

.canak-ust-odul-kutusu .canak-cip-etiket {
  color: #7bf2c8;
}

.canak-ust-canak-kutusu {
  border-color: #ff9f4366;
  background: linear-gradient(145deg, #2d1b12, #1b1719);
}

.canak-ust-canak-kutusu .canak-cip-etiket {
  color: #ffb86c;
}

.canak-ust-rozet-ikon {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: #ffffff14;
  color: #ffe285;
  font-size: 11px;
  font-weight: 900;
}

.canak-cip-kutusu-kart {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 14px;
  padding: 10px 14px;
  gap: 12px;
}

.canak-cip-ikon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  flex-shrink: 0;
  border: 2px dashed #fff0b8;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffd875, #d48c1c);
  box-shadow: 0 2px 6px #0006;
  color: #4b2d00;
  font-size: 11px;
  font-weight: 900;
}

.canak-cip-kutusu-ust .canak-cip-ikon {
  width: 20px;
  height: 20px;
  font-size: 10px;
}

.canak-cip-metinler {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.canak-cip-etiket {
  color: #e6c675;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.canak-cip-deger {
  color: #fff8e1;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .02em;
}

.canak-cip-kutusu-ust .canak-cip-deger {
  font-size: 13px;
}
