/* Home page layout on top of dai-ds.css */
.ds-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.home-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 34px 46px; align-items: end; padding-top: 40px; }
.home-hero-lead { margin-top: 22px; }
.home-scroll { display: inline-block; margin-top: 26px; font: var(--fs-xs) var(--mono); letter-spacing: .06em; color: var(--muted); text-decoration: none; }
.home-scroll:hover { color: var(--accent); }
.home-about { min-height: 0; }
.home-about .ds-card-body { padding: 22px 24px; }
.home-about p { margin-bottom: 16px; }
@media (max-width: 799px) { .home-hero { grid-template-columns: 1fr; padding-top: 28px; } }

/* featured project: text left, picture right (stacked on narrow screens) */
.home-feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.home-feature .ds-thumb { order: 2; height: 100%; aspect-ratio: auto; min-height: 260px; border-bottom: 0; border-left: 1px solid var(--line); }
.home-feature-title { font-size: var(--fs-h2) !important; letter-spacing: -.015em !important; }
@media (max-width: 799px) {
	.home-feature { grid-template-columns: 1fr; }
	.home-feature .ds-thumb { order: -1; min-height: 0; aspect-ratio: 16 / 9; border-left: 0; border-bottom: 1px solid var(--line); }
}

.home-nl .dai-nl { margin-top: 10px; }
.home-nl .dai-nl-form { max-width: 720px; }

/* games page */
.games-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.games-card { padding: 0; font: inherit; text-align: left; cursor: pointer; }
.games-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(21, 24, 28, .07); }
.games-card:hover .ds-open, .games-card:focus-visible .ds-open { opacity: 1; transform: none; }
.games-pic { display: block; aspect-ratio: 16 / 9; border-bottom: 1px solid var(--line); background: var(--paper); }
.games-pic svg { display: block; width: 100%; height: 100%; }
.games-name { display: block; font-size: var(--fs-title); font-weight: 600; letter-spacing: -.012em; margin-bottom: 8px; color: var(--ink); }
.games-desc { display: block; font-size: var(--fs-body); color: var(--ink-3); line-height: 1.55; margin-bottom: 16px; }
.games-hero { grid-template-columns: 1fr; }

/* game dialog */
.ds-dlg { width: min(900px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 14px 16px 16px; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 20px 60px rgba(21, 24, 28, .25); }
.ds-dlg::backdrop { background: rgba(21, 24, 28, .45); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.ds-dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.ds-dlg-head h2 { margin: 0; font: 500 var(--fs-title) var(--mono); letter-spacing: .04em; }
.ds-dlg-x { min-width: 44px; min-height: 44px; font-size: 18px; color: var(--muted); background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.ds-dlg-x:hover, .ds-dlg-x:focus-visible { color: var(--accent); border-color: var(--accent); }
.ds-dlg-dark { background: #101c26; color: #e6eef3; border-color: #2a4556; }
.ds-dlg-dark .ds-dlg-x { color: #8fa6b5; border-color: #2a4556; }
@media (max-width: 560px) { .ds-dlg { padding: 10px; } }

/* Feldolgozások: a card whose page is still in progress (no link, dashed placeholder picture) */
.fd-wip { border-style: dashed; }
.fd-wip-pic { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; border-bottom: 1px dashed var(--line); background: repeating-linear-gradient(135deg, var(--paper) 0 10px, var(--card) 10px 20px); }
.fd-wip-pic span { font: var(--fs-xs) var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 10px; }
.fd-wip-open { color: var(--muted); opacity: 1; transform: none; }
