html,
body {
  margin: 0;
  background: #031823;
  color: #ddf8ee;
  font-family: system-ui, sans-serif;
}
.surface {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 max(16px, 4vw);
  background: #051924;
  border-bottom: 1px solid #24494d;
}
.surface button,
dialog button {
  cursor: pointer;
  color: inherit;
  background: transparent;
  border: 1px solid #48666b;
  border-radius: 5px;
  padding: 5px 12px;
}
#game {
  position: relative;
  display: flex;
  flex-direction: column;
  height: calc(100dvh - 48px);
  min-height: 360px;
  max-width: 1600px;
  margin: auto;
}
dialog {
  background: #092c39;
  color: #effbf6;
  border: 1px solid #55757b;
  max-width: 32rem;
  border-radius: 12px;
  padding: 24px;
}
dialog::backdrop {
  background: #001018bb;
}
dialog p {
  margin: 1em 0;
}
.live {
  width: min(92vw, 440px);
  max-height: 85dvh;
  overflow: auto;
  margin: auto;
  background: linear-gradient(160deg, #103b49, #041f2f);
  border-color: #477783;
  box-shadow: 0 18px 70px #0009;
}
.live h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff0ad;
  margin-right: 2rem;
}
.live h3,
.live summary {
  font-weight: 700;
  margin: 1rem 0;
}
.live form {
  display: grid;
  gap: 0.6rem;
  margin: 1rem 0;
}
.live label {
  display: grid;
  gap: 0.2rem;
}
.live input {
  background: #061d2a;
  color: #fff;
  border: 1px solid #638997;
  border-radius: 5px;
  padding: 0.5rem;
}
.live input[type="checkbox"] {
  width: 1rem;
}
.live li {
  list-style-position: inside;
  padding: 0.4rem 0;
  border-bottom: 1px solid #31505a;
}
.live li b,
.live time {
  float: right;
  color: #90f1d6;
}
.live button {
  background: #194555;
  margin: 0.15rem;
}
.live .close {
  float: right;
  font-size: 1.3rem;
}
.live .notice {
  overflow-wrap: anywhere;
  color: #ffe3ab;
}
.surface a {
  color: #c0e4df;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.field-guide {
  max-width: 760px;
  margin: auto;
  padding: 4rem max(1.25rem, 3vw);
  color: #c2dbdc;
  line-height: 1.65;
}
.field-guide h1,
.field-guide h2 {
  color: #e7f9ec;
  line-height: 1.13;
  font-weight: 750;
}
.field-guide h1 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}
.field-guide h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
}
.field-guide p {
  margin: 1rem 0;
}
.field-guide details {
  border-bottom: 1px solid #26505b;
  padding: 1rem 0;
}
.field-guide summary {
  cursor: pointer;
  color: #ebefcd;
  font-weight: 650;
}
.return {
  display: inline-block;
  margin-top: 2rem;
  color: #9cdbd1;
}
#chatlog {
  white-space: pre-line;
  max-height: 12rem;
  overflow: auto;
  font-size: 0.9em;
  color: #b7e7dc;
}
.field-guide footer {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: #a3b8bf;
}
.field-guide footer a:hover {
  text-decoration: underline;
}
