/* ============ ORBITTE — neon arcade teması ============ */
* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html, body { height:100%; overflow:hidden; }
body {
  background:#05070f; color:#eaf6ff;
  font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  user-select:none; -webkit-user-select:none; touch-action:none;
  overscroll-behavior:none;
}
#app { position:fixed; inset:0; }
#cv { position:absolute; inset:0; width:100%; height:100%; display:block; }
.hidden { display:none !important; }

/* ---------- butonlar ---------- */
.btn {
  display:flex; align-items:center; justify-content:center; gap:8px;
  border:none; border-radius:16px; padding:14px 22px;
  font-size:16px; font-weight:800; letter-spacing:.06em;
  color:#eaf6ff; cursor:pointer; position:relative;
  transition:transform .08s ease, filter .15s ease;
  font-family:inherit;
}
.btn:active { transform:scale(.95); filter:brightness(1.2); }
.btn-primary {
  background:linear-gradient(160deg,#22d3ee,#0ea5e9 60%,#2563eb);
  color:#04121c; box-shadow:0 0 24px #22d3ee55, 0 6px 18px #0ea5e944;
  text-shadow:0 1px 0 #ffffff66;
}
.btn-ghost { background:#ffffff10; border:1px solid #ffffff22; backdrop-filter:blur(6px); }
.btn-gold {
  background:linear-gradient(160deg,#fde68a,#fbbf24 55%,#f59e0b);
  color:#241a02; box-shadow:0 0 22px #fbbf2444;
}
.btn-reward {
  background:linear-gradient(160deg,#4ade80,#16a34a);
  color:#04150a; box-shadow:0 0 20px #16a34a55;
}
.btn-link { background:transparent; color:#94a3b8; font-weight:600; }
.btn.full { width:100%; }
.btn.small { padding:10px 16px; font-size:14px; }
.btn-big { font-size:24px; padding:20px 46px; border-radius:22px; letter-spacing:.12em; animation:playPulse 1.6s ease-in-out infinite; }
@keyframes playPulse { 0%,100%{box-shadow:0 0 26px #22d3ee55} 50%{box-shadow:0 0 44px #22d3ee99} }
.iconbtn {
  width:42px; height:42px; border-radius:13px; border:1px solid #ffffff22; background:#ffffff10;
  color:#eaf6ff; display:flex; align-items:center; justify-content:center; cursor:pointer;
  backdrop-filter:blur(6px);
}
.iconbtn:active { transform:scale(.92); }
.menu-row { display:flex; gap:12px; }
.menu-row .btn { flex:1; }

/* ---------- HUD ---------- */
#hud { position:absolute; inset:0; pointer-events:none; z-index:5; }
#hudTop { position:absolute; top:calc(12px + env(safe-area-inset-top)); left:0; right:0; display:flex; align-items:center; justify-content:center; }
#hudScore {
  font-size:52px; font-weight:900; letter-spacing:.04em;
  text-shadow:0 0 24px #22d3ee88, 0 2px 0 #00000088; line-height:1;
}
#hudCombo {
  position:absolute; top:calc(74px + env(safe-area-inset-top)); left:50%; transform:translateX(-50%);
  font-weight:900; font-size:15px; letter-spacing:.14em; color:#fbbf24;
  text-shadow:0 0 14px #fbbf2488; animation:comboPop .25s ease;
}
@keyframes comboPop { 0%{transform:translateX(-50%) scale(1.6)} 100%{transform:translateX(-50%) scale(1)} }
#btnPause { position:absolute; right:calc(14px + env(safe-area-inset-right)); top:calc(14px + env(safe-area-inset-top)); pointer-events:auto; }
#hudGems {
  position:absolute; left:calc(14px + env(safe-area-inset-left)); top:calc(20px + env(safe-area-inset-top));
  display:flex; align-items:center; gap:5px; font-weight:800; font-size:15px; color:#fde68a;
  background:#0b0e1acc; padding:6px 12px; border-radius:999px; border:1px solid #fbbf2433;
}
#hudHint {
  position:absolute; bottom:calc(120px + env(safe-area-inset-bottom)); left:0; right:0; text-align:center;
  font-weight:700; font-size:16px; letter-spacing:.08em; color:#7dd3fc;
  text-shadow:0 0 12px #38bdf855; animation:hintFade 1.6s ease-in-out infinite;
}
@keyframes hintFade { 0%,100%{opacity:.45} 50%{opacity:1} }

/* ---------- ekranlar ---------- */
.screen {
  position:absolute; inset:0; z-index:10; display:flex; flex-direction:column;
  padding:calc(16px + env(safe-area-inset-top)) 20px calc(16px + env(safe-area-inset-bottom));
}
#scr-menu { justify-content:space-between; }
.menu-top { display:flex; justify-content:space-between; align-items:center; }
.gemchip {
  display:inline-flex; align-items:center; gap:6px; font-weight:800;
  background:#0b0e1acc; border:1px solid #fbbf2433; color:#fde68a;
  padding:8px 14px; border-radius:999px; font-size:15px;
}
.menu-mid { display:flex; flex-direction:column; align-items:center; gap:12px; margin-top:-4vh; }
.logo {
  font-size:clamp(56px, 17vw, 92px); font-weight:900; letter-spacing:.06em;
  background:linear-gradient(180deg,#a5f3fc,#22d3ee 45%,#3b82f6);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  filter:drop-shadow(0 0 26px #22d3ee66);
  animation:logoFloat 3.2s ease-in-out infinite;
}
@keyframes logoFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.tagline { color:#7dd3fc; font-weight:600; letter-spacing:.22em; font-size:13px; text-transform:uppercase; }
.bestchip {
  margin-top:10px; font-weight:800; font-size:14px; letter-spacing:.14em; color:#eaf6ff;
  border:1px solid #ffffff22; background:#ffffff0d; padding:8px 18px; border-radius:999px;
}
.bestchip span { color:#fbbf24; }
.menu-bottom { display:flex; flex-direction:column; gap:14px; align-items:center; margin-bottom:6vh; }
.menu-bottom .menu-row { width:100%; max-width:340px; }

/* oyun sonu */
.panel {
  width:min(400px, 92vw); margin:auto; background:#0b0f1eee; border:1px solid #ffffff18;
  border-radius:26px; padding:26px 22px; display:flex; flex-direction:column; gap:12px; text-align:center;
  box-shadow:0 20px 60px #000000aa; backdrop-filter:blur(14px);
  animation:panelIn .3s cubic-bezier(.2,1.4,.4,1);
}
@keyframes panelIn { 0%{transform:scale(.85); opacity:0} 100%{transform:scale(1); opacity:1} }
.over-panel h2 { font-size:72px; font-weight:900; line-height:1; text-shadow:0 0 30px #22d3ee66; }
.over-sub { color:#94a3b8; font-weight:700; letter-spacing:.16em; font-size:13px; }
.over-sub span { color:#fbbf24; }
.bestbadge {
  align-self:center; background:linear-gradient(160deg,#fde68a,#f59e0b); color:#241a02;
  font-weight:900; font-size:13px; letter-spacing:.14em; padding:7px 16px; border-radius:999px;
  animation:badgeIn .4s cubic-bezier(.2,1.6,.4,1);
}
@keyframes badgeIn { 0%{transform:scale(0) rotate(-8deg)} 100%{transform:scale(1)} }
.over-stats { display:flex; justify-content:space-around; margin:6px 0; }
.stat { display:flex; flex-direction:column; gap:2px; }
.stat span { font-size:24px; font-weight:900; color:#7dd3fc; }
.stat label { font-size:10px; letter-spacing:.14em; color:#94a3b8; font-weight:700; }

/* alt ekranlar */
.scr-head { display:flex; align-items:center; gap:14px; padding:4px 0 16px; }
.scr-head h2 { font-size:22px; font-weight:900; letter-spacing:.04em; flex:1; }
.scr-head .reset-in { font-size:12px; color:#64748b; font-weight:600; }
.iconbtn.back { font-size:22px; font-weight:900; }
.scrollarea { flex:1; overflow-y:auto; padding-bottom:80px; -webkit-overflow-scrolling:touch; touch-action:pan-y; }
.shop-h { margin:18px 4px 10px; font-size:13px; letter-spacing:.18em; color:#7dd3fc; font-weight:800; }

/* mağaza */
.skin-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.skin-card {
  background:#ffffff0a; border:1px solid #ffffff16; border-radius:18px; padding:14px 8px 12px;
  display:flex; flex-direction:column; align-items:center; gap:8px; cursor:pointer; position:relative;
}
.skin-card .ball { width:44px; height:44px; border-radius:50%; }
.skin-card .name { font-size:12px; font-weight:800; color:#cbd5e1; }
.skin-card .price { font-size:12px; font-weight:800; color:#fde68a; display:flex; align-items:center; gap:4px; }
.skin-card.owned .price { color:#4ade80; }
.skin-card.equipped { border-color:#22d3ee88; box-shadow:0 0 18px #22d3ee33; }
.skin-card .eq-badge {
  position:absolute; top:-8px; right:8px; font-size:9px; font-weight:900;
  background:#22d3ee; color:#04121c; padding:3px 8px; border-radius:999px; letter-spacing:.08em;
}
.skin-card.locked .price { color:#e879f9; }
.langsel {
  background:#0b0f1e; color:#eaf6ff; border:1px solid #ffffff22; border-radius:10px;
  padding:8px 10px; font-weight:700; font-size:14px; font-family:inherit; max-width:150px;
}
.iap-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
.iap-card {
  background:#ffffff0a; border:1px solid #ffffff16; border-radius:18px; padding:16px 12px;
  display:flex; flex-direction:column; align-items:center; gap:6px; cursor:pointer; position:relative;
}
.iap-card .gems { font-size:20px; font-weight:900; color:#fde68a; }
.iap-card .price { font-size:14px; font-weight:800; color:#7dd3fc; }
.iap-card .badge {
  position:absolute; top:-9px; left:50%; transform:translateX(-50%); white-space:nowrap;
  font-size:9px; font-weight:900; letter-spacing:.1em; padding:3px 10px; border-radius:999px;
  background:#f43f5e; color:#fff;
}
.iap-list { display:flex; flex-direction:column; gap:10px; margin-top:6px; }
.iap-row {
  display:flex; align-items:center; gap:12px; background:#ffffff0a; border:1px solid #ffffff16;
  border-radius:18px; padding:14px 16px; cursor:pointer;
}
.iap-row .info { flex:1; text-align:left; }
.iap-row .info b { display:block; font-size:15px; }
.iap-row .info small { color:#94a3b8; font-size:12px; }
.iap-row .price { font-weight:900; color:#7dd3fc; white-space:nowrap; }
.iap-row.purchased { opacity:.55; pointer-events:none; }

/* görevler */
.mission-card {
  background:#ffffff0a; border:1px solid #ffffff16; border-radius:18px; padding:16px; margin-bottom:12px;
}
.mission-card .m-title { font-weight:800; font-size:15px; display:flex; justify-content:space-between; align-items:center; }
.mission-card .m-reward { color:#fde68a; font-weight:900; font-size:14px; display:flex; align-items:center; gap:4px; }
.m-bar { height:8px; border-radius:99px; background:#ffffff14; margin:12px 0 10px; overflow:hidden; }
.m-bar i { display:block; height:100%; border-radius:99px; background:linear-gradient(90deg,#22d3ee,#3b82f6); transition:width .4s ease; }
.mission-card.done .m-bar i { background:linear-gradient(90deg,#fde68a,#f59e0b); }
.m-bottom { display:flex; justify-content:space-between; align-items:center; font-size:12px; color:#94a3b8; font-weight:700; }
.daily-note { text-align:center; color:#475569; font-size:12px; margin-top:18px; }

/* modallar */
.modal {
  position:absolute; inset:0; z-index:40; background:#020409bb; backdrop-filter:blur(8px);
  display:flex; align-items:center; justify-content:center; padding:20px;
}
.switchrow {
  display:flex; justify-content:space-between; align-items:center; font-weight:700; font-size:15px;
  padding:6px 4px;
}
.switchrow input { display:none; }
.switchrow .sw {
  width:50px; height:28px; border-radius:99px; background:#ffffff18; position:relative; transition:background .2s;
}
.switchrow .sw::after {
  content:""; position:absolute; top:3px; left:3px; width:22px; height:22px; border-radius:50%;
  background:#fff; transition:transform .2s;
}
.switchrow input:checked + .sw { background:#22d3ee; }
.switchrow input:checked + .sw::after { transform:translateX(22px); }
.credits { color:#475569; font-size:11px; margin-top:6px; }
.sub { color:#94a3b8; font-size:14px; font-weight:600; }
.revive-panel h2 { font-size:26px; }
.revive-panel .btn-reward { animation:playPulse 1.6s infinite; }

/* günlük ödül */
.streak-row { display:flex; gap:6px; justify-content:center; margin:8px 0; }
.streak-day {
  width:34px; height:44px; border-radius:12px; background:#ffffff0d; border:1px solid #ffffff16;
  display:flex; flex-direction:column; align-items:center; justify-content:center; font-size:10px; font-weight:800; color:#64748b;
}
.streak-day b { font-size:13px; color:#cbd5e1; }
.streak-day.claimed { background:#22d3ee22; border-color:#22d3ee66; color:#7dd3fc; }
.streak-day.claimed b { color:#22d3ee; }
.streak-day.today { border-color:#fbbf2488; box-shadow:0 0 14px #fbbf2433; }

/* starter pack */
.starter-panel h2 { font-size:26px; }
.limited-badge {
  align-self:center; background:linear-gradient(160deg,#f43f5e,#be123c); color:#fff;
  font-size:11px; font-weight:900; letter-spacing:.14em; padding:6px 14px; border-radius:999px;
  animation:badgeIn .4s cubic-bezier(.2,1.6,.4,1);
}
.starter-items {
  background:#ffffff0a; border:1px dashed #fbbf2455; border-radius:14px; padding:12px;
  display:flex; flex-direction:column; gap:6px; font-weight:800;
}

/* reklam simülasyonu */
.ad-overlay { z-index:60; }
.ad-box {
  width:min(360px, 90vw); background:#0d1226; border:1px solid #ffffff20; border-radius:22px;
  padding:18px; display:flex; flex-direction:column; gap:14px; position:relative; align-items:center;
}
.ad-badge {
  position:absolute; top:-10px; left:14px; background:#f43f5e; color:#fff; font-size:10px;
  font-weight:900; letter-spacing:.14em; padding:4px 10px; border-radius:6px;
}
.ad-creative {
  width:100%; height:200px; border-radius:14px; overflow:hidden; position:relative;
  background:linear-gradient(120deg,#7c3aed,#db2777,#f59e0b);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px;
}
.ad-creative::before {
  content:""; position:absolute; inset:0;
  background:linear-gradient(120deg, transparent 30%, #ffffff33 50%, transparent 70%);
  animation:adShine 2.2s linear infinite;
}
@keyframes adShine { 0%{transform:translateX(-100%)} 100%{transform:translateX(100%)} }
.ad-title { font-weight:900; font-size:20px; color:#fff; text-shadow:0 2px 8px #00000055; }
.ad-sub { color:#ffffffcc; font-size:12px; font-weight:600; }
.ad-count {
  width:52px; height:52px; border-radius:50%; border:3px solid #22d3ee; color:#22d3ee;
  display:flex; align-items:center; justify-content:center; font-size:22px; font-weight:900;
}
.ad-sim-note { font-size:10px; color:#475569; letter-spacing:.08em; }

/* iap sim */
.iap-panel h3 { font-size:22px; }
.iap-price { font-size:26px; font-weight:900; color:#7dd3fc; }
.iap-store-note { font-size:10px; letter-spacing:.16em; color:#64748b; font-weight:800; }

/* banner */
#bannerAd {
  position:absolute; left:0; right:0; bottom:0; height:56px; z-index:8;
  background:#0b0f1e; border-top:1px solid #ffffff14;
  display:flex; align-items:center; justify-content:center; gap:10px;
}
#bannerAd .b-label {
  font-size:8px; border:1px solid #ffffff33; color:#94a3b8; padding:2px 5px; border-radius:4px; font-weight:800;
}
#bannerAd .b-text { color:#64748b; font-size:12px; font-weight:700; letter-spacing:.06em; }
#bannerAd .b-shine { color:#22d3ee; font-weight:900; font-size:13px; animation:hintFade 1.8s infinite; }

/* toast */
#toast {
  position:absolute; left:50%; bottom:calc(90px + env(safe-area-inset-bottom)); transform:translateX(-50%);
  background:#0b0f1eee; border:1px solid #22d3ee55; color:#eaf6ff; font-weight:800; font-size:14px;
  padding:12px 22px; border-radius:999px; z-index:70; white-space:nowrap;
  box-shadow:0 10px 30px #00000088; animation:toastIn .25s ease;
}
@keyframes toastIn { 0%{transform:translate(-50%,16px); opacity:0} 100%{transform:translate(-50%,0); opacity:1} }

@media (max-height:640px) {
  .menu-mid { margin-top:-2vh; }
  .logo { font-size:clamp(48px,14vw,72px); }
  #hudScore { font-size:40px; }
  .over-panel h2 { font-size:56px; }
}

/* ---------- skor tablosu ---------- */
.board-meta { display:flex; justify-content:space-between; align-items:center; padding:2px 4px 12px; }
.board-me { font-weight:800; font-size:14px; color:#7dd3fc; }
.board-reset { font-weight:800; font-size:13px; color:#94a3b8; }
.board-row {
  display:flex; align-items:center; gap:12px; background:#ffffff0a; border:1px solid #ffffff14;
  border-radius:14px; padding:11px 14px; margin-bottom:8px;
}
.board-row .b-rank { width:34px; text-align:center; font-weight:900; font-size:15px; color:#94a3b8; }
.board-row.top .b-rank { font-size:19px; }
.board-row .b-ball { width:26px; height:26px; border-radius:50%; flex:none; box-shadow:0 0 10px #22d3ee33; }
.board-row .b-name { flex:1; font-weight:800; font-size:14px; color:#eaf6ff; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.board-row .b-score { font-weight:900; font-size:16px; color:#fbbf24; }
.board-row.me { border-color:#22d3ee66; box-shadow:0 0 14px #22d3ee22; }
.nick-input {
  width:100%; background:#ffffff0d; border:1px solid #ffffff22; border-radius:14px;
  color:#eaf6ff; font-weight:800; font-size:17px; padding:14px 16px; text-align:center;
  font-family:inherit; outline:none; margin:6px 0 4px;
}
.nick-input:focus { border-color:#22d3ee88; }
.web-note { text-align:center; color:#64748b; font-size:12px; font-weight:700; padding:6px 0; }
