/* VizzySMP store — layered on top of styles.css, which owns the palette,
   the top bar and the buttons. */

.store-main{
  max-width:1180px;
  margin:0 auto;
  padding:0 5vw 100px;
}

/* ---- hero ---------------------------------------------------------- */

.store-hero{
  text-align:center;
  padding:80px 0 46px;
}
.store-mark{
  font-size:56px;
  line-height:1;
  filter:drop-shadow(0 0 24px rgba(240,138,18,.45));
}
.store-hero h1{
  font-family:"Press Start 2P",monospace;
  font-size:36px;
  margin:24px 0 14px;
  text-shadow:0 4px 0 #331a02;
}
.store-sub{
  color:var(--muted);
  margin:0 0 20px;
  font-size:17px;
}
.store-ip{
  background:rgba(240,138,18,.08);
  border:1px solid rgba(240,138,18,.42);
  color:#ffd29a;
  border-radius:8px;
  padding:9px 16px;
  cursor:pointer;
  font-size:14px;
  transition:.18s;
}
.store-ip:hover{background:rgba(240,138,18,.16);border-color:var(--green)}

/* ---- banners ------------------------------------------------------- */

.purchase-banner{
  border-radius:10px;
  padding:15px 18px;
  margin:0 0 34px;
  border:1px solid var(--line);
  background:var(--panel);
  font-size:15px;
  line-height:1.55;
}
.purchase-banner.success{border-color:rgba(59,165,93,.5);background:rgba(59,165,93,.1);color:#b6f0c8}
.purchase-banner.error{border-color:rgba(237,66,69,.5);background:rgba(237,66,69,.1);color:#ffc4c5}
.purchase-banner.info{border-color:rgba(240,138,18,.45);background:rgba(240,138,18,.09);color:#ffd29a}

/* ---- deliver-to ---------------------------------------------------- */

.deliver-to{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:14px;
  padding:26px 28px;
  margin-bottom:60px;
}
.deliver-to.is-linked{border-color:rgba(59,165,93,.38)}
.deliver-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px;
  flex-wrap:wrap;
}
.deliver-copy h2{margin:8px 0 8px;font-size:22px}
.deliver-copy p{margin:0;color:var(--muted);font-size:14.5px;max-width:56ch;line-height:1.6}
.deliver-form{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.deliver-form input{
  background:#080d0a;
  border:1px solid var(--line);
  border-radius:8px;
  color:var(--text);
  padding:12px 14px;
  min-width:230px;
  font:inherit;
}
.deliver-form input:focus{outline:none;border-color:var(--green)}
.link-status{margin:14px 0 0;font-size:13.5px;min-height:1em}
.link-status.pending{color:var(--muted)}
.link-status.success{color:#7fe0a0}
.link-status.warn{color:#ffd29a}
.link-status.error{color:#ff9d9f}

/* ---- section headings ---------------------------------------------- */

.store-section{margin-bottom:74px}
.store-heading{
  font-family:"Press Start 2P",monospace;
  font-size:15px;
  text-align:center;
  margin:0 0 12px;
}
.store-heading-note{
  text-align:center;
  color:var(--muted);
  font-size:14px;
  margin:0 0 34px;
}
.store-loading,.empty{
  text-align:center;
  color:var(--muted);
  padding:30px 0;
  font-size:14.5px;
}

/* ---- ranks --------------------------------------------------------- */

.rank-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:22px;
}
.rank-card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:14px;
  padding:30px 26px 26px;
  display:flex;
  flex-direction:column;
  position:relative;
  transition:.2s;
}
.rank-card:hover{transform:translateY(-4px);border-color:rgba(240,138,18,.45)}
.rank-card.featured{
  border-color:rgba(240,138,18,.6);
  box-shadow:0 0 0 1px rgba(240,138,18,.18),0 18px 50px -28px rgba(240,138,18,.7);
}
.rank-flag{
  position:absolute;top:-11px;left:50%;transform:translateX(-50%);
  background:var(--green);
  color:#1a0e02;
  font-family:"Press Start 2P",monospace;
  font-size:7px;
  padding:6px 10px;
  border-radius:5px;
  white-space:nowrap;
}
.rank-name{
  font-family:"Press Start 2P",monospace;
  font-size:22px;
  text-align:center;
  margin:6px 0 24px;
}
.rank-name span{color:var(--green)}
.rank-perks{
  list-style:none;
  margin:0 0 26px;
  padding:0;
  flex:1;
}
.rank-perks li{
  font-size:13.5px;
  color:#d7dbd4;
  padding:11px 0 11px 18px;
  border-bottom:1px solid rgba(255,255,255,.06);
  position:relative;
}
.rank-perks li::before{
  content:"";
  position:absolute;left:0;top:17px;
  width:6px;height:6px;
  background:var(--green);
}
.rank-perks li:last-child{border-bottom:none}

/* ---- buy button ---------------------------------------------------- */

.buy-btn{
  width:100%;
  background:rgba(240,138,18,.1);
  border:1px solid rgba(240,138,18,.5);
  color:#ffd29a;
  border-radius:9px;
  padding:14px;
  cursor:pointer;
  font-size:16px;
  transition:.18s;
}
.buy-btn strong{font-family:"Press Start 2P",monospace;font-size:13px}
.buy-btn span{font-size:12px;color:var(--muted)}
.buy-btn:hover:not(:disabled){background:var(--green);color:#160c01;border-color:var(--green)}
.buy-btn:hover:not(:disabled) span{color:#3a2101}
.buy-btn:disabled{opacity:.55;cursor:progress}

/* ---- shards -------------------------------------------------------- */

.shard-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
  gap:22px;
}
.shard-card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:14px;
  padding:26px 22px 22px;
  text-align:center;
  position:relative;
  transition:.2s;
}
.shard-card:hover{transform:translateY(-4px);border-color:rgba(240,138,18,.45)}
.shard-card.featured{border-color:rgba(240,138,18,.5)}
.shard-art{
  width:118px;
  height:74px;
  margin:0 auto 16px;
  filter:drop-shadow(0 6px 14px rgba(240,138,18,.35));
}
.shard-name{
  font-family:"Press Start 2P",monospace;
  font-size:13px;
  color:var(--green2);
  margin:0 0 20px;
}
.shard-bonus{
  position:absolute;top:12px;right:12px;
  background:#2f8f4e;
  color:#eafff0;
  font-family:"Press Start 2P",monospace;
  font-size:7px;
  padding:5px 7px;
  border-radius:4px;
}

/* ---- extras -------------------------------------------------------- */

.extra-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:22px;
}
.extra-card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:14px;
  padding:24px 22px;
  display:flex;
  flex-direction:column;
}
.extra-card h3{margin:0 0 10px;font-size:17px}
.extra-card p{margin:0 0 22px;color:var(--muted);font-size:14px;line-height:1.6;flex:1}

/* ---- purchases ----------------------------------------------------- */

.purchase-list{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden;
}
.purchase-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:16px 20px;
  border-bottom:1px solid rgba(255,255,255,.06);
  flex-wrap:wrap;
}
.purchase-row:last-child{border-bottom:none}
.purchase-row strong{display:block;font-size:15px}
.purchase-row small{color:var(--muted);font-size:12.5px}
.purchase-meta{text-align:right;display:flex;align-items:center;gap:12px}
.pill{
  font-size:11px;
  padding:4px 9px;
  border-radius:20px;
  border:1px solid var(--line);
  text-transform:capitalize;
}
.pill.delivered,.pill.renewed{border-color:rgba(59,165,93,.5);color:#8fe3aa;background:rgba(59,165,93,.1)}

/* ---- FAQ ----------------------------------------------------------- */

.faq-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:22px;
}
.faq{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:12px;
  padding:22px;
}
.faq h3{margin:0 0 10px;font-size:16px}
.faq p{margin:0;color:var(--muted);font-size:14px;line-height:1.65}
.faq a{color:var(--green2);text-decoration:underline}
.store-legal{
  margin:34px auto 0;
  max-width:70ch;
  text-align:center;
  color:#7d857d;
  font-size:12.5px;
  line-height:1.7;
}

@media (max-width:720px){
  .store-hero{padding:48px 0 32px}
  .store-hero h1{font-size:26px}
  .deliver-inner{flex-direction:column;align-items:flex-start}
  .deliver-form input{min-width:0;width:100%}
  .deliver-form{width:100%}
  .purchase-meta{text-align:left}
}

/* Product artwork uploaded to the Stripe product, when there is one. */
.product-art{
  display:block;
  width:100%;
  max-width:120px;
  height:auto;
  margin:0 auto 12px;
  border-radius:10px;
  image-rendering:pixelated;
}

/* A rank with no perks metadata falls back to its Stripe description. */
.rank-blurb{
  margin:0 0 18px;
  color:var(--muted);
  font-size:13.5px;
  line-height:1.7;
}
