/* BrickRain project site — dependency-free, matching the in-game pixel-art
   identity: dark navy background with tetromino-palette accents. */

:root {
    --navy: #080a22;
    --panel: #10122e;
    --panel-edge: #242246;
    --text: #f5f5fa;
    --muted: #8a8ab0;
    --cyan: #00f0f0;
    --yellow: #f0f000;
    --purple: #a000f0;
    --green: #00f000;
    --red: #f00000;
    --blue: #3c78ff;
    --orange: #f0a000;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--navy);
    color: var(--text);
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
}

a { color: var(--cyan); }
a:hover { color: var(--yellow); }

/* ===== Hero ===== */
.hero {
    position: relative;
    text-align: center;
    overflow: hidden;
    border-bottom: 2px solid var(--panel-edge);
}

.hero__art {
    width: 100%;
    max-height: 70vh;
    object-fit: cover;
    display: block;
    opacity: 0.55;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem;
    background: radial-gradient(ellipse at center, rgba(8, 10, 34, 0.35), rgba(8, 10, 34, 0.85));
}

.hero__title {
    margin: 0;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--cyan);
    text-shadow: 0 0 18px rgba(0, 240, 240, 0.45);
}
.hero__title span { color: var(--text); }

.hero__tagline {
    margin: 0;
    max-width: 36ch;
    color: var(--text);
    font-size: clamp(1rem, 2.4vw, 1.25rem);
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    margin: 0.4rem 0 0;
}
.badges img { height: 20px; }

.hero__cta { margin: 0.6rem 0 0; }

.button {
    display: inline-block;
    padding: 0.7rem 1.6rem;
    border-radius: 6px;
    background: var(--cyan);
    color: var(--navy);
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.1s ease, background 0.15s ease;
}
.button:hover { background: var(--yellow); color: var(--navy); transform: translateY(-2px); }

/* ===== Sections ===== */
main {
    max-width: 880px;
    margin: 0 auto;
    padding: 1rem;
}

.section {
    background: var(--panel);
    border: 1px solid var(--panel-edge);
    border-radius: 10px;
    padding: 1.5rem 1.75rem;
    margin: 1.5rem 0;
}

.section h2 {
    margin-top: 0;
    font-size: 1.6rem;
    color: var(--cyan);
    border-bottom: 2px solid var(--panel-edge);
    padding-bottom: 0.4rem;
}
.section h3 { color: var(--yellow); margin-bottom: 0.4rem; }

/* ===== Gameplay placeholder ===== */
.placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    aspect-ratio: 16 / 9;
    border: 2px dashed var(--panel-edge);
    border-radius: 8px;
    color: var(--muted);
    background: rgba(0, 0, 0, 0.25);
}
.placeholder__icon {
    font-size: 2.5rem;
    color: var(--cyan);
}
.video { width: 100%; border-radius: 8px; display: block; }

/* ===== Tables, lists, code ===== */
.controls {
    width: 100%;
    border-collapse: collapse;
    margin: 0.5rem 0 1rem;
}
.controls th, .controls td {
    text-align: left;
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--panel-edge);
}
.controls th { color: var(--muted); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.06em; }
.controls tr:hover td { background: rgba(0, 240, 240, 0.06); }

.rules { padding-left: 1.2rem; }
.rules li { margin: 0.3rem 0; }

pre {
    background: var(--navy);
    border: 1px solid var(--panel-edge);
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
}
code { font-family: "SF Mono", Consolas, "Liberation Mono", monospace; font-size: 0.9rem; }
pre code { color: var(--green); }
p code { color: var(--yellow); background: rgba(0, 0, 0, 0.3); padding: 0.1rem 0.35rem; border-radius: 4px; }

/* ===== Footer ===== */
.footer {
    text-align: center;
    color: var(--muted);
    padding: 2rem 1rem 3rem;
    border-top: 1px solid var(--panel-edge);
}
