/* =============================================================
   TorzaVexisKrylor — Main page styles
   ============================================================= */

:root {
  --ink: #131740;
  --ink-soft: #5a5d79;
  --purple: #8358ff;
  --purple-shadow: #5b30d7;
  --green: #10b981;
  --green-soft: #c4f2e3;
  --blue: #428af8;
  --blue-soft: #cddffb;
  --red: #ef4444;
  --red-soft: #ffd0d0;
  --purple-soft: #cdbcff;
  --card-border: #e7e8ec;
  --section-tint: #fcfafd;
  --footer-bg: #131740;

  --font-display: 'Cal Sans', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'DM Sans', 'Segoe UI', system-ui, sans-serif;

  --max-width: 1200px;
  --shell-gutter: 84px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  line-height: 1.1;
  font-weight: 400;
}

p { margin: 0; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 40px;
  text-align: center;
  color: var(--ink);
  margin: 0 0 30px;
}

/* ----- Buttons ----- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 50px;
  border-radius: 60px;
  background: var(--purple);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 14px;
  box-shadow: inset -5px -5px 10px 0 var(--purple-shadow);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: #7548f5;
}

.btn-primary:active {
  transform: translateY(0);
}

.editorial-meta,.editorial-note{
      color: var(--ink) !important;
}

.editorial-meta span  strong{
      color: var(--purple) !important;

}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  height: 51px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(6px);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding-top: 10px;
  padding-bottom: 10px;
  flex-wrap: wrap;
  gap: 15px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--ink);
  white-space: nowrap;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--ink);
}

.primary-nav a { transition: color .15s ease; }
.primary-nav a:hover { color: var(--purple); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 641px;
  padding-top: 101px;
  padding-bottom: 60px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url(/wp-content/themes/torzavexiskrylor/../img/hero-bg.png) center/cover no-repeat;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 35px;
}

.hero-copy {
  flex: 0 1 591px;
  max-width: 591px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: 78px;
  line-height: 1.05;
  color: var(--ink);
}

.hero-copy > p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.hero-art {
  flex: 0 1 574px;
  max-width: 574px;
}

.hero-art img {
  width: 100%;
  height: auto;
}

/* ============================================================
   Advantages
   ============================================================ */
.advantages {
  padding: 60px 0 50px;
  background: #ffffff;
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.advantage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.advantage-icon {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 100px;
  border: 12px solid var(--purple-soft);
  margin-bottom: 20px;
  flex: 0 0 72px;
}

.advantage-icon--purple { border-color: var(--purple-soft); }
.advantage-icon--green  { border-color: var(--green-soft); }
.advantage-icon--blue   { border-color: var(--blue-soft); }
.advantage-icon--red    { border-color: var(--red-soft); }

.advantage-icon-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 48px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--purple);
}

.advantage-icon--purple .advantage-icon-inner { background: var(--purple); }
.advantage-icon--green  .advantage-icon-inner { background: var(--green); }
.advantage-icon--blue   .advantage-icon-inner { background: var(--blue); }
.advantage-icon--red    .advantage-icon-inner { background: var(--red); }

.advantage-icon-inner img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.advantage h3 {
  font-family: var(--font-display);
  font-size: 28px;
  margin: 0 0 10px;
  max-width: 285px;
}

.advantage p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 285px;
}

/* ============================================================
   Player Reviews
   ============================================================ */
.reviews {
  background: var(--section-tint);
  padding: 50px 0;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.review-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-quote {
  width: 32px;
  height: 32px;
}

.review-stars {
  display: flex;
  gap: 1px;
  width: 80px;
  height: 16px;
}

.review-stars img {
  width: 14px;
  height: 14px;
}

.review-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
}

.review-card p {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ============================================================
   About — Minds Behind the Magic
   ============================================================ */
.about {
  padding: 70px 0;
  background: #ffffff;
}

.about-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.about-art {
  flex: 0 0 488px;
  max-width: 488px;
}

.about-copy {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 692px;
}

.about-copy h2 {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--ink);
}

.about-copy p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ============================================================
   Popular Games
   ============================================================ */
.popular-games {
  background: var(--section-tint);
  padding: 50px 0;
}

.popular-intro {
  max-width: 858px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 30px;
}

.popular-intro h2 {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--ink);
}

.popular-intro p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.popular-intro .btn-primary {
  align-self: flex-start;
}

.games-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
}

.games-row--reverse {
  align-items: flex-end;
}

.games-cluster {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.game-card {
  width: 234px;
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(19, 23, 64, 0.08);
}

.game-icon-e {
  width: 32px;
  height: 32px;
  align-self: center;
}

.game-thumb {
  width: 180px;
  height: 180px;
  border-radius: 26px;
  object-fit: cover;
}

.game-name {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ink);
  text-align: center;
  width: 100%;
}

.emoji-orb {
  position: relative;
  width: 140px;
  height: 140px;
  flex: 0 0 140px;
}

.emoji-orb img {
  width: 100%;
  height: 100%;
}

.emoji-orb-glyph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 79px;
  line-height: 1;
}

/* ============================================================
   Game detail page (e.g. Summer Fashion)
   ============================================================ */
.game-hero {
  position: relative;
  overflow: hidden;
  min-height: 487px;
  padding-top: 81px;
  padding-bottom: 60px;
}

.game-hero-bg {
  position: absolute;
  inset: 0;
  background: url(/wp-content/themes/torzavexiskrylor/../img/game-hero-bg.png) center top/cover no-repeat;
  z-index: 0;
}

.game-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 30px;
}

.game-hero-card-col {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.game-hero-info {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
}

.game-hero-info h1 {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--ink);
  line-height: 1.1;
  font-weight: 400;
}

.game-hero-info p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.game-about {
  background: #ffffff;
  padding: 60px 0 70px;
}

.game-about-inner {
  max-width: 1098px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
}

.game-about h2 {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--ink);
  font-weight: 400;
}

.game-about p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ============================================================
   Legal page (Privacy policy / Terms / Cookie policy)
   ============================================================ */
.legal-page {
  position: relative;
  overflow: hidden;
  padding: 101px 0 80px;
}

.legal-page-bg {
  position: absolute;
  inset: 0;
  background: url(/wp-content/themes/torzavexiskrylor/../img/hero-bg.png) center top/cover no-repeat;
  z-index: 0;
}

.legal-inner {
  position: relative;
  z-index: 1;
  max-width: 1098px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
}

.legal-inner h1 {
  font-family: var(--font-display);
  font-size: 78px;
  line-height: 1.05;
  color: var(--ink);
  font-weight: 400;
}

.legal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.legal-body p {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}

.legal-body h2 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 16px 0 0;
}

.legal-body h2:first-child {
  margin-top: 0;
}

/* ============================================================
   Contacts
   ============================================================ */
.contacts {
  background: #ffffff;
  padding: 70px 0;
}

.contacts-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.contacts-copy {
  flex: 1 1 auto;
  max-width: 692px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contacts-copy h2 {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--ink);
  margin-bottom: 16px;
}

.contacts-lede {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 14px;
}

.contacts-detail {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  color: var(--purple);
}

.contacts-detail strong {
  font-weight: 700;
}

.contacts-art {
  flex: 0 0 488px;
  max-width: 488px;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--footer-bg);
  padding: 30px 0;
  color: #ffffff;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.brand--footer .brand-name { color: #ffffff; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  font-family: var(--font-display);
  font-size: 14px;
  color: #ffffff;
}

.footer-nav a { transition: color .15s ease; }
.footer-nav a:hover { color: var(--purple-soft); }

.footer-socials {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-socials a {
  display: inline-flex;
  width: 50px;
  height: 50px;
}

.footer-socials img {
  width: 100%;
  height: 100%;
}

.footer-copyright {
  font-family: var(--font-display);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   Cookies popup
   ============================================================ */
.cookies {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(19, 23, 64, 0.45);
  backdrop-filter: blur(2px);
  opacity: 1;
  transition: opacity 0.35s ease;
}

.cookies.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.cookies-card {
  width: 100%;
  max-width: 720px;
  background: #ffffff;
  border: 2px solid var(--purple);
  border-radius: 24px;
  padding: 36px 40px 40px;
  box-shadow: 0 30px 60px -20px rgba(91, 48, 215, 0.35);
}

.cookies-icon {
  font-size: 54px;
  line-height: 1;
  margin-bottom: 22px;
}

.cookies-title {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--ink);
  margin: 0 0 18px;
}

.cookies-text {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 28px;
}

.cookies-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cookies-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 60px;
  padding: 0 24px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
  border: 2px solid var(--purple);
}

.cookies-btn--primary {
  background: var(--purple);
  color: #ffffff;
}

.cookies-btn--primary:hover {
  background: var(--purple-shadow);
  border-color: var(--purple-shadow);
}

.cookies-btn--ghost {
  background: transparent;
  color: var(--purple);
}

.cookies-btn--ghost:hover {
  background: rgba(131, 88, 255, 0.08);
}

.cookies-btn:active {
  transform: translateY(1px);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .hero-copy h1 { font-size: 64px; }
  .advantage-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .games-row { flex-direction: column; }
  .games-row--reverse { flex-direction: column-reverse; }
  .games-cluster { justify-content: center; }
}

@media (max-width: 860px) {
  :root { --shell-gutter: 24px; }
  .hero { padding-top: 150px; min-height: 0; }
  .hero-inner { flex-direction: column; text-align: left; }
  .hero-copy h1 { font-size: 48px; }
  .hero-art { max-width: 100%; }
  .about-inner { flex-direction: column; }
  .about-art, .contacts-art { max-width: 420px; width: 100%; }
  .contacts-inner { flex-direction: column-reverse; }
  .review-grid { grid-template-columns: 1fr; }
  .game-hero { padding-top: 120px; min-height: 0; }
  .game-hero-inner { flex-direction: column; align-items: stretch; }
  .game-hero-card-col { align-self: center; }
  .game-hero-info h1,
  .game-about h2 { font-size: 32px; }
  .legal-page { padding-top: 100px; }
  .legal-inner h1 { font-size: 48px; }
  .popular-intro h2,
  .about-copy h2,
  .contacts-copy h2,
  .section-title { font-size: 32px; }
}

@media (max-width: 520px) {
  .hero-copy h1 { font-size: 38px; }
  .advantage-grid { grid-template-columns: 1fr; }
  .footer-nav { gap: 16px; }
  .brand-name { font-size: 20px; }
  .site-header { height: auto; padding: 8px 0; }
  .game-card { width: 100%; max-width: 280px; }
  .cookies { padding: 16px; }
  .cookies-card { padding: 28px 22px 30px; border-radius: 20px; }
  .cookies-title { font-size: 24px; }
  .cookies-text { font-size: 15px; margin-bottom: 22px; }
  .cookies-btn { height: 54px; font-size: 16px; }
  .cookies-icon { font-size: 46px; margin-bottom: 16px; }
}
