:root {
  color-scheme: light;
  --forest: #202a23;
  --forest-soft: #344237;
  --paper: #f5f2e9;
  --paper-light: #fbfaf6;
  --ink: #252b25;
  --muted: #777a6d;
  --line: #e2ded2;
  --moss: #7a8965;
  --rust: #bd684f;
  --ochre: #c8a15d;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", "Segoe UI", sans-serif;
  --mono: "DM Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body { margin: 0; min-height: 100vh; color: var(--ink); font-family: var(--sans); font-size: 14px; background-color: var(--paper); background-image: radial-gradient(#d5d0c2 0.55px, transparent 0.55px); background-size: 7px 7px; overflow-x: hidden; }
button, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
@keyframes floatDrift { 0% { transform: scale(1.03) translate3d(0, 0, 0); } 50% { transform: scale(1.06) translate3d(-10px, -8px, 0); } 100% { transform: scale(1.03) translate3d(6px, 4px, 0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulseGlow { 0%, 100% { box-shadow: 0 0 0 rgba(168, 166, 130, 0); } 50% { box-shadow: 0 0 18px rgba(168, 166, 130, 0.2); } }
@keyframes shimmer { 0% { transform: translateX(-18%); opacity: 0.6; } 50% { opacity: 1; } 100% { transform: translateX(18%); opacity: 0.6; } }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 232px minmax(0, 1fr); }
.site-loaded .world-intro,
.site-loaded .topbar,
.site-loaded .sidebar { animation: fadeUp 0.8s ease both; }
.site-loaded .world-intro { animation-delay: 0.06s; }
.site-loaded .topbar { animation-delay: 0.12s; }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; min-height: 620px; padding: 25px 16px 16px; color: #e7e6dc; background: var(--forest); }
.wordmark { display: flex; align-items: center; gap: 10px; padding: 0 7px; color: #f1efe6; font-family: var(--serif); font-size: 18px; font-weight: 600; }
.wordmark-mark { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #788470; color: #d4be8c; font-family: var(--serif); font-size: 21px; }
.wordmark small { display: block; margin-top: 2px; color: #a5aa9b; font: 9px var(--mono); letter-spacing: 0.8px; }
.workspace-label { display: flex; align-items: center; justify-content: space-between; margin: 38px 8px 10px; color: #92998b; font: 10px var(--mono); letter-spacing: 0.4px; }
.primary-nav { display: grid; gap: 4px; }
.nav-link { display: flex; align-items: center; gap: 11px; min-height: 39px; padding: 0 10px; color: #c2c6b8; font-size: 13px; }
.nav-link.active { color: #fbf6e9; background: #344238; }
.nav-icon { display: inline-grid; width: 17px; place-items: center; color: #bbc09f; font-size: 17px; }
.nav-count { margin-left: auto; color: #c9b87c; font: 10px var(--mono); }
.sidebar-divider { height: 1px; margin: 21px 7px 0; background: #3b483d; }
.sidebar-divider + .workspace-label { margin-top: 22px; }
.small-add { width: 22px; height: 22px; border: 1px solid #596456; color: #d7d6ca; background: transparent; cursor: pointer; font-size: 16px; line-height: 1; }
.world-link { display: flex; align-items: center; gap: 10px; min-height: 39px; padding: 0 10px; color: #c4c8ba; font-size: 12px; }
.world-link.selected { color: #f3ecd9; background: #313e34; }
.world-dot { width: 8px; height: 8px; border-radius: 50%; background: #a2a77e; }
.world-dot.ochre { background: #c6945d; }
.world-more { margin-left: auto; color: #cfcbb8; letter-spacing: 2px; }
.sidebar-bottom { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 13px 5px 3px; border-top: 1px solid #3b483d; }
.avatar { display: grid; width: 33px; height: 33px; place-items: center; border-radius: 50%; color: #28322a; background: #d6b783; font-family: var(--serif); font-size: 17px; }
.profile-copy { display: grid; gap: 2px; font-size: 12px; }
.profile-copy span { color: #9ca496; font-size: 10px; }
.more-button { margin-left: auto; border: 0; color: #bfc2b3; background: transparent; cursor: pointer; font-size: 18px; }
.main-content { width: min(100%, 1300px); margin: 0 auto; padding: 0 46px; }
.topbar { display: flex; min-height: 63px; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(130, 127, 109, 0.23); }
.crumbs { display: flex; align-items: center; gap: 11px; color: #898a7e; font: 9px var(--mono); letter-spacing: 0.3px; }
.crumbs strong { color: #454b40; font-weight: 500; }
.crumb-slash { color: #bbb5a6; }
.topbar-actions { display: flex; align-items: center; gap: 20px; }
.save-indicator { display: flex; align-items: center; gap: 7px; color: #797d70; font-size: 10px; }
.save-dot, .live-dot { width: 6px; height: 6px; border-radius: 50%; background: #87956b; }
.share-button { display: flex; align-items: center; gap: 7px; min-height: 31px; padding: 0 12px; border: 1px solid #d7d2c5; background: rgba(251,250,246,0.76); cursor: pointer; font-size: 11px; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.share-button:hover, .share-button:focus-visible { transform: translateY(-1px); box-shadow: 0 8px 16px rgba(45, 54, 43, 0.1); border-color: #b7b09d; }
.world-intro { position: relative; display: flex; min-height: 260px; align-items: flex-end; overflow: hidden; margin-top: 24px; color: #f7f2e6; background: #38443a; box-shadow: 0 18px 30px rgba(26, 31, 24, 0.12); }
.intro-image { position: absolute; inset: 0; background-image: url("https://images.unsplash.com/photo-1477959858617-67f85cf4f1df?auto=format&fit=crop&w=1800&q=85"); background-position: center 52%; background-size: cover; transform: scale(1.01); animation: floatDrift 16s ease-in-out infinite alternate; }
.intro-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21,31,25,0.89) 0%, rgba(25,34,27,0.64) 47%, rgba(31,37,30,0.12) 100%), linear-gradient(0deg, rgba(24,31,26,0.44), transparent 55%); }
.intro-shade::before { content: ""; position: absolute; inset: -30%; background: linear-gradient(120deg, transparent 38%, rgba(255,255,255,0.15) 50%, transparent 62%); animation: shimmer 10s ease-in-out infinite; }
.intro-content { position: relative; max-width: 630px; padding: 31px 36px 27px; }
.eyebrow, .section-kicker { color: #b8bb9d; font: 9px var(--mono); letter-spacing: 0.65px; }
.eyebrow-line { display: inline-block; width: 19px; height: 1px; margin: 0 8px 3px 0; background: #c2aa75; }
.eyebrow-dot { margin: 0 5px; color: #d5b97e; }
h1 { margin: 10px 0 7px; font: 600 41px/1.12 var(--serif); }
.intro-description { max-width: 425px; margin: 0; color: #e0e1d5; font-size: 12px; line-height: 1.7; }
.intro-meta { display: flex; align-items: center; gap: 14px; margin-top: 16px; color: #dbdccc; font-size: 10px; }
.meta-icon { margin-right: 4px; color: #d5b97e; }
.meta-separator { width: 1px; height: 12px; background: #9b9c85; }
.chapter-stamp { position: absolute; right: 26px; bottom: 23px; display: grid; min-width: 80px; justify-items: center; gap: 4px; color: #f0e8d4; }
.chapter-stamp span { font: 8px var(--mono); letter-spacing: 0.4px; }
.chapter-stamp strong { font: 33px/1 var(--serif); font-weight: 500; }
.city-gallery { margin: 28px 0 7px; }
.gallery-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 13px; }
.gallery-heading .section-kicker { color: #858878; }
.gallery-heading h2 { font-size: 21px; }
.gallery-note { color: #99988a; font: 8px var(--mono); letter-spacing: 0.35px; }
.gallery-grid { display: grid; grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); gap: 12px; }
.gallery-card-wide { grid-column: span 2; }
.gallery-card { position: relative; min-width: 0; height: 170px; margin: 0; overflow: hidden; background: #38443a; box-shadow: 0 8px 18px rgba(26, 31, 24, 0.1); }
.gallery-card img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s ease; }
.gallery-card:hover img { transform: scale(1.06); }
.gallery-card::after { position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(16, 23, 19, 0.78)); content: ""; pointer-events: none; }
.gallery-card figcaption { position: absolute; z-index: 1; right: 14px; bottom: 13px; left: 14px; display: grid; gap: 4px; color: #f8f5ec; }
.gallery-card figcaption span { color: #dbca9d; font: 8px var(--mono); letter-spacing: 0.6px; }
.gallery-card figcaption strong { font: 500 18px/1.2 var(--serif); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin: 29px 0 15px; }
.section-heading .section-kicker, .panel-head .section-kicker { color: #858878; }
h2 { margin: 5px 0 0; font: 600 24px/1.2 var(--serif); }
.text-button { display: flex; align-items: center; gap: 6px; padding: 7px 0; border: 0; color: #53614b; background: transparent; cursor: pointer; font-size: 11px; }
.text-button span { font-size: 16px; }
.session-layout { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(285px, 0.86fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(251,250,246,0.74); }
.writing-column { min-width: 0; padding: 18px 25px 0 23px; }
.session-topline { display: flex; align-items: center; justify-content: space-between; }
.session-number { display: flex; align-items: center; gap: 8px; color: #787b70; font: 9px var(--mono); }
.session-divider { color: #c6c1b4; }
.icon-button { border: 0; color: #74786b; background: transparent; cursor: pointer; font-size: 17px; letter-spacing: 2px; }
.draft-label { display: block; margin: 21px 0 8px; color: #858878; font: 9px var(--mono); letter-spacing: 0.4px; }
#draft { display: block; width: 100%; min-height: 144px; resize: vertical; padding: 0 0 12px; border: 0; outline: 0; color: #43473e; background: transparent; font: 15px/1.85 var(--serif); }
#draft::placeholder { color: #aaa99b; }
.editor-footer { display: flex; justify-content: space-between; padding: 10px 0 12px; border-top: 1px solid #e9e5da; color: #929285; font-size: 9px; }
.keyboard-hint { margin-right: 9px; color: #7c816f; font: 8px var(--mono); }
.clear-button { padding: 0; border: 0; color: #888a7f; background: transparent; cursor: pointer; font-size: 10px; }
.cast-strip { display: flex; min-height: 55px; align-items: center; gap: 9px; border-top: 1px solid #e9e5da; }
.cast-label { margin-right: 4px; color: #858878; font: 8px var(--mono); white-space: nowrap; }
.cast-avatars { display: flex; padding-left: 2px; }
.cast-avatar { display: grid; width: 25px; height: 25px; place-items: center; margin-left: -3px; border: 2px solid var(--paper-light); border-radius: 50%; color: #453831; font: 8px var(--mono); animation: pulseGlow 3s ease-in-out infinite; }
.cast-avatar.rose { background: #d9aaa0; }
.cast-avatar.blue { background: #a9b8b1; animation-delay: 0.2s; }
.cast-avatar.gold { background: #d8c28e; animation-delay: 0.4s; }
.add-cast { width: 22px; height: 22px; border: 1px dashed #b4b4a4; border-radius: 50%; color: #7e8475; background: transparent; cursor: pointer; line-height: 18px; }
.cast-note { margin-left: auto; color: #929285; font-size: 9px; white-space: nowrap; }
.prompt-panel { padding: 19px 21px 15px; border-left: 1px solid var(--line); background: rgba(238,235,224,0.53); }
.panel-head { display: flex; align-items: center; justify-content: space-between; }
h3 { margin: 4px 0 0; font: 600 19px/1.2 var(--serif); }
.spark-mark { color: var(--rust); font-size: 20px; }
.prompt-intro { margin: 10px 0 12px; color: #7b7d70; font-size: 10px; }
.mood-picker { display: flex; gap: 6px; }
.mood-button { min-height: 27px; padding: 0 10px; border: 1px solid #d8d4c7; color: #77796d; background: transparent; cursor: pointer; font-size: 9px; transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease; }
.mood-button:hover, .mood-button:focus-visible { transform: translateY(-1px); border-color: #707e62; }
.mood-button.selected { border-color: #707e62; color: #f8f5ec; background: #6c7a60; box-shadow: 0 0 0 rgba(0, 0, 0, 0); animation: pulseGlow 2.4s ease-in-out infinite; }
.prompt-card { position: relative; min-height: 119px; margin-top: 13px; padding: 14px 14px 12px; border-left: 2px solid #c39163; background-color: #fbfaf6; background-image: repeating-linear-gradient(0deg, transparent, transparent 25px, rgba(142,137,116,0.1) 26px); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.prompt-card.animating { animation: pulseGlow 0.8s ease; }
.prompt-card:hover { transform: translateY(-2px); box-shadow: 0 12px 22px rgba(56, 66, 52, 0.08); }
.prompt-card-label, .prompt-attribution { color: #9b8669; font: 8px var(--mono); letter-spacing: 0.4px; }
.prompt-card p { margin: 8px 0 10px; color: #45473e; font: 13px/1.55 var(--serif); }
.prompt-attribution { color: #a1a092; font-size: 7px; }
.prompt-actions { display: flex; gap: 8px; margin-top: 12px; }
.roll-button { display: flex; flex: 1; align-items: center; justify-content: center; gap: 7px; min-height: 33px; border: 1px solid #68775d; color: #f8f6ed; background: #68775d; cursor: pointer; font-size: 10px; transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease; }
.roll-button:hover, .roll-button:focus-visible { transform: translateY(-1px); box-shadow: 0 8px 16px rgba(52, 60, 44, 0.12); }
.roll-button span { font-size: 15px; }
.use-button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 33px; padding: 0 10px; border: 1px solid #d4d0c3; color: #616958; background: transparent; cursor: pointer; font-size: 10px; white-space: nowrap; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.use-button:hover, .use-button:focus-visible { transform: translateY(-1px); box-shadow: 0 8px 16px rgba(52, 60, 44, 0.08); }
.prompt-footnote { margin-top: 13px; color: #969587; font-size: 9px; }
.tiny-spark { margin-right: 3px; color: #b57954; }
.page-footer { display: flex; justify-content: space-between; padding: 17px 0 22px; color: #99988a; font: 8px var(--mono); letter-spacing: 0.35px; }
.toast { position: fixed; right: 22px; bottom: 20px; z-index: 5; padding: 11px 15px; color: #f6f3e8; background: var(--forest); font-size: 12px; opacity: 0; pointer-events: none; transform: translateY(7px); transition: opacity 180ms ease, transform 180ms ease; }
.toast.visible { opacity: 1; transform: translateY(0); }
button:focus-visible, a:focus-visible, textarea:focus-visible { outline: 2px solid #bd684f; outline-offset: 3px; }
[hidden] { display: none !important; }
.auth-state { color: #777b70; font-size: 10px; white-space: nowrap; }
.admin-trigger { color: #f8f6ed; background: #68775d; border-color: #68775d; }
.admin-panel { margin: 22px 0 40px; padding: 22px; border: 1px solid var(--line); background: rgba(251,250,246,0.88); }
.admin-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.admin-description { margin: 10px 0 16px; color: var(--muted); font-size: 12px; }
.admin-message { min-height: 18px; margin: 0 0 8px; color: #797d70; font-size: 11px; }
.admin-users { display: grid; border-top: 1px solid var(--line); }
.admin-user { display: flex; align-items: center; gap: 18px; min-height: 59px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.admin-user-identity { display: grid; flex: 1; min-width: 0; gap: 4px; }
.admin-user-name { overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.admin-user-email { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.admin-role-control { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.admin-role-control select { min-height: 32px; padding: 0 25px 0 9px; border: 1px solid #d8d4c7; color: var(--ink); background: var(--paper-light); font: 11px var(--sans); }
.admin-role-control select:disabled { opacity: 0.7; }
.auth-dialog { width: min(420px, calc(100vw - 28px)); padding: 0; border: 1px solid #d7d2c5; color: var(--ink); background: var(--paper-light); }
.auth-dialog::backdrop { background: rgba(20, 27, 22, 0.66); }
.auth-form { padding: 25px; }
.auth-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.auth-heading .section-kicker { color: #818575; }
.auth-heading h2 { margin-top: 7px; }
.dialog-close { width: 30px; height: 30px; border: 1px solid var(--line); color: #5e6458; background: transparent; cursor: pointer; font-size: 20px; line-height: 1; }
.auth-description { margin: 11px 0 20px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.auth-field { display: grid; gap: 7px; margin-top: 13px; color: #72776a; font: 10px var(--mono); }
.auth-field input { width: 100%; min-height: 40px; padding: 0 11px; border: 1px solid #d8d4c7; color: var(--ink); background: white; font: 13px var(--sans); }
.auth-message { min-height: 18px; margin: 12px 0 6px; color: #9b543d; font-size: 11px; line-height: 1.5; }
.auth-submit { width: 100%; min-height: 40px; border: 1px solid #68775d; color: #f8f6ed; background: #68775d; cursor: pointer; font-size: 12px; }
.auth-submit:disabled { cursor: wait; opacity: 0.65; }
.auth-mode-toggle { display: block; margin: 14px auto 0; padding: 4px; border: 0; color: #68775d; background: transparent; cursor: pointer; font-size: 11px; }

@media (max-width: 1000px) {
  .main-content { padding: 0 27px; }
  .session-layout { grid-template-columns: minmax(0, 1.15fr) minmax(275px, 0.9fr); }
  .writing-column { padding-right: 17px; padding-left: 17px; }
  .prompt-panel { padding-right: 15px; padding-left: 15px; }
}
@media (max-width: 760px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; z-index: 2; height: auto; min-height: 0; padding: 12px 16px; }
  .wordmark { font-size: 16px; }
  .wordmark-mark { width: 30px; height: 30px; }
  .wordmark small { font-size: 8px; }
  .workspace-label, .primary-nav, .sidebar-divider, .sidebar-divider + .workspace-label, .world-link, .sidebar-bottom { display: none; }
  .main-content { padding: 0 18px; }
  .topbar { min-height: 52px; }
  .crumbs { font-size: 8px; gap: 7px; }
  .topbar-actions { gap: 11px; }
  .save-indicator { font-size: 9px; }
  .auth-state { display: none; }
  .forum-shortcut { display: flex; }
  .topbar-actions .share-button { min-height: 29px; padding: 0 8px; font-size: 9px; }
  .world-intro { min-height: 285px; margin-top: 17px; }
  .intro-content { padding: 25px 19px 22px; }
  h1 { font-size: 35px; }
  .intro-description { max-width: 340px; font-size: 11px; }
  .chapter-stamp { right: 13px; bottom: 17px; min-width: 54px; }
  .chapter-stamp span { font-size: 7px; }
  .chapter-stamp strong { font-size: 27px; }
  .city-gallery { margin-top: 22px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-card, .gallery-card-wide { height: 145px; }
  .gallery-card-wide { grid-column: 1 / -1; }
  .gallery-note { max-width: 145px; text-align: right; line-height: 1.5; }
  .section-heading { margin-top: 24px; }
  h2 { font-size: 22px; }
  .session-layout { grid-template-columns: 1fr; }
  .writing-column { padding: 16px 16px 0; }
  #draft { min-height: 130px; }
  .prompt-panel { border-top: 1px solid var(--line); border-left: 0; padding: 17px 16px; }
  .prompt-card { min-height: 105px; }
  .admin-panel { padding: 16px; }
  .admin-user { align-items: flex-start; gap: 10px; }
  .admin-role-control { align-items: flex-end; flex-direction: column; gap: 5px; }
  .page-footer { gap: 14px; font-size: 7px; }
}
@media (max-width: 420px) {
  .main-content { padding: 0 13px; }
  .save-indicator { gap: 5px; font-size: 8px; }
  .share-button { min-height: 28px; padding: 0 8px; font-size: 10px; }
  .topbar-actions { gap: 8px; }
  .intro-meta { gap: 8px; font-size: 9px; }
  .chapter-stamp { right: 8px; bottom: 12px; }
  .cast-label { font-size: 7px; }
  .cast-note { font-size: 8px; }
  .page-footer { flex-direction: column; gap: 6px; }
}
/* Night-drive palette and cinematic motion */
:root {
  color-scheme: dark;
  --forest: #0b1117;
  --forest-soft: #131f28;
  --paper: #0e151c;
  --paper-light: #151f28;
  --ink: #e7edf1;
  --muted: #97a6b0;
  --line: #293640;
  --moss: #78b9ae;
  --rust: #e88b56;
  --ochre: #edbd72;
  --serif: "Barlow Condensed", "Arial Narrow", sans-serif;
  --sans: "Manrope", "Segoe UI", sans-serif;
  --mono: "DM Mono", Consolas, monospace;
}
body {
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(ellipse at 78% 12%, rgba(42, 91, 105, 0.14), transparent 38%), radial-gradient(#27343b 0.6px, transparent 0.6px);
  background-size: auto, 8px 8px;
}
.sidebar { background: linear-gradient(180deg, #101a21, #0a1016 72%); border-right: 1px solid #27343b; }
.wordmark { color: #f1f5f4; font-family: var(--sans); font-size: 15px; font-weight: 800; letter-spacing: -0.55px; }
.wordmark-mark { width: 38px; height: 38px; border-color: #58a9a4; color: #a2f2df; background: linear-gradient(145deg, rgba(63, 150, 145, 0.24), rgba(20, 43, 52, 0.72)); box-shadow: inset 0 0 14px rgba(101, 221, 199, 0.12), 0 0 16px rgba(65, 174, 163, 0.12); font: 800 12px/1 var(--sans); letter-spacing: -1px; }
.wordmark small { color: #7c939d; }
.workspace-label, .crumbs, .section-kicker, .eyebrow, .session-number, .cast-label, .gallery-note, .page-footer { letter-spacing: 1px; }
.nav-link { border-left: 2px solid transparent; transition: background 220ms ease, border-color 220ms ease, padding 220ms ease, color 220ms ease; }
.nav-link:hover, .nav-link.active { padding-left: 13px; border-left-color: #66c7bc; color: #f0f8f7; background: linear-gradient(90deg, rgba(68, 146, 147, 0.22), rgba(68, 146, 147, 0.04)); }
.nav-icon, .nav-count { color: #80bcb3; }
.world-link.selected { color: #f0f8f7; background: #17252d; }
.world-dot { background: #74cbbb; box-shadow: 0 0 12px rgba(116, 203, 187, 0.45); }
.world-dot.ochre { background: #e6ad62; }
.sidebar-bottom { border-color: #283740; }
.avatar { color: #071310; background: linear-gradient(135deg, #8fe0cd, #d5ad6b); }
.main-content { position: relative; }
.topbar { border-color: rgba(120, 151, 161, 0.2); }
.crumbs { color: #80919a; }
.crumbs strong { color: #dae4e8; }
.save-indicator, .auth-state { color: #9babb3; }
.save-dot, .live-dot { background: #7bd0a6; box-shadow: 0 0 10px rgba(123, 208, 166, 0.5); }
.share-button { border-color: #354650; color: #dce7e9; background: rgba(20, 31, 39, 0.9); }
.share-button:hover, .share-button:focus-visible { border-color: #67bcb2; box-shadow: 0 8px 22px rgba(25, 103, 105, 0.18); }
.forum-shortcut { display: none; }
.admin-trigger, .auth-submit { border-color: #397b78; color: #effbf9; background: #256461; }
.world-intro { min-height: 310px; border: 1px solid #31414a; box-shadow: 0 22px 55px rgba(0, 0, 0, 0.32); }
.intro-image { filter: saturate(0.82) contrast(1.05); }
.intro-shade { background: linear-gradient(90deg, rgba(7, 14, 19, 0.94), rgba(8, 18, 24, 0.67) 49%, rgba(9, 15, 19, 0.08)), linear-gradient(0deg, rgba(5, 10, 15, 0.73), transparent 62%); }
.intro-shade::before { opacity: 0.65; }
.intro-content { padding: 38px 40px 32px; }
.eyebrow, .section-kicker { color: #86c8be; }
.eyebrow-line { background: #e7ad66; }
.eyebrow-dot, .meta-icon { color: #edbd72; }
h1 { font: 700 58px/0.98 var(--serif); letter-spacing: 0.4px; text-transform: uppercase; }
.intro-description { color: #c4d0d4; font-size: 13px; }
.intro-meta { color: #adbdc1; }
.chapter-stamp { color: #edf4f3; }
.chapter-stamp span { color: #b4c6c8; letter-spacing: 1.2px; }
.chapter-stamp strong { color: #e7bd7e; font: 600 44px/0.95 var(--serif); }
.city-gallery { margin-top: 31px; }
.gallery-heading .section-kicker, .section-heading .section-kicker, .panel-head .section-kicker { color: #7fb7b0; }
h2 { color: #eaf0f2; font: 600 30px/1.05 var(--serif); letter-spacing: 0.25px; text-transform: uppercase; }
.gallery-heading h2 { font-size: 25px; }
.gallery-note { color: #7e929b; }
.gallery-grid { gap: 14px; }
.gallery-card { height: 190px; border: 1px solid #30434b; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24); }
.gallery-card img { filter: saturate(0.78) brightness(0.82); }
.gallery-card:hover img { filter: saturate(1) brightness(0.95); }
.gallery-card::after { background: linear-gradient(180deg, transparent 24%, rgba(7, 13, 18, 0.88)); }
.gallery-card figcaption span { color: #80cec0; }
.gallery-card figcaption strong { font: 600 24px/1 var(--serif); letter-spacing: 0.4px; text-transform: uppercase; }
.section-heading { margin-top: 34px; }
.text-button { color: #8dd2c6; }
.text-button:hover { color: #c5f3e8; }
.session-layout { border-color: var(--line); background: rgba(17, 26, 34, 0.88); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2); }
.writing-column { padding-top: 21px; }
.session-number { color: #9caeb5; }
.draft-label, .editor-footer, .clear-button { color: #91a1a8; }
#draft { color: #e6edef; font: 500 17px/1.8 var(--sans); }
#draft::placeholder { color: #657780; }
.editor-footer, .cast-strip { border-color: #293943; }
.keyboard-hint { color: #7fc4b9; }
.cast-avatar { border-color: #17232b; animation: avatarFloat 4s ease-in-out infinite; }
.cast-avatar.rose { background: #d98d83; }
.cast-avatar.blue { background: #77b9bd; animation-delay: 0.3s; }
.cast-avatar.gold { background: #e1b56e; animation-delay: 0.6s; }
.add-cast { border-color: #47605f; color: #8ed2c3; }
.cast-note { color: #899ba2; }
.prompt-panel { border-color: #293943; background: linear-gradient(145deg, #17232b, #121c23); }
h3 { color: #ecf2f2; font: 600 27px/1 var(--serif); text-transform: uppercase; }
.spark-mark, .tiny-spark { color: #e9b56d; }
.prompt-intro { color: #a0b0b4; }
.mood-button { border-color: #40515a; color: #aab8bc; background: rgba(10, 18, 24, 0.5); }
.mood-button:hover, .mood-button:focus-visible { border-color: #70bbb2; }
.mood-button.selected { border-color: #5ea9a1; color: #eafffa; background: #24504e; box-shadow: 0 0 18px rgba(71, 167, 155, 0.2); }
.prompt-card { border: 1px solid #33454d; border-left: 2px solid #e0a661; background-color: #111b22; background-image: repeating-linear-gradient(0deg, transparent, transparent 25px, rgba(140, 174, 174, 0.06) 26px); }
.prompt-card-label { color: #e2b579; }
.prompt-card p { color: #e0e9e9; font: 500 16px/1.55 var(--sans); }
.prompt-attribution { color: #81949b; }
.roll-button { border-color: #397b78; color: #e9faf7; background: #256461; }
.use-button { border-color: #40525a; color: #c4d7d8; background: transparent; }
.roll-button:hover, .use-button:hover { box-shadow: 0 8px 20px rgba(39, 128, 120, 0.2); }
.prompt-footnote { color: #83979d; }
.page-footer { color: #73868d; }
.admin-panel { border-color: var(--line); background: #121c23; }
.admin-description, .admin-message, .admin-role-control { color: #9aabb0; }
.admin-user { border-color: #293943; }
.admin-user-name { color: #e5eeee; }
.admin-role-control select, .auth-dialog, .auth-field input { border-color: #374950; color: #e5eeee; background: #111b22; }
.auth-dialog { background: #141f26; }
.auth-heading h2, .auth-heading .section-kicker { color: #80c6bc; }
.auth-description { color: #9babb0; }
.auth-message { color: #efaa83; }
.auth-mode-toggle { color: #80c6bc; }
.toast { border: 1px solid #41635f; color: #effbf7; background: #142a2b; }
.forum-section { margin: 35px 0 10px; padding: 24px; border: 1px solid #2b404a; background: linear-gradient(145deg, rgba(21, 34, 43, 0.97), rgba(14, 23, 30, 0.97)); box-shadow: 0 18px 42px rgba(0, 0, 0, 0.19); }
.forum-heading, .forum-feed-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.forum-heading h2 { margin-top: 7px; }
.forum-heading p { margin: 8px 0 0; color: #9aadb3; font-size: 12px; }
.forum-online { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid #314b4d; color: #9ccfc4; background: rgba(39, 95, 88, 0.15); font: 8px var(--mono); letter-spacing: 0.7px; white-space: nowrap; }
.forum-layout { display: grid; grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.5fr); gap: 24px; margin-top: 22px; }
.forum-compose { align-self: start; padding: 17px; border: 1px solid #2c4149; background: rgba(9, 17, 23, 0.55); }
.forum-compose-kicker { color: #80c6bc; font: 8px var(--mono); letter-spacing: 0.8px; }
.forum-compose .auth-field { margin-top: 14px; }
.forum-compose .auth-field input, .forum-compose .auth-field select, .forum-compose .auth-field textarea, .forum-reply-form textarea { width: 100%; min-height: 38px; padding: 9px 10px; border: 1px solid #344750; color: #e3edef; background: #101a21; font: 11px var(--sans); }
.forum-compose .auth-field textarea, .forum-reply-form textarea { resize: vertical; line-height: 1.6; }
.forum-compose .auth-field input::placeholder, .forum-compose .auth-field textarea::placeholder, .forum-reply-form textarea::placeholder { color: #71858d; }
.forum-submit { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 38px; margin-top: 14px; border: 1px solid #397b78; color: #effbf9; background: #256461; cursor: pointer; font: 700 10px var(--sans); transition: background 180ms ease, transform 180ms ease; }
.forum-submit:hover, .forum-submit:focus-visible { transform: translateY(-1px); background: #2d7771; }
.forum-status { min-height: 15px; margin: 10px 0 0; color: #83999e; font-size: 9px; line-height: 1.5; }
.forum-feed-heading { align-items: center; margin-bottom: 12px; }
.forum-feed-heading h3 { margin-top: 6px; }
.forum-filter-label { display: flex; align-items: center; gap: 7px; color: #92a6ac; font: 9px var(--mono); }
.forum-filter-label select { min-height: 31px; padding: 0 25px 0 8px; border: 1px solid #344750; color: #d9e5e7; background: #101a21; font: 10px var(--sans); }
.forum-topics { display: grid; gap: 10px; }
.forum-topic { padding: 15px 16px 12px; border: 1px solid #2d414a; background: rgba(11, 19, 25, 0.68); animation: cardRise 420ms ease both; }
.forum-topic-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #81959b; font: 8px var(--mono); }
.forum-category { color: #8fd2c3; }
.forum-topic h4 { margin: 10px 0 5px; color: #eff4f4; font: 600 23px/1 var(--serif); text-transform: uppercase; }
.forum-topic-body { margin: 0; color: #aab9bd; font-size: 11px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.forum-topic-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 9px; border-top: 1px solid #263740; color: #80939a; font-size: 9px; }
.forum-reply-button { padding: 4px 0; border: 0; color: #8ed2c6; background: transparent; cursor: pointer; font-size: 9px; }
.forum-reply-button:hover { color: #d0fff1; }
.forum-replies { display: grid; gap: 8px; }
.forum-reply { position: relative; margin-top: 10px; padding: 9px 11px; border-left: 2px solid #386b69; background: rgba(42, 83, 83, 0.14); }
.forum-reply strong { color: #c3e5dd; font-size: 10px; }
.forum-reply time { margin-left: 8px; color: #7f959a; font: 8px var(--mono); }
.forum-reply p { margin: 5px 0 0; color: #aab9bd; font-size: 10px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.forum-reply-form { display: flex; align-items: flex-end; gap: 9px; margin-top: 10px; }
.forum-reply-form textarea { flex: 1; }
.forum-reply-form .forum-submit { width: auto; min-width: 95px; margin: 0; padding: 0 11px; }
.forum-empty { margin: 0; padding: 22px; border: 1px dashed #344750; color: #93a7ac; font-size: 11px; text-align: center; }
.site-loaded .city-gallery { animation-delay: 0.2s; }
.site-loaded .city-gallery .gallery-card { animation: cardRise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.site-loaded .city-gallery .gallery-card:nth-child(2) { animation-delay: 0.12s; }
.site-loaded .city-gallery .gallery-card:nth-child(3) { animation-delay: 0.24s; }
.scroll-reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.scroll-reveal.is-visible { opacity: 1; transform: translateY(0); }
@keyframes cardRise { from { opacity: 0; transform: translateY(22px) scale(0.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes avatarFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@media (max-width: 900px) {
  .forum-section { padding: 18px; }
  .forum-layout { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 520px) {
  .forum-heading { flex-direction: column; }
  .forum-online { align-self: flex-start; }
  .forum-feed-heading { align-items: flex-start; flex-direction: column; }
  .forum-reply-form { align-items: stretch; flex-direction: column; }
  .forum-reply-form .forum-submit { width: 100%; }
}
@media (max-width: 760px) {
  .topbar-actions .forum-shortcut { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
  .intro-image, .intro-shade::before, .cast-avatar, .mood-button.selected, .site-loaded .world-intro, .site-loaded .topbar, .site-loaded .sidebar, .site-loaded .city-gallery .gallery-card { animation: none !important; }
  .scroll-reveal { opacity: 1; transform: none; }
  .forum-topic { animation: none !important; }
}
/* Bright, game-community landing page inspired by the reference layout. */
:root {
  color-scheme: light;
  --paper: #f1f1f4;
  --paper-light: #fff;
  --ink: #17171d;
  --muted: #72727d;
  --line: #dedee5;
  --moss: #7353e8;
  --rust: #f3bf34;
  --ochre: #f3bf34;
  --serif: "Barlow Condensed", "Arial Narrow", sans-serif;
  --sans: "Manrope", "Segoe UI", sans-serif;
  --mono: "DM Mono", Consolas, monospace;
}
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { color: var(--ink); background: #f1f1f4; background-image: none; }
.app-shell { display: block; min-height: 100vh; }
.sidebar { display: none; }
.main-content { width: 100%; max-width: none; margin: 0; padding: 0; }
.topbar { position: sticky; z-index: 10; top: 0; display: flex; min-height: 76px; gap: 28px; padding: 10px clamp(22px, 4vw, 64px); border: 0; background: rgba(255, 255, 255, 0.97); box-shadow: 0 4px 18px rgba(20, 21, 31, 0.08); backdrop-filter: blur(14px); }
.topbar-brand { flex: 0 0 auto; color: #191820; }
.topbar-brand .wordmark-mark { width: 43px; height: 43px; border: 2px solid #7857eb; border-radius: 50% 18% 50% 18%; color: #fff; background: #7353e8; box-shadow: none; font-size: 13px; }
.topbar-brand small { color: #7353e8; font-size: 8px; font-weight: 600; }
.top-navigation { display: flex; flex: 1; align-items: center; justify-content: center; gap: clamp(18px, 3vw, 46px); }
.top-navigation a { color: #292832; font: 600 16px/1 var(--serif); letter-spacing: 0.35px; transition: color 180ms ease; }
.top-navigation a:hover { color: #7353e8; }
.topbar-actions { flex: 0 0 auto; gap: 10px; }
.save-indicator { color: #666772; }
.save-dot, .live-dot { background: #49b783; box-shadow: 0 0 0 4px rgba(73, 183, 131, 0.12); }
.auth-state { color: #6a6872; }
.share-button { min-height: 40px; border: 1px solid #e6e3ed; border-radius: 7px; color: #35323e; background: #fff; font-weight: 700; }
.share-button:hover, .share-button:focus-visible { transform: translateY(-2px); border-color: #bcaaf9; box-shadow: 0 8px 18px rgba(77, 56, 152, 0.13); }
.admin-trigger { border-color: #7353e8; color: white; background: #7353e8; }
.world-intro { width: min(1380px, calc(100% - 48px)); min-height: clamp(500px, 67vw, 680px); margin: 24px auto 0; border: 0; border-radius: 20px; background: #151922; box-shadow: 0 28px 70px rgba(29, 23, 54, 0.21); }
.intro-image { background-image: url("https://images.unsplash.com/photo-1519608487953-e999c86e7455?auto=format&fit=crop&w=2000&q=90"); background-position: center 48%; filter: saturate(1.07) contrast(1.05); }
.intro-shade { background: linear-gradient(90deg, rgba(13, 15, 23, 0.83), rgba(19, 18, 30, 0.43) 52%, rgba(24, 18, 41, 0.12)), linear-gradient(0deg, rgba(12, 13, 21, 0.72), transparent 65%); }
.intro-shade::before { background: linear-gradient(120deg, transparent 36%, rgba(255,255,255,0.21) 50%, transparent 64%); }
.intro-content { max-width: 760px; padding: 46px clamp(26px, 6vw, 82px); }
.eyebrow { color: #e9dcff; font-weight: 500; letter-spacing: 1.3px; }
.eyebrow-line { background: #ffd34f; }
.eyebrow-dot, .meta-icon { color: #ffd34f; }
h1 { margin: 18px 0 14px; font: 700 clamp(56px, 8vw, 106px)/0.84 var(--serif); letter-spacing: 0.2px; text-transform: uppercase; }
.intro-description { max-width: 560px; color: #f1edf8; font-size: clamp(14px, 1.3vw, 17px); line-height: 1.7; }
.intro-meta { flex-wrap: wrap; gap: 14px 24px; margin-top: 26px; }
.hero-cta { display: inline-flex; min-height: 56px; align-items: center; justify-content: center; gap: 16px; padding: 0 28px; border: 0; border-radius: 8px; color: #201a30; background: #ffd34f; box-shadow: 0 10px 30px rgba(255, 199, 53, 0.28); font: 700 16px/1 var(--serif); letter-spacing: 0.8px; transition: transform 200ms ease, box-shadow 200ms ease; }
.hero-cta:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(255, 199, 53, 0.38); }
.hero-secondary { color: #fff; font: 600 12px var(--sans); letter-spacing: 0.8px; }
.hero-secondary:hover { color: #ffd34f; }
.chapter-stamp { right: clamp(20px, 4vw, 54px); bottom: 34px; padding: 14px 18px; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 8px; background: rgba(20, 18, 31, 0.42); backdrop-filter: blur(8px); }
.chapter-stamp span { color: #eee8f9; }
.chapter-stamp strong { color: #ffd34f; font-size: 48px; }
.server-section, .how-to-play, .city-gallery, .section-heading, .session-layout, .forum-section, .page-footer, .admin-panel { width: min(1180px, calc(100% - 48px)); margin-right: auto; margin-left: auto; }
.server-section { padding: 68px 0 18px; }
.server-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.server-section-heading .section-kicker, .gallery-heading .section-kicker, .section-heading .section-kicker { color: #7353e8; }
.server-section-heading h2, .gallery-heading h2, .section-heading h2 { margin-top: 8px; color: #191820; font: 700 clamp(32px, 4vw, 48px)/0.95 var(--serif); }
.server-section-heading p { margin: 0 0 3px; color: #696873; font-size: 12px; line-height: 1.7; text-align: right; }
.server-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.server-card { overflow: hidden; border: 1px solid #e0dfe6; border-radius: 12px; background: #fff; box-shadow: 0 12px 28px rgba(26, 25, 36, 0.07); transition: transform 240ms ease, box-shadow 240ms ease; }
.server-card:hover { transform: translateY(-5px); box-shadow: 0 20px 36px rgba(26, 25, 36, 0.13); }
.server-card-visual { position: relative; display: flex; min-height: 130px; align-items: flex-end; justify-content: space-between; padding: 17px; overflow: hidden; background: linear-gradient(140deg, #5043a4, #9d74ea 55%, #eb9b68); }
.server-card-visual::before { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(10, 11, 20, 0.05), rgba(10, 11, 20, 0.55)), url("https://images.unsplash.com/photo-1519608487953-e999c86e7455?auto=format&fit=crop&w=900&q=75") center 42%/cover; content: ""; mix-blend-mode: soft-light; transition: transform 400ms ease; }
.server-card:hover .server-card-visual::before { transform: scale(1.06); }
.server-visual-west { background: linear-gradient(135deg, #313b61, #327d87, #bdd28e); }
.server-visual-events { background: linear-gradient(135deg, #542377, #a74693, #efab61); }
.server-emblem, .server-status { position: relative; z-index: 1; }
.server-emblem { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid rgba(255,255,255,0.7); border-radius: 12px; color: #fff; background: rgba(13, 16, 24, 0.24); font: 700 16px var(--sans); backdrop-filter: blur(8px); }
.server-status { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid rgba(255,255,255,0.35); border-radius: 20px; color: #fff; background: rgba(15, 19, 28, 0.42); font: 8px var(--mono); letter-spacing: 0.4px; }
.server-status i { width: 6px; height: 6px; border-radius: 50%; background: #ffd34f; box-shadow: 0 0 9px rgba(255,211,79,0.8); }
.server-card-content { padding: 18px; }
.server-card-meta { display: flex; justify-content: space-between; gap: 8px; color: #77747f; font: 8px var(--mono); letter-spacing: 0.35px; }
.server-card-content h3 { margin: 10px 0 4px; color: #1d1b24; font: 700 30px/0.95 var(--serif); text-transform: uppercase; }
.server-card-content p { min-height: 36px; margin: 0 0 15px; color: #696873; font-size: 11px; line-height: 1.6; }
.server-card-content a, .start-step a { display: inline-flex; align-items: center; gap: 8px; color: #6e4ce2; font: 700 9px var(--sans); letter-spacing: 0.35px; }
.server-card-content a:hover, .start-step a:hover { color: #4225a7; }
.server-disclaimer { margin: 12px 0 0; color: #77747f; font-size: 9px; text-align: right; }
.how-to-play { padding: 55px 0 44px; }
.gallery-heading { margin-bottom: 18px; }
.gallery-heading h2 { font-size: clamp(31px, 4vw, 44px); }
.gallery-note { color: #7a7881; }
.start-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.start-step { display: flex; gap: 16px; min-height: 174px; padding: 21px; border: 1px solid #e0dfe6; border-radius: 11px; background: #fff; box-shadow: 0 10px 24px rgba(26, 25, 36, 0.05); }
.step-number { flex: 0 0 auto; color: #7353e8; font: 700 36px/0.85 var(--serif); }
.step-kicker { color: #797680; font: 8px var(--mono); letter-spacing: 0.65px; }
.start-step h3 { margin: 7px 0 3px; color: #1d1b24; font: 700 26px/1 var(--serif); text-transform: uppercase; }
.start-step p { margin: 0 0 12px; color: #696873; font-size: 10px; line-height: 1.65; }
.city-gallery { margin-top: 24px; }
.gallery-heading .section-kicker { color: #7353e8; }
.gallery-grid { gap: 15px; }
.gallery-card { height: 205px; border: 1px solid #dedbe7; border-radius: 11px; box-shadow: 0 10px 25px rgba(26, 25, 36, 0.09); }
.gallery-card figcaption span { color: #ffe079; }
.section-heading { margin-top: 50px; }
.section-heading h2 { color: #1d1b24; }
.text-button { color: #6948df; font-weight: 700; }
.session-layout { border: 1px solid #292635; border-radius: 12px; overflow: hidden; background: #171720; box-shadow: 0 14px 32px rgba(26, 25, 36, 0.13); }
.session-layout h2, .session-layout h3 { color: #f2eff8; }
.writing-column { padding-top: 22px; }
.prompt-panel { background: #201f2b; }
.prompt-card, #draft, .draft-label, .editor-footer, .clear-button { color: #e7e3ed; }
.forum-section { margin-top: 46px; border-radius: 12px; }
.page-footer { padding: 25px 0 34px; }
.page-footer { align-items: center; flex-wrap: wrap; gap: 16px 24px; }
.footer-socials { display: flex; align-items: center; gap: 9px; }
.social-icon { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid #dedbe7; border-radius: 50%; color: #6e4ce2; background: #fff; animation: socialPop 620ms cubic-bezier(0.2, 0.8, 0.2, 1) both; transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease; }
.social-icon:nth-child(2) { animation-delay: 120ms; }
.social-icon:nth-child(3) { animation-delay: 240ms; }
.social-icon:hover { transform: translateY(-4px) scale(1.08); border-color: #7353e8; color: #fff; background: #7353e8; box-shadow: 0 8px 18px rgba(115, 83, 232, 0.24); }
.social-icon svg { display: block; width: 16px; height: 16px; fill: currentColor; }
@keyframes socialPop { from { opacity: 0; transform: translateY(12px) scale(0.82); } to { opacity: 1; transform: translateY(0) scale(1); } }
.admin-panel { border-radius: 12px; }
@media (max-width: 1000px) {
  .topbar { gap: 18px; padding-right: 24px; padding-left: 24px; }
  .top-navigation { gap: 18px; }
  .top-navigation a { font-size: 14px; }
  .topbar-actions .save-indicator, .topbar-actions .auth-state { display: none; }
}
@media (max-width: 760px) {
  .topbar { position: sticky; min-height: 64px; flex-wrap: wrap; justify-content: space-between; gap: 9px; padding: 8px 16px; }
  .topbar-brand { font-size: 13px; }
  .topbar-brand .wordmark-mark { width: 35px; height: 35px; }
  .top-navigation { order: 3; flex: 1 0 100%; justify-content: space-around; padding: 8px 0 4px; border-top: 1px solid #eceaf0; }
  .top-navigation a { font-size: 12px; }
  .topbar-actions { gap: 6px; }
  .topbar-actions .share-button { min-height: 34px; }
  .topbar-actions #share-button { display: none; }
  .world-intro { width: calc(100% - 28px); min-height: 500px; margin-top: 14px; }
  .intro-content { padding: 30px 21px 38px; }
  h1 { font-size: clamp(54px, 14vw, 78px); }
  .chapter-stamp { right: 12px; bottom: 12px; min-width: auto; padding: 7px 9px; }
  .chapter-stamp strong { font-size: 28px; }
  .server-section, .how-to-play, .city-gallery, .section-heading, .session-layout, .forum-section, .page-footer, .admin-panel { width: calc(100% - 30px); }
  .server-section { padding-top: 45px; }
  .server-section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .server-section-heading p { text-align: left; }
  .server-grid, .start-steps { grid-template-columns: 1fr; }
  .server-card-visual { min-height: 115px; }
  .start-step { min-height: 0; }
  .gallery-card, .gallery-card-wide { height: 150px; }
  .session-layout { grid-template-columns: 1fr; }
  .prompt-panel { border-top: 1px solid #353344; border-left: 0; }
  .page-footer { padding-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .social-icon { animation: none; transition: none; }
  .server-card, .server-card-visual::before, .hero-cta { transition: none; }
  .server-card:hover, .hero-cta:hover { transform: none; }
}
