:root {
  color-scheme: dark;
  font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  background: #151b2d;
  color: #fff8d6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, #49b7ff 0 21%, #7cdd56 21% 29%, #5d9d35 29% 35%, #7d512a 35% 100%);
}

main {
  min-height: 100vh;
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  border-bottom: 10px solid #2b1b12;
}

.sky {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(255, 255, 255, 0.85) 8% 15%, transparent 15% 100%) 8% 10% / 240px 56px repeat-x,
    linear-gradient(90deg, transparent 0 12%, rgba(255, 255, 255, 0.8) 12% 22%, transparent 22% 100%) 32% 18% / 310px 48px repeat-x,
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 45%);
  pointer-events: none;
  animation: drift-clouds 18s linear infinite;
}

.ticker {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 18px;
  width: max-content;
  min-width: 200%;
  padding: 10px 0;
  border-bottom: 4px solid #1d140e;
  background: #111827;
  color: #fff3b0;
  font-weight: 950;
  letter-spacing: 0;
  animation: ticker-scroll 20s linear infinite;
}

.ticker span {
  min-width: 190px;
  text-align: center;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 28px));
  min-height: 92vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 34px;
  align-items: center;
  padding: 74px 0 46px;
}

.server-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 7px 14px 7px 7px;
  border: 4px solid #1d140e;
  background: #fff3b0;
  box-shadow: 7px 7px 0 #1d140e;
  color: #23150d;
  font-weight: 950;
}

.server-badge img {
  width: 48px;
  height: 48px;
  image-rendering: pixelated;
}

h1 {
  display: inline-block;
  max-width: 820px;
  margin: 34px 0 0;
  padding: 10px 22px;
  border: 4px solid #1d140e;
  background: #111827;
  box-shadow: 7px 7px 0 #1d140e;
  color: #fff3b0;
  font-size: 3.2rem;
  line-height: 1.1;
}

.hook {
  max-width: 690px;
  margin: 28px 0 0;
  color: #21150e;
  font-size: 1.7rem;
  line-height: 1.2;
  font-weight: 950;
}

.perk-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 720px;
  margin-top: 22px;
}

.perk-strip span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 3px solid #1d140e;
  background: #fff3b0;
  box-shadow: 4px 4px 0 #1d140e;
  color: #1d140e;
  font-size: 0.95rem;
  font-weight: 950;
}

.price-card {
  width: fit-content;
  max-width: min(100%, 430px);
  margin-top: 24px;
  padding: 12px 20px;
  border: 4px solid #1d140e;
  background: #ffc928;
  box-shadow: 7px 7px 0 #1d140e;
  color: #2a1708;
}

.discount-badge {
  width: fit-content;
  max-width: 100%;
  margin-bottom: 9px;
  padding: 6px 10px;
  border: 3px solid #1d140e;
  background: #ff4f7b;
  box-shadow: 4px 4px 0 #1d140e;
  color: #fff8d6;
  font-size: 1rem;
  line-height: 1.15;
  font-weight: 950;
  text-transform: uppercase;
}

.price-row {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.join-card {
  width: fit-content;
  max-width: min(100%, 620px);
  margin-top: 22px;
  padding: 12px 16px;
  border: 4px solid #1d140e;
  background: #65f0ff;
  box-shadow: 6px 6px 0 #1d140e;
  color: #1d140e;
  font-size: 1.16rem;
  line-height: 1.25;
  font-weight: 950;
}

.join-card strong {
  white-space: nowrap;
}

.price-card strong,
.price-card span {
  display: block;
}

.price-card strong {
  font-size: 3.7rem;
  line-height: 0.95;
}

.price-card span {
  margin-top: 4px;
  font-size: 1.08rem;
  font-weight: 900;
}

.price-card p {
  margin: 10px 0 0;
  max-width: 340px;
  font-size: 0.92rem;
  line-height: 1.25;
  font-weight: 900;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
}

.button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 4px solid #1d140e;
  border-radius: 6px;
  box-shadow: 6px 6px 0 #1d140e;
  color: #1d140e;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.08rem;
  font-weight: 950;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}

.button:hover:not(:disabled) {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 #1d140e;
  filter: brightness(1.05);
}

.button:active:not(:disabled) {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 #1d140e;
}

.button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.button.primary {
  background: #ff4f7b;
  animation: buy-pulse 1.7s ease-in-out infinite;
}

.button.secondary {
  background: #65f0ff;
}

.checkout-form {
  width: min(100%, 620px);
  margin-top: 28px;
  border: 4px solid #1d140e;
  box-shadow: 8px 8px 0 #1d140e;
  padding: 16px;
  background:
    linear-gradient(90deg, rgba(255, 201, 40, 0.14) 0 50%, transparent 50% 100%) 0 0 / 22px 22px,
    #192236;
  color: #fff8d6;
}

.checkout-head {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 3px solid #1d140e;
  background: #111827;
  box-shadow: 4px 4px 0 #1d140e;
}

.checkout-head span,
.checkout-head strong {
  display: block;
  line-height: 1.1;
  font-weight: 950;
}

.checkout-head span {
  color: #ffc928;
  font-size: 1.18rem;
}

.checkout-head strong {
  padding: 6px 8px;
  background: #69ef57;
  color: #1d140e;
  font-size: 0.78rem;
  text-align: center;
}

.edition-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 14px;
  border: 3px solid #1d140e;
  padding: 6px;
  background: #0f1726;
  box-shadow: inset 0 0 0 2px #2e3b59;
}

.edition-toggle label {
  min-height: 48px;
  position: relative;
}

.edition-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.edition-toggle span {
  min-height: 48px;
  display: grid;
  place-items: center;
  border: 3px solid transparent;
  background: #263455;
  color: #fff8d6;
  font-size: 1rem;
  font-weight: 950;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

.edition-toggle input:checked + span {
  background: #ff4f7b;
  color: #fff8d6;
  border-color: #1d140e;
  box-shadow: 4px 4px 0 #1d140e;
  transform: translate(-2px, -2px);
}

.field-label {
  display: block;
  margin-bottom: 9px;
  color: #fff3b0;
  font-size: 1rem;
  font-weight: 950;
}

.checkout-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(142px, auto);
  gap: 12px;
  align-items: stretch;
}

.checkout-row input {
  width: 100%;
  min-height: 58px;
  border: 4px solid #1d140e;
  box-shadow: inset 0 -5px 0 rgba(29, 20, 14, 0.18);
  padding: 0 16px;
  background: #fff8d6;
  color: #1d140e;
  font-family: inherit;
  font-size: 1.08rem;
  font-weight: 950;
  outline: none;
}

.checkout-row input:focus {
  box-shadow: inset 0 -5px 0 rgba(29, 20, 14, 0.18), 0 0 0 4px #65f0ff;
}

.checkout-button {
  min-width: 142px;
  box-shadow: 5px 5px 0 #1d140e;
}

.checkout-hint,
.checkout-status {
  margin: 11px 0 0;
  min-height: 22px;
  color: #d4f7ff;
  font-size: 0.94rem;
  line-height: 1.25;
  font-weight: 900;
}

.checkout-status[data-tone="error"] {
  color: #b00020;
}

.checkout-status[data-tone="ok"] {
  color: #1d6f2d;
}

.checkout-status[data-tone="busy"] {
  color: #593400;
}

.legal-check {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 14px;
  padding: 12px;
  border: 3px solid #1d140e;
  background: #fff8d6;
  color: #1d140e;
  font-size: 0.9rem;
  line-height: 1.35;
  font-weight: 800;
}

.legal-check input {
  width: 20px;
  height: 20px;
  accent-color: #ff4f7b;
}

.legal-check a,
.legal-footer a {
  color: inherit;
  font-weight: 950;
}

.legal-footer {
  padding: 22px 18px;
  border-top: 4px solid #1d140e;
  background: #111827;
  color: #d4d9e8;
  text-align: center;
  line-height: 1.7;
}

.showcase {
  display: grid;
  gap: 18px;
}

.chat-preview,
.alert-preview,
.brainrot-card {
  border: 4px solid #1d140e;
  box-shadow: 8px 8px 0 #1d140e;
  background: #192236;
}

.chat-preview {
  min-height: 86px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding: 18px;
  font-size: 1.08rem;
  font-weight: 900;
}

.vip-tag {
  padding: 4px 8px;
  background: #ffc928;
  color: #21150e;
  animation: vip-tag-flash 1.35s steps(2, end) infinite;
}

.player {
  color: #fffef2;
}

.message {
  color: #c5ffd0;
}

.alert-preview {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  background: #32152a;
}

.alert-preview strong {
  width: fit-content;
  padding: 5px 9px;
  border: 3px solid #1d140e;
  background: #ff4fbd;
  color: #fff8d6;
  font-size: 0.92rem;
  font-weight: 950;
  box-shadow: 4px 4px 0 #1d140e;
  animation: alert-flash 1.4s steps(2, end) infinite;
}

.alert-preview span {
  color: #fff8d6;
  font-size: 1.06rem;
  line-height: 1.3;
  font-weight: 900;
}

.brainrot-card {
  padding: 22px;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25% 50%, rgba(255, 255, 255, 0.08) 50% 75%, transparent 75%) 0 0 / 34px 34px,
    #262f4b;
  animation: card-bob 3s ease-in-out infinite;
}

.rarity-label {
  display: inline-block;
  margin-bottom: 16px;
  padding: 7px 10px;
  border: 3px solid #1d140e;
  background: #fff3b0;
  color: #1d140e;
  font-weight: 950;
  box-shadow: 4px 4px 0 #1d140e;
}

.brainrot-card p {
  margin: 18px 0 0;
  color: #fff6bd;
  font-size: 1.28rem;
  line-height: 1.35;
  font-weight: 900;
}

.cube-stack {
  display: grid;
  grid-template-columns: repeat(5, 54px);
  gap: 10px;
}

.cube {
  width: 54px;
  height: 54px;
  border: 4px solid #1d140e;
  box-shadow: 4px 4px 0 #1d140e;
  animation: cube-bounce 1.8s ease-in-out infinite;
}

.cube.gold { background: #ffc928; }
.cube.lime { background: #69ef57; animation-delay: 0.12s; }
.cube.pink { background: #ff4fbd; animation-delay: 0.24s; }
.cube.cyan { background: #4fe8ff; animation-delay: 0.36s; }
.cube.red { background: #ff5248; animation-delay: 0.48s; }

.feature-band,
.join-band,
.how-it-works {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
}

.join-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 34px 0 0;
}

.join-band div {
  min-height: 112px;
  border: 4px solid #1d140e;
  box-shadow: 7px 7px 0 #1d140e;
  padding: 18px;
  background: #fff3b0;
  color: #1d140e;
}

.join-band strong,
.join-band span {
  display: block;
}

.join-band strong {
  font-size: 1.22rem;
  line-height: 1.1;
}

.join-band span {
  margin-top: 12px;
  overflow-wrap: anywhere;
  font-size: 1.08rem;
  line-height: 1.28;
  font-weight: 950;
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 34px 0;
}

.feature,
.steps div {
  min-height: 156px;
  border: 4px solid #1d140e;
  box-shadow: 7px 7px 0 #1d140e;
  padding: 18px;
  color: #1d140e;
}

.feature strong,
.feature span,
.steps strong,
.steps span {
  display: block;
}

.feature strong {
  font-size: 1.3rem;
  line-height: 1.05;
}

.feature span {
  margin-top: 12px;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 850;
}

.feature.gold { background: #ffc928; }
.feature.emerald { background: #69ef57; }
.feature.violet { background: #b47cff; }
.feature.cyan { background: #65f0ff; }
.feature.red { background: #ff6b5f; }
.feature.pink { background: #ff9ad5; }

.feature {
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.feature:hover {
  transform: translate(-3px, -3px);
  box-shadow: 10px 10px 0 #1d140e;
}

.how-it-works {
  padding: 10px 0 42px;
}

.how-it-works h2 {
  margin: 0 0 16px;
  color: #fffef2;
  font-size: 3.8rem;
  text-shadow: 4px 4px 0 #2b1b12;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.steps div {
  background: #fff3b0;
}

.steps strong {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: #2b1b12;
  color: #fff3b0;
  font-size: 1.5rem;
}

.steps span {
  margin-top: 16px;
  font-size: 1.12rem;
  line-height: 1.3;
  font-weight: 900;
}

.parent-note {
  margin: 18px 0 0;
  max-width: 720px;
  border: 4px solid #1d140e;
  box-shadow: 6px 6px 0 #1d140e;
  padding: 14px 16px;
  background: #65f0ff;
  color: #1d140e;
  font-size: 1.04rem;
  line-height: 1.35;
  font-weight: 950;
}

@media (max-width: 920px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .join-band {
    grid-template-columns: 1fr;
  }

  .feature-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: auto;
    padding-top: 66px;
  }

  .hook {
    font-size: 1.35rem;
  }

  .join-card {
    font-size: 1rem;
  }

  .price-card strong {
    font-size: 2.45rem;
  }

  h1 {
    font-size: 2rem;
  }

  .how-it-works h2 {
    font-size: 2.25rem;
  }

  .button {
    width: 100%;
  }

  .checkout-row {
    grid-template-columns: 1fr;
  }

  .cube-stack {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .cube {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .feature-band,
  .steps {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

@keyframes drift-clouds {
  from { background-position: 8% 10%, 32% 18%, 0 0; }
  to { background-position: 320px 10%, -280px 18%, 0 0; }
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes buy-pulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes vip-tag-flash {
  0%, 100% { background: #ffc928; }
  50% { background: #fff3b0; }
}

@keyframes alert-flash {
  0%, 100% { background: #ff4fbd; }
  50% { background: #ff5248; }
}

@keyframes card-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes cube-bounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(3deg); }
}

.checkout-form,
.price-card,
.join-card,
.server-badge,
.feature,
.steps div,
.join-band div,
.chat-preview,
.alert-preview,
.brainrot-card,
.parent-note,
h1 {
  border-radius: 6px;
}

.store-hero {
  position: relative;
  overflow: hidden;
  padding-bottom: 40px;
  border-bottom: 10px solid #2b1b12;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 201, 40, 0.16), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(101, 240, 255, 0.14), transparent 40%),
    #151b2d;
}

.store-hero .ticker {
  position: relative;
}

.store-hero-inner {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding-top: 40px;
}

.store-hero h1 {
  margin-top: 0;
}

.store-hero .hook {
  color: #fff8d6;
}

.store-identity {
  margin-top: 26px;
}

.catalogue {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 36px 0 8px;
}

.catalogue h2 {
  margin: 26px 0 14px;
  color: #fffef2;
  font-size: 2.6rem;
  text-shadow: 4px 4px 0 #2b1b12;
}

.catalogue-note {
  max-width: 860px;
  margin: 0 0 18px;
  padding: 12px 16px;
  border: 4px solid #1d140e;
  border-radius: 6px;
  box-shadow: 6px 6px 0 #1d140e;
  background: #fff3b0;
  color: #1d140e;
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 900;
}

.catalogue-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.catalogue-grid.events {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border: 4px solid #1d140e;
  border-radius: 8px;
  box-shadow: 8px 8px 0 #1d140e;
  background: #192236;
  color: #fff8d6;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.product-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 12px 12px 0 #1d140e;
}

.product-card h3 {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.05;
}

.product-card p {
  margin: 0;
  flex-grow: 1;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 850;
  color: #e9e2c0;
}

.product-tag {
  width: fit-content;
  padding: 5px 10px;
  border: 3px solid #1d140e;
  border-radius: 4px;
  box-shadow: 4px 4px 0 #1d140e;
  background: #65f0ff;
  color: #1d140e;
  font-size: 0.82rem;
  font-weight: 950;
}

.product-tag.gold-tag {
  background: linear-gradient(90deg, #ffc928, #ff8a3d);
}

.product-price strong {
  font-size: 2.1rem;
  color: #ffc928;
}

.product-price span {
  font-size: 0.95rem;
  font-weight: 900;
  color: #d4f7ff;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-actions .button {
  min-height: 50px;
  font-size: 1rem;
}

.vip-card {
  background:
    linear-gradient(135deg, rgba(255, 201, 40, 0.16), transparent 55%),
    #192236;
}

.event-storm { border-top: 8px solid #8f7bff; }
.event-luck { border-top: 8px solid #69ef57; }
.event-rain { border-top: 8px solid #4fe8ff; }
.event-frenzy { border-top: 8px solid #ff6b5f; }

@media (max-width: 980px) {
  .catalogue-grid.events {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .catalogue-grid,
  .catalogue-grid.events {
    grid-template-columns: 1fr;
  }

  .catalogue h2 {
    font-size: 1.9rem;
  }
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  background: #111827;
  border-bottom: 4px solid #1d140e;
}

.site-nav .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: #fff3b0;
  font-weight: 950;
  font-size: 1.15rem;
  text-decoration: none;
}

.site-nav .brand img {
  width: 34px;
  height: 34px;
  image-rendering: pixelated;
}

.site-nav a.nav-link {
  padding: 8px 14px;
  border: 3px solid #1d140e;
  background: #fff3b0;
  color: #23150d;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 4px 4px 0 #1d140e;
}

.site-nav a.nav-link:hover {
  transform: translate(1px, 1px);
  box-shadow: 3px 3px 0 #1d140e;
}

.site-nav a.nav-link.vip {
  background: linear-gradient(90deg, #ffc928, #ff8a3d);
}
