/* Website scoreboard chrome: local-only notice + App CTA */

.sb-shell {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 10px 16px;
  background: #0b6b3a;
  color: #fff;
  font-family: "Noto Sans SC", system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.sb-shell__text {
  flex: 1 1 220px;
  min-width: 0;
}

.sb-shell__text strong {
  font-weight: 600;
}

.sb-shell__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.sb-shell a,
.sb-shell__close {
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
  font-family: inherit;
  line-height: 1.2;
}

.sb-shell__link,
.sb-shell__cta {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.sb-shell__link:hover,
.sb-shell__cta:hover {
  background: rgba(255, 255, 255, 0.22);
}

.sb-shell__close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  padding: 0;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  opacity: 0.9;
}

.sb-shell__close:hover {
  background: rgba(255, 255, 255, 0.18);
  opacity: 1;
}

body.sb-has-shell {
  background: #e8eaee;
}

@media (max-width: 520px) {
  .sb-shell {
    flex-shrink: 0;
    padding: 8px 12px;
    padding-top: calc(8px + env(safe-area-inset-top, 0px));
    padding-left: calc(12px + env(safe-area-inset-left, 0px));
    padding-right: calc(12px + env(safe-area-inset-right, 0px));
  }

  .sb-shell__text {
    flex-basis: 100%;
    font-size: 12px;
    padding-right: 36px;
  }

  .sb-shell__actions {
    width: 100%;
  }

  .sb-shell__actions a {
    flex: 1 1 auto;
    text-align: center;
  }

  .sb-shell__close {
    position: absolute;
    top: calc(8px + env(safe-area-inset-top, 0px));
    right: calc(8px + env(safe-area-inset-right, 0px));
  }

  .sb-shell {
    position: sticky;
  }
}
