/* ============================================================
   HUM N PLAY — SHARED GAMES STYLES
   ============================================================
   Lives at: /games/games.css
   Each game links to it: <link rel="stylesheet" href="../games.css">

   Update this file to change brand-wide styles across ALL games.
   ============================================================ */

/* ---------- Font imports ---------- */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Inter:ital,wght@0,400;0,500;0,600;1,500&display=swap');

/* ---------- Brand color variables ---------- */
:root {
  /* Backgrounds & neutrals */
  --hnp-bg: #ffffff;
  --hnp-bg-soft: #F5FBFA;     /* very pale teal for accents */
  --hnp-ink: #1a1a2e;          /* primary text */
  --hnp-ink-soft: #4a4a5e;     /* secondary text */
  --hnp-ink-faint: #8a8a9a;    /* tertiary/labels */
  --hnp-line: #e5dac6;         /* subtle borders */
  --hnp-border: #ddd;          /* standard borders */

  /* Brand colors */
  --hnp-teal: #0EBFB5;
  --hnp-teal-dark: #076B65;
  --hnp-teal-light: #D4F2EF;
  --hnp-pink: #FF3D8A;
  --hnp-pink-light: #ffd6e6;

  /* Sizing */
  --hnp-radius-sm: 8px;
  --hnp-radius-md: 12px;
  --hnp-radius-lg: 16px;
  --hnp-radius-pill: 999px;

  /* Fonts */
  --hnp-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --hnp-font-mono: 'IBM Plex Mono', monospace;
}

/* ---------- Base resets ---------- */
.hnp-game * { box-sizing: border-box; }

.hnp-game {
  font-family: var(--hnp-font-sans);
  color: var(--hnp-ink);
  background: var(--hnp-bg);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Back button ---------- */
.hnp-back {
  max-width: 900px;
  width: 100%;
  margin: 0 auto 0;
  padding: 30px 20px 0;
  display: flex;
  justify-content: flex-start;
}

.hnp-back a {
  display: inline-block;
  padding: 12px 24px;
  font-family: var(--hnp-font-mono);
  font-size: 14px;
  color: var(--hnp-ink);
  text-decoration: none;
  letter-spacing: 0.04em;
  border: 2px solid var(--hnp-ink);
  border-radius: var(--hnp-radius-pill);
  background: var(--hnp-bg);
  box-shadow: 4px 4px 0 var(--hnp-pink);
  transition: all 0.2s ease;
}

.hnp-back a:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--hnp-pink);
  background: var(--hnp-pink);
  color: var(--hnp-bg);
}

/* ---------- Common button styles ---------- */

/* Primary button (white with teal shadow, fills teal on hover) */
.hnp-btn-primary {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--hnp-font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--hnp-ink);
  background: var(--hnp-bg);
  border: 2px solid var(--hnp-ink);
  border-radius: var(--hnp-radius-pill);
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--hnp-teal);
  transition: all 0.2s ease;
  text-decoration: none;
}

.hnp-btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--hnp-teal);
  background: var(--hnp-teal);
  color: var(--hnp-bg);
}

/* Secondary/ghost button (outlined, subtle hover) */
.hnp-btn-ghost {
  display: inline-block;
  padding: 10px 20px;
  font-family: var(--hnp-font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--hnp-ink-soft);
  background: transparent;
  border: 1.5px solid var(--hnp-border);
  border-radius: var(--hnp-radius-pill);
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.hnp-btn-ghost:hover {
  border-color: var(--hnp-ink);
  color: var(--hnp-ink);
  background: var(--hnp-bg-soft);
}

/* Pill option (for duration selectors, palettes, etc) */
.hnp-pill {
  padding: 10px 22px;
  font-family: var(--hnp-font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--hnp-ink-soft);
  background: var(--hnp-bg);
  border: 1.5px solid var(--hnp-border);
  border-radius: var(--hnp-radius-pill);
  cursor: pointer;
  transition: all 0.15s ease;
}

.hnp-pill:hover {
  background: var(--hnp-bg-soft);
  color: var(--hnp-ink);
}

.hnp-pill.active {
  background: var(--hnp-teal-light);
  border-color: var(--hnp-teal);
  color: var(--hnp-teal-dark);
  font-weight: 600;
}

/* ---------- Typography helpers ---------- */

/* Game title (top of each game's setup screen) */
.hnp-title {
  font-family: var(--hnp-font-sans);
  font-weight: 600;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--hnp-ink);
  margin: 0 0 0.75rem;
}

/* Subtitle / lede under title */
.hnp-subtitle {
  font-family: var(--hnp-font-sans);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--hnp-ink-soft);
  margin: 0;
}

/* Eyebrow label above titles */
.hnp-eyebrow {
  font-family: var(--hnp-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hnp-teal);
}

/* Section label (small uppercase) */
.hnp-section-label {
  font-family: var(--hnp-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hnp-ink-faint);
}

/* Body / prompt text */
.hnp-body {
  font-family: var(--hnp-font-sans);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--hnp-ink);
}

/* Timer / monospaced data display */
.hnp-mono {
  font-family: var(--hnp-font-mono);
  letter-spacing: 0.04em;
}

/* ---------- Layout helpers ---------- */

/* Standard game container */
.hnp-container {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 20px 60px;
}

/* Standard stage layout */
.hnp-stage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- Mobile adjustments ---------- */
@media (max-width: 600px) {
  .hnp-back { padding: 20px 16px 0; }
  .hnp-back a { padding: 10px 20px; font-size: 13px; }
  .hnp-container { padding: 16px 16px 40px; }
  .hnp-title { font-size: 1.65rem; }
  .hnp-subtitle { font-size: 0.95rem; }
}
