/* Homepage only. Shared navigation, routes and styles remain unchanged. */
.home-showcase {
    --bg: #111114; --bg-raise: #19191e; --bg-inset: #151519;
    --text: #f2f0f5; --text-dim: #aaa7b3; --text-faint: #9995a3;
    --accent: #b9a5fa; --line: #2b2932; --line-soft: #24232b;
    --container: 1180px; --nav-h: 64px;
    background: var(--bg); font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif; font-size: 15px;
}
.home-showcase .container { padding-inline: 32px; }
.home-showcase .nav { background: #111114ed; border-bottom: 1px solid var(--line-soft); backdrop-filter: blur(18px); }
.home-showcase .nav-inner { max-width: var(--container); padding-inline: 32px; min-height: var(--nav-h); }
.home-showcase .nav-brand { font-size: 19px; letter-spacing: -.6px; font-weight: 700; }
.home-showcase .nav-brand img { width: 25px; height: 25px; }
.home-showcase .nav-links { gap: 21px; }
.home-showcase .nav-links > a { font-size: 12px; color: #c8c4d1; }
.home-showcase .nav-cta { background: #232029; border: 1px solid #48404f; border-radius: 7px; padding: 8px 13px; color: var(--text) !important; }
.home-showcase .nav-cta:hover { background: #322a40; border-color: #8571ad; }
.home-showcase .language-select { background-color: var(--bg); font-size: 12px; }
.home-showcase .btn-primary { background: #b9a5fa; color: #20182f; border: 1px solid #c9b9fc; border-radius: 7px; box-shadow: inset 0 1px 0 #ffffff38, 0 4px 15px #0002; padding: 10px 19px; font-weight: 650; font-size: 13px; min-height: 44px; transition: background .2s ease, transform .2s ease, box-shadow .2s ease; }
.home-showcase .btn-primary:hover { background: #c9b9ff; border-color: #d8ccff; transform: translateY(-2px); box-shadow: inset 0 1px 0 #ffffff38, 0 7px 22px #0004; text-decoration: none; }
.home-showcase .btn-primary:active { transform: translateY(0); }
.home-showcase a:focus-visible, .home-showcase button:focus-visible, .home-showcase [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.home-showcase figure { margin: 0; min-width: 0; }
.home-showcase .eyebrow { margin: 0 0 14px; font-size: 12px; line-height: 1.5; letter-spacing: .015em; font-weight: 500; text-transform: none; color: var(--accent); }
.tour-hero { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); align-items: center; gap: 60px; padding-block: 76px 62px; }
.hero-intro { min-width: 0; }
.home-showcase h1 { font-size: clamp(38px, 4.1vw, 49px); line-height: 1.12; letter-spacing: -.045em; font-weight: 650; margin: 0; }
.muted-heading { color: #b4a3d7; }
.hero-heading { margin-bottom: 22px; }
.hero-description > p { color: #b3aebc; font-size: 14px; line-height: 1.8; max-width: 360px; margin-bottom: 25px; }
.tour-actions { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.home-showcase .text-link { color: #e3dfed; display: inline-flex; align-items: center; font-size: 12px; font-weight: 500; min-height: 44px; text-underline-offset: 6px; text-decoration-color: #8d7fac; transition: color .2s ease; }
.home-showcase .text-link:hover { color: var(--accent); }
.hero-screen { position: relative; }
.hero-screen::before { content: ''; position: absolute; inset: 12% 2% 18%; background: #a886e8; filter: blur(65px); opacity: .08; pointer-events: none; }
.screen-link { position: relative; display: block; overflow: hidden; border: 1px solid #49424f; border-radius: 10px; background: #1b1920; cursor: zoom-in; box-shadow: 0 14px 42px #0003; transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .25s ease, box-shadow .35s ease; }
.screen-link img { display: block; width: 100%; height: auto; }
.screen-link:hover { transform: translateY(-4px); border-color: #8b77ad; box-shadow: 0 18px 44px #0005; }
.screen-expand { position: absolute; bottom: 12px; right: 12px; background: #201c28ed; border: 1px solid #716580; border-radius: 5px; color: #f0edf5; padding: 6px 11px; font-size: 11px; font-weight: 500; opacity: 0; transform: translateY(3px); transition: opacity .2s ease, transform .2s ease; }
.screen-link:hover .screen-expand, .screen-link:focus-visible .screen-expand { opacity: 1; transform: none; }
.screen-caption { margin-top: 13px; color: #aaa3b6; font-size: 11px; text-align: center; }
.tour-section { padding-top: 62px; scroll-margin-top: 84px; }
.feature-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .85fr); grid-template-areas: 'image copy'; align-items: center; gap: 76px; padding-bottom: 62px; }
.feature-row .section-intro { grid-area: copy; display: block; margin: 0; }
.feature-row .ticket-screen { grid-area: image; }
.home-showcase h2 { font-size: clamp(26px, 2.6vw, 32px); font-weight: 550; line-height: 1.2; letter-spacing: -.03em; margin: 0; }
.section-description { color: var(--text-dim); font-size: 14px; line-height: 1.85; margin: 17px 0 0; max-width: 440px; }
.section-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 68px; align-items: center; margin-bottom: 28px; }
.gallery-section { padding-top: 48px; padding-bottom: 52px; position: relative; }
.gallery-section::before { content: ''; position: absolute; top: 0; left: 32px; right: 32px; height: 1px; background: linear-gradient(90deg, var(--line), #70607980, var(--line)); }
.gallery-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.gallery-intro .eyebrow { margin-bottom: 10px; }
.tour-tabs { display: flex; gap: 30px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; }
.tour-tab { background: none; border: 0; border-bottom: 2px solid transparent; color: #a9a2b5; padding: 14px 0; flex: 0 0 auto; font: inherit; font-size: 12px; cursor: pointer; min-height: 44px; transition: color .2s ease, border-color .2s ease; }
.tour-tab:hover { color: var(--text); }
.tour-tab[aria-selected='true'] { color: var(--text); border-bottom-color: var(--accent); }
.tour-tab:focus-visible { outline-offset: -4px !important; }
.tour-panel { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); gap: 76px; align-items: center; padding-top: 28px; }
.tour-panel[hidden] { display: none; }
.panel-caption { min-width: 0; }
.home-showcase .panel-caption h3 { font-size: clamp(25px, 2.4vw, 30px); line-height: 1.24; letter-spacing: -.025em; font-weight: 550; margin: 0 0 18px; max-width: 320px; }
.panel-caption p { font-size: 14px; line-height: 1.85; color: var(--text-dim); margin: 0; max-width: 340px; }
.gallery-footnote { margin: 16px 0 0; color: #a29aaa; font-size: 11px; text-align: right; }
.gallery-footnote a { color: #c3b6d5; margin-left: 5px; text-decoration: underline; text-underline-offset: 4px; }
.creator-section { display: grid; grid-template-columns: .85fr 1.3fr; gap: 76px; padding-block: 42px; position: relative; }
.creator-section::before, .creator-section::after { position: absolute; content: ''; left: 32px; right: 32px; height: 1px; background: var(--line); top: 0; }
.creator-section::after { top: auto; bottom: 0; }
.creator-byline { display: grid; grid-template-columns: 34px 1fr; align-content: center; align-items: start; column-gap: 15px; }
.creator-byline img { width: 34px; height: 34px; grid-row: 1 / 3; margin-top: 3px; }
.home-showcase .creator-byline .eyebrow { font-size: 11px; margin: 0 0 8px; }
.creator-signature { font-size: 15px; line-height: 1.4; letter-spacing: -.2px; margin: 0; }
.creator-signature span { display: block; font-size: 11px; letter-spacing: 0; color: var(--text-dim); margin-top: 4px; }
.home-showcase .creator-copy h2 { font-size: 24px; margin-bottom: 15px; }
.creator-copy > p { color: #b8b0c2; font-size: 15px; line-height: 1.85; max-width: 600px; }
.community-section { padding-top: 52px; }
.community-intro { margin-bottom: 24px; }
.community-intro .section-description { margin: 0; }
.community-intro h2 { max-width: 360px; font-size: 28px; }
.community-intro .text-link { margin-top: 5px; }
.tour-cta { padding-block: 70px 62px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.home-showcase .tour-cta h2 { font-size: clamp(28px, 3vw, 36px); }
.home-showcase .tour-cta .eyebrow { margin-bottom: 12px; }
.home-showcase .footer { background: #0e0e11; border-top: 1px solid var(--line); padding-top: 36px; }
.home-showcase .footer-grid { gap: 28px; padding-bottom: 30px; }
.home-showcase .footer-col h3 { font-size: 12px; letter-spacing: .01em; text-transform: none; color: #c9c2d2; font-weight: 500; }
.home-showcase .footer-main p, .home-showcase .footer-col a { font-size: 12px; }
.home-showcase .footer-bottom { color: #9990a6; font-size: 10px; padding-block: 18px; }
/* Visible by default: script failures never hide content. Motion runs once. */
.reveal-pending { opacity: 1; }
.is-revealed { animation: section-arrive .65s cubic-bezier(.16,.65,.22,1) both; }
.panel-enter { animation: panel-arrive .32s ease both; }
@keyframes section-arrive { from { opacity: .55; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes panel-arrive { from { opacity: .65; transform: translateY(7px); } to { opacity: 1; transform: none; } }

.community-showcase-stage { overflow-x: auto; scrollbar-width: thin; }
.community-showcase-empty { border-block: 1px solid var(--line); padding: 25px 0; color: var(--text-dim); font-size: 14px; }
.community-showcase-empty strong { font-weight: 400; }
.community-showcase-empty p { margin-top: 7px; font-size: 13px; }
.community-marquee-track { display: flex; gap: 28px; align-items: stretch; padding: 8px 0 16px; }
.community-server-card { position: relative; flex: 0 0 315px; padding: 24px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.community-server-card[aria-hidden="true"], .community-server-backdrop { display: none; }
.community-server-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.community-server-identity { display: grid; place-items: center; width: 46px; height: 46px; overflow: hidden; background: #242128; border-radius: 9px; }
.community-server-identity img { display: block; }
.community-server-fallback { color: var(--text); font-size: 15px; }
.community-protected-badge { display: flex; align-items: center; gap: 7px; line-height: 1.25; }
.community-protected-badge small { display: block; color: var(--text-dim); font-size: 9px; }
.community-protected-badge strong { font-size: 11px; font-weight: 500; }
.community-protected-mark { width: 20px; }
.home-showcase .community-server-name-row h3 { font-size: 19px; margin: 0; overflow-wrap: anywhere; }
.community-server-type { color: var(--text-dim); font-size: 11px; }
.community-server-content > p { color: var(--text-dim); margin-top: 12px; font-size: 13px; overflow-wrap: anywhere; }
.community-featured-label { font-size: 11px; color: var(--accent); }
.community-server-facts { display: flex; gap: 24px; font-size: 12px; padding-block: 18px; }
.community-server-facts strong { font-weight: 500; margin-right: 4px; }
.community-server-facts span { color: var(--text-dim); }
.community-server-actions { margin-top: auto; }
.home-showcase .community-join-button { background: none; border-color: var(--line); color: var(--text); min-height: 42px; padding: 9px 16px; font-size: 12px; }
.community-private-notice { color: var(--text-dim); font-size: 12px; }

.screenshot-dialog { width: min(97vw, 2100px); max-width: 97vw; height: min(92dvh, 1400px); max-height: 92dvh; padding: 0; background: #111112; color: var(--text); border: 1px solid #514b5b; border-radius: 8px; }
.screenshot-dialog::backdrop { background: #08070bee; }
.screenshot-dialog[open] { display: flex; flex-direction: column; }
.viewer-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 18px; border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.viewer-toolbar p { font-size: 13px; margin: 0; }
.viewer-actions { display: flex; align-items: center; gap: 8px; }
.viewer-toolbar button { color: var(--text); background: #25222b; border: 1px solid #4b4357; border-radius: 4px; min-height: 42px; padding: 8px 14px; cursor: pointer; font: inherit; font-size: 12px; }
.viewer-image-wrap { overflow: auto; flex: 1; min-height: 0; display: flex; align-items: center; }
.viewer-image { display: block; width: 100%; max-width: 100%; max-height: 100%; height: auto; object-fit: contain; margin: auto; }
.screenshot-dialog.is-zoomed .viewer-image-wrap { display: block; }
.screenshot-dialog.is-zoomed .viewer-image { width: auto; max-width: none; max-height: none; margin: 0; }
html.screenshot-open { overflow: hidden; }

@media (min-width: 901px) and (max-width: 1100px) {
    .home-showcase .nav-links { gap: 13px; }
    .tour-hero { gap: 34px; }
    .feature-row, .tour-panel, .creator-section { gap: 44px; }
    .home-showcase h1 { font-size: 41px; }
    .tour-actions { gap: 15px; }
}
@media (max-width: 900px) {
    .home-showcase .nav-links { background: #17151d; gap: 8px; }
    .home-showcase .nav-links > a { font-size: 15px; }
    .home-showcase .nav-links .nav-cta { text-align: center; margin-top: 12px; }
    .tour-hero { gap: 30px; padding-block: 54px 42px; }
    .home-showcase h1 { font-size: 35px; }
    .hero-heading { margin-bottom: 18px; }
    .hero-description > p { font-size: 13px; }
    .tour-actions { gap: 12px; }
    .feature-row, .tour-panel, .creator-section { gap: 32px; }
    .home-showcase h2 { font-size: 26px; }
    .section-description, .panel-caption p { font-size: 13px; }
    .home-showcase .panel-caption h3 { font-size: 25px; }
    .section-intro { gap: 32px; }
    .home-showcase .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}
@media (max-width: 760px) {
    .home-showcase .container, .home-showcase .nav-inner { padding-inline: 20px; }
    .tour-hero { grid-template-columns: 1fr; gap: 30px; padding-block: 44px 32px; }
    .home-showcase h1 { font-size: clamp(35px, 6.5vw, 46px); }
    .hero-description > p { max-width: 460px; font-size: 14px; margin-bottom: 20px; }
    .home-showcase .eyebrow { margin-bottom: 12px; }
    .hero-screen::before { display: none; }
    .screen-link { border-radius: 8px; }
    .screen-expand { bottom: 8px; right: 8px; opacity: 1; transform: none; padding: 5px 9px; font-size: 10px; }
    .screen-caption { margin-top: 10px; font-size: 10px; }
    .tour-section { padding-top: 38px; }
    .feature-row { grid-template-columns: 1fr; grid-template-areas: 'copy' 'image'; gap: 24px; padding-bottom: 42px; }
    .section-intro { grid-template-columns: 1fr; gap: 16px; margin-bottom: 22px; }
    .home-showcase h2 { font-size: 27px; max-width: 440px; }
    .section-description, .panel-caption p { font-size: 14px; max-width: 480px; }
    .gallery-section { padding-bottom: 38px; }
    .gallery-section::before, .creator-section::before, .creator-section::after { left: 20px; right: 20px; }
    .gallery-intro { gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
    .gallery-intro .text-link { min-height: 36px; }
    .tour-tabs { gap: 25px; }
    .tour-tab { font-size: 12px; }
    .tour-panel { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
    .home-showcase .panel-caption h3 { font-size: 24px; margin-bottom: 12px; max-width: 450px; }
    .panel-caption { min-height: 145px; }
    .gallery-footnote { text-align: left; font-size: 11px; line-height: 1.8; }
    .creator-section { grid-template-columns: 1fr; gap: 25px; padding-block: 32px; }
    .creator-copy > p { font-size: 14px; }
    .creator-signature span { display: inline; margin-left: 8px; }
    .community-section { padding-top: 38px; }
    .community-intro .section-description { max-width: 480px; }
    .community-server-card { flex-basis: 280px; }
    .tour-cta { padding-block: 46px 42px; gap: 20px; flex-direction: column; align-items: flex-start; }
    .home-showcase .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
    .home-showcase .footer-main { grid-column: 1 / -1; }
    .viewer-toolbar { padding: 8px; gap: 8px; }
    .viewer-toolbar p { font-size: 11px; }
    .viewer-toolbar button { padding-inline: 10px; font-size: 11px; }
}
@media (hover: none) {
    .screen-expand { opacity: 1; transform: none; }
    .screen-link:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .home-showcase *, .home-showcase *::before, .home-showcase *::after { animation: none !important; transition: none !important; }
    .home-showcase .screen-link:hover, .home-showcase .btn-primary:hover { transform: none; }
}
