:root {
  color-scheme: light;
  --ink: #142923;
  --muted: #61746c;
  --line: #d8e0d8;
  --paper: #f4f3ed;
  --accent: #c86a3b;
  --accent-dark: #a65028;
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  background: radial-gradient(circle at 90% 7%, #dbe8da 0, transparent 33%);
  pointer-events: none;
}
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.shell { display: flex; flex-direction: column; width: min(100% - 48px, 1080px); min-height: 100dvh; margin: auto; }
.topbar { display: flex; justify-content: space-between; align-items: center; min-height: 112px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 500; letter-spacing: -.04em; text-decoration: none; }
.brand strong { font-weight: 800; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; background: var(--ink); color: var(--paper); font-family: Georgia, serif; font-size: 20px; font-weight: 700; }
.signout, .topbar-label { font-size: 13px; font-weight: 650; letter-spacing: .015em; text-decoration: none; }
.signout { border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.signout:hover { color: var(--accent-dark); }
.signout span { margin-left: 7px; }
.topbar-label { color: var(--muted); }
.eyebrow, .form-caption { color: var(--accent-dark); font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 18px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(62px, 9vw, 112px); font-weight: 400; letter-spacing: -.075em; line-height: .95; }
h1 em { color: var(--accent); font-weight: 400; }
.intro { padding: 82px 0 71px; }
.intro .eyebrow { margin-bottom: 30px; }
.intro-copy { max-width: 490px; margin: 30px 0 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.jump-link { display: inline-flex; gap: 9px; margin-top: 24px; padding-bottom: 5px; border-bottom: 1px solid var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; }
.jump-link:hover { color: var(--accent-dark); border-color: var(--accent-dark); }
.panel-section { margin-bottom: 66px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 16px; }
.section-heading h2 { margin: 0; font-size: 15px; letter-spacing: -.02em; }
.section-heading span { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.panel-list { border-top: 1px solid var(--ink); }
.panel-link { display: grid; grid-template-columns: 62px 1fr 38px; align-items: center; min-height: 112px; gap: 14px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background-color .18s ease, padding .18s ease; }
.panel-link:hover { padding: 0 16px; background: #e9eee6; }
.panel-number { align-self: start; padding-top: 31px; color: var(--accent-dark); font-family: Georgia, serif; font-size: 14px; }
.panel-content { display: flex; flex-direction: column; gap: 7px; }
.panel-content strong { font-family: Georgia, serif; font-size: 29px; font-weight: 400; letter-spacing: -.04em; }
.panel-content > span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.panel-arrow { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; font-size: 17px; }
.game-section { margin-bottom: 82px; }
.game-card { padding: 31px 34px 25px; border: 1px solid #cfd9cf; border-radius: 16px; background: #e9eee7; }
.game-overview { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.game-label { margin-bottom: 10px; color: var(--accent-dark); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.game-overview h3 { margin: 0; font-family: Georgia, serif; font-size: 31px; font-weight: 400; letter-spacing: -.04em; }
.game-description { max-width: 560px; margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.game-status { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 8px 12px; border: 1px solid #c3cdc4; border-radius: 999px; background: #f7f8f4; color: #475b50; font-size: 12px; font-weight: 750; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #8a988e; }
.game-status[data-state="online"] { border-color: #bbdbc0; color: #236742; }
.game-status[data-state="online"] .status-dot { background: #2b9455; }
.game-status[data-state="processing"] { border-color: #e5d2a8; color: #8e6427; }
.game-status[data-state="processing"] .status-dot { background: #e5aa35; }
.game-status[data-state="offline"] { border-color: #e6c3bd; color: #a43f38; }
.game-status[data-state="offline"] .status-dot { background: #cd554c; }
.game-detail { min-height: 19px; margin: 16px 0 24px; color: var(--muted); font-size: 13px; }
.game-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.game-actions button { min-height: 46px; padding: 10px 12px; border: 1px solid #b6c6b8; border-radius: 8px; background: #f8faf6; color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.game-actions button:hover:not(:disabled) { border-color: var(--ink); background: #fff; }
.game-actions button:disabled { cursor: not-allowed; opacity: .5; }
.game-feedback { min-height: 17px; margin: 17px 0 0; font-size: 12px; }
.game-feedback[data-kind="success"] { color: #236742; }
.game-feedback[data-kind="error"] { color: #a43f38; }
.footer { display: flex; justify-content: space-between; gap: 20px; margin-top: auto; padding: 25px 0 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.login-main { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(330px, .8fr); align-items: center; gap: 70px; flex: 1; padding: 60px 0; }
.login-intro .eyebrow { margin-bottom: 34px; }
.login-intro h1 { font-size: clamp(64px, 7.5vw, 100px); }
.login-intro > p:last-child { max-width: 390px; margin: 30px 0 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.login-card { padding: 36px; border: 1px solid #d8ded7; border-radius: 18px; background: #fffefa; box-shadow: 0 24px 54px -40px #24463755; }
.login-card .form-caption { margin-bottom: 12px; }
.login-card h2 { margin-bottom: 32px; font-family: Georgia, serif; font-size: 34px; font-weight: 400; letter-spacing: -.04em; }
.login-card form { display: flex; flex-direction: column; }
.login-card label { margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.login-card input { width: 100%; height: 48px; margin-bottom: 20px; padding: 0 14px; border: 1px solid #c9d3cb; border-radius: 8px; background: #fff; color: var(--ink); font: inherit; }
.login-card input:hover { border-color: #8ca398; }
.login-card button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 50px; margin-top: 3px; padding: 0 17px; border: 0; border-radius: 8px; background: var(--ink); color: white; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: background-color .18s ease; }
.login-card button:hover { background: #2c5345; }
.login-card button span { font-size: 20px; font-weight: 400; }
.login-note { margin: 21px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
@media (max-width: 700px) {
  .shell { width: min(100% - 36px, 520px); }
  .topbar { min-height: 82px; }
  .intro { padding: 55px 0 43px; }
  .intro-copy { font-size: 16px; }
  .panel-link { grid-template-columns: 35px 1fr 32px; min-height: 111px; gap: 8px; }
  .panel-link:hover { padding: 0 8px; }
  .panel-content strong { font-size: 25px; }
  .panel-content > span { font-size: 13px; }
  .panel-arrow { width: 28px; height: 28px; }
  .game-card { padding: 24px 20px 20px; }
  .game-overview { flex-direction: column; gap: 18px; }
  .game-overview h3 { font-size: 28px; }
  .game-actions { grid-template-columns: repeat(2, 1fr); }
  .login-main { display: block; padding: 66px 0 46px; }
  .login-intro > p:last-child { margin: 21px 0 40px; font-size: 15px; }
  .login-card { padding: 27px 23px; }
  .footer { flex-wrap: wrap; padding: 23px 0; }
}
@media (prefers-reduced-motion: reduce) { .panel-link, .login-card button { transition: none; } }
