/* Shared resource identity: people, wheat and faceted crystals. */
.population-art, [data-resource="population"] { --resource-color: #9adfff; --resource-edge: #529bc6; --resource-glow: #276a9b; }
.food-art, [data-resource="food"] { --resource-color: #ffe493; --resource-edge: #b99a51; --resource-glow: #77652b; }
.minerals-art, [data-resource="minerals"] { --resource-color: #c3b7ff; --resource-edge: #8f80d9; --resource-glow: #53499b; }
.resource-art { display: inline-block; position: relative; width: 26px; height: 26px; flex: none; vertical-align: middle; color: var(--resource-color); }
.resource-art::before { content: ""; display: block; width: 100%; height: 100%; background: var(--resource-image) center / contain no-repeat; filter: drop-shadow(0 1px 2px #05152388); }
.population-art { --resource-image: url('/resource-population.svg'); }
.food-art { --resource-image: url('/resource-food.svg'); }
.minerals-art { --resource-image: url('/resource-minerals.svg'); }
.resource-art.resource-icon { width: 30px; height: 30px; }
.resource-art.product-icon, .resource-art.boost-icon { box-sizing: border-box; border: 1px solid var(--resource-edge); background: radial-gradient(ellipse at center, var(--resource-glow), #10253b 90%); box-shadow: inset 0 0 12px #ffffff0a, 0 0 15px #07162644; }
.resource-art.product-icon { width: 72px; height: 72px; padding: 12px; border-radius: 18px; }
.resource-art.boost-icon { width: 42px; height: 44px; padding: 6px; border-radius: 10px; }
.boost-product[data-resource] { border-color: var(--resource-edge); background: radial-gradient(ellipse at bottom right, var(--resource-glow), transparent 70%), linear-gradient(145deg, #173247, #0c1d30); }
.boost-product[data-resource] > small, .boost-row[data-resource] strong { color: var(--resource-color); }
.resource[data-resource] .resource-content > small { color: var(--resource-color); }
.stat-card:has(.resource-art) { border-color: var(--resource-edge, #3d5772); }
.stat-card:has(.population-art) { --resource-edge: #529bc6; }
.stat-card:has(.food-art) { --resource-edge: #b99a51; }
.stat-card:has(.minerals-art) { --resource-edge: #8f80d9; }
.detail-strip .resource-art, h2 .resource-art, h4 .resource-art, dt .resource-art { width: 22px; height: 22px; margin-right: 6px; }
.action-buttons .resource-art { width: 18px; height: 18px; }
.hex-resource { pointer-events: none; }
.specialization-badge[data-resource] { border-color: var(--resource-edge); }
.specialization-badge[data-resource] strong { color: var(--resource-color); }
@media (max-width: 700px) { .resource-art.resource-icon { width: 22px; height: 22px; } }
@media (max-width: 380px) { .resource-art.resource-icon { display: none; } }
