@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700&family=Manrope:wght@400;500;600;700&display=swap");

@font-face {
  font-family: "LifeCraft";
  src: url("../fonts/LifeCraft_Font.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #070b12;
  --card: rgba(12, 18, 30, 0.76);
  --stroke: rgba(255, 255, 255, 0.12);
  --ink: #f4efe2;
  --muted: #cbbf9c;
  --accent: #d9a441;
  --accent-2: #3bb6c4;
  --accent-3: #9fd284;
  --radius: 22px;
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
  --font-display: "Cinzel", "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --bg-image: url("bg.jpg");
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

.snow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  overflow: hidden;
}

.flake {
  position: absolute;
  width: var(--size);
  height: var(--size);
  top: var(--top);
  left: var(--left);
  opacity: var(--opacity);
  filter: blur(var(--blur));
  border-radius: 50%;
  background-image:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 30%,
      rgba(255, 255, 255, 1) 50%,
      rgba(255, 255, 255, 1) 60%,
      rgba(255, 255, 255, 0) 60%
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0) 30%,
      rgba(255, 255, 255, 1) 50%,
      rgba(255, 255, 255, 1) 60%,
      rgba(255, 255, 255, 0) 60%
    ),
    linear-gradient(
      45deg,
      rgba(255, 255, 255, 0) 33%,
      rgba(255, 255, 255, 1) 53%,
      rgba(255, 255, 255, 1) 57%,
      rgba(255, 255, 255, 0) 65%
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0) 33%,
      rgba(255, 255, 255, 1) 53%,
      rgba(255, 255, 255, 1) 57%,
      rgba(255, 255, 255, 0) 65%
    );
  transform: translateY(0) rotateX(0deg) rotateY(0deg);
  animation: flakes var(--duration) linear infinite;
  animation-delay: var(--delay);
}

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

a {
  color: inherit;
}

.bg {
  position: fixed;
  inset: 0;
  background: var(--bg-image) center/cover no-repeat;
  filter: blur(3.5px);
  transform: scale(1.01);
  z-index: -3;
}

.glow {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(500px 400px at 20% 80%, rgba(217, 164, 65, 0.12), transparent 70%),
    radial-gradient(600px 500px at 85% 70%, rgba(59, 182, 196, 0.12), transparent 70%);
  mix-blend-mode: screen;
  opacity: 0.7;
  z-index: -2;
  pointer-events: none;
}

.noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
  opacity: 0.16;
  pointer-events: none;
  z-index: -1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(7, 11, 18, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.site-header .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(244, 239, 226, 0.7);
}

.brand-title {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.02em;
}

.nav-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tab {
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tab:hover {
  transform: translateY(-1px);
}

.tab[aria-current="page"] {
  background: linear-gradient(135deg, var(--accent), #f2cd73);
  color: #231707;
  border-color: rgba(217, 164, 65, 0.9);
}

.tab.discord-link {
  border-color: rgba(88, 101, 242, 0.5);
  background: rgba(88, 101, 242, 0.15);
}

.tab.discord-link:hover {
  background: rgba(88, 101, 242, 0.25);
}

.tab.discord-link svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 52px 24px 80px;
  display: grid;
  gap: 26px;
}

.panel {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  backdrop-filter: blur(14px);
  animation: rise 0.7s ease var(--delay, 0s) both;
}

.hero {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
}

.hero-copy h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
}

.hero-copy p {
  margin: 0 0 16px;
  color: var(--muted);
}

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  margin-bottom: 12px;
  color: rgba(244, 239, 226, 0.7);
}

.hero-panel {
  border-radius: 18px;
  padding: 20px;
  background: linear-gradient(140deg, rgba(217, 164, 65, 0.12), rgba(59, 182, 196, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 14px;
}

.hero-panel h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.checklist li {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
}

.checklist li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 0 4px rgba(159, 210, 132, 0.18);
}

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

.btn {
  appearance: none;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  min-height: 46px;
}

.btn-primary {
  color: #241708;
  background: linear-gradient(135deg, var(--accent), #f2d688);
  box-shadow: 0 16px 30px rgba(217, 164, 65, 0.25);
}

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

.btn-ghost {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

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

.btn[data-disabled] {
  pointer-events: none;
  opacity: 0.55;
  filter: grayscale(0.2);
}

.section-title h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
}

.section-title p {
  margin: 0;
  color: var(--muted);
}

.value-grid {
  margin-top: 18px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.value-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  gap: 10px;
}

.value-card strong {
  font-family: var(--font-display);
  font-size: 18px;
}

.value-card span {
  color: var(--muted);
  font-size: 14px;
}

.page-heading h1 {
  margin: 6px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 38px);
}

.page-heading p {
  margin: 0;
  color: var(--muted);
}

.addon-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 260px));
  justify-content: center;
  margin-top: 10px;
}

.addon-card {
  text-decoration: none;
  color: inherit;
  background: rgba(7, 11, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  animation: rise 0.6s ease var(--delay, 0s) both;
}

.addon-card:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 164, 65, 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.addon-media {
  aspect-ratio: 1;
  background: linear-gradient(135deg, rgba(217, 164, 65, 0.12), rgba(59, 182, 196, 0.16));
  display: grid;
  place-items: center;
  overflow: hidden;
}

.addon-media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.addon-fallback-card {
  width: 100%;
  aspect-ratio: 1;
  max-height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  background: rgba(7, 11, 18, 0.5);
}

.addon-fallback-card img {
  width: auto;
  height: auto;
  max-width: 65%;
  max-height: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.addon-fallback-title {
  font-family: "LifeCraft", var(--font-display);
  font-size: 30px;
  line-height: 1.2;
  color: rgb(213 164 42);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.addon-content {
  padding: 16px;
  display: grid;
  gap: 10px;
  flex: 1;
}

.addon-content h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
}

.addon-content p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.addon-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(244, 239, 226, 0.7);
}

.tag {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  font-size: 11px;
}

.detail-panel {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.detail-media {
  border-radius: 18px;
  overflow: hidden;
  min-height: 220px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
}

.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(7, 11, 18, 0.35);
}

.detail-content h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
}

.detail-content p {
  margin: 0 0 16px;
  color: var(--muted);
}

.detail-meta {
  margin-top: 16px;
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: rgba(244, 239, 226, 0.75);
}

.ts-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 12px;
}

.ts-badge img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.empty-state {
  padding: 18px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  color: rgba(244, 239, 226, 0.7);
  text-align: center;
}

.site-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: space-between;
  color: rgba(244, 239, 226, 0.6);
  font-size: 12px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes flakes {
  to {
    transform: translateY(1000px) rotateX(var(--rot-x)) rotateY(var(--rot-y));
    opacity: 0;
  }
}

@media (max-width: 720px) {
  .site-header .inner {
    padding: 14px 18px;
  }

  .page {
    padding: 36px 18px 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .panel,
  .addon-card {
    animation: none;
  }

  .btn,
  .tab {
    transition: none;
  }
}
