:root {
  color-scheme: light;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #1a2932;
  background: #080e14;
  --ink: #1a2932;
  --muted: #475663;
  --line: #c2ccd3;
  --link: #016187;
  --amber: #ffbb39;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 1.25rem; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #09101a00 48%, #080e14 96%), url('harbor.jpg') center top / max(100%, 1200px) auto no-repeat;
}

a { color: var(--link); text-underline-offset: .18em; }
a:focus-visible { outline: 3px solid #0076a8; outline-offset: 4px; }
.frame { width: min(1100px, calc(100% - 64px)); margin-inline: auto; }
.masthead { background: #0a121af0; border-bottom: 1px solid #496171; }
.masthead-inner { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: #f3f6f8; font-size: 1rem; text-decoration: none; font-weight: 800; letter-spacing: .085em; text-transform: uppercase; }
.brand-mark { display: grid; place-items: center; width: 2rem; height: 2rem; background: var(--amber); color: #1c232a; font-size: .9rem; font-weight: 900; letter-spacing: -.06em; border-radius: 2px; }
.masthead nav { display: flex; gap: clamp(.9rem, 2.2vw, 1.75rem); }
.masthead nav a, .footer a { color: #c2dae7; font-size: .875rem; }
.masthead nav a { text-decoration: none; }
.masthead nav a:hover, .footer a:hover { color: #fff; text-decoration: underline; }
.masthead a:focus-visible, .footer a:focus-visible { outline-color: var(--amber); }

.console { margin-top: clamp(1.25rem, 4vmin, 3rem); border: 1px solid #768893; background: #e9edf0; box-shadow: 0 18px 80px #0008; }
.server-header { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: clamp(1.1rem, 3vw, 2rem); border-top: 4px solid var(--amber); border-bottom: 1px solid #aab9c4; background: linear-gradient(110deg, #fafbfc, #e1e9ee); }
.platform { margin: 0 0 .45rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 700; }
.platform span { margin-inline: .18rem; color: #557186; }
h1 { margin: 0; font-size: clamp(2rem, 4.5vw, 3.35rem); line-height: 1.05; letter-spacing: -.035em; }
.subtitle { margin: .6rem 0 0; color: var(--muted); font-size: .95rem; }
.specs { display: flex; gap: .75rem; margin: 0; }
.specs div { min-width: 108px; padding: .65rem .8rem; border-left: 1px solid #aab9c4; }
.specs dt { white-space: nowrap; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.specs dd { margin: .18rem 0 0; font-size: 1.6rem; line-height: 1; font-weight: 750; white-space: nowrap; }

.console-grid { display: grid; align-items: start; grid-template-columns: minmax(0, 1fr) minmax(250px, 340px); gap: 1rem; padding: 1rem; }
.panel { border: 1px solid var(--line); background: #f9fafb; }
.join-panel { grid-column: 2; grid-row: 1; padding: 1rem; }
.rotation-panel { grid-column: 1; grid-row: 1; }
h2 { margin: 0; font-size: 1.25rem; line-height: 1.2; letter-spacing: -.02em; }
h3 { margin: 0 0 .6rem; font-size: .95rem; }
.button { display: flex; gap: .5rem; min-height: 44px; align-items: center; justify-content: space-between; padding: .65rem .85rem; border: 1px solid; border-radius: 2px; text-decoration: none; font-weight: 750; line-height: 1.25; }
.primary { margin-top: .85rem; background: var(--amber); border-color: #9a6613; color: #192026; box-shadow: inset 0 1px #ffe3a3; font-size: 1.2rem; }
.primary:hover { background: #ffd174; }
.secondary { background: #ebf2f6; border-color: #acbbc4; }
.secondary:hover { background: #dbe9f1; }
.open-note, .setup-link, .feedback { font-size: .85rem; line-height: 1.4; }
.open-note { margin: .55rem 0 .85rem; color: var(--muted); }
.setup-link { display: inline-block; margin-top: .6rem; }
.feedback { padding: .65rem .75rem; margin-top: .6rem; border-left: 3px solid #c48a24; background: #fff3d6; }
.rules { margin-top: 1rem; padding-top: .85rem; border-top: 1px solid var(--line); }
.rules dl { margin: 0; }
.rules dl div { display: flex; justify-content: space-between; gap: .65rem; padding: .4rem 0; border-top: 1px solid #e0e6eb; font-size: .84rem; }
.rules dt { color: var(--muted); }
.rules dd { margin: 0; text-align: right; font-weight: 650; }

.section-header { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .35rem 1rem; padding: .85rem 1rem; background: #dce5eb; border-bottom: 1px solid var(--line); }
.section-header p, .live-note { margin: 0; color: var(--muted); font-size: .84rem; }
.map-list { margin: 0; padding: 0; list-style: none; counter-reset: maps; }
.map-list li { counter-increment: maps; display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) auto; align-items: center; gap: .5rem; min-height: 34px; padding: .35rem 1rem; font-size: .875rem; font-weight: 650; border-bottom: 1px solid #e0e6eb; }
.map-list li:nth-child(even) { background: #eef3f6; }
.map-list li::before { content: counter(maps, decimal-leading-zero); font-size: .74rem; font-variant-numeric: tabular-nums; font-weight: 700; color: #54616b; }
.map-list li:first-child { background: #d8e8f0; box-shadow: inset 3px 0 #18799e; }
.map-note { font-size: .72rem; color: #365462; font-weight: 600; }
.live-note { padding: .7rem 1rem; }

.setup { margin: 0 1rem 1rem; }
.steps { margin: .9rem 1rem .8rem; padding-left: 1.5rem; line-height: 1.55; font-size: .94rem; }
.steps li { padding-left: .2rem; margin-block: .4rem; }
.steps li::marker { color: #016187; font-weight: 800; }
.manual { margin: 1rem; padding: .85rem 1rem; border-left: 3px solid #5b8599; background: #eaf1f5; }
.manual p { margin: 0; font-size: .9rem; line-height: 1.5; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem 1.25rem; padding: 1rem 0 1.5rem; color: #c1ced7; font-size: .875rem; }

@media (max-width: 750px) {
  .frame { width: calc(100% - 28px); }
  .server-header { align-items: flex-start; flex-direction: column; gap: .9rem; }
  .specs div { padding: .4rem .6rem; min-width: 90px; }
  .specs dd { font-size: 1.35rem; }
  .console-grid { display: flex; flex-direction: column; }
  .console-grid > * { width: 100%; }
}

@media (max-width: 440px) {
  .masthead-inner { flex-wrap: wrap; gap: .65rem; padding-block: .65rem; }
  .masthead nav { width: 100%; }
  .console-grid { padding: .65rem; gap: .65rem; }
  .setup { margin: 0 .65rem .65rem; }
  .map-list li { grid-template-columns: 1.5rem minmax(0, 1fr) auto; gap: .35rem; padding-inline: .75rem; }
}
