/* ==========================================================================
   freegame7 — tokens aligned with https://freegame7.com/
   ========================================================================== */

:root {
    --color-bg: #f7f7f7;
    --color-bg-elevated: #ffffff;
    --color-surface: #ffffff;
    --color-text: #000000;
    --color-text-muted: rgba(0, 0, 0, 0.7);
    --color-heading: #000000;
    --color-primary: #fc43a9;
    --color-primary-dark: #e23193;
    --color-primary-soft: #ffe6f4;
    --color-accent: #fc43a9;
    --color-header: #ffffff;
    --color-header-text: #000000;
    --color-border: rgba(0, 0, 0, 0.2);
    --color-border-soft: rgba(0, 0, 0, 0.212);
    --color-shadow: rgba(0, 0, 0, 0.1);

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;

    --border-width: 1px;
    --border-radius-sm: 12px;
    --border-radius-md: 16px;
    --border-radius-lg: 22px;
    --border-radius-xl: 30px;

    --font-display: Roboto, "Roboto Regular", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    --font-body: Roboto, "Roboto Regular", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --duration-fast: 0.3s;
    --header-h: 80px;
    --header-h-mobile: 60px;
    --container: 1440px;
    --page-gutter: 20px;
    --safe-top: env(safe-area-inset-top, 0px);
    --page-offset: calc(120px + env(safe-area-inset-top, 0px));
}

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

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

html,
body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.5;
    min-height: 100vh;
}

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

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

a:hover {
    color: var(--color-primary);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    touch-action: manipulation;
}

a,
button {
    -webkit-tap-highlight-color: rgba(252, 67, 169, 0.18);
}

input,
textarea,
select {
    font-size: 16px;
    font-family: inherit;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--page-gutter);
    width: 100%;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.text-display {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--color-heading);
}

.bg-accent {
    background: var(--color-primary);
    color: #fff;
}

@media (max-width: 1334px) {
    :root {
        --header-h: 60px;
        --page-offset: calc(80px + env(safe-area-inset-top, 0px));
    }
}

@media (max-width: 768px) {
    :root {
        --page-gutter: 16px;
        --page-offset: calc(60px + env(safe-area-inset-top, 0px));
    }
}
