:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #050913;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: #eaf1ff;
}

.app {
  position: relative;
  width: 100vw;
  height: 100vh;
}

.auth-bar {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 30;
  display: flex;
  gap: 8px;
  align-items: center;
}

.auth-user-badge {
  border: 1px solid rgba(180, 210, 255, 0.24);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(39, 33, 15, 0.95), rgba(48, 34, 10, 0.9));
  box-shadow: 0 0 0 1px rgba(255, 200, 90, 0.25) inset;
  padding: 8px 12px;
  font-size: 0.84rem;
  font-weight: 700;
}

.auth-button {
  border: 1px solid rgba(180, 210, 255, 0.35);
  border-radius: 8px;
  background: rgba(10, 17, 31, 0.95);
  color: #eaf1ff;
  padding: 7px 11px;
  cursor: pointer;
}

.channel-badge {
  position: absolute;
  top: 52px;
  right: 10px;
  z-index: 30;
  border: 1px solid rgba(180, 210, 255, 0.24);
  border-radius: 8px;
  background: rgba(10, 17, 31, 0.85);
  padding: 6px 10px;
  font-size: 0.82rem;
}

.channel-badge-label {
  color: rgba(196, 212, 240, 0.8);
  margin-right: 6px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.platform-status-badge {
  position: absolute;
  top: 88px;
  right: 10px;
  z-index: 30;
  min-width: 360px;
  border: 1px solid rgba(103, 190, 255, 0.38);
  border-radius: 8px;
  background: rgba(10, 17, 31, 0.9);
  padding: 10px 12px;
}

.platform-status-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: rgba(187, 205, 236, 0.85);
  margin-bottom: 3px;
}

#platformStatusSummary {
  display: block;
  font-size: 1.01rem;
}

.chat-commands-strip {
  position: absolute;
  top: 150px;
  left: 10px;
  right: 10px;
  z-index: 30;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chat-commands-strip span {
  border: 1px solid rgba(180, 210, 255, 0.24);
  border-radius: 8px;
  background: rgba(10, 17, 31, 0.82);
  padding: 4px 8px;
  font-size: 0.78rem;
}

.hud {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.hud-item {
  border: 1px solid rgba(180, 210, 255, 0.24);
  border-radius: 8px;
  background: rgba(10, 17, 31, 0.85);
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.hud-item span {
  font-size: 0.82rem;
  color: rgba(220, 233, 255, 0.76);
}

.hud-item strong {
  font-size: 1rem;
  color: #f4f8ff;
}

#gameRoot,
#gameRoot canvas {
  width: 100vw;
  height: 100vh;
  display: block;
  background: #0c1322;
}

.hint {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 20;
  text-align: left;
  font-size: 0.85rem;
  color: rgba(236, 242, 255, 0.88);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
  pointer-events: none;
}

.hidden {
  display: none !important;
}
