@font-face{
  font-family:"Phenomena"; font-style:normal; font-weight:700;
  src:url("fonts/Phenomena-Bold.woff2") format("woff2"); font-display:swap;
}
@font-face{
  font-family:"Phenomena"; font-style:normal; font-weight:900;
  src:url("fonts/Phenomena-Black.woff2") format("woff2"); font-display:swap;
}

:root{
  --canvas:#FDFDFD;
  --ink:#1A1A1A;
  --primary-900:#4E3C84;
  --primary-500:#654EA3;
  --primary-300:#7B66B8;
  --primary-200:#9C8BCC;
  --primary-100:#EEEAF7;
  --primary-50:#F6F4FB;
  --secondary-700:#E6D307;
  --secondary-500:#FFEC08;
  --neutral-50:#F7F7F8;
  --neutral-100:#EFEFF1;
  --neutral-200:#E2E2E6;
  --neutral-300:#CACAD1;
  --neutral-400:#9FA0A9;
  --neutral-500:#6A6C77;
  --neutral-700:#3F4049;
  --channel-electronic:#654EA3;
  --channel-paper:#0E7C8C;
  --font-display:"Phenomena", 'Inter Tight', system-ui, sans-serif;
  --font-body:'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-1:0 1px 2px rgba(26, 26, 26, 0.04);
  --shadow-2:0 4px 12px rgba(26, 26, 26, 0.06);
  --shadow-3:0 12px 32px rgba(26, 26, 26, 0.10);
}

*{ box-sizing:border-box; }

html, body{
  margin:0;
  height:100%;
  background:var(--canvas);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:14px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}

.widget{
  height:100%;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  max-width:1280px;
  margin:0 auto;
}

.visually-hidden{
  position:absolute;
  width:1px;
  height:1px;
  margin:-1px;
  padding:0;
  overflow:hidden;
  clip:rect(0 0 0 0);
  white-space:nowrap;
  border:0;
}

.bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 16px 10px;
  border-bottom:1px solid var(--neutral-100);
  flex-wrap:wrap;
}

.overline{
  display:block;
  font-size:11px;
  font-weight:600;
  letter-spacing:1px;
  text-transform:uppercase;
  color:var(--neutral-500);
}

.title{
  margin:1px 0 0;
  font-family:var(--font-display);
  font-weight:900;
  font-size:clamp(26px, 4vw, 34px);
  line-height:1.1;
  letter-spacing:-0.4px;
}

.years{
  display:flex;
  gap:4px;
  flex-wrap:wrap;
}

.year-btn{
  font-family:var(--font-body);
  font-variant-numeric:tabular-nums;
  font-size:13px;
  font-weight:600;
  color:var(--neutral-700);
  background:transparent;
  border:1px solid var(--neutral-200);
  border-radius:999px;
  padding:6px 12px;
  min-height:32px;
  cursor:pointer;
  transition:background-color 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out;
}
.year-btn:hover{ background:var(--neutral-100); }
.year-btn.active{
  background:var(--secondary-500);
  border-color:var(--ink);
  color:var(--ink);
}
.year-btn.active:hover{ background:var(--secondary-700); }
.year-btn:focus-visible,
.speed:focus-visible,
.playbtn:focus-visible,
.bigplay:focus-visible{
  outline:2px solid var(--primary-500);
  outline-offset:2px;
}

.map-wrap{
  position:relative;
  flex:1;
  min-height:280px;
  display:flex;
  flex-direction:column;
  background:var(--canvas);
}

#map{
  position:relative;
  flex:1;
  width:100%;
  min-height:0;
}

.maplibregl-ctrl-attrib{ display:none; }

.card{
  background:rgba(253, 253, 253, 0.92);
  border:1px solid var(--neutral-100);
  border-radius:12px;
  box-shadow:var(--shadow-1);
  backdrop-filter:blur(2px);
}
.map-meta{
  position:absolute;
  top:12px;
  left:12px;
  right:12px;
  z-index:5;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  pointer-events:none;
}
.map-meta .card{ pointer-events:auto; }

.legend{
  padding:8px 12px;
  display:flex;
  flex-direction:column;
  gap:4px;
  font-size:12px;
  font-weight:500;
  color:var(--neutral-700);
}

.legend-item{ display:flex; align-items:center; gap:7px; white-space:nowrap; }

.dot{
  width:9px;
  height:9px;
  border-radius:50%;
  flex:none;
}
.dot-elec{ background:var(--channel-electronic); }
.dot-paper{ background:var(--channel-paper); }

.counter{
  padding:10px 14px 8px;
  text-align:right;
  min-width:130px;
}


.counter-num{
  font-family:var(--font-display);
  font-weight:900;
  font-size:34px;
  line-height:1.0;
  letter-spacing:-1px;
  font-variant-numeric:tabular-nums;
  color:var(--ink);
}

.counter-cap{
  margin-top:3px;
  font-size:11px;
  font-weight:500;
  color:var(--neutral-500);
  font-variant-numeric:tabular-nums;
}

.bigplay{
  position:absolute;
  z-index:6;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%);
  width:64px;
  height:64px;
  border-radius:50%;
  border:none;
  background:var(--primary-500);
  color:var(--canvas);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:var(--shadow-3);
  transition:background-color 150ms ease-out, transform 150ms ease-out, opacity 200ms ease-out;
}
.bigplay svg{ margin-left:4px; }
.bigplay:hover{ background:var(--primary-900); transform:translate(-50%, -50%) scale(1.04); }
.bigplay.hidden{ opacity:0; pointer-events:none; }

.loading{
  position:absolute;
  inset:0;
  z-index:10;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  background:var(--canvas);
  color:var(--neutral-500);
  font-size:13px;
  transition:opacity 250ms ease-out;
}
.loading.hidden{ opacity:0; pointer-events:none; }

.spinner{
  width:28px;
  height:28px;
  border-radius:50%;
  border:3px solid var(--primary-100);
  border-top-color:var(--primary-500);
  animation:spin 0.9s linear infinite;
}
@keyframes spin{ to{ transform:rotate(360deg); } }

.controls{
  padding:10px 16px 6px;
  border-top:1px solid var(--neutral-100);
}

.controls-row{
  display:flex;
  align-items:center;
  gap:12px;
}

.playbtn{
  flex:none;
  width:40px;
  height:40px;
  border-radius:50%;
  border:none;
  background:var(--primary-500);
  color:var(--canvas);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:background-color 150ms ease-out;
}
.playbtn:hover:not(:disabled){ background:var(--primary-900); }
.playbtn:disabled{ background:var(--primary-200); cursor:not-allowed; }
.playbtn .ic-pause, .playbtn .ic-replay{ display:none; }
.playbtn.playing .ic-play{ display:none; }
.playbtn.playing .ic-pause{ display:block; }
.playbtn.ended .ic-play{ display:none; }
.playbtn.ended .ic-replay{ display:block; }
.playbtn .ic-play{ margin-left:2px; }

.timeline{
  position:relative;
  flex:1;
  height:40px;
  display:flex;
  align-items:center;
}

.ticks{
  position:absolute;
  left:0;
  right:0;
  top:50%;
  height:10px;
  transform:translateY(-50%);
  pointer-events:none;
}
.tick{
  position:absolute;
  top:0;
  width:1px;
  height:100%;
  background:var(--neutral-300);
  opacity:0.7;
}

input[type="range"]{
  -webkit-appearance:none;
  appearance:none;
  width:100%;
  height:40px;
  margin:0;
  background:transparent;
  cursor:pointer;
}
input[type="range"]:disabled{ cursor:not-allowed; }

input[type="range"]::-webkit-slider-runnable-track{
  height:4px;
  border-radius:999px;
  background:linear-gradient(to right,
    var(--primary-500) 0%,
    var(--primary-500) var(--progress, 0%),
    var(--neutral-100) var(--progress, 0%),
    var(--neutral-100) 100%);
}
input[type="range"]::-moz-range-track{
  height:4px;
  border-radius:999px;
  background:var(--neutral-100);
}
input[type="range"]::-moz-range-progress{
  height:4px;
  border-radius:999px;
  background:var(--primary-500);
}
input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance:none;
  width:16px;
  height:16px;
  margin-top:-6px;
  border-radius:50%;
  background:var(--canvas);
  border:2px solid var(--primary-500);
  box-shadow:var(--shadow-1);
}
input[type="range"]::-moz-range-thumb{
  width:12px;
  height:12px;
  border-radius:50%;
  background:var(--canvas);
  border:2px solid var(--primary-500);
  box-shadow:var(--shadow-1);
}

.speeds{
  display:flex;
  gap:4px;
  flex:none;
}

.speed{
  font-family:var(--font-body);
  font-variant-numeric:tabular-nums;
  font-size:12px;
  font-weight:600;
  color:var(--neutral-700);
  background:transparent;
  border:1px solid var(--neutral-200);
  border-radius:999px;
  padding:4px 9px;
  min-height:28px;
  cursor:pointer;
  transition:background-color 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out;
}
.speed:hover{ background:var(--neutral-100); }
.speed.active{
  background:var(--primary-100);
  border-color:var(--primary-300);
  color:var(--primary-900);
}

.caption-row{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:4px 0 2px;
  font-size:13px;
  font-weight:500;
  color:var(--neutral-700);
  font-variant-numeric:tabular-nums;
}

.caption-sep{ color:var(--neutral-300); }

.daynight{
  display:inline-flex;
  align-items:center;
  color:var(--neutral-500);
}
.daynight .ic-moon{ display:none; }
.daynight.night .ic-sun{ display:none; }
.daynight.night .ic-moon{ display:block; }
.daynight.night{ color:var(--primary-300); }

.note{
  padding:2px 16px 9px;
  font-size:11px;
  line-height:1.4;
  font-weight:400;
  color:var(--neutral-500);
}
.maplibregl-cooperative-gesture-screen{
  background:rgba(22, 22, 29, 0.75);
}
.loading.hidden .spinner{ animation:none; }

@media (max-width: 599px){
  .bar{ padding:10px 12px 8px; }
  .title{ font-size:24px; letter-spacing:-0.2px; }
  .year-btn{ min-height:44px; padding:10px 12px; }
  .map-meta{
    position:static;
    padding:8px 12px;
    align-items:center;
  }
  .map-meta .card{ box-shadow:none; background:var(--canvas); }
  .counter{ min-width:104px; padding:6px 10px 5px; }
  .counter-num{ font-size:24px; letter-spacing:-0.5px; }
  .legend{ font-size:11px; padding:6px 10px; gap:3px; }
  .controls{ padding:8px 12px 4px; }
  .controls-row{ gap:8px; flex-wrap:wrap; }
  .playbtn{ width:44px; height:44px; }
  .timeline{ order:3; flex-basis:100%; height:44px; }
  input[type="range"]{ height:44px; }
  input[type="range"]::-webkit-slider-thumb{ width:22px; height:22px; margin-top:-9px; }
  input[type="range"]::-moz-range-thumb{ width:18px; height:18px; }
  .speed{ min-height:44px; min-width:44px; }
  .note{ padding:2px 12px 8px; font-size:10px; }
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration:0.01ms !important;
    transition-duration:0.01ms !important;
  }
}

@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("fonts/inter-cyrillic-ext.woff2") format("woff2");unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;}
@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("fonts/inter-cyrillic.woff2") format("woff2");unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("fonts/inter-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("fonts/inter-latin.woff2") format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("fonts/inter-cyrillic-ext.woff2") format("woff2");unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;}
@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("fonts/inter-cyrillic.woff2") format("woff2");unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("fonts/inter-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("fonts/inter-latin.woff2") format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("fonts/inter-cyrillic-ext.woff2") format("woff2");unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;}
@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("fonts/inter-cyrillic.woff2") format("woff2");unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("fonts/inter-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("fonts/inter-latin.woff2") format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:"Inter";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/inter-cyrillic-ext.woff2") format("woff2");unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;}
@font-face{font-family:"Inter";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/inter-cyrillic.woff2") format("woff2");unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:"Inter";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/inter-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:"Inter";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/inter-latin.woff2") format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:"Inter Tight";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/inter-tight-cyrillic-ext.woff2") format("woff2");unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;}
@font-face{font-family:"Inter Tight";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/inter-tight-cyrillic.woff2") format("woff2");unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:"Inter Tight";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/inter-tight-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:"Inter Tight";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/inter-tight-latin.woff2") format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:"Inter Tight";font-style:normal;font-weight:900;font-display:swap;src:url("fonts/inter-tight-cyrillic-ext.woff2") format("woff2");unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;}
@font-face{font-family:"Inter Tight";font-style:normal;font-weight:900;font-display:swap;src:url("fonts/inter-tight-cyrillic.woff2") format("woff2");unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:"Inter Tight";font-style:normal;font-weight:900;font-display:swap;src:url("fonts/inter-tight-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:"Inter Tight";font-style:normal;font-weight:900;font-display:swap;src:url("fonts/inter-tight-latin.woff2") format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}