html, body { margin: 0; height: 100%; overflow: hidden; background: #bfe6ff; font-family: "Baloo 2", system-ui, sans-serif; }
canvas { display: block; }
#sahne { position: fixed; inset: 0; }
#kelime { position: fixed; left: 50%; top: 4%; transform: translateX(-50%); transform-origin: 50% 0; pointer-events: none; visibility: hidden; }
#kelime svg { display: block; height: clamp(80px, 21vh, 170px); width: auto; max-width: 92vw; filter: drop-shadow(0 4px 0 rgba(60, 90, 140, .22)); }
/* free play (?mod=oyun): bottom bar — Geri al | a n e t i l | Temizle; on a narrow screen the letters take the first line */
#oyun { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .62); border-radius: 26px 26px 0 0;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 -4px 18px rgba(60, 90, 140, .16);
  user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
#oyun[hidden] { display: none; }
#oyun button { border: 0; cursor: pointer; touch-action: manipulation; font: 800 21px "Baloo 2", system-ui, sans-serif; transition: transform .08s; }
#oyun button:active { transform: translateY(3px) scale(.94); }
#oyun button:focus-visible { outline: 4px solid #234; outline-offset: 2px; }
#oyun .harf-dugmeler { display: flex; gap: 10px; }
#oyun .harf-dugme { width: 74px; height: 74px; border-radius: 50%; padding: 0; display: grid; place-items: center; background: var(--renk);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .12), 0 5px 0 var(--golge); }
#oyun .harf-dugme:active { box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12), 0 2px 0 var(--golge); }
#oyun .harf-dugme svg { height: 62%; width: auto; max-width: 74%; pointer-events: none; }
#oyun .eylem { min-height: 58px; padding: 0 20px 0 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: #3d5a80; box-shadow: 0 5px 0 rgba(60, 90, 140, .28); }
#oyun .eylem svg { width: 26px; height: 26px; pointer-events: none; }
#oyun .eylem span { pointer-events: none; }
@media (max-width: 760px) {
  #oyun { flex-wrap: wrap; gap: 8px 12px; padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); }
  #oyun .harf-dugmeler { order: -1; flex: 0 0 100%; justify-content: center; gap: 6px; }
  #oyun .harf-dugme { width: clamp(56px, calc((100vw - 50px) / 6), 74px); height: clamp(56px, calc((100vw - 50px) / 6), 74px); }
  #oyun .eylem { flex: 1 1 0; max-width: 200px; justify-content: center; min-height: 56px; }
}
#basla { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); font: 800 clamp(28px, 6vw, 56px) "Baloo 2", system-ui, sans-serif;
  padding: .3em 1.1em; border: 0; border-radius: 999px; background: #ffc531; color: #fff; cursor: pointer; box-shadow: 0 8px 0 rgba(60, 90, 140, .25); }
#oyna { position: fixed; left: 50%; bottom: calc(6% + env(safe-area-inset-bottom)); transform: translateX(-50%); font: 800 clamp(20px, 4.4vw, 40px) "Baloo 2", system-ui, sans-serif;
  padding: .3em 1em; border: 0; border-radius: 999px; background: #4dabf7; color: #fff; cursor: pointer; box-shadow: 0 8px 0 rgba(60, 90, 140, .25); white-space: nowrap; }
#basla[hidden], #oyna[hidden] { display: none; }
html.kayit #basla, html.kayit #oyun, html.kayit #oyna { display: none; }
#yukleniyor { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); font: 800 clamp(22px, 5vw, 40px) "Baloo 2", system-ui, sans-serif;
  color: #3d6ea8; white-space: nowrap; pointer-events: none; }
#yukleniyor span { animation: yk 1.2s infinite; opacity: .2; }
#yukleniyor span:nth-child(2) { animation-delay: .2s; } #yukleniyor span:nth-child(3) { animation-delay: .4s; }
@keyframes yk { 50% { opacity: 1; } }
html.kayit #yukleniyor { display: none; }
