/* The public website (loaded for visitors only, see includes/partials/header.php): the visitor menu and footer on every
   page, and the full-width sections of the home page (public_html/index.php, body.site-wide). Same fonts, colours and
   painted mood as the game, so stepping from the website into the game feels like one place. */

/* --- visitor menu -------------------------------------------------------------------------------------------------- */
body.is-visitor .topnav { position: sticky; top: 0; z-index: 900; background: rgba(20, 24, 31, 0.92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.site-nav { display: flex; align-items: center; gap: 1.1rem; flex: 1; }
.site-nav a { color: var(--text); text-decoration: none; padding: 0.35rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--accent); }
.site-nav a.active { color: var(--accent); border-bottom-color: var(--accent); }
.site-nav a.nav-play { padding: 0.45rem 1.1rem; border: 0; border-radius: 6px; background: var(--accent); color: #1a140a; font-weight: 700; }
.site-nav a.nav-play:hover { background: #ddb65c; color: #1a140a; }
@media (max-width: 1100px) {
    .site-nav { display: none; flex: 0 0 100%; flex-direction: column; align-items: stretch; gap: 0; }
    .site-nav.open { display: flex; }
    .site-nav a { border-bottom: 1px solid rgba(255, 255, 255, 0.06); padding: 0.7rem 0.5rem; }
    .site-nav a.active { border-bottom-color: var(--accent); }
    .site-nav a.nav-play { margin: 0.6rem 0.5rem 0.4rem; text-align: center; }
}

/* --- full-width pages ---------------------------------------------------------------------------------------------- */
body.site-wide main.site-main { max-width: none; padding: 0; background: none; border: 0; }
body.site-wide main.site-main > .announcement { max-width: 1000px; margin: 1rem auto; }
.site-wrap { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.site-narrow { max-width: 760px; }
.site-section { padding: 4.5rem 0; }
.site-section h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 500; color: var(--accent); margin: 0 0 1.2rem; }
.site-section p { line-height: 1.7; }
.site-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 9rem; padding: 0.8rem 1.6rem; font-size: 1.05rem; font-weight: 700; border-radius: 8px; text-decoration: none; }
.site-btn:not(.secondary) { background: var(--accent); color: #1a140a; box-shadow: 0 6px 18px rgba(201, 162, 74, 0.25); }
.site-btn:not(.secondary):hover { background: #ddb65c; }
.site-btn.secondary { background: rgba(20, 24, 31, 0.55); color: var(--text); border: 1px solid rgba(232, 236, 243, 0.45); }
.site-btn.secondary:hover { border-color: var(--accent); color: var(--accent); }
.site-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.6rem 0 0.8rem; }

/* --- hero ---------------------------------------------------------------------------------------------------------- */
.site-hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.site-hero-art { position: absolute; inset: 0; z-index: -2; }
.site-hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 65% 50%; display: block; }
.site-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12, 15, 21, 0.92) 0%, rgba(12, 15, 21, 0.7) 38%, rgba(12, 15, 21, 0.1) 72%), linear-gradient(0deg, var(--bg) 0%, rgba(20, 24, 31, 0) 28%); }
.site-hero-inner { width: 100%; padding-top: 4rem; padding-bottom: 5rem; }
.site-hero h1 { font-size: clamp(2.6rem, 7vw, 4.8rem); font-weight: 500; line-height: 1.05; margin: 0.4rem 0 0.8rem; color: #f3e6c4; text-shadow: 0 4px 24px rgba(0, 0, 0, 0.7); max-width: 12ch; }
.site-hero h1.site-logo { max-width: none; margin: 0.6rem 0 0.9rem -0.4rem; line-height: 0; }
.site-logo img { display: block; width: min(560px, 100%); height: auto; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.75)); }
.site-lead { font-size: clamp(1.1rem, 2.2vw, 1.45rem); max-width: 30ch; margin: 0; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8); }
.site-pill { display: inline-block; margin: 0; padding: 0.3rem 0.9rem; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent); background: rgba(20, 24, 31, 0.6); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }
.site-countdown { margin: 1.1rem 0 0; font-size: 1.05rem; color: #f3e6c4; }
.site-countdown .countdown { color: var(--accent); font-weight: 700; }
.site-note { margin: 0.5rem 0 0; max-width: 46ch; color: #cfd5df; }
.site-invite { margin: 0 0 0.6rem; max-width: 52ch; padding: 0.6rem 1rem; border: 1px solid var(--accent); border-radius: 10px; background: rgba(20, 24, 31, 0.78); color: #eef1f6; line-height: 1.45; }
.site-invite strong { color: var(--accent); }
.site-small { margin: 0; font-size: 0.85rem; color: #b4bccb; }
@media (max-width: 700px) {
    .site-hero { min-height: min(92vh, 720px); align-items: flex-start; }
    .site-hero-art img { object-position: 50% 100%; }
    .site-hero::after { background: linear-gradient(180deg, rgba(12, 15, 21, 0.9) 0%, rgba(12, 15, 21, 0.55) 55%, rgba(12, 15, 21, 0.15) 75%), linear-gradient(0deg, var(--bg) 0%, rgba(20, 24, 31, 0) 20%); }
    .site-hero-inner { padding-top: 2.5rem; }
    .site-btn { flex: 1 1 auto; }
}

/* --- intro and features -------------------------------------------------------------------------------------------- */
.site-intro { text-align: center; }
.site-intro .site-narrow { margin: 0 auto; }
.site-intro p { font-size: 1.08rem; color: #d3d8e1; }
.site-features { background: linear-gradient(180deg, var(--bg), #181d26 50%, var(--bg)); padding-top: 2rem; }
.site-feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: center; margin: 0 0 4.5rem; }
.site-feature.is-flipped .site-feature-art { order: 2; }
.site-feature-art { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); aspect-ratio: 16 / 10; background: var(--panel); }
.site-feature-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.site-feature:hover .site-feature-art img { transform: scale(1.03); }
.site-feature-text h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 500; color: #f3e6c4; margin: 0 0 0.6rem; }
.site-feature-text p { margin: 0; color: #c7cdd8; font-size: 1.02rem; }
.site-mark-art { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.7rem; font-size: 1.3rem; background: radial-gradient(circle at 50% 40%, #2a2f3c, #151922 70%); }
@media (max-width: 800px) {
    .site-feature { grid-template-columns: 1fr; gap: 1.2rem; margin-bottom: 3rem; }
    .site-feature.is-flipped .site-feature-art { order: 0; }
}

/* --- screenshots --------------------------------------------------------------------------------------------------- */
.site-screens h2 { text-align: center; }
.site-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 1.6rem; }
.site-shots a { display: block; }
.site-shots a:hover img { border-color: var(--accent); }
.site-shots figure { margin: 0; }
.site-shots img { width: 100%; display: block; border-radius: 10px; border: 1px solid var(--border); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4); }
.site-shots figcaption { margin-top: 0.5rem; text-align: center; color: var(--muted); font-size: 0.9rem; }

/* --- rounds -------------------------------------------------------------------------------------------------------- */
.site-rounds { background: #181d26; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.site-rounds h2 { text-align: center; }
.site-steps { list-style: none; margin: 2rem 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; counter-reset: none; }
.site-steps li { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 1.3rem 1.2rem; }
.site-step-num { display: inline-flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--accent); color: #1a140a; font-weight: 700; }
.site-steps h3 { margin: 0.8rem 0 0.4rem; font-size: 1.1rem; font-weight: 600; }
.site-steps p { margin: 0; color: #c7cdd8; font-size: 0.95rem; line-height: 1.6; }
.site-carry { text-align: center; color: #c7cdd8; }

/* --- news + Hall of Fame ------------------------------------------------------------------------------------------- */
.site-two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; }
@media (max-width: 800px) { .site-two { grid-template-columns: 1fr; gap: 2rem; } }
.site-news { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.9rem 1rem; margin-bottom: 0.7rem; background: var(--panel); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 8px; color: var(--text); text-decoration: none; }
.site-news:hover { border-color: var(--accent); }
.site-news-date { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.site-news .muted { font-size: 0.9rem; }
.site-podium { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.site-podium li { padding: 0.7rem 0.9rem; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; }
.site-podium li.place-1 { border-color: var(--accent); }

/* --- closing call to action ---------------------------------------------------------------------------------------- */
.site-final { text-align: center; background: radial-gradient(ellipse at 50% 0%, rgba(201, 162, 74, 0.14), transparent 60%); }
.site-final .site-narrow { margin: 0 auto; }
.site-final .site-cta { justify-content: center; }

/* --- visitor footer ------------------------------------------------------------------------------------------------ */
.site-foot { text-align: left; border-top: 1px solid var(--border); background: #11151b; padding: 2.5rem 1.5rem; }
.site-foot-cols { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 2rem; }
.site-foot-cols nav { display: flex; flex-direction: column; gap: 0.4rem; }
.site-foot-cols a { color: #c7cdd8; text-decoration: none; }
.site-foot-cols a:hover { color: var(--accent); }
.site-foot-brand { color: var(--accent); font-size: 1.15rem; margin: 0 0 0.4rem; }
.site-foot-head { margin: 0 0 0.3rem; color: var(--text); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; }
@media (max-width: 700px) { .site-foot-cols { grid-template-columns: 1fr 1fr; } .site-foot-cols > div:first-child { grid-column: 1 / -1; } }

/* --- the guide, news, Hall of Fame and community pages for visitors ------------------------------------------------ */
.site-page-head { margin: 0.5rem 0 1.5rem; }
.site-page-head h1 { margin-bottom: 0.3rem; }
.site-page-head p { margin: 0; color: var(--muted); max-width: 60ch; }
.site-join { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; justify-content: space-between; margin: 2rem 0 0; padding: 1.2rem 1.4rem; background: var(--panel); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 10px; }
.site-join p { margin: 0; }
.site-join .site-cta { margin: 0; }
