/* Shared game-end modal — hub + standalone games */
.et-end {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}
.et-end[hidden] { display: none !important; }
.et-end-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 18, 22, 0.52);
  backdrop-filter: blur(4px);
}
.et-end-card {
  position: relative;
  z-index: 1;
  width: min(26rem, 100%);
  max-height: min(88dvh, 40rem);
  overflow: auto;
  padding: 1.45rem 1.35rem 1.3rem;
  border-radius: 22px;
  background: #fff;
  color: #222;
  box-shadow: 0 24px 56px rgba(20, 22, 28, 0.28);
  font-family: Manrope, Geologica, system-ui, sans-serif;
}
.et-end-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #f3f5f7;
  color: #333;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.et-end-close:hover { background: #e8eef4; }
.et-end-close:focus-visible {
  outline: 2px solid #d06f5f;
  outline-offset: 2px;
}
.et-end-kicker {
  margin: 0 2.2rem 0.35rem 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #789284;
}
.et-end-title {
  margin: 0 2.2rem 0.35rem 0;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  color: #222;
}
.et-end-score {
  margin: 0.55rem 0 0;
  font-size: clamp(1.55rem, 5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #222;
}
.et-end-msg {
  margin: 0.55rem 0 0;
  font-size: 1rem;
  line-height: 1.45;
  color: #5b6470;
}
.et-end-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 1.2rem;
}
.et-end-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.et-end-btn-club {
  background: #d06f5f;
  color: #fff;
  box-shadow: 0 8px 20px rgba(208, 111, 95, 0.32);
}
.et-end-btn-club:hover { background: #c45a4b; color: #fff; }
.et-end-btn-share {
  background: #333;
  color: #fff;
}
.et-end-btn-share:hover { background: #222; color: #fff; }
.et-end-btn-ghost {
  background: transparent;
  border-color: #d8dee6;
  color: #333;
}
.et-end-btn-ghost:hover { background: #eef4fa; }
.et-end-btn:focus-visible {
  outline: 2px solid #d06f5f;
  outline-offset: 2px;
}
.et-end-toast {
  margin: 0.45rem 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #4f7d5c;
}
body.et-end-open { overflow: hidden; }

@media (max-width: 520px) {
  .et-end { padding: 0.85rem; align-items: end; }
  .et-end-card {
    width: 100%;
    border-radius: 22px 22px 16px 16px;
  }
}
