/*
Theme Name: Rivalless Games
Theme URI: https://rivallessgames.com
Author: Rivalless Games
Description: Lightweight studio theme for Rivalless Games and its playable HTML5 game pages.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: rivalless-games
*/

:root {
  --rg-bg: #050506;
  --rg-panel: #101113;
  --rg-panel-soft: #17191c;
  --rg-text: #ffffff;
  --rg-muted: #a5a8ad;
  --rg-line: rgba(255, 255, 255, 0.12);
  --rg-accent: #b7ff2a;
  --rg-accent-rgb: 183, 255, 42;
  --rg-max: 1160px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--rg-bg);
  color: var(--rg-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.rg-site-header,
.rg-site-footer {
  border-color: var(--rg-line);
}

.rg-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(16, 16, 20, 0.92);
  border-bottom: 1px solid var(--rg-line);
  backdrop-filter: blur(18px);
}

.rg-header-inner,
.rg-footer-inner,
.rg-main {
  width: min(var(--rg-max), calc(100% - 32px));
  margin: 0 auto;
}

.rg-header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.rg-brand {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  font-weight: 850;
  letter-spacing: 0;
}

.rg-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rg-text);
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.rg-wordmark b {
  font-weight: 950;
}

.rg-wordmark i {
  width: 2px;
  height: 18px;
  display: inline-block;
  background: var(--rg-accent);
  transform: skewX(-14deg);
}

.rg-wordmark em {
  position: relative;
  font-style: normal;
}

.rg-wordmark em::before {
  content: "";
  position: absolute;
  left: 0.22em;
  top: -0.38em;
  width: 0.48em;
  height: 0.34em;
  border-left: 2px solid var(--rg-accent);
  border-top: 2px solid var(--rg-accent);
  transform: rotate(45deg);
}

.rg-brand small {
  color: var(--rg-muted);
  font-size: 0.68rem;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rg-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.rg-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.rg-nav a,
.rg-footer-links a,
.rg-button,
.wp-block-button__link {
  border-radius: 8px;
  text-decoration: none;
  font-weight: 760;
}

.rg-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  color: var(--rg-muted);
}

.rg-nav a:hover,
.rg-nav .current-menu-item > a {
  color: var(--rg-text);
  background: rgba(var(--rg-accent-rgb), 0.1);
}

.rg-main {
  padding: 56px 0 72px;
}

.rg-site-footer {
  border-top: 1px solid var(--rg-line);
  background: #0c0d11;
}

.rg-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0;
  color: var(--rg-muted);
  font-size: 0.92rem;
}

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

.rg-footer-links a {
  padding: 7px 10px;
  color: var(--rg-muted);
}

.rg-footer-links a:hover {
  color: var(--rg-text);
  background: rgba(255, 255, 255, 0.07);
}

.rg-hero,
.rg-band,
.rg-card,
.rg-page-head {
  border: 1px solid var(--rg-line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
}

.rg-hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: grid;
  align-items: end;
  padding: clamp(36px, 7vw, 74px);
  border-radius: 14px;
}

.rg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(5, 5, 6, 0.88), rgba(5, 5, 6, 0.56)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 24px),
    radial-gradient(circle at 80% 24%, rgba(var(--rg-accent-rgb), 0.24), transparent 34%);
  pointer-events: none;
}

.rg-hero > * {
  position: relative;
  z-index: 1;
}

.rg-eyebrow {
  color: var(--rg-accent);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.rg-hero h1,
.rg-page-head h1 {
  max-width: 780px;
  margin: 0;
  font-family: "Arial Black", Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 950;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
}

.rg-hero p,
.rg-page-head p {
  max-width: 720px;
  color: var(--rg-muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.rg-actions,
.wp-block-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.rg-button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  background: var(--rg-accent);
  color: #080906;
}

.rg-button.secondary,
.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--rg-text);
  border-color: var(--rg-line);
}

.rg-button:hover,
.wp-block-button__link:hover {
  filter: brightness(1.08);
}

.rg-section {
  margin-top: 54px;
}

.rg-section h2,
.entry-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.rg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.rg-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rg-card {
  padding: 22px;
  border-radius: 10px;
}

.rg-card h3 {
  margin: 0 0 8px;
  font-weight: 900;
  font-size: 1.2rem;
  text-transform: uppercase;
}

.rg-card p,
.rg-card li {
  color: var(--rg-muted);
}

.rg-card ul {
  padding-left: 20px;
}

.rg-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.rg-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--rg-muted);
  font-weight: 750;
  font-size: 0.82rem;
}

.rg-band,
.rg-page-head {
  padding: clamp(28px, 5vw, 48px);
  border-radius: 12px;
}

.rg-band {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 24px;
  align-items: center;
}

.rg-game-frame {
  width: 100%;
  min-height: min(78vh, 820px);
  border: 0;
  border-radius: 12px;
  background: #08080c;
}

.entry-content p,
.entry-content li {
  color: var(--rg-muted);
}

.entry-content strong {
  color: var(--rg-text);
}

@media (max-width: 880px) {
  .rg-header-inner,
  .rg-footer-inner,
  .rg-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .rg-band,
  .rg-grid,
  .rg-grid.two {
    grid-template-columns: 1fr;
  }

  .rg-hero {
    min-height: 440px;
  }
}
