/* Partner doors in the demo: the "For operators" pill in the top bar and the
   quiet "Talk to us" line under the replay button on the round result.
   Both stay secondary to play: no gold fill, no motion while a round runs. */

.partnerLink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: var(--control-h);
  padding: 0 16px 0 18px;
  color: var(--game-gold-light);
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(36, 35, 52, .94), rgba(16, 23, 34, .96));
  box-shadow: var(--glass-shadow);
  font: 900 10px/1 var(--utility);
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  transition: border-color var(--motion-tick) ease, color var(--motion-tick) ease;
}

.partnerLink::after {
  content: "\2192" / "";
  font-size: 13px;
  letter-spacing: 0;
  transition: transform var(--motion-tick) ease;
}

.partnerLink:hover,
.partnerLink:focus-visible {
  color: var(--game-ivory);
  border-color: var(--glass-line-strong);
  outline: 0;
}

.partnerLink:focus-visible { box-shadow: var(--glass-shadow), var(--focus-ring); }
.partnerLink:hover::after,
.partnerLink:focus-visible::after { transform: translateX(3px); }

.partnerLink[hidden],
.resultPartner[hidden] { display: none !important; }

.gamePage:not([data-play-mode]) .partnerLink,
.gamePage:not([data-play-mode]) .resultPartner { visibility: hidden; }

/* Compact top bar: the pill moves into the utility menu as a full-width row. */
@media (max-width: 1023px) {
  .gameUtilityPanel .partnerLink {
    grid-column: 1 / -1;
    justify-content: center;
    min-height: 48px;
    height: auto;
    padding: 0 12px;
    border-radius: 7px;
    box-shadow: none;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .partnerLink { padding: 0 12px 0 14px; letter-spacing: .08em; }
}

/* Result card: one small line under the replay button, never above it. */
.result .resultPartner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 8px;
  margin: 12px 0 0;
  color: #9fb5c4;
  font: 500 13px/1.35 var(--body);
  letter-spacing: 0;
  text-align: center;
  text-transform: none;
}

.resultPartnerLink {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 4px;
  color: var(--game-gold-light);
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: rgba(229, 198, 92, .45);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  border-radius: 6px;
}

.resultPartnerLink:hover,
.resultPartnerLink:focus-visible {
  color: #fff0cc;
  text-decoration-color: currentColor;
  outline: 0;
}

.resultPartnerLink:focus-visible { box-shadow: var(--focus-ring); }

.result.tone-loss .resultPartner { grid-column: 2; grid-row: 6; }
.result.tone-loss .lossCaseVisual { grid-row: 1 / span 6; }

@media (pointer: coarse) and (orientation: portrait) {
  .resultPartnerLink { min-height: 44px; }
}

@media (orientation: landscape) and (max-height: 500px) {
  .result .resultPartner { margin-top: 6px; font-size: 12px; }
  .resultPartnerLink { min-height: 30px; }
}

/* The line settles in after the card has landed, so it never competes with
   the result figures or the replay button while they arrive. */
@media (prefers-reduced-motion: no-preference) {
  .overlay.show .resultPartner { animation: resultPartnerIn .32s ease-out .45s both; }
}

@keyframes resultPartnerIn { from { opacity: 0; transform: translateY(4px); } }

@media (prefers-reduced-motion: reduce) {
  .partnerLink,
  .partnerLink::after { transition: none; }
  .partnerLink:hover::after,
  .partnerLink:focus-visible::after { transform: none; }
}
