/* Globe Trotter — GeoGuessr-style game with neon treatment */

body {
  margin: 0;
  background: #121320;
  color: #e9e9ed;
  font-family: Inter, system-ui, sans-serif;
  overflow: hidden;
  height: 100vh;
}

/* Header */
.gt-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 24px;
  background: rgba(18, 19, 32, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(145, 132, 217, .15);
}

.gt-back {
  color: rgba(233, 233, 237, .6); text-decoration: none; font-size: 14px;
}
.gt-back:hover { color: #9184d9; }

.gt-title {
  font-family: var(--neon-font, 'Lobster', cursive);
  font-size: 22px; font-weight: 400;
  color: #4aeabc;
  text-shadow: 0 0 12px rgba(74, 234, 188, .5), 0 0 36px rgba(74, 234, 188, .25);
}

.gt-round-info {
  margin-left: auto; display: flex; align-items: center; gap: 20px;
}

.gt-round-badge {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(233, 233, 237, .5);
}
.gt-round-badge strong {
  color: #4aeabc; font-weight: 600;
}

.gt-score-display {
  font-family: var(--neon-font, 'Lobster', cursive);
  font-size: 20px; color: #e9e9ed;
  text-shadow: 0 0 10px rgba(145, 132, 217, .5);
}

/* Street View container */
.gt-streetview {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: #0c0d16;
}

/* Mini map */
.gt-minimap-wrap {
  position: fixed; bottom: 24px; right: 24px; z-index: 50;
  width: 320px; height: 220px;
  border-radius: 12px; overflow: hidden;
  border: 2px solid rgba(74, 234, 188, .4);
  box-shadow: 0 0 24px rgba(74, 234, 188, .15), 0 4px 20px rgba(0, 0, 0, .5);
  transition: width .3s, height .3s;
}
.gt-minimap-wrap.expanded {
  width: 480px; height: 340px;
}
.gt-minimap {
  width: 100%; height: 100%;
}

.gt-minimap-toggle {
  position: absolute; top: 8px; left: 8px; z-index: 55;
  width: 28px; height: 28px; border-radius: 6px;
  background: rgba(18, 19, 32, .85); border: 1px solid rgba(74, 234, 188, .3);
  color: #4aeabc; font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.gt-minimap-toggle:hover { background: rgba(74, 234, 188, .15); }

/* Guess button */
.gt-guess-btn {
  position: fixed; bottom: 24px; right: 360px; z-index: 50;
  padding: 14px 32px; border-radius: 10px;
  font: 600 15px Inter, sans-serif; letter-spacing: .04em;
  background: #4aeabc; color: #121320; border: none;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(74, 234, 188, .4), 0 0 50px rgba(74, 234, 188, .15);
  transition: transform .15s, box-shadow .15s;
}
.gt-guess-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(74, 234, 188, .55), 0 0 60px rgba(74, 234, 188, .2);
}
.gt-guess-btn:disabled {
  opacity: .4; cursor: not-allowed; transform: none;
  box-shadow: none;
}

/* Result overlay */
.gt-result-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 200;
  background: rgba(12, 13, 22, .88);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
}
.gt-result-overlay.hidden { display: none; }

.gt-result-card {
  background: rgba(26, 28, 44, .95);
  border: 1px solid rgba(74, 234, 188, .25);
  border-radius: 16px; padding: 36px 48px;
  text-align: center; max-width: 500px; width: 90%;
  box-shadow: 0 0 40px rgba(74, 234, 188, .1);
}

.gt-result-pts {
  font-family: var(--neon-font, 'Lobster', cursive);
  font-size: 64px; color: #4aeabc;
  text-shadow: 0 0 20px rgba(74, 234, 188, .6), 0 0 50px rgba(74, 234, 188, .3);
  margin: 0;
}
.gt-result-pts-label {
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(233, 233, 237, .5); margin-top: 4px;
}

.gt-result-distance {
  font-size: 18px; color: #e9e9ed; margin-top: 20px;
}
.gt-result-distance strong {
  color: #4aeabc;
}

.gt-result-map {
  width: 100%; height: 200px; border-radius: 10px;
  margin-top: 20px; overflow: hidden;
  border: 1px solid rgba(233, 233, 237, .1);
}

.gt-result-next {
  margin-top: 24px; padding: 12px 36px; border-radius: 8px;
  font: 600 14px Inter, sans-serif;
  background: transparent; border: 1px solid #4aeabc;
  color: #4aeabc; cursor: pointer;
  transition: background .15s;
}
.gt-result-next:hover {
  background: rgba(74, 234, 188, .12);
}

/* Final results */
.gt-final-card {
  background: rgba(26, 28, 44, .95);
  border: 1px solid rgba(74, 234, 188, .25);
  border-radius: 16px; padding: 40px 48px;
  text-align: center; max-width: 520px; width: 90%;
  box-shadow: 0 0 40px rgba(74, 234, 188, .1);
}

.gt-final-title {
  font-family: var(--neon-font, 'Lobster', cursive);
  font-size: 36px; color: #4aeabc;
  text-shadow: 0 0 16px rgba(74, 234, 188, .5);
  margin: 0 0 8px;
}

.gt-final-score {
  font-family: var(--neon-font, 'Lobster', cursive);
  font-size: 72px; color: #e9e9ed;
  text-shadow: 0 0 20px rgba(145, 132, 217, .6);
  margin: 12px 0;
}

.gt-final-sub {
  font-size: 14px; color: rgba(233, 233, 237, .5); margin-bottom: 4px;
}

.gt-final-breakdown {
  list-style: none; padding: 0; margin: 20px 0;
  text-align: left;
}
.gt-final-breakdown li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid rgba(233, 233, 237, .08);
  font-size: 14px;
}
.gt-final-breakdown li span:last-child {
  font-weight: 600; color: #4aeabc;
}

.gt-final-actions {
  display: flex; gap: 12px; justify-content: center; margin-top: 24px;
}

.gt-btn-play-again {
  padding: 12px 32px; border-radius: 8px;
  font: 600 14px Inter, sans-serif;
  background: #4aeabc; color: #121320; border: none; cursor: pointer;
  box-shadow: 0 0 16px rgba(74, 234, 188, .3);
}
.gt-btn-play-again:hover {
  box-shadow: 0 0 24px rgba(74, 234, 188, .45);
}

.gt-btn-lobby {
  padding: 12px 32px; border-radius: 8px;
  font: 600 14px Inter, sans-serif;
  background: transparent; border: 1px solid rgba(233, 233, 237, .2);
  color: rgba(233, 233, 237, .7); cursor: pointer;
}
.gt-btn-lobby:hover { border-color: rgba(233, 233, 237, .4); color: #e9e9ed; }

/* Mode select overlay */
.gt-mode-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 300;
  background: rgba(12, 13, 22, .92);
  display: flex; align-items: center; justify-content: center;
}
.gt-mode-overlay.hidden { display: none; }

.gt-mode-card {
  background: rgba(26, 28, 44, .95);
  border: 1px solid rgba(74, 234, 188, .2);
  border-radius: 16px; padding: 40px 48px;
  text-align: center; max-width: 420px; width: 90%;
}

.gt-mode-title {
  font-family: var(--neon-font, 'Lobster', cursive);
  font-size: 42px; color: #4aeabc;
  text-shadow: 0 0 16px rgba(74, 234, 188, .5), 0 0 40px rgba(74, 234, 188, .25);
  margin: 0 0 8px;
}

.gt-mode-sub {
  font-size: 14px; color: rgba(233, 233, 237, .5); margin-bottom: 28px;
}

.gt-mode-btn {
  display: block; width: 100%; padding: 14px; margin-bottom: 10px;
  border-radius: 10px; font: 600 15px Inter, sans-serif;
  background: transparent; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.gt-mode-btn.primary {
  border: 1px solid #4aeabc; color: #4aeabc;
}
.gt-mode-btn.primary:hover {
  background: rgba(74, 234, 188, .12);
}
.gt-mode-btn.secondary {
  border: 1px solid rgba(233, 233, 237, .18); color: rgba(233, 233, 237, .7);
}
.gt-mode-btn.secondary:hover {
  border-color: rgba(233, 233, 237, .35); color: #e9e9ed;
}

/* Loading spinner */
.gt-loading {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 10; text-align: center;
}
.gt-loading.hidden { display: none; }

.gt-spinner {
  width: 40px; height: 40px; border: 3px solid rgba(74, 234, 188, .2);
  border-top-color: #4aeabc; border-radius: 50%;
  animation: gt-spin 1s linear infinite; margin: 0 auto 12px;
}
@keyframes gt-spin { to { transform: rotate(360deg); } }

.gt-loading-text {
  font-size: 14px; color: rgba(233, 233, 237, .5);
}

/* Responsive */
@media (max-width: 768px) {
  .gt-header { padding: 10px 16px; gap: 12px; }
  .gt-title { font-size: 18px; }
  .gt-score-display { font-size: 16px; }

  .gt-minimap-wrap {
    width: 200px; height: 150px;
    bottom: 16px; right: 16px;
  }
  .gt-minimap-wrap.expanded { width: 300px; height: 220px; }

  .gt-guess-btn {
    right: 232px; bottom: 16px;
    padding: 10px 20px; font-size: 13px;
  }

  .gt-result-card, .gt-final-card, .gt-mode-card { padding: 28px 24px; }
  .gt-result-pts { font-size: 48px; }
  .gt-final-score { font-size: 56px; }
}

@media (max-width: 480px) {
  .gt-round-badge { display: none; }

  .gt-minimap-wrap {
    width: 160px; height: 120px;
    bottom: 12px; right: 12px;
  }

  .gt-guess-btn {
    right: auto; left: 12px; bottom: 12px;
    padding: 10px 16px; font-size: 12px;
  }
}
