@font-face {
  font-family: Inter;
  src: url('/assets/inter-latin-variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #100d17;
  --surface: #191321;
  --surface-raised: #21192e;
  --text: #f6f3fa;
  --muted: #c5bdd8;
  --violet: #7925ff;
  --violet-hover: #8b42ff;
  --link: #d4a9ff;
  --gold: #edc16d;
  --line: #30243f;
  --border: #4a365e;
  font-family: Inter, system-ui, sans-serif;
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--background); color: var(--text); font-size: 18px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, summary { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 6px; border-radius: 5px; }
img { display: block; max-width: 100%; }
figure, p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { line-height: 1.08; font-weight: 750; letter-spacing: -.035em; }
h2 { font-size: clamp(32px, 4.1vw, 60px); }
.wrap { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }
.section-line { border-bottom: 1px solid var(--line); }
.icon { width: 1em; height: 1em; flex: none; filter: brightness(0) invert(1); }
.eyebrow { font-size: 13px; font-weight: 550; line-height: 1.5; letter-spacing: .23em; text-transform: uppercase; color: #d0c3e2; }
.text-link { color: var(--link); display: inline-flex; align-items: center; gap: 15px; font-size: 20px; white-space: nowrap; }
.text-link:hover, .site-nav a:hover, .site-footer a:hover, .closing-actions > a:not(.button):hover { color: white; }
.text-link .icon { width: 20px; height: 20px; opacity: .85; }
.gold-text { color: var(--gold); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 19px; min-height: 70px; padding: 18px 34px; font-weight: 560; font-size: 21px; border: 1px solid transparent; border-radius: 9px; line-height: 1.4; transition: background .16s, border-color .16s, transform .16s; }
.button:hover { transform: translateY(-2px); }
.primary { background: var(--violet); color: white; box-shadow: 0 6px 26px #7424ff20; }
.primary:hover { background: var(--violet-hover); }
.secondary { border-color: #77638e; background: transparent; }
.secondary:hover { background: var(--surface-raised); border-color: var(--link); }
.actions { display: flex; gap: 24px; flex-wrap: wrap; }
.skip-link { position: absolute; z-index: 10; top: 12px; left: 12px; padding: 12px 20px; background: var(--violet); transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.not-found { min-height: 100vh; max-width: 680px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 24px; padding-block: 40px; }
.not-found h1 { font-size: clamp(36px, 6vw, 64px); margin: 0; }

/* Header and first screen */
.site-header { height: 94px; display: flex; align-items: center; gap: 40px; border-bottom: 1px solid var(--line); position: relative; }
.site-header > * { position: relative; z-index: 1; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; font-size: 30px; font-weight: 720; letter-spacing: -.025em; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.site-nav { display: flex; align-items: center; flex: 1; gap: 24px; font-size: 18px; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 38px; white-space: nowrap; }
.social-links { display: flex; align-items: center; gap: 4px; }
.social-link { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; color: var(--muted); transition: color .16s; }
.social-link:hover, .social-link:focus-visible { color: var(--link); }
.social-icon { display: block; width: 20px; height: 20px; fill: currentColor; }
.header-app { font-size: 19px; }
.menu-toggle { display: none; }
.hero-layout { min-height: 674px; position: relative; display: grid; grid-template-columns: 62% 38%; align-items: center; }
.hero-copy { position: relative; z-index: 1; padding: 72px 0 50px; }
h1 { font-size: clamp(48px, 6.7vw, 96px); line-height: 1.01; margin: 24px 0 25px; font-weight: 790; letter-spacing: -.045em; }
.hero-description { max-width: 640px; color: var(--muted); font-size: 27px; line-height: 1.48; }
.hero .actions { margin-top: 34px; }
.gold-note { display: flex; align-items: center; gap: 16px; font-size: 18px; line-height: 1.5; color: #d0c6e0; margin-top: 38px; max-width: 520px; }
.gold-note img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.hero-art { position: absolute; z-index: 0; pointer-events: none; width: 740px; max-width: 60%; height: auto; bottom: 0; right: -35px; }

/* Full-width community strip between the hero and quest feed. */
.community-banner { background: linear-gradient(100deg, #1b1327, #29173d 50%, #1b1327); }
.community-banner-inner { display: flex; align-items: center; justify-content: center; gap: 36px; min-height: 104px; padding-block: 20px; }
.community-banner h2 { font-size: 26px; font-weight: 650; letter-spacing: -.025em; }
.community-banner .social-links { gap: 16px; }
.community-banner .social-link { width: 48px; height: 48px; color: var(--link); }
.community-banner .social-link:hover, .community-banner .social-link:focus-visible { color: white; }
.community-banner .social-icon { width: 24px; height: 24px; }

/* Public feed. The IMAGE, independently of its card, stays exactly 2:3. */
.quests { padding: 54px 0 48px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 30px; }
.quest-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.quest-card { display: grid; grid-template-columns: clamp(144px, 14.7vw, 212px) minmax(0, 1fr); border: 1px solid var(--border); background: var(--surface); border-radius: 12px; overflow: hidden; transition: border-color .18s, background .18s; }
.quest-card:hover { border-color: #a276c9; background: #21182c; }
.quest-cover { width: 100%; aspect-ratio: 2 / 3; height: auto; object-fit: cover; align-self: start; }
.quest-copy { display: flex; flex-direction: column; align-items: flex-start; padding: 26px 25px 24px; min-width: 0; }
.quest-copy h3 { font-size: clamp(20px, 2.1vw, 31px); line-height: 1.2; letter-spacing: -.025em; font-weight: 720; overflow-wrap: anywhere; }
.quest-description { font-size: 22px; color: var(--muted); line-height: 1.5; margin-top: 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.quest-link { display: flex; align-items: center; gap: 14px; font-size: 21px; color: var(--link); margin-top: auto; padding-top: 23px; }
.quest-link .icon { width: 16px; height: 16px; }
.feed-status { font-size: 14px; color: var(--muted); margin-top: 16px; }
.feed-status:empty { display: none; }
.empty-feed { grid-column: 1 / -1; color: var(--muted); padding-block: 48px; }
.empty-feed a { color: var(--link); text-decoration: underline; }

/* Silver and character progression */
.moderation { text-align: center; padding: 65px 0 58px; }
.moderation h2 { margin-top: 14px; }
.section-description { color: var(--muted); font-size: 25px; line-height: 1.5; }
.moderation .section-description { margin-top: 18px; }
.moderation-scene { max-width: 1140px; margin: 15px auto 32px; }
.moderation-art { width: 100%; height: auto; }
.progress-labels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; color: #d6cbe5; font-size: 21px; margin-top: -3px; }
.progress-labels span:nth-child(2) { padding-top: 17px; }

/* Author copy, real HTML workspace preview, and foreground illustration */
.creators { padding: 64px 0 20px; }
.creator-layout { display: grid; grid-template-columns: 43% minmax(0, 57%); gap: 12px; }
.creator-copy { padding: 5px 40px 50px 0; position: relative; z-index: 1; }
.creator-copy h2 { font-size: clamp(40px, 5.1vw, 74px); margin: 20px 0 22px; }
.creator-copy .section-description { max-width: 510px; }
.creator-reward { display: flex; align-items: center; gap: 10px; font-size: 21px; color: var(--gold); margin: 24px 0 30px; }
.creator-reward img { width: 36px; height: 36px; }
.creator-visual { position: relative; padding-bottom: 205px; }
.workspace-preview { background: var(--surface); border: 1px solid #654b80; border-radius: 15px; padding: 28px 26px 38px; box-shadow: inset 0 0 0 12px #21192a; }
.workspace-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; font-size: 20px; }
.draft-button { display: inline-flex; align-items: center; gap: 8px; background: var(--violet); border-radius: 6px; padding: 10px 15px; font-size: 14px; }
.draft-button:hover { background: var(--violet-hover); }
.workspace-section { background: #211b2b; border: 1px solid #30263f; border-radius: 8px; margin-top: 10px; overflow: hidden; }
.workspace-label { display: flex; align-items: center; gap: 13px; padding: 13px 17px; font-size: 15px; color: #ded3eb; border-bottom: 1px solid #30263f; }
.workspace-label .icon { opacity: .7; }
.draft-row { display: flex; align-items: center; gap: 14px; font-size: 14px; min-height: 70px; padding: 13px 17px; }
.draft-row:hover { background: #30243f; }
.file-symbol { display: grid; place-items: center; width: 38px; height: 42px; background: #47315f; border-radius: 8px; }
.draft-arrow { margin-left: auto; opacity: .65; }
.active-section .workspace-label { color: #b9dbca; }
.workspace-empty { display: flex; flex-direction: column; color: var(--muted); font-size: 13px; line-height: 1.7; padding: 15px 20px; }
.workspace-empty span + span { color: #b8adc9; font-size: 12px; }
.creator-art { position: absolute; width: 120%; max-width: none; height: auto; left: -20%; bottom: 4px; pointer-events: none; }

/* FAQ, invitation and footer */
.faq { padding-top: 52px; padding-bottom: 40px; }
.faq h2 { font-size: 42px; margin-bottom: 26px; }
.faq details { border-top: 1px solid #615074; }
.faq details:last-child { border-bottom: 1px solid #615074; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; list-style: none; cursor: pointer; min-height: 82px; padding: 23px 0; font-size: 22px; font-weight: 580; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 17px; height: 17px; transition: transform .18s; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details[open] summary { min-height: 65px; padding-bottom: 12px; }
.faq details p { max-width: 1050px; padding: 0 45px 28px 0; font-size: 21px; color: var(--muted); }
.faq details a { color: var(--link); text-decoration: underline; text-underline-offset: 4px; }
.closing { display: flex; align-items: center; justify-content: space-between; gap: 30px; background: #1b1327; border: 1px solid var(--border); border-radius: 14px; padding: 35px 40px; margin-top: 14px; }
.closing h2 { font-size: 39px; letter-spacing: -.035em; }
.closing-actions { display: flex; align-items: center; gap: 28px; font-size: 14px; color: var(--link); }
.closing-actions > a { white-space: nowrap; }
.closing .button { font-size: 16px; padding-inline: 20px; }
.site-footer { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; padding: 32px 0 45px; border-top: 1px solid var(--line); margin-top: 46px; }
.site-footer .brand { font-size: 15px; gap: 7px; }
.site-footer .brand img { width: 30px; height: 30px; }
.site-footer nav { display: flex; align-items: center; gap: 28px; color: var(--muted); font-size: 14px; }

@media (min-width: 1600px) {
  .hero-layout { min-height: 685px; }
  h1 { font-size: 96px; }
}
@media (max-width: 1150px) {
  .wrap { width: calc(100% - 72px); }
  .site-header { gap: 24px; height: 76px; }
  .site-nav { gap: 20px; font-size: 14px; }
  .nav-links { gap: 20px; }
  .header-app { font-size: 16px; }
  .brand { font-size: 21px; }
  .brand img { width: 40px; height: 40px; }
  .hero-layout { min-height: 550px; }
  .hero-copy { padding-block: 58px; }
  .hero-description { font-size: 20px; max-width: 440px; }
  .hero-art { right: -20px; max-width: 56%; }
  .button { font-size: 15px; min-height: 53px; padding-inline: 21px; gap: 12px; }
  .actions { gap: 15px; }
  .gold-note { font-size: 13px; gap: 10px; max-width: 400px; }
  .quest-grid { gap: 20px; }
  .quest-copy { padding: 19px 18px; }
  .quest-copy h3 { font-size: 20px; }
  .quest-description { font-size: 15px; margin-top: 14px; -webkit-line-clamp: 2; }
  .quest-link { font-size: 14px; padding-top: 15px; }
  .section-description { font-size: 18px; }
  .creator-copy { padding-right: 26px; }
  .creator-reward { font-size: 15px; }
  .workspace-preview { padding: 22px 20px 28px; }
  .workspace-heading { font-size: 17px; }
  .creator-visual { padding-bottom: 120px; }
  .closing { padding: 28px; }
  .closing h2 { font-size: 29px; }
  .closing-actions { gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
}
@media (max-width: 800px) and (min-width: 701px) {
  .hero-layout { min-height: 500px; }
  h1 { font-size: 44px; }
  .hero .actions { gap: 10px; }
  .hero .button { padding-inline: 17px; font-size: 13px; }
  .hero-description { font-size: 18px; max-width: 350px; }
  .gold-note { max-width: 350px; }
  .quest-card { grid-template-columns: 124px minmax(0, 1fr); }
  .quest-copy { padding: 14px; }
  .quest-copy h3 { font-size: 18px; }
  .quest-description { font-size: 14px; }
}
@media (max-width: 900px) {
  .site-header { display: flex; height: auto; min-height: 72px; align-items: center; flex-wrap: wrap; gap: 15px; padding-block: 15px; }
  .header-app { font-size: 14px; gap: 8px; margin-left: auto; }
  .header-app .icon { width: 15px; height: 15px; }
  .site-nav { flex: 0 0 100%; order: 4; flex-direction: column; gap: 12px; font-size: 14px; padding-top: 14px; padding-bottom: 7px; }
  .nav-links { width: 100%; justify-content: space-around; gap: 16px; }
  .social-link { width: 44px; height: 44px; }
  .js .menu-toggle { display: flex; align-items: center; justify-content: center; padding: 12px; width: 44px; height: 44px; margin-left: auto; background: transparent; border: 1px solid var(--border); border-radius: 7px; }
  .js .header-app { margin-left: 0; }
  .js .site-nav:not(.is-open) { display: none; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 40px); }
  .community-banner-inner { flex-direction: column; gap: 10px; padding-block: 22px; }
  .community-banner h2 { font-size: 22px; }
  .brand { font-size: 19px; }
  .brand img { width: 36px; height: 36px; }
  .hero-layout { display: flex; flex-direction: column; min-height: 0; }
  .hero-copy { padding: 44px 0 0; width: 100%; }
  .eyebrow { font-size: 10px; letter-spacing: .2em; }
  h1 { font-size: clamp(39px, 9.6vw, 64px); margin-top: 19px; margin-bottom: 23px; }
  .hero-description { font-size: 18px; max-width: 430px; }
  .hero .actions { margin-top: 26px; gap: 12px; }
  .hero .button { min-height: 50px; font-size: 14px; padding-inline: 18px; }
  .gold-note { margin-top: 26px; font-size: 12px; line-height: 1.55; max-width: 390px; gap: 12px; }
  .gold-note img { width: 32px; height: 32px; }
  .desktop-break { display: none; }
  .hero-art { position: relative; width: 100%; max-width: 440px; align-self: center; margin-top: -2px; right: auto; }
  h2 { font-size: 32px; }
  .quests { padding: 40px 0; }
  .section-heading { gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
  .section-heading h2 { font-size: 30px; }
  .section-heading .text-link { font-size: 13px; gap: 10px; }
  .quest-grid { grid-template-columns: 1fr; gap: 16px; }
  .quest-card { grid-template-columns: min(34vw, 164px) minmax(0, 1fr); border-radius: 9px; }
  .quest-copy { padding: 17px 16px; }
  .quest-copy h3 { font-size: 18px; line-height: 1.2; }
  .quest-description { font-size: 14px; margin-top: 12px; line-height: 1.45; }
  .quest-link { font-size: 13px; padding-top: 14px; gap: 10px; }
  .moderation { padding: 42px 0 44px; }
  .moderation h2 { max-width: 450px; margin: 14px auto 0; }
  .moderation .section-description { margin: 16px auto 0; max-width: 365px; }
  .section-description { font-size: 17px; }
  .moderation-scene { margin: 26px -12px 29px; }
  .progress-labels { font-size: 11px; gap: 6px; line-height: 1.4; margin-top: 8px; }
  .progress-labels span:nth-child(2) { padding-top: 0; }
  .moderation .button { font-size: 14px; }
  .creators { padding: 44px 0 14px; }
  .creator-layout { grid-template-columns: 1fr; gap: 25px; }
  .creator-copy { padding: 0; }
  .creator-copy h2 { font-size: 42px; margin: 16px 0 21px; }
  .creator-copy .section-description { max-width: 370px; }
  .creator-reward { font-size: 15px; margin: 18px 0 23px; }
  .creator-reward img { width: 31px; height: 31px; }
  .creator-visual { padding: 12px 0 93px; }
  .workspace-preview { padding: 23px 19px 26px; box-shadow: inset 0 0 0 8px #21192a; }
  .workspace-heading { font-size: 16px; gap: 12px; }
  .draft-button { font-size: 12px; padding: 9px 11px; }
  .workspace-label { font-size: 13px; }
  .draft-row { font-size: 12px; }
  .workspace-empty { font-size: 12px; padding: 13px 17px; }
  .workspace-empty span + span { font-size: 11px; }
  .creator-art { width: 110%; left: -5%; bottom: 0; }
  .faq { padding-top: 37px; padding-bottom: 28px; }
  .faq h2 { font-size: 28px; margin-bottom: 22px; }
  .faq summary { font-size: 15px; min-height: 74px; gap: 15px; }
  .faq details p { font-size: 14px; padding-right: 15px; padding-bottom: 24px; }
  .closing { flex-direction: column; align-items: flex-start; gap: 23px; padding: 27px 24px; margin-top: 15px; }
  .closing h2 { font-size: 29px; }
  .closing-actions { justify-content: flex-start; gap: 20px; font-size: 12px; }
  .closing-actions .button { flex-basis: 100%; font-size: 15px; }
  .site-footer { margin-top: 37px; padding: 24px 0 32px; }
  .site-footer .brand { font-size: 12px; gap: 5px; }
  .site-footer .brand img { width: 25px; height: 25px; }
  .site-footer nav { gap: 22px; font-size: 12px; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 32px); }
  .brand { font-size: 16px; }
  .brand img { width: 30px; height: 30px; }
  .site-header { gap: 10px; }
  .header-app { font-size: 12px; }
  h1 { font-size: 36px; }
  .hero .button { font-size: 13px; padding-inline: 14px; }
  .quest-copy { padding: 13px; }
  .quest-copy h3 { font-size: 16px; }
  .quest-description { font-size: 13px; }
  .quest-link { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
