/* SFC V2 only. Values follow style.css / v2/style.css; no global selectors. */
#sfc-homegame {
  position: fixed;
  inset: auto max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) auto;
  z-index: 90;
  width: min(380px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 24px;
  border: 1px solid #e1e6ed;
  border-top: 4px solid var(--blue);
  border-radius: 0;
  background: #fff;
  color: var(--navy);
  box-shadow: 0 12px 35px #10182322;
  font-family: inherit;
  animation: sfc-homegame-enter .25s ease-out both;
}
#sfc-homegame[hidden], #sfc-homegame [hidden], #sfc-homegame-test[hidden],
#sfc-homegame-jump[hidden] { display: none !important; }
#sfc-homegame .sfc-hg-label {
  display: block;
  padding-right: 32px;
  margin-bottom: 16px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
#sfc-homegame .sfc-hg-close {
  position: sticky;
  top: -20px;
  float: right;
  z-index: 2;
  margin: -20px -20px 0 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: 24px;
  line-height: 1;
}
#sfc-homegame .sfc-hg-close:hover { background: var(--paper); }
#sfc-homegame h2 {
  margin: 0 0 20px;
  max-width: 100%;
  font-size: 28px;
  font-weight: 950;
  line-height: 1.12;
  letter-spacing: -1px;
  overflow-wrap: anywhere;
}
#sfc-homegame h2:focus { outline: none; }
#sfc-homegame .sfc-hg-ball { font-size: 23px; letter-spacing: 0; }
#sfc-homegame .sfc-hg-arena {
  position: relative;
  height: 120px;
  margin-bottom: 12px;
}
#sfc-homegame .btn {
  min-height: 48px;
  justify-content: center;
  gap: 8px;
  padding: 13px 17px;
  border-radius: 0;
  white-space: nowrap;
  touch-action: manipulation;
}
#sfc-homegame .sfc-hg-yes { position: relative; z-index: 1; }
#sfc-homegame .sfc-hg-no {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0;
  transition: transform .24s cubic-bezier(.2,.8,.2,1);
  user-select: none;
}
#sfc-homegame .sfc-hg-no:hover {
  color: var(--blue);
  background: #edf2ff;
  border-color: var(--blue);
}
#sfc-homegame .sfc-hg-note {
  min-height: 3.1em;
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}
#sfc-homegame button:focus-visible,
#sfc-homegame-test button:focus-visible,
#sfc-homegame-jump:focus-visible { outline: 3px solid #7498ff; outline-offset: 4px; }
#sfc-homegame[data-quiet="true"] .sfc-hg-no { transition: none; }
#sfc-homegame .sfc-hg-success p {
  margin: 0;
  color: var(--blue);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 800;
}
#sfc-homegame .sfc-hg-success { padding: 8px 0 20px; }
#sfc-homegame canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#sfc-homegame-announcement, #sfc-homegame-jump:not(:focus) {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
#sfc-homegame-jump:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 110;
  padding: 14px 18px;
  background: #fff;
  color: var(--blue);
  border: 1px solid var(--blue);
  font: 700 13px Arial, Helvetica, sans-serif;
}
#sfc-homegame-test {
  position: fixed;
  z-index: 91;
  left: 16px;
  top: 100px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px;
  background: #fff;
  border: 1px solid #dce3ec;
  box-shadow: 0 12px 35px #10182322;
  color: var(--navy);
  font: 12px/1.5 Arial, Helvetica, sans-serif;
}
#sfc-homegame-test strong, #sfc-homegame-test output { width: 100%; }
#sfc-homegame-test button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #d7e1ff;
  border-radius: 0;
  background: #edf2ff;
  color: var(--blue);
  font: inherit;
  font-weight: 700;
}
@keyframes sfc-homegame-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 480px) {
  #sfc-homegame {
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    padding: 20px;
  }
  #sfc-homegame h2 { font-size: 25px; }
  #sfc-homegame .sfc-hg-close { top: -16px; margin: -16px -16px 0 0; }
  #sfc-homegame .btn { font-size: 12px; padding: 13px 15px; }
}
@media (max-height: 480px) {
  #sfc-homegame { top: 16px; bottom: auto; }
  #sfc-homegame .sfc-hg-arena { height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  #sfc-homegame { animation: none; }
  #sfc-homegame .sfc-hg-no { transition: none; }
}
