/* ============================================================
   Bin the Rejection, game section styles.
   Merged into styles.css at integration time.
   ============================================================ */

/* land share link arrivals just below the sticky header */
#binit { scroll-margin-top: 84px; }

/* while the game is on screen, the sticky cta stays away */
body.game-in-view .sticky-cta { transform: translateY(110%) !important; }

.game-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  max-width: 860px;
  margin-inline: auto;
}

.game-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}

.game-stats { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.game-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--fs-small);
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
}
.game-chip strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--navy);
}

.game-wind {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--fs-small);
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.game-wind strong { font-family: var(--font-display); font-size: 1.05rem; color: var(--navy); }
.game-wind-arrow { font-weight: 700; color: var(--navy); }
.game-wind.is-strong { border-color: var(--navy); }
.game-wind.is-strong .game-wind-arrow { animation: windNudge 0.6s ease-in-out infinite alternate; }

@keyframes windNudge {
  from { transform: translateX(-2px); }
  to { transform: translateX(2px); }
}
@media (prefers-reduced-motion: reduce) {
  .game-wind.is-strong .game-wind-arrow { animation: none; }
}

.game-sound {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  width: 2.2rem;
  height: 2.2rem;
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
  touch-action: manipulation;
}
.game-sound:hover { border-color: var(--navy); }

/* narrow screens: tighter hud, one clean row that wraps well */
@media (max-width: 560px) {
  .game-hud { padding: 0.6rem 0.7rem; gap: 0.45rem; }
  .game-chip,
  .game-wind { padding: 0.24rem 0.6rem; font-size: 0.72rem; gap: 0.3rem; }
  .game-chip strong,
  .game-wind strong { font-size: 0.95rem; }
  .game-sound { width: 2rem; height: 2rem; }
  .game-hint { font-size: 0.72rem; padding: 0.3rem 0.8rem; bottom: 0.6rem; max-width: 92%; text-align: center; }
  .game-claim { bottom: 2.6rem; padding: 0.5rem 0.7rem; gap: 0.45rem; }
  .game-claim label { font-size: 0.78rem; }
  .game-share { bottom: 1.6rem; padding: 0.85rem 0.8rem 0.9rem; }
  .game-share-ic { width: 42px; height: 42px; border-radius: 13px; }
  .game-share-ic svg { width: 22px; height: 22px; }
  .game-cta-panel h3 { font-size: 1.25rem; }
}
.game-chip,
.game-share-tile,
.game-share-copy,
.game-share-brag,
.game-claim button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

.game-stage { position: relative; }

.game-canvas {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11;
  touch-action: pan-y; /* the game claims lower zone touches itself */
  cursor: grab;
  outline-offset: -4px;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
.game-canvas:active { cursor: grabbing; }
@media (max-width: 560px) {
  .game-canvas { aspect-ratio: 5 / 6; }
}

.game-hint {
  position: absolute;
  left: 50%;
  bottom: 0.9rem;
  transform: translateX(-50%);
  margin: 0;
  font-size: var(--fs-small);
  color: var(--ink-soft);
  background: rgb(255 255 255 / 0.85);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.game-hint.is-hidden { opacity: 0; }

.game-cta {
  text-align: center;
  margin-top: 1.6rem;
  color: var(--ink-soft);
}
.game-cta a { color: var(--accent-deep); font-weight: 600; }

/* ---------- leaderboard claim overlay ----------
   the board itself lives on the office wall, in canvas.
   the [hidden] rule matters: display flex would otherwise
   override the hidden attribute and show the box at boot */
.game-claim[hidden],
.game-share[hidden] { display: none !important; }

.game-claim {
  position: absolute;
  left: 50%;
  bottom: 3.2rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: min(92%, 30rem);
  background: rgb(255 255 255 / 0.94);
  border: 1px solid var(--navy);
  border-radius: 12px;
  padding: 0.55rem 0.8rem;
  box-shadow: var(--shadow-md);
}
.game-claim label { color: var(--navy); font-size: var(--fs-small); }
.game-claim b { font-family: var(--font-display); font-size: 1.1rem; }
.game-claim input {
  width: 4.5em;
  text-align: center;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-family: var(--font-display);
  font-size: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.3rem 0.2rem;
}
.game-claim input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.game-claim button {
  border: 0;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
}
.game-claim button:hover { background: var(--navy-soft); }

/* share panel, appears after making the wall.
   this is the growth loop: make sharing effortless everywhere */
.game-share {
  position: absolute;
  left: 50%;
  bottom: 2.6rem;
  transform: translateX(-50%);
  width: min(92%, 26rem);
  background: rgb(255 255 255 / 0.97);
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 1.1rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.game-share-title {
  margin: 0 0 0.15rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--navy);
  font-size: 1.1rem;
}
.game-share-title b { color: var(--accent-deep); }
.game-share-sub {
  margin: 0 0 0.75rem;
  font-size: var(--fs-small);
  color: var(--ink-soft);
}
.game-share-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem 0.3rem;
}
.game-share-tile {
  border: 0;
  background: none;
  padding: 0.15rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.32rem;
}
.game-share-ic {
  width: 47px;
  height: 47px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 3px 10px rgb(11 28 51 / 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.game-share-ic svg { width: 25px; height: 25px; display: block; }
.game-share-tile:hover .game-share-ic,
.game-share-tile:focus-visible .game-share-ic {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 6px 16px rgb(11 28 51 / 0.26);
}
.game-share-tile:active .game-share-ic { transform: scale(0.95); }
.game-share-lab {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.is-facebook { background: #1877f2; }
.is-x { background: #0f1419; }
.is-whatsapp { background: #25d366; }
.is-linkedin { background: #0a66c2; }
.is-reddit { background: #ff4500; }
.is-tiktok { background: #010101; }
.is-email { background: var(--navy-soft); }
.is-more { background: var(--navy); }
.is-instagram {
  background: radial-gradient(circle at 28% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}
.game-share-copy {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.2rem;
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--navy);
  cursor: pointer;
}
.game-share-copy:hover { border-color: var(--navy); background: var(--paper); }
.game-share-copy svg { width: 15px; height: 15px; }

.game-share-brag {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05rem;
  margin-top: 0.3rem;
  border: 0;
  background: var(--navy);
  color: #fff;
  border-radius: 12px;
  padding: 0.6rem 0.9rem;
  cursor: pointer;
}
.game-share-brag:hover { background: var(--navy-soft); }
.game-share-brag span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
}
.game-share-brag small { color: #b9c5d8; font-size: 0.72rem; }
.game-share-close {
  position: absolute;
  top: 0.4rem;
  right: 0.6rem;
  border: 0;
  background: none;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
}
.game-share-close:hover { color: var(--navy); }

/* how to play strip + closing cta */
.game-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  max-width: 860px;
  margin: 1.1rem auto 0;
  padding: 0;
}
@media (max-width: 640px) { .game-steps { grid-template-columns: 1fr; } }
.game-steps li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-size: var(--fs-small);
  color: var(--ink-soft);
}
.game-steps strong {
  display: block;
  font-family: var(--font-display);
  color: var(--navy);
  margin-bottom: 0.2rem;
  font-size: 1rem;
}
.game-fineprint {
  text-align: center;
  font-size: var(--fs-small);
  color: var(--ink-soft);
  max-width: 860px;
  margin: 0.9rem auto 0;
}
.game-cta-panel {
  max-width: 860px;
  margin: 2.2rem auto 0;
  text-align: center;
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.6rem);
}
.game-cta-panel h3 {
  color: #fff;
  font-size: var(--fs-h3);
  margin: 0 0 0.5rem;
}
.game-cta-panel p {
  color: #b9c5d8;
  margin: 0 auto 1.2rem;
  max-width: 34rem;
}

/* tidy up button in the hud */
.game-clean {
  cursor: pointer;
  font: inherit;
}
.game-clean:hover { border-color: var(--navy); }
.game-clean:disabled { opacity: 0.45; cursor: default; }
