/* Nachtwald – Stichspiel zu zweit */

.nk-card {
  --nk-c: #b07a3a;
  --nk-bg: #f7efe0;
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 80px;
  border-radius: 9px;
  background: var(--nk-bg);
  color: var(--nk-c);
  border: 2px solid var(--nk-c);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  font-weight: 800;
  flex: 0 0 auto;
  transition: transform 0.15s ease;
}
.nk-card.nk-eichel {
  --nk-c: #9a5b1e;
  --nk-bg: #f8eedd;
}
.nk-card.nk-pilz {
  --nk-c: #c2344a;
  --nk-bg: #fbe9ea;
}
.nk-card.nk-feder {
  --nk-c: #1f7a8c;
  --nk-bg: #e3f3f4;
}
.nk-card .nk-v {
  position: absolute;
  top: 3px;
  left: 6px;
  font-size: 0.95rem;
  line-height: 1;
}
.nk-card .nk-v.bot {
  top: auto;
  left: auto;
  right: 6px;
  bottom: 3px;
  transform: rotate(180deg);
}
.nk-card .nk-s {
  font-size: 1.6rem;
  line-height: 1;
}
.nk-card .nk-a {
  position: absolute;
  bottom: 4px;
  left: 5px;
  font-size: 0.95rem;
  line-height: 1;
}
.nk-card.back {
  background: repeating-linear-gradient(45deg, #1d3b2a, #1d3b2a 6px, #26503a 6px, #26503a 12px);
  border-color: #3d7a57;
}
.nk-card.back.mini {
  width: 16px;
  height: 24px;
  border-radius: 3px;
  border-width: 1px;
  box-shadow: none;
}
.nk-card.inline {
  width: 30px;
  height: 42px;
  vertical-align: middle;
  border-radius: 5px;
}
.nk-card.inline .nk-v,
.nk-card.inline .nk-a {
  display: none;
}
.nk-card.inline .nk-s {
  font-size: 1rem;
}
.nk-card.trump {
  box-shadow: 0 0 0 2px var(--accent), 0 2px 6px rgba(0, 0, 0, 0.35);
}
.nk-card.blocked {
  opacity: 0.35;
  filter: grayscale(0.7);
}
.nk-card.drawn {
  outline: 3px dashed var(--accent);
  outline-offset: 2px;
}

.nk-trump-badge {
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-input);
  font-size: 0.8rem;
  white-space: nowrap;
}

/* Tisch */
.nk-board {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(180deg, #17301f, #1f2240 85%);
}
.nk-seat-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 10px;
  align-items: center;
}
.nk-seat-name {
  font-weight: 700;
}
.nk-seat-nums {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.nk-seat-nums strong {
  color: var(--text);
}
.nk-backs {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 6px;
}
.nk-middle {
  display: flex;
  gap: 14px;
  align-items: center;
}
.nk-decree-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}
.nk-decree-wrap > small:first-child {
  color: var(--text-dim);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.nk-card.decree {
  transform: rotate(-4deg);
}
.nk-trick-wrap {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.nk-trick {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 12px;
  min-height: 112px;
  width: 100%;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius);
}
.nk-trick.small .nk-card {
  width: 44px;
  height: 64px;
}
.nk-trick.small .nk-card .nk-s {
  font-size: 1.2rem;
}
.nk-trick-empty {
  margin: 0;
}
.nk-trick-info {
  margin: 0;
  text-align: center;
  font-size: 0.82rem;
}
.nk-played {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.nk-played-name {
  font-size: 0.72rem;
  color: var(--text-dim);
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nk-played.winner .nk-card {
  outline: 3px solid var(--good);
  transform: translateY(-5px);
}
.nk-played.winner .nk-played-name {
  color: var(--good);
  font-weight: 700;
}

/* Fähigkeit wählen */
.nk-pending {
  border: 2px solid var(--accent);
}
.nk-pending p {
  margin: 0 0 8px;
  line-height: 1.5;
}

/* Hand */
.nk-hand {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.nk-hand-card {
  background: none;
  border: none;
  padding: 0;
  line-height: 0;
}
.nk-hand-card:disabled {
  cursor: default;
}
.nk-hand-card:hover:not(:disabled) .nk-card {
  transform: translateY(-5px);
}

/* Wertungsleiste */
.nk-ladder {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
.nk-rung {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 2px;
  border-radius: 10px;
  background: var(--bg-input);
  font-size: 0.8rem;
  color: var(--text-dim);
  min-height: 92px;
}
.nk-rung strong {
  font-size: 1.15rem;
  color: var(--text);
}
.nk-rung.nk-bescheiden strong,
.nk-rung.nk-siegreich strong {
  color: var(--good);
}
.nk-rung.nk-gierig strong {
  color: var(--bad);
}
.nk-rung.on {
  outline: 2px solid var(--accent);
}
.nk-rung-marks {
  display: flex;
  gap: 3px;
  min-height: 20px;
}
.nk-mark {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #6b7099;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
}
.nk-mark.you {
  background: var(--accent);
  color: #231a04;
}

/* Legende */
.nk-legend summary {
  cursor: pointer;
  font-weight: 700;
}
.nk-legend ul {
  margin: 10px 0 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
  line-height: 1.45;
}
.nk-legend-v {
  display: inline-block;
  min-width: 22px;
  font-weight: 800;
  color: var(--accent);
}

/* Rundenauswertung */
.nk-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}
.nk-prog-row {
  display: grid;
  grid-template-columns: minmax(60px, 1fr) 3fr auto;
  gap: 10px;
  align-items: center;
  font-size: 0.9rem;
}
.nk-prog-row.you {
  font-weight: 700;
}
.nk-prog {
  height: 10px;
  border-radius: 999px;
  background: var(--bg-input);
  overflow: hidden;
}
.nk-prog > div {
  height: 100%;
  background: linear-gradient(90deg, #3d7a57, var(--good));
  transition: width 0.6s ease;
}

@media (max-width: 420px) {
  .nk-card {
    width: 48px;
    height: 70px;
  }
  .nk-card .nk-s {
    font-size: 1.35rem;
  }
  .nk-middle {
    gap: 8px;
  }
  .nk-ladder {
    gap: 3px;
  }
  .nk-rung {
    font-size: 0.7rem;
  }
}
