@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/poppins-400.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/poppins-500.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/poppins-600.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/poppins-700.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/poppins-800.woff2') format('woff2'); }

:root {
  --bg: #141414;
  --surface: rgba(32, 32, 32, 0.92);
  --surface-solid: #1e1e1e;
  --surface-2: #282828;
  --border: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --muted: #9a9a9a;
  --soft: #d0d0d0;
  --blue: #3b7bff;
  --blue-hover: #5a90ff;
  --sky: #4fb6ff;
  --gold: #f5b82e;
  --green: #3ddc84;
  --purple: #a855f7;
  --discord: #5865f2;
  --discord-hover: #6d78ff;
  --offline: #ff5a6a;
  --radius: 18px;
  --radius-sm: 12px;
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* The hidden attribute always wins over component display rules (buttons, flex rows). */
[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
}

body {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Language blocks for long-form pages: <div data-only="en"> / <div data-only="de">. */
html[lang='de'] [data-only='en'],
html[lang='en'] [data-only='de'] {
  display: none !important;
}

/* Stage: full-width artwork behind header, nav and hero */

.stage {
  position: relative;
  isolation: isolate;
  padding-bottom: 7rem;
}

.stage__bg,
.stage__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.stage__bg {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}

.stage__bg img {
  object-fit: cover;
  object-position: 55% 45%;
}

.stage::after {
  content: '';
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(20, 20, 20, 0.75) 0%, rgba(20, 20, 20, 0.15) 30%, rgba(20, 20, 20, 0.35) 70%, transparent 100%),
    linear-gradient(90deg, rgba(20, 20, 20, 0.92) 0%, rgba(20, 20, 20, 0.7) 35%, rgba(20, 20, 20, 0.1) 70%, rgba(20, 20, 20, 0.3) 100%);
}

.stage--page {
  padding-bottom: 5rem;
}

.stage--page .stage__bg img {
  filter: blur(6px) saturate(1.1);
  transform: scale(1.06);
}

.stage--page::after {
  background:
    linear-gradient(180deg, rgba(20, 20, 20, 0.8) 0%, rgba(20, 20, 20, 0.6) 50%, transparent 100%);
}

/* Top header */

.top {
  padding: 1.75rem 0 1.25rem;
}

.top__inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.top__logo img {
  width: 165px;
  filter: drop-shadow(0 10px 28px rgba(20, 20, 20, 0.8));
  transition: transform 0.25s;
}

.top__logo:hover img {
  transform: scale(1.04) rotate(-1deg);
}

.top__divider {
  width: 1px;
  height: 84px;
  background: rgba(255, 255, 255, 0.14);
}

.action {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.action--right {
  margin-left: auto;
  text-align: right;
}

.action__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(20, 20, 20, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.action:hover .action__icon {
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-2px);
}

.action--right:hover .action__icon {
  background: var(--discord);
  border-color: var(--discord);
}

.action__badge {
  position: absolute;
  top: -10px;
  right: 50%;
  transform: translateX(50%);
  min-width: 30px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.action--right .action__badge {
  background: var(--discord);
}

.action__text {
  display: flex;
  flex-direction: column;
}

.action__title {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.action__sub {
  color: var(--sky);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Glass nav bar */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(20, 20, 20, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.6);
}

.bar__group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-sm);
  color: var(--soft);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.nav-link--active {
  background: rgba(59, 123, 255, 0.18);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(59, 123, 255, 0.5);
}

.tag {
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lang {
  display: flex;
  padding: 4px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
}

.lang__btn {
  min-width: 42px;
  padding: 0.35rem 0.6rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lang__btn:hover {
  color: #fff;
}

.lang__btn[aria-pressed='true'] {
  background: var(--blue);
  color: #fff;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0 1.5rem;
  border: 0;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--sm {
  min-height: 42px;
  padding: 0 1.1rem;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
}

.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(59, 123, 255, 0.85);
}

.btn--primary:hover {
  background: var(--blue-hover);
}

.btn--discord {
  background: var(--discord);
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(88, 101, 242, 0.85);
}

.btn--discord:hover {
  background: var(--discord-hover);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn__icon-check {
  display: none;
}

.btn.is-copied {
  background: var(--green);
  color: #06210f;
  box-shadow: 0 12px 30px -10px rgba(61, 220, 132, 0.8);
}

.btn.is-copied .btn__icon-copy {
  display: none;
}

.btn.is-copied .btn__icon-check {
  display: block;
}

.is-disabled {
  cursor: not-allowed;
}

.btn.is-disabled,
.nav-link.is-disabled {
  opacity: 0.55;
}

.btn.is-disabled:hover {
  transform: none;
}

.nav-link.is-disabled:hover {
  background: none;
  color: var(--soft);
}

/* Hero */

.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
  max-width: 620px;
  padding-top: 2.75rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(79, 182, 255, 0.35);
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--sky);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero__title {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.02;
  text-transform: uppercase;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero__title .accent {
  background: linear-gradient(90deg, var(--sky), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.hero__text {
  margin: 0;
  max-width: 46ch;
  color: var(--soft);
  font-size: 1.08rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.6rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.2rem 0 0;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.5);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.status__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
}

.status[data-state='online'] {
  color: var(--text);
}

.status[data-state='online'] .status__dot {
  background: var(--green);
  animation: pulse 2s infinite;
}

.status[data-state='offline'] .status__dot {
  background: var(--offline);
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0);  }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0);    }
}

/* Page title (subpages) */

.page-head {
  padding-top: 3.5rem;
  text-align: center;
}

.page-head .eyebrow {
  margin-bottom: 1rem;
}

.page-head h1 {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
}

.page-head p {
  max-width: 52ch;
  margin: 0.75rem auto 0;
  color: var(--soft);
}

/* Main */

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-top: -4.5rem;
  padding-bottom: 4.5rem;
}

.panel {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.8);
}

/* Season countdown */

.season {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 1.75rem;
  overflow: hidden;
}

.season::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 80px;
  height: 6px;
  border-radius: 6px 6px 0 0;
  background: var(--green);
  transform: translateX(-50%);
}

.season__tag {
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius-sm);
  background: var(--green);
  color: #06210f;
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.season__title {
  margin: 0;
  font-size: clamp(1.15rem, 2.6vw, 1.7rem);
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.countdown {
  display: flex;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 56px;
}

.countdown__value {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.countdown__label {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.season.is-live .countdown {
  display: none;
}

/* Cards */

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.card {
  --accent: var(--blue);
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 250px;
  padding: 1.9rem 1.9rem 1.7rem 2.3rem;
  overflow: hidden;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-solid);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  isolation: isolate;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.card--blue   { --accent: var(--sky); }
.card--green  { --accent: var(--green); }
.card--gold   { --accent: var(--gold); }
.card--purple { --accent: var(--purple); }

/* Accent bar on the left edge, artwork fills the card under a dark gradient. */
.card::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 1.8rem;
  z-index: 1;
  width: 8px;
  height: 66px;
  border-radius: 0 4px 4px 0;
  background: var(--accent);
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, rgba(20, 20, 20, 0.95) 0%, rgba(20, 20, 20, 0.55) 45%, rgba(20, 20, 20, 0.05) 100%),
    linear-gradient(90deg, rgba(20, 20, 20, 0.55) 0%, transparent 60%);
}

.card__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -24px var(--accent);
}

.card:hover .card__bg {
  transform: scale(1.06);
}

.card.is-disabled .card__bg {
  filter: grayscale(0.35) brightness(0.85);
}

.card.is-disabled:hover {
  border-color: var(--border);
  transform: none;
  box-shadow: none;
}

.card.is-disabled:hover .card__bg {
  transform: none;
}

.card__text {
  display: flex;
  flex-direction: column;
}

.card__title {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.card__sub {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

/* Join page */

.join {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.join__card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2rem;
}

.join__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.join__head h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
}

.chip {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(59, 123, 255, 0.18);
  color: var(--sky);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.chip--green {
  background: rgba(61, 220, 132, 0.15);
  color: var(--green);
}

.fields {
  display: grid;
  gap: 0.6rem;
}

.field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.75rem 0.75rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(20, 20, 20, 0.6);
}

.field__label {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.field__value {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
}

.steps {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-left: 2.6rem;
  color: var(--soft);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 9px;
  background: var(--surface-2);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
}

.steps strong {
  color: #fff;
}

.note {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.9rem;
}

.help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.6rem 2rem;
}

.help h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
}

.help p {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

/* Rules page */

.rule-group {
  --accent: var(--sky);
  padding: 1.75rem;
}

.rule-group--purple { --accent: var(--purple); }
.rule-group--green  { --accent: var(--green); }

.rule-group__head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.rule-group__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  color: var(--accent);
}

.rule-group__head h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
}

.rule-group__count {
  margin-left: auto;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.rule-list {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rule-list--grid {
  grid-template-columns: repeat(3, 1fr);
}

.rule-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(20, 20, 20, 0.45);
  color: var(--soft);
  font-weight: 500;
  transition: border-color 0.2s;
}

.rule-item:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
}

.rule-item__num {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
}

/* Footer */

.footer {
  border-top: 1px solid var(--border);
  background: rgba(20, 20, 20, 0.85);
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.footer__links a {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s;
}

.footer__links a:hover {
  border-color: var(--blue);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

.footer__copy {
  margin: 0;
  font-weight: 700;
}

.footer__note {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.social {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--discord);
  color: #fff;
  transition: transform 0.2s;
}

.social:hover {
  transform: translateY(-2px);
}

/* Toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  z-index: 100;
  width: max-content;
  max-width: calc(100% - 2rem);
  text-align: center;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  background: var(--green);
  color: #06210f;
  font-weight: 700;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: opacity 0.2s, transform 0.2s;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.is-error {
  background: var(--offline);
  color: #fff;
}

/* Legal pages and 404 */

.legal {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 2.25rem 2.5rem 2.5rem;
}

.legal h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 800;
}

.legal h2:first-child,
.legal__hint + h2 {
  margin-top: 0;
}

.legal p {
  margin: 0 0 0.75rem;
  color: var(--soft);
}

.legal a {
  color: var(--sky);
}

.legal__hint {
  margin-bottom: 1.5rem !important;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted) !important;
  font-size: 0.9rem;
}

.legal p.legal__hint:last-child {
  margin: 2rem 0 0 !important;
}

/* Placeholder that still has to be filled in before going live. */
.todo {
  padding: 0 0.3rem;
  border-radius: 4px;
  background: rgba(245, 184, 46, 0.18);
  color: var(--gold);
  font-weight: 700;
}

.notfound {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 2rem 2.25rem;
  text-align: center;
}

.notfound__art {
  width: auto;
  height: 150px;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.55));
  animation: notfound-fall 3.2s ease-in-out infinite;
}

@keyframes notfound-fall {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(14px) rotate(4deg); }
}

.notfound__title {
  margin: 0.5rem 0 0;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  text-transform: uppercase;
}

.notfound__text {
  max-width: 44ch;
  margin: 0;
  color: var(--soft);
}

.notfound__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}


/* Store */

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.input {
  width: 100%;
  min-height: 48px;
  padding: 0 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(20, 20, 20, 0.7);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s;
}

.input:focus {
  border-color: var(--blue);
}

.input::placeholder {
  color: var(--muted);
  font-weight: 500;
}

.store-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
}

.store-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  padding: 0.35rem 1rem 0.35rem 0.35rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(20, 20, 20, 0.5);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s;
}

.store-user:hover {
  border-color: var(--blue);
}

.store-user__avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
}

.store-user__avatar img {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.store-user__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.store-user__label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.store-user__name {
  font-weight: 700;
}

.store-user.is-guest .store-user__label {
  color: var(--text);
  font-size: 0.95rem;
}

.store-user__name[hidden] {
  display: none;
}






.store-cart-btn {
  position: relative;
  flex-shrink: 0;
}

.store-cart-btn__count {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--green);
  color: #06210f;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 22px;
  text-align: center;
}

.store-notice {
  margin: 0;
  padding: 0.85rem 1.1rem;
  border: 1px solid rgba(245, 184, 46, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(245, 184, 46, 0.1);
  color: var(--gold);
  font-weight: 600;
  text-align: center;
}





















.store-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 3rem 2rem;
  text-align: center;
}

.store-soon h2 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
}

.store-soon p {
  margin: 0 0 0.5rem;
  color: var(--soft);
}

/* Store sidebar modules */

.store-modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.module {
  padding: 1.5rem;
}


.module__payments {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.module__payment,
.module__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: var(--soft);
  font-size: 0.82rem;
  font-weight: 600;
}

.module__payment img,
.module__top img {
  border-radius: 10px;
  image-rendering: pixelated;
}

.module__meta {
  display: block;
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.module__text {
  color: var(--soft);
}

.goal {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.goal__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--sky));
}

/* Cart drawer */

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.cart {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: min(420px, 100%);
  padding: 1.5rem;
  border-left: 1px solid var(--border);
  background: #1c1c1c;
  box-shadow: -30px 0 60px -20px rgba(0, 0, 0, 0.7);
  transform: translateX(105%);
  transition: transform 0.3s ease;
}

.cart.is-open {
  transform: none;
}

.cart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart__head h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cart__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  overflow-y: auto;
}

.cart-line {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
}

.cart-line__thumb {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface-2);
}

.cart-line__thumb img {
  max-width: 80%;
  max-height: 80%;
}

.cart-line__thumb .pkg__fallback {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  transform: none;
}

.cart-line__thumb .pkg__fallback svg {
  width: 24px;
  height: 24px;
}

.cart-line__info {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.cart-line__info span {
  color: var(--sky);
  font-weight: 700;
}

.cart-line__remove {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.cart-line__remove:hover {
  color: var(--offline);
}

.cart__code {
  display: flex;
  gap: 0.5rem;
}

.cart__code .btn {
  flex-shrink: 0;
  min-height: 48px;
}

.cart__codes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cart__codes:empty {
  display: none;
}

.code-chip {
  padding: 0.3rem 0.7rem;
  border: 1px dashed var(--green);
  border-radius: 999px;
  background: rgba(61, 220, 132, 0.1);
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.code-chip::after {
  content: ' \00d7';
}

.cart__totals {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.cart__totals div {
  display: flex;
  justify-content: space-between;
  color: var(--soft);
}

.cart__totals div[hidden] {
  display: none;
}

.cart__totals dt,
.cart__totals dd {
  margin: 0;
}

.cart__totals .cart__total {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
}

.cart__checkout {
  width: 100%;
}

.cart__checkout:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.cart__secure {
  margin: -0.4rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

/* Modals */

.modal {
  width: min(440px, calc(100% - 2rem));
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #1c1c1c;
  color: var(--text);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9);
}

.modal--wide {
  width: min(760px, calc(100% - 2rem));
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

.modal__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
}

.modal__inner h2 {
  margin: 0;
  padding-right: 3rem;
  font-size: 1.4rem;
  font-weight: 800;
}

.modal__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
}

.modal__text {
  margin: -0.5rem 0 0;
  color: var(--muted);
}

.modal__error {
  margin: -0.4rem 0 0;
  color: var(--offline);
  font-size: 0.9rem;
  font-weight: 600;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
}

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

.segmented span {
  display: block;
  padding: 0.55rem;
  border-radius: 9px;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.segmented input:checked + span {
  background: var(--blue);
  color: #fff;
}

.segmented input:focus-visible + span {
  outline: 2px solid var(--sky);
}

.package-detail {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.75rem;
}

.package-detail__media {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 60%, rgba(59, 123, 255, 0.35), transparent 65%),
    var(--surface-2);
}

.package-detail__media img {
  max-width: 80%;
  max-height: 80%;
}

.package-detail__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}

.package-detail__desc {
  max-height: 320px;
  overflow-y: auto;
  color: var(--soft);
}

.package-detail__desc p:first-child {
  margin-top: 0;
}

.package-detail__desc a {
  color: var(--sky);
}

@media (max-width: 760px) {
  .store-bar {
    flex-wrap: wrap;
  }


  .store-user {
    flex: 1;
    flex-shrink: 1;
    min-width: 0;
  }

  .store-user__text {
    min-width: 0;
  }

  .store-user__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .package-detail {
    grid-template-columns: 1fr;
  }

  .name-field__submit span {
    display: none;
  }

  .name-field__submit {
    padding: 0 1.1rem;
  }

  .package-detail__media {
    aspect-ratio: 16 / 9;
  }

  .modal__inner {
    padding: 1.5rem;
  }
}

/* Store variants and login */

.variants {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.variants:empty {
  display: none;
}

.variant {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 38px;
  padding: 0 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--soft);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.variant:hover {
  border-color: rgba(59, 123, 255, 0.6);
  color: #fff;
}

.variant.is-active {
  border-color: var(--blue);
  background: rgba(59, 123, 255, 0.2);
  color: #fff;
}

.variant__tag {
  padding: 0.05rem 0.4rem;
  border-radius: 6px;
  background: var(--green);
  color: #06210f;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}


.store-user {
  min-height: 56px;
  padding-right: 1.25rem;
}

.store-user.is-guest {
  border-color: rgba(59, 123, 255, 0.55);
  background: rgba(59, 123, 255, 0.12);
}

.store-user.is-guest:hover {
  background: rgba(59, 123, 255, 0.22);
}

.store-user__avatar {
  width: 46px;
  height: 46px;
}

.store-user.is-guest .store-user__label {
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.modal--login {
  width: min(520px, calc(100% - 2rem));
}

.modal--login .modal__inner {
  align-items: stretch;
  text-align: center;
}

.modal--login h2 {
  padding: 0 2.5rem;
  font-size: 1.55rem;
}

.edition {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

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

.edition span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 60px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(20, 20, 20, 0.6);
  color: var(--soft);
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.edition span:hover {
  border-color: rgba(59, 123, 255, 0.6);
  color: #fff;
}

.edition input:checked + span {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(59, 123, 255, 0.85);
}

.edition input:focus-visible + span {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}

.name-field {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(20, 20, 20, 0.7);
  transition: border-color 0.2s;
}

.name-field:focus-within {
  border-color: var(--blue);
}

.name-field__prefix {
  display: grid;
  place-items: center;
  padding: 0 0.15rem 0.55rem 1rem;
  color: var(--sky);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}


.name-field__prefix[hidden] {
  display: none;
}

.name-field__input {
  flex: 1;
  min-width: 0;
  min-height: 56px;
  padding: 0 1rem;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  outline: none;
}

.name-field__prefix:not([hidden]) + .name-field__input {
  padding-left: 0.1rem;
}

.name-field__input::placeholder {
  color: var(--muted);
  font-weight: 500;
}

.name-field__submit {
  min-height: auto;
  border-radius: 0;
  box-shadow: none;
}

.name-field__submit:hover {
  transform: none;
}

/* Store v2: goal, category tiles, category page, package cards */

.store-goal {
  position: relative;
  overflow: hidden;
  padding: 1.75rem 2rem 1.9rem;
  border-color: rgba(61, 220, 132, 0.35);
  background:
    radial-gradient(600px 200px at 0% 0%, rgba(61, 220, 132, 0.14), transparent 70%),
    var(--surface);
}

.store-goal__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.store-goal__eyebrow {
  display: block;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-goal__title {
  margin: 0.15rem 0 0;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  font-weight: 800;
  text-transform: uppercase;
}

.store-goal__pct {
  color: var(--green);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  line-height: 1;
}

.store-goal__meta {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-weight: 600;
}

.goal--big {
  height: 22px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35);
}

.goal--big .goal__fill {
  background: linear-gradient(90deg, #2bbf6c, var(--green));
  box-shadow: 0 0 24px rgba(61, 220, 132, 0.55);
}

.goal--animated .goal__fill {
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.18) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.18) 50%, rgba(255, 255, 255, 0.18) 75%, transparent 75%),
    linear-gradient(90deg, #2bbf6c, var(--green));
  background-size: 28px 28px, 100% 100%;
  animation: goal-stripes 1s linear infinite;
}

@keyframes goal-stripes {
  to { background-position: 28px 0, 0 0; }
}

/* Category overview */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.cat-tile {
  --accent: var(--sky);
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 230px;
  padding: 2rem 2rem 2rem 2.4rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-solid);
  text-decoration: none;
  isolation: isolate;
  transition: border-color 0.25s, transform 0.25s;
}

.cat-tile--gold   { --accent: var(--gold); }
.cat-tile--green  { --accent: var(--green); }
.cat-tile--purple { --accent: var(--purple); }

.cat-tile::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 2rem;
  width: 8px;
  height: 64px;
  border-radius: 0 4px 4px 0;
  background: var(--accent);
}

/* Soft circle behind the artwork, like the reference stores. */
.cat-tile::after {
  content: '';
  position: absolute;
  top: -35%;
  right: -12%;
  z-index: -1;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
}

.cat-tile:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.cat-tile__art {
  position: absolute;
  top: 50%;
  right: 2.25rem;
  display: grid;
  place-items: center;
  width: 170px;
  height: 170px;
  transform: translateY(-50%);
}

.cat-tile__art img {
  max-width: 100%;
  max-height: 100%;
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s;
}

.cat-tile:hover .cat-tile__art img {
  transform: scale(1.06) rotate(-3deg);
}

.cat-tile__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.cat-tile__title {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.cat-tile__go {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-weight: 700;
}

.cat-tile:hover .cat-tile__go svg {
  transform: translateX(3px);
}

.cat-tile__go svg {
  transition: transform 0.2s;
}

/* Category page */

.store-view {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.store-empty {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.cat-head {
  position: relative;
  padding: 2.25rem 2rem;
  text-align: center;
}

.cat-head::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 80px;
  height: 6px;
  border-radius: 0 0 6px 6px;
  background: var(--blue);
  transform: translateX(-50%);
}

.cat-head__back {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--soft);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.cat-head__back:hover {
  border-color: var(--blue);
  color: #fff;
}

.cat-head__title {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  text-transform: uppercase;
}

.cat-head__desc {
  max-width: 60ch;
  margin: 0.5rem auto 0;
  color: var(--soft);
}

.cat-head__desc p {
  margin: 0;
}

.pkg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.pkg {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-solid);
  text-align: center;
  transition: border-color 0.25s, transform 0.25s;
}

.pkg:hover {
  border-color: rgba(59, 123, 255, 0.55);
  transform: translateY(-3px);
}

.pkg__media {
  display: grid;
  place-items: center;
  width: 100%;
  height: 150px;
  margin-bottom: 1.1rem;
}

.pkg__media img {
  max-width: 75%;
  max-height: 150px;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.45));
  transition: transform 0.3s;
}

.pkg:hover .pkg__media img {
  transform: scale(1.05);
}

.pkg__fallback {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 26px;
  background: linear-gradient(145deg, #5a90ff, #2a5fd6);
  color: #fff;
}

.pkg__sale {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
  background: var(--green);
  color: #06210f;
  font-size: 0.78rem;
  font-weight: 800;
}

.pkg__name {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
}

.pkg__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.pkg__price strong {
  color: var(--sky);
  font-size: 1.2rem;
  font-weight: 800;
}

.pkg__price s {
  color: var(--muted);
  font-size: 0.9rem;
}

.pkg__per {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.pkg .variants {
  justify-content: center;
}

.pkg__actions {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 0.6rem;
  width: 100%;
  margin-top: auto;
  padding-top: 1.25rem;
}

.pkg__info {
  display: grid;
  place-items: center;
  height: 46px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--soft);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.pkg__info:hover {
  border-color: var(--blue);
  color: #fff;
}

.pkg__add {
  min-width: 0;
  min-height: 46px;
  padding: 0 0.6rem;
  gap: 0.45rem;
  border-radius: 12px;
  font-size: 0.9rem;
  box-shadow: none;
}

.pkg__add span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.pkg__add:hover {
  transform: none;
}

.package-detail__info .pkg__price {
  justify-content: flex-start;
}

/* Responsive */

@media (max-width: 980px) {
  .season {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

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

  .rule-list--grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .top {
    padding: 1.25rem 0 1rem;
  }

  .top__inner {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.1rem;
  }

  .top__logo {
    flex-basis: 100%;
    display: flex;
    justify-content: center;
  }

  .top__logo img {
    width: 140px;
  }

  .top__divider {
    display: none;
  }

  .top .action {
    flex: 1 1 0;
    min-width: 0;
    gap: 0.7rem;
  }

  .action--right {
    margin-left: 0;
    justify-content: flex-end;
  }

  .action__icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 13px;
  }

  .action__title {
    font-size: 1rem;
  }

  .action__sub {
    font-size: 0.62rem;
  }

  .bar {
    gap: 0.4rem;
    padding: 0.45rem;
  }

  .bar__group:first-child {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .bar__group:first-child::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    flex-shrink: 0;
  }

  .bar .nav-link[href="/"] {
    display: none;
  }

  .bar__group:first-child {
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 85%, transparent 100%);
  }

  .lang__btn {
    min-width: 34px;
    padding: 0.35rem 0.4rem;
  }

  .nav-link {
    padding: 0.55rem 0.8rem;
    font-size: 0.8rem;
  }

  .stage {
    padding-bottom: 6rem;
  }

  .stage::after {
    background:
      linear-gradient(180deg, rgba(20, 20, 20, 0.8) 0%, rgba(20, 20, 20, 0.55) 45%, rgba(20, 20, 20, 0.85) 75%, transparent 100%);
  }

  .hero {
    align-items: stretch;
    padding-top: 2.5rem;
  }

  .hero .eyebrow,
  .hero .status {
    align-self: flex-start;
  }

  .hero__actions,
  .hero__actions .btn {
    width: 100%;
  }

  .main {
    margin-top: -3.5rem;
  }

  .season {
    padding: 1.4rem 1rem 1.6rem;
  }

  .countdown__unit {
    min-width: 50px;
  }

  .countdown__value {
    font-size: 1.6rem;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 190px;
  }

  .card__title {
    font-size: 1.6rem;
  }


  .join__card {
    padding: 1.5rem;
  }

  .help {
    flex-direction: column;
    text-align: center;
  }

  .rule-group {
    padding: 1rem;
  }

  .rule-item {
    gap: 0.7rem;
    padding: 0.65rem 0.75rem;
    font-size: 0.92rem;
  }

  .rule-list--grid {
    grid-template-columns: 1fr;
  }

  .footer__top,
  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer__links {
    justify-content: center;
  }

  .legal {
    padding: 1.5rem 1.25rem;
  }
}

@media (max-width: 420px) {
  .top .action__sub {
    display: none;
  }

  .bar .tag {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Store bar category navigation */

.store-nav {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 0.5rem;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.store-nav::-webkit-scrollbar {
  display: none;
}

.store-nav__item {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 1rem 0.35rem 0.35rem;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--soft);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.store-nav__item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.store-nav__item.is-active {
  border-color: rgba(59, 123, 255, 0.5);
  background: rgba(59, 123, 255, 0.15);
  color: #fff;
}

.store-nav__thumb {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--sky);
}

.store-nav__thumb img {
  max-width: 32px;
  max-height: 32px;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.4));
}

.store-nav__thumb .pkg__fallback {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.store-nav__thumb .pkg__fallback svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 760px) {
  .store-nav {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
  }
}

/* Centered panel title with a small accent tab on the top edge (reference stores). */

.panel-title {
  margin: 0 0 1.1rem;
  font-size: 1.2rem;
  font-weight: 800;
  text-align: center;
}

.module,
.info-panel {
  position: relative;
}

.module::before,
.info-panel::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  width: 64px;
  height: 5px;
  border-radius: 0 0 5px 5px;
  background: var(--tab, var(--blue));
  transform: translateX(-50%);
}

.module {
  padding: 1.75rem 1.5rem 1.5rem;
}

.module__payments {
  justify-content: center;
  gap: 1.5rem;
}

.module__payment img {
  width: 56px;
  height: 56px;
}

.module__top {
  align-items: center;
}

/* Store info row and Tebex notice */

.info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.info-panel {
  padding: 2rem 2rem 1.75rem;
  text-align: center;
}

.info-panel--green {
  --tab: var(--green);
}

.info-panel p {
  max-width: 52ch;
  margin: 0 auto;
  color: var(--soft);
  font-size: 0.95rem;
}

.tebex-note {
  margin: -0.25rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

/* Footer with three columns */

.footer__cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-top: 2.75rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--border);
}

.footer__col h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 800;
}

.footer__col p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer__list {
  display: grid;
  gap: 0.4rem;
}

.footer__list a {
  color: var(--soft);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.footer__list a:hover {
  color: var(--sky);
}


@media (max-width: 760px) {
  .info-row,
  .footer__cols {
    grid-template-columns: 1fr;
  }

  .footer__cols {
    gap: 1.75rem;
    text-align: center;
  }

  .footer__list {
    justify-items: center;
  }

}

/* Store tweaks */

.cat-head__back {
  gap: 0.55rem;
  padding: 0.7rem 1.2rem;
  border-color: rgba(59, 123, 255, 0.5);
  border-radius: 12px;
  background: rgba(59, 123, 255, 0.12);
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.cat-head__back:hover {
  background: rgba(59, 123, 255, 0.25);
}

.variants {
  flex-wrap: nowrap;
}

.variant__sub {
  display: grid;
  place-items: center;
  color: var(--green);
}

/* Black stage: no artwork behind header and hero on any page. */

.stage::after,
.stage--page::after {
  content: none;
}

/* Home hero: copy left, artwork card right */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 3rem;
  max-width: none;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
}

.hero__media {
  position: relative;
  margin: 0;
  padding-bottom: 2.25rem;
}

.hero__media picture,
.hero__media img {
  display: block;
  width: 100%;
}

.hero__media img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}

.hero__chips {
  position: absolute;
  left: 50%;
  bottom: 0;
  display: flex;
  gap: 0.75rem;
  transform: translateX(-50%);
  white-space: nowrap;
}

.chip-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 1rem 0.65rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(28, 28, 28, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 16px 34px -18px rgba(0, 0, 0, 0.9);
}

.chip-card__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(59, 123, 255, 0.18);
  color: var(--sky);
}

.chip-card__icon--green {
  background: rgba(61, 220, 132, 0.16);
  color: var(--green);
}

.chip-card__icon--purple {
  background: rgba(168, 85, 247, 0.18);
  color: var(--purple);
}

.chip-card__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.chip-card__text strong {
  font-size: 1rem;
  font-weight: 800;
}

.chip-card__text span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 760px) {
  .hero__copy {
    align-items: stretch;
  }

  .hero__copy .status {
    align-self: flex-start;
  }

  .hero__media {
    padding-bottom: 0;
  }

  .hero__chips {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 0.75rem;
    transform: none;
    white-space: normal;
  }

  .chip-card {
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.7rem 0.4rem;
    text-align: center;
  }

  .chip-card__text {
    align-items: center;
  }

  .chip-card__text strong {
    font-size: 0.85rem;
  }

  .chip-card__text span {
    font-size: 0.62rem;
  }
}

/* Compact home hero (v2): header smaller, chips under the text, artwork capped in height */

.top {
  padding: 1.1rem 0 0.9rem;
}

@media (min-width: 761px) {
  .top__logo img {
    width: 130px;
  }
}

.top__divider {
  height: 64px;
}

@media (min-width: 761px) {
  .action__icon {
    width: 52px;
    height: 52px;
  }

  .action__title {
    font-size: 1.25rem;
  }
}

.hero {
  gap: 2.5rem;
  padding-top: 2rem;
}

.hero__title {
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
}

.hero__media {
  padding-bottom: 0;
}

.hero__media img {
  max-height: 320px;
}

.hero__chips {
  position: static;
  flex-wrap: wrap;
  margin-top: 0.4rem;
  transform: none;
}

.stage {
  padding-bottom: 6rem;
}

/* Hero slideshow */

.slideshow {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 340px;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface-solid);
  box-shadow:
    0 0 0 1px rgba(59, 123, 255, 0.08),
    0 30px 80px -30px rgba(59, 123, 255, 0.45),
    0 40px 80px -40px rgba(0, 0, 0, 0.9);
  isolation: isolate;
}

.slideshow::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55) 0%, transparent 40%);
  pointer-events: none;
}

.hero__media .slideshow__img,
.slideshow__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  object-fit: cover;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1s ease, transform 6s ease-out;
}

.slideshow__img.is-active {
  opacity: 1;
  transform: scale(1);
}

.slideshow__caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
}

.slideshow__dots {
  position: absolute;
  right: 1rem;
  bottom: 1.25rem;
  z-index: 2;
  display: flex;
  gap: 0.4rem;
}

.slideshow__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.3s, background 0.3s;
}

.slideshow__dot.is-active {
  width: 26px;
  background: #fff;
}

/* Variant picker: equal columns that always fit the card */

.pkg .variants {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  width: 100%;
}

.pkg .variant {
  justify-content: center;
  min-width: 0;
  padding: 0 0.35rem;
  font-size: 0.8rem;
  white-space: nowrap;
}

.pkg .variant > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Login validation */

.name-field.is-invalid {
  border-color: var(--offline);
  box-shadow: 0 0 0 3px rgba(255, 90, 106, 0.15);
}

.modal__error:not([hidden]) {
  display: block;
  text-align: center;
}

.modal__error svg {
  margin-right: 0.35rem;
  vertical-align: -3px;
}

.name-field__submit.is-loading {
  opacity: 0.8;
  cursor: progress;
}

.name-field__submit.is-loading svg {
  animation: login-spin 0.9s linear infinite;
}

@keyframes login-spin {
  to { transform: translateX(3px); opacity: 0.4; }
}

/* Bulk savings */

.pkg__pricing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  min-height: 3.1rem;
}

.package-detail__info .pkg__pricing {
  align-items: flex-start;
  min-height: 0;
}

.pkg__save {
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 700;
}

.pkg .variant--save {
  flex-direction: column;
  gap: 0;
  min-height: 44px;
  line-height: 1.15;
}

.variant__pct {
  color: var(--green);
  font-size: 0.66rem;
  font-weight: 800;
}

/* Popular badge */

.pkg--popular {
  border-color: rgba(255, 140, 50, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 140, 50, 0.15), 0 24px 60px -30px rgba(255, 120, 40, 0.75);
}

.pkg--popular:hover {
  border-color: #ff8c32;
}

.pkg__badge {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.65rem;
  border-radius: 9px;
  background: linear-gradient(135deg, #ffb02e, #ff5a1f);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 6px 16px -6px rgba(255, 90, 31, 0.9), inset 0 -2px 0 rgba(0, 0, 0, 0.15);
}

.pkg__badge svg {
  animation: flame-flicker 1.6s ease-in-out infinite;
}

@keyframes flame-flicker {
  0%, 100% { transform: scale(1) rotate(-4deg); }
  50% { transform: scale(1.15) rotate(4deg); }
}

/* Package images: scale small Tebex uploads up to the media box */

.pkg__media img {
  width: auto;
  height: 150px;
  max-width: 80%;
  object-fit: contain;
}

/* Store mobile (kept last so it overrides the store base rules above) */

@media (max-width: 760px) {
  .cat-grid {
    grid-template-columns: 1fr;
  }

  .cat-tile {
    min-height: 170px;
    padding: 1.5rem 1.5rem 1.5rem 2rem;
  }

  .cat-tile__art {
    right: 1rem;
    width: 120px;
    height: 120px;
  }

  .cat-tile__title {
    font-size: 1.6rem;
  }

  .cat-head {
    padding: 3.75rem 1.25rem 1.75rem;
  }

  .store-goal {
    padding: 1.4rem 1.25rem 1.5rem;
  }
}
