/* AUREA Tycoon Conquest — real-map territory UI (patch #97 frontend).
   Neon gold/purple frames on the shared dark shell; readability floor
   follows the portal variables. */
.cq-main { max-width: 1180px; margin: 0 auto; padding: 18px 14px 48px; }
.cq-hero { position: relative; border-radius: 18px; overflow: hidden;
  border: 1px solid #39415F; box-shadow: 0 0 0 1px rgba(245,197,66,.25),
  0 0 28px rgba(150,90,255,.18); margin-bottom: 18px; min-height: 150px;
  background: linear-gradient(120deg, #0A0F1E 30%, #2a1650 75%, #4b2a86); }
.cq-hero-img { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .45; }
.cq-hero-body { position: relative; padding: 22px 20px; }
.cq-hero-body h1 { margin: 0 0 6px; font-size: clamp(22px, 4.5vw, 34px);
  font-weight: 800; color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,.6); }
.cq-hero-body p { margin: 0; color: #d7dbec; max-width: 640px;
  text-shadow: 0 1px 8px rgba(0,0,0,.7); }
.cq-badge { display: inline-block; margin-top: 10px; padding: 4px 12px;
  border-radius: 999px; font-weight: 800; font-size: 12px; letter-spacing: .04em; }
.cq-badge.soon { background: linear-gradient(90deg, #f5c542, #ff9d5c);
  color: #241a00; box-shadow: 0 0 14px rgba(245,197,66,.55); }
.cq-badge.live { background: linear-gradient(90deg, #37d67a, #2bb3a3);
  color: #04240f; box-shadow: 0 0 14px rgba(55,214,122,.45); }

.cq-maps { display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  margin-bottom: 18px; }
.cq-mapcard { border: 1px solid #39415F; border-radius: 16px; overflow: hidden;
  background: #10172c; box-shadow: 0 0 0 1px rgba(245,197,66,.12),
  0 0 18px rgba(150,90,255,.10); display: flex; flex-direction: column; }
.cq-mapcard .cq-mc-img { aspect-ratio: 2 / 1; background-size: cover;
  background-position: center; position: relative;
  background-color: #1a2140; }
.cq-mapcard .cq-mc-img::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10,15,30,.85)); }
.cq-mc-body { padding: 12px 14px 14px; display: flex; flex-direction: column;
  gap: 7px; flex: 1; }
.cq-mc-title { display: flex; align-items: center; gap: 8px;
  font-size: 18px; font-weight: 800; color: #fff; }
.cq-flag { width: 26px; height: auto; border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.35); vertical-align: middle; }
.cq-flag.sm { width: 18px; }
.cq-chip { font-size: 11px; font-weight: 700; padding: 2px 8px;
  border-radius: 999px; border: 1px solid #39415F; color: #A7ACC2; }
.cq-chip.personal { color: #ffd970; border-color: rgba(245,197,66,.5); }
.cq-chip.guild { color: #d3a6ff; border-color: rgba(170,110,255,.55); }
.cq-chip.locked { color: #8B90A5; }
.cq-mc-note { color: #A7ACC2; font-size: 13px; line-height: 1.5; flex: 1; }
.cq-mc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cq-btn { appearance: none; border: 1px solid rgba(245,197,66,.55);
  background: linear-gradient(180deg, #2a2140, #1a1430); color: #ffe9a8;
  font-weight: 700; font-size: 13px; padding: 8px 14px; border-radius: 10px;
  cursor: pointer; }
.cq-btn:hover { box-shadow: 0 0 12px rgba(245,197,66,.35); }
.cq-btn.primary { background: linear-gradient(90deg, #f5c542, #b678f0);
  color: #1c1030; border: none; }
.cq-btn.ghost { border-color: #39415F; color: #A7ACC2; background: #141b31; }
.cq-btn.danger { border-color: rgba(255,110,110,.6); color: #ffb1b1; }
.cq-btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.cq-unlockbar { height: 8px; border-radius: 99px; background: #1c2442;
  overflow: hidden; border: 1px solid #39415F; }
.cq-unlockbar > div { height: 100%;
  background: linear-gradient(90deg, #f5c542, #b678f0); }

.cq-game { margin-top: 6px; }
.cq-hud { display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  margin-bottom: 10px; }
.cq-stat { border: 1px solid #39415F; border-radius: 14px; padding: 10px 12px;
  background: #10172c; box-shadow: inset 0 0 0 1px rgba(245,197,66,.08); }
.cq-stat .lb { font-size: 11px; color: #8B90A5; letter-spacing: .05em; }
.cq-stat .vl { font-size: 24px; font-weight: 800; color: #ffd970;
  line-height: 1.15; }
.cq-stat .vl small { font-size: 12px; color: #A7ACC2; font-weight: 600; }
/* live income ticker (visual effect only; server settles for real) */
.cq-stat-funds { position: relative; }
.cq-stat-funds .vl { font-variant-numeric: tabular-nums; }
.cq-rate { font-size: 11px; font-weight: 700; color: #7be2a0;
  margin-top: 2px; letter-spacing: .02em; }
.cq-fx { position: absolute; right: 8px; top: 32px; pointer-events: none;
  z-index: 3; }
.cq-float { position: absolute; right: 0; top: 0; display: flex;
  align-items: center; gap: 3px; font-size: 13px; font-weight: 800;
  color: #ffd970; white-space: nowrap; text-shadow: 0 1px 6px rgba(0,0,0,.65);
  animation: cqFloatUp 1.8s ease-out forwards; }
.cq-float .cq-coin { width: 14px; height: 14px;
  filter: drop-shadow(0 0 4px rgba(245,197,66,.85)); }
@keyframes cqFloatUp {
  0% { opacity: 0; transform: translateY(6px) scale(.85); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-28px) scale(1.05); } }
@media (prefers-reduced-motion: reduce) {
  .cq-float { animation: none; display: none; } }
.cq-guide { border: 1px solid rgba(245,197,66,.5); border-radius: 14px;
  padding: 10px 14px; background: rgba(245,197,66,.07); color: #ffe9a8;
  font-weight: 700; margin-bottom: 10px; }
.cq-alert { border: 1px solid rgba(255,110,110,.65); border-radius: 14px;
  padding: 10px 14px; background: rgba(255,80,80,.10); color: #ffb1b1;
  font-weight: 700; margin-bottom: 10px; }
.cq-alert:empty, .cq-guide:empty { display: none; }

.cq-layout { display: grid; grid-template-columns: 1fr 330px; gap: 14px;
  align-items: start; }
@media (max-width: 900px) { .cq-layout { grid-template-columns: 1fr; } }
.cq-mapwrap { border: 1px solid #39415F; border-radius: 16px;
  background: radial-gradient(120% 120% at 50% 0%, #131c38 0%, #0A0F1E 70%);
  box-shadow: 0 0 22px rgba(150,90,255,.12); overflow: hidden; padding: 6px;
  position: relative; }
#cqSvg { width: 100%; height: auto; display: block; touch-action: none; }
.cq-terr { cursor: pointer; stroke: #7d8fe0; stroke-width: 1;
  stroke-linejoin: round; }
.cq-terr:hover { stroke: #ffd970; stroke-width: 1.8; }
.cq-terr.sel { stroke: #fff; stroke-width: 2.4; }
.cq-terr.war { stroke: #ff5f5f; stroke-width: 2.2;
  animation: cqPulse 1.1s ease-in-out infinite; }
.cq-terr.cut { stroke: #ff5f5f; stroke-dasharray: 5 4; stroke-width: 1.8; }
.cq-inset { fill: rgba(13,19,40,.78); stroke: #39415F; stroke-width: 1.2; }
.cq-insetlabel { fill: #A7ACC2; font-size: 11px; font-weight: 700;
  pointer-events: none; }
.cq-zoomctl { position: absolute; right: 12px; top: 12px; display: flex;
  flex-direction: column; gap: 6px; z-index: 3; }
.cq-zoomctl button { width: 34px; height: 34px; border-radius: 10px;
  border: 1px solid rgba(245,197,66,.55); background: rgba(16,23,44,.92);
  color: #ffe9a8; font-size: 17px; font-weight: 800; cursor: pointer;
  line-height: 1; padding: 0; }
.cq-zoomctl button:hover { box-shadow: 0 0 10px rgba(245,197,66,.35); }
.cq-hexmark.warn { fill: #ff5f5f; }
@keyframes cqPulse { 0%,100% { stroke-opacity: 1; } 50% { stroke-opacity: .35; } }
.cq-hexlabel { fill: #eef1ff; font-size: 9.5px; font-weight: 700;
  text-anchor: middle; pointer-events: none;
  paint-order: stroke; stroke: rgba(5,8,18,.85); stroke-width: 2.5px; }
.cq-hexsub { fill: #c8cdf0; font-size: 8px; text-anchor: middle;
  pointer-events: none; paint-order: stroke;
  stroke: rgba(5,8,18,.85); stroke-width: 2.5px; }
.cq-hexmark { fill: #ffd970; font-size: 11px; text-anchor: middle;
  pointer-events: none; font-weight: 800; }

.cq-panel { border: 1px solid #39415F; border-radius: 16px; background: #10172c;
  padding: 14px; box-shadow: 0 0 18px rgba(150,90,255,.10); }
.cq-panel h3 { margin: 0 0 4px; font-size: 17px; color: #fff;
  display: flex; align-items: center; gap: 8px; }
.cq-panel .sub { color: #A7ACC2; font-size: 12.5px; margin-bottom: 8px; }
.cq-kv { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px;
  font-size: 13px; color: #c8cdf0; margin: 8px 0; }
.cq-kv b { color: #fff; text-align: right; font-weight: 700; }
.cq-tier { font-size: 11px; font-weight: 800; padding: 1px 7px;
  border-radius: 6px; background: #2a2140; color: #ffd970;
  border: 1px solid rgba(245,197,66,.5); }
.cq-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.cq-actions .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cq-input, .cq-select { background: #0d1330; border: 1px solid #39415F;
  color: #fff; border-radius: 9px; padding: 7px 9px; font-size: 13px;
  max-width: 100%; }
.cq-input[type=range] { padding: 0; }
.cq-perkpair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cq-perk { border: 1px solid rgba(245,197,66,.6); border-radius: 12px;
  background: linear-gradient(180deg, #2a2140, #191231); color: #ffe9a8;
  padding: 10px; cursor: pointer; text-align: left; }
.cq-perk:hover { box-shadow: 0 0 14px rgba(245,197,66,.4); }
.cq-perk b { display: block; font-size: 14px; margin-bottom: 3px; }
.cq-perk span { font-size: 12px; color: #d7dbec; line-height: 1.45; display: block; }
.cq-msg { font-size: 12.5px; color: #A7ACC2; min-height: 16px; }
.cq-msg.err { color: #ff9d9d; }
.cq-msg.ok { color: #8fe6b0; }

.cq-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin-top: 14px; }
@media (max-width: 900px) { .cq-cols { grid-template-columns: 1fr; } }
.cq-box { border: 1px solid #39415F; border-radius: 16px; background: #10172c;
  padding: 14px; }
.cq-box h3 { margin: 0 0 10px; font-size: 15px; color: #fff; }
.cq-boardrow, .cq-feedrow { display: flex; gap: 8px; align-items: center;
  padding: 6px 0; border-bottom: 1px solid rgba(57,65,95,.5); font-size: 13px;
  color: #c8cdf0; }
.cq-boardrow:last-child, .cq-feedrow:last-child { border-bottom: none; }
.cq-boardrow .rk { width: 26px; font-weight: 800; color: #ffd970; }
.cq-boardrow .sc { margin-left: auto; font-weight: 800; color: #fff; }
.cq-feedrow .tm { margin-left: auto; color: #8B90A5; font-size: 11px;
  white-space: nowrap; }
.cq-guild { margin-top: 14px; border: 1px solid rgba(170,110,255,.5);
  border-radius: 16px; background: #12102b; padding: 16px;
  box-shadow: 0 0 18px rgba(150,90,255,.16); }
.cq-guild h3 { margin: 0 0 8px; color: #fff; display: flex; gap: 8px;
  align-items: center; }
.cq-member { display: flex; gap: 8px; align-items: center; font-size: 12.5px;
  color: #c8cdf0; padding: 5px 0; border-bottom: 1px solid rgba(57,65,95,.5); }
.cq-dot { width: 8px; height: 8px; border-radius: 99px; background: #39415F; }
.cq-dot.on { background: #37d67a; }
.cq-practice-banner { border: 1px solid rgba(170,110,255,.6); color: #d3a6ff;
  border-radius: 12px; padding: 8px 12px; font-weight: 700; margin-bottom: 10px;
  background: rgba(150,90,255,.08); }

/* Funding panel (points -> TC exchange; patch #97 section 30.13).
   Sits directly under the HUD as the centre of TC funding. */
.cq-fund { border: 1px solid rgba(245,197,66,.55); border-radius: 16px;
  background: linear-gradient(180deg, #141a30, #10172c);
  box-shadow: 0 0 0 1px rgba(245,197,66,.15),
  0 0 22px rgba(150,90,255,.14); padding: 14px; margin-bottom: 14px; }
.cq-fund:empty { display: none; }
.cq-fund-head { display: flex; align-items: baseline; gap: 12px;
  flex-wrap: wrap; margin-bottom: 6px; }
.cq-fund-head h3 { margin: 0; font-size: 16px; color: #fff; }
.cq-fund-pts { margin-left: auto; font-size: 13px; color: #A7ACC2; }
.cq-fund-pts b { font-size: 20px; color: #ffd970; font-weight: 800; }
.cq-fund-lead { margin: 0 0 4px; font-size: 13.5px; color: #d7dbec;
  line-height: 1.55; }
.cq-fund-exp { margin: 0 0 12px; font-size: 12.5px; color: #A7ACC2;
  line-height: 1.55; }
.cq-fund-grid { display: grid; gap: 12px;
  grid-template-columns: 1.4fr 1fr 1fr; align-items: stretch; }
@media (max-width: 900px) { .cq-fund-grid { grid-template-columns: 1fr; } }
.cq-choice { border: 1px solid #39415F; border-radius: 14px;
  background: #0d1330; padding: 12px 14px; display: flex;
  flex-direction: column; gap: 8px; }
.cq-choice.main { border-color: rgba(245,197,66,.6);
  box-shadow: inset 0 0 0 1px rgba(245,197,66,.12),
  0 0 16px rgba(245,197,66,.10); }
.cq-choice h4 { margin: 0; font-size: 14px; color: #fff; }
.cq-choice p { margin: 0; font-size: 12.5px; color: #A7ACC2;
  line-height: 1.55; flex: 1; }
.cq-fund-rate { font-size: 13px; color: #c8cdf0; }
.cq-fund-rate b { color: #ffd970; font-size: 16px; }
.cq-fund-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cq-fund-row .cq-input { width: 110px; }
.cq-chipbtn { appearance: none; border: 1px solid #39415F; background: #141b31;
  color: #c8cdf0; font-size: 12px; font-weight: 700; padding: 6px 10px;
  border-radius: 999px; cursor: pointer; }
.cq-chipbtn:hover { border-color: rgba(245,197,66,.6); color: #ffe9a8; }
.cq-fund-note { font-size: 11.5px; color: #8B90A5; }
.cq-choice .cq-btn { align-self: flex-start; text-decoration: none; }

/* Depth wave (section 16): conquest-rate bar, stance/method
   selectors, battle reports, streak flames. */
.cq-ratebar { grid-column: 1 / -1; border: 1px solid #39415F;
  border-radius: 14px; padding: 10px 12px; background: #0d1330; }
.cq-rateline { display: flex; justify-content: space-between;
  font-size: 12px; color: #A7ACC2; margin-bottom: 6px; }
.cq-rateline b { color: #ffd970; font-size: 14px; }
.cq-rate { height: 8px; border-radius: 99px; background: #1a2142;
  overflow: hidden; }
.cq-rate i { display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #f5c542, #b26bff); }
.cq-areas { display: flex; gap: 4px; margin-top: 6px; }
.cq-areabar { flex: 1; height: 5px; border-radius: 99px;
  background: #1a2142; overflow: hidden; }
.cq-areabar i { display: block; height: 100%;
  background: rgba(245,197,66,.75); }
.cq-seg { display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; margin: 6px 0; }
.cq-segbtn { appearance: none; text-align: left; cursor: pointer;
  border: 1px solid #39415F; border-radius: 12px; padding: 8px 10px;
  background: #141b31; color: #c8cdf0; display: flex;
  flex-direction: column; gap: 2px; }
.cq-segbtn b { font-size: 13px; color: #fff; }
.cq-segbtn span { font-size: 11px; color: #8B90A5; line-height: 1.4; }
.cq-segbtn.on { border-color: rgba(245,197,66,.75);
  box-shadow: inset 0 0 0 1px rgba(245,197,66,.25),
  0 0 12px rgba(245,197,66,.12); }
.cq-segbtn:disabled { opacity: .45; cursor: default; }
.cq-report { border: 1px solid #39415F; border-radius: 12px;
  background: #0d1330; padding: 10px 12px; margin-bottom: 8px; }
.cq-ract { display: flex; gap: 8px; font-size: 12.5px;
  color: #c8cdf0; line-height: 1.5; padding: 2px 0; }
.cq-ract b { color: #ffd970; white-space: nowrap; font-size: 11.5px; }
.cq-bonus { color: #9dffb0; font-weight: 700; }
.cq-flame { color: #ff9d5c; font-weight: 800; }

/* Depth wave 3 (sections 17-21) */
.cq-terr.heat { filter: drop-shadow(0 0 6px rgba(255, 122, 26, .85)); }
.cq-hexmark.heatmark { fill: #ff7a1a; font-size: 11px; font-weight: 800; }
.w3-wrap { margin-top: 14px; }
.w3-wrap h3 { margin: 0 0 8px; font-size: 17px; color: #fff; }
.w3-card { border: 1px solid #39415F; border-radius: 12px; background: #0d1428;
  padding: 10px 12px; margin-top: 10px; color: #dfe4f5; font-size: 13.5px;
  line-height: 1.55; }
.w3-card b { color: #f5c542; }
.w3-card span { color: #A7ACC2; font-size: 12.5px; }
.w3-warn { color: #ff9d9d !important; font-weight: 700; }
.w3-block { border-top: 1px dashed #39415F; margin-top: 10px; padding-top: 8px; }
.w3-line { margin-top: 8px; color: #dfe4f5; font-size: 13px; line-height: 1.55; }
.w3-line b { color: #f5c542; }
.w3-num { width: 76px; background: #141b31; border: 1px solid #39415F;
  border-radius: 8px; color: #fff; padding: 5px 7px; }
.w3-txt { width: 190px; background: #141b31; border: 1px solid #39415F;
  border-radius: 8px; color: #fff; padding: 5px 7px; }
.w3-sel { background: #141b31; border: 1px solid #39415F; border-radius: 8px;
  color: #fff; padding: 5px 7px; }
.w3-bar { height: 8px; border-radius: 99px; background: #141b31;
  border: 1px solid #39415F; overflow: hidden; margin: 6px 0; }
.w3-bar i { display: block; height: 100%;
  background: linear-gradient(90deg, #f5c542, #b678f0); }
.w3-famous-body { display: flex; gap: 12px; align-items: center; margin: 8px 0; }
.w3-famous-body img { width: 84px; height: 84px; border-radius: 14px;
  border: 1px solid rgba(245,197,66,.55); object-fit: cover; }
.w3-famous-ward { font-size: 19px; font-weight: 800; color: #fff; }

/* ------- special buildings (patch #110) ------- */
.cq-special { margin-top: 12px; padding: 10px 12px;
  border: 1px solid rgba(255,217,112,.55); border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,217,112,.10), rgba(150,90,255,.12)); }
.cq-special-head b { color: #ffd970; letter-spacing: .04em; }
.cq-special-row { display: flex; align-items: center;
  justify-content: space-between; gap: 8px; padding: 7px 0;
  border-top: 1px solid rgba(255,255,255,.08); }
.cq-special-main { display: flex; flex-direction: column; gap: 1px; }
.cq-special-main b { color: #ffe9a8; }
.cq-special-row.tower .cq-special-main b { color: #e9c6ff; }
.cq-special-left { color: #ffd970; font-weight: 700; }
.cq-special-built { color: #0a0f1e; font-weight: 800; font-size: 12px;
  white-space: nowrap; border-radius: 999px; padding: 3px 10px;
  background: linear-gradient(90deg, #ffd970, #ffb84d); }
.cq-special-btn { border-color: rgba(255,217,112,.7); color: #ffd970;
  white-space: nowrap; }
.cq-special-names { color: #ffd970; }
.cq-hexmark.special { fill: #ffd970; font-weight: 900; }
