/* FONTS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Oswald:wght@500;700&display=swap');

/* CORE */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow: hidden;
  background: #000;
  font-family: 'Inter', sans-serif;
  color: white;
  user-select: none;
}

/* GLOBE LAYER */
#world-globe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.globe-label {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  pointer-events: none;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cesium-viewer-bottom {
  display: none !important;
}

/* Hide bottom logo cruft */

/* UI LAYER */
#ui-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
}

/* UTILS */
.pointer-events-auto {
  pointer-events: auto;
}

.hidden {
  display: none !important;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  pointer-events: auto;
  transition: all 0.3s;
}

.full-width {
  width: 100%;
}

.center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* GLASSMORPHISM - PREMIUM LOOK */
.glass-panel {
  background: rgba(16, 18, 27, 0.85);
  /* Deep dark blue-grey */
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.glass-bar {
  background: rgba(10, 10, 15, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  pointer-events: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* TYPOGRAPHY */
h1,
h2 {
  font-family: 'Oswald', sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 0;
}

.game-title {
  font-size: 2.5rem;
  background: linear-gradient(45deg, #fff, #aaa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* INPUTS & BUTTONS */
.btn {
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 1px;
  margin: 8px;
  transition: all 0.2s ease;
  text-transform: uppercase;
}

.btn.primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.btn.primary:disabled {
  background: #444;
  color: #888;
  transform: none;
  box-shadow: none;
  cursor: not-allowed;
}

.btn.secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ccc;
}

.btn.secondary:hover {
  border-color: white;
  color: white;
}

input {
  display: block;
  width: 100%;
  margin-bottom: 15px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 8px;
  outline: none;
  font-family: 'Inter', sans-serif;
  transition: border 0.2s;
}

input:focus {
  border-color: #3b82f6;
  background: rgba(0, 0, 0, 0.5);
}

input[type="color"] {
  padding: 5px;
  height: 45px;
  cursor: pointer;
}

/* LAYOUT: Creation */
.creation-box {
  width: 700px;
  max-width: 95%;
}

.creation-grid {
  display: flex;
  gap: 30px;
  text-align: left;
  margin-bottom: 2rem;
}

.col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.col label {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 5px;
  font-weight: 600;
  text-transform: uppercase;
}

.flag-box {
  width: 140px;
  height: 140px;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s;
  background: rgba(0, 0, 0, 0.2);
}

.flag-box:hover {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
}

.flag-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.agreements {
  text-align: left;
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 1rem;
}

.agreements input {
  display: inline-block;
  width: auto;
  margin-right: 10px;
  vertical-align: middle;
  margin-bottom: 0;
}

.agreements label {
  display: block;
  margin-bottom: 5px;
  cursor: pointer;
}

/* PICKING OVERLAY */
.ui-overlay-bottom {
  position: absolute;
  bottom: 40px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 20;
}

.pick-bar {
  padding: 15px 40px;
  border-radius: 50px;
  display: flex;
  gap: 20px;
  align-items: center;
  background: rgba(10, 10, 15, 0.95);
}

#pick-info {
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  min-width: 200px;
  text-align: center;
}

/* GAME HUD SIDEBAR */
.ui-overlay-left {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  pointer-events: none;
}

.sidebar {
  width: 90px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sb-top {
  font-family: 'Oswald';
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #3b82f6;
  font-weight: bold;
}

.sb-mid {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.sb-btn {
  width: 60px;
  height: 60px;
  margin: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #888;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 700;
  transition: all 0.2s;
}

.sb-btn:hover {
  background: rgba(59, 130, 246, 0.2);
  color: white;
  border-color: #3b82f6;
  transform: scale(1.05);
}

.sb-bot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fbbf24;
}

.btn.small {
  padding: 5px 10px;
  font-size: 0.8rem;
  margin: 0;
  width: 100%;
}