:root {
  --gg-accent: #5edfff;
}

.gg-area {
  max-width: 880px;
}

.gg-roundhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0 10px;
  padding: 8px 12px;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.gg-roundlabel {
  font-size: 14px;
  color: var(--text);
}
.gg-roundlabel b {
  color: var(--gg-accent);
  font-size: 16px;
}
.gg-opp-progress {
  font-size: 12px;
  color: var(--muted);
}

.gg-dots {
  display: flex;
  gap: 6px;
}
.gg-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--line);
}
.gg-dot-cur {
  border-color: var(--gg-accent);
  box-shadow: 0 0 8px var(--gg-accent);
}
.gg-dot-done {
  background: var(--gg-accent);
  border-color: var(--gg-accent);
}

/* Screenshot oben — max 40vh */
.gg-shot {
  position: relative;
  width: 100%;
  max-height: 40vh;
  aspect-ratio: 16 / 9;
  background: #0a0e14;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}
.gg-shot img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 40vh;
  object-fit: cover;
}
.gg-shot-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: var(--muted);
  font-size: 16px;
  text-align: center;
}
.gg-shot-fb-text small {
  display: block;
  font-size: 12px;
  margin-top: 4px;
}
.gg-shot-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 6px 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0));
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Karte */
.gg-map-wrap {
  position: relative;
  margin-bottom: 10px;
}
.gg-map {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  background: #0a0e14;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  user-select: none;
}
.gg-map img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.gg-map-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-style: italic;
}
.gg-map-fallback::after {
  content: 'Karte folgt — Avana lädt das Asset hoch.';
}
.gg-map.gg-map-active {
  cursor: crosshair;
  border-color: var(--gg-accent);
  box-shadow: 0 0 0 1px rgba(94, 223, 255, 0.25), 0 0 18px rgba(94, 223, 255, 0.15);
}

/* Pins */
.gg-pin {
  position: absolute;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  margin-top: -9px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.55), 0 1px 4px rgba(0,0,0,0.6);
  pointer-events: none;
  z-index: 2;
}
.gg-pin-pending {
  background: var(--gg-accent);
  animation: ggPinPulse 900ms ease-in-out infinite;
}
.gg-pin-you {
  background: #ff4a4a;
}
.gg-pin-truth {
  background: #5fd97a;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  margin-top: -11px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.55), 0 0 14px rgba(95, 217, 122, 0.55);
}
@keyframes ggPinPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.25); }
}

.gg-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(to right, #ff4a4a, #5fd97a);
  transform-origin: 0 50%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.85;
}

/* Steuerung */
.gg-ctrl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 0;
  padding: 10px 12px;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.gg-hint {
  font-size: 13px;
  color: var(--muted);
  flex: 1;
}
.gg-confirm {
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 8px;
  border: 2px solid var(--gg-accent);
  background: rgba(94, 223, 255, 0.08);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  transition: background 120ms, transform 80ms, box-shadow 120ms;
}
.gg-confirm:hover:not(:disabled) {
  background: rgba(94, 223, 255, 0.18);
  box-shadow: 0 0 14px rgba(94, 223, 255, 0.35);
}
.gg-confirm:active:not(:disabled) {
  transform: translateY(1px);
}
.gg-confirm:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  border-color: var(--line);
}

.gg-wait {
  margin: 12px 0 0;
  padding: 14px;
  background: var(--panel2);
  border: 1px dashed var(--line);
  border-radius: 8px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* Reveal-Block */
.gg-reveal {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(94, 223, 255, 0.08);
  border: 1px solid rgba(94, 223, 255, 0.35);
  color: var(--text);
  animation: ggRevealIn 220ms ease-out;
}
.gg-reveal-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--gg-accent);
}
.gg-reveal-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  margin-bottom: 4px;
}
.gg-reveal-row b {
  color: var(--gg-accent);
}
.gg-reveal-hint {
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
}
@keyframes ggRevealIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.gg-actions {
  margin-top: 14px;
  text-align: center;
}

/* Endbildschirm */
.gg-end .reason {
  margin-bottom: 12px;
}
.gg-recap {
  margin: 12px 0;
  max-height: 280px;
  overflow-y: auto;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel2);
}
.gg-recap-row {
  display: grid;
  grid-template-columns: 28px 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.gg-recap-row:last-child { border-bottom: none; }
.gg-recap-num { color: var(--muted); font-weight: 700; }
.gg-recap-pair { color: var(--text); }
.gg-recap-tag {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--panel);
  color: var(--muted);
  white-space: nowrap;
}
.gg-recap-tag.ok  { color: #5fd97a; }
.gg-recap-tag.bad { color: #ff7a7a; }
.gg-recap-tag.tie { color: var(--gg-accent); }

@media (max-width: 600px) {
  .gg-shot { aspect-ratio: 16 / 10; }
  .gg-map  { aspect-ratio: 4 / 3; }
  .gg-ctrl {
    flex-direction: column;
    align-items: stretch;
  }
  .gg-confirm { width: 100%; }
  .gg-recap-row {
    grid-template-columns: 24px 1fr;
  }
  .gg-recap-row .gg-recap-tag {
    grid-column: 2 / 3;
    justify-self: start;
  }
}
