:root {
  --sari: #ffcf4a; --kirmizi: #e8483a; --mavi: #1f6fb2; --koyu: #0d2638; --beyaz: #fffaf0;
  --golge: 0 6px 0 rgba(0,0,0,.25);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #b9dcee; font-family: Rubik, system-ui, sans-serif; color: var(--beyaz); }
#sahne { position: fixed; inset: 0; }
#sahne canvas { display: block; }
.gizli { display: none !important; }
button { font-family: inherit; cursor: pointer; border: 0; border-radius: 14px; font-weight: 900; color: var(--koyu);
  background: var(--sari); padding: 12px 20px; font-size: 17px; box-shadow: var(--golge); transition: transform .08s; }
button:hover { transform: translateY(-2px); filter: brightness(1.06); }
button:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0,0,0,.25); }
button.ikinci { background: #7fd3ff; }
button.kucuk { font-size: 14px; padding: 8px 14px; background: #e8eef2; }
button.buyuk { font-size: 22px; padding: 16px 26px; }
kbd { display: inline-block; min-width: 24px; padding: 2px 6px; margin: 0 2px; border-radius: 6px; background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35); font: 700 13px Rubik, sans-serif; text-align: center; }

/* menü */
.ekran { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 10;
  background: radial-gradient(ellipse at 50% 30%, rgba(13,38,56,.25), rgba(13,38,56,.7)); }
.ekran.acik { display: flex; }
.menu-kutu { width: min(560px, calc(100% - 32px)); text-align: center; }
.logo { font: 96px/1 'Lilita One', Rubik, sans-serif; margin: 0; color: var(--sari); letter-spacing: 2px;
  text-shadow: 0 6px 0 #b9741a, 0 14px 30px rgba(0,0,0,.4); }
.logo span { color: #fff; text-shadow: 0 6px 0 #6b8ea5, 0 14px 30px rgba(0,0,0,.4); }
.slogan { font-size: 18px; font-weight: 700; margin: 10px 0 24px; text-shadow: 0 2px 6px rgba(0,0,0,.5); }
.ad-satir { display: flex; gap: 10px; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 18px; }
input { font: 700 18px Rubik, sans-serif; padding: 10px 14px; border-radius: 12px; border: 3px solid rgba(255,255,255,.6);
  background: rgba(13,38,56,.55); color: #fff; outline: none; }
input:focus { border-color: var(--sari); }
#kodGir { width: 110px; text-align: center; text-transform: uppercase; letter-spacing: 4px; }
.ana-dugmeler { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.ana-dugmeler > button { width: 320px; max-width: 100%; }
.katil-satir { display: flex; gap: 10px; }
.hata { color: #ffb4a8; font-weight: 700; min-height: 22px; text-shadow: 0 1px 4px #000; }
.kontroller { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-size: 14px; margin-top: 14px;
  background: rgba(13,38,56,.55); padding: 14px; border-radius: 16px; }

/* hud */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 5; text-shadow: 0 2px 4px rgba(0,0,0,.55); }
.sol-ust { position: absolute; left: 16px; top: 14px; }
.para { font: 34px 'Lilita One', Rubik, sans-serif; color: var(--sari); }
.akis { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; max-width: 330px; }
.akis div { background: rgba(13,38,56,.6); padding: 6px 10px; border-radius: 10px; font-weight: 700; font-size: 14px; animation: gir .3s; }
@keyframes gir { from { opacity: 0; transform: translateX(-20px); } }
.orta-ust { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.is-kart { background: rgba(13,38,56,.72); border-radius: 16px; padding: 10px 16px; min-width: 300px; text-align: center; }
.is-kart h3 { margin: 0 0 4px; font-size: 17px; }
.is-kart .hedef { font-weight: 900; }
.is-kart .yukler { display: flex; gap: 8px; justify-content: center; margin-top: 6px; flex-wrap: wrap; }
.is-kart .yuk { background: rgba(255,255,255,.12); border-radius: 10px; padding: 3px 8px; font-size: 14px; font-weight: 700; }
.is-kart .yuk.iyi { background: rgba(54,179,126,.55); }
.is-kart .yuk.kotu { background: rgba(232,72,58,.75); animation: yanip .6s infinite alternate; }
.is-kart .yuk.bekle { background: rgba(255,207,74,.35); }
.is-kart .sure { font: 22px 'Lilita One', Rubik, sans-serif; color: var(--sari); }
.is-kart .sure.az { color: #ff7a6b; }
@keyframes yanip { to { opacity: .55; } }
.pusula { background: rgba(13,38,56,.6); padding: 6px 14px; border-radius: 30px; font-weight: 900; display: flex; align-items: center; gap: 10px; }
.pusula .ok { display: inline-block; font-size: 22px; color: var(--sari); }
.sag-ust { position: absolute; right: 16px; top: 14px; }
.oda-bilgi { background: rgba(13,38,56,.65); border-radius: 14px; padding: 10px 14px; font-weight: 700; font-size: 14px; min-width: 160px; }
.oda-bilgi .kod { font: 28px 'Lilita One', Rubik, sans-serif; color: var(--sari); letter-spacing: 3px; }
.oda-bilgi .kisi { display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.oda-bilgi .nokta { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
#harita { position: absolute; left: 16px; bottom: 16px; width: 180px; height: 180px; border-radius: 50%;
  border: 4px solid rgba(255,255,255,.7); box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.sag-alt { position: absolute; right: 18px; bottom: 16px; }
.hiz { font-weight: 700; font-size: 16px; }
.hiz b { font: 48px 'Lilita One', Rubik, sans-serif; }
.ipucu { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); background: rgba(13,38,56,.75); padding: 12px 20px;
  border-radius: 16px; font-weight: 700; font-size: 17px; text-align: center; max-width: min(640px, calc(100% - 420px)); }
.buyuk-yazi { position: absolute; left: 50%; top: 36%; transform: translate(-50%, -50%); font: 54px 'Lilita One', Rubik, sans-serif;
  text-align: center; color: #fff; text-shadow: 0 5px 0 rgba(0,0,0,.35), 0 10px 30px rgba(0,0,0,.4); opacity: 0; transition: opacity .3s; white-space: nowrap; }
.buyuk-yazi.goster { opacity: 1; }
.buyuk-yazi small { display: block; font: 700 20px Rubik, sans-serif; margin-top: 6px; }

/* pencereler */
.pencere { position: fixed; inset: 0; z-index: 8; display: flex; align-items: center; justify-content: center; background: rgba(13,38,56,.45); }
.pencere-kutu { background: #fffaf0; color: var(--koyu); border-radius: 22px; padding: 22px; width: min(720px, calc(100% - 32px));
  box-shadow: 0 10px 0 rgba(0,0,0,.2), 0 30px 60px rgba(0,0,0,.35); text-align: center; }
.pencere-kutu h2 { font: 36px 'Lilita One', Rubik, sans-serif; margin: 0 0 14px; }
.isler { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.is { background: #fff; border: 3px solid #e3d9c6; border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.is h4 { margin: 0; font-size: 16px; }
.is .simgeler { font-size: 26px; letter-spacing: 2px; }
.is .nereye { font-weight: 900; }
.is .aciklama { font-size: 13px; color: #6a6a6a; flex: 1; }
.is .ucret { font: 26px 'Lilita One', Rubik, sans-serif; color: #2f8a4c; }
.is button { padding: 8px; font-size: 15px; }
.sonuc-liste { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.sonuc-liste div { display: flex; justify-content: space-between; background: #f2ece0; border-radius: 10px; padding: 8px 14px; font-weight: 700; }
.sonuc-toplam { font: 44px 'Lilita One', Rubik, sans-serif; color: #2f8a4c; margin: 6px 0 14px; }
.sonuc-toplam.sifir { color: var(--kirmizi); }
@media (max-width: 760px) { .isler { grid-template-columns: 1fr; } .logo { font-size: 64px; } #harita { width: 120px; height: 120px; } .ipucu { max-width: calc(100% - 32px); bottom: 150px; } }
