/* Shared skeleton. Game pages override the variables in their own theme.css. */
:root {
  --bg: #fff6e0;
  --surface: #ffffff;
  --ink: #2a2140;
  --accent: #ff5d73;
  --accent-2: #3bb4e5;
  --accent-3: #ffc233;
  --accent-4: #43c59e;
  --done: #43c59e;
  --radius: 20px;
  --font-head: 'Fredoka', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--ink); font-family: var(--font-body); background: var(--bg); }
/* Home background: quiet game shelves (css/home.svg), faded so the cards stand out */
body.home { background: #f3e4cc; }
body.home::before { content: ''; position: fixed; inset: 0; z-index: -1; background: url('home.svg') center bottom / cover no-repeat; opacity: .55; }
.wrap { width: min(1100px, 100% - 32px); margin: 0 auto; padding-bottom: 60px; }

/* header */
/* Same column and spacing as the game pages' top bar, so the account area stays put between pages */
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: min(1100px, 100% - 32px); margin: 0 auto; padding-top: 16px; }
.brand { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--ink); text-decoration: none; }
#account { display: flex; align-items: center; gap: 10px; font-weight: 700; }

/* home */
.intro { text-align: center; padding: 28px 0 18px; }
.intro h1 { font-family: var(--font-head); font-size: clamp(2rem, 6vw, 3.4rem); margin: 0; line-height: 1.1; }
.total { margin: 10px 0 0; font-weight: 700; opacity: .75; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 32px; padding-top: 12px; }
.game-card {
  display: block; text-decoration: none; color: var(--ink); background: var(--surface);
  border-radius: var(--radius); overflow: hidden; position: relative;
  box-shadow: 0 0 0 5px #fff, 0 0 30px 6px rgba(60, 42, 24, .3);
  border: 4px solid var(--c1);
}
.game-card .art { height: 150px; background-size: cover; background-position: center; border-bottom: 6px solid var(--c2); }
.game-card .body { padding: 14px 18px 18px; }
.game-card h2 { font-family: var(--font-head); margin: 0 0 4px; font-size: 1.7rem; color: var(--c2); }
.game-card p { margin: 0 0 12px; min-height: 2.6em; }
.meter { height: 12px; background: #0001; border-radius: 99px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--c1); border-radius: 99px; }
.ready .meter i { transition: width .4s; }
.count { margin-top: 6px; font-weight: 700; font-size: .9rem; }
.game-card.complete::after { content: "★"; position: absolute; top: 8px; right: 12px; font-size: 2rem; color: var(--accent-3); text-shadow: 0 2px 0 #0004; }

