/* ============================================================
   ALTAR FFA REBORN — premium red "minecraft" theme
   Inspired by the design of store.aucpvp.net
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --c-white: #ffffff;
  --c-white-sh: #878787;

  --c-gray: #aaaaaa;
  --c-gray-sh: #5a5a5a;

  --c-dgray: #555555;
  --c-dgray-sh: #2c2c2c;

  --c-red: #ff7a3c;
  --c-red-sh: #862d2d;

  --c-red-bright: #ffb27a;

  --c-green: #00ff21;
  --c-green-sh: #00870f;

  --c-yellow: #ffff55;
  --c-yellow-sh: #87872d;

  --c-supporter: #ffcc00;
  --c-supporter-sh: #876c00;

  /* rank tiers: pale -> vampire -> hyperion */
  --c-pale: #ffffff;
  --c-pale-sh: #878787;
  --c-vampire: #e23a4e;
  --c-vampire-sh: #801d2c;
  --c-hyperion: #ffff55;
  --c-hyperion-sh: #87872d;

  /* per card, set by .is-<tier> */
  --tier: var(--c-pale);
  --tier-sh: var(--c-pale-sh);

  /* backgrounds (blood) */
  --bg-void: #0d0608;
  --bg-panel: #190a0d;
  --bg-slot: #270e12;

  /* red bevels */
  --edge-light: #4a151b;
  --edge-dark: #1a0609;
  --nav-bg: #16080b;
  --nav-border: #3b1015;
  --divider: #3b1015;

  --glow-red: rgba(255, 122, 60, 0.5);

  --px: 2px;
  --gap-1: 2px;
  --gap-2: 4px;
  --gap-3: 8px;
  --gap-4: 16px;
  --gap-5: 24px;
  --gap-6: 32px;
  --gap-7: 48px;
  --gap-8: 64px;

  --fs-sm: 18px;
  --fs-md: 27px;
  --fs-lg: 36px;
  --fs-xl: 54px;
  --fs-hero: 72px;
}

/* ---------- minecraft font ---------- */
@font-face {
  font-family: Minecraft;
  src: url("../assets/fonts/minecraft.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: Minecraft;
  src: url("../assets/fonts/minecraft-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: Minecraft;
  src: url("../assets/fonts/mc-smallcaps.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
  unicode-range: U+0262, U+026A, U+0274, U+0280, U+028F, U+0299, U+029C, U+029F,
    U+1D00, U+1D04, U+1D05, U+1D07, U+1D0A, U+1D0B, U+1D0D, U+1D0F, U+1D18,
    U+1D1B, U+1D1C, U+1D20, U+1D21, U+1D22, U+A730, U+A731, U+A7AF;
}

@font-face {
  font-family: Minecraft;
  src: url("../assets/fonts/mc-smallcaps-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: block;
  unicode-range: U+0262, U+026A, U+0274, U+0280, U+028F, U+0299, U+029C, U+029F,
    U+1D00, U+1D04, U+1D05, U+1D07, U+1D0A, U+1D0B, U+1D0D, U+1D0F, U+1D18,
    U+1D1B, U+1D1C, U+1D20, U+1D21, U+1D22, U+A730, U+A731, U+A7AF;
}

.mc {
  font-family: Minecraft, monospace;
  font-weight: 400;
  line-height: 1.3333;
  font-kerning: none;
  font-variant-ligatures: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-shadow: calc(1em / 9) calc(1em / 9) 0 var(--sh, transparent);
}

.mc-b {
  font-weight: 700;
}

.t-white  { color: var(--c-white);  --sh: var(--c-white-sh); }
.t-gray   { color: var(--c-gray);   --sh: var(--c-gray-sh); }
.t-dgray  { color: var(--c-dgray);  --sh: var(--c-dgray-sh); }
.t-red    { color: var(--c-red);    --sh: var(--c-red-sh); }
.t-green  { color: var(--c-green);  --sh: var(--c-green-sh); }
.t-yellow { color: var(--c-yellow); --sh: var(--c-yellow-sh); }

/* tiers */
.is-pale     { --tier: var(--c-pale);     --tier-sh: var(--c-pale-sh); }
.is-vampire  { --tier: var(--c-vampire);  --tier-sh: var(--c-vampire-sh); }
.is-hyperion { --tier: var(--c-hyperion); --tier-sh: var(--c-hyperion-sh); }

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

html {
  background: var(--bg-void);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-color: #0d0608;
  background-image:
    linear-gradient(rgba(13, 6, 8, 0.55), rgba(13, 6, 8, 0.55)),
    url("../assets/img/ui/nether_bricks.png");
  background-size: auto, 64px 64px;
  background-repeat: repeat;
  image-rendering: pixelated;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(255, 122, 60, 0.09), transparent 70%),
    radial-gradient(ellipse 70% 50% at 50% 110%, rgba(134, 45, 45, 0.16), transparent 70%);
  pointer-events: none;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--c-gray);
  font-family: Minecraft, monospace;
  font-size: var(--fs-sm);
  line-height: 1.3333;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  image-rendering: pixelated;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus-visible {
  outline: var(--px) solid var(--c-red-bright);
  outline-offset: var(--px);
}

::selection {
  background: var(--c-red);
  color: #1a0000;
}

::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: var(--bg-void);
}
::-webkit-scrollbar-thumb {
  background: #3b1015;
  border: 2px solid var(--bg-void);
}
::-webkit-scrollbar-thumb:hover {
  background: #5c1c24;
}

#fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-4);
  padding: var(--gap-4) var(--gap-6);
  background: var(--nav-bg);
  box-shadow: 0 2px 0 0 var(--nav-border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--gap-3);
  flex-shrink: 0;
}

.nav-logo {
  width: 42px;
  height: 31px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(255, 122, 60, 0.45));
}

.nav-wordmark {
  font-size: var(--fs-md);
}

.nav-players {
  display: flex;
  align-items: center;
  gap: var(--gap-2);
  font-size: var(--fs-sm);
  white-space: nowrap;
}
.nav-players[hidden] {
  display: none;
}
.nav-players-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  background: var(--c-green);
  box-shadow: 0 0 8px rgba(0, 255, 33, 0.7);
  animation: dotBlink 2.2s ease-in-out infinite;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--gap-5);
}

.nav-links a {
  position: relative;
  font-size: var(--fs-sm);
  padding: var(--gap-2) 0;
  transition: color 140ms ease, filter 140ms ease;
}

/* animated ember underline that grows from the center */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: -2px;
  height: var(--px);
  background: linear-gradient(90deg, transparent, var(--c-red), transparent);
  transition: left 180ms ease, right 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--c-white);
  --sh: var(--c-white-sh);
  filter: drop-shadow(0 0 6px rgba(255, 122, 60, 0.55));
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  left: 0;
  right: 0;
}

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
}

.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 260ms steps(5), transform 260ms steps(5);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  position: relative;
  padding: 14px 30px;
  font-size: var(--fs-sm);
  color: var(--c-white);
  --sh: var(--c-white-sh);
  background: #381019;
  box-shadow:
    inset 2px 2px 0 0 #5c1c24,
    inset -2px -2px 0 0 #1a0609,
    2px 2px 0 0 rgba(0, 0, 0, 0.55);
}

.btn:hover {
  background: #4a1620;
  color: var(--c-yellow);
  --sh: var(--c-yellow-sh);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow:
    inset 2px 2px 0 0 #5c1c24,
    inset -2px -2px 0 0 #1a0609;
}

.btn-primary {
  background: #a11f1f;
  box-shadow:
    inset 2px 2px 0 0 #e45353,
    inset -2px -2px 0 0 #450c0c,
    2px 2px 0 0 rgba(0, 0, 0, 0.55);
}

.btn-primary:hover {
  background: #c02626;
  color: var(--c-white);
  --sh: var(--c-white-sh);
}

.btn-primary:active {
  box-shadow:
    inset 2px 2px 0 0 #e45353,
    inset -2px -2px 0 0 #450c0c;
}

/* ---------- panels / slots / mc buttons ---------- */
.panel {
  border-style: solid;
  border-width: 6px;
  border-image-source: url("../assets/img/ui/panel.png");
  border-image-slice: 3 fill;
  border-image-width: 6px;
  border-image-repeat: repeat;
  padding: var(--gap-5);
}

.panel-tight {
  padding: var(--gap-4);
}

.slot {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-style: solid;
  border-width: 4px;
  border-image-source: url("../assets/img/ui/slot.png");
  border-image-slice: 2 fill;
  border-image-width: 4px;
  border-image-repeat: repeat;
}

.slot img {
  width: 48px;
  height: 48px;
  transition: transform 140ms steps(3);
}

.slot.is-glint::after {
  content: "";
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: 0;
  width: 40%;
  transform: skewX(-20deg) translateX(-260%);
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--tier) 45%, transparent),
    transparent
  );
  mix-blend-mode: screen;
  pointer-events: none;
  animation: glint 3.6s steps(24, end) infinite;
}

@keyframes glint {
  0% { transform: skewX(-20deg) translateX(-260%); }
  55%, 100% { transform: skewX(-20deg) translateX(400%); }
}

.mcbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 24px;
  font-family: Minecraft, monospace;
  font-size: var(--fs-sm);
  color: var(--c-white);
  --sh: var(--c-white-sh);
  text-shadow: calc(1em / 9) calc(1em / 9) 0 var(--sh);
  border-style: solid;
  border-width: 6px;
  border-image-source: url("../assets/img/ui/btn.png");
  border-image-slice: 3 fill;
  border-image-width: 6px;
  border-image-repeat: repeat;
  cursor: pointer;
}

.mcbtn:hover {
  border-image-source: url("../assets/img/ui/btn-hover.png");
  color: var(--c-yellow);
  --sh: var(--c-yellow-sh);
}

.mcbtn:active {
  transform: translateY(2px);
}

/* ---------- button hover: lift + ember glow ---------- */
.btn,
.mcbtn {
  transition: transform 80ms steps(2), filter 140ms ease;
}

.btn:hover,
.btn:focus-visible,
.mcbtn:hover,
.mcbtn:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.08) drop-shadow(0 0 10px var(--glow-red));
}

.btn:active {
  transform: translate(2px, 2px);
  filter: none;
}

.mcbtn:active {
  transform: translateY(2px);
  filter: brightness(0.96);
}

/* ---------- badges / prices ---------- */
.save {
  position: absolute;
  z-index: 3;
  top: -10px;
  right: -10px;
  padding: 4px 10px;
  font-size: var(--fs-sm);
  line-height: 1;
  color: #1a0016;
  --sh: transparent;
  text-shadow: none;
  background: var(--c-supporter);
  box-shadow:
    inset 2px 2px 0 0 rgba(255, 255, 255, 0.5),
    inset -2px -2px 0 0 var(--c-supporter-sh),
    3px 3px 0 0 rgba(0, 0, 0, 0.6);
  animation: save-bob 1.9s steps(2, end) infinite alternate;
}

@keyframes save-bob {
  from { transform: translateY(0); }
  to { transform: translateY(-3px); }
}

.chip {
  display: inline-block;
  padding: 3px 10px;
  font-size: var(--fs-sm);
  line-height: 1.2;
  background: rgba(13, 6, 8, 0.75);
  box-shadow:
    inset 2px 2px 0 0 rgba(255, 255, 255, 0.12),
    inset -2px -2px 0 0 rgba(0, 0, 0, 0.5);
}

.chip-populaire {
  color: var(--c-red);
  --sh: var(--c-red-sh);
}

.chip-best {
  color: var(--c-yellow);
  --sh: var(--c-yellow-sh);
  box-shadow:
    inset 2px 2px 0 0 rgba(255, 255, 255, 0.16),
    inset -2px -2px 0 0 rgba(0, 0, 0, 0.5),
    0 0 10px rgba(255, 255, 85, 0.35);
}

.price {
  font-size: var(--fs-md);
  color: var(--c-white);
  --sh: var(--c-white-sh);
}

.price-was {
  font-size: var(--fs-sm);
  color: var(--c-red);
  --sh: var(--c-red-sh);
  text-decoration: line-through;
  margin-right: var(--gap-3);
}

.divider {
  height: 2px;
  background: var(--divider);
  border: 0;
  margin: var(--gap-4) 0;
}

/* ---------- sections ---------- */
.section {
  position: relative;
  z-index: 5;
  max-width: 1240px;
  margin: 0 auto;
  padding: var(--gap-7) var(--gap-6);
}

.section-band::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: -1;
  width: 100vw;
  transform: translateX(-50%);
  background: rgba(25, 10, 13, 0.42);
  box-shadow:
    inset 0 2px 0 0 var(--nav-border),
    inset 0 -2px 0 0 var(--nav-border);
  pointer-events: none;
}

.section-head {
  margin-bottom: var(--gap-5);
}

.section-title {
  display: flex;
  align-items: center;
  gap: var(--gap-3);
  margin: 0;
  font-size: var(--fs-lg);
  color: var(--c-white);
  --sh: var(--c-white-sh);
}

.section-title::before {
  content: "";
  flex-shrink: 0;
  width: 14px;
  height: 26px;
  background: var(--c-red);
  box-shadow:
    inset 3px 3px 0 0 rgba(255, 255, 255, 0.28),
    inset -3px -3px 0 0 var(--c-red-sh),
    3px 3px 0 0 rgba(0, 0, 0, 0.5);
}

.section-title::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, #4a1418, rgba(74, 20, 24, 0));
}

.section-sub {
  margin: var(--gap-2) 0 0;
  padding-left: calc(14px + var(--gap-3));
  font-size: var(--fs-sm);
  color: var(--c-gray);
  --sh: var(--c-gray-sh);
}

/* ---------- rank cards ---------- */
.pkg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap-4);
}

.pkg {
  position: relative;
  text-decoration: none;
  transition: transform 90ms steps(2), filter 140ms steps(3);
}

.pkg .card-title {
  color: var(--tier);
  --sh: var(--tier-sh);
}

.pkg .slot {
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--tier) 26%, transparent);
}

.pkg:hover,
.pkg:focus-visible {
  transform: translateY(-3px);
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--tier) 42%, transparent));
}

.pkg:hover .slot,
.pkg:focus-visible .slot {
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--tier) 70%, transparent);
}

.pkg:hover .slot img,
.pkg:focus-visible .slot img {
  transform: translateY(-3px) scale(1.06);
}

.card-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: var(--gap-3);
}

.pkg-top {
  display: flex;
  gap: var(--gap-4);
  align-items: flex-start;
}

.pkg-top .slot {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
}

.pkg-top .slot img {
  width: 40px;
  height: 40px;
}

.pkg-top .card-body {
  flex: 1;
  margin: 0;
}

.card-title {
  margin: 0;
  font-size: var(--fs-md);
}

.card-body {
  font-size: var(--fs-sm);
  color: var(--c-gray);
  --sh: var(--c-gray-sh);
}

.pkg-title-row {
  display: flex;
  align-items: center;
  gap: var(--gap-3);
  flex-wrap: wrap;
}

.perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--gap-2);
}

.perks li {
  display: flex;
  gap: var(--gap-3);
  font-size: var(--fs-sm);
  color: var(--c-gray);
  --sh: var(--c-gray-sh);
}

.perks li::before {
  content: "+";
  color: var(--tier);
  --sh: var(--tier-sh);
  text-shadow: calc(1em / 9) calc(1em / 9) 0 var(--tier-sh);
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-3);
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: var(--gap-2);
}

.pkg .card-foot .price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  font-size: var(--fs-lg);
  line-height: 1.05;
}

.pkg .price-was {
  margin-right: 0;
}

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap-4);
}

.step {
  display: flex;
  gap: var(--gap-4);
  align-items: flex-start;
}

.step .step-body {
  max-width: 34ch;
}

.step-num {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  font-size: var(--fs-md);
  color: var(--c-red);
  --sh: var(--c-red-sh);
  background: var(--bg-slot);
  box-shadow:
    inset 2px 2px 0 0 #4a151b,
    inset -2px -2px 0 0 #140408;
}

.step-title {
  margin: 0;
  font-size: var(--fs-md);
  color: var(--c-white);
  --sh: var(--c-white-sh);
}

.step-body {
  margin: var(--gap-2) 0 0;
  font-size: var(--fs-sm);
  color: var(--c-gray);
  --sh: var(--c-gray-sh);
}

/* ---------- comparison ---------- */
.compare-wrap {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  padding: 10px 14px;
}

.compare-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 14px;
  background: var(--bg-panel);
  box-shadow: inset 0 -2px 0 0 var(--divider);
  font-size: var(--fs-md);
  text-align: center;
  color: var(--tier);
  --sh: var(--tier-sh);
}

.compare-table thead th:first-child {
  width: 30%;
}

.compare-table tbody th {
  text-align: left;
  font-weight: 400;
  color: var(--c-gray);
  --sh: var(--c-gray-sh);
  border-bottom: 2px solid var(--divider);
}

.compare-table tbody td {
  text-align: center;
  border-bottom: 2px solid var(--divider);
}

.yes {
  color: var(--c-green);
  --sh: var(--c-green-sh);
}

.no {
  color: var(--c-dgray);
  --sh: transparent;
}

/* ---------- faq ---------- */
.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: var(--gap-3);
}

.faq-item {
  background: var(--bg-panel);
  box-shadow:
    inset 2px 2px 0 0 #4a151b,
    inset -2px -2px 0 0 #120407;
}

.faq-item summary {
  list-style: none;
  padding: var(--gap-4) var(--gap-5);
  cursor: pointer;
  font-size: var(--fs-sm);
  color: var(--c-white);
  --sh: var(--c-white-sh);
  position: relative;
  transition: color 120ms steps(3);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: var(--gap-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-red);
  --sh: var(--c-red-sh);
  font-size: var(--fs-md);
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item summary {
  transition: color 140ms ease, filter 140ms ease;
}

.faq-item summary:hover {
  color: var(--c-red);
  --sh: var(--c-red-sh);
  filter: drop-shadow(0 0 6px rgba(255, 122, 60, 0.45));
}

.faq-item summary:hover::after {
  color: var(--c-red-bright);
  --sh: var(--c-red-sh);
}

.faq-item p {
  margin: 0;
  padding: 0 var(--gap-5) var(--gap-4);
  font-size: var(--fs-sm);
  color: var(--c-gray);
  --sh: var(--c-gray-sh);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(calc(100vh - 92px), 820px);
  padding: var(--gap-8) var(--gap-5) var(--gap-7);
  overflow: hidden;
  text-align: center;
}

.hero-glow {
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(1200px, 130vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 122, 60, 0.16) 0%, rgba(255, 122, 60, 0) 62%);
  pointer-events: none;
  z-index: 1;
  animation: glowPulse 6s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

.hero-inner {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-4);
  max-width: 900px;
  margin-top: 4vh;
}

.hero-logo {
  width: clamp(112px, 13vw, 176px);
  height: auto;
  image-rendering: auto;
  filter: drop-shadow(0 0 26px rgba(255, 122, 60, 0.45));
  animation: logoFloat 5s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero-title {
  margin: 0;
  font-size: clamp(40px, 7.4vw, 90px);
  line-height: 1.1;
  letter-spacing: 0;
}

.hero-tag {
  margin: 0;
  font-size: clamp(18px, 2.1vw, 27px);
}

.hero-sub {
  margin: var(--gap-2) 0 0;
  font-size: clamp(13px, 1.3vw, 18px);
}

.hero-ips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap-3);
  margin-top: var(--gap-3);
}

.ip {
  display: flex;
  flex-direction: column;
  gap: var(--gap-1);
  align-items: flex-start;
  padding: 10px 20px;
  text-align: left;
  background: rgba(26, 6, 9, 0.78);
  box-shadow:
    inset 2px 2px 0 0 #5c1c24,
    inset -2px -2px 0 0 #120407,
    2px 2px 0 0 rgba(0, 0, 0, 0.5);
  transition: transform 90ms steps(2), background 90ms steps(2);
}

.ip:hover {
  transform: translateY(-3px);
  background: rgba(46, 10, 14, 0.92);
  box-shadow:
    inset 2px 2px 0 0 #e45353,
    inset -2px -2px 0 0 #120407,
    2px 2px 0 0 rgba(0, 0, 0, 0.5);
}

.ip:active {
  transform: translateY(0);
}

.ip-label {
  font-size: var(--fs-sm);
}

.ip-value {
  font-size: var(--fs-md);
}

.ip.is-copied .ip-label,
.copy-btn.is-copied .ip-label {
  color: var(--c-vampire);
  --sh: var(--c-vampire-sh);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap-3);
  margin-top: var(--gap-3);
}

.hero-status {
  display: flex;
  align-items: center;
  gap: var(--gap-2);
  margin: var(--gap-3) 0 0;
  font-size: var(--fs-sm);
}

.hero-status.is-hidden {
  display: none;
}

.hero-dot {
  width: 10px;
  height: 10px;
  background: var(--c-green);
  box-shadow: 0 0 10px rgba(0, 255, 33, 0.7);
  animation: dotBlink 2.2s ease-in-out infinite;
}

@keyframes dotBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-note {
  margin: var(--gap-2) 0 0;
  font-size: var(--fs-sm);
}

/* ---------- hosting goal (lava bossbar) ---------- */
.bossbar-wrap {
  width: min(560px, 100%);
  margin: var(--gap-4) auto 0;
  display: grid;
  gap: var(--gap-2);
}

.bossbar-label {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--gap-2);
  font-size: var(--fs-sm);
  text-align: center;
}

.bossbar {
  position: relative;
  height: 22px;
  background: var(--bg-void);
  border: 2px solid var(--nav-border);
  box-shadow:
    inset 2px 2px 0 0 rgba(0, 0, 0, 0.55),
    inset -2px -2px 0 0 rgba(255, 122, 60, 0.12),
    0 0 18px rgba(255, 90, 20, 0.25);
  overflow: hidden;
}

.bossbar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0 3px, transparent 3px 6px) repeat,
    linear-gradient(180deg, #ffd98a 0%, #ff9a3c 35%, #e8601c 60%, #a11f1f 100%);
  background-size: 24px 100%, 100% 100%;
  box-shadow:
    inset 0 2px 0 0 rgba(255, 235, 190, 0.65),
    0 0 22px rgba(255, 122, 60, 0.65);
  image-rendering: pixelated;
  transition: width 1.6s steps(12);
  animation: lavaSlide 1.2s linear infinite;
}

@keyframes lavaSlide {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 24px 0, 0 0; }
}

/* goal reached: the bar turns gold */
.bossbar-wrap.is-complete .bossbar-fill {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 3px, transparent 3px 6px) repeat,
    linear-gradient(180deg, #fff6c8 0%, #ffd23c 40%, #ffa400 100%);
  background-size: 24px 100%, 100% 100%;
  box-shadow:
    inset 0 2px 0 0 rgba(255, 250, 220, 0.75),
    0 0 26px rgba(255, 200, 40, 0.8);
}

.bossbar-wrap.is-complete .bossbar-label .t-white {
  color: var(--c-yellow);
  --sh: var(--c-yellow-sh);
}

@media (prefers-reduced-motion: reduce) {
  .bossbar-fill {
    animation: none;
    transition: none;
  }
}

/* ---------- footer ---------- */
.foot {
  background: rgba(22, 8, 11, 0.55);
  border-top: 2px solid var(--nav-border);
  padding: var(--gap-6) var(--gap-6) var(--gap-4);
}

.foot-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--gap-6);
}

.foot-brand {
  display: flex;
  flex-direction: column;
  gap: var(--gap-3);
  align-items: flex-start;
}

.foot-logo {
  width: 56px;
  height: 42px;
  filter: drop-shadow(0 0 10px rgba(255, 122, 60, 0.4));
}

.foot-tag {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--c-gray);
  --sh: var(--c-gray-sh);
}

.foot-col h3 {
  margin: 0 0 var(--gap-3);
  font-size: var(--fs-sm);
  color: var(--c-white);
  --sh: var(--c-white-sh);
}

.foot-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--gap-2);
}

.foot-col a {
  font-size: var(--fs-sm);
  color: var(--c-gray);
  --sh: var(--c-gray-sh);
}

.foot-col a:hover {
  color: var(--c-white);
  --sh: var(--c-white-sh);
}

.foot-col span {
  font-size: var(--fs-sm);
  color: var(--c-gray);
  --sh: var(--c-gray-sh);
}

.foot-bottom {
  max-width: 1240px;
  margin: var(--gap-5) auto 0;
  padding-top: var(--gap-4);
  border-top: 2px solid var(--nav-border);
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-3);
  justify-content: space-between;
  color: var(--c-dgray);
  font-size: var(--fs-sm);
}

/* footer links (inspired-by credit etc.) */
.foot-bottom a {
  color: var(--c-gray);
  --sh: var(--c-gray-sh);
  transition: color 140ms ease, filter 140ms ease;
}
.foot-bottom a:hover {
  color: var(--c-white);
  --sh: var(--c-white-sh);
  filter: drop-shadow(0 0 5px rgba(255, 122, 60, 0.55));
}

/* ---------- footer quick actions ---------- */
.foot-actions {
  display: flex;
  flex-direction: column;
  gap: var(--gap-2);
}
.foot-actions .mcbtn {
  min-height: 0;
  padding: 6px 18px;
  font-size: var(--fs-sm);
}

/* ---------- magma slime (bottom decoration) ---------- */
.magma {
  position: fixed;
  left: 0;
  bottom: 48px;
  z-index: 4;
  width: 40px;
  height: 34px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 400ms steps(4);
  animation: magmaRun 18s ease-in-out infinite alternate;
}
.magma.is-visible {
  opacity: 1;
}
@keyframes magmaRun {
  0% { transform: translateX(-70px); }
  100% { transform: translateX(calc(100vw - 30px)); }
}
.magma i {
  display: block;
}
.magma-body {
  position: absolute;
  left: 2px;
  bottom: 4px;
  width: 34px;
  height: 26px;
  background: linear-gradient(#ffb347, #e8601c 55%, #b23a12);
  box-shadow:
    inset -4px -4px 0 0 #7a2408,
    inset 4px 4px 0 0 #ffd98a,
    0 0 0 2px #4a1503;
  border-radius: 2px;
  animation: magmaHop 0.85s ease-in-out infinite;
}
.magma-body::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 7px;
  width: 4px;
  height: 5px;
  background: #2b0a02;
  box-shadow: 16px 0 0 #2b0a02;
}
.magma-body::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 5px;
  width: 9px;
  height: 4px;
  background: rgba(255, 235, 190, 0.85);
}
.magma-shadow {
  position: absolute;
  left: 4px;
  bottom: 0;
  width: 32px;
  height: 6px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  filter: blur(1px);
  animation: magmaShadow 0.85s ease-in-out infinite;
}
@keyframes magmaHop {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  12% { transform: translateY(0) scale(1.14, 0.82); }
  28% { transform: translateY(-4px) scale(0.9, 1.16); }
  50% { transform: translateY(-64px) scale(0.94, 1.08); }
  74% { transform: translateY(-3px) scale(0.86, 1.2); }
  88% { transform: translateY(0) scale(1.16, 0.78); }
}
@keyframes magmaShadow {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  12% { transform: scale(1.32); opacity: 0.95; }
  28% { transform: scale(1.05); opacity: 0.75; }
  50% { transform: scale(0.45); opacity: 0.25; }
  74% { transform: scale(1.1); opacity: 0.8; }
  88% { transform: scale(1.32); opacity: 0.95; }
}

/* ---------- terms page ---------- */
.legal {
  max-width: 780px;
  margin: var(--gap-6) auto;
}
.legal h1 {
  margin: 0 0 var(--gap-4);
  font-size: var(--fs-lg);
  color: var(--c-white);
  --sh: var(--c-white-sh);
}
.legal h2 {
  margin: var(--gap-5) 0 var(--gap-2);
  font-size: var(--fs-md);
  color: var(--c-red);
  --sh: var(--c-red-sh);
}
.legal p,
.legal li {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--c-gray);
  --sh: var(--c-gray-sh);
}
.legal ul {
  margin: var(--gap-2) 0 0;
  padding-left: 22px;
  display: grid;
  gap: var(--gap-2);
}

.fund-note {
  margin: var(--gap-5) 0 0;
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--c-dgray);
  --sh: var(--c-dgray-sh);
}

/* ---------- premium effects ----------
   note: glow is kept static (a plain drop-shadow) instead of an
   animated filter - animating filter repaints every frame and drops
   fps on low-end machines. only cheap transform animations remain. */
/* hero title: static glow */
.hero-title {
  filter: drop-shadow(0 0 14px rgba(255, 122, 60, 0.18));
}

/* hero logo: float only (transform = gpu cheap) */
.hero-logo {
  animation: logoFloat 5s ease-in-out infinite;
}

/* buttons: shine sweep on hover */
.btn,
.mcbtn {
  overflow: hidden;
}
.mcbtn {
  position: relative;
}
.btn::after,
.mcbtn::after {
  content: "";
  position: absolute;
  top: -30%;
  bottom: -30%;
  left: 0;
  width: 42%;
  transform: skewX(-18deg) translateX(-340%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  pointer-events: none;
}
.btn:hover::after,
.btn:focus-visible::after,
.mcbtn:hover::after,
.mcbtn:focus-visible::after {
  animation: btnShine 850ms steps(14) 60ms;
}
@keyframes btnShine {
  to { transform: skewX(-18deg) translateX(560%); }
}

/* rank cards: tier-colored shine sweep on hover */
.pkg {
  overflow: hidden;
}
.pkg::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 42%;
  transform: skewX(-18deg) translateX(-360%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--tier) 30%, transparent), transparent);
  pointer-events: none;
}
.pkg:hover::after,
.pkg:focus-visible::after {
  animation: pkgShine 950ms steps(16) 120ms;
}
@keyframes pkgShine {
  to { transform: skewX(-18deg) translateX(580%); }
}

/* ip chips: ember glow on hover */
.ip:hover {
  box-shadow:
    inset 2px 2px 0 0 #e45353,
    inset -2px -2px 0 0 #120407,
    0 0 18px rgba(255, 122, 60, 0.4);
}

/* section titles: moving light along the line */
.section-title::after {
  background-image:
    linear-gradient(90deg, #4a1418, rgba(74, 20, 24, 0)),
    repeating-linear-gradient(115deg, transparent 0 44px, rgba(255, 138, 138, 0.7) 44px 56px, transparent 56px 132px);
  animation: titleLine 5s linear infinite;
}
@keyframes titleLine {
  0%   { background-position: 0 0, 0 0; }
  100% { background-position: 0 0, 132px 0; }
}

/* logo files are square 64x64 pngs - never stretch them, scale crisp */
.nav-logo,
.foot-logo {
  height: auto;
  image-rendering: pixelated;
}
.hero-logo {
  image-rendering: pixelated;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero {
    min-height: 0;
    padding: var(--gap-7) var(--gap-4) var(--gap-6);
  }

  .hero-inner {
    margin-top: 2vh;
    gap: var(--gap-3);
  }
}

@media (max-width: 720px) {
  .nav {
    padding: var(--gap-3) var(--gap-4);
  }

  .nav-links {
    gap: var(--gap-3);
  }

  .nav-logo {
    width: 32px;
    height: 24px;
  }

  .nav-wordmark {
    display: none;
  }

  .nav-players {
    display: none;
  }

  .ip-value {
    font-size: var(--fs-sm);
  }

  .section {
    padding: var(--gap-6) var(--gap-4);
  }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .slot.is-glint::after,
  .save,
  .hero-glow,
  .hero-logo,
  .hero-title,
  .hero-dot,
  .section-title::after,
  .btn::after,
  .mcbtn::after,
  .pkg::after {
    animation: none;
  }

  .slot img {
    transition: none;
  }  .magma,
  .magma-body,
  .magma-shadow {
    display: none;
  }
}

/* ---------- server name: soft lava glow + minecraft offset shadow ----------
   the .mc shadow needs --sh on the element itself, which is only set on
   the colored inner spans - so the name used to render flat. these rules
   give the name a proper layered shadow again. */
.nav-wordmark,
.hero-title,
.hero-tag {
  text-shadow:
    0 0 calc(1em / 4) rgba(255, 122, 60, 0.22),
    0 0 calc(1em / 12) rgba(255, 122, 60, 0.42);
}

.nav-wordmark > .t-white,
.nav-wordmark > .t-red,
.nav-wordmark > .t-gray,
.hero-title > .t-white,
.hero-title > .t-red,
.hero-tag > .t-red {
  text-shadow: calc(1em / 9) calc(1em / 9) 0 var(--sh, #5a5a5a);
}

/* ---------- key glyph (cards without an icon) ---------- */
.slot-glyph {
  font-size: 36px;
  line-height: 1;
  color: var(--tier);
  --sh: var(--tier-sh);
  text-shadow: calc(1em / 9) calc(1em / 9) 0 var(--tier-sh);
}

/* ---------- weapons ---------- */
.weapon-group {
  margin-bottom: var(--gap-5);
}

.weapon-group-title {
  margin: 0 0 var(--gap-3);
  font-size: var(--fs-md);
  color: var(--c-white);
  --sh: var(--c-white-sh);
}

.weapon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--gap-3);
}

.weapon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-2);
  padding: 12px;
  background: rgba(25, 10, 13, 0.6);
  box-shadow:
    inset 2px 2px 0 0 rgba(255, 255, 255, 0.10),
    inset -2px -2px 0 0 rgba(0, 0, 0, 0.45);
}

.weapon img {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: pixelated;
}

.weapon-empty {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 2px dashed rgba(255, 255, 255, 0.14);
}

.weapon-name {
  margin: 0;
  font-size: var(--fs-sm);
  text-align: center;
}
