.german-profile-button {
  width: 100%;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 208, 112, .3);
  border-radius: 15px;
  background:
    linear-gradient(135deg, rgba(132, 55, 24, .94), rgba(54, 24, 18, .98)),
    radial-gradient(circle at 15% 0, rgba(255, 190, 75, .3), transparent 42%);
  color: #fff4cf;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 12px;
  text-align: left;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .26), inset 0 1px rgba(255, 255, 255, .08);
}

.german-profile-button .german-avatar {
  width: 48px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid #e5a951;
  background: linear-gradient(145deg, #f4d09a, #8c3e25 60%, #32150f);
  color: #2b130c;
  font: 900 15px Georgia, serif;
  box-shadow: 0 4px 13px rgba(0, 0, 0, .38);
  overflow: hidden;
}
.german-profile-button .german-avatar.has-photo { background: none; }
.german-profile-button .german-avatar img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}

.german-profile-button strong,
.german-profile-button small { display: block; }
.german-profile-button strong { font: 700 17px Georgia, serif; }
.german-profile-button small { margin-top: 3px; color: #d8c49a; font-size: 11px; }
.german-profile-button > b {
  color: #ffc963;
  font-size: 10px;
  letter-spacing: .06em;
  text-align: right;
}

.german-profile-button[hidden] { display: none; }
.german-choice[hidden] { display: none; }
.german-choice {
  margin-top: 10px;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 13px;
  background: rgba(0, 18, 18, .46);
  display: grid;
  grid-template-columns: 1fr 48px;
  gap: 10px;
  align-items: center;
  cursor: pointer;
}

.german-choice strong,
.german-choice small { display: block; }
.german-choice strong { color: #f5e5b7; font-size: 13px; }
.german-choice small { margin-top: 3px; color: #9db1aa; font-size: 10px; line-height: 1.3; }
.german-choice.is-disabled { opacity: .52; cursor: not-allowed; }
.german-choice input { position: absolute; opacity: 0; pointer-events: none; }
.german-choice i {
  width: 48px;
  height: 26px;
  padding: 3px;
  border-radius: 20px;
  background: #293d39;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, .35);
  transition: .2s ease;
}
.german-choice i::after {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #bac8c1;
  transition: transform .2s ease;
}
.german-choice.is-on i { background: #ae5a21; }
.german-choice.is-on i::after { transform: translateX(22px); background: #ffe1a0; }

.german-profile-dialog,
.coach-explanation-dialog { max-width: 520px; }

.german-profile-hero {
  margin: 4px 0 16px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(145deg, #522217, #19140f);
  border: 1px solid rgba(255, 192, 82, .24);
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: center;
}

.german-profile-portrait {
  width: 64px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #f6d69b, #a85b31 55%, #351711);
  color: #28110c;
  border: 3px solid #e9b152;
  font: 900 21px Georgia, serif;
}

.german-profile-hero strong { display: block; color: #ffdf94; font: 700 20px Georgia, serif; }
.german-profile-hero span { color: #c7b68f; font-size: 11px; }
.german-profile-hero b { color: white; font-size: 28px; }

.german-coverage {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 15px;
}
.german-coverage span {
  padding: 7px 9px;
  border-radius: 9px;
  background: rgba(14, 61, 54, .75);
  color: #c8ded2;
  font-size: 10px;
}
.german-coverage b { margin-left: 7px; color: #ffc967; }
.german-coverage .is-empty { color: #8e9d96; }

.german-lessons {
  max-height: 240px;
  overflow: auto;
  display: grid;
  gap: 8px;
  margin-bottom: 15px;
}
.german-lesson {
  padding: 11px 12px;
  border-left: 3px solid #d38a37;
  border-radius: 4px 10px 10px 4px;
  background: rgba(0, 26, 24, .62);
}
.german-lesson small { color: #cca96d; font-size: 9px; letter-spacing: .05em; }
.german-lesson p { margin: 5px 0 0; color: #f1e8cf; font: italic 13px/1.35 Georgia, serif; }
.german-empty { padding: 20px; text-align: center; color: #8da39a; }
.german-empty strong { display: block; color: #dccda8; }
.german-empty p { margin: 6px 0 0; font-size: 11px; }

.guided-training-banner {
  width: min(calc(100% - 24px), 520px);
  margin: 5px auto 8px;
  padding: 7px 11px;
  border-radius: 10px;
  background: linear-gradient(90deg, #662717, #9d5625, #512014);
  border: 1px solid rgba(255, 207, 102, .35);
  color: #fff0bd;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
}
.guided-training-banner span { font-size: 8px; letter-spacing: .13em; }
.guided-training-banner strong { font: 700 13px Georgia, serif; }
.guided-training-banner em { color: #f4c871; font-size: 8px; font-style: normal; font-weight: 900; letter-spacing: .06em; }
.guided-training-banner b {
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, .28);
  color: #ffd476;
  font-size: 8px;
}

.player.is-tio-german .avatar {
  border-color: #e2a947;
  background: linear-gradient(145deg, #f0ce8e, #92452b 60%, #331611);
  color: #26100a;
}
.player.is-tio-german .player-name { color: #ffd479; }

.is-guided-training .player { width: 118px; }
.is-guided-training .player-hand.is-open-hand {
  height: 36px;
  margin-top: 3px;
  overflow: visible;
}
.guided-open-card {
  width: 24px;
  height: 35px;
  object-fit: cover;
  border-radius: 3px;
  margin-left: -5px;
  border: 1px solid #ddcda5;
  background: #fff6de;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .5);
  clip-path: inset(3.2% 2.9% round 2px);
  transform: scale(1.06);
}
.guided-open-card:first-child { margin-left: 0; }
.is-guided-training .player.is-turn .guided-open-card {
  box-shadow: 0 0 0 1px #ffc75f, 0 2px 8px rgba(255, 180, 61, .5);
}

.coach-action-card {
  padding: 13px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(120, 54, 24, .75), rgba(14, 42, 36, .8));
  border: 1px solid rgba(255, 197, 89, .22);
  color: #ffda86;
  font: 700 17px Georgia, serif;
  text-align: center;
}
.coach-explanation-dialog textarea {
  width: 100%;
  min-height: 118px;
  margin: 12px 0 5px;
  padding: 13px;
  resize: vertical;
  border: 1px solid rgba(255, 208, 114, .24);
  border-radius: 12px;
  outline: 0;
  background: rgba(0, 24, 23, .8);
  color: #fff5d8;
  font: 14px/1.45 system-ui, sans-serif;
}
.coach-explanation-dialog textarea:focus {
  border-color: #e6a64b;
  box-shadow: 0 0 0 3px rgba(230, 166, 75, .13);
}
.coach-explanation-error {
  display: block;
  min-height: 17px;
  color: #ff967c;
  font-size: 10px;
}
.coach-shortcut { margin: 7px 0 14px; color: #839790; font-size: 9px; text-align: center; }

@media (max-width: 380px) {
  .german-profile-button { grid-template-columns: 42px 1fr; }
  .german-profile-button .german-avatar { width: 42px; }
  .german-profile-button > b { grid-column: 2; text-align: left; }
  .is-guided-training .player { width: 105px; }
  .guided-open-card { width: 21px; height: 31px; }
}
