:root {
  color-scheme: dark;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  background: #131615;
  color: #e6ebe8;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 24px 16px;
}
main {
  max-width: 820px;
  margin: auto;
}
header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid #363d38;
}
.brand {
  font-size: 13px;
  color: #a4b3aa;
}
h1 {
  font-size: 32px;
  margin: 10px 0;
}
p {
  line-height: 1.5;
  margin: 0;
  color: #acb9b1;
}
.clock {
  min-width: 104px;
  text-align: right;
}
.clock span {
  display: block;
  color: #acb9b1;
  font-size: 12px;
}
.clock strong {
  font-size: 36px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.info {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
  font-size: 13px;
  color: #b9c7bd;
}
#messages {
  height: clamp(230px, 49vh, 580px);
  overflow-y: auto;
  overflow-wrap: anywhere;
  border: 1px solid #363d38;
  background: #191e1b;
  border-radius: 8px;
  padding: 16px;
}
.message {
  padding: 12px 0;
  border-bottom: 1px solid #2d352f;
}
.message:last-child {
  border: 0;
}
.meta {
  font-size: 12px;
  color: #a4b3aa;
  margin-bottom: 6px;
}
.own .meta {
  color: #bad8b6;
}
.body {
  white-space: pre-wrap;
  line-height: 1.5;
}
#notice {
  font-size: 13px;
  min-height: 40px;
  padding: 10px 0;
}
form {
  display: flex;
  gap: 10px;
}
textarea {
  resize: vertical;
  flex: 1;
  min-width: 0;
  border: 1px solid #4c5a50;
  border-radius: 6px;
  background: #191e1b;
  color: #fff;
  padding: 12px;
  font: inherit;
}
button {
  align-self: stretch;
  background: #bed5b5;
  color: #142019;
  border: 0;
  border-radius: 6px;
  padding: 0 20px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
textarea:focus,
button:focus-visible {
  outline: 2px solid #bdd6b6;
  outline-offset: 3px;
}
footer {
  font-size: 12px;
  color: #929f96;
  margin: 18px 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
@media (max-width: 520px) {
  body {
    padding: 12px;
  }
  h1 {
    font-size: 26px;
  }
  header {
    padding: 12px 0;
  }
  .clock strong {
    font-size: 30px;
  }
  form {
    flex-direction: column;
  }
  button {
    padding: 12px;
  }
  .info {
    flex-direction: column;
  }
  #messages {
    height: 43vh;
  }
}

[hidden] {
  display: none !important;
}
#role-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 20px 0;
}
figure {
  margin: 0;
}
figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 315/442;
  object-fit: contain;
}
figcaption {
  font-size: 13px;
  color: #acb9b1;
  text-align: center;
  padding: 8px;
}
#own-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
}
#own-card img {
  width: 78px;
  height: 110px;
  object-fit: contain;
}
#own-card p {
  font-size: 14px;
}
@media (max-width: 520px) {
  #role-gallery {
    gap: 6px;
  }
  figcaption {
    font-size: 11px;
    padding: 5px 0;
  }
}
