html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #1d3263;
  touch-action: none;
  user-select: none;
}

#game {
  display: block;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(10, 20, 40, 0.35));
}

#bubbles {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.bubble {
  position: absolute;
  transform: translate(-50%, -100%);
  padding: 8px 10px;
  background: #fff8e7;
  color: #3a2414;
  border: 3px solid #3a2414;
  font: 11px/1.6 'Press Start 2P', monospace;
  width: max-content;
  max-width: 260px;
  text-align: center;
  overflow-wrap: anywhere;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 0.2s;
}

.bubble.show {
  opacity: 1;
}

.bubble::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #3a2414;
}

#prompt {
  position: fixed;
  left: 50%;
  bottom: 76px;
  transform: translateX(-50%);
  padding: 10px 14px;
  background: rgba(20, 24, 40, 0.85);
  color: #e8f4ff;
  border: 3px solid #7cf05a;
  font: 10px/1.4 'Press Start 2P', monospace;
  white-space: pre;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}

#prompt.show {
  opacity: 1;
}

/* Top left: how much sprint the player has left, a bare bar. */
#stamina {
  position: fixed;
  top: 16px;
  left: 16px;
  pointer-events: none;
  transition: opacity 0.4s;
}

#stamina i {
  position: relative;
  display: block;
  width: 120px;
  height: 10px;
  background: rgba(26, 18, 10, 0.75);
  box-shadow: 0 0 0 2px rgba(26, 18, 10, 0.5);
}

#stamina i::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--stamina, 1) * 100%);
  background: linear-gradient(#fff0a0, #f2c230);
}

#stamina.full {
  opacity: 0.55;
}

#stamina.winded i::after {
  background: linear-gradient(#ff9a6a, #d6421a);
}

body.title #stamina {
  display: none;
}

#toggles {
  position: fixed;
  top: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.title #toggles {
  display: none;
}

.toggle[hidden] {
  display: none;
}

#map.bump,
#journal-btn.bump {
  animation: bump 0.35s ease-out 2;
}

/* Top right, level with the first menu button and just left of the column (a 44px button and a gap). */
#purse {
  position: fixed;
  top: 14px;
  right: 66px;
  box-sizing: border-box;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 8px;
  background: rgba(40, 24, 12, 0.8);
  border: 3px solid #8f9098;
  font: 14px/1 'Press Start 2P', monospace;
  color: #e8eaf0;
  pointer-events: none;
}

#purse[hidden] {
  display: none;
}

.coins {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  vertical-align: middle;
}

.coins b {
  font-weight: normal;
  margin-right: 8px;
}

.coins b:last-child {
  margin-right: 0;
}

.coins.small {
  gap: 3px;
}

.coins.small b {
  margin-right: 5px;
}

#clock {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 9px;
  background: rgba(40, 24, 12, 0.8);
  border: 3px solid #e1a03c;
  font: 11px/1 'Press Start 2P', monospace;
  color: #f6e7c1;
  white-space: pre;
  pointer-events: none;
}

#clock img {
  width: 22px;
  height: 22px;
  image-rendering: pixelated;
}

body.title #clock {
  display: none;
}

#purse img,
.coins img,
#trade img,
#fishlog img {
  image-rendering: pixelated;
}

.panel.log-panel {
  width: min(640px, calc(100vw - 48px));
  max-height: calc(100vh - 80px);
  align-items: stretch;
}

#fishlog-close,
#trade-close {
  align-self: center;
}

#fishlog-sum,
#trade-purse {
  margin: -6px 0 0;
  font-size: 8px;
  color: #c8b48a;
  text-align: center;
}

#fishlog-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0 4px 0 0;
  list-style: none;
  overflow-y: auto;
}

.fish {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px;
  background: rgba(20, 24, 40, 0.45);
  border: 2px solid rgba(225, 160, 60, 0.3);
  text-align: center;
}

.fish.got {
  border-color: rgba(225, 160, 60, 0.75);
}

.fish img {
  height: 30px;
  object-fit: contain;
}

.fish h3 {
  margin: 0;
  font: 9px/1.4 'Press Start 2P', monospace;
  color: #ffd36b;
}

.fish p {
  margin: 0;
  font-size: 7px;
  line-height: 1.6;
  color: #c8b48a;
}

.fish p.tally {
  color: #f6e7c1;
}

.panel.trade-panel {
  width: min(760px, calc(100vw - 48px));
  max-height: calc(100vh - 80px);
  align-items: stretch;
}

#trade-purse {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #e8eaf0;
}

.trade-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  min-height: 0;
  overflow-y: auto;
}

@media (max-width: 640px) {
  .trade-cols { grid-template-columns: 1fr; }
}

.trade-cols h3 {
  margin: 0 0 8px;
  font: 10px/1.4 'Press Start 2P', monospace;
  color: #ffd36b;
}

.trade-cols ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trade-cols li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: rgba(20, 24, 40, 0.45);
  border: 2px solid rgba(225, 160, 60, 0.3);
  font-size: 8px;
}

.trade-cols li.none {
  color: #c8b48a;
  line-height: 1.6;
}

.trade-cols img {
  width: 30px;
  flex: none;
}

.trade-cols .what {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  line-height: 1.4;
}

.trade-cols .what small {
  font-size: 7px;
  color: #c8b48a;
}

.trade-cols .price {
  color: #e8eaf0;
  white-space: nowrap;
}

.panel .trade-cols button {
  margin: 0;
  padding: 6px 8px;
  font-size: 8px;
}

.panel .trade-cols button:disabled {
  background: #6a5a44;
  color: #3a2414;
  cursor: not-allowed;
}

#tinker img {
  image-rendering: pixelated;
}

#tinker-help,
#tinker-say {
  margin: -6px 0 0;
  font-size: 8px;
  line-height: 1.6;
  color: #c8b48a;
  text-align: center;
}

#tinker-say {
  min-height: 2.6em;
  margin: 0;
  color: #f6e7c1;
}

#tinker-slots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#tinker-slots li {
  display: flex;
  width: 54px;
  height: 54px;
  background: rgba(20, 24, 40, 0.45);
  border: 2px solid rgba(225, 160, 60, 0.75);
}

#tinker-slots li.empty {
  border-style: dashed;
  border-color: rgba(225, 160, 60, 0.3);
}

.panel #tinker-slots button {
  flex: 1;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.tinker-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.panel .tinker-actions button {
  margin: 0;
}

.panel .tinker-actions button:disabled {
  background: #6a5a44;
  color: #3a2414;
  cursor: not-allowed;
}

#tinker-close {
  align-self: center;
}

@media (prefers-reduced-motion: reduce) {
  #map.bump,
  #journal-btn.bump { animation: none; }
}

#toast {
  position: fixed;
  top: 84px;
  left: 50%;
  transform: translate(-50%, -12px);
  padding: 10px 16px;
  background: rgba(40, 24, 12, 0.92);
  color: #f6e7c1;
  border: 3px solid #e1a03c;
  font: 11px/1.5 'Press Start 2P', monospace;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
}

#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

#toast small {
  display: block;
  font-size: 8px;
  color: #ffd36b;
}

body.title #toast {
  display: none;
}

.journal-panel {
  width: min(560px, calc(100vw - 48px));
  max-height: calc(100vh - 80px);
  align-items: stretch;
}

#journal-when {
  margin: -6px 0 0;
  font-size: 8px;
  color: #c8b48a;
  text-align: center;
}

#journal-list {
  margin: 0;
  padding: 0 4px 0 0;
  list-style: none;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#journal-list ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quest {
  padding: 10px 12px;
  background: rgba(20, 24, 40, 0.45);
  border: 2px solid rgba(225, 160, 60, 0.45);
}

.quest h3 {
  margin: 0;
  font: 10px/1.4 'Press Start 2P', monospace;
  color: #ffd36b;
}

.quest.empty {
  color: #c8b48a;
  font-size: 9px;
  line-height: 1.6;
}

.quest.finished h3 {
  color: #9ab08a;
}

.step {
  position: relative;
  padding-left: 18px;
  font-size: 9px;
  line-height: 1.6;
}

.step::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 8px;
  height: 8px;
  border: 2px solid #e1a03c;
}

.step.done {
  color: rgba(246, 231, 193, 0.55);
  text-decoration: line-through;
}

.step.done::before {
  background: #7cf05a;
  border-color: #7cf05a;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.panel button.continue {
  margin-top: 0;
  background: #7cf05a;
}

.panel button.continue:hover {
  background: #b6ff98;
}

.map-panel {
  position: relative;
  padding: 18px 22px;
  background: #4a2f18;
}

#worldmap-canvas {
  display: block;
  border: 4px solid #3a2414;
  box-shadow: 0 0 0 3px #c89a3a;
  image-rendering: auto;
}

#worldmap-close:focus-visible {
  outline: 3px solid #7cf05a;
  outline-offset: 2px;
}

.toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: rgba(20, 24, 40, 0.6);
  border: 3px solid rgba(232, 244, 255, 0.35);
  cursor: pointer;
}

.toggle img {
  image-rendering: pixelated;
}

/* The shortcut key, tagged on the top left corner. */
.toggle[data-key]::before {
  content: attr(data-key);
  position: absolute;
  top: -7px;
  left: -7px;
  padding: 2px 3px;
  font: 6px/1 'Press Start 2P', monospace;
  color: #3a2414;
  background: #ffd36b;
  border: 2px solid #3a2414;
  pointer-events: none;
}

.toggle:hover {
  border-color: rgba(232, 244, 255, 0.7);
}

.toggle[aria-pressed='false'] img {
  opacity: 0.45;
}

.toggle:focus-visible {
  outline: 3px solid #7cf05a;
  outline-offset: 2px;
}

.bubble.player {
  background: #e8f4ff;
  border-color: #1d3263;
  color: #1d3263;
}

.bubble.player::after {
  border-top-color: #1d3263;
}

/* Centred, unless that would run it into the hotbar at the bottom left (14px + 6 slots + gaps, a gap, half the bar). */
#chat {
  position: fixed;
  left: max(50%, 562px);
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 12px;
  background: rgba(20, 24, 40, 0.55);
  border: 3px solid rgba(232, 244, 255, 0.35);
  font: 10px/1 'Press Start 2P', monospace;
  color: #e8f4ff;
  transition: background 0.2s, border-color 0.2s;
}

#chat:focus-within {
  background: rgba(20, 24, 40, 0.9);
  border-color: #7cf05a;
}

#chat label {
  color: #7cf05a;
}

#chat input {
  width: min(320px, calc(100vw - 110px));
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: inherit;
  font: inherit;
  user-select: text;
}

#chat input::placeholder {
  color: rgba(232, 244, 255, 0.5);
}

/* Bottom left: six slots for what F uses. */
#hotbar {
  position: fixed;
  left: 14px;
  bottom: 16px;
  --slot: 52px;
}

#hotbar[hidden] {
  display: none;
}

/* While the bag is open the hotbar sits above it, to drag things onto. */
body.bag-open #hotbar {
  z-index: 1;
}

#hotbar-slots {
  display: flex;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#hotbar-slots li,
.bag-grid li {
  position: relative;
  box-sizing: border-box;
  width: var(--slot, 52px);
  height: var(--slot, 52px);
  background: rgba(40, 24, 12, 0.8);
  border: 3px solid #e1a03c;
}

#hotbar-slots li.empty {
  background: rgba(40, 24, 12, 0.45);
  border-color: rgba(138, 101, 52, 0.7);
}

/* The slot F works from is lit and wears a little F. */
#hotbar-slots li.primary {
  border-color: #fff0a0;
  background: rgba(92, 56, 18, 0.92);
  box-shadow: 0 0 0 2px #3a2414, 0 0 10px 2px rgba(255, 211, 107, 0.55);
}

#hotbar-slots li.primary::after {
  content: 'F';
  position: absolute;
  top: -10px;
  right: -9px;
  z-index: 2;
  padding: 3px 4px;
  font: 8px/1 'Press Start 2P', monospace;
  color: #3a2414;
  background: #ffd36b;
  border: 2px solid #3a2414;
  pointer-events: none;
}

#hotbar-slots li.primary.empty::after {
  content: none;
}

#hotbar-slots li > b,
#bag .bag-grid button b {
  position: absolute;
  top: 2px;
  left: 3px;
  z-index: 1;
  font: 7px/1 'Press Start 2P', monospace;
  color: #c99a4a;
  pointer-events: none;
}

#hotbar-slots button,
#bag .bag-grid button {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

#hotbar-slots button:hover,
#bag .bag-grid button:hover {
  background: rgba(255, 211, 107, 0.15);
}

#hotbar-slots button:focus-visible,
#bag .bag-grid button:focus-visible {
  outline: 2px solid #ffd36b;
  outline-offset: 2px;
}

#hotbar img,
.bag-grid img,
#bag-hero {
  image-rendering: pixelated;
}

#hotbar-slots span,
.bag-grid span {
  position: absolute;
  right: 2px;
  bottom: 2px;
  font: 9px/1 'Press Start 2P', monospace;
  color: #f6e7c1;
  text-shadow: 2px 2px 0 #3a2414;
}

#hotbar .bump {
  animation: bump 0.35s ease-out;
}

/* What's left of the torch, along the bottom of its slot. */
#hotbar .burn {
  position: absolute;
  left: 3px;
  bottom: 3px;
  width: 26px;
  height: 4px;
  background: #3a2414;
  pointer-events: none;
}

#hotbar .burn::after {
  content: '';
  position: absolute;
  inset: 1px auto 1px 1px;
  width: calc(var(--burn, 1) * 24px);
  background: #ffb040;
}

#hotbar .burn.lit::after {
  background: #ffe27a;
}

/* The bag button: the backpack, and how full it is in a tag at the bottom right. */
#bag-btn span {
  position: absolute;
  right: -7px;
  bottom: -7px;
  padding: 2px 3px;
  font: 6px/1 'Press Start 2P', monospace;
  color: #f6e7c1;
  background: #3a2414;
  border: 2px solid rgba(232, 244, 255, 0.45);
  pointer-events: none;
}

#bag-btn.full span {
  color: #ff9a6a;
}

#bag-btn.bump {
  animation: bump 0.35s ease-out 2;
}

@keyframes bump {
  40% { transform: scale(1.2); border-color: #ffd36b; }
}

@media (prefers-reduced-motion: reduce) {
  #hotbar .bump,
  #bag-btn.bump { animation: none; }
}

@media (max-width: 760px) {
  #chat { left: 50%; }
  #hotbar { --slot: 42px; bottom: 66px; }
  #hotbar-slots { gap: 3px; }
  #hotbar img { transform: scale(0.8); }
}

/* Below the stamina bar: how long before the cold or heat drives the player back. */
#exposure {
  position: fixed;
  top: 38px;
  left: 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 7px 9px 8px;
  background: rgba(20, 24, 40, 0.85);
  border: 3px solid #9ad4ff;
  font: 8px/1 'Press Start 2P', monospace;
  color: #e8f4ff;
  pointer-events: none;
}

#exposure[hidden] {
  display: none;
}

#exposure i {
  position: relative;
  display: block;
  width: 120px;
  height: 10px;
  background: #0e1428;
}

#exposure i::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--exposure, 0) * 100%);
  background: linear-gradient(#e6f6ff, #7ab8e0);
}

body.hot #exposure {
  background: rgba(40, 16, 8, 0.85);
  border-color: #ff8a2a;
}

body.hot #exposure i::after {
  background: linear-gradient(#ffd36b, #e0542a);
}

body.cold .vignette {
  box-shadow: inset 0 0 calc(var(--exposure) * 200px) calc(var(--exposure) * 50px) rgba(200, 230, 255, 0.8);
}

body.hot .vignette {
  box-shadow: inset 0 0 calc(var(--exposure) * 200px) calc(var(--exposure) * 50px) rgba(255, 120, 40, 0.6);
}

/* The bag: what's worn, the tools, and the backpack grouped by kind. */
.bag-panel {
  width: min(880px, calc(100vw - 48px));
  max-height: calc(100vh - 60px);
  box-sizing: border-box;
  overflow-y: auto;
  align-items: stretch;
}

.bag-cols {
  display: grid;
  grid-template-columns: 190px 1fr 1.5fr;
  gap: 16px;
}

.bag-cols section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  background: rgba(20, 12, 6, 0.45);
  border: 2px solid rgba(225, 160, 60, 0.35);
}

.bag-cols h3 {
  margin: 0;
  font: 10px/1.4 'Press Start 2P', monospace;
  color: #ffd36b;
}

#bag-room {
  color: #c8b48a;
}

#bag-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#bag-items h4,
.bag-cols section > h4 {
  margin: 4px 0 0;
  font: 8px/1 'Press Start 2P', monospace;
  color: #c8b48a;
}

#bag-hero {
  align-self: center;
  width: 64px;
  height: 96px;
}

.bag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
  --slot: 50px;
}

.bag-grid li.none,
#bag-items .none {
  width: auto;
  height: auto;
  margin: 0;
  background: none;
  border: 0;
  font-size: 8px;
  color: #a8946c;
}

.bag-grid li:has(button[aria-pressed='true']) {
  border-color: #fff0a0;
  box-shadow: 0 0 0 2px #3a2414, 0 0 10px 2px rgba(255, 211, 107, 0.55);
}

.bag-grid li.worn {
  border-color: #7cf05a;
}

.bag-grid li.locked {
  border-style: dashed;
  border-color: rgba(225, 160, 60, 0.45);
}

.bag-grid li.locked img {
  filter: grayscale(1) brightness(0.6);
  opacity: 0.45;
}

.bag-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 12px;
  background: rgba(20, 24, 40, 0.5);
}

#bag-what {
  flex: 1;
  margin: 0;
  font-size: 9px;
  line-height: 1.6;
}

#bag-actions {
  display: flex;
  gap: 8px;
}

#bag-actions button {
  margin: 0;
  padding: 8px 12px;
}

.bag-panel > #bag-close {
  align-self: center;
}

@media (max-width: 760px) {
  .bag-cols { grid-template-columns: 1fr; }
  .bag-detail { flex-direction: column; align-items: stretch; }
}

body.title #hotbar,
body.title #exposure,
body.title #purse,
body.title #chat,
body.title #prompt {
  display: none;
}

.overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(14, 20, 38, 0.55);
  backdrop-filter: blur(2px);
  font: 10px/1.4 'Press Start 2P', monospace;
  color: #f6e7c1;
}

.overlay[hidden] {
  display: none;
}

.panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 32px;
  background: rgba(40, 24, 12, 0.9);
  border: 3px solid #e1a03c;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.35);
}

#start {
  background: none;
  backdrop-filter: none;
}

#start h1 {
  margin: 0 0 6px;
  font: 22px/1.2 'Press Start 2P', monospace;
  color: #ffd36b;
  text-shadow: 3px 3px 0 #3a2414;
  text-align: center;
}

#start h1 small {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: #f6e7c1;
}

.panel h2 {
  margin: 0;
  font: 14px/1.4 'Press Start 2P', monospace;
  color: #ffd36b;
  text-align: center;
  text-shadow: 2px 2px 0 #3a2414;
}

.dragon-preview {
  image-rendering: pixelated;
}

.heroes {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
  border: 0;
}

.heroes legend {
  width: 100%;
  margin-bottom: 12px;
  text-align: center;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(20, 24, 40, 0.5);
  border: 3px solid rgba(246, 231, 193, 0.25);
  color: rgba(246, 231, 193, 0.6);
  cursor: pointer;
}

.hero input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hero canvas {
  width: 64px;
  height: 96px;
  image-rendering: pixelated;
}

.hero:has(input:checked) {
  border-color: #7cf05a;
  background: rgba(20, 24, 40, 0.85);
  color: #e8f4ff;
}

.hero:has(input:focus-visible),
.name-input:focus-visible,
.panel button:focus-visible {
  outline: 3px solid #7cf05a;
  outline-offset: 2px;
}

.name-label {
  margin-top: 4px;
}

.name-input {
  width: 200px;
  padding: 8px 10px;
  background: rgba(20, 24, 40, 0.85);
  border: 3px solid rgba(246, 231, 193, 0.35);
  color: #e8f4ff;
  font: inherit;
  text-align: center;
  outline: none;
  user-select: text;
}

.name-input::placeholder {
  color: rgba(232, 244, 255, 0.45);
}

.panel button {
  margin-top: 6px;
  padding: 10px 22px;
  background: #e1a03c;
  border: 3px solid #3a2414;
  color: #3a2414;
  font: inherit;
  cursor: pointer;
}

.panel button:hover {
  background: #ffd36b;
}

/* The sailor's note: runes inked on a scrap of parchment. */
.note-panel {
  width: min(520px, calc(100vw - 48px));
  box-sizing: border-box;
  text-align: center;
}

.note-panel p {
  margin: 0;
  line-height: 1.7;
}

#note-runes {
  max-width: 100%;
  padding: 10px 12px;
  background: #e8d7a8;
  border: 3px solid #8a5a3a;
  image-rendering: pixelated;
}

.note-sign {
  font-size: 8px;
  color: #c8b48a;
}

#worldmap-canvas.fly {
  cursor: pointer;
}

/* Bottom right of the panel, below the map and level with the close button. */
#worldmap-tip {
  position: absolute;
  right: 20px;
  bottom: 18px;
  margin: 0;
  font-size: 8px;
  color: #ffffff;
  text-align: right;
  white-space: pre;
  line-height: 2;
  text-shadow: 2px 2px 0 #0e1428;
  pointer-events: none;
}
