/* info.css — FAQ, Privacy, Terms and 404 pages only.
   Standalone on purpose: game.css locks the viewport for the game grid
   (body is position:fixed), which reading pages can't have.
   Same convention as game.css: dark is the default, light is the override.
   Token values mirror game.css; the arcade gold is the sanctioned #f5c518. */

:root {
    --bg-color: #121213;
    --text-color: #e2e2e2;
    --text-muted: #a0a0a0;
    --card-bg: #1f1f1f;
    --card-border: #3a3a3c;
    --link-color: #f5c518;
    --font-stack: system-ui, Inter, sans-serif;
}

[data-theme="light"] {
    --bg-color: #ffffff;
    --text-color: #1a1a1b;
    --text-muted: #6b6b6b;
    --card-bg: #f0f0f0;
    --card-border: #d3d6da;
    --link-color: #7a5c00;
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-stack);
    font-size: 1rem;
    line-height: 1.6;
}

.info-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px 16px 48px;
}

.info-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--card-border);
}

.info-logo img {
    display: block;
    height: 44px;
    width: auto;
    image-rendering: pixelated;
}

.info-play {
    display: inline-block;
    padding: 12px 16px;
    min-height: 44px;
    border-radius: 6px;
    background: #f5c518;
    color: #3d1f00;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.6rem;
    line-height: 1.6;
    text-decoration: none;
    white-space: nowrap;
}
.info-play:hover { filter: brightness(1.08); }
.info-play:active { transform: scale(0.97); }

.info-crumbs {
    margin: 14px 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.info-crumbs a { color: var(--text-muted); }

h1 {
    margin: 18px 0 4px;
    font-family: 'Press Start 2P', cursive;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #f5c518;
}
[data-theme="light"] h1 { color: #7a5c00; }

.info-updated {
    margin: 0 0 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

h2 {
    margin: 28px 0 8px;
    font-size: 1.15rem;
    line-height: 1.35;
}

p, li { max-width: 68ch; }
ul, ol { padding-left: 1.3rem; }
li + li { margin-top: 4px; }

a { color: var(--link-color); }
a:focus-visible, .info-play:focus-visible, summary:focus-visible {
    outline: 2px solid #f5c518;
    outline-offset: 3px;
}

.info-card {
    margin: 16px 0;
    padding: 12px 14px;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    background: var(--card-bg);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 0.95rem;
}
th, td {
    text-align: left;
    padding: 8px 6px;
    border-bottom: 1px solid var(--card-border);
    vertical-align: top;
}

/* FAQ accordion: native <details>, keyboard-accessible for free */
.faq-item {
    border-bottom: 1px solid var(--card-border);
}
.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 14px 28px 14px 0;
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
    min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 4px;
    top: 12px;
    font-size: 1.3rem;
    color: #f5c518;
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item .faq-answer { padding: 0 0 14px; }
.faq-item .faq-answer p { margin: 0 0 8px; }

.info-cta {
    margin: 32px 0 0;
    padding: 18px 16px;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    text-align: center;
    background: var(--card-bg);
}
.info-cta p { margin: 0 auto 12px; }

.info-footer {
    margin-top: 40px;
    padding-top: 14px;
    border-top: 1px solid var(--card-border);
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.info-footer a { color: var(--text-muted); }

/* 404 */
.nf {
    text-align: center;
    padding-top: 24px;
}
.nf-tiles {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 24px 0 8px;
}
.nf-tiles span {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    background: #58585a;
    border-radius: 4px;
    text-transform: uppercase;
}
.nf-tiles span.present { background: #c9b458; }
.nf p { margin-left: auto; margin-right: auto; }
.nf-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 320px;
    margin: 22px auto 0;
}
.nf-links a.secondary {
    display: block;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1.5px solid var(--card-border);
    color: var(--text-color);
    text-decoration: none;
}
