:root { color-scheme: dark; }
html, body { margin: 0; background: #2d2d2d; color: #fff; }
body { font-family: "Times New Roman", Times, serif; font-size: 16px; line-height: 1.4; }
main { padding: 16px 16px 48px; }

.chart { position: relative; width: 1000px; max-width: 100%; height: 500px; margin: 0 auto; background: #2a2a2b; }
.chart canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; }
.chart:fullscreen { width: 100vw; height: 100vh; max-width: none; }
@media (max-width: 640px) { .chart { height: 360px; } }

.menu-btn { position: absolute; top: 10px; right: 10px; width: 24px; height: 22px; padding: 5px 5px; border: 0; border-radius: 2px;
  background: #505053; cursor: pointer; display: flex; flex-direction: column; justify-content: space-between; }
.menu-btn span { display: block; height: 2px; border-radius: 1px; background: #ddd; }
.menu-btn:hover, .menu-btn[aria-expanded="true"] { background: #707073; }
.menu-btn:focus-visible { outline: 2px solid #2b908f; outline-offset: 1px; }

.menu { position: absolute; top: 36px; right: 10px; z-index: 5; min-width: 168px; padding: 5px 0; background: #fff;
  box-shadow: 3px 3px 10px #111; font: 11px/1.3 "Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif; }
.menu[hidden] { display: none; }
.menu hr { border: 0; border-top: 1px solid #ccc; margin: 4px 0; }
.menu button { display: block; box-sizing: border-box; width: 100%; padding: 6px 12px; border: 0; background: none; color: #333;
  font: inherit; text-align: left; cursor: pointer; }
.menu button:hover, .menu button:focus-visible { background: #335cad; color: #fff; outline: none; }
.menu button[aria-checked="true"]::after { content: " \2713"; }

.tip { position: absolute; z-index: 4; pointer-events: none; transform: translate(-50%, calc(-100% - 14px));
  padding: 6px 9px; border: 1px solid #2b908f; border-radius: 3px; background: rgba(0, 0, 0, .85); color: #f0f0f0;
  font: 12px/1.5 "Unica One", "Arial Narrow", Arial, sans-serif; white-space: nowrap; }
.tip[hidden] { display: none; }
.tip::after { content: ""; position: absolute; left: 50%; bottom: -7px; margin-left: -7px; border: 7px solid transparent;
  border-bottom: 0; border-top-color: #2b908f; }
.tip.below { transform: translate(-50%, 14px); }
.tip.below::after { bottom: auto; top: -7px; border: 7px solid transparent; border-top: 0; border-bottom-color: #2b908f; }
.tip .th { font-size: 10px; }
.tip .dot { color: #2b908f; }

.brand { margin: 48px 0 0; text-align: center; }
.brand sup { color: #f00; font-size: 62%; }
.brand a { color: inherit; text-decoration: none; }
.brand a:hover { text-decoration: underline; }
.notice { margin: 22px 0 0; text-align: center; }
.notice span { color: #f00; }
