body,
html {
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', Arial, sans-serif;
    background: transparent !important;
    color: #fff;
    overflow-x: hidden;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: url('https://www.cssscript.com/demo/liquid-glass-ui/wallpaper.jpg') no-repeat center center/cover;
    z-index: -1;
    pointer-events: none;
}

.demo-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 16px 32px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

h1 {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 0.2em;
    letter-spacing: -1px;
    color: #fff;
    text-shadow: 0 2px 12px #000a, 0 1px 0 #222b;
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
}

.subtitle {
    font-size: 1.2rem;
    color: #eaeaea;
    text-align: center;
    text-shadow: 0 1px 8px #000a, 0 1px 0 #222b;
    margin: 30px 10px 50px 10px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.2rem;
    width: 100%;
    max-width: 700px;
    aspect-ratio: 1 / 1.25;
    margin-bottom: 2.5rem;
}

.glass-card {
    border-radius: 22px;
    box-shadow:
        0 2px 4px 0 rgba(0, 0, 0, 0.10),
        0 8px 24px 0 rgba(0, 0, 0, 0.12),
        0 16px 48px 0 rgba(0, 0, 0, 0.10);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    aspect-ratio: 1 / 1.25;
    width: 100%;
    min-width: 0;
    min-height: 0;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 600;
    overflow: hidden;
    transition: box-shadow 0.3s, border 0.3s;
    padding-top: 50px;
    box-sizing: border-box;
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.25) 30%, rgba(255, 255, 255, 0.10) 70%, rgba(255, 255, 255, 0.7) 100%),
        linear-gradient(300deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.10) 60%, rgba(255, 255, 255, 0) 100%);
    box-shadow: 0 0 12px 2px rgba(255, 255, 255, 0.25) inset;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
    opacity: .5;

}

.glass-card span {
    font-size: 1.1rem;
    margin-bottom: 0.7em;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: center;
}

.glass-card code {
    font-size: 0.75rem;
    color: #b6f0ff;
    background: rgba(0, 0, 0, 0.13);
    border-radius: 8px;
    padding: 0.2em 0.7em;
    margin-top: 0.5em;
    font-family: 'Fira Mono', 'Consolas', monospace;
}

.info-box {
    width: 100%;
    max-width: 700px;
    margin: 0 auto 10.5em auto;
    padding: 1.1em 1.5em;
    background: rgba(30, 30, 40, 0.55);
    color: #fff;
    border-radius: 16px;
    font-size: 1.08rem;
    text-align: center;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.10);
    backdrop-filter: blur(6px) saturate(120%);
    -webkit-backdrop-filter: blur(6px) saturate(120%);
    z-index: 3;
}

.photo-credit {
    position: fixed;
    bottom: 12px;
    left: 0;
    width: 100vw;
    text-align: center;
    font-size: 0.95rem;
    color: #eaeaea;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    z-index: 10;
    pointer-events: auto;
}

.photo-credit a {
    color: #eaeaea;
    text-decoration: underline;
    transition: color 0.2s;
}

.photo-credit a:hover {
    color: #fff;
}

.filter-grid>.glass-card:nth-child(3n-2) span {
    color: #fff;
    text-shadow: 0 2px 8px #000b, 0 1px 0 #222b;
    background: rgba(0, 0, 0, 0.18);
    border-radius: 8px;
    padding: 0.15em 0.5em;
    font-weight: 800;
}

.filter-grid>.glass-card:nth-child(3n-2) code {
    color: #fff;
    background: rgba(0, 0, 0, 0.28);
    text-shadow: 0 1px 4px #000b;
}

.filter-grid>.glass-card:nth-child(3n) span {
    color: #111;
    border-radius: 8px;
    padding: 0.15em 0.5em;
    font-weight: 800;
}

.filter-grid>.glass-card:nth-child(3n) code {
    color: #111;
    background: rgba(255, 255, 255, 0.28);
    text-shadow: 0 1px 4px #fff8;
}