:root {
    --paper: #f6f4eb;
    --ink: #183d36;
    --muted: #5b6c63;
    --line: #d6dcd1;
    --orange: #c34d2c;
    --leaf: #dce8d0;
    --white: #fffef8;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
a { color: inherit; }
button, input, select { font: inherit; }
a, button, select, input { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid var(--orange); outline-offset: 5px; }
[hidden] { display: none !important; }
.shell { width: min(1200px, calc(100% - 96px)); margin: 0 auto; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 10; padding: .7rem 1rem; background: var(--white); }
.skip-link:focus { top: 1rem; }
.site-header { min-height: 106px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-size: 1.1rem; font-weight: 750; letter-spacing: -.04em; white-space: nowrap; }
.brand-mark { width: 37px; height: 43px; flex-shrink: 0; }
.site-nav { display: flex; align-items: center; gap: 2rem; font-size: .87rem; font-weight: 600; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { color: var(--orange); }
.nav-download { border: 1px solid var(--ink); border-radius: 30px; padding: .65rem 1rem; }
.language-picker { display: flex; align-items: center; gap: .4rem; font-size: .78rem; color: var(--muted); }
.language-picker select { background: transparent; border: 0; padding: .4rem .15rem; color: var(--ink); max-width: 112px; }
.eyebrow { margin: 0 0 1.2rem; font-size: .7rem; font-weight: 750; letter-spacing: .17em; text-transform: uppercase; }
.hero { display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; gap: 3.5rem; padding: 64px 0 72px; }
.hero h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.1rem, 5.2vw, 4.7rem); font-weight: 400; line-height: 1.06; letter-spacing: -.065em; margin: 0 0 1.5rem; max-width: 640px; }
.hero-body { max-width: 465px; font-size: 1rem; line-height: 1.8; color: var(--muted); margin: 0 0 1.8rem; }
.hero-note { color: var(--muted); font-size: .77rem; margin: 1rem 0 0; }
.store-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.store-badge { display: flex; align-items: center; justify-content: center; gap: .65rem; min-height: 64px; padding: .65rem 1rem; background: var(--ink); border: 1px solid var(--ink); border-radius: 10px; color: white; text-decoration: none; transition: background .15s, transform .15s; }
.store-badge:hover { background: #285448; transform: translateY(-2px); }
.store-badge svg { width: 25px; height: 29px; flex-shrink: 0; }
.store-copy { display: flex; flex-direction: column; line-height: 1.15; }
.store-copy small { font-size: .52rem; letter-spacing: .04em; }
.store-copy strong { font-size: 1.08rem; font-weight: 650; margin-top: .2rem; }
.store-copy .store-devices { font-size: .56rem; margin-top: .24rem; opacity: .8; }
.hero-secondary { display: inline-flex; gap: .7rem; align-items: center; font-size: .85rem; font-weight: 600; margin-top: 1.8rem; text-underline-offset: 5px; }
.hero-secondary span:last-child { font-size: 1.2rem; }
.mission-art { position: relative; margin: 0; padding: 18px; background: #e7ecd9; border-radius: 180px 180px 14px 14px; }
.mission-art svg { width: 100%; height: auto; display: block; }
.art-topline { position: absolute; top: 39px; left: 0; width: 100%; text-align: center; font-size: .6rem; letter-spacing: .17em; font-weight: 750; }
.mission-art figcaption { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 18px 8px 3px; font-size: .75rem; }
.art-compass { width: 28px; height: 28px; border: 1px solid #718d70; border-radius: 50%; display: grid; place-items: center; font-family: Georgia, serif; font-style: italic; }
.intro-strip { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 23px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .8rem; }
.intro-strip p { margin: 0; display: flex; align-items: center; gap: .7rem; }
.intro-strip .dot { width: 6px; height: 6px; background: var(--orange); border-radius: 50%; }
.section-heading { max-width: 630px; margin-bottom: 2.5rem; }
.section-heading h2, .cta h2, .newsletter h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.15; letter-spacing: -.045em; font-weight: 400; margin: 0; }
.how-section { padding: 84px 0; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step-number { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.6rem; color: var(--orange); font-family: Georgia, serif; font-style: italic; font-size: 1.6rem; }
.step-number::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.feature h3, .detail h3 { font-size: 1.03rem; letter-spacing: -.025em; margin: 0 0 .7rem; }
.feature p, .detail p { font-size: .87rem; color: var(--muted); margin: 0; line-height: 1.8; }
.possibilities { display: grid; grid-template-columns: .9fr 1fr; gap: 6rem; padding: 62px; background: var(--leaf); border-radius: 16px; align-items: start; }
.possibilities .section-heading { margin-bottom: 0; }
.detail { padding: 1.2rem 0; border-bottom: 1px solid #bccbb6; }
.detail:first-child { padding-top: 0; }
.detail:last-child { border: 0; padding-bottom: 0; }
.detail h3 { display: flex; gap: .7rem; }
.detail h3::before { content: "+"; color: #4f7656; }
.cta { display: grid; grid-template-columns: 1.4fr .6fr; align-items: center; gap: 3rem; padding: 56px 62px; background: var(--ink); border-radius: 16px; color: white; margin: 28px 0 0; }
.cta p { font-size: .9rem; line-height: 1.8; color: #c4d4c6; max-width: 590px; margin: 1.2rem 0 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .8rem; border: 0; border-radius: 8px; padding: 1rem 1.35rem; font-size: .84rem; font-weight: 650; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s; }
.button:hover { transform: translateY(-2px); }
.directory-button { background: var(--paper); color: var(--ink); white-space: nowrap; }
.directory-button:hover { background: #e5e8d7; }
.preview { margin: 64px 0; text-align: center; }
.preview h2 { font-family: Georgia, serif; font-size: 2.5rem; font-weight: 400; }
.preview video { max-width: 100%; max-height: 540px; margin: 1rem auto 0; border-radius: 14px; display: block; }
.newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; padding: 80px 0; }
.newsletter h2 { font-size: 2.4rem; }
.newsletter p { color: var(--muted); font-size: .87rem; max-width: 350px; }
.newsletter-row { display: flex; align-items: stretch; gap: .6rem; }
.newsletter input[type="email"] { width: 0; flex: 1; min-width: 0; padding: .9rem; background: var(--white); border: 1px solid #9aaa98; border-radius: 8px; font-size: .85rem; }
.newsletter button { color: white; background: var(--ink); }
.newsletter button:hover { background: #285448; }
.newsletter button:disabled { opacity: .65; cursor: wait; }
.newsletter-consent { display: flex; align-items: flex-start; gap: .6rem; margin-top: 1rem; font-size: .7rem; line-height: 1.65; color: var(--muted); }
.newsletter-consent input { margin-top: .3rem; accent-color: var(--ink); flex-shrink: 0; }
.newsletter-consent a { text-underline-offset: 3px; }
.newsletter-status { min-height: 1.6rem; font-weight: 600; }
.newsletter-status.success { color: #176b38; }
.newsletter-status.error { color: #a61b1b; }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; }
.footer-brand p { font-size: .7rem; color: var(--muted); margin: .6rem 0 0; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem 1.2rem; max-width: 650px; font-size: .7rem; padding-top: .5rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 1500px) { .hero { padding-top: 86px; padding-bottom: 86px; } }
@media (max-width: 1024px) {
    .shell { width: calc(100% - 64px); }
    .site-nav { gap: 1.2rem; }
    .site-nav .nav-how { display: none; }
    .hero { gap: 2rem; }
    .hero h1 { font-size: 3.5rem; }
    .store-actions { gap: .5rem; }
    .store-badge { padding: .6rem .75rem; }
    .possibilities, .cta { padding: 40px; gap: 3rem; }
    .newsletter { gap: 3rem; }
}
@media (max-width: 768px) {
    .shell { width: calc(100% - 40px); }
    .site-header { min-height: 86px; gap: .5rem; }
    .brand { font-size: 1rem; gap: .5rem; }
    .brand-mark { width: 30px; height: 35px; }
    .site-nav { display: none; }
    .language-picker > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .hero { grid-template-columns: 1fr; padding: 40px 0; gap: 34px; }
    .hero h1 { max-width: 550px; font-size: clamp(2.9rem, 10vw, 4.6rem); }
    .hero-body { max-width: 550px; font-size: .94rem; }
    .eyebrow { font-size: .64rem; margin-bottom: 1rem; }
    .store-actions { gap: .6rem; }
    .store-badge { flex: 1; min-width: 0; padding: .65rem .7rem; gap: .45rem; }
    .store-badge svg { width: 22px; }
    .store-copy strong { font-size: 1rem; }
    .hero-secondary { margin-top: 1.2rem; }
    .mission-art { max-width: 510px; width: 100%; margin: 0 auto; }
    .intro-strip { flex-wrap: wrap; justify-content: center; gap: .6rem 1.2rem; font-size: .7rem; }
    .how-section { padding: 56px 0; }
    .section-heading { margin-bottom: 2rem; }
    .features { grid-template-columns: 1fr; gap: 28px; }
    .step-number { margin-bottom: .7rem; font-size: 1.3rem; }
    .possibilities { grid-template-columns: 1fr; padding: 30px 24px; gap: 2rem; }
    .cta { grid-template-columns: 1fr; gap: 1.5rem; padding: 32px 24px; margin-top: 20px; }
    .directory-button { width: 100%; white-space: normal; }
    .newsletter { grid-template-columns: 1fr; gap: 1.4rem; padding: 52px 0; }
    .newsletter h2 { font-size: 2rem; }
    .newsletter p { max-width: none; margin-bottom: 0; }
    .newsletter-row { flex-direction: column; }
    .newsletter input[type="email"] { width: 100%; min-height: 48px; }
    .newsletter button { min-height: 48px; }
    .site-footer { flex-direction: column; gap: 1.5rem; }
    .footer-links { justify-content: flex-start; gap: .8rem 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}

/* Shared document, directory, statistics and application-link layouts. */
.content-page .page-main { padding-top: 56px; padding-bottom: 64px; min-height: 55vh; }
.content-page .document { max-width: 860px; }
.content-page h1 { font: 400 clamp(2.5rem, 5vw, 4rem)/1.12 Georgia, "Times New Roman", serif; letter-spacing: -.05em; margin: 0 0 1.4rem; overflow-wrap: anywhere; }
.content-page h2 { font: 400 1.8rem/1.2 Georgia, "Times New Roman", serif; letter-spacing: -.03em; margin: 2rem 0 1rem; }
.content-page h3 { font-size: 1.05rem; margin: 1.8rem 0 .75rem; }
.content-page p, .content-page li { line-height: 1.85; }
.content-page .lead, .content-page .intro > p { color: var(--muted); max-width: 760px; }
.content-page main a:not(.button):not(.mission-card__link) { text-underline-offset: 4px; }
.content-page .intro { padding-bottom: 36px; }
.content-page .intro h1 { margin-bottom: 1rem; }
.content-page .notice, .content-page .request { padding: 1.3rem 1.5rem; border-left: 3px solid #7e9870; background: var(--leaf); border-radius: 0 10px 10px 0; }
.content-page .last-updated, .content-page .note { color: var(--muted); font-size: .85rem; }
.content-page .back-link { display: inline-block; margin-top: 2rem; }
.content-page .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.content-page .button, .content-page button { background: var(--ink); color: white; border: 1px solid var(--ink); border-radius: 8px; padding: .8rem 1.1rem; font: 600 .85rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; cursor: pointer; }
.content-page .secondary { background: transparent; color: var(--ink); }
.content-page button:disabled { opacity: .6; cursor: wait; }
.content-page .status, .content-page .state-card { padding: 2rem; border: 1px solid var(--line); background: var(--white); border-radius: 14px; }
.directory-controls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; padding: 1.5rem; margin: 0 0 28px; background: #e8ecdf; border-radius: 14px; }
.filter { display: grid; gap: .45rem; }
.filter label { color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.filter select { min-width: 0; width: 100%; padding: .75rem; background: var(--white); border: 1px solid #a3b19d; border-radius: 7px; color: var(--ink); font: inherit; font-size: .85rem; }
.mission-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.mission-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--white); }
.mission-card__heading { padding: 1.4rem 1.4rem 1rem; }
.content-page .mission-card__heading h2 { font-size: 1.7rem; margin: 0; }
.mission-card__heading a { text-decoration: none; }
.mission-card__heading p { margin: .5rem 0 0; color: var(--muted); font-size: .8rem; }
.mission-card__thumbnail { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: contain; background: #e7ecd9; }
.mission-card__body { padding: 1.4rem; font-size: .85rem; }
.mission-card__body > p:first-child { margin-top: 0; }
.facts, .mission-document dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 1.5rem 0; }
.fact, .mission-document dl > div { padding: .8rem; background: #e8ecdf; border-radius: 8px; }
.fact dt, .mission-document dt { color: var(--muted); font-size: .7rem; }
.fact dd, .mission-document dd { margin: .2rem 0 0; font-weight: 650; overflow-wrap: anywhere; }
.play-flow { border-top: 1px solid var(--line); margin-top: 1.3rem; padding-top: 1rem; }
.content-page .play-flow h3 { margin: 0 0 .6rem; }
.play-flow ol { padding-left: 1.2rem; }
.mission-code { display: inline-block; border: 1px solid #bacab1; border-radius: 6px; background: var(--leaf); color: var(--ink); padding: .25rem .5rem; font: 700 1rem/1.5 ui-monospace, monospace; letter-spacing: .06em; }
.mission-document .lead { white-space: pre-line; }
.mission-document img { max-width: 100%; height: auto; border-radius: 12px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px; margin-bottom: 28px; }
.stat-card { padding: 1.6rem; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.stat-number { font: 400 2.7rem/1.2 Georgia, serif; margin-bottom: .6rem; }
.stat-label { color: var(--muted); font-size: .85rem; }
.players-section { padding: 2rem; border: 1px solid var(--line); border-radius: 14px; background: var(--white); margin: 0 0 28px; min-width: 0; }
.content-page .players-section h2 { margin-top: 0; }
.players-table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: .85rem; }
.players-table th, .players-table td { padding: .8rem; text-align: left; border-bottom: 1px solid var(--line); }
.players-table th { background: #e8ecdf; }
#players-content { overflow-x: auto; }
.player-avatar { width: 40px; height: 40px; border-radius: 50%; margin-right: .5rem; }
.player-info { display: flex; align-items: center; }
.pagination { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 1rem; }
.content-page .pagination button { padding: .5rem .8rem; }
.content-page .pagination .current { background: var(--orange); border-color: var(--orange); }
.loading { padding: 2rem 0; color: var(--muted); }
.error { background: #f3dfd6; color: #8a301b; padding: 1rem; border-radius: 8px; margin-bottom: 1rem; }
.admin-access { margin-top: 1.5rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: 10px; background: #e8ecdf; }
.admin-access small { display: block; margin-top: .7rem; color: var(--muted); }
.token-input { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.token-input input { min-width: 0; flex: 1 1 220px; background: var(--white); border: 1px solid #a3b19d; border-radius: 7px; padding: .8rem; }
.state { display: flex; align-items: center; gap: .7rem; font-size: 1.35rem; font-weight: 650; }
.state .dot { width: .8rem; height: .8rem; border-radius: 50%; background: #69756f; }
.operational .dot { background: #16834f; }
.unavailable .dot { background: #b3261e; }
.service-page .detail { border: 0; padding: 0; color: var(--muted); }
@media (max-width: 768px) {
    .content-page .page-main { padding-top: 34px; padding-bottom: 42px; }
    .content-page .site-header { flex-wrap: wrap; padding-top: 18px; gap: 1rem; }
    .content-page .site-nav { display: flex; order: 3; width: 100%; justify-content: space-between; padding: 10px 0 18px; border-top: 1px solid var(--line); }
    .content-page .site-nav .nav-how { display: none; }
    .content-page h1 { font-size: 2.6rem; }
    .content-page h2 { font-size: 1.6rem; }
    .directory-controls { grid-template-columns: 1fr 1fr; padding: 1rem; }
    .content-page .actions { flex-direction: column; }
    .content-page .actions .button { width: 100%; }
    .players-section { padding: 1.2rem; }
    .content-page .state-card { padding: 1.3rem; }
}
@media (max-width: 380px) { .directory-controls { grid-template-columns: 1fr; } }
