:root {
    --primary-background: #0f172a;
    --primary-text: #f8fafc;
    --secondary-background: #1e293b;
    --secondary-text: #cbd5e1;
    --accent-color: #fbbf24;
    --accent-text: #0f172a;
    --cta-color: #f59e0b;
    --cta-hover: #d97706;
    --error-color: #ef4444;
    --success-color: #22c55e;
    --font-family: 'Inter', sans-serif;
    --border-radius: 0.75rem;
    --spacing-base: 1.5rem;
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    --transition-speed: 300ms;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--primary-background);
    color: var(--primary-text);
    font-family: var(--font-family);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

* {
    box-sizing: border-box;
}

a,
a:hover,
a:focus {
    text-decoration: none;
    transition: color var(--transition-speed) ease-in-out, background-color var(--transition-speed) ease-in-out;
}

button {
    cursor: pointer;
    border: none;
    transition: var(--transition-speed) ease-in-out;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.025em;
    margin: 0;
    line-height: 1.2;
}

ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

@media (max-width: 768px) {
    h1 {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }

    h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    h3 {
        font-size: clamp(1.25rem, 5vw, 1.75rem);
    }

    p,
    li,
    a {
        font-size: 0.9375rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* ===== header ===== */
#header {
    width: 100%;
}

.js-mobile-menu {
    width: 100%;
    transition: all 0.3s ease-in-out;
}

.js-reg-modal,
.js-login-modal {
    transition: opacity 0.3s ease;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--primary-text);
    -webkit-box-shadow: 0 0 0px 1000px var(--primary-background) inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* ===== hero_section ===== */
section#hero {
    width: 100%;
}

.material-symbols-outlined {
    font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
    display: inline-block;
    vertical-align: middle;
}

/* ===== game_player ===== */
.js-game-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== about_fortune ===== */
.prose strong {
    color: var(--primary-text);
    font-weight: 700;
}

.js-fade-in {
    will-change: transform, opacity;
}

/* ===== how_to_play_steps ===== */
#how-to .js-step-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#how-to .js-step-card:hover {
    transform: translateY(-10px);
}

/* ===== game_features ===== */
#features {
    background-color: var(--primary-background);
}

.section-title {
    color: var(--primary-text);
}

.section-desc {
    color: var(--secondary-text);
}

.feature-card {
    background-color: var(--secondary-background);
    border: 1px solid rgba(251, 191, 36, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.card-icon {
    color: var(--accent-color);
}

.card-heading {
    color: var(--primary-text);
}

.card-text {
    color: var(--secondary-text);
}

.highlight-box {
    background-color: var(--secondary-background);
    border-left: 4px solid var(--accent-color);
}

.highlight-title {
    color: var(--accent-color);
}

.highlight-text {
    color: var(--primary-text);
}

.full-width {
    width: 100%;
}

/* ===== why_play ===== */
.w-full {
    width: 100%
}

.material-symbols-outlined {
    font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48
}

/* ===== tigrinex_team ===== */
.js-team-card {
    width: 100%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#team img {
    width: 100%;
}

/* ===== player_reviews ===== */
.js-review-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease
}

.js-review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2)
}

/* ===== what_they_say ===== */
#quotes {
    width: 100%
}

.js-quote-card {
    transition: all 0.3s ease-in-out
}

/* ===== game_faq ===== */
#faq {
    width: 100%;
}

#faq .collapse-arrow>.collapse-title::after {
    color: var(--accent-color) !important;
}

.js-faq-active {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.1);
}

/* ===== player_forum ===== */
#forum {
    width: 100%;
    position: relative;
}

.js-blurred-content {
    transition: filter 0.5s ease;
}

/* ===== footer ===== */
#footer {
    background-color: var(--primary-background);
}

#footer h3 {
    color: var(--primary-text);
}

#footer a,
#footer li {
    color: var(--secondary-text);
}

#footer a:hover {
    color: var(--accent-color);
}

@media (max-width: 767px){
    .game-box{
        height: 600px;
    }
}