/* 50 — Jade & offers tab in the game store (see 50-jade.js). Matches the store sheet: dark slate cards,
   Alegreya headings, ember kicker colour, teal buy buttons like the item page. */
.dp-store.sg50-jade-on > div:not(.dp-sheet__head):not(.sg50-tabs):not(.sg50-panel) { display: none !important; }
.dp-store:not(.sg50-jade-on) > .sg50-panel { display: none; }
.dp-store:not(.sg50-jade-on) .sg50-headtxt { display: none; }
.dp-store.sg50-jade-on .dp-head__text > :not(.sg50-headtxt) { display: none; }

.sg50-tabs { display: flex; gap: 4px; padding: 0 24px; margin-top: -4px; border-bottom: 1px solid rgba(207, 195, 167, 0.14); }
.sg50-tabs button { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; border-bottom: 2px solid transparent; color: #a8a08e;
  padding: 10px 14px 11px; font: 700 13.5px "Alegreya SC", "Alegreya Sans", serif; letter-spacing: .16em; text-transform: lowercase; cursor: pointer; transition: color .15s, border-color .15s; }
.sg50-tabs button:hover { color: #efe9dd; }
.sg50-tabs button[aria-selected="true"] { color: #f6f4ef; border-bottom-color: #e2734f; }
.sg50-tabs img { width: 18px; height: 18px; object-fit: contain; filter: drop-shadow(0 0 6px rgba(79, 191, 152, .45)); }

.sg50-panel { padding: 20px 24px 26px; color: #f6f4ef; font-family: "Alegreya Sans", system-ui, sans-serif; }
.sg50-eyebrow { display: block; font: 700 11px "Alegreya SC", serif; letter-spacing: .18em; text-transform: lowercase; color: #e2734f; }
.sg50-small { font-size: 13px; color: #8f8779; margin: 2px 0 0; }
.sg50-h { font: 700 20px Alegreya, Georgia, serif; letter-spacing: .04em; margin: 26px 0 12px; color: #f0ece2; }
.sg50-alert { border-radius: 6px; padding: 12px 14px; margin-bottom: 14px; background: rgba(224, 97, 79, .1); border: 1px solid rgba(224, 97, 79, .35); color: #f3c0b6; }
.sg50-note { border-radius: 6px; padding: 9px 13px; margin-bottom: 14px; font-size: 14px; }
.sg50-note--test { background: rgba(224, 176, 79, .09); border: 1px solid rgba(224, 176, 79, .32); color: #ecd59f; }

.sg50-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding: 14px 16px; border-radius: 6px;
  background: rgba(2, 5, 12, 0.42); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .45), 0 0 0 1px rgba(152, 187, 225, .1); }
.sg50-bal { display: flex; align-items: center; gap: 10px; }
.sg50-bal img { width: 36px; height: 36px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(79, 191, 152, .5)); }
.sg50-bal .sg50-balnum { display: block; font: 700 26px/1 Alegreya, Georgia, serif; color: #8fe0c3; margin-top: 2px; }
.sg50-chip { border-radius: 999px; padding: 5px 12px; font-size: 13.5px; border: 1px solid rgba(79, 191, 152, .4); background: rgba(79, 191, 152, .1); color: #a6ecd2; }
.sg50-chip--hot { border-color: rgba(226, 115, 79, .5); background: rgba(226, 115, 79, .12); color: #f4c2ad; }
.sg50-loyal { flex: 1; min-width: 200px; }
.sg50-meter { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; margin: 6px 0 3px; }
.sg50-meter i { display: block; height: 100%; background: linear-gradient(90deg, #2f8f6f, #6fceb1); border-radius: 99px; }

.sg50-gift { margin-top: 14px; padding: 12px 16px; border-radius: 6px; border: 1px dashed rgba(207, 195, 167, .2); }
.sg50-gift.is-on { border-style: solid; border-color: rgba(226, 115, 79, .4); background: rgba(226, 115, 79, .05); }
.sg50-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; color: #e6dfcf; }
.sg50-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.sg50-switch span { width: 34px; height: 19px; border-radius: 99px; background: #3a342c; position: relative; transition: background .15s; flex: none; }
.sg50-switch span::after { content: ''; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #d7cdb5; transition: transform .15s; }
.sg50-switch input:checked + span { background: #c95a38; } .sg50-switch input:checked + span::after { transform: translateX(15px); background: #fff; }
.sg50-switch input:focus-visible + span { outline: 2px solid rgba(226, 115, 79, .6); outline-offset: 2px; }
.sg50-giftf { display: grid; grid-template-columns: 1fr 2fr; gap: 10px 14px; margin-top: 10px; }
.sg50-giftf label { font-size: 13px; color: #a8a08e; display: flex; flex-direction: column; gap: 4px; }
.sg50-panel input[data-f] { background: #0c0b0a; color: #f6f4ef; border: 1px solid rgba(207, 195, 167, .2); border-radius: 4px; padding: 8px 10px; font: inherit; font-size: 15px; width: 100%; }
.sg50-panel input[data-f]:focus { outline: none; border-color: rgba(226, 115, 79, .6); }

.sg50-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.sg50-ghost { height: 240px; border-radius: 4px; background: linear-gradient(100deg, rgba(255,255,255,.02) 30%, rgba(255,255,255,.05) 50%, rgba(255,255,255,.02) 70%); background-size: 200% 100%; animation: sg50-sh 1.4s linear infinite; }
@keyframes sg50-sh { to { background-position: -200% 0; } }
.sg50-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 18px 16px 16px; border-radius: 4px; overflow: hidden;
  background: radial-gradient(circle at 50% 0%, rgba(79, 191, 152, .16), transparent 60%), rgba(2, 5, 12, 0.42);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .45), 0 0 0 1px rgba(152, 187, 225, .14); transition: transform .2s, box-shadow .2s; }
.sg50-card:hover { transform: translateY(-2px); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .45), 0 0 0 1px rgba(159, 197, 237, .32), 0 12px 30px -16px rgba(79, 191, 152, .5); }
.sg50-card--pop { box-shadow: inset 0 1px 3px rgba(0, 0, 0, .45), 0 0 0 1px rgba(226, 115, 79, .45), 0 12px 34px -18px rgba(226, 115, 79, .6); }
.sg50-card--offer { align-items: stretch; text-align: left; background: radial-gradient(circle at 85% 0%, rgba(226, 115, 79, .2), transparent 55%), rgba(2, 5, 12, 0.42); }
.sg50-card--tok { align-items: stretch; text-align: left; background: radial-gradient(circle at 50% 0%, rgba(214, 176, 92, .14), transparent 60%), rgba(2, 5, 12, 0.42); }
.sg50-card h4 { font: 600 18px "Alegreya Sans", sans-serif; letter-spacing: -.01em; margin: 4px 0 0; color: #f2eee6; }
.sg50-art { height: 64px; display: grid; place-items: center; }
.sg50-art img { width: 54px; height: 54px; object-fit: contain; filter: drop-shadow(0 6px 16px rgba(79, 191, 152, .45)); }
.sg50-amt { font: 700 28px Alegreya, serif; margin: 4px 0 0; color: #a6ecd2; line-height: 1.1; }
.sg50-amt span { font: 600 14px "Alegreya Sans"; color: #7fb7a2; }
.sg50-bonus { list-style: none; margin: 4px 0 0; padding: 0; font-size: 13.5px; color: #8fe0c3; }
.sg50-bonus span { color: #a8a08e; }
.sg50-ribbon { position: absolute; top: 10px; right: -1px; padding: 2px 10px 2px 9px; border-radius: 3px 0 0 3px; font: 700 11px "Alegreya SC", serif; letter-spacing: .12em; text-transform: lowercase;
  background: rgba(79, 191, 152, .16); color: #a6ecd2; border: 1px solid rgba(79, 191, 152, .35); border-right: 0; }
.sg50-ribbon--pop { background: rgba(226, 115, 79, .18); color: #f7c6b1; border-color: rgba(226, 115, 79, .5); }
.sg50-card--offer .sg50-ribbon { position: static; align-self: flex-start; border-radius: 3px; border-right: 1px solid rgba(226, 115, 79, .5); background: rgba(226, 115, 79, .16); color: #f7c6b1; border-color: rgba(226, 115, 79, .5); margin-bottom: 4px; }
.sg50-desc { font-size: 14.5px; color: #cfc8b8; margin: 2px 0; }
.sg50-delivers { font-weight: 700; color: #a6ecd2; margin: 2px 0; }
.sg50-toks { list-style: none; padding: 0; margin: 8px 0 4px; font-size: 14.5px; color: #ddd6c6; }
.sg50-toks li { padding: 3px 0; border-bottom: 1px solid rgba(207, 195, 167, .08); }
.sg50-toks b { color: #e2c48c; }
.sg50-cin { display: flex; align-items: center; gap: 8px; width: 100%; margin: 6px 0 2px; }
.sg50-cin span { color: #a8a08e; font-weight: 700; }
.sg50-err { color: #f3a89a; font-size: 13.5px; margin: 6px 0; }
.sg50-buy { margin-top: auto; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 10px; padding: 10px 14px;
  font: 600 14.5px "Alegreya Sans", sans-serif; color: #fff; cursor: pointer; background: linear-gradient(#0d9488, #115e59); box-shadow: 0 8px 20px -8px rgba(13, 148, 136, .6); transition: filter .15s, box-shadow .15s; }
.sg50-card .sg50-buy { margin-top: auto; }
.sg50-card > :nth-last-child(2) { margin-bottom: 12px; }
.sg50-balnum, .sg50-amt, .sg50-tot, .sg50-toks b { font-variant-numeric: lining-nums tabular-nums; }
.sg50-buy:hover:not(:disabled) { filter: brightness(1.12); box-shadow: 0 10px 24px -8px rgba(13, 148, 136, .75); }
.sg50-buy:disabled { opacity: .55; cursor: not-allowed; }
.sg50-buy:focus-visible, .sg50-ghostbtn:focus-visible, .sg50-tabs button:focus-visible { outline: 2px solid rgba(45, 212, 191, .6); outline-offset: 2px; }

.sg50-hist { border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 1px rgba(152, 187, 225, .12); }
.sg50-hrow { display: grid; grid-template-columns: 100px 1fr 90px 100px 70px; gap: 10px; padding: 8px 12px; font-size: 14px; background: rgba(2, 5, 12, .3); border-bottom: 1px solid rgba(207, 195, 167, .07); }
.sg50-hrow a { color: #e2734f; }
.sg50-st { font-size: 12.5px; text-transform: capitalize; color: #e0b04f; } .sg50-st--paid { color: #7fb069; } .sg50-st--refunded, .sg50-st--disputed, .sg50-st--failed { color: #e0614f; } .sg50-st--cancelled { color: #8f8779; }
.sg50-fine { margin-top: 22px; font-size: 12.5px; color: #7d7568; } .sg50-fine a { color: #a8a08e; }

.sg50-modal { position: fixed; inset: 0; z-index: 9999; background: rgba(0, 0, 0, .62); display: grid; place-items: center; padding: 16px; }
.sg50-dialog { width: min(440px, 100%); background: #151311; border-radius: 12px; padding: 22px 22px 18px; box-shadow: 0 0 0 1px rgba(207, 195, 167, .2), 0 30px 70px rgba(0, 0, 0, .55); color: #f6f4ef; font-family: "Alegreya Sans", sans-serif; }
.sg50-dialog h3 { font: 700 24px Alegreya, serif; margin: 4px 0 14px; }
.sg50-sum { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; padding: 12px 14px; border-radius: 6px; background: rgba(2, 5, 12, .4); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .45); font-size: 15px; }
.sg50-sum > div:nth-child(even) { text-align: right; }
.sg50-line { grid-column: 1 / -1; border-top: 1px solid rgba(207, 195, 167, .14); margin: 4px 0; }
.sg50-tot { font: 700 20px Alegreya, serif; }
.sg50-bonus-t { color: #8fe0c3; }
.sg50-actions { display: flex; gap: 10px; margin-top: 14px; } .sg50-actions .sg50-buy { margin: 0; flex: 1; }
.sg50-ghostbtn { border: 0; border-radius: 10px; padding: 10px 16px; font: 600 14.5px "Alegreya Sans"; cursor: pointer; color: #d7cdb5; background: rgba(204, 191, 161, .06); box-shadow: inset 0 1px 0 rgba(236, 231, 219, .06), 0 0 0 1px rgba(207, 195, 167, .18); }
.sg50-toast { position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%); z-index: 10000; max-width: min(460px, 92vw); padding: 10px 16px; border-radius: 8px;
  background: #2a1a16; color: #f6d2c8; border: 1px solid rgba(224, 97, 79, .5); box-shadow: 0 12px 30px rgba(0, 0, 0, .5); font: 15px "Alegreya Sans", sans-serif; }
@media (max-width: 640px) {
  .sg50-tabs { padding: 0 12px; } .sg50-panel { padding: 16px 12px 20px; }
  .sg50-giftf { grid-template-columns: 1fr; }
  .sg50-hrow { grid-template-columns: 1fr auto; } .sg50-hrow > span:nth-child(1), .sg50-hrow > span:nth-child(5) { display: none; }
  .sg50-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .sg50-grid--offers { grid-template-columns: 1fr; }
}
