:root {
    --ban-red: #e53935;
}

.landing {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* ═══ Main content — vertically centered ═══ */
.landing-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
    max-width: 680px;
    padding: 0 24px;
}

/* Brand */
.landing-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
}
.landing-brand img {
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(229,57,53,0.3);
}
.landing-brand-text {
    font-size: 28px; font-weight: 800;
    letter-spacing: -0.04em;
}
.landing-brand-text .ban { color: var(--ban-red); }

.landing-tagline {
    font-family: var(--font-display);
    font-size: 18px; font-style: italic;
    color: var(--text-dim);
    margin-bottom: 32px;
}

/* Search */
.landing-search-wrap {
    width: 100%;
    position: relative;
    margin-bottom: 24px;
}
.landing-search-wrap .autocomplete {
    display: block !important;
    width: 100%;
}
.landing-search {
    width: 100%;
    box-sizing: border-box;
    height: 52px;
    padding: 0 120px 0 20px;
    border-radius: 16px;
    border: 1px solid var(--border-moderate);
    background: var(--surface-1);
    color: var(--normal);
    font-size: 17px;
    font-family: 'DM Sans', system-ui, sans-serif;
    outline: none;
    transition: all 0.2s;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.03);
}
.landing-search:focus {
    border-color: var(--ainfo);
    box-shadow: 0 2px 20px rgba(0,0,0,0.15), 0 0 0 3px var(--accent-muted), inset 0 1px 0 rgba(255,255,255,0.03);
}
.landing-search::placeholder { color: var(--text-dim); }
.landing-actions {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    display: flex;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    background: var(--surface-3);
}
.landing-action-btn {
    padding: 8px 12px;
    background: transparent; border: none;
    color: var(--activetext);
    cursor: pointer; text-decoration: none;
    transition: all 0.15s;
    display: flex; align-items: center; justify-content: center;
}
.landing-action-btn svg {
    width: 20px; height: 20px;
}
.landing-action-btn + .landing-action-btn {
    border-left: 1px solid var(--border-subtle);
}
.landing-action-btn:hover {
    background: var(--accent-muted);
    color: var(--ainfo);
    text-decoration: none;
}

/* Autocomplete dropdown override */
.landing-search-wrap .autocomplete:has(.autocomplete-items) .landing-search {
    border-radius: 16px 16px 0 0;
    transition: border-radius 0.15s;
}
.landing-search-wrap .autocomplete-items {
    border-radius: 0 0 16px 16px;
    overflow: hidden;
}

/* Tool links */
.landing-tools {
    display: flex; flex-wrap: wrap;
    justify-content: center;
}
.landing-tool {
    padding: 7px 16px; border-radius: 20px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--activetext);
    font-size: 13px; font-weight: 500;
    text-decoration: none; transition: all 0.15s;
    display: flex; align-items: center; gap: 6px;
}
.landing-tool:hover {
    border-color: var(--accent-border);
    background: var(--accent-muted);
    color: var(--ainfo);
    text-decoration: none;
}
.landing-tool .t-icon { font-size: 14px; }


/* ═══ Footer — pinned to bottom ═══ */
.landing-footer {
    width: 100%;
    max-width: 680px;
    padding: 0 24px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.landing-divider {
    width: 50px; height: 1px;
    background: var(--border-moderate);
}

.landing-game-links {
    display: flex; gap: 20px;
    font-size: 12px; color: var(--text-dim);
}
.landing-game-links a { color: var(--text-dim); transition: color 0.1s; }
.landing-game-links a:hover { color: var(--activetext); text-decoration: none; }

.landing-login-row {
    display: flex; gap: 8px; align-items: center;
}
.landing-login-btn {
    padding: 8px 20px; border-radius: 10px;
    font-size: 13px; font-weight: 600;
    text-decoration: none; transition: all 0.15s;
    border: 1px solid;
}
.landing-login-btn.patreon {
    background: rgba(255,66,77,0.1); border-color: rgba(255,66,77,0.25); color: #ff424d;
}
.landing-login-btn.patreon:hover { background: rgba(255,66,77,0.2); text-decoration: none; }
.landing-login-btn.discord {
    background: rgba(88,101,242,0.1); border-color: rgba(88,101,242,0.25); color: #5865f2;
}
.landing-login-btn.discord:hover { background: rgba(88,101,242,0.2); text-decoration: none; }

.landing-copyright {
    font-size: 11px; color: var(--text-dim);
    opacity: 0.5; text-align: center;
}

/* ═══ Error message ═══ */
.landing-error {
    text-align: center;
    color: var(--adanger);
    font-size: 16px;
    margin: 16px 0;
}

/* ═══ Responsive ═══ */
@media (max-width: 640px) {
    .landing-brand-text { font-size: 22px; }
    .landing-search-wrap { display: flex; flex-direction: column; gap: 8px; }
    .landing-search { font-size: 15px; padding: 14px 18px 14px 42px; }
    .landing-lucky {
        position: static;
        transform: none;
        align-self: center;
        padding: 10px 24px;
        font-size: 13px;
    }
    .landing-tools { gap: 4px; }
    .landing-tool { font-size: 12px; padding: 8px 14px; }
    .landing-login-btn { padding: 12px 24px; }
    .landing-footer { padding-bottom: 24px; }
}
