/* Single-game editorial layout. Loaded only on game pages. */
.ga-game__layout {
  align-items: start;
  gap: clamp(2rem, 4vw, 3.75rem);
  grid-template-columns: minmax(0, 1fr) minmax(17.5rem, 19.5rem);
}
.ga-game__main,
.ga-game__side { min-width: 0; }

.ga-hud__notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  margin-top: 1rem;
  padding: .85rem 1rem;
  border: 1px solid rgba(46, 204, 113, .26);
  border-radius: .7rem;
  background: #13241b;
  color: #d8eee0;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.75;
  text-align: center;
}
.ga-hud__notice > span:first-child {
  flex: 0 0 auto;
  color: #2ecc71;
}

/* Screenshot carousel: one focused frame with a lightweight thumbnail rail. */
.ga-gallery__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  color: #132719;
  line-height: 1.35;
  text-wrap: balance;
}
.ga-gallery__title::before {
  width: 2.4rem;
  height: .22rem;
  flex: 0 0 auto;
  background: #2ecc71;
  content: "";
}
.ga-gallery__title::after {
  width: 2.4rem;
  height: .22rem;
  flex: 0 0 auto;
  background: #2ecc71;
  content: "";
}
.ga-game .ga-gallery {
  display: block;
  direction: ltr;
}
.ga-gallery__stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid #214b33;
  border-radius: 1.15rem;
  background:
    linear-gradient(rgba(46, 204, 113, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 204, 113, .025) 1px, transparent 1px),
    #08140e;
  background-size: 2rem 2rem;
  box-shadow: 0 1.2rem 2.8rem rgba(7, 28, 17, .12);
  touch-action: pan-y;
}
.ga-gallery__main {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.ga-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #08140e;
}
.ga-gallery__main:focus-visible {
  outline: 3px solid #65dc91;
  outline-offset: -5px;
}
.ga-gallery__nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  border: 1px solid rgba(159, 229, 185, .42);
  border-radius: .85rem;
  background: rgba(7, 21, 13, .84);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  box-shadow: 0 .65rem 1.6rem rgba(0, 0, 0, .22);
  transform: translateY(-50%);
  transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .2s ease;
}
.ga-gallery__nav--prev { left: 1rem; }
.ga-gallery__nav--next { right: 1rem; }
.ga-gallery__nav:hover,
.ga-gallery__nav:focus-visible {
  border-color: #65dc91;
  background: #10291b;
  color: #65dc91;
}
.ga-gallery__nav:active { transform: translateY(-50%) scale(.96); }
.ga-gallery__nav span { transform: translateY(-.08em); }
.ga-gallery__counter {
  position: absolute;
  z-index: 2;
  right: 1rem;
  bottom: 1rem;
  border: 1px solid rgba(159, 229, 185, .26);
  border-radius: .45rem;
  background: rgba(7, 21, 13, .84);
  padding: .3rem .55rem;
  color: #dff5e7;
  font-family: var(--f-mono);
  font-size: .7rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.ga-gallery__thumbs {
  display: flex;
  gap: .65rem;
  overflow-x: auto;
  padding: .8rem .1rem .55rem;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-color: #15803d #dce9e0;
  scrollbar-width: thin;
}
.ga-gallery__thumbs::-webkit-scrollbar { height: .42rem; }
.ga-gallery__thumbs::-webkit-scrollbar-track { border-radius: 1rem; background: #dce9e0; }
.ga-gallery__thumbs::-webkit-scrollbar-thumb { border-radius: 1rem; background: #15803d; }
.ga-gallery__thumb {
  position: relative;
  width: clamp(6.25rem, 17vw, 8rem);
  aspect-ratio: 16 / 9;
  flex: 0 0 auto;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: .7rem;
  background: #13241b;
  opacity: .72;
  scroll-snap-align: center;
  transition: border-color .2s ease, opacity .2s ease, transform .2s ease, box-shadow .2s ease;
}
.ga-gallery__thumb::after {
  position: absolute;
  inset: 0;
  background: rgba(7, 21, 13, .18);
  content: "";
  transition: opacity .2s ease;
}
.ga-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ga-gallery__thumb:hover,
.ga-gallery__thumb:focus-visible,
.ga-gallery__thumb.is-active {
  border-color: #2ecc71;
  opacity: 1;
  box-shadow: 0 .55rem 1.1rem rgba(21, 128, 61, .15);
  transform: translateY(-2px);
}
.ga-gallery__thumb:hover::after,
.ga-gallery__thumb:focus-visible::after,
.ga-gallery__thumb.is-active::after { opacity: 0; }

/* Design 04 — adaptive Bento Cartridge for games and Android applications. */
.ga-game-info,
.ga-requirements {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: clamp(3rem, 6vw, 5rem);
  border: 1px solid #cce8d5;
  background: #fff;
}
.ga-game-info {
  border-radius: 1.25rem;
  box-shadow: 0 1.25rem 3rem rgba(12, 39, 25, .06);
}
.ga-game-info::after,
.ga-requirements::after {
  position: absolute;
  z-index: 2;
  width: 4.5rem;
  height: .28rem;
  background: #2ecc71;
  content: "";
  inset-block-start: 0;
  inset-inline-end: clamp(1.25rem, 3vw, 2.25rem);
}
.ga-game-info__stage {
  display: grid;
  min-height: 27rem;
  direction: ltr;
  grid-template-columns: minmax(14rem, .72fr) minmax(0, 1.6fr);
}
.ga-game-info__visual,
.ga-game-info__content { min-width: 0; direction: rtl; }
.ga-game-info__visual {
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: 100%;
  align-items: flex-end;
  margin: 0;
  background: #0c2719;
  clip-path: polygon(0 0, calc(100% - 1.35rem) 0, 100% 1.35rem, 100% 100%, 0 100%);
}
.ga-game-info__visual::after {
  position: absolute;
  inset: 0;
  background: rgba(7, 21, 13, .28);
  content: "";
  pointer-events: none;
}
.ga-game-info__visual img {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: 50% 50%;
}
.ga-game-info__visual picture { position: absolute; inset: 0; }
.ga-game-info__fallback {
  position: absolute;
  z-index: 1;
  max-width: 88%;
  color: #fff;
  font-family: var(--f-head);
  font-size: clamp(2rem, 5vw, 4.6rem);
  font-weight: 700;
  line-height: 1.05;
  text-wrap: balance;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  unicode-bidi: plaintext;
}
.ga-game-info__visual figcaption {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 1.25rem;
  border: 1px solid rgba(46, 204, 113, .7);
  background: rgba(7, 21, 13, .9);
  padding: .65rem .85rem;
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
}
.ga-game-info__visual figcaption svg { color: #2ecc71; }
.ga-game-info__content { padding: clamp(1.35rem, 3vw, 2.25rem); }
.ga-game-info__head {
  margin-bottom: clamp(1.35rem, 3vw, 2rem);
  text-align: center;
}
.ga-game-info__eyebrow,
.ga-requirements__head > span {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .55rem;
  color: #15803d;
  font-size: .72rem;
  font-weight: 700;
}
.ga-game-info__eyebrow::before,
.ga-requirements__head > span::before {
  width: 1.75rem;
  height: 2px;
  background: #2ecc71;
  content: "";
}
.ga-game-info__title,
.ga-requirements__title {
  max-width: 48rem;
  color: #132719;
  font-family: var(--f-head);
  font-size: clamp(1.6rem, 3.7vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.2;
  text-wrap: balance;
  unicode-bidi: plaintext;
}
.ga-game-info__title,
.ga-requirements__title { margin-inline: auto; }
.ga-requirements__head { text-align: center; }
.ga-game-info__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(5.5rem, auto);
  align-content: start;
  gap: .75rem;
}
.ga-game-info__item {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 5.5rem;
  align-self: start;
  align-items: center;
  gap: .7rem;
  overflow: hidden;
  border: 1px solid #dce9e0;
  background: #f8fbf9;
  padding: .8rem;
  clip-path: polygon(.65rem 0, 100% 0, 100% calc(100% - .65rem), calc(100% - .65rem) 100%, 0 100%, 0 .65rem);
}
.ga-game-info__item::after {
  position: absolute;
  width: 2.25rem;
  height: .18rem;
  background: #2ecc71;
  content: "";
  inset-block-start: 0;
  inset-inline-end: 0;
}
.ga-game-info__item--wide {
  min-height: 5.25rem;
  grid-column: 1 / -1;
}
.ga-game-info__item--center {
  width: calc((100% - .75rem) / 2);
  grid-column: 1 / -1;
  justify-self: center;
}
.ga-game-info__icon {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  place-items: center;
  background: #e9f8ee;
  color: #15803d;
  clip-path: polygon(.55rem 0, 100% 0, 100% calc(100% - .55rem), calc(100% - .55rem) 100%, 0 100%, 0 .55rem);
}
.ga-game-info__item > div { min-width: 0; }
.ga-game-info dt {
  margin-bottom: .2rem;
  color: #627067;
  font-size: .7rem;
  font-weight: 600;
}
.ga-game-info dd {
  overflow-wrap: anywhere;
  color: #1a2e1a;
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.45;
  unicode-bidi: plaintext;
}

/* Requirements continue the cartridge language while preserving semantic DL markup. */
.ga-requirements {
  border-radius: 1.1rem;
  background: #f5faf7;
  padding: clamp(1.25rem, 3vw, 2rem);
}
.ga-requirements__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  border-bottom: 1px solid #d6e8dc;
  padding-bottom: 1.1rem;
}
.ga-requirements__head > span { flex: 0 0 auto; margin-bottom: .3rem; }
.ga-requirements__title { font-size: clamp(1.45rem, 3vw, 2.2rem); }
.ga-specs { display: grid; gap: .5rem; }
.ga-specs__columns {
  display: grid;
  grid-template-columns: minmax(10.5rem, 13rem) repeat(2, minmax(0, 1fr));
  gap: .55rem;
}
.ga-specs__columns > span:not(:first-child) {
  background: #15803d;
  padding: .65rem 1rem;
  color: #fff;
  text-align: center;
  font-size: .78rem;
  font-weight: 700;
  clip-path: polygon(.6rem 0, 100% 0, 100% calc(100% - .6rem), calc(100% - .6rem) 100%, 0 100%, 0 .6rem);
}
.ga-specs__columns > span:nth-child(2) { background: #0c2719; }
.ga-specs__row {
  display: grid;
  grid-template-columns: minmax(10.5rem, 13rem) minmax(0, 1fr);
  gap: .55rem;
}
.ga-specs__row dt,
.ga-specs__values > span { min-height: 3.5rem; }
.ga-specs__row dt {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: #0c2719;
  padding: .75rem .9rem;
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  clip-path: polygon(.6rem 0, 100% 0, 100% calc(100% - .6rem), calc(100% - .6rem) 100%, 0 100%, 0 .6rem);
}
.ga-specs__row dt > span {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  place-items: center;
  color: #2ecc71;
}
.ga-specs__values {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: .55rem;
}
.ga-specs__values--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ga-specs__values > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  border: 1px solid #d8e6dc;
  background: #fff;
  padding: .65rem 1rem;
  color: #273a2d;
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-align: center;
  unicode-bidi: plaintext;
  clip-path: polygon(.55rem 0, 100% 0, 100% calc(100% - .55rem), calc(100% - .55rem) 100%, 0 100%, 0 .55rem);
}
.ga-specs__values small {
  margin-bottom: .15rem;
  color: #708078;
  font-size: .66rem;
  font-weight: 700;
}
.ga-specs__values--two small { display: none; }

/* Left sidebar in RTL: popular games, site sections and social links. */
.ga-sticky { top: 6.5rem; }
.ga-side-panel {
  overflow: hidden;
  border: 1px solid #d6eadc;
  border-radius: 1.35rem;
  background: #fff;
}
.ga-side-panel__head {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) 2rem;
  align-items: center;
  gap: .75rem;
  border-bottom: 1px solid #dce9e0;
  padding: 1rem 1.1rem;
}
.ga-side-panel__head::before {
  grid-column: 1;
  grid-row: 1;
  content: "";
}
.ga-side-panel__title {
  grid-column: 2;
  grid-row: 1;
  color: inherit;
  font-family: var(--f-head);
  font-size: 1rem;
  font-weight: 700;
}
.ga-side-panel__head > span,
.ga-side-panel__head > svg {
  grid-column: 3;
  grid-row: 1;
  justify-self: center;
  flex: 0 0 auto;
  color: #15803d;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
}
.ga-side-popular {
  position: relative;
  isolation: isolate;
  border-color: #214b33;
  border-radius: 1.55rem;
  background: #08140e;
  color: #fff;
  box-shadow: 0 1.35rem 3rem rgba(7, 28, 17, .14);
}
.ga-side-popular::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(46, 204, 113, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 204, 113, .035) 1px, transparent 1px);
  background-size: 2.25rem 2.25rem;
  content: "";
  pointer-events: none;
}
.ga-side-popular .ga-side-panel__head {
  min-height: 5.1rem;
  border-color: #214b33;
  padding: 1.25rem 1.3rem;
}
.ga-side-popular .ga-side-panel__title {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -.015em;
}
.ga-side-popular .ga-side-panel__head > span {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: #65dc91;
  font-size: .68rem;
  letter-spacing: .14em;
}
.ga-side-popular .ga-side-panel__head > span::after {
  width: 1.7rem;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: .7;
}
.ga-side-popular__list li { position: relative; }
.ga-side-popular__list li + li { border-top: 1px solid #1b3f2a; }
.ga-side-popular__list a {
  display: grid;
  min-height: 7.25rem;
  grid-template-columns: 2.1rem 5.7rem minmax(0, 1fr);
  align-items: center;
  gap: .85rem;
  padding: 1rem 1.05rem;
  color: #e4f5ea;
  text-decoration: none;
  transition: background-color .22s ease, color .22s ease, transform .22s ease;
}
.ga-side-popular__list li:first-child a { background: rgba(46, 204, 113, .055); }
.ga-side-popular__list a:hover,
.ga-side-popular__list a:focus-visible {
  background: #10291b;
  color: #fff;
  transform: translateX(-2px);
}
.ga-side-popular__rank {
  display: grid;
  align-self: stretch;
  place-items: center;
  border-inline-start: 1px solid #245137;
  color: #65dc91;
  font-family: var(--f-mono);
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: .04em;
}
.ga-side-popular__media {
  display: grid;
  width: 5.7rem;
  aspect-ratio: 16 / 10;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(159, 229, 185, .13);
  border-radius: .8rem;
  background: #173d28;
  color: #9fe5b9;
}
.ga-side-popular__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.ga-side-popular__list a:hover .ga-side-popular__media img,
.ga-side-popular__list a:focus-visible .ga-side-popular__media img { transform: scale(1.055); }
.ga-side-popular__body { display: grid; min-width: 0; gap: .65rem; }
.ga-side-popular__body strong {
  display: -webkit-box;
  overflow: hidden;
  color: #f4fbf6;
  font-family: var(--f-head);
  font-size: .87rem;
  font-weight: 700;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.ga-side-popular__body small {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  color: #91b49e;
  font-size: .68rem;
}
.ga-side-popular__body small > span:first-child { display: inline-flex; align-items: center; gap: .35rem; }
.ga-side-popular__arrow {
  display: grid;
  width: 1.65rem;
  height: 1.65rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #28583c;
  border-radius: .45rem;
  color: #65dc91;
  transition: border-color .2s ease, background-color .2s ease;
}
.ga-side-popular__list a:hover .ga-side-popular__arrow,
.ga-side-popular__list a:focus-visible .ga-side-popular__arrow { border-color: #65dc91; background: rgba(46, 204, 113, .1); }

.ga-side-genres {
  border-color: #173d28;
  background: #0c2719;
  color: #fff;
}
.ga-side-genres .ga-side-panel__head { border-color: #1d4730; }
.ga-side-genres .ga-side-panel__title { color: #fff; }
.ga-side-genres .ga-side-panel__head svg { color: #2ecc71; }
.ga-side-genres ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .15rem 1rem;
  padding: .9rem 1.1rem 1.1rem;
}
.ga-side-genres a {
  display: block;
  overflow: hidden;
  padding: .5rem 0;
  color: #b9d5c2;
  font-size: .75rem;
  font-weight: 500;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .2s ease, transform .2s ease;
}
.ga-side-genres a::before { margin-inline-end: .45rem; color: #2ecc71; content: "·"; }
.ga-side-genres a:hover,
.ga-side-genres a:focus-visible { color: #fff; transform: translateX(-2px); }

.ga-side-social { padding-bottom: 1.1rem; }
.ga-side-social ul {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  padding: 1rem 1.1rem 0;
}
.ga-side-social li { flex: 0 0 auto; }
.ga-side-social li a {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border: 1px solid #dce9e0;
  border-radius: .8rem;
  background: #f4f8f5;
  color: #273a2d;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .2s ease;
}
.ga-side-social li a:hover,
.ga-side-social li a:focus-visible {
  border-color: #2ecc71;
  background: #e9f8ee;
  color: #15803d;
  transform: translateY(-2px);
}
.ga-side-social__icon { width: 1.25rem; height: 1.25rem; }
.ga-side-social__setup {
  display: block;
  margin: 1rem 1.1rem 0;
  color: #15803d;
  font-size: .75rem;
  font-weight: 600;
}

@media (max-width: 1180px) {
  .ga-game-info__stage { grid-template-columns: minmax(13rem, .65fr) minmax(0, 1.6fr); }
}
@media (max-width: 1023px) {
  .ga-game__layout { grid-template-columns: minmax(0, 1fr); }
  .ga-side-popular,
  .ga-side-genres { display: none; }
  .ga-sticky {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 1.25rem;
  }
  .ga-sticky > :not([hidden]) ~ :not([hidden]) { margin-top: 0; }
}
@media (max-width: 820px) {
  .ga-game-info__stage { grid-template-columns: minmax(0, 1fr); }
  .ga-game-info__visual {
    min-height: 17rem;
    aspect-ratio: 16 / 7;
    clip-path: polygon(0 0, calc(100% - 1.2rem) 0, 100% 1.2rem, 100% 100%, 0 100%);
  }
  .ga-requirements__head { display: block; }
  .ga-specs__columns { display: none; }
  .ga-specs__values--two small { display: block; }
}
@media (min-width: 821px) {
  .ga-game-info__visual img { object-position: var(--ga-info-position, 50% 50%); }
}
@media (max-width: 680px) {
  .ga-gallery__title { font-size: 1.28rem; }
  .ga-gallery__title::before,
  .ga-gallery__title::after { width: 1.65rem; }
  .ga-gallery__stage { border-radius: .8rem; }
  .ga-gallery__nav { width: 2.7rem; height: 2.7rem; border-radius: .7rem; font-size: 1.7rem; }
  .ga-gallery__nav--prev { left: .55rem; }
  .ga-gallery__nav--next { right: .55rem; }
  .ga-gallery__counter { right: .55rem; bottom: .55rem; }
  .ga-gallery__thumb { width: 5.75rem; border-radius: .55rem; }
  .ga-game-info { border-radius: .9rem; }
  .ga-requirements { border-radius: .9rem; padding: 1rem; }
  .ga-game-info__content { padding: 1.1rem; }
  .ga-game-info__grid { gap: .6rem; }
  .ga-game-info__item--center { width: calc((100% - .6rem) / 2); }
  .ga-game-info__item { min-height: 5.25rem; }
  .ga-game-info__icon { width: 2.5rem; height: 2.5rem; }
  .ga-specs__row { grid-template-columns: minmax(0, 1fr); }
  .ga-sticky { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .ga-game-info__visual { min-height: 14rem; aspect-ratio: 4 / 3; }
  .ga-game-info__grid { grid-template-columns: minmax(0, 1fr); }
  .ga-game-info__item--center { width: 100%; grid-column: auto; }
  .ga-specs__values--two { grid-template-columns: minmax(0, 1fr); }
}
