/*
Theme Name: Spinova
Theme URI: https://spinova.it.com/
Author: Spinova
Description: Bright social games landing theme for Spinova.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: spinova
*/

:root {
  --bg: #060b1c;
  --panel: rgba(9, 18, 42, 0.84);
  --panel-strong: rgba(16, 31, 72, 0.94);
  --text: #f8fbff;
  --muted: #b9c8e8;
  --blue: #00c8ff;
  --gold: #ffd84d;
  --coral: #ff5b3f;
  --line: rgba(255, 255, 255, 0.16);
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, rgba(0, 200, 255, 0.28), transparent 26rem),
    radial-gradient(circle at 84% 8%, rgba(255, 216, 77, 0.22), transparent 24rem),
    linear-gradient(160deg, #040714 0%, #09183a 48%, #15091b 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
}

a {
  color: inherit;
}

.site-wrap {
  min-height: 100vh;
  overflow: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(4, 8, 22, 0.78);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1160px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 12px 24px rgba(0, 200, 255, 0.2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links a,
.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 15px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
  background: rgba(255, 255, 255, 0.06);
}

.pill {
  color: #081126;
  background: linear-gradient(135deg, var(--gold), #fff0a0);
  border: 0;
}

.main {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: clamp(560px, 82vh, 760px);
  display: grid;
  align-items: end;
  padding: 110px 0 54px;
}

.hero-media {
  position: absolute;
  inset: 22px calc(50% - 50vw) 0;
  z-index: -2;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(5px) saturate(1.08) brightness(0.62);
  transform: scale(1.035);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 7, 20, 0.24), rgba(3, 7, 20, 0.78) 72%, var(--bg)),
    linear-gradient(90deg, rgba(3, 7, 20, 0.82), rgba(3, 7, 20, 0.22) 58%, rgba(3, 7, 20, 0.62));
}

.hero-copy {
  width: min(720px, 100%);
  padding-bottom: 46px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 216, 77, 0.32);
  border-radius: 999px;
  padding: 8px 13px;
  color: #fff4b6;
  background: rgba(255, 216, 77, 0.11);
  font-size: 13px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  margin-top: 20px;
  font-size: clamp(54px, 9vw, 112px);
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy p {
  max-width: 620px;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  color: #071024;
  background: linear-gradient(135deg, var(--gold), #fff2a8 58%, #49ddff);
  box-shadow: 0 14px 34px rgba(255, 216, 77, 0.26);
  text-decoration: none;
  font-weight: 900;
}

.button.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--line);
  box-shadow: none;
}

.section {
  padding: 42px 0 78px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: 0;
}

.section-head p {
  max-width: 460px;
  color: var(--muted);
  line-height: 1.55;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.game-card {
  position: relative;
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.game-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 240ms ease, filter 240ms ease;
}

.game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(2, 7, 18, 0.04) 20%, rgba(2, 7, 18, 0.88) 100%);
}

.game-card:hover img {
  transform: scale(1.045);
  filter: saturate(1.12);
}

.game-card-content {
  position: absolute;
  inset: auto 22px 22px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.game-card h3 {
  color: #fff;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.72);
}

.notice-band {
  margin: 0 calc(50% - 50vw);
  padding: 44px calc(50vw - min(580px, calc(50vw - 16px)));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.notice-band p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.game-shell {
  padding: 36px 0 70px;
}

.game-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.game-hero h1 {
  font-size: clamp(34px, 7vw, 74px);
}

.iframe-wrap {
  position: relative;
  height: min(72vh, 760px);
  min-height: 540px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #050814;
  box-shadow: var(--shadow);
}

.iframe-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #050814;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(3, 7, 19, 0.9);
}

.footer-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 28px;
}

.footer-inner h2 {
  margin-bottom: 12px;
  font-size: 20px;
}

.footer-inner p,
.footer-inner a {
  color: var(--muted);
  line-height: 1.65;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.plain-page {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0;
}

.plain-page h1 {
  margin-bottom: 24px;
  font-size: clamp(36px, 7vw, 78px);
}

.plain-page p,
.plain-page li {
  color: var(--muted);
  line-height: 1.75;
}

@media (max-width: 800px) {
  .nav {
    min-height: 64px;
  }

  .nav-links a:not(.pill) {
    display: none;
  }

  .hero {
    min-height: 680px;
    padding-top: 84px;
  }

  .hero-copy {
    padding-bottom: 80px;
  }

  .section-head,
  .game-hero,
  .footer-inner {
    display: block;
  }

  .section-head p,
  .footer-links {
    margin-top: 14px;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .game-card {
    min-height: 285px;
  }

  .game-card-content {
    inset: auto 16px 16px;
    align-items: start;
    flex-direction: column;
  }

  .iframe-wrap {
    min-height: 560px;
    height: 72vh;
  }
}
