/* ===========================================
   PAGE: Postbox Solitaire (loaded after style.css)
   Laid out like the BiteMap page. The hero is the puzzle's own night: the picture
   stands in a glow of its theme's colour, and the whole stage takes that colour
   when you switch pictures. Tapping a dark piece opens it, as a win does in the game.
   =========================================== */

.pb-hero {
  --room: #3B2470;
  --light: #6B4BA8;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + var(--space-10)) var(--gutter) var(--space-12);
  background:
    radial-gradient(ellipse 70% 60% at 68% 45%, var(--light) 0%, transparent 70%),
    var(--room);
  transition: background-color 0.6s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.pb-hero__inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

.pb-hero__copy {
  text-align: center;
  position: relative;
  z-index: 2;
}

.pb-hero__title {
  font-size: clamp(52px, 7.6vw, 92px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: #fff;
  margin: 0 0 var(--space-4);
}

.pb-hero__lead {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 var(--space-4);
}

.pb-hero__lead em {
  font-style: normal;
  color: #FFC23D;
}

.pb-hero__desc {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: rgba(255, 255, 255, 0.82);
  max-width: 440px;
  margin: 0 auto var(--space-3);
}

.pb-hero__meta {
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 var(--space-8);
}

.pb-hero .store-badges { justify-content: center; }

/* Until the store page is live: a gold tag beside a dimmed, unlinked badge. */
.pb-soon {
  align-items: center;
  gap: 12px;
}

.pb-soon__tag {
  font-size: var(--text-sm);
  font-weight: 800;
  color: #2A1408;
  background: #FFC23D;
  padding: 8px 14px;
  border-radius: 10px;
  box-shadow: 0 4px 0 #B07A12;
}

.pb-soon__badge {
  height: 40px;
  width: auto;
  opacity: 0.55;
}

.pb-hero__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.pb-hero__link,
.pb-hero__sep {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.75);
}

.pb-hero__link {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  transition: color var(--transition-fast);
}

.pb-hero__link:hover { color: #fff; }

/* The stage: the framed picture, its name, and the picker under it. */
.pb-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pb-frame {
  width: min(68vw, 340px);
  aspect-ratio: 2 / 3;
  padding: 12px;
  background: #FFF4DC;
  border-radius: 20px;
  transform: rotate(-2deg);
  box-shadow: 0 0 0 4px #FFC23D, 0 30px 60px rgba(0, 0, 0, 0.45);
}

.pb-picture {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #1E0F42 center / cover;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, 1fr);
  padding: 0;
  margin: 0;
  list-style: none;
}

.pb-piece {
  border: 1px solid rgba(255, 244, 220, 0.5);
  perspective: 600px;
}

/* A locked piece is a dark card over the picture; opening it flips the card away. */
.pb-piece__cover {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: linear-gradient(160deg, #3B2275, #1E0F42);
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.pb-piece__cover img {
  width: 40%;
  height: auto;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4));
  transition: transform 0.15s ease;
}

.pb-piece__cover:hover img { transform: scale(1.12); }

.pb-piece__cover:focus-visible {
  outline: 3px solid #FFC23D;
  outline-offset: -3px;
}

.pb-piece--open .pb-piece__cover {
  transform: rotateY(90deg);
  opacity: 0;
  pointer-events: none;
}

.pb-stage__hint {
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.pb-stage__name {
  margin-top: var(--space-2);
  font-size: var(--text-lg);
  font-weight: 800;
  color: #fff;
}

.pb-stage__count {
  margin-left: 8px;
  font-variant-numeric: tabular-nums;
  color: #FFC23D;
}

.pb-picker {
  margin-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.pb-picker__chip {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.25);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.pb-picker__chip img {
  width: 100%;
  height: 100%;
  display: block;
}

.pb-picker__chip:hover { transform: scale(1.08); }

.pb-picker__chip[aria-pressed="true"] { border-color: #fff; }

.pb-picker__chip:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* Phones: the picture first, where the eye lands, then the words. */
@media (max-width: 899px) {
  .pb-stage { order: -1; }
  .pb-frame { width: min(64vw, 34vh, 300px); }
  .pb-stage__hint { margin-top: var(--space-5); }
  /* All six pictures on one row, even at 320px. */
  .pb-picker { gap: 8px; flex-wrap: nowrap; }
  .pb-picker__chip { width: 44px; height: 44px; }
  .pb-hero { padding-top: calc(var(--nav-height) + var(--space-6)); }
  .pb-hero__inner { gap: var(--space-6); }
}

@media (min-width: 900px) {
  .pb-hero__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }

  .pb-hero__copy { text-align: left; }

  .pb-hero__desc { margin-left: 0; }

  .pb-hero .store-badges,
  .pb-hero__links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .pb-hero { transition: none; }
  .pb-piece--open .pb-piece__cover { transform: none; }
}

/* ----- Below the hero: dark and quiet, so the coloured night above leads. ----- */

.pb-wrap {
  max-width: 1080px;
  margin: 0 auto;
}

.pb-heading {
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
  text-align: center;
  margin: 0 0 var(--space-12);
}

.pb-how {
  padding: var(--space-20) var(--gutter);
  background: #18122A;
}

.pb-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-16);
}

.pb-step {
  text-align: center;
  max-width: 320px;
  margin: 0 auto;
}

.pb-step__phone {
  width: 220px;
  max-width: 100%;
  height: auto;
  margin: 0 auto var(--space-6);
  display: block;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.5));
}

.pb-step__num {
  width: 32px;
  height: 32px;
  margin: 0 auto var(--space-3);
  border-radius: 50%;
  background: #FFC23D;
  color: #18122A;
  font-weight: 900;
  font-size: 15px;
  line-height: 32px;
}

.pb-step__title {
  font-size: var(--text-lg);
  font-weight: 800;
  color: #fff;
  margin: 0 0 var(--space-2);
}

.pb-step__text {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.pb-inside {
  padding: var(--space-20) var(--gutter);
  background: #201836;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pb-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8) var(--space-12);
}

.pb-list li {
  padding-left: var(--space-5);
  border-left: 3px solid #FFC23D;
}

.pb-list h3 {
  font-size: var(--text-md);
  font-weight: 800;
  color: #fff;
  margin: 0 0 var(--space-2);
}

.pb-list p {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

@media (min-width: 760px) {
  .pb-steps { grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
  .pb-list { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .pb-list { grid-template-columns: repeat(3, 1fr); }
}

.faq__help-note {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin: 0 0 var(--space-4);
}

/* Short Turkish summary for people who land here from the Turkish store page. */
.pb-tr {
  padding: var(--space-16) var(--gutter);
  border-top: 1px solid var(--color-border);
}

.pb-tr h2 {
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-4);
}

.pb-tr p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-3);
}

.pb-tr a {
  color: var(--color-text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Same light grain as BiteMap: at full strength it soiled the picture and the phones. */
.grain { opacity: 0.05; }
