:root {
    color-scheme: dark;
    --ink: #f0eadc;
    --muted: #a8afa7;
    --deep: #07100c;
    --forest: #0b1812;
    --panel: #101f18;
    --line: rgba(220, 206, 176, 0.16);
    --gold: #d5a754;
    --gold-bright: #f0c66f;
    --moss: #6e936d;
    --danger: #a96958;
    --display: Georgia, "Times New Roman", serif;
    --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    overflow-x: clip;
    background:
        radial-gradient(circle at 82% 3%, rgba(108, 132, 88, 0.13), transparent 27rem),
        linear-gradient(180deg, #07100c 0%, #0a1510 48%, #07100c 100%);
    color: var(--ink);
    font-family: var(--sans);
    line-height: 1.6;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link {
    position: fixed;
    z-index: 100;
    left: 1rem;
    top: -5rem;
    padding: .65rem 1rem;
    background: var(--gold);
    color: var(--deep);
}
.skip-link:focus { top: 1rem; }

.site-header {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1180px, calc(100% - 3rem));
    margin: 0 auto;
    padding: 1.35rem 0;
    border-bottom: 1px solid var(--line);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .13em;
    line-height: 1;
}
.brand img { filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .35)); }
.brand span { display: grid; gap: .18rem; }
.brand strong { font-family: var(--display); font-size: 1.08rem; letter-spacing: .09em; }
.brand small { color: var(--gold); font-size: .66rem; font-weight: 800; letter-spacing: .32em; }
nav { display: flex; align-items: center; gap: 2rem; }
nav a {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-decoration: none;
    text-transform: uppercase;
}
nav a:hover, nav a:focus-visible { color: var(--ink); }
.nav-account { padding: .55rem .9rem; border: 1px solid var(--line); }

.hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.07fr .93fr;
    gap: 3rem;
    align-items: center;
    width: min(1180px, calc(100% - 3rem));
    min-height: 700px;
    margin: 0 auto;
    padding: 5rem 0 7rem;
    overflow: hidden;
}
.hero-glow {
    position: absolute;
    width: 32rem;
    height: 32rem;
    left: -15rem;
    bottom: -17rem;
    border: 1px solid rgba(213, 167, 84, .2);
    border-radius: 50%;
    box-shadow: 0 0 100px rgba(213, 167, 84, .07);
}
.hero-copy { position: relative; z-index: 2; }
.hero > *, .section-intro > *, .manifesto > *, .account-section > *, .statistics-section > * { min-width: 0; }
.eyebrow {
    margin: 0 0 1rem;
    color: var(--gold);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .23em;
    text-transform: uppercase;
}
.hero .eyebrow { display: flex; align-items: center; gap: .8rem; }
.hero .eyebrow span { width: 2.5rem; height: 1px; background: var(--gold); }
h1, h2, h3, p { margin-top: 0; }
h1 {
    margin-bottom: 1.7rem;
    font-family: var(--display);
    font-size: clamp(3.5rem, 7.4vw, 6.8rem);
    font-weight: 500;
    letter-spacing: -.055em;
    line-height: .88;
}
h1 em { color: var(--gold); font-weight: 400; }
.hero-lede { max-width: 42rem; overflow-wrap: anywhere; color: #c5c8be; font-size: 1.08rem; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button {
    display: inline-flex;
    min-height: 3.25rem;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    padding: .8rem 1.25rem;
    border: 1px solid transparent;
    border-radius: 0;
    font: 800 .76rem/1 var(--sans);
    letter-spacing: .1em;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.button svg { width: 1.35rem; fill: currentColor; }
.button-primary { background: var(--gold); color: #10140e; }
.button-primary:hover { background: var(--gold-bright); }
.button-quiet { border-color: var(--line); background: rgba(255, 255, 255, .025); color: var(--ink); }
.button-quiet:hover { border-color: rgba(213, 167, 84, .55); background: rgba(213, 167, 84, .06); }
.button-full { width: 100%; }
.auth-note { margin: .9rem 0 0; overflow-wrap: anywhere; color: #828b84; font-size: .77rem; }

.hero-art {
    position: relative;
    aspect-ratio: .8;
    max-height: 580px;
    overflow: hidden;
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(213, 167, 84, .06), rgba(7, 16, 12, .1)),
        radial-gradient(circle at 62% 27%, #c28747 0, #a4603c 9%, #5b4135 23%, #1b2b22 51%, #0a1510 78%);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .38);
}
.hero-art::before {
    content: "";
    position: absolute;
    inset: 1.15rem;
    border: 1px solid rgba(240, 234, 220, .17);
}
.hero-art::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .18;
    background-image: repeating-linear-gradient(105deg, transparent 0 21px, rgba(255,255,255,.03) 22px 23px);
    mix-blend-mode: overlay;
}
.hero-art .sun { position: absolute; width: 10rem; height: 10rem; right: 15%; top: 15%; border-radius: 50%; background: #ddaa5f; box-shadow: 0 0 55px #c2844a; }
.ridge { position: absolute; left: -10%; width: 120%; border-radius: 50% 50% 0 0; transform: rotate(-6deg); }
.ridge-far { height: 42%; bottom: 18%; background: #1d2a20; clip-path: polygon(0 55%, 20% 20%, 40% 44%, 60% 10%, 78% 32%, 100% 5%, 100% 100%, 0 100%); }
.ridge-near { height: 37%; bottom: 0; background: #08110d; clip-path: polygon(0 32%, 18% 12%, 42% 38%, 67% 7%, 83% 29%, 100% 18%, 100% 100%, 0 100%); }
.dinosaur-silhouette { position: absolute; z-index: 2; left: 24%; bottom: 18%; width: 49%; height: 26%; }
.dinosaur-silhouette span { position: absolute; display: block; background: #040b08; }
.dinosaur-silhouette .body { left: 23%; bottom: 32%; width: 48%; height: 36%; border-radius: 56% 45% 44% 50%; transform: rotate(-5deg); }
.dinosaur-silhouette .tail { left: -5%; bottom: 43%; width: 38%; height: 12%; border-radius: 100% 0 0 100%; transform: rotate(13deg); }
.dinosaur-silhouette .neck { right: 15%; bottom: 54%; width: 14%; height: 35%; border-radius: 80% 30% 0 0; transform: rotate(28deg); }
.dinosaur-silhouette .head { right: 2%; top: 1%; width: 23%; height: 18%; border-radius: 70% 25% 35% 45%; transform: rotate(8deg); }
.dinosaur-silhouette .leg { bottom: 5%; width: 8%; height: 38%; transform-origin: top; }
.dinosaur-silhouette .leg-one { left: 38%; transform: rotate(7deg); }
.dinosaur-silhouette .leg-two { left: 62%; transform: rotate(-5deg); }
.hero-art > p { position: absolute; z-index: 3; left: 2.5rem; bottom: 1.5rem; margin: 0; color: #c8bfa8; font-size: .68rem; font-weight: 800; letter-spacing: .25em; text-transform: uppercase; }
.hero-art > p span { position: static; display: inline; color: var(--gold); background: none; }

.status-band, .population-section, .manifesto, .roadmap, .account-section, .statistics-section, .access-section, .moderation-section {
    width: min(1180px, calc(100% - 3rem));
    margin: 0 auto;
    padding: 7rem 0;
    border-top: 1px solid var(--line);
}
.section-intro { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; align-items: end; margin-bottom: 2.7rem; }
.section-intro .eyebrow { align-self: start; }
h2 { max-width: 760px; margin-bottom: 0; font-family: var(--display); font-size: clamp(2.6rem, 5vw, 4.6rem); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.status-grid { display: grid; grid-template-columns: 1.15fr repeat(3, 1fr); border: 1px solid var(--line); }
.status-card { min-height: 8rem; padding: 1.45rem; border-right: 1px solid var(--line); background: rgba(255, 255, 255, .018); }
.status-card:last-child { border-right: 0; }
.status-card small { display: block; margin-bottom: .75rem; color: #808c83; font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.status-card strong { font-family: var(--display); font-size: 1.65rem; font-weight: 500; }
.status-primary { display: flex; align-items: center; gap: 1rem; background: rgba(110, 147, 109, .08); }
.status-dot { width: .75rem; height: .75rem; border-radius: 50%; background: #88ba79; box-shadow: 0 0 0 .35rem rgba(136, 186, 121, .1), 0 0 1rem rgba(136, 186, 121, .35); }
.status-dot.is-offline { background: var(--danger); box-shadow: 0 0 0 .35rem rgba(169, 105, 88, .1); }
.status-total { color: #6e786f; font-size: 1rem; }

.population-heading-row {
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    gap: 4rem;
    align-items: end;
    margin-bottom: 2.5rem;
}
.population-heading-row > p { margin-bottom: .2rem; color: var(--muted); font-size: .9rem; }
.population-summary { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.population-summary article {
    min-height: 7.5rem;
    padding: 1.35rem;
    border-right: 1px solid var(--line);
    background: rgba(255, 255, 255, .018);
}
.population-summary article:last-child { border-right: 0; }
.population-summary small {
    display: block;
    margin-bottom: .7rem;
    color: #808c83;
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.population-summary strong { font-family: var(--display); font-size: 1.7rem; font-weight: 500; }
.population-chart-panel { margin-top: 1.25rem; border: 1px solid var(--line); background: rgba(8, 18, 13, .7); }
.chart-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; padding: 1.35rem 1.5rem; border-bottom: 1px solid var(--line); }
.chart-heading h3 { margin: 0; font-family: var(--display); font-size: 1.6rem; font-weight: 500; }
.chart-heading .phase { margin-bottom: .3rem; }
.chart-heading > p { margin: 0; color: #77827a; font-size: .7rem; }
.population-chart {
    display: grid;
    grid-template-columns: repeat(24, 1fr);
    gap: clamp(.2rem, .7vw, .55rem);
    align-items: end;
    min-height: 16rem;
    padding: 2rem 1.5rem .75rem;
}
.population-column { display: flex; height: 12rem; align-items: end; justify-content: center; }
.population-bar {
    display: block;
    width: min(100%, 1.35rem);
    min-height: 3px;
    background: linear-gradient(180deg, var(--gold-bright), var(--gold));
    box-shadow: 0 0 1.2rem rgba(213, 167, 84, .08);
}
.population-bar.no-signal { min-height: 2px; background: var(--danger); opacity: .7; }
.population-axis { display: flex; justify-content: space-between; padding: 0 1.5rem 1.2rem; color: #68736b; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.weekly-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; padding: 1.35rem 1.5rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.weekly-heading h3 { margin: 0; font-family: var(--display); font-size: 1.45rem; font-weight: 500; }
.weekly-heading .phase { margin-bottom: .3rem; }
.weekly-heading > p { margin: 0; color: #77827a; font-size: .7rem; }
.weekly-population-chart { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1rem; min-height: 11rem; padding: 1.4rem 1.5rem 1rem; }
.weekly-population-column { display: grid; grid-template-rows: 8rem auto; gap: .55rem; text-align: center; }
.weekly-bar-area { display: flex; align-items: end; justify-content: center; }
.weekly-population-bar { display: block; width: min(100%, 2.6rem); min-height: 3px; background: linear-gradient(180deg, var(--moss), #46684b); }
.weekly-population-bar.no-signal { min-height: 2px; background: var(--danger); opacity: .7; }
.weekly-population-column > span { color: #6f7a72; font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.manifesto { display: grid; grid-template-columns: .3fr 1fr 1.15fr; gap: 4rem; }
.manifesto-number { color: var(--gold); font-family: var(--display); font-size: 1.1rem; }
.manifesto-copy p:last-child { margin-top: 1.7rem; color: var(--muted); font-size: 1.02rem; }
.principles { border-top: 1px solid var(--line); }
.principles article { position: relative; padding: 1.6rem 0 1.6rem 3.3rem; border-bottom: 1px solid var(--line); }
.principles article > span { position: absolute; left: 0; top: 1.8rem; color: var(--gold); font: 700 .67rem var(--sans); letter-spacing: .1em; }
.principles h3 { margin-bottom: .4rem; font-family: var(--display); font-size: 1.45rem; font-weight: 500; }
.principles p { margin-bottom: 0; color: var(--muted); font-size: .88rem; }

.roadmap .section-intro { grid-template-columns: .6fr 1.4fr 1fr; }
.section-intro > p:last-child { margin-bottom: 0; color: var(--muted); font-size: .88rem; }
.roadmap-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.roadmap-grid article { min-height: 19rem; padding: 1.5rem; border-right: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.02), transparent); }
.roadmap-grid article:last-child { border-right: 0; }
.roadmap-icon { display: grid; width: 2.5rem; height: 2.5rem; place-items: center; margin-bottom: 3rem; border: 1px solid rgba(213, 167, 84, .45); border-radius: 50%; color: var(--gold); font: 700 .7rem var(--display); }
.phase { margin-bottom: .55rem; color: var(--gold); font-size: .62rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.roadmap-grid h3 { margin-bottom: .75rem; font-family: var(--display); font-size: 1.45rem; font-weight: 500; }
.roadmap-grid article > p:last-child { color: var(--muted); font-size: .86rem; }

.account-section { display: grid; grid-template-columns: 1fr .85fr; gap: 6rem; align-items: center; }
.account-copy > p:last-child { max-width: 36rem; margin-top: 1.7rem; color: var(--muted); }
.account-card { padding: 2rem; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(20, 40, 30, .92), rgba(10, 22, 16, .95)); box-shadow: 0 28px 70px rgba(0, 0, 0, .26); }
.account-card h3 { margin-bottom: .7rem; font-family: var(--display); font-size: 2rem; font-weight: 500; }
.account-card > p { color: var(--muted); font-size: .9rem; }
.account-mark { margin-bottom: 1.3rem; }
.account-loading-mark { width: 2rem; height: 2rem; margin-bottom: 1rem; border: 2px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: spin 1s linear infinite; }
.profile-topline { display: flex; align-items: start; justify-content: space-between; gap: 1rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.profile-topline small { color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.profile-topline h3 { margin: .15rem 0 0; }
.verified-badge { padding: .35rem .55rem; border: 1px solid rgba(110, 147, 109, .4); color: #a9c6a3; font-size: .6rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
dl { margin: 1.2rem 0 1.5rem; }
dl div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: .55rem 0; }
dt { color: #828b84; font-size: .68rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
dd { margin: 0; overflow-wrap: anywhere; color: #d4d4c8; font-size: .84rem; text-align: right; }
.account-message { padding: .7rem; border: 1px solid rgba(169, 105, 88, .5); color: #d7a798 !important; }
.account-message.is-success { border-color: rgba(110, 147, 109, .6); color: #b7d6af !important; }
.discord-note { margin: -.35rem 0 1rem; color: #748078 !important; font-size: .73rem !important; }
.account-actions { display: grid; gap: .65rem; }

.statistics-section { padding-bottom: 8rem; }
.statistics-heading-row {
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    gap: 4rem;
    align-items: end;
    margin-bottom: 3rem;
}
.statistics-heading-row > p { margin-bottom: .2rem; color: var(--muted); font-size: .9rem; }
.statistics-loading {
    display: flex;
    min-height: 10rem;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    border: 1px solid var(--line);
    color: var(--muted);
}
.statistics-loading .account-loading-mark { margin: 0; }
.statistics-loading p { margin: 0; }
.statistics-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
}
.statistics-summary article {
    min-height: 7.5rem;
    padding: 1.35rem;
    border-right: 1px solid var(--line);
    background: rgba(255, 255, 255, .018);
}
.statistics-summary article:last-child { border-right: 0; }
.statistics-summary small {
    display: block;
    margin-bottom: .7rem;
    color: #808c83;
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.statistics-summary strong { font-family: var(--display); font-size: 1.7rem; font-weight: 500; }
.statistics-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1.25rem; margin-top: 1.25rem; }
.dinosaur-panel, .species-panel, .growth-panel, .sessions-panel {
    border: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(20, 40, 30, .82), rgba(8, 18, 13, .94));
}
.dinosaur-state, .session-state {
    padding: .3rem .5rem;
    border: 1px solid var(--line);
    color: #879188;
    font-size: .57rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.dinosaur-state.is-active, .session-state.is-active { border-color: rgba(110, 147, 109, .55); color: #acd0a5; }
.dinosaur-identity { display: grid; padding: 1.5rem 1.5rem 1rem; }
.dinosaur-identity strong { font-family: var(--display); font-size: 2rem; font-weight: 500; }
.dinosaur-identity span { color: #7f8981; font-size: .75rem; }
.dinosaur-metrics { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dinosaur-metrics div { padding: 1rem; border-right: 1px solid var(--line); }
.dinosaur-metrics div:last-child { border-right: 0; }
.dinosaur-metrics small { display: block; color: #78837b; font-size: .58rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.dinosaur-metrics strong { font-family: var(--display); font-size: 1.25rem; font-weight: 500; }
.dinosaur-observed { margin: 0; padding: .85rem 1.5rem; color: #6f7a72; font-size: .67rem; }
.species-list { max-height: 22rem; overflow-y: auto; }
.species-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--line);
}
.species-row:last-child { border-bottom: 0; }
.species-row > div { display: grid; }
.species-row > div strong { font-family: var(--display); font-size: 1.08rem; font-weight: 500; }
.species-row span { color: #78837b; font-size: .67rem; }
.species-row > strong { color: var(--gold); font-size: .78rem; }
.growth-panel { margin-top: 1.25rem; }
.growth-heading { align-items: end; }
.growth-legend { display: flex; flex-wrap: wrap; justify-content: end; gap: .45rem .8rem; }
.growth-legend span { position: relative; padding-left: .85rem; color: #7f8981; font-size: .6rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.growth-legend span::before { content: ""; position: absolute; left: 0; top: .48em; width: .55rem; height: 2px; background: currentColor; }
.legend-growth { color: var(--gold) !important; }
.legend-health { color: #8fbd86 !important; }
.legend-stamina { color: #83a9c7 !important; }
.legend-hunger { color: #c88762 !important; }
.legend-thirst { color: #78b9bc !important; }
.growth-chart-wrap { height: 19rem; padding: 1rem 1.2rem .4rem; }
.growth-chart-wrap svg { width: 100%; height: 100%; overflow: visible; }
.growth-gridline { stroke: rgba(220, 206, 176, .1); stroke-width: 1; vector-effect: non-scaling-stroke; }
.growth-axis-label, .growth-empty { fill: #68736b; font: 20px var(--sans); }
.growth-line { fill: none; stroke: var(--gold); stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.growth-line.health-line { stroke: #8fbd86; }
.growth-line.stamina-line { stroke: #83a9c7; }
.growth-line.hunger-line { stroke: #c88762; }
.growth-line.thirst-line { stroke: #78b9bc; }
.growth-note { margin: 0; padding: .8rem 1.5rem; border-top: 1px solid var(--line); color: #6f7a72; font-size: .67rem; }
.sessions-panel { margin-top: 1.25rem; }
.session-list { max-height: 32rem; overflow-y: auto; }
.session-row {
    display: grid;
    grid-template-columns: 5.5rem 1fr auto;
    gap: 1.2rem;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--line);
}
.session-row:last-child { border-bottom: 0; }
.session-row > div { display: grid; }
.session-row > div strong { font-family: var(--display); font-size: 1.08rem; font-weight: 500; }
.session-row > div span { color: #78837b; font-size: .68rem; }
.session-row > strong { color: #bbc3ba; font-size: .78rem; }
.statistics-error { margin: 0; padding: 1.2rem; border: 1px solid rgba(169, 105, 88, .55); color: #d7a798; }

.access-section { padding-bottom: 8rem; }
.access-heading-row {
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    gap: 4rem;
    align-items: end;
    margin-bottom: 3rem;
}
.access-heading-row > p { margin-bottom: .2rem; color: var(--muted); font-size: .9rem; }
.access-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: 1.25rem; align-items: start; }
.role-form, .accounts-panel, .audit-panel {
    border: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(20, 40, 30, .82), rgba(8, 18, 13, .94));
}
.role-form { display: grid; gap: .72rem; padding: 1.7rem; }
.form-heading { margin-bottom: .6rem; }
.form-heading h3, .panel-heading h3 {
    margin: 0;
    font-family: var(--display);
    font-size: 1.6rem;
    font-weight: 500;
}
.role-form label {
    margin-top: .35rem;
    color: #9ca69d;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}
select, input, textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 0;
    outline: none;
    background: #09140f;
    color: var(--ink);
    font: .88rem/1.4 var(--sans);
}
select, input { min-height: 2.9rem; padding: .65rem .75rem; }
textarea { min-height: 6.2rem; padding: .75rem; resize: vertical; }
select:focus, input:focus, textarea:focus { border-color: rgba(213, 167, 84, .75); box-shadow: 0 0 0 2px rgba(213, 167, 84, .1); }
.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.form-pair > div { display: grid; gap: .72rem; }
.form-help { margin: 0 0 .4rem; color: #748078; font-size: .73rem; }
.form-message { margin: .2rem 0; padding: .75rem; border: 1px solid var(--line); color: var(--ink); font-size: .78rem; }
.form-message.is-error { border-color: rgba(169, 105, 88, .6); color: #e2aa9a; }
.form-message.is-success { border-color: rgba(110, 147, 109, .6); color: #b7d6af; }
.accounts-panel { min-height: 31rem; }
.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.5rem;
    border-bottom: 1px solid var(--line);
}
.panel-heading .phase { margin-bottom: .3rem; }
.account-search { display: flex; min-width: min(19rem, 50%); }
.account-search input { border-right: 0; }
.account-search button, .text-button {
    border: 1px solid var(--line);
    background: rgba(213, 167, 84, .08);
    color: var(--gold);
    font: 800 .62rem/1 var(--sans);
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
}
.account-search button { padding: 0 .8rem; }
.text-button { min-height: 2.5rem; padding: .65rem .8rem; }
.account-search button:hover, .text-button:hover { border-color: rgba(213, 167, 84, .55); }
.account-list { max-height: 31rem; overflow-y: auto; }
.access-account-row {
    display: grid;
    grid-template-columns: 1fr 1.15fr .8fr;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--line);
}
.access-account-row:last-child { border-bottom: 0; }
.access-identity { display: grid; min-width: 0; }
.access-identity strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--display); font-size: 1.08rem; font-weight: 500; }
.access-identity span, .access-account-meta { color: #77827a; font-size: .68rem; overflow-wrap: anywhere; }
.role-badges { display: flex; flex-wrap: wrap; gap: .35rem; }
.role-badge {
    padding: .25rem .45rem;
    border: 1px solid var(--line);
    color: #b8c0b8;
    font-size: .56rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.role-owner { border-color: rgba(213, 167, 84, .5); color: var(--gold-bright); }
.role-administrator { border-color: rgba(114, 147, 173, .5); color: #a7c4d9; }
.role-moderator { border-color: rgba(110, 147, 109, .5); color: #acd0a5; }
.role-none { color: #68736b; font-size: .72rem; font-style: italic; }
.empty-state { margin: 0; padding: 2rem 1.5rem; color: #7f8981; font-size: .82rem; }
.error-state { color: #d7a798; }
.audit-panel { margin-top: 1.25rem; }
.audit-list { max-height: 25rem; overflow-y: auto; }
.audit-row {
    display: grid;
    grid-template-columns: .6rem 1fr auto;
    gap: 1rem;
    align-items: start;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--line);
}
.audit-row:last-child { border-bottom: 0; }
.audit-marker { width: .55rem; height: .55rem; margin-top: .4rem; border-radius: 50%; background: var(--danger); }
.audit-marker.is-grant { background: var(--moss); }
.audit-row strong { display: block; font-size: .82rem; font-weight: 700; }
.audit-row p { margin: .25rem 0 0; color: #7f8981; font-size: .75rem; }
.audit-row time { color: #68736b; font-size: .67rem; white-space: nowrap; }
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.moderation-section { padding-bottom: 8rem; }
.moderation-heading-row {
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    gap: 4rem;
    align-items: end;
    margin-bottom: 2rem;
}
.moderation-heading-row > p { margin-bottom: .2rem; color: var(--muted); font-size: .9rem; }
.moderation-boundary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.2rem;
    align-items: center;
    margin-bottom: 1.25rem;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(213, 167, 84, .42);
    background: rgba(213, 167, 84, .06);
}
.moderation-boundary strong { color: var(--gold-bright); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.moderation-boundary p { margin: 0; color: #a5aca5; font-size: .78rem; }
.moderation-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: 1.25rem; align-items: start; }
.punishment-form, .punishment-panel {
    border: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(20, 40, 30, .82), rgba(8, 18, 13, .94));
}
.punishment-form { display: grid; gap: .72rem; padding: 1.7rem; }
.punishment-form label {
    margin-top: .35rem;
    color: #9ca69d;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.punishment-form label span { color: #69746c; font-size: .56rem; }
.punishment-panel { min-height: 24rem; }
.punishment-history-panel { min-height: 10rem; margin-top: 1.25rem; }
.punishment-list { max-height: 38rem; overflow-y: auto; }
.punishment-row { display: grid; gap: .65rem; padding: 1.15rem 1.5rem; border-bottom: 1px solid var(--line); }
.punishment-row:last-child { border-bottom: 0; }
.punishment-row-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.punishment-row-heading time { color: #68736b; font-size: .67rem; white-space: nowrap; }
.punishment-badges { display: flex; flex-wrap: wrap; gap: .35rem; }
.punishment-badge {
    padding: .25rem .45rem;
    border: 1px solid var(--line);
    color: #b8c0b8;
    font-size: .56rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.punishment-temporary_ban, .punishment-permanent_ban { border-color: rgba(169, 105, 88, .65); color: #e1a291; }
.punishment-kick { border-color: rgba(213, 167, 84, .5); color: var(--gold-bright); }
.punishment-warning { border-color: rgba(114, 147, 173, .5); color: #a7c4d9; }
.punishment-status.status-active { border-color: rgba(169, 105, 88, .65); color: #e1a291; }
.punishment-status.status-revoked { border-color: rgba(110, 147, 109, .5); color: #acd0a5; }
.punishment-status.status-pending { border-color: rgba(213, 167, 84, .5); color: var(--gold-bright); }
.punishment-status.status-failed { border-color: rgba(169, 105, 88, .65); color: #e1a291; }
.punishment-identity { display: grid; }
.punishment-identity strong { font-family: var(--display); font-size: 1.25rem; font-weight: 500; }
.punishment-identity span { color: #77827a; font-size: .68rem; }
.punishment-reason { margin: 0; color: #c4c7bd; font-size: .82rem; }
.punishment-details { display: flex; flex-wrap: wrap; gap: .4rem 1rem; color: #737e75; font-size: .67rem; }
.punishment-notes { margin: 0; padding: .65rem .75rem; border-left: 2px solid rgba(213, 167, 84, .35); background: rgba(255, 255, 255, .018); color: #929b93; font-size: .72rem; }
.punishment-notes.internal-notes { border-left-color: rgba(114, 147, 173, .45); }
.punishment-revoke { justify-self: start; margin-top: .25rem; }

footer {
    display: grid;
    grid-template-columns: .8fr 2fr .6fr;
    gap: 2rem;
    align-items: center;
    width: min(1180px, calc(100% - 3rem));
    margin: 0 auto;
    padding: 2.5rem 0 3.5rem;
    border-top: 1px solid var(--line);
    color: #6e786f;
    font-size: .7rem;
}
.brand-footer { color: var(--ink); }
.footer-build { text-align: right; }

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
    nav a:not(.nav-account) { display: none; }
    .hero { grid-template-columns: 1fr; padding-top: 4rem; }
    .hero-art { width: min(100%, 520px); justify-self: center; aspect-ratio: 1; }
    .section-intro, .roadmap .section-intro, .population-heading-row, .account-section, .statistics-heading-row, .statistics-layout, .access-heading-row, .access-layout, .moderation-heading-row, .moderation-layout { grid-template-columns: 1fr; gap: 1.5rem; }
    .status-grid, .roadmap-grid { grid-template-columns: repeat(2, 1fr); }
    .status-card:nth-child(2), .roadmap-grid article:nth-child(2) { border-right: 0; }
    .status-card:nth-child(-n+2), .roadmap-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .manifesto { grid-template-columns: .2fr 1fr; }
    .principles { grid-column: 2; }
    footer { grid-template-columns: 1fr 1fr; }
    footer > p:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 600px) {
    .site-header, .hero, .status-band, .population-section, .manifesto, .roadmap, .account-section, .statistics-section, .access-section, .moderation-section, footer { width: min(100% - 2rem, 1180px); }
    .site-header { padding-top: 1rem; }
    .brand strong { font-size: .9rem; }
    .brand small { font-size: .55rem; }
    nav { gap: 0; }
    .nav-account { padding: .5rem .7rem; }
    .hero { min-height: auto; gap: 2rem; padding: 3rem 0 5rem; }
    h1 { font-size: clamp(3.3rem, 17vw, 5rem); }
    .hero-actions { display: grid; }
    .hero-art { max-height: 420px; }
    .status-band, .population-section, .manifesto, .roadmap, .account-section, .statistics-section, .access-section, .moderation-section { padding: 5rem 0; }
    .status-grid, .roadmap-grid { grid-template-columns: 1fr; }
    .population-summary { grid-template-columns: repeat(2, 1fr); }
    .population-summary article:nth-child(2) { border-right: 0; }
    .population-summary article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .chart-heading { align-items: start; flex-direction: column; gap: .5rem; }
    .weekly-heading { align-items: start; flex-direction: column; gap: .5rem; }
    .population-chart { gap: .15rem; min-height: 12rem; padding-inline: .75rem; }
    .population-column { height: 9rem; }
    .status-card, .status-card:nth-child(2), .roadmap-grid article, .roadmap-grid article:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
    .status-card:last-child, .roadmap-grid article:last-child { border-bottom: 0; }
    .manifesto { grid-template-columns: 1fr; gap: 1rem; }
    .manifesto-number { display: none; }
    .principles { grid-column: auto; margin-top: 2rem; }
    .roadmap-grid article { min-height: 15rem; }
    .roadmap-icon { margin-bottom: 2rem; }
    dl div { grid-template-columns: 1fr; gap: .15rem; }
    dd { text-align: left; }
    .profile-topline { display: grid; }
    .statistics-summary { grid-template-columns: repeat(2, 1fr); }
    .statistics-summary article:nth-child(2) { border-right: 0; }
    .statistics-summary article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .dinosaur-metrics { grid-template-columns: repeat(2, 1fr); }
    .dinosaur-metrics div:nth-child(2) { border-right: 0; }
    .dinosaur-metrics div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .growth-heading { align-items: stretch; }
    .growth-legend { justify-content: start; }
    .growth-chart-wrap { height: 15rem; padding-inline: .5rem; }
    .session-row { grid-template-columns: 1fr auto; gap: .45rem 1rem; }
    .session-row .session-state { grid-column: 1 / -1; justify-self: start; }
    .form-pair { grid-template-columns: 1fr; }
    .panel-heading { align-items: stretch; flex-direction: column; }
    .account-search { min-width: 100%; }
    .access-account-row { grid-template-columns: 1fr; gap: .5rem; }
    .audit-row { grid-template-columns: .6rem 1fr; }
    .audit-row time { grid-column: 2; }
    .moderation-boundary { grid-template-columns: 1fr; gap: .35rem; }
    .punishment-row-heading { align-items: start; flex-direction: column; }
    footer { grid-template-columns: 1fr; }
    footer > p:nth-child(2) { grid-column: auto; grid-row: auto; }
    .footer-build { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
