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

html {
    font-size: var(--font-size-base);
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg-deep);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Premium Background with Purple Gradient */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(135deg, #0a0a0f 0%, #1a0a20 25%, #2d1040 50%, #1a0a20 75%, #0a0a0f 100%);
    pointer-events: none;
    z-index: -1;
}

/* Floating Casino Chips Container */
.floating-chips {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.chip {
    position: absolute;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, transparent 35%, rgba(228, 145, 201, 0.3) 36%, rgba(228, 145, 201, 0.3) 44%, transparent 45%),
        conic-gradient(
            from 0deg,
            rgba(152, 37, 152, 0.4) 0deg, rgba(152, 37, 152, 0.4) 30deg,
            rgba(228, 145, 201, 0.25) 30deg, rgba(228, 145, 201, 0.25) 60deg,
            rgba(152, 37, 152, 0.4) 60deg, rgba(152, 37, 152, 0.4) 90deg,
            rgba(228, 145, 201, 0.25) 90deg, rgba(228, 145, 201, 0.25) 120deg,
            rgba(152, 37, 152, 0.4) 120deg, rgba(152, 37, 152, 0.4) 150deg,
            rgba(228, 145, 201, 0.25) 150deg, rgba(228, 145, 201, 0.25) 180deg,
            rgba(152, 37, 152, 0.4) 180deg, rgba(152, 37, 152, 0.4) 210deg,
            rgba(228, 145, 201, 0.25) 210deg, rgba(228, 145, 201, 0.25) 240deg,
            rgba(152, 37, 152, 0.4) 240deg, rgba(152, 37, 152, 0.4) 270deg,
            rgba(228, 145, 201, 0.25) 270deg, rgba(228, 145, 201, 0.25) 300deg,
            rgba(152, 37, 152, 0.4) 300deg, rgba(152, 37, 152, 0.4) 330deg,
            rgba(228, 145, 201, 0.25) 330deg, rgba(228, 145, 201, 0.25) 360deg
        );
    box-shadow:
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3),
        0 4px 20px rgba(152, 37, 152, 0.3);
    animation: floatChip linear infinite;
    border: 3px solid rgba(228, 145, 201, 0.4);
}

/* Inner circle of chip */
.chip::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 55%;
    height: 55%;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%,
        rgba(200, 100, 180, 0.5) 0%,
        rgba(152, 37, 152, 0.4) 50%,
        rgba(100, 20, 100, 0.5) 100%);
    border: 2px solid rgba(228, 145, 201, 0.5);
    box-shadow: inset 0 2px 8px rgba(255, 255, 255, 0.2);
}

/* Chip denomination/design */
.chip::after {
    content: '♠';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30%;
    color: rgba(255, 255, 255, 0.6);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.chip:nth-child(1) { width: 100px; height: 100px; left: 5%; animation-duration: 25s; animation-delay: 0s; }
.chip:nth-child(1)::after { content: '♠'; font-size: 30px; }
.chip:nth-child(2) { width: 70px; height: 70px; left: 15%; animation-duration: 30s; animation-delay: -5s; }
.chip:nth-child(2)::after { content: '♦'; font-size: 22px; color: rgba(228, 145, 201, 0.8); }
.chip:nth-child(3) { width: 120px; height: 120px; left: 28%; animation-duration: 35s; animation-delay: -10s; }
.chip:nth-child(3)::after { content: '♣'; font-size: 36px; }
.chip:nth-child(4) { width: 55px; height: 55px; left: 42%; animation-duration: 28s; animation-delay: -3s; }
.chip:nth-child(4)::after { content: '♥'; font-size: 18px; color: rgba(228, 145, 201, 0.8); }
.chip:nth-child(5) { width: 85px; height: 85px; left: 55%; animation-duration: 32s; animation-delay: -8s; }
.chip:nth-child(5)::after { content: '★'; font-size: 26px; }
.chip:nth-child(6) { width: 110px; height: 110px; left: 68%; animation-duration: 26s; animation-delay: -12s; }
.chip:nth-child(6)::after { content: '♠'; font-size: 34px; }
.chip:nth-child(7) { width: 75px; height: 75px; left: 82%; animation-duration: 29s; animation-delay: -2s; }
.chip:nth-child(7)::after { content: '♦'; font-size: 24px; color: rgba(228, 145, 201, 0.8); }
.chip:nth-child(8) { width: 60px; height: 60px; left: 92%; animation-duration: 33s; animation-delay: -7s; }
.chip:nth-child(8)::after { content: '♣'; font-size: 20px; }

@keyframes floatChip {
    0% {
        transform: translateY(110vh) rotate(0deg) rotateX(60deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-20vh) rotate(720deg) rotateX(60deg);
        opacity: 0;
    }
}

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

input, button, textarea, select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

/* Premium Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-display);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: var(--letter-spacing-tight);
    color: var(--color-text-primary);
}

h1 {
    font-size: var(--font-size-hero);
    font-weight: 800;
    letter-spacing: -0.03em;
}

h2 {
    font-size: var(--font-size-4xl);
    font-weight: 700;
}

h3 {
    font-size: var(--font-size-3xl);
    font-weight: 600;
}

h4 {
    font-size: var(--font-size-2xl);
    font-weight: 600;
}

p {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* Selection Styling */
::selection {
    background: rgba(228, 145, 201, 0.3);
    color: white;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-base);
}

::-webkit-scrollbar-thumb {
    background: rgba(152, 37, 152, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(152, 37, 152, 0.7);
}
