/* «Битва за Китай: модуль» на главной ребёнка (app/js/module-home.js) — «древний Китай + неон», как карта на доске */
.mh-card { border-color: color-mix(in srgb, var(--team) 55%, transparent);
  background: radial-gradient(ellipse at 85% 10%, rgba(255, 179, 71, 0.1), transparent 55%),
    linear-gradient(160deg, color-mix(in srgb, var(--team) 14%, #120a0c), #0f0a0c 65%); }
.mh-head { display: flex; align-items: center; gap: 12px; margin: 6px 0 10px; line-height: 1.15; }
.mh-banner { flex: none; display: grid; place-items: center; width: 54px; height: 64px; font-size: 1.9rem; color: #fff;
  background: var(--team); clip-path: polygon(0 0, 100% 0, 100% 82%, 50% 100%, 0 82%); box-shadow: 0 0 18px var(--team);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5); }
.mh-team { color: var(--team); font-size: 1.3em; text-shadow: 0 0 10px color-mix(in srgb, var(--team) 60%, transparent); }
.mh-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px; align-items: center; }
.mh-map { width: 100%; height: auto; display: block; }
.mh-map-wait { aspect-ratio: 1.3; border-radius: 12px; background: rgba(255, 255, 255, 0.04); }
.mh-prov { fill: #1c1612; stroke: rgba(214, 178, 110, 0.45); stroke-width: 1.2; }
.mh-prov.mh-own { fill: color-mix(in srgb, var(--team) 50%, #140d0a); stroke: color-mix(in srgb, var(--team) 85%, #fff); }
.mh-prov.mh-mine { stroke: #fff; stroke-width: 2.4; }
.mh-river { fill: none; stroke: #5fd4ff; stroke-width: 4; stroke-linecap: round; opacity: 0.8; }
.mh-wall { fill: none; stroke: #e0b25a; stroke-width: 7; stroke-dasharray: 7 4; }
.mh-roof { fill: #c41e3a; stroke: #ffd27a; stroke-width: 1; }
.mh-wallr { fill: #8a1426; stroke: #ffd27a; stroke-width: 1; }
.mh-res { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.mh-rt { display: flex; flex-direction: column; align-items: center; padding: 6px 2px; border-radius: 10px; border: 1px solid rgba(214, 178, 110, 0.35);
  background: rgba(20, 12, 8, 0.6); }
.mh-rt b { font-size: 1.4rem; line-height: 1; color: #ffd27a; font-weight: 500; }
.mh-rt i { font-style: normal; font-size: 1.15rem; font-weight: 800; color: var(--text); }
.mh-rt small { font-size: 0.7rem; color: var(--text-dim); }
.mh-teams { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; align-items: center; font-size: 0.9rem; }
.mh-t { padding: 2px 8px; border-radius: 999px; border: 1px solid var(--team); color: var(--team); }
.mh-t-me { background: color-mix(in srgb, var(--team) 22%, transparent); font-weight: 700; }
.mh-t-note { color: var(--text-dim); font-size: 0.85em; }
.mh-brought { margin: 10px 0 0; color: var(--text-dim); }
.mh-brought b { color: var(--success); font-weight: 600; }
.mh-today { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 12px; }
.mh-today-title { grid-column: 1 / -1; font-size: 0.9rem; color: var(--text-dim); }
.mh-chip { font: inherit; cursor: pointer; padding: 10px 12px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--team) 70%, transparent); color: var(--text);
  background: linear-gradient(180deg, color-mix(in srgb, var(--team) 18%, transparent), rgba(10, 6, 8, 0.6)); text-align: left;
  box-shadow: 0 0 10px color-mix(in srgb, var(--team) 25%, transparent); }
.mh-chip b { color: #ffd27a; white-space: nowrap; }
.mh-done { margin: 12px 0 0; color: var(--success); }
@media (max-width: 520px) { .mh-body { grid-template-columns: 1fr; } .mh-map { max-height: 230px; } }
.mh-t-out { opacity: 0.45; text-decoration: line-through; }
.mh-roles { margin: 0.4rem 0 0; font-size: 0.9rem; color: var(--text-dim, #aab); }
.mh-roles b { color: var(--team); font-weight: 500; }
.mh-banner .mh-art { width: 54px; height: 54px; object-fit: contain; }
.mh-banner .mh-art:not(.mh-art-ok) { position: absolute; width: 1px; height: 1px; opacity: 0; }
.mh-banner:has(.mh-art-ok) > span { display: none; }
.mh-banner:has(.mh-art-ok) { background: none; box-shadow: none; clip-path: none; }
.mh-art-px { image-rendering: pixelated; }
/* Летопись сезона 史记 */
.mh-chron { margin: 10px 0 0; border-top: 1px solid color-mix(in srgb, var(--team) 35%, transparent); padding-top: 8px; }
.mh-chron summary { cursor: pointer; font-weight: 600; }
.mh-chron summary b { color: #ffb347; margin-right: 4px; }
.mh-chron ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.mh-chron li { padding: 6px 8px; border-left: 3px solid var(--team); background: rgba(255, 255, 255, 0.03); border-radius: 0 8px 8px 0; font-size: 0.92rem; }
.mh-chron-date, .mh-chron-res, .mh-chron-roles { color: var(--text-dim, #aab); font-size: 0.85rem; }
.mh-chron-roles b { color: var(--team); font-weight: 500; }
.mh-owns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mh-own { padding: 2px 8px; border-radius: 6px; font-size: 0.85rem; }
.mh-own-hero { border: 1px solid #e8322e; color: #ff7a70; }
.mh-own-wonder { border: 1px solid #ffe14d; color: #ffe14d; }

/* Атлас провинций (atlas.js) и итоги сезона (2026-11-04) */
.mh-atlas { display: flex; align-items: center; gap: 8px; width: 100%; margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; cursor: pointer; font: inherit; text-align: left;
  border: 1px solid color-mix(in srgb, var(--team, #ffb347) 60%, transparent); background: color-mix(in srgb, var(--team, #ffb347) 10%, transparent); color: var(--text); }
.mh-atlas b { color: #ffd27a; font-weight: 500; } .mh-atlas i { font-style: normal; font-weight: 700; margin-left: auto; }
.mh-award-title { margin: 10px 0 6px; font-weight: 600; }
.mh-awards { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mh-award { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid #ffd27a; background: rgba(255, 210, 122, .1); }
.mh-award > b { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #3a2a10; color: #ffd27a; font-size: 1.1rem; border: 2px solid #ffd27a; flex: none; }
.mh-award span { font-weight: 700; } .mh-award small { display: block; font-weight: 400; color: var(--text-dim); }

.atlas-back { margin: 0 0 10px; }
.atlas-head h2 { margin: 4px 0 8px; }
.atlas-bar { height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.atlas-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffb347, #ffd27a); }
.atlas-hint { color: var(--text-dim); margin: 8px 0 10px; }
.atlas-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.atlas-badge { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border-radius: 12px; border: 1px dashed var(--line, rgba(196,218,239,.25)); color: var(--text-dim); text-align: center; }
.atlas-badge b { font-size: 1.3rem; } .atlas-badge small { font-size: .78rem; } .atlas-badge i { font-style: normal; font-size: .8rem; }
.atlas-badge-on { border: 2px solid #ffd27a; color: var(--text); background: radial-gradient(circle at 50% 30%, rgba(255, 210, 122, .25), transparent 70%); }
.atlas-badge-on b { color: #ffd27a; } .atlas-badge-on i { color: #ffd27a; font-size: 1rem; }
.atlas-region { margin: 18px 0 0; }
.atlas-region h3 { margin: 0 0 8px; font-size: 1.1rem; } .atlas-region h3 span { color: #ffd27a; } .atlas-region h3 small { color: var(--text-dim); font-weight: 400; }
.atlas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.atlas-card { position: relative; display: grid; justify-items: center; gap: 2px; padding: 10px 8px 12px; border-radius: 14px; font: inherit; color: var(--text); cursor: pointer;
  border: 1px solid rgba(255, 210, 122, .5); background: linear-gradient(160deg, rgba(255, 179, 71, .12), var(--panel-solid, #131a2a) 70%); text-align: center; min-height: 160px; }
.atlas-shape { width: 72px; height: 60px; } .atlas-shape path { fill: #ffb347; stroke: #ffe1a6; stroke-width: 2; vector-effect: non-scaling-stroke; }
.atlas-zh { font-family: var(--cjk); font-size: 1.7rem; line-height: 1.2; } .atlas-py { color: #ffd27a; } .atlas-ru { font-size: .9rem; color: var(--text-dim); }
.atlas-locked { cursor: default; border-style: dashed; border-color: var(--line, rgba(196,218,239,.25)); background: transparent; }
.atlas-locked .atlas-shape path { fill: rgba(255, 255, 255, .06); stroke: rgba(255, 255, 255, .25); }
.atlas-q { font-size: 2rem; color: var(--text-dim); line-height: 1.1; }
.atlas-new { box-shadow: 0 0 0 2px #39ff88, 0 0 18px rgba(57, 255, 136, .35); }
.atlas-new-tag { position: absolute; top: 6px; right: 6px; font-size: .7rem; padding: 1px 6px; border-radius: 999px; background: #39ff88; color: #04121a; font-weight: 700; }
.atlas-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(2, 4, 10, .7); }
.atlas-m { position: relative; width: min(440px, 100%); text-align: center; }
.atlas-m-x { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line, rgba(196,218,239,.3)); background: transparent; color: var(--text); font-size: 1.4rem; cursor: pointer; }
.atlas-m-shape { width: 140px; height: 110px; } .atlas-m-shape path { fill: #ffb347; stroke: #ffe1a6; stroke-width: 2; vector-effect: non-scaling-stroke; }
.atlas-m h2 { margin: 6px 0 0; font-size: 2.6rem; font-family: var(--cjk); }
.atlas-m-py { color: #ffd27a; margin-bottom: 12px; }
.atlas-m-cap { margin: 14px 0 6px; } .atlas-say-sm { min-height: 36px; padding: 4px 10px; margin-left: 4px; }
.atlas-m-fact { margin: 8px 0 0; line-height: 1.5; color: var(--text); }
@media (max-width: 480px) { .atlas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .atlas-badges { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
