/* =====================================================================
   Scratch Games Hub — dark layout layer (loaded after main.css / media.css)
   Header + sidebar, home blocks (My Games, Trending, strips), game cards.
   ===================================================================== */

:root {
  --sgh-bg: #0c4592;
  --sgh-panel: #0a3d84;
  --sgh-card: #1453a6;
  --sgh-card-2: #1a5eb6;
  --sgh-line: #2a6ac0;
  --sgh-line-2: #3d7dd2;
  --sgh-ink: #ffffff;
  --sgh-ink-2: #dbe8ff;
  --sgh-muted: #a8c6f2;
  --sgh-or: #ff9f1a;
  --sgh-or-2: #ffb444;
  --sgh-vi: #7c5cff;
  --sgh-top-h: 64px;
  --sgh-side-w: 72px;      /* collapsed icon rail */
  --sgh-side-open: 256px;  /* width on hover */
  --sgh-r: 14px;
  color-scheme: dark;
}

[hidden] { display: none !important; }
html { background: var(--sgh-bg); scroll-padding-top: calc(var(--sgh-top-h) + 12px); }
body.sgh { background: var(--sgh-bg); color: var(--sgh-ink-2); }
.sgh-skip { position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--sgh-or); color: #111; padding: 8px 14px; border-radius: 0 0 10px 0; }
.sgh-skip:focus { left: 0; }

/* ---------------------------------------------------------------- header */
.sgh-top {
  position: sticky; top: 0; z-index: 300;
  height: var(--sgh-top-h);
  display: flex; align-items: center; gap: 18px;
  padding: 0 20px;
  background: rgba(10, 61, 132, .94);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--sgh-line);
}
.sgh-burger {
  display: none; width: 40px; height: 40px; flex: none;
  border: 1px solid var(--sgh-line); border-radius: 12px;
  background: var(--sgh-card); color: var(--sgh-ink); cursor: pointer;
  align-items: center; justify-content: center;
}
.sgh-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.sgh-logo__mark {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--sgh-or), #ff5f3a); color: #1a0f05;
  box-shadow: 0 6px 18px rgba(255, 159, 26, .28);
}
.sgh-logo__text { font-family: var(--f-display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: var(--sgh-ink); white-space: nowrap; }
.sgh-logo__text b { color: var(--sgh-or); font-weight: 800; }
.sgh-logo:hover .sgh-logo__text { color: #fff; }

.sgh-search { position: relative; flex: 1 1 auto; max-width: 520px; }
.sgh-search__ico { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--sgh-muted); pointer-events: none; }
.sgh .sgh-search input {
  width: 100%; height: 42px; padding: 0 16px 0 40px;
  border-radius: 999px; border: 1px solid var(--sgh-line);
  background: var(--sgh-card); color: var(--sgh-ink); font-size: 14px; line-height: 42px;
}
.sgh .sgh-search input:focus { background: var(--sgh-card-2); border-color: var(--sgh-or); box-shadow: 0 0 0 4px rgba(255, 159, 26, .14); }

.sgh-top__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.sgh-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 12px;
  font-family: var(--f-display); font-weight: 700; font-size: 14px;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.sgh-btn--ghost { color: var(--sgh-ink); background: var(--sgh-card); border: 1px solid var(--sgh-line); }
.sgh-btn--ghost:hover { color: #fff; border-color: var(--sgh-or); background: var(--sgh-card-2); }
.sgh-btn--play { background: var(--sgh-or); color: #1a0f05; border: 0; box-shadow: 0 8px 22px rgba(255, 159, 26, .32); }
.sgh-favlink {
  position: relative; width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 50%; color: var(--sgh-ink); background: var(--sgh-card); border: 1px solid var(--sgh-line);
}
.sgh-favlink:hover { color: #ff5d7a; border-color: #ff5d7a; }
.sgh-favlink__count {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--sgh-or); color: #1a0f05; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center;
}

/* --------------------------------------------------------------- sidebar */
.sgh-side {
  position: fixed; z-index: 250;
  top: var(--sgh-top-h); left: 0; bottom: 0; width: var(--sgh-side-w);
  overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  padding: 14px 12px 28px;
  background: var(--sgh-panel); border-right: 1px solid var(--sgh-line);
  scrollbar-width: thin; scrollbar-color: var(--sgh-line-2) transparent;
}
.sgh-side::-webkit-scrollbar { width: 6px; }
.sgh-side::-webkit-scrollbar-thumb { background: var(--sgh-line-2); border-radius: 3px; }
.sgh-side__group { display: flex; flex-direction: column; gap: 2px; }
.sgh-side__cap {
  margin: 18px 10px 6px; font-size: 11px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--sgh-muted); white-space: nowrap;
}
.sgh-side__item {
  display: flex; align-items: center; gap: 11px;
  min-height: 42px; padding: 6px 10px; border-radius: 11px;
  color: var(--sgh-ink-2); text-decoration: none; font-size: 14px; font-weight: 500;
  white-space: nowrap; transition: background .15s var(--ease), color .15s var(--ease);
}
.sgh-side__item span { overflow: hidden; text-overflow: ellipsis; flex: 1 1 auto; }
.sgh-side__item em { font-style: normal; font-size: 11px; color: var(--sgh-muted); margin-left: auto; }
.sgh-side__item:hover { background: var(--sgh-card); color: #fff; }
.sgh-side__item.is-active { background: var(--sgh-card-2); color: #fff; font-weight: 700; box-shadow: inset 3px 0 0 var(--sgh-or); }
.sgh-ico {
  --h: 28;
  flex: none; width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center; font-style: normal; font-size: 15px; line-height: 1;
  background: hsla(var(--h), 85%, 60%, .16);
  color: hsl(var(--h), 90%, 70%);
}
.sgh-ico--img { background: var(--sgh-card-2); overflow: hidden; }
.sgh-ico--img img { width: 100%; height: 100%; object-fit: cover; display: block; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; }
.sgh-side__game .sgh-ico { border-radius: 8px; }
.sgh-scrim { position: fixed; inset: 0; z-index: 240; background: rgba(0, 0, 0, .55); }

/* page offset for the fixed sidebar */
body.sgh > .page { margin-left: var(--sgh-side-w); padding: 0; }
body.sgh > .page > .container { max-width: 1440px; padding: 0 28px; margin: 0; width: auto; }
body.sgh > .page .page,
body.sgh > .page .page > .container { max-width: none; width: auto; padding: 0; margin: 0; }
body.sgh .main { padding: 24px 0 10px; margin-bottom: 0; }
body.sgh .main.single,
body.sgh .main.category { padding-top: 24px; }

/* ---------------------------------------------------------------- home */
.sgh-hero { margin: 4px 0 6px; }
.sgh .sgh-hero__title { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; font-weight: 800; color: var(--sgh-ink); margin: 0; }
.sgh-hero__intro { margin: 8px 0 0; max-width: 780px; color: var(--sgh-muted); font-size: 15px; line-height: 1.55; }

.sgh-sec { margin-top: 30px; }
.sgh-sec__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; min-height: 36px; }
.sgh .sgh-sec__title {
  display: flex; align-items: center; gap: 10px; margin: 0;
  font-size: 21px; font-weight: 800; color: var(--sgh-ink); letter-spacing: -.015em;
}
.sgh-sec__icon { font-size: 19px; }
.sgh-arrows { margin-left: auto; display: flex; gap: 6px; }
.sgh-arrow {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; cursor: pointer;
  background: var(--sgh-card); color: var(--sgh-ink); border: 1px solid var(--sgh-line);
  transition: background .15s, border-color .15s, opacity .15s;
}
.sgh-arrow:hover:not(:disabled) { border-color: var(--sgh-or); color: var(--sgh-or); }
.sgh-arrow:disabled { opacity: .35; cursor: default; }
.no-scroll .sgh-arrows { display: none; }

/* My Games */
.sgh-my { background: var(--sgh-panel); border: 1px solid var(--sgh-line); border-radius: 18px; padding: 16px 16px 6px; }
.sgh-my .sgh-sec__title { font-size: 17px; }
.sgh-tabs { display: flex; gap: 6px; }
.sgh-tab {
  height: 34px; padding: 0 14px; border-radius: 10px; cursor: pointer;
  background: var(--sgh-card); color: var(--sgh-muted); border: 1px solid var(--sgh-line);
  font: 600 13px/1 var(--f-body);
}
.sgh-tab:hover { color: var(--sgh-ink); }
.sgh-tab.is-on { background: var(--sgh-or); border-color: var(--sgh-or); color: #1a0f05; font-weight: 800; }
.sgh-tab__n:not(:empty)::before { content: "· "; }
.sgh-empty { margin: 4px 0 12px; color: var(--sgh-muted); font-size: 14px; }
.sgh-empty__heart { color: #ff5d7a; }

/* strips (carousels) */
.sgh-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 168px; gap: 14px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 2px 2px 12px; margin: 0 -2px;
  scrollbar-width: none;
}
.sgh-track::-webkit-scrollbar { display: none; }
.sgh-track > .catalog__list { scroll-snap-align: start; }

/* Trending — bento */
.sgh-bento { display: grid; gap: 14px; height: 360px; }
.sgh-bento--5 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.sgh-bento--5 > :first-child { grid-row: span 2; }
.sgh-bento--4 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.sgh-bento--4 > :first-child { grid-row: span 2; }
.sgh-bento--4 > :last-child { grid-column: span 2; }
.sgh-bento--3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.sgh-bento--3 > :first-child { grid-row: span 2; }
.sgh-bento--2 { grid-template-columns: 2fr 1fr; height: 300px; }
.sgh-bento--1 { grid-template-columns: 1fr; height: 300px; }

.sgh-tile {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 18px; background: #093a7c; border: 1px solid var(--sgh-line);
  text-decoration: none; color: #fff; min-height: 0;
  transition: transform .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.sgh-tile:hover { transform: translateY(-3px); border-color: rgba(255, 159, 26, .6); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); color: #fff; }
.sgh-tile__bg {
  position: absolute; z-index: -2; inset: -18%; width: 136%; height: 136%; max-width: none;
  object-fit: cover; filter: blur(28px) saturate(1.5) brightness(.62); transform: translateZ(0);
}
.sgh-tile::after { /* readability gradient */
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .78) 100%);
}
.sgh-tile:not(.sgh-tile--big) { justify-content: flex-start; padding-top: 14px; }
.sgh-tile__thumb {
  width: 84px; height: 84px; object-fit: cover; border-radius: 16px; margin: 0;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .08);
  transition: transform .25s var(--ease);
}
.sgh-tile:hover .sgh-tile__thumb { transform: scale(1.05); }
.sgh-tile__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.sgh-tile__tag {
  align-self: flex-start; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: #1a0f05; background: var(--sgh-or); padding: 3px 7px; border-radius: 6px;
}
.sgh-tile__name { font-family: var(--f-display); font-weight: 700; font-size: 15px; line-height: 1.2; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sgh-tile__desc { font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .82); max-width: 460px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* big tile — fallback: square cover at native size + text beside it */
.sgh-tile--big { flex-direction: row; justify-content: flex-start; gap: 28px; padding: 28px 32px; }
.sgh-tile--big .sgh-tile__thumb { width: 190px; height: 190px; border-radius: 22px; margin: 0; flex: none; }
.sgh-tile--big .sgh-tile__body { position: static; padding: 0; gap: 8px; min-width: 0; }
.sgh-tile--big .sgh-tile__name { font-size: clamp(24px, 2.4vw, 34px); font-weight: 800; white-space: normal; letter-spacing: -.02em; }
.sgh-tile--big .sgh-btn--play { align-self: flex-start; margin-top: 8px; }
.sgh-tile--big:hover .sgh-btn--play { background: var(--sgh-or-2); }
.sgh-tile--big::after { background: linear-gradient(90deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .15) 100%); }

/* big tile — with "Большая картинка" */
.sgh-tile__art { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.sgh-tile.has-art:hover .sgh-tile__art { transform: scale(1.04); }
.sgh-tile--big.has-art { align-items: flex-end; padding: 26px 30px; }
.sgh-tile--big.has-art::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .85) 100%); }

/* ------------------------------------------------------- game cards (site-wide) */
.sgh .games_block .catalog,
.sgh .main.category > .catalog,
.sgh .main.search .catalog .catalog,
.sgh .catalog.sgh-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; justify-content: stretch;
}
.sgh .catalog__list,
.sgh .catalog__list:hover {
  width: auto; height: auto; margin: 0; padding: 0;
  border-radius: var(--sgh-r); background: var(--sgh-card); border: 1px solid var(--sgh-line);
  overflow: hidden; box-shadow: none;
}
.sgh .catalog__list { transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease); }
.sgh .catalog__list:hover { transform: translateY(-4px); border-color: rgba(255, 159, 26, .55); box-shadow: 0 14px 30px rgba(0, 0, 0, .45); }
.sgh .game-card { width: auto; height: auto; margin: 0; position: relative; }
.sgh .game-card__thumb { margin: 0; border-radius: 0; aspect-ratio: 1 / 1; overflow: hidden; position: relative; background: var(--sgh-card-2); }
.sgh .game-card__thumb a { display: block; width: 100%; height: 100%; }
.sgh .game-card__thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0;
  transition: transform .3s var(--ease);
}
.sgh .catalog__list:hover .game-card__thumb img { transform: scale(1.06); }
.sgh .game_body { padding: 0; border: 0; background: none; }
.sgh .game-card__name { margin: 0; padding: 9px 11px 10px; text-align: left; height: auto; }
.sgh .game-card__name a {
  display: block; font-family: var(--f-display); font-size: 13.5px; line-height: 1.25; font-weight: 600;
  color: var(--sgh-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sgh .catalog__list:hover .game-card__name a { color: #fff; }

/* ♥ favorite button on cards */
.sgh-heart {
  position: absolute; top: 7px; right: 7px; z-index: 5;
  width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(6, 40, 92, .62); color: #fff;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; transform: scale(.85);
  transition: opacity .15s, transform .15s, color .15s, background .15s;
}
.catalog__list:hover .sgh-heart, .sgh-heart:focus-visible, .sgh-heart.is-on { opacity: 1; transform: scale(1); }
.sgh-heart:hover { background: rgba(6, 40, 92, .85); }
.sgh-heart.is-on { color: #ff5d7a; }
.sgh-heart.pop { animation: sgh-pop .35s var(--ease); }
@keyframes sgh-pop { 0% { transform: scale(.7); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
@media (hover: none) { .sgh-heart { opacity: 1; transform: none; } }

/* search page: outer wrapper is a plain block */
.sgh .main.search > .content { max-width: none; }
.sgh .main.search > .content > .catalog { display: block; }

/* empty filler cells from the old flex layout are not needed with the grid */
.sgh .catalog__list.no_style { display: none; }
.sgh .main.category .category_name, .sgh .main.search h1 { margin: 10px 0 18px; color: var(--sgh-ink); }

/* catalog title, pagination, text, tags */
.sgh .games_block .catalog__title {
  display: block; margin: 0 0 14px; padding: 0; text-align: left; background: none;
  font-family: var(--f-display); font-size: 21px; font-weight: 800; color: var(--sgh-ink); letter-spacing: -.015em;
}
.sgh .games_block .catalog__title span { color: var(--sgh-or); background: none; -webkit-text-fill-color: currentColor; }
.sgh-home > #recent > .catalog { display: block; }
.sgh .pagination-container { float: none; margin: 22px 0 6px; }
.sgh-adv { margin-top: 26px; text-align: center; }
.sgh-text { margin-top: 26px; }

/* favorite button on game pages */
.sgh-favbtn {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; margin-right: 10px;
  border-radius: 10px; border: 1px solid var(--sgh-line-2); background: var(--sgh-card-2); color: var(--sgh-ink);
  font: 600 13px/1 var(--f-body); cursor: pointer;
}
.sgh-favbtn:hover { border-color: #ff5d7a; }
.sgh-favbtn.is-on { color: #ff5d7a; border-color: #ff5d7a; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1280px) {
  .sgh-random__label { display: none; }
  .sgh-random { padding: 0 12px; }
}

/* desktop + tablet: icon rail; the menu slides out over the content on hover (like topfreegames.io) */
@media (min-width: 681px) {
  .sgh-side {
    padding: 12px 10px 24px;
    scrollbar-width: none;
    transition: width .22s var(--ease) .06s, box-shadow .22s var(--ease) .06s;
  }
  .sgh-side::-webkit-scrollbar { display: none; }
  .sgh-side:hover, .sgh-side:focus-within { width: var(--sgh-side-open); box-shadow: 24px 0 60px rgba(0, 0, 0, .6); scrollbar-width: thin; }
  .sgh-side:not(:hover):not(:focus-within) .sgh-side__item span,
  .sgh-side:not(:hover):not(:focus-within) .sgh-side__item em { display: none; }
  .sgh-side:not(:hover):not(:focus-within) .sgh-side__item { justify-content: center; padding: 6px 0; }
  .sgh-side:not(:hover):not(:focus-within) .sgh-side__cap { margin: 12px 8px; font-size: 0; height: 1px; background: var(--sgh-line); }
  .sgh-side:not(:hover):not(:focus-within) .sgh-side__item.is-active { box-shadow: none; }
  .sgh-side__item span, .sgh-side__item em { animation: sgh-fade .2s var(--ease); }
  @keyframes sgh-fade { from { opacity: 0; } to { opacity: 1; } }
}

/* tablet content tweaks */
@media (max-width: 1099px) and (min-width: 681px) {
  body.sgh > .page > .container { padding: 0 22px; }
  .sgh-bento { height: 320px; }
  .sgh-tile--big .sgh-tile__thumb { width: 150px; height: 150px; }
  .sgh-tile:not(.sgh-tile--big) { padding-top: 10px; }
  .sgh-tile:not(.sgh-tile--big) .sgh-tile__thumb { width: 64px; height: 64px; border-radius: 13px; }
  .sgh-tile--big { gap: 20px; padding: 22px; }
}

/* phone: off-canvas sidebar */
@media (max-width: 680px) {
  :root { --sgh-top-h: 58px; }
  .sgh-top { gap: 10px; padding: 0 12px; flex-wrap: wrap; height: auto; min-height: var(--sgh-top-h); padding-bottom: 10px; padding-top: 9px; }
  .sgh-burger { display: inline-flex; }
  .sgh-logo { min-width: 0; }
  .sgh-logo__mark { width: 32px; height: 32px; }
  .sgh-logo__text { font-size: 17px; }
  .sgh-search { order: 5; flex: 1 0 100%; max-width: none; }
  .sgh-top__actions { gap: 8px; }
  .sgh-random { height: 38px; padding: 0 11px; }
  .sgh-favlink { width: 38px; height: 38px; }

  .sgh-side {
    top: 0; width: 284px; max-width: 86vw; z-index: 400;
    transform: translateX(-102%); transition: transform .25s var(--ease);
    box-shadow: 20px 0 50px rgba(0, 0, 0, .6); padding-top: 18px;
  }
  body.sgh-side-open .sgh-side { transform: none; }
  body.sgh-side-open { overflow: hidden; }
  .sgh-scrim { z-index: 390; }

  body.sgh > .page { margin-left: 0; }
  body.sgh > .page > .container { padding: 0 14px; }
  body.sgh .main { padding-top: 16px; }

  .sgh-sec { margin-top: 24px; }
  .sgh .sgh-sec__title { font-size: 18px; }
  .sgh-my { padding: 12px 12px 4px; border-radius: 14px; }
  .sgh-my .sgh-sec__head { flex-wrap: wrap; }
  .sgh-my .sgh-arrows { display: none; }
  .sgh-arrows { display: none; }
  .sgh-track { grid-auto-columns: 128px; gap: 10px; }

  .sgh .games_block .catalog,
  .sgh .main.category > .catalog,
  .sgh .main.search .catalog .catalog,
  .sgh .catalog.sgh-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
  .sgh .game-card__name { padding: 7px 8px 8px; }
  .sgh .game-card__name a { font-size: 12.5px; }

  .sgh-bento, .sgh-bento--2, .sgh-bento--1 { height: auto; grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .sgh-bento > :first-child { grid-column: 1 / -1; grid-row: auto; }
  .sgh-bento--4 > :last-child { grid-column: auto; }
  .sgh-bento--2 > :last-child, .sgh-bento--4 > :last-child { grid-column: 1 / -1; }
  .sgh-tile { aspect-ratio: 1 / 1; }
  .sgh-tile--big { aspect-ratio: auto; min-height: 180px; padding: 18px; gap: 16px; }
  .sgh-tile--big.has-art { aspect-ratio: 16 / 10; }
  .sgh-tile--big .sgh-tile__thumb { width: 112px; height: 112px; border-radius: 16px; }
  .sgh-tile--big .sgh-tile__name { font-size: 22px; }
  .sgh-tile--big .sgh-tile__desc { display: none; }
  .sgh-tile--big .sgh-btn--play { height: 38px; padding: 0 14px; }
  .sgh-tile:not(.sgh-tile--big) { padding-top: 16px; }
  .sgh-tile__thumb { width: 78px; height: 78px; }
}

@media (max-width: 380px) {
  .sgh-random { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .sgh-tile, .sgh-tile__thumb, .sgh-tile__art, .sgh .catalog__list, .sgh .game-card__thumb img, .sgh-side { transition: none !important; }
  .sgh-heart.pop { animation: none; }
}

/* game page: side columns (left_games / right_games) — equal width, small gaps */
@media (min-width: 1025px) {
  .sgh .side_adv .catalog__list { width: 132px; margin: 0 0 10px; }
}
@media (max-width: 1024px) {
  .sgh .side_adv { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; width: 100%; }
}

/* =====================================================================
   Game page (single.php) — topfreegames.io-style layout
   ===================================================================== */
.sgh-game__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.sgh-game__main { min-width: 0; }
.sgh-game__side { position: sticky; top: calc(var(--sgh-top-h) + 16px); }
.sgh-card { background: var(--sgh-panel); border: 1px solid var(--sgh-line); border-radius: 18px; padding: 20px 22px; margin-top: 18px; }

/* player */
.sgh-player.main__content { display: block; }
.sgh-player .game-offer__window {
  background: var(--sgh-panel); border: 1px solid var(--sgh-line); border-radius: 20px;
  overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); padding: 0; margin: 0;
}
.sgh-game .sgh-player .player-overlay {
  position: relative; isolation: isolate; overflow: hidden;
  width: 100%; min-height: 0; aspect-ratio: 16 / 10; max-height: calc(100vh - 210px);
  display: flex; align-items: center; justify-content: center; flex-wrap: nowrap;
  background: #093a7c; animation: none; box-shadow: none; border-radius: 0; font-size: inherit;
}
.sgh-game .sgh-player .player-overlay::before { content: ""; position: absolute; inset: 0; z-index: -1; animation: none; background: radial-gradient(60% 70% at 50% 45%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .55) 100%); }
.sgh-game .sgh-player .player-overlay::after { display: none; }
.sgh-player__bg {
  position: absolute; z-index: -2; inset: -15%; width: 130%; height: 130%; max-width: none;
  object-fit: cover; filter: blur(34px) saturate(1.5) brightness(.55); transform: translateZ(0);
}
.sgh-player__center { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 20px; text-align: center; }
.sgh-game .sgh-player__cover img {
  width: 150px; height: 150px; object-fit: cover; border-radius: 26px; display: block;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .1); animation: none;
}
.sgh-game .sgh-player .player-overlay > .player-overlay-name,
.sgh-game .sgh-player__name {
  position: static; top: auto; bottom: auto; left: auto;
  font-family: var(--f-display); font-weight: 800; font-size: clamp(20px, 2.2vw, 28px); color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .55); letter-spacing: -.01em;
}
.sgh-game #js-player-start.sgh-player__play {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: auto; min-width: 190px; height: 56px; padding: 0 34px; margin: 4px 0 0;
  border-radius: 999px; background: var(--sgh-or); color: #1a0f05;
  font-family: var(--f-display); font-size: 19px; font-weight: 800; text-decoration: none;
  box-shadow: 0 12px 30px rgba(255, 159, 26, .4), 0 0 0 8px rgba(255, 159, 26, .14);
  animation: sgh-pulse 2.4s ease-in-out infinite; transition: transform .18s var(--ease), background .18s;
}
.sgh-game #js-player-start.sgh-player__play:hover { background: var(--sgh-or-2); transform: scale(1.04); color: #1a0f05; }
.sgh-game #js-player-start svg { width: 20px; height: 20px; margin: 0; }
@keyframes sgh-pulse { 0%, 100% { box-shadow: 0 12px 30px rgba(255, 159, 26, .4), 0 0 0 6px rgba(255, 159, 26, .16); } 50% { box-shadow: 0 12px 30px rgba(255, 159, 26, .4), 0 0 0 14px rgba(255, 159, 26, 0); } }

.sgh-game .sgh-player .game-offer__window__frame { margin: 0; min-height: 0; aspect-ratio: 16 / 10; max-height: calc(100vh - 210px); width: 100%; background: #000; }
.sgh-game .sgh-player .game-offer__window__frame iframe { width: 100% !important; height: 100% !important; border: 0; border-radius: 0; display: block; }
.sgh-game .game-offer__window__frame.fullscreen,
.sgh-game .game-offer__window__frame:fullscreen { aspect-ratio: auto; max-height: none; width: 100%; height: 100%; }

/* action bar under the player */
.sgh-game .sgh-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  width: auto; margin: 0; padding: 12px 14px; border-radius: 0;
  background: var(--sgh-card); border-top: 1px solid var(--sgh-line); box-shadow: none;
}
.sgh-bar__game { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sgh-bar__thumb { width: 44px; height: 44px; border-radius: 11px; object-fit: cover; flex: none; }
.sgh-bar__title { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.sgh-bar__title strong { font-family: var(--f-display); font-size: 16px; color: var(--sgh-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sgh-bar__title a { font-size: 12.5px; color: var(--sgh-muted); text-decoration: none; }
.sgh-bar__title a:hover { color: var(--sgh-or); }
.sgh-bar__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sgh-bar__rating { display: flex; align-items: center; margin-right: 6px; font-size: 12px; color: var(--sgh-muted); }
.sgh-game .sgh-ibtn,
.sgh-game .sgh-ibtn:hover,
.sgh-game .fullscreen.btn-fullscreen {
  visibility: visible; position: static; width: auto; height: 38px; margin: 0; padding: 0 13px;
  display: inline-flex; align-items: center; gap: 7px;
  border-radius: 10px; border: 1px solid var(--sgh-line-2); background: var(--sgh-card-2); color: var(--sgh-ink);
  font: 600 13px/1 var(--f-body); cursor: pointer; box-shadow: none; transform: none;
}
.sgh-game .btn-fullscreen::before { display: none; content: none; }
.sgh-game .sgh-ibtn:hover { border-color: var(--sgh-or); color: #fff; }
.sgh-game .sgh-ibtn span { font-size: 13px; color: inherit; line-height: 1; font-weight: 600; }
.sgh-game .sgh-favbtn.is-on { color: #ff5d7a; border-color: #ff5d7a; }
.sgh-game .sgh-favbtn.pop svg { animation: sgh-pop .35s var(--ease); }
.sgh-game .sgh-share.is-done { color: var(--sgh-green, #2bd38a); border-color: #2bd38a; }

.sgh-adv { text-align: center; }
.sgh-game .block_adv.sgh-adv { min-width: 0; min-height: 0; padding: 12px; margin: 18px 0 0; border-radius: 16px; background: var(--sgh-panel); border: 1px solid var(--sgh-line); }
.sgh-adv__label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--sgh-muted); margin-bottom: 6px; }

/* title + stats + tags */
.sgh-info .breadcrumb { margin: 0 0 8px; padding: 0; font-size: 13px; }
.sgh-info__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.sgh .sgh-info__title { margin: 0; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; color: var(--sgh-ink); }
.sgh-info__random { height: 38px; font-size: 13px; }
.sgh-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 16px 0 0; }
.sgh-stats > div { background: var(--sgh-card); border: 1px solid var(--sgh-line); border-radius: 12px; padding: 10px 12px; }
.sgh-stats dt { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sgh-muted); margin: 0 0 3px; }
.sgh-stats dd { margin: 0; font-size: 14px; font-weight: 600; color: var(--sgh-ink); }
.sgh-stats dd a { color: var(--sgh-or-2); text-decoration: none; }
.sgh-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.sgh-tags li { margin: 0; padding: 0; }
.sgh-tags li::before { display: none; }
.sgh-tags a {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px;
  background: var(--sgh-card-2); border: 1px solid var(--sgh-line); color: var(--sgh-ink-2); font-size: 13px; font-weight: 600; text-decoration: none;
}
.sgh-tags a:hover { border-color: var(--sgh-or); color: #fff; }
.sgh-tags em { font-style: normal; font-size: 11px; color: var(--sgh-muted); }

/* description */
.sgh-game .sgh-descr.game-offer__content { margin-top: 18px; border-radius: 18px; box-shadow: none; display: block; }
.sgh-descr .game_description { padding: 0; margin: 0; }
.sgh-descr .game_description h2 { font-size: 21px; margin: 20px 0 8px; }
.sgh-descr .game_description h2:first-child { margin-top: 0; }
.sgh-descr .game_description p, .sgh-descr .game_description li { font-size: 15px; line-height: 1.65; color: var(--sgh-ink-2); }

/* right column — Top games: 2 cards per row */
.sgh-lead { margin-top: 0; padding: 18px 16px 16px; }
.sgh .sgh-lead__title { font-size: 19px; margin: 0 2px 14px; color: var(--sgh-ink); display: flex; gap: 8px; align-items: center; }
.sgh-lead__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.sgh-lead__card { display: flex; flex-direction: column; gap: 6px; min-width: 0; text-decoration: none; }
.sgh-lead__card:hover { text-decoration: none; }
.sgh-lead__img { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: var(--sgh-card-2); border: 1px solid var(--sgh-line); transition: border-color .2s var(--ease), transform .2s var(--ease); }
.sgh-lead__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s var(--ease); }
.sgh-lead__card:hover .sgh-lead__img { border-color: rgba(255, 159, 26, .6); transform: translateY(-2px); }
.sgh-lead__card:hover .sgh-lead__img img { transform: scale(1.06); }
.sgh-lead__n {
  position: absolute; top: 6px; left: 6px; min-width: 26px; height: 22px; padding: 0 6px; border-radius: 7px;
  display: grid; place-items: center; font: 800 12px/1 var(--f-display); color: #fff; background: rgba(6, 40, 92, .72);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.sgh-lead__card:nth-child(1) .sgh-lead__n { background: #f7c948; color: #1a1205; }
.sgh-lead__card:nth-child(2) .sgh-lead__n { background: #e6eefc; color: #0a3d84; }
.sgh-lead__card:nth-child(3) .sgh-lead__n { background: #e0955a; color: #1a0f05; }
.sgh-lead__name { font-family: var(--f-display); font-size: 14.5px; font-weight: 700; color: var(--sgh-ink); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sgh-lead__card:hover .sgh-lead__name { color: #fff; }
.sgh-lead__meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--sgh-muted); min-width: 0; margin-top: -2px; }
.sgh-lead__meta span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sgh-lead__meta b { font-weight: 800; font-size: 11px; letter-spacing: .04em; flex: none; }
.sgh-lead__meta b.is-hot { color: #ff4d4d; }
.sgh-lead__meta b.is-new { color: #f7c948; }
.sgh-lead__meta b.is-top { color: var(--sgh-or); }

/* you may like + reviews */
.sgh-like { margin-top: 30px; }
.sgh-like .sgh-tabs { margin-left: auto; }
.sgh-reviews { margin-top: 30px; }
.sgh-reviews > .container { max-width: none; padding: 0; }
.sgh-reviews .reviews { background: var(--sgh-panel); border: 1px solid var(--sgh-line); border-radius: 18px; padding: 20px 22px; }

@media (max-width: 1280px) {
  .sgh-game__grid { grid-template-columns: minmax(0, 1fr) 280px; }
  .sgh-game .sgh-ibtn span { display: none; }
  .sgh-game .sgh-ibtn { padding: 0 11px; }
}
@media (max-width: 1100px) {
  .sgh-game__grid { grid-template-columns: 1fr; }
  .sgh-game__side { position: static; }
  .sgh-lead__grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
@media (max-width: 680px) {
  .sgh-game .sgh-player .player-overlay,
  .sgh-game .sgh-player .game-offer__window__frame { aspect-ratio: 4 / 3; max-height: none; }
  .sgh-player .game-offer__window { border-radius: 16px; }
  .sgh-game .sgh-player__cover img { width: 96px; height: 96px; border-radius: 20px; }
  .sgh-player__center { gap: 10px; }
  .sgh-game #js-player-start.sgh-player__play { height: 48px; min-width: 150px; font-size: 17px; }
  .sgh-game .sgh-bar { padding: 10px; }
  .sgh-bar__actions { width: 100%; justify-content: space-between; }
  .sgh-card { padding: 16px; border-radius: 16px; }
  .sgh-stats { grid-template-columns: 1fr 1fr; }
  .sgh-info__random { width: 100%; justify-content: center; }
  .sgh-like .sgh-sec__head { flex-wrap: wrap; }
  .sgh-like .sgh-tabs { margin-left: 0; }
}
.sgh-side__item:hover, .sgh-side__item:hover span, .sgh-lead__list a:hover, .sgh-tags a:hover { text-decoration: none; }
.sgh-game .block_review.sgh-reviews { background: none; border: 0; padding: 0; box-shadow: none; }
@media (max-width: 680px) {
  .sgh-game .sgh-bar { flex-direction: row; align-items: center; }
  .sgh-bar__game { width: 100%; justify-content: flex-start; text-align: left; }
}

/* ---------- Share popup ---------- */
body.sgh-modal-open { overflow: hidden; }
.sgh-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; }
.sgh-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .66); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .16s; }
.sgh-modal__box {
  position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow: auto;
  background: var(--sgh-panel); border: 1px solid var(--sgh-line-2); border-radius: 20px; padding: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6); transform: translateY(10px) scale(.98); opacity: 0;
  transition: transform .18s var(--ease), opacity .16s;
}
.sgh-modal.is-open .sgh-modal__backdrop { opacity: 1; }
.sgh-modal.is-open .sgh-modal__box { transform: none; opacity: 1; }
.sgh-modal__x {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--sgh-line); background: var(--sgh-card); color: var(--sgh-ink); font-size: 22px; line-height: 1; cursor: pointer;
}
.sgh-modal__x:hover { border-color: var(--sgh-or); color: var(--sgh-or); }
.sgh-share__head { display: flex; align-items: center; gap: 12px; margin: 0 44px 18px 0; }
.sgh-share__head img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; flex: none; }
.sgh .sgh-share__head h3 { margin: 0; font-size: 19px; color: var(--sgh-ink); }
.sgh-share__head p { margin: 2px 0 0; font-size: 13px; color: var(--sgh-muted); }
.sgh-share__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 8px; }
.sgh-share__net { display: flex; flex-direction: column; align-items: center; gap: 7px; text-decoration: none; color: var(--sgh-ink-2); font-size: 12px; font-weight: 600; }
.sgh-share__net:hover { color: #fff; text-decoration: none; }
.sgh-share__ico {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: var(--c); box-shadow: 0 6px 16px rgba(0, 0, 0, .35); transition: transform .15s var(--ease), filter .15s;
}
.sgh-share__net[data-net="x"] .sgh-share__ico { box-shadow: 0 0 0 1px #3d7dd2, 0 6px 16px rgba(0, 0, 0, .35); }
.sgh-share__net:hover .sgh-share__ico { transform: translateY(-2px) scale(1.06); filter: brightness(1.1); }
.sgh-share__label { display: block; margin: 20px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sgh-muted); }
.sgh-share__copy { display: flex; gap: 8px; }
.sgh .sgh-share__copy input {
  flex: 1; min-width: 0; height: 44px; padding: 0 12px; border-radius: 12px;
  background: var(--sgh-card); border: 1px solid var(--sgh-line); color: var(--sgh-ink); font-size: 13px;
}
.sgh-share__copybtn { height: 44px; box-shadow: none; }
.sgh-share__copybtn.is-done { background: #2bd38a; }
.sgh-share__more { margin-top: 12px; width: 100%; height: 40px; border-radius: 12px; border: 1px dashed var(--sgh-line-2); background: none; color: var(--sgh-ink-2); font: 600 13px/1 var(--f-body); cursor: pointer; }
@media (max-width: 380px) { .sgh-share__grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Fullscreen ---------- */
.sgh-game .game-offer__window__frame:fullscreen { aspect-ratio: auto; max-height: none; width: 100vw; height: 100vh; background: #000; }
.sgh-game .game-offer__window__frame:-webkit-full-screen { aspect-ratio: auto; max-height: none; width: 100vw; height: 100vh; background: #000; }
/* fallback (iPhone Safari): the frame fills the screen via CSS */
body.sgh-pfs { overflow: hidden; }
body.sgh-pfs .sgh-game .game-offer__window__frame {
  display: block; position: fixed; inset: 0; z-index: 2000; width: 100vw; height: 100vh; height: 100dvh;
  max-height: none; aspect-ratio: auto; background: #000;
}
.sgh-pfs__close {
  position: fixed; top: max(10px, env(safe-area-inset-top)); right: 10px; z-index: 2001;
  width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
}

/* =====================================================================
   v4 — thin "Last played" strip, player bar with 👍, stars block, Top 8
   ===================================================================== */
.sgh-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* thin strip on the home page */
.sgh-recent {
  display: flex; align-items: center; gap: 18px; min-height: 76px;
  margin: -6px 0 6px; padding: 8px 14px; border-radius: 16px;
  background: var(--sgh-panel); border: 1px solid var(--sgh-line);
}
.sgh-recent__label { display: flex; align-items: center; gap: 12px; flex: none; }
.sgh-recent__ico { color: var(--sgh-ink-2); display: grid; place-items: center; }
.sgh-recent__text { display: flex; flex-direction: column; line-height: 1.25; }
.sgh-recent__title { font-family: var(--f-display); font-size: 15px; font-weight: 800; color: var(--sgh-ink); white-space: nowrap; }
.sgh-recent__switch {
  align-self: flex-start; padding: 0; border: 0; background: none; cursor: pointer;
  font: 500 14px/1.3 var(--f-body); color: var(--sgh-muted);
}
.sgh-recent__switch:hover { color: var(--sgh-or); }
.sgh-recent__track { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1; padding: 2px; }
.sgh-recent__track::-webkit-scrollbar { display: none; }
.sgh-recent__item {
  position: relative; flex: none; width: 60px; height: 60px; border-radius: 12px; overflow: hidden;
  background: var(--sgh-card-2); border: 1px solid var(--sgh-line); transition: transform .15s var(--ease), border-color .15s;
}
.sgh-recent__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sgh-recent__item:hover { transform: translateY(-2px); border-color: var(--sgh-or); }
.sgh-recent__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sgh-recent__empty { margin: 0; color: var(--sgh-muted); font-size: 14px; }
.sgh-recent__empty span { color: #ff5d7a; }
.sgh-recent + .sgh-hero { margin-top: 18px; }

/* player bar: title + 👍 pill on the left, round icon buttons on the right */
.sgh-game .sgh-bar { padding: 10px 14px; }
.sgh-bar__game { gap: 14px; }
.sgh-bar__name { font-family: var(--f-display); font-size: 17px; font-weight: 800; color: var(--sgh-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px; }
.sgh-thumbs { display: inline-flex; align-items: center; height: 40px; padding: 0 4px; border-radius: 999px; background: var(--sgh-card-2); border: 1px solid var(--sgh-line); flex: none; }
.sgh-thumb {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px; border: 0; border-radius: 999px;
  background: none; color: var(--sgh-ink-2); cursor: pointer; font: 700 14px/1 var(--f-body);
}
.sgh-thumb:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.sgh-thumb svg { width: 20px; height: 20px; }
.sgh-thumb--up.is-on { color: var(--sgh-or); }
.sgh-thumb--down.is-on { color: #ff5d7a; }
.sgh-thumb.pop svg { animation: sgh-pop .35s var(--ease); }
.sgh-thumbs__sep { width: 1px; height: 20px; background: var(--sgh-line-2); }
.sgh-game .sgh-ibtn.sgh-ibtn--icon,
.sgh-game .sgh-ibtn.sgh-ibtn--icon:hover {
  width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 50%;
  background: transparent; border: 0; color: var(--sgh-ink-2); text-decoration: none;
}
.sgh-game .sgh-ibtn.sgh-ibtn--icon:hover { background: var(--sgh-card-2); color: #fff; }
.sgh-game .sgh-ibtn--icon svg { width: 21px; height: 21px; }
.sgh-game .sgh-favbtn.sgh-ibtn--icon.is-on { color: #ff5d7a; }
.sgh-reload.spin svg { animation: sgh-spin .6s var(--ease); }
@keyframes sgh-spin { to { transform: rotate(360deg); } }
.sgh-bar__actions { gap: 2px; }

/* info block: image + buttons + stats bar with stars */
.sgh .sgh-info__title { margin: 2px 0 14px; }
.sgh-info__row { display: flex; gap: 20px; align-items: flex-start; }
.sgh-info__img { flex: none; width: 140px; height: 140px; border-radius: 16px; overflow: hidden; border: 1px solid var(--sgh-line); background: var(--sgh-card-2); }
.sgh-info__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sgh-info__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.sgh-info__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.sgh-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  background: var(--sgh-card-2); border: 1px solid var(--sgh-line); color: var(--sgh-ink);
  font: 700 14px/1 var(--f-display); text-decoration: none;
}
.sgh-pill:hover { border-color: var(--sgh-or); color: #fff; text-decoration: none; }
.sgh-pill svg { width: 17px; height: 17px; }
.sgh-statbar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 0;
  padding: 12px 16px; border-radius: 14px; background: var(--sgh-card); border: 1px solid var(--sgh-line);
}
.sgh-statbar > div { display: flex; flex-direction: column; justify-content: center; padding: 0 18px; border-left: 1px solid var(--sgh-line-2); min-height: 40px; }
.sgh-statbar > div:first-child { padding-left: 0; border-left: 0; align-items: center; }
.sgh-statbar b { font-family: var(--f-display); font-size: 16px; font-weight: 800; color: var(--sgh-ink); line-height: 1.2; }
.sgh-statbar b a { color: var(--sgh-or-2); text-decoration: none; }
.sgh-statbar small { font-size: 13px; color: var(--sgh-muted); }
/* WP-PostRatings stars: images only, no "(N votes, average …)" text */
.sgh-stars, .sgh-stars .post-ratings { font-size: 0 !important; line-height: 0; display: flex; align-items: center; gap: 2px; }
.sgh-stars .post-ratings strong, .sgh-stars .post-ratings br, .sgh-stars .post-ratings-text, .sgh-stars .post-ratings-loading { display: none !important; }
.sgh-stars img { width: 26px !important; height: 26px !important; margin: 0 !important; cursor: pointer; }

/* right column: 8 compact cards, 2 per row */
.sgh-lead { padding: 16px 14px 14px; }
.sgh .sgh-lead__title { font-size: 18px; margin-bottom: 12px; }
.sgh-lead__grid { gap: 12px 10px; }
.sgh-lead__img { aspect-ratio: 4 / 3; border-radius: 10px; }
.sgh-lead__name { font-size: 14px; }
.sgh-lead__meta { gap: 7px; font-size: 12px; margin-top: -3px; }
.sgh-lead__meta b.is-trend { color: #ff4fa3; }
.sgh-lead__stat { display: inline-flex; align-items: center; gap: 3px; color: var(--sgh-muted); white-space: nowrap; }
.sgh-lead__stat svg { width: 11px; height: 11px; }

@media (max-width: 680px) {
  .sgh-recent { gap: 12px; padding: 8px 10px; min-height: 66px; margin-top: 0; }
  .sgh-recent__ico { display: none; }
  .sgh-recent__title { font-size: 14px; }
  .sgh-recent__switch { font-size: 13px; }
  .sgh-recent__item { width: 50px; height: 50px; border-radius: 10px; }
  .sgh-bar__name { max-width: 150px; font-size: 15px; }
  .sgh-game .sgh-bar { flex-wrap: wrap; }
  .sgh-bar__actions { width: auto; justify-content: flex-end; margin-left: auto; }
  .sgh-bar__game { width: auto; }
  .sgh-info__img { width: 96px; height: 96px; border-radius: 14px; }
  .sgh-info__row { gap: 14px; }
  .sgh-statbar { padding: 10px 12px; }
  .sgh-statbar > div { padding: 0 12px; }
  .sgh-stars img { width: 22px !important; height: 22px !important; }
}
@media (max-width: 480px) {
  .sgh-info__row { flex-wrap: wrap; }
  .sgh-info__body { flex-basis: 100%; }
  .sgh-statbar > div:nth-child(n+4) { display: none; }
}
.sgh-tile, .sgh-tile:hover, .sgh-tile:hover * { text-decoration: none; }
@media (max-width: 680px) {
  .sgh-bar__actions { width: 100%; justify-content: space-between; margin-left: 0; }
  .sgh-info__img { display: none; }
  .sgh-statbar { flex-wrap: nowrap; }
  .sgh-statbar > div:nth-child(n+3) { display: none; }
}

/* =====================================================================
   Trending — 18-game grid (8×3, tiles 1–2 are 2×2), like scratchgamesonline.io
   ===================================================================== */
.sgh-grid18 { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); grid-auto-rows: auto; grid-auto-flow: row dense; gap: 12px; }
.sgh-grid18 > .sgh-gt { aspect-ratio: 1 / 1; }
.sgh-grid18 > .sgh-gt--big { aspect-ratio: auto; }
.sgh-grid18 > .sgh-gt:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; }
.sgh-grid18 > .sgh-gt:nth-child(2) { grid-column: 5 / 7; grid-row: 1 / 3; }

.sgh-gt {
  position: relative; isolation: isolate; overflow: hidden; display: block; min-width: 0;
  border-radius: 14px; background: var(--sgh-card-2); border: 1px solid var(--sgh-line);
  text-decoration: none; color: #fff;
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.sgh-gt:hover { transform: translateY(-3px); border-color: rgba(255, 159, 26, .65); box-shadow: 0 14px 30px rgba(0, 0, 0, .45); color: #fff; text-decoration: none; }
.sgh-gt__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s var(--ease); }
.sgh-gt:hover .sgh-gt__img, .sgh-gt:hover .sgh-gt__art { transform: scale(1.06); }
.sgh-gt::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .78) 100%); }
.sgh-gt__name {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 8px 10px 9px;
  font-family: var(--f-display); font-weight: 700; font-size: 13.5px; line-height: 1.2; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 6px rgba(0, 0, 0, .6);
}
.sgh-gt__badge {
  position: absolute; top: 7px; left: 7px; z-index: 2; padding: 3px 6px; border-radius: 6px;
  font: 800 10px/1 var(--f-display); letter-spacing: .04em; color: #fff; background: #ff3b3b;
}
.sgh-gt__badge.is-new { background: #f7c948; color: #1a1205; }
.sgh-gt__badge.is-hot { background: #ff3b3b; color: #fff; }
.sgh-gt__badge.is-trending { background: #8b5cf6; color: #fff; }
.sgh-gt__rate {
  position: absolute; top: 7px; right: 7px; z-index: 2; padding: 3px 6px; border-radius: 6px;
  font: 700 11px/1 var(--f-body); color: #fff; background: rgba(6, 40, 92, .65);
}

/* big tiles */
.sgh-gt__bg { position: absolute; z-index: -1; inset: -15%; width: 130%; height: 130%; max-width: none; object-fit: cover; filter: blur(26px) saturate(1.5) brightness(.6); }
.sgh-gt--big:not(.has-art) .sgh-gt__img {
  inset: auto; position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%);
  width: min(190px, 62%); height: auto; aspect-ratio: 1 / 1; border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .1);
}
.sgh-gt--big:not(.has-art):hover .sgh-gt__img { transform: translate(-50%, -50%) scale(1.05); }
.sgh-gt__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease); }
.sgh-gt--big .sgh-gt__name { font-size: 19px; font-weight: 800; padding: 12px 14px 14px; }
.sgh-gt--big .sgh-gt__badge { font-size: 11px; padding: 4px 8px; top: 10px; left: 10px; }
.sgh-gt--big .sgh-gt__rate { top: 10px; right: 10px; font-size: 12px; }

@media (max-width: 1280px) {
  .sgh-grid18 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .sgh-grid18 > .sgh-gt:nth-child(2) { grid-column: 5 / 7; }
}
@media (max-width: 900px) {
  .sgh-grid18 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .sgh-grid18 > .sgh-gt:nth-child(2) { grid-column: 3 / 5; grid-row: 1 / 3; }
}
@media (max-width: 680px) {
  .sgh-grid18 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .sgh-grid18 > .sgh-gt:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; }
  .sgh-grid18 > .sgh-gt:nth-child(2) { grid-column: 2 / 4; grid-row: 4 / 6; }
  .sgh-gt__name { font-size: 12px; padding: 6px 6px 7px; }
  .sgh-gt--big .sgh-gt__name { font-size: 16px; }
  .sgh-gt__rate { display: none; }
}

/* =====================================================================
   v6 — compact home: 18 games + ad fit the first screen; H1 moved down
   ===================================================================== */
body.sgh .main.sgh-home { padding-top: 14px; }
.sgh-recent { margin: 0 0 12px; min-height: 64px; padding: 6px 12px; }
.sgh-recent__item { width: 52px; height: 52px; border-radius: 10px; }
.sgh-sec--top { margin-top: 0; }
/* the grid is sized from the screen height: 3 rows + room for the ad below */
.sgh-grid18 { gap: 10px; max-width: calc((100vh - var(--sgh-top-h) - 250px) * 8 / 3 + 50px); margin: 0 auto; }
.sgh-recent:not([hidden]) ~ .sgh-sec--top .sgh-grid18 { max-width: calc((100vh - var(--sgh-top-h) - 330px) * 8 / 3 + 50px); }
.sgh-gt { border-radius: 12px; }
.sgh-gt__name { font-size: 13px; padding: 6px 8px 7px; }
.sgh-gt--big .sgh-gt__name { font-size: 17px; }
.sgh-adv--top { margin: 14px auto 0; }

/* H1 + intro next to the SEO text */
.sgh .sgh-text__h1 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; margin: 0 0 8px; color: var(--sgh-ink); }
.sgh-text__intro { font-size: 16px; color: var(--sgh-ink-2); margin: 0 0 18px; }

/* All Genres — visible chips with icon and count */
.sgh-alltags h2 { margin: 26px 0 12px; }
.sgh-genres { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sgh-genres li { margin: 0; padding: 0; }
.sgh-genres li::before { display: none !important; content: none !important; }
.sgh-genres a {
  display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 14px 0 7px; border-radius: 12px;
  background: var(--sgh-card-2); border: 1px solid var(--sgh-line-2); color: var(--sgh-ink);
  font: 700 14px/1 var(--f-display); text-decoration: none;
  transition: border-color .15s var(--ease), background .15s var(--ease), transform .15s var(--ease);
}
.sgh-genres a:hover { border-color: var(--sgh-or); background: #1d63bf; color: #fff; transform: translateY(-2px); text-decoration: none; }
.sgh-genres em { font-style: normal; font-weight: 700; font-size: 11px; color: var(--sgh-or-2); background: rgba(255, 159, 26, .12); padding: 3px 7px; border-radius: 999px; }
.sgh-genres .sgh-ico { width: 30px; height: 30px; }

@media (max-width: 900px) {
  .sgh-grid18, .sgh-recent:not([hidden]) ~ .sgh-sec--top .sgh-grid18 { max-width: none; }
}
@media (max-width: 680px) {
  .sgh-genres { gap: 8px; }
  .sgh-genres a { height: 40px; font-size: 13px; }
}
body.sgh > .page > .container { max-width: 1820px; }
.sgh-grid18 { max-width: calc((100vh - var(--sgh-top-h) - 215px) * 8 / 3 + 50px); }
.sgh-recent:not([hidden]) ~ .sgh-sec--top .sgh-grid18 { max-width: calc((100vh - var(--sgh-top-h) - 290px) * 8 / 3 + 50px); }
@media (max-width: 900px) { .sgh-grid18, .sgh-recent:not([hidden]) ~ .sgh-sec--top .sgh-grid18 { max-width: none; } }
.sgh .game_description ul.sgh-genres { padding: 0; margin: 0; list-style: none; }
.sgh .game_description ul.sgh-genres li { padding: 0; margin: 0; list-style: none; background: none; }
.sgh .game_description ul.sgh-genres li::before, .sgh .game_description ul.sgh-genres li::marker { content: none !important; display: none !important; }
.sgh .game_description ul.sgh-genres a, .sgh .game_description ul.sgh-genres a:hover { color: var(--sgh-ink); text-decoration: none; }
.sgh .game_description ul.sgh-genres a:hover { color: #fff; }
.sgh .game_description ul.sgh-genres a span { text-decoration: none; }
/* grid takes the full content width — same as the strips below */
.sgh-grid18, .sgh-recent:not([hidden]) ~ .sgh-sec--top .sgh-grid18 { max-width: none; margin: 0; }

/* =====================================================================
   Scratch-style blue theme — logo + finishing touches
   ===================================================================== */
.sgh-logo { gap: 9px; }
.sgh-logo__mark { width: 40px; height: 40px; background: none; box-shadow: none; border-radius: 0; filter: drop-shadow(0 3px 0 rgba(4, 36, 84, .55)); transition: transform .2s var(--ease); }
.sgh-logo:hover .sgh-logo__mark { transform: rotate(-6deg) scale(1.05); }
.sgh-logo__text {
  font-family: "Fredoka", "Baloo 2", var(--f-display); font-weight: 700; font-size: 25px; letter-spacing: .005em; color: #fff;
  text-shadow: 0 2px 0 rgba(4, 36, 84, .55);
}
.sgh-logo__text b { color: #ffab19; font-weight: 700; }
.sgh-logo__text i {
  font-style: normal; margin-left: 5px; padding: 1px 8px 2px; border-radius: 9px; font-size: .78em; vertical-align: 2px;
  background: #fff; color: #0c4592; text-shadow: none; box-shadow: 0 2px 0 rgba(4, 36, 84, .55);
}
.sgh-logo--footer .sgh-logo__text { font-size: 21px; }
.sgh-logo:hover .sgh-logo__text { color: #fff; }

/* header / sidebar a bit deeper than the page, like on the reference */
.sgh-top { background: rgba(9, 56, 122, .97); border-bottom-color: rgba(255, 255, 255, .1); }
.sgh-side { background: #0a3b80; border-right-color: rgba(255, 255, 255, .08); }
.sgh .sgh-search input { background: #0a3b80; border-color: rgba(255, 255, 255, .14); }
.sgh .sgh-search input::placeholder { color: #9fbde9; }
/* game tiles: the title sits on a blue bar, like on scratchgamesonline.io */
.sgh-gt::after { background: linear-gradient(180deg, rgba(10, 61, 132, 0) 60%, rgba(10, 61, 132, .9) 100%); }
.sgh .catalog__list:hover, .sgh-gt:hover, .sgh-tile:hover { box-shadow: 0 14px 30px rgba(3, 30, 70, .55); }
.sgh .game-card__name { background: #1a5eb6; }
.sgh .catalog__list:hover .game-card__name { background: #ff9f1a; }
.sgh .catalog__list:hover .game-card__name a { color: #1a0f05; }
footer.footer { border-color: rgba(255, 255, 255, .12); }
@media (max-width: 680px) {
  .sgh-logo__text { font-size: 19px; }
  .sgh-logo__mark, .sgh-logo__mark svg { width: 32px; height: 32px; }
  .sgh-logo__text i { padding: 1px 6px 2px; }
}

/* =====================================================================
   Home SEO text — readable layout, table of contents, tables, controls, FAQ
   (scoped to .sgh-text, so game / category descriptions are not affected)
   ===================================================================== */
.sgh-text .game_description { padding: 34px 40px 30px; }
.sgh-text .game_description > p,
.sgh-text .game_description > ul,
.sgh-text .game_description > ol,
.sgh-text .game_description > h2,
.sgh-text .game_description > h3,
.sgh-text .game_description > .pp-controls,
.sgh-text .game_description > .pp-faq { max-width: 920px; }
.sgh-text .game_description > p { font-size: 16px; }
.sgh-text .game_description h2 { font-size: clamp(22px, 2vw, 27px); margin: 44px 0 14px; scroll-margin-top: calc(var(--sgh-top-h) + 16px); }
.sgh-text .game_description h3 { font-size: 18px; margin: 26px 0 8px; }
.sgh-text .game_description a { color: var(--sgh-or-2); }
.sgh-text .game_description a:hover { color: #ffd08a; }

/* table of contents */
.sgh-toc {
  margin: 22px 0 8px; padding: 18px 22px 16px; max-width: 920px;
  background: rgba(8, 44, 98, .45); border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px;
}
.sgh-text .game_description .sgh-toc__title {
  margin: 0 0 10px; font: 800 12px/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--sgh-or-2);
}
.sgh-text .game_description .sgh-toc ol {
  counter-reset: toc; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2px 22px; margin: 0; padding: 0;
}
.sgh-text .game_description .sgh-toc ol > li {
  counter-increment: toc; position: static; padding: 0; margin: 0; background: none; border: 0; box-shadow: none;
  font-size: 15px; line-height: 1.4;
}
.sgh-text .game_description .sgh-toc ol > li::before { display: none !important; content: none !important; }
.sgh-text .game_description .sgh-toc a {
  display: flex; gap: 10px; align-items: baseline; padding: 6px 0; color: #eaf2ff; text-decoration: none;
}
.sgh-text .game_description .sgh-toc a::before {
  content: counter(toc, decimal-leading-zero); flex: none; font: 800 12px/1 var(--f-display); color: var(--sgh-or); min-width: 20px;
}
.sgh-text .game_description .sgh-toc a:hover { color: var(--sgh-or-2); text-decoration: none; }

/* tables: horizontal scroll on phones instead of squeezed columns */
.sgh-table-wrap { margin: 20px 0 22px; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--sgh-r); }
.sgh-text .game_description .sgh-table-wrap table { margin: 0; min-width: 640px; }
.sgh-text .game_description .sgh-table td { vertical-align: top; line-height: 1.5; font-size: 15px; }
.sgh-text .game_description .sgh-table td a { text-decoration: none; border-bottom: 1px solid rgba(255, 180, 68, .35); }
.sgh-text .game_description .sgh-table td a:hover { border-bottom-color: currentColor; }
.sgh-text .game_description .sgh-table--genres td:first-child { white-space: nowrap; }
.sgh-text .game_description .sgh-table--genres td:first-child a { color: #fff; font-weight: 700; }
.sgh-text .game_description .sgh-table--genres td:last-child { min-width: 230px; }
.sgh-text .game_description .sgh-table tbody tr:hover td { background: rgba(255, 255, 255, .035); }

/* "keys that matter" — key chips in two columns */
.sgh-text .pp-controls ul { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0 20px; padding: 0; }
.sgh-text .game_description .pp-controls li {
  margin: 0; padding: 12px 14px; font-size: 15px; line-height: 1.5;
  background: rgba(8, 44, 98, .35); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px;
}
.sgh-text .game_description .pp-controls li::marker { content: ""; }
.sgh-text .game_description .pp-controls li b {
  display: inline-block; margin: 0 6px 2px 0; padding: 3px 9px 4px; border-radius: 8px;
  background: #f2f7ff; color: #0c4592; font: 700 13px/1.3 var(--f-display);
  box-shadow: 0 2px 0 rgba(4, 36, 84, .6);
}

/* top projects list: title + text on one card */
.sgh-text .game_description .sgh-top-list > li b { font-size: 17px; margin-bottom: 6px; }
.sgh-text .game_description .sgh-top-list > li b a { color: #fff; text-decoration: none; }
.sgh-text .game_description .sgh-top-list > li b a:hover { color: var(--sgh-or-2); }
.sgh-text .game_description .sgh-top-list > li { font-size: 15px; line-height: 1.6; }

/* FAQ */
.sgh-text .pp-faq { display: grid; gap: 12px; margin: 16px 0 24px; }
.sgh-text .pp-faq-item {
  padding: 18px 22px 6px; background: rgba(8, 44, 98, .35);
  border: 1px solid rgba(255, 255, 255, .1); border-left: 3px solid var(--sgh-or); border-radius: 14px;
}
.sgh-text .game_description .pp-faq-item h3 { margin: 0 0 8px; font-size: 17px; }

/* closing paragraph */
.sgh-text .game_description .sgh-outro {
  padding: 18px 22px; border-radius: 14px; font-size: 16px;
  background: linear-gradient(135deg, rgba(255, 159, 26, .16), rgba(255, 159, 26, .04));
  border: 1px solid rgba(255, 159, 26, .35);
}

/* wide screens: the table of contents becomes a sticky column on the right */
@media (min-width: 1280px) {
  .sgh-text .game_description { display: grid; grid-template-columns: minmax(0, 1fr) 270px; column-gap: 44px; align-items: start; }
  .sgh-text .game_description > * { grid-column: 1; min-width: 0; }
  .sgh-text .game_description > .sgh-toc {
    grid-column: 2; grid-row: 2 / span 60; align-self: start;
    position: sticky; top: calc(var(--sgh-top-h) + 18px); margin: 6px 0 0;
  }
  .sgh-text .game_description .sgh-toc ol { grid-template-columns: 1fr; }
  .sgh-text .game_description .sgh-toc a { padding: 7px 0; font-size: 14px; }
  .sgh-text .game_description > .sgh-alltags { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .sgh-text .pp-controls ul { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .sgh-text .game_description { padding: 22px 16px 18px; }
  .sgh-text .game_description h2 { margin-top: 34px; }
  .sgh-toc { padding: 14px 16px 12px; }
  .sgh-text .pp-faq-item { padding: 14px 16px 4px; }
  .sgh-text .game_description .sgh-outro { padding: 14px 16px; }
}

/* =====================================================================
   Game page — lead, Scratch credit, "More … Scratch Games", reviews title
   ===================================================================== */
.sgh .sgh-info__lead { margin: 0; font-size: 15px; line-height: 1.6; color: var(--sgh-ink-2); }
.sgh-credit { margin: 12px 0 0; font-size: 13px; color: var(--sgh-muted); }
.sgh-credit b { color: #fff; }
.sgh-credit a { color: var(--sgh-or-2); }
.sgh-credit a + a, .sgh-credit a:last-child { margin-left: 4px; }

.sgh-descr .game_description .sgh-more { margin: 30px 0 0; padding: 20px 22px; border-radius: 16px; background: rgba(8, 44, 98, .4); border: 1px solid rgba(255, 255, 255, .1); }
.sgh-descr .game_description .sgh-more--other { margin-top: 14px; }
.sgh-descr .game_description .sgh-more__title { margin: 0 0 6px; font-size: 19px; }
.sgh-descr .game_description .sgh-more--other .sgh-more__title { font-size: 16px; margin-bottom: 12px; }
.sgh-descr .game_description .sgh-more > p { margin: 0 0 12px; font-size: 15px; }
.sgh-descr .game_description ul.sgh-more__list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; }
.sgh-descr .game_description ul.sgh-more__list li { margin: 0; padding: 0; list-style: none; }
.sgh-descr .game_description ul.sgh-more__list li::marker { content: ""; }
.sgh-descr .game_description ul.sgh-more__list a {
  display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; text-decoration: none;
  background: var(--sgh-card-2); border: 1px solid var(--sgh-line-2); color: #fff;
  transition: border-color .15s var(--ease), transform .15s var(--ease);
}
.sgh-descr .game_description ul.sgh-more__list a:hover { border-color: var(--sgh-or); transform: translateY(-2px); text-decoration: none; }
.sgh-more__list img { width: 48px; height: 48px; border-radius: 9px; object-fit: cover; flex: none; }
.sgh-more__list span { display: flex; flex-direction: column; min-width: 0; }
.sgh-more__list b { font: 700 14px/1.25 var(--f-display); color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sgh-more__list small { font-size: 12px; color: var(--sgh-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sgh-descr .game_description .sgh-more__all { margin: 12px 0 0; font-size: 14px; }
.sgh-descr .game_description .sgh-more__all a { color: var(--sgh-or-2); font-weight: 700; }
.sgh-descr .game_description .sgh-more__all a::after { content: " →"; }
.sgh .sgh-reviews__title { margin: 0 0 14px; font-size: 21px; color: var(--sgh-ink); }
@media (max-width: 900px) {
  .sgh-descr .game_description ul.sgh-more__list { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .sgh-descr .game_description .sgh-more { padding: 16px 14px; }
}
