html, body {
  margin: 0; padding: 0; width: 100%; height: 100%;
  overflow: hidden; background: #0d1d3d;
  overscroll-behavior: none;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  font-family: "Arial Black", "Segoe UI", Arial, sans-serif;
}

#unity-container {
  position: fixed; left: 0; top: 0;
  width: 100vw; height: 100vh; height: 100dvh;
  overflow: hidden;
}

#unity-canvas {
  display: block; width: 100%; height: 100%;
  background: #0d1d3d;
  touch-action: none; outline: none;
}

.hidden { display: none !important; }

/* ---------- Yukleme ---------- */
#loading {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #2e7fd8 0%, #6ec1f5 60%, #d4f1ff 100%);
}
.load-card {
  width: min(70vw, 460px); padding: 26px 30px 22px;
  background: #fffdf6; border: 5px solid #221a26; border-radius: 26px;
  box-shadow: 0 10px 0 rgba(0,0,0,.18); text-align: center;
}
.load-title {
  font-size: clamp(22px, 4.5vw, 36px); color: #1f6fe0; letter-spacing: 1px;
  margin-bottom: 16px; text-transform: uppercase;
}
.load-bar {
  height: 26px; border-radius: 14px; background: #1b2b4b;
  border: 4px solid #221a26; overflow: hidden;
}
#load-fill {
  width: 0%; height: 100%; border-radius: 10px;
  background: linear-gradient(180deg, #ffd23f, #ff8a1f);
  transition: width .2s ease-out;
}
#load-pct { margin-top: 10px; color: #22324f; font-size: 18px; }

/* ---------- Dokun ve basla ---------- */
#tap-start {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(8, 18, 40, .55); cursor: pointer;
}
.tap-card { text-align: center; color: #fff; animation: pulse 1.4s ease-in-out infinite; }
.tap-icon {
  width: 96px; height: 96px; margin: 0 auto 14px; border-radius: 50%;
  background: linear-gradient(180deg, #ffc83d, #ff8a1f); border: 5px solid #221a26;
  font-size: 44px; line-height: 88px; color: #fff; text-shadow: 0 3px 0 #221a26;
  box-shadow: 0 8px 0 #c9540c;
}
.tap-text { font-size: clamp(20px, 5vw, 34px); text-shadow: 0 3px 0 #221a26, 0 0 12px rgba(0,0,0,.4); }
.tap-sub { margin-top: 6px; font-family: Arial, sans-serif; font-size: 14px; opacity: .85; }

/* ---------- Telefonu cevir ---------- */
#rotate {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #1f3c74 0%, #12264f 100%);
  color: #fff; text-align: center;
}
.rotate-card { padding: 24px; }
.phone {
  width: 70px; height: 120px; margin: 0 auto 28px; border-radius: 14px;
  border: 6px solid #fff; position: relative;
  animation: turn 2.2s ease-in-out infinite;
}
.phone-screen { position: absolute; top: 8px; bottom: 8px; left: 4px; right: 4px; border-radius: 4px; background: linear-gradient(180deg, #6ec1f5, #43c85b); }
.rotate-text { font-size: 26px; text-shadow: 0 3px 0 #0a1733; }
.rotate-sub { margin-top: 8px; font-family: Arial, sans-serif; font-size: 15px; opacity: .8; }
#rotate-btn {
  margin-top: 22px; padding: 14px 30px; font: inherit; font-size: 18px; color: #fff;
  background: linear-gradient(180deg, #ffc83d, #ff8a1f); border: 4px solid #221a26;
  border-radius: 18px; box-shadow: 0 6px 0 #c9540c; cursor: pointer;
}

/* ---------- Tam ekran butonu ---------- */
#fs-btn {
  position: absolute; right: 10px; bottom: 10px; z-index: 10;
  width: 44px; height: 44px; border-radius: 12px; cursor: pointer;
  background: rgba(18, 38, 79, .55); color: #fff; font-size: 26px; line-height: 44px; text-align: center;
  opacity: .6; transition: opacity .2s;
}
#fs-btn:hover { opacity: 1; }

#unity-warning {
  position: absolute; left: 50%; top: 4%; transform: translateX(-50%); z-index: 30;
  display: none; font-family: Arial, sans-serif; font-size: 14px; max-width: 90vw;
}
#unity-warning > div { background: #fff; padding: 10px 14px; border-radius: 10px; margin-bottom: 6px; }
#unity-warning > .warn { background: #ffe066; }
#unity-warning > .err { background: #e5392e; color: #fff; }

@keyframes turn {
  0%, 20% { transform: rotate(0deg); }
  50%, 75% { transform: rotate(-90deg); }
  100% { transform: rotate(0deg); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
