:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  background: #0f161b;
  color: #dfe8e9;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  padding: 23px 5vw;
  border-bottom: 1px solid #2c3c44;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  letter-spacing: 0.07em;
}
a {
  color: #d3e0e3;
  text-decoration: none;
}
header span {
  color: #82969e;
}
main {
  max-width: 1000px;
  margin: 56px auto;
  padding: 0 24px;
}
.eyebrow {
  color: #88b9c5;
  font-size: 11px;
  letter-spacing: 0.2em;
}
h1 {
  font-weight: 550;
  font-size: 38px;
  letter-spacing: -0.03em;
  margin: 10px 0;
}
h2 {
  font-size: 18px;
  font-weight: 550;
  margin: 0 0 10px;
}
#identity,
.muted,
footer {
  color: #91a5ae;
  font-size: 13px;
  line-height: 1.6;
}
.controls {
  margin: 35px 0 18px;
  border: 1px solid #3c515b;
  border-left: 3px solid #87b9c6;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
button {
  background: #c4d8d8;
  color: #11232b;
  border: 1px solid transparent;
  padding: 11px 18px;
  font: 600 13px system-ui;
  cursor: pointer;
  white-space: nowrap;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid #f1c785;
  outline-offset: 4px;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 34px 0 18px;
}
.toolbar button,
.end {
  background: transparent;
  color: #c3d4da;
  border: 1px solid #42545d;
}
.match {
  padding: 22px 0;
  border-top: 1px solid #33464f;
}
.match-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.players {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}
.player {
  background: #1b2b34;
  padding: 8px 12px;
  font-size: 13px;
}
.ember {
  border-left: 2px solid #cb935f;
}
.aegis {
  border-left: 2px solid #78bdce;
}
#status {
  font-size: 14px;
  color: #bdcfd4;
  min-height: 24px;
}
footer {
  border-top: 1px solid #2c3c44;
  margin-top: 38px;
  padding-top: 20px;
}
@media (max-width: 600px) {
  main {
    margin-top: 30px;
  }
  .controls {
    align-items: flex-start;
    flex-direction: column;
  }
  header span {
    display: block;
    margin-top: 5px;
  }
  h1 {
    font-size: 32px;
  }
}
main {
  max-width: 760px;
}
h1 {
  font-size: clamp(32px, 5vw, 48px);
  max-width: 620px;
}
.intro {
  color: #b1c2ca;
  line-height: 1.7;
  max-width: 590px;
}
.panel {
  margin: 32px 0;
  padding: 26px;
  border: 1px solid #3c515b;
  border-left: 3px solid #87b9c6;
  background: #142028;
}
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}
.tabs button {
  background: transparent;
  color: #a7bcc6;
  border-color: #3c515b;
}
.tabs [aria-pressed="true"] {
  background: #c4d8d8;
  color: #11232b;
}
label {
  display: block;
  margin: 18px 0 8px;
  font-size: 13px;
}
input {
  box-sizing: border-box;
  width: 100%;
  padding: 13px;
  background: #0f161b;
  color: #e3eded;
  border: 1px solid #546974;
  font: 16px system-ui;
}
input:focus-visible {
  outline: 2px solid #a3c4d0;
}
#submit {
  margin-top: 22px;
  width: 100%;
}
.link-button {
  background: transparent;
  color: #b8d4df;
  padding: 12px 0;
  margin-right: 18px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.button {
  display: inline-block;
  background: #c4d8d8;
  color: #11232b;
  padding: 14px 22px;
  font-weight: 600;
}
.actions {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 20px;
}
#message {
  min-height: 25px;
  line-height: 1.6;
  color: #d3c49c;
}
[hidden] {
  display: none !important;
}
footer p {
  margin-top: 14px;
}
@media (max-width: 500px) {
  header {
    font-size: 10px;
    gap: 12px;
  }
  .panel {
    padding: 20px;
  }
  .tabs button {
    flex: 1;
  }
}
