:root {
    --ink: #142013;
    --paper: #f4f7ea;
    --lime: #78a800;
    --lime-deep: #5a8200;
    --gold: #f0c12a;
    --font-brand: "Fraunces", Georgia, "Cairo", serif;
    --font-body: "Montserrat", "Cairo", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
}

.gate-body {
    min-height: 100vh;
    color: var(--ink);
    font-family: var(--font-body);
    background:
        radial-gradient(1200px 700px at 10% -10%, rgba(120, 168, 0, 0.28), transparent 55%),
        radial-gradient(900px 600px at 100% 0%, rgba(240, 193, 42, 0.22), transparent 50%),
        linear-gradient(160deg, #f7f9ef 0%, #e8efd4 45%, #dfe8c8 100%);
    overflow: hidden;
    position: relative;
}

.gate-body.is-maintenance {
    background:
        radial-gradient(1000px 650px at 0% 0%, rgba(90, 130, 0, 0.22), transparent 55%),
        radial-gradient(800px 500px at 100% 20%, rgba(40, 55, 20, 0.18), transparent 50%),
        linear-gradient(165deg, #eef2e2 0%, #d5ddc0 50%, #c7d1ad 100%);
}

.gate-aurora,
.gate-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.gate-aurora {
    background:
        radial-gradient(circle at 20% 80%, rgba(120, 168, 0, 0.18), transparent 35%),
        radial-gradient(circle at 80% 30%, rgba(240, 193, 42, 0.16), transparent 30%);
    animation: drift 14s ease-in-out infinite alternate;
}

.gate-grid {
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(20, 32, 19, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 32, 19, 0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at center, black 35%, transparent 85%);
}

.gate-shell {
    width: min(980px, calc(100% - 2rem));
    margin: 0 auto;
    min-height: 100vh;
    display: grid;
    align-content: center;
    gap: 1.4rem;
    padding: 3rem 0;
    position: relative;
    z-index: 1;
}

.gate-brand {
    margin: 0;
    font-family: var(--font-brand);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--lime-deep);
    animation: rise 0.8s ease both;
}

.gate-panel {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(90, 130, 0, 0.16);
    backdrop-filter: blur(10px);
    padding: clamp(1.4rem, 3vw, 2.4rem);
    box-shadow: 0 24px 60px rgba(40, 60, 10, 0.12);
    animation: rise 0.9s ease 0.08s both;
}

.gate-kicker {
    display: inline-block;
    padding: 0.35rem 0.7rem;
    background: rgba(120, 168, 0, 0.16);
    color: var(--lime-deep);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.is-maintenance .gate-kicker {
    background: rgba(40, 55, 20, 0.12);
}

.gate-title {
    margin: 1rem 0 0.8rem;
    max-width: 14ch;
    font-family: var(--font-brand);
    font-size: clamp(2.4rem, 7vw, 4.6rem);
    line-height: 0.98;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.gate-copy {
    margin: 0;
    max-width: 42ch;
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(20, 32, 19, 0.78);
}

.gate-meta {
    margin-top: 1.6rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.gate-meta strong {
    display: block;
    font-size: 1rem;
}
.gate-meta a {
    color: inherit;
    text-decoration: none;
}
.gate-meta a:hover {
    color: var(--lime-deep);
}

.gate-meta span {
    color: rgba(20, 32, 19, 0.6);
    font-size: 0.88rem;
}

.gate-admin-link {
    display: inline-flex;
    margin-top: 1.5rem;
    padding: 0.85rem 1.15rem;
    background: var(--lime);
    color: #122;
    font-weight: 800;
    text-decoration: none;
}

.gate-admin-link:hover {
    background: var(--lime-deep);
    color: #fff;
}

.gate-orbit {
    position: absolute;
    inset-inline-end: 0;
    top: 18%;
    width: min(280px, 40vw);
    height: min(280px, 40vw);
    border-radius: 999px;
    border: 1px dashed rgba(90, 130, 0, 0.35);
    animation: spin 28s linear infinite;
}

.gate-orbit span {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: var(--gold);
    box-shadow: 0 0 0 8px rgba(240, 193, 42, 0.18);
}

.gate-orbit span:nth-child(1) { top: 8%; left: 46%; }
.gate-orbit span:nth-child(2) {
    right: 8%;
    top: 48%;
    background: var(--lime);
    box-shadow: 0 0 0 8px rgba(120, 168, 0, 0.18);
}
.gate-orbit span:nth-child(3) {
    bottom: 10%;
    left: 20%;
    width: 10px;
    height: 10px;
}

@keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(2%, -2%, 0) scale(1.05); }
}

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

@media (max-width: 720px) {
    .gate-meta { grid-template-columns: 1fr; }
    .gate-orbit { opacity: 0.35; top: auto; bottom: 8%; }
}
