/*! (c) 2026 BONMIPANG 米花國際 · bonmipang.com — All rights reserved. */
/*
 *  client/passport-badge.css — the default look for the park's login control.
 *
 *  SHARED MODULE - this repo is the only copy (see README.md).
 *
 *  Every game in the park has its own palette, so this file commits to as
 *  little as possible: layout, and colour taken from whatever the badge is
 *  sitting inside. A game changes the accent with one variable:
 *
 *      .park-badge { --park-badge-accent: var(--my-highlight); }
 *
 *  Load it BEFORE the game's own stylesheet so any rule the game writes wins.
 */

.park-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 18px;
  font-size: 12px;
  line-height: 1.4;
  /* Inherit rather than pick: the badge sits inside a different card in every
     game, and a hard-coded colour is the one that looks wrong in all of them. */
  color: inherit;
  opacity: 0.85;
}

.park-badge-name {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.park-badge-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--park-badge-accent, currentColor);
  text-decoration: none;
  cursor: pointer;
}

.park-badge-link:hover,
.park-badge-link:focus-visible {
  text-decoration: underline;
}

.park-badge-link[disabled] {
  opacity: 0.5;
  cursor: default;
  text-decoration: none;
}

.park-badge svg {
  flex: none;
}
