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

body {
  font-family: 'Courier New', monospace;
  background: #050508;
  color: #c8a84b;
  min-height: 100vh;
}

.gg-app { max-width: 520px; margin: 0 auto; padding: 16px; }

.gg-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  margin-bottom: 16px;
}

.gg-header h1 { font-size: 0.95rem; color: #8b0000; }
.gg-header a { color: #888; text-decoration: none; }

.gg-connect {
  text-align: center;
  padding: 32px 16px;
  border: 1px solid rgba(200, 168, 75, 0.3);
  border-radius: 8px;
}

.gg-connect p { font-size: 0.88rem; color: #aaa; margin-bottom: 8px; }
.gg-connect-sub { font-size: 0.75rem !important; color: #666 !important; }

#gg-start {
  margin-top: 16px;
  padding: 12px 24px;
  font-family: inherit;
  background: #8b0000;
  color: #f0d880;
  border: 1px solid #c8a84b;
  cursor: pointer;
}

.gg-game[hidden] { display: none !important; }

#gg-canvas {
  display: block;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  border: 2px solid #333;
  background: #0a0a10;
}

.gg-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

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

.gg-panel {
  padding: 10px;
  border: 1px solid #333;
  border-radius: 6px;
  background: rgba(10, 5, 5, 0.6);
}

.gg-panel h3 {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 8px;
}

.gg-vibe {
  font-size: 1.1rem;
  color: #f88;
  min-height: 1.4em;
  animation: gg-pulse 0.2s ease;
}

@keyframes gg-pulse {
  from { transform: scale(1.05); }
  to { transform: scale(1); }
}

.gg-morse { font-size: 0.85rem; color: #afa; margin-top: 6px; letter-spacing: 0.15em; }
.gg-hint { font-size: 0.68rem; color: #666; line-height: 1.4; margin-bottom: 8px; }

.gg-dir-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.gg-dir-btns button {
  padding: 8px;
  font-family: inherit;
  font-size: 0.75rem;
  background: #1a1a1a;
  border: 1px solid #444;
  color: #ccc;
  cursor: pointer;
}

.gg-dir-btns button:hover { border-color: #c8a84b; }

.gg-decode-msg { font-size: 0.75rem; color: #c44; margin-top: 8px; min-height: 1.2em; }
.gg-controls, .gg-status { font-size: 0.72rem; color: #666; text-align: center; margin-top: 10px; }

.gg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 50;
}

.gg-overlay[hidden] { display: none !important; }
.gg-overlay h2 { color: #8b0000; }
.gg-overlay button {
  padding: 10px 24px;
  font-family: inherit;
  background: #8b0000;
  color: #f0d880;
  border: 1px solid #c8a84b;
  cursor: pointer;
}

.gg-canvas-shake { animation: gg-shake 0.3s ease; }

@keyframes gg-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
