/* The app's own pieces, on top of the game's styles: sign-in, player chip,
   install / update / offline chips. They use the game's colour tokens. */
.appBar { display: contents; }
.appChip { cursor: pointer; font: inherit; font-size: 13px; }
.appChip[hidden] { display: none !important; }
#installBtn { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 700; }
#updateChip { background: #f0995c; color: #2a1405; border-color: transparent; font-weight: 700; }
.appChip.off { color: var(--warn); cursor: default; }
.appChip.player { position: relative; gap: 6px; padding-left: 4px; }
.appChip.player img { width: 24px; height: 24px; border-radius: 50%; }
.appChip.player b { font-family: var(--f-body); font-size: 13px; font-weight: 700; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.playerMenu { position: fixed; z-index: 40; min-width: 160px; display: grid; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; }
.playerMenu[hidden] { display: none; }
.playerMenu a, .playerMenu button { display: block; text-align: left; padding: 9px 10px; border-radius: 8px; border: 0; background: none; color: inherit; font: inherit; text-decoration: none; cursor: pointer; }
.playerMenu a:hover, .playerMenu button:hover { background: var(--sunk); }

.signin { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(120% 90% at 50% 0%, #144a42 0%, #0d1517 62%); color: #e2ebe8; }
.signin[hidden] { display: none; }
.signinCard { width: min(380px, 100%); display: grid; justify-items: center; gap: 10px; text-align: center; }
.signinCard img { border-radius: 18px; box-shadow: 0 12px 32px rgba(0,0,0,.45); }
.signinCard h1 { font-family: var(--f-display); font-weight: 800; font-size: 34px; letter-spacing: -.02em; margin: 6px 0 0; }
.signinCard p { margin: 0; color: #a9bfba; line-height: 1.5; }
#googleBtn { min-height: 44px; margin-top: 10px; }
.signinMsg { min-height: 1.5em; color: #ffd66b !important; }
.signinNote { font-size: 12.5px; }
#devLogin { display: grid; gap: 6px; width: 100%; border: 1px dashed #3a5a54; border-radius: 12px; padding: 10px; }
#devLogin[hidden] { display: none; }
#devLogin label { font-size: 12px; color: #a9bfba; }
#devLogin input { font: inherit; padding: 8px 10px; border-radius: 8px; border: 1px solid #3a5a54; background: #0f1d1f; color: #e2ebe8; }
#devLogin button { font: inherit; font-weight: 700; padding: 8px; border-radius: 8px; border: 0; background: #3cc2a6; color: #062520; cursor: pointer; }
