/* ══ Solar System Explorer — classic.css v2.1 (Modern UI Update) ══════════════════════════ */

/* === RESET === */
#sg-wrap * { box-sizing: border-box; }

/* === WRAP === */
#sg-wrap {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, #050b1a 0%, #0a142c 50%, #030814 100%);
  color: #e8f4ff;
  position: relative;
  min-height: 640px;
  overflow: hidden;
  border-radius: 20px;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(4, 12, 30, 0.8), 0 0 80px rgba(60,120,255,0.15);
}

/* === SCREENS === */
.sg-screen { display: none; position: relative; min-height: 640px; padding: 28px 24px; }
.sg-screen.active { display: flex; flex-direction: column; justify-content: space-between; }

/* === STAR FIELD === */
.sg-stars {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0;
  background:
    radial-gradient(1px 1px at 8% 12%, rgba(255,255,255,0.9) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 18% 68%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 27% 34%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(2px 2px at 35% 85%, rgba(180,210,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 45% 22%, rgba(255,255,255,0.9) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 52% 55%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 63% 10%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 71% 78%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(2px 2px at 80% 42%, rgba(180,210,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 88% 90%, rgba(255,255,255,0.9) 0%, transparent 100%),
    radial-gradient(1px 1px at 92% 25%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 15% 50%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 72%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 57% 38%, rgba(255,255,255,0.9) 0%, transparent 100%),
    radial-gradient(2px 2px at 75% 15%, rgba(180,210,255,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 95% 60%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 3% 80%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 48% 95%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 22% 8%, rgba(255,255,255,0.9) 0%, transparent 100%),
    radial-gradient(1px 1px at 68% 62%, rgba(255,255,255,0.7) 0%, transparent 100%);
  animation: sg-twinkle 4s ease-in-out infinite alternate;
}
@keyframes sg-twinkle {
  from { opacity: 0.5; transform: scale(1); }
  to { opacity: 1; transform: scale(1.02); }
}

.sg-planet-ball {
  display: inline-block; border-radius: 50%; vertical-align: middle; flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.15));
}

/* ══ NAME SCREEN ══ */
#sg-screen-name { align-items: center; justify-content: center; }
.sg-orbit-bg { position: absolute; top: 50%; left: 50%; width: 1px; height: 1px; pointer-events: none; z-index: 0; }
.sg-sun-hero {
  position: absolute; width: 64px; height: 64px;
  background: radial-gradient(circle at 35% 35%, #fff7c0, #ffcc00 40%, #ff8800 80%);
  border-radius: 50%; transform: translate(-50%, -50%);
  box-shadow: 0 0 0 8px rgba(255,180,0,0.15), 0 0 0 16px rgba(255,160,0,0.08), 0 0 60px rgba(255,180,0,0.4);
  animation: sg-sun-pulse 4s ease-in-out infinite;
}
@keyframes sg-sun-pulse {
  0%,100% { box-shadow: 0 0 0 8px rgba(255,180,0,0.15), 0 0 0 16px rgba(255,160,0,0.08), 0 0 60px rgba(255,180,0,0.4); }
  50% { box-shadow: 0 0 0 12px rgba(255,180,0,0.2), 0 0 0 24px rgba(255,160,0,0.1), 0 0 90px rgba(255,180,0,0.5); }
}
.sg-planet-orbit {
  position: absolute; width: calc(var(--r) * 2); height: calc(var(--r) * 2);
  border: 1px solid rgba(255,255,255,0.05); border-radius: 50%;
  transform: translate(calc(-50%), calc(-50%)); animation: sg-orbit-spin var(--dur) linear infinite;
}
.sg-orb {
  position: absolute; top: 0; left: 50%;
  margin-left: calc(var(--s) / -2); margin-top: calc(var(--s) / -2);
  width: var(--s); height: var(--s);
  background: radial-gradient(circle at 30% 30%, var(--ch), var(--c) 60%, var(--cd));
  border-radius: 50%; box-shadow: 0 0 12px rgba(255,255,255,0.25);
}
@keyframes sg-orbit-spin { from { transform: translate(-50%,-50%) rotate(0deg); } to { transform: translate(-50%,-50%) rotate(360deg); } }

.sg-name-card { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.sg-logo {
  font-size: 2.8rem; font-weight: 900; letter-spacing: -1px;
  background: linear-gradient(135deg, #7de8e8 0%, #4fa3ff 50%, #a78bfa 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  filter: drop-shadow(0 0 25px rgba(79,163,255,0.5));
}
.sg-tagline { font-size: 1.05rem; color: #8faecb; letter-spacing: 0.5px; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }

#sg-player-name {
  background: rgba(255,255,255,0.04); backdrop-filter: blur(4px);
  border: 1.5px solid rgba(125,232,232,0.2);
  color: #e8f4ff; border-radius: 14px; padding: 14px 22px;
  font-size: 1rem; width: 300px; text-align: center; outline: none;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}
#sg-player-name::placeholder { color: rgba(125,170,210,0.35); }
#sg-player-name:focus { border-color: #7de8e8; background: rgba(125,232,232,0.06); box-shadow: 0 0 15px rgba(125,232,232,0.2), inset 0 2px 4px rgba(0,0,0,0.2); }

/* ══ BUTTONS ══ */
.sg-btn {
  cursor: pointer; border: none; border-radius: 14px;
  font-size: 1rem; font-weight: 700; padding: 14px 28px;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s, background 0.2s, opacity 0.2s;
  letter-spacing: 0.3px; line-height: 1;
}
.sg-btn:active { transform: scale(0.96) translateY(0) !important; }
.sg-btn-primary { background: linear-gradient(135deg, #4fa3ff, #7de8e8); color: #040c1e; box-shadow: 0 6px 20px rgba(79,163,255,0.3); }
.sg-btn-primary:hover { box-shadow: 0 10px 25px rgba(79,163,255,0.45), 0 0 15px rgba(125,232,232,0.3); transform: translateY(-3px); }
.sg-btn-secondary { background: rgba(255,255,255,0.05); backdrop-filter: blur(4px); border: 1.5px solid rgba(255,255,255,0.12); color: #e8f4ff; }
.sg-btn-secondary:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.25); transform: translateY(-2px); }
.sg-btn-sm { font-size: 0.8rem; padding: 8px 16px; border-radius: 10px; }
.sg-btn-hint { background: rgba(255,210,0,0.06); backdrop-filter: blur(4px); border: 1px solid rgba(255,210,0,0.25); color: #ffd966; }
.sg-btn-hint:hover { background: rgba(255,210,0,0.15); border-color: rgba(255,210,0,0.45); transform: translateY(-1px); }

/* ══ TOP BAR ══ */
.sg-top-bar {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 18px; font-size: 0.88rem; color: #7a9ab8;
  border-bottom: 1px solid rgba(255,255,255,0.03); margin-bottom: 10px;
}
#sg-player-label { font-weight: 700; color: #c5e0ff; }
#sg-total-score { font-weight: 700; color: #ffd966; font-size: 1rem; text-shadow: 0 0 10px rgba(255,217,102,0.2); }

/* ══ MODE SELECT ══ */
.sg-section-title { position: relative; z-index: 1; font-size: 1.6rem; font-weight: 800; text-align: center; margin-bottom: 24px; color: #c5e0ff; letter-spacing: -0.5px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.sg-mode-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 4px 0; }
.sg-mode-card {
  background: rgba(255,255,255,0.02); backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255,255,255,0.06);
  border-radius: 20px; padding: 24px 20px; text-align: center;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s;
  position: relative; overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.sg-mode-card::before { content: ''; position: absolute; inset: 0; border-radius: 20px; background: linear-gradient(135deg, transparent 50%, rgba(125,232,232,0.03)); pointer-events: none; }
.sg-mode-card:hover { border-color: rgba(125,232,232,0.35); background: rgba(125,232,232,0.04); transform: translateY(-5px) scale(1.01); box-shadow: 0 15px 35px rgba(4, 12, 30, 0.4), 0 0 20px rgba(79,163,255,0.15); }
.sg-mode-card:active { transform: translateY(-1px) scale(0.99); }
.sg-mode-icon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.9rem; margin: 0 auto 14px; box-shadow: inset 0 2px 4px rgba(255,255,255,0.1); }
.sg-mode-card[data-mode="whoarei"] .sg-mode-icon { background: rgba(125,232,232,0.1); color: #7de8e8; box-shadow: 0 0 15px rgba(125,232,232,0.1); }
.sg-mode-card[data-mode="sizeup"] .sg-mode-icon { background: rgba(79,163,255,0.1); color: #4fa3ff; box-shadow: 0 0 15px rgba(79,163,255,0.1); }
.sg-mode-card[data-mode="build"] .sg-mode-icon { background: rgba(167,139,250,0.1); color: #a78bfa; box-shadow: 0 0 15px rgba(167,139,250,0.1); }
.sg-mode-card[data-mode="quiz"] .sg-mode-icon { background: rgba(255,180,0,0.1); color: #ffb400; box-shadow: 0 0 15px rgba(255,180,0,0.1); }
.sg-mode-card h3 { font-size: 1.1rem; font-weight: 700; color: #e8f4ff; margin-bottom: 6px; letter-spacing: -0.2px; }
.sg-mode-card p { font-size: 0.82rem; color: #7a9ab8; line-height: 1.45; }
.sg-badge { position: absolute; top: 14px; right: 16px; font-size: 1.1rem; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); }

/* ══ GAME HEADER ══ */
.sg-game-header { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,0.03); margin-bottom: 12px; }
.sg-back-btn { background: rgba(255,255,255,0.05); backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,0.12); color: #99c0e0; border-radius: 10px; padding: 8px 16px; cursor: pointer; font-size: 0.82rem; font-weight: 600; transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s; }
.sg-back-btn:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.25); color: #fff; transform: translateX(-2px); }
.sg-mode-title { font-size: 1.05rem; font-weight: 700; color: #7de8e8; letter-spacing: 0.3px; text-shadow: 0 0 10px rgba(125,232,232,0.2); }

.sg-game-body { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; flex: 1; width: 100%; }

/* ══ WHO AM I ══ */
#sg-wai-planet-display { width: 120px; height: 120px; display: flex; align-items: center; justify-content: center; font-size: 5.5rem; filter: drop-shadow(0 0 25px rgba(125,232,232,0.35)); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
#sg-wai-clues-box { background: rgba(255,255,255,0.02); backdrop-filter: blur(4px); border: 1px solid rgba(125,232,232,0.12); border-radius: 16px; padding: 20px 24px; text-align: center; width: 100%; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.sg-clue-header { font-size: 0.75rem; color: #ffd966; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; text-shadow: 0 0 8px rgba(255,217,102,0.2); }
.sg-clue-text { font-size: 1.05rem; color: #c5e0ff; line-height: 1.6; margin-bottom: 12px; }

/* ══ OPTIONS ══ */
.sg-options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; margin-top: auto; }
.sg-option-btn { background: rgba(255,255,255,0.03); backdrop-filter: blur(4px); border: 1.5px solid rgba(255,255,255,0.08); color: #e8f4ff; border-radius: 14px; padding: 16px 14px; cursor: pointer; font-size: 0.95rem; font-weight: 600; transition: background 0.2s, border-color 0.2s, transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s; display: flex; align-items: center; justify-content: center; gap: 10px; line-height: 1.2; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.sg-option-btn:hover:not(:disabled) { background: rgba(125,232,232,0.06); border-color: rgba(125,232,232,0.45); transform: translateY(-2px) scale(1.02); box-shadow: 0 8px 20px rgba(4,12,30,0.3), 0 0 12px rgba(125,232,232,0.15); }
.sg-option-btn:disabled { cursor: default; }
.sg-opt-correct { background: rgba(40,200,100,0.16) !important; border-color: #28c864 !important; color: #7effb4 !important; box-shadow: 0 0 15px rgba(40,200,100,0.2) !important; }
.sg-opt-wrong { background: rgba(220,60,60,0.16) !important; border-color: #e04040 !important; color: #ff9090 !important; box-shadow: 0 0 15px rgba(220,60,60,0.2) !important; }

/* ══ SIZE IT UP ══ */
.sg-siu-question { font-size: 1.2rem; font-weight: 800; color: #ffd966; text-align: center; letter-spacing: -0.3px; text-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.sg-siu-planets { display: flex; align-items: center; gap: 20px; width: 100%; margin-top: auto; margin-bottom: auto; }
.sg-siu-choice { flex: 1; background: rgba(255,255,255,0.02); backdrop-filter: blur(4px); border: 2px solid rgba(255,255,255,0.07); border-radius: 20px; padding: 26px 16px; text-align: center; cursor: pointer; transition: border-color 0.25s, background 0.25s, transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s; box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.sg-siu-choice:hover { border-color: rgba(125,232,232,0.45); background: rgba(125,232,232,0.05); transform: translateY(-5px) scale(1.03); box-shadow: 0 12px 30px rgba(4,12,30,0.4), 0 0 20px rgba(79,163,255,0.2); }
.sg-siu-planet-display { margin-bottom: 14px; display: flex; justify-content: center; }
.sg-siu-label { font-weight: 700; font-size: 1rem; color: #c5e0ff; }
.sg-siu-vs { font-size: 1.3rem; font-weight: 900; color: #ffd966; text-shadow: 0 0 16px rgba(255,210,0,0.4), 0 2px 4px rgba(0,0,0,0.5); }

/* ══ BUILD MODE ══ */
.sg-build-body { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 14px; flex: 1; width: 100%; }
.sg-build-instruction { font-size: 0.9rem; color: #8faecb; text-align: center; letter-spacing: 0.2px; }
#sg-orbit-map { position: relative; width: 100%; background: rgba(255,255,255,0.01); backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,0.06); border-radius: 18px; padding: 16px 14px; display: flex; flex-direction: column; gap: 8px; align-items: center; box-shadow: inset 0 4px 20px rgba(0,0,0,0.2); }
.sg-sun-center { width: 46px; height: 46px; background: radial-gradient(circle at 35% 35%, #fff7c0, #ffcc00 40%, #ff8800 80%); border-radius: 50%; box-shadow: 0 0 0 6px rgba(255,180,0,0.12), 0 0 35px rgba(255,180,0,0.4); margin-bottom: 6px; animation: sg-sun-pulse 4s ease-in-out infinite; }
.sg-orbit-slot { width: 100%; height: 50px; border: 2px dashed rgba(125,232,232,0.18); border-radius: 12px; display: flex; align-items: center; padding: 0 16px; gap: 12px; font-size: 0.78rem; font-weight: 700; color: rgba(125,232,232,0.25); transition: border-color 0.2s, background 0.2s, box-shadow 0.2s; }
.sg-orbit-slot::before { content: 'Orbit ' attr(data-order); font-size: 0.72rem; color: rgba(125,232,232,0.25); min-width: 48px; letter-spacing: 0.5px; }
.sg-drag-over { border-color: #7de8e8 !important; background: rgba(125,232,232,0.08); box-shadow: 0 0 10px rgba(125,232,232,0.15); }
.sg-slot-filled { border-style: solid; border-color: rgba(125,232,232,0.35); background: rgba(255,255,255,0.02); }
.sg-slot-correct { border-color: #28c864 !important; border-style: solid; background: rgba(40,200,100,0.06); }
.sg-slot-wrong { border-color: #e04040 !important; border-style: solid; background: rgba(220,60,60,0.06); animation: sg-shake 0.3s ease; }
@keyframes sg-shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.sg-slot-label { font-size: 0.88rem; font-weight: 700; color: #c5e0ff; }
.sg-slot-spin .sg-planet-ball { animation: sg-spin 1.2s linear infinite; }
@keyframes sg-spin { to { transform: rotate(360deg); } }
#sg-planet-bank { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; width: 100%; padding: 6px 0; }
.sg-planet-chip { background: rgba(255,255,255,0.04); backdrop-filter: blur(4px); border: 1.5px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 10px 16px; display: flex; align-items: center; gap: 8px; cursor: grab; font-size: 0.88rem; font-weight: 700; color: #c5e0ff; transition: opacity 0.2s, border-color 0.15s, background 0.15s, transform 0.15s; user-select: none; box-shadow: 0 3px 8px rgba(0,0,0,0.1); }
.sg-planet-chip:hover { border-color: rgba(125,232,232,0.4); background: rgba(125,232,232,0.06); transform: translateY(-2px); box-shadow: 0 5px 12px rgba(0,0,0,0.15); }
.sg-planet-chip[style*="opacity: 0.3"] { cursor: default; pointer-events: none; }

/* ══ QUICK QUIZ ══ */
.sg-q-num { font-size: 0.75rem; font-weight: 800; color: #4fa3ff; text-transform: uppercase; letter-spacing: 1.5px; text-shadow: 0 0 10px rgba(79,163,255,0.2); }
.sg-quiz-planet-display { width: 100px; height: 100px; display: flex; align-items: center; justify-content: center; filter: drop-shadow(0 0 25px rgba(79,163,255,0.35)); }
.sg-quiz-question { font-size: 1.1rem; font-weight: 700; text-align: center; color: #e8f4ff; line-height: 1.5; padding: 0 10px; }

/* ══ PROGRESS BAR ══ */
.sg-progress-bar { width: 100%; height: 6px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; margin-top: 6px; }
.sg-progress-bar > div { height: 100%; background: linear-gradient(90deg, #7de8e8, #4fa3ff); border-radius: 4px; width: 0%; transition: width 0.45s cubic-bezier(.4,0,.2,1); }

/* ══ FEEDBACK ══ */
.sg-feedback { padding: 12px 20px; border-radius: 12px; font-weight: 700; font-size: 0.92rem; text-align: center; animation: sg-pop-in 0.25s cubic-bezier(.34,1.56,.64,1); box-shadow: 0 4px 15px rgba(0,0,0,0.15); width: 100%; }
.sg-feedback.hidden { display: none; }
.sg-correct { background: rgba(40,200,100,0.12); color: #7effb4; border: 1px solid rgba(40,200,100,0.25); box-shadow: inset 0 0 10px rgba(40,200,100,0.05); }
.sg-wrong { background: rgba(220,60,60,0.12); color: #ff9090; border: 1px solid rgba(220,60,60,0.25); box-shadow: inset 0 0 10px rgba(220,60,60,0.05); }
@keyframes sg-pop-in { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ══ END SCREEN ══ */
#sg-screen-end { align-items: center; justify-content: center; }
.sg-end-card { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 18px; background: rgba(255,255,255,0.03); backdrop-filter: blur(6px); border: 1.5px solid rgba(125,232,232,0.18); border-radius: 24px; padding: 42px 32px; max-width: 440px; width: 100%; text-align: center; box-shadow: 0 15px 40px rgba(4,12,30,0.5), 0 0 50px rgba(79,163,255,0.1); animation: sg-pop-in 0.35s cubic-bezier(.34,1.56,.64,1); }
#sg-end-trophy { font-size: 4.2rem; filter: drop-shadow(0 0 25px rgba(255,210,0,0.45)); }
#sg-end-title { font-size: 1.8rem; font-weight: 900; letter-spacing: -0.5px; color: #e8f4ff; }
.sg-end-rank { font-size: 1.1rem; font-weight: 700; color: #7de8e8; }
.sg-end-pts { font-size: 0.95rem; color: #7a9ab8; }
.sg-end-fact { font-size: 0.88rem; color: #a1c8eb; font-style: italic; line-height: 1.6; padding: 14px 18px; background: rgba(255,255,255,0.03); border-left: 3px solid #7de8e8; border-radius: 0 12px 12px 0; text-align: left; }
.sg-end-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; width: 100%; }

/* ══ LEADERBOARD ══ */
.sg-lb-body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 18px; flex: 1; width: 100%; }
.sg-lb-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.sg-lb-tab { background: rgba(255,255,255,0.04); backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,0.08); color: #7a9ab8; border-radius: 10px; padding: 8px 14px; font-size: 0.8rem; font-weight: 700; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s; }
.sg-lb-tab:hover { color: #e8f4ff; background: rgba(255,255,255,0.08); }
.sg-lb-tab.active { background: rgba(125,232,232,0.12); color: #7de8e8; border-color: rgba(125,232,232,0.35); box-shadow: 0 0 10px rgba(125,232,232,0.1); }
.sg-lb-list { list-style: none; display: flex; flex-direction: column; gap: 8px; max-height: 380px; overflow-y: auto; overflow-x: hidden; padding-right: 4px; scrollbar-width: thin; scrollbar-color: rgba(125,232,232,0.2) transparent; }
.sg-lb-row { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 12px 18px; transition: background 0.15s; }
.sg-lb-row:first-child { background: rgba(255,210,0,0.06); border-color: rgba(255,210,0,0.18); }
.sg-lb-row:nth-child(2) { background: rgba(180,210,255,0.04); border-color: rgba(180,210,255,0.12); }
.sg-lb-row:nth-child(3) { background: rgba(200,140,60,0.05); border-color: rgba(200,140,60,0.12); }
.sg-lb-rank { font-size: 1.2rem; min-width: 32px; text-align: center; }
.sg-lb-name { flex: 1; font-weight: 700; font-size: 0.95rem; color: #c5e0ff; }
.sg-lb-pts { color: #ffd966; font-weight: 800; font-size: 0.95rem; text-shadow: 0 0 8px rgba(255,217,102,0.15); }
.sg-lb-loading { color: #7a9ab8; text-align: center; padding: 30px; font-size: 0.9rem; }

/* ══ FACT OVERLAY ══ */
.sg-overlay { position: absolute; inset: 0; z-index: 100; background: rgba(4,12,30,0.85); backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; }
.sg-overlay.hidden { display: none; }
.sg-fact-card { background: rgba(10,22,50,0.94); backdrop-filter: blur(8px); border: 1.5px solid rgba(125,232,232,0.22); border-radius: 24px; padding: 36px 30px; max-width: 390px; width: 90%; text-align: center; display: flex; flex-direction: column; gap: 16px; animation: sg-pop-in 0.3s cubic-bezier(.34,1.56,.64,1); box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 60px rgba(79,163,255,0.15); }
#sg-fact-title { font-size: 1.45rem; font-weight: 900; color: #7de8e8; letter-spacing: -0.5px; text-shadow: 0 0 15px rgba(125,232,232,0.2); }
#sg-fact-body { font-size: 0.98rem; line-height: 1.65; color: #a1c8eb; }

/* ══ RESPONSIVE ══ */
@media (max-width: 500px) {
  #sg-wrap { border-radius: 0; min-height: 100vh; }
  .sg-screen { padding: 20px 16px; }
  .sg-logo { font-size: 2.2rem; }
  #sg-player-name { width: 100%; }
  .sg-mode-grid { gap: 12px; }
  .sg-mode-card { padding: 18px 14px; border-radius: 16px; }
  .sg-mode-icon { width: 48px; height: 48px; font-size: 1.6rem; }
  .sg-options-grid { grid-template-columns: 1fr; gap: 10px; }
  .sg-siu-planets { gap: 12px; flex-direction: column; }
  .sg-siu-vs { margin: 6px 0; }
  #sg-wai-planet-display { width: 90px; height: 90px; font-size: 4rem; }
  .sg-end-card { padding: 32px 20px; }
  .sg-lb-tabs { gap: 4px; }
  .sg-lb-tab { font-size: 0.72rem; padding: 6px 10px; }
}
