/* Luz Billiards Games - landing page */
:root {
    --gold: #d4af37;
    --cyan: #22d3ee;
    --bg: #0a0e1f;
    --bg-2: #111733;
    --card: #161c3a;
    --line: rgba(255, 255, 255, 0.08);
    --text: #f4f6fb;
    --muted: #aab1c5;
    --live: #10b981;
    --soon: #8b5cf6;
    --radius: 14px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
}

body {
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.modal-open {
    overflow: hidden;
}

img,
video {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 640px) {
    .container {
        padding: 0 24px;
    }
}

/* ---------- Top bar ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 14, 31, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 60px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    min-width: 0;
}

.brand img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    flex-shrink: 0;
}

.brand span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav {
    display: flex;
    gap: 18px;
    flex-shrink: 0;
}

.nav a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.95rem;
}

.nav a:hover,
.nav a:focus-visible {
    color: var(--gold);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 64px 0 72px;
    text-align: center;
    background:
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.14), transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(34, 211, 238, 0.14), transparent 45%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
    overflow: hidden;
}

.hero-content {
    max-width: 760px;
    animation: rise 0.7s ease-out both;
}

.hero-logo {
    width: 150px;
    height: 150px;
    margin: 0 auto 24px;
    border-radius: 24px;
    box-shadow: 0 0 60px rgba(34, 211, 238, 0.25);
}

.hero h1 {
    font-size: clamp(2rem, 7vw, 3.5rem);
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 14px;
    background: linear-gradient(135deg, var(--gold), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-tagline {
    font-size: clamp(1rem, 3.2vw, 1.25rem);
    color: var(--muted);
    margin: 0 auto 32px;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.btn {
    display: inline-block;
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--cyan));
    color: #0a0e1f;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.25);
}

.btn-ghost {
    border: 2px solid rgba(212, 175, 55, 0.6);
    color: var(--text);
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
}

.btn-ghost:hover {
    background: rgba(212, 175, 55, 0.12);
}

/* ---------- Sections ---------- */
.games-section,
.next-section {
    padding: 64px 0;
}

.games-section {
    background: var(--bg-2);
}

h2 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto 40px;
}

/* ---------- Game cards ---------- */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 24px;
}

.game-card {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.game-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 175, 55, 0.7);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.game-image {
    position: relative;
    aspect-ratio: 1024 / 500;
    background: #0d1228;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.badge-live {
    background: var(--live);
}

.badge-soon {
    background: var(--soon);
}

/* Typographic card for games without published art */
.game-image-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
    container-type: inline-size;
}

.type-horror {
    background:
        radial-gradient(ellipse at 50% 120%, rgba(185, 28, 28, 0.55), transparent 60%),
        radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.05), transparent 55%),
        linear-gradient(180deg, #07070b 0%, #150608 100%);
}

.type-title {
    font-size: 1.8rem;
    font-size: min(11cqi, 3rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1;
    color: #f3e9e9;
    text-shadow: 0 0 18px rgba(220, 38, 38, 0.7), 0 2px 0 #3b0a0a;
}

.type-sub {
    margin-top: 10px;
    font-size: 0.8rem;
    font-size: min(3.4cqi, 0.95rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #ef4444;
}

.game-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px;
}

.game-genre {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cyan);
    margin-bottom: 4px;
}

.game-info h3 {
    font-size: 1.3rem;
    line-height: 1.25;
    color: var(--gold);
    margin-bottom: 8px;
}

.game-info > p:not(.game-genre) {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 18px;
}

.game-links {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-store,
.btn-trailer,
.soon-pill {
    flex: 1 1 160px;
    padding: 11px 14px;
    border-radius: 10px;
    text-align: center;
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.3;
}

.btn-store {
    background: linear-gradient(135deg, var(--cyan), var(--gold));
    color: #0a0e1f;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.btn-trailer {
    font-family: inherit;
    background: transparent;
    color: var(--text);
    border: 2px solid rgba(212, 175, 55, 0.6);
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-store:hover,
.btn-store:focus-visible {
    transform: translateY(-2px);
}

.btn-trailer:hover,
.btn-trailer:focus-visible {
    background: rgba(212, 175, 55, 0.14);
}

.soon-pill {
    background: rgba(139, 92, 246, 0.14);
    border: 1px solid rgba(139, 92, 246, 0.6);
    color: #d6c8ff;
}

/* ---------- Próximos projetos ---------- */
.next-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 24px;
    max-width: 820px;
    margin: 0 auto;
}

.next-card {
    background: var(--card);
    border: 1px dashed rgba(139, 92, 246, 0.6);
    border-radius: var(--radius);
    padding: 28px 22px;
    text-align: center;
}

.next-icon {
    font-size: 2.6rem;
    margin-bottom: 10px;
}

.next-card h3 {
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.next-card p {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.badge-inline {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.2);
    color: #d6c8ff;
    font-size: 0.8rem;
    font-weight: 700;
}

/* ---------- Footer ---------- */
.footer {
    background: #070a17;
    border-top: 2px solid var(--gold);
    padding: 48px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 32px;
}

.footer-brand img {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    margin-bottom: 12px;
}

.footer-brand p {
    color: var(--muted);
    font-size: 0.95rem;
}

.footer-col h4 {
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 12px;
}

.footer-col a {
    display: block;
    color: var(--muted);
    text-decoration: none;
    padding: 3px 0;
    overflow-wrap: anywhere;
}

.footer-col a:hover,
.footer-col a:focus-visible {
    color: var(--text);
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.footer-bottom p {
    color: var(--muted);
    font-size: 0.85rem;
    text-align: center;
}

/* ---------- Video modal ---------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal[hidden] {
    display: none;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 960px;
    animation: fade 0.25s ease;
}

.modal-content video {
    width: 100%;
    max-height: calc(100vh - 100px);
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 10px;
}

.modal-close {
    position: absolute;
    top: -46px;
    right: 0;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.modal-close:hover,
.modal-close:focus-visible {
    background: var(--gold);
    color: #0a0e1f;
}

/* ---------- Focus & motion ---------- */
:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 2px;
}

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

@keyframes fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}

@media (max-width: 420px) {
    .brand span { font-size: 0.95rem; }
    .nav { gap: 14px; }
    .hero { padding: 44px 0 56px; }
    .hero-logo { width: 120px; height: 120px; }
    .btn { width: 100%; }
}
