/* Lotsenfahrt – kooperatives Würfelspiel zu zweit */

.lf-die {
  --lf-c: #2f6fd6;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: var(--lf-c);
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35), inset 0 -3px 0 rgba(0, 0, 0, 0.2);
}
.lf-die.lf-l {
  --lf-c: #e07a1f;
}
.lf-die.back {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: repeating-linear-gradient(45deg, #39406e, #39406e 4px, #2a2f55 4px, #2a2f55 8px);
  box-shadow: none;
}
.lf-die.used {
  opacity: 0.35;
}
.lf-die.adjusted {
  outline: 3px dashed #ffe08a;
  outline-offset: 2px;
}

/* Fahrrinne */
.lf-sea-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.lf-lane {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.lf-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-height: 74px;
  padding: 4px 2px;
  border-radius: 8px;
  background: linear-gradient(180deg, #1d4f7a, #133858);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.lf-cell.past {
  opacity: 0.45;
}
.lf-cell.here {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 184, 48, 0.35);
}
.lf-cell.kai {
  background: linear-gradient(180deg, #4b4f63, #2f3244);
}
.lf-cell-n {
  font-size: 0.68rem;
  color: var(--text-dim);
  white-space: nowrap;
}
.lf-cell-ship {
  font-size: 1.4rem;
  min-height: 1.6rem;
  line-height: 1.6rem;
}
.lf-cell-boats {
  font-size: 0.8rem;
  line-height: 1;
  text-align: center;
  word-break: break-all;
}

.lf-gauges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.lf-gauges small {
  color: var(--text-dim);
}
.lf-tilt-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-top: 4px;
}
.lf-tilt-cell {
  display: grid;
  place-items: center;
  height: 28px;
  border-radius: 5px;
  background: var(--bg-input);
  font-size: 0.85rem;
}
.lf-tilt-cell.zero {
  background: #2c3a5f;
}
.lf-tilt-cell.edge {
  background: rgba(255, 93, 115, 0.25);
}
.lf-tilt-cell.on {
  background: rgba(255, 184, 48, 0.3);
}
.lf-tilt-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-top: 2px;
}
.lf-speed {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 4px;
  font-size: 0.8rem;
}
.lf-zone {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--bg-input);
}
.lf-zone.z0 {
  border-left: 4px solid #6c7398;
}
.lf-zone.z1 {
  border-left: 4px solid var(--good);
}
.lf-zone.z2 {
  border-left: 4px solid var(--accent);
}
.lf-brake {
  padding: 2px 6px;
  color: var(--text-dim);
}

/* Mannschaft */
.lf-crew {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.lf-seat-name {
  font-weight: 600;
  margin-bottom: 6px;
}
.lf-seat-dice {
  display: flex;
  gap: 4px;
  min-height: 22px;
}
.tag.lf-role.lf-k {
  background: rgba(47, 111, 214, 0.3);
}
.tag.lf-role.lf-l {
  background: rgba(224, 122, 31, 0.3);
}

/* eigene Würfel */
.lf-dice {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.lf-die-wrap {
  padding: 4px;
  border-radius: 12px;
  background: transparent;
  border: 2px solid transparent;
  cursor: pointer;
  width: auto;
}
.lf-die-wrap:disabled {
  cursor: default;
}
.lf-die-wrap.picked {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.lf-die-wrap .lf-die {
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
}
.lf-coffee {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.lf-adj {
  width: auto;
  padding: 6px 12px;
}
.lf-dice-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
  flex-wrap: wrap;
}
.lf-dice-actions .primary {
  width: auto;
}

/* Brücke */
.lf-bridge {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.lf-station {
  background: var(--bg-input);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lf-station-head {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.85rem;
  flex-wrap: wrap;
}
.lf-station-slots {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.lf-station small {
  font-size: 0.7rem;
}
.lf-slot {
  width: 46px;
  height: 46px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.25);
  border: 2px dashed rgba(255, 255, 255, 0.18);
  color: var(--text-dim);
  font-size: 0.72rem;
  cursor: default;
}
.lf-slot.own-k {
  border-color: rgba(47, 111, 214, 0.55);
}
.lf-slot.own-l {
  border-color: rgba(224, 122, 31, 0.55);
}
.lf-slot.filled {
  border-style: solid;
  border-color: transparent;
  background: transparent;
}
.lf-slot.legal {
  cursor: pointer;
  border: 2px solid var(--accent);
  background: rgba(255, 184, 48, 0.18);
  color: var(--text);
  animation: lf-glow 1.2s ease-in-out infinite alternate;
}
.lf-slot:disabled {
  opacity: 1;
}
@keyframes lf-glow {
  from {
    box-shadow: 0 0 0 0 rgba(255, 184, 48, 0.2);
  }
  to {
    box-shadow: 0 0 0 4px rgba(255, 184, 48, 0.35);
  }
}

/* Landeprüfung */
.lf-checks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9rem;
}
.lf-checks li.no {
  color: var(--text-dim);
}
.lf-checks li.ok {
  color: var(--good);
}
#lfover-lane {
  margin-top: 12px;
}

@media (max-width: 480px) {
  .lf-bridge,
  .lf-gauges,
  .lf-crew {
    grid-template-columns: 1fr;
  }
  .lf-cell-n {
    font-size: 0.6rem;
  }
}
