#gcg-game-root {
  min-height: 820px;
  overflow: hidden;
  color: #f7f9ff;
  background: #080d22;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#gcg-game-root *,
#gcg-game-root *::before,
#gcg-game-root *::after { box-sizing: border-box; }

#gcg-game-root button,
#gcg-game-root input,
#gcg-game-root select { font: inherit; }

#gcg-game-root button { -webkit-tap-highlight-color: transparent; }

.cc-game {
  --cc-accent: #7b67ff;
  --cc-accent-2: #45b8ff;
  --cc-accent-3: #f964d7;
  --cc-gold: #ffd46c;
  --cc-danger: #ff536f;
  --cc-panel: rgba(9, 15, 42, .84);
  --cc-panel-strong: rgba(8, 13, 34, .96);
  --cc-line: rgba(194, 214, 255, .13);
  --cc-muted: rgba(224, 232, 255, .62);
  position: relative;
  min-height: 820px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 48% -16%, rgba(116, 102, 255, .28), transparent 36%),
    radial-gradient(circle at 6% 54%, rgba(42, 151, 255, .16), transparent 30%),
    radial-gradient(circle at 92% 66%, rgba(255, 88, 205, .14), transparent 25%),
    linear-gradient(145deg, #080d22, #111a42 52%, #070b1b);
}

.cc-game::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .42;
  background-image:
    radial-gradient(circle at 10% 20%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 70% 14%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 90% 72%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 25% 84%, #fff 0 1px, transparent 1.5px);
  background-size: 97px 91px, 131px 117px, 151px 133px, 113px 139px;
}

.cc-game::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.32), transparent 16% 84%, rgba(0,0,0,.32));
  box-shadow: inset 0 0 190px rgba(0,0,0,.52);
}

.cc-theme-aurora {
  --cc-accent: #35d4ad;
  --cc-accent-2: #4ae8e2;
  --cc-accent-3: #92ffbf;
  background:
    radial-gradient(circle at 50% -18%, rgba(47, 225, 190, .26), transparent 38%),
    radial-gradient(circle at 6% 54%, rgba(46, 169, 196, .17), transparent 30%),
    radial-gradient(circle at 92% 66%, rgba(77, 255, 187, .12), transparent 25%),
    linear-gradient(145deg, #061720, #0a3541 52%, #06151b);
}

.cc-theme-sunset {
  --cc-accent: #fa638b;
  --cc-accent-2: #ff9f55;
  --cc-accent-3: #ff73dc;
  background:
    radial-gradient(circle at 50% -18%, rgba(255, 101, 139, .26), transparent 38%),
    radial-gradient(circle at 6% 54%, rgba(255, 154, 76, .13), transparent 30%),
    radial-gradient(circle at 92% 66%, rgba(255, 80, 191, .15), transparent 25%),
    linear-gradient(145deg, #1a0a21, #40182f 52%, #150a1b);
}

.cc-no-motion *,
.cc-no-motion *::before,
.cc-no-motion *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }

.cc-high-contrast .cc-stage-frame { border-color: rgba(255,255,255,.42); }
.cc-high-contrast .cc-canvas { filter: contrast(1.12) saturate(1.12); }

.cc-topbar {
  position: relative;
  z-index: 60;
  display: grid;
  grid-template-columns: minmax(205px, 1fr) auto auto auto;
  align-items: center;
  gap: 16px;
  min-height: 88px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255,255,255,.09);
  background: linear-gradient(180deg, rgba(5,9,25,.97), rgba(8,13,34,.88));
  box-shadow: 0 15px 45px rgba(0,0,0,.34);
  backdrop-filter: blur(20px);
}

.cc-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }

.cc-brand__mark {
  position: relative;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 1px solid rgba(167, 188, 255, .36);
  border-radius: 19px;
  background:
    radial-gradient(circle at 34% 28%, rgba(255,255,255,.95), rgba(255,255,255,.1) 11%, transparent 12%),
    radial-gradient(circle at 50% 50%, var(--cc-accent-2), var(--cc-accent) 58%, #35226f 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.38), 0 11px 28px rgba(75,77,255,.28);
}

.cc-brand__mark::after {
  content: "";
  position: absolute;
  inset: -12px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  transform: rotate(-25deg) scaleY(.48);
}

.cc-brand__mark i,
.cc-brand__mark b {
  position: absolute;
  border-radius: 50%;
  background: #ffd86f;
  box-shadow: 0 0 12px rgba(255,216,111,.6);
}

.cc-brand__mark i { width: 11px; height: 11px; right: 8px; top: 10px; }
.cc-brand__mark b { width: 7px; height: 7px; left: 8px; bottom: 11px; background: #61e5ff; }
.cc-brand__mark span { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 24px; text-shadow: 0 0 14px #fff; }

.cc-brand__copy { min-width: 0; }
.cc-brand__copy small { display: block; margin-bottom: 3px; color: var(--cc-accent-2); font-size: 10px; font-weight: 900; letter-spacing: .2em; white-space: nowrap; }
.cc-brand__copy h2 { margin: 0; color: #fff; font-size: clamp(18px, 1.5vw, 25px); font-weight: 850; letter-spacing: -.045em; line-height: 1; white-space: nowrap; }

.cc-main-actions { display: flex; align-items: center; gap: 7px; }

.cc-button,
.cc-mini-button,
.cc-icon-button,
.cc-wide-button,
.cc-power,
.cc-mobile-controls button,
.cc-theme-grid button,
.cc-level-worlds button,
.cc-level-tile,
.cc-mode-grid button {
  border: 0;
  color: #f7f9ff;
  cursor: pointer;
}

.cc-button {
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(196, 211, 255, .15);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  font-size: 12px;
  font-weight: 780;
  white-space: nowrap;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, opacity .18s ease;
}

.cc-button:hover:not(:disabled) { transform: translateY(-2px); border-color: rgba(168, 195, 255, .38); background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.04)); }
.cc-button:active:not(:disabled) { transform: translateY(0); }
.cc-button:disabled { cursor: default; opacity: .34; }

.cc-button--primary {
  border-color: color-mix(in srgb, var(--cc-accent) 70%, white 10%);
  background: linear-gradient(135deg, var(--cc-accent), color-mix(in srgb, var(--cc-accent-2) 55%, #274493));
  box-shadow: 0 9px 25px color-mix(in srgb, var(--cc-accent) 28%, transparent), inset 0 1px 0 rgba(255,255,255,.25);
}
.cc-button--primary:hover:not(:disabled) { background: linear-gradient(135deg, color-mix(in srgb, var(--cc-accent) 88%, white), color-mix(in srgb, var(--cc-accent-2) 72%, #274493)); }

.cc-metrics { display: grid; grid-template-columns: repeat(3, minmax(64px, auto)); gap: 5px; }
.cc-metrics div { min-width: 66px; padding: 8px 10px; border: 1px solid rgba(187,206,255,.1); border-radius: 12px; text-align: center; background: rgba(255,255,255,.035); }
.cc-metrics span { display: block; color: var(--cc-muted); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.cc-metrics strong { display: block; margin-top: 2px; color: #fff; font-size: 17px; line-height: 1; }

.cc-utility { display: flex; gap: 7px; }
.cc-icon-button { width: 42px; height: 42px; border: 1px solid rgba(192,209,255,.14); border-radius: 13px; background: rgba(255,255,255,.045); font-size: 19px; transition: transform .18s ease, background .18s ease; }
.cc-icon-button:hover { transform: translateY(-2px); background: rgba(255,255,255,.1); }

.cc-subbar {
  position: relative;
  z-index: 48;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 48px;
  padding: 7px 18px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(8,13,34,.68);
  backdrop-filter: blur(15px);
}

.cc-subbar__left,
.cc-subbar__right { display: flex; align-items: center; gap: 10px; color: var(--cc-muted); font-size: 11px; font-weight: 700; }
.cc-subbar__right { justify-content: flex-end; }
.cc-mode-chip { padding: 6px 9px; border: 1px solid color-mix(in srgb, var(--cc-accent) 48%, transparent); border-radius: 999px; color: #fff; background: color-mix(in srgb, var(--cc-accent) 18%, transparent); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.cc-goal { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 12px; font-weight: 800; }
.cc-goal i { color: var(--cc-gold); font-style: normal; text-shadow: 0 0 12px rgba(255,212,108,.75); }
.cc-combo { display: flex; align-items: center; gap: 6px; }
.cc-combo i { width: 7px; height: 7px; border-radius: 50%; background: var(--cc-accent-2); box-shadow: 0 0 12px var(--cc-accent-2); }
.cc-combo b { color: #fff; }
.cc-mini-button { min-height: 30px; padding: 0 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 9px; background: rgba(255,255,255,.035); color: var(--cc-muted); font-size: 10px; font-weight: 800; }
.cc-mini-button:hover { color: #fff; background: rgba(255,255,255,.08); }

.cc-layout {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 210px minmax(540px, 1fr) 220px;
  gap: 14px;
  padding: 14px;
  min-height: 644px;
}

.cc-panel {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--cc-line);
  border-radius: 21px;
  background: linear-gradient(180deg, rgba(11,18,50,.84), rgba(8,13,34,.75));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 25px 60px rgba(0,0,0,.2);
  backdrop-filter: blur(17px);
}

.cc-panel__title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; color: var(--cc-muted); font-size: 9px; font-weight: 900; letter-spacing: .15em; }
.cc-panel__title b { color: #fff; font-size: 10px; letter-spacing: .03em; }

.cc-orbit-map {
  position: relative;
  height: 126px;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid rgba(188,207,255,.11);
  border-radius: 17px;
  background:
    radial-gradient(circle at 50% 47%, color-mix(in srgb, var(--cc-accent) 30%, transparent), transparent 42%),
    linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
}

.cc-orbit-map::before,
.cc-orbit-map::after,
.cc-orbit-map i { content: ""; position: absolute; left: 50%; top: 50%; border: 1px solid rgba(179,203,255,.19); border-radius: 50%; transform: translate(-50%, -50%) rotate(-17deg); }
.cc-orbit-map::before { width: 154px; height: 70px; }
.cc-orbit-map::after { width: 103px; height: 45px; transform: translate(-50%, -50%) rotate(24deg); }
.cc-orbit-map i { width: 7px; height: 7px; border: 0; background: var(--cc-accent-2); box-shadow: 0 0 10px var(--cc-accent-2); }
.cc-orbit-map i:nth-child(1) { left: 23%; top: 38%; }
.cc-orbit-map i:nth-child(2) { left: 71%; top: 31%; background: var(--cc-gold); }
.cc-orbit-map i:nth-child(3) { left: 82%; top: 71%; background: var(--cc-accent-3); }
.cc-orbit-map i:nth-child(4) { left: 31%; top: 78%; background: #53e5b6; }
.cc-orbit-map b { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid rgba(255,255,255,.56); border-radius: 50%; transform: translate(-50%, -50%); color: #fff; background: radial-gradient(circle at 35% 30%, #fff, var(--cc-accent-2) 18%, var(--cc-accent) 55%, #2c215f); box-shadow: 0 0 23px color-mix(in srgb, var(--cc-accent) 50%, transparent); font-size: 14px; }

.cc-progress-card,
.cc-mission-card,
.cc-danger-card,
.cc-stars-card,
.cc-next-card {
  border: 1px solid rgba(188,207,255,.1);
  border-radius: 16px;
  background: rgba(255,255,255,.03);
}

.cc-progress-card { padding: 11px; margin-bottom: 10px; }
.cc-progress-card > div:first-child { display: flex; justify-content: space-between; color: var(--cc-muted); font-size: 10px; font-weight: 800; }
.cc-progress-card strong { color: #fff; }
.cc-progress-track { height: 7px; margin-top: 8px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.08); }
.cc-progress-track i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--cc-accent), var(--cc-accent-2)); box-shadow: 0 0 12px var(--cc-accent-2); transition: width .45s ease; }

.cc-mission-card { padding: 13px; margin-bottom: 10px; }
.cc-mission-card small { display: block; color: var(--cc-accent-2); font-size: 8px; font-weight: 900; letter-spacing: .18em; }
.cc-mission-card strong { display: block; margin: 5px 0; color: #fff; font-size: 13px; }
.cc-mission-card p { margin: 0; color: var(--cc-muted); font-size: 10px; line-height: 1.45; }

.cc-wide-button { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; width: 100%; min-height: 53px; margin-top: 8px; padding: 7px 9px; border: 1px solid rgba(190,209,255,.1); border-radius: 15px; text-align: left; background: rgba(255,255,255,.035); transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.cc-wide-button:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--cc-accent) 42%, transparent); background: color-mix(in srgb, var(--cc-accent) 10%, rgba(255,255,255,.04)); }
.cc-wide-button > span { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 11px; color: var(--cc-gold); background: rgba(255,212,108,.1); font-size: 17px; }
.cc-wide-button b { font-size: 10px; }
.cc-wide-button small { color: var(--cc-muted); font-size: 8px; }

.cc-stage-shell { min-width: 0; display: flex; flex-direction: column; }
.cc-stage-frame { position: relative; overflow: hidden; width: 100%; aspect-ratio: 3 / 2; min-height: 520px; border: 1px solid rgba(184,205,255,.2); border-radius: 23px; background: #0b1230; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 28px 75px rgba(0,0,0,.32); }
.cc-stage-frame::before { content: ""; position: absolute; inset: 8px; z-index: 4; pointer-events: none; border: 1px solid rgba(255,255,255,.06); border-radius: 17px; }
.cc-canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.cc-stage-vignette { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 88px rgba(0,0,0,.38); }
.cc-status-banner { position: absolute; left: 50%; top: 12px; z-index: 6; max-width: 72%; padding: 7px 13px; border: 1px solid rgba(201,216,255,.12); border-radius: 999px; transform: translateX(-50%); color: rgba(238,243,255,.75); background: rgba(5,9,25,.58); backdrop-filter: blur(12px); font-size: 10px; font-weight: 760; text-align: center; pointer-events: none; }

.cc-paused-card { position: absolute; inset: 0; z-index: 20; display: grid; place-content: center; justify-items: center; padding: 30px; background: rgba(5,9,25,.74); backdrop-filter: blur(12px); text-align: center; }
.cc-paused-card[hidden] { display: none; }
.cc-paused-card span { color: var(--cc-accent-2); font-size: 10px; font-weight: 900; letter-spacing: .25em; }
.cc-paused-card strong { margin: 7px 0 18px; color: #fff; font-size: 24px; }

.cc-mobile-controls { display: none; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 8px; }
.cc-mobile-controls button { min-height: 42px; border: 1px solid rgba(195,212,255,.12); border-radius: 12px; background: rgba(255,255,255,.045); font-size: 11px; font-weight: 800; }

.cc-next-card { display: grid; justify-items: center; padding: 12px; margin-bottom: 13px; background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--cc-accent) 16%, transparent), rgba(255,255,255,.025)); }
.cc-next-card > span { color: var(--cc-muted); font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.cc-next-card canvas { width: 94px; height: 94px; }
.cc-next-card small { color: var(--cc-muted); font-size: 9px; }

.cc-power-list { display: grid; gap: 7px; }
.cc-power { display: grid; grid-template-columns: 40px 1fr 26px; align-items: center; gap: 9px; width: 100%; min-height: 58px; padding: 7px; border: 1px solid rgba(190,209,255,.1); border-radius: 15px; text-align: left; background: rgba(255,255,255,.028); transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.cc-power:hover { transform: translateX(-2px); background: rgba(255,255,255,.06); }
.cc-power.is-selected { border-color: var(--cc-gold); background: rgba(255,212,108,.1); box-shadow: 0 0 20px rgba(255,212,108,.1); }
.cc-power__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; font-style: normal; font-size: 20px; }
.cc-power__icon--bomb { color: #ffe17f; background: radial-gradient(circle, #3d2638, #1a1221); }
.cc-power__icon--rainbow { color: #fff; background: conic-gradient(#ff526f,#ffbd3e,#42dfb1,#52a8ff,#aa6cff,#ff526f); box-shadow: inset 0 0 0 8px rgba(10,14,35,.46); }
.cc-power__icon--laser { color: #d8f7ff; background: radial-gradient(circle, #326dd8, #101d4a); text-shadow: 0 0 10px #70d9ff; }
.cc-power span b { display: block; color: #fff; font-size: 10px; }
.cc-power span small { display: block; margin-top: 2px; color: var(--cc-muted); font-size: 8px; line-height: 1.25; }
.cc-power em { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; background: rgba(255,255,255,.09); font-size: 10px; font-style: normal; font-weight: 900; }

.cc-danger-card { margin-top: 11px; padding: 11px; }
.cc-danger-card > div:first-child { display: flex; justify-content: space-between; color: var(--cc-muted); font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.cc-danger-card strong { color: #fff; }
.cc-pressure-dots { display: flex; gap: 5px; margin-top: 9px; }
.cc-pressure-dots i { flex: 1; height: 6px; border-radius: 999px; background: rgba(255,255,255,.08); }
.cc-pressure-dots i.is-active { background: linear-gradient(90deg, #ffad56, var(--cc-danger)); box-shadow: 0 0 10px rgba(255,83,111,.42); }

.cc-stars-card { margin-top: 9px; padding: 11px; text-align: center; }
.cc-stars-card > span { color: var(--cc-muted); font-size: 8px; font-weight: 900; letter-spacing: .14em; }
.cc-stars-card > div { margin: 4px 0 3px; }
.cc-stars-card i { color: var(--cc-gold); font-style: normal; font-size: 19px; text-shadow: 0 0 10px rgba(255,212,108,.45); transition: opacity .2s ease, filter .2s ease; }
.cc-stars-card i.is-dim { opacity: .24; filter: grayscale(1); }
.cc-stars-card small { color: var(--cc-muted); font-size: 8px; }

.cc-footer { position: relative; z-index: 30; display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 40px; padding: 6px 18px; border-top: 1px solid rgba(255,255,255,.07); color: var(--cc-muted); background: rgba(5,9,25,.74); font-size: 10px; }
.cc-footer div { display: flex; align-items: center; gap: 4px; }
.cc-footer kbd { min-width: 21px; padding: 3px 5px; border: 1px solid rgba(255,255,255,.15); border-radius: 6px; color: #fff; background: rgba(255,255,255,.06); font-family: inherit; font-size: 9px; text-align: center; box-shadow: inset 0 -2px 0 rgba(0,0,0,.25); }
.cc-footer span { margin-left: 10px; }

.cc-toast { position: fixed; left: 50%; bottom: 28px; z-index: 10000; max-width: min(430px, calc(100vw - 32px)); padding: 11px 16px; border: 1px solid rgba(201,216,255,.24); border-radius: 13px; transform: translate(-50%, 24px); opacity: 0; color: #fff; background: rgba(8,13,34,.94); box-shadow: 0 18px 50px rgba(0,0,0,.38); backdrop-filter: blur(18px); font-size: 11px; font-weight: 740; text-align: center; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.cc-toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

.cc-modal-backdrop { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 24px; opacity: 0; background: rgba(3,6,17,.75); backdrop-filter: blur(12px); transition: opacity .16s ease; }
.cc-modal-backdrop[hidden] { display: none; }
.cc-modal-backdrop.is-open { opacity: 1; }

.cc-modal { position: relative; width: min(840px, 100%); max-height: min(88vh, 860px); overflow: auto; padding: 28px; border: 1px solid rgba(197,213,255,.22); border-radius: 25px; background:
  radial-gradient(circle at 50% 0, color-mix(in srgb, var(--cc-accent) 20%, transparent), transparent 34%),
  linear-gradient(160deg, rgba(15,23,58,.98), rgba(6,11,30,.99));
  box-shadow: 0 35px 100px rgba(0,0,0,.58), inset 0 1px 0 rgba(255,255,255,.08);
  color: #fff;
  scrollbar-width: thin;
  scrollbar-color: rgba(143,170,255,.45) transparent;
}

.cc-modal__close { position: absolute; right: 15px; top: 14px; width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.13); border-radius: 12px; color: #fff; background: rgba(255,255,255,.05); cursor: pointer; font-size: 22px; }
.cc-modal__eyebrow { color: var(--cc-accent-2); font-size: 9px; font-weight: 900; letter-spacing: .23em; }
.cc-modal h3 { margin: 6px 0 8px; color: #fff; font-size: clamp(25px, 4vw, 38px); font-weight: 880; letter-spacing: -.045em; }
.cc-modal__lead { max-width: 660px; margin: 0 0 20px; color: var(--cc-muted); font-size: 12px; line-height: 1.6; }
.cc-modal__section-title { margin: 22px 0 10px; color: #fff; font-size: 12px; }
.cc-modal__actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }

.cc-mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.cc-mode-grid button { min-height: 190px; padding: 18px; border: 1px solid rgba(191,210,255,.14); border-radius: 20px; text-align: left; background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.018)); transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.cc-mode-grid button:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--cc-accent) 62%, transparent); background: color-mix(in srgb, var(--cc-accent) 12%, rgba(255,255,255,.035)); }
.cc-mode-grid i { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 16px; color: var(--cc-gold); background: rgba(255,212,108,.1); font-size: 23px; font-style: normal; }
.cc-mode-grid b { display: block; font-size: 17px; }
.cc-mode-grid span { display: block; min-height: 42px; margin: 7px 0; color: var(--cc-muted); font-size: 10px; line-height: 1.45; }
.cc-mode-grid em { display: inline-block; padding: 5px 8px; border-radius: 999px; color: var(--cc-accent-2); background: color-mix(in srgb, var(--cc-accent) 15%, transparent); font-size: 9px; font-style: normal; font-weight: 900; }

.cc-level-worlds { display: flex; gap: 6px; padding-bottom: 10px; overflow-x: auto; }
.cc-level-worlds button { flex: 0 0 auto; min-height: 34px; padding: 0 10px; border: 1px solid rgba(191,210,255,.11); border-radius: 10px; color: var(--cc-muted); background: rgba(255,255,255,.035); font-size: 9px; font-weight: 800; }
.cc-level-worlds button:hover { color: #fff; border-color: var(--cc-accent); }

.cc-level-grid { display: grid; grid-template-columns: repeat(8, minmax(70px, 1fr)); gap: 7px; max-height: 56vh; padding: 4px; overflow: auto; }
.cc-level-tile { min-height: 82px; padding: 8px 5px; border: 1px solid rgba(190,209,255,.11); border-radius: 13px; background: rgba(255,255,255,.035); text-align: center; transition: transform .17s ease, border-color .17s ease; }
.cc-level-tile:hover:not(:disabled) { transform: translateY(-3px); border-color: var(--cc-accent-2); }
.cc-level-tile b { display: grid; place-items: center; width: 30px; height: 30px; margin: 0 auto 3px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--cc-accent), var(--cc-accent-2)); font-size: 11px; }
.cc-level-tile span { display: block; color: var(--cc-muted); font-size: 8px; }
.cc-level-tile em { display: block; margin-top: 4px; font-style: normal; }
.cc-level-tile em i { color: rgba(255,255,255,.15); font-size: 9px; font-style: normal; }
.cc-level-tile em i.is-earned { color: var(--cc-gold); }
.cc-level-tile.is-boss { background: rgba(255,83,111,.07); }
.cc-level-tile.is-boss b { background: linear-gradient(135deg, #ff536f, #9d2859); }
.cc-level-tile.is-locked { cursor: default; opacity: .3; filter: grayscale(1); }

.cc-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cc-stat-grid > div { padding: 14px; border: 1px solid rgba(190,209,255,.1); border-radius: 15px; background: rgba(255,255,255,.03); }
.cc-stat-grid span { display: block; color: var(--cc-muted); font-size: 8px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.cc-stat-grid b { display: block; margin-top: 5px; color: #fff; font-size: 18px; }

.cc-achievement-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.cc-achievement-grid > div { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 9px; border: 1px solid rgba(190,209,255,.08); border-radius: 13px; opacity: .4; background: rgba(255,255,255,.025); }
.cc-achievement-grid > div.is-unlocked { opacity: 1; border-color: rgba(255,212,108,.2); background: rgba(255,212,108,.05); }
.cc-achievement-grid i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; color: var(--cc-gold); background: rgba(255,212,108,.09); font-style: normal; }
.cc-achievement-grid b { display: block; font-size: 10px; }
.cc-achievement-grid small { color: var(--cc-muted); font-size: 8px; }

.cc-settings-list { display: grid; gap: 7px; }
.cc-settings-list label { display: grid; grid-template-columns: 1fr auto; align-items: center; min-height: 58px; padding: 9px 12px; border: 1px solid rgba(190,209,255,.09); border-radius: 14px; background: rgba(255,255,255,.025); cursor: pointer; }
.cc-settings-list b { display: block; font-size: 11px; }
.cc-settings-list small { color: var(--cc-muted); font-size: 8px; }
.cc-settings-list input { position: absolute; opacity: 0; pointer-events: none; }
.cc-settings-list label > i { position: relative; width: 43px; height: 24px; border-radius: 999px; background: rgba(255,255,255,.11); transition: background .2s ease; }
.cc-settings-list label > i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.cc-settings-list input:checked + i { background: linear-gradient(90deg, var(--cc-accent), var(--cc-accent-2)); }
.cc-settings-list input:checked + i::after { transform: translateX(19px); }

.cc-theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cc-theme-grid button { display: flex; align-items: center; gap: 9px; min-height: 52px; padding: 8px 11px; border: 1px solid rgba(190,209,255,.1); border-radius: 13px; background: rgba(255,255,255,.03); font-size: 10px; font-weight: 850; }
.cc-theme-grid button.is-active { border-color: var(--cc-accent-2); }
.cc-theme-grid i { width: 31px; height: 31px; border-radius: 10px; background: linear-gradient(135deg, #0d173e, #6f60ff); }
.cc-theme-grid button:nth-child(2) i { background: linear-gradient(135deg, #082531, #35d4ad); }
.cc-theme-grid button:nth-child(3) i { background: linear-gradient(135deg, #2a102c, #fa638b); }

.cc-help-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.cc-help-grid > div { display: flex; gap: 11px; min-height: 84px; padding: 13px; border: 1px solid rgba(190,209,255,.09); border-radius: 15px; background: rgba(255,255,255,.025); }
.cc-help-grid i { flex: 0 0 34px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: #fff; background: linear-gradient(135deg, var(--cc-accent), var(--cc-accent-2)); font-style: normal; font-weight: 900; }
.cc-help-grid b { display: block; font-size: 11px; }
.cc-help-grid small { display: block; margin-top: 4px; color: var(--cc-muted); font-size: 9px; line-height: 1.45; }

.cc-result { position: relative; text-align: center; }
.cc-result__halo { position: absolute; left: 50%; top: -50px; width: 260px; height: 260px; border-radius: 50%; transform: translateX(-50%); background: radial-gradient(circle, color-mix(in srgb, var(--cc-accent) 32%, transparent), transparent 68%); pointer-events: none; }
.cc-result__icon { position: relative; display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 12px; border: 1px solid rgba(255,255,255,.36); border-radius: 24px; color: #fff; background: radial-gradient(circle at 35% 30%, #fff, var(--cc-accent-2) 16%, var(--cc-accent) 55%, #29215b); box-shadow: 0 0 42px color-mix(in srgb, var(--cc-accent) 46%, transparent); font-size: 33px; }
.cc-result--fail .cc-result__icon { background: radial-gradient(circle at 35% 30%, #fff, #ff8b9e 17%, #ff536f 56%, #53132a); box-shadow: 0 0 42px rgba(255,83,111,.28); }
.cc-result .cc-modal__eyebrow { position: relative; }
.cc-result h3 { position: relative; }
.cc-result__stars { margin: 4px 0 10px; }
.cc-result__stars i { display: inline-block; color: rgba(255,255,255,.14); font-size: 39px; font-style: normal; transform: scale(.7); }
.cc-result__stars i.is-earned { color: var(--cc-gold); text-shadow: 0 0 18px rgba(255,212,108,.55); animation: cc-star-in .55s cubic-bezier(.2,1.5,.3,1) var(--delay) both; }
@keyframes cc-star-in { to { transform: scale(1); } }
.cc-result__score { display: inline-block; min-width: 220px; padding: 13px 24px; border: 1px solid rgba(190,209,255,.12); border-radius: 17px; background: rgba(255,255,255,.035); }
.cc-result__score span { display: block; color: var(--cc-muted); font-size: 8px; font-weight: 900; letter-spacing: .16em; }
.cc-result__score b { display: block; color: #fff; font-size: 31px; letter-spacing: -.04em; }
.cc-result__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; max-width: 480px; margin: 12px auto 0; }
.cc-result__stats div { padding: 10px; border: 1px solid rgba(190,209,255,.08); border-radius: 12px; background: rgba(255,255,255,.025); }
.cc-result__stats span { display: block; color: var(--cc-muted); font-size: 8px; }
.cc-result__stats b { font-size: 15px; }
.cc-reward { display: flex; align-items: center; gap: 10px; max-width: 330px; margin: 12px auto 0; padding: 9px 12px; border: 1px solid rgba(255,212,108,.2); border-radius: 14px; text-align: left; background: rgba(255,212,108,.06); }
.cc-reward i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: var(--cc-gold); background: rgba(255,212,108,.1); font-style: normal; font-size: 20px; }
.cc-reward b { display: block; font-size: 10px; }
.cc-reward small { color: var(--cc-muted); font-size: 8px; }
.cc-result .cc-modal__actions { justify-content: center; }

@media (max-width: 1180px) {
  .cc-topbar { grid-template-columns: auto 1fr auto; }
  .cc-main-actions { justify-content: center; }
  .cc-main-actions .cc-button:nth-child(3), .cc-main-actions .cc-button:nth-child(4) { display: none; }
  .cc-metrics { display: none; }
  .cc-layout { grid-template-columns: 178px minmax(500px, 1fr) 186px; gap: 9px; padding: 10px; }
  .cc-panel { padding: 10px; }
  .cc-power { grid-template-columns: 35px 1fr 24px; gap: 6px; }
  .cc-power__icon { width: 34px; height: 34px; }
  .cc-stage-frame { min-height: 500px; }
}

@media (max-width: 930px) {
  #gcg-game-root, .cc-game { min-height: auto; }
  .cc-topbar { grid-template-columns: 1fr auto; min-height: 75px; padding: 9px 11px; }
  .cc-brand__mark { flex-basis: 48px; width: 48px; height: 48px; border-radius: 16px; }
  .cc-brand__copy h2 { font-size: 19px; }
  .cc-main-actions { grid-column: 1 / -1; order: 3; justify-content: stretch; width: 100%; }
  .cc-main-actions .cc-button { flex: 1; min-height: 38px; padding: 0 8px; font-size: 10px; }
  .cc-main-actions .cc-button:nth-child(3), .cc-main-actions .cc-button:nth-child(4) { display: block; }
  .cc-subbar { grid-template-columns: 1fr auto; padding: 7px 10px; }
  .cc-goal { grid-column: 1 / -1; grid-row: 2; justify-content: center; }
  .cc-subbar__right .cc-mini-button { display: none; }
  .cc-layout { display: block; padding: 8px; min-height: 0; }
  .cc-panel { display: none; }
  .cc-stage-frame { min-height: 0; aspect-ratio: 3 / 2; border-radius: 17px; }
  .cc-status-banner { top: 8px; max-width: 84%; padding: 5px 9px; font-size: 8px; }
  .cc-mobile-controls { display: grid; }
  .cc-footer { display: none; }
  .cc-level-grid { grid-template-columns: repeat(5, minmax(58px, 1fr)); }
}

@media (max-width: 620px) {
  .cc-game { overflow: visible; }
  .cc-topbar { gap: 8px; }
  .cc-brand__copy small { font-size: 8px; }
  .cc-brand__copy h2 { font-size: 17px; }
  .cc-utility { gap: 5px; }
  .cc-icon-button { width: 38px; height: 38px; border-radius: 11px; }
  .cc-main-actions .cc-button:nth-child(3), .cc-main-actions .cc-button:nth-child(5) { display: none; }
  .cc-subbar { gap: 7px; }
  .cc-subbar__left { gap: 6px; font-size: 9px; }
  .cc-subbar__right { font-size: 9px; }
  .cc-mode-chip { padding: 4px 7px; font-size: 8px; }
  .cc-goal { font-size: 10px; }
  .cc-stage-frame { min-height: 0; height: auto; aspect-ratio: 3 / 2; }
  .cc-canvas { width: 100%; height: 100%; }
  .cc-modal-backdrop { padding: 10px; }
  .cc-modal { padding: 22px 15px 16px; border-radius: 19px; }
  .cc-modal h3 { font-size: 27px; }
  .cc-mode-grid { grid-template-columns: 1fr; }
  .cc-mode-grid button { min-height: 112px; display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px; }
  .cc-mode-grid i { margin: 0; }
  .cc-mode-grid span { min-height: auto; margin: 3px 0; }
  .cc-mode-grid em { grid-column: 3; grid-row: 1; }
  .cc-level-grid { grid-template-columns: repeat(4, minmax(54px, 1fr)); max-height: 62vh; }
  .cc-level-tile { min-height: 70px; }
  .cc-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .cc-achievement-grid, .cc-help-grid { grid-template-columns: 1fr; }
  .cc-theme-grid { grid-template-columns: 1fr; }
  .cc-modal__actions { flex-wrap: wrap; }
  .cc-modal__actions .cc-button { flex: 1; }
}

@media (max-width: 390px) {
  .cc-brand__copy h2 { font-size: 15px; }
  .cc-brand__mark { flex-basis: 43px; width: 43px; height: 43px; }
  .cc-main-actions .cc-button { font-size: 9px; }
  .cc-stage-frame { height: auto; }
  .cc-level-grid { grid-template-columns: repeat(3, minmax(54px, 1fr)); }
}
