/* V3 — 红线群岛战争 stylesheet */
:root {
  --bg-deep: #0e1620;
  --bg-mid:  #1b2838;
  --bg-up:   #2a3a4f;
  --line:    #3d5066;
  --text:    #e8eef5;
  --muted:   #8aa1b8;
  --accent:  #4ea0ff;
  --gold:    #ffc847;
  --food:    #d8a838;
  --tech:    #b878e0;
  --pop:     #6cd0bc;
  --oil:     #e89060;
  --green:   #4ad84a;
  --red:     #e85a5a;
  --warn:    #ff7a3a;
  --yellow:  #ffeb3b;
}
* { box-sizing: border-box; }
html, body { margin:0; padding:0; height:100%; background:var(--bg-deep); color:var(--text); font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; overflow:hidden; }

.mockup-nav {
  display:flex; gap:14px; align-items:center;
  padding:6px 14px; background:#000; color:#fff;
  font:600 13px/1 monospace; border-bottom:1px solid #222;
}
.mockup-nav .nav-tag { color:var(--accent); }
.mockup-nav a { color:#bbb; text-decoration:none; padding:4px 8px; border-radius:3px; }
.mockup-nav a.active { background:var(--accent); color:#000; }
.mockup-nav a:hover { color:#fff; }

#app { display:flex; flex-direction:column; height: calc(100vh - 27px); }

/* --- 顶栏 --- */
#topbar {
  display:flex; align-items:center; gap:8px;
  padding:6px 12px; background:linear-gradient(180deg, var(--bg-up), var(--bg-mid));
  border-bottom:2px solid var(--line);
  height:46px; flex-shrink:0;
}
.icon-btn { background:transparent; border:1px solid var(--line); color:var(--text); padding:4px 8px; border-radius:4px; cursor:pointer; font-size:14px; }
.icon-btn:hover { background:var(--bg-up); }
.topbar-cell {
  display:flex; align-items:center; gap:6px;
  padding:4px 10px; background:rgba(0,0,0,0.25);
  border:1px solid var(--line); border-radius:4px;
  font:600 13px/1 monospace; min-height:28px;
}
.topbar-cell.year { background:#3a2860; border-color:#7a5cb0; min-width:140px; justify-content:center; }
.topbar-cell.turn-info { background:#3a2860; border-color:#7a5cb0; }
.topbar-cell .delta { color:var(--green); font-size:11px; margin-left:4px; }
.topbar-cell .delta.neg { color:var(--red); }
.topbar-cell.gold span:first-of-type { color:var(--gold); }
.topbar-cell.food span:first-of-type { color:var(--food); }
.topbar-cell.pop span:first-of-type { color:var(--pop); }
.topbar-cell.tech span:first-of-type { color:var(--tech); }
.topbar-cell.oil span:first-of-type { color:var(--oil); }
.topbar-cell.stab { flex:1; max-width:280px; }
.stab-bar { flex:1; height:8px; background:#000; border:1px solid var(--line); border-radius:3px; overflow:hidden; margin-left:4px; }
#hud-stab-fill { height:100%; background:var(--green); width:72%; transition:width .3s; }
.topbar-menu {
  margin-left:auto; padding:6px 14px; background:var(--bg-up);
  border:1px solid var(--line); color:var(--text); border-radius:4px; cursor:pointer;
  font-weight:600;
}
.topbar-menu:hover { background:var(--accent); color:#000; }

/* --- 主布局 --- */
#layout { display:flex; flex:1; min-height:0; }
#left-panel, #right-panel {
  width:230px; background:var(--bg-mid);
  border-right:1px solid var(--line); padding:8px;
  display:flex; flex-direction:column; gap:8px;
  overflow-y:auto;
}
#right-panel { border-right:none; border-left:1px solid var(--line); }
#map-area { flex:1; position:relative; background:#0a1828; overflow:hidden; }

/* --- SVG 地图 --- */
#map-svg { display:block; width:100%; height:100%; user-select:none; }
.territory { cursor:pointer; }
.territory .terrain-fill { transition: filter 0.2s; }
.territory:hover .terrain-fill { filter: brightness(1.18) saturate(1.1); }
.territory:hover .border { stroke-width: 3 !important; }
.territory.highlighted .border {
  stroke-width: 4 !important;
  animation: pulse-stroke 1.1s ease-in-out infinite;
}
.territory.hl-move .border {
  stroke: #4ad84a !important;
  filter: drop-shadow(0 0 5px #4ad84a);
}
.territory.hl-attack .border {
  stroke: #ff4040 !important; stroke-width: 5 !important;
  filter: drop-shadow(0 0 6px #ff4040);
  animation: pulse-stroke 0.55s ease-in-out infinite;
}
.territory.hl-attack .terrain-fill {
  filter: brightness(1.1) saturate(1.4) hue-rotate(-15deg);
}
.territory.hl-capture .border {
  stroke: #ffc847 !important;
  filter: drop-shadow(0 0 5px #ffc847);
}
.territory.hl-blocked .border {
  stroke: #888 !important; stroke-width: 3 !important;
  stroke-dasharray: 4 4;
  filter: none;
  animation: none;
}
.territory.hl-blocked .terrain-fill {
  filter: grayscale(0.6) brightness(0.7);
}
.territory.selected .border {
  stroke: var(--accent) !important; stroke-width: 5 !important;
  filter: drop-shadow(0 0 6px var(--accent));
  animation: pulse-stroke 0.8s ease-in-out infinite;
}
.unit-stack { cursor:pointer; transition: transform 0.18s; transform-box: fill-box; transform-origin: center; }
.unit-stack:hover { filter: brightness(1.2); }
.unit-stack.mine circle:nth-child(2) { animation: ring-glow 2s ease-in-out infinite; }
.unit-stack.moved { opacity: 0.55; }
.unit-stack.hit { animation: unit-hit 0.35s ease-out; }
.waves path { animation: wave-drift 14s linear infinite; }

@keyframes wave-drift {
  0% { transform: translateX(0); }
  100% { transform: translateX(-70px); }
}
@keyframes pulse-stroke {
  0%, 100% { stroke-opacity: 1; }
  50% { stroke-opacity: 0.5; }
}
@keyframes ring-glow {
  0%, 100% { stroke-opacity: 1; }
  50% { stroke-opacity: 0.6; }
}
@keyframes unit-hit {
  0%   { transform: scale(1); filter: brightness(1); }
  30%  { transform: scale(1.35); filter: brightness(2.5) hue-rotate(-30deg); }
  100% { transform: scale(1); filter: brightness(1); }
}
@keyframes shockwave {
  0%   { r: 12; opacity: 1; stroke-width: 4; }
  100% { r: 90; opacity: 0; stroke-width: 0.5; }
}
@keyframes battle-burst {
  0%   { opacity: 0; transform: scale(0.5) rotate(-20deg); }
  20%  { opacity: 1; transform: scale(1.4) rotate(15deg); }
  60%  { opacity: 1; transform: scale(1.1) rotate(0deg); }
  100% { opacity: 0; transform: scale(1.6) rotate(20deg); }
}
.damage-number {
  animation: damage-float 1.2s ease-out forwards;
  pointer-events: none;
}
@keyframes damage-float {
  0%   { transform: translateY(0)   scale(1.2); opacity: 0; }
  20%  { transform: translateY(-8)  scale(1.4); opacity: 1; }
  100% { transform: translateY(-44) scale(0.9); opacity: 0; }
}
@keyframes shake {
  0%, 100% { transform: translate(0,0); }
  20% { transform: translate(-4px, 2px); }
  40% { transform: translate(4px, -3px); }
  60% { transform: translate(-3px, 4px); }
  80% { transform: translate(3px, -2px); }
}
#map-area.shake #map-svg { animation: shake 0.5s; }

/* === Move arrows === */
@keyframes dash-draw {
  0%   { stroke-dashoffset: var(--len, 1000); }
  100% { stroke-dashoffset: 0; }
}
@keyframes head-pop {
  0%   { opacity: 0; transform-origin: center; }
  60%  { opacity: 1; }
  100% { opacity: 1; }
}
.move-arrow .arrow-line { filter: drop-shadow(0 0 4px currentColor); }

/* === Focusing pulse on a territory === */
@keyframes focus-pulse {
  0%, 100% { filter: brightness(1) saturate(1); }
  50% { filter: brightness(1.6) saturate(1.5) drop-shadow(0 0 14px #ff4040); }
}
.territory.focusing .terrain-fill { animation: focus-pulse 0.6s ease-in-out 2; }
.territory.focusing .border { stroke-width: 6 !important; stroke: #ff4040 !important; }

/* === AI Turn Banner === */
#ai-turn-banner {
  position: absolute;
  top: 60px; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px;
  background: rgba(20, 30, 50, 0.92);
  border: 3px solid; border-radius: 12px;
  padding: 12px 22px;
  font-family: "PingFang SC", sans-serif;
  z-index: 60; pointer-events: none;
  animation: banner-pop 0.35s ease-out;
  min-width: 260px;
}
#ai-turn-banner.hidden { display: none; }
.ai-banner-flag {
  width: 50px; height: 50px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  border: 3px solid white;
  box-shadow: 0 0 12px currentColor;
}
.ai-banner-name { font-size: 22px; font-weight: bold; line-height: 1.2; }
.ai-banner-sub  { font-size: 12px; color: var(--muted); margin-top: 2px; }
@keyframes banner-pop {
  0% { transform: translateX(-50%) scale(0.6); opacity: 0; }
  60% { transform: translateX(-50%) scale(1.08); opacity: 1; }
  100% { transform: translateX(-50%) scale(1); opacity: 1; }
}

/* === Selected unit-stack === */
.unit-stack.group-selected circle:nth-child(2) {
  stroke: #ffeb3b !important;
  stroke-width: 4 !important;
  filter: drop-shadow(0 0 8px #ffeb3b);
}
.unit-stack.group-selected { animation: bob 1.2s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* === Selection panel (bottom-left of map area) === */
#selection-panel {
  position: absolute; bottom: 18px; left: 18px;
  min-width: 240px; max-width: 380px;
  background: rgba(15, 22, 35, 0.95);
  border: 2px solid var(--accent); border-radius: 8px;
  padding: 10px 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
  z-index: 12;
  font-size: 12px;
}
#selection-panel.hidden { display: none; }
#selection-panel .sel-title {
  font-weight: bold; color: var(--accent);
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px; margin-bottom: 6px;
}
#selection-panel .sel-chips {
  display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px;
}
.sel-unit-chip {
  display: flex; flex-direction: column; align-items: center;
  width: 44px; padding: 4px 2px; border-radius: 5px;
  background: rgba(255,255,255,0.05);
  border: 2px solid transparent;
  cursor: pointer; transition: 0.15s;
}
.sel-unit-chip:hover { background: rgba(255,255,255,0.12); }
.sel-unit-chip.selected {
  border-color: var(--yellow);
  background: rgba(255,235,59,0.15);
  box-shadow: 0 0 6px var(--yellow);
}
.sel-unit-chip.moved { opacity: 0.4; }
.sel-unit-chip .sc-emoji { font-size: 18px; line-height: 1; }
.sel-unit-chip .sc-hp { font-family: monospace; font-size: 10px; color: var(--muted); }
#selection-panel .sel-actions {
  display: flex; gap: 4px; margin-bottom: 4px;
}
#selection-panel .sel-actions button {
  flex: 1; padding: 4px; background: var(--bg-up); border: 1px solid var(--line);
  color: var(--text); border-radius: 3px; cursor: pointer; font-size: 11px;
}
#selection-panel .sel-actions button:hover { background: var(--accent); }
#selection-panel .sel-hint {
  font-size: 10px; color: var(--muted); line-height: 1.3;
}

/* === Build modal: quantity + status + actions === */
.build-status {
  display: flex; flex-direction: column; gap: 4px;
  background: rgba(0,0,0,0.4); padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 5px;
  margin-bottom: 10px; font-family: monospace;
}
.build-status .build-total { color: var(--accent); font-weight: bold; }
.qty-row {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-top: 6px;
  background: rgba(0,0,0,0.4); border-radius: 4px; padding: 4px;
}
.qty-btn {
  width: 28px; height: 28px;
  background: var(--accent); border: none; color: white;
  border-radius: 50%; cursor: pointer;
  font-size: 18px; font-weight: bold; line-height: 0;
}
.qty-btn:hover:not(.disabled) { filter: brightness(1.2); }
.qty-btn.disabled { background: #555; cursor: not-allowed; opacity: 0.5; }
.qty-val {
  min-width: 30px; text-align: center;
  font-family: monospace; font-size: 16px; font-weight: bold;
  color: var(--gold);
}
.modal-actions {
  display: flex; gap: 10px; margin-top: 14px;
  border-top: 1px solid var(--line); padding-top: 12px;
}
.modal-actions .big-btn { margin-top: 0; }
.big-btn.primary { background: linear-gradient(180deg, var(--green), #2a8a2a); color: white; font-size: 16px; }
.big-btn.disabled, .big-btn[disabled] { opacity: 0.4; cursor: not-allowed; }

/* === Fast-forward indicator === */
body.fast-forward::after {
  content: "⏩ Fast-forward ×4 (release Space)";
  position: fixed; bottom: 110px; right: 16px;
  background: rgba(255,140,0,0.95); color: #fff;
  padding: 6px 14px; border-radius: 14px;
  font-size: 13px; font-weight: bold;
  z-index: 200; pointer-events: none;
  animation: pulse-stroke 0.7s infinite;
}

/* --- 面板块 --- */
.panel-block {
  background:rgba(0,0,0,0.25);
  border:1px solid var(--line); border-radius:6px;
  padding:8px;
}
.panel-title { font:600 12px/1.2 monospace; color:var(--muted); margin-bottom:6px; padding-bottom:4px; border-bottom:1px solid var(--line); }
.nation-card { text-align:center; padding:10px; }
.crown { font-size:28px; }
.nation-name { font-weight:700; font-size:16px; margin:4px 0; }
.nation-meta { font-size:11px; color:var(--muted); }
.stats-block { font-size:13px; }
.stat-row { display:flex; justify-content:space-between; padding:3px 0; border-bottom:1px dashed var(--line); }
.stat-row:last-child { border-bottom:none; }
.stat-row span { color:var(--muted); }
.stat-row b { font-family:monospace; }

/* --- 外交列表 --- */
#diplo-list .diplo-row {
  display:flex; align-items:center; gap:6px;
  padding:4px 6px; border-radius:3px; font-size:12px;
}
#diplo-list .swatch { width:10px; height:10px; border-radius:2px; flex-shrink:0; }
#diplo-list .relation { margin-left:auto; font-family:monospace; font-size:11px; padding:1px 4px; border-radius:2px; }
.relation.hostile { background:#5a1a1a; color:#ffb0b0; }
.relation.neutral { background:#3a3a3a; color:#cccccc; }
.relation.friendly { background:#1a4a2a; color:#b0ffc0; }
.relation.war { background:var(--red); color:white; animation: pulse-stroke 1.4s infinite; }

.big-btn {
  width:100%; padding:8px; margin-top:6px;
  background:var(--accent); border:none; color:white;
  border-radius:4px; cursor:pointer; font-weight:600;
}
.big-btn.ghost { background:transparent; border:1px solid var(--line); color:var(--text); }
.big-btn:hover { filter:brightness(1.2); }

/* --- 事件日志 --- */
#event-list { display:flex; flex-direction:column; gap:6px; max-height:280px; overflow-y:auto; }
.event-item {
  display:flex; gap:6px; padding:6px;
  background:rgba(255,255,255,0.04); border-left:3px solid var(--muted);
  font-size:11px; border-radius:3px;
}
.event-item.war  { border-left-color:var(--red); }
.event-item.tech { border-left-color:var(--tech); }
.event-item.diplo{ border-left-color:var(--accent); }
.event-item.event{ border-left-color:var(--food); }
.event-item.battle{border-left-color:var(--warn); }
.event-icon { font-size:16px; }
.event-body { flex:1; }
.event-title { font-weight:600; line-height:1.2; }
.event-when { color:var(--muted); font-size:10px; margin-top:2px; }

.minimap-block { padding:0; }
#minimap { display:block; width:100%; border-radius:5px; }

#btn-end-turn {
  margin-top:auto; padding:14px;
  background:linear-gradient(180deg, #4ea0ff, #2a78dd);
  border:1px solid #87c4ff; color:white;
  font-weight:700; font-size:16px; border-radius:6px;
  cursor:pointer; box-shadow: 0 2px 8px rgba(78,160,255,0.4);
}
#btn-end-turn:hover { filter:brightness(1.15); }
#btn-end-turn:disabled { opacity:0.5; cursor:wait; }

/* --- 底栏 国家技能 --- */
#bottombar {
  display:flex; align-items:center; gap:14px;
  padding:8px 12px; background:linear-gradient(180deg, var(--bg-mid), var(--bg-up));
  border-top:2px solid var(--line);
  height:96px; flex-shrink:0;
}
.skill-title { writing-mode:vertical-lr; font:600 12px/1 monospace; color:var(--muted); }
#skill-bar { display:flex; gap:8px; }
.skill-icon {
  width:64px; height:74px;
  background:rgba(0,0,0,0.3); border:1px solid var(--line); border-radius:6px;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  cursor:pointer; gap:2px; position:relative; transition:all .15s;
}
.skill-icon:hover:not(.cooling) { background:var(--bg-up); border-color:var(--accent); transform: translateY(-2px); }
.skill-icon.cooling { opacity:0.5; cursor:not-allowed; }
.skill-icon .si-emoji { font-size:24px; }
.skill-icon .si-name { font-size:11px; color:var(--text); }
.skill-icon .si-cd { font-size:10px; color:var(--muted); font-family:monospace; }
.skill-icon.cooling .si-cd { color:var(--warn); }
#combat-log {
  flex:1; max-height:80px; overflow-y:auto;
  background:rgba(0,0,0,0.4); border:1px solid var(--line); border-radius:4px;
  padding:6px 10px; font-family:monospace; font-size:12px;
  color:var(--green);
}
#combat-log .log-line { padding:1px 0; }
#combat-log .log-red { color:var(--red); }
#combat-log .log-blue { color:var(--accent); }
#combat-log .log-yellow { color:var(--food); }

/* --- 工具提示 --- */
#tooltip {
  position:absolute; pointer-events:none;
  background:rgba(0,0,0,0.92); border:1px solid var(--accent);
  padding:8px 10px; border-radius:5px; font-size:12px;
  color:var(--text); max-width:240px;
  box-shadow:0 4px 12px rgba(0,0,0,0.5);
  z-index:50;
}
#tooltip h4 { margin:0 0 4px; font-size:13px; color:var(--accent); }
#tooltip .ttl-row { display:flex; justify-content:space-between; gap:8px; font-family:monospace; font-size:11px; }
#tooltip .ttl-units { margin-top:4px; padding-top:4px; border-top:1px solid var(--line); }

#action-bar {
  position:absolute; left:50%; bottom:20px; transform:translateX(-50%);
  display:flex; gap:6px; align-items:center; background:rgba(0,0,0,0.85); padding:6px 10px;
  border:1px solid var(--accent); border-radius:6px; z-index:10;
}
#action-bar #action-info { font-size:12px; color:var(--muted); padding-right:6px; }
.act-btn { padding:6px 14px; background:var(--accent); border:none; color:white; border-radius:4px; cursor:pointer; font-weight:600; }
.act-btn.ghost { background:transparent; border:1px solid var(--line); color:var(--text); }
.act-btn:hover { filter:brightness(1.2); }

#hint-bar {
  position:absolute; left:50%; top:14px; transform:translateX(-50%);
  background:rgba(0,0,0,0.85); border:1px solid var(--accent);
  padding:6px 14px; border-radius:18px;
  font-size:13px; color:var(--text); z-index:10;
  pointer-events:none;
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
#hint-bar.hidden { display: none; }

/* --- Modal --- */
#modal-mask { position:fixed; inset:0; background:rgba(0,0,0,0.7); display:flex; align-items:center; justify-content:center; z-index:100; }
#modal-box {
  background:var(--bg-mid); border:2px solid var(--accent); border-radius:8px;
  padding:20px; min-width:400px; max-width:680px; max-height:80vh; overflow-y:auto;
  position:relative;
}
#modal-close { position:absolute; top:8px; right:12px; background:none; border:none; color:var(--text); font-size:24px; cursor:pointer; }
#modal-close:hover { color:var(--red); }
#modal-content h2 { margin-top:0; color:var(--accent); }

.unit-pick { display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; margin-top:10px; }
.unit-card {
  background:rgba(0,0,0,0.3); border:1px solid var(--line); border-radius:5px;
  padding:8px; cursor:pointer; transition:.15s;
}
.unit-card:hover:not(.disabled) { border-color:var(--accent); transform:translateY(-2px); }
.unit-card.disabled { opacity:0.4; cursor:not-allowed; }
.unit-card .uc-row1 { display:flex; align-items:center; gap:6px; font-weight:600; }
.unit-card .uc-emoji { font-size:20px; }
.unit-card .uc-stats { display:flex; gap:6px; font-family:monospace; font-size:11px; color:var(--muted); margin:4px 0; flex-wrap:wrap; }
.unit-card .uc-stats span { background:rgba(255,255,255,0.06); padding:1px 4px; border-radius:2px; }
.unit-card .uc-cost { font-family:monospace; font-size:11px; color:var(--gold); }
.unit-card .uc-ability { font-size:10px; color:var(--muted); margin-top:2px; }

.tech-list .tech-item {
  display:flex; align-items:center; gap:10px;
  background:rgba(0,0,0,0.3); border:1px solid var(--line); border-radius:5px;
  padding:8px; margin-bottom:6px;
}
.tech-item.researching { border-color:var(--tech); background:rgba(184,120,224,0.1); }
.tech-item.done { opacity:0.5; }
.tech-item .ti-icon { font-size:24px; }
.tech-item .ti-body { flex:1; }
.tech-item .ti-name { font-weight:600; }
.tech-item .ti-desc { font-size:11px; color:var(--muted); }
.tech-item .ti-progress { width:120px; height:8px; background:rgba(0,0,0,0.5); border-radius:3px; overflow:hidden; border:1px solid var(--line); }
.tech-item .ti-progress > div { height:100%; background:var(--tech); transition:width .3s; }
.tech-item button { padding:4px 10px; background:var(--tech); border:none; color:white; border-radius:3px; cursor:pointer; font-size:11px; }

.diplo-action { display:flex; flex-direction:column; gap:6px; }
.diplo-action button { padding:6px; background:var(--bg-up); border:1px solid var(--line); color:var(--text); border-radius:3px; cursor:pointer; }
.diplo-action button:hover { background:var(--accent); }

/* --- 主菜单（覆盖在地图上方）--- */
#main-menu {
  position:fixed; inset:0; background:radial-gradient(ellipse at center, #1a3a5c 0%, #0a1420 100%);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  z-index:200; gap:14px;
}
#main-menu h1 { font-size:48px; margin:0; color:var(--accent); text-shadow:0 4px 20px rgba(78,160,255,0.5); }
#main-menu .subtitle { color:var(--muted); margin:0; }

.menu-section { margin-top: 10px; display:flex; flex-direction:column; align-items:center; gap:6px; }
.menu-section-title { color: var(--muted); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }

#nation-picker {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 6px;
}
.nation-pick {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 10px;
  background: rgba(0,0,0,0.3);
  border: 2px solid var(--line);
  border-radius: 8px;
  cursor: pointer; transition: 0.15s;
  min-width: 90px;
}
.nation-pick:hover { border-color: var(--accent); transform: translateY(-2px); }
.nation-pick.selected {
  border-color: white;
  background: rgba(78,160,255,0.2);
  box-shadow: 0 0 12px var(--accent);
}
.nation-pick .np-flag {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  border: 2px solid white;
}
.nation-pick .np-name { font-size: 12px; font-weight: 600; color: var(--text); }

.diff-row { display:flex; gap:10px; margin-top: 6px; }
.diff-btn {
  padding: 10px 20px; background: rgba(0,0,0,0.4); border: 2px solid var(--line);
  color: var(--text); border-radius: 6px; cursor: pointer; font-size: 15px; font-weight: 600;
  transition: 0.15s;
}
.diff-btn:hover { border-color: var(--accent); }
.diff-btn.selected { background: var(--accent); border-color: var(--accent); color: #fff; }
.diff-desc { color: var(--muted); font-size: 12px; min-height: 1.4em; margin: 0; }

.menu-btn { padding:12px 32px; background:var(--accent); border:none; color:white; border-radius:6px; cursor:pointer; font-size:16px; font-weight:600; min-width:240px; }
.menu-btn.primary { background:linear-gradient(180deg, #4ea0ff, #2a78dd); box-shadow:0 4px 12px rgba(78,160,255,0.4); }
.menu-btn.ghost { background:transparent; border:1px solid var(--line); color:var(--text); }
.menu-btn:hover { filter:brightness(1.15); }
.menu-btn:disabled { opacity:0.4; cursor:not-allowed; }
#main-menu .hint { color:var(--muted); font-size:12px; margin-top:20px; text-align:center; line-height:1.6; }

.hidden { display:none !important; }

.tooltip-help { color:var(--muted); font-size:11px; margin-top:6px; padding-top:6px; border-top:1px solid var(--line); }
.tooltip-action {
  margin-top:6px; padding:4px 8px;
  background: rgba(78,160,255,0.18); border-radius:3px;
  font-weight:bold; text-align:center; font-size:12px;
}
.tooltip-action.gray { background: rgba(255,255,255,0.1); color: var(--muted); }
