/* NgideIn features of the play page: the Boyaa store (a parchment sheet
   on the board's wood, like the game's own dialogs), the "Bagikan" button
   and the gold Boyaa coin, drawn after the game's "B" coin. */

.boyaa-coin {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid #9a5a00;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6b0, #f5c518 55%, #c98a00);
  color: #7a4300;
  font: 400 13px/1 "Lilita One", system-ui, sans-serif;
}

.btn--share {
  background: linear-gradient(180deg, #d8ff9a 0%, var(--leaf) 50%, #4f9a12 100%);
  animation: share-nudge 2.4s ease-in-out infinite;
}

@keyframes share-nudge {
  0%, 85%, 100% { transform: none; }
  90% { transform: translateY(-2px) rotate(-1.5deg); }
  95% { transform: translateY(-1px) rotate(1.5deg); }
}

@media (prefers-reduced-motion: reduce) { .btn--share { animation: none; } }

.btn--quiet { background: linear-gradient(180deg, #f3e7cf 0%, var(--cream-soft) 100%); }

.services-note {
  width: min(100%, var(--wrap));
  margin: 10px auto 0;
  padding: 0 16px;
  color: var(--cream);
  font-weight: 600;
  text-align: center;
}
.services-note .btn { margin-left: 8px; vertical-align: middle; }

/* ---- Store dialog ---- */

.store {
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}
.store::backdrop { background: rgba(20, 8, 2, 0.72); }

.store__board {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(100svh - 32px);
  padding: 18px 20px 16px;
  border: 3px solid var(--wood-deep);
  border-radius: 18px;
  background: url("/frame/parchment.jpg") center / cover, var(--cream);
  box-shadow: 0 0 0 4px var(--wood), 0 18px 40px rgba(0, 0, 0, 0.55);
  overflow: auto;
}

.store__head { display: flex; align-items: center; justify-content: space-between; }
.store__title { margin: 0; font: 400 28px/1.1 "Lilita One", system-ui, sans-serif; color: var(--wood-deep); }
.store__close {
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 2px solid var(--ink); border-radius: 50%;
  background: linear-gradient(180deg, #ff9a7a, #d8431c); color: #fff; cursor: pointer;
}
.store__close svg { width: 18px; height: 18px; }

.store__wallet {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px;
  padding: 10px 14px; border-radius: 12px; background: rgba(90, 44, 15, 0.12);
}
.store__wallet strong { display: block; font: 400 20px/1.2 "Lilita One", system-ui, sans-serif; }
.store__label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.75; }
.store__topup { margin-left: auto; }

.store__sale, .store__notice { margin: 0; padding: 8px 12px; border-radius: 10px; font-weight: 700; }
.store__sale { background: #d8431c; color: #fff; }
.store__notice--info { background: rgba(90, 44, 15, 0.12); }
.store__notice--warn { background: #ffe08a; }
.store__notice--error { background: #ffd0c2; color: #7a1600; }
.store__notice--done { background: #d8f5b0; color: #234d00; }

.store__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.store__empty { grid-column: 1 / -1; margin: 12px 0; text-align: center; }

.store__offer {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 10px; border: 2px solid rgba(90, 44, 15, 0.35); border-radius: 14px;
  background: rgba(255, 249, 232, 0.85); text-align: center;
}
.store__name { margin: 0; font: 400 18px/1.1 "Lilita One", system-ui, sans-serif; }
.store__price { display: flex; flex-direction: column; margin: 0; font-size: 13px; }
.store__price strong { font-size: 16px; }
.store__normal { opacity: 0.6; }
.store__buy { width: 100%; justify-content: center; }

/* bigger packs show bigger piles of coins */
.store__coins {
  width: 64px; height: 48px;
  background:
    radial-gradient(circle at 50% 70%, #f5c518 0 13px, #9a5a00 13px 15px, transparent 15px);
}
.store__coins--2 { background: radial-gradient(circle at 38% 72%, #f5c518 0 12px, #9a5a00 12px 14px, transparent 14px), radial-gradient(circle at 62% 58%, #ffd84a 0 12px, #9a5a00 12px 14px, transparent 14px); }
.store__coins--3, .store__coins--4, .store__coins--5, .store__coins--6 {
  background:
    radial-gradient(circle at 30% 74%, #f5c518 0 11px, #9a5a00 11px 13px, transparent 13px),
    radial-gradient(circle at 70% 74%, #f5c518 0 11px, #9a5a00 11px 13px, transparent 13px),
    radial-gradient(circle at 50% 42%, #ffe06a 0 12px, #9a5a00 12px 14px, transparent 14px);
}

.store__foot { margin: 0; font-size: 12px; opacity: 0.8; }

.store__confirm {
  position: absolute; inset: 0; display: grid; place-items: center;
  padding: 20px; border-radius: 16px; background: rgba(43, 20, 7, 0.55);
}
.store__confirm[hidden] { display: none; }
.store__confirm-card {
  max-width: 420px; padding: 18px; border: 3px solid var(--wood-deep); border-radius: 14px;
  background: var(--cream); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.store__confirm-card p { margin: 0 0 14px; font-weight: 600; }
.store__confirm-actions { display: flex; justify-content: flex-end; gap: 10px; }

@media (max-width: 560px) {
  .store__board { padding: 14px 12px; }
  .store__topup { margin-left: 0; }
}
