/* Homepage art direction. Colors and fonts inherit the Sunscale Gold brand.
   Shared policy and news layouts remain in styles.css. */
.home-page { --shell: 88rem; --gutter: clamp(1.25rem, 4.4vw, 5rem); --band-y: clamp(4rem, 6.6vw, 7rem); }
.home-page .eyebrow { font-size: .75rem; letter-spacing: .17em; text-transform: uppercase; line-height: 1.6; font-weight: 700; margin-bottom: 1.2rem; }
.home-page h2 { font-size: clamp(2.4rem, 3.55vw, 4rem); line-height: 1.08; }
.home-page .text-link { display: inline-flex; align-items: center; gap: 1.1rem; font-size: .9rem; text-decoration: none; line-height: 1.5; }
.home-page .text-link:hover { text-decoration: underline; }
.home-page .btn { border-radius: 2px; gap: 1.8rem; }
.home-page .btn-large { font-size: .94rem; padding: 1.2rem 1.7rem; }
.home-header { position: absolute; inset: 0 0 auto; z-index: 30; border-bottom: 1px solid color-mix(in srgb, var(--brand-text) 17%, transparent); }
.home-header-row { min-height: 96px; display: flex; align-items: center; gap: 3.5rem; }
.home-header .wordmark { font-size: 2.6rem; }
.home-nav { display: flex; gap: 2.15rem; margin-left: auto; }
.home-nav a, .home-account a { font: 600 .85rem/1.4 var(--ui); color: var(--brand-text); text-decoration: none; white-space: nowrap; }
.home-nav a:hover, .home-account a:hover { color: var(--brand-accent-2); }
.home-account { border-left: 1px solid var(--brand-line); padding-left: 2rem; }
.home-account span { padding-left: .5rem; color: var(--brand-accent-2); }
.mobile-menu { display: none; font: 600 .9rem/1.5 var(--ui); }
.mobile-menu summary { display: flex; align-items: center; gap: .5rem; list-style: none; cursor: pointer; padding: .8rem 0 .8rem .6rem; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.menu-lines { width: 18px; height: 10px; border-block: 1px solid var(--brand-text); }
.mobile-menu nav { position: absolute; left: 0; right: 0; top: 100%; padding: 1rem var(--gutter) 1.5rem; background: var(--brand-surface); border-bottom: 1px solid var(--brand-line); box-shadow: var(--shadow); display: grid; }
.mobile-menu nav a { color: var(--brand-text); text-decoration: none; padding: .8rem 0; border-bottom: 1px solid var(--brand-line); }
.mobile-menu nav a:last-child { color: var(--brand-accent-2); }
.home-hero { position: relative; isolation: isolate; min-height: min(900px, max(740px, 94svh)); display: flex; flex-direction: column; justify-content: center; overflow: clip; }
.home-hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 57% 55%; z-index: -3; max-width: none; }
.home-hero-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, var(--veil-90), var(--veil-75) 24%, var(--veil-30) 49%, transparent 72%), linear-gradient(0deg, var(--brand-ground), transparent 28%), linear-gradient(180deg, var(--veil-85), transparent 24%); }
.home-hero-body { padding-top: 5rem; padding-bottom: 6rem; }
.home-hero-copy { max-width: 640px; }
.home-hero h1 { font-size: clamp(3.6rem, 5.4vw, 6.1rem); line-height: 1.02; letter-spacing: -.025em; margin-bottom: 1.65rem; }
.home-hero h1 em { font-style: normal; color: var(--brand-highlight); }
.hero-description { font-size: clamp(1.25rem, 1.55vw, 1.55rem); max-width: 39ch; line-height: 1.4; text-wrap: pretty; }
.home-page .hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.6rem; margin-top: 2.15rem; }
.availability { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; color: var(--brand-muted); font: 400 .7rem/1.6 var(--ui); }
.availability > span { width: 5px; height: 5px; border-radius: 50%; background: var(--brand-accent-2); }
.availability b { font-weight: 400; }
.hero-bottom { position: absolute; bottom: 2rem; inset-inline: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font: 400 .7rem/1.5 var(--ui); color: var(--brand-muted); }
.hero-bottom > span { letter-spacing: .04em; }
.hero-bottom a { text-decoration: none; color: var(--brand-text); }
.hero-bottom a span { color: var(--brand-accent-2); margin-right: .7rem; }
.home-section { padding-block: var(--band-y); }
.section-intro { display: grid; grid-template-columns: 1.15fr 1fr; gap: 5rem; align-items: center; }
.section-intro > p { color: var(--brand-muted); max-width: 47ch; font-size: 1.5rem; line-height: 1.4; }
.world-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 3.3rem; }
.world-pillars > a { display: flex; gap: 1rem; align-items: baseline; border-top: 1px solid var(--brand-line); padding-top: 1.4rem; text-decoration: none; color: var(--brand-text); }
.pillar-number { color: var(--brand-accent-2); font: 400 .7rem/1.3 var(--ui); }
.world-pillars h3 { font-size: 1.45rem; line-height: 1.2; }
.world-pillars p { color: var(--brand-muted); font-size: 1.15rem; line-height: 1.35; margin-top: .6rem; }
.pillar-arrow { color: var(--brand-accent-2); margin-left: auto; font-family: var(--ui); font-size: 1rem; }
.world-pillars a:hover { border-color: var(--brand-accent-2); }
.world-pillars a:hover h3 { color: var(--brand-accent-2); }
.home-story { padding-block: clamp(3rem, 5vw, 5.5rem); }
.story-combat { background: linear-gradient(180deg, var(--brand-surface), var(--brand-ground)); border-top: 1px solid var(--brand-line); }
.story-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: clamp(2rem, 4.5vw, 5rem); align-items: center; }
.story-reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); }
.story-reverse .story-image { order: 2; }
.story-image { min-width: 0; }
.story-image > a { position: relative; display: block; border: 1px solid var(--brand-line); box-shadow: 0 18px 50px var(--veil-30); }
.story-image > a::after { content: ''; pointer-events: none; position: absolute; inset: 5px; border: 1px solid color-mix(in srgb, var(--brand-text) 15%, transparent); }
.story-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.image-expand { position: absolute; bottom: 12px; right: 12px; background: var(--veil-85); padding: .4rem .7rem; font: 400 1.15rem/1.2 var(--ui); color: var(--brand-text); }
.story-image a:hover .image-expand { color: var(--brand-accent-2); }
.story-image figcaption { display: flex; justify-content: space-between; gap: 1rem; font: 400 .65rem/1.5 var(--ui); color: var(--brand-muted); margin-top: .9rem; letter-spacing: .06em; }
.story-image figcaption span:first-child { text-transform: uppercase; }
.story-copy h2 { margin-bottom: 1.5rem; }
.story-copy > p:not(.eyebrow) { font-size: 1.3rem; line-height: 1.45; color: var(--brand-muted); margin-top: .8rem; }
.story-copy > .text-link { margin-top: 1.6rem; }
.story-note { display: flex; gap: 1rem; padding-top: 1.3rem; border-top: 1px solid var(--brand-line); margin-top: 1.6rem; }
.story-note > span { color: var(--brand-accent); font-size: 1rem; }
.story-note p { font-size: 1.14rem; line-height: 1.4; color: var(--brand-muted); }
.story-note strong { color: var(--brand-text); font-weight: 600; }
.dragon-growth { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; margin: 1.6rem 0 0; }
.dragon-growth li { position: relative; border-top: 1px solid var(--brand-line); padding-top: .8rem; font: 600 .72rem/1.5 var(--ui); color: var(--brand-text); }
.dragon-growth li::before { content: ''; position: absolute; top: -3px; left: 0; width: 5px; height: 5px; transform: rotate(45deg); background: var(--brand-accent-2); }
.screenshot-section { background: var(--brand-surface); border-block: 1px solid var(--brand-line); }
.screenshot-section .band-head { align-items: end; }
.capture-note { font: 400 .74rem/1.7 var(--ui); color: var(--brand-muted); }
.gallery-feature { margin-top: 2.5rem; }
.gallery-feature > a { display: block; position: relative; border: 1px solid var(--brand-line); }
.gallery-feature img { width: 100%; aspect-ratio: 2.05; object-fit: cover; object-position: 50% 70%; }
.gallery-feature-label { position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; align-items: end; padding: 5rem 2rem 1.5rem; background: linear-gradient(transparent, var(--veil-90)); color: var(--brand-text); }
.gallery-feature-label > span:first-child { font: 700 2rem/1.1 var(--display); }
.gallery-feature-label > span:last-child { font: 400 .75rem/1.5 var(--ui); }
.gallery-feature-label b { margin-left: 1.4rem; font-weight: 400; color: var(--brand-accent-2); }
.screenshot-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; margin-top: 1.5rem; }
.screenshot-thumbs a { text-decoration: none; color: var(--brand-muted); }
.screenshot-thumbs img { border: 1px solid var(--brand-line); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.screenshot-thumbs a:hover img { border-color: var(--brand-accent-2); }
.screenshot-thumbs span { display: flex; align-items: center; justify-content: space-between; font: 400 .75rem/1.5 var(--ui); margin-top: .65rem; }
.screenshot-thumbs b { font-weight: 400; color: var(--brand-accent-2); }
.home-news #news-status { margin-top: 1.6rem; font-size: 1.2rem; }
.home-news .news-cards:empty { display: none; }
.home-news .news-card { background: transparent; border: none; border-top: 1px solid var(--brand-line); border-radius: 0; padding: 1.25rem 0 0; }
.home-news .news-card time { font-size: .72rem; }
.home-news .news-card h3 { font-size: 1.65rem; }
.home-news .news-card p { font-size: 1.2rem; }
.home-faq { background: var(--brand-surface); border-block: 1px solid var(--brand-line); }
.home-faq .faq-shell { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 5rem; }
.home-faq .faq-head { position: static; }
.home-faq .intro { font-size: 1.3rem; max-width: 28ch; }
.home-faq .faq summary { font-size: 1.2rem; padding-block: 1.25rem; }
.home-faq .faq p { font-size: 1.2rem; line-height: 1.45; }
.home-closing { text-align: center; padding-block: clamp(4.5rem, 7vw, 8rem); background: radial-gradient(ellipse at 50% 100%, var(--brand-surface), transparent 70%); }
.closing-ornament { color: var(--brand-accent); display: block; font-size: 1.5rem; margin-bottom: 1.6rem; }
.home-closing h2 { font-size: clamp(3rem, 5vw, 5rem); }
.home-closing p:not(.eyebrow, .closing-status) { color: var(--brand-muted); margin-top: 1.2rem; font-size: 1.4rem; }
.home-closing .btn { margin-top: 2rem; }
.home-closing .closing-status { font: 400 .72rem/1.5 var(--ui); color: var(--brand-muted); margin-top: 1.2rem; }
.home-page .site-footer { background: var(--brand-ground); }
.home-page .footer-links { gap: .8rem 1.3rem; }
.home-page .footer-links a, .home-page .footer-id p, .home-page .footer-studio p { font-size: .75rem; }
.home-page .footer-grid { gap: 2.5rem; }
.home-page .footer-studio .studio-plaque { width: 80px; }
#screenshot-dialog { width: min(96vw, 1600px); max-width: none; max-height: 96dvh; padding: 1.25rem; background: var(--brand-ground); color: var(--brand-text); border: 1px solid var(--brand-line); box-shadow: var(--shadow); }
#screenshot-dialog::backdrop { background: var(--veil-90); }
.home-page:has(#screenshot-dialog[open]) { overflow: hidden; }
.dialog-toolbar, .dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font: 400 .85rem/1.5 var(--ui); }
.dialog-toolbar { padding-bottom: 1rem; }
.dialog-toolbar > span { color: var(--brand-muted); }
#screenshot-dialog button { font: 600 .9rem/1.4 var(--ui); border: 1px solid var(--brand-line); background: var(--brand-surface); color: var(--brand-text); padding: .65rem 1rem; cursor: pointer; }
#screenshot-dialog button:hover { border-color: var(--brand-accent-2); }
.dialog-toolbar button span { margin-left: .75rem; }
.dialog-stage { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .8rem; }
.dialog-stage img { width: 100%; height: min(70dvh, 800px); object-fit: contain; }
.dialog-footer { padding-top: 1rem; flex-wrap: wrap; }
.dialog-footer a { white-space: nowrap; }
@media (min-width: 1700px) { .home-hero-copy { max-width: 680px; } }
@media (max-width: 1100px) {
 .home-header-row { gap: 2rem; }
 .home-nav { gap: 1.5rem; }
 .home-header .wordmark { font-size: 2.3rem; }
 .home-account { padding-left: 1.4rem; }
 .home-hero { min-height: 740px; }
 .home-hero-copy { max-width: 540px; }
 .section-intro { gap: 2.5rem; }
 .world-pillars { gap: 1.5rem; }
 .world-pillars h3 { font-size: 1.25rem; }
 .story-copy h2 { font-size: 2.5rem; }
 .story-grid { gap: 2rem; grid-template-columns: 1.4fr 1fr; }
 .story-reverse { grid-template-columns: 1fr 1.4fr; }
 .story-copy > p:not(.eyebrow) { font-size: 1.2rem; }
}
@media (max-width: 900px) {
 .home-header-row { min-height: 80px; gap: 1.5rem; }
 .home-nav { display: none; }
 .home-account { margin-left: auto; padding: 0; border: none; }
 .mobile-menu { display: block; }
 .home-hero { min-height: 0; padding-top: 80px; }
 .home-hero-art { position: relative; height: auto; aspect-ratio: 16 / 10; object-position: 59% 60%; }
 .home-hero-shade { background: linear-gradient(180deg, var(--brand-ground) 0, transparent 130px); }
 .home-hero-body { padding-top: 0; padding-bottom: 2rem; margin-top: -4.5rem; position: relative; }
 .home-hero-body::before { content: ''; position: absolute; z-index: -1; inset: -5rem calc(-1 * var(--gutter)) 0; background: linear-gradient(0deg, var(--brand-ground) 75%, transparent); }
 .home-hero-copy { max-width: 650px; }
 .home-hero h1 { font-size: clamp(3.2rem, 7.5vw, 5rem); }
 .hero-bottom { position: relative; bottom: auto; margin-top: 1.5rem; padding-block: 1.2rem; border-block: 1px solid var(--brand-line); }
 .home-hero .eyebrow { margin-bottom: .8rem; }
 .hero-description { max-width: 50ch; font-size: 1.4rem; }
 .section-intro { grid-template-columns: 1fr; gap: 1.5rem; }
 .section-intro > p { max-width: 60ch; }
 .story-grid, .story-reverse { grid-template-columns: 1fr; gap: 2rem; }
 .story-reverse .story-image { order: 0; }
 .story-copy { max-width: 620px; }
 .story-copy h2 { font-size: clamp(2.4rem, 4.5vw, 3.5rem); }
 .story-copy > p:not(.eyebrow) { font-size: 1.4rem; }
 .story-copy .eyebrow { margin-bottom: .8rem; }
 .home-story { padding-block: 3rem; }
 .home-faq .faq-shell { display: block; }
 .home-faq .faq { margin-top: 2rem; }
 .home-faq .intro { max-width: 45ch; }
 .home-page .footer-grid { grid-template-columns: 1fr 1fr; }
 .home-page .footer-studio { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
 .home-header-row { min-height: 72px; gap: 1rem; }
 .home-header .wordmark { font-size: 2rem; }
 .home-account a { font-size: .75rem; }
 .home-account span { display: none; }
 .mobile-menu summary { font-size: .75rem; }
 .home-hero { padding-top: 72px; }
 .home-hero-art { aspect-ratio: 1.12; object-position: 57% 57%; }
 .home-hero-body { margin-top: -2rem; }
 .home-hero-body::before { inset-block-start: -4rem; background: linear-gradient(0deg, var(--brand-ground) 86%, transparent); }
 .home-hero h1 { font-size: clamp(2.2rem, 11vw, 4rem); margin-bottom: 1.2rem; }
 .home-hero .eyebrow { font-size: .63rem; letter-spacing: .13em; }
 .hero-description { font-size: 1.2rem; }
 .desktop-break { display: none; }
 .home-page .hero-actions { align-items: flex-start; gap: 1.2rem; margin-top: 1.5rem; }
 .home-page .hero-actions .text-link { padding-block: .2rem; }
 .home-page .btn-large { padding: 1rem 1.3rem; }
 .availability { font-size: .64rem; gap: .4rem; }
 .hero-bottom > span { display: none; }
 .hero-bottom { margin-top: .4rem; }
 .world-pillars { grid-template-columns: 1fr; gap: 1.4rem; margin-top: 2rem; }
 .world-pillars > a { padding-top: 1.1rem; }
 .world-pillars h3 { font-size: 1.4rem; }
 .world-pillars p { font-size: 1.2rem; }
 .section-intro > p { font-size: 1.3rem; }
 .story-image figcaption { font-size: .6rem; }
 .story-copy > p:not(.eyebrow) { font-size: 1.3rem; }
 .gallery-feature { margin-top: 1.8rem; }
 .gallery-feature img { aspect-ratio: 16 / 9; }
 .gallery-feature-label { position: static; padding: .9rem 1rem; background: var(--brand-ground); gap: .8rem; align-items: center; }
 .gallery-feature-label > span:first-child { font-size: 1.2rem; }
 .gallery-feature-label > span:last-child { font-size: .62rem; }
 .gallery-feature-label b { margin-left: .3rem; }
 .screenshot-thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem .8rem; }
 .screenshot-thumbs span { font-size: .65rem; }
 .home-page .footer-grid { grid-template-columns: 1fr; }
 .home-page .footer-studio { grid-column: auto; }
 .home-page .footer-links { gap: 1rem 1.5rem; }
 #screenshot-dialog { padding: .7rem; }
 .dialog-stage { grid-template-columns: 1fr 1fr; }
 .dialog-stage img { grid-column: 1 / -1; grid-row: 1; height: auto; max-height: 65dvh; }
 .dialog-stage button { grid-row: 2; }
 .dialog-footer, .dialog-toolbar { font-size: .75rem; }
}
@media (max-width: 360px) {
 .home-header-row { gap: .7rem; }
 .home-header .wordmark { font-size: 1.7rem; }
}
@media (prefers-reduced-motion: reduce) { .home-page *, .home-page *::before, .home-page *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
