/* ── Type Fortress (Games Lab): Schaufenster und Download ── */

.tf-hero { margin-bottom: 2rem; }
.tf-scene { border: 1px solid var(--border); line-height: 0; }
#scene { width: 100%; aspect-ratio: 96 / 60; image-rendering: pixelated; display: block; }

.tf-track { display: grid; grid-template-columns: repeat(8, 1fr); gap: 0.35rem; margin-top: 0.6rem; }
.tf-tt {
    padding: 0; background: none; border: 0; cursor: pointer; text-align: center;
    opacity: 0.5; transition: opacity 0.2s;
}
.tf-tt:hover, .tf-tt.on { opacity: 1; }
.tf-tt canvas { width: 100%; aspect-ratio: 4 / 3; image-rendering: pixelated; display: block; border: 1px solid var(--border); }
.tf-tt.on canvas { border-color: var(--accent); }
.tf-tt span {
    display: block; margin-top: 0.2rem;
    font-family: 'JetBrains Mono', monospace; font-size: 0.55rem; color: var(--muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tf-tt.on span { color: var(--fg); }

.tf-sub { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: var(--muted); margin-top: 0.6rem; }

.tf-download { margin-bottom: 2.5rem; }
.tf-dl { display: inline-block; font-size: 0.95rem; padding: 0.7rem 1.2rem; text-decoration: none; border-color: var(--accent); color: var(--fg); }
.tf-dl:hover { text-decoration: none; }
.tf-download .tf-sub { display: flex; align-items: center; gap: 0.5rem; }
.tf-download .info { margin-top: 0.75rem; }
.tf-hash { font-size: 0.65rem; word-break: break-all; }

.tf-how {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem 0.75rem;
    margin-bottom: 2.5rem; text-align: center;
    font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--muted);
}
.tf-how > div { display: flex; flex-direction: column; align-items: center; gap: 0.45rem; }
.tf-pair { display: flex; align-items: center; gap: 0.3rem; color: var(--fg); font-size: 0.9rem; }
.tf-pair .ic { width: 3rem; height: 3rem; }

/* Erfolge */
.tf-ach-wrap { margin-bottom: 2.5rem; }
.tf-ach { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.4rem; }
.tf-ach > div {
    display: flex; flex-direction: column; align-items: center; gap: 0.2rem; padding: 0.5rem 0.2rem 0.4rem;
    border: 1px solid var(--border); text-align: center;
    font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; line-height: 1.25; color: var(--fg);
}
.tf-ach .ic { width: 2.25rem; height: 2.25rem; }
.tf-ach small { font-size: 0.6rem; color: var(--muted); }
.tf-ach .rare small { color: var(--accent); }

/* Rangliste */
.tf-board-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.5rem; }
.tf-board h3 {
    display: flex; align-items: center; gap: 0.3rem;
    font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.4rem;
}
.tf-board h3 .ic { width: 1.4rem; height: 1.4rem; }
.tf-board ol { list-style: none; font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; border-top: 1px solid var(--border); }
.tf-board li { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.25rem 0; border-bottom: 1px solid var(--border); }
.tf-board li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tf-board li span:last-child { color: var(--muted); white-space: nowrap; }

@media (max-width: 520px) {
    .tf-track { grid-template-columns: repeat(4, 1fr); }
    .tf-how { grid-template-columns: repeat(2, 1fr); }
    .tf-pair .ic { width: 2.5rem; height: 2.5rem; }
    .tf-board-cols { grid-template-columns: 1fr; }
    .tf-ach { grid-template-columns: repeat(3, 1fr); }
}
