/* Cruzado Dominó — shared look of the site (same palette as the app: night navy, gold frames, emerald actions). */
:root {
    --navy-top: #15305A;
    --navy-bottom: #0A1830;
    --card-top: #142C50;
    --card-bottom: #0C1C36;
    --ink: #06101F;
    --gold: #EBC266;
    --gold-light: #F7DC94;
    --gold-dark: #A87A32;
    --emerald-top: #1ED68A;
    --emerald-bottom: #00A055;
    --ivory: #FFF5E4;
    --text: #E3EAF5;
    --sub: #A9BBD8;
    --line: rgba(235, 194, 102, 0.28);
    --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Nunito', 'Segoe UI', system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    background: var(--ink) url('background.jpg') center top / cover no-repeat fixed;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 16, 31, 0.62), rgba(6, 16, 31, 0.9));
    z-index: 0;
    pointer-events: none;
}

body > * { position: relative; z-index: 1; }

a { color: var(--gold); }
a:hover { color: var(--gold-light); }

img { max-width: 100%; height: auto; }

/* ── header ── */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 16px;
}

.topbar .brand img { height: 52px; width: auto; display: block; }

.topbar nav { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: flex-end; }

.topbar nav a {
    color: var(--sub);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
}

.topbar nav a:hover, .topbar nav a[aria-current="page"] { color: var(--gold-light); }

/* ── buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 18px;
    text-decoration: none;
    color: var(--ivory);
    border: 2px solid transparent;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.25);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
}

.btn-primary {
    background: linear-gradient(180deg, var(--emerald-top), var(--emerald-bottom));
    border-color: #47E09C;
}

.btn-secondary {
    background: linear-gradient(180deg, #1F3E6A, #142B4D);
    border-color: var(--gold);
    color: var(--gold-light);
}

.btn:hover { filter: brightness(1.08); color: var(--ivory); }
.btn-secondary:hover { color: var(--gold-light); }

/* ── panels ── */
.panel {
    background: linear-gradient(180deg, var(--navy-top), var(--navy-bottom));
    border: 3px solid var(--gold);
    border-radius: var(--radius);
    box-shadow: 0 0 0 1px var(--gold-dark), 0 18px 40px rgba(0, 0, 0, 0.45);
}

.card {
    background: linear-gradient(180deg, var(--card-top), var(--card-bottom));
    border: 2px solid var(--line);
    border-radius: 18px;
    padding: 22px;
}

.card h3 { margin: 10px 0 6px; color: var(--ivory); font-size: 20px; }
.card p { margin: 0; color: var(--sub); }

.icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, var(--emerald-top), var(--emerald-bottom));
    border: 3px solid var(--gold);
    color: var(--ivory);
}

.icon svg { width: 26px; height: 26px; }

/* ── landing ── */
.hero { text-align: center; padding: 40px 16px 56px; max-width: 900px; margin: 0 auto; }
.hero .logo { width: min(560px, 92%); filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.55)); }
.hero .tagline { font-size: clamp(22px, 4vw, 30px); font-weight: 800; color: var(--ivory); margin: 18px auto 8px; max-width: none; }
.hero p { color: var(--sub); font-size: 18px; margin: 0 auto 26px; max-width: 640px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero .note { font-size: 14px; color: var(--sub); margin-top: 14px; }

.section { max-width: 1100px; margin: 0 auto; padding: 40px 16px; }
.section > h2 { text-align: center; font-size: clamp(26px, 4vw, 34px); color: var(--ivory); margin: 0 0 8px; }
.section > .lead { text-align: center; color: var(--sub); max-width: 680px; margin: 0 auto 28px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.modes { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.modes .card h3 { color: var(--gold-light); font-size: 24px; margin-top: 0; }

.callout { padding: 28px; text-align: center; }
.callout h2 { margin: 0 0 8px; color: var(--ivory); }
.callout p { color: var(--sub); max-width: 720px; margin: 0 auto 18px; }

/* ── legal pages ── */
.doc { max-width: 860px; margin: 8px auto 40px; padding: 36px 34px; }
.doc h1 { font-size: clamp(26px, 4vw, 34px); color: var(--gold-light); margin: 0 0 4px; line-height: 1.25; }
.doc .updated { color: var(--sub); font-size: 14px; margin: 0 0 22px; }
.doc h2 { font-size: 21px; color: #5CFF9D; margin: 30px 0 8px; }
.doc h3 { font-size: 18px; color: var(--ivory); margin: 20px 0 6px; }
.doc p, .doc li { color: var(--text); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc strong { color: var(--ivory); }
.doc .summary {
    background: rgba(6, 16, 31, 0.55);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 18px;
    margin: 0 0 8px;
}
.doc .summary p { margin: 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--gold-light); }

/* ── footer ── */
footer { max-width: 1100px; margin: 0 auto; padding: 26px 16px 40px; color: var(--sub); font-size: 14px; text-align: center; }
footer .links { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; margin-bottom: 10px; }
footer .links a { color: var(--sub); text-decoration: none; font-weight: 700; }
footer .links a:hover { color: var(--gold-light); }

@media (max-width: 640px) {
    body { font-size: 16px; background-attachment: scroll; }
    .topbar { flex-direction: column; }
    .topbar nav { justify-content: center; }
    .doc { padding: 26px 18px; margin-left: 16px; margin-right: 16px; }
    .btn { width: 100%; }
    .doc table { display: block; overflow-x: auto; }
}
