/* The party lesson's card in town: ui/party-lesson.js. Surface and buttons follow
 * the shared window (windows.css). In the stacked town it sits in the flow above
 * the title, like the orientation hint; where the town is one painted screen it
 * floats along the top of the scene, clear of the places on it. */
.party-lesson-card {
  display: flex; align-items: center; gap: 12px;
  position: relative; z-index: 4; pointer-events: auto; text-align: left;
  width: 100%; margin: 0 0 8px; padding: 8px 10px;
  background: url('../assets/ui/character-surface.svg') repeat, linear-gradient(135deg, #262821, #121a1b 70%);
  border: 1px solid #6e6047; border-radius: 9px;
  box-shadow: 0 6px 18px #0005, inset 0 0 0 3px #101612;
  color: #e8dcc5; font: 400 13px/1.3 "Segoe UI", system-ui, sans-serif; letter-spacing: 0;
}
.party-lesson-card[hidden] { display: none; }
/* The account code in its title, read off and copied by hand: never broken
 * across lines, in the figures Settings shows it in. */
.code-reminder-card code {
  margin-left: 4px; white-space: nowrap; color: #f3e6c8;
  font: 600 14px/1.2 Consolas, "Courier New", monospace; letter-spacing: .04em;
}
.party-lesson-copy { min-width: 0; flex: 1; display: grid; gap: 1px; }
.party-lesson-copy strong { color: var(--gold); font-weight: 600; font-size: 14px; }
.party-lesson-actions { display: flex; flex: none; gap: 6px; }
.party-lesson-actions button {
  min-height: 40px; padding: 6px 12px; white-space: nowrap;
  font: 600 13px/1.2 "Segoe UI", system-ui, sans-serif; letter-spacing: 0;
}
.party-lesson-point {
  outline: 2px solid var(--gold) !important; outline-offset: 2px;
  box-shadow: 0 0 14px rgba(200, 153, 72, .65) !important;
}
.calling-suggested { color: var(--gold); font-size: 11px; font-weight: 600; }

@media (min-width: 701px), (min-width: 561px) and (orientation: landscape) {
  .party-lesson-card {
    position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
    width: min(620px, calc(100% - 150px)); margin: 0;
  }
}
@media (max-width: 560px) {
  .party-lesson-card { flex-wrap: wrap; }
  .party-lesson-actions { width: 100%; }
  .party-lesson-actions button { flex: 1; }
}
