/* =============================================================
   ZEYD ONLINE - Portal cinematic scenes
   -------------------------------------------------------------
   Section-by-section composition. Loaded after layout.css.
   Motion: transform + opacity + clip-path only (GPU-friendly).
   Every animated element here is gated by the JS reading
   prefers-reduced-motion and by IntersectionObserver, never a
   permanent rAF/canvas loop.
   ============================================================= */

/* -------------------------------------------------------------
   GENERIC REVEAL PRIMITIVES (driven by js/portal/reveal.js)
   ------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out),
    clip-path var(--t-slow) var(--ease-out);
}

[data-reveal="rise"] { transform: translateY(28px); }
[data-reveal="rise"].is-visible { opacity: 1; transform: translateY(0); }

[data-reveal="wipe"] { clip-path: inset(0 0 100% 0); opacity: 1; }
[data-reveal="wipe"].is-visible { clip-path: inset(0 0 0% 0); }

[data-reveal="scale"] { transform: scale(0.94); }
[data-reveal="scale"].is-visible { opacity: 1; transform: scale(1); }

[data-reveal="rail"] { opacity: 1; transform: none; }

[data-reveal-child] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}

/* Ekran disindaki uzun tanitim bolumlerini gerekene kadar cizme. Tahmini
   alan, mobilde dil degisince veya gorsel yuklenince sayfa kaymasini onler. */
.portal-page :is(.beasts, .gates, .forge, .devlog, .p-footer) {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

.is-visible [data-reveal-child] {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-reveal-child] {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
  }
}

/* =============================================================
   01 - HERO
   -------------------------------------------------------------
   Layer order (back to front): bg photo -> drifting fog ->
   rim light -> localized readability pool (behind copy only) ->
   edge vignette -> embers -> threshold (scroll-linked exit fog)
   -> content (z-index 2) -> world HUD.

   Readability comes from a POOL of darkness sitting only behind
   the type block, plus tight per-glyph text-shadow, NOT a flat
   scrim over the whole frame. The clash of faces at the top stays
   close to full brightness.
   ============================================================= */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--p-surface-0);
  --hero-exit: 0;
}

.hero__scene {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg {
  position: absolute;
  inset: -1.5%;
  background: url("../../assets/backgrounds/hero-clash.webp") center 34% / cover no-repeat;
  transform: scale(1.04) translate3d(var(--hero-parallax-x, 0px), var(--hero-parallax-y, 0px), 0);
  filter: brightness(calc(1 - var(--hero-exit) * 0.4)) saturate(calc(1 - var(--hero-exit) * 0.35));
  transition: filter 60ms linear;
}

/* Slow drifting mist along the battlefield ground line. Two
   offset blurred ellipses, low opacity, screen-blended so they
   only ever lighten shadow, never flatten the art. */
.hero__fog {
  position: absolute;
  inset: 0;
  overflow: hidden;
  mix-blend-mode: screen;
  opacity: 0.5;
}

.hero__fog-layer {
  position: absolute;
  width: 70%;
  height: 42%;
  border-radius: 50%;
  filter: blur(48px);
  background: radial-gradient(ellipse at center, rgba(180, 190, 214, 0.16) 0%, rgba(180, 190, 214, 0) 70%);
  animation: hero-fog-drift var(--fog-duration, 46s) ease-in-out infinite alternate;
}

.hero__fog-layer--1 { left: -12%; bottom: 6%; --fog-duration: 52s; }
.hero__fog-layer--2 { right: -16%; bottom: -4%; --fog-duration: 68s; animation-delay: -20s; opacity: 0.7; }

@keyframes hero-fog-drift {
  from { transform: translateX(0) scale(1); }
  to { transform: translateX(6vw) scale(1.06); }
}

/* A restrained warm rim-glow exactly where the two faces meet,
   simulating battlefield light instead of a generic hero glow. */
.hero__rim {
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
  background: radial-gradient(ellipse 30% 38% at 52% 30%, rgba(255, 158, 70, 0.24) 0%, rgba(255, 110, 40, 0.1) 42%, transparent 72%);
}

/* Localized darkness pool: sits ONLY behind the lower-left copy
   block. This is what makes the headline readable, not a global
   scrim, so the orc's face and the right two-thirds of the frame
   stay close to full brightness. */
.hero__pool {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 62% 68% at 20% 82%, rgba(4, 2, 8, 0.86) 0%, rgba(4, 2, 8, 0.58) 36%, rgba(4, 2, 8, 0.22) 60%, transparent 78%);
}

/* Thin top fade (nav legibility) + soft corner vignette. Edges
   only; the center of the frame is left alone. */
.hero__vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 3, 8, 0.5) 0%, transparent 14%),
    radial-gradient(140% 100% at 50% 42%, transparent 58%, rgba(5, 3, 8, 0.45) 100%);
}

.hero__embers {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__ember {
  position: absolute;
  bottom: -6%;
  left: var(--ember-x, 50%);
  width: var(--ember-size, 3px);
  height: var(--ember-size, 3px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 140, 0.95) 0%, rgba(255, 138, 43, 0.75) 45%, rgba(255, 90, 16, 0) 100%);
  animation: portal-ember-rise var(--ember-duration, 12s) linear infinite;
  animation-delay: var(--ember-delay, 0s);
  will-change: transform, opacity;
}

@keyframes portal-ember-rise {
  0% { transform: translate3d(0, 0, 0) scale(0.6); opacity: 0; }
  12% { opacity: 0.85; }
  80% { opacity: 0.5; }
  100% { transform: translate3d(var(--ember-drift, 0), -78vh, 0) scale(1.1); opacity: 0; }
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: calc(var(--nav-h) + 22vh);
  padding-bottom: clamp(4rem, 9vh, 6rem);
  opacity: calc(1 - var(--hero-exit) * 1.3);
  transform: translate3d(0, calc(var(--hero-exit) * -26px), 0);
}

.hero__brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  height: 76px;
  margin: 0 0 0.4rem -18px;
}

.hero__brand-circle {
  position: absolute;
  left: 0;
  top: 50%;
  width: 116px;
  height: 116px;
  margin-top: -58px;
  opacity: 0.85;
  filter: drop-shadow(0 0 14px rgba(255, 170, 70, 0.35));
  animation: hero-brand-spin 100s linear infinite;
}

@keyframes hero-brand-spin {
  to { transform: rotate(360deg); }
}

.hero__brand-mark {
  position: relative;
  margin-left: 5.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff3cf 0%, #ffe9a8 30%, #e8c064 62%, #a97d2a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.9));
  white-space: nowrap;
}

.hero__brand-rule {
  flex: 1;
  height: 1px;
  min-width: 2.5rem;
  max-width: 7rem;
  background: linear-gradient(90deg, rgba(232, 192, 100, 0.6), transparent);
}

.hero__title {
  max-width: 23ch;
  font-size: clamp(2.1rem, 2vw + 1.9rem, 3.7rem);
  line-height: 1.08;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.hero__title span {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.92), 0 10px 28px rgba(0, 0, 0, 0.7);
}

.hero__title-accent {
  background: linear-gradient(180deg, #fff3cf 0%, #ffe9a8 28%, #e8c064 58%, #a97d2a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.85));
}

.hero__sub {
  max-width: 42ch;
  margin: 1.2rem 0 0;
  font-size: clamp(0.94rem, 0.35vw + 0.84rem, 1.08rem);
  line-height: 1.6;
  color: var(--c-text-dim);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85), 0 1px 2px rgba(0, 0, 0, 0.9);
}

.hero__cta {
  margin-top: 1.9rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-ui);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-text-dim);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.hero__meta-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--c-gold-dim);
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg { transform: none; }
  .hero__ember { display: none; }
  .hero__fog-layer { animation: none; }
  .hero__brand-circle { animation: none; }
}

/* -------------------------------------------------------------
   PRECIOUS FORGED-METAL CTA
   -------------------------------------------------------------
   Used for the hero Play Now button: dark forged
   metal, an engraved gold hairline, four frame-corner.svg
   accents (the game's own corner-bracket asset), and a slow
   ember heat-shimmer instead of a website glow-on-hover.
   ------------------------------------------------------------- */
.hero__play {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.9em 2.5em;
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 8%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #232840 0%, #12152c 45%, #090a1a 100%);
  box-shadow:
    inset 0 0 0 1px rgba(232, 192, 100, 0.4),
    inset 0 1px 0 rgba(255, 235, 185, 0.22),
    inset 0 -10px 18px rgba(0, 0, 0, 0.5),
    0 12px 26px rgba(0, 0, 0, 0.55);
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  text-transform: uppercase;
  color: var(--c-gold-bright);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}

.hero__play::after {
  /* ember heat-shimmer: a slow warm sweep, not an outer glow */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 175, 90, 0.16) 48%, transparent 66%);
  background-size: 240% 100%;
  animation: hero-play-ember 5.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes hero-play-ember {
  0%, 100% { background-position: 120% 0; opacity: 0.5; }
  50% { background-position: -20% 0; opacity: 1; }
}

.hero__play-corner {
  position: absolute;
  width: 13px;
  height: 13px;
  background: url("../../assets/ui/hud/frame-corner.svg") center / contain no-repeat;
  opacity: 0.85;
  pointer-events: none;
}

.hero__play-corner--tl { top: -4px; left: -4px; }
.hero__play-corner--tr { top: -4px; right: -4px; transform: rotate(90deg); }
.hero__play-corner--br { bottom: -4px; right: -4px; transform: rotate(180deg); }
.hero__play-corner--bl { bottom: -4px; left: -4px; transform: rotate(270deg); }

.hero__play:hover,
.hero__play:focus-visible {
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 224, 150, 0.75),
    inset 0 1px 0 rgba(255, 235, 185, 0.3),
    inset 0 -10px 18px rgba(0, 0, 0, 0.45),
    0 14px 30px rgba(0, 0, 0, 0.6),
    0 0 22px rgba(255, 150, 60, 0.28);
}

.hero__play:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 4px 10px rgba(0, 0, 0, 0.65),
    inset 0 0 0 1px rgba(232, 192, 100, 0.5),
    0 6px 14px rgba(0, 0, 0, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  .hero__play::after { animation: none; }
}

/* -------------------------------------------------------------
   World HUD (hero corner readout + reused, larger, in Server
   Pulse). Structured like real game status chrome: server name,
   a live status line, and a caption reserving room for future
   live metrics rather than inventing one now.
   ------------------------------------------------------------- */
.world-hud {
  position: absolute;
  z-index: 2;
  right: var(--p-gutter);
  bottom: clamp(1.2rem, 4vh, 2.4rem);
  opacity: calc(1 - var(--hero-exit) * 1.3);
  padding: 0.65rem 1.1rem 0.6rem;
  border: 1px solid var(--p-line-strong);
  border-left: 2px solid var(--c-gold-dim);
  background: linear-gradient(180deg, rgba(16, 20, 56, 0.82) 0%, rgba(7, 4, 13, 0.93) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 230, 170, 0.1), 0 10px 26px rgba(0, 0, 0, 0.55);
  font-family: var(--font-ui);
  text-align: right;
}

.world-hud__row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.world-hud__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #58e07a;
  box-shadow: 0 0 8px rgba(88, 224, 122, 0.85);
  animation: hud-dot-pulse 2.4s ease-in-out infinite;
}

@keyframes hud-dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.world-hud__label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-text-dim);
}

.world-hud__status {
  margin: 0.2rem 0 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--c-gold-bright);
}

.world-hud__caption {
  margin: 0.15rem 0 0;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-text-dim);
  opacity: 0.65;
}

@media (prefers-reduced-motion: reduce) {
  .world-hud__dot { animation: none; }
}

/* =============================================================
   02 - THREE DUNGEON ENCOUNTERS
   ============================================================= */
.beasts {
  padding: clamp(2.6rem, 6vh, 4.5rem) 0;
  background: var(--p-surface-0);
}

.beasts__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.4vw, 1.25rem);
}

.beasts__card {
  position: relative;
  min-width: 0;
  min-height: clamp(470px, 66vh, 620px);
  overflow: hidden;
  border: 1px solid var(--p-line);
  border-radius: var(--p-radius-md);
  background: linear-gradient(180deg, #0e0c10 0%, #050308 78%);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025), 0 22px 46px rgba(0, 0, 0, 0.28);
}

.beasts__card::before,
.beasts__card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.beasts__card::before {
  background: radial-gradient(ellipse at 50% 34%, rgba(140, 110, 40, 0.2), transparent 62%);
}

.beasts__card--gorilla::before {
  background: radial-gradient(ellipse at 50% 38%, rgba(130, 60, 210, 0.26), transparent 62%);
}

.beasts__card--dragon::before {
  background: radial-gradient(ellipse at 50% 36%, rgba(210, 150, 50, 0.23), transparent 61%);
}

.beasts__card::after {
  z-index: 2;
  background: linear-gradient(0deg, rgba(5, 3, 8, 0.98) 0%, rgba(5, 3, 8, 0.86) 22%, transparent 58%),
    linear-gradient(180deg, rgba(5, 3, 8, 0.38), transparent 24%);
}

.beasts__art-wrap {
  position: absolute;
  inset: 1.2rem 0 26%;
  z-index: 1;
  display: grid;
  place-items: center;
}

.beasts__art {
  width: min(92%, 520px);
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 24px 42px rgba(0, 0, 0, 0.72));
  transition: transform var(--t-base) var(--ease-out);
}

.beasts__card:hover .beasts__art {
  transform: scale(1.025);
}

.beasts__copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: clamp(1rem, 1.5vw, 1.5rem);
}

.beasts__tag {
  margin: 0 0 0.45rem;
  font-family: var(--font-ui);
  font-size: clamp(0.55rem, 0.55vw, 0.66rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-fire);
}

.beasts__headline {
  margin: 0;
  max-width: 18ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 1.4vw, 1.75rem);
  line-height: 1.08;
  color: var(--c-text);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.82);
}

.beasts__text {
  max-width: 42ch;
  margin: 0.65rem 0 0;
  font-size: clamp(0.72rem, 0.72vw, 0.84rem);
  line-height: 1.5;
  color: var(--c-text-dim);
}

/* =============================================================
   03 - NINE GATES
   ============================================================= */
.gates {
  padding: clamp(4.5rem, 10vh, 7rem) 0;
  background: var(--p-surface-1);
}

.gates__rail {
  width: 100%;
  max-width: 1480px;
  margin: clamp(2.4rem, 6vh, 3.6rem) auto 0;
  padding-inline: var(--p-gutter);
  overflow: visible;
}

.gates__track {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 9rem));
  justify-content: center;
  gap: clamp(0.45rem, 0.65vw, 0.78rem);
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gates__card {
  min-width: 0;
  overflow: hidden;
  contain: layout paint;
  border: 1px solid var(--p-line);
  border-radius: var(--p-radius-md);
  background: var(--p-surface-2);
  transition: border-color var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out);
}

.gates__card:hover,
.gates__card:focus-within {
  border-color: var(--p-line-strong);
  transform: translateY(-4px);
}

.gates__card--locked {
  opacity: 0.62;
}

.gates__art {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(180deg, #140d1f 0%, #0a0713 100%);
}

.gates__art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gates__body {
  min-width: 0;
  padding: 0.72rem 0.7rem 0.85rem;
}

.gates__level {
  margin: 0 0 0.3rem;
  font-family: var(--font-ui);
  font-size: clamp(0.48rem, 0.55vw, 0.62rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-fire);
}

.gates__name {
  margin: 0;
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-size: clamp(0.74rem, 0.82vw, 1rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--c-text);
}

.gates__tag {
  margin: 0.45rem 0 0;
  font-family: var(--font-ui);
  font-size: clamp(0.46rem, 0.5vw, 0.6rem);
  font-weight: 600;
  letter-spacing: 0.07em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--c-text-dim);
  opacity: 0.75;
}

/* =============================================================
   04 - BUILD YOUR LEGEND (forge rail)
   ============================================================= */
.forge {
  padding: clamp(5rem, 12vh, 8rem) 0;
  background: var(--p-surface-0);
}

.forge__rail {
  position: relative;
  margin-top: clamp(2.6rem, 6vh, 3.8rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.forge__rail::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 96px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--p-line-strong) 12%, var(--p-line-strong) 88%, transparent);
}

.forge__tier {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0.8rem;
  text-align: center;
}

.forge__art {
  position: relative;
  height: 190px;
  width: 100%;
}

.forge__art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.65));
}

.forge__node {
  width: 9px;
  height: 9px;
  margin-top: 0.6rem;
  border-radius: 50%;
  background: var(--tier-color, var(--c-gold));
  box-shadow: 0 0 10px var(--tier-color, var(--c-gold));
}

.forge__label {
  margin: 0.9rem 0 0;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--c-text);
}

.forge__tier-name {
  margin: 0.15rem 0 0;
  font-family: var(--font-ui);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tier-color, var(--c-gold-dim));
}

.forge__scrolls {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: clamp(2.6rem, 6vh, 3.6rem);
  padding-top: clamp(2rem, 4vh, 2.6rem);
  border-top: 1px solid var(--p-line);
}

.forge__scroll {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.forge__scroll img {
  width: 40px;
  height: 40px;
}

.forge__scroll-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-text-dim);
}

/* =============================================================
   05 - DEVELOPMENT LOG
   ============================================================= */
.devlog {
  padding: clamp(5rem, 12vh, 8rem) 0;
  background: var(--p-surface-0);
}

.devlog__grid {
  margin-top: clamp(2.4rem, 6vh, 3.6rem);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.1rem;
}

.devlog__card {
  position: relative;
  min-height: 260px;
  padding: 1.6rem 1.7rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: var(--p-radius-md);
  overflow: hidden;
  border: 1px solid var(--p-line);
  background: radial-gradient(ellipse at 70% 20%, rgba(107, 18, 32, 0.22), transparent 60%), var(--p-surface-2);
  background-size: cover;
  background-position: center;
}

.devlog__card--feature {
  grid-row: 1 / 3;
  min-height: 100%;
}

.devlog__card-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 90% 100%;
  opacity: 0.92;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
}

.devlog__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(4, 2, 8, 0.92) 0%, rgba(4, 2, 8, 0.35) 55%, rgba(4, 2, 8, 0.55) 100%);
}

.devlog__card-title {
  position: relative;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1vw + 0.9rem, 1.5rem);
  font-weight: 700;
  color: var(--c-text);
}

.devlog__card-text {
  position: relative;
  max-width: 40ch;
  margin: 0.6rem 0 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--c-text-dim);
}
