/* GameZone v30 — страница игры и компоненты DLE, которых нет на главной:
   галерея, файлы, обновления, комментарии, форма комментария. */

.game-page { padding-block: 0 60px; }
.game-hero__actions .button, .file .button { background: linear-gradient(110deg, var(--accent), var(--accent-2)); }
.game-hero { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 15px; }
.game-hero__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .14; mask-image: linear-gradient(90deg, transparent, black); }
.game-hero__content { position: relative; display: grid; grid-template-columns: 205px minmax(0, 1fr); gap: 37px; padding: 30px; align-items: center; }
.game-hero__cover { width: 100%; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 8px; background: var(--soft); box-shadow: 0 16px 30px color-mix(in srgb, var(--bg) 60%, transparent); }
.game-hero__cover img { width: 100%; height: 100%; object-fit: cover; }
.game-hero h1 { font-size: clamp(28px, 3vw, 43px); letter-spacing: -1.7px; line-height: 1.15; margin-top: 10px; overflow-wrap: anywhere; }
.game-hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.game-hero .eyebrow span { padding-inline: 8px; }
.game-hero__edition { margin-top: 9px; font-size: 13px; color: var(--muted); }
.game-hero .platform-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 18px; }
.game-hero .platform-badges .cat-link { font-size: 10px; padding: 5px 9px; }
.game-hero__summary { max-width: 750px; font-size: 13px; line-height: 1.9; color: var(--muted); margin-top: 19px; }
.game-hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 27px; margin-top: 25px; }
.game-score { font-size: 20px; font-weight: 800; line-height: 1.2; color: var(--accent-2); }
.game-score small { display: block; font-size: 8px; color: var(--muted); margin-top: 4px; font-weight: 400; }
.game-comment-link { color: var(--muted); font-size: 10px; }
.game-comment-link:hover { color: var(--accent); }
.edit-link { color: var(--accent); font-size: 10px; font-weight: 700; }
.game-nav { display: flex; gap: 32px; border-bottom: 1px solid var(--border); margin: 10px 0 24px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.game-nav::-webkit-scrollbar { display: none; }
.game-nav a { padding: 19px 0; font-size: 11px; font-weight: 700; }
.game-nav a:hover { color: var(--accent); }
.game-section { padding: 28px 30px; margin-top: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; scroll-margin-top: 20px; }
.game-section h2, .related h2 { font-size: 22px; letter-spacing: -.6px; }
.game-section .section-heading { align-items: center; }
.game-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 28px; border-bottom: 1px solid var(--border); padding-bottom: 25px; margin: 24px 0; }
.game-facts dt { font-size: 10px; color: var(--subtle); margin-bottom: 7px; }
.game-facts dd { font-size: 12px; font-weight: 600; margin: 0; overflow-wrap: anywhere; }
.game-facts__links { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.game-facts__links .cat-link-1 { display: none; }
.game-facts__links .cat-link:hover { color: var(--accent); }
.game-prose { max-width: 1020px; color: var(--muted); font-size: 13px; line-height: 1.95; overflow-wrap: anywhere; }
.game-prose p + p { margin-top: 16px; }
.game-prose img { border-radius: 8px; }
.screenshots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-top: 20px; }
.screenshots a { display: block; overflow: hidden; border-radius: 8px; position: relative; }
.screenshots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .2s; }
.screenshots a > span { display: grid; place-items: center; position: absolute; bottom: 9px; right: 9px; width: 27px; height: 27px; background: var(--bg); border-radius: 50%; color: var(--text); }
.screenshots a:hover img { transform: scale(1.03); }
.screenshots a[href=""] { display: none; }
.files:empty { display: none; }
.file { display: flex; align-items: center; gap: 24px; padding: 17px 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.file:first-child { border-top: 0; }
.file__platform { display: inline-flex; align-items: center; min-width: 100px; padding: 8px 12px; border-radius: 6px; background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent); color: var(--accent); font-size: 11px; font-weight: 700; }
.file__info { flex: 1; min-width: 140px; }
.file__info strong { display: block; font-size: 13px; }
.file__info strong span { color: var(--muted); font-weight: 400; }
.file__info small { display: block; font-size: 10px; color: var(--subtle); margin-top: 5px; }
.file__size { font-size: 12px; font-weight: 600; }
.notice { margin-top: 12px; padding: 14px; border-radius: 7px; font-size: 12px; color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, transparent); }
.update-history { margin-top: 20px; padding: 18px 20px 6px; background: var(--bg); border-radius: 8px; }
.update-history summary { font-size: 12px; font-weight: 700; cursor: pointer; padding-bottom: 12px; display: flex; align-items: center; gap: 7px; }
.update-history summary .icon { color: var(--accent); width: 16px; height: 16px; }
.history-row { display: grid; grid-template-columns: 75px 145px 1fr; gap: 20px; padding: 12px 0; border-top: 1px solid var(--border); font-size: 11px; align-items: start; }
.history-row strong { color: var(--accent); }
.history-row time, .history-row p { color: var(--muted); }

/* Комментарии DLE */
.com_list { display: grid; }
.comment { display: flex; gap: 15px; padding: 21px 0; border-top: 1px solid var(--border); }
.com_list > .comment:first-child { border-top: 0; padding-top: 0; }
.comment__avatar { display: grid; place-items: center; width: 35px; height: 35px; flex: none; border-radius: 11px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font-size: 14px; }
.comment__body { min-width: 0; flex: 1; }
.comment__head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.comment__head strong { font-size: 12px; }
.comment__head small, .com-online { color: var(--subtle); font-size: 9px; }
.comment__text { margin-top: 7px; font-size: 12px; line-height: 1.8; color: var(--muted); overflow-wrap: anywhere; }
.comment__text p { margin: 0 0 8px; }
.comment__images { margin-top: 10px; }
.comment__signature { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--border); color: var(--muted); font-size: 11px; }
.comment__tools { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 9px; }
.comment__tools a { color: var(--muted); }
.comment__tool { color: var(--muted); font-size: 10px; font-weight: 700; }
.comment__tools a:hover .comment__tool, .comment__tool:hover { color: var(--accent); }
.comment__title { font-size: 13px; margin: 0 0 6px; }
.comment-count { color: var(--subtle); font-size: 13px; }

.addcomment { margin-top: 22px; border-top: 1px solid var(--border); padding-top: 18px; }
.addcomment .plus_icon { display: none; }
.addcomment h3 { font-size: 15px; margin: 0 0 12px; }
.addcomment .box { background: transparent; border: 0; padding: 0; }
.addcomment .box_in { padding: 0; }
.addcomment .btn { margin-top: 4px; }
.comment-form-note { font-size: 10px; }

/* Похожие игры */
.related { margin-top: 32px; }
.related .cover-shelf { grid-auto-columns: calc((100% - 5 * 20px) / 6); gap: 20px; }
.related .cover-card__image { aspect-ratio: 3 / 3.3; }

@media (max-width: 900px) {
	.game-hero__content { grid-template-columns: 160px minmax(0, 1fr); padding: 22px; gap: 24px; }
	.game-hero__summary { font-size: 12px; }
	.game-hero__actions { gap: 20px; }
	.game-comment-link { display: none; }
	.game-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.game-section { padding: 23px; }
	.screenshots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.related .cover-shelf { grid-auto-columns: calc((100% - 3 * 16px) / 4); gap: 16px; }
	.history-row { grid-template-columns: 65px 1fr; gap: 8px; }
	.history-row p { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
	.game-page { padding-top: 0; }
	.game-hero__content { grid-template-columns: 95px minmax(0, 1fr); gap: 17px; padding: 17px; align-items: start; }
	.game-hero__body { display: contents; }
	.game-hero__cover { grid-row: 1 / 5; }
	.game-hero .eyebrow, .game-hero h1, .game-hero__edition, .game-hero .platform-badges { grid-column: 2; }
	.game-hero .eyebrow { font-size: 8px; letter-spacing: .7px; }
	.game-hero .eyebrow span { padding-inline: 2px; }
	.game-hero h1 { font-size: 24px; letter-spacing: -.8px; margin-top: -10px; }
	.game-hero__edition { font-size: 10px; margin-top: -9px; }
	.game-hero .platform-badges { margin-top: -8px; }
	.game-hero .platform-badges .cat-link { font-size: 8px; padding: 3px 5px; }
	.game-hero__summary { grid-column: 1 / -1; margin: 0; font-size: 11px; line-height: 1.8; }
	.game-hero__actions { grid-column: 1 / -1; margin-top: 0; justify-content: space-between; }
	.game-nav { gap: 23px; margin-bottom: 17px; }
	.game-nav a { font-size: 10px; padding: 16px 0; }
	.game-section { padding: 18px 16px; margin-top: 15px; }
	.game-section h2, .related h2 { font-size: 20px; }
	.game-section .section-heading > .section-hint { display: none; }
	.game-facts { gap: 18px; margin: 20px 0; padding-bottom: 20px; }
	.game-facts dd { font-size: 11px; }
	.game-facts dt { font-size: 9px; }
	.game-prose { font-size: 12px; }
	.game-prose p + p { margin-top: 12px; }
	.screenshots { gap: 8px; }
	.screenshots a > span { width: 22px; height: 22px; right: 6px; bottom: 6px; font-size: 11px; }
	.file { gap: 10px 15px; }
	.file__platform { min-width: 70px; font-size: 9px; padding: 6px 8px; }
	.file__info { flex-basis: calc(100% - 95px); }
	.file__info strong { font-size: 11px; }
	.file__size { font-size: 11px; }
	.file .button { margin-left: auto; padding: 9px 14px; font-size: 10px; }
	.update-history { padding: 14px 12px 4px; }
	.history-row { font-size: 10px; }
	.comment { gap: 10px; padding: 16px 0; }
	.comment__text { font-size: 11px; }
	.comment__head small { font-size: 8px; }
	.addcomment .form_submit { flex-wrap: wrap; }
	.addcomment .btn { margin-left: auto; }
	.related .cover-shelf { grid-auto-columns: calc((100% - 2 * 12px) / 2.7); gap: 12px; }
}
