/* Club crest: static mark beside the name, and the thinking spinner. */

.club-id {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.club-id.has-rule {
  padding-left: 14px;
  border-left: 1px solid var(--line, #d8d1c7);
}

.bar-person {
  flex-shrink: 0;
  align-self: center;
  margin-left: 8px;
  padding-left: 14px;
  border-left: 1px solid var(--line, #d8d1c7);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--ink, #1a1714);
  white-space: nowrap;
}

.club-where {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 1px 0 0;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted, #5f574e);
  line-height: 1.2;
  white-space: nowrap;
}

.club-pin {
  width: 11px;
  height: 11px;
  flex: none;
  color: #145c32;
}

.club-loader {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  background: rgba(26, 23, 20, 0.1);
}

.club-loader[hidden] {
  display: none !important;
}

.club-loader-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.club-id .edit-field,
.club-id .bar-club {
  border-left: 0;
  padding-left: 0;
  max-width: none;
}

.club-id .inline-edit {
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.club-id-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.club-name {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--ink, #1a1714);
  line-height: 1.15;
}

.club-seal {
  position: relative;
  width: 48px;
  height: 48px;
  flex: none;
  display: grid;
  place-items: center;
}

.club-seal.is-mini {
  width: 32px;
  height: 32px;
}

.club-seal.is-mini .club-seal-face {
  width: 28px;
  height: 28px;
}

.club-seal-face {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  display: block;
}

.club-seal-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thinking {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 28px 0 12px;
}

.thinking-kicker {
  margin: 0;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint, #8d847a);
}

.thinking-line {
  margin: 0;
  color: var(--ink-2, #3e3832);
  font-size: 16px;
}

.club-spin {
  position: relative;
  width: 168px;
  height: 168px;
  display: grid;
  place-items: center;
}

.club-spin-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 4px solid rgba(20, 92, 50, 0.2);
  border-top-color: #145c32;
  box-sizing: border-box;
  animation: club-orbit 0.85s linear infinite;
}

.club-spin .club-seal-face {
  position: relative;
  z-index: 1;
  width: 86px;
  height: 86px;
  animation: none;
}

.club-loader .club-spin {
  width: 196px;
  height: 196px;
}

.club-loader .club-spin .club-seal-face {
  width: 132px;
  height: 132px;
}

@keyframes club-orbit {
  to { transform: rotate(360deg); }
}

@media (max-width: 720px) {
  .club-id.has-rule {
    padding-left: 10px;
  }
  .club-name,
  .club-id .bar-club,
  .club-id .inline-edit {
    font-size: 14px;
  }
}

.club-loader.is-still .club-spin-ring {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .club-spin-ring {
    animation: none;
  }
}
