@font-face { font-family: "Plex"; src: url("/fonts/IBMPlexSans.woff2") format("woff2"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/IBMPlexMono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/IBMPlexMono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --font: "Plex", "Segoe UI", system-ui, sans-serif;
  --mono: "Plex Mono", Consolas, monospace;
  --bg: rgba(14, 16, 19, 0.94);
  --card: #1b1e23;
  --card2: #22262c;
  --line: #262a30;
  --line2: #33383f;
  --text: #eceef0;
  --muted: #a6acb3;
  --dim: #71777f;
  --accent: #ffb547;
  --live: #ff4d40;
  --top: 52px;
  --bottom: 56px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #000; color: var(--text); font: 13.5px/1.5 var(--font); overflow: hidden; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
input, select { font: inherit; color: var(--text); }
#top, #layers, #side .dhead, #timebar, #hint, .lbl, #lightbox, .actionbar { user-select: none; -webkit-user-select: none; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; display: block; }
.ic .f { fill: currentColor; stroke: none; }
.ic.sm { width: 15px; height: 15px; }
.ic.lg { width: 22px; height: 22px; }

#view { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; touch-action: none; }
#labels { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }

.lbl { position: absolute; left: 0; top: 0; white-space: nowrap; font: 500 11.5px/1 var(--font); color: #e2e5e8; text-shadow: 0 1px 2px #000, 0 0 2px #000; padding-left: 8px; margin-top: -6px; will-change: transform; }
.lbl.click { pointer-events: auto; cursor: pointer; }
.lbl.click:hover { color: #fff; }
.lbl.planet { font-size: 12.5px; color: #f4f5f6; }
.lbl.sat { color: #ffd27a; }
.lbl.plane { color: #ffe08a; font: 500 10.5px/1 var(--mono); }
.lbl.star { color: #aab3be; font-weight: 400; }
.lbl.const { color: #7390b0; padding-left: 0; font-weight: 400; }
.lbl.event { color: #ffd3a0; }
.lbl.compass { color: #fff; font-weight: 600; padding-left: 0; margin-left: -5px; font-size: 13px; }
.lbl.here { color: #fff; font-weight: 600; font-size: 12.5px; }
.lbl.sel { color: var(--accent); font-weight: 600; font-size: 12.5px; }

#top { position: fixed; top: 0; left: 0; right: 0; height: var(--top); display: flex; align-items: center; gap: 16px; padding: 0 14px; background: var(--bg); border-bottom: 1px solid var(--line); z-index: 20; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 600; font-size: 16px; color: #fff; white-space: nowrap; }
.brand img { width: 24px; height: 24px; }
#views { display: flex; gap: 2px; }
.vbtn, .pbtn { display: flex; align-items: center; gap: 7px; padding: 7px 10px; color: var(--muted); border-radius: 4px; white-space: nowrap; text-decoration: none; }
.vbtn:hover, .pbtn:hover { color: #fff; background: #1d2126; }
.vbtn.on, .pbtn.on { color: #fff; background: #262b31; }
.vbtn.on .ic, .pbtn.on .ic { color: var(--accent); }
.pbtn.pk .ic { color: #6fd08c; }
#search { position: relative; flex: 1; max-width: 420px; min-width: 120px; display: flex; align-items: center; height: 34px; background: #101317; border: 1px solid var(--line2); border-radius: 4px; padding: 0 10px; gap: 8px; color: var(--dim); }
#search:focus-within { border-color: #5a616b; }
#q { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; }
#q::placeholder { color: var(--dim); }
#results { position: absolute; top: 38px; left: -1px; right: -1px; background: #121519; border: 1px solid var(--line2); border-radius: 4px; max-height: 64vh; overflow: auto; z-index: 30; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
#results button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 12px; color: var(--text); border-bottom: 1px solid var(--line); }
#results button:last-child { border-bottom: 0; }
#results button .k { margin-left: auto; color: var(--dim); font-size: 12px; white-space: nowrap; }
#results button .ic { color: var(--muted); }
#results button:hover, #results button.hi { background: #1b1f24; }
#pages { display: flex; gap: 2px; margin-left: auto; }

.panel { position: fixed; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; z-index: 10; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 8px 28px rgba(0,0,0,0.45); }
.panel[hidden] { display: none; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 8px 8px 14px; border-bottom: 1px solid var(--line); flex: none; }
.ph-title { display: flex; align-items: center; gap: 8px; font-weight: 600; color: #fff; }
.iconbtn { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 4px; color: var(--muted); }
.iconbtn.sm { width: 28px; height: 28px; }
.iconbtn:hover { color: #fff; background: #23272d; }

#layers { left: 12px; top: calc(var(--top) + 12px); width: 270px; max-height: calc(100vh - var(--top) - var(--bottom) - 36px); }
#layers.closed #layers-body, #layers.closed .ph-title span { display: none; }
#layers.closed .panel-head { border-bottom: 0; }
#layers-body { overflow: auto; padding: 2px 0 10px; }
.grp-h { padding: 12px 14px 4px; font-size: 11.5px; font-weight: 600; color: var(--dim); text-transform: uppercase; letter-spacing: 0.07em; }
.lrow { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 14px; text-align: left; color: var(--muted); }
.lrow:hover { background: #1a1d22; color: var(--text); }
.lrow .ic { color: var(--dim); }
.lrow.on { color: #fff; }
.lrow.on .ic { color: var(--sw, var(--accent)); }
.lrow .nm { flex: 1; min-width: 0; }
.lrow .ct { font: 11.5px var(--mono); color: var(--dim); }
.lrow .tg { width: 28px; height: 16px; border-radius: 8px; background: #343a42; position: relative; flex: none; transition: background 0.15s; }
.lrow .tg::after { content: ""; position: absolute; left: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #8d949c; transition: transform 0.15s, background 0.15s; }
.lrow.on .tg { background: var(--sw, var(--accent)); }
.lrow.on .tg::after { transform: translateX(12px); background: #fff; }
.lrow.err .ct { color: #d0786e; }
.radio { display: flex; gap: 6px; padding: 4px 14px 6px; }
.radio button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 6px; border: 1px solid var(--line2); border-radius: 4px; color: var(--muted); }
.radio button.on { color: #fff; border-color: var(--accent); background: #2a2316; }
.radio button.on .ic { color: var(--accent); }
.subcats { padding-left: 14px; }
.more { display: flex; align-items: center; gap: 6px; padding: 4px 14px 2px 42px; color: var(--dim); font-size: 12px; }
.more:hover { color: var(--text); }

#side { right: 12px; top: calc(var(--top) + 12px); width: 380px; max-height: calc(100vh - var(--top) - var(--bottom) - 36px); }
#side-body { overflow: auto; flex: 1; min-height: 0; }
.dhead { position: relative; padding: 12px 44px 10px 14px; }
.dhead .x { position: absolute; right: 8px; top: 8px; }
.dhead h2 { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 20px; font-weight: 700; line-height: 1.2; color: var(--accent); }
.dhead h2.white { color: #fff; }
.dhead .dsub { color: var(--text); margin-top: 3px; font-size: 13.5px; }
.dhead .dsub2 { color: var(--muted); font-size: 12.5px; }
.tag { display: inline-block; font: 500 11px/1.6 var(--mono); padding: 0 6px; border-radius: 3px; background: #2c3138; color: #d5dae0; vertical-align: middle; }
.tag.blue { background: #1f4766; color: #cfe6ff; }
.tag.red { background: #5a2420; color: #ffc2ba; }
.tag.orange { background: #563717; color: #ffd8a6; }
.tag.green { background: #1f4630; color: #b8f0c8; }
.tag.amber { background: #4b3a17; color: #ffe0a0; }
.hero { position: relative; background: #000; aspect-ratio: 16 / 10; overflow: hidden; cursor: zoom-in; }
.hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero .cr { position: absolute; left: 8px; bottom: 6px; font-size: 11px; color: #eee; text-shadow: 0 1px 2px #000; max-width: 70%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero .dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.hero .dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.45); }
.hero .dots i.on { background: #fff; }
.hero .open { position: absolute; right: 8px; bottom: 6px; color: #fff; }
.hero .nav { position: absolute; top: 0; bottom: 0; width: 20%; display: flex; align-items: center; justify-content: center; color: #fff; opacity: 0; transition: opacity 0.15s; }
.hero:hover .nav { opacity: 0.9; }
.hero .nav.l { left: 0; transform: scaleX(-1); }
.hero .nav.r { right: 0; }
.hero.empty { display: grid; place-items: center; color: var(--dim); cursor: default; aspect-ratio: 16 / 6; }

.route { display: grid; grid-template-columns: 1fr 44px 1fr; align-items: stretch; background: var(--card); border-bottom: 1px solid var(--line); }
.route .ap { text-align: center; padding: 12px 6px 10px; }
.route .ap b { display: block; font: 600 34px/1.05 var(--font); color: #fff; letter-spacing: 0.01em; }
.route .ap .c { display: block; font-weight: 600; text-transform: uppercase; font-size: 12.5px; margin-top: 2px; }
.route .ap .s { display: block; color: var(--dim); font-size: 11.5px; }
.route .mid { display: grid; place-items: center; }
.route .mid span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #2a2f36; color: var(--accent); }
.prog { padding: 0 14px 10px; background: var(--card); border-bottom: 1px solid var(--line); }
.prog .bar { height: 4px; background: #2e333a; border-radius: 2px; overflow: hidden; }
.prog .bar div { height: 100%; background: var(--accent); }
.prog .pl { display: flex; justify-content: space-between; font: 11.5px var(--mono); color: var(--muted); margin-top: 4px; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.stat { background: var(--card); padding: 8px 14px 9px; min-width: 0; }
.stat.w { grid-column: span 2; }
.stat .l { display: block; font-size: 11px; font-weight: 600; color: var(--dim); text-transform: uppercase; letter-spacing: 0.05em; }
.stat .v { display: block; font: 500 17px/1.3 var(--font); color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .v small { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 3px; }

.actionbar { display: flex; border-top: 1px solid var(--line); background: #15181c; flex: none; }
.actionbar button, .actionbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px 7px; color: var(--text); font-size: 11.5px; text-decoration: none; min-width: 0; }
.actionbar .ic { width: 22px; height: 22px; color: #e8eaed; }
.actionbar button:hover, .actionbar a:hover { background: #20242a; }
.actionbar .on, .actionbar .on .ic { color: var(--accent); }

.dbody { padding: 0 14px 14px; }
.sec { margin-top: 14px; }
.sec-h { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.sec-h .ic { width: 15px; height: 15px; color: var(--accent); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; }
.kv dt { color: var(--dim); }
.kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.note { color: var(--dim); font-size: 12px; margin-top: 8px; }
.prose { color: #cfd3d8; margin: 0; }
.prose a { color: var(--accent); text-decoration: none; }
.rows { margin: 0; padding: 0; list-style: none; }
.rows li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid #22262b; }
.rows li:last-child { border-bottom: 0; }
.rows .t { color: var(--dim); white-space: nowrap; font: 12px var(--mono); }
.rows button { text-align: left; }
.rows button:hover { color: #fff; text-decoration: underline; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.grid .ph { position: relative; aspect-ratio: 1; background: #111; overflow: hidden; cursor: zoom-in; border-radius: 3px; }
.grid .ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s; }
.grid .ph:hover img { transform: scale(1.04); }
.grid .ph span { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 5px 3px; font-size: 10.5px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,0.8)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pic { position: relative; background: #000; cursor: zoom-in; border-radius: 3px; overflow: hidden; }
.pic img { width: 100%; display: block; }
.picr { color: var(--dim); font-size: 11px; padding: 3px 0 0; }
.loading { color: var(--dim); font-size: 12px; padding: 6px 0; }
.bars { display: flex; align-items: flex-end; gap: 1px; height: 52px; margin: 2px 0 0; }
.bars div { flex: 1; background: #4f8ae0; min-height: 1px; border-radius: 1px 1px 0 0; }
.bars div.p { background: #2b3440; }
.axis { display: flex; justify-content: space-between; color: var(--dim); font: 11px var(--mono); }
.aqi { display: inline-block; padding: 0 6px; border-radius: 3px; font: 500 11.5px/1.6 var(--mono); color: #111; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line2); border-radius: 4px; color: var(--muted); white-space: nowrap; }
.chip:hover { color: #fff; }
.chip.on { color: #fff; border-color: var(--accent); background: #2a2316; }
.chip .ic { width: 15px; height: 15px; }

#page { position: fixed; z-index: 15; top: calc(var(--top) + 12px); bottom: calc(var(--bottom) + 20px); left: 294px; right: 12px; background: rgba(12, 14, 17, 0.97); border: 1px solid var(--line); border-radius: 6px; display: flex; flex-direction: column; box-shadow: 0 10px 34px rgba(0,0,0,0.55); }
#page[hidden] { display: none; }
.page-head { display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 20px; border-bottom: 1px solid var(--line); flex: none; flex-wrap: wrap; }
.page-head h1 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 19px; font-weight: 700; color: #fff; white-space: nowrap; }
.page-head h1 .ic { color: var(--accent); width: 22px; height: 22px; }
#page-tools { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; flex-wrap: wrap; }
#page-close { margin-left: auto; }
#page-body { overflow: auto; padding: 16px 20px 26px; flex: 1; }
.cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 6px; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.card .cimg { aspect-ratio: 16 / 9; background: #000; overflow: hidden; position: relative; cursor: zoom-in; }
.card .cimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .cimg .cr { position: absolute; left: 6px; bottom: 4px; font-size: 10.5px; color: #ddd; text-shadow: 0 1px 2px #000; }
.card .cimg .badge { position: absolute; left: 8px; top: 8px; }
.card .cb { padding: 12px 14px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; font-weight: 600; color: #fff; }
.card h3 .ic { color: var(--accent); }
.card .meta { color: var(--muted); font-size: 12.5px; }
.card .actionbar { margin-top: auto; border-top: 1px solid var(--line); }
.card .actionbar button, .card .actionbar a { flex-direction: row; justify-content: center; gap: 6px; font-size: 12px; padding: 8px 4px; }
.card .actionbar .ic { width: 16px; height: 16px; }
.ptitle { display: flex; align-items: center; gap: 8px; margin: 24px 0 10px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; }
.ptitle .ic { width: 15px; height: 15px; color: var(--accent); }
.ptitle:first-child { margin-top: 0; }
.ctable { width: 100%; border-collapse: collapse; }
.ctable th { text-align: left; font-weight: 600; color: var(--dim); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; padding: 6px 12px 6px 0; border-bottom: 1px solid var(--line2); white-space: nowrap; }
.ctable td { padding: 7px 12px 7px 0; border-bottom: 1px solid #1f2328; vertical-align: middle; }
.ctable td.n { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ctable td .ic { display: inline-block; vertical-align: -4px; margin-right: 6px; color: var(--accent); width: 16px; height: 16px; }
.ctable tr.click { cursor: pointer; }
.ctable tr.click:hover td { background: #171b20; }
.tl { position: relative; height: 84px; margin: 4px 0 2px; }
.tl canvas { width: 100%; height: 100%; display: block; cursor: pointer; }
.yrs { display: flex; justify-content: space-between; color: var(--dim); font: 11px var(--mono); margin-bottom: 14px; }
.pinput { height: 32px; background: #101317; border: 1px solid var(--line2); border-radius: 4px; padding: 0 10px; outline: none; min-width: 180px; }
select.pinput { padding: 0 6px; }

#timebar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 12px; height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; z-index: 12; box-shadow: 0 6px 22px rgba(0,0,0,0.45); }
#t-live { display: flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 4px; color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
#t-live .ic { width: 14px; height: 14px; }
#t-live.on { color: var(--live); }
#t-live:hover { background: #1d2126; }
#t-clock { display: flex; flex-direction: column; line-height: 1.2; min-width: 200px; }
#t-date { font: 500 13.5px var(--mono); color: #fff; }
#t-sub { font: 11.5px var(--mono); color: var(--dim); }
#t-ctrl { display: flex; align-items: center; gap: 2px; }
#t-ctrl .spd { font: 500 12px var(--mono); color: var(--muted); min-width: 70px; text-align: center; }
#t-ctrl .sep { width: 1px; height: 24px; background: var(--line2); margin: 0 4px; }
#t-ctrl .jmp { font: 12px var(--mono); color: var(--muted); padding: 6px 7px; border-radius: 4px; }
#t-ctrl .jmp:hover { color: #fff; background: #1d2126; }

#hint { position: fixed; left: 50%; transform: translateX(-50%); bottom: 72px; color: #e0e3e6; background: rgba(0,0,0,0.6); padding: 6px 12px; font-size: 12.5px; border-radius: 4px; z-index: 11; transition: opacity 0.8s; pointer-events: none; }
#hint.gone { opacity: 0; }

#lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,0.94); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 40px; }
#lightbox[hidden] { display: none; }
#lb-img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; }
#lb-cap { color: #ccc; font-size: 12.5px; max-width: 900px; text-align: center; }
#lb-close { position: absolute; top: 12px; right: 12px; }

#sv-here { position: fixed; left: 50%; transform: translateX(-50%); bottom: 72px; z-index: 13; display: flex; align-items: center; gap: 8px; padding: 9px 16px; background: var(--accent); color: #1a1406; font-weight: 600; border-radius: 22px; box-shadow: 0 6px 20px rgba(0,0,0,0.45); }
#sv-here[hidden] { display: none; }
#sv-here .ic { width: 18px; height: 18px; }
#street { position: fixed; left: 0; right: 0; top: var(--top); bottom: 0; z-index: 40; background: #000; display: flex; flex-direction: column; }
#street[hidden] { display: none; }
#street .sv-top { display: flex; align-items: center; gap: 14px; padding: 6px 8px 6px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
#sv-title { font-weight: 600; color: #fff; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#sv-open { color: var(--accent); text-decoration: none; white-space: nowrap; font-size: 12.5px; }
#sv-frame { flex: 1; width: 100%; border: 0; display: block; }
#loading { position: fixed; inset: 0; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; z-index: 50; transition: opacity 0.4s; }
#loading img { width: 44px; height: 44px; margin-bottom: 4px; }
#loading > div:nth-child(2) { font-size: 20px; font-weight: 600; color: #fff; }
#loading-step { color: var(--muted); }
#loading.done { opacity: 0; pointer-events: none; }

#layers-body, #side-body, #page-body, #results { scrollbar-width: thin; scrollbar-color: #3a3f46 transparent; }

@media (max-width: 1200px) {
  .vbtn span, .pbtn span { display: none; }
  #page { left: 12px; }
}
@media (max-width: 760px) {
  :root { --top: 48px; }
  .brand span { display: none; }
  #top { gap: 6px; padding: 0 6px; }
  #views .vbtn, .pbtn { padding: 7px 7px; }
  #pages .pbtn:not(.pk):not([data-p="events"]) { display: none; }
  #layers { width: 236px; max-height: 50vh; }
  #side { left: 6px; right: 6px; width: auto; top: auto; bottom: calc(var(--bottom) + 14px); max-height: 60vh; }
  #page { left: 6px; right: 6px; top: calc(var(--top) + 6px); bottom: calc(var(--bottom) + 14px); }
  #t-clock { min-width: 0; }
  #t-sub, #t-ctrl .jmp, #t-ctrl .sep, #t-ctrl .spd { display: none; }
  #timebar { bottom: 6px; max-width: calc(100vw - 12px); }
  #hint { display: none; }
}

#results { min-width: 340px; }
#results button > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) {
  #results { position: fixed; left: 6px; right: 6px; top: calc(var(--top) + 2px); min-width: 0; }
}
