/* Apple Brawl shop: donate.html and the PREMIUM card on the main page. Builds on site.css (colours, .btn, .card). */

/* ---------------------------------------------------------------- head */
.shop-hero { position: relative; overflow: hidden; display: flex; align-items: center; border: 3px solid var(--ink); border-radius: 14px;
  background: radial-gradient(120% 140% at 85% 30%, #4fb6ff 0, #1f72f2 45%, #1240a8 100%); box-shadow: 0 6px 0 rgba(17,24,39,.3); padding: 30px 36px; }
.sh-body { position: relative; z-index: 1; flex: 1; min-width: 0; max-width: 620px; }
.shop-hero .brand.big { margin: 14px 0 8px; white-space: normal; }
.sh-lead { color: #fff; font-size: 18px; text-shadow: var(--ol); margin: 0 0 16px; }
.pill img { width: 20px; height: 20px; object-fit: contain; margin-right: 7px; }
.sh-art { flex: none; width: 300px; margin-left: 20px; text-align: center; }
.sh-art img { width: 100%; height: auto; filter: drop-shadow(0 8px 0 rgba(0,0,0,.25)); }
.acc { padding: 14px 16px; max-width: 460px; }
.acc-label, .m-label { display: block; font-size: 15px; margin-bottom: 8px; }
.acc-game { display: flex; align-items: center; font-size: 14px; color: #135c00; background: #e3ffd9; border: 2px solid #9fe58a; border-radius: 8px; padding: 6px 10px; margin-bottom: 8px; }
.acc-game img { width: 20px; height: 20px; margin-right: 8px; }
.inp { display: block; width: 100%; box-sizing: border-box; font: 20px/1.2 "Pusia", sans-serif; letter-spacing: 1px; color: var(--ink); background: var(--soft);
  border: 3px solid var(--ink); border-radius: 8px; padding: 10px 12px; outline: none; -webkit-appearance: none; }
.inp:focus { background: #fff; box-shadow: 0 0 0 3px #ffc400; }
.inp::placeholder { color: var(--dim); letter-spacing: 0; }
.acc-hint { margin: 8px 0 0; }

/* ---------------------------------------------------------------- PREMIUM */
.prem { display: flex; align-items: stretch; border: 3px solid var(--ink); border-radius: 14px; overflow: hidden; box-shadow: 0 6px 0 rgba(17,24,39,.3);
  background: #4b23a8 linear-gradient(135deg, #2a1660 0%, #4b23a8 48%, #7a2fd0 100%); color: #fff; }
.prem-main { flex: 1; min-width: 0; padding: 26px 28px; }
.prem-name { font-family: "Lilita One", "Pusia", sans-serif; font-size: 52px; line-height: 1; letter-spacing: 1px; color: #ffd338; text-shadow: var(--ol3);
  background: linear-gradient(#fff3a6, #ffc400 55%, #ff9d00); -webkit-background-clip: text; background-clip: text; }
@supports (-webkit-background-clip: text) { .prem-name { -webkit-text-fill-color: transparent; text-shadow: none; filter: drop-shadow(0 3px 0 #111827) drop-shadow(0 -2px 0 #111827) drop-shadow(2px 0 0 #111827) drop-shadow(-2px 0 0 #111827); } }
.prem-text { font-size: 17px; margin: 10px 0 16px; max-width: 560px; text-shadow: var(--ol); }
.perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); grid-gap: 10px 14px; gap: 10px 14px; }
.perks.n3 { grid-template-columns: repeat(3, 1fr); }
.perks li { display: flex; align-items: center; background: rgba(255,255,255,.96); color: var(--ink); border: 3px solid var(--ink); border-radius: 10px; padding: 8px 12px 8px 8px; }
.perks li b { display: block; font-weight: 400; font-size: 16px; line-height: 1.2; }
.perks li .muted { display: block; font-size: 13px; line-height: 1.35; margin-top: 2px; }
.pk-ico { position: relative; flex: none; width: 48px; height: 48px; margin-right: 10px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(#f2e8ff, #dcc7ff); border: 2px solid var(--ink); border-radius: 9px; }
.pk-ico img { width: 34px; height: 34px; object-fit: contain; }
.pk-ico i { position: absolute; right: -6px; bottom: -6px; font-style: normal; font-size: 12px; line-height: 1; color: #fff; background: #ff3346;
  border: 2px solid var(--ink); border-radius: 6px; padding: 2px 4px 3px; text-shadow: 0 1px 0 #000; }
.prem-note { margin: 14px 0 0; max-width: 680px; font-size: 13px; line-height: 1.45; color: #f1e8ff; background: rgba(10,0,40,.32);
  border: 2px solid rgba(17,24,39,.6); border-radius: 8px; padding: 8px 12px; }
.prem-plans { flex: none; width: 270px; display: flex; flex-direction: column; justify-content: center; padding: 22px; background: rgba(0,0,0,.22); border-left: 3px solid var(--ink); }
.plan { position: relative; background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 12px; padding: 14px 14px 4px; margin: 8px 0; text-align: center;
  box-shadow: 0 4px 0 rgba(0,0,0,.3); }
.pl-days { font-size: 26px; line-height: 1.1; }
.pl-per { font-size: 13px; margin: 2px 0 2px; }
.plan .btn, .gp .btn, .of-buy .btn { display: block; width: 100%; margin: 10px 0 10px; font-size: 22px; }
.ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%) rotate(-2deg); white-space: nowrap; font-size: 13px; line-height: 1; color: #fff;
  background: #ff3346; border: 3px solid var(--ink); border-radius: 7px; padding: 4px 10px 6px; text-shadow: 0 1px 0 #000; z-index: 1; }

/* ---------------------------------------------------------------- packs and offers */
.offers { display: grid; grid-gap: 16px; gap: 16px; }
.offer { display: flex; align-items: center; padding: 16px 20px; }
.of-pic { flex: none; width: 110px; height: 96px; margin-right: 16px; display: flex; align-items: center; justify-content: center; }
.of-pic img { max-width: 100%; max-height: 100%; filter: drop-shadow(0 5px 0 rgba(0,0,0,.25)); }
.of-body { flex: 1; min-width: 0; }
.of-body h3 { font-size: 24px; display: inline-block; margin: 0 8px 4px 0; }
.of-body p { font-size: 14px; margin: 6px 0 0; }
.items { display: flex; flex-wrap: wrap; margin-top: 8px; }
.it { display: inline-flex; align-items: center; font-size: 18px; background: var(--soft); border: 2px solid var(--soft2); border-radius: 8px; padding: 3px 10px 3px 5px; margin: 0 8px 6px 0; }
.it img { width: 28px; height: 28px; object-fit: contain; margin-right: 5px; }
.it small { font-size: 13px; color: var(--muted); margin-left: 5px; }
.of-buy { flex: none; width: 170px; margin-left: 16px; }

.gems { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 18px; gap: 18px; }
.gp { position: relative; text-align: center; padding: 12px 16px 4px; }
.gp-pic { height: 130px; display: flex; align-items: center; justify-content: center; }
.gp-pic img { max-width: 170px; max-height: 130px; filter: drop-shadow(0 4px 0 rgba(0,0,0,.18)); }
.gp-n { display: flex; align-items: center; justify-content: center; font-size: 30px; line-height: 1; color: #fff; text-shadow: var(--ol2); margin-top: 6px; }
.gp-n img { width: 30px; height: 30px; object-fit: contain; margin-right: 6px; }

.how .hw { position: relative; padding-top: 22px; }
.how .num { position: absolute; top: -14px; left: 16px; width: 34px; height: 34px; border-radius: 8px; border: 3px solid var(--ink); background: #ffc400; color: #fff;
  font-size: 20px; line-height: 28px; text-align: center; text-shadow: var(--ol); }
.how p { font-size: 15px; margin: 4px 0 0; }

.faq { padding: 6px 18px; }
.faq details { border-bottom: 2px solid var(--soft2); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; font-size: 17px; padding: 12px 0; list-style: none; position: relative; padding-right: 30px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:after { content: "+"; position: absolute; right: 4px; top: 8px; font-size: 24px; color: var(--blue); }
.faq details[open] summary:after { content: "−"; }
.faq p { margin: 0 0 14px; color: var(--muted); font: 15px/1.55 -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }

/* ---------------------------------------------------------------- buy window */
.pm { display: flex; align-items: center; background: var(--soft); border: 2px solid var(--soft2); border-radius: 10px; padding: 8px 12px; margin: 6px 0 16px; }
.pm img { width: 64px; height: 56px; object-fit: contain; margin-right: 10px; flex: none; }
.pm-t { flex: 1; min-width: 0; }
.pm-t b { display: block; font-weight: 400; font-size: 18px; line-height: 1.2; }
.pm-t .small { display: block; margin-top: 2px; }
.pm-p { flex: none; font-size: 22px; margin-left: 10px; }
.m-err { margin-top: 8px; font-size: 13px; color: #b3001b; background: #ffe3e6; border: 2px solid #ff9aa6; border-radius: 8px; padding: 6px 10px; }
.m-legal { margin: 12px 0 0; }
.m-note.rub-later { margin: 10px 0 0; text-align: center; }
/* "what is a tag": fold-out block under the tag field */
.tag-help { margin: 10px 0 4px; border: 2px solid #dbc8ff; border-radius: 10px; background: #f8f4ff; color: #2b1f4a; font-size: 13.5px; line-height: 1.45; text-align: left; }
.tag-help > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; padding: 8px 10px; font-weight: 700; color: #4b2a8a; }
.tag-help > summary::-webkit-details-marker { display: none; }
.tag-help > summary::before { content: "?"; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: #6b3fd4; color: #fff; font-size: 13px; line-height: 1; }
.tag-help > summary::after { content: "▾"; margin-left: auto; transition: transform .15s; }
.tag-help[open] > summary::after { transform: rotate(180deg); }
.th-body { padding: 0 12px 10px; }
.th-body p { margin: 0 0 8px; }
.th-steps, .th-tips { margin: 0 0 8px; padding-left: 20px; }
.th-steps li, .th-tips li { margin: 3px 0; }
.th-img { display: block; width: 100%; height: auto; margin: 4px 0 10px; border: 2px solid var(--ink); border-radius: 8px; }
.th-tips { color: #5a4a7a; font-size: 12.5px; }
.faq .th-body { padding: 0 0 12px; font-size: 15px; }
.m-note { margin: -6px 0 14px; font-size: 13px; line-height: 1.4; color: #4b2a8a; background: #f4edff; border: 2px solid #dbc8ff; border-radius: 8px; padding: 6px 10px; }

/* ---------------------------------------------------------------- PREMIUM card on the main page */
.prem-mini { display: flex; align-items: center; border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 6px 0 rgba(17,24,39,.3); padding: 22px 26px;
  background: linear-gradient(135deg, #2a1660 0%, #4b23a8 48%, #7a2fd0 100%); color: #fff; }
.prem-mini .pm-left { flex: 1; min-width: 0; }
.prem-mini .prem-name { font-size: 40px; }
.prem-mini p { margin: 8px 0 10px; font-size: 16px; text-shadow: var(--ol); max-width: 620px; }
.prem-mini .chip { background: rgba(255,255,255,.95); color: var(--ink); border-color: var(--ink); margin: 0 8px 8px 0; font-size: 14px; }
.prem-mini .chip img { width: 22px; height: 22px; }
.prem-mini .pm-right { flex: none; text-align: center; margin-left: 24px; }
.prem-mini .from { font-size: 16px; margin-bottom: 10px; text-shadow: var(--ol); }
.prem-mini .from b { font-size: 30px; font-weight: 400; color: #ffd338; }

/* ---------------------------------------------------------------- themed backgrounds (.ofr + .t-<colour>)
   layers: star outlines (img/shop/stars.svg), light rays around the picture, a bright centre fading to dark edges.
   The first background-image is for browsers without conic gradients: they drop the second declaration. */
.ofr { --c1: #66cfff; --c2: #2a86f5; --c3: #12398f; --at: 50% 36%;
  color: #fff; border-color: var(--ink); background-color: var(--c2);
  background-image: url(img/shop/stars.svg), radial-gradient(circle at var(--at), var(--c1) 0, var(--c2) 46%, var(--c3) 100%);
  background-image: url(img/shop/stars.svg), repeating-conic-gradient(from 4deg at var(--at), rgba(255,255,255,.11) 0deg 9deg, rgba(255,255,255,0) 9deg 18deg),
    radial-gradient(circle at var(--at), var(--c1) 0, var(--c2) 46%, var(--c3) 100%);
  background-size: 200px 200px, 100% 100%, 100% 100%; background-repeat: repeat, no-repeat, no-repeat; background-position: 0 0, 0 0, 0 0;
  box-shadow: 0 6px 0 rgba(17,24,39,.3), inset 0 3px 0 rgba(255,255,255,.28), inset 0 -4px 0 rgba(0,0,0,.18); }
.t-blue   { --c1: #66cfff; --c2: #2a86f5; --c3: #12398f; }
.t-gold   { --c1: #fff1a0; --c2: #ffb300; --c3: #b45f00; }
.t-orange { --c1: #ffd27a; --c2: #ff8a1f; --c3: #a8340a; }
.t-red    { --c1: #ff9a8a; --c2: #f0333f; --c3: #7d0c1f; }
.t-purple { --c1: #d29bff; --c2: #8a3ff0; --c3: #34137a; }
.t-green  { --c1: #b5f57f; --c2: #31b94a; --c3: #0f5a25; }
.ofr h3, .ofr p, .ofr .pl-days, .ofr .pl-per { color: #fff; text-shadow: var(--ol); }
.ofr .pl-days { font-size: 28px; }
.ofr .chip.y { background: rgba(255,255,255,.95); color: var(--ink); border-color: var(--ink); }
.ofr .it { background: rgba(255,255,255,.96); border: 2px solid var(--ink); color: var(--ink); }
.ofr .it small { color: var(--muted); }
.offer.ofr { --at: 74px 50%; }
.gp.ofr { --at: 50% 32%; }
.gp.ofr .gp-pic img { filter: drop-shadow(0 6px 0 rgba(0,0,0,.28)); }
.plan.ofr { --at: 50% 30%; }
.plan .ribbon + .pl-days { margin-top: 8px; }
/* PREMIUM: the same stars and rays over the purple */
.prem, .prem-mini {
  background-image: url(img/shop/stars.svg), radial-gradient(circle at 16% 24%, rgba(255,214,90,.38) 0, rgba(255,214,90,0) 40%), linear-gradient(135deg, #2a1660 0%, #4b23a8 48%, #7a2fd0 100%);
  background-image: url(img/shop/stars.svg), repeating-conic-gradient(from 0deg at 16% 24%, rgba(255,255,255,.07) 0deg 8deg, rgba(255,255,255,0) 8deg 16deg),
    radial-gradient(circle at 16% 24%, rgba(255,214,90,.38) 0, rgba(255,214,90,0) 40%), linear-gradient(135deg, #2a1660 0%, #4b23a8 48%, #7a2fd0 100%);
  background-size: 220px 220px, 100% 100%, 100% 100%, 100% 100%; background-repeat: repeat, no-repeat, no-repeat, no-repeat; }

/* ---------------------------------------------------------------- tag check and player card */
.inp.good { border-color: #158a2e; background: #f1ffec; }
.inp.bad { border-color: #d0102b; background: #fff1f2; }
.tstat-hint { margin: 8px 0 0; }
.tstat { display: flex; align-items: center; flex-wrap: wrap; margin-top: 8px; font-size: 14px; line-height: 1.35; border: 2px solid; border-radius: 8px; padding: 7px 10px; }
.tstat.err { color: #9e0018; background: #ffe3e6; border-color: #ff9aa6; }
.tstat.warn { color: #6b4300; background: #fff1cf; border-color: #ffd166; }
.tstat.ok { color: #135c00; background: #e3ffd9; border-color: #9fe58a; }
.tstat.wait { color: var(--muted); background: var(--soft); border-color: var(--soft2); }
.tstat .link { margin-left: 6px; }
.link { background: none; border: 0; padding: 0; font: inherit; color: #1769e0; text-decoration: underline; cursor: pointer; }
.spin { flex: none; width: 14px; height: 14px; margin-right: 9px; border: 3px solid var(--soft2); border-top-color: var(--blue); border-radius: 50%;
  -webkit-animation: abspin .8s linear infinite; animation: abspin .8s linear infinite; }
@-webkit-keyframes abspin { to { -webkit-transform: rotate(360deg); } }
@keyframes abspin { to { transform: rotate(360deg); } }
.pcard { display: flex; flex-wrap: wrap; align-items: center; margin-top: 10px; padding: 10px 12px 12px; color: #fff; border: 3px solid var(--ink); border-radius: 10px;
  background-color: #2a86f5; background-image: url(img/shop/stars.svg), linear-gradient(#45a8ff, #1f5fd6);
  background-size: 160px 160px, 100% 100%; background-repeat: repeat, no-repeat;
  box-shadow: 0 4px 0 rgba(17,24,39,.3), inset 0 3px 0 rgba(255,255,255,.25); }
.pc-ava { flex: none; width: 58px; height: 58px; margin-right: 12px; object-fit: cover; background: #fff; border: 3px solid var(--ink); border-radius: 10px; }
.pc-main { flex: 1; min-width: 0; }
.pc-who { display: inline-block; font-size: 12px; line-height: 1; color: #135c00; background: #c9ffb8; border: 2px solid var(--ink); border-radius: 6px; padding: 2px 6px 3px; }
.pc-name { display: block; font-weight: 400; font-size: 23px; line-height: 1.15; margin-top: 4px; text-shadow: var(--ol2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-tag { display: block; font-size: 14px; color: #ffe066; text-shadow: var(--ol); letter-spacing: .5px; }
.pc-stats { display: flex; width: 100%; margin-top: 10px; }
.pc-stats span { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; background: rgba(8,24,70,.35); border: 2px solid rgba(17,24,39,.55);
  border-radius: 8px; padding: 6px 4px 5px; margin-left: 8px; }
.pc-stats span:first-child { margin-left: 0; }
.pc-stats img { height: 26px; width: auto; }
.pc-stats b { font-weight: 400; font-size: 19px; line-height: 1.1; margin-top: 3px; text-shadow: var(--ol); }
.pc-stats small { font-size: 11px; color: #d6ecff; }
.pc-hint { margin: 6px 0 0; }
.paybtn.off { opacity: .55; -webkit-filter: grayscale(.7); filter: grayscale(.7); }

/* ---------------------------------------------------------------- tablet / phone */
@media (max-width: 1040px) {
  .sh-art { width: 220px; }
  .prem { flex-direction: column; }
  .prem-plans { width: auto; flex-direction: row; border-left: 0; border-top: 3px solid var(--ink); }
  .prem-plans .plan { flex: 1; margin: 8px 6px; }
}
@media (max-width: 760px) {
  .shop-hero { padding: 20px 16px; flex-direction: column-reverse; align-items: stretch; }
  .sh-art { width: 150px; margin: 0 auto 4px; }
  .shop-hero .brand.big { font-size: 34px; margin-top: 12px; }
  .sh-lead { font-size: 16px; }
  .prem-main { padding: 20px 16px; }
  .prem-name { font-size: 42px; }
  .prem-text { font-size: 15px; }
  .perks, .perks.n3 { grid-template-columns: 1fr; }
  .prem-plans { padding: 14px 10px; }
  .prem-plans .plan { margin: 10px 4px 6px; padding: 14px 8px 2px; }
  .pl-days { font-size: 20px; }
  .plan .btn, .gp .btn, .of-buy .btn { font-size: 18px; }
  .gems { grid-template-columns: repeat(2, 1fr); grid-gap: 18px 12px; gap: 18px 12px; }
  .gp { padding: 10px 10px 2px; }
  .gp-pic { height: 92px; }
  .gp-pic img { max-width: 120px; max-height: 92px; }
  .gp-n { font-size: 24px; }
  .gp-n img { width: 24px; height: 24px; }
  .ribbon { font-size: 11px; padding: 3px 7px 5px; top: -12px; }
  .offer { flex-wrap: wrap; padding: 14px; }
  .of-pic { width: 76px; height: 68px; margin-right: 12px; }
  .of-body h3 { font-size: 19px; }
  .of-buy { width: 100%; margin-left: 0; }
  .offer.ofr { --at: 50px 50px; }
  .pc-name { font-size: 20px; }
  .pc-stats b { font-size: 17px; }
  .prem-mini { flex-direction: column; align-items: stretch; padding: 18px 16px; }
  .prem-mini .prem-name { font-size: 34px; }
  .prem-mini .pm-right { margin: 6px 0 0; }
  .prem-mini .pm-right .btn { display: block; }
}
