:root {
  --a-bg: #C8D8E4;
  --a-card: #f8fbfc;
  --a-paper: #fbfdff;
  --a-soft: #edf4f6;
  --a-line: #9fb3bf;
  --a-text: #23303a;
  --a-title: #7a2f2f;
  --a-notice: #4d6d7a;
  --a-blue: #1d4e89;
  --b-bg: #343034;
  --b-core: #0c1620;
  --b-panel: #0f1c27;
  --b-text: #b8cad6;
  --b-border: #44494D;
  --b-key: #4B4559;
  --b-err: #455252;
  --b-signal: #0404FF;
  --b-success: #5fd6c8;
  --b-warn: #ff5b5b;
  --seal: #343034;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--a-bg); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--a-text);
  font-family: Gulim, "MS Sans Serif", Arial, sans-serif;
  letter-spacing: 0;
  background: var(--a-bg);
}

a { color: #1b3e6b; }
button, input { font: inherit; }

.site-shell {
  width: min(100%, 980px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 44px 18px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.window,
.system-window {
  width: min(100%, 720px);
  margin: 0 auto;
}

.titlebar,
.system-bar {
  display: flex;
  align-items: center;
  min-height: 34px;
  gap: 6px;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 700;
}

.titlebar span,
.system-bar span:first-child { margin-right: auto; }

.meta { margin: 0 0 8px; color: var(--a-notice); font-size: 14px; }
h1, h2, p { margin-top: 0; }
h1 {
  margin-bottom: 12px;
  color: var(--a-title);
  font-size: 38px;
  line-height: 1.16;
  font-weight: 400;
}
h2 {
  margin-bottom: 14px;
  color: var(--a-title);
  font-size: 30px;
  line-height: 1.2;
  font-weight: 400;
}

.page-copy { line-height: 1.75; }
.given { color: var(--a-title); font-weight: 700; }
.faint,
.timed-hint { color: #687983; font-size: 13px; }
.timed-hint { opacity: 0; transition: opacity .4s linear; }
.is-hint-ready .timed-hint { opacity: 1; }

.site-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--a-line);
  padding: 12px 30px;
  color: #5f6d74;
  font-size: 12px;
}
.site-footer b {
  background: var(--seal);
  color: var(--a-card);
  padding: 3px 7px;
  font-family: "Courier New", monospace;
}

.address-panel {
  width: min(100%, 720px);
  margin: 0 auto;
  color: #56676f;
  font-size: 12px;
  line-height: 1.5;
}
.address-example {
  margin: 0 0 5px;
  color: #687983;
  font-family: "Courier New", monospace;
}
.address-form {
  display: flex;
  gap: 6px;
  align-items: center;
}
.address-form label { white-space: nowrap; }
.address-form input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--a-line);
  background: rgba(255,255,255,.52);
  color: var(--a-text);
  padding: 6px 8px;
}
.address-form button,
.plain-button {
  border: 1px solid #8fa2ad;
  background: #dbe8ed;
  color: var(--a-text);
  padding: 6px 12px;
  cursor: pointer;
}
.status-line {
  min-height: 22px;
  margin: 6px 0 0;
  color: #4b6270;
  font-family: "Courier New", monospace;
}

@media (max-width: 720px) {
  .site-shell {
    padding: 18px 12px 22px;
    justify-content: flex-start;
  }
  h1 { font-size: 30px; }
  h2 { font-size: 28px; }
  .site-footer {
    padding: 12px 28px;
    align-items: flex-start;
  }
  .address-form { align-items: stretch; }
  .address-form button { width: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  .timed-hint { transition: none; }
}
