* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #03050b; color: #e8dcc0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
canvas#sky { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
canvas#sky.dragging { cursor: grabbing; }

button, select {
  font: inherit; font-size: .85rem; color: #f0d79a; background: rgba(20,14,8,.72);
  border: 1px solid #4a3a24; border-radius: 999px; padding: .32rem .7rem; cursor: pointer;
}
button:hover, select:hover { border-color: #8a6c3e; }
button:focus-visible, select:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid #f0c87a; outline-offset: 2px; }
button[aria-pressed="true"] { background: rgba(240,200,122,.18); border-color: #b08a4c; color: #ffe6aa; }
select { border-radius: 8px; max-width: 11rem; }
select option, select optgroup { background: #1a120b; color: #f0d79a; }

.top { position: fixed; top: 0; left: 0; right: 0; display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: center; gap: .5rem; padding: max(.6rem, env(safe-area-inset-top)) .8rem .4rem; pointer-events: none; }
.top > * { pointer-events: auto; }
.top { padding-left: 6.4rem; padding-right: 8.4rem; min-height: 3.6rem; }
.top .home { display: none; }
@media (max-width: 640px) {
  .top { padding: 3.9rem .8rem .4rem; }
  body .toast { top: 10rem; }
}
.title { display: flex; align-items: baseline; gap: .8rem; }
.home { color: #c9b48a; text-decoration: none; font-size: .9rem; }
.home:hover { color: #f0c87a; }
h1 { margin: 0; font-size: 1.05rem; font-weight: 600; color: #f0c87a; letter-spacing: .02em; text-shadow: 0 1px 4px #000; }
.toggles { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: flex-end; }

.card { position: fixed; left: .8rem; bottom: 7.4rem; width: min(24rem, calc(100% - 1.6rem));
  background: rgba(16,11,6,.9); border: 1px solid #4a3a24; border-radius: 14px; padding: .8rem 1rem .7rem;
  box-shadow: 0 6px 24px rgba(0,0,0,.6); max-height: 52vh; overflow: auto; }
.card[hidden] { display: none; }
.card h2 { margin: 0 1.6rem .1rem 0; font-size: 1.1rem; color: #ffe2a0; font-weight: 600; }
.card p { margin: .35rem 0; line-height: 1.45; font-size: .93rem; }
.card .aka { margin-top: 0; color: #b9ab8c; font-size: .85rem; font-style: italic; }
.card .where { color: #d8c08a; font-size: .85rem; border-top: 1px dashed #3a2e1d; padding-top: .45rem; }
.card .x { position: absolute; top: .45rem; right: .5rem; padding: 0 .55rem; font-size: 1.1rem; line-height: 1.6; }

.toast { position: fixed; left: 50%; top: 5.2rem; transform: translateX(-50%); max-width: min(30rem, calc(100% - 2rem));
  background: rgba(16,11,6,.9); border: 1px solid #4a3a24; border-radius: 10px; padding: .55rem .9rem;
  font-size: .9rem; line-height: 1.4; text-align: center; opacity: 0; transition: opacity .5s; pointer-events: none; }
.toast.on { opacity: 1; }

.time { position: fixed; left: 0; right: 0; bottom: 0; padding: .4rem .8rem max(.6rem, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: center; gap: .3rem; pointer-events: none; }
.time .row { display: flex; align-items: center; gap: .5rem; width: min(34rem, 100%); pointer-events: auto; }
.time .row:first-child { justify-content: center; }
.when { flex: 1; text-align: center; font-size: .92rem; color: #d8c08a; text-shadow: 0 1px 4px #000; }
.when b { color: #ffe2a0; font-weight: 600; margin-left: .5rem; font-variant-numeric: tabular-nums; }
.when i { font-style: normal; font-size: .75rem; color: #9fd0a0; margin-left: .45rem; }
.end { font-size: .75rem; color: #9b8d70; }
input[type=range] { flex: 1; accent-color: #d9a85a; min-width: 6rem; height: 1.6rem; }
#bPrev, #bNext { padding: .1rem .75rem; font-size: 1.15rem; }
#bPlay { min-width: 2.4rem; }

.nos { position: fixed; inset: 40% 1rem auto; text-align: center; }

@media (max-width: 560px) {
  h1 { font-size: .95rem; }
  button, select { font-size: .78rem; padding: .28rem .55rem; }
  .card { bottom: 6.8rem; left: .5rem; width: calc(100% - 1rem); }
  .toast { top: 6.4rem; }
}
