﻿:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #102037;
  --accent: #0b7a75;
  --accent-dark: #085a56;
  --muted: #4a5f7a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Segoe UI, Arial, sans-serif;
  background: radial-gradient(circle at top right, #dff4ff, var(--bg));
  color: var(--text);
}
.app {
  max-width: 980px;
  margin: 24px auto;
  padding: 0 12px;
  display: grid;
  gap: 14px;
}
.card {
  background: var(--card);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 8px 22px rgba(16, 32, 55, 0.08);
}
h1, h2 { margin: 0 0 8px; }
p { margin: 6px 0; color: var(--muted); }

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent), var(--accent-dark));
  color: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-weight: 800;
  letter-spacing: 0.5px;
  position: relative;
  box-shadow: 0 0 0 2px var(--accent);
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: logoPulse 2s ease-in-out infinite;
}

.logo-glyph {
  font-size: 12px;
  line-height: 1;
}

.logo-wave {
  font-size: 14px;
  line-height: 1;
  transform: translateY(-1px);
  animation: logoWave 1.2s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50% { transform: scale(1.06); opacity: 1; }
}

@keyframes logoWave {
  0%, 100% { transform: translateY(-1px) scaleX(1); }
  50% { transform: translateY(-2px) scaleX(1.12); }
}

.row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 4px 10px;
}
input, button, select, textarea {
  border-radius: 8px;
  border: 1px solid #c8d7e8;
  padding: 10px;
  font-size: 14px;
}
input, select, textarea { flex: 1; min-width: 180px; }
textarea { resize: vertical; }
button {
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
}
button:hover { background: var(--accent-dark); }
strong { color: var(--text); }

.missions,
.submissions {
  display: grid;
  gap: 10px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.item {
  border: 1px solid #d8e3ef;
  border-radius: 10px;
  padding: 10px;
  background: #fbfdff;
}

.item h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.pill {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e8f5f4;
  color: #085a56;
  font-size: 12px;
  font-weight: 600;
}

.media-box {
  width: 100%;
  border-radius: 8px;
  background: #eef4fb;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

.status {
  font-weight: 600;
}

.status.pending {
  color: #a16000;
}

.status.approved {
  color: #0a6a37;
}

.status.rejected {
  color: #9f2e2e;
}

.actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.secondary {
  background: #e6f0f8;
  color: #102037;
}

.secondary:hover {
  background: #d8e8f6;
}

.game-frame-wrap {
  border: 1px solid #d8e3ef;
  border-radius: 10px;
  overflow: hidden;
  min-height: 280px;
  background: #f9fcff;
  padding: 10px;
}

#gameCanvas {
  width: 100%;
  max-width: 520px;
  min-height: 280px;
  border: 0;
  background: #ffffff;
  border: 1px solid #d8e3ef;
  border-radius: 8px;
}

.tap-game {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.hidden {
  display: none;
}

.mono {
  font-family: Consolas, "Courier New", monospace;
}

.ok {
  color: #0a6a37;
  font-weight: 600;
}

.tiny {
  font-size: 12px;
}

#onboardingTabs {
  border: 1px solid #d8e3ef;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
  background: #fbfdff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#geoMap {
  width: 100%;
  height: 280px;
  border: 1px solid #d8e3ef;
  border-radius: 10px;
  background: #f9fcff;
  margin-bottom: 8px;
}

.camera-box {
  width: min(100%, 420px);
  min-height: 240px;
  border: 1px solid #d8e3ef;
  border-radius: 10px;
  background: #f9fcff;
  object-fit: cover;
}

.chat-feed {
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
  border: 1px solid #d8e3ef;
  border-radius: 10px;
  padding: 10px;
  background: #f9fcff;
}

.chat-row {
  display: grid;
  gap: 4px;
}

.chat-row.out {
  justify-items: end;
}

.chat-row.in {
  justify-items: start;
}

.chat-bubble {
  max-width: min(100%, 520px);
  border-radius: 10px;
  padding: 8px;
  border: 1px solid #d8e3ef;
  background: #ffffff;
}

.folder-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.folder-block {
  display: grid;
  gap: 6px;
  margin-bottom: 8px;
}

.folder-btn {
  background: #e6f0f8;
  color: #102037;
  border: 1px solid #c8d7e8;
  padding: 8px 10px;
}

.folder-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

@media (max-width: 700px) {
  .grid { grid-template-columns: 1fr; }
}
