/* ========================================================= */
/* 2. GIT CITY STYLE START SCREEN & 3D OVERLAY STYLES        */
/* ========================================================= */

#screen-hub {
  position: relative;
  overflow: hidden;
  background: #040711;
  width: 100vw;
  height: 100vh;
}

/* 3D Rotating Isometric City Canvas Background */
canvas#cityCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Floating UI Container over 3D City */
.city-ui-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100vh - 38px);
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  pointer-events: none;
  padding-bottom: 10px;
}

.city-ui-overlay * {
  pointer-events: auto;
}

/* Top Bar HUD */
.city-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
}

.stat-pill-group {
  display: flex;
  gap: 10px;
}

.stat-pill {
  background: rgba(5, 8, 16, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 6px 12px;
  font-family: var(--font-pixel);
  font-size: 10px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.8);
}

.stat-pill span {
  color: #f59e0b;
}

.top-right-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.live-badge {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid #f59e0b;
  color: #f59e0b;
  padding: 5px 10px;
  border-radius: 6px;
  font-family: var(--font-silk);
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 10px #f59e0b;
  animation: pulse 1.2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Center Main Hero Content Box (Centered Spacing) */
.city-main-content {
  max-width: 660px;
  margin: auto auto;
  text-align: center;
  padding: 10px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.city-title-group {
  margin-bottom: 10px;
}

.city-hero-title {
  font-family: var(--font-pixel);
  font-size: 38px;
  color: #ffffff;
  text-shadow: 0 0 24px rgba(0, 0, 0, 0.9), 3px 3px 0px #000;
  letter-spacing: 4px;
  margin-bottom: 4px;
}

.city-hero-title span {
  color: #f59e0b;
  text-shadow: 0 0 24px rgba(245, 158, 11, 0.6), 3px 3px 0px #000;
}

.city-hero-subtitle {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: #a1a1aa;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.5;
}

.city-author {
  font-size: 10px;
  color: #f59e0b;
  font-weight: 700;
  margin-top: 3px;
}

/* Progress Bar Card */
.progress-card {
  width: 100%;
  background: rgba(5, 8, 16, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 10px;
  box-shadow: 0 10px 35px rgba(0,0,0,0.85);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-pixel);
  font-size: 9px;
  color: #fff;
  margin-bottom: 8px;
}

.progress-bar-track {
  width: 100%;
  height: 10px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  width: 87%;
  background: linear-gradient(90deg, #d97706, #f59e0b);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.6);
}

.progress-footer {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #a1a1aa;
  margin-top: 6px;
}

/* Central Entrance Box */
.entrance-box {
  width: 100%;
  background: rgba(5, 8, 16, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 10px 35px rgba(0,0,0,0.85);
  margin-bottom: 10px;
}

.entrance-title {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: #f59e0b;
  text-transform: uppercase;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.username-input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.city-input {
  flex-grow: 1;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 10px 14px;
  color: #fff;
  font-family: var(--font-main);
  font-size: 14px;
  outline: none;
}

.city-input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

.btn-kaywat-lg {
  width: 100%;
  background: #f59e0b;
  color: #000000;
  border: none;
  border-radius: 6px;
  font-family: var(--font-pixel);
  font-size: 11px;
  font-weight: bold;
  padding: 12px 18px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
  transition: all 0.15s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-kaywat-lg:hover {
  transform: translateY(-2px);
  background: #fbbf24;
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.6);
}

/* Dual Action Cards Row */
.action-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  margin-bottom: 10px;
}

.action-btn-card {
  background: #f59e0b;
  color: #000000;
  border-radius: 6px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
}

.action-btn-card:nth-child(2) {
  background: #22c55e;
}

.action-btn-card:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.action-btn-title {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: #000000;
  font-weight: bold;
}

.action-btn-sub {
  font-size: 9px;
  color: rgba(0, 0, 0, 0.7);
}

/* Sub Navigation Buttons Row */
.sub-btn-row {
  display: flex;
  gap: 8px;
  width: 100%;
  justify-content: center;
}

.btn-sub-city {
  background: rgba(5, 8, 16, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #fff;
  font-family: var(--font-pixel);
  font-size: 9px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-sub-city:hover {
  border-color: #f59e0b;
  color: #f59e0b;
}

/* FIXED ULTRA-THIN BOTTOM FOOTER BAR (Pin to viewport bottom) */
.city-bottombar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 38px;
  background: rgba(4, 7, 17, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  box-sizing: border-box;
}

.bottom-player-widget {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bottom-player-btn {
  background: #f59e0b;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #000;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.bottom-track-info {
  font-size: 11px;
  color: #e2e8f0;
}

.activity-ticker {
  font-family: var(--font-terminal);
  font-size: 14px;
  color: #22c55e;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Rotation Control Widget */
.rotation-control-widget {
  position: absolute;
  top: 70px;
  right: 20px;
  background: rgba(5, 8, 16, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 6px 10px;
  font-family: var(--font-pixel);
  font-size: 8px;
  color: #f59e0b;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
}

/* Fly Mode Git City Styling */
.esc-back-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  background: rgba(5, 8, 16, 0.92);
  border: 1px solid #f59e0b;
  color: #f59e0b;
  font-family: var(--font-pixel);
  font-size: 10px;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  z-index: 120;
  display: none;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.3);
  transition: all 0.2s;
}

.esc-back-btn:hover {
  background: #f59e0b;
  color: #000;
}

.city-ui-overlay.fly-mode-active .esc-back-btn {
  display: block;
}

.city-ui-overlay.fly-mode-active .city-topbar,
.city-ui-overlay.fly-mode-active .city-main-content {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.action-btn-card.fly-card {
  background: #22c55e !important;
  color: #000000 !important;
  border: 1px solid #16a34a !important;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4) !important;
}

.action-btn-card.fly-card .action-btn-title {
  color: #000000 !important;
}

.action-btn-card.fly-card .action-btn-sub {
  color: rgba(0, 0, 0, 0.8) !important;
}

.action-btn-card.fly-card:hover {
  transform: translateY(-2px);
  background: #4ade80 !important;
  box-shadow: 0 8px 28px rgba(34, 197, 94, 0.6) !important;
}

