@import url('game-shared.css');

:root {
    --bg: #f3ebe3;
    --bg-warm: #ebe2d6;
    --surface: #fffaf5;
    --surface-hover: #fff5ec;
    --ink: #3a2f28;
    --ink-soft: #6b5e54;
    --ink-muted: #9a8b7e;
    --accent: #c96a3a;
    --accent-hover: #b35a2e;
    --accent-soft: #f0ddd0;
    --border: #e0d4c8;
    --shadow: 0 2px 12px rgba(58, 47, 40, 0.06);
    --radius: 12px;
    --radius-lg: 16px;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-bounce: cubic-bezier(0.34, 1.45, 0.64, 1);
    --header-control-h: 36px;
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg);
    color: var(--ink);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(201, 106, 58, 0.08) 0%, transparent 42%),
        radial-gradient(circle at 88% 82%, rgba(90, 138, 98, 0.06) 0%, transparent 38%);
    pointer-events: none;
    z-index: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px clamp(16px, 4vw, 40px);
    background: rgba(243, 235, 227, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.02em;
    text-decoration: none;
    transition: transform 0.25s var(--ease-bounce);
    min-width: 0;
    flex-shrink: 1;
}
.logo:hover { transform: scale(1.03); }
.logo.logo--image { gap: 0; }
.logo:hover .logo-mark { animation: wiggle 0.45s var(--ease-bounce); }

.logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--accent);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: transform 0.3s var(--ease-bounce);
}

.logo-mark svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: var(--header-control-h);
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.back-link:hover {
    background: var(--surface-hover);
    color: var(--ink);
}

.site-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 20px 16px;
    font-size: 13px;
    color: var(--ink-muted);
    border-top: 1px solid var(--border);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    margin-bottom: 10px;
}

.footer-nav a {
    color: var(--ink-soft);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.footer-nav a:hover { color: var(--accent); }

.footer-cookie-row {
    margin-bottom: 10px;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-7deg); }
    75% { transform: rotate(7deg); }
}

@media (max-width: 420px) {
    .site-header {
        flex-wrap: wrap;
    }

    .header-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
