:root {
    color-scheme: dark;
    --ink: #fff8e8;
    --muted: #c6bda7;
    --paper: #0c0e0d;
    --earth: #17140f;
    --moss: #273f2c;
    --hedge: #35613b;
    --gold: #e5b94b;
    --amber: #f0a84a;
    --bee: #56b8ff;
    --meat: #d45842;
    --rose: #ef5f6f;
    --line: rgba(255, 248, 232, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.boot-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: #0c0e0d;
}

.boot-mark, .brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(86, 184, 255, 0.55);
    background: rgba(86, 184, 255, 0.12);
    color: var(--bee);
    font-weight: 900;
}

.boot-screen span { display: block; color: var(--muted); }

.top-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px clamp(18px, 4vw, 52px);
    border-bottom: 1px solid var(--line);
    background: rgba(12, 14, 13, 0.88);
    backdrop-filter: blur(12px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 900;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--muted);
    font-size: 0.95rem;
}

.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--ink); }

.hero-section {
    min-height: min(760px, 92vh);
    display: grid;
    align-items: end;
    padding: 130px clamp(18px, 5vw, 72px) 82px;
    background:
        linear-gradient(90deg, rgba(12, 14, 13, 0.92), rgba(12, 14, 13, 0.42) 58%, rgba(12, 14, 13, 0.22)),
        linear-gradient(0deg, var(--paper), rgba(12, 14, 13, 0) 28%),
        url("../assets/zomaze-food-bee-gameplay-concept.png") center / cover no-repeat;
}

.hero-copy { width: min(720px, 100%); }
.eyebrow {
    margin: 0 0 12px;
    color: var(--bee);
    font-size: 0.82rem;
    text-transform: uppercase;
    font-weight: 900;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
    max-width: 9ch;
    margin-bottom: 18px;
    font-size: clamp(4rem, 11vw, 8.5rem);
    line-height: 0.88;
    letter-spacing: 0;
}

.hero-line {
    max-width: 650px;
    color: #f3e7ca;
    font-size: clamp(1.08rem, 1.9vw, 1.35rem);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.primary-action, .secondary-action {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 900;
}
.primary-action { background: var(--gold); color: #1c1205; }
.secondary-action { border-color: var(--line); background: rgba(10, 12, 11, 0.72); }

.band {
    padding: clamp(48px, 7vw, 92px) clamp(18px, 5vw, 72px);
}
.band.warm { background: var(--earth); }
.section-head {
    width: min(1120px, 100%);
    margin: 0 auto 28px;
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: end;
}
.section-head h2 {
    max-width: 680px;
    margin: 0;
    font-size: clamp(2rem, 4.2vw, 3.4rem);
    line-height: 1;
}
.section-head p { max-width: 430px; margin: 0; color: var(--muted); }

.game-card {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
}
.game-stage {
    min-height: 460px;
    border: 1px solid var(--line);
    background: #050706;
}
canvas { width: 100%; height: 100%; min-height: 460px; display: block; }
.game-panel {
    border: 1px solid var(--line);
    padding: 18px;
    background: rgba(23, 20, 15, 0.86);
}
.score-row { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 16px; }
.score-row div { border: 1px solid var(--line); padding: 12px; background: rgba(255, 248, 232, 0.04); }
.score-row span { display: block; color: var(--muted); font-size: 0.82rem; }
.score-row strong { display: block; }
.control-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.control-row button {
    min-height: 42px;
    border: 1px solid var(--line);
    background: rgba(86, 184, 255, 0.09);
    color: var(--ink);
    font-weight: 900;
    cursor: pointer;
}
.control-row button:hover { border-color: var(--bee); }
.hint { margin: 14px 0 0; color: var(--muted); font-size: 0.92rem; }

.mechanic-grid, .art-grid, .protection-list {
    width: min(1120px, 100%);
    margin: 0 auto;
}
.mechanic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.mechanic-grid article, .protection-list, .gift-panel, .timeline-list li {
    border: 1px solid var(--line);
    padding: 20px;
    background: rgba(255, 248, 232, 0.04);
}
.mechanic-grid span { color: var(--bee); font-weight: 900; }
.mechanic-grid h3 { margin: 10px 0 8px; }
.mechanic-grid p, .protection-list p { color: var(--muted); margin-bottom: 0; }
.protection-list p + p { margin-top: 12px; }

.gift-band {
    border-block: 1px solid var(--line);
}
.gift-grid, .timeline-list {
    width: min(1120px, 100%);
    margin: 0 auto;
}
.gift-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 16px;
}
.gift-panel {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.gift-panel.quiet {
    background: rgba(86, 184, 255, 0.055);
}
.gift-kicker {
    color: var(--bee);
    font-size: 0.82rem;
    text-transform: uppercase;
    font-weight: 900;
}
.gift-panel h3 {
    margin: 10px 0 10px;
    font-size: clamp(1.7rem, 3vw, 2.7rem);
    line-height: 1;
}
.gift-panel p {
    color: var(--muted);
}
.gift-action {
    min-height: 52px;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    background: var(--gold);
    color: #1c1205;
    text-decoration: none;
    font-weight: 900;
}
.gift-amounts {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.gift-amounts a {
    min-width: 66px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    background: rgba(255, 248, 232, 0.07);
    color: var(--ink);
    text-decoration: none;
    font-weight: 900;
}
.timeline-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.timeline-list span {
    color: var(--rose);
    font-size: 0.82rem;
    text-transform: uppercase;
    font-weight: 900;
}
.timeline-list strong {
    display: block;
    margin: 10px 0 8px;
    font-size: 1.08rem;
}
.timeline-list p {
    margin: 0;
    color: var(--muted);
}

.art-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.art-grid figure { margin: 0; border: 1px solid var(--line); background: rgba(255, 248, 232, 0.04); }
.art-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; cursor: zoom-in; }
.art-grid figcaption { padding: 12px; color: var(--muted); font-size: 0.92rem; }


body.lightbox-open {
    overflow: hidden;
}
.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    gap: 14px;
    padding: clamp(18px, 4vw, 52px);
    background: rgba(5, 7, 6, 0.92);
    cursor: zoom-out;
}
.image-lightbox img {
    max-width: min(1180px, 96vw);
    max-height: 82vh;
    object-fit: contain;
    border: 1px solid rgba(255, 248, 232, 0.24);
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.55);
}
.image-lightbox p {
    width: min(760px, 96vw);
    margin: 0;
    color: var(--muted);
    text-align: center;
}
#blazor-error-ui {
    background: #3d1111;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }

@media (max-width: 880px) {
    .section-head, .game-card, .mechanic-grid, .art-grid, .gift-grid, .timeline-list { grid-template-columns: 1fr; display: grid; }
    .section-head { display: block; }
    .section-head h2 { margin-bottom: 12px; }
    .nav-links { display: none; }
}

@media (max-width: 560px) {
    .hero-section { min-height: 86vh; padding-top: 72px; }
    h1 { font-size: clamp(3.6rem, 20vw, 5rem); }
    .hero-actions a { width: 100%; }
    .control-row { grid-template-columns: repeat(2, 1fr); }
}

