/* Site-wide visual tweaks: slightly smaller scale + popular carousel */
.wrapper { max-width: 1480px; }
body { font-size: 14px; }

/* 2-column layout: left sidebar (Жанр / Категория / Год) + main with extra cards column */
.cols { grid-template-columns: 230px minmax(0, 1fr); gap: 14px; }
.col_right { display: none; }
.col_main { padding: 12px; border-radius: 8px; }
.sidebar_item { padding: 12px; border-radius: 8px; margin-bottom: 12px; }
.sidebar_title { font-size: 15px; padding: 5px; }
.sidebar_nav li a, .sidebar_item_year li a, .sidebar_item_cat li a {
  padding: 6px 11px; border-radius: 8px; font-size: 13px;
  white-space: normal; word-break: break-word; display: block;
}
.sidebar_nav {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.sidebar_nav li { flex: 1 1 auto; }
.sidebar_item_year { display: flex; flex-wrap: wrap; gap: 4px; }
.sidebar_item_year li a { padding: 5px 9px; display: inline-block; }

/* Header */
.header { padding: 8px 0; }
.logo { max-width: 130px; }
.header_menu { grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 15px; }
.header_menu_item { min-width: 0; padding: 14px 28px; border-radius: 8px; font-size: 14px; }
.header_search { min-width: 260px; }
.header_photo { width: 28px; height: 28px; border-radius: 8px; }

/* Cards */
.short_title { font-size: 14px; transition: color .25s ease; padding-left: 8px; }
.short_title_text,
.popular_short_title_text {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}
.short_story {
  display: block;
  border-radius: 14px;
  outline: 1px solid transparent;
  outline-offset: 0;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transform: translateZ(0);
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    outline-color .25s ease;
  will-change: transform, box-shadow;
}
.short_story img {
  border-radius: 12px;
  transition: transform .35s ease, filter .25s ease;
}
.short_story:hover {
  transform: translateY(-2px);
  outline-color: color-mix(in oklab, #1e4a8a 65%, transparent);
  box-shadow: 0 10px 24px -12px rgba(0,0,0,.28), 0 4px 10px -6px rgba(0,0,0,.18);
}
.short_story:hover img { transform: scale(1.03); }
.short_story:hover .short_title { color: #1e4a8a; }
.theme-dark .short_story:hover .short_title { color: #22AFFF; }
.short_story:focus-visible {
  outline: 2px solid var(--yellow, #ffc107);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .short_story,
  .short_story img,
  .short_title { transition: none; }
  .short_story:hover { transform: none; }
  .short_story:hover img { transform: none; }
}
.main_grid { grid-gap: 18px 12px; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); }
.related_grid { grid-gap: 14px 10px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.cat_title { font-size: 16px; }

/* Tooltip for truncated game titles */
.title-tooltip {
  position: fixed;
  z-index: 26000;
  max-width: 280px;
  padding: 7px 12px;
background: #22D3EE;
  color: #083344;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,.22);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .2s ease, transform .2s ease;
}
.title-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}
.title-tooltip::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 10px;
  height: 10px;
  background: #22D3EE;
  transform: translateX(-50%) rotate(45deg);
}
.title-tooltip.below::after {
  top: -5px;
  bottom: auto;
}
@media (prefers-reduced-motion: reduce) {
  .title-tooltip { transition: none; }
}


/* Popular carousel — Apex-style slanted strip */
.popular_wrap {
  position: relative;
  margin-bottom: 7px;
  padding: 10px 12px 4px;
  background: transparent;
  overflow: hidden;
}
.popular_header_title {
  font-size: 16px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 800;
  color: #1a1a1a;
  padding: 0 2px 8px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.popular_header_title > span:last-child { color: #c2172a; letter-spacing: .04em; }
.popular_viewport { overflow: hidden; }
.popular_track {
  display: flex;
  flex-wrap: nowrap;
  transition: transform .4s ease;
}
.pop_nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; line-height: 26px; text-align: center;
  background: #c2172a; color: #fff; border-radius: 50%;
  font-size: 12px;
  cursor: pointer; z-index: 5; box-shadow: 0 4px 14px rgba(0,0,0,.4);
  user-select: none;
}
.pop_nav[disabled] { opacity: .3; cursor: default; }
.pop_prev { left: 4px; }
.pop_next { right: 4px; }

/* Slanted popular cards (parallelograms) */
.popular-card {
  position: relative;
  display: block;
  border-radius: 0 !important;
  clip-path: polygon(25% 0, 100% 0, 75% 100%, 0 100%);
  overflow: hidden;
  background: #22d3ee;
  transform: translateZ(0);
  outline: none !important;
  box-shadow: none !important;
  transition: filter .25s ease;
  flex: 0 0 calc((100% - 7px) / 8);
  margin-left: calc(-3.597% + 1px);
}
.popular-card:first-child { margin-left: 0; }
.popular-card:hover { filter: brightness(1.08); }
.popular-card-inner {
  position: relative;
  width: 100%;
  padding-bottom: 106%;
  clip-path: polygon(25% 0, 100% 0, 75% 100%, 0 100%);
  transform: scale(0.99);
  transform-origin: center;
}
.popular-card-media {
  position: absolute;
  inset: 0 0 32px 0;
  overflow: hidden;
}
.popular-card-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,0) 45%, rgba(0,0,0,.55) 100%);
}
.popular-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 !important;
  transition: transform .35s ease;
}
.popular-card:hover .popular-card-media img { transform: scale(1.06); }
.popular-card .popular_short_title {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 32px;
  padding: 0 18px 0 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, #141010 0%, #0a0707 100%);
  color: #fff;
  z-index: 2;
}
.popular-card:hover .popular_short_title { background: linear-gradient(180deg, #2a0d10 0%, #14090a 100%); }
.popular-card .popular_short_title_text {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.15;
  color: #fff;
}
.popular-card .popular-card-sub {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #9b8f8e;
  line-height: 1.3;
}
.popular-card-arrow {
  position: absolute;
  right: 12px;
  bottom: 10px;
  font-size: 10px;
  color: #c2172a;
  z-index: 3;
}
@media (prefers-reduced-motion: reduce) {
  .popular-card,
  .popular-card-media img { transition: none; }
  .popular-card:hover .popular-card-media img { transform: none; }
}


@media (max-width: 1100px) {
  .cols { grid-template-columns: 220px minmax(0,1fr); }
  .col_right { display: none; }
}
@media (max-width: 1000px) {
  .cols { grid-template-columns: minmax(0,1fr); }
  .popular-card { flex-basis: calc((100% - 3px) / 3.25); margin-left: calc(-7.692% + 1px); }
}
@media (max-width: 600px) {
  .popular-card { flex-basis: calc((100% - 1px) / 1.75); margin-left: calc(-14.286% + 1px); }
}

/* Scroll-to-top floating button */
.scroll_top {
  position: fixed; right: 286px; left: auto; bottom: 22px;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--yellow, #ffcc1f); color: #2b2b2b;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  font-size: 18px; z-index: 999; border: none;
}
.scroll_top:hover { opacity: 1 !important; background: rgba(34, 175, 255, .65); }
.scroll_top.visible { opacity: .65; visibility: visible; transform: translateY(0); }
/* Кнопка «к комментариям» — только на страницах игр, рядом с кнопкой «наверх» */
.scroll_comments { right: 336px; left: auto; background: rgba(34, 175, 255, .65); }
.scroll_comments:hover { background: #FFE500; }
.scroll_comments svg { display: block; width: 22px; height: 22px; flex: none; }
@media (max-width: 1180px) { .scroll_top { right: 22px; } .scroll_comments { right: 72px; } }


/* Extra color themes */
.switch_theme_extra { font-size: 16px; }

/* Ocean — глубокий сине-бирюзовый */
body.theme-ocean { background: #0b2a3d !important; color: #e6f1f8; }
body.theme-ocean .wrapper,
body.theme-ocean .col_main,
body.theme-ocean .sidebar_item,
body.theme-ocean .header_menu_item,
body.theme-ocean .login_panel,
body.theme-ocean .popular_wrap { background: #11354d !important; color: #e6f1f8; }
body.theme-ocean .short_title,
body.theme-ocean .sidebar_title,
body.theme-ocean .popular_header_title,
body.theme-ocean .cat_title,
body.theme-ocean .header_menu_item { color: #e6f1f8 !important; }
body.theme-ocean .sidebar_nav li a,
body.theme-ocean .sidebar_item_year li a,
body.theme-ocean .sidebar_item_cat li a { background: #18475f; color: #cfe6f3; }
body.theme-ocean .sidebar_nav li a:hover,
body.theme-ocean .sidebar_item_year li a:hover,
body.theme-ocean .sidebar_item_cat li a:hover { background: #2bb3c0; color: #06222f; }
body.theme-ocean .header_search_input { background: #18475f; color: #e6f1f8; }
body.theme-ocean .pop_nav,
body.theme-ocean .scroll_top { background: #2bb3c0; color: #06222f; }
body.theme-ocean a { color: #7dd9e3; }

/* Rose — мягкий розово-кремовый */
body.theme-rose { background: #fff1f3 !important; color: #3a1f28; }
body.theme-rose .wrapper,
body.theme-rose .col_main,
body.theme-rose .sidebar_item,
body.theme-rose .header_menu_item,
body.theme-rose .login_panel,
body.theme-rose .popular_wrap { background: #ffffff !important; color: #3a1f28; }
body.theme-rose .short_title,
body.theme-rose .sidebar_title,
body.theme-rose .popular_header_title,
body.theme-rose .cat_title,
body.theme-rose .header_menu_item { color: #3a1f28 !important; }
body.theme-rose .sidebar_nav li a,
body.theme-rose .sidebar_item_year li a,
body.theme-rose .sidebar_item_cat li a { background: #ffe1e8; color: #7a2a3d; }
body.theme-rose .sidebar_nav li a:hover,
body.theme-rose .sidebar_item_year li a:hover,
body.theme-rose .sidebar_item_cat li a:hover { background: #ff6b8a; color: #fff; }
body.theme-rose .header_search_input { background: #ffe1e8; color: #3a1f28; }
body.theme-rose .pop_nav,
body.theme-rose .scroll_top { background: #ff6b8a; color: #fff; }
body.theme-rose a { color: #d63a63; }

/* theme picker popover */
.theme_picker {
  position: absolute;
  top: 110%;
  right: 0;
  z-index: 999;
  background: rgba(20,20,20,0.92);
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  min-width: 180px;
}
.theme_picker .range_row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.theme_picker .range_row label {
  color: #fff;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .5px;
  opacity: .85;
}
.theme_picker input[type=range] {
  width: 100%;
  height: 14px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(to right,
    hsl(0,90%,55%), hsl(60,90%,55%), hsl(120,90%,55%),
    hsl(180,90%,55%), hsl(240,90%,55%), hsl(300,90%,55%), hsl(360,90%,55%));
  border-radius: 7px;
  outline: none;
}
.theme_picker input[type=range]#theme_bg_light {
  background: linear-gradient(to right,
    hsl(0,0%,5%), hsl(0,0%,50%), hsl(0,0%,95%));
}
.theme_picker input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #333;
  cursor: pointer;
}
.theme_picker input[type=range]::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #333;
  cursor: pointer;
}

/* custom hue-based theme */
body.theme-custom { --tt-hue: 200; --tt-bg-light: 94%; background: hsl(var(--tt-hue), 35%, var(--tt-bg-light)) !important; color: hsl(var(--tt-hue), 30%, 15%); }
body.theme-custom .wrapper,
body.theme-custom .col_main,
body.theme-custom .sidebar_item,
body.theme-custom .header_menu_item,
body.theme-custom .login_panel,
body.theme-custom .popular_wrap { background: hsl(var(--tt-hue), 30%, calc(var(--tt-bg-light) + 5%)) !important; color: hsl(var(--tt-hue), 30%, 15%); }
body.theme-custom .short_title,
body.theme-custom .sidebar_title,
body.theme-custom .popular_header_title,
body.theme-custom .cat_title,
body.theme-custom .header_menu_item { color: hsl(var(--tt-hue), 35%, 18%) !important; }
body.theme-custom .sidebar_nav li a,
body.theme-custom .sidebar_item_year li a,
body.theme-custom .sidebar_item_cat li a { background: hsl(var(--tt-hue), 40%, 90%); color: hsl(var(--tt-hue), 50%, 25%); }
body.theme-custom .sidebar_nav li a:hover,
body.theme-custom .sidebar_item_year li a:hover,
body.theme-custom .sidebar_item_cat li a:hover { background: hsl(var(--tt-hue), 70%, 55%); color: #fff; }
body.theme-custom .header_search_input { background: hsl(var(--tt-hue), 40%, 90%); color: hsl(var(--tt-hue), 40%, 20%); }
body.theme-custom .pop_nav,
body.theme-custom .scroll_top { background: hsl(var(--tt-hue), 70%, 55%); color: #fff; }
body.theme-custom a { color: hsl(var(--tt-hue), 65%, 40%); }

/* ============ Game hero (Forza-style chip card) ============ */
.game_hero {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  background: linear-gradient(135deg, #e9f1fb 0%, #fdf1f0 100%);
  padding: 22px;
  border-radius: 18px;
  margin-bottom: 22px;
}
.game_hero_img {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
  align-self: stretch;
  box-shadow: 0 6px 18px rgba(40,60,100,.12);
}
.game_hero_badge {
  display: inline-block;
  background: #d8e7f8;
  color: #28456b;
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.game_hero_title {
  font-size: 28px;
  line-height: 1.15;
  margin: 0 0 12px;
  color: #1f2b3a;
  font-weight: 800;
}
.game_hero_desc {
  color: #43536a;
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 18px;
}
.info_chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.info_chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #e3eaf3;
  border-radius: 12px;
  padding: 10px 12px;
  min-width: 0;
}
.info_chip_ico {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: #eef4fc;
  color: #4a78b8;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.info_chip_body { min-width: 0; }
.info_chip_label {
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #7a8aa0;
  font-weight: 600;
  line-height: 1.2;
}
.info_chip_value {
  font-size: 13px;
  color: #1f2b3a;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.info_chip_value a { color: inherit; text-decoration: none; }
.info_chip_value a:hover { color: #4a78b8; }
.info_chips_actions { display: flex; flex-wrap: wrap; align-items: stretch; max-width: none; }
.info_chips_actions .info_chip { flex: 0 0 150px; }
.info_chips_actions .info_chip { padding: 6px 10px; gap: 8px; }
.info_chips_actions .info_chip_ico { width: 24px; height: 24px; font-size: 12px; border-radius: 6px; }
.info_chips_actions .info_chip_label { font-size: 9px; }
.info_chips_actions .info_chip_value { font-size: 12px; margin-top: 0; }
.game_hero_actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.dl_btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, #1193dc, #50bdfb);
  color: #fff !important;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  font-size: 13px;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  transition: filter .2s, transform .2s;
}
.dl_btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.dl_btn_sm { padding: 10px 18px; font-size: 12px; }
.dl_btn_magnet { background: linear-gradient(135deg,#d70000,#0493e3); margin-left: 10px; }
@media (max-width: 900px) {
  .game_hero { grid-template-columns: 1fr; }
  .info_chips { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .game_hero_title { font-size: 22px; }
}
@media (max-width: 480px) {
  .info_chips { grid-template-columns: 1fr; }
}

/* ============ System requirements ============ */
.sys_req {
  background: linear-gradient(135deg, #f0f6ff 0%, #fff8f0 100%);
  border: 1px solid #dbe6f5;
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 22px;
  box-shadow: 0 4px 16px rgba(40, 80, 140, .06);
}
.sys_req_grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.sys_req_item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #e6eef8;
  border-radius: 14px;
  padding: 14px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.sys_req_item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(40, 90, 150, .10);
  border-color: #c8daf0;
}
.sys_req_ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eef5ff, #dbeafe);
  color: #4a78b8;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.sys_req_body { min-width: 0; }
.sys_req_label {
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8a9ab0;
  font-weight: 700;
  line-height: 1.2;
}
.sys_req_value {
  font-size: 14px;
  color: #1f2b3a;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 3px;
}
@media (max-width: 900px) {
  .sys_req_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .sys_req_grid { grid-template-columns: 1fr; }
}

/* Dark theme system requirements */
body.theme-dark .sys_req {
  background: linear-gradient(135deg, #1e293b 0%, #2a1b1b 100%);
  border-color: #334155;
}
body.theme-dark .sys_req_item {
  background: #1e293b;
  border-color: #334155;
}
body.theme-dark .sys_req_item:hover {
  border-color: #475569;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .25);
}
body.theme-dark .sys_req_ico {
  background: linear-gradient(135deg, #334155, #1e293b);
  color: #94a3b8;
}
body.theme-dark .sys_req_label { color: #94a3b8; }
body.theme-dark .sys_req_value { color: #f1f5f9; }

/* Ocean theme system requirements */
body.theme-ocean .sys_req {
  background: linear-gradient(135deg, #11354d 0%, #164056 100%);
  border-color: #1a4a63;
}
body.theme-ocean .sys_req_item {
  background: #154055;
  border-color: #1e5872;
}
body.theme-ocean .sys_req_item:hover {
  border-color: #2bb3c0;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .25);
}
body.theme-ocean .sys_req_ico {
  background: linear-gradient(135deg, #1e5872, #154055);
  color: #7dd9e3;
}
body.theme-ocean .sys_req_label { color: #94c4d4; }
body.theme-ocean .sys_req_value { color: #e6f1f8; }

/* Rose theme system requirements */
body.theme-rose .sys_req {
  background: linear-gradient(135deg, #fff1f3 0%, #fff5f7 100%);
  border-color: #ffd6e0;
}
body.theme-rose .sys_req_item {
  background: #fff;
  border-color: #ffe1e8;
}
body.theme-rose .sys_req_item:hover {
  border-color: #ff6b8a;
  box-shadow: 0 8px 22px rgba(214, 58, 99, .08);
}
body.theme-rose .sys_req_ico {
  background: linear-gradient(135deg, #ffe1e8, #fff0f3);
  color: #d63a63;
}
body.theme-rose .sys_req_label { color: #b85c72; }
body.theme-rose .sys_req_value { color: #3a1f28; }

/* Custom hue theme system requirements */
body.theme-custom .sys_req {
  background: linear-gradient(135deg, hsl(var(--tt-hue, 200), 30%, calc(var(--tt-bg-light, 94%) - 8%)) 0%, hsl(var(--tt-hue, 200), 25%, calc(var(--tt-bg-light, 94%) - 4%)) 100%);
  border-color: hsl(var(--tt-hue, 200), 30%, calc(var(--tt-bg-light, 94%) - 18%));
}
body.theme-custom .sys_req_item {
  background: hsl(var(--tt-hue, 200), 25%, calc(var(--tt-bg-light, 94%) + 2%));
  border-color: hsl(var(--tt-hue, 200), 30%, calc(var(--tt-bg-light, 94%) - 14%));
}
body.theme-custom .sys_req_ico {
  background: linear-gradient(135deg, hsl(var(--tt-hue, 200), 40%, calc(var(--tt-bg-light, 94%) - 10%)), hsl(var(--tt-hue, 200), 35%, calc(var(--tt-bg-light, 94%) - 4%)));
  color: hsl(var(--tt-hue, 200), 65%, 35%);
}
body.theme-custom .sys_req_label { color: hsl(var(--tt-hue, 200), 35%, 40%); }
body.theme-custom .sys_req_value { color: hsl(var(--tt-hue, 200), 40%, 18%); }

/* ============ Screenshots gallery ============ */
.gallery_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.gallery_item {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  cursor: zoom-in;
}
.gallery_item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  transition: transform .3s ease;
  display: block;
}
.gallery_item:hover img { transform: scale(1.06); }
.gallery_item.video_item { position: relative; background: #000; }
.gallery_item.video_item video {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.gallery_item.video_item:hover video { transform: scale(1.06); }
.video_play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  background: rgba(0,0,0,.25);
  pointer-events: none;
  transition: background .2s;
}
.video_play i {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  padding-left: 4px;
}
.gallery_item.video_item:hover .video_play { background: rgba(0,0,0,.1); }

/* ============ Lightbox ============ */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(10, 12, 18, .92);
  display: none;
  align-items: center; justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity .25s ease;
}
.lightbox.on { display: flex; opacity: 1; }
.lb_img, .lb_video {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  user-select: none;
  -webkit-user-drag: none;
}
.lb_video { background: #000; }
iframe.lb_video { width: min(92vw, 1280px); height: min(88vh, 720px); aspect-ratio: 16/9; border: 0; }
video.lb_video { width: auto; height: auto; }
.lb_anim { animation: lbIn .35s cubic-bezier(.2,.7,.3,1.2); }
@keyframes lbIn {
  from { opacity: 0; transform: scale(.92); }
  to   { opacity: 1; transform: scale(1); }
}
.lb_close, .lb_nav {
  position: absolute;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
}
.lb_close { top: 18px; right: 22px; width: 44px; height: 44px; font-size: 24px; line-height: 1; }
.lb_nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 22px; }
.lb_prev { left: 24px; }
.lb_next { right: 24px; }
.lb_close:hover, .lb_nav:hover { background: rgba(255,255,255,.25); }
.lb_nav:hover { transform: translateY(-50%) scale(1.08); }
.lb_counter {
  position: absolute;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  color: #fff;
  background: rgba(0,0,0,.45);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: .05em;
}
@media (max-width: 600px) {
  .lb_prev { left: 8px; } .lb_next { right: 8px; }
  .lb_nav { width: 42px; height: 42px; font-size: 18px; }
}

/* ============ Comments ============ */
.comments_list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}
.comment_item {
  display: flex;
  gap: 12px;
  background: color-mix(in srgb, currentColor 4%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 15%, transparent);
  border-radius: 12px;
  padding: 14px;
  color: inherit;
}
.comment_avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7eb6f0, #4a8fd6);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.comment_body { flex: 1; min-width: 0; }
.comment_head {
  display: flex; gap: 10px; align-items: baseline;
  margin-bottom: 4px; flex-wrap: wrap;
}
.comment_head b { font-size: 14px; color: inherit; }
.comment_date { font-size: 11px; opacity: 0.6; }
.comment_text { font-size: 13px; line-height: 1.5; color: inherit; opacity: 0.9; word-wrap: break-word; }
.comments_empty { opacity: 0.6; font-style: italic; padding: 10px 0; }
.comments_pager {
  display: flex; gap: 6px; justify-content: center; flex-wrap: wrap;
  margin: 10px 0 18px;
}
.cpager_btn {
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
  background: color-mix(in srgb, currentColor 5%, transparent);
  cursor: pointer;
  font-weight: 600;
  color: inherit;
  font-size: 13px;
  transition: .15s;
}
.cpager_btn:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.cpager_btn.active {
  background: linear-gradient(135deg, #7eb6f0, #4a8fd6);
  color: #fff; border-color: transparent;
}
.comment_form {
  background: color-mix(in srgb, currentColor 4%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 15%, transparent);
  border-radius: 12px;
  padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
  color: inherit;
}
.comment_form input, .comment_form textarea {
  border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
  background: color-mix(in srgb, currentColor 6%, transparent);
  color: inherit;
  border-radius: 8px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  resize: vertical;
}
.comment_form input:focus, .comment_form textarea:focus { border-color: #4a8fd6; }
.comment_form_row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap;
}
.comment_form_row small { opacity: 0.6; font-size: 12px; }
.comment_actions { margin-top: 6px; display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.c_reply_btn { background: none; border: 0; color: #22AFFF; font-size: 12px; cursor: pointer; padding: 2px 0; display: inline-flex; align-items: center; gap: 4px; }
.c_reply_btn:hover { text-decoration: underline; }
.c_vote_btn { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); color: #9aa4b2; font-size: 12px; cursor: pointer; padding: 3px 7px; border-radius: 6px; display: inline-flex; align-items: center; transition: all .15s ease; }
.c_vote_btn:hover:not([disabled]) { background: rgba(255,255,255,0.08); color: #fff; }
.c_vote_btn.up.active { color: #22d3ee; border-color: rgba(34, 211, 238,0.5); background: rgba(34, 211, 238,0.12); }
.c_vote_btn.down.active { color: #f87171; border-color: rgba(248,113,113,0.5); background: rgba(248,113,113,0.12); }
.c_vote_btn[disabled] { opacity: .45; cursor: not-allowed; }
.c_vote_score { font-size: 12px; font-weight: 600; color: #9aa4b2; min-width: 18px; text-align: center; }
.c_vote_score.pos { color: #22d3ee; }
.c_vote_score.neg { color: #f87171; }
.comment_replies { margin-top: 12px; padding-left: 16px; border-left: 2px solid color-mix(in srgb, currentColor 15%, transparent); display: flex; flex-direction: column; gap: 12px; }
.comment_item.is_reply { }
.reply_bar { display: flex; align-items: center; gap: 8px; background: rgba(34,175,255,.12); border: 1px solid rgba(34,175,255,.35); color: #22AFFF; padding: 6px 10px; border-radius: 6px; font-size: 13px; }
.reply_to { color: #22AFFF; font-size: 12px; margin-left: 6px; }
.reply_to b { color: #22AFFF; font-weight: 600; }
.reply_bar b { color: #22AFFF; }
.reply_cancel { margin-left: auto; background: none; border: 0; font-size: 18px; line-height: 1; color: #22AFFF; cursor: pointer; }
.comment_toolbar { display: flex; gap: 6px; flex-wrap: wrap; position: relative; }
.ctb_btn {
  min-width: 32px; height: 32px; padding: 0 8px;
  border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
  background: color-mix(in srgb, currentColor 6%, transparent);
  border-radius: 8px; cursor: pointer; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  color: inherit;
}
.ctb_btn:hover { background: color-mix(in srgb, currentColor 14%, transparent); border-color: #4a8fd6; }
.emoji_pop {
  position: absolute; top: 38px; left: 0; z-index: 20;
  background: color-mix(in srgb, currentColor 8%, transparent);
  backdrop-filter: blur(12px);
  border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
  border-radius: 10px;
  padding: 8px; box-shadow: 0 8px 20px rgba(0,0,0,.15);
  display: grid; grid-template-columns: repeat(9, 1fr); gap: 2px;
  max-width: 320px;
}
.emoji_pop[hidden] { display: none; }
.emo_it { background: none; border: 0; cursor: pointer; font-size: 18px; padding: 4px; border-radius: 6px; }
.emo_it:hover { background: color-mix(in srgb, currentColor 15%, transparent); }
.comment_editor {
  min-height: 80px; max-height: 260px; overflow: auto;
  border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
  background: color-mix(in srgb, currentColor 6%, transparent);
  border-radius: 8px;
  padding: 10px 12px; font-size: 13px; line-height: 1.5;
  font-family: inherit; color: inherit; outline: none;
}
.comment_editor:focus { border-color: #4a8fd6; }
.comment_editor:empty:before {
  content: attr(data-placeholder); opacity: 0.5;
}
.c_img_preview { position: relative; display: inline-block; max-width: 180px; }
.c_img_preview img { max-width: 180px; max-height: 140px; border-radius: 8px; display: block; }
.c_img_del {
  position: absolute; top: -6px; right: -6px; width: 22px; height: 22px;
  border-radius: 50%; border: 0; background: #d13b3b; color: #fff;
  cursor: pointer; font-size: 16px; line-height: 1;
}
.comment_image { margin-top: 8px; }
.comment_image img { max-width: 280px; max-height: 220px; border-radius: 8px; cursor: zoom-in; }
.comment_text b, .comment_text strong { font-weight: 700; }
.comment_text i, .comment_text em { font-style: italic; }
.comment_text u { text-decoration: underline; }
.comment_text a, a.comment_link { color: #22AFFF; text-decoration: underline; word-break: break-all; }
.comment_text a:hover, a.comment_link:hover { color: #22AFFF; text-decoration: none; }
.comment_author_label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: inherit; opacity: 0.9;
}
.c_author_avatar {
  width: 28px; height: 28px; border-radius: 50%; object-fit: cover;
  background: color-mix(in srgb, currentColor 15%, transparent);
}


/* ============ Main games pagination ============ */
.games_pager {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
}
.games_pager .cpager_btn {
  min-width: 38px;
  padding: 8px 13px;
  border-radius: 10px;
  border: 1px solid #d6e0ed;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
  color: #43536a;
  font-size: 13px;
  transition: .15s;
}
.games_pager .cpager_btn:hover { background: #eef4fc; }
.games_pager .cpager_btn.active {
  background: linear-gradient(135deg, #7eb6f0, #4a8fd6);
  color: #fff;
  border-color: transparent;
}

/* Dark theme pagination */
body.theme-dark .games_pager .cpager_btn {
  background: #1e293b;
  border-color: #334155;
  color: #cbd5e1;
}
body.theme-dark .games_pager .cpager_btn:hover { background: #334155; }
body.theme-dark .games_pager .cpager_btn.active {
  background: linear-gradient(135deg, #4a8fd6, #7eb6f0);
  color: #0f172a;
}

/* Ocean theme pagination */
body.theme-ocean .games_pager .cpager_btn {
  background: #154055;
  border-color: #1e5872;
  color: #cfe6f3;
}
body.theme-ocean .games_pager .cpager_btn:hover { background: #1e5872; }
body.theme-ocean .games_pager .cpager_btn.active {
  background: #2bb3c0;
  color: #06222f;
}

/* Rose theme pagination */
body.theme-rose .games_pager .cpager_btn {
  background: #fff;
  border-color: #ffe1e8;
  color: #7a2a3d;
}
body.theme-rose .games_pager .cpager_btn:hover { background: #fff0f3; }
body.theme-rose .games_pager .cpager_btn.active {
  background: #ff6b8a;
  color: #fff;
}

/* Custom hue theme pagination */
body.theme-custom .games_pager .cpager_btn {
  background: hsl(var(--tt-hue, 200), 25%, calc(var(--tt-bg-light, 94%) + 2%));
  border-color: hsl(var(--tt-hue, 200), 30%, calc(var(--tt-bg-light, 94%) - 14%));
  color: hsl(var(--tt-hue, 200), 40%, 25%);
}
body.theme-custom .games_pager .cpager_btn:hover {
  background: hsl(var(--tt-hue, 200), 35%, calc(var(--tt-bg-light, 94%) - 6%));
}
body.theme-custom .games_pager .cpager_btn.active {
  background: hsl(var(--tt-hue, 200), 70%, 55%);
  color: #fff;
}

/* ===== Vote widget ===== */
.vote_box{margin-left:auto;display:flex;flex-direction:column;gap:4px;padding:6px 10px;border:1px solid rgba(0,0,0,.08);border-radius:10px;background:rgba(0,0,0,.02);margin-top:-4px}
.theme-dark .vote_box{border-color:rgba(255,255,255,.1);background:rgba(255,255,255,.03)}
.vote_title{font-size:11px;font-weight:600;opacity:.8;text-transform:uppercase;letter-spacing:.4px}
.vote_stars{display:flex;gap:2px;flex-wrap:wrap}
.vote_star{position:relative;width:20px;height:20px;min-height:0;background:transparent;border:none;color:#ccc;font-size:14px;line-height:1;cursor:pointer;transition:transform .12s ease,color .12s ease;padding:0;display:flex;align-items:center;justify-content:center}
.vote_star span{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:8px;font-weight:800;color:#fff;pointer-events:none}
.theme-dark .vote_star{color:#555}
.theme-dark .vote_star span{color:#ddd}
.vote_star:hover,.vote_star.hover{transform:translateY(-1px) scale(1.15);color:#fbbf24}
.vote_star.on{color:#FFC107}
.vote_star.on span,.vote_star:hover span{color:#1a1a1a}
.vote_star:active{transform:scale(.9)}
.star-particle{position:absolute;left:50%;top:50%;width:8px;height:8px;margin-left:-4px;margin-top:-4px;color:#FFC107;font-size:8px;line-height:1;display:flex;align-items:center;justify-content:center;pointer-events:none;z-index:10;animation:star-burst .55s ease-out forwards}
@keyframes star-burst{0%{transform:translate(0,0) scale(0);opacity:1}25%{transform:translate(calc(var(--tx)*.2),calc(var(--ty)*.2)) scale(1.2);opacity:1}100%{transform:translate(var(--tx),var(--ty)) scale(0);opacity:0}}
.vote_meta{font-size:10px;opacity:.75}.vote_meta>span:first-child{font-weight:700;color:#1395dd}
.game_hero_actions{flex-wrap:wrap;align-items:flex-end}

/* Dark theme overrides for game hero */
body.theme-dark .game_hero { background: linear-gradient(135deg, #1e2738 0%, #2a1f2e 100%); }
body.theme-dark .game_hero_title { color: #f1f5f9; }
body.theme-dark .game_hero_desc { color: #b0bccd; }
body.theme-dark .game_hero_badge { background: rgba(120,160,220,.15); color: #a8c4ea; }
body.theme-dark .info_chip { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
body.theme-dark .info_chip_ico { background: rgba(120,160,220,.12); color: #a8c4ea; }
body.theme-dark .info_chip_label { color: #8392a8; }
body.theme-dark .info_chip_value { color: #e6ecf5; }
@media(max-width:720px){.vote_box{margin-left:0;width:100%;margin-top:0}}

/* Ocean theme overrides for game hero */
body.theme-ocean .game_hero { background: linear-gradient(135deg, #11354d 0%, #0b2a3d 100%); }
body.theme-ocean .game_hero_title { color: #e6f1f8; }
body.theme-ocean .game_hero_desc { color: #8fb8cf; }
body.theme-ocean .game_hero_badge { background: rgba(43,179,192,.15); color: #7dd9e3; }
body.theme-ocean .info_chip { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
body.theme-ocean .info_chip_ico { background: rgba(43,179,192,.12); color: #7dd9e3; }
body.theme-ocean .info_chip_label { color: #8fb8cf; }
body.theme-ocean .info_chip_value { color: #cfe6f3; }

/* Rose theme overrides for game hero */
body.theme-rose .game_hero { background: linear-gradient(135deg, #ffe1e8 0%, #fff1f3 100%); }
body.theme-rose .game_hero_title { color: #3a1f28; }
body.theme-rose .game_hero_desc { color: #7a2a3d; }
body.theme-rose .game_hero_badge { background: rgba(255,107,138,.15); color: #d63a63; }
body.theme-rose .info_chip { background: rgba(255,255,255,.5); border-color: rgba(255,107,138,.15); }
body.theme-rose .info_chip_ico { background: rgba(255,107,138,.12); color: #d63a63; }
body.theme-rose .info_chip_label { color: #a05065; }
body.theme-rose .info_chip_value { color: #3a1f28; }

/* Custom hue theme overrides for game hero */
body.theme-custom .game_hero { background: linear-gradient(135deg, hsl(var(--tt-hue),40%,calc(var(--tt-bg-light) - 6%)) 0%, hsl(var(--tt-hue),35%,calc(var(--tt-bg-light) - 2%)) 100%); }
body.theme-custom .game_hero_title { color: hsl(var(--tt-hue),40%,18%); }
body.theme-custom .game_hero_desc { color: hsl(var(--tt-hue),25%,35%); }
body.theme-custom .game_hero_badge { background: hsl(var(--tt-hue),45%,85%); color: hsl(var(--tt-hue),55%,28%); }
body.theme-custom .info_chip { background: hsl(var(--tt-hue),30%,calc(var(--tt-bg-light) + 2%)); border-color: hsl(var(--tt-hue),35%,calc(var(--tt-bg-light) - 12%)); }
body.theme-custom .info_chip_ico { background: hsl(var(--tt-hue),45%,calc(var(--tt-bg-light) - 8%)); color: hsl(var(--tt-hue),65%,38%); }
body.theme-custom .info_chip_label { color: hsl(var(--tt-hue),30%,42%); }
body.theme-custom .info_chip_value { color: hsl(var(--tt-hue),40%,18%); }

/* ============ Breadcrumbs ============ */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 12px;
  color: #6b7a8f;
}
.breadcrumbs a {
  color: #4a78b8;
  text-decoration: none;
  font-weight: 500;
  transition: color .15s;
}
.breadcrumbs a:hover { color: #2b3e56; text-decoration: underline; }
.bc_sep {
  opacity: .45;
  font-size: 11px;
  color: #8a9ab0;
}
.bc_current {
  color: #1f2b3a;
  font-weight: 600;
}

/* Dark theme breadcrumbs */
body.theme-dark .breadcrumbs { color: #94a3b8; }
body.theme-dark .breadcrumbs a { color: #a8c4ea; }
body.theme-dark .breadcrumbs a:hover { color: #e2e8f0; }
body.theme-dark .bc_sep { color: #64748b; }
body.theme-dark .bc_current { color: #f1f5f9; }

/* Ocean theme breadcrumbs */
body.theme-ocean .breadcrumbs { color: #8fb8cf; }
body.theme-ocean .breadcrumbs a { color: #7dd9e3; }
body.theme-ocean .breadcrumbs a:hover { color: #e6f1f8; }
body.theme-ocean .bc_sep { color: #4a7a8f; }
body.theme-ocean .bc_current { color: #e6f1f8; }

/* Rose theme breadcrumbs */
body.theme-rose .breadcrumbs { color: #a05065; }
body.theme-rose .breadcrumbs a { color: #d63a63; }
body.theme-rose .breadcrumbs a:hover { color: #3a1f28; }
body.theme-rose .bc_sep { color: #c48a9a; }
body.theme-rose .bc_current { color: #3a1f28; }

/* Custom hue theme breadcrumbs */
body.theme-custom .breadcrumbs { color: hsl(var(--tt-hue),25%,45%); }
body.theme-custom .breadcrumbs a { color: hsl(var(--tt-hue),55%,40%); }
body.theme-custom .breadcrumbs a:hover { color: hsl(var(--tt-hue),55%,20%); }
body.theme-custom .bc_sep { color: hsl(var(--tt-hue),30%,55%); }
body.theme-custom .bc_current { color: hsl(var(--tt-hue),40%,18%); }

/* ===== Search autocomplete ===== */
#quicksearch { position: relative; }
.search_suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #fff; color: #222;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.18), 0 0 1px rgba(0,0,0,.1);
  z-index: 1000;
  max-height: 420px; overflow-y: auto;
  padding: 6px;
}
.search_suggest .ss_item {
  display: flex; gap: 10px; align-items: center;
  padding: 6px 8px; border-radius: 8px;
  color: inherit; text-decoration: none;
}
.search_suggest .ss_item:hover,
.search_suggest .ss_item.active { background: #f1f3f7; }
.search_suggest .ss_img {
  width: 42px; height: 56px; object-fit: cover; border-radius: 6px; flex: 0 0 42px;
  background: #eee;
}
.search_suggest .ss_body { min-width: 0; }
.search_suggest .ss_title { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search_suggest .ss_meta { font-size: 12px; opacity: .7; }

/* Theme variants */
body.theme-dark .search_suggest { background: #1c1c1c; color: #e6e6e6; box-shadow: 0 12px 32px rgba(0,0,0,.6); }
body.theme-dark .search_suggest .ss_item:hover,
body.theme-dark .search_suggest .ss_item.active { background: #2a2a2a; }

body.theme-ocean .search_suggest { background: #11354d; color: #e6f1f8; }
body.theme-ocean .search_suggest .ss_item:hover,
body.theme-ocean .search_suggest .ss_item.active { background: #18475f; }

body.theme-rose .search_suggest { background: #fff; color: #3a1f28; }
body.theme-rose .search_suggest .ss_item:hover,
body.theme-rose .search_suggest .ss_item.active { background: #ffe1e8; }

body.theme-custom .search_suggest {
  background: hsl(var(--tt-hue), 40%, 96%);
  color: hsl(var(--tt-hue), 40%, 18%);
}
body.theme-custom .search_suggest .ss_item:hover,
body.theme-custom .search_suggest .ss_item.active {
  background: hsl(var(--tt-hue), 45%, 88%);
}

/* Extra info blocks (tabs) */
.extra_blocks { margin: 0 0 22px; }
.extra_tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid var(--border, #e5e7eb); margin-bottom: 16px; }
.extra_tab { background: transparent; border: 0; padding: 12px 20px; font-size: 16px; font-weight: 700; color: #6b7280; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: color .15s, border-color .15s; font-family: inherit; }
.extra_tab:hover { color: #111827; }
.extra_tab.active { color: #dc2626; border-bottom-color: #dc2626; }
.extra_pane { display: none; }
.extra_pane.active { display: block; }

/* Uniform spacing between game page sections */
.game_hero,
.full_desc,
.sys_req,
.extra_blocks,
.gallery_grid,
#videos-grid,
.related_grid,
#comments-block { margin-bottom: 22px; }
.full_section_title { margin-top: 0; margin-bottom: 10px; }

/* ===== Floating game section navigation ===== */
.game_nav {
  position: fixed;
  right: 0px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  font-family: inherit;
  pointer-events: none;
}
.game_nav_dots {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 10px 5px;
  background: rgba(15, 20, 28, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  pointer-events: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.game_nav_dots::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 14px;
  bottom: 14px;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(
    to bottom,
    #22AFFF 0%,
    #22AFFF var(--nav-progress, 0%),
    rgba(255, 255, 255, 0.12) var(--nav-progress, 0%),
    rgba(255, 255, 255, 0.12) 100%
  );
  border-radius: 2px;
  pointer-events: none;
}
.game_nav_dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 1;
}
.game_nav_dot:hover {
  border-color: #22AFFF;
  transform: scale(1.15);
}
.game_nav_dot.is-passed {
  background: #22AFFF;
  border-color: #22AFFF;
  box-shadow: 0 0 0 2px rgba(34, 175, 255, 0.15);
}
.game_nav_dot.is-active {
  background: #22AFFF;
  border-color: #22AFFF;
  transform: scale(1.35);
  box-shadow: 0 0 0 5px rgba(34, 175, 255, 0.2), 0 0 12px rgba(34, 175, 255, 0.6);
}

.game_nav_panel {
  position: absolute;
  right: calc(100% + 6px);
  top: 50%;
  min-width: 240px;
  max-width: 280px;
  background: rgba(20, 26, 36, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) translateX(10px) scale(0.97);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  pointer-events: auto;
}
.game_nav:hover .game_nav_panel,
.game_nav:focus-within .game_nav_panel,
.game_nav_dots:hover .game_nav_panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0) scale(1);
}
.game_nav_item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  font-family: inherit;
}
.game_nav_item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #f1f5f9;
}
.game_nav_item .gni_ico {
  width: 22px;
  text-align: center;
  color: #94a3b8;
  font-size: 15px;
  flex-shrink: 0;
  transition: color 0.15s ease;
}
.game_nav_item .gni_label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game_nav_item .gni_badge {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}
.game_nav_item.is-active {
  background: rgba(34, 175, 255, 0.12);
  border-left-color: #22AFFF;
  color: #f1f5f9;
}
.game_nav_item.is-active .gni_ico {
  color: #22AFFF;
}
.game_nav_item.is-active .gni_badge {
  background: rgba(34, 175, 255, 0.2);
  color: #7dd3fc;
}

@media (max-width: 768px) {
  .game_nav { right: 0px; }
  .game_nav_dots { gap: 10px; padding: 10px 8px; }
  .game_nav_dot { width: 10px; height: 10px; }
  .game_nav_panel { min-width: 200px; max-width: 220px; }
  .game_nav_item { padding: 8px 10px; font-size: 13px; }
}

/* ============ Trailer hover preview ============ */
.trailer_preview {
  position: fixed;
  width: 360px;
  height: 203px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.06);
  z-index: 9999;
  pointer-events: none;
  animation: trailerFadeIn .18s ease-out;
}
.trailer_preview iframe,
.trailer_preview video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}
@keyframes trailerFadeIn {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: scale(1); }
}
@media (max-width: 640px) {
  .trailer_preview { display: none; }
}
/* Мягкий голубоватый свет слева направо по обложке — вспыхивает прямо перед появлением трейлера */
.short_story[data-trailer] .short_img,
.short_story[data-trailer] .pp-media { position: relative; overflow: hidden; }
.short_story[data-trailer] .short_img::after,
.short_story[data-trailer] .pp-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 20%, rgba(138, 180, 255, .18) 50%, transparent 80%);
  transform: translateX(-100%);
  pointer-events: none;
  z-index: 3;
}
.short_story .tt-trailer-loading::after { animation: ttTrailerSweep 260ms ease-in forwards; }
@keyframes ttTrailerSweep {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
  .short_story .tt-trailer-loading::after { animation: none; }
}

/* Trailer tab embed inside extra blocks */
.trailer_embed{position:relative;width:100%;max-width:960px;aspect-ratio:16/9;margin:0 auto;background:#000;border-radius:12px;overflow:hidden;box-shadow:0 8px 32px rgba(0,0,0,.4)}
.trailer_embed iframe,.trailer_embed video{position:absolute;inset:0;width:100%;height:100%;border:0;display:block}

/* ============ Comments — dark theme ============ */
body.theme-dark .comment_item {
  background: #1c2333;
  border-color: #2a3348;
}
body.theme-dark .comment_head b { color: #f1f5f9; }
body.theme-dark .comment_date { color: #7a869d; }
body.theme-dark .comment_text { color: #cfd6e4; }
body.theme-dark .comments_empty { color: #7a869d; }
body.theme-dark .cpager_btn {
  background: #1c2333;
  border-color: #2a3348;
  color: #cfd6e4;
}
body.theme-dark .cpager_btn:hover { background: #2a3348; }
body.theme-dark .comment_form {
  background: #1c2333;
  border-color: #2a3348;
}
body.theme-dark .comment_form input,
body.theme-dark .comment_form textarea,
body.theme-dark .comment_editor {
  background: #141a27;
  border-color: #2a3348;
  color: #e6ecf5;
}
body.theme-dark .comment_form input:focus,
body.theme-dark .comment_form textarea:focus,
body.theme-dark .comment_editor:focus { border-color: #4a8fd6; }
body.theme-dark .comment_editor:empty:before { color: #64748b; }
body.theme-dark .comment_form_row small { color: #7a869d; }
body.theme-dark .comment_replies { border-left-color: #2a3348; }
body.theme-dark .ctb_btn {
  background: #141a27;
  border-color: #2a3348;
  color: #cfd6e4;
}
body.theme-dark .ctb_btn:hover { background: #2a3348; border-color: #4a8fd6; }
body.theme-dark .emoji_pop {
  background: #1c2333;
  border-color: #2a3348;
  box-shadow: 0 8px 20px rgba(0,0,0,.5);
}
body.theme-dark .emo_it:hover { background: #2a3348; }
body.theme-dark .reply_bar {
  background: rgba(34,175,255,.1);
  border-color: rgba(34,175,255,.3);
  color: #7cc7ff;
}
body.theme-dark .reply_bar b,
body.theme-dark .reply_cancel { color: #7cc7ff; }

/* ============ Toast notifications ============ */
.tt_toast_container {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 26000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(280px, calc(100vw - 36px));
  pointer-events: none;
}
.tt_toast {
  pointer-events: auto;
  position: relative;
  padding: 11px 13px;
  border-radius: 14px;
  font-size: 12.5px;
  line-height: 1.35;
  color: #fff;
  background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 12px 32px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.04);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  transform: translateX(120%);
  opacity: 0;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.22,1,.36,1), opacity .3s ease;
}
.tt_toast.is_in { transform: translateX(0); opacity: 1; }
.tt_toast.is_out { transform: translateX(120%); opacity: 0; }
.tt_toast_icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 10px;
  margin-top: 1px;
  background: rgba(255,255,255,.2);
  color: #fff;
}
.tt_toast.success { background: linear-gradient(135deg, #0369a1 0%, #22AFFF 100%); border-color: rgba(34,175,255,.45); }
.tt_toast.success .tt_toast_icon { background: rgba(255,255,255,.25); color: #fff; }
.tt_toast.warning { background: linear-gradient(135deg, #b90024 0%, #ff4e72 100%); border-color: rgba(185,0,36,.45); }
.tt_toast.warning .tt_toast_icon { background: rgba(255,255,255,.25); color: #fff; }
.tt_toast.error { background: linear-gradient(135deg, #7f1d1d 0%, #f87171 100%); border-color: rgba(248,113,113,.45); }
.tt_toast.error .tt_toast_icon { background: rgba(255,255,255,.25); color: #fff; }
.tt_toast.info { background: linear-gradient(135deg, #075985 0%, #38bdf8 100%); border-color: rgba(56,189,248,.45); }
.tt_toast.info .tt_toast_icon { background: rgba(255,255,255,.25); color: #0f172a; }
.tt_toast_countdown {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,.2);
  border-radius: 0 0 14px 14px;
  overflow: hidden;
  z-index: 2;
}
.tt_toast_countdown_bar {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,.9), rgba(255,255,255,.35));
  border-radius: 0 0 14px 14px;
  transform-origin: left;
  transform: scaleX(1);
  will-change: transform;
}
.tt_toast_close {
  margin-left: auto;
  background: none;
  border: none;
  color: rgba(255,255,255,.75);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 0 0 0 4px;
  transition: color .15s;
}
.tt_toast_close:hover { color: #fff; }
.tt_toast_title { font-weight: 700; margin-bottom: 1px; }
.tt_toast_desc { color: rgba(255,255,255,.9); font-size: 11.5px; }

body.theme-dark .tt_toast { background: linear-gradient(135deg, #273347 0%, #1c2333 100%); border-color: rgba(255,255,255,.1); color: #f1f5f9; }
body.theme-dark .tt_toast.success { background: linear-gradient(135deg, #0b8ec9 0%, #0b6c9c 100%); border-color: rgba(34,175,255,.35); }
body.theme-dark .tt_toast.warning { background: linear-gradient(135deg, #854d0e 0%, #451a03 100%); border-color: rgba(250,204,21,.25); }
body.theme-dark .tt_toast.error { background: linear-gradient(135deg, #991b1b 0%, #450a0a 100%); border-color: rgba(248,113,113,.25); }
body.theme-dark .tt_toast_close { color: rgba(241,245,249,.55); }
body.theme-dark .tt_toast_close:hover { color: #f1f5f9; }

body.theme-ocean .tt_toast { background: linear-gradient(135deg, #1a4561 0%, #11354d 100%); border-color: rgba(255,255,255,.12); color: #e6f1f8; }
body.theme-ocean .tt_toast.success { background: linear-gradient(135deg, #0b8ec9 0%, #0b6c9c 100%); border-color: rgba(34,175,255,.35); }
body.theme-ocean .tt_toast.warning { background: linear-gradient(135deg, #8a6b08 0%, #4a3b05 100%); border-color: rgba(250,204,21,.25); }
body.theme-ocean .tt_toast.error { background: linear-gradient(135deg, #7f1d1d 0%, #520f0f 100%); border-color: rgba(248,113,113,.25); }
body.theme-ocean .tt_toast_close { color: rgba(230,241,248,.55); }
body.theme-ocean .tt_toast_close:hover { color: #e6f1f8; }

@media (max-width: 480px) {
  .tt_toast_container { top: 10px; right: 10px; left: 10px; max-width: none; }
  .tt_toast { font-size: 12px; padding: 10px 11px; }
}



/* ============ Auth Modal — Tactical Monolith Theme ============ */
/* Dark industrial zinc panel with high-visibility lime accents and clipped corners */
.login_panel.tt-auth-modal {
  /* Цвета окна входа — переменные (по умолчанию тёмная тема, светлые варианты ниже) */
  --am-accent: #1495de;
  --am-bg: #111111;
  --am-fg: #fafafa;
  --am-line: #27272a;
  --am-line2: #3f3f46;
  --am-muted: #a1a1aa;
  --am-dim: #71717a;
  --am-ico: #52525b;
  --am-field: #0a0a0a;
  --am-grid: rgba(255, 255, 255, .03);
  --am-close-bg: rgba(10, 10, 10, .6);
  --am-tabs-bg: rgba(0, 0, 0, .25);
  --am-tick: #3f3f46;
  width: 420px; max-width: calc(100vw - 24px);
  padding: 0; border-radius: 0; overflow: hidden;
  background: var(--am-bg);
  color: var(--am-fg);
  border: 1px solid var(--am-line);
  box-shadow:
    0 40px 90px -25px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 0 30px -10px rgba(20, 149, 222, 0.25);
  clip-path: polygon(0 0, 92% 0, 100% 8%, 100% 100%, 8% 100%, 0 92%);
  animation: ttAuthIn .34s cubic-bezier(.2,.9,.3,1.2);
  font-family: "JetBrains Mono", "Nunito", "Segoe UI", monospace;
}
/* Subtle grid backdrop */
.login_panel.tt-auth-modal::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--am-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--am-grid) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(130% 100% at 50% 0%, #000 25%, transparent 80%);
  z-index: 0;
}
/* Lime top status bar */
.login_panel.tt-auth-modal::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: #1495de;
  box-shadow: 0 0 12px rgba(20, 149, 222, .5);
  z-index: 2;
}
@keyframes ttAuthIn {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 18px)) scale(.94); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.login_panel.tt-auth-modal .tt-auth-glow {
  position: absolute; inset: -40% -20% auto -20%; height: 70%;
  background: radial-gradient(45% 60% at 50% 30%, rgba(20, 149, 222, .12), transparent 70%);
  filter: blur(50px); pointer-events: none; z-index: 0;
}

.tt-auth-modal > * { position: relative; z-index: 1; }

.tt-auth-close {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px;
  border-radius: 0; border: 1px solid var(--am-line2); cursor: pointer;
  background: var(--am-close-bg); color: var(--am-muted);
  display: inline-flex; align-items: center; justify-content: center;
  transition: .2s; z-index: 4; padding: 0;
}
.tt-auth-close:hover { background: rgba(20, 149, 222, .12); border-color: #1495de; color: #1495de; transform: rotate(90deg); }

/* Hero block */
.tt-auth-hero { padding: 44px 32px 10px; text-align: center; position: relative; }
.tt-auth-badge {
  position: absolute; top: 38px; right: 32px;
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(20, 149, 222, .1);
  border: 1px solid rgba(20, 149, 222, .45);
  color: #1495de; font-size: 20px;
  clip-path: polygon(0 0, 85% 0, 100% 15%, 100% 100%, 15% 100%, 0 85%);
}
.tt-auth-title {
  margin: 0 0 8px; font-size: 28px; font-weight: 800; letter-spacing: -.02em;
  color: var(--am-fg); text-transform: uppercase; font-style: italic;
  font-family: "JetBrains Mono", "Nunito", monospace;
}
.tt-auth-title::after {
  content: "System Login";
  display: block;
  font-size: 10px; font-weight: 700; color: var(--am-dim);
  letter-spacing: .25em; margin-top: 8px; font-style: normal;
}
.tt-auth-sub { margin: 0; font-size: 12px; color: var(--am-muted); line-height: 1.5; max-width: 280px; font-family: "Nunito", sans-serif; }

/* Tabs — dark segmented with lime active pill */
.tt-auth-tabs {
  position: relative; display: flex; margin: 24px 32px 0;
  background: var(--am-tabs-bg); padding: 4px;
  border: 1px solid var(--am-line);
}
.tt-auth-tabs .tt-tab {
  flex: 1; padding: 11px 10px; border: 0; background: transparent !important;
  cursor: pointer; font-weight: 700; font-size: 11px;
  color: var(--am-dim); border-radius: 0;
  transition: color .2s; z-index: 1; position: relative;
  min-height: unset; letter-spacing: .12em; text-transform: uppercase;
  font-family: "JetBrains Mono", monospace;
}
.tt-auth-tabs .tt-tab.active { color: #000; }
.tt-auth-tabs .tt-tab:hover { color: #1495de; }
.tt-auth-tabs .tt-tab.active:hover { color: #000; }
.tt-auth-tabs .tt-tab-ind {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  background: #1495de;
  border-radius: 0;
  box-shadow: 0 6px 20px -4px rgba(20, 149, 222, .55), inset 0 -2px 0 rgba(0,0,0,.15);
  transition: transform .32s cubic-bezier(.4,.2,.2,1);
}
.tt-auth-tabs[data-active="signup"] .tt-tab-ind { transform: translateX(100%); }

/* Form */
.tt-auth-form { display: flex; flex-direction: column; gap: 14px; padding: 26px 32px 10px; margin: 0; }

/* Fields — dark with right accent bar */
.tt-field {
  display: flex; align-items: center; gap: 12px;
  background: var(--am-field);
  border: 1px solid var(--am-line);
  border-radius: 0; padding: 0 0 0 16px;
  transition: .22s; height: 50px;
  position: relative;
}
.tt-field::after {
  content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 4px;
  background: var(--am-line2); transition: background .22s;
}
.tt-field:focus-within {
  background: var(--am-field);
  border-color: var(--am-line2);
  box-shadow: 0 0 0 2px rgba(20, 149, 222, .08);
}
.tt-field:focus-within::after { background: var(--am-accent); }
.tt-field i { color: var(--am-ico); font-size: 14px; transition: color .2s; }
.tt-field:focus-within i { color: var(--am-accent); }
.tt-field input {
  flex: 1; background: transparent; border: 0; outline: 0;
  font-size: 13px; color: var(--am-fg) !important; padding: 0; height: 100%;
  font-family: "JetBrains Mono", monospace; letter-spacing: .02em;
}
.tt-field input::placeholder { color: var(--am-ico); text-transform: uppercase; font-size: 12px; letter-spacing: .05em; }

/* Primary button — lime monolith */
.tt-btn-primary {
  display: inline-flex !important; align-items: center; justify-content: center; gap: 12px;
  height: 52px; margin-top: 8px; padding: 0 24px;
  border: 0; border-radius: 0; cursor: pointer;
  background: #1495de;
  color: #000 !important; font-weight: 800; font-size: 13px;
  letter-spacing: .1em; text-transform: uppercase;
  box-shadow: 0 10px 28px -10px rgba(20, 149, 222, .45);
  transition: transform .15s, box-shadow .2s, filter .2s, background .2s;
  min-height: unset; position: relative; overflow: hidden;
  font-family: "JetBrains Mono", monospace;
}
.tt-btn-primary::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(255, 255, 255, .1);
  transform: translateX(-100%);
  transition: transform .35s ease;
  pointer-events: none;
}
.tt-btn-primary:hover::before { transform: translateX(100%); }
.tt-btn-primary > * { position: relative; z-index: 1; }
.tt-btn-primary:hover {
  transform: translateY(-1px); filter: brightness(1.05);
  box-shadow: 0 14px 36px -10px rgba(20, 149, 222, .65);
}
.tt-btn-primary:active { transform: translateY(0); }
.tt-btn-primary i { font-size: 14px; color: #000; }

.tt-auth-divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--am-ico); font-size: 10px; text-transform: uppercase;
  letter-spacing: .2em; font-weight: 700; margin: 4px 0;
  font-family: "JetBrains Mono", monospace;
}
.tt-auth-divider::before, .tt-auth-divider::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--am-line2), transparent);
}

.tt-btn-google {
  display: inline-flex !important; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 18px;
  border-radius: 0; cursor: pointer;
  background: transparent !important; color: var(--am-muted) !important;
  border: 1px solid var(--am-line) !important;
  font-weight: 600; font-size: 12px;
  transition: .2s; min-height: unset; letter-spacing: .04em;
  font-family: "JetBrains Mono", monospace;
}
.tt-btn-google:hover {
  background: rgba(20, 149, 222, .08) !important;
  border-color: #1495de !important;
  transform: translateY(-1px);
  color: #1495de !important;
}
.tt-btn-google i { color: #ea4335; font-size: 15px; }

.tt-auth-form .tt-msg { min-height: 16px; font-size: 12px; color: #ef4444; text-align: center; font-weight: 500; }
.tt-auth-foot { text-align: center; padding: 10px 32px 28px; }
.tt-auth-foot a {
  color: var(--am-dim); font-size: 12px; font-weight: 600;
  text-decoration: none; transition: color .2s;
  text-transform: uppercase; letter-spacing: .08em;
  font-family: "JetBrains Mono", monospace;
}
.tt-auth-foot a:hover { color: #1495de; }

/* Password visibility toggle */
.tt-field-pwd { padding-right: 6px; }
.tt-pwd-toggle {
  width: 40px; height: 40px; margin-right: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0; cursor: pointer;
  color: var(--am-dim); transition: color .18s, background .18s;
  border-radius: 0; padding: 0;
}
.tt-pwd-toggle:hover { color: #1495de; background: rgba(20, 149, 222,.08); }
.tt-pwd-toggle i { font-size: 15px; }

/* OAuth provider grid */
.tt-auth-oauth { padding: 0 32px 8px; }
.tt-provider-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 4px;
  justify-content: center;
}
.tt-prov {
  position: relative; height: 42px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--am-field); color: var(--am-muted);
  border: 1px solid var(--am-line); border-radius: 0;
  cursor: pointer; transition: transform .15s, border-color .18s, color .18s, background .18s, box-shadow .18s;
  font-family: "JetBrains Mono", monospace;
  min-height: unset; font-weight: 700;
}
.tt-prov i { font-size: 16px; line-height: 1; }
.tt-prov .tt-prov-fallback { font-size: 13px; font-weight: 800; letter-spacing: 0; }
.tt-prov i + .tt-prov-fallback { display: none; }
.tt-prov:hover {
  transform: translateY(-2px);
  border-color: #1495de; color: #1495de;
  background: rgba(20, 149, 222,.08);
  box-shadow: 0 6px 18px -8px rgba(20, 149, 222,.5);
}
.tt-prov-google:hover   { border-color:#ea4335; color:#ea4335; background:rgba(234,67,53,.08); box-shadow:0 6px 18px -8px rgba(234,67,53,.5); }
.tt-prov-discord:hover  { border-color:#5865f2; color:#5865f2; background:rgba(88,101,242,.08); box-shadow:0 6px 18px -8px rgba(88,101,242,.5); }
.tt-prov-vk:hover       { border-color:#0077ff; color:#0077ff; background:rgba(0,119,255,.08); box-shadow:0 6px 18px -8px rgba(0,119,255,.5); }
.tt-prov-yandex:hover   { border-color:#fc3f1d; color:#fc3f1d; background:rgba(252,63,29,.08); box-shadow:0 6px 18px -8px rgba(252,63,29,.5); }
.tt-prov-steam:hover    { border-color:#66c0f4; color:#66c0f4; background:rgba(102,192,244,.08); box-shadow:0 6px 18px -8px rgba(102,192,244,.5); }
.tt-prov-epic:hover     { border-color:#ffffff; color:#ffffff; background:rgba(255,255,255,.08); box-shadow:0 6px 18px -8px rgba(255,255,255,.5); }
.tt-prov-telegram:hover { border-color:#26a5e4; color:#26a5e4; background:rgba(38,165,228,.08); box-shadow:0 6px 18px -8px rgba(38,165,228,.5); }

/* Forgot password pane */
#tt-forgot-form .tt-forgot-hint {
  font-family: "Nunito", sans-serif;
  font-size: 12px; color: var(--am-muted); line-height: 1.5;
  padding: 4px 2px 2px;
}
#tt-forgot-form .tt-btn-google { margin-top: 4px; }
#tt-forgot-form .tt-btn-google i { color: inherit; }

/* Signed-in user card */
.tt-user-card {
  display: flex; align-items: center; gap: 14px;
  padding: 36px 32px 24px;
  background: rgba(20, 149, 222, .08);
  border-bottom: 1px solid rgba(20, 149, 222, .15);
}
.tt-user-avatar {
  width: 58px; height: 58px; border-radius: 0; object-fit: cover;
  box-shadow: 0 8px 22px -6px rgba(0,0,0,.5), 0 0 0 2px #1495de;
  clip-path: polygon(0 0, 85% 0, 100% 15%, 100% 100%, 15% 100%, 0 85%);
}
.tt-user-name { font-size: 16px; font-weight: 800; color: var(--am-fg); letter-spacing: -.01em; font-family: "JetBrains Mono", monospace; }
.tt-user-sub { font-size: 12px; color: var(--am-muted); margin-top: 3px; }
.tt-user-menu { display: flex; flex-direction: column; padding: 14px; gap: 4px; }
.tt-user-menu-item {
  display: flex !important; align-items: center; gap: 12px;
  padding: 12px 14px !important; border-radius: 0;
  background: transparent !important; color: var(--am-fg) !important;
  border: 0; cursor: pointer; text-decoration: none;
  font-size: 14px; font-weight: 500; text-align: left; width: 100%;
  min-height: unset; transition: background .18s, color .18s;
}
.tt-user-menu-item:hover { background: rgba(20, 149, 222, .1) !important; color: #1495de !important; }
.tt-user-menu-item i:first-child { width: 20px; text-align: center; color: var(--am-dim); transition: color .18s; }
.tt-user-menu-item:hover i:first-child { color: #1495de; }
.tt-user-menu-item span { flex: 1; }
.tt-user-menu-item .tt-chev { font-size: 11px; opacity: .4; }
.tt-user-menu-item.tt-signout { color: #ef4444 !important; }
.tt-user-menu-item.tt-signout:hover { background: rgba(239, 68, 68, .1) !important; color: #f87171 !important; }
.tt-user-menu-item.tt-signout i:first-child { color: #ef4444; }
.tt-user-menu-item.tt-signout:hover i:first-child { color: #f87171; }

/* Corner accent ticks */
.login_panel.tt-auth-modal .tt-auth-glow::before,
.login_panel.tt-auth-modal .tt-auth-glow::after {
  content: ""; position: absolute; pointer-events: none;
  width: 10px; height: 10px; border-color: var(--am-tick);
  border-style: solid; z-index: 3;
}
.login_panel.tt-auth-modal .tt-auth-glow::before { bottom: 12px; right: 12px; border-width: 0 2px 2px 0; }
.login_panel.tt-auth-modal .tt-auth-glow::after { top: 12px; left: 12px; border-width: 2px 0 0 2px; }

@media (max-width: 480px) {
  .login_panel.tt-auth-modal { width: calc(100vw - 20px); border-radius: 18px; }
  .tt-auth-hero { padding: 32px 20px 4px; }
  .tt-auth-title { font-size: 26px; }
  .tt-auth-badge { width: 46px; height: 46px; font-size: 18px; top: 28px; right: 20px; }
  .tt-auth-form { padding: 18px 20px 6px; }
  .tt-auth-tabs { margin: 18px 20px 0; }
}

/* ============ Comment avatar image + clickable name ============ */
.comment_avatar_img {
  width: 38px; height: 38px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(15,23,42,.15);
}
.comment_user_link {
  background: none; border: 0; padding: 0; margin: 0;
  font: inherit; font-weight: 700; font-size: 14px;
  color: inherit; cursor: pointer; text-align: left;
  min-height: unset; border-radius: 0;
}
.comment_user_link:hover { color: #3b82f6; background: transparent; text-decoration: underline; }
.comment_banned_badge {
  display: inline-block; vertical-align: middle;
  margin-left: 6px; padding: 1px 7px;
  font-size: 11px; font-weight: 700; line-height: 1.6;
  border-radius: 6px;
  background: #ef4444; color: #fff;
  text-transform: uppercase; letter-spacing: .3px;
}
.comment_user_link.is_banned { color: #ef4444; text-decoration: line-through; }
.comment_user_link.is_banned:hover { text-decoration: line-through underline; }
body.theme-dark .comment_banned_badge { background: #dc2626; }

/* ============ User profile popup ============ */
.tt-user-popup-backdrop {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(15,23,42,.5); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  animation: ttFade .2s ease;
  padding: 16px;
}
@keyframes ttFade { from { opacity: 0; } to { opacity: 1; } }
.tt-user-popup {
  width: 380px; max-width: 100%;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  color: #0f172a;
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(15,23,42,.5);
  border: 1px solid rgba(148,163,184,.2);
  position: relative;
  transform-origin: var(--ox, 50%) var(--oy, 50%);
  opacity: 0;
  transform: scale(.05);
  filter: blur(8px);
  transition: opacity .45s ease, transform .55s cubic-bezier(.2,.9,.3,1.25), filter .35s ease;
  pointer-events: none;
}
.tt-user-popup-backdrop.is-open .tt-user-popup {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
  pointer-events: auto;
}
.tt-user-popup-backdrop.is-closing { opacity: 0; transition: opacity .25s ease; }
.tt-user-popup-backdrop.is-closing .tt-user-popup {
  opacity: 0; transform: scale(.05); filter: blur(6px);
  transition: opacity .25s ease, transform .25s ease, filter .25s ease;
}

/* Bubble field morphing into the popup */
.tt-bubble-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.tt-bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.85) 0%, rgba(255,255,255,.15) 22%, rgba(125,211,252,.28) 48%, rgba(139,92,246,.12) 72%, rgba(59,130,246,.04) 100%);
  box-shadow: 0 0 16px rgba(255,255,255,.35), 0 0 5px rgba(125,211,252,.25), inset 0 0 10px rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.28);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  animation-name: ttBubbleRise;
  animation-timing-function: cubic-bezier(.2,.7,.3,1);
  animation-fill-mode: forwards;
  will-change: transform, opacity;
}
@keyframes ttBubbleRise {
  0%   { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  15%  { opacity: .85; }
  45%  { transform: translate(calc(-50% + var(--dx) * .5 + var(--wobbleX, 0px)), calc(-50% + var(--dy) * .5 + var(--wobbleY, 0px))) scale(1); opacity: .92; }
  70%  { transform: translate(calc(-50% + var(--dx) * .8), calc(-50% + var(--dy) * .8)) scale(.5); opacity: .45; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.12); opacity: 0; }
}
.tt-user-popup-backdrop.is-open .tt-bubble-layer { opacity: 0; transition: opacity .3s ease .1s; }

.tt-user-popup .tt-up-hero {
  padding: 24px 24px 18px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  display: flex; gap: 14px; align-items: center;
  position: relative;
}
.tt-user-popup .tt-up-avatar {
  width: 68px; height: 68px; border-radius: 20px; object-fit: cover;
  box-shadow: 0 0 0 3px rgba(255,255,255,.4), 0 6px 18px rgba(0,0,0,.25);
}
.tt-user-popup .tt-up-name { font-size: 20px; font-weight: 700; }
.tt-user-popup .tt-up-role { font-size: 12px; opacity: .85; margin-top: 4px; }
.tt-user-popup .tt-up-close {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px;
  border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.2); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: unset; padding: 0;
}
.tt-user-popup .tt-up-close:hover { background: rgba(255,255,255,.35); transform: rotate(90deg); transition: .2s; }
.tt-up-stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 10px; padding: 16px 20px 4px;
}
.tt-up-stat {
  background: rgba(15,23,42,.04);
  border: 1px solid rgba(15,23,42,.06);
  border-radius: 12px; padding: 12px;
  display: flex; align-items: center; gap: 10px;
}
.tt-up-stat i {
  width: 32px; height: 32px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(59,130,246,.15), rgba(139,92,246,.15));
  color: #3b82f6;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0;
}
.tt-up-stat-label { font-size: 11px; opacity: .6; text-transform: uppercase; letter-spacing: .04em; }
.tt-up-stat-value { font-size: 14px; font-weight: 700; margin-top: 2px; }
.tt-up-actions { padding: 12px 20px 20px; display: flex; gap: 8px; }
.tt-up-btn {
  flex: 1; height: 42px; border-radius: 12px; border: 0; cursor: pointer;
  font-weight: 600; font-size: 13px;
  display: inline-flex !important; align-items: center; justify-content: center; gap: 8px;
  min-height: unset; padding: 0 14px;
  transition: .18s;
}
.tt-up-btn.primary {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff !important;
  box-shadow: 0 6px 18px -4px rgba(59,130,246,.5);
  text-decoration: none;
}
.tt-up-btn.primary:hover { transform: translateY(-1px); filter: brightness(1.06); }
.tt-up-btn.ghost {
  background: rgba(15,23,42,.06); color: #0f172a !important;
}
.tt-up-btn.ghost:hover { background: rgba(15,23,42,.12); }
.tt-up-loading { padding: 24px; text-align: center; opacity: .6; font-size: 13px; }

body.theme-dark .tt-user-popup,
body.theme-ocean .tt-user-popup {
  background: linear-gradient(180deg, #1e293b, #0f172a);
  color: #e2e8f0;
  border-color: rgba(148,163,184,.15);
}
body.theme-dark .tt-up-stat,
body.theme-ocean .tt-up-stat { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.06); }
body.theme-dark .tt-up-btn.ghost,
body.theme-ocean .tt-up-btn.ghost { background: rgba(255,255,255,.08); color: #e2e8f0 !important; }
body.theme-dark .tt-up-btn.ghost:hover,
body.theme-ocean .tt-up-btn.ghost:hover { background: rgba(255,255,255,.14); }

/* Card action buttons (bell / heart on cover) */
.tt-card-act{position:absolute;bottom:8px;width:34px;height:34px;border-radius:50%;border:0;background:rgba(0,0,0,.55);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:15px;z-index:5;transition:.15s;backdrop-filter:blur(4px);}
.tt-card-act:hover{background:rgba(0,0,0,.8);transform:scale(1.1);}
.tt-card-watch{left:8px;}
.tt-card-fav{right:8px;}
.tt-card-watch.is-active{background:#3498db;color:#fff;}
.tt-card-fav.is-active{background:#e74c3c;color:#fff;}
.tt-card-act.is-active i{font-weight:900;}
.short_img{position:relative;}
.game_hero_cover{position:relative;display:block;}
.game_hero_cover .game_hero_img{display:block;}
.game_hero_cover .tt-card-act{width:40px;height:40px;font-size:17px;bottom:12px;}
.game_hero_cover .tt-card-watch{left:12px;}
.game_hero_cover .tt-card-fav{right:12px;}
/* Mini favorite heart on catalog cards */
.tt-card-fav-mini{position:absolute;top:6px;right:6px;width:22px;height:22px;border-radius:50%;border:0;background:rgba(0,0,0,.45);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:10px;z-index:5;transition:.15s;backdrop-filter:blur(3px);padding:0;}
.tt-card-fav-mini:hover{background:rgba(0,0,0,.75);transform:scale(1.12);}
.tt-card-fav-mini.is-active{background:#e74c3c;color:#fff;}
.tt-card-fav-mini.is-active i{font-weight:900;}

/* Подсветка комментария при переходе по прямой ссылке */
.comment_item{transition: background-color .5s ease, box-shadow .5s ease;}
.comment_item.comment_highlight{
  animation: ttCommentGlow 3.2s cubic-bezier(.33,0,.2,1) both;
  border-radius: 12px;
  scroll-margin-top: 100px;
}
@keyframes ttCommentGlow{
  0%   { background-color: rgba(52,152,219,0);   box-shadow: 0 0 0 0 rgba(52,152,219,0); }
  22%  { background-color: rgba(52,152,219,.16); box-shadow: 0 0 0 4px rgba(52,152,219,.12); }
  62%  { background-color: rgba(52,152,219,.16); box-shadow: 0 0 0 4px rgba(52,152,219,.12); }
  100% { background-color: rgba(52,152,219,0);   box-shadow: 0 0 0 0 rgba(52,152,219,0); }
}
@media (prefers-reduced-motion: reduce) {
  .comment_item.comment_highlight { animation: none; background-color: rgba(52,152,219,.14); }
}


/* ============ Уведомления (колокольчик в шапке) ============ */
.tt_notif_btn { position: relative; }
.tt_notif_badge {
  position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px;
  padding: 0 4px; border-radius: 9px; background: #e5484d; color: #fff;
  font-size: 10px; line-height: 16px; text-align: center; font-weight: 700;
  box-shadow: 0 0 0 2px var(--bg, #fff);
}
.tt_notif_panel {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 120;
  width: 340px; max-width: calc(100vw - 24px);
  background: var(--block-bg, #fff); color: inherit;
  border: 1px solid rgba(128,128,128,.2); border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,.22); overflow: hidden;
  animation: ttNotifIn .18s ease-out;
}
@keyframes ttNotifIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.tt_notif_head { padding: 12px 14px; font-weight: 700; font-size: 14px; border-bottom: 1px solid rgba(128,128,128,.16); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tt_notif_clear {
  background: rgba(128,128,128,.12); border: 0; color: inherit; cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 6px;
  display: inline-flex; align-items: center; gap: 6px; transition: background .15s, opacity .15s; opacity: .85;
}
.tt_notif_clear:hover { background: rgba(255,80,80,.18); opacity: 1; }
.tt_notif_list { max-height: 360px; overflow-y: auto; }
.tt_notif_item {
  display: flex; gap: 10px; padding: 10px 14px; text-decoration: none; color: inherit;
  border-bottom: 1px solid rgba(128,128,128,.12); transition: background .15s;
}
.tt_notif_item:hover { background: rgba(128,128,128,.1); }
.tt_notif_item.is_new { background: rgba(64,140,255,.09); }
.tt_notif_avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.tt_notif_body { min-width: 0; }
.tt_notif_title { font-size: 13px; line-height: 1.35; }
.tt_notif_text { font-size: 12px; opacity: .8; margin-top: 2px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tt_notif_meta { font-size: 11px; opacity: .6; margin-top: 4px; }
.tt_notif_empty { padding: 26px 16px; text-align: center; font-size: 13px; }
.tt_notif_empty i { font-size: 26px; opacity: .5; display: block; margin-bottom: 8px; }
.tt_notif_empty span { display: block; font-size: 12px; opacity: .65; margin-top: 4px; }

/* ===== Обновление раздачи: плашка на странице игры ===== */
.tt_upd_note{
  margin:0;padding:1px 8px;border:1px solid var(--tt-border,rgba(0,0,0,.12));
  border-left:3px solid #3498db;border-radius:7px;background:rgba(52,152,219,.07);
  display:inline-flex;flex-direction:column;justify-content:flex-start;align-self:center;
  line-height:1;
  min-height:40px; box-sizing:border-box;
  position:relative;padding-top:5px;
}
.tt_upd_title{font-size:12px;font-weight:600;line-height:1;margin:0;display:flex;align-items:center;gap:6px}
.tt_upd_title i{color:#3498db;font-size:11px}
.tt_upd_link{
  margin:0;padding:0;border:0;background:none;cursor:pointer;line-height:.95;text-align:left;
  display:block;width:fit-content;min-height:0;height:auto;
  font-size:10px;color:#3498db;text-decoration:underline;text-underline-offset:1px;
  position:absolute;left:8px;bottom:4px;
}
.tt_upd_link:hover{opacity:.8}

/* ===== Закреплённый комментарий об обновлении ===== */
.comment_item.is_pinned{background:rgba(52,152,219,.06);border-radius:10px}
.comment_pin{margin-left:6px;color:#e74c3c;font-size:12px}
.upd_c_line{margin:0 0 4px;line-height:1.5}
.upd_c_star{color:#e74c3c;font-weight:700}
.upd_c_details{margin-top:6px}
.upd_c_details > summary{
  cursor:pointer;display:inline-block;font-size:13px;
  text-decoration:underline;text-underline-offset:3px;list-style:none;
}
.upd_c_details > summary::-webkit-details-marker{display:none}
.upd_c_log{
  margin-top:8px;padding-top:8px;border-top:1px solid var(--tt-border,rgba(0,0,0,.12));
  font-size:13px;line-height:1.6;
}
body.theme-dark .tt_upd_note{background:rgba(52,152,219,.10);border-color:rgba(255,255,255,.10);border-left-color:#3498db}
body.theme-dark .comment_item.is_pinned{background:rgba(52,152,219,.09)}

/* --- Подвкладки блоков «Доп. инфо 2» --- */
.extra_subtabs { display:flex; flex-wrap:wrap; gap:4px; border-bottom:1px solid #e5e7eb; margin:4px 0 12px; }
.extra_subtab { background:transparent; border:0; padding:8px 14px; font-size:13px; font-weight:700; color:#6b7280; cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-1px; font-family:inherit; }
.extra_subtab:hover { color:#111827; }
.extra_subtab.active { color:#dc2626; border-bottom-color:#dc2626; }
.extra_subpane { display:none; }
.extra_subpane.active { display:block; }

/* --- Кнопка скачивания с размером файла --- */
.dl_box { display:inline-flex; align-items:stretch; gap:10px; flex-wrap:nowrap; margin:10px 0; vertical-align:middle; }
.dl_box .dl_btn { white-space:nowrap; }
.dl_btn { display:inline-flex; align-items:center; justify-content:center; min-height:46px; padding:6px 26px; box-sizing:border-box; border-radius:8px; background:#4caf50; color:#fff; font-weight:700; font-size:16px; text-decoration:none; transition:background .15s ease, transform .15s ease; }
.dl_btn:hover { background:#43a047; transform:translateY(-1px); color:#fff; }
.dl_size { display:inline-flex; align-items:center; gap:8px; min-height:46px; box-sizing:border-box; padding:5px 14px; border:1px solid #e5e7eb; border-radius:8px; background:#fff; color:#111827; flex:0 0 auto; }
.dl_size i { font-size:14px; opacity:.7; }
.dl_size_txt { display:flex; flex-direction:column; line-height:1.15; }
.dl_size_txt b { font-size:9px; letter-spacing:.12em; text-transform:uppercase; color:#94a3b8; font-weight:700; white-space:nowrap; }
.dl_size_txt em { font-style:normal; font-size:15px; font-weight:800; }


/* ============ Окно входа: светлая тема ============ */
body:not(.theme-dark):not(.theme-ocean) .login_panel.tt-auth-modal {
  --am-bg: #ffffff;
  --am-fg: #1c1917;
  --am-line: #e4e4e7;
  --am-line2: #d4d4d8;
  --am-muted: #52525b;
  --am-dim: #71717a;
  --am-ico: #a1a1aa;
  --am-field: #fafafa;
  --am-grid: rgba(0, 0, 0, .045);
  --am-close-bg: rgba(255, 255, 255, .75);
  --am-tabs-bg: rgba(0, 0, 0, .05);
  --am-tick: #d4d4d8;
  box-shadow:
    0 40px 90px -25px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(0, 0, 0, 0.03) inset,
    0 0 30px -10px rgba(20, 149, 222, 0.25);
}
body.theme-rose .login_panel.tt-auth-modal {
  --am-bg: #ffffff;
  --am-fg: #3a1f28;
  --am-line: #ffe1e8;
  --am-line2: #f3bcc9;
  --am-muted: #7a2a3d;
  --am-dim: #9a5566;
  --am-ico: #c08a97;
  --am-field: #fff5f7;
  --am-grid: rgba(214, 58, 99, .06);
  --am-close-bg: rgba(255, 245, 247, .8);
  --am-tabs-bg: #ffe9ee;
  --am-tick: #f3bcc9;
}
body.theme-custom .login_panel.tt-auth-modal {
  --am-bg: hsl(var(--tt-hue), 30%, calc(var(--tt-bg-light) + 5%));
  --am-fg: hsl(var(--tt-hue), 30%, 15%);
  --am-line: hsl(var(--tt-hue), 30%, calc(var(--tt-bg-light) - 10%));
  --am-line2: hsl(var(--tt-hue), 30%, calc(var(--tt-bg-light) - 20%));
  --am-muted: hsl(var(--tt-hue), 22%, 32%);
  --am-dim: hsl(var(--tt-hue), 20%, 42%);
  --am-ico: hsl(var(--tt-hue), 18%, 55%);
  --am-field: hsl(var(--tt-hue), 30%, calc(var(--tt-bg-light) + 1%));
  --am-grid: rgba(0, 0, 0, .05);
  --am-close-bg: rgba(255, 255, 255, .6);
  --am-tabs-bg: hsl(var(--tt-hue), 30%, calc(var(--tt-bg-light) - 5%));
  --am-tick: hsl(var(--tt-hue), 30%, calc(var(--tt-bg-light) - 20%));
}

/* ============================ ГЛОБАЛЬНЫЕ ПОДСКАЗКИ ============================
   Стилизованные тултипы для всех элементов с title (ui.js переносит title в data-tt). */
.tt-tip{position:fixed;z-index:26000;max-width:260px;padding:6px 10px;border-radius:8px;font-size:12px;font-weight:600;line-height:1.35;color:var(--tx-txt,#fff);background:var(--tx-surface,#222);border:1px solid var(--tx-line,rgba(127,127,127,.25));box-shadow:0 8px 20px -8px color-mix(in srgb,var(--tx-green,#22c55e) 25%,rgba(0,0,0,.55));opacity:0;pointer-events:none;transition:opacity .15s,transform .15s;white-space:normal}
.tt-tip.on{opacity:1}
/* Поддержка контроллеров (страница игры) */
.gc-box{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:14px 0 6px;padding:10px 14px;background:var(--tx-card,rgba(255,255,255,.04));border:1px solid rgba(255,255,255,.08);border-radius:12px;font-size:14px}
.gc-box[hidden]{display:none}
.gc-title{display:inline-flex;align-items:center;gap:8px;font-weight:600;opacity:.9}
.gc-title i{font-size:18px}
.gc-badge,.gc-chip{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;font-size:13px;line-height:1.2;white-space:nowrap}
.gc-full{background:rgba(34,197,94,.15);color:#4ade80}
.gc-part{background:rgba(245,158,11,.15);color:#fbbf24}
.gc-none{background:rgba(148,163,184,.15);color:#cbd5e1}
.gc-chip{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08)}
.gc-note{flex-basis:100%;font-size:12px;opacity:.7}
.gc-sep{flex:none;width:3px;height:22px;border-radius:3px;background:color-mix(in srgb, var(--tx-green) 60%, var(--tx-line))}
.gc-deck-t{color:var(--tx-dim);font-size:13px;white-space:nowrap}
.gc-deck{display:inline-flex;align-items:center;gap:8px;flex-wrap:nowrap;white-space:nowrap}
.gc-deck.is-wrapped .gc-sep{display:none}

/* Блок «Примечание» на странице игры (с Byrut) */
.game-notice{margin:14px 0 6px;padding:12px 16px;border:1px solid color-mix(in srgb,var(--tx-green,#16a3b8) 45%,transparent);border-left:4px solid var(--tx-green,#16a3b8);border-radius:12px;background:color-mix(in srgb,var(--tx-green,#16a3b8) 8%,transparent);font-size:14px;line-height:1.5}
.game-notice-head{display:flex;align-items:center;gap:8px;font-weight:700;margin-bottom:6px;color:var(--tx-green,#16a3b8)}
.game-notice-text p{margin:0 0 4px}.game-notice-text p:last-child{margin:0}

/* Хлебные крошки страницы «Игры, похожие на …» */
.similar-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--tx-dim, #888); margin: 0 0 8px; }
.similar-crumbs a { color: inherit; text-decoration: none; }
.similar-crumbs a:hover { color: var(--tx-green, inherit); text-decoration: underline; }
.similar-crumbs b { font-weight: 600; color: var(--tx-txt, inherit); }
