/* ============================================================
   CompactPVP Store
   Palette pulled from the in-game identity:
   #35a3d6 scoreboard aqua, #1c53a3 / #151855 from the 3D logo.
   ============================================================ */

:root {
  --bg:        #070b12;
  --bg-2:      #0a1020;
  --panel:     #0f1727;
  --panel-2:   #141f36;
  --raised:    #18243f;
  --line:      rgba(255,255,255,.07);
  --line-2:    rgba(255,255,255,.12);

  --aqua:      #35a3d6;
  --aqua-lt:   #6fc9f0;
  --blue:      #1c53a3;
  --deep:      #151855;

  --text:      #dbe6f5;
  --white:     #fff;
  --muted:     rgba(255,255,255,.58);
  --dim:       rgba(255,255,255,.34);

  --good:      #3fb46a;
  --bad:       #e05a5a;
  --gold:      #f0b429;

  --r:         16px;
  --r-sm:      11px;
  --shadow:    0 18px 44px rgba(2,5,11,.6);
  --glow:      0 0 30px rgba(53,163,214,.3);

  --hero-h:    540px;
  --ease:      cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

/* Sinif kurallarindaki display, tarayicinin [hidden] kuralini eziyordu:
   sepet cekmecesi, sepet rozeti, kullanici cipi ve avatar hep gorunur kaliyordu. */
[hidden] { display: none !important; }

svg { max-width: 100%; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }

::selection { background: rgba(53,163,214,.34); color: #fff; }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; border-radius: 5px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--aqua), var(--blue)); border-radius: 8px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 1.3rem; }

/* ===================== TOP BAR ===================== */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  transition: background-color .35s, border-color .35s, backdrop-filter .35s;
}
.topbar.is-stuck {
  background: rgba(7,11,18,.86);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.topbar-inner { display: flex; align-items: center; gap: 1.5rem; height: 68px; }

.brand { display: flex; align-items: center; gap: .65rem; }

.brand-mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--aqua), var(--blue));
  box-shadow: 0 0 0 1px rgba(255,255,255,.2) inset, 0 4px 14px rgba(28,83,163,.5);
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
}

.brand-text { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.02rem; color: #fff; }
.brand-text em { font-style: normal; color: var(--aqua); }

.topnav { display: flex; gap: .25rem; margin-left: auto; }

.topnav-link {
  position: relative;
  padding: .45rem .9rem;
  border-radius: var(--r-sm);
  font-size: .88rem;
  font-weight: 600;
  color: var(--muted);
  transition: color .25s, background-color .25s;
}
.topnav-link:hover, .topnav-link.is-active { color: #fff; background: rgba(53,163,214,.13); }

.topbar-right { display: flex; align-items: center; gap: .6rem; }

.user-chip {
  display: flex; align-items: center; gap: .45rem;
  padding: .32rem .8rem .32rem .38rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  font-size: .82rem;
  font-weight: 600;
  cursor: default;
}
.user-face { border-radius: 5px; image-rendering: pixelated; }

.cart-btn {
  position: relative;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--panel);
  cursor: pointer;
  transition: border-color .25s, box-shadow .25s;
}
.cart-btn:hover { border-color: var(--aqua); box-shadow: var(--glow); }
.cart-btn svg { width: 19px; height: 19px; fill: none; stroke: var(--text); stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.cart-btn circle { fill: var(--text); stroke: none; }

.cart-count {
  position: absolute; top: -6px; right: -6px;
  min-width: 20px; height: 20px;
  display: grid; place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--aqua);
  color: #04121b;
  font-size: .68rem;
  font-weight: 800;
  box-shadow: 0 0 0 3px var(--bg);
}
.cart-count.pop { animation: pop .35s var(--ease); }
@keyframes pop { 0% { transform: scale(1); } 45% { transform: scale(1.45); } 100% { transform: scale(1); } }

/* ===================== HERO ===================== */

.hero {
  position: relative;
  height: var(--hero-h);
  margin-top: -68px;
  padding-top: 68px;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; }

/* deep base + fade into the page */
.hero-veil {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(58% 52% at 50% 38%, rgba(53,163,214,.20), transparent 70%),
    linear-gradient(180deg, rgba(7,11,18,.55) 0%, rgba(7,11,18,.1) 35%, var(--bg) 96%);
}

/* single wide light shaft, slowly breathing */
.hero-beam {
  position: absolute; inset: -20% -10% auto; height: 130%; z-index: -1;
  background: linear-gradient(103deg, transparent 38%, rgba(111,201,240,.09) 47%, transparent 56%);
  animation: beam 14s ease-in-out infinite;
}
@keyframes beam { 0%,100% { transform: translateX(-6%); opacity: .55; } 50% { transform: translateX(6%); opacity: 1; } }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.6rem;
}

.hero-logo { text-align: center; }

.wordmark { margin: 0; font-family: "Poppins", sans-serif; line-height: .92; }

.wordmark-main {
  position: relative;
  display: block;
  font-weight: 900;
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  letter-spacing: -.03em;
  background: linear-gradient(180deg, #f2fbff 8%, #9fd8f2 46%, var(--aqua) 74%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 10px 26px rgba(21,24,85,.95));
}
/* slow shine sweep across the wordmark */
.wordmark-main::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 42%, rgba(255,255,255,.75) 50%, transparent 58%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 6.5s ease-in-out infinite;
}
@keyframes shine { 0%, 62% { background-position: 165% 0; } 100% { background-position: -65% 0; } }

.wordmark-sub {
  display: block;
  margin-top: .5rem;
  font-weight: 700;
  font-size: clamp(.85rem, 2vw, 1.3rem);
  letter-spacing: .78em;
  text-indent: .78em;
  color: var(--aqua-lt);
  text-shadow: 0 0 22px rgba(53,163,214,.55);
}

.hero-tag { margin: 1.15rem 0 0; color: var(--muted); font-size: .92rem; letter-spacing: .02em; }

/* --- hero pills --- */
.pill {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: fit-content;
  padding: .85rem 1.15rem;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: rgba(10,16,32,.62);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.pill:hover { border-color: rgba(53,163,214,.6); box-shadow: var(--glow); transform: translateY(-3px); }

.pill-ip { margin-left: auto; }
.pill-ip .pill-texts { text-align: right; }
.pill-discord { margin-right: auto; }

.pill-title { display: block; font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.02rem; color: #fff; line-height: 1.25; }

.pill-reel { display: block; height: 20px; overflow: hidden; font-size: .76rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.reel-a, .reel-b { display: block; height: 20px; line-height: 20px; }
.reel-a { transition: margin-top .3s var(--ease); }
.reel-b { color: var(--aqua-lt); }
.pill:hover .reel-a { margin-top: -20px; }

.pill-icon {
  width: 46px; height: 46px;
  flex: 0 0 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--aqua), var(--blue));
  box-shadow: 0 0 0 2px rgba(255,255,255,.18) inset, 0 6px 20px rgba(21,24,85,.7);
}
.pill-icon svg { width: 18px; height: 18px; fill: #fff; }
.pill-icon-dc { background: linear-gradient(140deg, #5865f2, #3b45c4); }
.pill-icon-dc svg { width: 23px; height: 23px; }

/* ===================== TRUST STRIP ===================== */

.trust { position: relative; z-index: 2; margin-top: -2rem; }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1.1rem 1.3rem;
  background: var(--panel);
}

.trust-icon {
  width: 38px; height: 38px;
  flex: 0 0 38px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(53,163,214,.2), rgba(28,83,163,.14));
  border: 1px solid rgba(53,163,214,.3);
}
.trust-icon svg { width: 18px; height: 18px; fill: var(--aqua-lt); }

.trust-title { margin: 0; font-family: "Poppins", sans-serif; font-weight: 600; font-size: .9rem; color: #fff; }
.trust-sub { margin: .1rem 0 0; font-size: .78rem; color: var(--muted); line-height: 1.45; }

/* ===================== LAYOUT ===================== */

.main {
  flex: 1 0 auto;
  display: grid;
  grid-template-columns: 268px 1fr;
  gap: 1.5rem;
  margin-top: 2.6rem;
  margin-bottom: 4.5rem;
  align-items: start;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.25rem 1.35rem;
}

.panel-label {
  margin: 0 0 .85rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
}

.sidebar { display: grid; gap: 1.1rem; position: sticky; top: 88px; }

/* --- account --- */
.login-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: .8rem;
  width: 100%;
  height: 76px;
  padding: 0 1.05rem;
  border: none;
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  background: linear-gradient(120deg, var(--aqua), var(--blue));
  box-shadow: 0 0 0 2px rgba(255,255,255,.2) inset;
  transition: box-shadow .3s;
}
.login-box:hover { box-shadow: 0 0 0 2px rgba(255,255,255,.4) inset, 0 12px 28px rgba(53,163,214,.32); }
.login-box[aria-disabled="true"] { cursor: default; }

.login-orbs i { position: absolute; border-radius: 50%; background: rgba(255,255,255,.12); }
.login-orbs i:nth-child(1) { width: 110px; height: 110px; right: -30px; top: -48px; }
.login-orbs i:nth-child(2) { width: 66px;  height: 66px;  right: 54px;  bottom: -34px; }
.login-orbs i:nth-child(3) { width: 22px;  height: 22px;  right: 26px;  bottom: 13px; }

.login-face { position: relative; border-radius: 9px; image-rendering: pixelated; box-shadow: 0 4px 12px rgba(0,0,0,.45); }

.login-text { position: relative; font-family: "Poppins", sans-serif; font-weight: 600; font-size: .87rem; color: #fff; line-height: 1.35; }
.login-arrow { position: relative; margin-left: auto; color: #fff; font-size: 1.15rem; transition: transform .3s var(--ease); }
.login-box:hover .login-arrow { transform: translateX(5px); }

.logout-link { margin-top: .65rem; padding: 0; border: none; background: none; font-size: .78rem; color: var(--muted); cursor: pointer; }
.logout-link:hover { color: var(--aqua); }

/* --- categories --- */
.cats-list { display: grid; }

.cat {
  display: flex;
  align-items: center;
  gap: .75rem;
  width: 100%;
  padding: .72rem .6rem;
  border: none;
  border-left: 2px solid transparent;
  background: none;
  text-align: left;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--muted);
  transition: color .25s, border-color .25s, padding-left .25s var(--ease);
}
.cat + .cat { border-top: 1px solid var(--line); }
.cat:hover { color: #fff; border-left-color: rgba(53,163,214,.5); padding-left: .85rem; }
.cat.is-active { color: #fff; border-left-color: var(--aqua); }

.cat-dot {
  width: 7px; height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--dim);
  transition: background-color .25s, box-shadow .25s;
}
.cat.is-active .cat-dot, .cat:hover .cat-dot { background: var(--aqua); box-shadow: 0 0 10px var(--aqua); }

.cat-count { margin-left: auto; font-size: .74rem; font-weight: 700; color: var(--dim); font-variant-numeric: tabular-nums; }

/* ===================== CONTENT ===================== */

.content { min-width: 0; }
.content-head { padding: 0 0 1.4rem; }

.content-title {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 1.85rem;
  letter-spacing: -.01em;
  background: linear-gradient(100deg, #fff 10%, var(--aqua-lt) 60%, var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  width: fit-content;
}
.content-sub { margin: .45rem 0 0; color: var(--muted); font-size: .9rem; max-width: 62ch; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(218px, 1fr)); gap: 1.15rem; }

/* --- package card --- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.4rem 1.05rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-2) 100%);
  text-align: center;
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px);
  transition: transform .45s var(--ease), box-shadow .35s, border-color .35s, opacity .45s;
}
.card.is-in { opacity: 1; transform: none; }

.card::before {
  content: "";
  position: absolute; top: 0; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--aqua), transparent);
  opacity: .45;
  transition: opacity .35s, left .35s var(--ease), right .35s var(--ease);
}
.card:hover { transform: translateY(-7px); border-color: rgba(53,163,214,.45); box-shadow: var(--shadow), var(--glow); }
.card:hover::before { opacity: 1; left: 0; right: 0; }

/* soft aqua bloom behind the artwork */
.card-art { position: relative; margin: 0 auto 1rem; width: 92px; height: 92px; display: grid; place-items: center; }
.card-art::after {
  content: "";
  position: absolute; inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(53,163,214,.3), transparent 68%);
  opacity: 0;
  transition: opacity .35s;
}
.card:hover .card-art::after { opacity: 1; }

.card-img { position: relative; width: 84px; height: 84px; object-fit: contain; image-rendering: pixelated; transition: transform .35s var(--ease); }
.card:hover .card-img { transform: scale(1.08) translateY(-2px); }

.card-img-fallback {
  position: relative;
  width: 84px; height: 84px;
  display: grid; place-items: center;
  border-radius: 20px;
  background: linear-gradient(150deg, var(--panel-2), var(--raised));
  border: 1px solid var(--line-2);
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 1.9rem;
  color: var(--aqua);
}

.card-name { margin: 0 0 .4rem; font-family: "Poppins", sans-serif; font-weight: 600; font-size: 1rem; color: #fff; letter-spacing: .01em; }

.card-price { margin: 0 0 1.15rem; font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--white); font-variant-numeric: tabular-nums; }
.card-price s { display: block; font-family: "Montserrat", sans-serif; font-size: .78rem; font-weight: 600; color: var(--dim); }

.card-badge {
  position: absolute; top: .8rem; right: .8rem;
  padding: .18rem .5rem;
  border-radius: 6px;
  background: rgba(63,180,106,.16);
  border: 1px solid rgba(63,180,106,.45);
  color: var(--good);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.card-foot { margin-top: auto; }

/* ===================== BUTTONS ===================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .65rem 1.4rem;
  border: none;
  border-radius: var(--r-sm);
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: .87rem;
  letter-spacing: .02em;
  cursor: pointer;
  transition: filter .25s, box-shadow .25s, transform .12s;
}
.btn-block { width: 100%; }

.btn-primary {
  color: #fff;
  background: linear-gradient(160deg, var(--aqua), var(--blue));
  box-shadow: 0 -4px 0 rgba(0,0,0,.2) inset, 0 4px 14px rgba(28,83,163,.35);
}
.btn-primary:hover:not(:disabled) { filter: brightness(1.13); box-shadow: 0 -4px 0 rgba(0,0,0,.26) inset, var(--glow); }
.btn-primary:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn-danger { background: none; border: none; color: var(--dim); cursor: pointer; padding: .2rem .45rem; font-size: 1.15rem; line-height: 1; }
.btn-danger:hover { color: var(--bad); }

/* ===================== STATES ===================== */

.state {
  padding: 3rem 1.8rem;
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--panel), transparent);
  text-align: center;
  color: var(--muted);
}
.state h3 { margin: 0 0 .55rem; font-family: "Poppins", sans-serif; font-size: 1.1rem; color: #fff; }
.state p { margin: 0 auto; max-width: 48ch; font-size: .9rem; }

.skeleton {
  height: 258px;
  border-radius: var(--r);
  background: linear-gradient(100deg, var(--panel) 30%, var(--panel-2) 50%, var(--panel) 70%);
  background-size: 220% 100%;
  animation: shimmer 1.3s linear infinite;
}
@keyframes shimmer { to { background-position: -120% 0; } }

/* ===================== CART ===================== */

.drawer-veil { position: fixed; inset: 0; z-index: 50; background: rgba(3,6,12,.74); backdrop-filter: blur(4px); animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 51;
  width: min(410px, 92vw);
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border-left: 1px solid var(--line-2);
  box-shadow: -24px 0 60px rgba(0,0,0,.55);
  animation: slide .3s var(--ease);
}
@keyframes slide { from { transform: translateX(100%); } }

.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1.15rem 1.35rem; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-family: "Poppins", sans-serif; font-size: 1.12rem; color: #fff; }
.drawer-close { width: 34px; height: 34px; border: none; border-radius: 9px; background: none; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; }
.drawer-close:hover { background: var(--panel-2); color: #fff; }

.drawer-body { flex: 1 1 auto; overflow-y: auto; padding: 1.1rem 1.35rem; display: grid; gap: .75rem; align-content: start; }

.line {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: .85rem;
  align-items: center;
  padding: .75rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--panel-2);
}
.line-img { width: 46px; height: 46px; object-fit: contain; border-radius: 9px; image-rendering: pixelated; background: var(--raised); }
.line-name { font-weight: 600; font-size: .88rem; color: #fff; }
.line-meta { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.drawer-foot { padding: 1.15rem 1.35rem; border-top: 1px solid var(--line); display: grid; gap: .95rem; }
.drawer-total { display: flex; align-items: baseline; justify-content: space-between; }
.drawer-total span { color: var(--muted); font-size: .88rem; }
.drawer-total strong { font-family: "Poppins", sans-serif; font-size: 1.4rem; color: var(--aqua); font-variant-numeric: tabular-nums; }
.drawer-empty { padding: 3rem 0; text-align: center; color: var(--dim); font-size: .9rem; }

/* ===================== TOAST ===================== */

.toast {
  position: fixed;
  left: 50%; bottom: 26px;
  z-index: 60;
  transform: translateX(-50%);
  padding: .75rem 1.25rem;
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--aqua);
  border-radius: var(--r-sm);
  background: var(--raised);
  box-shadow: var(--shadow);
  font-size: .88rem;
  font-weight: 600;
  color: #fff;
  animation: rise .3s var(--ease);
}
@keyframes rise { from { transform: translate(-50%, 14px); opacity: 0; } }
.toast.is-bad { border-left-color: var(--bad); }

/* ===================== FOOTER ===================== */

.footer { margin-top: auto; border-top: 1px solid var(--line); background: rgba(0,0,0,.28); padding: 1.8rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1.3rem; align-items: center; justify-content: space-between; }
.footer-brand { margin: 0 0 .25rem; font-family: "Poppins", sans-serif; font-weight: 700; color: #fff; }
.footer-brand em { font-style: normal; color: var(--aqua); }
.footer-note { margin: 0; font-size: .78rem; color: var(--dim); max-width: 62ch; line-height: 1.6; }
.footer-note a { color: var(--muted); border-bottom: 1px solid var(--line-2); }
.footer-note a:hover { color: var(--aqua); }
.footer-links { display: flex; gap: 1.2rem; font-size: .85rem; color: var(--muted); }
.footer-links a:hover { color: var(--aqua); }

/* ===================== RESPONSIVE ===================== */

@media (max-width: 980px) {
  :root { --hero-h: 470px; }
  .hero-grid { grid-template-columns: 1fr; justify-items: center; gap: 1.2rem; }
  .pill-ip, .pill-discord { margin: 0; }
  .pill-ip .pill-texts { text-align: left; }
  .main { grid-template-columns: 1fr; margin-top: 2rem; }
  .sidebar { position: static; }
  .topnav { display: none; }
  .trust-grid { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  :root { --hero-h: 400px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(152px, 1fr)); }
  .card-art, .card-img, .card-img-fallback { width: 66px; height: 66px; }
  .card-art { width: 74px; height: 74px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; }
  .card { opacity: 1; transform: none; }
}
