/* Public results and the live game's share menu. */
/* Keep public results on the same typography, hierarchy and breakpoints as endgame. */
.szofogo-public-result {
  margin: 0;
  background: #f4f0e7;
  color: #292c28;
  font-family: "EB Garamond", serif;
}
.szofogo-result-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(14px, 4vw, 64px);
  background: #f4f0e7f5;
  border-bottom: 1px solid #dfc27f;
}
.szofogo-result-header img {
  display: block;
  width: clamp(110px, 18vw, 180px);
  height: auto;
}
.szofogo-result-header-label {
  font: 600 11px/1.3 "Outfit", sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-align: center;
  color: #716b61;
}
.szofogo-result-cta, .szofogo-share-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 46px;
  padding: 12px 22px;
  background: #398747;
  color: #fff;
  border: 0;
  border-radius: 7px;
  font: 700 17px/1.2 "EB Garamond", serif;
  text-decoration: none;
  cursor: pointer;
}
.szofogo-result-cta:hover, .szofogo-share-action:hover {
  background: #2f743d;
}
.szofogo-result-cta:focus-visible {
  outline: 2px solid #c99b43;
  outline-offset: 5px;
}
.szofogo-result-header .szofogo-result-cta {
  flex-shrink: 0;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 8px;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
  box-shadow: 0 5px 0 #2f743d, 0 12px 24px rgba(38, 94, 48, .16);
}
.szofogo-result-header .szofogo-gameover-next-arrow {
  font-size: 21px;
  line-height: 1;
}
.szofogo-public-result-view {
  position: relative;
  min-height: calc(100vh - 90px);
  overflow: visible;
}
.szofogo-public-result-view .szofogo-gameover-shell {
  height: auto;
  max-height: none;
  min-height: min(720px, calc(100svh - 90px));
  align-items: center;
  padding-top: 48px;
  padding-bottom: 48px;
}
.szofogo-public-result-view .szofogo-gameover-hero-name,
.szofogo-public-result-view .szofogo-gameover-rank-name__text {
  white-space: normal;
  overflow-wrap: anywhere;
}
.szofogo-public-result-view .szofogo-gameover-leaderboard-list,
.szofogo-public-result-view .szofogo-gameover-awards-grid,
.szofogo-public-result-view .szofogo-gameover-awards {
  max-height: none;
  overflow: visible;
}
.szofogo-result-avatar {
  display: block;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid #3b3d39;
  box-sizing: border-box;
}
.szofogo-public-result-view .szofogo-gameover-avatar-stack > .szofogo-result-avatar {
  position: relative;
  border-color: #fff;
}
.szofogo-public-result-view .szofogo-gameover-avatar-stack > :nth-child(1) { z-index: 4; }
.szofogo-public-result-view .szofogo-gameover-avatar-stack > :nth-child(2) { z-index: 3; }
.szofogo-public-result-view .szofogo-gameover-avatar-stack > :nth-child(3) { z-index: 2; }
.szofogo-public-result-view .szofogo-gameover-avatar-stack > :nth-child(4) { z-index: 1; }
.szofogo-public-result-view .szofogo-gameover-award-winners {
  overflow: visible;
  overflow-wrap: anywhere;
}
.szofogo-result-award-summary {
  margin: 0;
  color: #777267;
  font: 400 14px/1.4 "Outfit", sans-serif;
}
.szofogo-result-award-summary strong {
  color: #8f6826;
  font-weight: 600;
}
.szofogo-result-footer, .szofogo-result-not-found {
  position: relative;
  z-index: 1;
  padding: 24px 24px 64px;
  text-align: center;
}
.szofogo-result-footer .szofogo-result-cta {
  text-transform: none;
  font-size: 18px;
  letter-spacing: .04em;
}
.szofogo-result-benefits {
  max-width: 760px;
  margin: 38px auto 0;
  text-align: left;
  font-family: "Outfit", sans-serif;
}
.szofogo-result-benefits .sz-reg-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.szofogo-result-benefits .sz-reg-points li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(63, 57, 57, .12);
  font-size: 16px;
  line-height: 1.4;
}
.szofogo-result-benefits .sz-reg-points li::before {
  content: "✓";
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: #2f743d;
  background: rgba(71, 124, 58, .1);
  font-weight: 800;
}
.szofogo-result-benefits .sz-reg-points strong {
  color: #2f743d;
  font-weight: 700;
  font-variant-numeric: lining-nums tabular-nums;
}
.szofogo-result-not-found {
  padding-top: 80px;
}
@media (min-width: 1181px) and (max-width: 1679px), (min-width: 1181px) and (max-height: 899px) {
  .szofogo-result-avatar--hero { width: 68px; height: 68px; }
  .szofogo-result-avatar--rank { width: 44px; height: 44px; }
  .szofogo-result-avatar--winner { width: 48px; height: 48px; }
  .szofogo-result-avatar--award { width: 40px; height: 40px; }
}
@media (max-width: 1180px) {
  .szofogo-public-result-view .szofogo-gameover-shell { min-height: 0; align-items: stretch; }
  .szofogo-result-avatar--hero { width: 76px; height: 76px; }
  .szofogo-result-avatar--rank { width: 48px; height: 48px; }
  .szofogo-result-avatar--winner { width: 58px; height: 58px; }
}
@media (max-width: 680px) {
  .szofogo-result-header-label { display: none; }
  .szofogo-result-cta { font-size: 16px; padding: 12px 18px; }
  .szofogo-public-result-view .szofogo-gameover-shell { padding-top: 30px; padding-bottom: 24px; }
  .szofogo-result-avatar--rank { width: 44px; height: 44px; }
  .szofogo-result-avatar--winner { width: 50px; height: 50px; }
  .szofogo-result-award-summary { margin-top: 8px; font-size: 12px; }
  .szofogo-result-footer { padding-top: 12px; }
  .szofogo-result-benefits { max-width: 420px; margin-top: 28px; }
  .szofogo-result-benefits .sz-reg-points { grid-template-columns: minmax(0, 1fr); }
}
.szofogo-gameover-share-btn{height:58px;display:flex;align-items:center;justify-content:center;gap:14px;padding:0 18px;border:1px solid #ded8ce;border-radius:8px;background:rgba(255,255,255,.72);color:#3f3b35;box-shadow:0 4px 0 rgba(68,58,42,.16);cursor:pointer;font-family:"Outfit",sans-serif;font-size:17px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.szofogo-gameover-share-btn:hover:not(:disabled){background:#fff}
.szofogo-gameover-share-btn:focus-visible{outline:2px solid #c99b43;outline-offset:4px}
.szofogo-gameover-share-icon{display:flex;order:-1;flex:0 0 auto}
.szofogo-gameover-view .szofogo-gameover-next-btn>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(min-width:1181px){.has-result-share .szofogo-gameover-column--left>.szofogo-gameover-hero{padding-bottom:0}.has-result-share .szofogo-share-entry{justify-content:center;margin-top:20px}.has-result-share .szofogo-gameover-column--right>.szofogo-gameover-awards{margin-top:auto;margin-bottom:auto}}
@media(min-width:1181px) and (max-width:1679px),(min-width:1181px) and (max-height:899px){.szofogo-gameover-share-btn{height:50px;font-size:15px}}
@media(max-width:1180px){.has-result-share .szofogo-gameover-actions:not(.szofogo-share-entry){order:1}.szofogo-share-entry{order:2;margin-top:0}}
.szofogo-share-dialog{width:min(430px,calc(100vw - 44px));box-sizing:border-box;max-height:calc(100vh - 36px);overflow:auto;padding:26px;border:1px solid #c99b43;border-radius:12px;background:#f4f0e7;color:#292c28;box-shadow:0 20px 90px #0005;font-family:"EB Garamond",serif}
.szofogo-share-dialog::backdrop{background:#292c2880}
.szofogo-share-dialog h2{font-size:28px;margin:0 32px 18px 0}
.szofogo-share-close{position:absolute;right:14px;top:10px;background:transparent;border:0;font:30px/1 serif;cursor:pointer;color:#5b554b}
.szofogo-share-status{font-size:17px;line-height:1.4}
.szofogo-share-options{display:flex;flex-direction:column;gap:12px}
.szofogo-share-preview-form{display:flex;margin:0}
.szofogo-share-preview-form>.szofogo-share-action{width:100%;background:#6a665d}
.szofogo-share-preview-form>.szofogo-share-action:hover{background:#4f4b44}
.szofogo-share-action[aria-disabled="true"],.szofogo-share-action:disabled{opacity:.55;cursor:wait}
.szofogo-share-link{display:block;box-sizing:border-box;width:100%;padding:10px;margin-top:16px;border:1px solid #c99b43;border-radius:5px;font-size:14px}
.szofogo-share-dialog [hidden]{display:none!important}
.szofogo-share-retained-group{position:fixed;z-index:45;top:max(12px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);display:flex;box-sizing:border-box;max-width:calc(100vw - 150px);border:1px solid #c99b43;border-radius:8px;background:#f4f0e7;color:#3f3b35;box-shadow:0 3px 10px #0002}
.szofogo-share-retained,.szofogo-share-retained-dismiss{min-height:36px;padding:8px 12px;border:0;border-radius:7px;background:transparent;color:inherit;font:600 13px/1.3 "Outfit",sans-serif;cursor:pointer;text-align:center}
.szofogo-share-retained{min-width:0;overflow-wrap:anywhere}
.szofogo-share-retained-dismiss{flex:0 0 36px;padding:4px;font-size:22px;border-left:1px solid #c99b4360;border-radius:0 7px 7px 0}
.szofogo-share-retained:hover,.szofogo-share-retained-dismiss:hover{background:#fff}
.szofogo-share-retained:focus-visible,.szofogo-share-retained-dismiss:focus-visible{outline:2px solid #c99b43;outline-offset:3px}
.szofogo-share-retained-group[hidden]{display:none!important}
.szofogo-share-retained-group[data-view="game"]{top:calc(84px + env(safe-area-inset-top))}
@media(max-width:768px){.szofogo-share-retained-group{top:max(8px,env(safe-area-inset-top));max-width:calc(100vw - 140px)}.szofogo-share-retained{min-height:36px;padding:6px 10px;font-size:11px}}
@media(max-width:680px){
.szofogo-gameover-share-btn{
height:48px;
font-size:14px;
}
}
