/* ============================================================
   poople.css — Poople (poople.io) chrome + gate skin.
   Brand tokens lifted verbatim from poople.io's own build stylesheet
   (assets/index-DAQrmn29.css): --bg_color, --primary_color,
   --secondary_color, --highlight_color, --accent_color, incl. their
   dark-mode override block. System-font stack + Arial Black title,
   Box/Key/Modal rules ported from the same file.
   ============================================================ */

body.poople {
  --bg_color: #eee;
  --primary_color: #111;
  --secondary_color: #666;
  --highlight_color: #915d36;
  --accent_color: #4e7cff;
  color-scheme: light dark;

  /* engine tokens */
  --brand: var(--accent_color);
  --brand-ink: #fff;

  margin: 0;
  background-color: var(--bg_color);
  color: var(--primary_color);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (prefers-color-scheme: dark) {
  body.poople {
    --bg_color: #202020;
    --primary_color: lightgrey;
    --secondary_color: #707070;
    --highlight_color: #67320b;
    --accent_color: #4e7cff;
  }
}

.pp-app { max-width: 720px; margin: 0 auto; padding: 0 0 40px; min-height: 100vh; box-sizing: border-box; }

/* ---------- header ---------- */
.pp-header { padding: 14px 16px 0; }
.pp-title { display: flex; justify-content: center; align-items: baseline; }
.pp-title h1 {
  margin: 0; font-family: "Arial Black", Arial, sans-serif; font-size: 1.5rem;
  font-weight: 900; letter-spacing: -.01em;
}
.pp-title img { height: 1.7rem; margin-left: .5em; user-select: none; }
.pp-subheader { display: block; text-align: center; margin-top: .35rem; color: var(--secondary_color); font-size: .85rem; }
.pp-header hr { border: none; border-top: 1px solid rgba(127, 127, 127, .25); margin-top: .8rem; }

/* ---------- layout ---------- */
.pp-body {
  display: grid; gap: 8px; padding: 18px 16px 0;
  grid-template-columns: minmax(0, 1fr); justify-items: center;
}
.pp-ad {
  display: none; width: 100%; max-width: 320px; min-height: 50px;
  border: 1px dashed rgba(127, 127, 127, .3); border-radius: 4px;
  align-items: center; justify-content: center;
  color: var(--secondary_color); font-size: 11px; letter-spacing: .05em; text-transform: uppercase;
}
.pp-ad.leaderboard { display: flex; max-width: 468px; min-height: 60px; margin: 0 auto 4px; }

/* ---------- game area ---------- */
.pp-gamearea { display: grid; justify-content: center; gap: 4px; width: 100%; }
.pp-intro-cta { text-align: center; margin: 4px 0 14px; }
.pp-intro-cta button {
  cursor: pointer; background: none; border: none; color: var(--secondary_color);
  font-size: .85rem; text-decoration: underline; font-family: inherit;
}

.pp-rowcontainer { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 14px; }
.pp-error {
  color: var(--secondary_color); font-size: .8rem; min-height: 1.2em; opacity: 0; transition: opacity .2s;
}
.pp-error.show { opacity: 1; }

.pp-row { display: flex; justify-content: center; }
.pp-row.wiggle { animation: pp-wiggle .25s both ease; }
@keyframes pp-wiggle { 0% { translate: 0; } 25% { translate: -7px; } 75% { translate: 7px; } to { translate: 0; } }

.pp-box {
  width: min(3.4rem, 15vw); height: min(3.4rem, 15vw); margin: .2rem;
  font-size: 1.7rem; line-height: min(3rem, 13vw); font-weight: 700; text-align: center;
  user-select: none; border: var(--secondary_color) 2px solid; background-color: transparent;
  color: var(--primary_color); border-radius: 3px; box-sizing: border-box;
}
.pp-box.given { border-style: dashed; opacity: .85; }
.pp-box.highlight { animation: pp-flip .5s forwards linear; }
@keyframes pp-flip {
  0% { transform: scaleX(1); animation-timing-function: ease-in; }
  49.9% { background-color: transparent; }
  50% { transform: scaleX(0); background-color: var(--highlight_color); animation-timing-function: ease-out; color: #fff; }
  to { background-color: var(--highlight_color); transform: scaleX(1); color: #fff; }
}

/* ---------- keyboard ---------- */
.pp-keyboard { width: fit-content; margin: 10px auto 0; }
.pp-kbrow { display: flex; justify-content: center; line-height: 1.5; font-size: 1rem; margin-bottom: 6px; }
.pp-key {
  --key_width: min(2.1rem, 8vw); --key_height: min(2.7rem, 10.5vw);
  transition-duration: .1s; user-select: none; cursor: pointer;
  background: rgba(127, 127, 127, .25); color: var(--primary_color); font-weight: 700;
  height: var(--key_height); line-height: var(--key_height); margin: 3px; border-radius: 4px;
  min-width: var(--key_width); border: none; font-family: inherit; font-size: .85rem; padding: 0 4px;
}
.pp-key:hover { background: rgba(127, 127, 127, .38); }
.pp-key:active { background: rgba(127, 127, 127, .5); }
.pp-key.wide { min-width: calc(var(--key_width) * 1.6); font-size: .7rem; }

/* ---------- footer ---------- */
.pp-footer {
  display: flex; justify-content: center; gap: 2.5rem; margin-top: 24px; padding: 0 16px;
  font-weight: 300; opacity: .65; flex-wrap: wrap;
}
.pp-footer p { margin: 0; cursor: pointer; user-select: none; font-size: .82rem; }
.pp-footer p:hover { text-decoration: underline; }

/* ---------- modals ---------- */
.pp-modal-backdrop {
  position: fixed; inset: 0; z-index: 900; background-color: #000; opacity: .5;
}
.pp-modal {
  position: fixed; top: 50%; left: 50%; translate: -50% -50%; z-index: 901;
  box-sizing: border-box; max-width: min(90vw, 420px); max-height: 85vh; overflow: auto;
  background-color: var(--bg_color); color: var(--primary_color);
  padding: 1.8rem 1.5rem 1.4rem; border-radius: .6rem;
}
.pp-modal-close {
  background: none; border: none; color: var(--secondary_color); font-size: 1.3rem;
  position: absolute; top: .4rem; right: .7rem; cursor: pointer;
}
.pp-modal h2 { font-size: 1.3rem; font-weight: 400; text-align: center; margin: 0 0 1rem; }
.pp-modal p { line-height: 1.55; font-size: .92rem; }
.pp-modal .pp-small-italics { font-style: italic; color: var(--secondary_color); }
.pp-modal b { font-weight: 700; }

.pp-entries { display: flex; margin: 1rem .5rem; gap: 1rem; justify-content: space-around; text-align: center; }
.pp-entry h3 { font-weight: 400; font-size: 1.8rem; margin: 0; line-height: 1; }
.pp-entry p { font-size: .78rem; margin: .2rem 0 0; color: var(--secondary_color); }

.pp-link {
  text-decoration: underline; cursor: pointer; color: var(--secondary_color);
  background: none; border: none; font-family: inherit; font-size: .88rem; padding: 0;
}
.pp-link + .pp-link { margin-left: 1.4rem; }
.pp-copy-feedback { margin-left: .6em; opacity: 0; transition: opacity .2s; }
.pp-copy-feedback.show { opacity: 1; }

.pp-share-grid { font-size: 1.1rem; line-height: 1.3; text-align: center; margin: 1rem 0; letter-spacing: .05em; }

/* ============================================================
   rewarded gate — skinned to Poople's own light/dark furniture
   ============================================================ */
body.poople .gate-screen {
  background: color-mix(in srgb, var(--bg_color) 82%, transparent);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
body.poople .gate-eyebrow {
  font-family: "Arial Black", Arial, sans-serif; color: var(--highlight_color);
  font-size: 11px; letter-spacing: .25em; font-weight: 900; text-transform: uppercase;
}
body.poople .reward-locker {
  background: var(--bg_color);
  border: 2px solid var(--secondary_color);
  border-radius: .6rem;
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .5);
}
body.poople .reward-locker .lock-badge { display: none; }
body.poople .reward-locker h3 {
  font-family: "Arial Black", Arial, sans-serif; color: var(--primary_color);
  font-weight: 900; letter-spacing: -.01em;
}
body.poople .reward-locker p { color: var(--secondary_color); font-family: inherit; }
body.poople .rv-cta {
  background: var(--accent_color); color: #fff; font-family: inherit; font-weight: 700;
  border-radius: 6px; letter-spacing: .01em;
}
body.poople .rv-cta:hover { filter: brightness(1.08); transform: none; }
body.poople .rv-later { font-family: inherit; color: var(--secondary_color); }
body.poople .rv-later:hover { color: var(--primary_color); }
body.poople .reward-locker .rv-foot { display: none; }
body.poople .reward-locker.has-included .lk-side { border-left-color: rgba(127, 127, 127, .3); }
body.poople .lk-side h4 { font-family: "Arial Black", Arial, sans-serif; color: var(--highlight_color); font-weight: 900; letter-spacing: .03em; }
body.poople .lk-side li { font-family: inherit; color: var(--primary_color); }
body.poople .lk-side li svg { color: var(--accent_color); }
body.poople .gate-fine { font-family: inherit; color: var(--secondary_color); }
body.poople .gate-fine .lnk { color: var(--accent_color); text-decoration: none; }
body.poople .rv-floating {
  background: var(--bg_color); border-top: 2px solid var(--secondary_color);
}
body.poople .rv-floating .txt { font-family: inherit; color: var(--primary_color); }
body.poople .rv-floating button {
  background: var(--accent_color); color: #fff; border-radius: 6px; font-family: inherit; font-weight: 700;
}
