/* ===== Tiefflieger ===== */

.t-pile-card {
  background: radial-gradient(circle at 50% 20%, #2b3f73 0%, #1a2348 80%);
  text-align: center;
}
.t-piles {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 18px;
}
.t-pile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.t-pile small {
  color: var(--text-dim);
  font-size: 0.75rem;
}
.t-hand-pile {
  margin-left: 10px;
  padding-left: 18px;
  border-left: 1px dashed rgba(255, 255, 255, 0.2);
}
.t-piles .t-card {
  --t-w: 58px;
}
.t-mode {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.t-mode button {
  background: var(--bg-input);
  color: var(--text);
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 700;
  cursor: pointer;
}
.t-mode button.active {
  border-color: var(--accent);
  color: var(--accent);
}
.t-hint {
  margin: 10px 0 0;
}

/* Raster */
.t-board.turn {
  outline: 2px solid var(--accent);
}
.t-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-weight: 700;
}
.t-head > span:last-child {
  white-space: nowrap;
}
.t-board.small .t-head {
  font-size: 0.9rem;
}
.t-head .hint {
  font-weight: 400;
  margin-right: 6px;
}
.t-grid {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: center;
  gap: 8px;
}
.t-mine .t-card {
  --t-w: min(19vw, 74px);
}
.t-others {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.t-board.small .t-grid {
  gap: 4px;
}
.t-board.small .t-card {
  --t-w: 34px;
  border-radius: 6px;
}
.t-board.small .t-card em {
  display: none;
}
.t-board.small .t-card b {
  font-size: 0.95rem;
}

/* Karten */
.t-card {
  --t-w: 60px;
  width: var(--t-w);
  height: calc(var(--t-w) * 1.4);
  border-radius: 10px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  box-sizing: border-box;
  padding: 3px 5px;
  user-select: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.t-card.face {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.35), transparent 55%), var(--t-bg);
  color: var(--t-fg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35), inset 0 0 0 2px rgba(255, 255, 255, 0.25);
}
.t-card.face.neg {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35), inset 0 0 0 2px rgba(255, 255, 255, 0.8);
}
.t-card em {
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 700;
  opacity: 0.75;
  line-height: 1;
}
.t-card.ul b,
.t-card.ul em {
  text-decoration: underline;
}
.t-card em:last-child {
  align-self: flex-end;
  transform: rotate(180deg);
}
.t-card b {
  text-align: center;
  font-size: calc(var(--t-w) * 0.42);
  font-weight: 800;
  line-height: 1;
}
.t-card.back {
  background: repeating-linear-gradient(135deg, #253067 0 6px, #1d2655 6px 12px);
  border: 2px solid #3d4c94;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.35);
  font-size: calc(var(--t-w) * 0.4);
}
.t-card.back i {
  font-style: normal;
}
.t-card.gone {
  border: 2px dashed rgba(255, 255, 255, 0.12);
  background: transparent;
}
.t-card.can {
  cursor: pointer;
  box-shadow: 0 0 0 3px var(--accent), 0 4px 10px rgba(0, 0, 0, 0.4);
}
.t-card.can:hover {
  transform: translateY(-3px);
}
.t-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.t-card.hand {
  transform: rotate(-4deg);
}
.t-card.fresh {
  animation: t-land 0.5s ease-out;
}
@keyframes t-land {
  0% { transform: translateY(-14px) scale(1.15); }
  100% { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .t-card.fresh { animation: none; }
}
#tround-card .primary {
  margin-top: 12px;
  width: 100%;
}
