:root {
  color-scheme: light;
  --ink: #2b432c;
  --muted: #72816b;
  --grass: #6a963e;
  background: #f2f5eb;
  font-family: system-ui, -apple-system, "Noto Sans KR", sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0 auto; max-width: 1560px; display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: start; gap: 32px; padding: 0 38px; }
main {
  width: min(1180px, 100%);
  min-width: 0;
  margin: 0 auto;
  padding: 0 24px 64px;
}
.server-overview {
  min-height: 100svh;
  width: min(680px, 100%);
  margin: auto;
  padding: 34px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.blocks { width: min(450px, 100%); height: auto; margin: 0 0 22px; }
.edition {
  font-family: ui-monospace, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--grass);
}
h1 {
  margin: 9px 0 0;
  font-family: ui-monospace, "Courier New", monospace;
  font-size: clamp(36px, 9vw, 56px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -3px;
  text-shadow: 2px 2px 0 #d9e4c9;
}
.connection {
  width: 100%;
  margin-top: 26px;
  background: #fffef9;
  border: 2px solid #c1ceb0;
  border-top: 5px solid var(--grass);
  box-shadow: 4px 4px 0 #dce5ce;
  text-align: left;
}
dl { display: flex; margin: 0; padding: 22px 24px; gap: 24px; }
dl > div { min-width: 0; }
.address { flex: 1; }
.port { padding-left: 24px; border-left: 1px solid #e0e6d6; }
dt { font-size: 11px; color: var(--muted); margin-bottom: 7px; }
dd { margin: 0; }
.address dd { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
code { font-family: ui-monospace, monospace; font-size: 17px; font-weight: 600; user-select: all; }
button { padding: 5px 9px; border: 1px solid #becbac; background: #f2f5eb; color: var(--ink); font: inherit; font-size: 11px; cursor: pointer; }
button:hover { background: #e7eedc; }
button:focus-visible { outline: 2px solid var(--grass); outline-offset: 3px; }
.status-panel { width: 100%; margin-top: 16px; padding: 20px 24px 15px; border: 1px solid #d0dac3; background: #fffef9; text-align: left; }
.status-heading,.players-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
h2 { margin: 0; font-size: 14px; font-weight: 650; }
.state { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.state::before { content: ""; width: 7px; height: 7px; background: #a8b29e; }
.state[data-state="open"] { color: #477932; }
.state[data-state="open"]::before { background: #6a963e; }
.state[data-state="closed"]::before { background: #bd685a; }
.state[data-state="unresponsive"]::before { background: #b39144; }
.players-heading { margin-top: 20px; font-size: 12px; color: var(--muted); }
#player-count { font-family: ui-monospace, monospace; }
#players { display: flex; flex-wrap: wrap; gap: 8px; min-height: 24px; margin: 10px 0 0; padding: 0; list-style: none; }
#players li:not(.empty) { padding: 4px 8px; background: #eef3e7; color: var(--ink); font-size: 12px; overflow-wrap: anywhere; }
.empty { margin: 0; color: var(--muted); font-size: 12px; }
#checked-at { display: block; min-height: 14px; margin-top: 13px; color: #87917f; font-size: 10px; text-align: right; }
.release-link { display: inline-flex; align-items: center; gap: 14px; margin-top: 25px; color: var(--ink); font-size: 12px; text-decoration: none; }
.release-link span { color: var(--muted); font-family: ui-monospace, monospace; font-size: 11px; }
.release-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.release-link:focus-visible { outline: 2px solid var(--grass); outline-offset: 5px; }
.patch-notes { padding-top: 12px; scroll-margin-top: 28px; }
.notes-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.notes-heading h2 { font-size: 22px; font-weight: 800; letter-spacing: -1px; }
.notes-heading > span { color: var(--muted); font-size: 11px; }
.notes-heading strong { font-family: ui-monospace, monospace; color: var(--ink); }
.release { border: 1px solid #c8d4bc; background: #fffef9; box-shadow: 4px 4px 0 #dce5ce; }
.release-header { position: relative; overflow: hidden; padding: 30px 32px; background: #2b432c; color: #f4f6ec; }
.release-header::after { content: ""; position: absolute; right: -15px; bottom: -44px; width: 240px; height: 150px; background: url('/blocks.svg?v=2') center / contain no-repeat; opacity: .13; pointer-events: none; }
.release-meta { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 11px; }
.release-type { padding: 5px 9px; border: 1px solid #88a16c; color: #c4df9f; font-weight: 650; }
.release-meta time { color: #c2cdb9; font-family: ui-monospace, monospace; }
.release-header h3 { position: relative; z-index: 1; margin: 22px 0 7px; font-family: ui-monospace, "Courier New", monospace; font-size: clamp(27px, 6vw, 39px); line-height: 1.2; letter-spacing: -1.5px; }
.release-header h3 span { color: #c4df9f; }
.release-header > p { position: relative; z-index: 1; margin: 0; color: #d7e2cc; font-size: 13px; }
.release-body { padding: 30px 32px 22px; }
.release-group + .release-group { margin-top: 30px; padding-top: 26px; border-top: 1px solid #e0e6d6; }
.release-group h4 { display: flex; align-items: center; gap: 9px; margin: 0 0 23px; color: #42672c; font-size: 16px; font-weight: 750; }
.release-group h4::before { content: ""; width: 8px; height: 8px; background: var(--grass); box-shadow: 2px 2px 0 #d0ddba; }
.feature-list { margin: 0; padding: 0; list-style: none; }
.feature-list li + li { margin-top: 24px; }
.feature-list h5 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; font-size: 14px; font-weight: 750; }
.feature-icon { width: 24px; height: 24px; flex: 0 0 24px; image-rendering: pixelated; }
.archive-layout { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 28px; align-items: start; }
.archive { position: sticky; top: 28px; }
.archive h3 { margin: 0 0 14px; font-size: 12px; color: var(--muted); }
.archive nav { display: flex; flex-direction: column; gap: 8px; }
.archive a { display: block; padding: 12px; border: 1px solid #d0dac3; color: var(--ink); font: 600 12px ui-monospace, monospace; text-decoration: none; }
.archive a[aria-current="true"] { background: #e5edda; border-left: 4px solid var(--grass); }
.archive a:hover { background: #eef3e7; }
.archive small { display: block; margin-top: 7px; color: var(--muted); font-size: 10px; font-weight: 400; }
.patch-content { min-width: 0; }
.feedback { margin-top: 48px; padding-top: 30px; border-top: 2px solid #c8d4bc; scroll-margin-top: 28px; }
.feedback-hint { font-size: 12px; line-height: 1.8; color: var(--muted); }
#comment-form { margin-top: 20px; padding: 22px; border: 1px solid #c8d4bc; background: #fffef9; }
.comment-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(110px, 150px); gap: 16px; }
.comment-fields label,.comment-body-label { display: block; color: var(--muted); font-size: 11px; }
input,select,textarea { display: block; min-width: 0; width: 100%; margin-top: 8px; padding: 10px; border: 1px solid #c8d4bc; border-radius: 0; background: #fafbf6; color: var(--ink); font: inherit; font-size: 13px; }
textarea { min-height: 104px; resize: vertical; line-height: 1.7; }
input:focus-visible,select:focus-visible,textarea:focus-visible { outline: 2px solid var(--grass); outline-offset: 2px; }
.comment-body-label { margin-top: 18px; }
.form-actions,.comment-list-heading,.comment-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.form-actions { margin-top: 12px; }
.form-actions > span { color: var(--muted); font-size: 10px; }
.form-actions > div { display: flex; gap: 8px; }
.primary-button { padding: 8px 13px; background: #587c36; border-color: #587c36; color: #fffef9; }
.primary-button:hover { background: #46652a; }
button:disabled { opacity: .5; cursor: default; }
[hidden] { display: none !important; }
.form-message { margin: 12px 0 0; color: #8a5936; font-size: 12px; line-height: 1.7; }
.form-message:empty { display: none; }
.comment-list-heading { margin: 25px 0 16px; font-size: 12px; color: var(--muted); }
.comments { padding: 0; margin: 0; list-style: none; }
.comment { padding: 18px 0; border-top: 1px solid #dce5ce; }
.comment-top { align-items: flex-start; flex-wrap: wrap; }
.comment-author { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12px; }
.comment-author strong { overflow-wrap: anywhere; }
.comment-kind { padding: 3px 6px; background: #e6eedb; color: #587c36; font-size: 10px; }
.comment time { color: var(--muted); font-size: 10px; }
.comment-text { margin: 12px 0 0; color: #55634e; font-size: 13px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-tools { display: flex; gap: 7px; margin-top: 12px; }
#more-comments { margin-top: 18px; }
.site-nav { position: sticky; top: 32px; align-self: start; padding-top: 2px; }
.site-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 15px ui-monospace, monospace; }
.site-tabs { display: flex; flex-direction: column; gap: 9px; margin-top: 34px; }
.site-tabs a { display: flex; align-items: center; gap: 12px; padding: 14px 17px; border: 1px solid transparent; color: var(--muted); font-size: 13px; text-decoration: none; }
.site-tabs a:hover { background: #eaf0e1; }
.site-tabs a[aria-current="page"] { border-color: #c8d4bc; background: #e5edda; color: #42672c; font-weight: 700; box-shadow: 3px 3px 0 #dce5ce; }
.nav-symbol { font-size: 17px; }
.site-tabs a:focus-visible,.archive a:focus-visible { outline: 2px solid var(--grass); outline-offset: 3px; }
.social-page { max-width: 960px; margin: auto; padding: 62px 0 32px; }
.board-header { margin-bottom: 28px; }
.board-header h1 { font-family: inherit; font-size: 36px; letter-spacing: -1.5px; margin-top: 10px; text-shadow: none; }
.board-header p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.board-form { padding: 26px; border: 1px solid #c8d4bc; background: #fffef9; }
.board-form > label,.inline-editor > label,.reply-form > label { display: block; color: var(--muted); font-size: 11px; }
.board-form > label + label { margin-top: 18px; }
.board-form input:not([type="file"]) { max-width: 320px; }
.upload-hint { color: var(--muted); font-size: 11px; line-height: 1.7; }
.board-form > .upload-zone { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 24px; padding: 30px 20px; border: 2px dashed #b8cba0; background: #f2f6eb; text-align: center; cursor: pointer; box-shadow: inset 0 0 0 5px #fafbf6; }
.upload-zone:hover,.upload-zone.is-dragover { border-color: var(--grass); background: #e8f0dc; }
.upload-zone:focus-within { outline: 2px solid var(--grass); outline-offset: 4px; }
.upload-icon { display: flex; justify-content: center; align-items: center; width: 54px; height: 54px; border: 1px solid #c6d6b4; background: #fffef9; box-shadow: 3px 3px 0 #d3e1c1; }
.upload-icon img { image-rendering: pixelated; }
.upload-zone strong { margin-top: 3px; color: #42672c; font-size: 14px; }
.upload-description { font-size: 12px; line-height: 1.7; color: #72816b; }
.upload-formats { color: #8a967f; font-size: 10px; }
.upload-zone input[type="file"] { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.upload-zone:has(input:disabled) { opacity: .6; }
.upload-replace { position: relative; display: inline-block; margin-top: 14px; padding: 10px 14px; border: 1px solid #b8cba0; background: #f2f6eb; color: #42672c; font-size: 12px; cursor: pointer; }
.upload-replace:hover { background: #e8f0dc; }
.upload-replace:focus-within { outline: 2px solid var(--grass); outline-offset: 3px; }
.upload-replace input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.photo-preview { display: flex; gap: 9px; flex-wrap: wrap; margin: 14px 0; }
.photo-preview img { width: 76px; height: 64px; object-fit: cover; border: 1px solid #c8d4bc; }
.post-list { display: flex; flex-direction: column; gap: 18px; }
.post-card { min-width: 0; padding: 24px; border: 1px solid #c8d4bc; background: #fffef9; box-shadow: 3px 3px 0 #dce5ce; }
.post-card .comment-text { margin-top: 16px; }
.post-card .comment-tools { margin-top: 16px; }
.post-card time { color: var(--muted); font-size: 11px; }
.thread { margin-top: 20px; border-top: 1px solid #e0e6d6; padding-top: 16px; }
.thread summary { color: #587c36; font-size: 12px; cursor: pointer; }
.reply-list { margin-top: 12px; }
.reply-form { margin-top: 16px; padding: 16px; background: #f2f5eb; }
.reply-form input { max-width: 220px; margin-bottom: 12px; background: #fffef9; }
.reply-form textarea { min-height: 74px; background: #fffef9; }
.inline-editor { margin-top: 16px; padding: 16px; border: 1px solid #c8d4bc; }
.inline-editor input { max-width: 280px; }
.inline-editor textarea { margin-top: 14px; }
.photo-card { padding: 0; overflow: hidden; }
.photo-card > .comment-top { padding: 20px 24px; }
.photo-caption { padding: 20px 24px 24px; }
.photo-caption .comment-text { margin-top: 0; }
.carousel { position: relative; background: #e3eada; }
.photo-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.photo-slides::-webkit-scrollbar { display: none; }
.photo-slide { display: flex; align-items: center; justify-content: center; flex: 0 0 100%; min-width: 0; scroll-snap-align: start; aspect-ratio: 16 / 10; }
.photo-slide img { display: block; width: 100%; height: 100%; object-fit: contain; }
.carousel-button { position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 34px; padding: 0; border: 1px solid #d2ddc5; background: #fffef9; color: var(--ink); font-size: 20px; opacity: .9; }
.carousel-button.prev { left: 10px; }
.carousel-button.next { right: 10px; }
.photo-counter { position: absolute; right: 0; top: 0; padding: 5px 8px; background: #2b432c; color: #fffef9; font: 11px ui-monospace, monospace; pointer-events: none; }
.photo-viewer { width: min(1100px, calc(100% - 24px)); max-width: none; max-height: calc(100svh - 24px); margin: auto; padding: 0; border: 1px solid #61754f; background: #223425; color: #fffef9; overflow: hidden; }
.photo-viewer::backdrop { background: #142019db; }
.viewer-toolbar { display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding-left: 16px; }
.viewer-count { font: 12px ui-monospace, monospace; }
.viewer-actions { display: flex; align-self: stretch; }
.viewer-action { display: inline-flex; align-items: center; justify-content: center; min-width: 58px; margin: 0; padding: 10px; border: 0; border-left: 1px solid #61754f; background: #2b432c; color: #fffef9; font: inherit; font-size: 12px; text-decoration: none; }
.viewer-action:hover { background: #42672c; }
.viewer-action:focus-visible { outline: 2px solid #a9d270; outline-offset: -4px; }
.viewer-message { position: absolute; bottom: 0; left: 0; right: 0; margin: 0; padding: 9px 12px; background: #223425e8; color: #fffef9; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.viewer-message:empty { display: none; }
.viewer-stage { position: relative; display: grid; place-items: center; min-height: 100px; }
.viewer-stage img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100svh - 76px); object-fit: contain; }
.viewer-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 48px; padding: 0; background: #2b432cde; color: #fffef9; border-color: #61754f; font-size: 25px; }
.viewer-arrow.prev { left: 0; }
.viewer-arrow.next { right: 0; }
.photo-open { display: inline-block; margin-top: 12px; color: var(--muted); font-size: 11px; text-underline-offset: 3px; }
#guestbook-more,#photos-more { margin-top: 24px; }
@media (max-width: 900px) {
  body { display: block; padding: 0; }
  main { width: min(760px, 100%); }
  .site-nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 22px; background: #f2f5eb; border-bottom: 1px solid #dce5ce; }
  .site-brand img { width: 30px; height: 30px; }
  .site-brand span { display: none; }
  .site-tabs { flex-direction: row; gap: 7px; margin: 0; }
  .site-tabs a { padding: 9px 13px; font-size: 12px; }
  .nav-symbol { display: none; }
  .server-overview { width: min(512px, 100%); min-height: calc(100svh - 63px); }
  .blocks { width: min(400px, 100%); }
  .social-page { padding-top: 32px; }
  .board-header h1 { font-size: 30px; }
  .board-form { padding: 20px; }
  .post-card { padding: 20px; }
  .photo-card { padding: 0; }
  input,select,textarea { font-size: 16px; }
  .patch-notes,.feedback { scroll-margin-top: 85px; }
}
@media (max-width: 680px) {
  .archive-layout { display: block; }
  .archive { position: static; margin-bottom: 18px; }
  .archive h3 { margin-bottom: 10px; }
  .archive nav { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .archive a { flex: 0 0 auto; padding: 10px 13px; }
  .archive small { display: none; }
  #comment-form { padding: 18px; }
}
.feature-list p { margin: 0; font-size: 13px; line-height: 1.85; color: #55634e; }
.feature-list small { display: block; margin-top: 7px; font-size: 11px; line-height: 1.8; color: #758268; }
.feature-list code { padding: 2px 5px; background: #edf2e5; font-size: 11px; font-weight: 550; color: #46672f; user-select: text; }
.release-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 30px; padding-top: 18px; border-top: 1px solid #e0e6d6; font-size: 10px; line-height: 1.7; color: #758268; }
.release-footer strong { color: var(--ink); font-family: ui-monospace, monospace; }
@media (max-width: 420px) {
  main { padding: 0 22px 48px; }
  .server-overview { padding: 28px 0; }
  .blocks { width: min(300px, 100%); margin-bottom: 18px; }
  dl { padding: 20px 16px; gap: 14px; }
  .port { padding-left: 14px; }
  code { font-size: 15px; }
  .status-panel { padding: 18px 16px 14px; }
  .release-header { padding: 25px 21px; }
  .release-body { padding: 25px 21px 20px; }
  .release-header h3 { font-size: 28px; }
  .notes-heading h2 { font-size: 20px; }
}
@media (max-width: 330px) {
  dl { flex-direction: column; gap: 18px; }
  .port { padding: 12px 0 0; border-left: 0; border-top: 1px solid #e0e6d6; }
}

.site-tools { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; }
.site-tools button { padding: 10px 12px; text-align: left; font-size: 12px; }
.app-settings { width: min(420px, calc(100% - 32px)); padding: 24px; border: 1px solid #becbac; background: #fffef9; color: var(--ink); box-shadow: 5px 5px 0 #dce5ce; max-height: calc(100svh - 40px); overflow-y: auto; }
.app-settings::backdrop { background: #18251bc7; }
.app-settings-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.app-settings h2 { font-size: 18px; }
#install-instructions { font-size: 13px; line-height: 1.9; margin-bottom: 0; }
#notification-status { font-size: 13px; color: var(--grass); }
#notification-form fieldset { padding: 14px; margin: 18px 0; border: 1px solid #d0dac3; }
#notification-form legend { font-size: 12px; }
#notification-form label { display: flex; align-items: center; gap: 9px; padding: 7px 0; font-size: 13px; }
#notification-form input { appearance: auto; width: 17px; height: 17px; margin: 0; padding: 0; accent-color: var(--grass); }
.notification-hint { font-size: 11px; line-height: 1.8; color: var(--muted); }
@media (max-width: 900px) {
  .site-nav { gap: 6px; padding-left: 14px; padding-right: 14px; }
  .site-tools { flex-direction: row; margin: 0; }
  .site-tools button { white-space: nowrap; padding: 9px 8px; font-size: 11px; }
  .site-tabs { gap: 3px; }
  .site-tabs a { padding: 9px 10px; }
}
@media (max-width: 360px) {
  .site-nav { padding-left: 10px; padding-right: 10px; }
  .site-tabs a { padding: 9px 7px; font-size: 11px; }
  .site-brand img { width: 25px; height: 25px; }
}
