/* ============ Diablo RP — styles ============ */
:root {
  --bg: #070404;
  --bg-2: #0f0807;
  --panel: rgba(24, 12, 10, .72);
  --panel-solid: #160b09;
  --line: rgba(255, 80, 40, .16);
  --line-strong: rgba(255, 90, 40, .45);
  --red: #ff2a1a;
  --ember: #ff5a1f;
  --lava: #ff8a00;
  --gold: #ffc061;
  --bone: #f1e6dc;
  --muted: #a8968c;
  --twitch: #9146ff;
  --radius: 18px;
  --max: 1160px;
  --display: "Cinzel", Georgia, serif;
  --body: "Rajdhani", system-ui, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(255, 40, 10, .22), transparent 60%),
    radial-gradient(900px 600px at 100% 40%, rgba(255, 90, 0, .07), transparent 60%),
    radial-gradient(900px 600px at 0% 75%, rgba(255, 30, 10, .08), transparent 60%),
    var(--bg);
  color: var(--bone);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

/* background layers */
#embers { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 8s steps(6) infinite;
}
@keyframes grain { 0%,100%{transform:translate(0,0)} 25%{transform:translate(-3%,2%)} 50%{transform:translate(2%,-3%)} 75%{transform:translate(-2%,-1%)} }
main, .footer, .nav, .announcement { position: relative; z-index: 2; }

/* announcement */
.announcement {
  text-align: center; padding: 10px 16px; font-weight: 700; letter-spacing: .04em;
  background: linear-gradient(90deg, #7a0d05, var(--red), var(--ember), var(--red), #7a0d05);
  background-size: 200% 100%; animation: flow 8s linear infinite; color: #fff;
}
@keyframes flow { to { background-position: 200% 0; } }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px max(16px, calc((100% - var(--max)) / 2));
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(8, 4, 4, .78); backdrop-filter: blur(14px); border-color: var(--line); }
.nav-brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 900; letter-spacing: .12em; font-size: 18px; }
.nav-brand b { color: var(--red); margin-left: 4px; }
.nav-avatar { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--red); box-shadow: 0 0 14px rgba(255, 40, 10, .6); }
.nav-links { display: flex; gap: 26px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 14px; }
.nav-links a { color: var(--muted); position: relative; padding: 4px 0; transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .25s; }
.nav-links a:hover { color: var(--bone); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-live {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  transition: all .2s;
}
.nav-live .dot { width: 8px; height: 8px; border-radius: 50%; background: #5a4a44; }
.nav-live.on { color: #fff; border-color: var(--red); background: rgba(255, 30, 10, .18); }
.nav-live.on .dot { background: var(--red); box-shadow: 0 0 0 0 rgba(255, 42, 26, .7); animation: ping 1.6s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(255, 42, 26, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 42, 26, 0); } }

/* hero */
.hero {
  min-height: calc(100svh - 60px); display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px 16px 90px; position: relative;
}
.hero-glow {
  position: absolute; width: min(900px, 120vw); aspect-ratio: 1; top: 50%; left: 50%; translate: -50% -55%;
  background: radial-gradient(circle, rgba(255, 50, 10, .28), rgba(255, 50, 10, .06) 40%, transparent 65%);
  filter: blur(10px); pointer-events: none; animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: .65; scale: 1.06; } }
.avatar-wrap { position: relative; width: 168px; height: 168px; margin-bottom: 26px; }
.avatar { position: relative; z-index: 2; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 4px solid #120807; }
.avatar-ring {
  position: absolute; inset: -9px; border-radius: 50%; z-index: 1;
  background: conic-gradient(from 0deg, var(--red), var(--lava), #3a0703, var(--red), var(--gold), #3a0703, var(--red));
  animation: spin 6s linear infinite; filter: drop-shadow(0 0 22px rgba(255, 50, 10, .75));
}
@keyframes spin { to { transform: rotate(360deg); } }
.live-badge {
  position: absolute; z-index: 3; left: 50%; bottom: -10px; translate: -50% 0;
  background: var(--red); color: #fff; font-weight: 800; letter-spacing: .18em; font-size: 13px;
  padding: 3px 12px; border-radius: 6px; border: 3px solid var(--bg); box-shadow: 0 0 18px rgba(255, 42, 26, .8);
}
.kicker { margin: 0 0 10px; color: var(--ember); font-weight: 700; letter-spacing: .28em; text-transform: uppercase; font-size: 13px; }
.title {
  position: relative; margin: 0; font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(54px, 11vw, 132px); line-height: .95; letter-spacing: .04em;
  background: linear-gradient(180deg, #fff6e8 0%, var(--gold) 32%, var(--ember) 62%, #8c0f05 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 30px rgba(255, 40, 10, .45));
}
.tagline { margin: 18px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-family: var(--display); font-weight: 800; letter-spacing: .3em; text-transform: uppercase; font-size: clamp(13px, 2vw, 17px); }
.tagline span { opacity: 0; animation: wordIn .7s forwards; }
.tagline span:not(:last-child)::after { content: "·"; color: var(--red); margin-left: 18px; }
@keyframes wordIn { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.bio { max-width: 640px; margin: 22px auto 0; color: #cbbdb4; font-size: 19px; }
.status {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; padding: 9px 18px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line); font-weight: 600; max-width: 100%;
}
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #5a4a44; flex: none; }
.status.on { border-color: var(--line-strong); }
.status.on .status-dot { background: var(--red); animation: ping 1.6s infinite; }
#statusText { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 28px; border-radius: 12px;
  font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 15px; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn.primary { background: linear-gradient(135deg, var(--red), var(--ember)); color: #fff; box-shadow: 0 10px 30px -8px rgba(255, 42, 26, .8), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(255, 42, 26, .95), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn.ghost { border: 1px solid var(--line-strong); background: rgba(255, 60, 20, .06); }
.btn.ghost:hover { background: rgba(255, 60, 20, .14); border-color: var(--ember); transform: translateY(-2px); }
.btn .ic { width: 20px; height: 20px; }
.stats { display: flex; gap: clamp(22px, 6vw, 64px); margin: 46px 0 0; padding: 0; }
.stats div { text-align: center; }
.stats dt { font-family: var(--display); font-weight: 900; font-size: clamp(24px, 4vw, 34px); color: var(--bone); }
.stats dd { margin: 0; color: var(--muted); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 2px solid var(--line-strong); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--ember); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* sections */
.section { max-width: var(--max); margin: 0 auto; padding: 100px 16px; }
.section-head { text-align: center; margin-bottom: 48px; }
h2 {
  margin: 0; font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: .05em;
  font-size: clamp(32px, 5.5vw, 56px); line-height: 1.05;
}
h2::after { content: ""; display: block; width: 90px; height: 3px; margin: 18px auto 0; background: linear-gradient(90deg, transparent, var(--red), transparent); }
.dinos-copy h2::after, .support-card h2::after { margin-left: 0; }
.support-card h2::after { margin-left: auto; }
.sub { max-width: 680px; margin: 18px auto 0; color: #c9bbb2; font-size: 19px; }
.sub, .bio, h2, .kicker, .stats, .tagline, .relic-tag { text-shadow: 0 1px 2px rgba(0, 0, 0, .9), 0 0 18px rgba(0, 0, 0, .85); }
.sub.left { margin-left: 0; }
.center { text-align: center; margin-top: 40px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* link cards */
.link-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.link-card {
  --c: var(--red);
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(40, 16, 12, .85), rgba(14, 7, 6, .9)); border: 1px solid var(--line);
  overflow: hidden; isolation: isolate; transition: transform .3s, border-color .3s, box-shadow .3s;
}
.link-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(400px 200px at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--c) 30%, transparent), transparent 70%);
}
.link-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c) 70%, transparent); box-shadow: 0 24px 50px -20px color-mix(in srgb, var(--c) 70%, transparent); }
.link-card:hover::before { opacity: 1; }
.link-top { display: flex; align-items: center; justify-content: space-between; }
.link-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 18%, transparent); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
}
.ic { display: inline-block; width: 26px; height: 26px; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.link-icon .ic { color: var(--c); filter: brightness(1.25); }
.link-arrow { color: var(--muted); font-size: 22px; transition: transform .3s, color .3s; }
.link-card:hover .link-arrow { transform: translate(4px, -4px); color: var(--bone); }
.link-card h3 { margin: 0; font-size: 22px; letter-spacing: .04em; font-weight: 700; }
.link-card p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.45; }
.link-card.featured { grid-column: span 2; }

/* ===== living prehistoric forest behind everything (built on the user's own artwork) ===== */
#world { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: #060504; }
#world > * { position: absolute; }
/* the "camera": slow push-in and drift across the scene */
.f-cam { inset: -4%; animation: camDrift 70s ease-in-out infinite alternate; will-change: transform; }
@keyframes camDrift {
  0%   { transform: scale(1.02) translate(-1.2%, 0.6%); }
  50%  { transform: scale(1.07) translate(0.8%, -0.4%); }
  100% { transform: scale(1.04) translate(1.4%, 0.8%); }
}
.f-img, .f-lava { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.f-img { filter: saturate(.92) contrast(1.05) brightness(.9); }
/* molten cracks: two copies of the lava map pulsing out of step = a living, flickering glow */
.f-lava { mix-blend-mode: screen; will-change: opacity; }
.f-lava.a { animation: lavaBreath 4.6s ease-in-out infinite; }
.f-lava.b { filter: blur(10px) saturate(1.3); animation: lavaBreath 7.3s ease-in-out infinite reverse; }
@keyframes lavaBreath { 0%, 100% { opacity: .35; } 30% { opacity: .95; } 55% { opacity: .6; } 75% { opacity: 1; } }
/* sun shafts through the canopy */
.f-rays { inset: -10% -10% 30% -10%; mix-blend-mode: screen; opacity: .0;
  background:
    repeating-linear-gradient(105deg, transparent 0 7%, rgba(255, 236, 190, .22) 8.5%, transparent 10.5%, transparent 15%, rgba(255, 225, 170, .14) 16%, transparent 18.5%);
  filter: blur(18px);
  -webkit-mask: radial-gradient(70% 90% at 58% 0%, #000 0%, rgba(0, 0, 0, .5) 45%, transparent 80%);
          mask: radial-gradient(70% 90% at 58% 0%, #000 0%, rgba(0, 0, 0, .5) 45%, transparent 80%);
  animation: rays 16s ease-in-out infinite; will-change: opacity, transform; }
@keyframes rays { 0%, 100% { opacity: .25; transform: translateX(-1.5%); } 50% { opacity: .65; transform: translateX(1.5%); } }
/* drifting mist (seamless: element is one tile wider than the screen and slides by exactly one tile) */
.f-fog { left: 0; width: calc(100% + 1400px); will-change: transform; mix-blend-mode: screen;
  background-repeat: repeat-x; background-size: 1400px 100%; }
.f-fog.low { bottom: -4%; height: 46%; opacity: .32; animation: fogSlide 95s linear infinite;
  background-image:
    radial-gradient(38% 55% at 18% 70%, rgba(200, 190, 175, .55), transparent 70%),
    radial-gradient(30% 45% at 52% 80%, rgba(190, 180, 165, .45), transparent 70%),
    radial-gradient(42% 60% at 84% 65%, rgba(210, 195, 180, .5), transparent 70%); filter: blur(22px); }
.f-fog.high { top: 18%; height: 40%; opacity: .16; animation: fogSlide 150s linear infinite reverse;
  background-image:
    radial-gradient(30% 50% at 25% 50%, rgba(220, 215, 200, .6), transparent 70%),
    radial-gradient(36% 45% at 70% 40%, rgba(220, 210, 195, .5), transparent 70%); filter: blur(30px); }
@keyframes fogSlide { from { transform: translateX(0); } to { transform: translateX(-1400px); } }
/* warm lava light bouncing up from the ground */
.f-heat { left: 0; right: 0; bottom: 0; height: 55%; mix-blend-mode: screen;
  background: radial-gradient(45% 60% at 50% 100%, rgba(255, 70, 20, .28), transparent 70%);
  animation: lavaBreath 6s ease-in-out infinite; }
/* readability: darken the middle a lot, the top a bit, keep the forest visible on the sides */
.f-shade { inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 3, 2, .55) 0%, rgba(4, 3, 2, .15) 30%, rgba(4, 3, 2, .15) 70%, rgba(4, 3, 2, .6) 100%),
    radial-gradient(48% 62% at 50% 46%, rgba(4, 3, 2, .72), rgba(4, 3, 2, .45) 55%, rgba(4, 3, 2, .1) 100%); }
@media (max-width: 720px) {
  .f-img, .f-lava { object-position: 46% 70%; }
  .f-shade { background: rgba(4, 3, 2, .62); }
  .f-rays { display: none; }
}

#links.altar { padding-bottom: 110px; }

.relic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 22px; }
.relic { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 6px 4px 10px; border-radius: 20px; }
.relic-stage { position: relative; width: 100%; max-width: 230px; aspect-ratio: 1; display: grid; place-items: center; }
.relic-stage::before { /* black socket the logo sits in, so its black background blends in */
  content: ""; position: absolute; inset: -6%; z-index: 1; border-radius: 50%;
  background: radial-gradient(closest-side, #000 62%, rgba(0, 0, 0, .85) 78%, transparent 100%);
}
.relic-img {
  position: relative; z-index: 2; width: 100%; height: 100%; object-fit: contain;
  -webkit-mask: radial-gradient(closest-side, #000 80%, transparent 100%);   /* soft edge into the dark socket */
          mask: radial-gradient(closest-side, #000 80%, transparent 100%);
  animation: relicFloat 5.5s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -0.7s);
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), filter .45s;
  filter: drop-shadow(0 0 0 transparent) brightness(1);
}
@keyframes relicFloat { 50% { translate: 0 -10px; } }
.relic-halo { /* glowing aura behind each logo */
  position: absolute; z-index: 0; inset: -18%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 60, 15, .5), rgba(255, 40, 10, .16) 45%, transparent 70%);
  filter: blur(16px); opacity: .55; transition: opacity .4s, transform .4s;
  animation: halo 4s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -0.5s);
}
@keyframes halo { 50% { opacity: .85; transform: scale(1.08); } }
.relic-plinth { /* glowing lava pool under the logo */
  position: absolute; z-index: 3; left: 18%; right: 18%; bottom: -4%; height: 9%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 110, 20, .9), rgba(255, 40, 10, .45) 55%, transparent);
  filter: blur(6px); opacity: .6; transition: opacity .4s, transform .4s;
}
.relic-handle {
  margin-top: 10px; font-family: "Pirata One", var(--display); font-weight: 400; font-size: clamp(24px, 2.4vw, 32px); line-height: 1; white-space: nowrap;
  background: linear-gradient(180deg, #ffffff 0%, #e2dbd5 50%, #9c938f 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 #000) drop-shadow(0 0 10px rgba(0, 0, 0, .9));
}
.relic-tag {
  margin-top: 8px; font-weight: 700; font-size: 13px; letter-spacing: .34em; text-transform: uppercase; white-space: nowrap;
  color: #ff6a3a; text-shadow: 0 0 10px rgba(255, 50, 10, .9), 0 0 22px rgba(255, 50, 10, .5);
}
.relic:hover .relic-img, .relic:focus-visible .relic-img { transform: scale(1.1) rotate(-2deg); filter: drop-shadow(0 0 18px rgba(255, 60, 10, .55)) brightness(1.18); }
.relic:hover .relic-halo, .relic:focus-visible .relic-halo { opacity: 1; transform: scale(1.25); }
.relic:hover .relic-plinth { opacity: 1; transform: scaleX(1.25); }
.relic:hover .relic-tag { color: #ffb070; }
.relic:focus-visible { outline: 2px solid var(--ember); outline-offset: 4px; }

/* neon social tiles (video slices + matching drawn tiles) */
.social-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.tile {
  --c: var(--red);
  position: relative; flex: 0 1 calc((100% - 36px) / 3); max-width: 380px; aspect-ratio: 380 / 236;
  border-radius: 16px; overflow: hidden; isolation: isolate; background: #050304;
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
  box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--c) 80%, transparent);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s, border-color .3s, filter .3s;
}
.tile.reveal.in:hover, .tile:hover {
  transform: translateY(-6px) scale(1.02); filter: brightness(1.12) saturate(1.1);
  border-color: color-mix(in srgb, var(--c) 85%, transparent);
  box-shadow: 0 26px 60px -18px color-mix(in srgb, var(--c) 95%, transparent), 0 0 0 1px color-mix(in srgb, var(--c) 50%, transparent);
}
.tile::after { /* soft edge vignette + shine sweep on hover */
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background:
    linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .14) 50%, transparent 65%) -150% 0 / 200% 100% no-repeat,
    radial-gradient(120% 100% at 50% 40%, transparent 60%, rgba(0, 0, 0, .55));
  transition: background-position .8s ease;
}
.tile:hover::after { background-position: 150% 0, 0 0; }
.tile-video canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* drawn tiles that match the video style */
.tile-neon { background: radial-gradient(90% 70% at 50% 75%, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%), linear-gradient(180deg, #0d0709 0%, #070405 60%, #030203 100%); }
.tile-reflect { z-index: 2; transform: scaleY(-.55); transform-origin: 50% 64%; opacity: .45; filter: blur(2px) drop-shadow(0 0 8px var(--c)); animation: none;
  -webkit-mask: linear-gradient(180deg, transparent 64%, #000 66%, transparent 100%); mask: linear-gradient(180deg, transparent 64%, #000 66%, transparent 100%); }
.tile-neon::before { /* rocky volcanic texture */
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .22; mix-blend-mode: screen;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='380' height='236'><filter id='r'><feTurbulence type='fractalNoise' baseFrequency='.035 .06' numOctaves='4' seed='7'/><feColorMatrix values='0 0 0 0 .16  0 0 0 0 .12  0 0 0 0 .14  0 0 0 -1.6 1.25'/></filter><rect width='100%' height='100%' filter='url(%23r)'/></svg>") center / cover;
  -webkit-mask: linear-gradient(180deg, #000 0%, #000 60%, transparent 70%); mask: linear-gradient(180deg, #000 0%, #000 60%, transparent 70%); }
.tile-sky { position: absolute; inset: 0 0 34% 0; background:
  radial-gradient(60% 50% at 20% 10%, color-mix(in srgb, var(--c) 18%, transparent), transparent 70%),
  radial-gradient(50% 60% at 85% 0%, color-mix(in srgb, var(--c) 14%, transparent), transparent 70%); }
.tile-bolts { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1;
  filter: drop-shadow(0 0 3px var(--c)) drop-shadow(0 0 10px var(--c)); animation: flicker 2.6s infinite steps(1); }
@keyframes flicker { 0%, 100% { opacity: .95; } 7% { opacity: .55; } 9% { opacity: 1; } 42% { opacity: .8; } 44% { opacity: 1; } 71% { opacity: .65; } 73% { opacity: .95; } }
.tile-water { position: absolute; left: 0; right: 0; bottom: 0; height: 36%; z-index: 2;
  background:
    repeating-linear-gradient(180deg, color-mix(in srgb, var(--c) 45%, transparent) 0 2px, transparent 2px 7px),
    linear-gradient(180deg, color-mix(in srgb, var(--c) 40%, transparent), transparent 85%);
  -webkit-mask: radial-gradient(70% 120% at 50% 0%, #000 30%, transparent 75%); mask: radial-gradient(70% 120% at 50% 0%, #000 30%, transparent 75%);
  opacity: .95; filter: blur(1.2px); animation: ripple 3s ease-in-out infinite; }
@keyframes ripple { 50% { transform: scaleX(1.06); opacity: .55; } }
.tile-row { position: absolute; z-index: 3; left: 0; right: 0; top: 13%; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 0 14px; }
.tile-icon { flex: none; width: 23%; aspect-ratio: 1; border-radius: 22%; display: grid; place-items: center;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 100%, #fff 18%), var(--c));
  box-shadow: 0 0 18px color-mix(in srgb, var(--c) 85%, transparent), 0 0 46px color-mix(in srgb, var(--c) 45%, transparent), inset 0 2px 0 rgba(255, 255, 255, .35); }
.tile-icon .ic { width: 58%; height: 58%; color: #fff; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .4)); }
.tile-text { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.tile-handle { font-family: "Pirata One", var(--display); font-weight: 400; font-size: clamp(22px, 2.6vw, 34px); line-height: 1; white-space: nowrap;
  background: linear-gradient(180deg, #ffffff 0%, #d9d4d0 55%, #8f8a88 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 #000) drop-shadow(0 0 8px rgba(0, 0, 0, .9)); }
.tile-tag { margin-top: 6px; font-weight: 700; font-size: clamp(10px, 1vw, 13px); letter-spacing: .32em; text-transform: uppercase; white-space: nowrap;
  color: color-mix(in srgb, var(--c) 100%, #fff 25%); text-shadow: 0 0 10px var(--c); }

/* player */
.player { position: relative; padding: 10px; border-radius: 22px; background: linear-gradient(135deg, rgba(255, 42, 26, .5), rgba(255, 138, 0, .2), rgba(255, 42, 26, .5)); box-shadow: 0 30px 80px -30px rgba(255, 40, 10, .7); }
.player-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #0b0605; }
.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--muted); text-align: center; padding: 16px; }
.player-fallback img { width: 90px; height: 90px; border-radius: 50%; opacity: .85; border: 3px solid var(--red); }
.player-fallback p { margin: 0; }

/* schedule */
.schedule { display: grid; gap: 12px; max-width: 760px; margin: 0 auto; }
.sched-row { display: grid; grid-template-columns: 140px 1fr auto; gap: 16px; align-items: center; padding: 18px 22px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.sched-row b { font-family: var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--ember); }
.sched-row span:last-child { color: var(--muted); font-weight: 600; }

/* isle pillars */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pillar {
  position: relative; padding: 30px 24px 28px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line);
  overflow: hidden; transition: transform .3s, border-color .3s;
}
.pillar:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.pillar .num { position: absolute; right: 14px; top: 2px; font-family: var(--display); font-weight: 900; font-size: 84px; line-height: 1; color: rgba(255, 60, 20, .1); }
.pillar h3 { margin: 0 0 10px; font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: .12em; font-size: 22px; color: var(--gold); }
.pillar p { margin: 0; color: var(--muted); font-size: 16px; }
.pillar::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--red), var(--lava)); transform: scaleX(.15); transform-origin: left; transition: transform .45s; }
.pillar:hover::after { transform: scaleX(1); }

/* dinos */
.dinos { max-width: none; padding-left: 0; padding-right: 0; overflow: hidden; }
.dinos-grid { max-width: var(--max); margin: 0 auto; padding: 0 16px; display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.dinos-art { position: relative; display: grid; place-items: center; }
.logo-glow { position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 42, 26, .45), transparent 65%); filter: blur(30px); animation: breathe 5s ease-in-out infinite; }
.game-logo { position: relative; width: min(420px, 100%); animation: float 6s ease-in-out infinite; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .6)); }
@keyframes float { 50% { transform: translateY(-14px) rotate(-1.5deg); } }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px auto 1fr; gap: 14px; align-items: center; padding: 12px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.steps li::before { content: counter(s); width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 20px; color: #fff; background: linear-gradient(135deg, var(--red), var(--ember)); }
.steps code, .chip { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-weight: 700; color: var(--gold); }
.steps code { font-size: 16px; padding: 4px 10px; border-radius: 8px; background: rgba(255, 192, 97, .08); border: 1px solid rgba(255, 192, 97, .25); }
.steps span { color: var(--muted); font-size: 16px; line-height: 1.35; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { font-size: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 42, 26, .08); border: 1px solid var(--line); cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--ember); background: rgba(255, 42, 26, .18); }
.chip.copied { color: #fff; border-color: var(--gold); }
.herd { margin-top: 70px; position: relative; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.herd::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }
.herd-track { display: flex; gap: 70px; width: max-content; align-items: flex-end; animation: herd 45s linear infinite; padding-bottom: 8px; }
.herd-track img { height: 120px; width: auto; filter: drop-shadow(0 8px 6px rgba(0, 0, 0, .75)); animation: bob 1.2s ease-in-out infinite; }
.herd-track img:nth-child(odd) { animation-delay: -.6s; }
@keyframes herd { to { transform: translateX(-50%); } }
@keyframes bob { 50% { transform: translateY(-4px); } }

/* rules */
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rule { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.rule-n { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 900; color: var(--red); border: 2px solid var(--line-strong); }
.rule h3 { margin: 2px 0 6px; font-size: 19px; letter-spacing: .03em; }
.rule p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.45; }

/* support */
.support-card {
  position: relative; text-align: center; padding: clamp(36px, 6vw, 70px) clamp(18px, 5vw, 60px); border-radius: 28px; overflow: hidden;
  background: radial-gradient(600px 300px at 50% 0%, rgba(255, 42, 26, .35), transparent 70%), linear-gradient(180deg, #1c0a07, #0c0605);
  border: 1px solid var(--line-strong);
}
.support-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.support-opt { padding: 24px; border-radius: 16px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); text-align: left; transition: transform .25s, border-color .25s; }
.support-opt:hover { transform: translateY(-4px); border-color: var(--ember); }
.support-opt h3 { margin: 0 0 6px; font-family: var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); display: flex; justify-content: space-between; }
.support-opt p { margin: 0; color: var(--muted); font-size: 16px; }

/* footer */
.footer { text-align: center; padding: 50px 16px 60px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-icons { display: flex; justify-content: center; gap: 12px; margin-bottom: 18px; }
.footer-icons a { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); transition: all .2s; }
.footer-icons a:hover { border-color: var(--ember); color: var(--ember); transform: translateY(-3px); }
.footer-icons .ic { width: 20px; height: 20px; }
.footer p { margin: 6px 0; }
.copy { font-size: 14px; opacity: .7; }

/* responsive */
@media (max-width: 980px) {
  .link-grid, .rules { grid-template-columns: repeat(2, 1fr); }
  .tile { flex-basis: calc((100% - 18px) / 2); }
  .relic-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .dinos-grid { grid-template-columns: 1fr; gap: 30px; }
  .dinos-copy { text-align: left; }
  .game-logo { width: min(320px, 80%); }
  .support-options { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .nav-links { display: none; }
  .link-grid, .rules, .pillars { grid-template-columns: 1fr; }
  .link-card.featured { grid-column: auto; }
  .tile { flex-basis: 100%; }
  .relic-grid { gap: 26px 10px; }
  .relic-handle { font-size: 22px; }
  .relic-tag { font-size: 11px; letter-spacing: .26em; }
  .section { padding: 72px 16px; }
  .avatar-wrap { width: 132px; height: 132px; }
  .sched-row { grid-template-columns: 1fr; gap: 4px; }
  .steps li { grid-template-columns: 40px 1fr; }
  .steps li span { grid-column: 2; }
  .steps li::before { width: 40px; height: 40px; grid-row: span 2; }
  .herd-track img { height: 84px; }
  .btn { padding: 13px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html:not(.motion) *, html:not(.motion) *::before, html:not(.motion) *::after { animation: none !important; transition: none !important; }
  html:not(.motion) .reveal { opacity: 1; transform: none; }
  html:not(.motion) .tagline span { opacity: 1; }
}
