:root {
  --bg: #0c100d;
  --panel: #161c17;
  --panel-2: #1c241d;
  --line: #344036;
  --text: #f2f4ee;
  --muted: #a7b0a3;
  --green: #65b741;
  --green-hi: #83d45d;
  --green-dark: #315d28;
  --red: #c9463d;
  --gold: #e2b54a;
  --stone: #737873;
  --shadow: rgba(0, 0, 0, .48);
  --pixel: 4px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    radial-gradient(circle at 50% -20%, #243b28 0, #111712 36%, var(--bg) 70%);
  background-size: 32px 32px, 32px 32px, auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

button, input { font: inherit; }
a { color: inherit; }
.hidden { display: none !important; }

.sky-glow {
  position: fixed;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, transparent, var(--green), var(--green-hi), transparent);
  opacity: .55;
  box-shadow: 0 0 36px rgba(101,183,65,.34);
  pointer-events: none;
}

.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 40px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand strong { display: block; letter-spacing: .12em; font-size: 16px; }
.brand small { display: block; color: var(--green-hi); letter-spacing: .36em; font-weight: 800; margin-top: 2px; }
.brand-cube {
  width: 38px; height: 38px; display: block;
  background:
    linear-gradient(90deg, transparent 50%, rgba(0,0,0,.12) 50%),
    linear-gradient(#70bd48 30%, #69503a 30%);
  background-size: 10px 10px, auto;
  border: 3px solid #91d36a;
  box-shadow: 4px 4px 0 #20341d;
}
.account { display: flex; align-items: center; gap: 10px; }
.account-label { color: var(--muted); font-size: 13px; }

.hero { padding: 82px 0 44px; max-width: 800px; }
.eyebrow, .label { color: var(--green-hi); font-size: 12px; letter-spacing: .18em; font-weight: 900; margin: 0 0 10px; }
.hero h1 { margin: 0; max-width: 760px; font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-size: clamp(44px, 7vw, 82px); line-height: .94; letter-spacing: .015em; text-transform: uppercase; text-shadow: 4px 4px 0 #223023; }
.hero-copy { color: var(--muted); max-width: 680px; line-height: 1.7; font-size: 15px; margin: 24px 0 0; }

.grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; }
.panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255,255,255,.035), transparent 35%), var(--panel);
  border: 1px solid var(--line);
  box-shadow: 8px 8px 0 #070a08, inset 0 1px 0 rgba(255,255,255,.04);
  padding: 28px;
}
.panel::after { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(255,255,255,.025); pointer-events: none; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; position: relative; z-index: 1; }
.panel h2 { font-size: 24px; margin: 0; letter-spacing: -.04em; }

.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); background: #0e130f; text-transform: uppercase; font-size: 11px; letter-spacing: .08em; font-weight: 900; }
.status-pill .dot { width: 8px; height: 8px; background: var(--stone); box-shadow: 0 0 10px currentColor; }
.status-pill.online { color: var(--green-hi); border-color: #426d36; }
.status-pill.online .dot { background: var(--green-hi); }
.status-pill.offline { color: #e66b61; border-color: #713a36; }
.status-pill.offline .dot { background: var(--red); }
.status-pill.starting { color: #f0c864; border-color: #79602d; }
.status-pill.starting .dot { background: var(--gold); animation: blink 1s steps(2,end) infinite; }
.status-pill.checking { color: var(--muted); }

.server-art { height: 136px; margin: 28px 0; border: 1px solid #313a32; position: relative; overflow: hidden; background: linear-gradient(#182c35 0 52%, #463527 52%); image-rendering: pixelated; }
.grass { position: absolute; left: 0; right: 0; top: 50%; height: 20px; background: repeating-linear-gradient(90deg, #477b32 0 15px, #57903a 15px 30px); border-top: 6px solid #70b64d; }
.dirt { position: absolute; background: #614832; box-shadow: inset 0 0 0 4px #57402d; }
.dirt-a { left: 8%; top: 67%; width: 34px; height: 34px; }
.dirt-b { left: 45%; top: 76%; width: 42px; height: 42px; }
.dirt-c { right: 12%; top: 62%; width: 28px; height: 28px; }
.torch { position: absolute; width: 8px; height: 42px; bottom: 44%; left: 72%; background: #83592e; box-shadow: 0 0 0 2px #4e341e; transform: rotate(4deg); }
.torch i { position: absolute; left: -3px; top: -10px; width: 14px; height: 14px; background: #f2b637; box-shadow: 0 0 18px 5px rgba(242,182,55,.38), inset 0 0 0 3px #d4652d; animation: torch 1.1s steps(2,end) infinite; }

.facts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 22px; }
.facts > div { display: flex; justify-content: space-between; gap: 18px; background: #111612; padding: 12px 14px; font-size: 12px; }
.facts span { color: var(--muted); }
.facts strong { text-align: right; overflow-wrap: anywhere; }
.fact-state.good { color: var(--green-hi); }
.fact-state.bad { color: #e66b61; }
.fact-state.warn { color: var(--gold); }
.fact-state.checking { color: var(--muted); }


.power-panel { min-height: 100%; display: flex; flex-direction: column; }
.power-copy { margin: 54px 0 24px; position: relative; z-index: 1; }
.power-copy h3 { margin: 0 0 12px; font-size: 22px; }
.power-copy p { color: var(--muted); line-height: 1.65; font-size: 13px; }
.redstone-lamp { width: 42px; height: 42px; background: #4b3028; border: 5px solid #2e211e; box-shadow: inset 0 0 0 4px #6d4235, 4px 4px 0 #090b09; }
.redstone-lamp.on { background: #e05a45; box-shadow: inset 0 0 0 4px #ff826a, 4px 4px 0 #090b09, 0 0 28px rgba(224,90,69,.3); }
.redstone-lamp.starting { background: #d89f3e; box-shadow: inset 0 0 0 4px #f3c35c, 4px 4px 0 #090b09, 0 0 28px rgba(216,159,62,.25); animation: blink 1.1s steps(2,end) infinite; }

.btn { appearance: none; border: 0; border-radius: 0; cursor: pointer; text-decoration: none; text-transform: uppercase; letter-spacing: .06em; font-weight: 900; transition: transform .08s ease, filter .15s ease, opacity .15s ease; position: relative; z-index: 2; }
.btn:not(:disabled):hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:not(:disabled):active { transform: translate(2px, 2px); box-shadow: none; }
.btn:focus-visible, input:focus-visible { outline: 3px solid #f0d46d; outline-offset: 3px; }
.btn:disabled { cursor: not-allowed; opacity: .42; filter: grayscale(.45); }
.btn-wide { width: 100%; display: flex; align-items: center; justify-content: center; min-height: 52px; }
.btn-small { padding: 9px 12px; font-size: 11px; }
.btn-primary { background: var(--green); color: #071006; border: 2px solid var(--green-hi); box-shadow: 4px 4px 0 #254821; padding: 13px 18px; }
.btn-ghost { color: var(--text); background: #171c18; border: 1px solid var(--line); box-shadow: 3px 3px 0 #070907; }
.btn-wake { margin-top: auto; background: #b84237; color: #fff5eb; border: 2px solid #e46656; box-shadow: 5px 5px 0 #54221e; padding: 14px 18px; }
.bolt { font-size: 22px; margin-right: 8px; color: #ffd561; }

.microcopy, .privacy-note { position: relative; z-index: 1; font-size: 11px; line-height: 1.55; color: var(--muted); }
.microcopy { text-align: center; margin: 13px 0 0; }
.privacy-note { border-top: 1px dashed #354037; padding-top: 16px; margin: 24px 0 0; }

.wake-progress { margin: 0 0 24px; position: relative; z-index: 1; }
.progress-track { height: 12px; border: 2px solid #5f542f; padding: 2px; background: #17140d; }
.progress-fill { width: 40%; height: 100%; background: repeating-linear-gradient(90deg, #d3a73e 0 12px, #edc75b 12px 24px); animation: progress 1.1s steps(5,end) infinite alternate; }
.wake-progress span { display: block; color: #e9c563; margin-top: 8px; font-size: 11px; }

footer { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 28px 0 0; color: #657067; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.footer-dot { color: var(--green-dark); }

.login-dialog { border: 0; padding: 0; background: transparent; color: var(--text); max-width: none; }
.login-dialog::backdrop { background: rgba(3,5,3,.8); backdrop-filter: blur(5px); }
.login-card { width: min(430px, calc(100vw - 28px)); background: #141a15; border: 1px solid #465249; box-shadow: 10px 10px 0 rgba(0,0,0,.65); padding: 34px; position: relative; }
.login-icon { width: 42px; height: 42px; display: grid; place-items: center; background: #314d2a; border: 2px solid #6f9d55; color: #9ade6f; margin-bottom: 22px; }
.login-card h2 { margin: 0; font-size: 28px; }
.dialog-copy { color: var(--muted); font-size: 12px; line-height: 1.65; margin: 12px 0 24px; }
.dialog-close { position: absolute; right: 14px; top: 10px; border: 0; background: none; color: #89928a; font-size: 26px; cursor: pointer; }
.login-card label:not(.remember-row) { display: grid; gap: 8px; margin-top: 16px; color: #cbd1c8; font-size: 12px; font-weight: 800; }
.login-card input[type="text"], .login-card input[type="password"] { width: 100%; background: #0d120e; color: var(--text); border: 1px solid #455148; padding: 13px 12px; border-radius: 0; }
.remember-row { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; margin: 18px 0; cursor: pointer; }
.remember-row input { accent-color: var(--green); width: 16px; height: 16px; }
.form-error { color: #f07a6f; background: #2b1715; border: 1px solid #67332e; padding: 10px; font-size: 12px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: #182019; border: 1px solid #566258; box-shadow: 5px 5px 0 rgba(0,0,0,.5); padding: 12px 16px; font-size: 12px; opacity: 0; pointer-events: none; transition: .2s ease; z-index: 20; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { border-color: #80413b; color: #ffaaa1; }

@keyframes blink { 50% { opacity: .45; } }
@keyframes torch { 50% { transform: translate(1px, -1px); filter: brightness(1.18); } }
@keyframes progress { from { width: 22%; } to { width: 88%; } }

@media (max-width: 820px) {
  .grid { grid-template-columns: 1fr; }
  .hero { padding-top: 58px; }
  .power-panel { min-height: 430px; }
}
@media (max-width: 560px) {
  .shell { width: min(100% - 20px, 1120px); padding-top: 18px; }
  .account-label { display: none; }
  .hero h1 { font-size: 44px; }
  .panel { padding: 20px; box-shadow: 5px 5px 0 #070a08; }
  .facts > div { display: grid; gap: 5px; }
  .facts strong { text-align: left; }
  footer { text-align: center; }
}
