/* Invitation-only welcome, using the app's local comic fonts and iOS viewport. */
body.invite-open { overflow: hidden !important; }
#invite-entry {
  --iv-safe-top: env(safe-area-inset-top, 0px);
  --iv-safe-bottom: env(safe-area-inset-bottom, 0px);
  position: fixed; z-index: 1000; top: var(--iv-top, 0px); left: 0; width: 100%;
  height: var(--iv-height, 100dvh); overflow: auto; overscroll-behavior: contain;
  background: #fff8e5; color: #0a0a0a; font-synthesis: weight style;
  font: 400 17px/1.35 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  scrollbar-width: none; transition: opacity 260ms ease-out; -webkit-overflow-scrolling: touch;
}
#invite-entry::-webkit-scrollbar { display: none; }
#invite-entry *, #invite-entry *::before, #invite-entry *::after { box-sizing: border-box; }
#invite-entry [hidden] { display: none !important; }
#invite-entry::before {
  content: ''; position: absolute; top: 0; right: 0; width: 160px; height: 165px; pointer-events: none;
  background: radial-gradient(#ffda2466 1.7px,transparent 2px) 0 0/8px 8px;
  -webkit-mask-image: linear-gradient(225deg,#000,transparent 75%); mask-image: linear-gradient(225deg,#000,transparent 75%);
}
#invite-entry .iv-shell {
  width: 100%; max-width: 430px; min-height: 100%; margin: 0 auto;
  padding: calc(var(--iv-safe-top) + 28px) 24px calc(var(--iv-safe-bottom) + 24px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
#invite-entry .iv-close {
  position: absolute; top: calc(var(--iv-safe-top) + 8px); left: max(12px,calc((100% - 430px)/2 + 12px));
  display: grid; place-items: center; width: 44px; height: 44px; min-height: 44px; padding: 0;
  border: 1.5px solid #0a0a0a; border-radius: 50%; background: #fff8e5; color: #0a0a0a;
  box-shadow: none; font: 400 27px/1 system-ui; z-index: 1;
}
#invite-entry .iv-brand {
  display: flex; flex-direction: column; align-items: center; flex: none; margin: 10px 0 28px;
  font: 400 clamp(29px,9.6vw,42px)/1.04 "KK Comic","Luckiest Guy",Impact,sans-serif;
  text-transform: uppercase; -webkit-text-stroke: 2px #0a0a0a; paint-order: stroke fill;
  text-shadow: 2px 3px 0 #0a0a0a; transform: rotate(-3deg); letter-spacing: -.015em;
}
#invite-entry .iv-brand-top { color: #ffda24; }
#invite-entry .iv-amp { display: inline-block; margin-left: 5px; color: #d7191c; font-size: .8em; }
#invite-entry .iv-brand-bottom { color: #fff8e5; }
#invite-entry .iv-art { position: relative; display: grid; place-items: center; flex: none; width: 120px; height: 120px; margin: 0 0 18px; }
#invite-entry .iv-art::after { content: ''; position: absolute; bottom: 8px; left: 31px; width: 58px; height: 7px; border-radius: 50%; background: #0a0a0a; opacity: .12; }
#invite-entry .iv-halo { position: absolute; inset: 11px; background: #ffda24; border-radius: 50%; }
#invite-entry .iv-ball { position: relative; width: 110px; height: 110px; z-index: 1; }
#invite-entry .iv-strokes { position: absolute; inset: -3px; width: 126px; height: 126px; color: #0a0a0a; }
/* The older global headline skin uses !important; keep invitation type local. */
#invite-entry :is(h1,label,.iv-primary,.iv-retry) { font-family: "KK Head",Bangers,Impact,sans-serif !important; font-weight: 400; }
#invite-entry h1 {
  max-width: 100%; margin: 0 0 12px; color: #0a0a0a; text-align: center; overflow-wrap: anywhere;
  font: 700 66px/1.02 "KK Head",Bangers,Impact,sans-serif; letter-spacing: .01em; text-transform: uppercase;
}
#invite-entry #iv-copy { max-width: 310px; margin: 0 0 25px; color: #0a0a0a; text-align: center; font: 400 17px/1.35 -apple-system,BlinkMacSystemFont,sans-serif; }
#invite-entry .iv-form { width: 100%; margin: 0; }
#invite-entry label { display: block; margin: 0 0 7px; color: #0a0a0a; font: 400 20px/1.2 "KK Head",Bangers,Impact,sans-serif; letter-spacing: .025em; text-transform: uppercase; }
#invite-entry input {
  display: block; width: 100%; height: 54px; min-height: 54px; padding: 12px 17px; border: 2px solid #0a0a0a;
  border-radius: 14px; background: #fff8e5; color: #0a0a0a; box-shadow: none; outline-offset: 3px;
  font: 400 17px/1.3 -apple-system,BlinkMacSystemFont,sans-serif; -webkit-appearance: none; appearance: none;
}
#invite-entry input::placeholder { color: #81796b; opacity: 1; }
#invite-entry input:focus { box-shadow: none; outline: 2px solid #0a0a0a; outline-offset: 3px; }
#invite-entry input[aria-invalid="true"] { border-color: #a62b16; }
#invite-entry .iv-primary {
  display: flex; align-items: center; justify-content: center; gap: 18px; width: 100%; min-height: 54px; margin: 18px 0 0;
  padding: 9px 16px; border: 2px solid #0a0a0a; border-radius: 15px; background: #ffda24; color: #0a0a0a;
  box-shadow: 2px 4px 0 #0a0a0a; font: 700 clamp(25px,7.4vw,31px)/1.1 "KK Head",Bangers,Impact,sans-serif;
  letter-spacing: .015em; text-transform: uppercase;
}
#invite-entry .iv-primary span { font: inherit; }
#invite-entry .iv-primary svg { width: 26px; height: 26px; flex: none; }
#invite-entry .iv-primary:active { transform: translateY(2px); box-shadow: 1px 2px 0 #0a0a0a; }
#invite-entry .iv-code { margin: 22px 0 0; color: #716a5e; font: 400 12px/1.4 -apple-system,BlinkMacSystemFont,sans-serif; text-align: center; }
#invite-entry #iv-error { margin: 10px 0 0; color: #a62b16; font: 500 14px/1.35 -apple-system,BlinkMacSystemFont,sans-serif; }
#invite-entry .iv-progress { display: flex; justify-content: center; gap: 12px; padding: 9px; }
#invite-entry .iv-progress span { width: 9px; height: 9px; border-radius: 50%; background: #0a0a0a; animation: iv-dot 1100ms ease-in-out infinite; }
#invite-entry .iv-progress span:nth-child(2) { background: #ffda24; animation-delay: 150ms; }
#invite-entry .iv-progress span:nth-child(3) { animation-delay: 300ms; }
#invite-entry .iv-slow { margin: 16px 0 8px; max-width: 290px; text-align: center; color: #716a5e; font-size: 14px; }
#invite-entry .iv-retry { margin: 0; min-height: 44px; padding: 8px 16px; border: 1.5px solid #0a0a0a; border-radius: 12px; color: #0a0a0a; background: #fff8e5; font: 400 19px/1.2 "KK Head",Bangers,Impact,sans-serif; }
#invite-entry.is-connecting h1 { font-size: clamp(40px,12vw,54px); }
#invite-entry.is-connecting .iv-ball > g { transform-origin: 80px 80px; animation: iv-ball-rock 2800ms ease-in-out infinite; }
#invite-entry.is-error h1 { font-size: 46px; }
#invite-entry.is-leaving { opacity: 0; pointer-events: none; }
#invite-entry.iv-enter .iv-brand { animation: iv-logo-in 340ms ease-out both; }
#invite-entry.iv-enter .iv-ball { animation: iv-roll-in 800ms cubic-bezier(.2,.7,.25,1) both; }
#invite-entry.iv-enter h1 { animation: iv-hello-in 380ms cubic-bezier(.2,.8,.2,1.15) both; }
#invite-entry.iv-enter .iv-form { animation: iv-form-in 280ms ease-out both; }
#invite-entry :is(button,input):focus-visible { outline: 3px solid #0a0a0a; outline-offset: 3px; }
#invite-entry.is-compact .iv-shell { padding: calc(var(--iv-safe-top) + 14px) 20px 16px; }
#invite-entry.is-compact :is(.iv-brand,.iv-art) { display: none; }
#invite-entry.is-compact h1 { margin-bottom: 8px; font-size: 38px; animation: none; }
#invite-entry.is-compact #iv-copy { margin-bottom: 16px; font-size: 15px; line-height: 1.3; }
#invite-entry.is-compact label { font-size: 18px; margin-bottom: 6px; }
#invite-entry.is-compact input { height: 48px; min-height: 48px; }
#invite-entry.is-compact .iv-primary { min-height: 48px; margin-top: 12px; }
#invite-entry.is-compact .iv-code { margin-top: 14px; }
#invite-entry.is-compact .iv-form { animation: none; }
@keyframes iv-logo-in { from { opacity: 0; transform: translateY(-6px) rotate(-3deg) scale(.97); } to { opacity: 1; transform: rotate(-3deg); } }
@keyframes iv-roll-in { from { opacity: 0; transform: translateX(-36px) rotate(-90deg); } to { opacity: 1; transform: none; } }
@keyframes iv-hello-in { from { opacity: .5; transform: scale(.95); } to { opacity: 1; transform: none; } }
@keyframes iv-form-in { from { opacity: .65; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes iv-ball-rock { 0%,100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
@keyframes iv-dot { 50% { opacity: .45; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) {
  #invite-entry { transition-duration: 90ms; }
  #invite-entry *, #invite-entry *::before { animation: none !important; }
}
