.home-main { padding-top: clamp(.9rem, 3vw, 2.35rem) }
.home-top h1 { font-size: clamp(2.15rem, 5.7vw, 5.45rem); letter-spacing: -.064em; line-height: .98 }
.home-top p { max-width: 52ch; margin-top: .65rem; color: var(--muted) }
.home-main h2 { font-size: clamp(1.18rem, 2.7vw, 2.12rem); letter-spacing: -.035em }
.home-section { min-width: 0 }
.home-section h2, .genre-section h2 { margin-bottom: .7rem }
.home-catalog { margin-top: clamp(1.7rem, 5vw, 4rem) }
.genre-section { min-width: 0 }
.home-main .game-grid { --columns: 6 }
.home-main .photo-grid { display: grid; grid-template-columns: repeat(var(--photo-columns, 3), minmax(0, 1fr)); gap: var(--photo-gap, .7rem); margin: 0; padding: 0; list-style: none }
.home-main :is(.photo-grid,.entry-list,.wall-grid) li { min-width: 0 }
.photo-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none }
.photo-card img { width: 100%; aspect-ratio: var(--photo-ratio, 5 / 4); object-fit: cover; background: var(--panel) }
.photo-card:hover { border-color: var(--link); color: var(--link) }
.game-genre { color: var(--muted); font-size: .77rem; line-height: 1.25; overflow-wrap: anywhere }
@media (max-width: 850px) { .home-main .game-grid { --columns: 3 } }
@media (max-width: 365px) { .home-main .game-grid { --columns: 2 } }

.wall-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: .95rem }
.wall-heading h1 { max-width: 14ch; color: #5a2463 }
.wall-heading p { max-width: 27ch }
.wall-panel { padding: clamp(.55rem, 2vw, 1rem); background: #332040; border: 2px solid var(--text); border-radius: .9rem; box-shadow: 4px 4px #d9a62d }
.wall-panel h2 { color: #fff1c4; padding-inline: .2rem; font-size: 1.12rem }
.wall-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: clamp(7rem, 17vw, 12.3rem); gap: clamp(.32rem, 1.1vw, .68rem); padding: 0; margin: 0; list-style: none }
.wall-grid > li:is(:first-child,:nth-child(6),:nth-child(7)) { grid-column: span 2 }
.wall-game { position: relative; isolation: isolate; display: grid; align-items: end; height: 100%; overflow: hidden; color: #fff; background: #5a3561; border: 2px solid #c398d3; border-radius: .65rem; text-decoration: none }
.wall-game img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2 }
.wall-game::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, #210f2beb, transparent 80%) }
.wall-game:hover { border-color: #ffee94 }
.wall-game .game-name { font-size: clamp(.78rem, 1.55vw, 1.12rem) }
.wall-extra { display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr); gap: .8rem 1.25rem; margin-top: 1.3rem }
.wall-extra > section { padding: .8rem; border: 1px solid #d1a473; border-radius: .85rem; background: #ffedb6 }
.wall-extra > section + section { background: #f7e1fa; border-color: #d6b3db }
.wall-extra .entry-list { --entry-columns: 2; --entry-gap: .35rem }
.wall-extra .photo-grid { --photo-gap: .4rem }
.wall-catalog .genre-section { padding: .85rem 0; border-top: 2px dashed #c6966b }
@media (max-width: 720px) {
  .wall-heading { display: block }
  .wall-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 6.5rem }
  .wall-grid > li:nth-child(7) { grid-column: auto }
  .wall-extra { grid-template-columns: minmax(0, 1fr) }
}
@media (max-width: 380px) { .wall-grid { grid-auto-rows: 5.7rem } .wall-game .game-name { padding: .35rem } }
