/* ==========================================================================
   flag-theme.css – the colours of the flag pages (flagg.html, flagg-spill.html,
   flagg-kart.html). A soft pastel look: the flags stay bright, everything
   around them is soft, so the flags stand out. Buttons use deeper versions of
   the pastel colours, so their text stays easy to read.
   The same three colours mean the same thing everywhere:
     dusty blue = find (and chosen filters, links)   rose = play   peach = learn
   Loaded after the page's own stylesheet, so these win.
   ========================================================================== */

:root {
	--primary: #557590;          /* find, links, chosen filters */
	--primary-hover: #466277;
	--dark: #4a4458;             /* headings and dark text: plum grey */
	--text: #6f6a78;             /* normal text */
	--play: #b9605c;             /* play */
	--play-hover: #a24f4b;
	--learn: #f6c5b0;            /* learn (dark text on it) */
	--learn-hover: #f0b293;
	--learn-deep: #e9a27f;       /* learn as a thin line or stripe */
	--line: #ece3df;             /* borders and dividers */
	--soft: #f6f0ed;             /* light backgrounds */
	--cream: #faf6f3;            /* the page */
	--accent: #c96f6b;
	--highlight: rgba(201, 111, 107, .18);
}
body { background: var(--cream); }
::selection { background: var(--learn); color: var(--dark); }

/* ----- the flags page ----- */
.panel { background: rgba(253, 250, 248, .97); }
.chip:hover:not(:disabled) { background: #f2eaee; }
.learn-link { background: var(--learn); color: var(--dark); }
.learn-link:hover { background: var(--learn-hover); }
.learn-menu a { background: #fbeee6; }
.learn-menu a:hover, .learn-menu a:focus-visible { background: #f8e0d3; }

/* ----- the intro card ----- */
.intro-box { background: rgba(255, 250, 247, .9); }
.intro-btn.learn { background: #fbeee6; box-shadow: inset 0 0 0 2px var(--learn); }
.intro-btn.learn[aria-expanded="true"] { background: var(--learn); }
.intro-learn a { background: #fbeee6; box-shadow: inset 0 0 0 1px var(--learn); }
.intro-learn a:hover { background: #f8e0d3; }

/* ----- the games ----- */
.hall-card { background: linear-gradient(135deg, #6a89a3, var(--primary)); }

/* ----- the map ----- (the land colours are in js/map-game.js) */
.map-box { background: #dcebf1; }

/* the intro wall: cream gaps between the flags (the picture is washed with a pastel frost) */
#intro, .wall { background-color: #f3ece8; }
.wall-card { border-radius: 7px; }
.wall-card.turned { background-color: #f3ece8; }
