/* Floating Island Atlas — parchment & ink atlas interface.
 * Layered hand-drawn chart, radial route plotting, aurora accents.
 */

:root {
  --parch-0: #f4ecd6;
  --parch-1: #e9dcbd;
  --parch-2: #ddcaa2;
  --parch-3: #cdb98d;
  --ink: #2c2620;
  --ink-soft: #5a5044;
  --ink-faint: rgba(44, 38, 32, 0.4);
  --line: rgba(44, 38, 32, 0.16);
  --accent-teal: #2f9b8e;
  --accent-violet: #6f5bb0;
  --accent-rose: #b0577f;
  --good: #3f8f6a;
  --warn: #b08a2e;
  --bad: #a8524a;
  --panel-w: 384px;
  --shadow: 0 10px 30px -18px rgba(50, 38, 20, 0.55);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  font-family: var(--serif);
  color: var(--ink);
  background:
    radial-gradient(120% 90% at 15% 0%, #f6efdc 0%, #e8dbba 45%, #d8c69e 100%);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  background: var(--parch-0);
  color: var(--ink);
  padding: 10px 14px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip:focus {
  top: 12px;
}

#app {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  height: 100vh;
}

/* ---- top bar ------------------------------------------------------------ */
#topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(250, 244, 228, 0.92), rgba(238, 228, 203, 0.78));
  backdrop-filter: blur(6px);
  z-index: 6;
  flex: 0 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand .mark {
  width: 40px;
  height: 40px;
  color: var(--ink);
  flex: 0 0 auto;
}
.brand-text {
  min-width: 0;
}
.brand h1 {
  font-size: 19px;
  letter-spacing: 0.06em;
  margin: 0;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand .sub {
  margin: 1px 0 0;
  font-size: 11.5px;
  font-style: italic;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.clock {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
  font-family: var(--sans);
  padding-right: 8px;
  border-right: 1px solid var(--line);
  margin-right: 2px;
}
.clock-season {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-violet);
}
.clock-time {
  font-size: 11px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.clock-wind {
  font-size: 10.5px;
  color: var(--ink-faint);
  letter-spacing: 0.03em;
}

.speeds,
.controls button {
  font-family: var(--sans);
}

.speeds {
  display: flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 252, 244, 0.55);
}
.speeds button {
  min-width: 38px;
  min-height: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 12px;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.speeds button:hover {
  background: rgba(44, 38, 32, 0.07);
}
.speeds button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--parch-0);
}

.icon-btn {
  position: relative;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 252, 244, 0.55);
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.icon-btn:hover {
  background: rgba(44, 38, 32, 0.08);
}
.icon-btn[aria-pressed="true"] {
  border-color: var(--accent-teal);
  color: var(--accent-teal);
}
.badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--accent-rose);
  color: #fff;
  font-family: var(--sans);
  font-size: 10.5px;
  line-height: 18px;
  text-align: center;
}
#panelToggle {
  display: none;
}

/* ---- main --------------------------------------------------------------- */
main {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
}

#chartWrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  background: #e7d9b8;
}
#chartWrap.dragging {
  cursor: grabbing;
}
#clouds,
#overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
#chart,
#labels {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
#labels {
  pointer-events: none;
}
#chart .island {
  cursor: pointer;
}
#chart .island.hover .land,
#chart .island:hover .land {
  filter: brightness(1.04);
}

/* chart furniture */
.compass {
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: 88px;
  height: 88px;
  color: var(--ink-soft);
  opacity: 0.85;
  pointer-events: none;
}
.compass svg {
  width: 100%;
  height: 100%;
}
#windArrow {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.9s ease;
  stroke: var(--accent-rose);
}

.scalebar {
  position: absolute;
  right: 16px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  pointer-events: none;
}
.scalebar span {
  display: block;
  width: 96px;
  height: 8px;
  border: 1px solid var(--ink-soft);
  border-top: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 11px,
    rgba(44, 38, 32, 0.35) 11px 12px
  );
}

.legend {
  position: absolute;
  top: 14px;
  left: 16px;
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(250, 244, 228, 0.72);
  backdrop-filter: blur(3px);
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  pointer-events: none;
  box-shadow: var(--shadow);
}
.legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sw {
  width: 14px;
  height: 10px;
  border-radius: 2px;
  border: 1px solid rgba(44, 38, 32, 0.3);
}
.sw.low {
  background: #3f5d63;
}
.sw.trade {
  background: #6b5a3e;
}
.sw.high {
  background: #5a4a6e;
}
.sw.route {
  background: repeating-linear-gradient(90deg, var(--ink) 0 3px, transparent 3px 6px);
}

.hint {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  max-width: 560px;
  width: min(560px, calc(100% - 32px));
  padding: 10px 54px 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(250, 244, 228, 0.88);
  backdrop-filter: blur(4px);
  box-shadow: var(--shadow);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.hint p {
  margin: 0 0 4px;
}
.hint p:last-child {
  margin-bottom: 0;
}
.hint kbd {
  font-family: var(--sans);
  font-size: 10.5px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 0 4px;
  background: #fffdf6;
  color: var(--ink);
}
.hint-close {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 18px;
  cursor: pointer;
}
.hint-close:hover {
  background: rgba(44, 38, 32, 0.08);
}
.hint[hidden] {
  display: none;
}

.toasts {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(430px, calc(100% - 32px));
  pointer-events: none;
  z-index: 4;
}
.toast {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-violet);
  border-radius: 8px;
  background: rgba(252, 247, 234, 0.95);
  box-shadow: var(--shadow);
  font-size: 12.5px;
  line-height: 1.45;
  animation: toast-in 0.35s ease both;
}
.toast b {
  display: block;
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-violet);
  margin-bottom: 2px;
}
.toast.encounter {
  border-left-color: var(--accent-rose);
}
.toast.encounter b {
  color: var(--accent-rose);
}
.toast.discovery {
  border-left-color: var(--accent-teal);
}
.toast.discovery b {
  color: var(--accent-teal);
}
.toast.out {
  animation: toast-out 0.4s ease both;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}
@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.readout {
  position: absolute;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(252, 247, 234, 0.95);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--ink);
  pointer-events: none;
  box-shadow: var(--shadow);
  z-index: 5;
}
.readout[hidden] {
  display: none;
}

/* ---- panel -------------------------------------------------------------- */
#panel {
  flex: 0 0 var(--panel-w);
  width: var(--panel-w);
  min-height: 0;
  overflow-y: auto;
  padding: 18px 20px 28px;
  border-left: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(248, 241, 224, 0.96), rgba(235, 224, 198, 0.94));
  z-index: 3;
  scrollbar-width: thin;
}
#panel h2 {
  font-size: 21px;
  margin: 0 0 6px;
  letter-spacing: 0.02em;
}
#panel h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-violet);
  margin: 0 0 6px;
  font-family: var(--sans);
  font-weight: 650;
}
.lede {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.fineprint {
  font-size: 11.5px;
  font-style: italic;
  color: var(--ink-faint);
  line-height: 1.5;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
#panel[hidden] {
  display: none;
}
#panelEmpty[hidden],
#panelIsland[hidden],
#panelRoute[hidden] {
  display: none;
}

.index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.index-list li {
  margin: 0;
}
.index-list button {
  width: 100%;
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  min-height: 52px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 252, 244, 0.6);
  color: var(--ink);
  font-family: var(--serif);
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
.index-list button:hover {
  background: rgba(255, 253, 247, 0.95);
  border-color: rgba(44, 38, 32, 0.32);
  transform: translateX(2px);
}
.index-list .glyph {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(44, 38, 32, 0.35);
  background: radial-gradient(circle at 38% 34%, #f6efdb, #d9c79f);
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
}
.index-list .names {
  min-width: 0;
}
.index-list .n {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.index-list .e {
  display: block;
  font-size: 11.5px;
  font-style: italic;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.index-list .bandtag {
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 3px 7px;
  white-space: nowrap;
}
.index-list button .seen {
  color: var(--accent-teal);
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin: 0 0 10px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 252, 244, 0.6);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 12px;
  cursor: pointer;
}
.back:hover {
  background: rgba(255, 253, 247, 0.95);
}

.rec-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 12px;
}
.rec-head h2 {
  margin: 0;
}
.rec-epithet {
  font-style: italic;
  color: var(--ink-soft);
  font-size: 13px;
  margin: 2px 0 6px;
}
.rec-band {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-teal);
  margin: 0;
}
.reveal {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink);
  border-left: 3px solid var(--accent-violet);
  padding: 2px 0 2px 12px;
  margin: 0 0 14px;
}
.reveal.uncharted {
  border-left-color: var(--ink-faint);
  color: var(--ink-soft);
  font-style: italic;
}

.rec-actions {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}
.rec-actions button {
  min-height: 44px;
}
button.primary {
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  border-radius: 9px;
  background: var(--ink);
  color: var(--parch-0);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}
button.primary:hover {
  background: #3b332a;
  transform: translateY(-1px);
}
button.ghost {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 252, 244, 0.6);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  cursor: pointer;
}
button.ghost:hover {
  background: rgba(255, 253, 247, 0.95);
}

.rec-block {
  margin-bottom: 16px;
}
.rec-block p {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.55;
}
.rec-block .culture-name {
  font-weight: 600;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 4px 0 8px;
}
.chip {
  font-family: var(--sans);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 244, 0.7);
  color: var(--ink-soft);
}
ul.tight {
  margin: 4px 0 0;
  padding-left: 18px;
}
ul.tight li {
  font-size: 12.5px;
  line-height: 1.5;
  margin-bottom: 4px;
}
.landmark {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 252, 244, 0.5);
  margin-bottom: 6px;
}
.landmark .lname {
  font-size: 13px;
  font-weight: 600;
}
.landmark .lnote {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.45;
}
.history-item {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  font-size: 12.5px;
  line-height: 1.5;
}
.history-item::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-violet);
  background: var(--parch-1);
}
.tension {
  font-size: 13px;
  line-height: 1.55;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(176, 87, 127, 0.1);
  border: 1px solid rgba(176, 87, 127, 0.28);
}

/* route list */
.route-list {
  display: grid;
  gap: 8px;
}
.route-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
  background: rgba(255, 252, 244, 0.6);
}
.route-card.ok {
  border-left: 3px solid var(--good);
}
.route-card.marginal {
  border-left: 3px solid var(--warn);
}
.route-card.blocked {
  border-left: 3px solid var(--bad);
}
.route-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.route-top .t {
  font-size: 14px;
  font-weight: 600;
}
.route-top .eta {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-soft);
  white-space: nowrap;
}
.route-meta {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 3px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.route-blockers {
  font-size: 11.5px;
  color: var(--bad);
  margin-top: 5px;
  line-height: 1.4;
}
.route-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}
.route-actions button {
  min-height: 44px;
  flex: 1;
}
.route-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ---- journal ------------------------------------------------------------ */
.journal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background: rgba(38, 30, 20, 0.5);
  backdrop-filter: blur(2px);
  padding: 18px;
}
.journal[hidden] {
  display: none;
}
.journal-inner {
  width: min(620px, 100%);
  max-height: min(78vh, 720px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ink);
  border-radius: 14px;
  background: linear-gradient(180deg, #faf4e4, #ece0c2);
  box-shadow: 0 30px 70px -30px rgba(20, 12, 0, 0.7);
  overflow: hidden;
}
.journal-inner header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.journal-inner h2 {
  margin: 0;
  font-size: 19px;
}
.journal-inner header button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 20px;
  cursor: pointer;
}
#journalBody {
  padding: 14px 18px;
  overflow-y: auto;
  flex: 1 1 auto;
}
#journalBody .empty {
  font-style: italic;
  color: var(--ink-faint);
  font-size: 13px;
}
.j-entry {
  border-bottom: 1px dashed var(--line);
  padding: 9px 0;
}
.j-entry:last-child {
  border-bottom: 0;
}
.j-entry .jm {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.j-entry .jt {
  font-size: 14px;
  font-weight: 600;
  margin: 1px 0 2px;
}
.j-entry .jb {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.j-entry.encounter .jt {
  color: var(--accent-rose);
}
.j-entry.discovery .jt {
  color: var(--accent-teal);
}
.journal-inner footer {
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
}
.journal-inner footer button {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 252, 244, 0.7);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 12px;
  cursor: pointer;
}
.journal-inner footer button:hover {
  background: #fffdf6;
}

:focus-visible {
  outline: 2px solid var(--accent-teal);
  outline-offset: 2px;
}

/* ---- responsive --------------------------------------------------------- */
@media (max-width: 960px) {
  :root {
    --panel-w: 340px;
  }
  .legend {
    display: none;
  }
}

@media (max-width: 860px) {
  #panelToggle {
    display: inline-flex;
  }
  #topbar {
    padding: 8px 10px;
    gap: 8px;
  }
  .brand h1 {
    font-size: 16px;
  }
  .brand .sub {
    display: none;
  }
  .clock {
    border-right: 0;
    padding-right: 0;
  }
  .clock-wind {
    display: none;
  }
  .speeds button {
    min-width: 38px;
    min-height: 44px;
  }
  .icon-btn {
    min-width: 44px;
    min-height: 44px;
  }

  main {
    display: block;
  }
  #chartWrap {
    position: absolute;
    inset: 0;
  }
  #panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    flex-basis: auto;
    max-height: 68dvh;
    max-height: 68vh;
    border-left: 0;
    border-top: 1px solid var(--ink);
    border-radius: 16px 16px 0 0;
    transform: translateY(105%);
    transition: transform 0.28s cubic-bezier(0.22, 0.8, 0.3, 1);
    padding-bottom: max(28px, env(safe-area-inset-bottom));
    box-shadow: 0 -18px 40px -20px rgba(30, 20, 5, 0.6);
  }
  #panel.open {
    transform: translateY(0);
  }
  .hint {
    bottom: 12px;
    font-size: 12px;
  }
  .scalebar {
    display: none;
  }
}

@media (max-width: 520px) {
  #topbar {
    flex-wrap: wrap;
    padding: 6px 10px;
    gap: 6px;
  }
  .brand {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
  }
  .brand .mark {
    width: 30px;
    height: 30px;
  }
  .brand h1 {
    font-size: 15px;
  }
  .controls {
    flex: 1 1 100%;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px;
  }
  .speeds button[data-speed="16"] {
    display: none;
  }
  .clock-season {
    font-size: 11px;
  }
  .clock-time {
    font-size: 10px;
  }
  .clock {
    padding-right: 6px;
  }
  .hint {
    width: calc(100% - 20px);
    padding-right: 54px;
  }
  .toasts {
    width: calc(100% - 20px);
  }
  #panel {
    max-height: 74dvh;
    max-height: 74vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  #windArrow,
  #panel,
  .toast,
  .skip {
    transition: none;
    animation: none;
  }
}
