:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0d1117;
  color: #f7fafc;
}

* {
  box-sizing: border-box;
}

html,
body,
.uygulama {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
}

button {
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.oyun-alani {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  padding: clamp(10px, 2vw, 24px);
  background:
    linear-gradient(145deg, rgba(247, 192, 81, 0.14), transparent 34%),
    radial-gradient(circle at 76% 24%, rgba(91, 191, 255, 0.2), transparent 28%),
    #0d1117;
}

.oyun-cercevesi {
  position: relative;
  width: min(100%, calc(100dvh * 1.5 - 34px));
  max-width: 1180px;
  aspect-ratio: 3 / 2;
}

.oyun-katmani {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.42);
}

.oyun-katmani canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.tema-paneli,
.sonuc-paneli {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 16px;
  padding: 24px;
  background:
    linear-gradient(125deg, rgba(246, 196, 69, 0.16), transparent 28%),
    linear-gradient(235deg, rgba(42, 167, 255, 0.16), transparent 32%),
    rgba(8, 12, 18, 0.76);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.tema-paneli h1,
.sonuc-paneli h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0;
}

.acilis-sahnesi {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.acilis-sahnesi::before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    repeating-linear-gradient(130deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 34px),
    linear-gradient(180deg, rgba(8, 12, 18, 0.08), rgba(8, 12, 18, 0.38));
  animation: acilisTaramasi 8s linear infinite;
}

.acilis-sahnesi span {
  position: absolute;
  width: 190px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: linear-gradient(90deg, transparent, rgba(246, 196, 69, 0.26), transparent);
  transform: rotate(-18deg);
  animation: yolParcasi 5.8s ease-in-out infinite;
}

.acilis-sahnesi span:nth-child(1) {
  top: 18%;
  left: 8%;
}

.acilis-sahnesi span:nth-child(2) {
  right: 9%;
  bottom: 21%;
  animation-delay: -1.8s;
}

.acilis-sahnesi span:nth-child(3) {
  left: 38%;
  bottom: 12%;
  animation-delay: -3.4s;
}

.acilis-basligi {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
  animation: acilisYuksel 560ms ease-out both;
}

.ust-yazi {
  margin: 0;
  color: #f6c445;
  font-weight: 800;
  text-transform: uppercase;
}

.tema-secimleri {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 220px));
  gap: 12px;
  width: min(100%, 720px);
}

.giris-formu {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  width: min(100%, 720px);
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.giris-formu label {
  display: grid;
  gap: 5px;
  min-width: 130px;
}

.giris-formu span,
.giris-formu strong {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
}

.giris-formu input {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(9, 13, 20, 0.78);
  color: #f7fafc;
  font: inherit;
  outline: none;
  padding: 8px 10px;
}

.giris-formu input:focus {
  border-color: #f6c445;
}

.giris-formu button {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 8px;
  background: #f6c445;
  color: #151515;
  font-weight: 900;
}

.tutundurma-paneli {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  width: min(100%, 720px);
}

.tutundurma-paneli span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.84rem;
  font-weight: 900;
}

.tema-dugmesi {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 12px;
  min-height: 126px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
  animation: acilisYuksel 620ms ease-out both;
}

.tema-dugmesi:hover,
.tema-dugmesi:focus-visible,
.tema-dugmesi.secili {
  transform: translateY(-3px);
  border-color: var(--tema-renk);
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
  outline: none;
}

.tema-dugmesi img {
  grid-row: 1 / span 2;
  width: 42px;
  height: 42px;
}

.tema-dugmesi strong {
  font-size: 1.05rem;
}

.tema-dugmesi span {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.35;
}

.tema-dugmesi small,
.tema-dugmesi em {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-style: normal;
  line-height: 1.25;
}

.tema-dugmesi em {
  color: var(--tema-renk);
  font-weight: 800;
}

.bolum-haritasi {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  width: min(100%, 860px);
  max-height: min(46vh, 420px);
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(8, 12, 18, 0.58);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 18px 50px rgba(0, 0, 0, 0.26);
  overflow: auto;
  scrollbar-width: thin;
}

.bolum-haritasi-baslik {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 900;
}

.bolum-haritasi-baslik strong {
  color: #f7fafc;
  font-size: 1rem;
}

.bolum-haritasi-baslik em {
  color: #f6c445;
  font-style: normal;
}

.bolum-yolu {
  position: relative;
  display: grid;
  grid-template-columns: repeat(10, minmax(56px, 1fr));
  gap: 14px 12px;
  min-width: 680px;
  padding: 18px 4px 24px;
}

.bolum-yolu::before {
  content: "";
  position: absolute;
  inset: 30px 30px;
  border-top: 6px solid rgba(255, 255, 255, 0.08);
  border-bottom: 6px solid rgba(255, 255, 255, 0.04);
  transform: skewY(-4deg);
  pointer-events: none;
}

.bolum-dugmesi {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
  width: 56px;
  height: 56px;
  padding: 5px;
  border: 2px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background:
    linear-gradient(145deg, var(--tema-renk), #f6c445 72%),
    #151515;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.32);
  color: #101318;
  transform: translateY(var(--bolum-sapma));
  transition: transform 160ms ease, opacity 160ms ease, filter 160ms ease;
  animation: bolumBelirme 520ms ease-out both;
}

.bolum-dugmesi:nth-child(3n) {
  animation-delay: 80ms;
}

.bolum-dugmesi:nth-child(3n + 1) {
  animation-delay: 150ms;
}

.bolum-dugmesi:hover,
.bolum-dugmesi:focus-visible {
  transform: translateY(calc(var(--bolum-sapma) - 4px)) scale(1.04);
  outline: none;
}

.bolum-dugmesi strong {
  font-size: 1.02rem;
  line-height: 1;
}

.bolum-dugmesi em {
  color: rgba(16, 19, 24, 0.74);
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 1000;
  line-height: 1;
}

.bolum-yildizlari {
  display: flex;
  gap: 1px;
  min-height: 10px;
  color: rgba(16, 19, 24, 0.28);
  font-size: 0.58rem;
  line-height: 1;
}

.bolum-yildizlari .dolu,
.sonuc-yildizlari .dolu {
  color: #ffe071;
  text-shadow: 0 0 12px rgba(255, 224, 113, 0.72);
}

.bolum-dugmesi.tamam {
  border-color: rgba(255, 224, 113, 0.82);
}

.bolum-dugmesi.aktif {
  animation: bolumNabzi 1.4s ease-in-out infinite;
}

.bolum-dugmesi.kilitli {
  background: linear-gradient(145deg, #343b46, #10151c);
  color: rgba(255, 255, 255, 0.62);
  opacity: 0.74;
  filter: saturate(0.4);
  cursor: default;
}

.bolum-dugmesi.kilitli em {
  color: rgba(255, 255, 255, 0.54);
}

.ust-bilgi {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: calc(100% - 24px);
  padding: 10px 12px 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(8, 12, 18, 0.66);
  backdrop-filter: blur(10px);
}

.ust-bilgi div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
}

.ust-bilgi span {
  color: rgba(255, 255, 255, 0.76);
  white-space: nowrap;
}

.ust-bilgi strong {
  font-size: 1.16rem;
}

#yeniden-baslat {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 1.4rem;
}

.guc-paneli {
  position: absolute;
  left: 50%;
  bottom: 14px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
  z-index: 7;
}

.guc-paneli button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 62px;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(8, 12, 18, 0.68);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  font-size: 1rem;
  font-weight: 1000;
  backdrop-filter: blur(10px);
}

.guc-paneli button span {
  min-width: 18px;
  color: #f6c445;
  font-size: 0.84rem;
}

.guc-paneli button:disabled {
  opacity: 0.42;
  cursor: default;
}

.guc-paneli button.aktif {
  border-color: #f6c445;
  background: rgba(246, 196, 69, 0.2);
}

.mobil-kontroller {
  position: absolute;
  inset: auto 12px 12px;
  display: none;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  pointer-events: none;
}

.sol-kontrol,
.joystick-kontrol,
.sag-kontrol {
  display: grid;
  gap: 8px;
  pointer-events: auto;
}

.sol-kontrol {
  grid-template-columns: repeat(3, 48px);
  grid-template-rows: repeat(3, 48px);
}

.sol-kontrol button,
.sag-kontrol button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(8, 12, 18, 0.68);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  font-size: 1.35rem;
  font-weight: 900;
  backdrop-filter: blur(10px);
  touch-action: none;
}

.sol-kontrol button[data-tus="ArrowUp"] {
  grid-column: 2;
  grid-row: 1;
}

.sol-kontrol button[data-tus="ArrowLeft"] {
  grid-column: 1;
  grid-row: 2;
}

.sol-kontrol button[data-tus="ArrowDown"] {
  grid-column: 2;
  grid-row: 3;
}

.sol-kontrol button[data-tus="ArrowRight"] {
  grid-column: 3;
  grid-row: 2;
}

.sag-kontrol {
  grid-template-columns: repeat(2, 54px);
}

.sag-kontrol button {
  width: 54px;
  height: 54px;
}

.joystick-kontrol {
  position: relative;
  place-items: center;
  width: 136px;
  height: 136px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(246, 196, 69, 0.14), transparent 34%),
    rgba(8, 12, 18, 0.56);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(10px);
  touch-action: none;
  user-select: none;
}

.joystick-iz {
  position: absolute;
  inset: 22px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: inherit;
}

.joystick-topuzu {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: inherit;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.82), transparent 18%),
    linear-gradient(145deg, #f6c445, #2aa7ff);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.36);
  transform: translate(-50%, -50%);
  transition: transform 90ms ease;
}

.joystick-kontrol:active .joystick-topuzu {
  transition: none;
}

.sol-kontrol button:active,
.sag-kontrol button:active {
  border-color: #f6c445;
  transform: translateY(1px);
}

.sonuc-paneli {
  background:
    linear-gradient(145deg, rgba(246, 196, 69, 0.12), transparent 32%),
    rgba(8, 12, 18, 0.82);
}

.sonuc-paneli.kazandi {
  animation: sonucGiris 420ms ease-out both;
}

.sonuc-paneli.kaybetti {
  background:
    linear-gradient(145deg, rgba(255, 82, 82, 0.12), transparent 32%),
    rgba(8, 12, 18, 0.84);
}

.sonuc-paneli p {
  max-width: 560px;
  margin: -8px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  text-align: center;
}

.sonuc-paneli button {
  min-width: 132px;
  padding: 12px 18px;
  border-radius: 8px;
  background: #f6c445;
  color: #151515;
  font-weight: 800;
}

.sonuc-yildizlari {
  display: flex;
  gap: 10px;
  min-height: 66px;
}

.sonuc-yildizlari span {
  display: inline-grid;
  place-items: center;
  width: clamp(44px, 7vw, 66px);
  height: clamp(44px, 7vw, 66px);
  color: rgba(255, 255, 255, 0.16);
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1;
  transform: scale(0.74) rotate(-14deg);
  animation: yildizPatlama 620ms cubic-bezier(0.2, 1.45, 0.34, 1) both;
}

.sonuc-yildizlari span:nth-child(2) {
  animation-delay: 140ms;
}

.sonuc-yildizlari span:nth-child(3) {
  animation-delay: 280ms;
}

.sonuc-yildizlari.bos span {
  animation: none;
  transform: none;
}

.gecis-paneli {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(8, 12, 18, 0.96), rgba(8, 12, 18, 0.74)),
    linear-gradient(40deg, rgba(246, 196, 69, 0.16), transparent 42%);
}

.gecis-isiklari {
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 18px),
    linear-gradient(145deg, transparent, rgba(246, 196, 69, 0.22));
  transform: skewX(-10deg);
  animation: gecisTaramasi 900ms ease-in-out infinite alternate;
}

.gecis-paneli strong {
  position: relative;
  color: #f7fafc;
  font-size: clamp(2.8rem, 9vw, 7rem);
  line-height: 0.94;
  text-shadow: 0 0 26px rgba(246, 196, 69, 0.46);
}

.gecis-paneli span {
  position: relative;
  color: #f6c445;
  font-size: clamp(0.9rem, 2.3vw, 1.25rem);
  font-weight: 900;
}

.gecis-giris strong {
  animation: gecisBaslik 540ms cubic-bezier(0.2, 1.45, 0.34, 1) both;
}

.gecis-cikis {
  animation: gecisCikis 260ms ease-in both;
}

.gizli {
  display: none !important;
}

@keyframes acilisTaramasi {
  0% {
    background-position: 0 0, 0 0;
  }

  100% {
    background-position: 220px 160px, 0 0;
  }
}

@keyframes yolParcasi {
  0%,
  100% {
    opacity: 0.32;
    translate: 0 0;
  }

  50% {
    opacity: 0.78;
    translate: 18px -10px;
  }
}

@keyframes acilisYuksel {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bolumBelirme {
  from {
    opacity: 0;
    scale: 0.82;
  }

  to {
    opacity: 1;
    scale: 1;
  }
}

@keyframes bolumNabzi {
  0%,
  100% {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.32), 0 0 0 0 rgba(246, 196, 69, 0.36);
  }

  50% {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.32), 0 0 0 12px transparent;
  }
}

@keyframes sonucGiris {
  from {
    opacity: 0;
    transform: scale(0.98);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes yildizPatlama {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.3) rotate(-22deg);
  }

  70% {
    opacity: 1;
    transform: translateY(-5px) scale(1.14) rotate(6deg);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0);
  }
}

@keyframes gecisTaramasi {
  from {
    background-position: 0 0, 0 0;
    opacity: 0.56;
  }

  to {
    background-position: 60px 0, 0 0;
    opacity: 0.9;
  }
}

@keyframes gecisBaslik {
  from {
    opacity: 0;
    transform: scale(0.72);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes gecisCikis {
  to {
    opacity: 0;
    transform: scale(1.04);
  }
}

@media (max-width: 760px), (pointer: coarse) and (orientation: portrait) {
  html,
  body,
  .uygulama {
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
  }

  .oyun-alani {
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    height: 100dvh;
    min-height: 100dvh;
    padding:
      max(8px, env(safe-area-inset-top))
      max(8px, env(safe-area-inset-right))
      max(8px, env(safe-area-inset-bottom))
      max(8px, env(safe-area-inset-left));
  }

  .oyun-cercevesi {
    --dokunus-boyutu: clamp(38px, 11vw, 48px);
    --aksiyon-boyutu: clamp(42px, 12vw, 54px);
    --joystick-boyutu: clamp(108px, 32vw, 136px);
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr);
    gap: 8px;
    width: 100%;
    max-width: none;
    height: 100%;
    aspect-ratio: auto;
  }

  .oyun-katmani {
    grid-row: 2;
    justify-self: center;
    align-self: start;
    width: min(100%, calc((100dvh - 244px) * 1.5));
    height: auto;
    aspect-ratio: 3 / 2;
    min-height: 0;
  }

  .tema-paneli {
    align-content: start;
    gap: 10px;
    padding:
      max(10px, env(safe-area-inset-top))
      max(10px, env(safe-area-inset-right))
      max(12px, env(safe-area-inset-bottom))
      max(10px, env(safe-area-inset-left));
    overflow-y: auto;
  }

  .tema-paneli h1 {
    font-size: clamp(2rem, 10vw, 3.1rem);
  }

  .acilis-basligi {
    gap: 3px;
  }

  .acilis-sahnesi::before {
    inset: 5%;
  }

  .acilis-sahnesi span {
    width: 132px;
    height: 18px;
  }

  .tema-secimleri {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .giris-formu {
    width: 100%;
    padding: 8px;
    align-items: stretch;
  }

  .giris-formu label {
    min-width: 112px;
    flex: 1 1 112px;
  }

  .tema-dugmesi {
    grid-template-columns: 1fr;
    min-height: 94px;
    gap: 5px;
    padding: 9px;
  }

  .tema-dugmesi img {
    grid-row: auto;
    width: 30px;
    height: 30px;
  }

  .tema-dugmesi strong {
    font-size: clamp(0.72rem, 3vw, 0.9rem);
  }

  .tema-dugmesi span {
    display: none;
  }

  .tema-dugmesi small,
  .tema-dugmesi em {
    font-size: clamp(0.58rem, 2.4vw, 0.72rem);
  }

  .bolum-haritasi {
    width: 100%;
    max-height: min(45dvh, 370px);
    padding: 10px;
  }

  .bolum-haritasi-baslik {
    font-size: 0.78rem;
  }

  .bolum-yolu {
    grid-template-columns: repeat(5, minmax(48px, 1fr));
    gap: 12px 7px;
    min-width: 0;
    padding: 10px 2px 8px;
  }

  .bolum-yolu::before {
    inset: 22px 18px;
    border-top-width: 4px;
    border-bottom-width: 4px;
  }

  .bolum-dugmesi {
    width: clamp(48px, 13vw, 56px);
    height: clamp(48px, 13vw, 56px);
    transform: translateY(0);
  }

  .bolum-dugmesi:hover,
  .bolum-dugmesi:focus-visible {
    transform: translateY(-2px) scale(1.03);
  }

  .bolum-dugmesi strong {
    font-size: 0.95rem;
  }

  .bolum-dugmesi em,
  .bolum-yildizlari {
    font-size: 0.5rem;
  }

  .guc-paneli {
    position: static;
    grid-row: 3;
    justify-self: center;
    align-self: center;
    transform: none;
    z-index: 2;
  }

  .guc-paneli button {
    min-width: clamp(52px, 16vw, 64px);
    min-height: 38px;
    padding: 0 10px;
    font-size: 0.92rem;
  }

  .ust-bilgi {
    position: static;
    grid-row: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    width: 100%;
    padding: 6px 8px;
    font-size: clamp(0.68rem, 2.7vw, 0.82rem);
    line-height: 1.1;
    z-index: 2;
  }

  .ust-bilgi,
  .ust-bilgi div {
    gap: 4px 8px;
  }

  .ust-bilgi div {
    align-items: center;
  }

  .ust-bilgi span,
  .ust-bilgi strong {
    font-size: inherit;
  }

  #yeniden-baslat {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 34px;
    height: 34px;
    font-size: 1.18rem;
  }

  .mobil-kontroller:not(.gizli) {
    display: flex;
  }

  .mobil-kontroller {
    position: static;
    grid-row: 4;
    justify-content: space-between;
    align-items: center;
    align-self: end;
    width: 100%;
    z-index: 2;
  }

  .joystick-kontrol {
    width: var(--joystick-boyutu);
    height: var(--joystick-boyutu);
  }

  .joystick-topuzu {
    width: clamp(44px, 13vw, 56px);
    height: clamp(44px, 13vw, 56px);
  }

  .sol-kontrol {
    grid-template-columns: repeat(3, var(--dokunus-boyutu));
    grid-template-rows: repeat(3, var(--dokunus-boyutu));
    gap: 5px;
  }

  .sol-kontrol button,
  .sag-kontrol button {
    width: var(--dokunus-boyutu);
    height: var(--dokunus-boyutu);
    font-size: clamp(1.05rem, 5vw, 1.35rem);
  }

  .sag-kontrol {
    grid-template-columns: repeat(2, var(--aksiyon-boyutu));
    gap: 8px;
  }

  .sag-kontrol button {
    width: var(--aksiyon-boyutu);
    height: var(--aksiyon-boyutu);
  }

  .sonuc-yildizlari {
    min-height: 52px;
  }

  .gecis-isiklari {
    inset: 12%;
  }
}

@media (pointer: coarse) and (min-width: 761px) and (orientation: landscape) {
  .mobil-kontroller:not(.gizli) {
    display: flex;
  }

  .mobil-kontroller {
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 8;
  }

  .guc-paneli {
    position: fixed;
    bottom: 92px;
    z-index: 9;
  }
}
