/* TJCO Games / Dinosaur World website */
@font-face { font-family: "Bangers"; src: url("assets/fonts/bangers.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Roboto"; src: url("assets/fonts/roboto-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("assets/fonts/roboto-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("assets/fonts/roboto-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --ink: #05070d; --ink-2: #0b0f19; --panel: #101826; --line: rgba(255,216,90,.18);
  --gold: #ffd85a; --gold-2: #ffb02e; --lava: #ff6a1a; --red: #d7192b; --cream: #fff0c5; --text: #dfe6f3; --muted: #9aa8bf; --blue: #9fd8ff;
  --basic: #a9b3c2; --uncommon: #47d16c; --rare: #3ea6ff; --epic: #b46bff; --legendary: #ffc23a; --apex: #ff3b2f;
  --radius: 22px; --max: 1180px;
  --display: "Bangers", Impact, "Arial Black", sans-serif; --body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--body); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: #000; padding: 8px 14px; border-radius: 10px; font-weight: 700; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--display); letter-spacing: 1.2px; font-size: 22px; line-height: 1; padding: 16px 28px; border-radius: 999px; text-decoration: none; border: 2px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; cursor: pointer; }
.btn:hover { transform: translateY(-2px); }
.btn-fire { color: #2b0700; background: linear-gradient(180deg, #ffe27a 0%, #ffb02e 45%, #ff6a1a 100%); box-shadow: 0 10px 30px -8px rgba(255,106,26,.75), inset 0 -3px 0 rgba(0,0,0,.18), inset 0 2px 0 rgba(255,255,255,.55); }
.btn-fire:hover { box-shadow: 0 14px 40px -6px rgba(255,106,26,.95), inset 0 -3px 0 rgba(0,0,0,.18), inset 0 2px 0 rgba(255,255,255,.55); }
.btn-ghost { color: var(--cream); border-color: rgba(255,240,197,.45); background: rgba(5,7,13,.35); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-small { font-size: 17px; padding: 10px 18px; }
.btn[aria-disabled="true"] { cursor: default; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 24px; padding: 14px clamp(16px, 4vw, 40px); padding-top: max(14px, env(safe-area-inset-top)); transition: background .3s ease, box-shadow .3s ease; }
.nav.scrolled { background: rgba(5,7,13,.82); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.wordmark { font-family: var(--display); font-size: 26px; letter-spacing: 1.5px; color: var(--cream); text-decoration: none; }
.wordmark span { color: var(--lava); margin-left: 6px; }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { color: var(--cream); text-decoration: none; font-weight: 700; font-size: 15px; opacity: .85; }
.nav nav a:hover { opacity: 1; color: var(--gold); }
.nav .btn-small { margin-left: 4px; }
@media (max-width: 760px) { .nav nav { display: none; } .nav .btn-small { margin-left: auto; } }

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; padding: 110px 20px 90px; }
.hero-bg { position: absolute; inset: -10% 0 -10% 0; background-size: cover; background-position: center 30%; z-index: -3; transform: scale(1.08); will-change: transform; }
.hero-shade { position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(ellipse 70% 55% at 50% 45%, rgba(5,7,13,.05) 0%, rgba(5,7,13,.55) 70%, rgba(5,7,13,.92) 100%),
  linear-gradient(180deg, rgba(5,7,13,.55) 0%, rgba(5,7,13,0) 25%, rgba(5,7,13,0) 60%, var(--ink) 100%); }
.embers { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.streaks i { position: absolute; top: -10%; width: 2px; height: 160px; background: linear-gradient(180deg, rgba(255,226,122,0), #ffd27a 70%, #fff); filter: drop-shadow(0 0 8px #ff8a2e); transform: rotate(35deg); opacity: 0; animation: streak 7s linear infinite; z-index: -1; }
.streaks i:nth-child(1) { left: 70%; animation-delay: 1s; }
.streaks i:nth-child(2) { left: 88%; animation-delay: 3.6s; height: 110px; }
.streaks i:nth-child(3) { left: 55%; animation-delay: 5.2s; height: 90px; }
.streaks i:nth-child(4) { left: 95%; animation-delay: 6.4s; }
@keyframes streak { 0% { transform: translate(0,0) rotate(35deg); opacity: 0; } 5% { opacity: 1; } 22% { transform: translate(-60vw, 110vh) rotate(35deg); opacity: 0; } 100% { opacity: 0; transform: translate(-60vw, 110vh) rotate(35deg); } }
.hero-inner { position: relative; text-align: center; max-width: 820px; }
.hero-emblem { width: clamp(130px, 15vw, 190px); margin: 0 auto -18px; filter: drop-shadow(0 18px 40px rgba(0,0,0,.7)); animation: rise 1s cubic-bezier(.2,.8,.2,1) both, bob 6s ease-in-out 1s infinite; }
.hero-logo { margin: 0; }
.hero-logo img { width: clamp(280px, 40vw, 520px); margin: 0 auto; filter: drop-shadow(0 8px 0 rgba(0,0,0,.35)) drop-shadow(0 20px 40px rgba(0,0,0,.6)); animation: slam .9s cubic-bezier(.2,1.4,.4,1) .15s both; }
.tagline { font-family: var(--display); font-size: clamp(26px, 3.6vw, 40px); letter-spacing: 3px; color: var(--gold); margin: 6px 0 10px; text-shadow: 0 2px 0 #3b0e00, 0 0 24px rgba(255,138,46,.55); animation: rise .8s ease .45s both; }
.lede { font-size: clamp(16px, 1.6vw, 19px); color: #f0e6d0; max-width: 620px; margin: 0 auto 26px; text-shadow: 0 2px 8px rgba(0,0,0,.8); animation: rise .8s ease .6s both; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; animation: rise .8s ease .75s both; }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; translate: -50% 0; width: 28px; height: 46px; border: 2px solid rgba(255,240,197,.6); border-radius: 20px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 9px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: cue 1.8s ease-in-out infinite; }
@media (max-width: 700px), (max-height: 760px) { .scroll-cue { display: none; } }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes slam { from { opacity: 0; transform: scale(1.6) rotate(-4deg); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Stats */
.stats { position: relative; z-index: 2; max-width: var(--max); margin: -40px auto 0; padding: 0 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { background: linear-gradient(180deg, rgba(23,32,50,.92), rgba(12,17,28,.92)); border: 1px solid var(--line); border-radius: 18px; padding: 18px 16px; text-align: center; box-shadow: 0 20px 40px -20px #000; }
.stat b { display: block; font-family: var(--display); font-weight: 400; font-size: 46px; line-height: 1; background: linear-gradient(180deg, #fff3b0, var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 14px; font-weight: 700; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Sections */
.section { position: relative; padding: clamp(80px, 11vw, 140px) 20px; }
.section-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.eyebrow { font-family: var(--display); letter-spacing: 3px; color: var(--lava); font-size: 20px; margin: 0 0 6px; }
h2 { font-family: var(--display); font-weight: 400; letter-spacing: 1.5px; font-size: clamp(40px, 6vw, 68px); line-height: 1; color: var(--cream); margin: 0 0 16px; text-shadow: 0 3px 0 rgba(0,0,0,.4); }
.section-head p:last-child { font-size: 18px; color: var(--muted); margin: 0; }
h3 { font-family: var(--display); font-weight: 400; letter-spacing: 1px; font-size: 28px; color: var(--gold); margin: 8px 0 6px; }

/* Screenshot rail */
.rail-wrap { position: relative; max-width: 1400px; margin: 0 auto; }
.rail { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 20px max(20px, calc((100% - var(--max)) / 2)) 40px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail figure { flex: 0 0 auto; width: clamp(210px, 22vw, 270px); margin: 0; scroll-snap-align: center; border-radius: 26px; overflow: hidden; box-shadow: 0 30px 60px -25px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.06); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.rail figure:hover { transform: translateY(-10px) rotate(-1deg); }
.rail img { width: 100%; height: auto; }
.rail-btn { position: absolute; top: 50%; translate: 0 -50%; z-index: 3; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: rgba(10,14,24,.85); color: var(--gold); font-size: 34px; line-height: 1; cursor: pointer; backdrop-filter: blur(8px); }
.rail-btn.prev { left: 14px; } .rail-btn.next { right: 14px; }
.rail-btn:hover { background: var(--gold); color: #000; }
@media (max-width: 700px) { .rail-btn { display: none; } }

.features { max-width: var(--max); margin: 50px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { background: linear-gradient(180deg, var(--panel), var(--ink-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; transition: transform .3s ease, border-color .3s ease; }
.feature:hover { transform: translateY(-6px); border-color: rgba(255,176,46,.55); }
.feature .ico { width: 84px; height: 84px; object-fit: contain; margin-bottom: 6px; filter: drop-shadow(0 8px 14px rgba(0,0,0,.6)); }
.feature .ico-screen { mix-blend-mode: screen; filter: none; }
.feature p { margin: 0; color: var(--muted); }
@media (max-width: 980px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* Dinosaurs */
.dinos { overflow: hidden; isolation: isolate; }
.dinos-bg { position: absolute; inset: -15% 0; background-size: cover; background-position: center; opacity: .22; z-index: -1; filter: saturate(.8); }
.dinos::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--ink) 0%, rgba(5,7,13,.6) 30%, rgba(5,7,13,.6) 70%, var(--ink) 100%); }
.rarities { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 0; margin: -10px auto 40px; }
.rarities li { font-weight: 900; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; border: 2px solid var(--c); color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.r-basic { --c: var(--basic); } .r-uncommon { --c: var(--uncommon); } .r-rare { --c: var(--rare); } .r-epic { --c: var(--epic); } .r-legendary { --c: var(--legendary); } .r-apex { --c: var(--apex); }

.fan { position: relative; height: clamp(300px, 34vw, 430px); max-width: 1000px; margin: 0 auto; perspective: 1200px; }
.card { --w: clamp(150px, 17vw, 230px); position: absolute; left: 50%; bottom: 0; width: var(--w); aspect-ratio: 5/7; margin-left: calc(var(--w) / -2); border-radius: 18px; overflow: hidden; background: #000; border: 4px solid var(--c);
  box-shadow: 0 0 0 2px rgba(0,0,0,.6), 0 25px 50px -15px rgba(0,0,0,.9), 0 0 30px -6px var(--c);
  transform-origin: 50% 120%; transform: translateX(calc(var(--i) * clamp(52px, 8vw, 110px))) rotate(calc(var(--i) * 6deg)) translateY(calc(var(--i) * var(--i) * 6px)); transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .3s; z-index: calc(10 - var(--i) * var(--i)); }
.card img { width: 100%; height: 100%; object-fit: cover; }
.card span, .card em { position: absolute; top: 10px; left: 10px; font-style: normal; font-weight: 900; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #000; background: var(--c); padding: 3px 8px; border-radius: 999px; }
.card:hover { transform: translateX(calc(var(--i) * clamp(52px, 8vw, 110px))) rotate(calc(var(--i) * 6deg)) translateY(-30px) scale(1.06); z-index: 20; box-shadow: 0 0 0 2px rgba(0,0,0,.6), 0 35px 60px -15px rgba(0,0,0,.9), 0 0 50px 0 var(--c); }
.card.r-apex::after { content: ""; position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent 0 70%, rgba(255,90,40,.55) 80%, transparent 90%); animation: spin 4s linear infinite; mix-blend-mode: screen; pointer-events: none; }
@keyframes spin { to { transform: rotate(1turn); } }

.chase { max-width: 900px; margin: 70px auto 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 70px -25px #000, 0 0 60px -20px rgba(255,106,26,.45); }
.chase video { width: 100%; height: auto; display: block; aspect-ratio: 720/406; background: #05070d; }

/* Packs */
.packs { background: radial-gradient(ellipse 80% 60% at 50% 60%, rgba(215,25,43,.18), transparent 70%); }
.pack-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: clamp(10px, 2vw, 26px); align-items: end; max-width: var(--max); margin: 0 auto; }
@media (max-width: 760px) { .pack-row { grid-template-columns: repeat(12, 1fr); row-gap: 28px; } .pack-row figure:nth-child(-n+3) { grid-column: span 4; } .pack-row figure:nth-child(n+4) { grid-column: span 3; } }
.pack-row figure { margin: 0 auto; width: 100%; max-width: 160px; text-align: center; animation: bob 4s ease-in-out var(--d) infinite; }
.pack-row img { width: 100%; height: auto; filter: drop-shadow(0 16px 24px rgba(0,0,0,.7)); transition: transform .3s ease; }
.pack-row figure:hover img { transform: scale(1.08) rotate(-3deg); }
.pack-row figcaption { font-family: var(--display); letter-spacing: 1px; color: var(--cream); font-size: 20px; margin-top: 8px; }

/* Story */
.story-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.story-art { position: relative; border-radius: var(--radius); overflow: hidden; border: 6px solid #111; outline: 3px solid var(--cream); box-shadow: 14px 14px 0 var(--lava), 0 40px 70px -20px #000; transform: rotate(-1.5deg); }
.story-art video { width: 100%; height: auto; display: block; aspect-ratio: 720/406; background: #05070d; }
.caption { position: absolute; left: 16px; top: 16px; max-width: 60%; background: #ffe45c; color: #111; font-family: var(--display); letter-spacing: .8px; font-size: clamp(16px, 1.8vw, 20px); line-height: 1.2; padding: 10px 12px; border: 3px solid #111; box-shadow: 4px 4px 0 #111; }
.story-copy p { font-size: 18px; color: var(--muted); }
.story-copy h2 { font-size: clamp(36px, 4.6vw, 56px); }
@media (max-width: 860px) { .story-grid { grid-template-columns: 1fr; } }

/* Get */
.get { overflow: hidden; isolation: isolate; text-align: center; padding-block: clamp(110px, 14vw, 170px); }
.get-bg { position: absolute; inset: 0; background-size: cover; background-position: center 70%; z-index: -2; }
.get::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--ink) 0%, rgba(5,7,13,.55) 35%, rgba(5,7,13,.65) 70%, var(--ink) 100%); }
.get-inner { max-width: 640px; margin: 0 auto; }
.get-icon { width: 128px; height: 128px; border-radius: 28px; margin: 0 auto 20px; box-shadow: 0 20px 50px -10px rgba(255,106,26,.6), 0 0 0 1px rgba(255,255,255,.1); }
.get p { font-size: 18px; color: #e9dcc4; margin: 0 0 28px; }

/* Footer */
.footer { border-top: 1px solid var(--line); background: #03050a; padding: 40px 20px calc(40px + env(safe-area-inset-bottom)); }
.footer-inner { max-width: var(--max); margin: 0 auto; display: grid; gap: 14px; justify-items: center; text-align: center; }
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; }
.footer nav a { color: var(--cream); text-decoration: none; font-weight: 700; font-size: 15px; }
.footer nav a:hover { color: var(--gold); }
.footer p { color: var(--muted); font-size: 13px; margin: 0; max-width: 640px; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  }
