:root {
  font-family: Inter,"Segoe UI","Microsoft YaHei",sans-serif;
  color: #152b3c;
  background: #f3f8fc;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,input,textarea,select {
  font: inherit;
}
button {
  border: 0;
  border-radius: 8px;
  background: #b9ddfa;
  color: #173f62;
  padding: 11px 17px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.3;
}
button:hover {
  background: #a5d2f5;
}
button:disabled {
  opacity: .5;
  cursor: wait;
}
button.secondary {
  background: #edf3f4;
  color: #234658;
  border: 1px solid #d6e2e6;
}
button.text-button {
  background: transparent;
  color: #526a78;
  padding: 8px 0;
  font-size: 12px;
}
button[hidden] {
  display: none;
}
.topbar {
  height: 80px;
  background: #fff;
  border-bottom: 1px solid #e1e8ec;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0 max(28px,calc((100vw - 1200px)/2));
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 750;
  white-space: nowrap;
}
.brand-icon {
  display: inline-grid;
  place-items: center;
  width: 37px;
  height: 37px;
  background: #b9ddfa;
  border-radius: 10px;
  color: #173f62;
  font-size: 14px;
  letter-spacing: 1px;
}
.topbar nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 14px;
  color: #536873;
}
.topbar nav a:hover {
  color: #23649a;
}
.badge {
  display: inline-block;
  border: 1px solid #dce5e9;
  background: #f5f8fa;
  color: #59717e;
  font-size: 11px;
  letter-spacing: .04em;
  padding: 6px 10px;
  border-radius: 30px;
  white-space: nowrap;
}
.badge.green {
  background: #eaf5ff;
  color: #23649a;
  border-color: #cfe4f6;
}
main {
  max-width: 1200px;
  margin: auto;
  padding: 48px 28px 25px;
}
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  margin-bottom: 34px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: #23649a;
  font-weight: 750;
  margin: 0 0 15px;
}
h1 {
  font-size: 34px;
  letter-spacing: -1px;
  margin: 0 0 13px;
  line-height: 1.35;
}
h2 {
  font-size: 19px;
  margin: 0 0 18px;
}
h3 {
  font-size: 23px;
  line-height: 1.5;
  margin: 28px 0 18px;
}
.muted {
  color: #6c7f8a;
  font-size: 14px;
  line-height: 1.8;
}
.small {
  font-size: 12px;
}
.tiny-label {
  display: block;
  font-size: 11px;
  color: #768995;
  margin-bottom: 10px;
}
.session-card {
  background: white;
  border: 1px solid #e1e7eb;
  border-radius: 12px;
  padding: 20px 23px;
  min-width: 275px;
  box-shadow: 0 8px 30px #16334605;
}
.session-card strong {
  font-size: 14px;
  display: block;
  overflow-wrap: anywhere;
}
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}
.panel {
  padding: 30px;
  background: #fff;
  border: 1px solid #dfe7eb;
  border-radius: 14px;
  box-shadow: 0 4px 16px #18394b03;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #edf1f3;
  padding-bottom: 18px;
  margin-bottom: 22px;
}
.panel-heading h2 {
  margin: 0;
}
.prose {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.9;
  color: #405867;
  font-size: 15px;
  min-height: 200px;
}
label {
  display: block;
  color: #4e6471;
  font-size: 12px;
  font-weight: 650;
  margin: 20px 0 8px;
}
input,textarea,select {
  width: 100%;
  border: 1px solid #d5e0e5;
  background: #fbfcfd;
  border-radius: 7px;
  padding: 12px;
  color: #213c4e;
  outline: none;
}
input:focus,textarea:focus {
  border-color: #4c94cd;
  box-shadow: 0 0 0 3px #4c94cd24;
}
textarea {
  resize: vertical;
  line-height: 1.7;
}
.notice {
  margin: 0 0 22px;
  background: #eaf5ff;
  border: 1px solid #cfe4f6;
  border-radius: 8px;
  padding: 14px 18px;
  color: #23649a;
  font-size: 13px;
}
.notice.error {
  background: #fff1ed;
  border-color: #f0d8ce;
  color: #93523b;
}
.game-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
  padding: 38px;
}
.game-panel button {
  margin-top: 18px;
}
.game-console {
  background: #173f62;
  color: #e7f3ff;
  padding: 27px;
  border-radius: 10px;
  min-height: 200px;
  font-size: 13px;
}
.game-console pre {
  white-space: pre-wrap;
  word-break: break-word;
  color: #b9d8f2;
  font: 13px/1.9 Consolas,monospace;
  margin-top: 25px;
}
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8ac7f5;
  margin-right: 10px;
}
footer {
  font-size: 11px;
  color: #91a0aa;
  display: flex;
  justify-content: space-between;
  margin-top: 35px;
  padding-top: 20px;
  border-top: 1px solid #dfe7eb;
}
@media(max-width:800px) {
  .topbar {
    padding: 0 18px;
    height: auto;
    min-height: 72px;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 15px;
    padding-bottom: 15px;
  }
  .topbar nav {
    order: 3;
    width: 100%;
    margin: 0;
    gap: 25px;
  }
  .topbar>.badge {
    margin-left: auto;
  }
  .hero {
    display: block;
  }
  .session-card {
    margin-top: 22px;
  }
  .two-column,.game-panel {
    grid-template-columns: 1fr;
  }
  .game-panel {
    padding: 25px;
    gap: 25px;
  }
  main {
    padding: 30px 18px;
  }
  h1 {
    font-size: 28px;
  }
  .panel {
    padding: 23px;
  }
  footer span {
    display: none;
  }
}
.auth-header {
  height: 80px;
  background: white;
  border-bottom: 1px solid #e1e8ec;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(28px,calc((100vw - 1144px)/2));
  gap: 20px;
}
.auth-header nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 14px;
}
.auth-header nav a[aria-current="page"] {
  color: #23649a;
  font-weight: 650;
}
.auth-header+main>section,.auth-header+main>form {
  background: white;
  padding: 28px;
  border: 1px solid #dfe7eb;
  border-radius: 14px;
  margin: 22px 0;
}
.auth-header+main>form {
  max-width: 520px;
}
form button {
  margin-top: 22px;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 30px;
}
.grid>section {
  background: white;
  border: 1px solid #dfe7eb;
  border-radius: 14px;
  padding: 30px;
}
.button {
  display: inline-block;
  background: #b9ddfa;
  color: #173f62;
  border-radius: 8px;
  padding: 12px 20px;
  margin-top: 16px;
}
.error {
  color: #a23f2c;
}
@media(max-width:800px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .auth-header {
    padding: 18px;
    height: auto;
    flex-wrap: wrap;
  }
  .auth-header nav {
    width: 100%;
    gap: 14px 20px;
  }
}
.grid>.site-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
}
.site-card h2 {
  margin: 0 0 12px;
}
.site-card p {
  margin: 0;
  color: #536873;
  line-height: 1.6;
}
.site-card-entry {
  flex: none;
  display: inline-block;
  background: #b9ddfa;
  color: #173f62;
  border-radius: 8px;
  padding: 11px 17px;
  font-weight: 600;
  line-height: 1.3;
}
.site-card-entry:hover {
  background: #a5d2f5;
}
@media(max-width:520px) {
  .grid>.site-card {
    padding: 22px;
    gap: 12px;
  }
  .site-card-entry {
    padding: 10px 12px;
    white-space: nowrap;
  }
}
