/* THESIS: ParkoMC's store lives in the world of its own emblem, a blossom-lit
   Japanese night garden; it refuses the neutral-black webstore shell every
   Minecraft shop ships.
   OWN-WORLD: plum-ink ground, washi paper panels with blossom-tinted hairlines,
   soft rounded-rectangle controls, blossom-fill primary actions, underline nav,
   pixel rank badges glowing in their own colors, falling petals.
   STORY: a player wanders in, feels the server's chill identity, copies the
   address or browses ranks, and buys without friction.
   FIRST VIEWPORT: home hero is left-aligned text (title, tagline, address chip,
   actions) with the PK emblem large on the right, blossom forest behind.
   FORM: refinement of the five existing pages inside this world; structure and
   function unchanged. */

:root {
  --bg: #0f0a12;
  --card: #18101d;
  --card-hover: #1e1526;
  --line: rgba(255, 182, 199, 0.11);
  --text: #f5f1f3;
  --muted: #ab9dab;
  --c1: #ff809b;
  --c2: #ffbac9;
  --c3: #ff99af;
  --success: #4ade80;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.2rem;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI Variable Display", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; }

#petals {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: rgba(15, 10, 18, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 0.65rem clamp(1rem, 4vw, 2rem);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav-brand img { border-radius: 8px; }

.nav-links {
  display: flex;
  gap: 0.25rem;
  margin-right: auto;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.45rem 0.1rem 0.3rem;
  margin: 0 0.55rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.nav-links a:hover { color: var(--text); }

.nav-links a.active {
  color: var(--text);
  border-bottom-color: var(--c1);
}

.nav-cta {
  white-space: nowrap;
  background: linear-gradient(135deg, #ffb3c6, #ff8fab);
  color: #23101a;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  padding: 0.45rem 1.05rem;
  border-radius: 10px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 143, 171, 0.3);
}

button.nav-cta {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.nav-cart {
  flex: none;
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.nav-cart svg { width: 19px; height: 19px; }

.nav-cart:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.35);
}

.cart-n {
  position: absolute;
  top: -5px;
  right: -6px;
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--c1), var(--c3));
  color: #1a0a10;
  font-size: 0.68rem;
  font-weight: 800;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.3rem 0.85rem 0.3rem 0.4rem;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.nav-user img {
  border-radius: 6px;
  image-rendering: pixelated;
}

.nav-user:hover { border-color: rgba(255, 255, 255, 0.35); }

.nav-inner { position: relative; }

/* sign-in modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.6);
  display: grid;
  place-items: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-card {
  width: min(24rem, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: grid;
  gap: 0.8rem;
}

.modal-card h3 { font-size: 1.2rem; }
.modal-card p { color: var(--muted); font-size: 0.9rem; }

.modal-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.modal-head {
  image-rendering: pixelated;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.modal-row input {
  flex: 1;
  min-width: 0;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  color: var(--text);
  font: inherit;
  outline: none;
}

.modal-row input:focus { border-color: rgba(255, 255, 255, 0.4); }

.modal-btns {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
}

.modal-err {
  color: #ff6b6b;
  font-size: 0.86rem;
  margin: -0.2rem 0 0;
}

/* ---------- hero ---------- */
main { position: relative; z-index: 1; }

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 6.5rem 1.25rem 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("/assets/bg.jpg") center / cover no-repeat;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(15, 10, 18, 0.55) 0%, rgba(15, 10, 18, 0.42) 45%, var(--bg) 100%);
}

.hero-content {
  max-width: 62rem;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.75fr);
  align-items: center;
  gap: 0 2.5rem;
  text-align: left;
  justify-items: start;
}

.hero-badge {
  grid-column: 2;
  grid-row: 1 / span 5;
  justify-self: center;
  display: grid;
  place-items: center;
}

.hero-badge img {
  width: min(240px, 32vw);
  height: auto;
  filter: drop-shadow(0 14px 34px rgba(0, 0, 0, 0.55));
  animation: drift 7s ease-in-out infinite;
}

@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 860px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .hero-badge {
    grid-column: 1;
    grid-row: 1;
  }
  .hero-badge img { width: 150px; }
}

.hero h1 {
  margin-top: 0;
  font-size: clamp(2.7rem, 8vw, 4.4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.tagline {
  margin: 0.7rem 0 0;
  max-width: 34rem;
  color: #e6dde4;
  font-size: clamp(0.98rem, 2.3vw, 1.08rem);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

.ip-pill {
  margin-top: 1.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(24, 16, 29, 0.82);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}

.ip-pill:hover {
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.ip-pill .ic { width: 16px; height: 16px; color: var(--muted); }

.ip-pill .ic-check { display: none; color: var(--success); }
.ip-pill.copied .ic-copy { display: none; }
.ip-pill.copied .ic-check { display: block; }
.ip-pill.copied { border-color: rgba(74, 222, 128, 0.5); }

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.8);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.cta-row {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .cta-row { justify-content: center; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.72rem 1.5rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s, background 0.15s;
}

.btn-primary {
  background: linear-gradient(135deg, #ffb3c6, #ff8fab);
  color: #23101a;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 143, 171, 0.32);
}

.btn-ghost {
  background: rgba(24, 16, 29, 0.6);
  color: var(--text);
  border-color: rgba(255, 182, 199, 0.22);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.hero-note {
  margin-top: 1.3rem;
  color: #cec2cc;
  font-size: 0.85rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

/* ---------- sections ---------- */
.section {
  max-width: 72rem;
  margin: 0 auto;
  padding: 3.2rem clamp(1rem, 4vw, 2rem);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3.5vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section-head h2::after,
.section-head-col h2::after,
.co-headrow h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin-top: 0.4rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--c1), transparent);
}

.section-head.center h2::after { margin-left: auto; margin-right: auto; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: transform 0.18s, border-color 0.18s, background 0.18s;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: var(--card-hover);
}

/* section heads */
.section-head.center {
  display: block;
  text-align: center;
}

.section-sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

/* ranks showcase (store) */
.ranks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(232px, 100%), 1fr));
  gap: 1rem;
}

.rank-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.8rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1rem 1.25rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s, border-color 0.18s, background 0.18s;
}

.rank-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rc), transparent);
}

.rank-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--rc) 45%, transparent);
  background: var(--card-hover);
}

.rank-card img {
  image-rendering: pixelated;
  filter: drop-shadow(0 0 14px color-mix(in srgb, var(--rc) 40%, transparent));
}

.rank-card h3 { font-size: 1.05rem; }

.rank-card.top {
  border-color: color-mix(in srgb, var(--rc) 40%, transparent);
}

.rank-chip {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--rc);
  background: color-mix(in srgb, var(--rc) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--rc) 35%, transparent);
  padding: 0.16rem 0.5rem;
  border-radius: 8px;
}

.rank-price {
  color: var(--text);
  font-weight: 800;
  font-size: 1rem;
  min-height: 1.2em;
}

.head-link {
  background: none;
  border: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s;
}

.head-link:hover { color: var(--text); }

.section-head-col {
  margin-bottom: 1.4rem;
}

.section-head-col h2 {
  font-size: clamp(1.5rem, 3.5vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.rank-glow {
  image-rendering: pixelated;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--rc) 45%, transparent));
}

.modal-badge {
  display: block;
  margin: 0.1rem auto 0;
}

/* compare table */
.table-wrap {
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cmp-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.cmp-table th,
.cmp-table td {
  padding: 0.85rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.cmp-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.015); }
.cmp-table tbody tr:hover { background: rgba(255, 182, 199, 0.04); }

.cmp-table thead th {
  vertical-align: bottom;
}

.cmp-table thead th:first-child,
.cmp-table tbody th {
  text-align: left;
}

.cmp-table tbody th {
  color: var(--muted);
  font-weight: 600;
}

.cmp-table tfoot td { border-bottom: none; }

.cmp-badge {
  image-rendering: pixelated;
  display: block;
  margin: 0 auto 0.45rem;
}

.cmp-table thead th.rank-col {
  position: relative;
  padding: 0;
  vertical-align: bottom;
}

.rank-col::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rc), transparent);
}

.rank-head {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  padding: 1.1rem 0.6rem 0.85rem;
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: background 0.15s;
}

.rank-head:hover {
  background: rgba(255, 255, 255, 0.04);
}

.rank-action {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 0.22rem 0.9rem;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.rank-head:hover .rank-action {
  color: #23101a;
  background: linear-gradient(135deg, #ffb3c6, #ff8fab);
  border-color: transparent;
}

.rank-action.gift {
  color: var(--c2);
  border-color: rgba(255, 182, 199, 0.3);
}

.rank-head:hover .rank-action.gift {
  color: #23101a;
}

.rank-head img {
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--rc) 40%, transparent));
}

.feat-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cmp-price {
  display: block;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 0.15rem;
}

.mark {
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 800;
}

.mark-yes {
  background: rgba(74, 222, 128, 0.13);
  border: 1px solid rgba(74, 222, 128, 0.35);
  color: var(--success);
}

.mark-no {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: #948595;
}

.cmp-buy {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.store-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 1.3rem;
}

/* pages without a hero */
.page {
  padding-top: 4.2rem;
  min-height: 72vh;
}

/* checkout */
.co-wide { max-width: 72rem; }

.co-headrow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.co-headrow h2 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.co-count {
  color: var(--muted);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.9rem;
}

.co-cols {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 1.4rem;
  align-items: start;
}

.co-left {
  display: grid;
  gap: 0.9rem;
  min-width: 0;
}

.co-right {
  display: grid;
  gap: 0.85rem;
  padding: 1.5rem;
  position: sticky;
  top: 4.6rem;
}

.co-right h3 { font-size: 1.15rem; }

@media (max-width: 860px) {
  .co-cols { grid-template-columns: 1fr; }
  .co-right { position: static; }
}

.gift-panel {
  display: grid;
  gap: 0.6rem;
  padding: 1.3rem 1.4rem;
}

.gift-panel h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
}

.gift-panel h3 svg { width: 18px; height: 18px; color: var(--muted); }

.gift-panel p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.gift-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

#gift-head {
  image-rendering: pixelated;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.gift-row input {
  flex: 1;
  min-width: 0;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  color: var(--text);
  font: inherit;
  outline: none;
}

.gift-row input:focus { border-color: rgba(255, 255, 255, 0.4); }

.gift-row .btn { padding: 0.6rem 1.3rem; }

.gift-panel .gift-err {
  color: #ff6b6b;
  font-size: 0.86rem;
}

.co-footrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.3rem;
}

.clear-cart {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  color: #ff6b6b;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.3rem 0.4rem;
  border-radius: 8px;
  transition: background 0.15s;
}

.clear-cart svg { width: 16px; height: 16px; }
.clear-cart:hover { background: rgba(255, 107, 107, 0.1); }

.cart-items {
  display: grid;
  gap: 0.5rem;
}

.cart-item {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.95rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
}

.rank-tile {
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.ci-tile { padding: 0.45rem 0.6rem; }

.cart-item.owned {
  border-color: #ff6b6b;
  background: rgba(255, 107, 107, 0.08);
}

.ci-upgrade {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--c2);
  background: rgba(255, 182, 199, 0.12);
  border: 1px solid rgba(255, 182, 199, 0.3);
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  margin-left: 0.5rem;
}
.ci-tile img { image-rendering: pixelated; display: block; }

.ci-info {
  flex: 1;
  min-width: 0;
  display: grid;
  line-height: 1.35;
}

.ci-info strong { font-size: 0.95rem; }

.ci-sub {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.ci-head {
  image-rendering: pixelated;
  border-radius: 4px;
}

.ci-price {
  font-weight: 700;
  font-size: 0.92rem;
}

.ci-remove {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.3rem 0.4rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.ci-remove:hover {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
}

.code-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.code-row input {
  flex: 1;
  min-width: 0;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.9rem;
  color: var(--text);
  font: inherit;
  outline: none;
}

.code-row input:focus { border-color: rgba(255, 255, 255, 0.4); }

.code-row .btn { padding: 0.55rem 1.2rem; }

.co-summary {
  display: grid;
  gap: 0.35rem;
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}

.sum-row {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.92rem;
}

.sum-row.sum-total {
  color: var(--text);
  font-weight: 800;
  font-size: 1.05rem;
  padding-top: 0.2rem;
}

#sum-disc { color: var(--success); }

.co-back {
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: none;
}

.co-back:hover { color: var(--text); }

.co-rank {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.co-rank h2 { font-size: 1.35rem; }

#co-badge { image-rendering: pixelated; }

.co-price {
  color: var(--muted);
  font-weight: 700;
}

.co-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}

.co-user {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

#co-head {
  image-rendering: pixelated;
  border-radius: 8px;
  border: 1px solid var(--line);
}

#mc-name {
  flex: 1;
  min-width: 0;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  color: var(--text);
  font: inherit;
  outline: none;
}

#mc-name:focus { border-color: rgba(255, 255, 255, 0.4); }

.co-hint {
  font-size: 0.8rem;
  color: var(--muted);
}

.co-hint.error { color: #ff6b6b; }
.co-hint.ok { color: var(--success); }

.co-gate {
  color: #ff6b6b;
  text-align: center;
  margin: 0 0 0.5rem;
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  filter: saturate(0.6);
}

.co-pay { display: grid; gap: 0.6rem; }

.co-mock { justify-content: center; }

.co-note {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.co-done {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  text-align: center;
  padding-top: 0.4rem;
}

.co-done h3 { font-size: 1.3rem; }
.co-done p { color: var(--muted); }

/* profile */
.prof-card {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  padding: 1.7rem 1.8rem;
  flex-wrap: wrap;
}

#prof-head {
  image-rendering: pixelated;
  border-radius: 14px;
}

.prof-info {
  display: grid;
  gap: 0.25rem;
  justify-items: start;
  min-width: 0;
}

.prof-info h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.prof-sub {
  color: var(--muted);
  font-size: 0.9rem;
}

.prof-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.prof-spend {
  color: var(--muted);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.82rem;
}

.prof-chip {
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.35);
  color: var(--success);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.16rem 0.6rem;
  border-radius: 8px;
}

.prof-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.prof-signout {
  background: none;
  border: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s;
}

.prof-signout:hover { color: var(--text); }

.prof-purchases {
  margin-top: 1.2rem;
  padding: 1.6rem 1.8rem;
  display: grid;
  gap: 1rem;
}

.prof-purchases h3 { font-size: 1.15rem; }

.purchase-list {
  display: grid;
  gap: 0.5rem;
}

.pur-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-size: 0.92rem;
}

.pur-date {
  color: var(--muted);
  flex: none;
  width: 9.5rem;
}

.pur-what {
  flex: 1;
  min-width: 0;
}

.pur-right {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
}

.pur-amt {
  font-weight: 700;
}

.pur-status {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--success);
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.3);
  padding: 0.12rem 0.5rem;
  border-radius: 8px;
}

.purchase-empty {
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 2.2rem 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.purchase-empty a {
  color: var(--text);
  font-weight: 700;
}

@media (max-width: 640px) {
  .prof-actions { margin-left: 0; width: 100%; }
  .pur-row { flex-wrap: wrap; }
  .pur-date { width: auto; }
}

/* empty cart card */
.empty-card {
  max-width: 26rem;
  margin: 2.5rem auto;
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  text-align: center;
  padding: 2.4rem 1.5rem 2.2rem;
}

.empty-ic {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.empty-ic svg { width: 24px; height: 24px; }

.empty-card h3 { font-size: 1.2rem; }

.empty-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

.empty-card .btn { margin-top: 0.5rem; }

/* leaderboard */
.sup-amount {
  color: var(--c2);
  font-weight: 700;
  font-size: 0.9rem;
  min-height: 1.1em;
}

.lb-list {
  max-width: 34rem;
  margin: 1.6rem auto 0;
  display: grid;
  gap: 0.5rem;
}

.lb-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.9rem;
}

.lb-pos {
  width: 2.2rem;
  color: var(--muted);
  font-weight: 800;
}

.lb-row img {
  image-rendering: pixelated;
  border-radius: 6px;
}

.lb-name {
  flex: 1;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lb-amt {
  color: var(--c2);
  font-weight: 700;
}

.lb-cta {
  text-align: center;
  margin-top: 1.6rem;
}

.lb-more {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
  transition: color 0.15s;
}
.lb-more:hover { color: var(--c2); }
.lb-more span { display: inline-block; transition: transform 0.15s; }
.lb-more:hover span { transform: translateX(3px); }

/* supporters podium */
.podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.9rem;
}

.sup-card {
  width: 186px;
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1rem 1.3rem;
  transition: transform 0.18s, border-color 0.18s;
}

.sup-card:hover { border-color: rgba(255, 255, 255, 0.16); }

.sup-card.first {
  width: 212px;
  border-color: rgba(255, 215, 94, 0.3);
  transform: translateY(-14px);
}

.sup-card.first:hover { border-color: rgba(255, 215, 94, 0.45); }

.crown {
  width: 26px;
  height: 26px;
  color: #ffd75e;
  margin-bottom: 0.1rem;
}

.sup-avatar {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 2px dashed rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.3);
  color: var(--muted);
  font-size: 1.5rem;
  font-weight: 800;
}

.first .sup-avatar {
  width: 76px;
  height: 76px;
  font-size: 1.8rem;
}

.sup-avatar.filled {
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.sup-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 9px;
  image-rendering: pixelated;
}

.sup-rank {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.sup-card h3 { font-size: 0.98rem; }

/* ---- supporters: featured card + monthly leaders ---- */
.sup-wrap {
  max-width: 52rem;
  margin: 1.7rem auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.4rem;
}

.feat,
.leaders { min-width: 0; }

.feat {
  display: flex;
  gap: 1.7rem;
  align-items: center;
  background: var(--card);
  border: 1px solid rgba(255, 215, 94, 0.22);
  border-radius: 16px;
  padding: 1.7rem 1.9rem;
  box-shadow: 0 22px 55px -28px rgba(255, 215, 94, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.feat-stage {
  position: relative;
  flex: none;
  display: grid;
  place-items: end center;
  min-width: 128px;
}
.feat-stage::before {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 50%;
  width: 128px;
  height: 28px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255, 215, 94, 0.3), transparent 68%);
  filter: blur(5px);
}
.feat-render {
  position: relative;
  height: 236px;
  width: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 15px 15px rgba(0, 0, 0, 0.55));
}

.feat-main { min-width: 0; flex: 1; }
.feat-name-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.feat-crown { width: 24px; height: 24px; flex: none; }
.feat-name {
  margin: 0;
  font-size: clamp(1.7rem, 5vw, 2.35rem);
  line-height: 1.05;
  overflow: hidden;
  text-overflow: ellipsis;
}
.feat-sub {
  color: var(--muted);
  margin: 0.4rem 0 1.15rem;
}

.feat-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}
.stat {
  display: grid;
  gap: 0.28rem;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
}
.stat-k {
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat-v {
  font-size: 1.18rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stat-gold { color: #ffd75e; }

.leaders {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem 1.3rem 1.35rem;
}
.leaders-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}
.leaders-head h3 { font-size: 1.02rem; }
.leaders-head span {
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
}
.leaders .lb-list { max-width: none; margin: 0; gap: 0.45rem; }

.lb-row.first {
  border-color: rgba(255, 215, 94, 0.32);
  background: linear-gradient(90deg, rgba(255, 215, 94, 0.1), rgba(255, 215, 94, 0.02));
}
.lb-pos { display: flex; align-items: center; }
.lb-crown { width: 20px; height: 20px; color: #ffd75e; }
.lb-row.first .lb-name { color: #ffe6a6; }

@media (max-width: 560px) {
  .feat { flex-direction: column; text-align: center; padding: 1.5rem 1.3rem; }
  .feat-name-row { justify-content: center; }
  .feat-render { height: 208px; }
  .feat-stats { gap: 0.5rem; }
  .stat { padding: 0.7rem 0.55rem; }
  .stat-v { font-size: 1.02rem; }
}

.tile {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 128, 155, 0.22), rgba(255, 153, 175, 0.1));
  border: 1px solid rgba(255, 128, 155, 0.25);
  color: var(--c2);
}

.tile svg { width: 23px; height: 23px; }

.tile.round { border-radius: 50%; }

.btn-invite {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.14);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease,
              box-shadow 0.3s ease, transform 0.15s;
}

.btn-invite:hover {
  background: linear-gradient(135deg, #ffb3c6, #ff8fab);
  color: #23101a;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 143, 171, 0.32);
}

/* discord band */
.discord-band {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.5rem 1.7rem;
  flex-wrap: wrap;
}

.band-text { margin-right: auto; }
.band-text h3 { font-size: 1.15rem; }
.band-text p { color: var(--muted); font-size: 0.92rem; }

/* ---------- footer ---------- */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}

.foot-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.2rem clamp(1rem, 4vw, 2rem) 1.4rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.foot-brand p {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.foot-social {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--muted);
  transition: color 0.15s, border-color 0.15s;
}

.foot-social:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.3); }
.foot-social svg { width: 20px; height: 20px; }

.foot-bottom {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem clamp(1rem, 4vw, 2rem) 1.6rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--line);
}

/* ---------- toast ---------- */
#toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  transform: translate(-50%, 20px);
  z-index: 20;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 700;
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

#toast.toast-ok { border-color: var(--success); color: var(--success); }
#toast.toast-err { border-color: #ff6b6b; color: #ff6b6b; }

#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (max-width: 640px) {
  .nav-inner { gap: 0.7rem; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 0.3rem 0.55rem; font-size: 0.82rem; }
  .nav-cta { padding: 0.35rem 0.75rem; font-size: 0.8rem; }
  .nav-user { font-size: 0.8rem; padding: 0.26rem 0.7rem 0.26rem 0.34rem; }
  .discord-band .btn { width: 100%; justify-content: center; }
}

@media (max-width: 430px) {
  .brand-name { display: none; }
  .nav-user span { display: none; }
  .nav-user { padding: 0.26rem 0.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot { animation: none; }
  .hero-badge img { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .ip-pill, .nav-cta { transition: none; }
}

#paypal-buttons.pp-busy {
  pointer-events: none;
  opacity: 0.5;
}
