/* Shared Arcade styles — used by all games and the hub */

* { margin: 0; box-sizing: border-box; }

body {
  font-family: system-ui, sans-serif;
  background: #0f1220;
  color: #e8e8f0;
  min-height: 100vh;
  user-select: none;
  -webkit-user-select: none;
  transition: opacity 0.12s ease;
}
body.lang-switching { opacity: 0; }

.back-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 998;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #2c3155;
  background: #1a1e33;
  color: #e8e8f0;
  text-decoration: none;
  font-size: 0.85rem;
  transition: border-color 0.15s;
}
.back-link:hover { border-color: #7c5cff; color: #e8e8f0; }

.lang-toggle {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 999;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #2c3155;
  background: #1a1e33;
  color: #e8e8f0;
  cursor: pointer;
  font-size: 0.85rem;
  transition: border-color 0.15s;
}
.lang-toggle:hover { border-color: #7c5cff; }

.net-status {
  position: fixed;
  top: 12px;
  right: 110px;
  z-index: 999;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #2c3155;
  background: #1a1e33;
  color: #e8e8f0;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}
.net-status.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}
.net-status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5566;
  transition: background 0.3s ease;
}
.net-status.online .dot { background: #51cf66; }

@media (max-width: 600px) {
  .back-link, .lang-toggle, .net-status {
    padding: 5px 10px;
    font-size: 0.78rem;
  }
  .net-status { right: 98px; }
}
