/* Leverio Games: ink-dark studio site. The motif is the pixel star from the logo ("a spark");
   each game card carries its own game's colours via --accent / --accent2. */
:root {
  --ink: #0d0c12;
  --ink2: #16141f;
  --card: #1b1826;
  --line: rgba(255, 255, 255, .1);
  --text: #f6f4ff;
  --muted: #a9a4c2;
  --yellow: #ffd23f;
  --coral: #ff5c7a;
  --cyan: #3ce0ff;
  --lime: #a6f04a;
  --violet: #9b7bff;
  --sans: ui-rounded, "SF Pro Rounded", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--ink); color: var(--text); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--text); }
img { max-width: 100%; display: block; }

#field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; }

/* nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 12px clamp(16px, 4vw, 40px); border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.nav.solid { background: rgba(13, 12, 18, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav-logo img { height: 40px; width: auto; }
.nav nav { display: flex; gap: clamp(14px, 3vw, 34px); }
.nav nav a { text-decoration: none; font-weight: 700; opacity: .75; transition: opacity .2s; }
.nav nav a:hover { opacity: 1; }

/* hero */
.hero { min-height: 92svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 110px 20px 60px; }
.logo-btn { all: unset; position: relative; display: block; width: min(560px, 84vw); cursor: pointer; margin-bottom: 34px; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.logo-btn:hover { transform: rotate(-2deg) scale(1.02); }
.logo-btn:active { transform: scale(.97); }
.logo-btn:focus-visible { outline: 2px dashed var(--muted); outline-offset: 12px; border-radius: 12px; }
.logo-btn img { width: 100%; height: auto; }
/* glow behind the logo's pixel star (80.6% / 14.4% of the image) */
.glint { position: absolute; left: 80.6%; top: 14.4%; width: 30%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, rgba(255, 210, 63, .55), rgba(255, 92, 122, .18) 40%, transparent 68%); animation: glint 3s ease-in-out infinite; }
@keyframes glint { 0%, 100% { opacity: .5; scale: .85; } 50% { opacity: 1; scale: 1.1; } }

h1 { font-size: clamp(38px, 6.6vw, 76px); line-height: 1.02; margin: 0 0 18px; letter-spacing: -.025em; font-weight: 900; }
.spark-word { position: relative; color: var(--yellow); }
.spark-word span { position: absolute; top: -.32em; right: -.62em; font-size: .5em; color: var(--coral); display: inline-block; animation: spin 6s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.lede { max-width: 600px; margin: 0 auto; color: var(--muted); font-size: clamp(17px, 2.1vw, 20px); }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 14px; font-weight: 800; text-decoration: none; transition: transform .15s, box-shadow .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn-main { background: var(--yellow); color: #1d1600; box-shadow: 0 5px 0 #b8901a; }
.btn-main:active { box-shadow: 0 2px 0 #b8901a; }
.btn-ghost { border: 2px solid rgba(255, 255, 255, .22); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .6); }
.btn.big { font-size: clamp(16px, 2.6vw, 22px); padding: 16px 30px; word-break: break-all; }
.btn-play { background: #000; border: 1px solid #555; padding: 9px 20px 9px 14px; border-radius: 12px; margin-top: 6px; }
.btn-play svg { width: 24px; height: 24px; fill: #2bd67b; }
.btn-play span { display: flex; flex-direction: column; line-height: 1.1; font-size: 18px; }
.btn-play small { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; opacity: .8; }
.text-link { font-weight: 800; color: var(--yellow); text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* genre marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: rgba(22, 20, 31, .7); padding: 14px 0; rotate: -1.2deg; margin: 10px -10px 0; }
.track { display: flex; gap: 26px; width: max-content; animation: slide 36s linear infinite; font-weight: 900; font-size: clamp(18px, 2.4vw, 26px); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.track i { font-style: normal; color: var(--yellow); }
.track span:nth-of-type(3n+2) { color: var(--cyan); }
.track span:nth-of-type(3n) { color: var(--coral); }
@keyframes slide { to { transform: translateX(-50%); } }

/* sections */
.section { max-width: 1080px; margin: 0 auto; padding: clamp(80px, 11vw, 130px) 20px 0; }
.kicker { margin: 0 0 8px; color: var(--yellow); font-weight: 800; text-transform: uppercase; letter-spacing: .16em; font-size: 13px; }
h2 { font-size: clamp(32px, 4.8vw, 50px); line-height: 1.08; margin: 0 0 34px; letter-spacing: -.02em; font-weight: 900; }
.section-lede { color: var(--muted); max-width: 680px; margin: -16px 0 34px; font-size: 18px; }
h3 { margin: 0 0 8px; font-size: 23px; line-height: 1.2; }

/* game cards */
.game { position: relative; border-radius: 28px; overflow: hidden; background: var(--card); border: 1px solid var(--line); transition: transform .35s cubic-bezier(.3, 1.4, .5, 1), border-color .3s, box-shadow .3s; }
.game:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent, #fff) 55%, transparent); box-shadow: 0 24px 70px -20px color-mix(in srgb, var(--accent, #000) 45%, transparent); }
.game .shot { position: relative; overflow: hidden; }
.game .shot img { width: 100%; height: auto; transition: transform .8s ease; }
.game:hover .shot img { transform: scale(1.04); }
.game .body { padding: clamp(22px, 3.4vw, 36px); }
.game .body p { color: var(--muted); margin: 0 0 16px; }
.status { position: absolute; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; font-size: 13px; font-weight: 800; background: rgba(13, 12, 18, .78); backdrop-filter: blur(6px); border: 1px solid var(--line); }
.status b { width: 8px; height: 8px; border-radius: 50%; }
.status.dev b { background: var(--accent2); box-shadow: 0 0 10px var(--accent2); animation: blink 1.4s ease-in-out infinite; }
.status.live b { background: #2bd67b; box-shadow: 0 0 10px #2bd67b; }
@keyframes blink { 50% { opacity: .3; } }

/* ATlands: its own cyan/orange tech look */
.atlands { background: linear-gradient(180deg, #0b1219, #0a0d14); }
.atlands .shot img { -webkit-mask-image: linear-gradient(#000 45%, transparent 96%); mask-image: linear-gradient(#000 45%, transparent 96%); }
.atlands .body { margin-top: -70px; position: relative; z-index: 1; }
.wordmark { font-weight: 900; font-size: clamp(48px, 8vw, 92px); line-height: .9; letter-spacing: .02em; display: flex; align-items: baseline; font-family: "Bahnschrift", "Eurostile", "DIN Alternate", var(--sans); text-transform: none; }
.wordmark .at { color: transparent; -webkit-text-stroke: 2px var(--accent); text-shadow: 0 0 30px rgba(60, 242, 255, .45); }
.wordmark .lands { background: linear-gradient(180deg, #fff 0%, #ffb347 45%, #ff4d6d 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 18px rgba(255, 120, 60, .5)); }
.sub { margin: 10px 0 16px !important; color: #b9c9df !important; letter-spacing: .38em; text-transform: uppercase; font-weight: 700; font-size: 14px; }
.atlands .body > p:not(.sub) { max-width: 720px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 4px 0 0; }
.tags li { padding: 5px 12px; border-radius: 8px; font-size: 14px; font-weight: 700; color: var(--accent); background: rgba(60, 242, 255, .08); border: 1px solid rgba(60, 242, 255, .25); }

.game-row { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; margin-top: 22px; }
.starforge { background: linear-gradient(160deg, #241a5c, #1a1238); }
.starforge h3 { color: var(--accent); }

.next { display: flex; flex-direction: column; justify-content: center; background: repeating-linear-gradient(-45deg, #17151f 0 14px, #1b1826 14px 28px); border-style: dashed; border-color: rgba(255, 255, 255, .18); --accent: #ffd23f; }
.mystery { display: grid; place-items: center; padding-top: 34px; }
.mystery img { width: 88px; height: 88px; image-rendering: pixelated; border-radius: 20px; animation: spin 12s linear infinite; }
.next .body { text-align: center; }

/* studio */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { padding: 28px 26px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); position: relative; overflow: hidden; transition: transform .3s, border-color .3s; }
.pillar::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--accent); }
.pillar:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.pillar .num { display: block; font-weight: 900; font-size: 40px; line-height: 1; margin-bottom: 14px; color: var(--accent); }
.pillar p { margin: 0; color: var(--muted); }

/* contact */
.contact { text-align: center; padding: clamp(40px, 6vw, 70px) 20px; border-radius: 32px; background: radial-gradient(90% 120% at 50% 0%, rgba(255, 210, 63, .16), transparent 60%), var(--card); border: 1px solid var(--line); }
.contact h2 { margin-bottom: 12px; }
.contact p { color: var(--muted); max-width: 520px; margin: 0 auto 28px; }

.foot { text-align: center; padding: 90px 20px 40px; color: var(--muted); font-size: 14px; }
.foot img { width: 110px; height: auto; margin: 0 auto 14px; opacity: .8; }
.foot p { margin: 4px 0; }
.foot a { color: var(--muted); }

/* uses `translate`, so hover `transform`s on the same cards still work */
.reveal { opacity: 0; translate: 0 26px; transition: opacity .7s ease, translate .7s ease, transform .35s cubic-bezier(.3, 1.4, .5, 1), border-color .3s, box-shadow .3s; }
.reveal.in { opacity: 1; translate: none; }

@media (max-width: 820px) {
  .game-row, .pillars { grid-template-columns: 1fr; }
  .atlands .body { margin-top: -30px; }
  .atlands .shot img { aspect-ratio: 4 / 3; object-fit: cover; }
  .nav-logo img { height: 32px; }
  .nav nav a { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; translate: none; }
}
