/*
Theme Name: Rev Game
Theme URI: https://portal.rev-game.ru
Author: Rev Game
Description: Game portal theme built over the legacy game assets.
Version: 1.0.2
Text Domain: rev-game
*/

:root {
  --rg-bg: #0f0703;
  --rg-ink: #2a1106;
  --rg-panel: #32180b;
  --rg-panel-2: #4a2510;
  --rg-line: #8a5524;
  --rg-line-soft: rgba(185, 117, 48, .5);
  --rg-gold: #ffd37c;
  --rg-gold-2: #f0a640;
  --rg-text: #f0d6a7;
  --rg-muted: #c69b68;
  --rg-red: #8d1709;
}

* { box-sizing: border-box; }

html { min-width: 0; }

body {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  color: var(--rg-text);
  background:
    url('/v2/images/bg-pattern-left.png') left top repeat-y,
    url('/v2/images/bg-pattern-right.png') right top repeat-y,
    #090402 url('/v2/images/bg-main.jpg') top center no-repeat fixed;
  font: 14px/1.5 Tahoma, Arial, Verdana, sans-serif;
}

body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.62), transparent 18%, transparent 82%, rgba(0,0,0,.66));
}

a { color: #ffb13d; text-decoration: none; }
a:hover { color: #ffe0a0; text-decoration: underline; }

.rg-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.rg-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background:
    linear-gradient(180deg, rgba(48, 19, 8, .96), rgba(18, 7, 3, .94)),
    url('/v2/images/bg-logo3.jpg') top center no-repeat;
  border-bottom: 1px solid #9a5d24;
  box-shadow: 0 18px 38px rgba(0,0,0,.55), inset 0 -1px 0 rgba(255,213,126,.18);
}

.rg-header__inner {
  width: min(1220px, calc(100% - 32px));
  min-height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.rg-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.rg-logo img {
  width: 206px;
  max-width: 42vw;
  height: auto;
  filter: drop-shadow(0 5px 12px rgba(0,0,0,.8));
}

.rg-logo__text { display: grid; gap: 3px; }
.rg-logo__title {
  color: #ffe6a8;
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
  text-shadow: 0 2px 4px #000;
}
.rg-logo__sub { color: #d59b4a; font-size: 12px; }

.rg-nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.rg-nav a,
.rg-button,
.rg-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 16px;
  border: 1px solid #9e5b21;
  color: #ffd487;
  font-weight: 700;
  text-shadow: 0 1px 2px #000;
  background: linear-gradient(#7d3119 0%, #4b180b 48%, #240b04 100%);
  box-shadow: inset 0 1px 0 rgba(255,229,165,.22), 0 5px 14px rgba(0,0,0,.35);
}
.rg-nav a:hover,
.rg-button:hover,
.rg-card__link:hover {
  color: #fff3c7;
  border-color: #e0a24d;
  text-decoration: none;
  background: linear-gradient(#9b4220, #5b1f0e 52%, #2c0d05);
}

.rg-main {
  width: min(1220px, calc(100% - 32px));
  margin: 24px auto 52px;
}

.rg-content,
.rg-hero,
.rg-showcase,
.rg-footer {
  position: relative;
}

.rg-content,
.rg-hero,
.rg-feature,
.rg-card {
  border: 1px solid #8c571f;
  background:
    linear-gradient(180deg, rgba(78, 35, 13, .94), rgba(35, 13, 5, .98)),
    url('/v2/images/frames/common-bg.png') center repeat;
  box-shadow:
    inset 0 0 0 1px rgba(255, 214, 130, .08),
    inset 0 18px 28px rgba(255, 186, 81, .06),
    0 18px 38px rgba(0,0,0,.45);
}

.rg-content:before,
.rg-hero:before,
.rg-feature:before,
.rg-card:before {
  content: "";
  position: absolute;
  inset: 5px;
  pointer-events: none;
  border: 1px solid rgba(210, 139, 54, .32);
}

.rg-content__inner { position: relative; padding: 24px; }
.rg-title,
.rg-section-title {
  margin: 0 0 16px;
  color: #ffd885;
  font-size: 30px;
  line-height: 1.16;
  text-shadow: 0 2px 3px #000;
}

.rg-hero {
  min-height: clamp(500px, 68vh, 700px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, .72fr);
  gap: 24px;
  align-items: center;
  padding: clamp(28px, 5vw, 58px);
  margin-bottom: 18px;
  overflow: hidden;
}

.rg-hero__copy { position: relative; z-index: 2; max-width: 720px; }
.rg-kicker {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 0 10px;
  margin-bottom: 14px;
  border: 1px solid #936128;
  background: rgba(32, 10, 3, .78);
  color: #ffc66e;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.rg-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #ffe9b0;
  font-size: clamp(42px, 6vw, 78px);
  line-height: .98;
  text-shadow: 0 4px 0 #2b0a02, 0 10px 24px #000;
}
.rg-hero p {
  max-width: 610px;
  margin: 20px 0 0;
  color: #e7c38a;
  font-size: clamp(17px, 2vw, 21px);
}
.rg-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.rg-button { min-height: 42px; padding: 0 20px; }
.rg-button--primary { border-color: #e2a54e; }
.rg-button--small { min-height: 34px; padding: 0 14px; align-self: flex-start; }

.rg-hero__art { position: relative; min-height: 460px; align-self: stretch; }
.rg-hero__figure {
  position: absolute;
  right: -10px;
  bottom: -18px;
  max-width: min(500px, 42vw);
  max-height: 650px;
  filter: drop-shadow(0 18px 36px rgba(0,0,0,.8));
}
.rg-hero__plate {
  position: absolute;
  left: 0;
  bottom: 54px;
  width: min(360px, 30vw);
  border: 1px solid #9e632c;
  box-shadow: 0 16px 34px rgba(0,0,0,.6);
}

.rg-showcase {
  display: grid;
  grid-template-columns: 1.15fr .85fr .85fr;
  gap: 14px;
  margin-bottom: 18px;
}
.rg-feature {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(15, 7, 3, .12), rgba(19, 6, 2, .96)),
    var(--feature-image) center/cover no-repeat;
}
.rg-feature--wide { min-height: 330px; }
.rg-feature h2 { margin: 0 0 8px; color: #ffd985; font-size: 29px; text-shadow: 0 2px 3px #000; }
.rg-feature p { max-width: 430px; margin: 0 0 16px; color: #e5c18a; }

.rg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.rg-card {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  overflow: hidden;
}
.rg-card h2 { margin: 0 0 10px; font-size: 22px; color: #ffd985; }
.rg-card p { margin: 0; color: var(--rg-muted); }
.rg-card__link { margin-top: 18px; align-self: flex-start; }
.rg-entry { position: relative; line-height: 1.55; }
.rg-entry img { max-width: 100%; height: auto; }

.rg-footer {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 30px;
  color: rgba(237, 189, 112, .72);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 900px) {
  .rg-header { position: relative; }
  .rg-header__inner { flex-direction: column; align-items: flex-start; padding: 16px 0; }
  .rg-nav { justify-content: flex-start; }
  .rg-hero, .rg-showcase { grid-template-columns: 1fr; }
  .rg-hero { min-height: auto; padding: 24px; }
  .rg-hero__art { min-height: 340px; }
  .rg-hero__figure { max-width: 78vw; }
  .rg-hero__plate { width: 52vw; }
}

@media (max-width: 560px) {
  .rg-main, .rg-header__inner, .rg-footer { width: min(100% - 20px, 1220px); }
  .rg-content__inner { padding: 16px; }
  .rg-logo { align-items: flex-start; flex-direction: column; }
  .rg-logo img { max-width: 76vw; }
  .rg-hero h1 { font-size: 38px; }
}
