/* The approved rink occupies the existing Home loading region. */
.startup-loading-state {
  width: 100%;
  max-width: 860px;
  margin: 34px auto 74px;
}

.startup-loading-state .loading-shell.loading-shell--home-rink {
  margin: 0;
}

#app[data-bootstrap-loading="true"] .primary-nav button:disabled {
  opacity: 1;
}

#app[data-bootstrap-loading="true"] .error-card,
#app[data-bootstrap-loading="true"] .error-card h2 {
  color: var(--text-primary, #0b1324);
}

.loading-shell.loading-shell--home-rink {
  display: block;
  width: 100%;
  max-width: 860px;
  margin: 34px auto 74px;
  padding: 0;
  color: #f6f8fa;
}

.loading-shell--home-rink .home-rink-loader__frame {
  box-sizing: border-box;
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background: #071b3c;
}

.loading-shell--home-rink .home-rink-loader__court {
  position: relative;
  width: 100%;
  height: clamp(240px, 48vw, 390px);
  overflow: hidden;
  isolation: isolate;
  border-radius: 9px;
  background: #071b3c;
}

.loading-shell--home-rink .home-rink-loader__canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.loading-shell--home-rink .loading-text {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: max-content;
  max-width: calc(100% - 16px);
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #c9d9e62b;
  border-radius: 7px;
  background: #071b3ce8;
  box-shadow: 0 2px 5px #071b3c20;
  color: #f6f8fa;
  font-family: Inter, Arial, sans-serif;
  text-align: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.loading-shell--home-rink .loading-message {
  min-width: 0;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
}

/* Keep a readable fallback while the lightweight renderer module arrives. */
.loading-shell--home-rink > .loading-text {
  position: static;
  display: block;
  margin: 0 auto;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #071b3c;
  transform: none;
}

.loading-shell--home-rink .loading-percent {
  flex: 0 0 auto;
  color: #e5f70a;
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 600px) {
  .startup-loading-state {
    margin: 16px auto 36px;
  }

  .loading-shell.loading-shell--home-rink {
    margin: 16px auto 36px;
  }

  .loading-shell--home-rink .home-rink-loader__frame {
    padding: 6px;
  }
}
