@font-face { font-family: "Marcellus"; src: url("assets/fonts/Marcellus-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("assets/fonts/Alegreya-Variable.ttf") format("truetype"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("assets/fonts/Alegreya-Italic-Variable.ttf") format("truetype"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("assets/fonts/AlegreyaSans-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("assets/fonts/AlegreyaSans-Medium.ttf") format("truetype"); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("assets/fonts/AlegreyaSans-Bold.ttf") format("truetype"); font-weight: 700 800; font-style: normal; font-display: swap; }

:root {
  --ink: #080706;
  --ink-soft: #0e0c0a;
  --graphite: #191612;
  --graphite-2: #252019;
  --ivory: #f0eadc;
  --ivory-soft: #c9c0b1;
  --muted: #8f8679;
  --gold: #b99a5d;
  --gold-bright: #dfc787;
  --gold-dark: #6c5631;
  --danger: #8f332e;
  --line: rgba(240, 234, 220, .14);
  --line-strong: rgba(240, 234, 220, .24);
  --display: "Marcellus", "Palatino Linotype", "Book Antiqua", serif;
  --serif: "Marcellus", "Palatino Linotype", "Book Antiqua", serif;
  --prose: "Alegreya", Georgia, serif;
  --sans: "Alegreya Sans", "Segoe UI", sans-serif;
  --container: min(1240px, calc(100vw - 80px));
  --header-h: 82px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--ink); }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(92, 70, 39, .10), transparent 40rem),
    var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.84' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 4px;
}

::selection { color: var(--ink); background: var(--gold-bright); }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 1000;
  padding: .75rem 1rem;
  color: var(--ink);
  background: var(--gold-bright);
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

.dust-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 6;
  opacity: .48;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: var(--container);
  margin: 0 auto;
  border-bottom: 1px solid rgba(240, 234, 220, .18);
}

.iconscout-symbols {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.iconscout-icon,
.brand-mark {
  display: block;
  overflow: visible;
  fill: currentColor;
  stroke: none;
}

.brand {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: .72rem;
  border: 0;
  color: var(--ivory);
  background: none;
  font: 600 .85rem/1 var(--sans);
  letter-spacing: .31em;
  text-decoration: none;
  cursor: pointer;
}

.brand-emblem {
  position: relative;
  width: 31px;
  height: 38px;
  flex: 0 0 31px;
  display: grid;
  place-items: center;
  border-inline: 1px solid rgba(223, 199, 135, .34);
  color: var(--gold-bright);
  box-shadow: 0 0 16px rgba(185, 154, 93, .09);
  transition: border-color .2s ease-out, color .2s ease-out, box-shadow .2s ease-out;
}
.brand-emblem::before,
.brand-emblem::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 9px;
  height: 1px;
  background: currentColor;
  opacity: .62;
  transform: translateX(-50%);
}
.brand-emblem::before { top: 0; }
.brand-emblem::after { bottom: 0; }
.brand-mark {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  color: inherit;
  filter: drop-shadow(0 0 6px rgba(185, 154, 93, .15));
  transition: transform .2s ease-out;
}
.brand:hover .brand-emblem,
.brand:focus-visible .brand-emblem {
  color: #f1dda2;
  border-color: rgba(241, 221, 162, .62);
  box-shadow: 0 0 19px rgba(185, 154, 93, .16);
}
.brand:hover .brand-mark,
.brand:focus-visible .brand-mark { transform: translateY(-1px); }

.site-nav { display: flex; gap: 2.4rem; align-items: center; }
.site-nav a,
.site-nav button {
  border: 0;
  padding: .6rem 0;
  color: rgba(240, 234, 220, .78);
  background: none;
  font-size: .76rem;
  letter-spacing: .08em;
  text-decoration: none;
  cursor: pointer;
  transition: color .25s;
}
.site-nav a:hover,
.site-nav button:hover { color: var(--ivory); }
.site-nav small { margin-left: .35rem; color: var(--gold); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; }

.header-enter { justify-self: end; }
.nav-toggle { display: none; }

.button {
  position: relative;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0 1.3rem;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s, border-color .25s, color .25s, transform .25s;
}
.button:hover { transform: translateY(-2px); }
.button-primary {
  color: #15110a;
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  box-shadow: 0 12px 38px rgba(159, 122, 54, .18);
}
.button-primary:hover { background: #f0db9c; border-color: #f0db9c; }
.button-primary span { font-size: 1rem; }
.button-quiet { background: transparent; border-color: var(--line-strong); color: var(--ivory); }
.button-quiet:hover { border-color: var(--gold); }
.button-text { min-height: auto; padding: .9rem .2rem; color: var(--ivory); border-bottom: 1px solid var(--line-strong); }
.button-text:hover { color: var(--gold-bright); border-color: var(--gold); }
.button-outline { background: transparent; border-color: var(--gold-dark); color: var(--gold-bright); }
.button-outline:hover { background: rgba(185, 154, 93, .08); border-color: var(--gold); }
.button-danger { color: #fff1ed; background: var(--danger); border-color: var(--danger); }

.screen { min-height: 100vh; }
.screen[hidden] { display: none !important; }

.hero {
  position: relative;
  min-height: min(860px, 100vh);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-art {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url("assets/vespera-key-art.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.018);
  animation: breathe 15s ease-in-out infinite alternate;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(6, 5, 4, .96) 0%, rgba(6, 5, 4, .78) 34%, rgba(6, 5, 4, .18) 63%, rgba(6, 5, 4, .33) 100%),
    linear-gradient(0deg, var(--ink) 0%, transparent 20%, rgba(0, 0, 0, .1) 78%, rgba(0, 0, 0, .38) 100%);
}
.hero-content {
  width: var(--container);
  margin: 4rem auto 0;
  padding: 5rem 0;
}
.eyebrow,
.section-number,
.panel-kicker {
  margin: 0 0 1.15rem;
  color: var(--gold-bright);
  font-size: .67rem;
  font-weight: 650;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.eyebrow > span { display: inline-block; width: 30px; height: 1px; margin: 0 .72rem .22rem 0; background: var(--gold); }
.hero h1 {
  max-width: 720px;
  margin: 0;
  font: 400 clamp(4.25rem, 7.8vw, 7.7rem)/.84 var(--serif);
  letter-spacing: -.055em;
  text-wrap: balance;
}
.hero h1 em { color: var(--gold-bright); font-weight: 400; }
.hero-copy { max-width: 550px; margin: 2rem 0 2.4rem; color: var(--ivory-soft); font: 400 1.06rem/1.8 var(--sans); }
.hero-actions { display: flex; align-items: center; gap: 1.65rem; }
.prototype-note { margin: 1.45rem 0 0; color: var(--muted); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.prototype-note span { color: var(--gold); }
.hero-folio { position: absolute; right: 4.5%; bottom: 3.5rem; color: rgba(240, 234, 220, .55); font: .7rem var(--sans); letter-spacing: .25em; }

.rift {
  position: absolute;
  top: 7%;
  bottom: 4%;
  left: 75.6%;
  width: 10px;
  pointer-events: none;
  filter: blur(.2px);
}
.rift::before,
.rift::after,
.rift span {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(transparent, rgba(255, 235, 171, .9) 12%, #fff2bf 52%, rgba(223, 199, 135, .65) 88%, transparent);
  box-shadow: 0 0 11px #e1bc6e, 0 0 40px rgba(185, 154, 93, .55);
}
.rift::before { transform: translateX(-4px) rotate(.4deg); opacity: .2; }
.rift::after { transform: translateX(4px) rotate(-.35deg); opacity: .18; }
.rift span { animation: riftPulse 3.8s ease-in-out infinite; }

.section { width: var(--container); margin: 0 auto; padding: 8.5rem 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 3rem; margin-bottom: 3.4rem; }
.section h2,
.continue-banner h2 {
  margin: 0;
  font: 400 clamp(2.6rem, 4.5vw, 4.5rem)/.98 var(--serif);
  letter-spacing: -.035em;
}
.section-intro { max-width: 410px; margin: 0 0 .35rem; color: var(--muted); font-size: .88rem; line-height: 1.75; }

.continue-banner {
  position: relative;
  width: var(--container);
  margin: -1px auto 0;
  padding: 2rem 2.4rem 2rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: #12100d;
  border: 1px solid var(--gold-dark);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .25);
}
.continue-banner::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--gold-bright); box-shadow: 0 0 20px var(--gold); }
.continue-banner[hidden] { display: none; }
.continue-banner .eyebrow { margin-bottom: .5rem; }
.continue-banner h2 { font-size: 2rem; }
.continue-banner p:last-child { margin: .35rem 0 0; color: var(--muted); font-size: .78rem; }
.continue-actions { display: flex; gap: .75rem; flex-shrink: 0; }

.rooms-section { padding-top: 9.5rem; }
.room-ledger { border-top: 1px solid var(--line-strong); }
.room-row {
  min-height: 184px;
  display: grid;
  grid-template-columns: 64px minmax(280px, 1.5fr) minmax(300px, .9fr) 125px;
  align-items: center;
  gap: 1.5rem;
  border-bottom: 1px solid var(--line);
  transition: background .35s, padding .35s;
}
.room-row:hover { padding: 0 1.2rem; background: rgba(240, 234, 220, .025); }
.room-index { align-self: start; padding-top: 2.9rem; color: var(--gold-dark); font: italic 1.1rem var(--serif); }
.genre-tag { color: var(--gold); font-size: .61rem; letter-spacing: .15em; text-transform: uppercase; }
.genre-tag.sci { color: #87a0a3; }
.genre-tag.horror { color: #a75a51; }
.room-main h3 { margin: .42rem 0 .38rem; font: 400 1.65rem var(--serif); }
.room-main p { margin: 0; color: var(--muted); font-size: .79rem; }
.room-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 0; }
.room-facts div { min-width: 0; }
.room-facts dt { margin-bottom: .35rem; color: var(--muted); font-size: .58rem; letter-spacing: .13em; text-transform: uppercase; }
.room-facts dd { margin: 0; color: var(--ivory-soft); font-size: .75rem; white-space: nowrap; }
.room-facts dd strong { color: var(--gold-bright); font-size: 1rem; }
.room-action {
  height: 44px;
  border: 0;
  border-bottom: 1px solid var(--gold-dark);
  color: var(--gold-bright);
  background: transparent;
  font-size: .7rem;
  text-align: left;
  cursor: pointer;
  transition: border-color .25s, color .25s;
}
.room-action:hover { border-color: var(--gold-bright); color: var(--ivory); }
.room-action span { float: right; }

.recruitment-section {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  padding: 0;
  background: #e8e0d1;
  color: #191510;
}
.recruitment-copy { padding: 7.5rem max(5vw, calc((100vw - 1240px) / 2)); padding-right: 7vw; background: linear-gradient(135deg, #eee8dc, #dcd0bd); }
.recruitment-copy .section-number { color: #826a3f; }
.recruitment-copy h2 { max-width: 650px; font-size: clamp(2.7rem, 4.2vw, 4.4rem); }
.recruitment-copy > p:not(.section-number) { max-width: 560px; margin: 1.6rem 0 2rem; color: #60584e; font-size: .9rem; line-height: 1.8; }
.recruitment-copy .button-outline { color: #5f4926; border-color: #866c3e; }
.recruitment-notes { display: grid; align-content: center; padding: 5.5rem max(5vw, calc((100vw - 1240px) / 2)); padding-left: 6vw; background: #13110f; color: var(--ivory); }
.recruitment-notes article { display: grid; grid-template-columns: 45px 1fr; gap: 1.2rem; padding: 2.2rem 0; border-bottom: 1px solid var(--line); }
.recruitment-notes article:first-child { border-top: 1px solid var(--line); }
.avatar { width: 43px; height: 43px; display: grid; place-items: center; color: var(--gold-bright); border: 1px solid var(--gold-dark); font: .72rem var(--serif); transform: rotate(45deg); }
.avatar::first-line { transform: rotate(-45deg); }
.recruitment-notes p { display: flex; justify-content: space-between; gap: 1rem; margin: 0; font-size: .74rem; }
.recruitment-notes time { color: var(--muted); font-size: .6rem; font-weight: 400; }
.recruitment-notes blockquote { margin: .65rem 0 .55rem; color: var(--ivory-soft); font: italic 1.15rem/1.5 var(--serif); }
.recruitment-notes span { color: var(--gold); font-size: .59rem; letter-spacing: .1em; text-transform: uppercase; }

.genres-section { padding-top: 10rem; }
.genre-index { display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); list-style: none; }
.genre-index > li { min-width: 0; }
.genre-entry {
  width: 100%;
  min-height: 116px;
  display: grid;
  grid-template-columns: 50px 1fr auto 24px;
  align-items: center;
  gap: 1.1rem;
  padding: 0 1.2rem 0 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ivory-soft);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background .3s, color .3s, padding .3s;
}
.genre-index > li:nth-child(odd) .genre-entry { border-right: 1px solid var(--line); }
.genre-entry:hover { padding-left: 1rem; color: var(--ivory); background: rgba(240, 234, 220, .025); }
.genre-entry.available { background: linear-gradient(90deg, rgba(185, 154, 93, .1), transparent 70%); }
.genre-entry.available:hover { background: linear-gradient(90deg, rgba(185, 154, 93, .16), transparent 80%); }
.genre-no { color: var(--gold-dark); font: italic .9rem var(--serif); }
.genre-entry strong { font: 400 clamp(1.35rem, 2vw, 2rem) var(--serif); }
.genre-entry strong i { color: var(--gold); font-weight: 400; }
.genre-entry small { color: var(--muted); font-size: .56rem; letter-spacing: .11em; text-transform: uppercase; }
.genre-entry.available small, .genre-entry.available .entry-arrow { color: var(--gold-bright); }
.entry-arrow { color: var(--muted); font-size: 1.05rem; }

.social-section {
  min-height: 710px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 7vw;
  border-top: 1px solid var(--line);
}
.social-art { position: relative; aspect-ratio: 1; max-width: 510px; width: 100%; margin: 0 auto; }
.social-art::before { content: ""; position: absolute; inset: 46%; border-radius: 50%; background: var(--gold-bright); box-shadow: 0 0 50px rgba(223, 199, 135, .55), 0 0 130px rgba(185, 154, 93, .22); }
.orbit { position: absolute; inset: 13%; border: 1px solid rgba(185, 154, 93, .25); border-radius: 50%; }
.orbit.two { inset: 28%; border-style: dashed; }
.orbit.three { inset: 0; border-color: rgba(240, 234, 220, .08); }
.orbit::after { content: ""; position: absolute; top: -3px; left: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.node { position: absolute; width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--ivory-soft); background: var(--graphite); font: normal .69rem var(--sans); }
.n1 { left: 4%; top: 45%; }.n2 { right: 12%; top: 10%; }.n3 { right: 0; bottom: 22%; }.n4 { left: 30%; bottom: 3%; color: var(--gold); border-style: dashed; }
.social-copy h2 { font-size: clamp(2.7rem, 4vw, 4.3rem); }
.social-copy > p:not(.section-number) { max-width: 520px; margin: 1.7rem 0 2.1rem; color: var(--muted); font-size: .9rem; line-height: 1.8; }
.social-copy ul { list-style: none; padding: 0; margin: 0 0 2rem; border-top: 1px solid var(--line); }
.social-copy li { display: flex; gap: 1.2rem; padding: 1rem 0; border-bottom: 1px solid var(--line); color: var(--ivory-soft); font-size: .78rem; }
.social-copy li span { color: var(--gold-dark); font-family: var(--serif); }
.social-copy > small { color: var(--gold); font-size: .58rem; letter-spacing: .15em; text-transform: uppercase; }

.site-footer {
  width: var(--container);
  min-height: 180px;
  display: grid;
  grid-template-columns: 1fr auto 1.5fr auto;
  align-items: center;
  gap: 2rem;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .68rem;
}
.footer-brand { color: var(--ivory); }
.local-boundary { max-width: 410px; line-height: 1.6; }
.site-footer > span { color: var(--gold-dark); font-family: var(--serif); letter-spacing: .18em; }

/* Game */
.game-screen { background: radial-gradient(circle at 48% 18%, rgba(80, 61, 32, .11), transparent 35rem), #0b0a08; }
.game-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(260px, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 0 2rem;
  background: rgba(9, 8, 7, .97);
  border-bottom: 1px solid var(--line);
}
.campaign-name { text-align: center; }
.campaign-name span { display: block; color: var(--gold); font-size: .53rem; letter-spacing: .18em; }
.campaign-name strong { display: block; margin-top: .16rem; font: 400 1rem var(--serif); letter-spacing: .02em; }
.game-tools { justify-self: end; display: flex; align-items: center; gap: .45rem; }
.tool-button,
.sound-button {
  min-height: 38px;
  padding: 0 .75rem;
  border: 1px solid var(--line);
  color: var(--ivory-soft);
  background: transparent;
  font-size: .61rem;
  letter-spacing: .08em;
  cursor: pointer;
}
.tool-button:hover,
.sound-button:hover { border-color: var(--gold-dark); color: var(--ivory); }
.danger-tool { display: inline-flex; align-items: center; gap: .35rem; color: #b86c64; border-color: rgba(143, 51, 46, .35); }
.restart-icon { display: none; font-size: .9rem; line-height: 1; }
.sound-button { display: flex; align-items: center; gap: .6rem; }
.sound-button[aria-pressed="true"] { color: var(--gold-bright); border-color: var(--gold-dark); }
.sound-bars { height: 14px; display: flex; align-items: end; gap: 2px; }
.sound-bars i { display: block; width: 2px; height: 5px; background: currentColor; }
.sound-bars i:nth-child(2) { height: 11px; }
.sound-bars i:nth-child(3) { height: 8px; }
.sound-button[aria-pressed="true"] .sound-bars i { animation: soundBar .8s ease-in-out infinite alternate; }
.sound-button[aria-pressed="true"] .sound-bars i:nth-child(2) { animation-delay: -.45s; }
.sound-button[aria-pressed="true"] .sound-bars i:nth-child(3) { animation-delay: -.2s; }
.volume-control { width: 54px; display: flex; }
.volume-control input { width: 54px; accent-color: var(--gold); }
.mobile-panel-toggle { display: none; }

.game-layout { min-height: calc(100vh - 72px); display: grid; grid-template-columns: 250px minmax(0, 1fr) 290px; }
.side-panel { padding: 3.2rem 1.5rem; background: rgba(13, 11, 9, .72); }
.character-panel { border-right: 1px solid var(--line); }
.chronicle-panel { border-left: 1px solid var(--line); }
.panel-close { display: none; }
.panel-kicker { margin-bottom: .45rem; }
.character-panel > h2 { margin: 0; overflow-wrap: anywhere; font: 400 2.2rem/.95 var(--serif); }
.character-line { margin: .65rem 0 1.2rem; color: var(--muted); font-size: .66rem; line-height: 1.5; }
.condition { display: inline-flex; align-items: center; gap: .45rem; padding: .38rem .55rem; border: 1px solid var(--line); color: var(--ivory-soft); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; }
.condition.is-danger { color: #d48a81; border-color: rgba(143, 51, 46, .55); }
.stats { display: grid; gap: 1.1rem; margin: 2rem 0 2.6rem; }
.stat > div:first-child { display: flex; justify-content: space-between; margin-bottom: .45rem; color: var(--muted); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.stat strong { color: var(--ivory); font: 400 1rem var(--serif); }
.stat-track { height: 2px; overflow: hidden; background: rgba(240, 234, 220, .1); }
.stat-track i { display: block; width: 50%; height: 100%; background: var(--gold-bright); box-shadow: 0 0 10px var(--gold); transition: width .5s; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.panel-heading h2,
.panel-heading h3 { margin: 0; font: 400 1rem var(--serif); }
.panel-heading span { color: var(--muted); font-size: .52rem; letter-spacing: .1em; text-transform: uppercase; }
.inventory ul { list-style: none; display: grid; gap: .55rem; padding: .9rem 0 0; margin: 0; border-top: 1px solid var(--line); }
.inventory li { position: relative; padding-left: 1rem; color: var(--ivory-soft); font-size: .67rem; }
.inventory li::before { content: "◇"; position: absolute; left: 0; color: var(--gold-dark); }
.inventory li.empty-item { color: var(--muted); font-style: italic; font-family: var(--serif); line-height: 1.5; }
.inventory li.empty-item::before { content: ""; }
.secret-note,
.memory-note { margin-top: 2.4rem; padding: 1rem; border-left: 1px solid var(--gold-dark); background: rgba(185, 154, 93, .035); }
.secret-note span,
.memory-note span { color: var(--gold-dark); font-size: .5rem; letter-spacing: .14em; }
.secret-note p,
.memory-note p { margin: .45rem 0 0; color: var(--muted); font: italic .8rem/1.45 var(--serif); }

.story-stage { position: relative; width: min(760px, calc(100% - 5rem)); margin: 0 auto; padding: 5.4rem 2.5rem 7rem; }
.chapter-marker { position: absolute; top: 3.1rem; right: 1.5rem; width: 26px; height: 150px; display: flex; flex-direction: column; align-items: center; gap: .5rem; color: var(--gold); font: italic .7rem var(--serif); }
.chapter-marker i { width: 1px; height: 100px; background: linear-gradient(transparent, var(--gold-bright), transparent); box-shadow: 0 0 13px rgba(223, 199, 135, .6); }
.story-location { display: flex; align-items: center; gap: .7rem; margin: 0 0 1.5rem; color: var(--muted); font-size: .57rem; letter-spacing: .16em; text-transform: uppercase; }
.story-location i { width: 3px; height: 3px; border-radius: 50%; background: var(--gold-dark); }
.chapter-label { margin: 0 0 .45rem; color: var(--gold); font-size: .62rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.story-header h1 { max-width: 600px; margin: 0; font: 400 clamp(3rem, 5vw, 5.2rem)/.94 var(--serif); letter-spacing: -.045em; }
.story-copy { margin-top: 2.3rem; color: #d6cec0; font: 400 clamp(1.02rem, 1.4vw, 1.16rem)/1.92 var(--serif); }
.story-copy p { margin: 0 0 1.2rem; }
.story-copy p:first-child::first-letter { float: left; margin: .1em .12em 0 0; color: var(--gold-bright); font: 400 4.4rem/.72 var(--serif); }
.story-copy em { color: var(--ivory); }
.consequence { display: grid; grid-template-columns: 30px 1fr; gap: .8rem; margin: 2rem 0 0; padding: 1.1rem 1.2rem; border: 1px solid var(--gold-dark); background: rgba(185, 154, 93, .055); }
.consequence[hidden] { display: none; }
.consequence-glyph { color: var(--gold-bright); }
.consequence strong { display: block; margin-bottom: .22rem; color: var(--gold); font-size: .56rem; letter-spacing: .13em; text-transform: uppercase; }
.consequence p { margin: 0; color: var(--ivory-soft); font-size: .74rem; line-height: 1.55; }
.choices { margin-top: 3.4rem; }
.choices-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem; }
.choices-heading h2 { margin: 0; font: 400 1.2rem var(--serif); }
.choices-heading small { color: var(--muted); font-size: .54rem; letter-spacing: .1em; text-transform: uppercase; }
.choice-list { border-top: 1px solid var(--line-strong); }
.choice-button { width: 100%; min-height: 72px; display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: .8rem; padding: .9rem .5rem; border: 0; border-bottom: 1px solid var(--line); color: var(--ivory-soft); background: transparent; text-align: left; cursor: pointer; transition: padding .25s, background .25s, color .25s; }
.choice-button:hover { padding-left: 1rem; color: var(--ivory); background: rgba(185, 154, 93, .05); }
.choice-button:disabled { cursor: wait; opacity: .45; }
.choice-number { color: var(--gold-dark); font: italic 1rem var(--serif); }
.choice-text strong { display: block; font: 400 .96rem var(--serif); }
.choice-text small { display: block; margin-top: .2rem; color: var(--muted); font: .59rem var(--sans); }
.choice-arrow { color: var(--gold); }
.free-action { margin-top: 1.8rem; }
.free-action > label { display: block; margin-bottom: .55rem; color: var(--muted); font-size: .57rem; letter-spacing: .11em; text-transform: uppercase; }
.free-action > div { display: flex; border-bottom: 1px solid var(--line-strong); }
.free-action input { width: 100%; min-width: 0; height: 46px; padding: 0 .2rem; border: 0; color: var(--ivory); background: transparent; outline: 0; font: italic .92rem var(--serif); }
.free-action input:focus { border-bottom: 1px solid var(--gold-bright); }
.free-action input::placeholder { color: #6e665b; }
.free-action button { width: 46px; border: 0; color: var(--gold-bright); background: transparent; cursor: pointer; }
.free-action > small { display: block; margin-top: .55rem; color: #6e665b; font-size: .55rem; }
.story-loading { min-height: 220px; display: grid; place-items: center; align-content: center; gap: 1rem; color: var(--muted); font: italic .82rem var(--serif); }
.story-loading[hidden] { display: none; }
.story-loading i { width: 1px; height: 72px; background: var(--gold-bright); box-shadow: 0 0 12px var(--gold); animation: loadingRift 1.2s ease-in-out infinite; }
.ending-actions { display: flex; gap: 1rem; margin-top: 2.2rem; }
.ending-actions[hidden] { display: none; }

.chronicle-panel { overflow-y: auto; max-height: calc(100vh - 72px); position: sticky; top: 72px; }
.chronicle-list { position: relative; list-style: none; margin: 1.6rem 0 0; padding: 0 0 0 1.1rem; }
.chronicle-list::before { content: ""; position: absolute; left: 3px; top: .4rem; bottom: .8rem; width: 1px; background: var(--line-strong); }
.chronicle-list li { position: relative; padding: 0 0 1.5rem 1rem; }
.chronicle-list li::before { content: ""; position: absolute; left: -1.15rem; top: .35rem; width: 7px; height: 7px; border: 1px solid var(--gold-dark); background: var(--ink); transform: rotate(45deg); }
.chronicle-list li:last-child::before { background: var(--gold-bright); box-shadow: 0 0 10px var(--gold); }
.chronicle-list time { display: block; color: var(--gold-dark); font-size: .49rem; letter-spacing: .11em; text-transform: uppercase; }
.chronicle-list strong { display: block; margin: .18rem 0; color: var(--ivory-soft); font: 400 .78rem var(--serif); }
.chronicle-list p { margin: 0; color: var(--muted); font-size: .58rem; line-height: 1.5; }

/* Dialogs */
dialog { color: var(--ivory); }
dialog::backdrop { background: rgba(4, 3, 2, .84); backdrop-filter: blur(5px); }
.character-dialog { width: min(1060px, calc(100vw - 2rem)); max-height: min(900px, calc(100vh - 2rem)); padding: 0; border: 1px solid var(--gold-dark); background: var(--ink-soft); box-shadow: 0 30px 100px #000; }
.character-dialog form { display: grid; grid-template-columns: minmax(240px, .7fr) minmax(500px, 1.3fr); min-height: 700px; }
.dialog-visual { position: relative; display: flex; flex-direction: column; justify-content: end; overflow: hidden; padding: 3rem; background: linear-gradient(0deg, #080706, rgba(8, 7, 6, .15)), url("assets/vespera-key-art.png") 72% center/cover; }
.dialog-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.12), rgba(0,0,0,.5)); }
.dialog-visual p { position: absolute; z-index: 1; top: 2rem; left: 2rem; margin: 0; color: var(--gold); font: italic 4rem var(--serif); opacity: .6; }
.dialog-visual blockquote { position: relative; z-index: 1; margin: 0; color: var(--ivory-soft); font: italic 1.25rem/1.55 var(--serif); }
.dialog-rift { position: absolute; z-index: 1; top: 0; bottom: 0; left: 48%; width: 1px; background: linear-gradient(transparent, var(--gold-bright), transparent); box-shadow: 0 0 20px var(--gold); }
.dialog-content { position: relative; overflow-y: auto; padding: 3.6rem 4rem 2.8rem; }
.dialog-close { position: absolute; right: 1.5rem; top: 1.2rem; width: 38px; height: 38px; border: 1px solid var(--line); color: var(--muted); background: transparent; font-size: 1.3rem; cursor: pointer; }
.dialog-content h2 { margin: 0; font: 400 3.5rem/.9 var(--serif); letter-spacing: -.04em; }
.dialog-intro { max-width: 520px; margin: 1rem 0 2rem; color: var(--muted); font-size: .76rem; }
.form-field label,
fieldset legend { display: block; margin-bottom: .55rem; color: var(--ivory-soft); font-size: .59rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.form-field input { width: 100%; height: 44px; padding: 0; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; color: var(--ivory); background: transparent; outline: 0; }
.form-field input:focus { border-color: var(--gold-bright); }
.form-field input::placeholder { color: #686056; }
.form-field input[aria-invalid="true"] { border-color: #bd655c; }
.field-error { min-height: 1.2rem; display: block; padding-top: .25rem; color: #d47c72; font-size: .58rem; }
fieldset { margin: .8rem 0 1.1rem; padding: 0; border: 0; }
.option-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.option-card { position: relative; min-height: 88px; display: flex; align-items: center; gap: .75rem; padding: .8rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: pointer; transition: background .2s, border-color .2s; }
.option-card:hover { background: rgba(185, 154, 93, .05); }
.option-card:has(input:checked) { background: rgba(185, 154, 93, .1); box-shadow: inset 0 0 0 1px var(--gold-dark); }
.option-card input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.option-card:has(input:focus-visible) { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.option-symbol { color: var(--gold-dark); font: italic .85rem var(--serif); }
.option-card strong { display: block; color: var(--ivory); font: 400 .9rem var(--serif); }
.option-card small { display: block; margin-top: .2rem; color: var(--muted); font-size: .54rem; line-height: 1.35; }
.option-card.compact { min-height: 62px; }
.creator-lower { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: start; }
.attribute-preview { padding: .8rem 1rem; border-left: 1px solid var(--gold-dark); background: rgba(185, 154, 93, .04); }
.attribute-preview h3 { margin: 0 0 .6rem; color: var(--gold); font-size: .56rem; letter-spacing: .11em; text-transform: uppercase; }
.attribute-preview > div { display: flex; justify-content: space-between; gap: .6rem; }
.attribute-preview span { color: var(--muted); font-size: .53rem; text-transform: uppercase; }
.attribute-preview strong { display: block; color: var(--ivory); font: 400 1rem var(--serif); }
.dialog-actions { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-top: 1rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.dialog-actions p { margin: 0; color: var(--muted); font-size: .58rem; letter-spacing: .06em; text-transform: uppercase; }
.dialog-actions p strong { color: var(--ivory-soft); font-weight: 500; }

.confirm-dialog { width: min(480px, calc(100vw - 2rem)); padding: 0; border: 1px solid var(--gold-dark); background: #12100d; box-shadow: 0 30px 80px #000; }
.confirm-dialog form { padding: 2.7rem; text-align: center; }
.confirm-mark { display: block; margin-bottom: 1rem; color: var(--gold); font-size: 1.8rem; }
.confirm-dialog .eyebrow { margin-bottom: .5rem; }
.confirm-dialog h2 { margin: 0; font: 400 2.25rem var(--serif); }
.confirm-dialog p:not(.eyebrow) { color: var(--muted); font-size: .76rem; line-height: 1.7; }
.confirm-dialog form > div { display: flex; justify-content: center; gap: .75rem; margin-top: 1.8rem; }

.toast { position: fixed; z-index: 100; right: 1.4rem; bottom: 1.4rem; width: min(440px, calc(100vw - 2rem)); min-height: 70px; display: grid; grid-template-columns: 25px 1fr 30px; align-items: center; gap: .75rem; padding: .9rem 1rem; border: 1px solid var(--gold-dark); color: var(--ivory-soft); background: #17130f; box-shadow: 0 22px 60px rgba(0,0,0,.55); animation: toastIn .35s both; }
.toast[hidden] { display: none; }
.toast > span { color: var(--gold-bright); }
.toast p { margin: 0; font-size: .7rem; line-height: 1.5; }
.toast button { width: 30px; height: 30px; border: 0; color: var(--muted); background: transparent; font-size: 1rem; cursor: pointer; }

@keyframes breathe { from { transform: scale(1.018); } to { transform: scale(1.045); } }
@keyframes riftPulse { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }
@keyframes soundBar { to { height: 3px; } }
@keyframes loadingRift { 0%,100% { opacity: .25; transform: scaleY(.4); } 50% { opacity: 1; transform: scaleY(1); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } }
.reveal { animation: revealUp .9s .1s both; }
@keyframes revealUp { from { opacity: 0; transform: translateY(18px); } }

@media (max-width: 1100px) {
  :root { --container: min(calc(100vw - 48px), 1000px); }
  .room-row { grid-template-columns: 44px minmax(260px, 1.3fr) minmax(250px, .8fr) 95px; gap: 1rem; }
  .room-facts { gap: .5rem; }
  .game-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .chronicle-panel { position: fixed; z-index: 45; top: 72px; right: 0; bottom: 0; width: min(340px, 90vw); max-height: none; transform: translateX(105%); transition: transform .3s; background: #100e0c; }
  .chronicle-panel.is-open { transform: translateX(0); }
  .mobile-panel-toggle#chronicle-toggle { display: block; }
  .panel-close { position: absolute; right: 1rem; top: 1rem; width: 34px; height: 34px; display: block; border: 1px solid var(--line); color: var(--muted); background: transparent; font-size: 1.1rem; }
  .panel-scrim { position: fixed; z-index: 40; inset: 72px 0 0; background: rgba(0,0,0,.65); }
  .panel-scrim[hidden] { display: none; }
}

@media (max-width: 860px) {
  :root { --container: calc(100vw - 36px); --header-h: 68px; }
  .site-header { grid-template-columns: 1fr auto; }
  .nav-toggle { justify-self: end; width: 42px; height: 42px; display: grid; place-content: center; gap: 4px; padding: 0; border: 1px solid rgba(240, 234, 220, .2); background: transparent; }
  .nav-toggle span:not(.sr-only) { width: 18px; height: 1px; display: block; background: var(--ivory); }
  .site-nav { position: absolute; top: 67px; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 1rem 1.3rem; background: #0d0b09; border: 1px solid var(--line); }
  .site-nav.is-open { display: flex; }
  .site-nav a, .site-nav button { padding: 1rem 0; text-align: left; border-bottom: 1px solid var(--line); }
  .header-enter { display: none; }
  .hero { min-height: 800px; align-items: end; }
  .hero-art { background-position: 62% center; }
  .hero-shade { background: linear-gradient(0deg, var(--ink) 0%, rgba(6,5,4,.78) 47%, rgba(6,5,4,.2) 100%), linear-gradient(90deg, rgba(6,5,4,.7), transparent); }
  .hero-content { margin: 0 auto 2.5rem; padding: 7rem 0 3rem; }
  .hero h1 { font-size: clamp(3.7rem, 15vw, 6rem); }
  .hero-copy { max-width: 490px; font-size: .93rem; }
  .rift { left: 74.5%; opacity: .65; }
  .section { padding: 6.5rem 0; }
  .section-heading { display: block; }
  .section-intro { margin-top: 1.2rem; }
  .continue-banner { align-items: flex-start; padding: 1.6rem; }
  .continue-actions { flex-direction: column; }
  .room-row { grid-template-columns: 42px 1fr 100px; padding: 1.7rem 0; }
  .room-row:hover { padding: 1.7rem .7rem; }
  .room-index { padding-top: .2rem; }
  .room-facts { grid-column: 2 / -1; grid-row: 2; }
  .room-action { grid-column: 3; grid-row: 1; }
  .recruitment-section { grid-template-columns: 1fr; padding: 0; }
  .recruitment-copy, .recruitment-notes { padding: 5rem max(24px, calc((100vw - 760px) / 2)); }
  .genre-index { grid-template-columns: 1fr; }
  .genre-index > li:nth-child(odd) .genre-entry { border-right: 0; }
  .social-section { grid-template-columns: .8fr 1.2fr; gap: 3rem; }
  .site-footer { grid-template-columns: 1fr 1fr; padding: 2.5rem 0; }
  .site-footer > :nth-child(even) { justify-self: end; text-align: right; }
  .local-boundary { justify-self: start !important; text-align: left !important; }

  .game-topbar { grid-template-columns: auto 1fr; padding: .7rem 1rem; }
  .campaign-name { display: none; }
  .game-tools { min-width: 0; }
  .game-tools .volume-control { display: none; }
  .game-layout { grid-template-columns: 1fr; }
  .character-panel { position: fixed; z-index: 45; top: 72px; left: 0; bottom: 0; width: min(320px, 90vw); overflow-y: auto; transform: translateX(-105%); transition: transform .3s; background: #100e0c; }
  .character-panel.is-open { transform: translateX(0); }
  .mobile-panel-toggle#character-toggle { display: block; }
  .story-stage { width: min(760px, calc(100% - 2rem)); padding-left: 1rem; padding-right: 1rem; }
  .character-dialog form { grid-template-columns: 1fr; }
  .dialog-visual { display: none; }
}

@media (max-width: 560px) {
  :root { --container: calc(100vw - 28px); }
  .hero { min-height: 780px; }
  .hero-content { margin-bottom: 1rem; }
  .hero h1 { font-size: clamp(3.4rem, 17vw, 5.3rem); }
  .hero-copy { line-height: 1.7; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: .5rem; }
  .hero-actions .button { width: 100%; }
  .hero-folio { display: none; }
  .rift { left: 79%; }
  .section h2 { font-size: 2.8rem; }
  .continue-banner { display: block; }
  .continue-actions { margin-top: 1.3rem; }
  .continue-actions .button { width: 100%; }
  .rooms-section { padding-top: 6rem; }
  .room-row { min-height: 0; grid-template-columns: 30px 1fr; gap: 1rem; }
  .room-main h3 { font-size: 1.45rem; }
  .room-facts { grid-column: 2; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .room-facts dd { white-space: normal; }
  .room-action { grid-column: 2; grid-row: auto; width: 120px; }
  .recruitment-copy, .recruitment-notes { padding-left: 1.4rem; padding-right: 1.4rem; }
  .recruitment-notes blockquote { font-size: 1rem; }
  .genre-entry { min-height: 94px; grid-template-columns: 34px 1fr 20px; gap: .6rem; padding-right: .4rem; }
  .genre-entry small { grid-column: 2; margin-top: -1.6rem; }
  .entry-arrow { grid-column: 3; grid-row: 1 / 3; }
  .social-section { min-height: 0; grid-template-columns: 1fr; }
  .social-art { width: 78vw; }
  .site-footer { grid-template-columns: 1fr; gap: .8rem; }
  .site-footer > :nth-child(even) { justify-self: start; text-align: left; }
  .game-brand > span:last-child { display: none; }
  .game-topbar { grid-template-columns: 34px 1fr; gap: .5rem; }
  .game-tools { gap: .25rem; }
  .tool-button, .sound-button { min-height: 34px; padding: 0 .45rem; font-size: .54rem; }
  .sound-button #sound-label { display: none; }
  .game-tools .danger-tool { width: 34px; display: inline-flex; justify-content: center; padding: 0; }
  .restart-icon { display: inline; }
  .restart-label { display: none; }
  .story-stage { padding-top: 3.8rem; padding-bottom: 5rem; }
  .story-header h1 { padding-right: 2rem; font-size: 3.35rem; }
  .story-copy { line-height: 1.8; }
  .chapter-marker { top: 2rem; right: .2rem; }
  .choice-button { min-height: 78px; }
  .choices-heading small { display: none; }
  .character-dialog { width: calc(100vw - 1rem); max-height: calc(100vh - 1rem); }
  .dialog-content { padding: 3.4rem 1.25rem 1.5rem; }
  .dialog-content h2 { font-size: 3rem; }
  .option-grid { grid-template-columns: 1fr; }
  .option-card { min-height: 66px; }
  .creator-lower { grid-template-columns: 1fr; gap: .7rem; }
  .dialog-actions { align-items: stretch; flex-direction: column; }
  .dialog-actions .button { width: 100%; }
  .confirm-dialog form { padding: 2rem 1.2rem; }
  .confirm-dialog form > div { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .dust-canvas { display: none; }
}

/* ========================================================================== */
/* LIMIAR platform shell — desktop-first navigable application                */
/* ========================================================================== */

body.in-platform { background: #0b0a08; }
.platform-screen { min-height: 100vh; background: radial-gradient(circle at 72% -10%, rgba(120, 91, 47, .09), transparent 34rem), #0b0a08; }
.platform-screen[hidden] { display: none !important; }
.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 35;
  width: 258px;
  display: flex;
  flex-direction: column;
  padding: 32px 24px 24px;
  background: #090806;
  border-right: 1px solid var(--line);
}
.app-brand { margin: 2px 8px 0; }
.sidebar-edition { display: flex; justify-content: space-between; margin: 2rem 8px 1.3rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); color: #6f675d; font-size: .51rem; letter-spacing: .16em; text-transform: uppercase; }
.sidebar-edition span { color: var(--gold-dark); font: italic .8rem var(--serif); }
.app-nav { display: grid; gap: 3px; }
.app-nav a {
  min-height: 58px;
  display: grid;
  grid-template-columns: 23px 1fr;
  grid-template-rows: 1fr 1fr;
  align-items: end;
  column-gap: 13px;
  padding: 9px 11px;
  border-left: 1px solid transparent;
  color: #9b9285;
  text-decoration: none;
  transition: color .2s, background .2s, border-color .2s;
}
.app-nav a:hover { color: var(--ivory); background: rgba(240,234,220,.025); }
.app-nav a[aria-current="page"] { color: var(--ivory); border-color: var(--gold-bright); background: linear-gradient(90deg, rgba(185,154,93,.1), transparent); }
.app-nav svg,
.mobile-bottom-nav svg,
.room-search-row svg { fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.app-nav svg { grid-row: 1 / 3; align-self: center; width: 21px; height: 21px; color: var(--gold-dark); }
.app-nav a[aria-current="page"] svg { color: var(--gold-bright); }
.app-nav span { align-self: end; font-size: .76rem; font-weight: 600; letter-spacing: .03em; }
.app-nav small { align-self: start; color: #686158; font-size: .51rem; }
.sidebar-create {
  min-height: 62px;
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 8px 10px;
  border: 1px solid var(--gold-dark);
  color: var(--gold-bright);
  background: rgba(185,154,93,.045);
  text-align: left;
  cursor: pointer;
}
.sidebar-create > span:first-child { font: 300 1.25rem var(--serif); text-align: center; }
.sidebar-create strong, .sidebar-create small { display: block; }
.sidebar-create strong { font-size: .69rem; }
.sidebar-create small { margin-top: 2px; color: #716758; font-size: .5rem; letter-spacing: .07em; text-transform: uppercase; }
.sidebar-profile { min-height: 64px; display: grid; grid-template-columns: 38px 1fr 28px; align-items: center; gap: 9px; margin-top: auto; padding-top: 17px; border-top: 1px solid var(--line); }
.profile-monogram { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--gold-dark); color: var(--gold-bright); background: #15120e; font: .65rem var(--serif); }
.sidebar-profile strong, .sidebar-profile small { display: block; }
.sidebar-profile strong { color: var(--ivory-soft); font-size: .63rem; }
.sidebar-profile small { margin-top: 3px; color: #696157; font-size: .48rem; }
.sidebar-profile small i { display: inline-block; width: 5px; height: 5px; margin-right: 4px; border-radius: 50%; background: #769365; box-shadow: 0 0 7px #769365; }
.sidebar-profile button { width: 28px; height: 36px; border: 0; color: #6b6258; background: transparent; cursor: pointer; }
.mobile-app-topbar,
.mobile-bottom-nav { display: none; }

.platform-content { min-height: 100vh; margin-left: 258px; padding: 34px clamp(32px, 3.4vw, 64px) 80px; }
.route-page { width: min(100%, 1580px); margin: 0 auto; }
.route-page[hidden] { display: none !important; }
.route-page.is-entering { animation: routeReveal .36s both; }
@keyframes routeReveal { from { opacity: 0; transform: translateY(7px); } }
.page-header { min-height: 112px; display: flex; align-items: end; justify-content: space-between; gap: 3rem; margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--line-strong); }
.page-header h1 { margin: 0; font: 400 clamp(3rem, 4.3vw, 5.1rem)/.88 var(--serif); letter-spacing: -.045em; }
.page-header > div > p:last-child { margin: .75rem 0 0; color: var(--muted); font-size: .76rem; }
.route-context { margin: 0 0 .65rem !important; color: var(--gold); font-size: .54rem !important; font-weight: 650; letter-spacing: .2em; text-transform: uppercase; }
.header-status { align-self: center; min-width: 210px; padding: 15px 0 3px 22px; border-left: 1px solid var(--line); }
.header-status span, .header-status time { display: block; color: var(--muted); font-size: .56rem; letter-spacing: .1em; text-transform: uppercase; }
.header-status span i { display: inline-block; width: 5px; height: 5px; margin-right: 7px; border-radius: 50%; background: #7b9666; box-shadow: 0 0 8px #7b9666; }
.header-status time { margin-top: .6rem; color: var(--gold-dark); }
.page-header-actions { display: flex; align-self: center; gap: 9px; }

/* Home */
.dashboard-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.home-chronicle-feature { position: relative; min-height: 355px; grid-column: 1 / 8; overflow: hidden; border: 1px solid rgba(185,154,93,.3); isolation: isolate; }
.feature-art { position: absolute; z-index: -3; inset: 0; background: url("assets/vespera-key-art.png") 66% center/cover; transform: scale(1.01); }
.feature-shade { position: absolute; z-index: -2; inset: 0; background: linear-gradient(90deg, rgba(6,5,4,.96), rgba(6,5,4,.65) 51%, rgba(6,5,4,.12)), linear-gradient(0deg, rgba(6,5,4,.68), transparent); }
.feature-rift { position: absolute; z-index: -1; top: -5%; bottom: -5%; left: 71%; width: 1px; background: var(--gold-bright); box-shadow: 0 0 17px var(--gold), 0 0 60px rgba(185,154,93,.42); }
.feature-copy { position: absolute; left: clamp(28px, 3vw, 48px); bottom: 38px; width: min(58%, 520px); }
.feature-copy > p:first-child { margin: 0 0 .65rem; color: var(--gold); font-size: .52rem; font-weight: 650; letter-spacing: .18em; }
.feature-copy h2 { margin: 0; font: 400 clamp(2.4rem, 3.4vw, 4.25rem)/.92 var(--serif); letter-spacing: -.035em; }
.feature-copy > p:not(:first-child) { margin: .9rem 0 1.25rem; color: var(--ivory-soft); font: italic .92rem/1.6 var(--serif); }
.feature-progress { position: absolute; right: 24px; bottom: 19px; color: rgba(240,234,220,.55); font-size: .49rem; letter-spacing: .15em; }
.quick-decisions { grid-column: 8 / -1; padding: 25px 27px; border: 1px solid var(--line); background: #11100d; }
.block-heading p { margin: 0 0 .32rem; color: var(--gold-dark); font-size: .49rem; font-weight: 650; letter-spacing: .17em; text-transform: uppercase; }
.block-heading h2 { margin: 0; font: 400 1.45rem var(--serif); }
.block-heading.row { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; }
.block-heading.row > a { padding-bottom: 2px; color: var(--gold); font-size: .54rem; text-decoration: none; }
.block-heading.row > a span { margin-left: 6px; }
.decision-list { margin-top: 18px; border-top: 1px solid var(--line); }
.decision-list button,
.decision-list a { width: 100%; min-height: 62px; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 9px; padding: 8px 5px; border: 0; border-bottom: 1px solid var(--line); color: var(--ivory-soft); background: transparent; text-align: left; text-decoration: none; cursor: pointer; transition: padding .2s, color .2s, background .2s; }
.decision-list button:hover, .decision-list a:hover { padding-left: 11px; color: var(--ivory); background: rgba(185,154,93,.04); }
.decision-no { color: var(--gold-dark); font: italic .76rem var(--serif); }
.decision-list strong, .decision-list small { display: block; }
.decision-list strong { font: 400 .88rem var(--serif); }
.decision-list small { margin-top: 2px; color: #6f675d; font-size: .5rem; }
.count-badge { min-width: 23px; height: 23px; display: grid; place-items: center; border: 1px solid var(--gold-dark); color: var(--gold); font-size: .54rem; }
.dashboard-block { border: 1px solid var(--line); background: #0f0e0b; }
.home-recommendations { grid-column: 1 / 9; padding: 24px 27px; }
.recommendation-list { margin-top: 18px; border-top: 1px solid var(--line); }
.recommendation-list > button { width: 100%; min-height: 78px; display: grid; grid-template-columns: 34px 1fr auto 20px; align-items: center; gap: 12px; padding: 8px 7px; border: 0; border-bottom: 1px solid var(--line); color: var(--ivory-soft); background: transparent; text-align: left; cursor: pointer; transition: padding .2s, background .2s; }
.recommendation-list > button:hover { padding-left: 13px; background: rgba(240,234,220,.025); }
.rec-index { color: var(--gold-dark); font: italic .88rem var(--serif); }
.rec-copy small, .rec-copy strong, .rec-copy em { display: block; }
.rec-copy small { color: var(--gold-dark); font-size: .45rem; letter-spacing: .13em; }
.rec-copy strong { margin: 3px 0; color: var(--ivory); font: 400 1.04rem var(--serif); }
.rec-copy em { color: #82796d; font: normal .53rem var(--sans); }
.rec-people { display: flex; align-items: center; }
.rec-people i { width: 28px; height: 28px; display: grid; place-items: center; margin-left: -5px; border: 1px solid #41392e; border-radius: 50%; color: var(--ivory-soft); background: #17140f; font: normal .43rem var(--sans); }
.rec-people small { margin-left: 9px; color: var(--muted); font-size: .5rem; }
.community-pulse { grid-column: 9 / -1; grid-row: 2 / span 2; padding: 24px 26px; }
.community-pulse dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 20px 0; border: 1px solid var(--line); }
.community-pulse dl div { padding: 13px 10px; border-right: 1px solid var(--line); }
.community-pulse dl div:last-child { border: 0; }
.community-pulse dt { color: #6f675d; font-size: .44rem; line-height: 1.35; text-transform: uppercase; }
.community-pulse dd { margin: 4px 0 0; color: var(--gold-bright); font: 400 1.5rem var(--serif); }
.community-pulse ol { list-style: none; margin: 0; padding: 0; }
.community-pulse li { display: grid; grid-template-columns: 8px 1fr; gap: 9px; padding: 11px 2px; border-bottom: 1px solid var(--line); }
.community-pulse li > i { width: 4px; height: 4px; margin-top: 5px; border-radius: 50%; background: #7e9868; box-shadow: 0 0 6px #7e9868; }
.community-pulse li strong, .community-pulse li small { display: block; }
.community-pulse li strong { color: var(--ivory-soft); font-size: .57rem; }
.community-pulse li small { margin-top: 3px; color: #675f56; font-size: .46rem; }
.community-pulse > button { width: 100%; min-height: 40px; margin-top: 16px; border: 0; border-bottom: 1px solid var(--gold-dark); color: var(--gold); background: transparent; font-size: .56rem; text-align: left; cursor: pointer; }
.community-pulse > button span { float: right; }
.home-activity { grid-column: 1 / 9; padding: 24px 27px; }
.activity-empty { min-height: 100px; display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 16px; margin-top: 16px; padding: 14px 18px; border-top: 1px solid var(--line); background: rgba(240,234,220,.018); }
.activity-glyph { color: var(--gold); font-size: 1.3rem; }
.activity-empty strong { display: block; font: 400 .94rem var(--serif); }
.activity-empty p { margin: 3px 0 0; color: var(--muted); font-size: .56rem; }
.activity-filled { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 16px; background: var(--line); border: 1px solid var(--line); }
.activity-filled article { min-height: 88px; padding: 14px; background: #0f0e0b; }
.activity-filled small, .activity-filled strong, .activity-filled p { display: block; }
.activity-filled small { color: var(--gold-dark); font-size: .44rem; letter-spacing: .1em; }
.activity-filled strong { margin: 5px 0; font: 400 .83rem var(--serif); }
.activity-filled p { margin: 0; color: var(--muted); font-size: .48rem; line-height: 1.45; }
.favorite-worlds { grid-column: 9 / -1; padding: 24px 26px; }
.favorite-worlds > div:last-child { margin-top: 15px; border-top: 1px solid var(--line); }
.favorite-worlds button { width: 100%; min-height: 54px; display: grid; grid-template-columns: 25px 1fr auto; align-items: center; gap: 7px; padding: 5px 2px; border: 0; border-bottom: 1px solid var(--line); color: var(--ivory-soft); background: transparent; font: 400 .74rem var(--serif); text-align: left; cursor: pointer; }
.favorite-worlds button span { color: var(--gold-dark); font-size: .58rem; }
.favorite-worlds button i { color: #756a59; font: normal .43rem var(--sans); text-transform: uppercase; }

/* Rooms */
.rooms-page-header { margin-bottom: 18px; }
.room-search-row { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 16px; }
.room-search-row > label { width: min(470px, 42%); color: #8a8176; font-size: .51rem; letter-spacing: .12em; text-transform: uppercase; }
.search-control { height: 48px; display: flex; align-items: center; gap: 10px; margin-top: 7px; padding: 0 14px; border: 1px solid var(--line-strong); background: #0f0e0b; }
.search-control svg { width: 18px; color: var(--gold-dark); }
.search-control input { flex: 1; min-width: 0; border: 0; outline: 0; color: var(--ivory); background: transparent; font-size: .72rem; }
.search-control input::placeholder { color: #625b52; }
.room-tabs { display: flex; min-width: 500px; border-bottom: 1px solid var(--line); }
.room-tabs button { min-height: 45px; flex: 1; padding: 0 12px; border: 0; border-bottom: 1px solid transparent; color: #777066; background: transparent; font-size: .56rem; cursor: pointer; }
.room-tabs button.is-active { color: var(--ivory); border-color: var(--gold-bright); }
.rooms-workspace { display: grid; grid-template-columns: 212px minmax(520px, 1fr) 242px; align-items: start; gap: 16px; }
.filter-rail { padding: 20px 18px; border: 1px solid var(--line); background: #0f0e0b; }
.filter-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.filter-heading h2 { margin: 0; font: 400 1.12rem var(--serif); }
.filter-heading button { border: 0; color: var(--gold); background: transparent; font-size: .49rem; text-decoration: underline; cursor: pointer; }
#filters-status { min-height: 17px; margin: .35rem 0 .9rem; color: #685f55; font-size: .47rem; }
.filter-rail > label { display: block; margin-top: 12px; color: #81786c; font-size: .49rem; letter-spacing: .1em; text-transform: uppercase; }
.filter-rail select,
.room-results select { width: 100%; height: 38px; margin-top: 5px; padding: 0 28px 0 9px; border: 1px solid var(--line); border-radius: 0; color: var(--ivory-soft); background: #15120f; font-size: .56rem; outline: 0; }
.filter-rail select:focus,
.room-results select:focus { border-color: var(--gold); }
.filter-foot { display: grid; grid-template-columns: 19px 1fr; gap: 8px; margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--line); }
.filter-foot span { color: var(--gold-dark); }
.filter-foot p { margin: 0; color: #655d54; font-size: .47rem; line-height: 1.5; }
.room-results { min-width: 0; }
.room-results > header { min-height: 53px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 2px 11px; border-bottom: 1px solid var(--line-strong); }
.room-results > header p { margin: 0; color: var(--gold-dark); font-size: .46rem; letter-spacing: .13em; }
.room-results > header h2 { margin: 3px 0 0; font: 400 1rem var(--serif); }
.room-results > header label { width: 130px; color: #71695e; font-size: .46rem; }
.rich-room-list { display: grid; }
.rich-room-item { position: relative; min-height: 158px; display: grid; grid-template-columns: 34px minmax(220px, 1fr) 125px 90px; align-items: center; gap: 14px; padding: 18px 8px 18px 1px; border-bottom: 1px solid var(--line); transition: background .2s, padding .2s; }
.rich-room-item:hover { padding-left: 8px; background: rgba(240,234,220,.018); }
.room-list-index { align-self: start; padding-top: 3px; color: var(--gold-dark); font: italic .78rem var(--serif); }
.room-list-copy { min-width: 0; }
.room-list-copy > div:first-child { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.room-list-copy .room-genre { color: var(--gold); font-size: .45rem; letter-spacing: .12em; text-transform: uppercase; }
.room-state-badge { padding: 2px 5px; border: 1px solid #4d4438; color: #938675; font-size: .4rem; letter-spacing: .08em; text-transform: uppercase; }
.room-state-badge.soon { color: #d6b875; border-color: #705a34; }
.room-state-badge.almost { color: #bf776e; border-color: #653c38; }
.room-list-copy h3 { margin: 0; font: 400 1.3rem var(--serif); }
.room-list-copy > p { margin: 5px 0 9px; color: #8b8276; font: italic .66rem/1.45 var(--serif); }
.room-tagline { display: flex; flex-wrap: wrap; gap: 5px; }
.room-tagline span { padding: 3px 6px; border: 1px solid var(--line); color: #70685f; font-size: .41rem; text-transform: uppercase; }
.room-list-meta { display: grid; gap: 8px; }
.room-list-meta > div { padding-bottom: 7px; border-bottom: 1px solid var(--line); }
.room-list-meta small, .room-list-meta strong { display: block; }
.room-list-meta small { color: #665e55; font-size: .42rem; text-transform: uppercase; }
.room-list-meta strong { margin-top: 2px; color: var(--ivory-soft); font-size: .55rem; font-weight: 500; }
.room-list-action { align-self: stretch; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.room-list-action .room-avatars { display: flex; }
.room-list-action .room-avatars i { width: 25px; height: 25px; display: grid; place-items: center; margin-left: -5px; border: 1px solid #41392f; border-radius: 50%; color: var(--ivory-soft); background: #15120f; font: normal .4rem var(--sans); }
.room-list-action button { min-height: 38px; border: 0; border-bottom: 1px solid var(--gold-dark); color: var(--gold-bright); background: transparent; font-size: .51rem; cursor: pointer; }
.room-list-action button span { margin-left: 9px; }
.local-room-ribbon { position: absolute; top: 7px; right: 7px; color: var(--gold); font-size: .38rem; letter-spacing: .1em; text-transform: uppercase; }
.discovery-aside { overflow: hidden; border: 1px solid var(--line); background: #11100d; }
.discovery-art { height: 150px; background: linear-gradient(0deg,#11100d,transparent), url("assets/limiar-worlds-hall.png") center/cover; }
.discovery-aside > p:first-of-type { margin: 18px 18px 5px; color: var(--gold-dark); font-size: .44rem; letter-spacing: .14em; }
.discovery-aside h2 { margin: 0 18px; font: 400 1.35rem/1.05 var(--serif); }
.discovery-aside > p:not(:first-of-type) { margin: 10px 18px 15px; color: #786f64; font-size: .53rem; line-height: 1.6; }
.discovery-aside > button { width: calc(100% - 36px); min-height: 38px; margin: 0 18px 18px; border: 0; border-bottom: 1px solid var(--gold-dark); color: var(--gold); background: transparent; font-size: .51rem; text-align: left; cursor: pointer; }
.discovery-aside > button span { float: right; }
.discovery-aside dl { display: grid; grid-template-columns: repeat(3,1fr); margin: 0; border-top: 1px solid var(--line); }
.discovery-aside dl div { padding: 12px 7px; border-right: 1px solid var(--line); }
.discovery-aside dl div:last-child { border: 0; }
.discovery-aside dt { color: #665e55; font-size: .38rem; line-height: 1.3; }
.discovery-aside dd { margin: 4px 0 0; color: var(--gold); font: .92rem var(--serif); }
.room-empty { min-height: 370px; place-items: center; align-content: center; padding: 30px; border-bottom: 1px solid var(--line); text-align: center; }
.room-empty:not([hidden]) { display: grid; }
.room-empty > span { color: var(--gold); font-size: 1.6rem; }
.room-empty h3 { margin: .6rem 0 .3rem; font: 400 1.7rem var(--serif); }
.room-empty p { margin: 0; color: var(--muted); font-size: .63rem; }
.room-empty > div { display: flex; gap: 8px; margin-top: 1.2rem; }

/* Chronicles */
.chronicles-layout { display: grid; grid-template-columns: minmax(600px, 1.65fr) minmax(300px, .75fr); gap: 16px; }
.current-chronicle { min-height: 420px; display: grid; grid-template-columns: minmax(280px,.85fr) minmax(350px,1.15fr); border: 1px solid var(--line); background: #0f0e0b; }
.chronicle-art { position: relative; overflow: hidden; background: linear-gradient(0deg,rgba(8,7,6,.55),transparent), url("assets/vespera-key-art.png") 70% center/cover; }
.chronicle-art span { position: absolute; inset: 8% auto 8% 64%; width: 1px; background: var(--gold-bright); box-shadow: 0 0 20px var(--gold); }
.chronicle-card-copy { display: flex; flex-direction: column; justify-content: center; padding: 40px; }
.chronicle-card-copy > p:first-child { margin: 0 0 7px; color: var(--gold); font-size: .48rem; letter-spacing: .15em; }
.chronicle-card-copy h2 { margin: 0; font: 400 clamp(2.3rem,3vw,3.9rem)/.93 var(--serif); }
.chronicle-card-copy > p:not(:first-child) { margin: 14px 0 20px; color: var(--muted); font: italic .8rem/1.6 var(--serif); }
.chronicle-card-copy dl { display: grid; grid-template-columns: repeat(3,1fr); margin: 0 0 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.chronicle-card-copy dl div { padding: 11px 9px 11px 0; }
.chronicle-card-copy dt { color: #655d54; font-size: .42rem; text-transform: uppercase; }
.chronicle-card-copy dd { margin: 4px 0 0; color: var(--ivory-soft); font-size: .56rem; }
.chronicle-progress { height: 2px; margin-bottom: 22px; background: #29241e; }
.chronicle-progress i { display: block; width: 0; height: 100%; background: var(--gold-bright); box-shadow: 0 0 10px var(--gold); transition: width .4s; }
.chronicle-card-copy .button { align-self: start; }
.chronicle-memory { padding: 26px; }
.chronicle-memory ol { position: relative; list-style: none; margin: 22px 0 0; padding: 0 0 0 24px; }
.chronicle-memory ol::before { content:""; position: absolute; left: 4px; top: 6px; bottom: 8px; width: 1px; background: var(--line); }
.chronicle-memory li { position: relative; display: grid; grid-template-columns: minmax(0,1fr); margin-bottom: 19px; }
.chronicle-memory li > div { min-width: 0; }
.chronicle-memory li > span { position: absolute; left: -23px; top: 2px; color: var(--gold-dark); }
.chronicle-memory strong { display: block; font: 400 .75rem var(--serif); }
.chronicle-memory p { margin: 3px 0 0; color: var(--muted); font-size: .48rem; line-height: 1.45; }
.future-chronicles { margin-top: 16px; padding: 27px; border: 1px solid var(--line); background: #0e0d0a; }
.future-chronicles > div:last-child { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin-top: 20px; background: var(--line); border: 1px solid var(--line); }
.future-chronicles button { position: relative; min-height: 185px; display: flex; flex-direction: column; align-items: flex-start; padding: 22px; border: 0; color: var(--ivory-soft); background: #11100d; text-align: left; cursor: pointer; transition: background .2s; }
.future-chronicles button:hover { background: #17140f; }
.future-chronicles button > span { position: absolute; right: 17px; top: 14px; color: var(--gold-dark); font: italic 1rem var(--serif); }
.future-chronicles button small { color: var(--gold-dark); font-size: .43rem; letter-spacing: .12em; }
.future-chronicles button strong { max-width: 220px; margin-top: auto; font: 400 1.35rem/1.1 var(--serif); }
.future-chronicles button em { margin-top: 13px; color: var(--gold); font: normal .48rem var(--sans); }

/* Worlds */
.world-count { align-self: center; padding: 13px 0 13px 22px; border-left: 1px solid var(--gold-dark); color: var(--gold-bright); font: 400 1rem/1.4 var(--serif); }
.world-count small { color: var(--muted); font: .48rem var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.worlds-hero { position: relative; height: 250px; overflow: hidden; margin-bottom: 16px; border: 1px solid var(--line); }
.worlds-hero > div { position: absolute; inset: 0; background: linear-gradient(90deg,rgba(7,6,5,.45),transparent,rgba(7,6,5,.2)), url("assets/limiar-worlds-hall.png") center/cover; }
.worlds-hero p { position: absolute; left: 25px; bottom: 18px; margin: 0; color: var(--gold); font-size: .51rem; letter-spacing: .17em; }
.worlds-hero > span { position: absolute; right: 27px; bottom: 3px; color: rgba(240,234,220,.55); font: italic 3rem var(--serif); }
.world-catalog { display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); list-style: none; }
.world-catalog li:nth-child(odd) { border-right: 1px solid var(--line); }
.world-catalog button { width: 100%; min-height: 126px; display: grid; grid-template-columns: 38px 1fr auto 18px; align-items: center; gap: 12px; padding: 14px 18px 14px 3px; border: 0; border-bottom: 1px solid var(--line); color: var(--ivory-soft); background: transparent; text-align: left; cursor: pointer; transition: padding .2s, background .2s; }
.world-catalog button:hover { padding-left: 12px; background: rgba(240,234,220,.02); }
.world-catalog button > span { color: var(--gold-dark); font: italic .8rem var(--serif); }
.world-catalog small, .world-catalog strong, .world-catalog p { display: block; }
.world-catalog small { color: var(--gold-dark); font-size: .42rem; letter-spacing: .12em; }
.world-catalog strong { margin: 3px 0; font: 400 1.45rem var(--serif); }
.world-catalog strong i { color: var(--gold); font-weight: 400; }
.world-catalog p { margin: 0; color: #766e64; font-size: .51rem; }
.world-catalog em { color: var(--gold); font: normal .48rem var(--sans); }
.world-catalog b { color: var(--gold); font-weight: 400; }

/* Social */
.no-ai-mark { align-self: center; color: #7d7469; font-size: .46rem; letter-spacing: .13em; }
.no-ai-mark i { display: inline-grid; width: 27px; height: 27px; place-items: center; margin-right: 7px; border: 1px solid var(--line); color: var(--gold-dark); font: normal .46rem var(--sans); text-decoration: line-through; }
.social-tabs { display: flex; margin-bottom: 16px; border-bottom: 1px solid var(--line-strong); }
.social-tabs button { min-width: 130px; min-height: 46px; border: 0; border-bottom: 1px solid transparent; color: #766f65; background: transparent; font-size: .59rem; cursor: pointer; }
.social-tabs button.is-active { color: var(--ivory); border-color: var(--gold-bright); }
.social-tabs button span { display: inline-grid; min-width: 19px; height: 19px; place-items: center; margin-left: 5px; border: 1px solid var(--line); color: var(--gold); font-size: .43rem; }
.social-tab-panel[hidden] { display: none !important; }
.social-tab-panel.is-active { animation: routeReveal .25s both; }
.social-tab-panel[data-social-panel="praca"] { display: grid; grid-template-columns: minmax(600px,1fr) 270px; gap: 16px; }
.social-feed-main { padding: 26px 29px; border: 1px solid var(--line); background: #0f0e0b; }
.social-feed-main > header { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.social-feed-main > header p { margin: 0 0 3px; color: var(--gold-dark); font-size: .45rem; letter-spacing: .13em; }
.social-feed-main > header h2 { margin: 0; font: 400 1.5rem var(--serif); }
.social-feed-main > header > span { color: #776e64; font-size: .47rem; }
.social-feed-main > header > span i { display: inline-block; width: 5px; height: 5px; margin-right: 5px; border-radius: 50%; background: #769365; }
#square-post-form { margin: 20px 0; padding: 17px; border: 1px solid var(--line); background: #13110e; }
#square-post-form > label { display: block; margin-bottom: 9px; color: var(--gold); font-size: .48rem; letter-spacing: .1em; text-transform: uppercase; }
#square-post-form > div { display: grid; grid-template-columns: 38px 1fr 75px; align-items: start; gap: 10px; }
#square-post-form textarea { min-height: 66px; resize: vertical; padding: 9px; border: 0; border-bottom: 1px solid var(--line-strong); outline: 0; color: var(--ivory); background: transparent; font-size: .65rem; }
#square-post-form button { min-height: 42px; border: 1px solid var(--gold-dark); color: var(--gold-bright); background: transparent; font-size: .51rem; cursor: pointer; }
#square-post-form > small { display: block; margin: 8px 0 0 48px; color: #625a52; font-size: .44rem; }
.square-feed { list-style: none; margin: 0; padding: 0; }
.square-feed li { display: grid; grid-template-columns: 39px 1fr auto; gap: 12px; padding: 17px 3px; border-bottom: 1px solid var(--line); }
.square-feed li strong { display: block; font-size: .61rem; }
.square-feed li time { margin-left: 7px; color: #696157; font-size: .43rem; font-weight: 400; }
.square-feed li p { margin: 5px 0; color: var(--ivory-soft); font: italic .78rem/1.5 var(--serif); }
.square-feed li small { color: var(--gold-dark); font-size: .43rem; text-transform: uppercase; }
.square-feed li > button { align-self: center; min-height: 36px; border: 0; border-bottom: 1px solid var(--gold-dark); color: var(--gold); background: transparent; font-size: .48rem; cursor: pointer; }
.square-guidance { min-height: 360px; padding: 28px 25px; border: 1px solid var(--line); background: linear-gradient(0deg,rgba(11,10,8,.92),rgba(11,10,8,.6)), url("assets/limiar-worlds-hall.png") 35% center/cover; }
.square-guidance > p { margin: 0 0 5px; color: var(--gold); font-size: .45rem; letter-spacing: .13em; }
.square-guidance h3 { margin: 0; font: 400 1.7rem/1.05 var(--serif); }
.square-guidance ul { margin: 24px 0; padding: 0 0 0 17px; color: var(--ivory-soft); font-size: .58rem; line-height: 2.1; }
.square-guidance a { color: var(--gold-bright); font-size: .52rem; }
.subpage-heading { min-height: 74px; display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line-strong); }
.subpage-heading p { margin: 0; color: var(--gold-dark); font-size: .45rem; letter-spacing: .13em; }
.subpage-heading h2 { flex: 1; margin: 0; font: 400 1.7rem var(--serif); }
.subpage-heading span { color: var(--muted); font-size: .49rem; }
.people-list { list-style: none; margin: 0; padding: 0; }
.people-list li { min-height: 86px; display: grid; grid-template-columns: 42px 1fr 200px 90px; align-items: center; gap: 14px; padding: 12px 5px; border-bottom: 1px solid var(--line); }
.people-list strong, .people-list small { display: block; }
.people-list strong { font: 400 .93rem var(--serif); }
.people-list small { margin-top: 3px; color: #70675e; font-size: .49rem; }
.people-list small i { display: inline-block; width: 4px; height: 4px; margin-right: 4px; border-radius: 50%; background: #789566; }
.people-list em { color: #71685e; font: normal .52rem var(--sans); }
.people-list button { min-height: 38px; border: 0; border-bottom: 1px solid var(--gold-dark); color: var(--gold); background: transparent; font-size: .49rem; cursor: pointer; }
.group-list { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 18px; }
.group-list > button { min-height: 180px; display: grid; grid-template-columns: 48px 1fr auto; align-items: start; gap: 13px; padding: 25px; border: 1px solid var(--line); color: var(--ivory-soft); background: #0f0e0b; text-align: left; cursor: pointer; }
.group-list > button > span { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--gold-dark); color: var(--gold); font: .7rem var(--serif); }
.group-list strong { display: block; font: 400 1.25rem var(--serif); }
.group-list p { margin: 5px 0 30px; color: var(--muted); font-size: .54rem; }
.group-list small { color: var(--ivory-soft); font: italic .7rem var(--serif); }
.group-list em { color: var(--gold-dark); font: normal .46rem var(--sans); }
.invite-list { margin-top: 16px; border-top: 1px solid var(--line); }
.invite-item { min-height: 94px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 14px; padding: 14px 5px; border-bottom: 1px solid var(--line); }
.invite-item strong { display: block; font: 400 .9rem var(--serif); }
.invite-item p { margin: 4px 0 0; color: var(--muted); font-size: .51rem; }
.invite-item > div:last-child { display: flex; gap: 7px; }
.invite-item button { min-height: 38px; padding: 0 12px; border: 1px solid var(--line); color: var(--ivory-soft); background: transparent; font-size: .48rem; cursor: pointer; }
.invite-item button.primary { border-color: var(--gold-dark); color: var(--gold); }
.invite-item .request-sent { color: var(--gold); font-size: .5rem; }

/* Side sheets and room creation */
.side-sheet-dialog { width: min(680px, calc(100vw - 30px)); max-width: none; height: 100vh; max-height: none; margin: 0 0 0 auto; padding: 0; border: 0; border-left: 1px solid var(--gold-dark); background: #0e0d0a; box-shadow: -30px 0 90px rgba(0,0,0,.65); }
.side-sheet-dialog[open] { animation: sheetIn .35s both; }
@keyframes sheetIn { from { transform: translateX(40px); opacity: 0; } }
.side-sheet-dialog > article { min-height: 100%; display: flex; flex-direction: column; }
.sheet-visual { position: relative; min-height: 260px; display: flex; align-items: end; overflow: hidden; padding: 33px 39px; isolation: isolate; }
.sheet-art { position: absolute; z-index: -3; inset: 0; background: url("assets/vespera-key-art.png") center/cover; }
.sheet-visual::after { content:""; position: absolute; z-index: -2; inset: 0; background: linear-gradient(0deg,#0e0d0a,rgba(8,7,6,.2)), linear-gradient(90deg,rgba(8,7,6,.65),transparent); }
.sheet-rift { position: absolute; z-index: -1; top: -10%; bottom: -10%; right: 22%; width: 1px; background: var(--gold-bright); box-shadow: 0 0 18px var(--gold); }
.sheet-close { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border: 1px solid rgba(240,234,220,.25); color: var(--ivory); background: rgba(8,7,6,.7); font-size: 1.25rem; cursor: pointer; }
.sheet-visual p { margin: 0 0 4px; color: var(--gold-bright); font-size: .5rem; letter-spacing: .16em; }
.sheet-visual h2 { max-width: 500px; margin: 0; font: 400 clamp(2.5rem,4vw,4.3rem)/.9 var(--serif); }
.sheet-visual > div:last-child > span { display: inline-block; margin-top: 10px; padding: 3px 7px; border: 1px solid var(--gold-dark); color: var(--gold-bright); font-size: .45rem; letter-spacing: .1em; text-transform: uppercase; }
.sheet-content { flex: 1; overflow-y: auto; padding: 29px 39px 120px; }
.sheet-content > nav { display: flex; gap: 7px; color: #70675d; font-size: .47rem; }
.sheet-content > nav a { color: var(--gold); }
.room-long-premise, .world-detail-lede { margin: 24px 0; color: var(--ivory-soft); font: italic 1.05rem/1.7 var(--serif); }
.room-detail-facts { display: grid; grid-template-columns: repeat(4,1fr); margin: 0 0 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.room-detail-facts div { padding: 13px 8px 13px 0; }
.room-detail-facts dt { color: #665e55; font-size: .43rem; text-transform: uppercase; }
.room-detail-facts dd { margin: 4px 0 0; color: var(--ivory-soft); font-size: .57rem; }
.sheet-content > section { margin-top: 26px; }
.sheet-section-heading p { margin: 0 0 2px; color: var(--gold-dark); font-size: .43rem; letter-spacing: .13em; }
.sheet-section-heading h3 { margin: 0 0 12px; font: 400 1.16rem var(--serif); }
.participant-list, .room-rules, .campaign-examples { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.participant-list li { min-height: 57px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 9px; border-bottom: 1px solid var(--line); }
.participant-list li span { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid #3f382f; border-radius: 50%; color: var(--ivory-soft); background: #15120f; font-size: .43rem; }
.participant-list strong, .participant-list small { display: block; }
.participant-list strong { font: 400 .73rem var(--serif); }
.participant-list small, .participant-list em { color: var(--muted); font: normal .46rem var(--sans); }
.room-rules li, .campaign-examples li { min-height: 48px; display: grid; grid-template-columns: 20px 1fr; align-items: center; gap: 7px; border-bottom: 1px solid var(--line); color: var(--ivory-soft); font-size: .56rem; }
.room-rules li::before { content:"◇"; color: var(--gold-dark); }
.detail-tags, .world-mechanics { display: flex; flex-wrap: wrap; gap: 7px; }
.detail-tags span, .world-mechanics span { padding: 6px 9px; border: 1px solid var(--line); color: #92887b; font-size: .48rem; }
.sheet-footer { position: sticky; z-index: 3; bottom: 0; min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: -88px; padding: 17px 30px; border-top: 1px solid var(--line-strong); background: rgba(14,13,10,.98); }
.sheet-footer span, .sheet-footer strong { display: block; }
.sheet-footer span { color: #72695f; font-size: .47rem; }
.sheet-footer strong { margin-top: 4px; color: var(--gold); font-size: .54rem; }
.sheet-footer .button:disabled { color: #6d655b; background: #242019; border-color: #353029; cursor: default; }
.world-sheet-visual .sheet-art { background-image: url("assets/limiar-worlds-hall.png"); }
.world-boundary { margin-top: 27px; padding: 17px; border-left: 1px solid var(--gold-dark); background: rgba(185,154,93,.035); }
.world-boundary span { color: var(--gold-dark); font-size: .43rem; letter-spacing: .13em; }
.world-boundary p { margin: 6px 0 0; color: var(--muted); font-size: .57rem; line-height: 1.6; }
.campaign-examples li { grid-template-columns: 25px 1fr; }
.campaign-examples li::before { content:"—"; color: var(--gold-dark); }
.create-room-dialog { width: min(960px, calc(100vw - 30px)); max-height: min(790px, calc(100vh - 30px)); padding: 0; border: 1px solid var(--gold-dark); background: #0e0d0a; box-shadow: 0 30px 100px #000; }
.create-room-dialog form { display: grid; grid-template-columns: 270px 1fr; min-height: 650px; }
.create-room-aside { position: relative; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 34px; background: linear-gradient(0deg,rgba(7,6,5,.9),rgba(7,6,5,.25)), url("assets/limiar-worlds-hall.png") 22% center/cover; }
.create-room-aside::after { content:""; position: absolute; top: 0; bottom: 0; left: 66%; width: 1px; background: var(--gold-bright); box-shadow: 0 0 18px var(--gold); }
.create-room-aside > span { position: absolute; left: 30px; top: 30px; color: var(--gold); font-size: 1.4rem; }
.create-room-aside p { margin: 0 0 9px; color: var(--gold); font-size: .47rem; letter-spacing: .15em; }
.create-room-aside blockquote { margin: 0 0 20px; color: var(--ivory); font: italic 1.28rem/1.45 var(--serif); }
.create-room-aside small { color: #756c61; font-size: .43rem; letter-spacing: .1em; }
.create-room-content { position: relative; overflow-y: auto; padding: 42px 48px 28px; }
.create-room-content > h2 { margin: 0; font: 400 3.1rem/.95 var(--serif); }
.create-room-content > p:not(.route-context) { margin: 10px 0 24px; color: var(--muted); font-size: .62rem; }
.room-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 18px; }
.room-form-grid label { color: var(--ivory-soft); font-size: .5rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.room-form-grid label.wide { grid-column: 1 / -1; }
.room-form-grid input, .room-form-grid select, .room-form-grid textarea { width: 100%; min-height: 43px; display: block; margin-top: 6px; padding: 8px 9px; border: 1px solid var(--line); border-radius: 0; outline: 0; color: var(--ivory); background: #13110e; font-size: .63rem; text-transform: none; }
.room-form-grid textarea { min-height: 77px; resize: vertical; }
.room-form-grid input:focus, .room-form-grid select:focus, .room-form-grid textarea:focus { border-color: var(--gold); }
.room-form-grid [aria-invalid="true"] { border-color: #a34f49; }
.room-form-grid .field-error { min-height: 14px; font-size: .44rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.create-room-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 16px; padding-top: 17px; border-top: 1px solid var(--line); }
.create-room-actions > p { margin: 0; color: #70675d; font-size: .48rem; }
.create-room-actions > p span { color: var(--gold-dark); }
.create-room-actions > div { display: flex; gap: 8px; }
.community-detail-dialog { width: min(610px, calc(100vw - 30px)); padding: 0; border: 1px solid var(--gold-dark); background: #0e0d0a; box-shadow: 0 30px 100px #000; }
.community-detail-dialog article { position: relative; padding: 38px; }
.community-detail-dialog h2 { margin: 0; font: 400 2.7rem/.95 var(--serif); }
.community-detail-dialog article > p:not(.route-context) { margin: 12px 0 22px; color: var(--muted); font-size: .64rem; line-height: 1.65; }
.community-detail-dialog dl { display: grid; grid-template-columns: repeat(3,1fr); margin: 0 0 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.community-detail-dialog dl div { padding: 12px 8px 12px 0; }
.community-detail-dialog dt { color: #675f55; font-size: .42rem; text-transform: uppercase; }
.community-detail-dialog dd { margin: 4px 0 0; color: var(--ivory-soft); font-size: .55rem; }
.local-conversation { border-top: 1px solid var(--line); }
.local-conversation p { display: grid; grid-template-columns: 95px 1fr; gap: 12px; margin: 0; padding: 13px 2px; border-bottom: 1px solid var(--line); }
.local-conversation strong { color: var(--gold); font-size: .52rem; }
.local-conversation span { color: var(--ivory-soft); font: italic .7rem var(--serif); }
.community-detail-dialog footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 24px; }
.community-detail-dialog footer > span { max-width: 320px; color: #6d655c; font-size: .45rem; }

@media (min-width: 1600px) {
  .app-sidebar { width: 278px; padding-left: 29px; padding-right: 29px; }
  .platform-content { margin-left: 278px; padding-left: 64px; padding-right: 64px; }
  .home-chronicle-feature { min-height: 390px; }
  .rooms-workspace { grid-template-columns: 235px minmax(650px, 1fr) 270px; gap: 20px; }
  .rich-room-item { min-height: 166px; grid-template-columns: 40px minmax(300px,1fr) 145px 110px; }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .app-sidebar { width: 232px; padding-left: 18px; padding-right: 18px; }
  .platform-content { margin-left: 232px; padding-left: 28px; padding-right: 28px; }
  .discovery-aside { display: none; }
  .rooms-workspace { grid-template-columns: 200px minmax(480px,1fr); }
  .home-chronicle-feature { grid-column: 1 / 8; }
  .quick-decisions { grid-column: 8 / -1; padding-left: 20px; padding-right: 20px; }
  .home-recommendations, .home-activity { grid-column: 1 / 9; }
  .community-pulse, .favorite-worlds { grid-column: 9 / -1; }
}

@media (max-width: 1023px) {
  body.in-platform { overflow-y: hidden; }
  .platform-screen { height: 100dvh; min-height: 0; overflow: hidden; }
  .app-sidebar { display: none; }
  .mobile-app-topbar { position: fixed; z-index: 35; inset: 0 0 auto; min-height: 64px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: max(10px, env(safe-area-inset-top)) 18px 10px; border-bottom: 1px solid var(--line); background: rgba(9,8,6,.98); }
  .mobile-app-topbar > span { color: var(--ivory-soft); font: 400 .9rem var(--serif); }
  .mobile-app-topbar > button { justify-self: end; width: 44px; height: 44px; border: 1px solid var(--gold-dark); color: var(--gold); background: transparent; font-size: 1rem; }
  .mobile-bottom-nav { position: fixed; z-index: 35; inset: auto 0 0; min-height: calc(66px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5,1fr); padding: 5px 8px env(safe-area-inset-bottom); border-top: 1px solid var(--line-strong); background: rgba(9,8,6,.985); }
  .mobile-bottom-nav a { min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-top: 1px solid transparent; color: #756d63; font-size: .48rem; text-decoration: none; }
  .mobile-bottom-nav a[aria-current="page"] { color: var(--gold-bright); border-color: var(--gold); }
  .mobile-bottom-nav svg { width: 18px; height: 18px; }
  .platform-content {
    height: calc(100dvh - 66px - env(safe-area-inset-bottom));
    min-height: 0;
    margin-left: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scroll-padding-block: 90px 32px;
    padding: 90px 24px 36px;
  }
  .route-page :is(a,button,input,select,textarea,[tabindex]):focus-visible {
    scroll-margin-block: 86px 28px;
  }
  .page-header { min-height: 98px; }
  .dashboard-grid { grid-template-columns: repeat(2,1fr); }
  .home-chronicle-feature, .quick-decisions, .home-recommendations, .community-pulse, .home-activity, .favorite-worlds { grid-column: auto; grid-row: auto; }
  .home-chronicle-feature, .home-recommendations, .home-activity { grid-column: 1 / -1; }
  .rooms-workspace { grid-template-columns: 210px minmax(0,1fr); }
  .discovery-aside { display: none; }
  .room-search-row { display: block; }
  .room-search-row > label { width: 100%; }
  .room-tabs { min-width: 0; margin-top: 13px; }
  .chronicles-layout { grid-template-columns: 1fr; }
  .current-chronicle { grid-template-columns: .8fr 1.2fr; }
  .social-tab-panel[data-social-panel="praca"] { grid-template-columns: 1fr; }
  .square-guidance { min-height: 230px; }
}

@media (min-width: 701px) and (max-width: 900px) {
  .rich-room-item { min-height: 0; grid-template-columns: 27px minmax(0,1fr); gap: 8px; padding: 17px 2px; }
  .room-list-copy { grid-column: 2; }
  .room-list-meta { grid-column: 2; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .room-list-action { grid-column: 2; flex-direction: row; align-items: center; }
}

@media (max-width: 700px) {
  .platform-content { padding-left: 14px; padding-right: 14px; }
  .mobile-app-topbar { padding-left: 14px; padding-right: 14px; }
  .mobile-app-topbar .brand { font-size: .68rem; }
  .mobile-app-topbar .brand-emblem { width: 27px; height: 33px; flex-basis: 27px; }
  .mobile-app-topbar .brand-mark { width: 19px; height: 19px; }
  .page-header { min-height: auto; display: block; margin-bottom: 18px; padding: 20px 0 17px; }
  .page-header h1 { font-size: 3.3rem; }
  .page-header-actions { margin-top: 17px; }
  .page-header-actions .button { flex: 1; }
  .header-status, .world-count, .no-ai-mark { display: none; }
  .dashboard-grid { display: block; }
  .dashboard-grid > * { margin-bottom: 12px; }
  .home-chronicle-feature { min-height: 400px; }
  .feature-art { background-position: 63% center; }
  .feature-copy { left: 23px; bottom: 32px; width: 76%; }
  .feature-copy h2 { font-size: 3rem; }
  .feature-rift { left: 77%; }
  .quick-decisions, .home-recommendations, .community-pulse, .home-activity, .favorite-worlds { padding: 21px 18px; }
  .recommendation-list > button { grid-template-columns: 28px 1fr 17px; }
  .rec-people { display: none; }
  .activity-filled { grid-template-columns: 1fr; }
  .community-pulse dl { grid-template-columns: repeat(3,1fr); }
  .room-search-row { margin-bottom: 12px; }
  .room-tabs { overflow-x: auto; }
  .room-tabs button { min-width: 125px; }
  .rooms-workspace { display: block; }
  .filter-rail { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; margin-bottom: 13px; padding: 17px; }
  .filter-heading, #filters-status, .filter-foot { grid-column: 1 / -1; }
  .filter-rail > label { margin-top: 9px; }
  .rich-room-item { min-height: 0; grid-template-columns: 27px 1fr; gap: 8px; padding: 17px 2px; }
  .room-list-copy { grid-column: 2; }
  .room-list-meta { grid-column: 2; grid-template-columns: repeat(3,1fr); }
  .room-list-action { grid-column: 2; flex-direction: row; align-items: center; }
  .room-results > header label { display: none; }
  .current-chronicle { display: block; }
  .chronicle-art { height: 230px; }
  .chronicle-card-copy { padding: 26px 21px; }
  .chronicle-card-copy dl { grid-template-columns: 1fr; }
  .chronicle-card-copy dl div { border-bottom: 1px solid var(--line); }
  .future-chronicles { padding: 21px 17px; }
  .future-chronicles > div:last-child { grid-template-columns: 1fr; }
  .worlds-hero { height: 190px; }
  .world-catalog { grid-template-columns: 1fr; }
  .world-catalog li:nth-child(odd) { border-right: 0; }
  .world-catalog button { min-height: 116px; grid-template-columns: 29px 1fr 16px; padding-right: 5px; }
  .world-catalog em { display: none; }
  .social-tabs { overflow-x: auto; }
  .social-tabs button { min-width: 105px; }
  .social-feed-main { padding: 20px 16px; }
  .social-feed-main > header { display: block; }
  .social-feed-main > header > span { display: block; margin-top: 8px; }
  #square-post-form > div { grid-template-columns: 34px 1fr; }
  #square-post-form button { grid-column: 2; }
  #square-post-form > small { margin-left: 44px; }
  .square-feed li { grid-template-columns: 36px 1fr; }
  .square-feed li > button { grid-column: 2; justify-self: start; }
  .people-list li { grid-template-columns: 39px 1fr auto; }
  .people-list li > em { display: none; }
  .group-list { grid-template-columns: 1fr; }
  .invite-item { grid-template-columns: 38px 1fr; }
  .invite-item > div:last-child { grid-column: 2; }
  .side-sheet-dialog { width: 100vw; }
  .sheet-visual { min-height: 230px; padding: 28px 22px; }
  .sheet-content { padding: 23px 22px 115px; }
  .room-detail-facts { grid-template-columns: 1fr 1fr; }
  .sheet-footer { padding: 14px 16px; }
  .sheet-footer > div { max-width: 44%; }
  .create-room-dialog { width: calc(100vw - 10px); max-height: calc(100vh - 10px); }
  .create-room-dialog form { display: block; }
  .create-room-aside { display: none; }
  .create-room-content { padding: 38px 18px 20px; }
  .create-room-content > h2 { font-size: 2.7rem; }
  .room-form-grid { grid-template-columns: 1fr; }
  .room-form-grid label.wide { grid-column: auto; }
  .create-room-actions { align-items: stretch; flex-direction: column; }
  .create-room-actions > div { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 410px) {
  .mobile-app-topbar > span { display: none; }
  .mobile-app-topbar { grid-template-columns: 1fr auto; }
  .filter-rail { grid-template-columns: 1fr; }
  .filter-heading, #filters-status, .filter-foot { grid-column: auto; }
  .room-list-meta { grid-template-columns: 1fr 1fr; }
  .page-header-actions { flex-direction: column; }
  .feature-copy h2 { font-size: 2.7rem; }
  .sheet-footer > div { display: none; }
  .sheet-footer .button { width: 100%; }
}

/* Iteration 2 legibility and navigation refinements */
:root {
  --micro-label: clamp(.75rem, .65vw, .875rem);
  --micro-meta: clamp(.8125rem, .68vw, .9rem);
  --micro-action: clamp(.8125rem, .72vw, .9375rem);
  --muted-readable: #9b9184;
  --muted-secondary: #887f73;
}

.route-page h1[tabindex="-1"] { position: relative; width: fit-content; }
.route-page h1[tabindex="-1"]:focus,
.route-page h1[tabindex="-1"]:focus-visible { outline: 0; }
.route-page h1[tabindex="-1"]::before {
  content: "";
  position: absolute;
  left: -14px;
  top: .18em;
  width: 2px;
  height: .64em;
  background: var(--gold-bright);
  opacity: 0;
  transform: scaleY(.35);
  transition: opacity .18s ease, transform .18s ease;
}
.route-page h1[tabindex="-1"]:focus::before { opacity: .78; transform: scaleY(1); }

.platform-screen small,
.sidebar-edition,
.route-context,
.header-status span,
.header-status time,
.feature-copy > p:first-child,
.feature-progress,
.block-heading p,
.rec-copy small,
.rec-people small,
.community-pulse dt,
.activity-filled small,
.room-search-row > label,
#filters-status,
.filter-rail > label,
.filter-foot p,
.room-results > header p,
.room-results > header label,
.room-list-copy .room-genre,
.room-state-badge,
.room-tagline span,
.room-list-meta small,
.room-list-action .room-avatars i,
.local-room-ribbon,
.discovery-aside > p:first-of-type,
.discovery-aside dt,
.chronicle-card-copy > p:first-child,
.chronicle-card-copy dt,
.future-chronicles button small,
.worlds-hero p,
.world-catalog small,
.no-ai-mark,
.social-feed-main > header p,
.social-feed-main > header > span,
#square-post-form > label,
#square-post-form > small,
.square-feed li time,
.square-feed li small,
.square-guidance > p,
.subpage-heading p,
.subpage-heading span,
.sheet-visual p,
.sheet-visual > div:last-child > span,
.sheet-content > nav,
.room-detail-facts dt,
.sheet-section-heading p,
.detail-tags span,
.world-mechanics span,
.sheet-footer span,
.world-boundary span,
.room-form-grid label,
.room-form-grid .field-error {
  font-size: var(--micro-label);
}

.decision-list small,
.community-pulse li small,
.activity-empty p,
.activity-filled p,
.room-list-copy > p,
.room-list-meta strong,
.discovery-aside > p:not(:first-of-type),
.chronicle-card-copy dd,
.chronicle-memory p,
.world-catalog p,
.people-list small,
.group-list p,
.invite-item p,
.room-detail-facts dd,
.world-boundary p,
.community-detail-dialog article > p:not(.route-context),
.community-detail-dialog dd {
  font-size: var(--micro-meta);
}

.sidebar-create strong,
.room-tabs button,
.search-control input,
.filter-rail select,
.room-results select,
.room-list-action button,
.discovery-aside > button,
.world-catalog em,
.social-tabs button,
#square-post-form button,
.square-feed li > button,
.people-list button,
.invite-item button,
.room-form-grid input,
.room-form-grid select,
.room-form-grid textarea {
  font-size: var(--micro-action);
}

.app-nav small,
.sidebar-create small,
.sidebar-profile small,
.decision-list small,
.community-pulse dt,
.community-pulse li small,
.activity-empty p,
.activity-filled p,
.room-search-row > label,
#filters-status,
.filter-rail > label,
.filter-foot p,
.room-results > header label,
.room-list-copy > p,
.room-list-meta small,
.discovery-aside > p:not(:first-of-type),
.discovery-aside dt,
.chronicle-card-copy dt,
.chronicle-memory p,
.world-catalog p,
.no-ai-mark,
.social-feed-main > header > span,
.subpage-heading span,
.people-list small,
.group-list p,
.invite-item p,
.sheet-content > nav,
.room-detail-facts dt,
.sheet-footer span,
.world-boundary p {
  color: var(--muted-readable);
}

.mobile-filter-toggle { display: none; }

@media (max-width: 1023px) {
  .mobile-bottom-nav a { font-size: var(--micro-label); }
}

@media (max-width: 700px) {
  .room-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 1px;
    overflow: visible;
    border: 1px solid var(--line);
  }
  .room-tabs button { min-width: 0; min-height: 42px; padding: 0 7px; }
  .mobile-filter-toggle {
    width: 100%;
    min-height: 48px;
    display: grid;
    grid-template-columns: 1fr auto 20px;
    align-items: center;
    gap: 9px;
    margin-top: 11px;
    padding: 0 13px;
    border: 1px solid var(--line-strong);
    color: var(--ivory-soft);
    background: #0f0e0b;
    text-align: left;
    cursor: pointer;
  }
  .mobile-filter-toggle span { font-size: var(--micro-action); font-weight: 650; }
  .mobile-filter-toggle strong { color: var(--gold); font-size: var(--micro-label); font-weight: 500; }
  .mobile-filter-toggle i { color: var(--gold-bright); font: normal 1rem var(--serif); text-align: right; transition: transform .18s ease; }
  .mobile-filter-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
  .filter-rail { display: none; }
  .filter-rail.is-mobile-open { display: grid; }
}

/* Story library home */
.story-library-page { padding-bottom: 24px; }
.story-library-header { min-height: 178px; align-items: end; padding-bottom: 28px; }
.story-library-header > div { max-width: 980px; }
.story-library-header h1 { max-width: 960px; font-family: var(--display); font-size: clamp(3.45rem, 5.25vw, 6rem); line-height: .98; letter-spacing: -.045em; }
.story-library-header > div > p:last-child { max-width: 680px; font: 400 1.06rem/1.55 var(--prose); }
.story-genres-link { align-self: end; margin-bottom: 8px; padding: 9px 0; border-bottom: 1px solid var(--gold-dark); color: var(--gold-bright); font-size: var(--micro-action); text-decoration: none; }
.story-genres-link span { margin-left: 18px; }

.story-feature { min-height: 510px; display: grid; grid-template-columns: minmax(0,1.18fr) minmax(420px,.82fr); overflow: hidden; border: 1px solid var(--line-strong); background: #0d0c0a; }
.story-feature.is-changing { animation: storyFeatureSwap .38s ease both; }
.story-feature-media { position: relative; min-width: 0; overflow: hidden; background: #0b0a08; }
.story-feature-media::after { content:""; position: absolute; inset: 0; background: linear-gradient(90deg,transparent 55%,rgba(8,7,6,.68)), linear-gradient(0deg,rgba(8,7,6,.32),transparent 48%); pointer-events: none; }
.story-feature-media img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; aspect-ratio: 1586 / 992; filter: saturate(.82) contrast(1.05); transform: scale(1.002); }
.story-feature-index { position: absolute; z-index: 2; left: 24px; top: 22px; padding: 6px 9px; border: 1px solid rgba(240,234,220,.24); color: var(--ivory-soft); background: rgba(8,7,6,.66); font-size: var(--micro-label); letter-spacing: .11em; }
.story-feature-rift { position: absolute; z-index: 2; right: 19%; top: 7%; bottom: 7%; width: 1px; background: linear-gradient(transparent,var(--gold-bright),transparent); box-shadow: 0 0 18px rgba(223,199,135,.55); opacity: .72; }
.story-feature-content { position: relative; display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 44px 46px 40px; }
.story-feature-content::before { content:""; position: absolute; left: 0; top: 11%; bottom: 11%; width: 1px; background: linear-gradient(transparent,var(--gold-dark),transparent); }
.story-feature-overline { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.story-feature-overline span { color: var(--gold-bright); font-size: clamp(.8125rem,.78vw,.9375rem); font-weight: 650; letter-spacing: .105em; }
.story-feature-overline em { padding: 5px 8px; border: 1px solid var(--line-strong); color: var(--muted-readable); font: normal var(--micro-label)/1 var(--sans); white-space: nowrap; }
.story-feature-overline em.is-live { border-color: var(--gold-dark); color: var(--gold-bright); }
.story-feature-content h2 { margin: 0; max-width: 690px; font: 400 clamp(2.8rem,3.7vw,4.75rem)/.98 var(--display); letter-spacing: -.04em; }
.story-feature-premise { max-width: 670px; margin: 21px 0 0; color: #b9afa1; font: 400 1.08rem/1.62 var(--prose); }
.story-feature-facts { display: grid; grid-template-columns: .72fr 1.28fr; margin: 26px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.story-feature-facts div { min-width: 0; padding: 13px 16px 13px 0; }
.story-feature-facts div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.story-feature-facts dt { color: var(--muted-secondary); font-size: var(--micro-label); text-transform: uppercase; }
.story-feature-facts dd { margin: 3px 0 0; color: var(--ivory-soft); font-size: var(--micro-meta); }
.story-feature-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 17px; }
.story-feature-tags span { padding: 5px 8px; border: 1px solid var(--line); color: var(--muted-readable); font-size: var(--micro-label); }
.story-feature-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; margin-top: 24px; }
.story-feature-actions .button { min-height: 48px; }
.story-interest-button { border: 0; border-bottom: 1px solid var(--gold-dark); color: var(--gold-bright); background: transparent; font-size: var(--micro-action); cursor: pointer; }
.story-interest-button[hidden] { display: none !important; }
.story-interest-button:disabled { border-color: var(--line); color: var(--muted-readable); cursor: default; }

.story-shelf { margin-top: 24px; border-top: 1px solid var(--line-strong); }
.story-shelf > header { min-height: 92px; display: flex; align-items: end; justify-content: space-between; gap: 30px; padding: 19px 0 17px; }
.story-shelf > header p { margin: 0 0 4px; color: var(--gold); font-size: var(--micro-label); font-weight: 650; letter-spacing: .12em; }
.story-shelf > header h2 { margin: 0; font: 400 1.9rem var(--display); }
.story-shelf > header > span { color: var(--muted-readable); font-size: var(--micro-meta); }
.story-shelf-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.story-shelf-list li:nth-child(odd) { border-right: 1px solid var(--line); }
.story-shelf-list button { position: relative; width: 100%; min-height: 126px; display: grid; grid-template-columns: 34px 128px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 13px 17px 13px 3px; border: 0; border-bottom: 1px solid var(--line); color: var(--ivory-soft); background: transparent; text-align: left; cursor: pointer; transition: background .2s,box-shadow .2s,color .2s; }
.story-shelf-list button:hover { color: var(--ivory); background: rgba(240,234,220,.025); box-shadow: inset 2px 0 rgba(185,154,93,.48); }
.story-shelf-list button.is-selected { background: linear-gradient(90deg,rgba(185,154,93,.1),transparent 72%); box-shadow: inset 2px 0 var(--gold-bright); }
.story-shelf-number { color: var(--gold-dark); font: italic 1rem var(--prose); }
.story-shelf-art { height: 88px; overflow: hidden; border: 1px solid var(--line); background: var(--ink-soft); }
.story-shelf-art img { width: 100%; height: 100%; display: block; object-fit: cover; aspect-ratio: 1586 / 992; filter: saturate(.62) brightness(.72); transition: filter .2s,transform .35s; }
.story-shelf-list button:hover img,
.story-shelf-list button.is-selected img { filter: saturate(.86) brightness(.9); transform: scale(1.035); }
.story-shelf-copy { min-width: 0; }
.story-shelf-copy small,.story-shelf-copy strong,.story-shelf-copy em { display: block; }
.story-shelf-copy small { color: var(--gold); font-size: clamp(.75rem,.7vw,.875rem); letter-spacing: .09em; }
.story-shelf-copy strong { margin-top: 5px; color: var(--ivory); font: 400 clamp(1.08rem,1.25vw,1.42rem)/1.18 var(--display); }
.story-shelf-copy em { margin-top: 6px; color: var(--muted-readable); font: italic var(--micro-meta)/1.25 var(--prose); }
.story-shelf-state { align-self: start; margin-top: 8px; color: var(--muted-secondary); font-size: var(--micro-label); white-space: nowrap; }
.story-shelf-state.is-live { color: var(--gold-bright); }

.story-sheet-visual { min-height: 350px; }
.story-sheet-visual > img { position: absolute; z-index: -3; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; aspect-ratio: 1586 / 992; filter: brightness(.58) saturate(.8); }
.story-sheet-visual::after { content:""; position: absolute; z-index: -2; inset: 0; background: linear-gradient(0deg,#0d0b09 0%,rgba(8,7,6,.25) 75%); }
.story-sheet-visual .sheet-rift { position: absolute; z-index: -1; left: 29%; top: 7%; bottom: 7%; width: 1px; background: linear-gradient(transparent,var(--gold-bright),transparent); box-shadow: 0 0 18px rgba(223,199,135,.45); }

/* Preserve concept art without decorative lines drawn over the image. */
.story-feature-rift,
.sheet-rift,
.dialog-rift,
.chronicle-art > span {
  display: none;
}
.story-detail-synopsis { margin: 24px 0; color: #b9afa1; font: 400 1.06rem/1.68 var(--prose); }
.story-hook { margin-top: 28px; padding: 21px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.story-hook > p { margin: 12px 0 0; color: var(--ivory-soft); font: italic 1rem/1.62 var(--prose); }

.story-feature-premise,
.story-detail-synopsis,
.story-hook > p,
.story-copy p,
.consequence p,
.dialog-intro,
.room-list-copy > p,
.chronicle-memory p,
.world-catalog p,
.square-feed li p,
.community-detail-dialog article > p:not(.route-context) { font-family: var(--prose); }

@keyframes storyFeatureSwap { from { opacity: .55; transform: translateY(5px); } to { opacity: 1; transform: none; } }

@media (min-width: 1280px) and (max-width: 1599px) {
  .story-library-header h1 { font-size: clamp(3.4rem,4.9vw,4.65rem); }
  .story-feature { grid-template-columns: minmax(0,1.22fr) minmax(390px,.78fr); }
  .story-feature-content { padding: 31px 30px; }
  .story-feature-content h2 { font-size: clamp(2.55rem,3.15vw,3.15rem); }
  .story-feature-premise { margin-top: 15px; font-size: 1rem; }
  .story-feature-facts { margin-top: 18px; }
  .story-feature-tags { margin-top: 13px; }
  .story-feature-actions { margin-top: 17px; }
}

@media (max-width: 1279px) {
  .story-library-header h1 { font-size: clamp(3.25rem,5.8vw,4.7rem); }
  .story-feature { grid-template-columns: minmax(0,1.04fr) minmax(350px,.96fr); }
  .story-feature-content { padding: 34px 30px; }
  .story-feature-content h2 { font-size: clamp(2.4rem,3.8vw,3.6rem); }
  .story-shelf-list button { grid-template-columns: 29px 104px minmax(0,1fr); }
  .story-shelf-state { grid-column: 3; justify-self: start; margin: -5px 0 0; }
}

@media (max-width: 900px) {
  .story-library-header { display: block; min-height: 0; }
  .story-genres-link { display: inline-block; margin-top: 18px; }
  .story-feature { display: block; }
  .story-feature-media { height: 340px; }
  .story-feature-media::after { background: linear-gradient(0deg,rgba(8,7,6,.65),transparent 58%); }
  .story-feature-content::before { display: none; }
  .story-shelf-list { grid-template-columns: 1fr; }
  .story-shelf-list li:nth-child(odd) { border-right: 0; }
}

@media (max-width: 700px) {
  .story-library-header h1 { font-size: clamp(2.65rem,13vw,3.45rem); line-height: 1.03; }
  .story-library-header > div > p:last-child { font-size: 1rem; }
  .story-feature-media { height: 245px; }
  .story-feature-index { left: 14px; top: 14px; }
  .story-feature-content { padding: 26px 20px 24px; }
  .story-feature-overline { align-items: flex-start; }
  .story-feature-overline span { font-size: .75rem; }
  .story-feature-content h2 { font-size: clamp(2.25rem,11.5vw,3.05rem); }
  .story-feature-premise { font-size: 1rem; }
  .story-feature-facts { grid-template-columns: 1fr; }
  .story-feature-facts div + div { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .story-feature-actions { align-items: stretch; flex-direction: column; }
  .story-feature-actions .button,.story-interest-button { width: 100%; }
  .story-shelf > header { align-items: flex-start; flex-direction: column; gap: 5px; }
  .story-shelf-list button { min-height: 118px; grid-template-columns: 26px 82px minmax(0,1fr); gap: 9px; padding-right: 5px; }
  .story-shelf-art { height: 76px; }
  .story-shelf-copy strong { font-size: 1.02rem; }
  .story-shelf-copy em { color: #b8aea0; }
  .story-shelf-state { grid-column: 3; }
  .story-shelf-state:not(.is-live) { color: #aaa094; }
  .story-sheet-visual { min-height: 270px; }
}

@media (prefers-reduced-motion: reduce) {
  .story-feature.is-changing { animation: none; }
  .story-shelf-art img { transition: none; }
}

/* ========================================================================== */
/* Social sidebar, messenger and editorial room discovery                     */
/* ========================================================================== */

.app-sidebar { width: 292px; padding: 22px 18px 14px; }
.platform-content { margin-left: 292px; }
.sidebar-brand-row { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sidebar-brand-row .app-brand { margin: 0 8px; }
.notification-trigger { position: relative; width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--ivory-soft); background: #0d0b09; cursor: pointer; transition: color .18s ease-out,border-color .18s ease-out,background .18s ease-out; }
.notification-trigger:hover,.notification-trigger[aria-expanded="true"] { color: var(--gold-bright); border-color: var(--gold-dark); background: #15120e; }
.notification-trigger svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.notification-badge { position: absolute; right: -4px; top: -5px; min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 5px; border: 2px solid #090806; color: #130f09; background: var(--gold-bright); font: 700 12px/1 var(--sans); font-variant-numeric: tabular-nums; }
.notification-badge[hidden] { display: none; }
.sidebar-edition { margin: 12px 8px 10px; padding-bottom: 10px; }
.app-nav { gap: 1px; }
.app-nav a { min-height: 50px; padding: 6px 10px; }
.app-nav span,.app-nav small { font-size: 12px; }

.sidebar-social-hub { position: relative; min-height: 0; flex: 1; display: flex; flex-direction: column; margin-top: 12px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); background: linear-gradient(180deg,rgba(185,154,93,.035),transparent 28%); }
.sidebar-social-hub > header { min-height: 58px; display: grid; grid-template-columns: 1fr; align-items: center; }
.sidebar-social-hub > header p { margin: 0; color: var(--gold-dark); font-size: 12px; font-weight: 650; letter-spacing: .1em; }
.sidebar-social-hub > header h2 { margin: 2px 0 0; font: 400 1rem var(--display); }
.conversation-list .profile-monogram i,.sidebar-conversation-list .profile-monogram i,.context-profile .profile-monogram i { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: #789464; box-shadow: 0 0 7px rgba(120,148,100,.7); }
.sidebar-hub-tabs { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sidebar-hub-tabs button { min-width: 0; min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 5px; border: 0; border-bottom: 2px solid transparent; color: #8f8679; background: transparent; font-size: 12px; cursor: pointer; }
.sidebar-hub-tabs button span:not(.sidebar-tab-label) { min-width: 17px; height: 17px; display: inline-grid; place-items: center; margin-left: 3px; padding: 0 4px; color: var(--gold-bright); background: rgba(185,154,93,.12); font-size: 12px; font-variant-numeric: tabular-nums; }
.sidebar-hub-tabs button span:not(.sidebar-tab-label)[hidden] { display: none; }
.sidebar-hub-tabs button.is-active { color: var(--ivory); border-color: var(--gold-bright); }
.sidebar-hub-panels { min-height: 0; flex: 1; overflow-x: hidden; overflow-y: auto; scrollbar-color: var(--gold-dark) #0b0a08; }
.sidebar-hub-panels > [role="tabpanel"][hidden] { display: none !important; }
.sidebar-conversation-list button { position: relative; width: 100%; min-height: 62px; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 7px 3px; border: 0; border-bottom: 1px solid var(--line); color: var(--ivory-soft); background: transparent; text-align: left; cursor: pointer; transition: color .18s ease-out,background .18s ease-out; }
.sidebar-conversation-list button:hover { color: var(--ivory); background: rgba(240,234,220,.03); }
.sidebar-conversation-list .profile-monogram { position: relative; width: 34px; height: 34px; font-size: 12px; }
.sidebar-conversation-list .profile-monogram i { position: absolute; right: -2px; bottom: 1px; margin: 0; border: 2px solid #090806; }
.sidebar-conversation-list button > span:nth-child(2) { min-width: 0; }
.sidebar-conversation-list strong,.sidebar-conversation-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-conversation-list strong { font-size: 13px; font-weight: 600; }
.sidebar-conversation-list small { margin-top: 2px; color: var(--muted-readable); font-size: 12px; }
.sidebar-conversation-list time { align-self: start; padding-top: 3px; color: var(--muted-secondary); font-size: 12px; }
.sidebar-conversation-list button > b { position: absolute; right: 2px; bottom: 7px; min-width: 18px; height: 18px; display: grid; place-items: center; color: #15110a; background: var(--gold-bright); font-size: 12px; font-variant-numeric: tabular-nums; }
.sidebar-global-preview button { width: 100%; min-height: 76px; display: grid; grid-template-columns: 29px 1fr; gap: 8px; padding: 10px 3px; border: 0; border-bottom: 1px solid var(--line); color: var(--ivory-soft); background: transparent; text-align: left; cursor: pointer; }
.sidebar-global-preview button > span { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--gold); font-size: 12px; }
.sidebar-global-preview p { margin: 0; display: -webkit-box; overflow: hidden; color: var(--muted-readable); font: 400 13px/1.35 var(--prose); -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.sidebar-global-preview strong { display: block; margin-bottom: 2px; color: var(--ivory-soft); font: 600 12px var(--sans); }
.sidebar-panel-footer { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 4px; border: 0; border-bottom: 1px solid var(--gold-dark); color: var(--gold-bright); background: transparent; font-size: 12px; text-align: left; text-decoration: none; cursor: pointer; }
.sidebar-panel-footer span { float: right; }
#sidebar-panel-conversations { min-height: 100%; display: flex; flex-direction: column; }
#sidebar-panel-conversations .sidebar-conversation-list { min-height: 248px; flex: 1; display: grid; grid-template-rows: repeat(4,minmax(62px,1fr)); }
.sidebar-room-preview button { width: 100%; min-height: 72px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 8px; padding: 9px 3px; border: 0; border-bottom: 1px solid var(--line); color: var(--ivory-soft); background: transparent; text-align: left; cursor: pointer; }
.sidebar-room-preview button > span { min-width: 0; }
.sidebar-room-preview small,.sidebar-room-preview strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-room-preview small { color: var(--gold); font-size: 12px; }
.sidebar-room-preview strong { margin-top: 2px; font: 400 14px var(--display); }
.sidebar-room-preview b { color: var(--gold-bright); font-size: 12px; font-variant-numeric: tabular-nums; }
.sidebar-room-preview em { grid-column: 1 / -1; color: var(--muted-readable); font: normal 12px var(--sans); }
.sidebar-room-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 8px; background: var(--line); border: 1px solid var(--line); }
.sidebar-room-actions a,.sidebar-room-actions button { min-height: 44px; display: grid; place-items: center; border: 0; color: var(--gold-bright); background: #0f0d0a; font-size: 12px; text-decoration: none; cursor: pointer; }
.sidebar-profile { min-height: 54px; margin-top: 8px; padding-top: 8px; }
.sidebar-profile .profile-monogram { width: 34px; height: 34px; }
.sidebar-profile strong,.sidebar-profile small { font-size: 12px; }

.notification-panel { position: fixed; z-index: 70; left: 304px; top: 20px; width: min(410px,calc(100vw - 330px)); max-height: calc(100dvh - 40px); overflow: auto; padding: 18px; border: 1px solid var(--gold-dark); background: #12100d; box-shadow: 18px 24px 70px rgba(0,0,0,.62); }
.notification-panel[hidden] { display: none; }
.notification-panel > header { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.notification-panel > header p { margin: 0 0 3px; color: var(--gold); font-size: 12px; letter-spacing: .1em; }
.notification-panel > header h2 { margin: 0; font: 400 1.75rem var(--display); }
.notification-panel > header button { width: 44px; height: 44px; border: 1px solid var(--line); color: var(--ivory-soft); background: transparent; font-size: 1.2rem; cursor: pointer; }
.notification-toolbar { min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.notification-toolbar span { color: var(--muted-readable); font-size: 12px; }
.notification-toolbar button { min-height: 44px; border: 0; color: var(--gold-bright); background: transparent; font-size: 12px; cursor: pointer; }
.notification-toolbar button:disabled { color: var(--muted-secondary); cursor: default; }
.notification-list,.chat-notification-list { border-top: 1px solid var(--line); }
.notification-item { position: relative; min-height: 124px; display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 10px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.notification-item.is-unread { background: linear-gradient(90deg,rgba(185,154,93,.08),transparent 72%); box-shadow: inset 2px 0 var(--gold-bright); }
.notification-copy { min-width: 0; }
.notification-copy p { margin: 0; color: var(--gold); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.notification-copy strong { display: block; margin-top: 3px; font-size: 14px; }
.notification-copy span { display: block; margin-top: 4px; color: var(--ivory-soft); font: 400 14px/1.45 var(--prose); }
.notification-copy time { display: block; margin-top: 4px; color: var(--muted-readable); font-size: 12px; }
.notification-actions { grid-column: 2; display: flex; justify-content: flex-end; gap: 7px; }
.notification-actions button { min-width: 76px; min-height: 44px; border: 1px solid var(--line-strong); color: var(--ivory-soft); background: transparent; font-size: 12px; cursor: pointer; }
.notification-actions button.primary { color: #15110a; border-color: var(--gold-bright); background: var(--gold-bright); }
.notification-result { grid-column: 2; justify-self: end; color: var(--gold-bright); font-size: 12px; }
.notification-empty { min-height: 180px; display: grid; place-items: center; align-content: center; text-align: center; }
.notification-empty > span { color: var(--gold); font-size: 1.4rem; }
.notification-empty strong { margin-top: 8px; font: 400 1.1rem var(--display); }
.notification-empty p { margin: 4px 0 0; color: var(--muted-readable); font-size: 12px; }
.notification-panel > footer { display: grid; gap: 6px; padding-top: 12px; }
.notification-panel > footer button { min-height: 44px; border: 0; border-bottom: 1px solid var(--gold-dark); color: var(--gold-bright); background: transparent; font-size: 12px; text-align: left; cursor: pointer; }
.notification-panel > footer button span { float: right; }
.notification-panel > footer small { color: var(--muted-readable); font-size: 12px; }

/* Room discovery: wide featured ledger + editorial cards */
.rooms-now { margin: 5px 0 22px; border-top: 1px solid var(--line-strong); }
.rooms-now > header { min-height: 72px; display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 15px 0 13px; }
.rooms-now > header p { margin: 0; color: var(--gold); font-size: 12px; letter-spacing: .11em; }
.rooms-now > header h2 { margin: 3px 0 0; font: 400 1.55rem var(--display); }
.rooms-now > header > span { color: var(--muted-readable); font-size: 13px; }
.rooms-now-list { display: grid; grid-template-columns: 1.18fr .91fr .91fr; gap: 1px; border: 1px solid var(--line); background: var(--line); }
.rooms-now-card { position: relative; min-width: 0; min-height: 220px; display: flex; flex-direction: column; align-items: flex-start; overflow: hidden; padding: 22px; border: 0; color: var(--ivory-soft); background: radial-gradient(circle at 85% 12%,rgba(185,154,93,.13),transparent 30%),linear-gradient(150deg,#17130f,#0d0c0a 66%); text-align: left; cursor: pointer; isolation: isolate; transition: color .18s ease-out,background .18s ease-out; }
.rooms-now-card.tone-2 { background: radial-gradient(circle at 12% 110%,rgba(115,134,130,.14),transparent 38%),linear-gradient(155deg,#121514,#0d0c0a 68%); }
.rooms-now-card.tone-3 { background: radial-gradient(circle at 90% 90%,rgba(131,73,63,.14),transparent 38%),linear-gradient(155deg,#17100e,#0d0c0a 68%); }
.rooms-now-card:hover { color: var(--ivory); box-shadow: inset 0 -2px var(--gold-dark); }
.rooms-now-index { position: absolute; right: 18px; top: 12px; color: rgba(240,234,220,.12); font: italic 3rem var(--prose); }
.rooms-now-card > .room-state-badge { position: relative; z-index: 1; }
.rooms-now-card > small { margin-top: auto; color: var(--gold); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.rooms-now-card > strong { max-width: 420px; margin-top: 5px; font: 400 clamp(1.45rem,1.8vw,2rem)/1.06 var(--display); text-wrap: balance; }
.rooms-now-card > p { max-width: 520px; margin: 9px 0 17px; display: -webkit-box; overflow: hidden; color: var(--muted-readable); font: 400 15px/1.45 var(--prose); -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.rooms-now-foot { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); }
.rooms-now-foot b,.rooms-now-foot em,.rooms-now-foot i { font: normal 12px var(--sans); }
.rooms-now-foot b { color: var(--ivory-soft); font-variant-numeric: tabular-nums; }
.rooms-now-foot em { overflow: hidden; color: var(--muted-readable); text-overflow: ellipsis; white-space: nowrap; }
.rooms-now-foot i { color: var(--gold-bright); }
.rooms-workspace { grid-template-columns: 230px minmax(0,1fr); gap: 20px; }
.filter-rail { position: sticky; top: 20px; }
.rich-room-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.rich-room-item { min-height: 0; display: block; padding: 0; border: 0; background: #0f0e0b; }
.rich-room-item:hover { padding: 0; background: #0f0e0b; }
.room-card.is-editorial { grid-column: 1 / -1; }
.room-card-main { position: relative; width: 100%; min-height: 335px; display: flex; flex-direction: column; align-items: stretch; padding: 24px; border: 0; color: var(--ivory-soft); background: #100e0b; text-align: left; cursor: pointer; transition: color .18s ease-out,background .18s ease-out,box-shadow .18s ease-out; }
.room-card-main:hover { color: var(--ivory); background: #15120e; box-shadow: inset 2px 0 var(--gold-dark); }
.room-card.is-editorial .room-card-main { min-height: 275px; display: grid; grid-template-columns: minmax(260px,1.1fr) minmax(310px,.9fr); grid-template-rows: auto auto 1fr auto; column-gap: 34px; }
.room-card-index { position: absolute; right: 18px; top: 13px; color: rgba(240,234,220,.16); font: italic 1.8rem var(--prose); }
.room-card-heading { display: flex; align-items: center; gap: 8px; padding-right: 50px; }
.room-card-heading .room-genre { color: var(--gold); font-size: 12px; letter-spacing: .09em; text-transform: uppercase; }
.room-state-badge { padding: 4px 7px; border: 1px solid #4d4438; color: #a89d8e; font-size: 12px; line-height: 1; }
.room-state-badge.soon { color: #dfc787; border-color: #705a34; }
.room-state-badge.almost { color: #d28b81; border-color: #653c38; }
.room-card-title { margin-top: 12px; padding-right: 30px; font: 400 clamp(1.55rem,2vw,2.25rem)/1.05 var(--display); text-wrap: balance; }
.room-card-premise { margin-top: 11px; display: -webkit-box; overflow: hidden; color: var(--muted-readable); font: 400 16px/1.5 var(--prose); -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.room-card-host { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; margin-top: 19px; padding: 13px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.room-card-host .room-avatars { display: flex; padding-left: 5px; }
.room-card-host .room-avatars i { width: 30px; height: 30px; display: grid; place-items: center; margin-left: -5px; border: 1px solid #4a4135; border-radius: 50%; color: var(--ivory-soft); background: #17140f; font: normal 12px var(--sans); }
.room-card-host small,.room-card-host b { display: block; }
.room-card-host small,.room-card-facts small { color: var(--muted-secondary); font-size: 12px; text-transform: uppercase; }
.room-card-host b,.room-card-facts b { margin-top: 2px; color: var(--ivory-soft); font-size: 13px; font-weight: 500; }
.room-card-host > em { color: var(--gold-bright); font: normal 13px var(--sans); font-variant-numeric: tabular-nums; }
.room-card-facts { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 15px; }
.room-card-facts > span { min-width: 0; }
.room-card-facts small,.room-card-facts b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-card .room-tagline { margin-top: 17px; }
.room-card .room-tagline span { color: var(--muted-readable); font-size: 12px; }
.room-card-cta { min-height: 44px; display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 17px; color: var(--gold-bright); border-bottom: 1px solid var(--gold-dark); font-size: 13px; }
.room-card.is-editorial .room-card-heading,.room-card.is-editorial .room-card-title,.room-card.is-editorial .room-card-premise,.room-card.is-editorial .room-card-host { grid-column: 1; }
.room-card.is-editorial .room-card-facts { grid-column: 2; grid-row: 1 / 3; align-self: start; grid-template-columns: 1fr; margin: 0; padding: 16px 0 0 24px; border-left: 1px solid var(--line); }
.room-card.is-editorial .room-card-facts > span { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.room-card.is-editorial .room-tagline { grid-column: 2; grid-row: 3; align-self: end; margin: 0; padding-left: 24px; }
.room-card.is-editorial .room-card-cta { grid-column: 2; grid-row: 4; margin-left: 24px; }
.room-card .local-room-ribbon { top: auto; right: 18px; bottom: 18px; font-size: 12px; }

/* Editorial messenger */
.social-page-header { margin-bottom: 16px; }
.social-messenger { position: relative; height: min(820px,calc(100dvh - 214px)); min-height: 650px; display: grid; grid-template-columns: 284px minmax(450px,1fr) 280px; overflow: hidden; border: 1px solid var(--line-strong); background: #0d0c0a; }
.conversation-rail,.chat-thread,.chat-context { min-width: 0; min-height: 0; }
.conversation-rail,.chat-context { background: #0e0d0a; }
.conversation-rail { overflow: hidden; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.conversation-rail > header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.conversation-rail > header p,.chat-context > header p { margin: 0; color: var(--gold); font-size: 12px; letter-spacing: .1em; }
.conversation-rail > header h2,.chat-context > header h2 { margin: 2px 0 0; font: 400 1.35rem var(--display); }
.conversation-rail > header button,.chat-context-close { width: 44px; height: 44px; border: 1px solid var(--line); color: var(--gold-bright); background: transparent; font-size: 1.1rem; cursor: pointer; }
.conversation-search { min-height: 48px; display: flex; align-items: center; gap: 8px; margin: 12px 14px 9px; padding: 0 11px; border: 1px solid var(--line); background: #15120f; }
.conversation-search svg { width: 17px; fill: none; stroke: var(--gold-dark); stroke-width: 1.4; }
.conversation-search input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ivory); background: transparent; font-size: 13px; }
.conversation-filters { display: grid; grid-template-columns: repeat(3,1fr); margin: 0 14px 9px; border-bottom: 1px solid var(--line); }
.conversation-filters button { min-height: 42px; border: 0; border-bottom: 2px solid transparent; color: var(--muted-readable); background: transparent; font-size: 12px; cursor: pointer; }
.conversation-filters button.is-active { color: var(--ivory); border-color: var(--gold-bright); }
.conversation-list { min-height: 0; flex: 1; overflow-y: auto; }
.conversation-list > button { position: relative; width: 100%; min-height: 78px; display: grid; grid-template-columns: 40px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 10px 14px; border: 0; border-left: 2px solid transparent; border-bottom: 1px solid var(--line); color: var(--ivory-soft); background: transparent; text-align: left; cursor: pointer; transition: color .18s ease-out,background .18s ease-out,border-color .18s ease-out; }
.conversation-list > button:hover { color: var(--ivory); background: rgba(240,234,220,.025); }
.conversation-list > button.is-active { color: var(--ivory); border-left-color: var(--gold-bright); background: linear-gradient(90deg,rgba(185,154,93,.1),transparent); }
.conversation-list .profile-monogram { position: relative; width: 40px; height: 40px; font-size: 12px; }
.conversation-list .profile-monogram i { position: absolute; right: -2px; bottom: 0; margin: 0; border: 2px solid #0e0d0a; }
.conversation-list > button > span:nth-child(2) { min-width: 0; }
.conversation-list strong,.conversation-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-list strong { font-size: 14px; }
.conversation-list small { margin-top: 4px; color: var(--muted-readable); font-size: 12px; }
.conversation-list time { align-self: start; padding-top: 4px; color: var(--muted-secondary); font-size: 12px; }
.conversation-list > button > b { position: absolute; right: 14px; bottom: 10px; min-width: 19px; height: 19px; display: grid; place-items: center; color: #15110a; background: var(--gold-bright); font-size: 12px; font-variant-numeric: tabular-nums; }
.conversation-empty { padding: 24px 16px; color: var(--muted-readable); }
.conversation-empty strong,.conversation-empty span { display: block; font-size: 13px; }
.conversation-empty span { margin-top: 4px; }
.conversation-invites-link { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 15px; border: 0; border-top: 1px solid var(--line-strong); color: var(--gold-bright); background: #12100d; font-size: 13px; cursor: pointer; }
.conversation-invites-link strong { min-width: 22px; height: 22px; display: grid; place-items: center; color: #15110a; background: var(--gold-bright); font-size: 12px; font-variant-numeric: tabular-nums; }
.chat-thread { overflow: hidden; display: flex; flex-direction: column; background: radial-gradient(circle at 50% 0%,rgba(185,154,93,.045),transparent 25rem),#0b0a08; }
.chat-thread-header { min-height: 72px; display: grid; grid-template-columns: 42px minmax(0,1fr) auto 44px; align-items: center; gap: 11px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.chat-thread-header .profile-monogram { width: 42px; height: 42px; }
.chat-thread-header h2 { margin: 0; font: 400 1.3rem var(--display); }
.chat-thread-header p { margin: 3px 0 0; color: var(--muted-readable); font-size: 12px; }
.chat-thread-header p i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #789464; }
.chat-no-ai { padding: 5px 8px; border: 1px solid var(--line); color: var(--muted-readable); font-size: 12px; }
.chat-context-toggle { width: 44px; height: 44px; border: 0; color: var(--ivory-soft); background: transparent; font-size: 1rem; cursor: pointer; }
.mobile-chat-back { display: none; }
.chat-local-note { min-height: 38px; display: grid; place-items: center; padding: 8px 15px; border-bottom: 1px solid var(--line); color: var(--muted-readable); background: rgba(240,234,220,.018); font-size: 12px; text-align: center; }
.chat-message-list { min-height: 0; flex: 1; overflow-y: auto; list-style: none; margin: 0; padding: 18px 22px; }
.chat-message-list li { max-width: 82%; padding: 13px 16px; border-bottom: 1px solid var(--line); background: rgba(240,234,220,.018); }
.chat-message-list li + li { margin-top: 10px; }
.chat-message-list li.is-received { margin-right: auto; border-left: 2px solid #4b4237; }
.chat-message-list li.is-own { margin-left: auto; border-right: 2px solid var(--gold-dark); background: rgba(185,154,93,.055); }
.chat-message-list li > div { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.chat-message-list strong { color: var(--gold-bright); font-size: 12px; }
.chat-message-list time { color: var(--muted-secondary); font-size: 12px; }
.chat-message-list p { margin: 7px 0 0; color: var(--ivory-soft); font: 400 16px/1.52 var(--prose); text-wrap: pretty; }
.chat-notification-list { min-height: 0; flex: 1; overflow-y: auto; padding: 0 20px; }
.chat-composer { padding: 13px 18px 15px; border-top: 1px solid var(--line-strong); background: #100e0b; }
.chat-composer[hidden] { display: none; }
.chat-composer > label { display: block; margin-bottom: 6px; color: var(--muted-readable); font-size: 12px; }
.chat-composer > div { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; align-items: stretch; border: 1px solid var(--line-strong); background: #15120f; }
.chat-composer textarea { min-height: 58px; resize: none; padding: 11px 12px; border: 0; outline: 0; color: var(--ivory); background: transparent; font: 400 15px/1.4 var(--prose); }
.chat-composer button { min-height: 44px; border: 0; color: #15110a; background: var(--gold-bright); font-size: 13px; cursor: pointer; }
.chat-composer button:first-child { color: var(--muted-secondary); background: transparent; font-size: 1rem; }
.chat-composer button:disabled { cursor: not-allowed; opacity: .7; }
.chat-composer > small,.chat-composer > .field-error { display: block; min-height: 18px; margin-top: 4px; color: var(--muted-readable); font-size: 12px; }
.chat-composer > .field-error { color: #d28b81; }
.chat-context { overflow-y: auto; border-left: 1px solid var(--line); }
.chat-context > header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.chat-context-close { display: none; }
.chat-context-content { padding: 18px; }
.context-profile { padding-bottom: 20px; border-bottom: 1px solid var(--line); text-align: center; }
.context-profile .profile-monogram { position: relative; width: 54px; height: 54px; margin: 0 auto; }
.context-profile h3 { margin: 11px 0 3px; font: 400 1.25rem var(--display); }
.context-profile p { margin: 0; color: var(--muted-readable); font-size: 13px; }
.context-profile > strong { display: block; margin-top: 10px; color: var(--gold-bright); font-size: 12px; }
.context-facts { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 20px; border: 1px solid var(--line); }
.context-facts div { padding: 11px; border-right: 1px solid var(--line); }
.context-facts div:nth-child(2n) { border-right: 0; }
.context-facts dt { color: var(--muted-secondary); font-size: 12px; }
.context-facts dd { margin: 3px 0 0; color: var(--ivory-soft); font-size: 13px; }
.chat-context-content section { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.chat-context-content section > p,.context-ledger > p { margin: 0 0 8px; color: var(--gold); font-size: 12px; letter-spacing: .09em; }
.chat-context-content ol { margin: 0; padding-left: 18px; color: var(--muted-readable); font-size: 13px; }
.chat-context-content li + li { margin-top: 7px; }
.chat-context-content section > span { color: var(--ivory-soft); font: 400 15px/1.5 var(--prose); }
.chat-context-content section button,.context-action { width: 100%; min-height: 44px; display: block; padding: 9px 2px; border: 0; border-bottom: 1px solid var(--gold-dark); color: var(--gold-bright); background: transparent; font-size: 12px; text-align: left; cursor: pointer; }
.context-ledger { padding: 15px; border: 1px solid var(--line); }
.context-ledger strong,.context-ledger span { display: block; }
.context-ledger strong { font: 400 1.1rem var(--display); }
.context-ledger span { margin-top: 5px; color: var(--muted-readable); font-size: 13px; }
.chat-context-scrim { display: none; }

@media (min-width: 1600px) {
  .app-sidebar { width: 318px; padding-left: 22px; padding-right: 22px; }
  .platform-content { margin-left: 318px; }
  .notification-panel { left: 330px; }
  .social-messenger { grid-template-columns: 296px minmax(560px,1fr) 296px; }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .app-sidebar { width: 250px; padding-left: 14px; padding-right: 14px; }
  .platform-content { margin-left: 250px; }
  .notification-panel { left: 262px; }
  .sidebar-social-hub > header > span { display: none; }
  .sidebar-conversation-list button { min-height: 58px; }
  .sidebar-conversation-list small { max-width: 130px; }
  .rooms-now-list { grid-template-columns: 1fr 1fr; }
  .rooms-now-card:first-child { grid-column: 1 / -1; }
  .rich-room-list { grid-template-columns: 1fr; }
  .room-card.is-editorial .room-card-main { grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); column-gap: 22px; padding: 20px; }
  .social-messenger { grid-template-columns: 245px minmax(390px,1fr); }
  .chat-context { position: fixed; z-index: 55; top: 0; right: 0; bottom: 0; width: 300px; transform: translateX(102%); transition: transform .18s ease-out; }
  .chat-context.is-open { transform: translateX(0); }
  .chat-context-close { display: block; }
  .chat-context-scrim:not([hidden]) { position: fixed; z-index: 50; inset: 0; display: block; border: 0; background: rgba(0,0,0,.66); }
}

@media (max-width: 1023px) {
  .platform-content { margin-left: 0; }
  .mobile-app-topbar .notification-trigger { justify-self: end; }
  .mobile-app-topbar .notification-trigger svg { width: 19px; }
  .notification-panel { left: auto; right: 14px; top: 72px; width: min(410px,calc(100vw - 28px)); max-height: calc(100dvh - 150px - env(safe-area-inset-bottom)); }
  .rooms-workspace { grid-template-columns: 210px minmax(0,1fr); }
  .rooms-now-list { grid-template-columns: 1fr 1fr; }
  .rooms-now-card:first-child { grid-column: 1 / -1; }
  .rich-room-list { grid-template-columns: 1fr; }
  .filter-rail { position: static; }
  .social-messenger { height: calc(100dvh - 250px - env(safe-area-inset-bottom)); min-height: 620px; grid-template-columns: 250px minmax(0,1fr); }
  .chat-context { position: fixed; z-index: 55; top: 64px; right: 0; bottom: calc(66px + env(safe-area-inset-bottom)); width: min(320px,90vw); transform: translateX(102%); transition: transform .18s ease-out; }
  .chat-context.is-open { transform: translateX(0); }
  .chat-context-close { display: block; }
  .chat-context-scrim:not([hidden]) { position: fixed; z-index: 50; inset: 64px 0 calc(66px + env(safe-area-inset-bottom)); display: block; border: 0; background: rgba(0,0,0,.66); }
}

@media (max-width: 900px) {
  .rooms-workspace { grid-template-columns: 1fr; }
  .rooms-now-list { grid-template-columns: 1fr; }
  .rooms-now-card:first-child { grid-column: auto; }
  .social-messenger { height: auto; min-height: calc(100dvh - 230px - env(safe-area-inset-bottom)); display: block; overflow: visible; }
  .conversation-rail { min-height: calc(100dvh - 230px - env(safe-area-inset-bottom)); border-right: 0; }
  .chat-thread { min-height: calc(100dvh - 230px - env(safe-area-inset-bottom)); display: none; }
  .social-messenger.is-thread-open .conversation-rail { display: none; }
  .social-messenger.is-thread-open .chat-thread { display: flex; }
  .mobile-chat-back { width: 44px; height: 44px; display: grid; place-items: center; border: 0; color: var(--gold-bright); background: transparent; font-size: 1.2rem; cursor: pointer; }
  .chat-thread-header { grid-template-columns: 44px 40px minmax(0,1fr) auto 44px; padding-left: 5px; padding-right: 5px; }
  .chat-thread-header .profile-monogram { width: 40px; height: 40px; }
}

@media (max-width: 700px) {
  .rooms-now > header { align-items: flex-start; flex-direction: column; gap: 5px; }
  .rooms-now-card { min-height: 230px; padding: 20px; }
  .room-card-main { min-height: 350px; padding: 20px; }
  .room-card.is-editorial .room-card-main { min-height: 350px; display: flex; }
  .room-card.is-editorial .room-card-facts { display: grid; grid-template-columns: 1fr 1fr; margin-top: 15px; padding: 0; border-left: 0; }
  .room-card.is-editorial .room-tagline { margin-top: 17px; padding-left: 0; }
  .room-card.is-editorial .room-card-cta { margin-left: 0; }
  .room-card-facts { grid-template-columns: 1fr 1fr; }
  .room-card-facts > span:last-child { grid-column: 1 / -1; }
  .social-page-header .no-ai-mark { display: none; }
  .social-messenger { min-height: calc(100dvh - 220px - env(safe-area-inset-bottom)); }
  .conversation-rail,.chat-thread { min-height: calc(100dvh - 220px - env(safe-area-inset-bottom)); }
  .chat-thread-header { grid-template-columns: 44px 38px minmax(0,1fr) 44px; }
  .chat-no-ai { display: none; }
  .chat-message-list { padding: 14px 12px; }
  .chat-message-list li { max-width: 94%; }
  .chat-composer { padding: 11px 10px 13px; }
  .chat-composer > div { grid-template-columns: 44px minmax(0,1fr); }
  .chat-composer > div > button:last-child { grid-column: 1 / -1; }
  .notification-panel { padding: 14px; }
  .notification-item { grid-template-columns: 36px minmax(0,1fr); }
  .notification-actions { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .chat-context,.notification-trigger,.room-card-main,.rooms-now-card,.conversation-list > button,.sidebar-conversation-list button { transition: none; }
}

/* Keep all newly introduced social/discovery microcopy at a readable 12px floor. */
.app-sidebar .profile-monogram,
.chat-thread-header .profile-monogram,
#page-social .route-context,
#page-salas .route-context,
.no-ai-mark i,
#page-salas .page-header-actions .button,
#clear-filters { font-size: 12px; }
#page-social .route-context,
#page-salas .route-context { font-size: 12px !important; }

/* Global chat is a distinct destination, not a third inbox tab. */
.sidebar-global-entry { position: relative; width: 100%; min-height: 58px; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 9px; margin-bottom: 8px; padding: 7px 4px; border: 1px solid var(--line-strong); color: var(--ivory-soft); background: #12100d; text-align: left; cursor: pointer; transition: color .18s ease-out,background .18s ease-out,border-color .18s ease-out; }
.sidebar-global-entry:hover,.sidebar-global-entry.is-active { color: var(--ivory); border-color: var(--gold-dark); background: #17130e; }
.sidebar-global-entry .profile-monogram { position: relative; width: 34px; height: 34px; }
.sidebar-global-entry > span:nth-child(2) { min-width: 0; }
.sidebar-global-entry strong,.sidebar-global-entry small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-global-entry strong { font-size: 13px; }
.sidebar-global-entry small { margin-top: 2px; color: var(--muted-readable); font-size: 12px; }
.sidebar-global-entry > b,.social-global-entry > b { min-width: 20px; height: 20px; display: grid; place-items: center; color: #15110a; background: var(--gold-bright); font-size: 12px; font-variant-numeric: tabular-nums; }
.sidebar-global-entry > b[hidden],.social-global-entry > b[hidden] { display: none; }
.sidebar-hub-tabs { grid-template-columns: repeat(2,1fr); }

.social-global-entry { position: relative; width: calc(100% - 28px); min-height: 66px; display: grid; grid-template-columns: 40px minmax(0,1fr) auto; align-items: center; gap: 10px; margin: 12px 14px 3px; padding: 9px 11px; border: 1px solid var(--gold-dark); color: var(--ivory-soft); background: linear-gradient(90deg,rgba(185,154,93,.08),transparent 75%),#12100d; text-align: left; cursor: pointer; transition: color .18s ease-out,background .18s ease-out,border-color .18s ease-out; }
.social-global-entry:hover,.social-global-entry.is-active { color: var(--ivory); border-color: var(--gold-bright); background: linear-gradient(90deg,rgba(185,154,93,.13),transparent 78%),#15120e; }
.social-global-entry .profile-monogram { position: relative; width: 40px; height: 40px; font-size: 12px; }
.social-global-entry > span:nth-child(2) { min-width: 0; }
.social-global-entry strong,.social-global-entry small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-global-entry strong { font-size: 14px; }
.social-global-entry small { margin-top: 4px; color: var(--muted-readable); font-size: 12px; }
.global-world-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }

.chat-thread-header { grid-template-columns: 42px minmax(0,1fr) 44px; }
.social-messenger.is-global { grid-template-columns: minmax(0,1fr); }
.social-messenger.is-global .conversation-rail,.social-messenger.is-global .chat-context,.social-messenger.is-global .chat-context-toggle,.social-messenger.is-global .chat-context-scrim { display: none !important; }
.social-messenger.is-global .chat-thread { grid-column: 1; }
.social-messenger.is-global .chat-thread-header { grid-template-columns: 42px minmax(0,1fr); padding-inline: 22px; }
.social-messenger.is-global .chat-message-list { padding: 26px clamp(28px,6vw,112px); }
.social-messenger.is-global .chat-message-list li { max-width: min(74%,840px); }

.global-invite-bar { position: relative; min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 22px; border-bottom: 1px solid var(--line-strong); background: #100e0b; }
.global-invite-bar[hidden] { display: none; }
.global-invite-bar > div:first-child { min-width: 0; }
.global-invite-bar > div:first-child p { margin: 0; color: var(--gold); font-size: 12px; letter-spacing: .1em; }
.global-invite-bar > div:first-child span { display: block; margin-top: 3px; color: var(--muted-readable); font-size: 12px; font-variant-numeric: tabular-nums; }
.global-invite-trigger,#global-invite-trigger { min-height: 44px; flex: 0 0 auto; padding: 0 15px; border: 1px solid var(--gold-dark); color: var(--gold-bright); background: transparent; font-size: 12px; cursor: pointer; }
#global-invite-trigger:hover { color: #15110a; background: var(--gold-bright); }
#global-invite-trigger:disabled { color: var(--muted-secondary); border-color: var(--line); background: transparent; cursor: not-allowed; }
.global-room-picker { position: absolute; z-index: 18; right: 22px; top: calc(100% + 8px); width: min(430px,calc(100vw - 44px)); padding: 14px; border: 1px solid var(--gold-dark); background: #15120e; box-shadow: 0 22px 60px rgba(0,0,0,.65); }
.global-room-picker[hidden] { display: none; }
.global-room-picker > header { min-height: 48px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.global-room-picker > header p { margin: 0; color: var(--gold); font-size: 12px; letter-spacing: .1em; }
.global-room-picker > header h3 { margin: 3px 0 0; font: 400 1.25rem var(--display); }
.global-room-picker > header button { width: 44px; height: 44px; border: 1px solid var(--line); color: var(--ivory-soft); background: transparent; font-size: 1.15rem; cursor: pointer; }
.global-room-picker > div > button { width: 100%; min-height: 76px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 4px 14px; padding: 10px 2px; border: 0; border-bottom: 1px solid var(--line); color: var(--ivory-soft); background: transparent; text-align: left; cursor: pointer; }
.global-room-picker > div > button:hover { color: var(--ivory); background: rgba(240,234,220,.025); }
.global-room-picker > div > button span { min-width: 0; }
.global-room-picker > div > button small,.global-room-picker > div > button strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.global-room-picker > div > button small { color: var(--gold); font-size: 12px; }
.global-room-picker > div > button strong { margin-top: 3px; font: 400 1rem var(--display); }
.global-room-picker > div > button em { grid-row: 2; color: var(--muted-readable); font: normal 12px var(--sans); }
.global-room-picker > div > button b { grid-column: 2; grid-row: 1 / 3; color: var(--gold-bright); font-size: 12px; }

.chat-message-list li.is-room-invite { max-width: min(82%,660px); }
.global-room-invite-card { margin-top: 12px; padding: 15px; border: 1px solid var(--gold-dark); background: linear-gradient(135deg,rgba(185,154,93,.08),transparent 62%),#12100d; }
.global-room-invite-card:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
.global-room-invite-card > span { color: var(--gold); font-size: 12px; letter-spacing: .09em; text-transform: uppercase; }
.global-room-invite-card h3 { margin: 6px 0 12px; color: var(--ivory); font: 400 1.25rem var(--display); }
.global-room-invite-card dl { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.global-room-invite-card dl div { padding: 10px 0; }
.global-room-invite-card dt { color: var(--muted-secondary); font-size: 12px; }
.global-room-invite-card dd { margin: 3px 0 0; color: var(--ivory-soft); font-size: 13px; }
.global-room-invite-card > b { display: block; margin-top: 11px; color: var(--gold-bright); font-size: 12px; font-weight: 600; }

@media (min-width: 1024px) and (max-width: 1279px) {
  .social-messenger.is-global { grid-template-columns: minmax(0,1fr); }
  .social-messenger.is-global .chat-thread { grid-column: 1; }
}

@media (max-width: 900px) {
  .chat-thread-header { grid-template-columns: 44px 40px minmax(0,1fr) 44px; }
  .social-messenger.is-global { display: block; }
  .social-messenger.is-global .conversation-rail { display: flex !important; }
  .social-messenger.is-global .chat-thread { display: none; }
  .social-messenger.is-global.is-thread-open .conversation-rail { display: none !important; }
  .social-messenger.is-global.is-thread-open .chat-thread { display: flex; }
  .social-messenger.is-global .chat-thread-header { grid-template-columns: 44px 40px minmax(0,1fr); padding-inline: 5px; }
  .social-messenger.is-global .chat-message-list { padding: 16px 14px; }
  .social-messenger.is-global .chat-message-list li { max-width: 94%; }
}

@media (max-width: 700px) {
  .global-invite-bar { align-items: stretch; flex-direction: column; gap: 9px; padding: 12px; }
  #global-invite-trigger { width: 100%; }
  .global-room-picker { left: 0; right: 0; top: calc(100% + 6px); width: 100%; }
  .global-room-picker > div > button { min-height: 82px; }
  .global-room-invite-card dl { grid-template-columns: 1fr; }
  .global-room-invite-card dl div + div { border-top: 1px solid var(--line); }
}


/* ========================================================================== */
/* IconScout Unicons — navigation and brand                                   */
/* ========================================================================== */
.app-nav .iconscout-icon { width: 22px; height: 22px; }
.app-nav a:hover .iconscout-icon { color: var(--gold); }
.sidebar-hub-tabs .iconscout-icon { width: 17px; height: 17px; flex: 0 0 17px; color: var(--gold-dark); }
.sidebar-hub-tabs button.is-active .iconscout-icon { color: var(--gold-bright); }
.sidebar-hub-tabs .sidebar-tab-label { min-width: 0; height: auto; margin: 0; padding: 0; color: inherit; background: none; font-size: inherit; line-height: 1; }
.global-world-icon .iconscout-icon { width: 20px; height: 20px; color: var(--gold-bright); }
.social-global-entry .global-world-icon .iconscout-icon { width: 21px; height: 21px; }
.notification-trigger .iconscout-icon { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.mobile-bottom-nav .iconscout-icon { width: 20px; height: 20px; }
.mobile-bottom-nav a:hover .iconscout-icon,
.mobile-bottom-nav a[aria-current="page"] .iconscout-icon { color: var(--gold-bright); }
.game-brand .brand-emblem { width: 29px; height: 35px; flex-basis: 29px; }
.game-brand .brand-mark { width: 20px; height: 20px; }
@media (max-width: 900px) {
  .mobile-app-topbar .brand-emblem { width: 28px; height: 34px; flex-basis: 28px; }
  .mobile-app-topbar .brand-mark { width: 20px; height: 20px; }
  .mobile-app-topbar .brand { gap: .52rem; }
}
@media (max-width: 390px) {
  .mobile-app-topbar .brand-emblem { width: 26px; height: 32px; flex-basis: 26px; }
  .mobile-app-topbar .brand-mark { width: 18px; height: 18px; }
  .mobile-bottom-nav .iconscout-icon { width: 19px; height: 19px; }
}
