@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;
  --p900:#4E3C84;
  --p500:#654EA3;
  --p300:#7B66B8;
  --p200:#9C8BCC;
  --p100:#EEEAF7;
  --p50:#F6F4FB;
  --sec500:#FFEC08;
  --n50:#F7F7F8;
  --n100:#EFEFF1;
  --n200:#E2E2E6;
  --n300:#CACAD1;
  --n400:#9FA0A9;
  --n500:#6A6C77;
  --n700:#3F4049;
  --display:"Phenomena", "Inter Tight", system-ui, sans-serif;
  --body:"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*{ box-sizing:border-box; }

html, body{
  margin:0;
  padding:0;
  background:var(--canvas);
  color:var(--ink);
  font-family:var(--body);
  font-size:16px;
  line-height:1.5;
}

.widget{
  max-width:1280px;
  margin:0 auto;
  padding:24px;
}

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

.head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  margin-bottom:20px;
}

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

.title{
  font-family:var(--display);
  font-weight:900;
  font-size:clamp(30px, 5.5vw, 44px);
  line-height:1.05;
  letter-spacing:-0.8px;
  margin:4px 0 6px;
}

.subtitle{
  margin:0;
  font-size:14px;
  color:var(--n700);
  max-width:58ch;
}

.mode{
  display:inline-flex;
  border:1px solid var(--n200);
  border-radius:999px;
  padding:2px;
  background:var(--canvas);
  margin-bottom:4px;
}

.mode-btn{
  border:0;
  background:transparent;
  border-radius:999px;
  font-family:var(--body);
  font-size:13px;
  font-weight:600;
  color:var(--n500);
  padding:6px 14px;
  min-height:32px;
  cursor:pointer;
  transition:background-color 150ms ease-out, color 150ms ease-out;
}
.mode-btn[aria-checked="true"]{
  background:var(--p500);
  color:var(--canvas);
}
.mode-btn:focus-visible{
  outline:2px solid var(--p500);
  outline-offset:2px;
}
@media (pointer: coarse){
  .mode-btn{ min-height:44px; padding:8px 16px; }
}

.main{ display:block; }

@media (min-width: 1024px){
  .main{
    display:grid;
    grid-template-columns:minmax(0, 8fr) minmax(0, 4fr);
    gap:32px;
    align-items:start;
  }
}

.scene{ min-width:0; }
.scroll{
  overflow-x:auto;
  overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;
}
.chart-inner{ min-width:640px; }
.scroll-hint{ display:none; }
@media (max-width: 687px){
  .scroll-hint{
    display:block;
    font-size:12px;
    color:var(--n500);
    text-align:right;
    margin:4px 0 0;
  }
  .scroll{ scrollbar-width:thin; }
  .scroll::-webkit-scrollbar{ height:6px; }
  .scroll::-webkit-scrollbar-thumb{ background:var(--n300); border-radius:3px; }
}

svg#stream{
  display:block;
  width:100%;
}

.layer{
  cursor:pointer;
  transition:opacity 200ms cubic-bezier(0.22, 1, 0.36, 1);
}
.is-dimmed{ opacity:0.22; }

.seam-line{
  stroke:var(--n400);
  stroke-width:1.5;
  stroke-dasharray:3 4;
}
.seam-label{
  font-family:var(--body);
  font-size:11px;
  font-weight:600;
  fill:var(--n500);
}
.flag-dot{ fill:var(--p500); }
.flag-text{
  font-family:var(--body);
  font-size:10.5px;
  font-weight:600;
  letter-spacing:0.4px;
  text-transform:uppercase;
  fill:var(--n500);
}
.guide-line{
  stroke:var(--ink);
  stroke-width:1;
  opacity:0.5;
}
.select-dot{
  fill:var(--sec500);
  stroke:var(--ink);
  stroke-width:1.5;
}

.year-axis{
  display:flex;
  justify-content:flex-start;
  margin:0;
}

.year-btn{
  flex:0 0 auto;
  min-height:44px;
  border:1px solid transparent;
  border-radius:8px;
  background:transparent;
  font-family:var(--body);
  font-size:13px;
  font-weight:600;
  font-variant-numeric:tabular-nums;
  color:var(--n700);
  cursor:pointer;
  padding:0 2px;
  transition:background-color 150ms ease-out;
}
.year-btn:hover{ background:var(--n100); }
.year-btn:focus-visible{
  outline:2px solid var(--p500);
  outline-offset:2px;
}
.year-btn[aria-pressed="true"]{
  background:var(--sec500);
  border-color:var(--ink);
  color:var(--ink);
}

.scene-cap{
  font-size:12px;
  color:var(--n500);
  margin:10px 0 0;
  max-width:70ch;
}

.legend{
  display:flex;
  flex-wrap:wrap;
  gap:6px 4px;
  margin-top:12px;
}

.leg-btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border:1px solid transparent;
  border-radius:999px;
  background:transparent;
  font-family:var(--body);
  font-size:12px;
  font-weight:500;
  color:var(--n700);
  padding:5px 10px;
  min-height:30px;
  cursor:pointer;
  transition:background-color 150ms ease-out;
}
.leg-btn:hover{ background:var(--n100); }
.leg-btn:focus-visible{
  outline:2px solid var(--p500);
  outline-offset:2px;
}
.leg-btn[aria-pressed="true"]{
  background:var(--n100);
  border-color:var(--ink);
  color:var(--ink);
  font-weight:600;
}
.leg-btn.is-gone{ color:var(--n400); }
.leg-sw{
  width:11px; height:11px;
  border-radius:3px;
  flex:0 0 auto;
}
@media (pointer: coarse){
  .leg-btn{ min-height:44px; padding:8px 12px; }
}

.panel{
  background:var(--p50);
  border-radius:16px;
  padding:24px;
  margin-top:24px;
  min-height:220px;
}
@media (min-width: 1024px){
  .panel{ margin-top:0; position:sticky; top:16px; }
}

.panel-overline{
  font-size:11px;
  font-weight:600;
  letter-spacing:1px;
  text-transform:uppercase;
  color:var(--n700);
  margin:0 0 2px;
  display:flex;
  align-items:center;
  gap:8px;
}
.panel-overline .leg-sw{ width:10px; height:10px; }

.panel-title{
  font-family:var(--display);
  font-weight:900;
  font-size:30px;
  line-height:1.05;
  letter-spacing:-0.5px;
  font-variant-numeric:tabular-nums;
  margin:0 0 12px;
}

.panel-hint{ font-size:13px; color:var(--n700); margin:0 0 14px; }

.back-btn{
  display:inline-flex;
  align-items:center;
  gap:4px;
  border:0;
  background:transparent;
  border-radius:8px;
  font-family:var(--body);
  font-size:12px;
  font-weight:600;
  color:var(--p500);
  padding:6px 8px;
  margin:-4px 0 6px -8px;
  min-height:32px;
  cursor:pointer;
}
.back-btn:hover{ background:var(--p100); }
.back-btn:focus-visible{
  outline:2px solid var(--p500);
  outline-offset:2px;
}
@media (pointer: coarse){
  .back-btn{ min-height:44px; }
}

.stat-pair{
  display:flex;
  gap:18px 24px;
  flex-wrap:wrap;
  margin:0 0 6px;
}

.stat .num{
  font-family:var(--display);
  font-weight:900;
  font-size:32px;
  line-height:1;
  letter-spacing:-0.5px;
  font-variant-numeric:tabular-nums;
  color:var(--ink);
}
.stat .lab{
  display:block;
  font-size:11px;
  font-weight:600;
  letter-spacing:0.8px;
  text-transform:uppercase;
  color:var(--n500);
  margin-top:4px;
}

.stat-note{ font-size:12px; color:var(--n500); margin:6px 0 0; }

.milestone{
  background:var(--p100);
  border-radius:12px;
  padding:10px 14px;
  font-size:13px;
  color:var(--ink);
  margin:14px 0 0;
}
.milestone .ms-tag{
  display:inline-block;
  font-size:10.5px;
  font-weight:600;
  letter-spacing:0.8px;
  text-transform:uppercase;
  color:var(--p900);
  margin-right:6px;
}

.panel-sec{
  border-top:1px solid var(--p100);
  margin-top:16px;
  padding-top:14px;
}
.panel-sec h3{
  font-size:13px;
  font-weight:700;
  margin:0 0 4px;
}
.panel-sec .sec-cap{ font-size:12px; color:var(--n500); margin:0 0 10px; }

.cat-list{ list-style:none; margin:0; padding:0; }

.cat-item{ margin:0 0 4px; }

.cat-btn{
  display:flex;
  align-items:center;
  gap:8px;
  width:100%;
  border:0;
  background:transparent;
  border-radius:8px;
  font-family:var(--body);
  font-size:13px;
  color:var(--ink);
  text-align:left;
  padding:7px 8px;
  min-height:34px;
  cursor:pointer;
  transition:background-color 150ms ease-out;
}
.cat-btn:hover{ background:var(--p100); }
.cat-btn:focus-visible{
  outline:2px solid var(--p500);
  outline-offset:2px;
}
.cat-btn .leg-sw{ margin-top:1px; }
.cat-btn .cat-name{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.cat-btn .cat-zero{ color:var(--n500); font-style:italic; }
.cat-btn .cat-val{
  margin-left:auto;
  font-weight:700;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.cat-btn .cat-bar{
  flex:0 0 56px;
  height:6px;
  border-radius:999px;
  background:var(--n100);
  overflow:hidden;
}
.cat-btn .cat-bar > i{
  display:block;
  height:100%;
  border-radius:999px;
}
@media (pointer: coarse){
  .cat-btn{ min-height:44px; }
}

.size-row{
  display:flex;
  align-items:baseline;
  gap:8px;
  font-size:13px;
  margin:0 0 8px;
}
.size-chip{
  font-size:11px;
  font-weight:600;
  border-radius:999px;
  padding:3px 9px;
  background:var(--n100);
  color:var(--n700);
}
.size-chip.great{ background:var(--p200); color:var(--p900); }
.size-val{
  margin-left:auto;
  font-weight:700;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}

.top-list{ list-style:none; margin:0; padding:0; }
.top-list li{
  font-size:13px;
  margin:0 0 10px;
  padding-left:14px;
  position:relative;
}
.top-list li::before{
  content:"";
  position:absolute;
  left:0; top:7px;
  width:6px; height:6px;
  border-radius:50%;
  background:var(--dot, var(--p500));
}
.top-title{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.top-meta{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  color:var(--n500);
  font-size:12px;
  font-variant-numeric:tabular-nums;
  margin-top:2px;
}
.win-badge{
  display:inline-flex;
  align-items:center;
  font-size:10.5px;
  font-weight:600;
  background:var(--sec500);
  color:var(--ink);
  border:1px solid var(--ink);
  border-radius:999px;
  padding:1px 8px;
}

.lifespan{
  display:flex;
  gap:3px;
  margin-top:10px;
}
.life-cell{
  flex:1 1 0;
  height:18px;
  border-radius:4px;
  background:var(--n100);
  position:relative;
}
.life-cell.on{ background:var(--cat, var(--p500)); }
.life-cell.zero{
  background:var(--n100);
  outline:1.5px dashed var(--n400);
  outline-offset:-1.5px;
}
.life-cell.sel{ box-shadow:0 0 0 2px var(--sec500); }
.life-years{
  display:flex;
  gap:3px;
  margin-top:3px;
}
.life-years span{
  flex:1 1 0;
  font-size:9px;
  color:var(--n400);
  text-align:center;
  font-variant-numeric:tabular-nums;
}

.notes{
  margin-top:36px;
  border-top:1px solid var(--n100);
  padding-top:18px;
}
.note-list{
  margin:0;
  padding-left:18px;
  font-size:12px;
  color:var(--n500);
}
.note-list li{ margin-bottom:5px; }

.tooltip{
  position:fixed;
  z-index:20;
  pointer-events:none;
  background:var(--canvas);
  border:1px solid var(--n200);
  border-radius:8px;
  box-shadow:0 12px 32px rgba(26, 26, 26, 0.10);
  font-size:12px;
  line-height:1.4;
  padding:8px 10px;
  max-width:240px;
  opacity:0;
  transition:opacity 150ms ease-out;
}
.tooltip.show{ opacity:1; }
.tooltip .tt-head{
  display:flex;
  align-items:center;
  gap:6px;
  font-weight:600;
  margin-bottom:2px;
}
.tooltip .tt-val{ font-variant-numeric:tabular-nums; }
.tooltip .tt-note{ color:var(--n500); }

.loading{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  background:var(--canvas);
  font-size:14px;
  color:var(--n500);
  z-index:10;
}
.loading[hidden]{ display:none; }

.spinner{
  width:22px; height:22px;
  border-radius:50%;
  border:2.5px solid var(--n200);
  border-top-color:var(--p500);
  animation:spin 0.9s linear infinite;
}
@keyframes spin{ to{ transform:rotate(360deg); } }

@media (max-width: 599px){
  .widget{ padding:16px; }
  .head{ margin-bottom:14px; }
  .panel{ padding:18px; }
  .panel-title{ font-size:25px; }
  .stat .num{ font-size:27px; }
}

@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;}