:root { color-scheme: light; --bg: #f7f8f5; --paper: #fff; --ink: #24352d; --muted: #657167; --line: #e0e6dd; --green: #365b43; --olive: #edf3e9; --radius: 14px; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; word-break: keep-all; overflow-wrap: break-word; }
button, input, textarea { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { border: 0; cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.4; letter-spacing: -.5px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
:focus-visible { outline: 3px solid #70956c; outline-offset: 4px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 30; padding: 10px 18px; background: var(--green); color: #fff; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner, main { width: min(1200px, calc(100% - 64px)); margin: auto; }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 48px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; font-size: 21px; font-weight: 750; letter-spacing: -.5px; line-height: 1.2; }
.brand small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 0; margin-top: 3px; }
.brand-icon { display: grid; place-items: center; width: 38px; height: 38px; background: var(--green); color: #fff; border-radius: 10px; }
.brand-icon svg { width: 26px; height: 26px; }
nav { display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
nav a { padding: 10px 0; white-space: nowrap; }
nav a:hover { color: var(--green); }
.visitor-button { display: flex; align-items: center; gap: 8px; margin-left: auto; max-width: 240px; min-width: 0; padding: 6px 0 6px 8px; background: transparent; font-size: 13px; }
#visitor-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { display: inline-grid; place-items: center; flex: 0 0 auto; width: 30px; height: 30px; border: 1px solid #dce5d6; background: var(--olive); border-radius: 50%; color: var(--green); font-size: 14px; font-weight: 650; object-fit: cover; }
.intro { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 28px 0 22px; }
.eyebrow { color: var(--green); font-size: 12px; font-weight: 600; letter-spacing: .3px; margin-bottom: 5px; }
h1 { font-size: clamp(25px, 2.5vw, 30px); letter-spacing: -1px; margin-bottom: 5px; }
.intro .muted { font-size: 14px; }
.intro > .button { flex: 0 0 auto; }
.muted, .fine-print, .section-note { color: var(--muted); }
.fine-print { font-size: 12px; line-height: 1.6; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border: 1px solid transparent; border-radius: 8px; font-size: 14px; font-weight: 600; line-height: 1.5; white-space: nowrap; transition: background .18s, border-color .18s; }
.primary { color: #fff; background: var(--green); }
.primary:hover { background: #294b35; }
.secondary { background: #fff; border-color: var(--line); }
.secondary:hover { background: var(--olive); border-color: #bfcfbb; }
button:disabled { opacity: .55; cursor: wait; }
.text-button { padding: 5px 0; background: transparent; color: var(--green); font-size: 13px; line-height: 1.5; }
.text-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.overview { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; }
.card-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card-heading h2 { font-size: 17px; }
.status-pill, .sample-badge, .tiny-label { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-size: 12px; font-weight: 550; }
.status-pill { padding: 4px 10px; border-radius: 20px; background: var(--olive); white-space: nowrap; }
.status-pill::before { content: ""; width: 6px; height: 6px; background: #8b9785; border-radius: 50%; }
.status-pill.online::before { background: #548b44; box-shadow: 0 0 0 3px #548b4410; }
.status-pill.unavailable { color: #846044; background: #f8f0e8; }
.status-pill.unavailable::before { background: #ac825e; }
.tiny-label { color: var(--muted); white-space: nowrap; }
.motd { color: var(--muted); font-size: 14px; margin-top: 6px; white-space: normal; }
.server-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 18px 0; }
.server-metrics > div { padding: 0 20px; border-left: 1px solid var(--line); min-width: 0; }
.server-metrics > div:first-child { padding-left: 0; border: 0; }
.server-metrics span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.server-metrics strong { display: block; font-size: 20px; font-weight: 650; line-height: 1.4; letter-spacing: -.4px; overflow-wrap: anywhere; }
.server-metrics small { font-size: 13px; font-weight: 400; }
.server-address { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #f1f5ed; border: 1px solid #e1e9da; border-radius: 9px; padding: 10px 12px; }
.server-address > div { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.server-address span { font-size: 13px; color: var(--muted); }
.server-address code { font-size: 19px; font-weight: 700; letter-spacing: -.5px; }
.server-address .button { min-height: 36px; padding: 6px 12px; font-size: 13px; }
.server-address .button span { color: inherit; font-size: 16px; }
.status-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; margin-top: 10px; color: var(--muted); font-size: 12px; }
.player-list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 10px; font-size: 14px; }
.player-chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px 5px 6px; background: #fafbf8; font-size: 13px; max-width: 100%; min-width: 0; }
.player-chip > span:last-child { overflow-wrap: anywhere; min-width: 0; }
.player-chip .avatar { width: 25px; height: 25px; font-size: 13px; border: 0; border-radius: 5px; }
.player-chip img { width: 24px; height: 24px; border-radius: 4px; image-rendering: pixelated; }
.welcome-panel { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; }
.welcome-panel > div { min-width: 0; }
.welcome-panel h3 { font-size: 14px; overflow-wrap: anywhere; }
.welcome-panel p { color: var(--muted); font-size: 13px; margin-top: 3px; }
.welcome-panel .text-button { flex: 0 0 auto; }
.connection-note { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; color: var(--muted); font-size: 13px; }
.connection-note > span { color: var(--green); }
.connection-note strong { font-weight: 550; color: var(--ink); }
.section { padding-top: 30px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 14px; }
.section-heading h2 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; font-size: 20px; }
.section-heading h2 span { font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.section-note { font-size: 13px; }
.downloads-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.download-grid { display: grid; gap: 12px; min-width: 0; }
.download-card { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 8px 12px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); min-width: 0; }
.download-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--olive); color: var(--green); font-size: 23px; }
.download-content { min-width: 0; }
.download-card h3 { font-size: 15px; font-weight: 650; overflow-wrap: anywhere; }
.download-card p { color: var(--muted); font-size: 14px; margin-top: 5px; }
.file-meta { grid-column: 2; display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--muted); font-size: 12px; }
.download-link { grid-column: 2; justify-self: start; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--green); padding: 3px 0; }
.download-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.sample-badge { width: fit-content; border-radius: 5px; background: var(--olive); padding: 2px 7px; margin-bottom: 5px; }
.guide { padding: 16px 20px; background: #f0f3ec; border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.guide h3 { font-size: 15px; margin-bottom: 7px; }
.guide details + details { border-top: 1px solid #dfe6d9; }
summary { cursor: pointer; color: var(--ink); font-size: 14px; padding: 8px 0; }
summary::marker { color: #70836a; font-size: 11px; }
summary span { color: #73836b; margin-right: 8px; font-size: 12px; font-variant-numeric: tabular-nums; }
.guide details p { color: var(--muted); font-size: 13px; padding: 0 0 10px 18px; }
.feed-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; border-bottom: 1px solid var(--line); margin-bottom: 16px; padding-bottom: 10px; }
.feed-tabs { display: flex; gap: 4px; }
.feed-tabs button { background: transparent; color: var(--muted); border-radius: 7px; padding: 7px 12px; font-size: 14px; }
.feed-tabs button.active, .feed-tabs button[aria-pressed="true"] { background: #e7eedf; color: var(--green); font-weight: 650; }
.feed-tabs button:hover { background: var(--olive); }
.feed-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.post-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); min-width: 0; transition: border-color .18s; }
.post-card:hover { border-color: #bfcfba; }
.post-image-button { display: block; width: 100%; padding: 0; overflow: hidden; background: #edf0e7; }
.post-image-button img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .25s; }
.post-image-button:hover img { transform: scale(1.025); }
.post-main { padding: 14px 16px 10px; min-width: 0; }
.post-author { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.post-author strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
.post-author .avatar { width: 24px; height: 24px; font-size: 12px; }
.post-timestamp { margin-left: auto; font-size: 12px; white-space: nowrap; }
.post-open { padding: 0; background: transparent; text-align: left; color: inherit; }
.post-title { display: block; font-size: 16px; font-weight: 650; line-height: 1.45; margin-bottom: 6px; overflow-wrap: anywhere; }
.post-open:hover { color: var(--green); }
.post-body { color: var(--muted); font-size: 14px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-body:empty { display: none; }
.post-actions, .detail-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.post-actions { border-top: 1px solid #edf0e9; margin-top: 10px; padding-top: 5px; }
.like-button { background: transparent; color: var(--muted); padding: 5px 0; font-size: 13px; line-height: 1.5; }
.like-button:hover, .like-button[aria-pressed="true"] { color: var(--green); }
.text-post { border-top: 3px solid #b6c9aa; }
.text-post .post-body { -webkit-line-clamp: 6; }
.empty-state, .message { grid-column: 1 / -1; padding: 24px 18px; text-align: center; border: 1px dashed #cbd8c2; background: #f1f5ec; border-radius: 12px; color: var(--muted); font-size: 14px; }
.load-more { display: flex; justify-content: center; }
.load-more:has(button:not([hidden])) { margin-top: 22px; }
footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 20px; margin-top: 32px; padding: 20px 0 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-brand { font-weight: 700; color: var(--ink); font-size: 15px; }
.footer-brand span { margin-left: 6px; font-size: 13px; font-weight: 400; color: var(--muted); }
dialog { width: min(540px, calc(100vw - 32px)); max-width: calc(100vw - 32px); max-height: 90vh; max-height: 90dvh; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); color: var(--ink); overflow-y: auto; box-shadow: 0 24px 100px #18221330; }
dialog::backdrop { background: #1c281d66; backdrop-filter: blur(4px); }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 16px; }
.dialog-heading h2 { font-size: 20px; }
.close-button { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; padding: 0; border-radius: 50%; background: #f0f4eb; color: var(--muted); font-size: 24px; }
.close-button:hover { background: #e2eadb; }
form label { display: block; font-size: 14px; font-weight: 600; margin: 14px 0 6px; }
form label .muted { font-size: 12px; font-weight: 400; margin-left: 4px; }
input, textarea { width: 100%; min-width: 0; background: #fafbf8; border: 1px solid #d9e1d3; border-radius: 8px; color: var(--ink); padding: 10px 12px; font-size: 16px; }
textarea { resize: vertical; min-height: 80px; }
input::placeholder, textarea::placeholder { color: #7b8677; }
input[type="file"] { font-size: 13px; }
input[type="file"]::file-selector-button { padding: 7px 10px; margin-right: 8px; border: 0; background: var(--olive); border-radius: 5px; color: var(--green); cursor: pointer; }
.upload-label { border: 1px dashed #bdcfb5; border-radius: 9px; background: #f4f7ef; padding: 12px; cursor: pointer; }
.upload-label strong { color: var(--green); font-size: 14px; }
.upload-label span { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; font-weight: 400; }
#image-hint { margin-top: 7px; }
#image-status:not(:empty) { margin-top: 7px; }
#upload-preview { margin-top: 12px; }
#preview-image { max-height: 220px; margin: auto; border-radius: 9px; object-fit: contain; }
.form-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.form-actions .button { margin-left: auto; }
.form-error { color: #a44430; font-size: 13px; margin-top: 8px; white-space: pre-line; }
.form-error:empty { display: none; }
#nickname-form > .fine-print { margin: 8px 0 16px; }
#nickname-form > .button { width: 100%; }
.post-dialog { width: min(780px, calc(100vw - 32px)); }
.detail-image { width: 100%; max-height: 62vh; object-fit: contain; background: #f3f5ee; border-radius: 9px; margin-bottom: 16px; }
#detail-title { font-size: 22px; margin: 10px 0; overflow-wrap: anywhere; }
.detail-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 13px; margin: 10px 0; }
.detail-body { white-space: pre-wrap; font-size: 15px; line-height: 1.7; margin: 16px 0; }
.detail-body:empty { display: none; }
.detail-actions { padding-top: 10px; border-top: 1px solid var(--line); }
.comments-section { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 18px; }
.comments-section h3 { font-size: 16px; margin-bottom: 12px; }
.comment { padding: 12px 0; border-bottom: 1px solid var(--line); }
.comment-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--muted); }
.comment-top strong { color: var(--ink); }
.comment-body { white-space: pre-wrap; margin-top: 5px; font-size: 14px; }
.toast { position: fixed; z-index: 50; bottom: 24px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); padding: 12px 20px; color: #fff; background: #2e4c35; border-radius: 9px; box-shadow: 0 8px 30px #24321b25; font-size: 14px; text-align: center; }
@media (max-width: 1000px) {
  .header-inner { gap: 28px; }
  .overview { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .panel { padding: 18px; }
  .server-metrics > div { padding: 0 12px; }
  .welcome-panel { align-items: flex-start; }
  .feed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 760px) {
  .header-inner, main { width: calc(100% - 40px); }
  .header-inner { gap: 20px; }
  nav { gap: 16px; }
  .visitor-button { max-width: 160px; }
  .overview, .downloads-body { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .welcome-panel { margin-top: 12px; padding-top: 12px; }
  .player-list { margin-top: 12px; }
  .section { padding-top: 26px; }
}
@media (max-width: 560px) {
  .header-inner, main { width: calc(100% - 32px); }
  .header-inner { min-height: 0; padding: 14px 0 0; flex-wrap: wrap; gap: 12px; }
  .brand { font-size: 20px; gap: 8px; }
  .brand-icon { width: 34px; height: 34px; }
  .brand-icon svg { width: 24px; height: 24px; }
  .visitor-button { max-width: 45%; padding-left: 0; }
  nav { order: 3; width: 100%; justify-content: space-between; gap: 10px; font-size: 14px; border-top: 1px solid var(--line); }
  nav a { padding: 10px 0; }
  .intro { align-items: flex-start; flex-wrap: wrap; gap: 14px; padding: 22px 0 18px; }
  h1 { font-size: 26px; }
  .intro > .button { min-height: 36px; padding: 6px 12px; font-size: 13px; }
  .panel { padding: 16px; }
  .server-metrics { margin: 16px 0; }
  .server-metrics > div { padding: 0 10px; }
  .server-metrics strong { font-size: 19px; }
  .server-address { padding: 8px 10px; gap: 8px; }
  .server-address > div { gap: 2px 8px; }
  .server-address code { font-size: 18px; }
  .server-address .button { padding: 6px 10px; }
  .status-footer { gap: 2px 8px; }
  .connection-note { font-size: 12px; }
  .section-heading h2 { font-size: 19px; }
  .section-heading h2 span { font-size: 12px; }
  .section-note { font-size: 12px; }
  .section-heading .button { padding: 7px 12px; font-size: 13px; min-height: 36px; }
  .download-card { padding: 16px; gap: 7px 10px; }
  .guide { padding: 14px 16px; }
  .feed-toolbar { gap: 6px; }
  .feed-tabs button { font-size: 13px; padding: 7px 9px; }
  .feed-toolbar > .text-button { margin-left: auto; font-size: 12px; }
  .feed-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .post-main { padding: 12px 14px 8px; }
  dialog { padding: 20px 16px; border-radius: 12px; }
  .dialog-heading h2 { font-size: 19px; }
  #detail-title { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
