/* --- FONTS --- */

@font-face {
    font-family: "jua";
    src: url("../assets/fonts/Jua-Regular.ttf") format("truetype");
}

/* --- VARIABLES --- */
/* the --page-bg / --duck-frame names match style-game.css so both pages share one palette */

:root {
    --page-bg: #ffce49;
    --duck-frame: #ffb300;
    /* duck-bill orange */
    --duck-frame-dark: #c77f00;
    /* bottom shadow */
    --changelog-bg: #000;
    /* the black card (not the olive --panel-bg from the game) */
    --text: #fbfbfb;
    --card-shadow: 0 8px 0 var(--duck-frame-dark), 0 20px 40px rgba(0, 0, 0, 0.35);
}

/* --- RESET --- */

* {
    box-sizing: border-box;
    font-family: "jua", sans-serif;
}

/* --- BODY --- */

body {
    color: var(--text);
    background-color: var(--page-bg);
}

/* --- CHANGELOG + PAGE CARD --- */
/* the changelog card is filled in by changelog.js, .page-card is the same look for plain pages like privacy */

#changelog-list,
.page-card {
    width: 90%;
    max-width: 700px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--changelog-bg);
    border: 6px solid var(--duck-frame);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

/* version heading, e.g. "0.3 - 2026-10-20" */
#changelog-list h2,
.page-card h2 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
}

/* list of changes under that version */
#changelog-list ul,
.page-card ul {
    margin: 0 0 2rem;
    /* gap before the next version */
    font-size: 1rem;
}

.page-card p {
    margin: 0 0 1rem;
    line-height: 1.5;
}

.page-card a {
    color: var(--duck-frame);
}

/* the approve button on the consent page, same pill look as the game's buttons */
.page-card button {
    padding: 0.5rem 1.2rem;
    font-size: 1.2rem;
    color: #5a3a00;
    background: #ffc21a;
    border: 3px solid #d98f00;
    border-radius: 999px;
    box-shadow: 0 3px 0 #b36f00;
    cursor: pointer;
}

.page-card button:disabled {
    opacity: 0.5;
    cursor: default;
}