/* Shared cozy styles for playground games */
@import url("../../assets/fonts/fonts.css");
@import url("emoji-font.css");
:root {
  --bg: oklch(0.97 0.015 75);
  --bg-2: oklch(0.94 0.02 70);
  --card: oklch(0.99 0.008 80);
  --ink: oklch(0.28 0.04 50);
  --ink-mute: oklch(0.55 0.03 60);
  --line: oklch(0.88 0.02 70);
  --accent: oklch(0.62 0.13 45);
  --accent-soft: oklch(0.92 0.05 50);
  --good: oklch(0.7 0.13 145);
  --bad: oklch(0.62 0.18 25);
  --warn: oklch(0.78 0.13 85);
}
[data-theme="dark"] {
  --bg: oklch(0.18 0.02 50);
  --bg-2: oklch(0.22 0.025 55);
  --card: oklch(0.24 0.025 55);
  --ink: oklch(0.94 0.02 70);
  --ink-mute: oklch(0.7 0.02 65);
  --line: oklch(0.32 0.025 55);
  --accent: oklch(0.78 0.14 60);
  --accent-soft: oklch(0.32 0.06 55);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Nunito', -apple-system, system-ui, 'Noto Color Emoji', 'Apple Color Emoji', 'Segoe UI Emoji', sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: 'Source Serif 4', Georgia, 'Noto Color Emoji', serif; font-weight: 600; letter-spacing: -0.01em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); cursor: pointer;
  font: 600 14px 'Nunito', sans-serif;
  transition: all 0.15s ease;
}
.btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: white; border-color: var(--accent); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; }

.pg-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px; border-bottom: 1px solid var(--line); background: var(--card);
}
.pg-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Source Serif 4', Georgia, serif; font-size: 18px; font-weight: 600;
}
.pg-brand .mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--accent); color: white;
  display: grid; place-items: center; font-size: 14px;
}
.pg-actions { display: flex; gap: 8px; align-items: center; }

.pg-game-shell {
  max-width: 720px; margin: 0 auto; padding: 32px 24px;
}
.pg-game-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 24px; padding: 32px;
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.04), 0 14px 40px -20px oklch(0 0 0 / 0.12);
}
.pg-game-header { margin-bottom: 24px; }
.pg-game-header h1 { margin: 0 0 4px; font-size: 28px; }
.pg-game-header p { margin: 0; color: var(--ink-mute); font-size: 14px; }

.hud {
  display: flex; gap: 18px; flex-wrap: wrap;
  padding: 12px 16px; background: var(--bg-2);
  border-radius: 12px; margin-bottom: 20px;
  font-size: 14px; color: var(--ink-mute);
}
.hud b { color: var(--ink); font-weight: 700; font-family: 'Source Serif 4', Georgia, serif; }

.toast-host {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 8px; z-index: 100;
  pointer-events: none;
}
.toast {
  background: var(--ink); color: var(--bg);
  padding: 10px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  animation: toast-in 0.4s ease;
  box-shadow: 0 10px 30px -10px oklch(0 0 0 / 0.3);
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
