@font-face {
  font-family: "Minecraft";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/minecraft.woff") format("woff");
}
@font-face {
  font-family: "Minecraft";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/minecraft-bold.woff") format("woff");
}

:root {
  --bg: #14151b;
  --bg-2: #191b22;
  --panel: #1d2029;
  --panel-2: #262a35;
  --stone: #2f3440;
  --border: #363b48;
  --border-hard: #0c0d10;
  --text: #e9ebf1;
  --muted: #99a0b0;
  --accent: #f0a01a;
  --accent-2: #ffc247;
  --accent-ink: #1a1202;
  --green: #5bc462;
  --red: #d95757;
  --hard: 0 3px 0 rgba(0, 0, 0, 0.55);
  --radius: 2px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica,
    Arial, sans-serif;
  --mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  --mc: "Minecraft", var(--mono);

  --content-max: 1140px;
  --rail-space: 0px;
  --rail-width: 236px;
}

[data-theme="light"] {
  --bg: #dce0e6;
  --bg-2: #e7eaef;
  --panel: #f4f6f9;
  --panel-2: #e8ebf1;
  --stone: #d5d9e0;
  --border: #bcc2cc;
  --border-hard: #8e94a0;
  --text: #1b1e25;
  --muted: #5b6373;
  --hard: 0 3px 0 rgba(0, 0, 0, 0.18);
}

@media (min-width: 1024px) {
  :root { --rail-space: 268px; }
}
@media (min-width: 1500px) {
  :root { --content-max: 1260px; }
}
@media (min-width: 1900px) {
  :root { --content-max: 1420px; }
}
@media (min-width: 2200px) {
  :root { --content-max: 1600px; --rail-space: 0px; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-right: var(--rail-space);
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-2);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

main { flex: 1 0 auto; }

[data-site-header] { display: block; min-height: 57px; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.022) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.022) 75%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.022) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.022) 75%);
  background-size: 4px 4px;
  background-position: 0 0, 2px 2px;
}
[data-theme="light"] body::before {
  background-image: linear-gradient(45deg, rgba(0, 0, 0, 0.02) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.02) 75%),
    linear-gradient(45deg, rgba(0, 0, 0, 0.02) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.02) 75%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); }

.mc { font-family: var(--mc); letter-spacing: 0.02em; }
.muted { color: var(--muted); }

.material-symbols-rounded {
  font-family: "Material Symbols Rounded";
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mc);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  padding: 9px 15px;
  border: 2px solid var(--border-hard);
  border-radius: var(--radius);
  background: var(--stone);
  color: var(--text);
  cursor: pointer;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.45);
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.14),
    inset -2px -2px 0 rgba(0, 0, 0, 0.34), var(--hard);
  transition: filter 0.12s ease, transform 0.06s ease;
}
[data-theme="light"] .btn:not(.btn-primary) {
  text-shadow: none;
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.7),
    inset -2px -2px 0 rgba(0, 0, 0, 0.12), var(--hard);
}
.btn .material-symbols-rounded { font-size: 18px; }
.btn:hover { filter: brightness(1.12); }
.btn:active {
  transform: translateY(2px);
  box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.34),
    inset -2px -2px 0 rgba(255, 255, 255, 0.14);
}
.btn-primary {
  background: var(--accent);
  border-color: #7a4d00;
  color: var(--accent-ink);
  text-shadow: none;
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.5),
    inset -2px -2px 0 rgba(0, 0, 0, 0.25), var(--hard);
}
.btn-secondary { background: var(--panel-2); color: var(--text); }
.btn-icon { padding: 9px 10px; }
.btn-tiny { padding: 5px 10px; font-size: 0.72rem; }
.btn.copied {
  background: var(--green);
  border-color: #1f6b2c;
  color: #04220f;
  text-shadow: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  margin-right: calc(-1 * var(--rail-space));
  background: var(--bg);
  border-bottom: 2px solid var(--border-hard);
}
.header-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 10px 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  transform: translateX(calc(-0.5 * var(--rail-space)));
}
.brand { justify-self: start; display: inline-flex; }
.brand img {
  image-rendering: pixelated;
  transition: transform 0.12s ease;
}
.brand:hover img { transform: scale(1.07); }
.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: var(--mc);
  font-size: 0.82rem;
  color: var(--muted);
}
.site-nav a { padding: 6px 2px; position: relative; }
.site-nav a:hover { color: var(--text); }
.site-nav a.active { color: var(--accent); }
.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
}
.btn-play { justify-self: end; }

/* Hero */
.hero {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(36px, 6vw, 68px) 20px 4px;
  text-align: center;
}
.hero-logo { width: min(680px, 86%); height: auto; margin: 0 auto; }
.hero-tag {
  color: var(--muted);
  font-size: 1rem;
  max-width: 54ch;
  margin: 16px auto 24px;
}
.ip-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 7px 7px 16px;
  background: var(--panel);
  border: 2px solid var(--border-hard);
  border-radius: var(--radius);
  box-shadow: var(--hard);
}
.ip-text { font-family: var(--mc); font-size: 1rem; color: var(--accent-2); }

/* Layout */
.layout {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 20px 48px;
  display: flex;
  flex-direction: column;
}
.content { min-width: 0; }

.section {
  padding: 38px 0 6px;
  border-top: 2px solid var(--border);
  margin-top: 30px;
  content-visibility: auto;
  contain-intrinsic-size: auto 480px;
}
.section:first-child { border-top: none; margin-top: 34px; }
.section-title {
  font-family: var(--mc);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--accent);
  border: 2px solid var(--border-hard);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.4);
  flex: none;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.section-head .section-title { margin-bottom: 20px; }
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--mc);
  font-size: 0.78rem;
  color: var(--muted);
}
.section-link:hover { color: var(--accent); }
.section-link .material-symbols-rounded { font-size: 16px; }

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--panel);
  border: 2px solid var(--border-hard);
  border-radius: var(--radius);
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.05),
    inset -2px -2px 0 rgba(0, 0, 0, 0.28), var(--hard);
  transition: transform 0.08s ease, border-color 0.12s ease;
}
.step:hover { transform: translateY(-2px); border-color: var(--accent); }
.step-num {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  border: 2px solid var(--border-hard);
  border-radius: var(--radius);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}
.step-body { flex: 1; min-width: 0; }
.step-body h3 { margin: 0 0 3px; font-size: 0.96rem; }
.step-body p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.step-body code {
  color: var(--accent-2);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.83rem;
}
.step-arrow {
  flex: none;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.12s ease, transform 0.12s ease;
}
.step:hover .step-arrow { opacity: 1; transform: translateX(2px); }

/* Markdown */
.markdown { color: var(--muted); font-size: 0.92rem; }
.markdown h2, .markdown h3, .markdown h4 {
  font-family: var(--mc);
  color: var(--text);
  margin: 22px 0 6px;
  font-size: 0.98rem;
}
.markdown h3:first-child, .markdown h4:first-child, .markdown h2:first-child { margin-top: 0; }
.markdown p { margin: 0 0 10px; }
.markdown ul { margin: 6px 0 12px; padding-left: 20px; }
.markdown blockquote {
  margin: 10px 0;
  padding: 6px 14px;
  border-left: 3px solid var(--accent);
  color: var(--text);
}
.markdown code {
  color: var(--accent-2);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.85rem;
}
.markdown strong { color: var(--text); }
.markdown a { color: var(--accent); text-decoration: underline; }
.md-img {
  max-width: 100%;
  height: auto;
  margin: 10px 0;
  border: 2px solid var(--border-hard);
  border-radius: var(--radius);
}
.md-img-block { display: block; }

/* Rail */
.rail {
  position: fixed;
  right: 18px;
  top: 86px;
  bottom: 18px;
  width: var(--rail-width, 236px);
  z-index: 25;
  display: flex;
}
.rail-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  background: var(--panel);
  border: 2px solid var(--border-hard);
  border-radius: var(--radius);
  box-shadow: var(--hard);
  overflow: hidden;
}
.rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 13px;
  background: var(--panel-2);
  border-bottom: 2px solid var(--border-hard);
  flex: none;
}
.rail-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mc);
  font-size: 0.78rem;
}
.rail-state::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--muted);
  border: 1px solid var(--border-hard);
}
.rail-state.is-online::before { background: var(--green); }
.rail-state.is-offline::before { background: var(--red); }
.rail-count { font-family: var(--mono); font-size: 0.82rem; color: var(--muted); }
.player-list {
  list-style: none;
  margin: 0;
  padding: 6px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}
.player {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 7px;
  border-radius: var(--radius);
}
.player:hover { background: var(--panel-2); }
.player img {
  width: 24px;
  height: 24px;
  border: 1px solid var(--border-hard);
  image-rendering: pixelated;
  flex: none;
  background: var(--panel-2);
}
.player-name { font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-empty {
  margin: 0;
  padding: 10px 16px;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
  flex: none;
}
.rail-more {
  flex: none;
  font-family: var(--mc);
  font-size: 0.74rem;
  padding: 11px;
  border: none;
  border-top: 2px solid var(--border-hard);
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
}
.rail-more:hover { background: var(--accent); color: var(--accent-ink); }

/* News */
.news-list, .news-preview { display: grid; gap: 12px; }
.news-preview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.news-item {
  background: var(--panel);
  border: 2px solid var(--border-hard);
  border-radius: var(--radius);
  box-shadow: var(--hard);
  padding: 18px 20px;
}
.news-item-link { display: block; transition: transform 0.1s ease, border-color 0.12s ease; }
.news-item-link:hover { transform: translateY(-2px); border-color: var(--accent); }
.news-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.news-head {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border-hard);
  image-rendering: pixelated;
  background: var(--panel-2);
}
.news-author { font-size: 0.92rem; color: var(--accent-2); }
.news-date { margin-left: auto; font-size: 0.77rem; color: var(--muted); }
.news-title { margin: 0 0 6px; font-size: 1.08rem; color: var(--text); }
.news-item-full .news-title { font-size: 1.5rem; margin-bottom: 12px; }
.news-content { color: var(--muted); font-size: 0.92rem; max-width: 74ch; }
.news-excerpt { max-height: 4.8em; overflow: hidden; }
.news-excerpt .md-img { display: none; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mc);
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 16px;
}
.back-link:hover { color: var(--accent); }
.back-link .material-symbols-rounded { font-size: 18px; }
.news-detail { max-width: 820px; }

/* Page */
.page {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 44px 20px 60px;
  width: 100%;
}
.page-head { margin-bottom: 28px; }
.page-title {
  font-family: var(--mc);
  font-size: 1.7rem;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.page-title::before {
  content: "";
  width: 14px;
  height: 14px;
  background: var(--accent);
  border: 2px solid var(--border-hard);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.4);
}
.page-sub { color: var(--muted); margin: 0; }

/* Staff */
.staff-list { display: flex; flex-direction: column; }
.staff-row {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.staff-row:last-child { border-bottom: none; }
.staff-avatar {
  position: relative;
  width: 150px;
  height: 210px;
  flex: none;
}
.staff-avatar canvas {
  width: 100%;
  height: 100%;
  display: none;
  image-rendering: pixelated;
  cursor: grab;
}
.staff-avatar canvas:active { cursor: grabbing; }
.staff-avatar.is-3d canvas { display: block; }
.staff-avatar.is-3d .staff-fallback { display: none; }
.staff-fallback {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}
.staff-info { min-width: 0; }
.staff-line {
  font-size: 1.15rem;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: baseline;
}
.staff-name { color: var(--text); }
.staff-quote {
  margin: 10px 0 0;
  color: var(--muted);
  font-style: italic;
  font-size: 0.95rem;
  max-width: 60ch;
}

/* Footer */
.site-footer {
  flex-shrink: 0;
  margin-top: 48px;
  margin-right: calc(-1 * var(--rail-space));
  background: var(--bg);
  border-top: 2px solid var(--border-hard);
}
.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 44px 20px 28px;
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.2fr;
  gap: 34px;
  transform: translateX(calc(-0.5 * var(--rail-space)));
}
.footer-logo { width: min(300px, 82%); height: auto; }
.footer-tag { color: var(--muted); font-size: 0.86rem; margin: 16px 0 18px; max-width: 40ch; }
.footer-col h4 {
  font-family: var(--mc);
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 12px;
  letter-spacing: 0.04em;
}
.footer-col a { display: block; padding: 5px 0; font-size: 0.9rem; color: var(--text); }
.footer-col a:hover { color: var(--accent); }
.footer-clock-row { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; color: var(--muted); }
.footer-clock-row .material-symbols-rounded { font-size: 18px; }
.footer-clock { font-family: var(--mono); font-size: 1.05rem; color: var(--text); }
.footer-tz { display: block; font-size: 0.75rem; }
.footer-bottom {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 16px 20px 26px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.78rem;
  transform: translateX(calc(-0.5 * var(--rail-space)));
}
.footer-copy-note { display: inline-flex; align-items: center; gap: 7px; }
.footer-copy-note .material-symbols-rounded { font-size: 16px; }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 12px);
  padding: 10px 18px;
  background: var(--panel-2);
  border: 2px solid var(--border-hard);
  border-radius: var(--radius);
  box-shadow: var(--hard);
  font-family: var(--mc);
  font-size: 0.8rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 60;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1023px) {
  .rail {
    position: static;
    width: auto;
    order: -1;
    margin: 30px 0 0;
    display: block;
  }
  .rail-card { height: auto; }
  .player-list { max-height: 320px; flex: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .news-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .header-inner { grid-template-columns: auto 1fr; row-gap: 10px; }
  .site-nav {
    grid-column: 1 / -1;
    justify-self: start;
    order: 3;
    gap: 16px;
    font-size: 0.76rem;
  }
  .btn-play { justify-self: end; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .staff-row { gap: 14px; }
  .staff-avatar { width: 108px; height: 152px; }
  .staff-line { font-size: 0.95rem; }
  .steps { grid-template-columns: 1fr; }
  .news-preview { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; }
}
