/*
 * Holdem Hub site. Glass over a candle-lit castle hall; headings with a little volume, the way the
 * lobby and the table draw them (hh-lobby-desktop: .glass).
 */

:root {
    --night: #170b3a;
    --velvet: #2b1466;
    --violet: #7c3aed;
    --violet-edge: #4c1d95;
    --gold: #fbbf24;
    --gold-edge: #b45309;
    --gold-ink: #3b1a00;
    --moon: #f7f4ff;
    --lavender: #c9bfe8;

    --display: "Lilita One", "Nunito", ui-rounded, system-ui, sans-serif;
    --body: "Nunito", ui-rounded, system-ui, sans-serif;

    color-scheme: dark;
}

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

body {
    margin: 0;
    min-height: 100svh;
    background: var(--night);
    color: var(--moon);
    font: 600 1.0625rem/1.55 var(--body);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

/* The hall behind everything: the castle room of the table, dimmed and softened under the glass. */
body::before {
    content: "";
    position: fixed;
    inset: -24px;
    z-index: -2;
    background: url("assets/rooms/castle.webp") center 20% / cover no-repeat;
    filter: blur(5px) saturate(1.1);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 70% 55% at 50% 38%, rgb(124 58 237 / 0.18), transparent 70%),
        linear-gradient(180deg, rgb(23 11 58 / 0.55) 0%, rgb(23 11 58 / 0.72) 45%, rgb(23 11 58 / 0.94) 100%);
}

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

a {
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--display);
    font-weight: 400;
    line-height: 1.05;
}

/* Headings stand out of the page like the logo: a violet edge under moonlit letters. */
.chunky-type {
    color: var(--moon);
    letter-spacing: 0.01em;
    text-shadow:
        0 1px 0 #b9a6f5,
        0 3px 0 var(--violet-edge),
        0 5px 0 #2e1065,
        0 12px 24px rgb(10 3 30 / 0.55);
}

p {
    margin: 0;
}

.glass {
    background:
        linear-gradient(180deg, rgb(255 255 255 / 0.14), rgb(255 255 255 / 0.03)),
        rgb(43 20 102 / 0.38);
    border: 1px solid rgb(255 255 255 / 0.18);
    box-shadow:
        inset 0 1px 0 rgb(255 255 255 / 0.28),
        inset 0 -1px 0 rgb(255 255 255 / 0.05),
        0 24px 60px -24px rgb(6 2 24 / 0.8);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.footer {
    width: min(960px, 100% - 32px);
    margin: 0 auto;
    padding: 28px 0 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    color: rgb(201 191 232 / 0.75);
    font-size: 0.9375rem;
    border-top: 1px solid rgb(255 255 255 / 0.1);
}

/* A mockup: no file behind the links yet. */
.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 30;
    translate: -50% 20px;
    max-width: calc(100% - 32px);
    padding: 14px 22px;
    border-radius: 18px;
    font-weight: 800;
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease, translate 200ms ease;
}

.toast.is-shown {
    opacity: 1;
    translate: -50% 0;
}

@media (prefers-reduced-motion: reduce) {
    .toast {
        transition: none;
    }
}
