/* Shared frame for every page: header, footer and base tokens.
   Each game page sets its own theme by overriding the --site-* variables on <body>. */
:root {
    --site-bg: #15130f;
    --site-ink: #f1ebdf;
    --site-muted: #a59c8c;
    --site-line: rgba(241, 235, 223, 0.14);
    --site-accent: #e4553b;
    --site-sans: system-ui, -apple-system, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    --site-serif: "Noto Serif KR", "Nanum Myeongjo", "AppleMyungjo", "Batang", "바탕", serif;
}

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

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

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--site-bg);
    color: var(--site-ink);
    font-family: var(--site-sans);
    line-height: 1.6;
    /* Korean wraps between words, not inside them. */
    word-break: keep-all;
    overflow-wrap: break-word;
}

a { color: inherit; }

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 18px 24px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 17px;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.site-brand-mark {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--site-accent);
    color: #fff;
    font-size: 15px;
    font-weight: 900;
}

.site-nav { font-size: 14px; color: var(--site-muted); }
.site-nav a { text-decoration: none; }
.site-nav a:hover { color: var(--site-ink); }

.site-main { flex: 1; width: 100%; }

.site-footer {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 28px 24px 36px;
    border-top: 1px solid var(--site-line);
    color: var(--site-muted);
    font-size: 13px;
}
.site-footer p { margin: 4px 0; }

@media (max-width: 600px) {
    .site-header { padding: 14px 16px; }
    .site-footer { padding: 24px 16px 32px; }
}
