:root {
    --ink: #f3f9ff;
    --panel: rgba(8, 24, 43, 0.72);
    --accent: #36c5ff;
    --accent-hover: #6fd8ff;
    --danger: #ff9a8a;
}

* {
    box-sizing: border-box;
}

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

body {
    /* WaterBackground.gif is an animated tile — repeat it across the whole viewport,
       matching the look the game itself uses. */
    background: url('/WaterBackground.gif') repeat;
    background-size: 128px;
    image-rendering: pixelated;
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: var(--ink);
}

main {
    min-height: 100%;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.panel {
    background: var(--panel);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(54, 197, 255, 0.35);
    border-radius: 16px;
    padding: 3rem 3.5rem;
    text-align: center;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
    max-width: 90vw;
}

.title {
    margin: 0;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    letter-spacing: 0.08em;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.6);
}

.tagline {
    margin: 0.25rem 0 2rem;
    opacity: 0.85;
    font-size: 1.1rem;
}

.download-btn {
    display: inline-block;
    padding: 0.85rem 2.4rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: #04263b;
    background: var(--accent);
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease;
}

.download-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.meta {
    margin: 1rem 0 0;
    font-size: 0.85rem;
    opacity: 0.7;
}

.error {
    margin: 0;
    color: var(--danger);
    font-size: 1.05rem;
}

.text-danger {
    color: var(--danger);
}
