/* ============================================================
   Obsidian Gaming — live demo
   Colours, radii and proportions taken from the Figma export
   (home frame 1440 × 3800, content 1284 wide).
   ============================================================ */

@font-face {
  font-family: "Borna";
  src: url("../fonts/BornaFaNumVF.woff2") format("woff2-variations"),
       url("../fonts/BornaFaNumVF.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* same family with Latin digits, for English text ("DOTA 2", "Windows 7", "340K") */
@font-face {
  font-family: "Borna Latin";
  src: url("../fonts/BornaVF.woff2") format("woff2-variations"),
       url("../fonts/BornaVF.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

[lang="en"] { font-family: "Borna Latin", "Borna", Tahoma, sans-serif; }

:root {
  --og-bg:        #454545;
  --og-dark:      #383838;
  --og-darker:    #2B2B2B;
  --og-hero:      #242424;
  --og-pill:      #C0C0C0;
  --og-pill-line: #5B5B5B;
  --og-light:     #E6E6E6;
  --og-red:       #981B28;
  --og-red-hi:    #C6343B;
  --og-ink:       #2B2B2B;
  --og-muted:     #C0C0C0;

  --og-wrap:      1284px;
  --og-gutter:    clamp(16px, 4vw, 78px);
  --og-ease:      cubic-bezier(.2, .8, .2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  margin: 0;
  background: var(--og-bg);
  color: var(--og-light);
  font-family: "Borna", Tahoma, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }

.og-skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  white-space: nowrap; clip-path: inset(50%);
}
.og-skip:focus { position: fixed; top: 8px; inset-inline-start: 8px; z-index: 100; background: var(--og-light); color: var(--og-ink); padding: 8px 14px; border-radius: 8px; }

:focus-visible { outline: 2px solid var(--og-red-hi); outline-offset: 3px; }

/* ---------- NAV ---------- */

.og-nav {
  position: sticky;
  top: 12px;
  z-index: 20;
  width: min(1086px, 100% - var(--og-gutter) * 2);
  height: 70px;
  margin: 12px auto -82px;          /* floats over the hero like the mock */
  padding-inline: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(36, 36, 36, .72);
  border: 1px solid rgba(230, 230, 230, .55);
  border-radius: 44px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.og-nav__links { display: flex; gap: clamp(16px, 4vw, 56px); font-size: 15px; }
.og-nav__links a { color: var(--og-light); opacity: .85; transition: opacity .2s, color .2s; }
.og-nav__links a:hover { opacity: 1; color: #fff; }

.og-nav__brand { margin-inline-start: auto; flex: none; }
.og-nav__brand img { width: 58px; height: auto; }

.og-nav__menu { background: none; border: 0; font-size: 15px; padding: 6px 4px; color: var(--og-light); }

/* "my list" — games marked «میخوام بازی کنم» */
.og-wish { position: relative; }

.og-wish__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  background: transparent;
  border: 1px solid rgba(230, 230, 230, .4);
  border-radius: 20px;
  color: var(--og-light);
  font-size: 14px;
  transition: border-color .2s, background .2s;
}
.og-wish__btn:hover,
.og-wish__btn[aria-expanded="true"] { border-color: var(--og-red-hi); background: rgba(152, 27, 40, .15); }
.og-wish__btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.og-wish__count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--og-red);
  color: #fff;
  font-size: 12px;
  line-height: 1;
}
.og-wish__count[hidden] { display: none; }
.og-wish__count.is-bump { animation: ogBump .45s var(--og-ease); }
@keyframes ogBump { 40% { transform: scale(1.45); } }

.og-wish__panel {
  position: absolute;
  top: calc(100% + 16px);
  left: 0;                                   /* the list opens from the left end of the bar */
  z-index: 30;
  width: 330px;
  max-height: 60vh;
  overflow: auto;
  padding: 14px;
  background: var(--og-darker);
  border: 1px solid rgba(230, 230, 230, .25);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  animation: ogRise .25s var(--og-ease);
}
.og-wish__panel[hidden] { display: none; }

.og-wish__title { margin-bottom: 10px; color: var(--og-muted); font-size: 14px; }

.og-wish__list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.og-wish__list li { display: flex; align-items: center; gap: 8px; }

.og-wish__item {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: 14px;
  transition: background .2s;
}
.og-wish__item:hover { background: var(--og-dark); }
.og-wish__item img { flex: none; width: 58px; height: 40px; object-fit: cover; border-radius: 8px; }
.og-wish__item span { overflow: hidden; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }

.og-wish__rm {
  flex: none;
  width: 30px;
  height: 30px;
  background: var(--og-dark);
  border: 0;
  border-radius: 50%;
  color: var(--og-light);
  font-size: 18px;
  line-height: 1;
  transition: background .2s;
}
.og-wish__rm:hover { background: var(--og-red); }

.og-wish__empty { color: var(--og-muted); font-size: 13px; }
.og-wish__empty[hidden] { display: none; }

/* ---------- HERO ---------- */

.og-hero {
  position: relative;
  width: min(var(--og-wrap), 100% - var(--og-gutter) * 2);
  aspect-ratio: 1284 / 720;
  margin-inline: auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--og-hero);
  isolation: isolate;
}

/* vertical folds, like the theatre curtain in the Figma component */
.og-hero__curtain {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(90deg,
      rgba(0, 0, 0, .55) 0, rgba(255, 255, 255, .07) 1.4%, rgba(0, 0, 0, .35) 2.6%,
      rgba(255, 255, 255, .04) 3.6%, rgba(0, 0, 0, .55) 4.8%),
    linear-gradient(#2a2a2a, #161616);
  transform-origin: top;
  animation: ogCurtain 1.4s var(--og-ease) both;
}
.og-hero__curtain::after {          /* shade at the foot of the curtain */
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  background: linear-gradient(transparent, rgba(0, 0, 0, .55));
}

.og-hero__wings {
  position: absolute;
  width: 72%;
  height: auto;
  opacity: .9;
  filter: drop-shadow(0 0 40px rgba(152, 27, 40, .35));
  animation: ogWings 1.3s var(--og-ease) .5s both;
}

.og-hero__copy {
  position: relative;
  text-align: center;
  padding: 0 24px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .6);
}
.og-hero__copy h1 {
  font-size: clamp(24px, 3.4vw, 46px);
  font-weight: 800;
  color: var(--og-light);
  animation: ogRise .9s var(--og-ease) 1.1s both;
}
.og-hero__copy p {
  margin-top: clamp(12px, 3vw, 44px);
  font-size: clamp(15px, 2.1vw, 28px);
  font-weight: 600;
  color: var(--og-muted);
  animation: ogRise .9s var(--og-ease) 1.35s both;
}

/* ---------- reeded glass over the wings (Figma "Component 1", 7 frames) ----------
   js/demo.js builds the strips (10 across, 5 on phones) and places the wings
   where the Figma frame has them. The strips glide left → right by exactly
   one strip width and start over, so the loop has no seam; the wings stay put.

   Strip profile, sampled from the Figma export (1284px frame, strip ≈ 108px):
     background flat #232323 · a thin light line just inside the left edge
     (#363636–#404040) · flat middle · a shadow deepening to #0A0A0A at the
     right edge. Over the wings the same strip reads #921925 flat, #D6283B
     on the light line and #4A070C in the shadow — that is an overlay of
     ~60% white for the line, and plain black for the shadow.
   Without JS the plain curtain + wings below still show. */
.og-hero.has-glass .og-hero__curtain { display: none; }
.og-hero.has-glass .og-hero__wings   { visibility: hidden; }   /* still measured on phones */

.og-glass {
  position: absolute;
  inset: 0;
  direction: ltr;                        /* strips are laid out from the physical left, as the maths in demo.js assumes */
  overflow: hidden;
  pointer-events: none;
  background: #232323;
  transform-origin: top;
  animation: ogCurtain 1.4s var(--og-ease) both;
}
.og-glass__track {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--fw) * -1);
  display: flex;
  animation: ogGlassSlide var(--og-glass-time, 20s) linear infinite;
}
.og-glass__flute {
  flex: none;
  width: var(--fw);
  height: 100%;
  background-color: #232323;
  background-image:
    /* light line, blended as overlay: lifts #232323 to #363636 and #921925 to #D6283B */
    linear-gradient(90deg,
      transparent 2.5%, rgba(255, 255, 255, .45) 4%, rgba(255, 255, 255, .6) 5.5%,
      rgba(255, 255, 255, .45) 7%, transparent 9%),
    /* shadow toward the right edge, and the last of it just left of the line */
    linear-gradient(90deg,
      rgba(0, 0, 0, .45) 0%, transparent 3%, transparent 42%,
      rgba(0, 0, 0, .14) 60%, rgba(0, 0, 0, .36) 78%, rgba(0, 0, 0, .6) 92%, rgba(0, 0, 0, .68) 100%),
    url("../img/wings.svg");
  background-blend-mode: overlay, normal, normal;
  background-repeat: no-repeat;
  background-size: 100% 100%, 100% 100%, var(--bw) var(--bh);
  background-position: 0 0, 0 0, var(--p0) var(--py);
  animation: ogGlassLens var(--og-glass-time, 20s) linear infinite;
}
@keyframes ogGlassSlide { to { transform: translateX(var(--fw)); } }
@keyframes ogGlassLens  { to { background-position: 0 0, 0 0, calc(var(--p0) - var(--sw)) var(--py); } }

/* Figma: the copy sits low in the frame (title at ~54%, line at ~71%) and the line is large */
.og-hero.has-glass .og-hero__copy   { margin-top: 14%; text-shadow: 0 1px 10px rgba(0, 0, 0, .45); }
.og-hero.has-glass .og-hero__copy p { font-size: clamp(15px, 2.8vw, 36px); margin-top: clamp(12px, 3.2vw, 48px); }
@media (max-width: 640px) {
  .og-hero.has-glass .og-hero__copy { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .og-glass__track, .og-glass__flute { animation: none; }
}

@keyframes ogCurtain { from { transform: scaleY(.0); opacity: 0; } }
@keyframes ogWings   { from { transform: scale(.82) translateY(20px); opacity: 0; filter: blur(8px); } }
@keyframes ogRise    { from { transform: translateY(16px); opacity: 0; } }

/* ---------- PILLS & CHIPS ---------- */

.og-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2.6vw, 34px);
  padding: 12px clamp(16px, 3vw, 44px);
  background: var(--og-pill);
  border: 2px solid var(--og-red);
  border-radius: 43px;
}

.og-chip,
.og-pop__menu button {
  display: inline-grid;               /* links and buttons centre the same way */
  place-items: center;
  min-width: 120px;
  height: 58px;
  padding: 0 24px;
  background: var(--og-bg);
  border: 0;
  border-radius: 30px;
  color: var(--og-light);
  font-size: 17px;
  white-space: nowrap;
  transition: background .2s, color .2s, transform .2s;
}
.og-chip:hover { background: var(--og-dark); }
.og-chip[aria-pressed="true"],
.og-chip[aria-expanded="true"],
.og-chip.is-on {
  background: var(--og-red);
  color: #fff;
}

/* popover menus for platform / genre */
.og-pop { position: relative; }
.og-pop__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;                 /* physical: centred under its chip in RTL too */
  translate: -50% 0;
  z-index: 10;
  display: grid;
  gap: 8px;
  padding: 10px;
  background: var(--og-pill);
  border: 2px solid var(--og-red);
  border-radius: 28px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
}
.og-pop__menu[hidden] { display: none; }
.og-pop__menu button { height: 44px; font-size: 15px; }
.og-pop__menu button[aria-pressed="true"] { background: var(--og-red); color: #fff; }

/* ---------- DISCOVER ---------- */

.og-discover {
  width: min(var(--og-wrap), 100% - var(--og-gutter) * 2);
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.og-discover__go {
  display: grid;
  place-items: center;
  width: 108px;
  height: 84px;
  background: var(--og-dark);
  border: 2px solid var(--og-pill-line);
  border-radius: 43px;
  color: var(--og-red-hi);
  font-size: 22px;
  font-weight: 800;
  transition: border-color .2s, background .2s;
}
.og-discover__go:hover { border-color: var(--og-red); background: var(--og-darker); }

.og-search {
  height: 84px;
  padding: 12px 16px;
  background: var(--og-pill);
  border: 2px solid var(--og-red);
  border-radius: 43px;
}
.og-search input {
  width: 100%;
  height: 100%;
  padding: 0 24px;
  background: var(--og-bg);
  border: 0;
  border-radius: 30px;
  color: var(--og-light);
  font: inherit;
  font-size: 16px;
  text-align: center;
}
.og-search input::placeholder { color: var(--og-muted); }
.og-search input:focus { outline: 2px solid var(--og-red-hi); }

.og-chips--global { height: 84px; }

.og-status {
  width: min(var(--og-wrap), 100% - var(--og-gutter) * 2);
  margin: 16px auto 0;
  text-align: center;
  color: var(--og-muted);
  font-size: 15px;
}
.og-status button { margin-inline-start: 10px; background: none; border: 0; color: var(--og-red-hi); text-decoration: underline; }

/* ---------- RULE ---------- */

.og-rule {
  width: min(1066px, 100% - var(--og-gutter) * 2);
  margin: 46px auto;
  border: 0;
  border-top: 2px solid var(--og-red);
}

/* ---------- ROWS ---------- */

.og-row {
  width: min(var(--og-wrap), 100% - var(--og-gutter) * 2);
  margin-inline: auto;
}

.og-row__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  margin-bottom: 26px;
}

.og-row__title {
  display: grid;
  place-items: center;
  min-width: 300px;
  height: 84px;
  padding: 0 28px;
  background: var(--og-pill);
  border: 2px solid var(--og-pill-line);
  border-radius: 43px;
  color: var(--og-pill-line);
  font-size: 26px;
  font-weight: 800;
}

/* ---------- CARDS ---------- */

.og-cards {
  display: grid;
  grid-template-columns: repeat(3, 300px);
  justify-content: center;
  gap: 80px;
}

.og-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--og-dark);
  border: 2px solid var(--og-light);
  border-radius: 28px;
  transition: transform .35s var(--og-ease), box-shadow .35s var(--og-ease), border-color .35s;
}
.og-card:hover {
  transform: translateY(-6px);
  border-color: #fff;
  box-shadow: 0 20px 44px rgba(0, 0, 0, .35), 0 0 0 1px var(--og-red);
}
.og-card[hidden] { display: none; }

.og-card__media {
  position: relative;
  height: 340px;
  overflow: hidden;
}
.og-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--og-ease);
}
.og-card:hover .og-card__media img { transform: scale(1.06); }
.og-card__media::after {              /* the title sits on this fade */
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(transparent, var(--og-dark));
}

.og-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 14px 14px;
  margin-top: -18px;
  position: relative;
  text-align: center;
  background: linear-gradient(var(--og-dark), var(--og-darker));
}

.og-card__title { font-size: 19px; font-weight: 700; line-height: 1.45; color: var(--og-light); }
.og-card__meta { font-size: 13px; color: var(--og-muted); }
.og-card__meta--end { text-align: end; font-size: 12px; }
.og-card__game { font-size: 13px; color: var(--og-muted); letter-spacing: .02em; }
.og-card__quote { font-size: 17px; color: var(--og-light); }

.og-card__scores {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: var(--og-muted);
}
.og-card__scores b { color: var(--og-light); font-weight: 700; margin-inline-start: 4px; }

.og-card__actions {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.og-btn {
  display: inline-grid;
  place-items: center;
  height: 58px;
  padding: 0 18px;
  background: var(--og-pill);
  border: 1.5px solid var(--og-red);
  border-radius: 30px;
  color: var(--og-ink);
  font-size: 17px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.og-btn:hover { background: var(--og-light); }
.og-btn--sm { min-width: 96px; }
.og-btn[aria-pressed="true"] { background: var(--og-red); color: #fff; border-color: var(--og-red); }

/* video cards: a play mark on the thumbnail */
.og-card__play {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 1;
  width: 58px;
  height: 58px;
  translate: -50% -50%;
  border-radius: 50%;
  background: rgba(36, 36, 36, .65);
  border: 1.5px solid var(--og-light);
  opacity: 0;
  transition: opacity .3s;
}
.og-card__play::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 54%;
  translate: -50% -50%;
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent var(--og-light);
}
.og-card--video:hover .og-card__play { opacity: 1; }

/* upcoming: release date strip on top */
.og-card__date {
  padding: 4px 10px;
  background: #5b6066;
  text-align: center;
  font-size: 13px;
  color: var(--og-muted);
}
.og-card--upcoming .og-card__media { height: 306px; }

.og-empty {
  margin-top: 8px;
  text-align: center;
  color: var(--og-muted);
}

/* ---------- FORUMS ---------- */

.og-threads { display: grid; gap: 14px; width: min(956px, 100%); margin-inline: auto; }

.og-thread {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(16px, 7vw, 84px);
  background: var(--og-pill);
  border: 2px solid var(--og-dark);
  border-radius: 59px;
}
.og-thread:hover { transform: none; box-shadow: none; border-color: var(--og-red); }

.og-thread__topic {
  flex: 0 1 480px;
  padding: 16px 52px;
  background: var(--og-bg);
  border-radius: 44px;
}
.og-thread__topic h3 { font-size: 19px; font-weight: 500; color: var(--og-light); line-height: 1.6; }
.og-thread__topic p { font-size: 13px; color: var(--og-muted); }

.og-thread__go {
  flex: none;
  display: grid;
  place-items: center;
  height: 56px;
  padding: 0 18px;
  background: var(--og-bg);
  border-radius: 30px;
  color: var(--og-light);
  font-size: 18px;
  transition: background .2s;
}
.og-thread__go:hover { background: var(--og-red); }

/* ---------- FOOTER ---------- */

.og-footer {
  width: min(var(--og-wrap), 100% - var(--og-gutter) * 2);
  margin: 70px auto 0;
  padding: 56px clamp(20px, 8vw, 108px) 120px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  background: var(--og-darker);
  border-radius: 80px 80px 0 0;
}

.og-footer__nav { display: flex; flex-wrap: wrap; gap: 36px; font-size: 16px; }
.og-footer__nav details { position: relative; }
.og-footer__nav summary {
  list-style: none;
  cursor: pointer;
  color: var(--og-light);
}
.og-footer__nav summary::-webkit-details-marker { display: none; }
.og-footer__nav summary::after { content: "⌄"; margin-inline-start: 6px; display: inline-block; transition: rotate .2s; }
.og-footer__nav details[open] summary::after { rotate: 180deg; }
.og-footer__nav details a {
  display: block;
  padding: 4px 0;
  color: var(--og-muted);
  font-size: 14px;
}
.og-footer__nav details a:hover { color: #fff; }

.og-news { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.og-news label { font-size: 16px; color: var(--og-light); }
.og-news input {
  width: 300px;
  height: 36px;
  padding: 0 16px;
  background: transparent;
  border: 1px solid var(--og-light);
  border-radius: 18px;
  color: var(--og-light);
  font: inherit;
  font-size: 14px;
  text-align: center;
}
.og-news input::placeholder { color: rgba(230, 230, 230, .45); }
.og-news button {
  height: 36px;
  padding: 0 16px;
  background: var(--og-red);
  border: 0;
  border-radius: 18px;
  color: #fff;
  font-size: 14px;
}
.og-news__msg { flex-basis: 100%; min-height: 1.6em; font-size: 13px; color: var(--og-muted); }
.og-news__msg.is-error { color: #ff8a8f; }

/* ---------- PORTFOLIO BADGE & TOAST ---------- */

.og-badge {
  position: fixed;
  bottom: 16px;
  inset-inline-end: 16px;
  z-index: 30;
  display: grid;
  padding: 10px 18px;
  background: rgba(36, 36, 36, .9);
  border: 1px solid rgba(230, 230, 230, .3);
  border-radius: 16px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--og-muted);
  backdrop-filter: blur(8px);
  transition: border-color .2s;
}
.og-badge b { color: var(--og-light); font-size: 13px; }
.og-badge:hover { border-color: var(--og-red-hi); }

.og-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  translate: -50% 0;
  z-index: 40;
  max-width: calc(100% - 32px);
  padding: 12px 22px;
  background: var(--og-light);
  color: var(--og-ink);
  border-radius: 24px;
  font-size: 15px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
  animation: ogRise .3s var(--og-ease);
}
.og-toast[hidden] { display: none; }

/* ============================================================
   GAME DETAIL PAGE (dota-2.html)
   ============================================================ */

.og-hero--game { background: #111; }
.og-hero__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  animation: ogRise 1s var(--og-ease) both;
}

/* tabs share the chip look; the open one is red */
.og-tabs {
  width: min(1066px, 100% - var(--og-gutter) * 2);
  margin-inline: auto;
}
.og-tabs .og-chip[aria-selected="true"] { background: var(--og-red); color: #fff; }

.og-game {
  width: min(var(--og-wrap), 100% - var(--og-gutter) * 2);
  margin: 46px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  grid-template-areas: "main side";          /* RTL: text on the right, details on the left */
  overflow: hidden;
  background: var(--og-dark);
  border-top-left-radius: 80px;
}

.og-game__main { grid-area: main; padding: clamp(28px, 4vw, 56px) clamp(20px, 5vw, 70px); }
.og-game__side {
  grid-area: side;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 30px;
  padding: 40px 24px;
  background: #5B5B5B;
  text-align: center;
}
.og-game__side dl { margin: 0; display: grid; gap: 22px; }
.og-game__side dt { display: inline; color: var(--og-light); }
.og-game__side dt::after { content: ": "; }
.og-game__side dd { display: inline; margin: 0; color: #fff; }
.og-game__side b { font-weight: 800; }

.og-game__title { text-align: center; font-size: clamp(28px, 3vw, 38px); font-weight: 800; margin-bottom: 40px; }

.og-game__pane h2 { font-size: 17px; font-weight: 800; margin-bottom: 12px; }
.og-game__pane h3 { font-size: 16px; font-weight: 700; margin: 22px 0 8px; }
.og-game__pane p { font-size: 15.5px; line-height: 2; color: var(--og-light); margin-bottom: 10px; }
.og-game__pane[hidden] { display: none; }
.og-game__pane { animation: ogRise .35s var(--og-ease); }

.og-proscons { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.og-proscons li::before { display: inline-block; width: 1.4em; font-weight: 800; }
.og-proscons .is-pro::before { content: "+"; color: #7fd18b; }
.og-proscons .is-con::before { content: "–"; color: #ff8a8f; }

.og-specs { width: 100%; border-collapse: collapse; font-size: 15px; }
.og-specs th, .og-specs td { padding: 12px 10px; border-bottom: 1px solid rgba(230, 230, 230, .14); text-align: start; }
.og-specs th { width: 34%; color: var(--og-muted); font-weight: 500; }
.og-game__note { margin-top: 14px; font-size: 13px !important; color: var(--og-muted) !important; }

/* Inside the game page's text column the home-page pieces were too big:
   a 614px-tall video card pinned to one side, and threads with a dark pill
   inside a light pill. Here they become plain rows, so the topic or the
   channel reads first and the button second. */

.og-threads--compact { width: 100%; gap: 10px; }
.og-threads--compact .og-thread {
  padding: 16px 18px 16px 24px;
  border: 1px solid rgba(230, 230, 230, .14);
  border-radius: 22px;
  background: rgba(255, 255, 255, .04);
}
.og-threads--compact .og-thread__topic { flex: 1; padding: 0; background: none; border-radius: 0; }
.og-threads--compact .og-thread__topic h3 { font-size: 17px; font-weight: 700; margin: 0; }
.og-threads--compact .og-thread__go { height: 44px; font-size: 15px; background: var(--og-pill); color: var(--og-ink); }
.og-threads--compact .og-thread__go:hover { background: var(--og-red); color: #fff; }

/* two classes, so the 1100px (300px columns) and 700px (carousel) rules below never apply here */
.og-cards.og-cards--one {
  grid-template-columns: 1fr;
  grid-auto-flow: row;
  grid-auto-columns: auto;
  justify-content: stretch;
  gap: 14px;
  overflow: visible;
  padding-bottom: 0;
}

/* video as a row: thumbnail on the reading side, text beside it */
.og-card--row { flex-direction: row; border-width: 1px; border-color: rgba(230, 230, 230, .3); border-radius: 22px; }
.og-card--row:hover { transform: none; }
.og-card--row .og-card__media { flex: none; width: 42%; height: auto; aspect-ratio: 16 / 10; }
/* the thumbnail is a 16:9 frame letterboxed in 4:3 — zoom past the black bands */
.og-card--row .og-card__media img       { transform: scale(1.36); }
.og-card--row:hover .og-card__media img { transform: scale(1.42); }
.og-card--row .og-card__media::after { inset: 0; height: auto; background: linear-gradient(to left, transparent 55%, var(--og-dark)); }
.og-card--row .og-card__play { opacity: 1; }
.og-card--row .og-card__body { margin-top: 0; padding: 20px 24px; justify-content: center; text-align: start; background: var(--og-dark); }
.og-card--row .og-card__title { font-size: 20px; }
.og-card--row .og-card__quote { font-size: 15.5px; }
.og-card--row .og-card__meta--end { text-align: start; }
.og-card--row .og-card__actions { justify-content: flex-start; margin-top: 6px; }
.og-card--row .og-btn { height: 44px; font-size: 15px; }

/* the game column is only ~390–600px wide below 1100px: stack the card there */
@media (max-width: 1100px) {
  .og-card--row { flex-direction: column; }
  .og-card--row .og-card__media { width: 100%; }
  .og-card--row .og-card__media::after { background: linear-gradient(transparent 55%, var(--og-dark)); }
}

/* rating strip */
/* the page's main action: solid red; once added it turns quiet (dark with a red edge) */
.og-btn.og-game__want {
  width: 100%;
  max-width: 240px;
  height: 54px;
  background: var(--og-red);
  border-color: var(--og-red);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(152, 27, 40, .35);
}
.og-btn.og-game__want:hover { background: var(--og-red-hi); border-color: var(--og-red-hi); }
.og-btn.og-game__want[aria-pressed="true"] {
  background: var(--og-darker);
  border-color: var(--og-red-hi);
  color: var(--og-light);
  box-shadow: none;
}

.og-rate {
  width: min(780px, 100% - var(--og-gutter) * 2);
  margin: 26px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px 10px 26px;
  background: var(--og-pill);
  border: 2px solid var(--og-red);
  border-radius: 43px;
}
.og-rate__stars { display: flex; gap: 2px; direction: ltr; }   /* 1 → 10 left to right, as in the mock */
.og-rate__stars button {
  width: 40px;
  height: 40px;
  padding: 4px;
  background: none;
  border: 0;
  color: var(--og-red);
  transition: transform .15s;
}
.og-rate__stars button:hover { transform: scale(1.15); }
.og-rate__stars svg { width: 100%; height: 100%; fill: transparent; stroke: currentColor; stroke-width: 1.6; transition: fill .15s; }
.og-rate__stars .is-lit svg { fill: var(--og-red); }
.og-rate__count {
  padding: 10px 18px;
  background: var(--og-bg);
  border-radius: 30px;
  color: var(--og-light);
  font-size: 15px;
  white-space: nowrap;
}

.og-card--compact .og-card__media { height: 280px; }

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1100px) {
  .og-cards { grid-template-columns: repeat(auto-fit, minmax(260px, 300px)); gap: 32px; }
  .og-row__head { grid-template-columns: 1fr; }
  .og-row__title { min-width: 0; justify-self: start; height: 64px; font-size: 22px; }
  .og-discover { grid-template-columns: auto minmax(0, 1fr); }
  .og-chips--global { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .og-nav { height: 58px; padding-inline: 18px; margin-bottom: -70px; }
  .og-nav__links { gap: 14px; font-size: 13px; }
  .og-nav__brand img { width: 44px; }
  .og-nav { gap: 12px; }
  .og-nav__brand { flex: none; }
  .og-nav__links a:nth-child(-n+2) { display: none; }   /* «ورود» and «جستجو»: the search box sits right under the hero */
  .og-wish__label { display: none; }          /* heart + count only on phones */
  .og-wish__btn { height: 36px; padding: 0 10px; gap: 6px; }
  .og-wish__panel { width: min(330px, 100vw - 32px); left: -60px; }

  .og-hero { aspect-ratio: 4 / 5; }
  .og-hero__wings { width: 120%; }

  .og-discover { grid-template-columns: 1fr; }
  .og-discover__go { width: 100%; height: 56px; font-size: 18px; }
  .og-search, .og-chips--global { height: auto; }
  .og-search input { height: 48px; }

  /* chip rows scroll sideways instead of wrapping */
  .og-chips { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; border-radius: 30px; }
  .og-chips::-webkit-scrollbar { display: none; }
  .og-chip { min-width: 0; height: 44px; font-size: 15px; padding: 0 18px; }
  .og-chips--global { overflow: visible; flex-wrap: wrap; justify-content: center; }

  /* card rows become horizontal carousels */
  .og-cards {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    justify-content: start;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    scrollbar-width: none;
  }
  .og-cards::-webkit-scrollbar { display: none; }
  .og-card { scroll-snap-align: center; }
  .og-card__media { height: 260px; }
  .og-btn { height: 48px; font-size: 15px; }

  .og-thread { flex-direction: column; align-items: stretch; border-radius: 32px; padding: 14px; }
  .og-thread__topic { flex: none; padding: 14px 22px; border-radius: 24px; }   /* flex-basis 480px would become a height in the column layout */
  .og-thread__go { height: 48px; }

  .og-game { grid-template-columns: 1fr; grid-template-areas: "side" "main"; border-top-left-radius: 40px; }   /* details + button first on phones */
  .og-game__side { padding: 28px 20px; }
  .og-tabs { flex-wrap: wrap; justify-content: center; overflow: visible; gap: 8px; }   /* all four tabs visible, two rows */
  .og-rate { flex-direction: column; padding: 14px; border-radius: 30px; }
  .og-rate__stars button { width: 30px; height: 30px; padding: 2px; }
  .og-specs th { width: 40%; }

  .og-footer { border-radius: 40px 40px 0 0; padding-bottom: 110px; }
  .og-news input { width: 100%; }
  /* a small corner tag on phones, so it never sits over card buttons */
  .og-badge { bottom: 10px; inset-inline-end: 10px; padding: 6px 12px; border-radius: 12px; }
  .og-badge span { display: none; }
  .og-badge b { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
