/* Barometer XP — mural.barometerxp.com
   "What does play at work mean to you?" — a collective artifact built across the
   100 Conversations campaign. Own UX; borrows only the brand tokens. */

@font-face {
  font-family: 'Nunito Sans';
  src: url('fonts/nunito-sans.woff2') format('woff2');
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --pink: #E91E8C;
  --pink-hot: #ff8fc7;
  --pink-hover: #ff3fa4;
  --bg-page: #0d0d0d;
  --bg-card: #161616;
  --bg-raised: #1f1f1f;
  --ink: #f7f5f8;
  --text-1: #f5f5f5;
  --text-2: #a3a0a6;
  --border-1: #2a2a2a;
  --border-2: #444444;
  --radius-md: 8px;
  --radius-lg: 12px;
  --font: 'Nunito Sans', 'Segoe UI', system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { background: var(--bg-page); color: var(--text-1); font-family: var(--font);
  font-size: 16px; line-height: 1.6; margin: 0; -webkit-text-size-adjust: 100%; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

header.site { border-bottom: 1px solid rgba(42,42,42,0.6); }
.site-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 56px; }
.wordmark img { height: 30px; width: auto; display: block; }
.purpose { font-weight: 800; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pink-hot); }

.btn { display: inline-block; background: var(--pink); color: #fff; font-family: inherit; font-weight: 800;
  font-size: 15px; border: none; border-radius: var(--radius-md); padding: 12px 26px; cursor: pointer;
  text-decoration: none; transition: background 0.15s ease, opacity 0.15s ease; }
.btn:hover { background: var(--pink-hover); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn:focus-visible { outline: 2px solid var(--pink-hot); outline-offset: 3px; }
.btn.ghost { background: transparent; border: 1px solid var(--border-2); color: var(--text-1); font-weight: 700; }
.btn.ghost:hover { background: var(--bg-raised); border-color: var(--pink); }
.btn.small { font-size: 14px; padding: 9px 18px; }

/* views */
.view { display: none; }
.view.on { display: block; animation: fadeUp 0.4s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .view.on { animation: none; } }

/* the question */
.ask { text-align: center; padding: clamp(36px, 9vh, 90px) 0 clamp(28px, 6vh, 56px); }
.ask h1 { font-size: clamp(28px, 5.4vw, 52px); font-weight: 900; line-height: 1.06;
  margin: 0 auto 16px; max-width: 16em; text-wrap: balance; }
.ask h1 .xp { color: var(--pink); }
.ask .lede { color: var(--text-2); font-size: clamp(15px, 1.6vw, 17px); max-width: 52ch;
  margin: 0 auto; text-wrap: balance; }

.doors { display: grid; grid-template-columns: 1fr; gap: 14px; max-width: 680px; margin: 0 auto;
  padding: 0 0 clamp(30px, 8vh, 70px); }
@media (min-width: 720px) { .doors { grid-template-columns: 1fr 1fr; gap: 18px; } }
.door { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: var(--bg-card); border: 1px solid var(--border-2); border-radius: var(--radius-lg);
  padding: clamp(22px, 4vh, 34px) 20px; text-decoration: none; color: var(--text-1);
  cursor: pointer; font-family: inherit; text-align: center;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease; }
.door:hover:not(.soon) { border-color: var(--pink); transform: translateY(-3px); background: #1a1620; }
.door .dicon { width: 42px; height: 42px; color: var(--pink-hot); }
.door .dicon svg { width: 100%; height: 100%; display: block; }
.door h2 { font-size: 19px; font-weight: 800; margin: 0; }
.door p { font-size: 14px; color: var(--text-2); margin: 0; line-height: 1.45; }
.door.soon { opacity: 0.55; cursor: default; }
.door .tag { position: absolute; top: 10px; right: 10px; font-size: 9px; font-weight: 900;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2);
  border: 1px solid var(--border-2); border-radius: 999px; padding: 2px 8px; }

/* the drawing surface */
.draw-head { text-align: center; padding: 22px 0 14px; }
.draw-head h2 { font-size: clamp(19px, 2.6vw, 26px); font-weight: 900; margin: 0 0 4px; text-wrap: balance; }
.draw-head p { color: var(--text-2); font-size: 14px; margin: 0; }

.canvas-wrap { position: relative; width: min(92vw, 62vh, 760px); aspect-ratio: 1 / 1;
  margin: 0 auto; background: #121212; border: 1px solid var(--border-2);
  border-radius: var(--radius-lg); overflow: hidden; touch-action: none; }
.canvas-wrap canvas { width: 100%; height: 100%; display: block; cursor: crosshair; }
.canvas-hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--text-2); font-size: 15px; pointer-events: none; transition: opacity 0.3s ease; }
.canvas-hint.gone { opacity: 0; }

.tools { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 0 6px; }
.tool { background: var(--bg-card); border: 1px solid var(--border-2); color: var(--text-1);
  font-family: inherit; font-size: 14px; font-weight: 700; border-radius: var(--radius-md);
  padding: 9px 16px; cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease; }
.tool:hover { border-color: var(--pink); background: var(--bg-raised); }
.tool:disabled { opacity: 0.35; cursor: not-allowed; }

.sign { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px;
  padding: 10px 0 40px; }
.sign input { background: var(--bg-card); border: 1px solid var(--border-2); color: var(--text-1);
  font-family: inherit; font-size: 15px; border-radius: var(--radius-md); padding: 11px 14px; width: 200px; }
.sign input::placeholder { color: var(--text-2); }
.sign input:focus { outline: none; border-color: var(--pink); }

/* gallery */
.gal-head { text-align: center; padding: clamp(26px, 6vh, 54px) 0 10px; }
.gal-head h1 { font-size: clamp(24px, 4vw, 40px); font-weight: 900; margin: 0 0 8px; text-wrap: balance; }
.gal-head p { color: var(--text-2); font-size: 15px; margin: 0 auto; max-width: 54ch; text-wrap: balance; }
.count { color: var(--pink-hot); font-weight: 800; }

.grid { display: grid; gap: 12px; padding: 24px 0 60px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
@media (min-width: 720px) { .grid { gap: 16px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); } }
.tile { position: relative; aspect-ratio: 1 / 1; background: #121212; border: 1px solid var(--border-1);
  border-radius: var(--radius-md); overflow: hidden; transition: border-color 0.2s ease, transform 0.2s ease; }
.tile:hover { border-color: var(--pink); transform: translateY(-2px); }
.tile.mine { border-color: var(--pink); box-shadow: 0 0 0 1px var(--pink), 0 0 30px rgba(233,30,140,0.35); }
.tile canvas { width: 100%; height: 100%; display: block; }
.tile .who { position: absolute; left: 8px; bottom: 6px; font-size: 11px; font-weight: 700;
  color: var(--text-2); text-shadow: 0 1px 6px #000; pointer-events: none; }
.empty { text-align: center; color: var(--text-2); padding: 60px 0; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 14px);
  background: var(--bg-raised); border: 1px solid var(--border-2); color: var(--text-1);
  font-size: 14px; font-weight: 700; border-radius: 999px; padding: 10px 20px; z-index: 60;
  opacity: 0; pointer-events: none; transition: opacity 0.22s ease, transform 0.22s ease; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

footer.site { border-top: 1px solid var(--border-1); padding: 22px 0 34px; color: var(--text-2); font-size: 13px; }
footer.site a { color: var(--text-2); }
.foot-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; align-items: center; }

/* A door you've already used stays CLICKABLE — it becomes the way back in to see
   that artefact. Dimmed a little and chipped, not killed: locking people out of
   the half they haven't played yet was the bug. */
.door.done { opacity: 0.7; }
.door.done .done-tag { color: var(--pink-hot); border-color: var(--pink); }
/* the required-initials note under each game's instructions */
.req { color: var(--pink-hot); font-size: 13px; font-weight: 700; }
