/* The Daily Five — conquest.css (Conquest Five only; loads after games.css) */

/* Player + continent legend */
.cq-legends{display:flex;flex-wrap:wrap;gap:8px 16px;margin:10px 0 4px;font-size:.86rem;font-weight:700}
.cq-legends .lg-group{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center}
.cq-legends .lg-title{color:var(--muted);text-transform:uppercase;letter-spacing:.07em;font-size:.72rem;font-weight:900}
.cq-pchip{display:inline-flex;align-items:center;gap:6px;background:#F6F8FC;border-radius:999px;padding:3px 10px 3px 6px}
.cq-pchip .dot{width:14px;height:14px;border-radius:50%;flex:0 0 14px;box-shadow:inset 0 0 0 2px rgba(255,255,255,.55)}
.cq-pchip.dead{opacity:.45;text-decoration:line-through}
.cq-pchip .cnt{color:var(--muted);font-weight:800}
.cq-cchip{display:inline-flex;align-items:center;gap:6px}
.cq-cchip .cdot{width:11px;height:11px;border-radius:3px;flex:0 0 11px}
.cq-cchip .bonus{color:var(--teal-dark);font-weight:900}

/* Phase banner */
.cq-phase{
  border-radius:14px;padding:10px 14px;margin:12px 0;font-weight:800;font-size:.98rem;
  background:#EEF2F9;color:var(--ink);border-left:6px solid var(--violet);
}
.cq-phase .who{font-weight:900}
.cq-phase.ai-turn{background:#FFF3D6;border-left-color:var(--sun)}

/* Board */
.cq-board-wrap{position:relative;max-width:680px;margin:0 auto}
.cq-board{
  position:relative;width:100%;aspect-ratio:100/64;
  background:linear-gradient(160deg,#EAF4FB 0%,#FDFBF5 55%,#EAF6EC 100%);
  border-radius:16px;box-shadow:inset 0 0 0 2px #DCE5F2;overflow:hidden;
}
.cq-links{position:absolute;inset:0;width:100%;height:100%}
.cq-links line{stroke:#B9C8DE;stroke-width:.45;opacity:.75}
.cq-links line.bridge{stroke:#8FA8C8;stroke-dasharray:1.6 1.2;opacity:.9}
.cq-node{
  position:absolute;transform:translate(-50%,-50%);
  width:15.5%;min-width:52px;max-width:104px;
  border:3px solid #fff;border-radius:14px;cursor:pointer;
  padding:3px 2px 4px;color:#fff;text-align:center;line-height:1.12;
  font:inherit;box-shadow:0 3px 8px rgba(34,48,74,.25);
  transition:transform .1s ease,box-shadow .1s ease,outline-color .1s ease;
  outline:3px solid transparent;outline-offset:1px;z-index:2;
}
.cq-node:hover{transform:translate(-50%,-50%) scale(1.05)}
.cq-node .cq-name{display:block;font-size:.6rem;font-weight:900;letter-spacing:.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cq-node .cq-count{display:block;font-size:1.02rem;font-weight:900;line-height:1.05}
.cq-node .cq-tag{display:block;font-size:.5rem;font-weight:800;opacity:.85;letter-spacing:.12em}
.cq-node.sel{outline-color:var(--sun);z-index:4;transform:translate(-50%,-50%) scale(1.07)}
.cq-node.tgt{outline-color:var(--bad);animation:cq-pulse 0.9s ease-in-out infinite;z-index:3}
.cq-node.reach{outline-color:var(--good);z-index:3}
.cq-node.flash{animation:cq-flash 0.45s ease}
@keyframes cq-pulse{50%{outline-color:rgba(232,80,63,.25)}}
@keyframes cq-flash{0%{filter:brightness(1.7)}100%{filter:brightness(1)}}
.cq-node:disabled{cursor:default}
@media (max-width:520px){
  .cq-node .cq-name{font-size:.5rem}
  .cq-node .cq-count{font-size:.86rem}
  .cq-node .cq-tag{display:none}
  .cq-node{border-width:2px;border-radius:10px;min-width:44px}
}

/* Dice tray */
.cq-dice{
  display:none;align-items:center;gap:10px;flex-wrap:wrap;
  background:#22304A;color:#fff;border-radius:14px;padding:9px 14px;margin:12px 0 0;
  font-weight:800;font-size:.92rem;
}
.cq-dice.show{display:flex;animation:cq-flash .45s ease}
.cq-dice .side{display:inline-flex;align-items:center;gap:5px}
.cq-dice .dname{font-size:.78rem;text-transform:uppercase;letter-spacing:.06em;opacity:.85}
.cq-die{
  width:27px;height:27px;border-radius:7px;background:#fff;color:var(--ink);
  display:inline-flex;align-items:center;justify-content:center;font-weight:900;font-size:1rem;
  box-shadow:inset 0 -3px 0 rgba(34,48,74,.15);
}
.cq-die.atk{background:var(--sun)}
.cq-die.lost{opacity:.38;text-decoration:line-through}
.cq-dice .vs{opacity:.6;font-weight:900}
.cq-dice .result{color:var(--sun)}

/* Controls */
.cq-controls{display:flex;flex-wrap:wrap;gap:9px;margin:12px 0 2px;align-items:center}
.cq-controls .spacer{flex:1}
#skip-btn{background:var(--violet);color:#fff}
#skip-btn:hover{background:#574BDB}
#skip-btn.sprinting{background:var(--sun);color:var(--ink)}
.cq-move{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  background:#FFF3D6;border:2px solid var(--sun);border-radius:14px;
  padding:9px 14px;margin:10px 0 0;font-weight:800;
}
.cq-move[hidden]{display:none}
.cq-move .mv-count{font-size:1.15rem;min-width:2ch;text-align:center}
.cq-move button{min-height:40px}

/* Battle log */
.cq-log{
  background:#F6F8FC;border-radius:14px;padding:10px 14px;margin:12px 0 0;
  height:168px;overflow-y:auto;font-size:.85rem;line-height:1.5;
}
.cq-log p{margin:2px 0;color:#33415E}
.cq-log p.big{font-weight:900;color:var(--ink)}
.cq-log p.death{color:var(--bad);font-weight:800}
.cq-log p.win{color:var(--good);font-weight:900}
.cq-log .who{font-weight:900}

/* Game-over overlay (over the board) */
.cq-overlay{
  position:absolute;inset:0;display:none;flex-direction:column;align-items:center;justify-content:center;
  gap:9px;text-align:center;padding:22px;z-index:6;
  background:rgba(34,48,74,.82);color:#fff;border-radius:16px;
}
.cq-overlay.show{display:flex}
.cq-overlay .ov-title{font-size:1.7rem;font-weight:900}
.cq-overlay .ov-sub{font-weight:700;opacity:.94;max-width:420px}
.cq-overlay .ov-score{font-size:1.05rem;font-weight:800;color:var(--sun)}
