/* Howguji optional UI enhancement.
   This file is generated next to the uploaded game and loaded after its original CSS. */
:root {
    color-scheme: dark;
    --gh-bg: #020617;
    --gh-surface: rgba(15, 23, 42, 0.78);
    --gh-surface-strong: rgba(15, 23, 42, 0.94);
    --gh-border: rgba(148, 163, 184, 0.32);
    --gh-text: #f8fafc;
    --gh-muted: #cbd5e1;
    --gh-accent: #f43f5e;
    --gh-accent-2: #2563eb;
    --gh-radius: 18px;
}

html {
    min-height: 100%;
    background:
        radial-gradient(circle at 16% 12%, rgba(244, 63, 94, 0.28), transparent 30rem),
        radial-gradient(circle at 84% 18%, rgba(37, 99, 235, 0.28), transparent 28rem),
        radial-gradient(circle at 50% 95%, rgba(16, 185, 129, 0.16), transparent 28rem),
        var(--gh-bg);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--gh-text);
    background:
        linear-gradient(135deg, rgba(2, 6, 23, 0.22), rgba(15, 23, 42, 0.72)),
        transparent;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent);
    z-index: -1;
}

body > * {
    position: relative;
}

:where(main, .container, .wrapper, .game, #game, .screen, .menu, .panel, .card, .hud, .scoreboard) {
    border-color: var(--gh-border) !important;
    border-radius: var(--gh-radius);
}

:where(.menu, .panel, .card, .scoreboard, .modal, dialog) {
    background: var(--gh-surface) !important;
    box-shadow: 0 24px 70px rgba(2, 6, 23, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
}

:where(h1, h2, h3, .title, .heading) {
    color: var(--gh-text) !important;
    letter-spacing: 0;
    text-shadow: 0 8px 30px rgba(2, 6, 23, 0.38);
}

:where(p, span, label, li, small) {
    color: inherit;
}

:where(button, .btn, .button, [role="button"], input[type="button"], input[type="submit"], input[type="reset"]) {
    min-height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, var(--gh-accent), var(--gh-accent-2)) !important;
    color: #ffffff !important;
    box-shadow: 0 16px 34px rgba(244, 63, 94, 0.24);
    font-weight: 800;
    letter-spacing: 0;
    transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

:where(button, .btn, .button, [role="button"], input[type="button"], input[type="submit"], input[type="reset"]):hover {
    transform: translateY(-1px);
    filter: saturate(1.1) brightness(1.05);
    box-shadow: 0 20px 42px rgba(37, 99, 235, 0.28);
}

:where(input:not([type]), input[type="text"], input[type="number"], input[type="email"], input[type="password"], select, textarea) {
    border: 1px solid var(--gh-border) !important;
    border-radius: 14px !important;
    background: rgba(15, 23, 42, 0.72) !important;
    color: var(--gh-text) !important;
    outline: none !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

:where(input, select, textarea)::placeholder {
    color: rgba(203, 213, 225, 0.72);
}

:where(a) {
    color: #93c5fd;
}

:where(canvas, iframe, video) {
    max-width: 100%;
    border-radius: 16px;
}

@media (max-width: 700px) {
    :where(.menu, .panel, .card, .scoreboard, .modal, dialog) {
        border-radius: 14px;
    }

    :where(button, .btn, .button, [role="button"], input[type="button"], input[type="submit"], input[type="reset"]) {
        min-height: 40px;
    }
}
