:root {
  --bg: #030303;
  --ink: #f4f1e8;
  --muted: #8f897c;
  --bone: #d9d2c3;
  --line: rgba(244, 241, 232, 0.12);
  --line-strong: rgba(244, 241, 232, 0.28);
  --panel: rgba(12, 12, 12, 0.55);
  --panel-hover: rgba(22, 21, 19, 0.82);
  --accent: #cfc6b4;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-ui: "Syne", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 60% at 50% -5%, rgba(92, 86, 74, 0.28), transparent 58%),
    radial-gradient(ellipse 70% 45% at 50% 110%, rgba(48, 44, 38, 0.4), transparent 55%),
    linear-gradient(165deg, #0a0908 0%, #030303 42%, #080706 100%);
}

.veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.55), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.55)),
    linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.45));
}

.orb {
  position: absolute;
  left: 50%;
  border-radius: 50%;
  filter: blur(70px);
  transform: translateX(-50%);
}

.orb-core {
  top: 2%;
  width: min(58vw, 520px);
  height: min(58vw, 520px);
  background: radial-gradient(circle, rgba(210, 200, 178, 0.18), transparent 68%);
  animation: breathe 10s ease-in-out infinite;
}

.orb-edge {
  bottom: -18%;
  width: min(80vw, 640px);
  height: min(40vw, 300px);
  background: rgba(110, 100, 84, 0.12);
  animation: breathe 14s ease-in-out infinite reverse;
}

.watermark {
  position: absolute;
  left: 50%;
  top: 4%;
  width: min(92vw, 700px);
  transform: translateX(-50%);
  opacity: 0.045;
  filter: blur(1px);
  mix-blend-mode: soft-light;
  user-select: none;
}

.stars {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, rgba(244, 241, 232, 0.55), transparent),
    radial-gradient(1px 1px at 28% 62%, rgba(244, 241, 232, 0.4), transparent),
    radial-gradient(1.4px 1.4px at 71% 24%, rgba(244, 241, 232, 0.5), transparent),
    radial-gradient(1px 1px at 84% 58%, rgba(244, 241, 232, 0.35), transparent),
    radial-gradient(1.2px 1.2px at 46% 78%, rgba(244, 241, 232, 0.45), transparent),
    radial-gradient(1px 1px at 61% 12%, rgba(244, 241, 232, 0.3), transparent);
  animation: twinkle 7s ease-in-out infinite alternate;
}

.noise {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.page {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 430px);
  margin: 0 auto;
  min-height: 100vh;
  padding: clamp(1.8rem, 5vh, 3.2rem) 0 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.7rem;
}

.brand {
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.seal {
  position: relative;
  width: clamp(210px, 58vw, 300px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 0.2rem 0 0.65rem;
}

.seal-glow {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(210, 198, 170, 0.28) 0%, rgba(210, 198, 170, 0.08) 42%, transparent 70%);
  filter: blur(8px);
  animation: breathe 9s ease-in-out infinite;
  transform: none;
}

.seal-disc {
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, rgba(28, 26, 22, 0.35), rgba(8, 8, 8, 0.55) 70%, rgba(0, 0, 0, 0.75));
  box-shadow:
    inset 0 0 40px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(217, 210, 195, 0.08);
}

.seal-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.seal-ring.r1 {
  inset: 0;
  border: 1px solid rgba(217, 210, 195, 0.16);
  box-shadow: 0 0 24px rgba(200, 190, 170, 0.08);
}

.seal-ring.r2 {
  inset: 5%;
  border: 1px dashed rgba(217, 210, 195, 0.18);
  animation: spin 55s linear infinite;
}

.seal-ring.r3 {
  inset: 10%;
  border: 1px solid rgba(217, 210, 195, 0.1);
  animation: spin 38s linear infinite reverse;
  background:
    conic-gradient(from 20deg, transparent 0 8%, rgba(217, 210, 195, 0.35) 8% 10%, transparent 10% 55%, rgba(217, 210, 195, 0.22) 55% 57%, transparent 57% 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
}

.emblem {
  position: relative;
  z-index: 2;
  width: 78%;
  height: auto;
  display: block;
  filter:
    drop-shadow(0 18px 28px rgba(0, 0, 0, 0.65))
    drop-shadow(0 0 18px rgba(200, 190, 165, 0.12));
  animation: float 8s ease-in-out infinite;
  user-select: none;
  -webkit-user-drag: none;
}

.name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 12vw, 4.2rem);
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-transform: uppercase;
  line-height: 0.9;
  color: var(--ink);
}

.tagline {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(0.95rem, 3.2vw, 1.12rem);
  letter-spacing: 0.14em;
  color: var(--bone);
  opacity: 0.78;
}

.rule {
  width: min(100%, 220px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.55rem;
}

.rule span {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong));
}

.rule span:last-child {
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

.rule i {
  width: 5px;
  height: 5px;
  rotate: 45deg;
  background: var(--bone);
  opacity: 0.7;
}

.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.link {
  --i: 0;
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.15rem;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 42%),
    var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
  animation: rise 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(0.14s + var(--i) * 0.1s);
}

.link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--bone), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(244, 241, 232, 0.08) 48%, transparent 62%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
  z-index: -1;
}

.link:hover,
.link:focus-visible {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: var(--panel-hover);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  outline: none;
}

.link:hover::before,
.link:focus-visible::before {
  opacity: 1;
}

.link:hover::after,
.link:focus-visible::after {
  transform: translateX(120%);
}

.link:active {
  transform: translateY(-1px);
}

.link-icon {
  width: 2.55rem;
  height: 2.55rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 0.4rem;
}

.link-icon svg {
  width: 1.3rem;
  height: 1.3rem;
  display: block;
}

.icon-steam {
  color: #66c0f4;
  background: rgba(102, 192, 244, 0.12);
  border: 1px solid rgba(102, 192, 244, 0.3);
}

.icon-trade {
  color: #f0b429;
  background: rgba(240, 180, 41, 0.12);
  border: 1px solid rgba(240, 180, 41, 0.32);
}

.icon-donate {
  color: #ff6b7a;
  background: rgba(255, 107, 122, 0.12);
  border: 1px solid rgba(255, 107, 122, 0.32);
}

.icon-telegram {
  color: #2aabee;
  background: rgba(42, 171, 238, 0.12);
  border: 1px solid rgba(42, 171, 238, 0.32);
}

.icon-discord {
  color: #5865f2;
  background: rgba(88, 101, 242, 0.12);
  border: 1px solid rgba(88, 101, 242, 0.32);
}

.link-text {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}

.link-title {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.link-sub {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-arrow {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--muted);
  transition: transform 0.3s ease, color 0.3s ease;
}

.link-arrow svg {
  width: 100%;
  height: 100%;
}

.link:hover .link-arrow,
.link:focus-visible .link-arrow {
  transform: translateX(5px);
  color: var(--ink);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes breathe {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes twinkle {
  from { opacity: 0.35; }
  to { opacity: 0.7; }
}

.giveaway {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, 430px);
  margin: 0 auto 2.2rem;
  padding: 1.15rem 0 1.05rem;
  text-align: left;
  background: #000;
  border-top: 1px solid rgba(244, 241, 232, 0.28);
  border-bottom: 1px solid rgba(244, 241, 232, 0.28);
  animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.giveaway-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.68rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: #8f897c;
}

.giveaway-shot {
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: center 42%;
  display: block;
  filter: grayscale(0.15) contrast(1.05);
}

.giveaway h2 {
  margin: 0.85rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 2.35rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 0.9;
}

.giveaway h2 em {
  display: block;
  margin-top: 0.35rem;
  font-style: italic;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--bone);
}

.giveaway-rule {
  margin: 0.85rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.giveaway-rule p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.giveaway-rule strong {
  color: var(--ink);
  font-weight: 600;
}

.giveaway-cta {
  display: block;
  margin-top: 0.95rem;
  padding: 0.75rem 0.85rem;
  text-align: center;
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(244, 241, 232, 0.32);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background 0.25s, color 0.25s;
}

.giveaway-cta:hover,
.giveaway-cta:focus-visible {
  background: var(--ink);
  color: #050505;
  outline: none;
}

@media (min-width: 1100px) {
  .giveaway {
    position: fixed;
    top: 50%;
    right: max(1.4rem, calc((100vw - 430px) / 2 - 300px));
    width: 260px;
    margin: 0;
    padding: 1.15rem 0.15rem 1.05rem;
    transform: translateY(-50%);
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .emblem,
  .orb,
  .stars,
  .seal-ring,
  .seal-glow,
  .brand,
  .link {
    animation: none;
  }

  .link:hover,
  .link:focus-visible,
  .link:hover .link-arrow,
  .link:focus-visible .link-arrow {
    transform: none;
  }

  .link::after {
    display: none;
  }
}
