:root {
  color-scheme: dark;
  --bg: #100f0e;
  --panel: #191816;
  --field: #22211e;
  --line: #343028;
  --ink: #faf5eb;
  --muted: #bcb4a8;
  --gold: #f7c76e;
  --heading: Georgia, 'Times New Roman', serif;
  font: 15px/1.5 system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 320px; color: var(--ink); background: radial-gradient(ellipse at 80% 0%, #201911, transparent 52rem), var(--bg); }
[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; color: inherit; }
button:disabled { opacity: .55; cursor: wait; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
svg { display: block; width: 20px; height: 20px; flex: none; }
[data-icon] { display: inline-grid; place-items: center; flex: none; }
.skip { position: fixed; z-index: 5; top: 0; left: 1rem; transform: translateY(-130%); padding: .75rem; background: var(--panel); }
.skip:focus { transform: none; }
.layout { max-width: 1600px; margin: auto; display: grid; grid-template-columns: 226px minmax(0, 1fr); min-height: 100vh; }
.rail { position: sticky; top: 0; height: 100dvh; overflow: auto hidden; overflow-x: hidden; overflow-y: auto; background: #151311; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 12px; padding: 27px 17px 25px; border-bottom: 1px solid var(--line); }
.brand-mark { width: 43px; height: 43px; color: var(--gold); border: 1px solid #725026; border-radius: 12px; background: linear-gradient(140deg,#483017,#221a12); }
.brand-mark svg { width: 24px; height: 24px; }
.brand-name { display: block; font: 700 24px/1.05 var(--heading); white-space: nowrap; }
.brand-universe, .eyebrow { color: var(--gold); font-weight: 750; font-size: .68rem; letter-spacing: .16em; }
.brand-universe { display: block; margin-top: 6px; font-size: .58rem; }
.rail-inner { padding: 25px 14px 17px; display: flex; flex-direction: column; flex: 1; }
.menu-label { color: var(--muted); padding: 0 10px 12px; }
nav { display: grid; gap: 5px; }
nav button { border: 1px solid transparent; border-radius: 9px; background: transparent; padding: 11px 10px; display: flex; align-items: center; gap: 10px; text-align: left; color: var(--muted); font-weight: 640; }
nav button:hover { background: #27211a; color: var(--ink); }
nav button[aria-current="page"] { border-color: #684d28; color: var(--gold); background: linear-gradient(100deg,#382919,#221b14); }
.rail-foot { margin-top: auto; padding: 26px 10px 4px; }
.rail-foot p { font: italic 16px/1.4 var(--heading); color: #d2c2ac; margin: 8px 0 15px; }
.quiet, .icon-button { border: 1px solid var(--line); background: var(--field); border-radius: 8px; padding: 7px 10px; }
.quiet:hover, .icon-button:hover { border-color: #876736; }
.workspace { min-width: 0; padding: 0 26px 34px; }
.toolbar { min-height: 79px; display: flex; gap: 12px; align-items: center; }
.search { width: min(460px,100%); margin-right: auto; min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); display: flex; align-items: center; padding: 0 13px; gap: 9px; color: var(--muted); }
.search input { border: 0; background: transparent; min-width: 0; width: 100%; padding: 10px 0; color: var(--ink); outline-offset: 0; }
.gold { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid #ffd98b; border-radius: 9px; background: linear-gradient(175deg,#ffdc97,#eab451); color: #231707; font-weight: 780; padding: 9px 14px; white-space: nowrap; }
.gold:hover { background: #ffdfa1; }
.gold svg, .hero-link svg { width: 17px; height: 17px; }
.avatar { display: grid; place-items: center; flex: none; height: 38px; width: 38px; border-radius: 50%; background: #4a3023; border: 1px solid #745036; color: #ffdbab; font-weight: 780; }
.own-avatar { background: #3f2d19; color: var(--gold); border-color: #8c632d; }
.mode { border: 1px solid #594323; border-radius: 8px; color: #efd4a9; background: #241d14; margin: 0 0 14px; padding: 8px 13px; font-size: .84rem; }
.columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(252px, 312px); gap: 20px; align-items: start; }
main { min-width: 0; }
.hero { position: relative; isolation: isolate; min-height: 266px; overflow: hidden; display: flex; align-items: center; border-radius: 16px; border: 1px solid #624728; background: linear-gradient(90deg,#16110e 1%,#18110de8 25%,#24160d48 75%), radial-gradient(ellipse at 86% 29%,#a85c30,transparent 50%),#211a16; margin-bottom: 15px; }
.hero::before { position: absolute; inset: 0; z-index: -1; content: ''; background: linear-gradient(90deg,#100c0bed 0%,#100c0bc2 30%,#100c0b14 75%), url('./assets/hero.webp') center 49%/cover no-repeat; }
.hero-content { padding: 24px 30px; }
.hero-label { display: inline-block; }
.hero h1 { font: 700 clamp(3.1rem,6vw,5.35rem)/1 var(--heading); letter-spacing: -.055em; margin: 7px 0 10px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { max-width: 30ch; color: #f5e8d6; }
.hero-link, .text-button { display: inline-flex; align-items: center; gap: 6px; background: none; color: var(--gold); border: 0; padding: 0; font-weight: 700; }
.hero-link { margin-top: 17px; }
.text-button:hover, .hero-link:hover { text-decoration: underline; }
.text-button svg { width: 14px; height: 14px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 13px; }
.composer, .profile { padding: 15px; }
.compose-top { display: flex; gap: 11px; align-items: flex-start; }
.compose-top textarea { flex: 1; margin: 0; }
textarea, input:not([type="search"]) { display: block; width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid #484137; border-radius: 8px; background: var(--field); color: var(--ink); }
textarea { resize: vertical; }
.compose-foot { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.compose-foot .gold { margin-left: auto; }
.select-control { display: inline-flex; min-width: 0; max-width: 100%; align-items: center; gap: 5px; padding: 6px 8px; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; background: var(--field); }
.select-control svg { width: 15px; height: 15px; }
select { color: var(--ink); border: 0; background: var(--field); min-width: 0; max-width: 100%; }
.post-details { display: flex; gap: 12px; margin: 12px 0 0; }
.post-details label { flex: 1; min-width: 0; }
.project-fields { min-width: 0; margin: 14px 0 0; padding: 9px 12px 12px; border: 1px solid #5c4630; border-radius: 9px; background: #211a14; }
.project-fields legend { padding: 0 6px; font-weight: 750; color: var(--gold); }
.project-fields label { display: block; margin: 8px 0 0; font-size: .88rem; }
.project-selects { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.project-selects select { display: block; width: 100%; border: 1px solid #484137; border-radius: 8px; padding: 8px; margin-top: 5px; }
.project-fields textarea { font-size: .93rem; }
.project-sheet { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; border: 1px solid #574028; background: #574028; border-radius: 10px; overflow: hidden; margin: 12px 0; }
.project-sheet section { padding: 13px; background: #221b14; }
.project-sheet h3 { color: var(--gold); font-size: .9rem; margin: 0 0 5px; }
.project-sheet p { white-space: pre-wrap; font-size: .91rem; }
.project-sheet ul { list-style: none; padding: 0; margin: 0; font-size: .91rem; }
.project-sheet li + li { margin-top: 4px; }
.project-action { margin-top: 8px; }
.project-support { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 0 0 10px; }
.project-support .gold[aria-pressed="true"] { background: #382819; border-color: #98713e; color: var(--gold); }
.project-invite { background: linear-gradient(120deg,#322519,#191816); border-color: #654a2a; }
.project-invite h2 { margin: 7px 0 4px; }
.project-invite .text-button { margin-top: 9px; }
.playtest-summary, .playtest-form { margin-top: 12px; }
.playtest-form .gold, .playtest-summary .quiet, .playtest-summary .gold { margin-top: 10px; }
.playtest-instructions { white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0; padding: 10px; border-radius: 8px; background: var(--field); }
.playtest-people { max-height: 8rem; overflow: auto; margin: 8px 0; padding-left: 21px; }
label input:not([type="search"]), label textarea { margin-top: 5px; }
.filters { display: flex; overflow-x: auto; gap: 16px; border-bottom: 1px solid var(--line); margin: 13px 0; }
.filters button { display: flex; align-items: center; gap: 7px; flex: none; border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 9px 4px 10px; font-weight: 650; color: var(--muted); }
.filters button[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }
.filters svg { width: 16px; height: 16px; }
.post { margin-bottom: 12px; padding: 15px; overflow-wrap: anywhere; }
.post:target, .post.highlight { border-color: #9b7338; }
.post.highlight { margin-top: 12px; }
.post-header, .post-person { display: flex; align-items: center; gap: 10px; }
.post-header { justify-content: space-between; }
.post-meta, .muted { color: var(--muted); }
.post-meta { font-size: .81rem; }
.tag { display: inline-block; margin: 10px 0 0; border-radius: 5px; padding: 2px 7px; background: #392b1c; color: var(--gold); font-size: .76rem; }
.tag.project-stage { margin-left: 6px; background: #28332b; color: #c2e3bd; }
.post h2 { font-size: 1.19rem; margin-top: 7px; }
.post-body { margin: 9px 0 13px; white-space: pre-wrap; }
.post-image { display: block; width: 100%; max-height: 218px; object-fit: cover; object-position: center 55%; border-radius: 9px; margin-bottom: 10px; }
.event-date { display: block; color: var(--gold); font-size: .88rem; margin: 8px 0 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 5px 16px; border-top: 1px solid var(--line); padding-top: 8px; }
.action { display: inline-flex; align-items: center; gap: 5px; padding: 5px 0; border: 0; background: transparent; color: var(--muted); font-size: .88rem; }
.action:hover, .action[aria-pressed="true"] { color: var(--gold); }
.action svg { width: 16px; height: 16px; }
.comments { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.comment { margin-bottom: 9px; }
.comment p { white-space: pre-wrap; }
.comment-form { display: flex; gap: 8px; }
.comment-form .gold { padding-inline: 10px; }
.section-head { margin: 8px 0 16px; }
.section-head h1 { font: 700 clamp(2rem,4vw,3.15rem)/1.1 var(--heading); margin: 4px 0 7px; }
.profile label { display: block; margin-bottom: 13px; }
.empty { padding: 20px 15px; color: var(--muted); text-align: center; margin-top: 12px; }
.empty .text-button { margin-top: 9px; }
.widgets { display: grid; gap: 13px; }
.widget { padding: 14px; }
.widget header { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-bottom: 8px; }
.widget h2 { font-size: 1rem; }
.widget p { color: var(--muted); font-size: .84rem; }
.widget header .text-button { flex: none; font-size: .76rem; }
.welcome { display: flex; gap: 10px; align-items: center; border-color: #654a2a; background: linear-gradient(105deg,#342617,#1b1713); }
.widget-icon, .shortcut-icon { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; background: #34291e; color: var(--gold); border-radius: 9px; }
.shortcut { display: flex; width: 100%; align-items: center; gap: 9px; text-align: left; color: var(--ink); border: 0; background: transparent; border-radius: 8px; padding: 6px 0; overflow-wrap: anywhere; }
.shortcut:hover { color: var(--gold); }
.shortcut strong, .shortcut small { display: block; }
.shortcut small { color: var(--muted); }
.community-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.community-card { padding: 15px; }
.community-card h2 { font-size: 1rem; margin: 8px 0 3px; }
.community-card p { color: var(--muted); margin-bottom: 10px; }
.community-card .quiet { margin: 0 8px 6px 0; }
.community-card button[aria-pressed="true"] { border-color: #866435; color: var(--gold); }
dialog { width: min(440px,calc(100% - 26px)); color: var(--ink); background: var(--panel); border: 1px solid #70502d; border-radius: 15px; padding: 22px; }
dialog::backdrop { background: #090806ce; }
.gameplay-dialog { width: min(900px,calc(100% - 26px)); }
.gameplay-dialog video { display: block; width: 100%; max-height: 68vh; aspect-ratio: 16 / 9; background: #0e0c0b; border-radius: 9px; margin-top: 13px; }
.gameplay-dialog a { text-decoration: underline; }
dialog h2 { font: 700 1.9rem/1.15 var(--heading); margin: 6px 0; }
dialog label { display: block; margin-top: 12px; }
.close { position: absolute; right: 13px; top: 13px; padding: 5px; }
.auth-options { display: flex; gap: 14px; margin-top: 12px; }
.form-status { min-height: 1.45rem; color: var(--gold); margin: 8px 0; overflow-wrap: anywhere; }
.toast { position: fixed; z-index: 5; bottom: 16px; right: 16px; max-width: min(440px,calc(100vw - 32px)); border: 1px solid #795b35; border-radius: 9px; padding: 10px 15px; color: #ffdfad; background: #282015; box-shadow: 0 8px 30px #0007; }
@media (max-width: 1120px) {
  .layout { grid-template-columns: 188px minmax(0,1fr); }
  .workspace { padding-inline: 16px; }
  .brand { gap: 8px; padding-inline: 12px; }
  .brand-name { font-size: 19px; }
  .columns { gap: 13px; }
}
@media (max-width: 960px) {
  .columns { grid-template-columns: minmax(0,1fr); }
  .widgets { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
}
@media (max-width: 740px) {
  .layout { display: block; }
  .rail { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 11px 13px; border-bottom: 0; }
  .brand-mark { width: 35px; height: 35px; }
  .rail-inner { padding: 0 11px 8px; }
  .menu-label, .rail-foot { display: none; }
  nav { display: flex; overflow-x: auto; gap: 3px; padding: 3px; }
  nav button { flex: none; padding: 6px 8px; font-size: .84rem; gap: 5px; }
  nav svg { width: 15px; height: 15px; }
  .workspace { padding-inline: 11px; }
  .toolbar { min-height: 61px; gap: 7px; }
  .hero { min-height: 225px; }
  .hero-content { padding: 17px; }
  .hero::before { background-position: 60% center; }
  .composer, .post { padding: 12px; }
  .filters { gap: 12px; }
  .filters button { font-size: .82rem; }
  .widgets { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .community-grid { grid-template-columns: 1fr; }
  .post-details { flex-direction: column; }
  .project-selects, .project-sheet { grid-template-columns: 1fr; }
  .compose-foot { gap: 6px; }
}
