:root {
  --night: #15151b; --night-2: #202029; --paper: #f3f0e7; --ink: #16171c;
  --muted: #666760; --line: #c9c6bc; --lime: #bbff2e; --coral: #ff6e4a;
  --blue: #69b7ff; --yellow: #ffda3e; --display: "Arial Black", "Pretendard Variable", Pretendard, sans-serif;
  --body: "Pretendard Variable", Pretendard, "Noto Sans KR", Arial, sans-serif;
  color: var(--ink); background: var(--paper); font-family: var(--body);
}
* { box-sizing: border-box; }
html { background: var(--night); scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; background: var(--paper); }
button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.lobby-shell { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; padding: 11px 16px; color: var(--night); background: var(--lime); font-weight: 900; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
:where(a, button, input, textarea, select):focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.eyebrow, .aside-label { margin: 0; color: var(--coral); font: 900 10px/1.2 "IBM Plex Mono", Consolas, monospace; letter-spacing: .12em; }

.lobby-header { position: sticky; top: 0; z-index: 30; color: #f8f7f1; border-bottom: 1px solid #3b3c45; background: rgb(21 21 27 / .96); backdrop-filter: blur(12px); }
.header-inner { min-height: 64px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.brand { justify-self: start; min-height: 44px; display: inline-flex; align-items: center; gap: 11px; font: 900 18px var(--display); }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; color: var(--night); background: var(--yellow); font-size: 9px; transform: rotate(-5deg); }
.header-channel { color: #a6a8af; font: 800 10px "IBM Plex Mono", Consolas, monospace; letter-spacing: .12em; }
.header-channel i { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgb(187 255 46 / .1); }
.account-link { justify-self: end; min-height: 42px; display: inline-flex; align-items: center; padding: 0 15px; border: 1px solid #454650; color: #efeee9; font-size: 11px; font-weight: 850; }
.account-link:hover { color: var(--night); border-color: var(--lime); background: var(--lime); }

.lobby-hero { position: relative; overflow: hidden; color: #f8f7f1; background: var(--night); }
.hero-grid { position: absolute; inset: 0; opacity: .32; background-image: linear-gradient(#33343d 1px, transparent 1px), linear-gradient(90deg, #33343d 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(to right, #000, transparent 78%); }
.hero-inner { position: relative; min-height: 430px; display: grid; align-content: center; padding: 62px 0 56px; }
.lobby-hero h1 { margin: 18px 0 42px; display: flex; color: var(--paper); font: 900 clamp(80px, 14vw, 178px)/.72 var(--display); letter-spacing: -.08em; }
.lobby-hero h1 span:last-child { color: var(--night); -webkit-text-stroke: 2px var(--lime); transform: translateX(-4px); }
.hero-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; align-items: end; padding-top: 22px; border-top: 1px solid #40414a; }
.hero-bottom p { margin: 0; color: #a9abb3; font-size: 17px; line-height: 1.55; }
.hero-bottom p b { color: #f8f7f1; }
.hero-bottom > div { justify-self: end; min-width: 320px; padding: 17px 20px; color: var(--night); background: var(--lime); transform: rotate(-1deg); }
.hero-bottom span { display: block; margin-bottom: 8px; font: 850 9px "IBM Plex Mono", Consolas, monospace; letter-spacing: .1em; }
.hero-bottom strong { font-size: 14px; line-height: 1.45; }
.signal-strip { overflow: hidden; height: 38px; color: var(--night); background: var(--yellow); font: 900 12px/38px var(--display); white-space: nowrap; }
.signal-strip span { display: inline-block; min-width: max-content; animation: crawl 24s linear infinite; }
@keyframes crawl { to { transform: translateX(-50%); } }

.room-nav { position: sticky; z-index: 20; top: 64px; border-bottom: 2px solid var(--ink); background: var(--paper); }
.room-scroll { display: flex; overflow-x: auto; scrollbar-width: none; }
.room-scroll::-webkit-scrollbar { display: none; }
.room-scroll button { flex: 0 0 auto; min-height: 56px; padding: 0 20px; border: 0; border-right: 1px solid var(--line); color: var(--muted); background: transparent; font-size: 12px; font-weight: 850; }
.room-scroll button:first-child { border-left: 1px solid var(--line); }
.room-scroll button:hover { color: var(--ink); background: #e7e3d8; }
.room-scroll button.is-active { color: var(--paper); background: var(--ink); }

.lobby-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 0 54px; padding-top: 58px; padding-bottom: 100px; }
.feed-column { min-width: 0; }
.feed-heading { min-height: 76px; display: flex; align-items: start; justify-content: space-between; gap: 20px; border-bottom: 5px solid var(--ink); }
.feed-heading h2 { margin: 8px 0 0; font: 900 clamp(30px, 4vw, 46px)/1 var(--display); }
.write-jump { min-height: 44px; padding: 0 17px; border: 2px solid var(--ink); color: var(--paper); background: var(--ink); font-size: 12px; font-weight: 900; }
.write-jump:hover { color: var(--ink); background: var(--lime); }
.write-jump span { margin-left: 14px; }

.composer { margin-top: 22px; border: 2px solid var(--ink); background: #fbf9f2; box-shadow: 8px 8px 0 var(--ink); }
.composer form { padding: 24px; }
.composer-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.composer-head span { font: 850 9px "IBM Plex Mono", Consolas, monospace; letter-spacing: .12em; }
.composer-head h2 { margin: 6px 0 0; font: 900 24px var(--display); }
.composer-head strong { color: var(--muted); font-size: 11px; }
.kind-picker { margin: 0 0 13px; padding: 0; border: 0; }
.kind-picker legend { position: absolute; width: 1px; height: 1px; overflow: hidden; }
.kind-picker > div, .kind-filter { display: flex; flex-wrap: wrap; gap: 7px; }
.kind-picker button, .kind-filter button { min-height: 40px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 800; }
.kind-picker button.is-active, .kind-filter button.is-active { color: var(--ink); border-color: var(--ink); background: var(--yellow); }
.composer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.composer-grid label { display: grid; gap: 7px; }
.composer-grid label > span { color: var(--muted); font: 800 9px "IBM Plex Mono", Consolas, monospace; letter-spacing: .09em; }
.composer-grid i { font-style: normal; color: #999990; }
select, input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 0; color: var(--ink); background: var(--paper); }
select { min-height: 44px; padding: 0 12px; font-size: 12px; }
input { min-height: 54px; padding: 0 15px; font-size: 17px; font-weight: 850; }
textarea { min-height: 126px; padding: 14px 15px; resize: vertical; line-height: 1.7; }
.title-field, .body-field { display: block; margin-top: 10px; }
.composer-submit { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 14px; }
.composer-submit p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.composer-submit p.is-error { color: #c23920; }
.composer-submit p.is-ok { color: #267233; }
.composer-submit button { flex: 0 0 auto; min-height: 48px; padding: 0 19px; border: 0; color: var(--night); background: var(--lime); font-size: 12px; font-weight: 900; }
.composer-submit button:disabled { opacity: .55; cursor: wait; }

.login-gate { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; margin-top: 22px; padding: 17px 18px; border: 1px solid var(--ink); background: #fbf9f2; }
.login-gate > span { display: grid; place-items: center; width: 38px; height: 38px; color: var(--night); background: var(--yellow); font: 900 22px var(--display); transform: rotate(-5deg); }
.login-gate b { font-size: 13px; }
.login-gate p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.login-gate a { min-height: 42px; display: inline-flex; align-items: center; padding: 0 14px; color: var(--paper); background: var(--ink); font-size: 11px; font-weight: 850; }

.feed-tools { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--ink); }
.feed-tools > span { color: var(--muted); font-size: 10px; white-space: nowrap; }
.post-feed { border-bottom: 1px solid var(--ink); }
.feed-loading { min-height: 190px; display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--muted); font-size: 11px; }
.feed-loading i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); animation: blink 1s infinite alternate; }
.feed-loading i:nth-child(2) { animation-delay: .2s; }.feed-loading i:nth-child(3) { animation-delay: .4s; margin-right: 8px; }
@keyframes blink { to { opacity: .15; transform: translateY(-5px); } }
.post-card { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr); border-top: 1px solid var(--ink); background: var(--paper); transition: background .18s ease; }
.post-card:first-child { border-top: 0; }
.post-card:hover { background: #faf8f1; }
.post-index { padding: 24px 10px 20px 2px; color: #9b9a93; font: 800 11px "IBM Plex Mono", Consolas, monospace; }
.post-main { min-width: 0; padding: 20px 4px 20px 0; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
.post-badge { padding: 4px 7px; color: var(--ink); background: var(--blue); font-weight: 900; }
.post-badge.is-official { background: var(--lime); }
.post-meta time::before { content: "/"; margin-right: 7px; color: #aaa89f; }
.post-title { width: 100%; display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 0; border: 0; color: var(--ink); background: transparent; text-align: left; }
.post-title h3 { margin: 12px 0 0; font: 900 clamp(19px, 2.2vw, 25px)/1.25 var(--display); letter-spacing: -.02em; }
.post-title > span { flex: 0 0 auto; margin-top: 10px; font-size: 22px; transition: transform .18s ease; }
.post-title:hover > span { transform: translateX(5px); }
.post-body { display: -webkit-box; overflow: hidden; margin: 11px 0 0; color: #50514e; font-size: 13px; line-height: 1.7; white-space: pre-line; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.record-card { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 10px 18px; margin-top: 15px; padding: 16px 18px; overflow: hidden; border: 1px solid var(--ink); color: var(--paper); background: var(--night-2); }
.record-card::before { content: "VERIFIED"; position: absolute; right: -21px; top: 12px; padding: 3px 26px; color: var(--night); background: var(--lime); font: 900 8px "IBM Plex Mono", Consolas, monospace; transform: rotate(38deg); }
.record-card span { color: #a9abb3; font-size: 10px; }
.record-card strong { grid-row: 1 / span 2; grid-column: 2; align-self: center; padding-right: 26px; color: var(--lime); font: 900 24px var(--display); }
.record-card b { font-size: 13px; }
.post-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.post-actions button { min-height: 38px; padding: 0 11px; border: 1px solid var(--line); color: var(--muted); background: transparent; font-size: 11px; font-weight: 800; }
.post-actions button:hover, .post-actions button.is-active { color: var(--ink); border-color: var(--ink); background: var(--yellow); }
.post-actions .comment-open { margin-left: auto; }
.feed-empty, .feed-error { padding: 62px 20px; border-bottom: 1px solid var(--ink); text-align: center; }
.feed-empty > span { color: #b3b0a7; font: 900 38px var(--display); }
.feed-empty h3, .feed-error h3 { margin: 14px 0 0; font: 900 20px var(--display); }
.feed-empty p, .feed-error p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.feed-error button, .load-more { min-height: 44px; margin-top: 20px; padding: 0 17px; border: 1px solid var(--ink); background: transparent; font-size: 11px; font-weight: 850; }
.load-more { width: 100%; margin: 20px 0 0; }

.lobby-aside { padding-top: 76px; }
.aside-block { border-top: 5px solid var(--ink); }
.aside-block + .aside-block { margin-top: 42px; }
.aside-label { display: block; padding: 13px 0; color: var(--muted); border-bottom: 1px solid var(--line); }
.now-playing h2 { margin: 22px 0; font: 900 29px/1.05 var(--display); }
.now-playing a { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 9px; min-height: 54px; border-top: 1px solid var(--line); }
.now-playing a:last-child { border-bottom: 1px solid var(--line); }
.now-playing a span { color: #9b9a93; font: 800 10px "IBM Plex Mono", Consolas, monospace; }
.now-playing a b { font-size: 13px; }
.now-playing a i { color: var(--muted); font-size: 10px; font-style: normal; }
.now-playing a:hover b { text-decoration: underline; text-underline-offset: 4px; }
.lobby-rules ol { margin: 0; padding: 0; list-style: none; }
.lobby-rules li { display: grid; grid-template-columns: 30px 1fr; gap: 8px; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.5; }
.lobby-rules li b { color: var(--coral); font-family: "IBM Plex Mono", Consolas, monospace; }

.post-dialog { width: min(760px, calc(100% - 28px)); max-height: min(880px, calc(100dvh - 28px)); padding: 0; border: 2px solid var(--ink); color: var(--ink); background: var(--paper); box-shadow: 12px 12px 0 var(--ink); }
.post-dialog::backdrop { background: rgb(10 10 14 / .76); backdrop-filter: blur(4px); }
.dialog-shell > header { position: sticky; z-index: 2; top: 0; min-height: 52px; display: flex; align-items: center; justify-content: space-between; padding-left: 18px; color: var(--paper); background: var(--night); font: 800 9px "IBM Plex Mono", Consolas, monospace; letter-spacing: .1em; }
.dialog-shell > header button { width: 52px; height: 52px; border: 0; color: var(--paper); background: var(--coral); font-size: 28px; }
.detail-post { padding: 30px; }
.detail-post h2 { margin: 14px 0 0; font: 900 clamp(27px, 5vw, 42px)/1.08 var(--display); letter-spacing: -.035em; }
.detail-body { margin: 22px 0 0; font-size: 14px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--line); }
.detail-tools button, .report-box button { min-height: 40px; border: 1px solid var(--line); background: transparent; font-size: 10px; font-weight: 800; }
.detail-tools button { padding: 0 12px; }
.report-box { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-top: 12px; padding: 13px; border: 1px solid var(--line); background: #e9e5db; }
.report-box input { min-height: 42px; font-size: 11px; font-weight: 500; }
.report-box button { padding: 0 12px; color: var(--paper); background: var(--ink); }
.comments { padding: 0 30px 32px; }
.comments > h3 { margin: 0; padding: 18px 0; border-top: 4px solid var(--ink); font: 900 20px var(--display); }
.comment { padding: 14px 0; border-top: 1px solid var(--line); }
.comment.is-reply { margin-left: 34px; padding-left: 13px; border-left: 3px solid var(--yellow); }
.comment header { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.comment p { margin: 8px 0 0; font-size: 13px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-actions { display: flex; gap: 12px; margin-top: 8px; }
.comment-actions button { padding: 0; border: 0; color: var(--muted); background: transparent; font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
.comment-report-form { margin-top: 10px; }
.comment-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 15px; }
.comment-form textarea { min-height: 76px; }
.comment-form button { padding: 0 16px; border: 0; color: var(--night); background: var(--lime); font-size: 11px; font-weight: 900; }
.comment-form p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 10px; }
.comment-login { margin: 14px 0 0; padding: 13px; color: var(--muted); background: #e8e4da; font-size: 11px; text-align: center; }
.comment-login a { color: var(--ink); font-weight: 900; text-decoration: underline; }

footer { color: #a7a9b1; background: var(--night); }
footer > div { min-height: 120px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; font-size: 10px; }
footer > div > a { color: var(--paper); font: 900 18px var(--display); }
footer div div { display: flex; gap: 14px; }

@media (max-width: 920px) {
  .lobby-layout { grid-template-columns: 1fr; }
  .lobby-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding-top: 56px; }
  .aside-block + .aside-block { margin-top: 0; }
}
@media (max-width: 680px) {
  .lobby-shell { width: min(100% - 28px, 1240px); }
  .header-inner { min-height: 58px; grid-template-columns: 1fr auto; }
  .brand { font-size: 15px; }.brand-mark { width: 27px; height: 27px; }
  .header-channel { display: none; }.account-link { min-height: 40px; }
  .hero-inner { min-height: 380px; padding: 56px 0 44px; }
  .lobby-hero h1 { display: block; margin: 22px 0 38px; font-size: clamp(76px, 27vw, 118px); line-height: .65; }
  .lobby-hero h1 span { display: block; }.lobby-hero h1 span:last-child { transform: none; }
  .hero-bottom { grid-template-columns: 1fr; gap: 22px; }.hero-bottom > div { min-width: 0; justify-self: stretch; }
  .room-nav { top: 58px; }.room-scroll button { min-height: 52px; padding-inline: 15px; }
  .lobby-layout { padding-top: 42px; padding-bottom: 70px; }
  .feed-heading { min-height: 68px; }.feed-heading h2 { font-size: 30px; }
  .composer { box-shadow: 5px 5px 0 var(--ink); }.composer form { padding: 18px; }.composer-grid { grid-template-columns: 1fr; }
  .composer-submit { display: grid; }.composer-submit button { width: 100%; }
  .login-gate { grid-template-columns: auto 1fr; }.login-gate a { grid-column: 1 / -1; justify-content: center; }
  .feed-tools { display: block; padding: 17px 0; }.feed-tools > span { display: block; margin-top: 10px; }
  .kind-filter { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; scrollbar-width: none; }.kind-filter button { flex: 0 0 auto; }
  .post-card { grid-template-columns: 42px minmax(0, 1fr); }.post-index { font-size: 9px; }.post-main { padding-right: 0; }
  .record-card { grid-template-columns: 1fr; }.record-card strong { grid-row: auto; grid-column: auto; padding-right: 0; font-size: 21px; }
  .post-actions .comment-open { margin-left: 0; }
  .lobby-aside { grid-template-columns: 1fr; }
  .post-dialog { width: calc(100% - 14px); max-height: calc(100dvh - 14px); box-shadow: none; }
  .detail-post { padding: 22px 18px; }.comments { padding: 0 18px 24px; }.report-box { grid-template-columns: 1fr; }
  .comment-form { grid-template-columns: 1fr; }.comment-form button { min-height: 46px; }
  footer > div { grid-template-columns: 1fr; gap: 10px; padding: 28px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
