/* Card grids for Projects and Games (home page and hub pages) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.2rem; margin-top: 1.8rem; }
.tiles.tiles-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.tile { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s ease; }
.tile:hover { transform: translateY(-3px); border-color: var(--line-2); }
.tile-thumb { display: block; aspect-ratio: 16 / 9; background: #05070c; overflow: hidden; position: relative; border-bottom: 1px solid var(--line); }
.tile-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tile-thumb.type { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: .35rem; padding: 1.2rem 1.4rem;
  background: radial-gradient(360px 220px at 90% -10%, rgba(255,138,61,.28), transparent 70%), radial-gradient(320px 220px at 0% 110%, rgba(255,94,98,.2), transparent 70%), var(--bg-soft); }
.tile-thumb.type b { font-family: "Sora", "Inter", sans-serif; font-size: clamp(1.7rem, 4vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tile-thumb.type span { font-size: .85rem; color: var(--muted); letter-spacing: .04em; }
.tile-thumb.tree-preview { aspect-ratio: 16 / 9; border-radius: 0; border: 0; border-bottom: 1px solid var(--line); box-shadow: none; }
.tile-body { display: flex; flex-direction: column; gap: .5rem; padding: 1rem 1.1rem 1.15rem; flex: 1; }
.tile-body .badge-row { margin: 0; }
.tile-body h3 { font-size: 1.2rem; font-weight: 800; }
.tile-body h3 a:hover { color: var(--accent-2); }
.tile-body p { color: var(--muted); font-size: .95rem; line-height: 1.5; }
.tile-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: .6rem; }
.btn.btn-sm { padding: .55rem .95rem; font-size: .9rem; }
.btn.btn-sm svg { width: 15px; height: 15px; }
.sec-more { margin-top: 1.2rem; }
.sec-more a { color: var(--accent-2); font-weight: 600; }
