/* ===== Clan Campus (js/campus.js) ===== */
.cc { position: absolute; inset: 0; z-index: 260; background: #7dbf68; overflow: hidden; touch-action: none; color: #e9eef5;
  font-family: system-ui, sans-serif; }
.cc-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.cc-canvas:active { cursor: grabbing; }
.cc-loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; background: #7dbf68; color: #0f2a17; font-weight: 800; }

.cc-top { position: absolute; top: calc(8px + var(--sat, 0px)); left: calc(8px + var(--sal, 0px)); right: calc(8px + var(--sar, 0px));
  display: flex; align-items: center; gap: 8px; pointer-events: none; }
.cc-top > * { pointer-events: auto; }
.cc-back { flex: 0 0 auto; width: 42px; height: 42px; border: 2px solid rgba(255,255,255,.25); border-radius: 12px;
  background: linear-gradient(180deg, #2c3a4d, #1b2430); color: #fff; font: 900 26px/1 system-ui, sans-serif; cursor: pointer; box-shadow: 0 3px 8px rgba(0,0,0,.4); }
.cc-title { flex: 1; min-width: 0; padding: 6px 12px; border-radius: 14px; background: rgba(10,16,28,.86); border: 1px solid rgba(96,165,250,.35); box-shadow: 0 4px 12px rgba(0,0,0,.35); }
.cc-title b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.cc-title small { display: block; color: #8fb4d9; font-size: 9px; font-weight: 900; letter-spacing: 1.2px; }
.cc-credits { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; padding: 5px 12px 5px 6px; border-radius: 14px;
  background: rgba(10,16,28,.86); border: 1px solid rgba(245,184,61,.55); }
.cc-credits b { display: block; color: #ffd46b; font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cc-credits small { display: block; color: #9fb0c5; font-size: 9px; font-weight: 900; letter-spacing: .8px; }
.cc-coin { display: inline-block; flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; vertical-align: middle;
  background: radial-gradient(circle at 35% 30%, #fff3c4, #f5b83d 45%, #b7791f); box-shadow: inset 0 0 0 2px #d99a2b, 0 1px 2px rgba(0,0,0,.4); }
.cc-builders { position: absolute; top: calc(60px + var(--sat, 0px)); left: calc(8px + var(--sal, 0px)); display: flex; align-items: center; gap: 4px;
  padding: 3px 10px 3px 5px; border-radius: 99px; background: rgba(10,16,28,.8); font-size: 12px; font-weight: 900; }
.cc-builders .cc-ico { width: 20px; height: 20px; }
.cc-ico { display: inline-block; width: 18px; height: 18px; object-fit: contain; vertical-align: -4px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.4)); }
.cc.is-battle .cc-builders, .cc.is-battle .cc-side { display: none; }

.cc-side { position: absolute; right: calc(8px + var(--sar, 0px)); top: calc(64px + var(--sat, 0px)); display: flex; flex-direction: column; gap: 8px; }
.cc-side button { width: 58px; height: 62px; padding: 2px 0 0; border: 2px solid rgba(255,255,255,.25); border-radius: 14px;
  background: linear-gradient(180deg, #2c3a4d, #1b2430); cursor: pointer; box-shadow: 0 3px 8px rgba(0,0,0,.4); }
.cc-side img { width: 40px; height: 38px; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0,0,0,.45)); }
.cc-side small { display: block; margin-top: -2px; color: #fff; font-size: 8px; font-weight: 900; letter-spacing: .8px; }
.cc-side .cc-attack-btn { border-color: rgba(255,120,120,.8); background: linear-gradient(160deg, #e0463c, #7a1d1d 70%); }

.cc-bottom { position: absolute; left: calc(8px + var(--sal, 0px)); right: calc(8px + var(--sar, 0px)); bottom: calc(10px + var(--sab, 0px));
  display: flex; justify-content: center; pointer-events: none; }
.cc-card { pointer-events: auto; width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px;
  border-radius: 16px; background: rgba(10,16,28,.93); border: 1px solid rgba(96,165,250,.35); box-shadow: 0 10px 28px rgba(0,0,0,.45); }
.cc-card > b, .cc-head b { color: #fff; font-size: 15px; line-height: 1.2; }
.cc-card small { color: #9fb0c5; font-size: 11.5px; line-height: 1.4; }
.cc-card small b { color: #fff; }
.cc-card.is-intro { border-color: rgba(246,196,83,.6); }
.cc-head { display: flex; gap: 10px; align-items: center; }
.cc-head > img { width: 64px; height: 56px; object-fit: contain; flex: 0 0 auto; }
.cc-head > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cc-info { font-size: 10.5px !important; }
.cc-hint { text-align: center; font-size: 10px !important; opacity: .8; }
.cc-kicker { color: #46c8ff; font-size: 9.5px; font-weight: 900; letter-spacing: 1.4px; }
.cc-kicker.gold { color: #f6c453; }
.cc-row { display: flex; gap: 8px; flex-wrap: wrap; }
.cc-row > * { flex: 1 1 0; }
.cc-max { align-self: center; text-align: center; color: #8594a8; font-size: 11px; font-weight: 900; letter-spacing: .8px; }
.cc-btn { min-height: 42px; padding: 0 12px; border: 0; border-radius: 12px; font: inherit; font-size: 13px; font-weight: 900; color: #fff; cursor: pointer;
  background: linear-gradient(180deg, #3b82f6, #1d4ed8); box-shadow: 0 3px 0 #173a8a; transition: transform .1s; }
.cc-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #173a8a; }
.cc-btn:disabled { opacity: .45; cursor: default; }
.cc-btn.green { background: linear-gradient(180deg, #22c55e, #15803d); box-shadow: 0 3px 0 #0f5f2d; }
.cc-btn.red { background: linear-gradient(180deg, #ef4444, #b91c1c); box-shadow: 0 3px 0 #7f1d1d; }
.cc-btn.purple { background: linear-gradient(180deg, #a855f7, #6d28d9); box-shadow: 0 3px 0 #4c1d95; }
.cc-stat { display: grid; grid-template-columns: 58px 1fr 38px; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 800; color: #c3d0e0; }
.cc-stat > i { display: block; height: 7px; border-radius: 4px; background: #1c2838; overflow: hidden; }
.cc-stat > i > i { display: block; height: 100%; border-radius: 4px; }
.cc-stat em { font-style: normal; text-align: right; font-variant-numeric: tabular-nums; }

.cc-inv { display: flex; gap: 8px; }
.cc-inv-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 12px;
  border: 2px solid rgba(246,196,83,.55); background: #16202e; cursor: pointer; animation: cc-pulse 1.6s ease-in-out infinite; }
.cc-inv-item img { width: 56px; height: 44px; object-fit: contain; }
.cc-inv-item small { font-size: 9.5px !important; font-weight: 800; color: #fff !important; text-align: center; }
@keyframes cc-pulse { 50% { box-shadow: 0 0 0 4px rgba(246,196,83,.18); } }

.cc-sheet { position: absolute; inset: 0; z-index: 5; display: flex; align-items: flex-end; justify-content: center; background: rgba(4,8,14,.55); }
.cc-sheet-card { width: 100%; max-width: 480px; max-height: 78%; overflow: auto; margin: 0 8px calc(8px + var(--sab, 0px)); padding: 12px 14px 16px;
  border-radius: 18px; background: #0f1724; border: 1px solid rgba(96,165,250,.35); box-shadow: 0 -10px 30px rgba(0,0,0,.5); }
.cc-sheet-card header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cc-sheet-card header b { font-size: 17px; }
.cc-sheet-x { width: 34px; height: 34px; border: 0; border-radius: 10px; background: #1f2b3c; color: #fff; font-size: 16px; cursor: pointer; }
.cc-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.cc-tabs button { flex: 1; height: 34px; border: 0; border-radius: 10px; background: #1a2536; color: #8fb4d9; font: inherit; font-size: 11px; font-weight: 900; letter-spacing: 1px; cursor: pointer; }
.cc-tabs button.is-on { background: #2563eb; color: #fff; }
.cc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; }
.cc-shop-item { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 6px 10px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.1); background: linear-gradient(180deg, #1b2738, #121b28); color: #fff; font: inherit; cursor: pointer; }
.cc-shop-item > img { width: 100%; height: 76px; object-fit: contain; }
.cc-shop-item b { font-size: 12.5px; }
.cc-shop-item small { color: #8fb4d9; font-size: 10px; font-weight: 800; }
.cc-shop-item em { display: flex; align-items: center; gap: 4px; color: #ffd46b; font-style: normal; font-size: 11.5px; font-weight: 900; }
.cc-shop-item em .cc-coin { width: 15px; height: 15px; }
.cc-shop-item.is-locked { opacity: .5; filter: grayscale(.7); }
.cc-grid.troops { grid-template-columns: 1fr; }
.cc-troop { display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto; column-gap: 10px; align-items: center; padding: 8px 10px;
  border-radius: 14px; background: #152032; border: 1px solid rgba(255,255,255,.08); }
.cc-troop img { grid-row: span 5; width: 64px; height: 64px; object-fit: contain; }
.cc-troop b { font-size: 14px; }
.cc-troop small { color: #9fb0c5; font-size: 11px; }
.cc-troop .cc-meta { color: #c3d0e0; font-weight: 800; font-size: 10.5px; }
.cc-troop .cc-queue { color: #ffd46b; font-weight: 800; }
.cc-troop .cc-btn { margin-top: 4px; min-height: 36px; }
.cc-troop.is-locked { opacity: .55; }
.cc-count { color: #4ade80; }
.cc-housing { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; margin-bottom: 10px; font-size: 10px; font-weight: 900; letter-spacing: 1px; color: #8fb4d9; }
.cc-housing > i { display: block; height: 9px; border-radius: 5px; background: #1c2838; overflow: hidden; }
.cc-housing > i > i { display: block; height: 100%; background: linear-gradient(90deg, #22c55e, #86efac); }
.cc-housing b { color: #fff; font-size: 12px; }
.cc-note, .cc-empty { margin: 4px 0 10px; color: #9fb0c5; font-size: 12px; line-height: 1.45; }
.cc-note + .cc-btn { width: 100%; }
.cc-targets { display: flex; flex-direction: column; gap: 8px; }
.cc-target { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; text-align: left;
  border: 1px solid rgba(255,120,120,.35); background: linear-gradient(180deg, #2a1a22, #17111a); color: #fff; font: inherit; cursor: pointer; }
.cc-target:disabled { opacity: .5; cursor: default; }
.cc-target b { display: block; font-size: 14px; }
.cc-target small { display: block; color: #b5a3b8; font-size: 11px; }
.cc-target .cc-best { color: #ffd46b; font-weight: 800; }
.cc-target em { display: flex; align-items: center; gap: 4px; color: #ffd46b; font-style: normal; font-weight: 900; font-size: 13px; white-space: nowrap; }
.cc-target em .cc-coin { width: 16px; height: 16px; }

.cc-card.is-battle { max-width: 520px; }
.cc-battlebar { display: flex; gap: 8px; }
.cc-deploy { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 4px 2px 6px; border-radius: 12px; border: 2px solid rgba(255,255,255,.12);
  background: #16202e; color: #fff; font: inherit; cursor: pointer; }
.cc-deploy img { width: 52px; height: 48px; object-fit: contain; }
.cc-deploy b { font-size: 14px; }
.cc-deploy small { font-size: 9px !important; font-weight: 800; }
.cc-deploy.is-on { border-color: #facc15; background: #2a2412; box-shadow: 0 0 0 3px rgba(250,204,21,.18); }
.cc-deploy.is-empty { opacity: .4; }
.cc-speed { flex: 0 0 64px !important; }

.cc-sheet.is-result { align-items: center; }
.cc-sheet.is-result .cc-sheet-card { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; max-width: 360px; }
.cc-ko { display: flex; gap: 10px; }
.cc-ko img { width: 52px; height: 52px; object-fit: contain; filter: grayscale(1) brightness(.45); }
.cc-ko img.is-on { filter: drop-shadow(0 4px 8px rgba(245,184,61,.55)); animation: cc-pop .55s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes cc-pop { from { transform: scale(0) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
.cc-trophy { object-fit: contain; vertical-align: -3px; filter: grayscale(1) brightness(.5); }
.cc-trophy.is-on { filter: none; }
.cc-big { font-size: 40px; font-weight: 900; color: #fff; }
.cc-sheet.is-result small { color: #8fb4d9; font-size: 11px; }
.cc-loot { display: flex; align-items: center; gap: 6px; margin: 6px 0; color: #ffd46b; font-weight: 900; font-size: 16px; }
.cc-sheet.is-result .cc-btn { width: 100%; }

/* Einstieg im Clan-Fenster */
.clan-campus-card { display: flex; gap: 10px; align-items: center; width: 100%; margin: 8px 0; padding: 8px 10px; border-radius: 14px; text-align: left;
  border: 1px solid rgba(74,222,128,.45); background: linear-gradient(135deg, #16331f, #111b27); color: #fff; font: inherit; cursor: pointer; }
.clan-campus-card img { width: 72px; height: 60px; object-fit: contain; }
.clan-campus-card b { display: block; font-size: 14px; }
.clan-campus-card small { display: block; color: #9fb0c5; font-size: 11px; }

/* ---- Bilder in Karten, Shop, Truppen ---- */
.cc-btn .cc-ico { width: 18px; height: 18px; margin-right: 3px; }
.cc-btn.gold { background: linear-gradient(180deg, #fbbf24, #d97706); box-shadow: 0 3px 0 #92400e; color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.25); }
.cc-troop-art { display: block; background-repeat: no-repeat; filter: drop-shadow(0 3px 3px rgba(0,0,0,.35)); }
.cc-troop-pic { grid-row: span 5; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 12px;
  background: radial-gradient(circle at 50% 70%, #2b3d57, #121b29); }
.cc-deploy-pic { height: 48px; display: grid; place-items: center; transform: scale(.78); }
.cc-target { align-items: center; }
.cc-target-art { width: 58px; height: 46px; object-fit: contain; flex: 0 0 auto; }
.cc-target > div { flex: 1; min-width: 0; }

/* ---- HQ-Karte ---- */
.cc-card.cc-hq { border-color: rgba(246,196,83,.55); background: linear-gradient(160deg, rgba(42,32,10,.95), rgba(10,16,28,.95) 55%); }
.cc-hq-head { display: flex; gap: 12px; align-items: center; }
.cc-hq-art { flex: 0 0 auto; width: 92px; height: 86px; display: grid; place-items: center; border-radius: 14px;
  background: radial-gradient(circle at 50% 65%, rgba(246,196,83,.28), rgba(0,0,0,0) 70%); }
.cc-hq-art img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.45)); }
.cc-hq-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cc-hq-copy > b { color: #fff; font-size: 16px; }
.cc-stars { display: flex; align-items: center; gap: 3px; }
.cc-stars img { width: 20px; height: 20px; object-fit: contain; filter: grayscale(1) brightness(.4); }
.cc-stars img.is-on { filter: drop-shadow(0 1px 3px rgba(245,184,61,.6)); }
.cc-stars em { margin-left: 6px; color: #f6c453; font-style: normal; font-size: 10px; font-weight: 900; letter-spacing: 1.2px; }
.cc-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.cc-chip { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px 2px 3px; border-radius: 99px; background: rgba(255,255,255,.07);
  color: #dbe4f0; font-size: 10.5px; font-weight: 900; font-variant-numeric: tabular-nums; }
.cc-chip > img { width: 22px; height: 18px; object-fit: contain; }
.cc-hq-busy { display: grid; grid-template-columns: auto 1fr; gap: 4px 6px; align-items: center; color: #ffe39a; font-size: 11.5px; font-weight: 800; }
.cc-hq-busy > i { grid-column: 1 / -1; height: 7px; border-radius: 4px; background: #1c2838; overflow: hidden; }
.cc-hq-busy > i > i { display: block; height: 100%; background: linear-gradient(90deg, #38d6ff, #a5f3ff); }

/* ---- Upgrade-Fenster ---- */
.cc-sheet.is-upgrade { align-items: center; }
.cc-sheet.is-upgrade .cc-sheet-card { max-width: 430px; background: linear-gradient(180deg, #16233a, #0d1522); }
.cc-up { display: flex; flex-direction: column; gap: 10px; }
.cc-up-stage { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 6px; padding: 12px 8px 8px; border-radius: 16px;
  background: radial-gradient(ellipse at 50% 100%, rgba(74,222,128,.18), transparent 60%), linear-gradient(180deg, #1b2a42, #121c2c); }
.cc-up.is-noc .cc-up-stage { background: radial-gradient(ellipse at 70% 100%, rgba(246,196,83,.25), transparent 60%), linear-gradient(180deg, #2a2412, #121c2c); }
.cc-up-side { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.cc-up-side img { width: 100%; height: 110px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0,0,0,.45)) saturate(.7) brightness(.85); }
.cc-up.is-noc .cc-up-side img { height: 150px; }
.cc-up-side.is-next img { filter: drop-shadow(0 8px 12px rgba(0,0,0,.5)); animation: cc-float 2.4s ease-in-out infinite; }
@keyframes cc-float { 50% { transform: translateY(-5px); } }
.cc-up-side span { padding: 2px 10px; border-radius: 99px; background: rgba(255,255,255,.08); color: #9fb0c5; font-size: 10px; font-weight: 900; letter-spacing: 1.2px; }
.cc-up-side.is-next span { background: #22c55e; color: #fff; }
.cc-up.is-noc .cc-up-side.is-next span { background: #f59e0b; }
.cc-up-arrow { align-self: center; color: #4ade80; font-size: 26px; font-weight: 900; text-shadow: 0 0 10px rgba(74,222,128,.6); }
.cc-up.is-noc .cc-up-arrow { color: #fbbf24; text-shadow: 0 0 10px rgba(251,191,36,.6); }
.cc-up-stats { display: flex; flex-direction: column; gap: 4px; }
.cc-up-stat { display: grid; grid-template-columns: 1fr auto auto auto 54px; gap: 8px; align-items: center; padding: 6px 10px; border-radius: 10px;
  background: rgba(255,255,255,.05); font-size: 12px; font-variant-numeric: tabular-nums; }
.cc-up-stat span { color: #9fb0c5; font-weight: 800; }
.cc-up-stat b { color: #fff; }
.cc-up-stat b.up { color: #4ade80; }
.cc-up-stat i { color: #64748b; font-style: normal; }
.cc-up-stat em { color: #4ade80; font-style: normal; font-weight: 900; font-size: 10.5px; text-align: right; }
.cc-up h4 { margin: 2px 0 0; color: #f6c453; font-size: 10px; letter-spacing: 1.6px; }
.cc-unlocks { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.cc-unlock { display: grid; grid-template-columns: 38px 1fr; grid-template-rows: auto auto; column-gap: 6px; align-items: center; padding: 6px; border-radius: 12px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.06); }
.cc-unlock > img { grid-row: span 2; width: 38px; height: 34px; object-fit: contain; }
.cc-unlock b { color: #fff; font-size: 11px; line-height: 1.15; }
.cc-unlock small { color: #9fb0c5; font-size: 9.5px; font-weight: 900; }
.cc-unlock.is-new { border-color: rgba(246,196,83,.55); background: rgba(246,196,83,.08); }
.cc-unlock.is-new small { color: #f6c453; }
.cc-up-cost { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; color: #e9eef5; font-size: 13px; font-weight: 900; }
.cc-up-cost span { display: inline-flex; align-items: center; gap: 5px; }
.cc-up-cost .cc-coin { width: 18px; height: 18px; }
.cc-up-reason { margin: 0; text-align: center; color: #fca5a5; font-size: 12px; font-weight: 800; }
.cc-up-go { min-height: 50px; font-size: 15px; letter-spacing: .5px; }

/* ---- Bauteil-Menue (wie das Raum-Menue der Standorte, js/ui.js openRoomBuildPanel) ---- */
.cc-kit { position: absolute; z-index: 4; top: 0; right: 0; bottom: 0; width: min(400px, 82vw); display: flex; flex-direction: column;
  background: var(--panel, #f4f6f9); border-radius: 18px 0 0 18px; box-shadow: -8px 0 30px rgba(0,0,0,.45); color: var(--text, #22303f);
  animation: cc-kit-in .22s ease-out; }
@keyframes cc-kit-in { from { transform: translateX(40px); opacity: 0; } }
.cc-kit-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: calc(12px + var(--sat, 0px)) 14px 12px 16px;
  background: linear-gradient(180deg, #2c3a4d, #1b2430); color: #fff; border-radius: 18px 0 0 0; }
.cc-kit-top b { display: flex; align-items: center; gap: 6px; font-size: 17px; font-weight: 800; }
.cc-kit-top .cc-ico { width: 24px; height: 24px; }
.cc-kit-x { width: 34px; height: 34px; border: 0; border-radius: 10px; background: rgba(255,255,255,.15); color: #fff; font-size: 16px; font-weight: 800; cursor: pointer; }
.cc-kit-body { flex: 1; overflow-y: auto; padding: 12px 12px calc(14px + var(--sab, 0px)); touch-action: pan-y; }
.cc-kit-head b { display: block; font-size: 16px; font-weight: 800; }
.cc-kit-head b span { color: var(--blue, #2e9fff); }
.cc-kit-head small { color: var(--text-dim, #6b7a8c); font-size: 12px; }
.cc-kit-metric { display: flex; align-items: center; gap: 10px; margin: 8px 0; padding: 10px 12px; border-radius: 12px; background: var(--dark, #1b2430); color: #fff; }
.cc-kit-mico { width: 34px !important; height: 34px !important; }
.cc-kit-metric small { display: block; font-size: 11px; opacity: .75; letter-spacing: .5px; font-weight: 800; }
.cc-kit-metric b { display: block; font-size: 20px; font-weight: 900; color: #6ee7ff; }
.cc-kit-metric em { display: block; font-style: normal; font-size: 11px; opacity: .8; }
.cc-kit .cc-stat { color: var(--text, #22303f); margin: 3px 2px; }
.cc-kit .cc-stat > i { background: #dde4ec; }
.cc-kit-warn { margin: 6px 0; color: #c0392b; font-size: 12px; font-weight: 800; }
.cc-kit-progress { height: 10px; margin: 8px 0 10px; border-radius: 6px; background: #dde4ec; overflow: hidden; }
.cc-kit-progress i { display: block; height: 100%; background: linear-gradient(90deg, #3ddc52, #27a335); }
.cc-kit h3 { display: flex; justify-content: space-between; margin: 6px 2px; color: var(--text-dim, #6b7a8c); font-size: 13px; text-transform: uppercase; }
.cc-kit h3 span { color: var(--text, #22303f); }
.cc-kit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-bottom: 12px; }
.cc-slot { position: relative; display: flex; flex-direction: column; align-items: center; padding: 6px 4px 7px; border: 0; border-radius: 12px;
  background: #dde4ec; font: inherit; cursor: default; opacity: .62; transition: transform .1s; }
.cc-slot.can { cursor: pointer; opacity: 1; box-shadow: 0 0 0 2px rgba(46,204,64,.55) inset; }
.cc-slot.can:active { transform: scale(.94); }
.cc-slot.is-full { background: var(--dark, #1b2430); opacity: 1; }
.cc-slot.is-locked { opacity: .4; }
.cc-slot-art { display: block; width: 52px; height: 52px; background-repeat: no-repeat; background-size: 290%; background-position: 50% 60%; }
.cc-slot-plus { display: block; height: 52px; line-height: 52px; color: var(--text-dim, #6b7a8c); font-size: 24px; }
.cc-pips { display: flex; gap: 2px; justify-content: center; margin-top: 3px; }
.cc-pips i { width: 7px; height: 7px; border-radius: 50%; background: #cfd8e3; }
.cc-slot.is-full .cc-pips i { background: #3a4658; }
.cc-pips i.on { background: var(--yellow, #ffd700) !important; }
.cc-slot em { display: flex; align-items: center; gap: 2px; margin-top: 3px; font-style: normal; font-size: 10px; font-weight: 800; color: var(--text-dim, #6b7a8c); white-space: nowrap; }
.cc-slot.is-full em { color: #ffd700; }
.cc-slot em .cc-coin { width: 11px; height: 11px; }
.cc-kit-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--card, #fff); }
.cc-kit-row > img { width: 28px; height: 28px; object-fit: contain; }
.cc-kit-row > div { flex: 1; min-width: 0; }
.cc-kit-row b { display: block; font-size: 13px; }
.cc-kit-row small { display: block; color: var(--text-dim, #6b7a8c); font-size: 11px; }
.cc-kit-row .cc-btn { flex: 0 0 auto; min-height: 36px; font-size: 12px; }
.cc-kit .cc-hint { display: block; margin-top: 8px; color: var(--text-dim, #6b7a8c); }
@media (orientation: portrait) {
  .cc-kit { top: auto; left: 0; width: auto; max-height: 62%; border-radius: 18px 18px 0 0; animation-name: cc-kit-up; }
  .cc-kit-top { padding-top: 12px; border-radius: 18px 18px 0 0; }
}
@keyframes cc-kit-up { from { transform: translateY(40px); opacity: 0; } }

/* ---- Feinschliff ---- */
.cc-title b, .cc-title small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-up-foot { position: sticky; bottom: -16px; margin: 0 -14px -16px; padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 8px;
  background: linear-gradient(180deg, rgba(13,21,34,0), #0d1522 18%); }
.cc-sheet.is-upgrade .cc-sheet-card { max-height: 90%; }

/* HQ-Level-up-Feier */
.cc-sheet.is-levelup { z-index: 7; background: rgba(4,8,14,.72); }
.cc-sheet.is-levelup .cc-sheet-card { position: relative; overflow: hidden; max-width: 380px; border-color: rgba(246,196,83,.6);
  background: radial-gradient(circle at 50% 28%, #3b2a0c, #0f1724 62%); animation: cc-lu-in .5s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes cc-lu-in { from { transform: scale(.6); opacity: 0; } }
.cc-lu-rays { position: absolute; left: 50%; top: 32%; width: 520px; height: 520px; margin: -260px 0 0 -260px; pointer-events: none; opacity: .35;
  background: repeating-conic-gradient(rgba(246,196,83,.5) 0 8deg, transparent 8deg 22deg); border-radius: 50%;
  -webkit-mask: radial-gradient(circle, #000 20%, transparent 68%); mask: radial-gradient(circle, #000 20%, transparent 68%);
  animation: cc-spin 14s linear infinite; }
@keyframes cc-spin { to { transform: rotate(360deg); } }
.cc-sheet.is-levelup .cc-sheet-card > * { position: relative; }
.cc-lu-art { width: 170px; height: 170px; object-fit: contain; filter: drop-shadow(0 10px 16px rgba(0,0,0,.55)); animation: cc-float 2.4s ease-in-out infinite; }
.cc-stars.big img { width: 34px; height: 34px; }
.cc-stars.big img.is-on { animation: cc-pop .5s cubic-bezier(.2,1.6,.4,1) both; }
.cc-sheet.is-levelup .cc-unlocks { width: 100%; text-align: left; }
@media (prefers-reduced-motion: reduce) {
  .cc-lu-rays, .cc-lu-art, .cc-up-side.is-next img { animation: none; }
}

/* ---- Mauern (einzeln, Reihe, Mauer-Modus) ---- */
.cc-wall-pics { flex: 0 0 auto; display: flex; flex-direction: column; gap: 2px; width: 64px; }
.cc-wall-pics img { width: 64px; height: 22px; object-fit: contain; opacity: .35; filter: grayscale(.8); }
.cc-wall-pics img.is-done { opacity: .6; filter: grayscale(.4); }
.cc-wall-pics img.is-on { opacity: 1; filter: drop-shadow(0 0 6px rgba(246,196,83,.6)); transform: scale(1.12); }
.cc-wallcard .cc-btn .cc-coin { width: 15px; height: 15px; margin: 0 2px 0 4px; }
.cc-card.cc-wallmode { border-color: rgba(74,222,128,.55); }
.cc-wallmode .cc-kicker .cc-coin { width: 11px; height: 11px; vertical-align: -1px; }
.cc-wallmode .cc-head > img { width: 64px; height: 40px; }

/* ===== v3: Waehrungen, HUD, Einsammeln, Labor, Kaempfe, HQ-Uebersicht ===== */
.cc-cur { display: inline-flex; align-items: center; gap: 3px; font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cc-cur + .cc-cur { margin-left: 6px; }
.cc-cur-ico { width: 17px; height: 17px; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
.cc-free { color: #4ade80; }

/* Ressourcen-Leisten oben rechts (wie in Clash of Clans) */
.cc-title { flex: 1 1 auto; }
.cc-res { flex: 0 0 auto; display: flex; flex-direction: column; gap: 4px; min-width: 150px; }
.cc-bar { position: relative; display: flex; align-items: center; height: 26px; padding-left: 16px; }
.cc-bar[hidden] { display: none; }
.cc-bar > img { position: absolute; left: -2px; top: 50%; z-index: 2; width: 32px; height: 32px; transform: translateY(-50%); object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); }
.cc-bar > div { position: relative; flex: 1; height: 22px; border-radius: 0 11px 11px 0; background: rgba(10,16,28,.9);
  border: 1px solid rgba(255,255,255,.12); overflow: hidden; }
.cc-bar > div > i { position: absolute; inset: 0; }
.cc-bar > div > i > i { display: block; height: 100%; transition: width .4s; }
.cc-bar.is-credits > div > i > i { background: linear-gradient(180deg, rgba(251,191,36,.55), rgba(217,119,6,.45)); }
.cc-bar.is-tpu > div > i > i { background: linear-gradient(180deg, rgba(167,139,250,.6), rgba(109,40,217,.5)); }
.cc-bar b { position: relative; display: block; padding: 0 8px 0 18px; color: #fff; font-size: 13px; line-height: 21px; text-shadow: 0 1px 2px rgba(0,0,0,.7);
  font-variant-numeric: tabular-nums; }
.cc-bar small { position: absolute; right: 7px; top: 0; color: rgba(255,255,255,.75); font-size: 8.5px; font-weight: 900; line-height: 21px; letter-spacing: .6px; }
.cc-bar.is-full small { color: #fca5a5; }
.cc-bar.bump > img { animation: cc-bump .35s ease-out; }
@keyframes cc-bump { 40% { transform: translateY(-50%) scale(1.35); } }
.cc-fly { position: absolute; z-index: 20; width: 26px; height: 26px; pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0,0,0,.45)); }

.cc-pills { position: absolute; top: calc(66px + var(--sat, 0px)); left: calc(8px + var(--sal, 0px)); display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.cc-pills[hidden], .cc-pill[hidden] { display: none; }
.cc-pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px 2px 3px; border-radius: 99px; background: rgba(10,16,28,.82);
  border: 1px solid rgba(255,255,255,.12); color: #fff; font-size: 12px; font-weight: 900; font-variant-numeric: tabular-nums; }
.cc-pill .cc-ico { width: 22px; height: 22px; }
.cc-pill.is-shield { border-color: rgba(96,165,250,.6); }
.cc-help { position: absolute; left: calc(8px + var(--sal, 0px)); bottom: calc(14px + var(--sab, 0px)); z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3); background: linear-gradient(180deg, #2c3a4d, #1b2430); color: #fff; font: 900 18px/1 system-ui, sans-serif;
  cursor: pointer; box-shadow: 0 3px 8px rgba(0,0,0,.4); }
.cc.is-battle .cc-help, .cc.is-battle .cc-res { display: none; }
.cc-builders { display: none; }

/* Karten: Kosten mit Waehrungssymbol */
.cc-btn .cc-cur-ico { width: 16px; height: 16px; }
.cc-kicker .cc-cur-ico { width: 13px; height: 13px; }
.cc-kicker .cc-ico { width: 13px; height: 13px; vertical-align: -2px; }
.cc-movehint { flex-direction: row !important; align-items: center; gap: 10px; border-color: rgba(253,230,138,.6) !important; }
.cc-movehint b { display: flex; align-items: center; gap: 6px; }

/* Einsammeln im Bauteil-Menue */
.cc-kit-stash { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; padding: 8px 10px; border-radius: 12px; background: var(--card, #fff);
  border: 1px solid #e3e8ef; }
.cc-kit-stash > div { flex: 1; min-width: 0; }
.cc-kit-stash small { display: block; color: var(--text-dim, #6b7a8c); font-size: 10px; font-weight: 900; letter-spacing: .6px; }
.cc-kit-stash i { display: block; height: 8px; margin: 4px 0; border-radius: 4px; background: #dde4ec; overflow: hidden; }
.cc-kit-stash i > i { display: block; height: 100%; margin: 0; background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.cc-kit-stash b { font-size: 12px; color: var(--text, #22303f); }
.cc-kit-stash .cc-btn { min-height: 38px; flex: 0 0 auto; }

/* Shop */
.cc-sheet.is-shop .cc-sheet-card { max-width: 560px; }
.cc-tabs { overflow-x: auto; scrollbar-width: none; }
.cc-tabs button { flex: 1 0 auto; padding: 0 10px; white-space: nowrap; }
.cc-tabs button span { display: inline-grid; place-items: center; min-width: 16px; height: 16px; margin-left: 5px; padding: 0 4px; border-radius: 8px;
  background: #22c55e; color: #fff; font-size: 9px; }
.cc-shop-builders { display: flex; align-items: center; gap: 6px; margin: -4px 2px 8px; color: #9fb0c5; font-size: 11px; font-weight: 800; }
.cc-shop-builders .cc-ico { width: 18px; height: 18px; }
.cc-shop-item { position: relative; }
.cc-shop-item small { text-align: center; color: #8fa3bb !important; font-weight: 700 !important; line-height: 1.3; min-height: 26px; }
.cc-shop-item em { flex-wrap: wrap; justify-content: center; gap: 6px; }
.cc-shop-item em span { display: inline-flex; align-items: center; gap: 2px; color: #9fb0c5; font-size: 10px; }
.cc-shop-item em .cc-ico { width: 13px; height: 13px; }
.cc-shop-count { position: absolute; top: 6px; right: 8px; color: #8fb4d9; font-size: 10px; font-weight: 900; }
.cc-shop-lock { color: #fbbf24 !important; }
.cc-shop-item.is-poor em .cc-cur { color: #f87171; }

/* Truppen, Labor */
.cc-troop-pic { position: relative; }
.cc-lv { position: absolute; right: -4px; bottom: -4px; padding: 1px 5px; border-radius: 6px; background: #f59e0b; color: #1c1300; font-size: 9px; font-weight: 900;
  box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.cc-deploy-pic { position: relative; }
.cc-housing span { display: inline-flex; align-items: center; gap: 4px; }
.cc-housing .cc-ico { width: 18px; height: 18px; }
.cc-queuebar, .cc-lab-now { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 8px 10px; border-radius: 12px; background: #152032;
  border: 1px solid rgba(250,204,21,.3); }
.cc-queuebar > div, .cc-lab-now > div { flex: 1; min-width: 0; }
.cc-queuebar b, .cc-lab-now b { display: block; font-size: 12.5px; }
.cc-queuebar i, .cc-lab-now i { display: block; height: 7px; margin: 4px 0; border-radius: 4px; background: #1c2838; overflow: hidden; }
.cc-queuebar i > i, .cc-lab-now i > i { display: block; height: 100%; background: linear-gradient(90deg, #facc15, #fde68a); }
.cc-queuebar small, .cc-lab-now small { color: #9fb0c5; font-size: 10.5px; }
.cc-lab-now .cc-btn { flex: 0 0 auto; min-height: 36px; }
.cc-lab-head { display: flex; gap: 10px; align-items: center; margin-bottom: 4px; }
.cc-lab-ico { width: 46px !important; height: 46px !important; }
.cc-lab-head b { display: block; font-size: 15px; }
.cc-lab-head small { color: #9fb0c5; font-size: 11.5px; }
.cc-lab-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.cc-lab-row { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 12px; background: #152032; }
.cc-lab-pic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 10px; background: radial-gradient(circle at 50% 70%, #2b3d57, #121b29); }
.cc-lab-row b { font-size: 13px; }
.cc-lab-row small { display: block; color: #9fb0c5; font-size: 10.5px; }
.cc-lab-lv { display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: 1px; }
.cc-lab-lv i { width: 8px; height: 8px; border-radius: 2px; background: #2a3a52; }
.cc-lab-lv i.on { background: #a78bfa; box-shadow: 0 0 5px rgba(167,139,250,.7); }
.cc-lab-row .cc-btn { min-height: 36px; font-size: 12px; }

/* Angriff: Mehrspieler-Karte, Verteidigungs-Log, Suche, Kampf-Anzeige */
.cc-army-line { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; color: #9fb0c5; }
.cc-army-line span { display: inline-flex; align-items: center; gap: 2px; padding: 2px 8px 2px 2px; border-radius: 99px; background: #152032; font-size: 12px; }
.cc-mp { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 12px; border-radius: 16px; border: 1px solid rgba(246,196,83,.5);
  background: radial-gradient(circle at 85% 0%, rgba(246,196,83,.18), transparent 50%), linear-gradient(180deg, #1f2a3e, #121a28); }
.cc-mp-copy b { display: block; font-size: 16px; color: #fff; }
.cc-mp-copy small { display: block; color: #9fb0c5; font-size: 11.5px; line-height: 1.4; }
.cc-mp-tro { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; color: #fde68a; font-weight: 900; font-size: 13px; }
.cc-mp.is-soon { border-color: rgba(148,163,184,.35); }
.cc-mp .cc-btn { min-height: 46px; }
.cc-sec { margin: 14px 2px 8px; color: #8fb4d9; font-size: 10px; letter-spacing: 1.6px; }
.cc-target em { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.cc-def { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 10px; margin-bottom: 6px; border-radius: 12px; background: #152032; }
.cc-def b { font-size: 13px; }
.cc-def small { display: block; color: #8fa3bb; font-size: 10px; }
.cc-def span { justify-self: end; font-weight: 900; }
.cc-def em { font-style: normal; color: #fca5a5; font-size: 12px; }
.cc-def i { justify-self: end; font-style: normal; font-weight: 900; font-size: 12px; }
.cc-def i.up { color: #4ade80; } .cc-def i.down { color: #f87171; }
.cc-def .cc-ico { width: 14px; height: 14px; }
.cc-search { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; background: rgba(4,8,14,.6); }
.cc-search-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 26px; border-radius: 18px; background: #0f1724;
  border: 1px solid rgba(246,196,83,.45); text-align: center; }
.cc-search-card small { color: #9fb0c5; }
.cc-battlehud { position: absolute; top: calc(62px + var(--sat, 0px)); right: calc(8px + var(--sar, 0px)); display: grid; justify-items: end; gap: 3px;
  padding: 6px 10px; border-radius: 14px; background: rgba(10,16,28,.86); border: 1px solid rgba(255,255,255,.12); }
.cc-battlehud b { font-size: 22px; color: #fff; line-height: 1; }
.cc-battlehud small { display: inline-flex; align-items: center; gap: 3px; color: #cbd5e1; font-weight: 900; font-size: 12px; }
.cc-battlehud small .cc-ico { width: 15px; height: 15px; }
.cc-battlehud em { font-style: normal; display: flex; gap: 6px; color: #fde68a; font-size: 12px; }
.cc.is-battle .cc-side, .cc.is-battle .cc-pills { display: none; }
.cc-lootline { display: flex; align-items: center; gap: 8px; color: #fde68a; font-size: 12px; }
.cc-lootline span { color: #8fb4d9; font-size: 9.5px; font-weight: 900; letter-spacing: 1.2px; }
.cc-hqtag { margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: #f59e0b; color: #1c1300; font-size: 10px; vertical-align: 2px; }
.cc-title small .cc-ico { width: 12px; height: 12px; vertical-align: -2px; }
.cc-tro { margin: 0; font-weight: 900; font-size: 16px; display: flex; align-items: center; gap: 5px; }
.cc-tro.up { color: #4ade80; } .cc-tro.down { color: #f87171; }
.cc-tro .cc-ico { width: 20px; height: 20px; }
.cc-loot .cc-cur-ico { width: 22px; height: 22px; }

/* HQ-Uebersicht aller Stufen */
.cc-sheet.is-road .cc-sheet-card { max-width: 520px; max-height: 86%; }
.cc-road { position: relative; display: flex; flex-direction: column; gap: 10px; }
.cc-road::before { content: ''; position: absolute; left: 44px; top: 30px; bottom: 30px; width: 4px; border-radius: 2px; background: linear-gradient(#f6c453, #2a3a52); }
.cc-road-lv { position: relative; display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 10px; border-radius: 16px; background: #152032;
  border: 1px solid rgba(255,255,255,.06); }
.cc-road-lv.is-now { border-color: #f6c453; background: linear-gradient(135deg, rgba(246,196,83,.16), #152032 60%); box-shadow: 0 0 0 3px rgba(246,196,83,.15); }
.cc-road-lv.is-done { opacity: .72; }
.cc-road-lv.is-later { opacity: .82; }
.cc-road-art { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cc-road-art img { width: 88px; height: 80px; object-fit: contain; filter: drop-shadow(0 5px 8px rgba(0,0,0,.45)); }
.cc-road-art span { padding: 1px 8px; border-radius: 99px; background: #2a3a52; color: #fff; font-size: 10px; font-weight: 900; letter-spacing: 1px; }
.cc-road-lv.is-now .cc-road-art span { background: #f59e0b; color: #1c1300; }
.cc-road-copy > b { display: block; color: #fff; font-size: 14px; }
.cc-road-copy > small { display: flex; align-items: center; gap: 6px; color: #9fb0c5; font-size: 11px; margin-bottom: 6px; }
.cc-road-copy .cc-unlocks { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
.cc-road-max { margin: 6px 0 0; color: #93c5fd; font-size: 11px; font-weight: 800; }
.cc-roadlink { color: #fde68a; font-weight: 900; }

/* Erklaerbilder (js/campus-intro.js) */
.campus-intro .ci-card { border-color: rgba(167,139,250,.45); background: linear-gradient(180deg, #171e3a, #0a0f17); }
.campus-intro .ci-kicker { background: linear-gradient(180deg, #a78bfa, #6d28d9); }
.campus-intro .ci-dots i.on { background: #a78bfa; }
.campus-intro .ci-next { background: linear-gradient(180deg, #c4b5fd, #8b5cf6); color: #1a0b3a; box-shadow: 0 4px 14px rgba(139,92,246,.4); }
.campus-intro .ci-stage { background: #6aae55; }
.campus-intro .ci-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cci-iso { position: absolute; inset: 0; }
.cci-b { position: absolute; left: var(--x); top: var(--y); width: var(--w); transform: translate(-50%, -100%); filter: drop-shadow(0 6px 6px rgba(0,0,0,.35)); }
.is-playing .cci-b { animation: cci-drop .55s var(--d) cubic-bezier(.3,1.5,.5,1) both; }
@keyframes cci-drop { from { transform: translate(-50%, -260%); opacity: 0; } 60% { opacity: 1; } }
.cci-dust { position: absolute; left: var(--x); top: var(--y); width: 30%; height: 10%; border-radius: 50%; transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(rgba(240,230,210,.9), rgba(240,230,210,0) 70%); }
.is-playing .cci-dust { animation: cci-dust .7s calc(var(--d) + .3s) ease-out both; }
@keyframes cci-dust { 30% { transform: translate(-50%, -50%) scale(1); opacity: 1; } to { transform: translate(-50%, -50%) scale(1.6); opacity: 0; } }
.cci-badge { position: absolute; top: 8%; right: 6%; display: flex; align-items: center; gap: 6px; padding: 5px 12px 5px 6px; border-radius: 99px;
  background: rgba(10,16,28,.82); color: #fde68a; font-weight: 900; }
.cci-badge img { width: 26px; height: 26px; }
.cci-grid { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); display: grid; grid-template-columns: repeat(4, 58px); gap: 8px;
  padding: 12px; border-radius: 16px; background: rgba(244,246,249,.92); box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.cci-slot { display: grid; place-items: center; height: 64px; border-radius: 10px; background: #dde4ec; overflow: hidden; }
.cci-slot.is-fill { background: #1b2430; }
.cci-slot img { width: 160%; height: 160%; object-fit: cover; object-position: 50% 60%; }
.cci-slot b { color: #6b7a8c; font-size: 22px; }
.is-playing .cci-slot.is-fill { animation: cci-pop .4s calc(.3s + var(--i) * .45s) cubic-bezier(.3,1.6,.5,1) both; }
@keyframes cci-pop { from { transform: scale(.2); opacity: 0; } }
.cci-tap { position: absolute; width: 48px; left: 62%; top: 52%; filter: drop-shadow(0 4px 4px rgba(0,0,0,.4)); }
.is-playing .cci-tap { animation: cci-tap 2.4s ease-in-out infinite; }
@keyframes cci-tap { 0%, 100% { transform: translate(0, 0); } 45% { transform: translate(-40px, -30px); } 55% { transform: translate(-40px, -24px) scale(.9); } }
.cci-rate { position: absolute; bottom: 8%; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 5px 12px 5px 6px;
  border-radius: 99px; background: rgba(10,16,28,.85); color: #fde68a; }
.cci-rate img { width: 28px; height: 28px; }
.cci-rate b { font-size: 18px; } .cci-rate small { color: #9fb0c5; font-weight: 800; }
.cci-hall { position: absolute; left: 18%; bottom: 14%; width: 26%; filter: drop-shadow(0 6px 6px rgba(0,0,0,.4)); }
.cci-hall2 { position: absolute; left: 56%; bottom: 14%; width: 24%; filter: drop-shadow(0 6px 6px rgba(0,0,0,.4)); }
.cci-bubble { position: absolute; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(#fff, #dbe4f0); box-shadow: 0 5px 12px rgba(0,0,0,.35); }
.cci-bubble img { width: 40px; height: 40px; }
.cci-bubble.b1 { left: 24%; top: 26%; } .cci-bubble.b2 { left: 61%; top: 28%; }
.is-playing .cci-bubble { animation: cci-bob 1.2s ease-in-out infinite, cci-gone .2s 1.6s forwards; }
.is-playing .cci-bubble.b2 { animation: cci-bob 1.2s .3s ease-in-out infinite, cci-gone .2s 2.4s forwards; }
@keyframes cci-bob { 50% { transform: translateY(-8px); } }
@keyframes cci-gone { to { transform: scale(0); opacity: 0; } }
.cci-coin { position: absolute; width: 28px; opacity: 0; }
.cci-coin[class*=' c'] { left: 28%; top: 30%; }
.cci-coin[class*=' t'] { left: 64%; top: 32%; }
.is-playing .cci-coin[class*=' c'] { animation: cci-flyc .8s calc(1.6s + var(--i) * .08s) cubic-bezier(.3,.7,.4,1) forwards; }
.is-playing .cci-coin[class*=' t'] { animation: cci-flyt .8s calc(2.4s + var(--i) * .08s) cubic-bezier(.3,.7,.4,1) forwards; }
@keyframes cci-flyc { 0% { opacity: 1; } 100% { opacity: .9; transform: translate(150px, -110px) scale(.6); } }
@keyframes cci-flyt { 0% { opacity: 1; } 100% { opacity: .9; transform: translate(70px, -86px) scale(.6); } }
.cci-bars { position: absolute; right: 5%; top: 6%; display: flex; flex-direction: column; gap: 6px; width: 40%; }
.cci-bar { position: relative; height: 22px; padding-left: 14px; }
.cci-bar img { position: absolute; left: -4px; top: -4px; z-index: 1; width: 30px; }
.cci-bar > i { display: block; height: 100%; border-radius: 0 11px 11px 0; background: rgba(10,16,28,.88); overflow: hidden; }
.cci-bar > i > i { display: block; height: 100%; width: 20%; }
.cci-bar.c > i > i { background: linear-gradient(#fbbf24, #d97706); }
.cci-bar.t > i > i { background: linear-gradient(#a78bfa, #6d28d9); }
.is-playing .cci-bar.c > i > i { animation: cci-fill1 .6s 2.3s ease-out forwards; }
.is-playing .cci-bar.t > i > i { animation: cci-fill2 .6s 3.1s ease-out forwards; }
@keyframes cci-fill1 { to { width: 78%; } } @keyframes cci-fill2 { to { width: 55%; } }
.cci-walls { position: absolute; left: 8%; bottom: 10%; width: 46%; height: 36%; }
.cci-walls img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; }
.is-playing .cci-walls img { animation: cci-wall 7.5s infinite; }
.cci-walls .w2 { animation-delay: 1.5s !important; } .cci-walls .w3 { animation-delay: 3s !important; }
.cci-walls .w4 { animation-delay: 4.5s !important; } .cci-walls .w5 { animation-delay: 6s !important; }
@keyframes cci-wall { 0% { opacity: 0; transform: scale(.9); } 4%, 18% { opacity: 1; transform: none; } 22%, 100% { opacity: 0; } }
.cci-tower { position: absolute; filter: drop-shadow(0 6px 6px rgba(0,0,0,.35)); }
.cci-tower.t1 { right: 30%; bottom: 30%; width: 22%; } .cci-tower.t2 { right: 6%; bottom: 22%; width: 16%; }
.cci-beam { position: absolute; right: 13%; top: 30%; width: 34%; height: 4px; border-radius: 2px; transform-origin: right center; transform: rotate(-18deg);
  background: linear-gradient(90deg, rgba(255,60,100,0), #ff6b8b, #fff); opacity: 0; box-shadow: 0 0 10px #ff3366; }
.is-playing .cci-beam { animation: cci-beam 1.4s .8s infinite; }
@keyframes cci-beam { 0%, 60%, 100% { opacity: 0; } 10%, 25% { opacity: 1; } }
.cci-shot { position: absolute; right: 44%; bottom: 46%; width: 10px; height: 10px; border-radius: 50%; background: #ffd34d; box-shadow: 0 0 10px #ffb020; opacity: 0; }
.is-playing .cci-shot { animation: cci-shot 1.1s .4s infinite; }
@keyframes cci-shot { 0% { opacity: 1; transform: none; } 70% { opacity: 1; transform: translate(-120px, 40px); } 71%, 100% { opacity: 0; } }
.cci-builder { position: absolute; left: 50%; top: 10%; width: 54px; filter: drop-shadow(0 4px 4px rgba(0,0,0,.4)); }
.is-playing .cci-builder { animation: cci-bob 1s ease-in-out infinite; }
.cci-march { position: absolute; inset: 0; width: 100%; height: 100%; }
.cci-target { position: absolute; right: 6%; top: 20%; width: 34%; filter: drop-shadow(0 6px 6px rgba(0,0,0,.35)); }
.is-playing .cci-target { animation: cci-shake .3s 2.8s 3, cci-gone .25s 3.7s forwards; }
@keyframes cci-shake { 50% { transform: translateX(4px); } }
.cci-boom { position: absolute; right: 12%; top: 22%; width: 26%; aspect-ratio: 1; border-radius: 50%; opacity: 0;
  background: radial-gradient(#fff7d6, #ffb347 35%, rgba(255,90,30,.6) 55%, rgba(255,90,30,0) 70%); }
.is-playing .cci-boom { animation: cci-boom .8s 3.6s ease-out forwards; }
@keyframes cci-boom { 0% { opacity: 1; transform: scale(.2); } 100% { opacity: 0; transform: scale(1.8); } }
.cci-loot { position: absolute; right: 10%; top: 12%; display: flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; border-radius: 99px;
  background: rgba(10,16,28,.85); color: #fde68a; font-size: 16px; opacity: 0; }
.cci-loot img { width: 28px; }
.is-playing .cci-loot { animation: cci-rise .6s 4s ease-out forwards; }
@keyframes cci-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.cci-ko { position: absolute; left: 8%; top: 8%; display: flex; gap: 4px; }
.cci-ko img { width: 32px; filter: grayscale(1) brightness(.5); }
.is-playing .cci-ko img { animation: cci-ko .4s calc(4.2s + var(--i) * .25s) forwards; }
@keyframes cci-ko { to { filter: none; transform: scale(1.15); } }
.cci-vs { position: absolute; left: 50%; top: 48%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 4%; width: 90%; }
.cci-vs img { width: 40%; filter: drop-shadow(0 8px 8px rgba(0,0,0,.4)); }
.cci-vs b { color: #fff; font-size: 34px; font-weight: 900; text-shadow: 0 3px 10px rgba(0,0,0,.6), 0 0 18px #f59e0b; }
.is-playing .cci-vs b { animation: cci-pop .5s .3s cubic-bezier(.3,1.6,.5,1) both; }
.cci-tro { position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 5px 14px 5px 6px;
  border-radius: 99px; background: rgba(10,16,28,.85); color: #fde68a; font-size: 20px; font-weight: 900; }
.cci-tro img { width: 30px; }
.cci-shield { position: absolute; right: 8%; top: 8%; width: 48px; }
.is-playing .cci-shield { animation: cci-bob 1.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .campus-intro * { animation: none !important; }
  .cci-coin, .cci-boom { display: none; }
  .cci-loot, .cci-walls .w3 { opacity: 1 !important; }
}
