/* Hotel Night Shift forum: "the staff break room". Same night-hotel world as the front page:
   navy walls, one warm lamp, the green of an exit sign, and a colour per section like door plates. */
:root {
  --night: #070912; --wall: #0d1122; --panel: #131830; --raise: #1a2040; --line: #232a4a;
  --text: #eceef7; --muted: #9aa3c2; --lamp: #f6b93b; --lamp-soft: #ffd98a; --exit: #2bd47d; --purple: #a974ff; --bellhop: #e5484d; --blurple: #5865f2;
  --display: "Fraunces", Georgia, serif; --body: "Manrope", "Segoe UI", system-ui, sans-serif; --mono: "JetBrains Mono", Consolas, monospace;
  --accent: var(--lamp);
  --maxw: 1160px; --gutter: clamp(16px, 4vw, 40px);
}
.c-announcements { --accent: #f6b93b; }
.c-general { --accent: #6aa8ff; }
.c-guides { --accent: #2bd47d; }
.c-crews { --accent: #a974ff; }
.c-suggestions { --accent: #ff9a3d; }
.c-bugs { --accent: #e5484d; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--text); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--lamp); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(28px, 4.2vw, 42px); }
h2 { font-size: 20px; }
h1 em { font-style: italic; font-weight: 600; color: var(--lamp-soft); }
p { margin: 0 0 12px; }
dl, dd { margin: 0; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 2px; border-radius: 4px; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 18px; padding: 10px var(--gutter); background: rgb(7 9 18 / .86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font: 800 18px var(--display); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 9px; }
.brand em { font-style: italic; font-weight: 600; color: var(--lamp-soft); }
.find { flex: 1; max-width: 340px; margin-left: 8px; }
.find input { width: 100%; background: var(--wall); border: 1px solid var(--line); border-radius: 99px; color: var(--text); font: inherit; font-size: 14.5px; padding: 8px 16px; }
.find input:focus { border-color: var(--lamp); outline: 0; }
.top nav { display: flex; align-items: center; gap: 18px; margin-left: auto; font-size: 14.5px; }
.top nav a { color: var(--muted); }
.top nav a:hover { color: var(--text); text-decoration: none; }
.top nav .play { color: var(--exit); font-weight: 700; }
.me { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.me img { border-radius: 50%; }
.me b { max-width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- buttons, tags ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: 700 15px/1 var(--body); cursor: pointer; white-space: nowrap; transition: transform .12s, border-color .15s, background-color .15s, box-shadow .2s; }
.btn:hover { border-color: var(--lamp); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--exit); border-color: var(--exit); color: #04130b; }
.btn.primary:hover { background: #45e692; box-shadow: 0 0 26px -6px var(--exit); }
.btn.discord { background: var(--blurple); border-color: var(--blurple); color: #fff; }
.btn.discord:hover { background: #6d78f7; box-shadow: 0 0 26px -6px var(--blurple); }
.btn.ghost { background: transparent; }
.btn.small { padding: 8px 14px; font-size: 13.5px; }
button.link { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: 13.5px; cursor: pointer; }
button.link:hover { color: var(--text); text-decoration: underline; }
.tag { display: inline-block; padding: 0 8px; border-radius: 99px; border: 1px solid var(--line); background: var(--wall); font: 600 11px/1.75 var(--mono); color: var(--muted); vertical-align: middle; white-space: nowrap; }
.tag.pin { border-color: var(--lamp); color: var(--lamp); }
.badge { display: inline-block; padding: 0 8px; border-radius: 6px; background: var(--wall); border: 1px solid var(--line); font: 600 11px/1.75 var(--mono); color: var(--muted); white-space: nowrap; vertical-align: middle; }
.badge.staff { border-color: var(--purple); color: var(--purple); background: rgb(169 116 255 / .10); }
.badge.owner { border-color: var(--lamp); color: var(--lamp); background: rgb(246 185 59 / .10); }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; border-bottom: 1px solid var(--line); background: var(--wall); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("/hero.jpg") right 22% / cover no-repeat; opacity: .55; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--night) 0%, rgb(7 9 18 / .94) 38%, rgb(7 9 18 / .35) 100%), linear-gradient(0deg, var(--night), transparent 45%); }
.hero > div { max-width: var(--maxw); margin: 0 auto; padding: clamp(36px, 6vw, 76px) var(--gutter) clamp(28px, 4vw, 48px); }
.kicker { display: flex; align-items: center; gap: 9px; font: 600 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--lamp); margin-bottom: 14px; }
.rec { width: 9px; height: 9px; border-radius: 50%; background: var(--bellhop); box-shadow: 0 0 10px var(--bellhop); animation: blink 1.4s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.hero h1 { font-size: clamp(38px, 6vw, 68px); max-width: 12em; }
.hero h1 em { color: var(--purple); }
.hero p:not(.kicker) { color: #c6cbe0; max-width: 34em; font-size: 17.5px; margin-top: 16px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.strip { display: flex; flex-wrap: wrap; gap: 10px 36px; margin-top: 34px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / .12); }
.strip dt { font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.strip dd { font: 800 26px/1.25 var(--display); font-variant-numeric: tabular-nums; }
.strip .green { color: var(--exit); }

/* ---------- layout ---------- */
main { max-width: var(--maxw); margin: 0 auto; padding: clamp(22px, 4vw, 40px) var(--gutter); }
main.narrow { max-width: 780px; }
main.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
aside { display: grid; gap: 16px; position: sticky; top: 76px; }
aside .card { margin: 0; }
aside .btn { width: 100%; }
footer { border-top: 1px solid var(--line); margin-top: 20px; }
footer div { max-width: var(--maxw); margin: 0 auto; padding: 24px var(--gutter) 40px; color: var(--muted); font-size: 13.5px; }
footer b { color: var(--text); }
h2.section { font: 600 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 6px 0 12px; }
h2.section:not(:first-child) { margin-top: 30px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 18px; }
.card h2 { margin-bottom: 12px; }
.card.flush { padding: 6px 20px; }
.center { text-align: center; padding: 56px 20px; }
.center h1 { margin-bottom: 10px; }
.empty { color: var(--muted); padding: 22px 0; text-align: center; margin: 0; }
.discord-card { background: linear-gradient(160deg, rgb(88 101 242 / .22), var(--panel) 60%); border-color: rgb(88 101 242 / .5); }

/* ---------- sections (door plates) ---------- */
.cats { display: grid; gap: 10px; }
.cat { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 16px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px; padding: 16px 18px; color: var(--text); transition: background-color .15s, transform .15s, border-color .15s; }
.cat:hover { background: var(--raise); text-decoration: none; transform: translateX(3px); }
.ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, transparent); }
.ico svg { width: 26px; height: 26px; }
.cat h3 { font-size: 19px; }
.cat p { color: var(--muted); font-size: 14.5px; margin: 2px 0 0; }
.cat .last { font-size: 13px; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat .last b { color: var(--text); font-weight: 500; }
.cat .n { text-align: center; font: 12px var(--mono); color: var(--muted); }
.cat .n b { display: block; font: 800 24px/1.1 var(--display); color: var(--text); }

/* ---------- thread lists ---------- */
.threads { list-style: none; margin: 0; padding: 0; }
.threads li { display: grid; grid-template-columns: 42px minmax(0, 1fr) 4.5em 5.5em; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.threads li:first-child { border-top: 0; }
.threads img, .noavatar { width: 42px; height: 42px; border-radius: 50%; background: var(--wall); box-shadow: 0 0 0 2px var(--accent); }
.threads .title { display: block; color: var(--text); font-weight: 700; font-size: 16.5px; overflow-wrap: anywhere; }
.threads .title:hover { color: var(--lamp-soft); text-decoration: none; }
.threads small { color: var(--muted); font-size: 13px; }
.threads .in { color: var(--accent); margin-left: 4px; }
.threads .count { text-align: center; font: 11.5px var(--mono); color: var(--muted); }
.threads .count b { display: block; font: 800 19px/1.1 var(--display); color: var(--text); }
.threads .when { color: var(--muted); font-size: 13px; text-align: right; white-space: nowrap; }

.posters { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: place; }
.posters li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.posters img { border-radius: 50%; }
.posters b { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.posters span:last-child { font: 12px var(--mono); color: var(--muted); }
.posters li:first-child img { box-shadow: 0 0 0 2px var(--lamp); }

/* ---------- section and thread pages ---------- */
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.crumbs span { opacity: .5; margin: 0 4px; }
.head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.head > div:first-of-type, .head > div:only-child { flex: 1; min-width: 240px; }
.head .muted { margin: 6px 0 0; }
.thread-head { border-left: 3px solid var(--accent); padding-left: 16px; }
.tools { display: flex; gap: 8px; }
.notice { background: rgb(246 185 59 / .09); border: 1px solid rgb(246 185 59 / .45); border-radius: 10px; padding: 12px 16px; }
.pager { display: flex; justify-content: space-between; margin: 0 0 18px; }

.posts { display: grid; gap: 12px; margin-bottom: 18px; }
.post { display: grid; grid-template-columns: 150px minmax(0, 1fr); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; scroll-margin-top: 80px; }
.post.op { border-color: color-mix(in srgb, var(--lamp) 45%, var(--line)); }
.post:target { box-shadow: 0 0 0 2px var(--lamp); }
.who { display: grid; justify-items: center; align-content: start; gap: 6px; padding: 20px 12px; background: var(--wall); border-right: 1px solid var(--line); text-align: center; }
.who img { border-radius: 50%; width: 64px; height: 64px; }
.who b { font-size: 15px; overflow-wrap: anywhere; line-height: 1.25; }
.who small { color: var(--muted); font: 12px var(--mono); }
.say { padding: 16px 20px; display: flex; flex-direction: column; min-width: 0; }
.say header { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.say p { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 14px; font-size: 16.5px; flex: 1; }
.say footer { display: flex; align-items: center; gap: 16px; padding-top: 12px; border-top: 1px solid var(--line); margin: 0; }
.like { background: var(--wall); border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; color: var(--muted); font: 600 13px var(--body); cursor: pointer; transition: color .15s, border-color .15s; }
button.like:hover, .like.on { color: var(--bellhop); border-color: var(--bellhop); }
.like.off { cursor: default; }

.compose { display: grid; gap: 10px; }
.compose h1 { font-size: 28px; margin-bottom: 8px; }
.replybox { grid-template-columns: 48px minmax(0, 1fr); gap: 16px; }
.replybox img { border-radius: 50%; }
.replybox > div { display: grid; gap: 10px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
label { font-weight: 700; }
textarea, .compose input:not([type="hidden"]) { width: 100%; background: var(--wall); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font: inherit; padding: 12px 14px; }
textarea:focus, .compose input:focus { border-color: var(--lamp); outline: 0; }
textarea { resize: vertical; }
.compose .btn { justify-self: start; }

@media (max-width: 920px) {
  main.split { grid-template-columns: 1fr; }
  aside { position: static; }
  .top nav a:not(.play) { display: none; }
}
@media (max-width: 640px) {
  .brand span { display: none; }
  .find { margin-left: 0; }
  .me b { display: none; }
  .hero::after { background: linear-gradient(0deg, var(--night) 10%, rgb(7 9 18 / .78)); }
  .cat { grid-template-columns: 44px minmax(0, 1fr); }
  .cat .n { display: none; }
  .ico { width: 44px; height: 44px; }
  .threads li { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .threads img, .noavatar { width: 36px; height: 36px; }
  .threads .when { display: none; }
  .post { grid-template-columns: 1fr; }
  .who { grid-template-columns: 40px minmax(0, 1fr) auto; justify-items: start; align-items: center; text-align: left; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); gap: 2px 12px; }
  .who img { width: 40px; height: 40px; grid-row: span 2; }
  .who small { grid-column: 3; grid-row: 1 / span 2; }
  .btn { width: 100%; }
  .btn.small, .tools .btn, .top .btn { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rec { animation: none; }
  .btn, .cat { transition: none; }
}

/* ---------- votes, statuses, filters ---------- */
.st-planned, .st-confirmed { border-color: #6aa8ff; color: #6aa8ff; }
.st-progress { border-color: var(--lamp); color: var(--lamp); }
.st-done, .st-fixed { border-color: var(--exit); color: var(--exit); }
.st-declined, .st-notbug { border-color: var(--muted); color: var(--muted); }
.votes { color: var(--exit); font-weight: 700; }
.by { color: inherit; }
.by:hover { color: var(--lamp-soft); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; align-items: center; }
.filters span { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.chip { padding: 5px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: 13.5px; font-weight: 500; }
.chip:hover { color: var(--text); text-decoration: none; border-color: var(--muted); }
.chip.on { background: var(--lamp); border-color: var(--lamp); color: #1a1200; font-weight: 700; }
.votebox { display: grid; justify-items: center; gap: 6px; padding: 10px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; min-width: 92px; }
.votebox > b { font: 800 30px/1 var(--display); font-variant-numeric: tabular-nums; }
.votebox.on { border-color: var(--exit); }
.votebox.on > b { color: var(--exit); }
.status { display: flex; gap: 6px; }
select { background: var(--wall); border: 1px solid var(--line); border-radius: 9px; color: var(--text); font: inherit; font-size: 14px; padding: 6px 10px; }
.tools { flex-wrap: wrap; align-items: center; }
.who .rbx { font-family: var(--body); }

/* ---------- profiles, boards, updates, appeals ---------- */
.profile { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 22px; align-items: center; }
.profile > img { border-radius: 50%; box-shadow: 0 0 0 3px var(--lamp); }
.profile h1 { margin-bottom: 8px; }
.profile .strip { grid-column: 1 / -1; margin-top: 4px; }
.xp { display: grid; grid-template-columns: auto minmax(80px, 240px) auto; gap: 10px; align-items: center; font: 12px var(--mono); color: var(--muted); }
meter { width: 100%; height: 8px; appearance: none; border: 0; border-radius: 99px; background: var(--line); overflow: hidden; }
meter::-webkit-meter-bar { background: var(--line); border: 0; border-radius: 99px; height: 8px; }
meter::-webkit-meter-optimum-value { background: var(--lamp); border-radius: 99px; }
meter::-moz-meter-bar { background: var(--lamp); border-radius: 99px; }
.gbadges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 14px; text-align: center; }
.gbadges img, .gbadges li > span { width: 72px; height: 72px; border-radius: 50%; display: block; margin: 0 auto 6px; background: var(--wall); }
.gbadges small { color: var(--muted); font-size: 12px; line-height: 1.3; display: block; }
.gbadges .not img { filter: grayscale(1) brightness(.45); }
.gbadges .got small { color: var(--text); }
.settings { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.settings h2 { margin-bottom: 4px; }
.settings p { margin: 0; }
.boards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.board h2 { margin-bottom: 2px; }
.board ol { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.board li { display: grid; grid-template-columns: 26px 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.board li img, .board .noavatar { width: 36px; height: 36px; border-radius: 50%; box-shadow: none; background: var(--wall); }
.board li a { color: var(--text); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board li b { font: 12px var(--mono); color: var(--muted); }
.place { font: 800 16px var(--display); color: var(--muted); text-align: center; }
.place.p1 { color: var(--lamp); } .place.p2 { color: #cfd4e6; } .place.p3 { color: #d08a4e; }
.update header { font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--lamp); margin-bottom: 10px; }
.update h3 { font-size: 22px; margin-bottom: 8px; }
.update p { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 8px; }
.ban { background: var(--wall); border-left: 3px solid var(--bellhop); border-radius: 0 8px 8px 0; padding: 10px 14px; white-space: pre-wrap; color: var(--muted); }
@media (max-width: 920px) { .boards { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .profile { grid-template-columns: 72px minmax(0, 1fr); } .profile > img { width: 72px; height: 72px; } .xp { grid-template-columns: 1fr; } }

.strip.flat { margin: 0; padding: 0; border: 0; }
.boards + h2.section { margin-top: 30px; }
.board .noavatar { display: none; }
.board li:has(.noavatar) { grid-template-columns: 26px minmax(0, 1fr) auto; }

/* ---------- screenshots ---------- */
.file { display: grid; gap: 6px; font-weight: 700; }
.file small { font-weight: 400; }
.file input { font: inherit; font-size: 14px; color: var(--muted); }
.file input::file-selector-button { font: 700 13.5px var(--body); background: var(--wall); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; margin-right: 10px; cursor: pointer; }
.shot { display: block; margin: 0 0 14px; }
.shot img { max-height: 420px; border-radius: 10px; border: 1px solid var(--line); display: block; }
.pending { font-size: 13.5px; color: var(--muted); background: var(--wall); border-radius: 8px; padding: 8px 12px; flex: none !important; }
