

/* --- updates feed: structured list v2 -------------------------------- */
.update-feed.update-feed-list,
.update-feed-list {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  gap: 8px !important;
  margin-bottom: 28px;
  max-width: 920px;
}
.update-feed-page.update-feed-list {
  max-width: none;
  gap: 6px !important;
}
.update-day {
  margin: 18px 0 6px;
  padding: 0 2px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--acc-2);
  text-transform: uppercase;
}
.update-day:first-child { margin-top: 4px; }
a.update-card.update-card-row {
  display: grid !important;
  grid-template-columns: 108px minmax(0, 1fr) auto !important;
  flex-direction: unset !important;
  gap: 10px 16px !important;
  align-items: center !important;
  min-height: 0 !important;
  padding: 14px 16px !important;
}
.update-feed-page a.update-card.update-card-row {
  grid-template-columns: minmax(0, 1fr) auto !important;
}
.update-card-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.update-card-row strong {
  font-size: 14.5px;
  line-height: 1.35;
}
.update-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--txt-2);
}
.update-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-top: 2px;
}
.update-ver {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
}
.update-card-row .update-go {
  margin-top: 0 !important;
  white-space: nowrap;
  justify-self: end;
}
@media (max-width: 700px) {
  a.update-card.update-card-row {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }
  .update-card-row .update-go { justify-self: start; }
}

/* --- home 9-up compact cards (force) --------------------------------- */
.grid.home-9 {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
}
.grid.home-9 .card .poster { aspect-ratio: 3 / 4 !important; }
.grid.home-9 .card .shade { height: 38% !important; }
.grid.home-9 .card .name {
  -webkit-line-clamp: 1 !important;
  font-size: 13px !important;
}
.grid.home-9 .card .hint,
.card .hint { display: none !important; }
@media (max-width: 640px) {
  .grid.home-9 { gap: 8px !important; }
  .grid.home-9 .stamp { display: none !important; }
}

.grid.home-9 {
  max-width: 1080px !important;
}
.grid.home-9 .card .poster { aspect-ratio: 3 / 4 !important; }

.grid.catalog-5 {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: 14px !important;
}
.grid.catalog-5 .card .poster { aspect-ratio: 3 / 4 !important; }
.grid.catalog-5 .card .name { -webkit-line-clamp: 1 !important; }
.grid.catalog-5 .card .hint { display: none !important; }

/* --- restore original card/poster size (keep 9-count on home) -------- */
.grid {
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)) !important;
  gap: 14px !important;
  max-width: none !important;
}
.grid.tight,
.grid.home-9,
.grid.catalog-5 {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
  gap: 12px !important;
  max-width: none !important;
}
.card .poster,
.grid.home-9 .card .poster,
.grid.catalog-5 .card .poster,
.grid.tight .card .poster {
  aspect-ratio: 2 / 3 !important;
}
.card .shade,
.grid.home-9 .card .shade {
  height: 62% !important;
}
.grid.home-9 .card .name,
.grid.catalog-5 .card .name {
  font-size: 13.5px !important;
  -webkit-line-clamp: 2 !important;
}
@media (max-width: 820px) {
  .grid,
  .grid.tight,
  .grid.home-9,
  .grid.catalog-5 {
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)) !important;
    gap: 10px !important;
  }
}
@media (max-width: 520px) {
  .grid,
  .grid.tight,
  .grid.home-9,
  .grid.catalog-5 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

.row h2 a {
  color: inherit;
  text-decoration: none;
}
.row h2 a:hover { color: var(--acc); }
/* --- страница скачивания (условия, как StopGame) ------------------------- */

.dl-confirm {
  max-width: 760px;
  margin: 0 auto 40px;
}
.dl-confirm h1 {
  font-size: 28px;
  line-height: 1.25;
  margin: 8px 0 18px;
}
.dl-lead {
  color: var(--txt-2);
  margin: 0 0 12px;
  font-size: 15px;
}
.dl-terms {
  margin: 0 0 22px;
  padding-left: 22px;
  color: var(--txt);
  font-size: 15px;
  line-height: 1.55;
}
.dl-terms li { margin: 0 0 10px; }
.dl-agree {
  margin: 0 0 14px;
  font-size: 15px;
}
.dl-file {
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--dim);
}
.dl-file b {
  color: var(--txt);
  font-family: var(--mono);
  font-weight: 500;
  word-break: break-all;
}
.dl-go { margin: 8px 0 12px; }
.dl-go .btn { min-width: 220px; }
.dl-ttl { margin: 0 0 18px; }
.dl-back { margin: 8px 0 0; }
.dl-back a { color: var(--dim); text-decoration: none; }
.dl-back a:hover { color: var(--acc); }

.dl-confirm .dl-ver {
  color: var(--dim);
  font-weight: 500;
  font-size: 0.7em;
}

.dl-modal {
  border: 0;
  padding: 28px 28px 24px;
  width: min(420px, calc(100vw - 32px));
  border-radius: 16px;
  background: #1a2230;
  color: var(--txt);
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
}
.dl-modal::backdrop {
  background: rgba(4, 8, 16, .72);
  backdrop-filter: blur(4px);
}
.dl-modal-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.dl-modal-x svg { width: 18px; height: 18px; }
.dl-modal-x:hover { color: var(--txt); }
.dl-modal { position: relative; }
.dl-modal-hint {
  margin: 0 0 16px;
  text-align: center;
  color: var(--txt-2);
  font-size: 15px;
}
.dl-pass-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 2px solid var(--acc);
  border-radius: 10px;
  background: rgba(0,0,0,.25);
}
.dl-pass-box code {
  flex: 1;
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .02em;
  user-select: all;
}
.dl-copy {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--txt);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.dl-copy svg { width: 20px; height: 20px; }
.dl-copy:hover { color: var(--acc); background: rgba(255,255,255,.06); }
.dl-copy.copied { color: var(--ok); }
.dl-modal .btn { width: 100%; justify-content: center; }

/* --- вход: почта, OAuth, Steam ----------------------------------------- */

.auth-lead {
  margin: -6px 0 18px;
  color: var(--txt-2);
  font-size: 14px;
  line-height: 1.45;
}

.oauth {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

a.btn.oauth {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  padding: 0 16px;
  overflow: hidden;
  white-space: nowrap;
  font-weight: 600;
  line-height: 1;
  box-sizing: border-box;
}

a.btn.oauth .oauth-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

a.btn.oauth .oauth-ico svg,
a.btn.oauth svg {
  display: block;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  max-width: 20px;
  max-height: 20px;
}

.btn.oauth.google { background: #fff; border-color: #d8dee8; color: #1f1f1f; }
.btn.oauth.google:hover { background: #f3f5f8; color: #1f1f1f; }

.btn.oauth.mailru { background: #005ff9; border-color: #005ff9; color: #fff; }
.btn.oauth.mailru:hover { background: #0047c7; border-color: #0047c7; color: #fff; }

.btn.oauth.steam { background: #171a21; border-color: #2a475e; color: #fff; }
.btn.oauth.steam:hover { background: #1b2838; color: #fff; }

.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--dim);
}

.auth-providers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-providers .prov {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  text-transform: capitalize;
  color: var(--txt-2);
}

input[type="email"] {
  width: 100%;
  padding: 9px 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--txt);
  font-family: var(--body);
  font-size: 14px;
  outline: none;
}
input[type="email"]:focus { border-color: var(--acc); background: var(--panel); }

.avatar.has-img {
  background: var(--panel-2);
  overflow: hidden;
  padding: 0;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.avatar.lg { width: 72px; height: 72px; font-size: 28px; }
.avatar.xl { width: 96px; height: 96px; font-size: 36px; }
.thread .comment .who { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.auth.settings-page { max-width: 560px; }
.settings-public { margin: 0 0 16px; font-size: 13.5px; }
.avatar-edit {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}
.avatar-edit .hint { margin-top: 6px; }
.check-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--txt-2);
  cursor: pointer;
}
.check-inline input { width: auto; }

.profile-head {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  margin-bottom: 28px;
  padding: 22px;
}
.profile-head h1 {
  margin: 0 0 4px;
  font-size: 26px;
  text-transform: none;
  letter-spacing: 0;
}
.profile-login {
  color: var(--dim);
  font-size: 14px;
  margin-bottom: 10px;
}
.profile-bio {
  margin: 0 0 12px;
  white-space: pre-wrap;
  line-height: 1.5;
  color: var(--txt-2);
}
.profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--txt-2);
  font-size: 13px;
  margin-bottom: 14px;
}

@media (max-width: 640px) {
  .profile-head { flex-direction: column; align-items: center; text-align: center; }
  .profile-stats { justify-content: center; }
  .avatar-edit { flex-direction: column; align-items: flex-start; }
}
