/* ============================================================
   FREEPERIOD — hub page
   ============================================================ */

.hub { scroll-behavior: smooth; }

.skip {
  position: fixed;
  top: -60px; left: 16px;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--lime); color: #07070c;
  border-radius: 0 0 10px 10px;
  font-weight: 700; text-decoration: none;
  transition: top .2s;
}
.skip:focus { top: 0; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 7, 12, .72);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.topbar__in {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: .5rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.brand__mark {
  align-self: center;
  color: var(--ink);
  display: grid;
  place-items: center;
  margin-right: .1rem;
  transition: transform .4s cubic-bezier(.2,.9,.3,1.4);
}
.brand:hover .brand__mark { transform: rotate(-12deg) scale(1.06); }
.brand__word {
  font-family: var(--font-display);
  font-size: 1.06rem;
  letter-spacing: .045em;
}
.brand__tag {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--lime);
  transform: translateY(-1px);
}

.topnav {
  display: flex;
  gap: 1.5rem;
  font-size: .9rem;
  letter-spacing: .01em;
}
.topnav a {
  text-decoration: none;
  color: var(--muted);
  padding: .35rem 0;
  position: relative;
  transition: color .16s;
}
.topnav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.topnav a:hover { color: var(--ink); }
.topnav a:hover::after { transform: scaleX(1); }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(2rem, 4.6vw, 3.6rem) clamp(0.75rem, 2vw, 1.5rem);
}

.hero__title {
  font-size: clamp(2.8rem, 6.6vw, 5.2rem);
  line-height: .86;
  letter-spacing: -0.012em;
  margin: .5rem 0 1.15rem;
}
.hero__title em {
  font-style: normal;
  color: var(--lime);
  position: relative;
  display: inline-block;
}
.hero__title em::after {
  content: '';
  position: absolute;
  left: -2%; right: -2%;
  bottom: .06em;
  height: .075em;
  background: var(--pink);
  border-radius: 99px;
  transform: rotate(-1.2deg);
}

.hero__sub {
  max-width: 46ch;
  color: #b3b2c4;
  font-size: clamp(1rem, 1.25vw, 1.1rem);
  line-height: 1.6;
  margin: 0 0 1.9rem;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: .7rem; }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  list-style: none;
  padding: 0;
  margin: 2.4rem 0 0;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__facts strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0;
  color: var(--ink);
  margin-bottom: .15rem;
}

/* ---------- spotlight ---------- */
.spotlight {
  position: relative;
  border-radius: 26px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #171722, #0e0e17);
  overflow: hidden;
  box-shadow: 0 40px 90px -50px #000, 0 0 0 1px rgba(255,255,255,.02) inset;
  transform: rotate(.6deg);
  transition: transform .5s cubic-bezier(.2,.9,.3,1.1);
}
.spotlight:hover { transform: rotate(0deg) translateY(-4px); }

.spotlight__flag {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: rgba(7,7,12,.72);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--lime);
}
.spotlight__art { aspect-ratio: 16 / 10; }
.spotlight__art svg { width: 100%; height: 100%; display: block; }
.spotlight__body { padding: 1.15rem 1.35rem 1.45rem; }
.spotlight__title {
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  margin: .6rem 0 .5rem;
}
.spotlight__desc {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.55;
  margin: 0 0 1.15rem;
  min-height: 2.8em;
}

/* ---------- shelf ---------- */
.shelf { padding-block: clamp(1.5rem, 4vw, 2.5rem); }

.shelf__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.shelf__title { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: .01em; }

.filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.filters button {
  padding: .42rem .85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  transition: all .16s;
}
.filters button:hover { color: var(--ink); border-color: var(--line-strong); }
.filters button[aria-pressed='true'] {
  background: var(--lime);
  border-color: var(--lime);
  color: #07070c;
}
.filters button span { opacity: .55; margin-left: .35em; font-family: var(--font-mono); font-size: .9em; }

/* ---------- game cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 1.15rem;
}

.gcard {
  --accent: var(--lime);
  --d: 0ms;
  animation: card-in .52s var(--d) both cubic-bezier(.2,.9,.3,1.05);
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition:
    transform .3s cubic-bezier(.2,.9,.3,1.1),
    border-color .25s,
    box-shadow .3s;
  will-change: transform;
}
.gcard:hover,
.gcard:focus-visible {
  transform: translateY(-7px);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow:
    0 34px 60px -34px rgba(0,0,0,.95),
    0 0 46px -22px var(--accent);
}
.gcard:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.gcard__poster {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0b0b13;
}
.gcard__poster svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform .55s cubic-bezier(.2,.9,.3,1);
}
.gcard:hover .gcard__poster svg { transform: scale(1.055); }

.gcard__poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7,7,12,.55));
  pointer-events: none;
}

.gcard__meta {
  position: absolute;
  top: 10px; left: 10px; right: 10px;
  display: flex;
  justify-content: space-between;
  gap: .4rem;
  z-index: 2;
  pointer-events: none;
}
.gcard__tag {
  padding: .26rem .58rem;
  border-radius: 999px;
  background: rgba(7,7,12,.66);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(6px);
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #ddd;
}
.gcard__tag--new { color: #07070c; background: var(--lime); border-color: transparent; font-weight: 700; }
.gcard__best {
  display: flex;
  align-items: center;
  gap: .3em;
  padding: .26rem .55rem;
  border-radius: 999px;
  background: rgba(7,7,12,.66);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(6px);
  font-family: var(--font-mono);
  font-size: .62rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.gcard__body {
  padding: .95rem 1.05rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  flex: 1;
}
.gcard__title {
  font-family: var(--font-display);
  font-size: 1.06rem;
  letter-spacing: .015em;
  text-transform: uppercase;
  line-height: 1.15;
}
.gcard__desc {
  color: var(--muted);
  font-size: .845rem;
  line-height: 1.5;
  margin: 0;
}
.gcard__foot {
  margin-top: auto;
  padding-top: .75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.gcard__play {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  color: var(--accent);
  transition: gap .2s;
}
.gcard:hover .gcard__play { gap: .6em; }

.empty {
  text-align: center;
  color: var(--muted);
  padding: 3rem 0;
  font-family: var(--font-mono);
  font-size: .85rem;
}

@keyframes card-in {
  from { opacity: 0; translate: 0 16px; scale: .985; }
  to   { opacity: 1; translate: 0 0; scale: 1; }
}

/* ---------- how ---------- */
.how {
  padding-block: clamp(3rem, 7vw, 5.5rem);
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}
.how__title { font-size: clamp(1.7rem, 4vw, 3rem); line-height: .98; margin-bottom: 2.6rem; }
.how__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem 2.4rem;
}
.how__n {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .2em;
  color: var(--lime);
  display: block;
  margin-bottom: .7rem;
}
.how__cols h3 { font-size: 1.05rem; margin-bottom: .45rem; font-weight: 600; }
.how__cols p { color: var(--muted); font-size: .9rem; line-height: 1.6; margin: 0; }

/* ---------- footer ---------- */
.foot {
  border-top: 1px solid var(--line);
  padding-block: 2.2rem 3rem;
  font-size: .84rem;
  color: #b3b2c4;
}
.foot__in { display: grid; gap: .4rem; }
.foot p { margin: 0; }
.foot strong { font-family: var(--font-display); font-size: .82rem; letter-spacing: .04em; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .spotlight { transform: none; max-width: 460px; }
  .spotlight:hover { transform: translateY(-3px); }
  .hero__title { margin-top: .4rem; }
}
@media (max-width: 620px) {
  .topnav { display: none; }
  .topbar__in { height: 60px; gap: .6rem; }
  .brand__tag { display: none; }
  .hero__facts { gap: 1.1rem; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .75rem; }
  .gcard__desc { display: none; }
  .gcard__body { padding: .75rem .8rem .85rem; }
  .gcard__title { font-size: .9rem; }
  .gcard__foot { font-size: .55rem; padding-top: .5rem; }
  .shelf__head { flex-direction: column; align-items: stretch; }
}
