#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; }

/* =========================================================================
   Tabs (سایدبار و پنجره‌های داخلی)
   ========================================================================= */
#gc2-root .tabs { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
#gc2-root .tab {
  flex: 1;
  min-width: 80px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f1f5f9;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 700;
  border: 1px solid #cbd5e1;
  color: #475569;
  text-align: center;
  transition: all 0.15s ease;
}
#gc2-root .tab:hover { background: #e2e8f0; color: #1e293b; }
#gc2-root .tab.act {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff !important;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}
html.dark #gc2-root .tab, .dark #gc2-root .tab, #gc2-stage .tab {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}
html.dark #gc2-root .tab:hover, .dark #gc2-root .tab:hover, #gc2-stage .tab:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}
html.dark #gc2-root .tab.act, .dark #gc2-root .tab.act, #gc2-stage .tab.act {
  background: rgba(0, 242, 254, 0.18);
  border-color: var(--a);
  color: var(--g) !important;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.25);
}

/* =========================================================================
   Ship Selection Cards (کارت‌های سفینه جنگی)
   ========================================================================= */
#gc2-root .ship-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
#gc2-root .ship-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  text-align: right;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
#gc2-root .ship-card:hover {
  border-color: #0284c7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.12);
}
#gc2-root .ship-card.sel {
  border-color: #0284c7;
  background: rgba(2, 132, 199, 0.06);
  box-shadow: 0 0 0 1px #0284c7, 0 4px 14px rgba(2, 132, 199, 0.15);
}
#gc2-root .ship-card.locked {
  opacity: 0.8;
  border-style: dashed;
  background: #f8fafc;
}
#gc2-root .ship-icon {
  font-size: 26px;
  line-height: 1;
  margin-bottom: 4px;
}
#gc2-root .ship-name {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  margin: 2px 0;
}
#gc2-root .ship-card[data-ship-id="0"] .ship-name { color: #0284c7; }
#gc2-root .ship-card[data-ship-id="1"] .ship-name { color: #e11d48; }
#gc2-root .ship-card[data-ship-id="2"] .ship-name { color: #b45309; }
#gc2-root .ship-fa {
  font-size: 11px;
  font-weight: 700;
  color: #d97706;
  margin-bottom: 4px;
}
#gc2-root .ship-desc {
  font-size: 11px;
  color: #475569;
  line-height: 1.55;
  margin: 0;
}
#gc2-root .ship-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 10.5px;
  font-weight: 700;
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}
#gc2-root .ship-card.sel .ship-badge {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

/* Ship cards Dark Mode */
html.dark #gc2-root .ship-card, .dark #gc2-root .ship-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
html.dark #gc2-root .ship-card:hover, .dark #gc2-root .ship-card:hover {
  border-color: rgba(0, 242, 254, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 242, 254, 0.2);
}
html.dark #gc2-root .ship-card.sel, .dark #gc2-root .ship-card.sel {
  border-color: var(--g);
  background: rgba(255, 215, 0, 0.1);
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.25);
}
html.dark #gc2-root .ship-card.locked, .dark #gc2-root .ship-card.locked {
  opacity: 0.75;
  border-style: dashed;
  background: rgba(15, 23, 42, 0.45);
}
html.dark #gc2-root .ship-card[data-ship-id="0"] .ship-name, .dark #gc2-root .ship-card[data-ship-id="0"] .ship-name { color: #00f2fe; }
html.dark #gc2-root .ship-card[data-ship-id="1"] .ship-name, .dark #gc2-root .ship-card[data-ship-id="1"] .ship-name { color: #ff2d55; }
html.dark #gc2-root .ship-card[data-ship-id="2"] .ship-name, .dark #gc2-root .ship-card[data-ship-id="2"] .ship-name { color: #ffd700; }
html.dark #gc2-root .ship-fa, .dark #gc2-root .ship-fa {
  color: #ffd700;
}
html.dark #gc2-root .ship-desc, .dark #gc2-root .ship-desc {
  color: #cbd5e1;
}
html.dark #gc2-root .ship-badge, .dark #gc2-root .ship-badge {
  background: rgba(0, 242, 254, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(0, 242, 254, 0.35);
}
html.dark #gc2-root .ship-card.sel .ship-badge, .dark #gc2-root .ship-card.sel .ship-badge {
  background: var(--g);
  color: #0b0f19;
  border-color: var(--g);
  font-weight: 800;
}

/* =========================================================================
   Hangar Upgrades & Medals (آشیانه ارتقا و مدال‌ها)
   ========================================================================= */
#gc2-root .upg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 10px 0; text-align: right; }
#gc2-root .upg-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 10px 12px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
#gc2-root .upg-head { display: flex; justify-content: space-between; align-items: center; }
#gc2-root .upg-head b { color: #0284c7; font-size: 13px; font-weight: 800; }
#gc2-root .upg-lv { color: #d97706; font-size: 12px; font-weight: 700; }
#gc2-root .upg-desc { font-size: 11.5px; color: #475569; 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: #e2e8f0; color: #94a3b8; cursor: not-allowed; }

html.dark #gc2-root .upg-card, .dark #gc2-root .upg-card, #gc2-stage .upg-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
}
html.dark #gc2-root .upg-head b, .dark #gc2-root .upg-head b, #gc2-stage .upg-head b { color: var(--a); }
html.dark #gc2-root .upg-lv, .dark #gc2-root .upg-lv, #gc2-stage .upg-lv { color: var(--g); }
html.dark #gc2-root .upg-desc, .dark #gc2-root .upg-desc, #gc2-stage .upg-desc { color: #cbd5e1; }
html.dark #gc2-root .upg-btn:disabled, .dark #gc2-root .upg-btn:disabled, #gc2-stage .upg-btn:disabled { background: #2a3550; color: #778; }

#gc2-root .medal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; text-align: right; }
#gc2-root .medal-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 9px 11px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.75;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
#gc2-root .medal-item.unlocked {
  opacity: 1;
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}
#gc2-root .medal-ico { font-size: 26px; }
#gc2-root .medal-info b { color: #b45309; font-size: 12.5px; display: block; font-weight: 800; }
#gc2-root .medal-info span { font-size: 11px; color: #64748b; }

html.dark #gc2-root .medal-item, .dark #gc2-root .medal-item, #gc2-stage .medal-item {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0.6;
}
html.dark #gc2-root .medal-item.unlocked, .dark #gc2-root .medal-item.unlocked, #gc2-stage .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);
}
html.dark #gc2-root .medal-info b, .dark #gc2-root .medal-info b, #gc2-stage .medal-info b { color: var(--g); }
html.dark #gc2-root .medal-info span, .dark #gc2-root .medal-info span, #gc2-stage .medal-info span { color: #94a3b8; }

#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; }
}

/* =========================================================================
   پنل پایان غول: کارت شیشه‌ای تاریک + آمار + سه کارت قدرت (مستقل از Tailwind؛ وب و اپ یکسان)
   ستون عمودی در عرض باریک، ردیف ۳تایی در عرض ≥ ۵۶۰px (container query)، اسکرول داخلی، RTL.
   ========================================================================= */
#gc2-root #perkOv {
  box-sizing: border-box;
  padding: max(10px, env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px)) max(10px, env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px));
  background: radial-gradient(ellipse at 50% 40%, rgba(60, 20, 90, 0.55), rgba(3, 5, 14, 0.9) 70%);
}
#gc2-root #perkOv .card {
  container-type: inline-size;
  box-sizing: border-box;
  width: 100%;
  max-width: min(640px, 100%);
  max-height: min(100%, 92dvh);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 14px 12px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(20, 24, 56, 0.94), rgba(7, 9, 24, 0.96));
  border: 1.5px solid rgba(196, 113, 237, 0.75);
  box-shadow: 0 0 0 1px rgba(0, 242, 254, 0.12), 0 0 42px rgba(196, 113, 237, 0.35), inset 0 0 30px rgba(196, 113, 237, 0.08);
  backdrop-filter: blur(6px);
  touch-action: pan-y;
}
#gc2-root #perkOv .card > h1 { font-size: 17px; line-height: 1.5; margin: 0 0 4px; color: var(--g); font-weight: 900; text-shadow: 0 0 12px rgba(255, 215, 0, 0.4); }
#gc2-root #perkOv .card > p { font-size: 11.5px; line-height: 1.7; margin: 0 0 8px; color: #b9c6e4; }
#gc2-root #perkOv .gc-board { margin: 6px 0 10px; padding: 8px 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 215, 0, 0.3); }
#gc2-root #perkOv .gc-board h2 { font-size: 13.5px; margin: 0 0 6px; }
#gc2-root #perkOv .gc-board-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; margin-bottom: 6px; }
#gc2-root #perkOv .gc-board-grid div { min-width: 0; align-items: center; padding: 5px 8px; font-size: 11px; }
#gc2-root #perkOv .gc-board-grid span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#gc2-root #perkOv .gc-board-grid b { font-variant-numeric: tabular-nums; white-space: nowrap; }
#gc2-root #perkOv .gc-board-peak { margin: 2px 0 0; font-size: 11.5px; line-height: 1.6; }
#gc2-root #perkOv .gc-board-loot { margin: 5px 0 0; padding: 4px 8px; border-radius: 10px; font-size: 12px; font-weight: 800; line-height: 1.7; color: #e8f3ff; background: rgba(0, 242, 254, 0.08); border: 1px dashed rgba(0, 242, 254, 0.45); word-spacing: 2px; }
#gc2-root #perkOv .gc-board-loot .gc-loot-t { color: var(--a); }
#gc2-root #perkOv .gc-board-loot small { display: block; font-size: 10px; font-weight: 600; color: #94a3b8; }
#gc2-root #perkOv .gc-board-note, #gc2-root #perkOv .gc-board-goal { margin: 3px 0 0; font-size: 10.5px; line-height: 1.6; }
#gc2-root #perkOv .gc-board-end { margin: 5px 0 0; font-size: 11px; line-height: 1.6; }

#gc2-root #perkOv .perk-grid { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 6px; padding: 0; }
#gc2-root #perkOv .perk-card {
  --rc: #7df9ff;
  appearance: none; -webkit-appearance: none;
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 4px 10px;
  box-sizing: border-box; width: 100%; min-height: 64px; margin: 0; padding: 8px 10px;
  font: inherit; text-align: right; color: #e8f1ff; cursor: pointer;
  background: linear-gradient(160deg, rgba(24, 32, 70, 0.96), rgba(9, 12, 30, 0.96));
  border: 1.5px solid var(--rc); border-radius: 14px;
  box-shadow: 0 0 14px color-mix(in srgb, var(--rc) 30%, transparent), inset 0 0 18px color-mix(in srgb, var(--rc) 10%, transparent);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
#gc2-root #perkOv .perk-card.r-common { --rc: #7df9ff; }
#gc2-root #perkOv .perk-card.r-rare { --rc: #c471ed; }
#gc2-root #perkOv .perk-card.r-epic { --rc: #ffd700; }
#gc2-root #perkOv .perk-card:hover { box-shadow: 0 0 24px color-mix(in srgb, var(--rc) 55%, transparent), inset 0 0 22px color-mix(in srgb, var(--rc) 16%, transparent); }
#gc2-root #perkOv .perk-card:focus-visible { outline: 3px solid var(--rc); outline-offset: 2px; }
#gc2-root #perkOv .perk-card:active { transform: scale(0.98); box-shadow: 0 0 28px color-mix(in srgb, var(--rc) 70%, transparent); }
#gc2-root #perkOv .perk-icon { font-size: 28px; line-height: 1; text-align: center; filter: drop-shadow(0 0 6px var(--rc)); }
#gc2-root #perkOv .perk-body { min-width: 0; }
#gc2-root #perkOv .perk-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
#gc2-root #perkOv .perk-card h3 { margin: 0; font-size: 13.5px; font-weight: 900; line-height: 1.5; color: var(--rc); }
#gc2-root #perkOv .perk-rar { font-size: 9.5px; font-weight: 800; padding: 0 6px; border-radius: 8px; line-height: 1.7; color: #04050f; background: var(--rc); }
#gc2-root #perkOv .perk-card p { margin: 1px 0 0; font-size: 11px; line-height: 1.6; color: #c7d3ec; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#gc2-root #perkOv .perk-pick { white-space: nowrap; font-size: 11px; font-weight: 800; padding: 6px 10px; border-radius: 10px; color: #04050f; background: var(--rc); }
#gc2-root #perkOv .card > .bm { margin-top: 4px; min-height: 48px; padding: 8px; font-size: 12.5px; }

@container (min-width: 440px) {
  #gc2-root #perkOv .gc-board-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #gc2-root #perkOv .gc-board-grid div { flex-direction: column; align-items: center; gap: 1px; text-align: center; }
}
@container (max-width: 340px) {
  #gc2-root #perkOv .perk-card { grid-template-columns: 38px minmax(0, 1fr); }
  #gc2-root #perkOv .perk-pick { grid-column: 1 / -1; text-align: center; }
}
@container (min-width: 560px) {
  #gc2-root #perkOv .perk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  #gc2-root #perkOv .perk-card { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding: 12px 10px; }
  #gc2-root #perkOv .perk-head { justify-content: center; }
  #gc2-root #perkOv .perk-card p { -webkit-line-clamp: 4; line-clamp: 4; }
}
@media (prefers-reduced-motion: no-preference) {
  #gc2-root #perkOv:not(.hid) { animation: gcPerkFade 0.5s ease both; }
  #gc2-root #perkOv:not(.hid) .card { animation: gcPerkRise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
}
@keyframes gcPerkFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes gcPerkRise { from { transform: translateY(14px) scale(0.97); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  #gc2-root #perkOv .perk-card { transition: none; }
  #gc2-root #perkOv .perk-card:active { transform: none; }
}

/* =========================================================================
 * FEAT-001 (ارتقای مرغ کهکشانی): لودینگ سیاره‌ها #gcLoad + دکمهٔ ابربمب مخفی
 * فقط در انتهای فایل افزوده می‌شود؛ تم تاریک (پس‌زمینهٔ بوم همیشه تیره است).
 * ========================================================================= */
#gc2-root .gc-load {
  position: absolute; inset: 0; z-index: 30;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 16px; text-align: center;
  background: rgba(3, 6, 18, 0.9); color: #e6eeff;
}
#gc2-root .gc-load[hidden] { display: none; }
#gc2-root .gc-load p { margin: 0; font-size: 12px; font-weight: 700; color: #b8c7e0; }
#gc2-root .gc-load-orbit { position: relative; width: 96px; height: 96px; }
#gc2-root .gc-load-orbit i {
  position: absolute; left: 50%; top: 50%; border-radius: 50%;
  border: 1px solid rgba(120, 180, 255, 0.28);
  animation: gcOrbit 6s linear infinite;
}
#gc2-root .gc-load-orbit i:nth-child(1) { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
#gc2-root .gc-load-orbit i:nth-child(2) { width: 72px; height: 72px; margin: -36px 0 0 -36px; animation-duration: 9s; }
#gc2-root .gc-load-orbit i:nth-child(3) { width: 96px; height: 96px; margin: -48px 0 0 -48px; animation-duration: 13s; animation-direction: reverse; }
#gc2-root .gc-load-orbit i::after {
  content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px;
  border-radius: 50%; background: var(--g, #ffd23f);
}
#gc2-root .gc-load-orbit i:nth-child(2)::after { background: #22d3ee; }
#gc2-root .gc-load-orbit i:nth-child(3)::after { background: #f472b6; }
#gc2-root .gc-load-bar { width: min(240px, 70%); height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
#gc2-root #gcLoadBar { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #22d3ee, #ffd23f); transition: width 0.25s ease; }
#gc2-root #superBtn[hidden] { display: none !important; }
@keyframes gcOrbit { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  #gc2-root .gc-load-orbit i { animation: none; }
  #gc2-root #gcLoadBar { transition: none; }
}
/* ===== FEAT-002: ابربمب، تابلوی پایان مرحله، HUD ۱۱ پله (فقط انتهای فایل) ===== */
#gc2-root #superBtn.ready { border-color: #7df9ff; color: #7df9ff; box-shadow: 0 0 10px rgba(125, 249, 255, 0.55); animation: gcSuperPulse 1.6s ease-in-out infinite; }
#gc2-root #superBtn:disabled { opacity: 0.45; cursor: not-allowed; }
#gc2-root .gc-board { margin: 8px 0 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 215, 0, 0.35); text-align: center; }
#gc2-root .gc-board h2 { font-size: 14px; font-weight: 900; color: var(--g, #ffd23f); margin-bottom: 6px; }
#gc2-root .gc-board-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-bottom: 6px; }
#gc2-root .gc-board-grid div { display: flex; justify-content: space-between; gap: 6px; padding: 4px 8px; border-radius: 8px; background: rgba(0, 0, 0, 0.28); font-size: 11px; color: #cbd5e1; }
#gc2-root .gc-board-grid b { color: #fff; }
#gc2-root .gc-board-peak { font-size: 12px; font-weight: 800; color: #ffb347; }
#gc2-root .gc-board-note, #gc2-root .gc-board-goal { font-size: 11px; color: #94a3b8; margin-top: 3px; }
#gc2-root .gc-board-end { font-size: 12px; font-weight: 800; color: #86efac; margin-top: 6px; }
#gc2-root .pips .pip { width: 5px; }
@keyframes gcSuperPulse { 50% { box-shadow: 0 0 18px rgba(125, 249, 255, 0.9); } }
@media (max-width: 768px) { #gc2-root .pips .pip { width: 3.5px; } #gc2-root .gc-board-grid { gap: 4px; } }
@media (prefers-reduced-motion: reduce) { #gc2-root #superBtn.ready { animation: none; } }

/* ===== FEAT-003: پیپ‌های اضافه‌شارژ (۹..۱۱)، safe-area و reduced-motion (فقط انتهای فایل) ===== */
#gc2-root .pip.over { outline: 1px solid rgba(255, 215, 0, 0.3); }
#gc2-root .pip.over.on { background: #ffd700; box-shadow: 0 0 7px #ffd700; }
#gc2-root .hud { padding-top: env(safe-area-inset-top, 0px); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
#gc2-root .hud-actions-mobile { bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
@media (prefers-reduced-motion: reduce) {
  #gc2-root #wb, #gc2-root #toast, #gc2-root .pip, #gc2-root #fb { transition: none; }
}
/* GCW-02: readable wave banner over enemies (scrim + dark outline; end of file only) */
#gc2-root #wb { background: radial-gradient(ellipse at center, rgba(4, 6, 20, 0.62) 0%, rgba(4, 6, 20, 0.38) 55%, rgba(4, 6, 20, 0) 100%); padding: 10px 26px; border-radius: 18px; box-sizing: border-box; }
#gc2-root #wb h2, #gc2-root #wb p, #gc2-root #wb .sub { text-shadow: 0 0 10px rgba(0, 0, 0, 0.95), 0 1px 3px #000, 0 0 14px rgba(0, 0, 0, 0.8); }
#gc2-root #wb h2 { text-shadow: 0 0 24px #ff0055, 0 0 8px #000, 0 2px 4px #000; }

/* =========================================================================
 * D-HUD (تصمیم مالک): HUD حداقلی فقط روی دو لبهٔ چپ و راست؛ مرکز بوم خالی.
 * چیپ‌های کوچک نیمه‌شفاف و بدون pointer-events (لمس از آن‌ها عبور می‌کند)؛ فقط دکمه‌های کنشی قابل‌کلیک‌اند.
 * آمار تفصیلی در پنل #gcStatsOv (توقف و آمار) و صفحهٔ پایان بازی. فقط انتهای فایل.
 * ========================================================================= */
#gc2-root .hud { inset: 0; top: 0; left: 0; right: 0; bottom: 0; display: block; padding: 0; gap: 0; flex-wrap: nowrap; pointer-events: none; }
#gc2-root .hud-col {
  position: absolute; top: calc(6px + env(safe-area-inset-top, 0px)); display: flex; flex-direction: column; gap: 4px;
  max-width: 30%; pointer-events: none;
}
#gc2-root .hud-left { left: calc(6px + env(safe-area-inset-left, 0px)); align-items: flex-start; }
#gc2-root .hud-right { right: calc(6px + env(safe-area-inset-right, 0px)); align-items: flex-end; }
#gc2-root .chip {
  background: rgba(8, 13, 30, 0.52); border: 1px solid rgba(0, 242, 254, 0.2); border-radius: 8px; padding: 2px 7px;
  font-size: 10.5px; line-height: 1.3; color: #fff; display: flex; flex-direction: column; gap: 1px; max-width: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); pointer-events: none; white-space: nowrap; text-shadow: 0 1px 2px #000;
  transition: border-color 0.25s, box-shadow 0.25s;
}
#gc2-root .chip .v { font-size: 13px; font-variant-numeric: tabular-nums; }
#gc2-root .chip-k { font-size: 8.5px; opacity: 0.7; font-weight: 700; }
#gc2-root .chip-lives, #gc2-root .chip-bomb { flex-direction: row; align-items: center; gap: 4px; }
#gc2-root .chip-lives #lv { font-size: 11px; letter-spacing: -1px; }
#gc2-root .chip-stage { font-weight: 800; }
#gc2-root .chip-weapon .wrow { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-weight: 700; }
#gc2-root .chip-weapon #lvNum { font-size: 9.5px; }
#gc2-root .chip-weapon .pips { gap: 1.5px; }
#gc2-root .chip-weapon .pip, #gc2-root .chip-weapon .pips .pip { width: 3.5px; height: 8px; border-radius: 1.5px; }
#gc2-root .chip.pulse { border-color: var(--g); box-shadow: 0 0 12px rgba(255, 215, 0, 0.55); }
#gc2-root .hud-btns { display: grid; grid-template-columns: repeat(2, 26px); gap: 3px; direction: ltr; pointer-events: none; }
#gc2-root .hud-btns .bi {
  width: 26px; height: 26px; padding: 0; justify-content: center; font-size: 13px; line-height: 1; border-radius: 7px;
  background: rgba(8, 13, 30, 0.52); border-color: rgba(255, 255, 255, 0.2); pointer-events: auto;
}
#gc2-root .hud-btns .bi .bl { display: none; }
#gc2-root .hud-btns .bi:hover { background: var(--a); color: #000; }

/* پیام‌های گذرا: کوچک، بالای میدان، ≤ ۱٫۲ث، بدون مسدود کردن مرکز */
#gc2-root #wb {
  top: 9%; left: 50%; width: auto; max-width: 56%; padding: 4px 14px; border-radius: 10px;
  background: rgba(4, 6, 20, 0.5); transform: translateX(-50%) scale(0.97); transition: opacity 0.18s, transform 0.18s;
}
#gc2-root #wb.show { opacity: 1; transform: translateX(-50%) scale(1); }
#gc2-root #wb h2 { font-size: 15px; line-height: 1.4; }
#gc2-root #wb p { font-size: 11px; margin-top: 1px; }
#gc2-root #wb .sub, #gc2-root #wb p:empty { display: none; }
/* مدال: گوشهٔ چپ زیر چیپ‌ها، نه وسط/پایین میدان */
#gc2-root #toast {
  left: calc(6px + env(safe-area-inset-left, 0px)); bottom: auto; top: 96px; transform: translateX(-12px); max-width: 38%;
  padding: 5px 9px; gap: 6px; border-width: 1px; border-radius: 10px; box-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
}
#gc2-root #toast.show { transform: translateX(0); opacity: 1; }
#gc2-root #toast #toastIco { font-size: 16px !important; }
#gc2-root #toast #toastTitle { font-size: 10px !important; }
#gc2-root #toast #toastDesc { font-size: 9px !important; }

/* پنل توقف و آمار */
#gc2-root .gc-stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-bottom: 8px; }
#gc2-root .gc-stats-grid > div { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); font-size: 11.5px; color: #cbd5e1; }
#gc2-root .gc-stats-grid > div.wide { grid-column: 1 / -1; }
#gc2-root .gc-stats-grid b { color: #fff; }
#gc2-root .gc-tips { margin: 8px 0; padding: 0 16px 0 0; font-size: 11px; line-height: 1.8; color: #94a3b8; list-style: disc; }
#gc2-root #gcStatsOv .card { max-height: 100%; overflow-y: auto; }
#gc2-root #gcStatsOv .bi { justify-content: center; padding: 7px 8px; }
#gc2-root .gc-stats-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding-top: 4px; }

@media (max-width: 768px) {
  #gc2-root .hud-col { top: calc(4px + env(safe-area-inset-top, 0px)); gap: 3px; max-width: 28%; }
  #gc2-root .hud-left { left: calc(4px + env(safe-area-inset-left, 0px)); }
  #gc2-root .hud-right { right: calc(4px + env(safe-area-inset-right, 0px)); }
  #gc2-root .chip { font-size: 9.5px; padding: 1px 5px; border-radius: 7px; }
  #gc2-root .chip .v { font-size: 11.5px; }
  #gc2-root .chip-k { font-size: 8px; }
  #gc2-root .chip-weapon .pip, #gc2-root .chip-weapon .pips .pip { width: 2.5px; height: 7px; }
  #gc2-root .hud-btns { grid-template-columns: repeat(2, 24px); gap: 3px; }
  #gc2-root .hud-btns .bi { width: 24px; height: 24px; font-size: 12px; padding: 0; }
  #gc2-root #wb { top: 8%; max-width: 50%; padding: 3px 10px; }
  #gc2-root #wb h2 { font-size: 13px; }
  #gc2-root #wb p { font-size: 10px; }
  #gc2-root #toast { top: 84px; max-width: 42%; }
  #gc2-root .gc-stats-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  #gc2-root .chip, #gc2-root #wb, #gc2-root #toast { transition: none; }
}
