:root{
  --bg0:#07162b;
  --bg1:#0b2b5a;
  --card:#0e2242cc;
  --cardSolid:#0e2242;
  --text:#eef6ff;
  --muted:#b7c7da;
  --border:#24456d;
  --shadow:0 18px 55px rgba(0,0,0,.35);

  --brand1:#3b1a59;
  --brand2:#6a2a8a;
  --blue:#4f80e0;
  --green:#34c759;
  --yellow:#ffd166;
  --red:#ff5a5f;

  --radius:18px;
  --radiusSm:12px;
  --max:1120px;
  --gap:18px;

  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 15% 10%, rgba(79,128,224,.55), transparent 60%),
    radial-gradient(900px 700px at 90% 20%, rgba(106,42,138,.55), transparent 55%),
    radial-gradient(800px 600px at 50% 90%, rgba(52,199,89,.25), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  min-height:100%;
}

a{color:inherit}
img{max-width:100%; display:block}
button, input, select, textarea{font:inherit}

/* Layout */
.wrap{max-width:var(--max); margin:0 auto; padding:22px 18px}
.grid{display:grid; gap:var(--gap)}
.row{display:flex; gap:var(--gap); align-items:center}
.stack{display:flex; flex-direction:column; gap:12px}
.spacer{height:18px}

/* Header */
.header{
  position:sticky; top:0; z-index:50;
  backdrop-filter:saturate(1.4) blur(14px);
  background:linear-gradient(180deg, rgba(7,22,43,.88), rgba(7,22,43,.70));
  border-bottom:1px solid rgba(36,69,109,.55);
}
.headerInner{
  max-width:var(--max);
  margin:0 auto;
  padding:14px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.headerInnerHome{
  justify-content:center;
}
.headerInnerHome .nav{
  justify-content:center;
}
.brand{
  display:flex; align-items:center; gap:12px;
  text-decoration:none;
}
.logo{
  width:44px; height:44px;
  border-radius:14px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 10px 30px rgba(0,0,0,.25);
  overflow:hidden;
}
.logo img{width:100%; height:100%; object-fit:contain}
.brandText{display:flex; flex-direction:column; line-height:1.05}
.brandText .name{font-weight:860; letter-spacing:.2px}
.brandText .tag{font-size:12px; color:var(--muted)}

.nav{display:flex; align-items:center; gap:10px; flex-wrap:wrap; justify-content:flex-end}
.nav a{
  text-decoration:none;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid transparent;
  color:var(--muted);
}
.nav a:hover{background:rgba(255,255,255,.05); color:var(--text)}
.nav a[aria-current="page"]{
  background:rgba(79,128,224,.16);
  border-color:rgba(79,128,224,.28);
  color:var(--text);
}

.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(14,34,66,.60);
  color:var(--muted);
  text-decoration:none;
}
.pill strong{color:var(--text)}
.cartBadge{
  min-width:22px; height:22px;
  display:inline-flex; align-items:center; justify-content:center;
  padding:0 6px;
  border-radius:999px;
  background:rgba(52,199,89,.18);
  border:1px solid rgba(52,199,89,.30);
  color:var(--text);
  font-size:12px;
  font-weight:750;
}

/* Surfaces */
.card{
  border-radius:var(--radius);
  border:1px solid rgba(255,255,255,.10);
  background:linear-gradient(180deg, rgba(14,34,66,.78), rgba(14,34,66,.58));
  box-shadow:var(--shadow);
}
.cardPad{padding:18px}
.cardHead{padding:18px 18px 0}
.cardFoot{padding:0 18px 18px}

.kicker{color:var(--muted); font-size:14px}
.title{
  font-size: clamp(30px, 4.2vw, 48px);
  letter-spacing:-.6px;
  margin:0;
  font-weight:900;
}
.subtitle{margin:0; color:var(--muted); font-size:16px; line-height:1.45}
.h2{margin:0; font-size:22px; letter-spacing:-.2px}
.h3{margin:0; font-size:16px}
.mono{font-family:var(--mono)}

.divider{height:1px; background:rgba(255,255,255,.10); margin:14px 0}

/* Buttons */
.btn{
  appearance:none; border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:var(--text);
  border-radius:14px;
  padding:12px 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  text-decoration:none;
  cursor:pointer;
  font-weight:750;
}
.btn:hover{background:rgba(255,255,255,.10)}
.btn:active{transform:translateY(1px)}
.btnPrimary{
  background:linear-gradient(135deg, rgba(52,199,89,.95), rgba(79,128,224,.60));
  border-color:rgba(52,199,89,.35);
  box-shadow:0 14px 38px rgba(52,199,89,.20);
}
.btnPrimary:hover{filter:saturate(1.07)}
.btnDanger{
  background:rgba(255,90,95,.14);
  border-color:rgba(255,90,95,.30);
}
.btnGhost{
  background:transparent;
  border-color:rgba(255,255,255,.12);
}
.btnSm{padding:10px 12px; border-radius:12px; font-size:14px}
.btn:disabled, .btn[aria-disabled="true"]{
  opacity:.55;
  cursor:not-allowed;
  transform:none;
}

/* Forms */
.field{display:flex; flex-direction:column; gap:8px}
.label{font-size:13px; color:var(--muted)}
.input, .select, .textarea{
  width:100%;
  background:rgba(7,22,43,.60);
  border:1px solid rgba(255,255,255,.12);
  color:var(--text);
  border-radius:14px;
  padding:12px 12px;
  outline:none;
}
.textarea{min-height:110px; resize:vertical}
.input:focus, .select:focus, .textarea:focus{
  border-color:rgba(79,128,224,.40);
  box-shadow:0 0 0 4px rgba(79,128,224,.18);
}
.help{margin:0; color:var(--muted); font-size:13px; line-height:1.45}

/* Badges */
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  font-size:12px;
  font-weight:750;
}
.badgeGreen{border-color:rgba(52,199,89,.30); background:rgba(52,199,89,.14)}
.badgeRed{border-color:rgba(255,90,95,.30); background:rgba(255,90,95,.14)}
.badgeBlue{border-color:rgba(79,128,224,.30); background:rgba(79,128,224,.14)}
.badgeGold{border-color:rgba(255,209,102,.35); background:rgba(255,209,102,.14)}

/* Hero */
.hero{
  padding:18px 0 10px;
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:var(--gap);
  align-items:stretch;
}

/* Home page specific grids (avoid inline styles that break mobile responsiveness) */
.homeInfoGrid{
  grid-template-columns: 1.15fr .85fr;
}
.homeTwoCol{
  grid-template-columns: 1fr 1fr;
}
.masthead{
  padding:18px 0 4px;
}
.mastInner{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  text-align:center;
}
.mastLogoImg{
  width:min(520px, 68vw);
  height:auto;
  display:block;
  /* no border/box; keep it feeling “hero” */
  filter:
    drop-shadow(0 22px 70px rgba(0,0,0,.42))
    drop-shadow(0 10px 30px rgba(79,128,224,.18))
    drop-shadow(0 10px 30px rgba(106,42,138,.14));
}
.mastTag{
  font-size:13px;
  color:var(--muted);
  letter-spacing:.2px;
}
.heroCard{
  border-radius:24px;
  padding:22px;
  border:1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(600px 400px at 20% 30%, rgba(79,128,224,.40), transparent 60%),
    radial-gradient(520px 420px at 90% 20%, rgba(106,42,138,.40), transparent 60%),
    linear-gradient(180deg, rgba(14,34,66,.78), rgba(14,34,66,.55));
  box-shadow:var(--shadow);
}
.heroCTA{display:flex; gap:12px; flex-wrap:wrap; margin-top:14px}
.heroPoints{display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:12px}
.miniCard{
  border-radius:16px;
  padding:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(7,22,43,.40);
}
.miniCard .k{font-size:12px; color:var(--muted)}
.miniCard .v{font-weight:900; font-size:16px; margin-top:6px}

.videoBox{
  border-radius:24px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(7,22,43,.40);
  overflow:hidden;
  position:relative;
  box-shadow:var(--shadow);
}
.videoBox::before{
  content:"";
  display:block;
  padding-top:56.25%;
}
.videoInner{
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  flex-direction:column;
  gap:10px;
  text-align:center;
  padding:18px;
}
.videoFrame{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}
.play{
  width:64px; height:64px;
  border-radius:22px;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg, rgba(79,128,224,.22), rgba(52,199,89,.18));
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 18px 50px rgba(0,0,0,.35);
}
.play svg{width:30px; height:30px; fill:var(--text); opacity:.95}

/* Shop grid */
.filters{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}
.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(7,22,43,.45);
  color:var(--muted);
  cursor:pointer;
  user-select:none;
}
.chip[data-active="true"]{
  background:rgba(79,128,224,.18);
  border-color:rgba(79,128,224,.30);
  color:var(--text);
}

.productGrid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:var(--gap);
}
.productCard{
  border-radius:20px;
  border:1px solid rgba(255,255,255,.10);
  background:linear-gradient(180deg, rgba(14,34,66,.72), rgba(14,34,66,.52));
  overflow:hidden;
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
  min-height:100%;
}
.productMedia{
  aspect-ratio:1/1;
  background:rgba(79,128,224,.10);
  border-bottom:1px solid rgba(255,255,255,.08);
  position:relative;
}
.sprite{
  width:100%;
  height:100%;
  background-image:url("/assets/slime-it-up-products.png");
  background-repeat:no-repeat;
  background-size:2028px 816px;
  background-position: calc(-1px * var(--x)) calc(-1px * var(--y));
  transform: translateZ(0);
}
.productBody{padding:14px; display:flex; flex-direction:column; gap:10px; flex:1}
.productTop{display:flex; align-items:flex-start; justify-content:space-between; gap:10px}
.productName{margin:0; font-size:16px; font-weight:900; letter-spacing:-.2px}
.productDesc{margin:0; color:var(--muted); font-size:13px; line-height:1.45}
.productMeta{display:flex; align-items:center; justify-content:space-between; gap:12px}
.price{font-weight:900}

/* Detail */
.detail{
  display:grid;
  grid-template-columns: .95fr 1.05fr;
  gap:var(--gap);
  align-items:start;
}
.detailMedia{
  border-radius:24px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(7,22,43,.40);
  box-shadow:var(--shadow);
}
.detailMedia .sprite{aspect-ratio:1/1}
.statRow{display:flex; flex-wrap:wrap; gap:10px}
.kv{display:flex; flex-direction:column; gap:4px; padding:12px 14px; border-radius:16px; border:1px solid rgba(255,255,255,.10); background:rgba(7,22,43,.40); min-width:160px}
.kv .k{font-size:12px; color:var(--muted)}
.kv .v{font-size:14px; font-weight:850}

/* Cart */
.line{
  display:grid;
  grid-template-columns: 64px 1fr auto;
  gap:12px;
  align-items:center;
  padding:12px 0;
  border-bottom:1px solid rgba(255,255,255,.10);
}
.thumb{
  width:64px; height:64px;
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(7,22,43,.40);
}
.qty{
  display:flex; align-items:center; gap:10px;
}
.qtyBtn{
  width:34px; height:34px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:var(--text);
  cursor:pointer;
}
.qtyVal{min-width:22px; text-align:center; font-weight:900}

.totals{display:flex; flex-direction:column; gap:10px}
.totRow{display:flex; justify-content:space-between; gap:14px; color:var(--muted)}
.totRow strong{color:var(--text)}

/* Drawer + toast */
.drawerBackdrop{
  position:fixed; inset:0;
  background:rgba(0,0,0,.55);
  opacity:0; pointer-events:none;
  transition:opacity .18s ease;
  z-index:70;
}
.drawer{
  position:fixed; right:0; top:0; height:100%; width:min(420px, 92vw);
  background:linear-gradient(180deg, rgba(7,22,43,.96), rgba(14,34,66,.92));
  border-left:1px solid rgba(255,255,255,.12);
  transform:translateX(102%);
  transition:transform .22s ease;
  z-index:80;
  display:flex; flex-direction:column;
}
.drawerHead{padding:16px 16px 10px; display:flex; align-items:center; justify-content:space-between; gap:10px}
.drawerBody{padding:0 16px 16px; overflow:auto; flex:1}
.drawerFoot{padding:16px; border-top:1px solid rgba(255,255,255,.10)}
.openDrawer .drawerBackdrop{opacity:1; pointer-events:auto}
.openDrawer .drawer{transform:translateX(0)}

.toastHost{
  position:fixed; left:16px; bottom:16px;
  display:flex; flex-direction:column; gap:10px;
  z-index:100;
}
.toast{
  width:min(420px, calc(100vw - 32px));
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(14,34,66,.92);
  box-shadow:var(--shadow);
  padding:12px 12px;
  display:flex; align-items:flex-start; justify-content:space-between; gap:12px;
}
.toast p{margin:0; color:var(--muted); font-size:13px; line-height:1.35}
.toast strong{color:var(--text)}

/* Footer */
.footer{
  margin-top:30px;
  padding:26px 0 40px;
  border-top:1px solid rgba(255,255,255,.10);
  color:var(--muted);
}
.footerGrid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap:var(--gap);
}
.footer a{color:var(--muted); text-decoration:none}
.footer a:hover{color:var(--text)}

/* Utilities */
.hidden{display:none !important}
.srOnly{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}
.muted{color:var(--muted)}
.right{margin-left:auto}

/* Responsive */
@media (max-width: 960px){
  .hero{grid-template-columns:1fr}
  .heroPoints{grid-template-columns:repeat(3, minmax(0,1fr))}
  .detail{grid-template-columns:1fr}
  .productGrid{grid-template-columns:repeat(2, minmax(0,1fr))}
  .footerGrid{grid-template-columns:1fr}
  .homeInfoGrid{grid-template-columns:1fr}
  .homeTwoCol{grid-template-columns:1fr}
}
@media (max-width: 520px){
  .headerInner{padding:12px 12px}
  .wrap{padding:18px 12px}
  .heroPoints{grid-template-columns:1fr}
  .productGrid{grid-template-columns:1fr}
}

@media (prefers-reduced-motion: reduce){
  *{transition:none !important; scroll-behavior:auto !important}
  .btn:active{transform:none}
}

