/* SKG chrome.css — standard system chrome for every Super King game.
   .skg-back  — back button, ALWAYS top-left, 44px rounded square
   .skg-mute  — mute toggle, top-right, 44px rounded square
   .skg-coin  — the one gold coin pill
   .skg-press — press-down state for any button
   .skg-screen-fade / --in / --out — screen swap utilities */

.skg-back,
.skg-mute {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  z-index: 9500;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(14, 18, 38, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255, 255, 255, 0.07) inset;
  color: #eef0ff;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 19px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform 0.12s ease, background 0.12s ease;
  padding: 0;
}
.skg-back { left: max(12px, env(safe-area-inset-left)); }
.skg-mute { right: max(12px, env(safe-area-inset-right)); }

.skg-back:active,
.skg-mute:active {
  transform: scale(0.9);
  background: rgba(30, 36, 66, 0.85);
}

.skg-mute[data-muted='1'],
.skg-mute.skg-muted {
  color: rgba(238, 240, 255, 0.45);
}

/* ---- the ONE gold coin pill ---- */
.skg-coin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 212, 59, 0.5);
  background: linear-gradient(135deg, rgba(255, 212, 59, 0.15), rgba(255, 138, 61, 0.1));
  box-shadow: 0 3px 12px rgba(255, 170, 26, 0.15), 0 1px 0 rgba(255, 255, 255, 0.08) inset;
  color: #ffe27a;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.4px;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
}
.skg-coin::before {
  content: '';
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fff3c2, #ffd43b 42%, #f0a51a 72%, #c67c08);
  box-shadow: 0 0 0 1.2px rgba(198, 124, 8, 0.9) inset, 0 1px 4px rgba(255, 170, 26, 0.4);
}

/* ---- press-down state: add to any tappable control ---- */
.skg-press {
  transition: transform 0.1s ease, filter 0.1s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  cursor: pointer;
}
.skg-press:active {
  transform: scale(0.96) translateY(1px);
  filter: brightness(1.12);
}

/* ---- screen swap fades (150-250ms) ---- */
.skg-screen-fade {
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.skg-screen-fade--out {
  opacity: 0;
  transform: scale(0.985);
  pointer-events: none;
}
.skg-screen-fade--in {
  animation: skgScreenIn 0.2s ease both;
}
@keyframes skgScreenIn {
  from { opacity: 0; transform: scale(1.015); }
  to { opacity: 1; transform: scale(1); }
}
