/* Tetris – Spielfeld, Spielstand und Knöpfe (baut auf style.css auf) */
.t-seite { max-width: 760px; padding-top: 56px; padding-bottom: 80px; }
.t-seite h1 { font: 300 clamp(2rem, 5.5vw, 3.4rem)/1.05 var(--display); text-transform: uppercase; color: var(--ink); margin-bottom: 18px; }
.t-seite .eyebrow a { color: inherit; }
.t-seite h1 b { font-weight: 700; color: #fff; }
.t-spiel { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; margin-top: 26px; }
.t-feld { display: block; height: min(70vh, 600px); aspect-ratio: 1 / 2; width: auto; border: 1px solid var(--rule); background: var(--panel); outline: none; }
.t-feld:focus-visible { border-color: var(--volt); }
.t-seitenleiste { flex: 1 1 180px; min-width: 170px; }
.t-stand { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin: 0 0 18px; }
.t-stand div { background: var(--panel); padding: 10px 12px; }
.t-stand dt { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.t-stand dd { margin: 2px 0 0; font: 500 1.3rem/1.2 var(--display); color: #fff; }
.t-titel { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); margin: 0 0 6px; }
.t-naechster { display: block; width: 96px; height: 96px; border: 1px solid var(--rule); background: var(--panel); }
.t-knoepfe { display: flex; gap: 10px; margin: 18px 0 10px; }
.t-knoepfe button, .t-touch button { padding: 10px 16px; background: none; border: 1px solid var(--volt); color: #fff; font: 500 .85rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.t-knoepfe button:hover, .t-knoepfe button:focus-visible, .t-touch button:hover, .t-touch button:focus-visible { background: rgba(159, 212, 255, .1); }
.t-knoepfe button:disabled { border-color: var(--rule); color: var(--soft); cursor: default; background: none; }
.t-hinweis { font-size: .8rem; color: var(--soft); }
/* Bestenliste unter dem Spiel */
.t-bestenliste { margin-top: 40px; max-width: 420px; }
.t-bestenliste h2 { font: 500 1.3rem/1.2 var(--display); color: #fff; margin: 0 0 10px; }
.t-bestenliste ol { margin: 0; padding: 0; list-style: none; counter-reset: platz; border: 1px solid var(--rule); }
.t-bestenliste ol:empty { display: none; }
.t-bestenliste li { counter-increment: platz; display: flex; gap: 14px; align-items: baseline; padding: 8px 12px; border-top: 1px solid var(--rule); background: var(--panel); }
.t-bestenliste li:first-child { border-top: 0; }
.t-bestenliste li::before { content: counter(platz) "."; min-width: 2em; color: var(--soft); }
.t-bestenliste li b { flex: 1; font: 500 1.05rem/1.2 var(--display); color: #fff; }
.t-bestenliste li span { color: var(--soft); font-size: .85rem; }
.t-bestenliste li.neu { background: rgba(159, 212, 255, .14); }
.t-bl-hinweis { margin: 8px 0 0; color: var(--ink); font-size: .9rem; }
.t-bl-hinweis:empty { display: none; }
/* Knöpfe zum Tippen nur auf Geräten ohne Maus, direkt unter dem Spielfeld (Spielstand folgt darunter) */
.t-touch { display: none; gap: 8px; flex: 1 1 100%; }
.t-touch button { flex: 1 1 0; padding: 16px 0; font-size: 1.3rem; touch-action: manipulation; }
/* iPhone: langes Drücken auf die Spielknöpfe soll weder Text markieren noch ein Menü öffnen */
.t-touch, .t-touch button { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
@media (hover: none) and (pointer: coarse) {
  .t-seite { padding-top: 28px; }
  .t-spiel { gap: 12px; margin-top: 14px; }
  .t-touch { display: flex; }
  .t-feld { height: min(56vh, 600px); margin: 0 auto; }
  /* Start und Pause direkt unter den Steuerknöpfen über die ganze Breite, Spielstand darunter */
  .t-seitenleiste { flex-basis: 100%; display: flex; flex-direction: column; align-items: flex-start; }
  .t-seitenleiste > * { align-self: stretch; }
  .t-seitenleiste > canvas { align-self: flex-start; }
  .t-knoepfe { order: -1; margin: 0 0 14px; }
  .t-knoepfe button { flex: 1 1 0; padding: 14px 0; }
}
