.sbr-report,
.sbr-report * {
  box-sizing: border-box;
}

.sbr-report {
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 0 12px 28px;
  color: #172238;
  font-family: inherit;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 118, 185, 0.15) 0 46px, transparent 47px),
    radial-gradient(circle at 8% 24%, rgba(0, 174, 245, 0.14) 0 58px, transparent 59px),
    linear-gradient(180deg, #d8f2ff 0%, #fff4fb 36%, #ffffff 100%);
  overflow-x: hidden;
}

.sbr-page-header {
  margin: 0 -12px;
  padding: 0;
  text-align: center;
  background: transparent;
}

.sbr-page-header-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.sbr-logo-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 156px;
  min-height: 56px;
  padding: 8px 22px;
  border: 4px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #7ce8ff 0%, #00aef5 56%, #ff73b7 100%);
  box-shadow: 0 7px 0 rgba(0, 100, 190, 0.16), inset 0 2px 0 rgba(255, 255, 255, 0.7);
  font-size: 25px;
  line-height: 1;
  font-weight: 900;
  text-shadow: 0 2px 0 rgba(0, 92, 160, 0.24);
}

.sbr-page-header p {
  margin: 8px 0 0;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-shadow: 0 1px 2px rgba(0, 92, 160, 0.26);
}

.sbr-store-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 -2px;
  min-height: 120px;
  padding: 22px 34px;
  text-align: center;
  background:
    url("../img/store-name-frame.png") center / 100% 100% no-repeat,
    linear-gradient(180deg, #fff4fb 0%, #ffe2f1 100%);
}

.sbr-store-frame-name {
  margin: 0;
  overflow-wrap: anywhere;
  color: #141414;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 900;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.86);
}

.sbr-event-banner {
  margin: 14px 0;
}

.sbr-event-banner img,
.sbr-event-banner-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 172px;
  border: 3px solid rgba(255, 255, 255, 0.94);
  border-radius: 18px;
  box-shadow: 0 10px 22px rgba(72, 96, 180, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.sbr-event-banner img {
  height: auto;
  object-fit: cover;
}

.sbr-event-banner-fallback {
  padding: 26px 18px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 20% 22%, rgba(255, 255, 255, 0.34) 0 32px, transparent 33px),
    linear-gradient(135deg, #8b35d6 0%, #00aef5 100%);
}

.sbr-event-banner-fallback span {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.sbr-event-banner-fallback strong {
  display: block;
  margin-top: 8px;
  font-size: 23px;
  line-height: 1.25;
  font-weight: 900;
  text-shadow: 0 2px 0 rgba(0, 92, 160, 0.22);
}

.sbr-basic-info,
.sbr-pickup-section,
.sbr-past-section {
  margin-top: 14px;
  padding: 14px 12px;
  border: 2px solid rgba(0, 174, 245, 0.35);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 0 rgba(255, 255, 255, 0.72) inset, 0 8px 18px rgba(0, 143, 230, 0.08);
}

.sbr-section-title-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin: 0 0 12px;
  padding: 10px 18px;
  color: #fff;
  background-image: url("../img/section-title-frame.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  text-align: center;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
  text-shadow: 0 2px 0 rgba(64, 18, 112, 0.35);
  overflow-wrap: anywhere;
}

.sbr-section-title-text {
  display: block;
  max-width: 100%;
}

.sbr-info-list {
  display: grid;
  gap: 8px;
}

.sbr-info-item {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 46px;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(236, 248, 255, 0.95);
}

.sbr-info-item span {
  color: #008fe6;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 900;
}

.sbr-info-item strong {
  color: #14213d;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.sbr-info-item-event-type strong {
  color: #8b35d6;
}

.sbr-pickup-list {
  display: grid;
  gap: 12px;
}

.sbr-pickup-card {
  padding: 10px;
  border: 2px solid rgba(139, 53, 214, 0.22);
  border-radius: 15px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fcff 100%);
  box-shadow: 0 8px 18px rgba(0, 143, 230, 0.08);
}

.sbr-pickup-image-frame {
  margin: 4px 0 14px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 13px;
  background: #eef9ff;
  box-shadow: 0 5px 12px rgba(0, 143, 230, 0.1);
}

.sbr-pickup-image {
  display: block;
  width: 100%;
  height: auto;
}

.sbr-pickup-image-frame + .sbr-pickup-summary {
  padding-top: 14px;
}

.sbr-pickup-summary {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
}

.sbr-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  min-height: 48px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(180deg, #ffe783, #f0b41b);
  font-size: 13px;
  font-weight: 900;
  text-shadow: 0 1px 1px rgba(120, 78, 0, 0.28);
}

.sbr-pickup-body h3 {
  margin: 0 0 8px;
  overflow-wrap: anywhere;
  color: #14213d;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 900;
}

.sbr-pickup-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.sbr-pickup-metrics div {
  min-width: 0;
  padding: 7px 6px;
  border-radius: 10px;
  background: rgba(232, 247, 255, 0.95);
  text-align: center;
}

.sbr-pickup-metrics dt {
  margin: 0 0 3px;
  color: #008fe6;
  font-size: 11px;
  font-weight: 900;
}

.sbr-pickup-metrics dd {
  margin: 0;
  color: #14213d;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 900;
}

.sbr-pickup-note {
  margin: 8px 0 0;
  color: #44536a;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 800;
}

.sbr-machine-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.sbr-machine-head,
.sbr-machine-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  align-items: center;
}

.sbr-pickup-card.has-no-games .sbr-machine-head,
.sbr-pickup-card.has-no-games .sbr-machine-row {
  grid-template-columns: 1fr 1fr;
}

.sbr-pickup-card.has-surobani-index:not(.has-no-games) .sbr-machine-head,
.sbr-pickup-card.has-surobani-index:not(.has-no-games) .sbr-machine-row {
  grid-template-columns: 1.25fr 0.85fr 0.9fr 0.9fr;
}

.sbr-pickup-card.has-surobani-index.has-no-games .sbr-machine-head,
.sbr-pickup-card.has-surobani-index.has-no-games .sbr-machine-row {
  grid-template-columns: 1.3fr 0.9fr 0.9fr;
}

.sbr-machine-head {
  color: #008fe6;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.sbr-machine-row {
  min-width: 0;
  padding: 8px 7px;
  border-radius: 11px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 174, 245, 0.14);
  color: #14213d;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.sbr-pickup-card.has-surobani-index .sbr-machine-head {
  font-size: 10px;
}

.sbr-pickup-card.has-surobani-index .sbr-machine-row {
  padding-inline: 5px;
  font-size: 11px;
}

.sbr-machine-row > span,
.sbr-machine-row > strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.sbr-machine-identity {
  display: grid;
  gap: 2px;
  line-height: 1.25;
}

.sbr-machine-name {
  color: #44536a;
  font-size: 10px;
  line-height: 1.25;
  font-weight: 800;
}

.sbr-machine-index {
  color: #8b35d6;
}

.sbr-machine-row strong {
  font-size: 13px;
}

.sbr-pickup-card.has-surobani-index .sbr-machine-row strong {
  font-size: 12px;
}

.sbr-past-lead {
  margin: -4px 0 10px;
  color: #44536a;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 800;
  text-align: center;
}

.sbr-past-empty {
  margin: 0;
  padding: 14px 12px;
  border-radius: 12px;
  background: rgba(236, 248, 255, 0.95);
  color: #44536a;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 800;
  text-align: center;
}

.sbr-past-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sbr-past-card {
  margin: 0;
}

.sbr-past-card-link,
.sbr-past-card-static {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 72px;
  padding: 9px 10px;
  border-radius: 14px;
  background: rgba(236, 248, 255, 0.95);
  color: #14213d;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(0, 174, 245, 0.12);
}

.sbr-past-card-link {
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.sbr-past-card-link:hover,
.sbr-past-card-link:focus-visible {
  background: #fff;
  box-shadow: inset 0 0 0 2px rgba(0, 174, 245, 0.32), 0 8px 16px rgba(0, 143, 230, 0.12);
  transform: translateY(-1px);
}

.sbr-past-card-link:focus-visible {
  outline: 3px solid rgba(139, 53, 214, 0.35);
  outline-offset: 3px;
}

.sbr-past-list:not(.is-expanded) .sbr-past-card.is-hidden {
  display: none;
}

.sbr-past-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #8b35d6 0%, #00aef5 100%);
  box-shadow: 0 5px 12px rgba(0, 143, 230, 0.16);
  font-size: 11px;
  font-weight: 900;
}

.sbr-past-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sbr-past-date {
  display: block;
  margin-bottom: 3px;
  color: #008fe6;
  font-size: 12px;
  font-weight: 900;
}

.sbr-past-card strong {
  display: block;
  overflow-wrap: anywhere;
  color: #14213d;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 900;
}

.sbr-more-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(240px, 100%);
  min-height: 42px;
  margin: 14px auto 0;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #37d0ff 0%, #008fe6 100%);
  box-shadow: 0 5px 0 rgba(0, 113, 190, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.62);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.sbr-more-button:focus-visible {
  outline: 3px solid rgba(139, 53, 214, 0.35);
  outline-offset: 3px;
}

.is-plus {
  color: #e83f8f;
}

.is-minus {
  color: #3575c8;
}

.is-zero {
  color: #44536a;
}

.sbr-report-not-found {
  padding: 18px;
  border: 2px solid rgba(255, 107, 170, 0.36);
  border-radius: 14px;
  background: #fff;
  color: #14213d;
  font-weight: 900;
}

.sbr-report.is-ready .sbr-basic-info,
.sbr-report.is-ready .sbr-pickup-section,
.sbr-report.is-ready .sbr-past-section {
  animation: sbrFadeUp 420ms ease-out both;
}

@keyframes sbrFadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 380px) {
  .sbr-report {
    padding-inline: 10px;
  }

  .sbr-page-header {
    margin-inline: -10px;
  }

  .sbr-pickup-summary,
  .sbr-info-item {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .sbr-pickup-metrics {
    grid-template-columns: 1fr;
  }
}
