#gc2-root {
  --a: #00f2fe;
  --g: #ffd700;
  --danger: #ff3366;
  --purple: #c471ed;
  --p: rgba(8, 13, 30, 0.92);
}

#gc2-root #gc2-stage,
#gc2-root #gc2-stage * {
  box-sizing: border-box;
}

#gc2-root #gc2-stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #040612;
  font-family: Sahel, Tahoma, 'Segoe UI', sans-serif;
  color: #fff;
  user-select: none;
  -webkit-user-select: none;
}

#gc2-root #c {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: none;
  touch-action: none;
}

#gc2-root .hud {
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  display: flex;
  justify-content: space-between;
  gap: 5px;
  flex-wrap: wrap;
  pointer-events: none;
  z-index: 10;
}

#gc2-root .box {
  background: rgba(8, 13, 30, 0.78);
  border: 1px solid rgba(0, 242, 254, 0.24);
  padding: 4px 9px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  backdrop-filter: blur(8px);
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.45);
  pointer-events: auto;
}

#gc2-root .v { color: var(--g); font-weight: 700; font-size: 14px; }

#gc2-root .egg-pill {
  background: rgba(255, 215, 0, 0.14);
  border: 1px solid rgba(255, 215, 0, 0.45);
  padding: 2px 8px;
  border-radius: 8px;
  color: var(--g);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

#gc2-root .stage-pill {
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.35);
  padding: 3px 9px;
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

#gc2-root .dots { display: inline-flex; gap: 4px; align-items: center; }
#gc2-root .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); transition: 0.3s; }
#gc2-root .dot.on { background: var(--a); box-shadow: 0 0 8px var(--a); }
#gc2-root .dot.boss { border-radius: 2px; transform: rotate(45deg); }
#gc2-root .dot.boss.on { background: var(--danger); box-shadow: 0 0 8px var(--danger); }

#gc2-root .fw { width: 64px; height: 8px; background: #151c33; border-radius: 6px; overflow: hidden; border: 1px solid #2e3d66; }
#gc2-root #fb { height: 100%; width: 0; background: linear-gradient(90deg, #00f2fe, #ff007f, #ffd700); transition: width 0.15s; }

#gc2-root .pips { display: inline-flex; gap: 2.5px; vertical-align: middle; }
#gc2-root .pip { width: 5.5px; height: 12px; border-radius: 2px; background: rgba(255, 255, 255, 0.14); transition: 0.25s; }
#gc2-root .pip.on { background: var(--wcol, #00f2fe); box-shadow: 0 0 6px var(--wcol, #00f2fe); }

#gc2-root .perk-bar { display: inline-flex; gap: 3px; align-items: center; }
#gc2-root .perk-badge {
  background: rgba(196, 113, 237, 0.22);
  border: 1px solid var(--purple);
  border-radius: 6px;
  padding: 1px 5px;
  font-size: 12px;
  box-shadow: 0 0 8px rgba(196, 113, 237, 0.35);
}

#gc2-root button { font-family: inherit; }

#gc2-root .bi {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  padding: 5px 9px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 11.5px;
  transition: 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}
#gc2-root .bi:hover { background: var(--a); color: #000; border-color: var(--a); }
#gc2-root .bi:active { transform: scale(0.95); }
#gc2-root .bi.gold { background: rgba(255, 215, 0, 0.16); border-color: rgba(255, 215, 0, 0.5); color: var(--g); }
#gc2-root .bi.gold:hover { background: var(--g); color: #000; }

#gc2-root .ov {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 14, 0.88);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20;
  backdrop-filter: blur(10px);
}
#gc2-root .hid { display: none !important; }

#gc2-root .card {
  background: linear-gradient(155deg, #0f1836, #070b1a);
  border: 2px solid var(--a);
  border-radius: 22px;
  padding: 20px;
  width: 95%;
  max-width: 720px;
  max-height: 92%;
  overflow-y: auto;
  text-align: center;
  box-shadow: 0 0 55px rgba(0, 242, 254, 0.24);
}
#gc2-root .card h1 { font-size: 22px; color: var(--g); margin-bottom: 6px; text-shadow: 0 0 14px rgba(255, 215, 0, 0.45); }
#gc2-root .card p { color: #c2d1eb; font-size: 12.5px; line-height: 1.8; margin-bottom: 10px; }

#gc2-root .bm {
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  border: 0;
  color: #fff;
  padding: 11px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  width: 100%;
  margin-top: 7px;
  transition: 0.2s;
  box-shadow: 0 4px 15px rgba(0, 114, 255, 0.35);
}
#gc2-root .bm:hover { filter: brightness(1.12); }
#gc2-root .bm.s { background: rgba(255, 255, 255, 0.09); font-size: 13px; box-shadow: none; border: 1px solid rgba(255, 255, 255, 0.16); }
#gc2-root .bm.gold { background: linear-gradient(90deg, #f7971e, #ffd200); color: #000; box-shadow: 0 4px 15px rgba(255, 210, 0, 0.3); }

#gc2-root .btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }

#gc2-root #stwrap {
  position: sticky;
  bottom: -20px;
  z-index: 6;
  margin: 14px -20px 0;
  padding: 12px 20px 20px;
  background: linear-gradient(180deg, rgba(7, 11, 26, 0), rgba(7, 11, 26, 0.94) 34%, #070b1a);
}
#gc2-root #stwrap .bm { margin-top: 0; }

#gc2-root input {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #3a4b7c;
  background: #060a17;
  color: #fff;
  font-size: 14px;
  margin-bottom: 10px;
  text-align: center;
}

#gc2-root table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 11.8px; }
#gc2-root td, #gc2-root th { padding: 7px 5px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); text-align: center; }
#gc2-root th { color: var(--a); font-weight: 700; }
#gc2-root .gt td:nth-child(3) { text-align: right; line-height: 1.55; }
#gc2-root .sw { display: inline-flex; align-items: center; justify-content: center; width: 27px; height: 27px; border-radius: 7px; font-size: 15px; }

#gc2-root .tabs { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
#gc2-root .tab { flex: 1; min-width: 110px; padding: 8px; border-radius: 9px; background: rgba(255, 255, 255, 0.07); cursor: pointer; font-size: 12px; border: 1px solid transparent; }
#gc2-root .tab.act { background: rgba(0, 242, 254, 0.18); border-color: var(--a); color: var(--g); font-weight: 700; }

#gc2-root .ship-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
#gc2-root .ship-card {
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 10px 8px;
  cursor: pointer;
  transition: 0.25s;
  position: relative;
}
#gc2-root .ship-card:hover { border-color: rgba(0, 242, 254, 0.5); transform: translateY(-2px); }
#gc2-root .ship-card.sel { border-color: var(--g); background: rgba(255, 215, 0, 0.09); box-shadow: 0 0 18px rgba(255, 215, 0, 0.22); }
#gc2-root .ship-card.locked { opacity: 0.75; border-style: dashed; }
#gc2-root .ship-card h3 { font-size: 13px; color: var(--g); margin: 4px 0; }
#gc2-root .ship-card p { font-size: 11px; color: #b8c7e0; line-height: 1.45; margin: 0; }
#gc2-root .ship-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  background: rgba(0, 242, 254, 0.18);
  color: var(--a);
}
#gc2-root .ship-card.sel .ship-badge { background: var(--g); color: #000; }

#gc2-root .upg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 10px 0; text-align: right; }
#gc2-root .upg-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 12px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
}
#gc2-root .upg-head { display: flex; justify-content: space-between; align-items: center; }
#gc2-root .upg-head b { color: var(--a); font-size: 13px; }
#gc2-root .upg-desc { font-size: 11.5px; color: #b8c7e0; line-height: 1.5; }
#gc2-root .upg-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
#gc2-root .upg-btn {
  background: linear-gradient(90deg, #f7971e, #ffd200);
  color: #000;
  border: 0;
  padding: 5px 11px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 11.5px;
  cursor: pointer;
}
#gc2-root .upg-btn:disabled { background: #2a3550; color: #778; cursor: not-allowed; }

#gc2-root .perk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0; }
#gc2-root .perk-card {
  background: linear-gradient(160deg, #1a103c, #0b0f26);
  border: 2px solid var(--purple);
  border-radius: 16px;
  padding: 16px 10px;
  cursor: pointer;
  transition: 0.25s;
  box-shadow: 0 0 24px rgba(196, 113, 237, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  color: inherit;
  text-align: center;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  touch-action: manipulation;
}
#gc2-root .perk-card:hover { transform: translateY(-5px) scale(1.03); border-color: var(--g); box-shadow: 0 0 32px rgba(255, 215, 0, 0.45); }
#gc2-root .perk-card:active { transform: scale(0.97); border-color: var(--g); }
#gc2-root .perk-icon { font-size: 38px; filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.4)); }
#gc2-root .perk-card h3 { color: var(--g); font-size: 14.5px; }
#gc2-root .perk-card p { font-size: 11.5px; color: #d8e2f5; line-height: 1.6; margin: 0; }
#gc2-root .perk-pick {
  margin-top: auto;
  background: rgba(196, 113, 237, 0.25);
  border: 1px solid var(--purple);
  color: #fff;
  padding: 5px 14px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
}

#gc2-root .medal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; text-align: right; }
#gc2-root .medal-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 9px 11px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.55;
}
#gc2-root .medal-item.unlocked { opacity: 1; border-color: var(--g); background: rgba(255, 215, 0, 0.08); box-shadow: 0 0 14px rgba(255, 215, 0, 0.15); }
#gc2-root .medal-ico { font-size: 26px; }
#gc2-root .medal-info b { color: var(--g); font-size: 12.5px; display: block; }
#gc2-root .medal-info span { font-size: 11px; color: #b8c7e0; }

#gc2-root #toast {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: linear-gradient(90deg, #121c3d, #1e1136);
  border: 2px solid var(--g);
  padding: 10px 20px;
  border-radius: 14px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.45);
  opacity: 0;
  transition: 0.4s;
  pointer-events: none;
}
#gc2-root #toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

#gc2-root #wb {
  position: absolute;
  top: 29%;
  left: 0;
  width: 100%;
  text-align: center;
  pointer-events: none;
  z-index: 15;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.45s, transform 0.45s;
}
#gc2-root #wb.show { opacity: 1; transform: scale(1); }
#gc2-root #wb h2 { font-size: 30px; color: var(--g); text-shadow: 0 0 24px #ff0055, 0 2px 10px #000; }
#gc2-root #wb p { font-size: 15.5px; color: #fff; margin-top: 6px; text-shadow: 0 0 12px var(--a); }
#gc2-root #wb .sub { font-size: 13px; color: var(--a); margin-top: 4px; opacity: 0.92; }

@media (max-width: 768px) {
  #gc2-root .ship-grid,
  #gc2-root .perk-grid,
  #gc2-root .upg-grid,
  #gc2-root .medal-grid { grid-template-columns: 1fr; }
  #gc2-root .hud { top: 6px; left: 4px; right: 4px; gap: 3px; }
  #gc2-root .box { padding: 3px 6px; gap: 5px; font-size: 10px; border-radius: 8px; }
  #gc2-root .v { font-size: 11.5px; }
  #gc2-root .egg-pill, #gc2-root .stage-pill { padding: 1px 6px; font-size: 10px; }
  #gc2-root .dot { width: 6px; height: 6px; }
  #gc2-root .fw { width: 42px; height: 6px; }
  #gc2-root .pip { width: 4px; height: 9px; }
  #gc2-root .bi { padding: 3px 6px; font-size: 10px; border-radius: 6px; }
  #gc2-root #wb h2 { font-size: 20px; }
  #gc2-root #wb p { font-size: 13px; }
}

#gc2-root .hud-actions-mobile {
  position: absolute;
  bottom: 14px;
  left: 10px;
  right: 10px;
  display: none;
  justify-content: space-between;
  pointer-events: none;
  z-index: 12;
}
#gc2-root .hud-actions-mobile .tac-btn {
  pointer-events: auto;
  background: rgba(8, 14, 34, 0.82);
  border: 1.5px solid rgba(0, 242, 254, 0.45);
  color: #fff;
  padding: 8px 13px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  gap: 5px;
}
#gc2-root .hud-actions-mobile .tac-btn.bomb { border-color: rgba(255, 215, 0, 0.55); color: var(--g); }
@media (max-width: 768px) {
  #gc2-root .hud-actions-mobile { display: flex; }
}
