/* FNM Website: home and journal pages v1 */
.home-page { overflow: hidden; }
.eyebrow {
    display: flex;
    gap: 1.4rem;
    margin: 0 0 1.25rem;
    color: var(--fn-lime);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.eyebrow span + span { color: rgba(243, 240, 223, 0.42); }
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid currentColor;
    color: var(--fn-cream);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}
.text-link span { transition: transform 160ms ease; }
.text-link:hover { color: var(--fn-lime); }
.text-link:hover span { transform: translate(0.15rem, -0.15rem); }

.home-hero {
    --hero-glow-x: 65%;
    --hero-glow-y: 50%;
    position: relative;
    box-sizing: border-box;
    display: grid;
    min-height: 100svh;
    grid-template-columns: minmax(18rem, 0.95fr) minmax(18rem, 1.05fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 7rem);
    padding: clamp(5rem, 9vw, 8rem) clamp(1.5rem, 6vw, 6.5rem);
    border-bottom: 1px solid var(--fn-line);
    isolation: isolate;
}
.home-hero::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background: linear-gradient(125deg, transparent 48%, rgba(255, 255, 255, 0.018) 48% 49%, transparent 49%);
}
.home-hero::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    content: "";
    pointer-events: none;
    background: radial-gradient(circle 21rem at var(--hero-glow-x) var(--hero-glow-y), rgba(113, 185, 104, 0.17), rgba(79, 145, 86, 0.07) 38%, transparent 72%);
}
.home-hero__copy,
.home-hero__visual { position: relative; z-index: 2; }
.home-hero__rings { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.home-hero__rings i {
    position: absolute;
    top: 50%;
    left: 65%;
    width: var(--ring-size);
    aspect-ratio: 1;
    border: 1px solid rgba(201, 242, 123, var(--ring-opacity, .085));
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: hero-ring-breathe 10s ease-in-out infinite;
    animation-delay: var(--ring-delay, 0s);
}
.home-hero__rings i:nth-child(1) { --ring-size: clamp(16rem, 22vw, 27rem); --ring-opacity: .14; --ring-delay: -1s; }
.home-hero__rings i:nth-child(2) { --ring-size: clamp(23rem, 31vw, 38rem); --ring-opacity: .12; --ring-delay: -2s; border-style: dashed; }
.home-hero__rings i:nth-child(3) { --ring-size: clamp(31rem, 41vw, 50rem); --ring-opacity: .1; --ring-delay: -3s; }
.home-hero__rings i:nth-child(4) { --ring-size: clamp(39rem, 51vw, 62rem); --ring-opacity: .085; --ring-delay: -4s; border-style: dashed; }
.home-hero__rings i:nth-child(5) { --ring-size: clamp(47rem, 62vw, 75rem); --ring-opacity: .07; --ring-delay: -5s; }
.home-hero__rings i:nth-child(6) { --ring-size: clamp(56rem, 74vw, 90rem); --ring-opacity: .06; --ring-delay: -6s; border-style: dashed; }
.home-hero__rings i:nth-child(7) { --ring-size: clamp(66rem, 88vw, 106rem); --ring-opacity: .05; --ring-delay: -7s; }
.home-hero__rings i:nth-child(8) { --ring-size: clamp(78rem, 104vw, 124rem); --ring-opacity: .04; --ring-delay: -8s; border-style: dashed; }
@keyframes hero-ring-breathe {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: .72; }
    50% { transform: translate(-50%, -50%) scale(1.018); opacity: 1; }
}
.home-hero h1,
.journal-page h1 {
    max-width: 10ch;
    margin: 0;
    color: var(--fn-cream);
    font-family: var(--brand-font-title);
    font-size: clamp(3.3rem, 7.4vw, 7.7rem);
    font-weight: 400;
    line-height: 0.87;
    letter-spacing: -0.055em;
}
.home-hero h1 em,
.journal-page h1 em { color: var(--fn-lime); font-weight: 400; }
.home-hero__actions { display: flex; align-items: flex-start; flex-direction: column; gap: 1.15rem; margin-top: 2.3rem; }
.button {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    box-sizing: border-box;
    padding: 0.8rem 1.15rem;
    border: 1px solid var(--fn-lime);
    border-radius: 99px;
    font-size: 0.82rem;
    font-weight: 750;
    white-space: nowrap;
    text-decoration: none;
    transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}
.button--primary { color: var(--fn-ink); background: var(--fn-lime); }
.button--primary:hover { color: var(--fn-ink); background: var(--fn-cream); transform: translateY(-2px); }
.home-hero__visual { width: min(48vw, 47rem); justify-self: end; cursor: grab; user-select: none; -webkit-user-select: none; }
.home-hero__visual:active { cursor: grabbing; }
.media-playground__field {
    position: relative;
    aspect-ratio: 1.06;
    overflow: visible;
    background: transparent;
}
.media-playground__label,
.media-playground__hint { position: absolute; z-index: 8; color: rgba(243, 240, 223, 0.48); font-size: 0.55rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.media-playground__label { top: 8%; left: 11%; transform: rotate(-9deg); }
.media-playground__hint { right: 10%; bottom: 9%; transform: rotate(8deg); }
.media-playground__scene {
    position: absolute;
    inset: 0;
    transform: perspective(50rem) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
    transform-style: preserve-3d;
    transition: transform 180ms ease-out;
}
.plaything { position: absolute; display: block; will-change: transform; }
.plaything--blob {
    z-index: 4;
    top: 20%;
    left: 25%;
    width: 46%;
    aspect-ratio: 1;
    border-radius: 56% 44% 62% 38% / 43% 58% 42% 57%;
    background: var(--fn-lime);
    box-shadow: inset -1.1rem -1.3rem 0 rgba(49, 92, 59, 0.2), 0 1.2rem 2.5rem rgba(0, 0, 0, 0.22);
    animation: playground-blob 5.4s ease-in-out infinite;
}
.plaything__eyes { position: absolute; top: 32%; left: 27%; display: flex; gap: 19%; width: 48%; }
.plaything__eyes i { width: 24%; aspect-ratio: .72; border-radius: 50%; background: var(--fn-ink); animation: playground-blink 4.3s infinite; }
.plaything__smile { position: absolute; top: 58%; left: 35%; width: 29%; height: 14%; border-bottom: 0.28rem solid var(--fn-ink); border-radius: 0 0 99px 99px; }
.plaything--video {
    z-index: 3;
    top: 3%;
    right: 3%;
    width: 32%;
    aspect-ratio: 1.1;
    border-radius: 32% 68% 39% 61% / 55% 38% 62% 45%;
    background: #ef775f;
    box-shadow: inset -0.7rem -0.8rem 0 rgba(97, 25, 23, 0.13), 0 0.8rem 1.6rem rgba(0, 0, 0, 0.2);
    animation: playground-video 6.2s ease-in-out infinite;
}
.plaything--video span { position: absolute; top: 31%; left: 39%; width: 0; height: 0; border-top: 1.35rem solid transparent; border-bottom: 1.35rem solid transparent; border-left: 2rem solid var(--fn-cream); filter: drop-shadow(0.25rem 0.25rem 0 rgba(16,24,17,.14)); }
.plaything--sound {
    z-index: 5;
    bottom: 5%;
    left: 5%;
    display: flex;
    width: 46%;
    height: 18%;
    align-items: center;
    justify-content: center;
    gap: 6%;
    border-radius: 99px;
    background: #82bdd5;
    box-shadow: inset -0.8rem -0.7rem 0 rgba(20, 68, 86, 0.13), 0 0.8rem 1.8rem rgba(0, 0, 0, 0.19);
    animation: playground-sound-float 4.7s ease-in-out infinite;
}
.plaything--sound i { display: block; width: 6%; min-width: 0.25rem; height: 28%; border-radius: 99px; background: var(--fn-ink); animation: playground-sound 1.05s ease-in-out infinite alternate; }
.plaything--sound i:nth-child(2) { height: 58%; animation-delay: -0.7s; }
.plaything--sound i:nth-child(3) { height: 80%; animation-delay: -0.35s; }
.plaything--sound i:nth-child(4) { height: 48%; animation-delay: -0.85s; }
.plaything--sound i:nth-child(5) { height: 68%; animation-delay: -0.15s; }
.plaything--spark { z-index: 6; top: 5%; left: 7%; display: grid; width: 20%; aspect-ratio: 1; place-items: center; clip-path: polygon(50% 0,61% 36%,100% 50%,63% 62%,50% 100%,38% 63%,0 50%,36% 38%); color: var(--fn-ink); background: #f4d65e; font-size: clamp(1.4rem, 4vw, 3rem); animation: playground-spark 8s linear infinite; }
.plaything--loop { z-index: 2; right: 3%; bottom: 8%; width: 28%; aspect-ratio: 1; border: clamp(.55rem, 1.3vw, 1rem) solid #e995c4; border-radius: 50%; animation: playground-loop 5s ease-in-out infinite; }
.plaything--dot { z-index: 7; width: 4.2%; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 .25rem .5rem rgba(0,0,0,.22); }
.plaything--dot-one { top: 43%; left: 9%; background: #f5d75f; animation: playground-dot-one 3.6s ease-in-out infinite; }
.plaything--dot-two { top: 34%; right: 7%; background: #8bbfd7; animation: playground-dot-two 4.1s ease-in-out infinite; }
.plaything--dot-three { right: 31%; bottom: 7%; background: #ef775f; animation: playground-dot-three 3.3s ease-in-out infinite; }
.media-playground.is-popping .plaything { animation: playground-pop 560ms cubic-bezier(.2,.8,.2,1) both !important; }
.media-playground.is-popping .plaything:nth-child(2n) { animation-delay: 45ms !important; }
.media-playground.is-popping .plaything:nth-child(3n) { animation-delay: 90ms !important; }
@keyframes playground-blob { 0%,100% { transform: translateY(0) rotate(-4deg); border-radius: 56% 44% 62% 38% / 43% 58% 42% 57%; } 50% { transform: translateY(-.8rem) rotate(3deg); border-radius: 42% 58% 45% 55% / 61% 39% 57% 43%; } }
@keyframes playground-blink { 0%,44%,50%,100% { transform: scaleY(1); } 46%,48% { transform: scaleY(.08); } }
@keyframes playground-video { 0%,100% { transform: translate(0,0) rotate(7deg); } 50% { transform: translate(.5rem,-.7rem) rotate(14deg); } }
@keyframes playground-sound-float { 0%,100% { transform: translate(0,0) rotate(4deg); } 50% { transform: translate(.5rem,.5rem) rotate(-2deg); } }
@keyframes playground-sound { to { height: 86%; } }
@keyframes playground-spark { to { transform: rotate(360deg); } }
@keyframes playground-loop { 0%,100% { transform: rotate(-8deg) scale(.9); } 50% { transform: rotate(8deg) scale(1.08); } }
@keyframes playground-dot-one { 50% { transform: translate(-.4rem,-1rem); } }
@keyframes playground-dot-two { 50% { transform: translate(.65rem,-.4rem); } }
@keyframes playground-dot-three { 50% { transform: translate(.35rem,.8rem); } }
@keyframes playground-pop { 0%,100% { transform: scale(1) rotate(0); } 45% { transform: scale(1.2) rotate(9deg); } 70% { transform: scale(.92) rotate(-4deg); } }
.home-hero__scroll { position: absolute; bottom: 1.5rem; left: clamp(1.5rem, 6vw, 6.5rem); display: flex; align-items: center; gap: 0.7rem; margin: 0; color: rgba(243, 240, 223, 0.4); font-size: 0.61rem; letter-spacing: 0.12em; text-transform: uppercase; }
.home-hero__scroll span { display: block; width: 2.5rem; height: 1px; background: currentColor; }
.games-section { box-sizing: border-box; max-width: none; padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 5vw, 5rem); border-radius: 0; background: var(--fn-paper); color: var(--fn-ink); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 3rem; }
.section-heading .eyebrow { color: var(--fn-moss); }
.section-heading h2 { margin: 0; color: var(--fn-ink); font-size: clamp(2.5rem, 5.5vw, 5.6rem); font-weight: 400; line-height: 0.94; letter-spacing: -0.045em; }
.section-heading__aside { max-width: 24rem; margin: 0; color: rgba(16, 24, 17, 0.62); font-size: 0.88rem; line-height: 1.6; }
.game-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(0.75rem, 1.8vw, 1.5rem); }
.game-card,
.game-placeholder { min-width: 0; }
.game-card__link { display: block; color: inherit; text-decoration: none; }
.game-card__media,
.game-placeholder__cover { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #16291b; }
.game-card__cover,
.game-card__preview { width: 100%; height: 100%; object-fit: cover; transition: opacity 220ms ease, transform 520ms cubic-bezier(.2,.75,.2,1); }
.game-card__cover { display: block; }
.game-card__preview { position: absolute; inset: 0; z-index: 1; opacity: 0; }
.game-card.has-preview:hover .game-card__preview,
.game-card.has-preview:focus-within .game-card__preview { opacity: 1; }
.game-card.has-preview:hover .game-card__cover,
.game-card.has-preview:focus-within .game-card__cover { opacity: 0; }
.game-card:hover .game-card__cover,
.game-card:focus-within .game-card__cover { transform: scale(1.035); }
.game-card__wash { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(to top, rgba(7, 15, 9, 0.82), transparent 38%); }
.game-card__status { position: absolute; z-index: 3; top: 0.85rem; left: 0.85rem; padding: 0.5rem 0.7rem; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 99px; color: var(--fn-cream); background: rgba(9, 18, 12, 0.65); backdrop-filter: blur(8px); font-size: 0.58rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.game-card__play { position: absolute; z-index: 3; right: 0.85rem; bottom: 0.85rem; left: 0.85rem; display: flex; align-items: center; justify-content: space-between; color: var(--fn-cream); font-size: 0.82rem; font-weight: 750; opacity: 0; transform: translateY(0.5rem); transition: opacity 180ms ease, transform 180ms ease; }
.game-card:hover .game-card__play,
.game-card:focus-within .game-card__play { opacity: 1; transform: translateY(0); }
.game-card__details,
.game-placeholder__details { display: flex; align-items: start; justify-content: space-between; gap: 1rem; padding: 1rem 0.15rem; border-bottom: 1px solid rgba(16, 24, 17, 0.22); }
.game-card__details h3 { margin: 0; color: var(--fn-ink); font-family: var(--brand-font-body); font-size: 1rem; font-weight: 820; }
.game-card__details p { margin: 0.3rem 0 0; color: rgba(16, 24, 17, 0.58); font-size: 0.67rem; text-transform: uppercase; letter-spacing: 0.08em; }
.game-card__index,
.game-placeholder__details b { color: rgba(16, 24, 17, 0.4); font-size: 0.66rem; font-weight: 700; }
.game-card__skeleton { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; justify-content: end; gap: 0.5rem; padding: 1.2rem; background: #c9c7b6; transition: opacity 220ms ease, visibility 220ms ease; }
.game-card__skeleton::before,
.game-placeholder__cover::after { position: absolute; inset: 0; content: ""; background: linear-gradient(105deg, transparent 32%, rgba(255,255,255,.34) 48%, transparent 64%); transform: translateX(-100%); animation: skeleton-shift 2s infinite; }
.game-card__skeleton span { height: 0.55rem; background: rgba(16,24,17,.14); }
.game-card__skeleton span:nth-child(1) { width: 30%; }
.game-card__skeleton span:nth-child(2) { width: 70%; }
.game-card__skeleton span:nth-child(3) { width: 48%; }
.game-card:not(.is-loading) .game-card__skeleton { opacity: 0; visibility: hidden; }
@keyframes skeleton-shift { to { transform: translateX(100%); } }
.game-placeholder__cover { display: flex; flex-direction: column; align-items: center; justify-content: space-between; box-sizing: border-box; padding: 1.2rem; background: rgba(29, 52, 35, 0.08); border: 1px dashed rgba(29, 52, 35, 0.2); }
.game-placeholder__glyph { display: grid; width: 3.5rem; height: 3.5rem; place-items: center; border: 1px solid rgba(29, 52, 35, 0.2); border-radius: 50%; color: rgba(29, 52, 35, 0.25); font-family: var(--brand-font-title); font-size: 2rem; }
.game-placeholder__line { z-index: 1; width: 75%; height: 0.5rem; background: rgba(29, 52, 35, 0.1); }
.game-placeholder__line--short { width: 32%; align-self: flex-start; }
.game-placeholder__details div { display: grid; width: 64%; gap: 0.4rem; }
.game-placeholder__details div span { height: 0.45rem; background: rgba(29, 52, 35, 0.1); }
.game-placeholder__details div span:last-child { width: 55%; }
.games-section__hint { margin: 2rem 0 0; color: rgba(16, 24, 17, 0.56); font-size: 0.72rem; }
.games-section__hint span { color: var(--fn-moss); }

.journal-page { box-sizing: border-box; min-height: 100vh; padding: clamp(7rem, 12vw, 11rem) clamp(1.5rem, 7vw, 8rem); background: radial-gradient(circle at 80% 20%, rgba(114, 182, 121, 0.12), transparent 28%); }
.journal-page__card { max-width: 36rem; margin: 5rem 0 0 auto; padding: 2.5rem; border: 1px solid var(--fn-line); background: rgba(32, 52, 38, 0.46); }
.journal-page__card > span { color: var(--fn-lime); font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; }
.journal-page__card h2 { margin: 1rem 0; color: var(--fn-cream); font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 400; }
.journal-page__card p { margin: 0 0 1.8rem; color: var(--fn-muted); line-height: 1.7; }

@media (max-width: 1080px) {
    .home-hero { grid-template-columns: 1.08fr 0.92fr; }
    .home-hero__visual { width: min(44vw, 37rem); }
    .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
}
@media (max-width: 760px) {
    .home-hero { min-height: calc(100svh - 4.75rem); grid-template-columns: 1fr; align-content: center; gap: 3rem; padding: 4.25rem 1.25rem 5rem; }
    .home-hero__rings i { top: 61%; left: 54%; }
    .home-hero h1, .journal-page h1 { font-size: clamp(3.15rem, 15vw, 5.3rem); }
    .home-hero__visual { width: min(86vw, 28rem); justify-self: center; }
    .home-hero__scroll { display: none; }
    .section-heading { align-items: flex-start; flex-direction: column; }
    .games-section { padding: 5rem 1.25rem; }
    .game-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; row-gap: 2rem; }
    .game-card__details { padding-top: 0.7rem; }
    .game-card__details h3 { font-size: 0.86rem; }
    .game-card__details p { font-size: 0.55rem; }
    .game-card__status { top: 0.55rem; left: 0.55rem; padding: 0.35rem 0.5rem; font-size: 0.48rem; }
    .game-card__play { opacity: 1; transform: none; font-size: 0.7rem; }
    .journal-page { padding: 5rem 1.25rem; }
    .journal-page__card { margin-top: 3rem; padding: 1.5rem; }
}
@media (max-width: 390px) {
    .game-grid { grid-template-columns: 1fr; }
}
