/* 
  Responsive VGW game detail page
  Built from the provided screenshot using semantic HTML, CSS Grid/Flexbox, and vanilla JavaScript.
*/

:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #f1f5f8;
  --dark: #050b12;
  --dark-2: #08121b;
  --text: #131923;
  --muted: #6a7584;
  --line: #dde5ed;
  --cyan: #00c8f8;
  --cyan-dark: #009ec7;
  --good: #05b7e5;
  --shadow: 0 15px 40px rgba(5, 17, 30, 0.08);
  --radius: 4px;
  --container: 1160px;
  --font: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
}

body.light-theme {
  --dark: #071929;
  --dark-2: #10263a;
  --bg: #ffffff;
  --surface-2: #eef6fb;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  width: auto;
  height: auto;
  clip-path: none;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--cyan);
  color: #00111b;
  font-weight: 800;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(3, 8, 14, 0.98);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: max-content;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-mark {
  color: var(--cyan);
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1;
  letter-spacing: -0.08em;
  text-shadow: 0 0 18px rgba(0, 200, 248, 0.35);
}

.brand-name {
  font-size: 11px;
}

.brand-name strong {
  color: var(--cyan);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-link {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 800;
  opacity: 0.9;
}

.icon-link:hover,
.main-nav a:hover {
  color: var(--cyan);
}

.search-btn {
  position: relative;
  width: 20px;
  height: 20px;
  border: 0;
  background: transparent;
}

.search-btn::before {
  content: "";
  position: absolute;
  inset: 2px 5px 5px 2px;
  border: 2px solid #fff;
  border-radius: 50%;
}

.search-btn::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  right: 1px;
  bottom: 2px;
  background: #fff;
  transform: rotate(45deg);
  transform-origin: center;
}

.join-btn {
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  padding: 0 19px;
  background: var(--cyan);
  color: #001018;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  background: transparent;
  padding: 9px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: #fff;
}

.main-nav {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(1, 6, 11, 0.9);
}

.nav-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: clamp(18px, 4vw, 58px);
}

.main-nav a,
.theme-toggle {
  position: relative;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav a.active {
  color: var(--cyan);
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--cyan);
}

.theme-toggle {
  margin-left: auto;
  padding-inline: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 3px;
  color: rgba(255, 255, 255, 0.9);
}

.moon {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border-radius: 50%;
  box-shadow: -4px 0 0 #fff;
}

/* Hero */
.hero {
  position: relative;
  min-height: clamp(260px, 27vw, 318px);
  overflow: hidden;
  color: #fff;
  background: #03111a;
}

.hero-bg,
.hero::before,
.hero::after {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background-image: url("assets/hero-bg.jpg");
  background-size: cover;
  background-position: center top;
  transform: scale(1.01);
}

.hero::before {
  content: "";
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(1, 9, 13, 0.9) 0%, rgba(1, 10, 14, 0.68) 26%, rgba(1, 10, 14, 0.22) 43%, rgba(1, 10, 14, 0) 63%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.02) 48%, rgba(0, 0, 0, 0.1) 100%);
}

.hero::after {
  content: "";
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle at 20% 76%, rgba(0, 200, 248, 0.12), transparent 18%);
}

.hero-box-art {
  position: absolute;
  z-index: 2;
  top: clamp(16px, 2.2vw, 28px);
  right: calc((100vw - min(calc(100% - 40px), var(--container))) / 2 + clamp(84px, 9vw, 145px));
  width: clamp(155px, 16.5vw, 215px);
  max-width: 24vw;
  transform: perspective(900px) rotateY(-7deg) rotate(4deg);
  transform-origin: center;
  filter: drop-shadow(0 22px 24px rgba(0, 0, 0, 0.42));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding-block: 18px 30px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
}

.breadcrumbs a:hover {
  color: var(--cyan);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 7px;
  padding: 3px 8px;
  border: 1px solid rgba(0, 200, 248, 0.7);
  color: var(--cyan);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 620px;
  font-size: clamp(42px, 5.4vw, 64px);
  line-height: 0.95;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.56);
}

.hero h1 span {
  font-size: 0.62em;
  letter-spacing: 0.08em;
}

.hero-copy {
  max-width: 450px;
  margin: 20px 0 22px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Buttons */
.btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 3px;
  padding: 0 18px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-light {
  background: #fff;
  color: #08111a;
}

.btn-light:hover {
  background: var(--cyan);
}

.btn-outline {
  background: rgba(1, 8, 12, 0.56);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
}

.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* Meta bar */
.game-meta {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.meta-grid {
  min-height: 70px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  align-items: center;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.meta-item small {
  display: block;
  color: #4f5b67;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.07em;
  line-height: 1.25;
  text-transform: uppercase;
}

.meta-item strong {
  display: block;
  margin-top: 1px;
  color: #14202b;
  font-size: 12px;
  line-height: 1.25;
}

.meta-icon {
  flex: 0 0 auto;
  color: var(--cyan);
  font-size: 22px;
  line-height: 1;
}

.rating-badge {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 30px;
  border: 2px solid #222;
  color: #222;
  font-size: 8px;
  font-weight: 900;
}

/* Tabs */
.section-tabs {
  position: sticky;
  top: 80px;
  z-index: 30;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.tabs-wrap {
  display: flex;
  gap: clamp(18px, 3.4vw, 43px);
  overflow-x: auto;
}

.tabs-wrap button {
  position: relative;
  flex: 0 0 auto;
  min-height: 48px;
  border: 0;
  background: transparent;
  color: #202c36;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tabs-wrap button.active {
  color: #101820;
}

.tabs-wrap button.active::after {
  content: "";
  position: absolute;
  height: 2px;
  left: 0;
  right: 0;
  bottom: -1px;
  background: var(--cyan);
}

/* Layout */
.page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  padding-block: 22px 42px;
}

.panel,
.section-block {
  margin-bottom: 20px;
}

.panel h2,
.section-heading h2,
.side-card h2 {
  margin: 0 0 11px;
  color: #111923;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.panel p {
  max-width: 780px;
  margin: 0 0 12px;
}

.screenshot-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.screenshot-strip img {
  width: 100%;
  aspect-ratio: 16 / 6;
  object-fit: cover;
  border-radius: 2px;
}

.arrow {
  display: none;
}

/* Trailer */
.trailer-card {
  position: relative;
  min-height: 190px;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: 3px;
  background: #08131c;
  color: #fff;
  box-shadow: var(--shadow);
}

.trailer-card img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
}

.trailer-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 11, 16, 0.9), rgba(2, 11, 16, 0.42) 42%, rgba(2, 11, 16, 0.08));
}

.trailer-overlay {
  position: absolute;
  z-index: 2;
  top: 19px;
  left: 20px;
  width: min(320px, 52%);
}

.trailer-overlay h2 {
  margin: 0 0 7px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.trailer-overlay p:not(.eyebrow) {
  margin: 0 0 16px;
}

.play-large {
  position: absolute;
  z-index: 3;
  left: 53%;
  top: 50%;
  width: 74px;
  height: 74px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.16);
}

.play-large::before {
  content: "";
  position: absolute;
  left: 31px;
  top: 23px;
  border-style: solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent #fff;
}

.duration {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 14px;
  padding: 3px 6px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

/* Cards */
.section-heading,
.side-card-title,
.score-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.section-heading h2 {
  position: relative;
  padding-left: 14px;
}

.section-heading h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 3px;
  background: var(--cyan);
}

.section-heading a,
.side-card-title a,
.view-link,
.read-more {
  color: var(--cyan-dark);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.card-grid {
  display: grid;
  gap: 16px;
}

.news-grid {
  grid-template-columns: repeat(4, 1fr);
}

.news-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface);
}

.news-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.news-card time,
.news-card h3,
.news-card p,
.news-card .read-more {
  display: block;
  padding-inline: 12px;
}

.news-card time {
  margin-top: 10px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.news-card h3,
.video-card h3,
.related-card h3,
.guide-card h3 {
  margin: 5px 0;
  font-size: 13px;
  line-height: 1.28;
}

.news-card p {
  min-height: 54px;
  margin: 0 0 9px;
  color: #42505e;
  font-size: 11px;
  line-height: 1.45;
}

.news-card .read-more {
  margin: 0 0 12px;
}

/* Videos */
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.video-card .thumb {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.video-card img {
  width: 100%;
  aspect-ratio: 16 / 6.1;
  object-fit: cover;
}

.video-card .thumb span {
  position: absolute;
  right: 4px;
  bottom: 4px;
  padding: 2px 5px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.video-card h3 {
  margin-top: 8px;
}

.video-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

/* Related */
.related-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(145px, 1fr));
  gap: 13px;
}

.related-card {
  position: relative;
  min-width: 0;
}

.related-card img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-radius: 3px;
}

.related-card .score {
  position: absolute;
  top: 6px;
  right: 7px;
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  background: #003d52;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: inset 0 0 0 2px var(--cyan);
}

.related-card h3 {
  margin-top: 8px;
  font-size: 13px;
}

/* Sidebar */
.sidebar {
  display: grid;
  align-content: start;
  gap: 10px;
}

.side-card {
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface);
  padding: 17px;
}

.score-heading h2,
.side-card h2 {
  margin-bottom: 0;
}

.score-heading small {
  color: #4e5b67;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.score-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  align-items: center;
  margin: 12px 0 14px;
}

.circle-score {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 3px solid var(--cyan);
  border-radius: 50%;
  color: var(--cyan-dark);
}

.circle-score strong {
  font-size: 26px;
  line-height: 1;
  font-weight: 400;
}

.circle-score span {
  margin-top: 5px;
  font-size: 10px;
  font-weight: 800;
}

.circle-score.user {
  color: #04a9d2;
}

.bars {
  display: grid;
  gap: 8px;
}

.bars div {
  display: grid;
  grid-template-columns: 18px 1fr 36px;
  gap: 8px;
  align-items: center;
  color: #46515d;
  font-size: 10px;
  font-weight: 800;
}

.bars i {
  height: 3px;
  background: #e5ebf0;
  position: relative;
}

.bars i::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--bar);
  background: var(--cyan);
}

.score-card hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 18px 0 12px;
}

.view-link {
  display: block;
  text-align: right;
}

.details-card dl {
  display: grid;
  gap: 7px;
  margin: 16px 0 0;
}

.details-card dl div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
}

.details-card dt {
  color: #5d6974;
  font-size: 10px;
  font-weight: 800;
}

.details-card dd {
  margin: 0;
  color: #202832;
  font-size: 11px;
  font-weight: 700;
}

.platform-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
}

.platform-buttons button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #f7f9fb;
  padding: 0 13px;
  color: #27313b;
  font-size: 11px;
  font-weight: 700;
}

.guide-card article {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  align-items: start;
  padding-block: 8px;
  border-bottom: 1px solid var(--line);
}

.guide-card article:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.guide-card img {
  width: 72px;
  aspect-ratio: 16 / 8.7;
  object-fit: cover;
  border-radius: 2px;
}

.guide-card h3 {
  margin: 0 0 3px;
  font-size: 11px;
}

.guide-card p {
  margin: 0;
  color: #4a5865;
  font-size: 10px;
  line-height: 1.35;
}

.newsletter-card {
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: 0 13px;
}

.mail-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 31px;
  border: 2px solid var(--cyan);
  color: var(--cyan-dark);
  font-size: 20px;
}

.newsletter-card p {
  margin: 7px 0 12px;
  color: #3d4b57;
  font-size: 11px;
}

.inline-form {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 44px;
  min-height: 39px;
}

.inline-form input {
  min-width: 0;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 3px 0 0 3px;
  padding: 0 14px;
  background: #fff;
  color: var(--text);
  outline: 0;
}

.inline-form input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(0, 200, 248, 0.14);
}

.inline-form button {
  border: 0;
  border-radius: 0 3px 3px 0;
  background: var(--cyan);
  color: #001018;
  font-size: 18px;
  font-weight: 900;
}

.form-message {
  grid-column: 1 / -1;
  min-height: 18px;
  margin: 7px 0 0 !important;
  color: var(--cyan-dark) !important;
  font-weight: 800;
}

/* Footer */
.site-footer {
  background: #06121c;
  color: #d6e0e7;
}

.footer-promo {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: #071520;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.promo-grid article {
  display: grid;
  grid-template-columns: 55px 1fr;
  gap: 13px;
  min-height: 110px;
  padding: 23px 20px 20px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.promo-grid article:last-child {
  border-right: 0;
}

.promo-icon {
  color: var(--cyan);
  font-size: 45px;
  line-height: 1;
}

.promo-grid h3,
.footer-main h3 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.promo-grid p,
.footer-main p,
.footer-main a {
  margin: 0;
  color: #98a7b3;
  font-size: 11px;
  line-height: 1.45;
}

.promo-grid a {
  display: inline-block;
  margin-top: 8px;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.8fr repeat(4, 1fr) 2fr;
  gap: 32px;
  padding-block: 28px 20px;
}

.footer-brand {
  margin-bottom: 13px;
}

.footer-main nav {
  display: grid;
  align-content: start;
  gap: 4px;
}

.social-row {
  display: flex;
  gap: 18px;
  margin-top: 20px;
}

.social-row a {
  color: #fff;
  font-weight: 900;
}

.footer-newsletter .inline-form {
  margin-top: 13px;
}

.footer-newsletter .inline-form input {
  border-color: rgba(255, 255, 255, 0.08);
  background: #101d29;
  color: #fff;
}

.copyright {
  margin: 0;
  padding: 12px 20px 20px;
  color: #72818d;
  text-align: center;
  font-size: 11px;
}

/* Modal and toast */
.video-modal {
  width: min(760px, calc(100% - 32px));
  border: 0;
  border-radius: 7px;
  padding: 0;
  background: #050b12;
  color: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.video-modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.modal-close {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 26px;
  line-height: 1;
}

.video-frame {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background-image: linear-gradient(135deg, #0c2030, #06121c);
}

.fake-video {
  text-align: center;
}

.fake-video span {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin-inline: auto;
  border-radius: 50%;
  background: var(--cyan);
  color: #001018;
  font-size: 30px;
}

.fake-video p {
  margin: 14px 0 0;
  color: #d4ecf4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 70;
  padding: 12px 16px;
  border-radius: 4px;
  background: #06121c;
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: 0.22s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1120px) {
  .meta-grid {
    grid-template-columns: repeat(3, 1fr);
    padding-block: 14px;
  }

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

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

  .score-card {
    grid-row: span 2;
  }

  .footer-main {
    grid-template-columns: repeat(3, 1fr);
  }

  .promo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 840px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .header-top {
    min-height: 58px;
  }

  .brand-name,
  .icon-link,
  .search-btn,
  .join-btn {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
  }

  .main-nav {
    display: none;
  }

  .main-nav.open {
    display: block;
  }

  .nav-inner {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding-block: 8px;
  }

  .main-nav a,
  .theme-toggle {
    width: 100%;
    text-align: left;
    padding: 13px 0;
  }

  .theme-toggle {
    margin-left: 0;
    border: 0;
  }

  .section-tabs {
    top: 58px;
  }

  .hero {
    min-height: 390px;
  }

  .hero-bg {
    background-position: 62% top;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(1, 9, 13, 0.92) 0%, rgba(1, 10, 14, 0.68) 38%, rgba(1, 10, 14, 0.18) 72%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.12));
  }

  .hero-box-art {
    top: 82px;
    right: -16px;
    width: 178px;
    max-width: none;
    opacity: 0.78;
  }

  .hero-content {
    padding-block: 20px 28px;
  }

  .hero-copy {
    font-size: 14px;
  }

  .news-grid,
  .video-grid,
  .sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screenshot-strip {
    grid-auto-flow: column;
    grid-auto-columns: 44%;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
  }

  .screenshot-strip img {
    scroll-snap-align: start;
    aspect-ratio: 16 / 9;
  }

  .related-rail {
    grid-auto-flow: column;
    grid-auto-columns: 190px;
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .trailer-overlay {
    width: 58%;
  }

  .footer-main {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 13px;
  }

  .hero {
    min-height: 455px;
  }

  .hero-box-art {
    display: none;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .meta-grid,
  .news-grid,
  .video-grid,
  .sidebar,
  .promo-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .meta-grid {
    gap: 14px;
  }

  .section-tabs {
    top: 58px;
  }

  .tabs-wrap {
    gap: 22px;
  }

  .page {
    padding-top: 18px;
  }

  .trailer-card {
    min-height: 340px;
  }

  .trailer-card img {
    min-height: 340px;
  }

  .trailer-card::after {
    background: linear-gradient(0deg, rgba(2, 11, 16, 0.94), rgba(2, 11, 16, 0.14));
  }

  .trailer-overlay {
    inset: auto 18px 18px;
    width: auto;
  }

  .play-large {
    left: 50%;
    top: 42%;
  }

  .score-row {
    grid-template-columns: 78px 1fr;
    gap: 12px;
  }

  .circle-score {
    width: 68px;
    height: 68px;
  }

  .details-card dl div {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .promo-grid article {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-right: 0;
  }

  .footer-main {
    gap: 20px;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 38px;
  }

  .screenshot-strip {
    grid-auto-columns: 78%;
  }

  .news-card p {
    min-height: auto;
  }

  .newsletter-card {
    grid-template-columns: 1fr;
  }

  .mail-icon {
    margin-bottom: 10px;
  }
}
