/* ---- Store (js/shop.js): Google Play purchases in the Android app (Nov 2026) ---- */

/* Shown only while the store works (the Android app, the server can check purchases) */
.shop-only { display: none !important; }
body.shop-on .shop-only { display: flex !important; }

/* The menu's hint pill gets a "+": in the app a tap opens the store */
#menu-hints .mh-plus { display: none; }
body.shop-on #menu-hints { padding-right: 6px; }
body.shop-on #menu-hints .mh-plus {
  display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-left: 2px;
  border-radius: 50%; background: var(--c-green); color: #fff; font: 800 18px/1 var(--font-display); font-style: normal;
}

#screen-shop { align-items: stretch; }
.shop-balance { display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 14px 0 11px; border-radius: 999px;
  background: var(--surface-2); font-family: var(--font-display); font-size: 18px; font-weight: 800; }
.shop-balance[hidden] { display: none; }
.shop-balance svg { width: 19px; height: 19px; fill: #f6d98a; stroke: #b07d0c; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.shop-body { text-align: left; }
.shop-guest { background: var(--surface); border-radius: 18px; padding: 16px; box-shadow: inset 0 0 0 2px var(--c-orange);
  display: flex; flex-direction: column; gap: 10px; }
.shop-guest[hidden] { display: none; }
.shop-guest p { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.4; }
#shop-signin-btn { width: 100%; margin: 0; }

/* Reklamsız Oyun */
.shop-card { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: var(--surface);
  box-shadow: inset 0 0 0 2px var(--line-soft); }
.shop-ic { flex: none; width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.shop-ic.noads { background: var(--c-teal); color: #fff; }
.shop-ic svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.shop-ic .slash { stroke: #f6d98a; stroke-width: 2.6; }
.shop-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.shop-main b { font-family: var(--font-display); font-size: 19px; font-weight: 800; line-height: 1.1; }
.shop-main small { font-size: 12.5px; font-weight: 700; line-height: 1.35; opacity: 0.75; }
.shop-buy { flex: none; min-width: 84px; height: 44px; padding: 0 14px; border: none; border-radius: 999px; background: var(--c-orange);
  color: #fff; font: 800 16px var(--font-display); cursor: pointer; white-space: nowrap; }
.shop-buy:disabled { opacity: 0.6; cursor: default; }
.shop-card.owned { box-shadow: inset 0 0 0 2px var(--c-green); }
.shop-card.owned .shop-buy { background: var(--c-green); opacity: 1; }

/* Hint packs */
.shop-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 4px; }
.shop-head b { font-family: var(--font-display); font-size: 19px; font-weight: 800; }
.shop-head small { font-size: 12px; font-weight: 700; opacity: 0.65; text-align: right; }
.shop-packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.shop-pack { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 6px 10px;
  border: none; border-radius: 18px; background: var(--surface); color: var(--fg); box-shadow: inset 0 0 0 2px var(--line-soft);
  font: inherit; cursor: pointer; }
.shop-pack:disabled { opacity: 0.6; cursor: default; }
.shop-pack.featured { box-shadow: inset 0 0 0 2.5px var(--c-orange); }
.shop-pack b { font-family: var(--font-display); font-size: 18px; font-weight: 800; line-height: 1; }
.shop-bulbs { height: 34px; display: flex; align-items: flex-end; justify-content: center; }
.shop-bulbs svg { width: 26px; height: 26px; fill: #f6d98a; stroke: #b07d0c; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.shop-bulbs.b2 svg:nth-child(1), .shop-bulbs.b3 svg:nth-child(1) { transform: translateY(-3px) rotate(-12deg); margin-right: -8px; }
.shop-bulbs.b2 svg:nth-child(2) { transform: translateY(-3px) rotate(12deg); }
.shop-bulbs.b3 svg:nth-child(2) { width: 32px; height: 32px; position: relative; z-index: 1; }
.shop-bulbs.b3 svg:nth-child(3) { transform: translateY(-3px) rotate(12deg); margin-left: -8px; }
.shop-price { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 36px; margin-top: 2px;
  border-radius: 999px; background: var(--c-orange); color: #fff; font: 800 15px var(--font-display); white-space: nowrap; }
.shop-pack:not(.featured) .shop-price { background: var(--surface-2); color: var(--fg); }

.shop-note { margin: 0; font-size: 12.5px; font-weight: 700; line-height: 1.45; opacity: 0.7; }

/* "İpucun kalmadı": the way to the store under the two buttons */
.ad-hint-buy { margin: 10px auto 0; padding: 6px 10px; border: none; background: transparent; color: var(--fg);
  font: 800 14px var(--font-ui); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; opacity: 0.8; }
.ad-hint-buy[hidden], #ad-hint-watch[hidden], #ad-hint-shop[hidden] { display: none; }
#ad-hint-shop { background: var(--c-orange); }

@media (max-width: 400px) {
  /* phones up to 400 css px (most Android phones are 360-393):  the remove-ads button goes under its text, the packs' subtitle goes */
  .shop-card { flex-wrap: wrap; }
  .shop-main { flex-basis: calc(100% - 64px); }
  .shop-buy { width: 100%; }
  .shop-head small { display: none; }
  .shop-packs { gap: 7px; }
  .shop-pack b { font-size: 16px; }
  .shop-price { font-size: 13.5px; }
}
