/* ═══ intl.css — THE WORLD: a Soviet classroom wall-map with war-scare instruments ═══
   Markup is produced by renderIntl(state) (intl.js) into #intl-home:
   .intl-home-inner[data-hot] > .intl-map(.intl-roller, svg.intl-svg, .intl-siren) + .intl-rail(.intl-gauge[--p 0..100]×4 [.tension has .intl-lamp[data-hot]]) + .intl-col(.intl-event×n)
   Contract classes: .intl-map .intl-gauge(--p) .intl-lamp[data-hot=false|true|siren] .intl-col .intl-event.   Panel ≈ 60vh.
   Motion: needle drift (transform), lamp flicker above 80 (opacity), siren shadow ≥95 (opacity), event slide-in (transform/opacity), arcs pulse (opacity). Reduced motion: static. */

.intl-home-inner { --hot: 0; position: relative; display: grid; gap: 10px; min-height: min(60vh, 560px); align-content: start; padding: 8px 0 12px; }
.intl-home-inner[data-hot="true"] { --hot: 1; } .intl-home-inner[data-hot="siren"] { --hot: 2; }

/* the wall map on its wooden rollers */
.intl-map { position: relative; border-radius: 2px; overflow: hidden; background: #0d1015; box-shadow: 0 10px 24px -12px #000, 0 0 0 1px rgba(255,255,255,.06); padding: 12px 0; }
.intl-roller { position: absolute; left: -2px; right: -2px; height: 10px; z-index: 3; background: linear-gradient(#b88a44, #6a4a1c 55%, #3a280e); box-shadow: 0 2px 4px rgba(0,0,0,.7); }
.intl-roller.t { top: 0; } .intl-roller.b { bottom: 0; }
.intl-roller::before, .intl-roller::after { content: ""; position: absolute; top: -2px; width: 8px; height: 14px; background: #d9b25a; border-radius: 2px; }
.intl-roller::before { left: 0; } .intl-roller::after { right: 0; }
.intl-svg { display: block; width: 100%; height: auto; max-height: 34vh; }
.intl-svg .land.west { fill: #34445d; } .intl-svg .land.west, .intl-svg .land.neutral { filter: saturate(.8); }
.intl-svg .arc { opacity: .0; animation: intl-arc 3.2s ease-in-out infinite; }
.intl-svg .arc.b { animation-delay: .8s; } .intl-svg .arc.c { animation-delay: 1.6s; }
.intl-home-inner[data-hot="true"] .intl-svg .arc, .intl-home-inner[data-hot="siren"] .intl-svg .arc { animation-duration: 1.4s; }
@keyframes intl-arc { 0%, 100% { opacity: 0; } 40%, 60% { opacity: .9; } }
.intl-svg .moscow .ring { transform-box: fill-box; transform-origin: 50% 50%; animation: intl-ring 2.6s ease-out infinite; }
@keyframes intl-ring { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }
/* siren shadow: red wash pulsing over the whole map at ≥95 */
.intl-siren { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; background: radial-gradient(120% 120% at 50% 50%, transparent 30%, rgba(190, 10, 20, .6)); }
.intl-home-inner[data-hot="siren"] .intl-siren { animation: intl-siren 1.1s ease-in-out infinite alternate; }
@keyframes intl-siren { from { opacity: .15; } to { opacity: 1; } }

/* instruments */
.intl-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 10px 8px 6px; border-radius: 3px; background: linear-gradient(180deg, #2b0a10, #14060a); border: 1px solid color-mix(in srgb, var(--gold, #d4a93c) 30%, transparent); }
.intl-gauge { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.intl-gauge .dial { position: relative; width: 100%; max-width: 74px; aspect-ratio: 2 / 1.12; overflow: hidden; border-radius: 74px 74px 4px 4px; container-type: inline-size;
  background: radial-gradient(ellipse at 50% 100%, #efe6cf 0 60%, #b8ad8c 64%), #efe6cf; box-shadow: 0 0 0 2px #3a2a1a, inset 0 0 6px rgba(0,0,0,.35); }
.intl-gauge .dial::before { content: ""; position: absolute; inset: 0; background: conic-gradient(from 270deg at 50% 100%, #4e6a92 0 30deg, #8e8a7a 30deg 60deg, #d49a2c 60deg 120deg, #b0121f 120deg 180deg); -webkit-mask: radial-gradient(ellipse at 50% 100%, transparent 0 58%, #000 60% 76%, transparent 78%); mask: radial-gradient(ellipse at 50% 100%, transparent 0 58%, #000 60% 76%, transparent 78%); opacity: .9; }
.intl-gauge:not(.tension) .dial::before { background: conic-gradient(from 270deg at 50% 100%, #5e7ea8 0 45deg, #8e8a7a 45deg 135deg, #d9a93a 135deg 180deg); }
.intl-gauge .needle { position: absolute; left: 50%; bottom: 0; width: 2px; height: 74%; margin-left: -1px; background: #1a0508; transform-origin: 50% 100%; border-radius: 2px;
  transform: rotate(calc(-90deg + var(--p, 50) * 1.8deg)); transition: transform 1.4s cubic-bezier(.3, .7, .2, 1); animation: intl-drift 3.8s ease-in-out infinite alternate; }
@keyframes intl-drift { from { rotate: -1.6deg; } to { rotate: 1.8deg; } }
.intl-gauge .hub { position: absolute; left: 50%; bottom: -4px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: #3a2a1a; }
.intl-gauge .lbl { font: 800 8.5px/1.1 var(--sans, sans-serif); letter-spacing: .12em; text-align: center; color: var(--gold, #d4a93c); }
.intl-gauge .val { font: 700 11px/1 var(--serif, Georgia, serif); color: color-mix(in srgb, var(--paper, #e9dfc4) 85%, transparent); font-variant-numeric: tabular-nums; }
.intl-gauge.tension { grid-column: 1 / -1; order: -1; padding-bottom: 6px; }
.intl-gauge.tension .dial { max-width: 150px; }
.intl-lamp { position: absolute; top: 0; right: 10%; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #7a3a3a, #3a0f12 60%, #1a0406); box-shadow: 0 0 0 2px #3a2a1a, inset 0 0 3px rgba(0,0,0,.6); }
.intl-lamp[data-hot="true"], .intl-lamp[data-hot="siren"], .intl-lamp[data-hot="1"], .intl-lamp[data-hot="2"] { background: radial-gradient(circle at 35% 35%, #fff 0 12%, #ff5058 40%, #b0121f 70%); box-shadow: 0 0 0 2px #3a2a1a, 0 0 14px 3px rgba(255, 60, 70, .85); animation: intl-flick .55s steps(2) infinite alternate; }
.intl-lamp[data-hot="siren"], .intl-lamp[data-hot="2"] { animation-duration: .22s; }
@keyframes intl-flick { from { opacity: .55; } to { opacity: 1; } }

/* the era timeline */
.intl-col { position: relative; padding: 4px 4px 4px 22px; display: grid; gap: 8px; }
.intl-col::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: repeating-linear-gradient(0deg, color-mix(in srgb, var(--gold, #d4a93c) 70%, transparent) 0 6px, transparent 6px 10px); }
.intl-event { position: relative; display: grid; grid-template-columns: 62px 1fr; gap: 10px; align-items: baseline; padding: 8px 10px; border-radius: 2px; background: color-mix(in srgb, var(--paper, #e9dfc4) 6%, transparent); border: 1px solid rgba(255,255,255,.06); animation: intl-ev .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 70ms); }
.intl-event::before { content: ""; position: absolute; left: -18px; top: 11px; width: 9px; height: 9px; background: var(--gold, #d4a93c); clip-path: polygon(50% 0, 62% 34%, 98% 36%, 70% 58%, 80% 94%, 50% 72%, 20% 94%, 30% 58%, 2% 36%, 38% 34%); }
.intl-event.hot::before { background: #ff4a52; filter: drop-shadow(0 0 4px #ff4a52); }
.intl-event .d { font: 800 9.5px/1.2 'Courier New', ui-monospace, monospace; letter-spacing: .06em; color: var(--gold, #d4a93c); text-transform: uppercase; }
.intl-event .t { font: 14px/1.4 var(--serif, Georgia, serif); color: var(--paper, #e9dfc4); }
@keyframes intl-ev { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .intl-svg .arc { animation: none; opacity: .5; } .intl-svg .moscow .ring { animation: none; opacity: .6; } .intl-gauge .needle { animation: none; transition: none; }
  .intl-lamp, .intl-home-inner[data-hot="siren"] .intl-siren { animation: none; } .intl-home-inner[data-hot="siren"] .intl-siren { opacity: .6; } .intl-event { animation: none; }
}

/* ── app-side extension: pane header + divergence ledger (app.js renders these) ── */
.world-label { font: 800 10px/1 'Courier New', ui-monospace, monospace; letter-spacing: .22em; color: var(--gold, #d4a93c); margin: 0 0 10px; }
.world-label.small { margin: 14px 0 6px; opacity: .8; }
.intl-div-list { margin-top: 4px; }
.intl-div { font: 12.5px/1.45 var(--serif, Georgia, serif); color: var(--ink-dim, #b3a583); padding: 6px 0 6px 10px; border-left: 2px solid var(--accent, #a02025); }
