/* Instant parties (partysnap/features/instant): /now start page, phone table card, creator panel.
   Theme tokens only for brand colors (static/style.css :root); phone first (375px), RTL-safe (logical sides). */

/* ================================================================ /now */
.ip-start { padding-top: 4px; }
.ip-start-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.ip-start-top .back { margin: 0; display: inline-flex; align-items: center; min-height: 44px; }  /* a thumb-sized tap target, like the language button */
.ip-lang {
  position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: var(--bw) solid var(--ink); background: var(--paper); font-size: 1.15rem; cursor: pointer;
}
.ip-lang select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.ip-lang:focus-within { outline: 3px solid var(--red); outline-offset: 2px; }
.ip-start-form .field input { font-size: 1.1rem; padding: 14px; }
.ip-go { width: 100%; }
.ip-go.ip-busy { opacity: .7; pointer-events: none; }
.ip-perks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-weight: 700; font-size: .92rem; }
.ip-perks li::before { content: "✓ "; color: var(--red); }
.ip-terms { margin: 0; }
.ip-start .plain-link { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.ip-host-link { font-size: .95rem; }
/* honeypot: off screen for people, still a normal field for robots */
.ip-hp { position: absolute; inset-inline-start: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.ip-result-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ================================================================ phone table card */
body.ip-card-page {
  margin: 0; min-height: 100vh; min-height: 100dvh; background: #fff; color: #111;
  padding: max(10px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
}
.ip-card { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.ip-card-top { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 4px; }
.ip-card-back { color: #111; font-weight: 700; text-decoration: none; padding: 10px 4px; }
.ip-card-icon { width: 44px; height: 44px; border-radius: 50%; border: 2px solid #111; background: #fff; color: #111; font-size: 1.2rem; cursor: pointer; }
.ip-card-label {
  margin: 0; padding: 4px 12px; border-radius: 999px; background: var(--yellow); color: var(--on-yellow);
  font-weight: 700; font-size: .75rem; letter-spacing: .16em;
}
.ip-card-name { font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 8vw, 2.4rem); line-height: 1.05; margin: 4px 0 0; overflow-wrap: anywhere; }
.ip-card-scan { margin: 2px 0 6px; font-weight: 700; font-size: 1.05rem; }
.ip-card-qr { width: min(78vw, 46dvh, 340px); aspect-ratio: 1; padding: 10px; background: #fff; border: 4px solid #111; border-radius: 18px; }
.ip-card-qr img { display: block; width: 100%; height: 100%; }
.ip-card-code-label { margin: 10px 0 0; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; }
.ip-card-code { display: flex; gap: 8px; margin: 2px 0 0; }
.ip-card-code b {
  display: grid; place-items: center; width: clamp(56px, 18vw, 78px); height: clamp(72px, 23vw, 100px);
  border: 4px solid #111; border-radius: 14px; font-family: var(--mono); font-size: clamp(3.2rem, 15vw, 4.6rem); line-height: 1;
  background: #fff; color: #111;
}
.ip-card-friends { margin: 10px 0 0; font-weight: 700; font-size: 1.15rem; padding: 8px 16px; border-radius: 999px; background: #f2f2f2; }
.ip-card-friends.ip-pop { animation: ipPop .5s cubic-bezier(.2,1.6,.4,1); background: var(--yellow); color: var(--on-yellow); }
@keyframes ipPop { 0% { transform: scale(.85); } 100% { transform: scale(1); } }
.ip-card-btns { display: flex; gap: 10px; margin-top: 10px; width: 100%; justify-content: center; }
.ip-card-share {
  flex: 1; max-width: 340px; border: 0; border-radius: 999px; padding: 15px 20px; font-weight: 700; font-size: 1.05rem;
  background: #111; color: #fff; cursor: pointer;
}
.ip-card-msg { min-height: 1.2em; margin: 4px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.ip-card-hint { margin: 2px 0 0; color: #555; font-size: .9rem; }
:fullscreen .ip-card-top .ip-card-back { visibility: hidden; }

/* ================================================================ camera page: crown, coach mark, toast */
.ip-crown {
  flex: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1.15rem;
  border: 2px solid var(--yellow); background: var(--char); color: var(--yellow);
  box-shadow: 0 0 0 3px var(--glow);
}
.ip-coach {
  position: absolute; z-index: 30; inset-inline: 16px; margin: 0 auto; max-width: 340px;
  background: var(--yellow); color: var(--on-yellow); border-radius: calc(16px * var(--radius-k));
  padding: 14px 16px 12px; text-align: center; box-shadow: 0 14px 30px -10px rgba(0,0,0,.6);
  animation: ipBob 1.6s ease-in-out infinite;
}
.ip-coach::after {
  content: ""; position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%);
  border: 10px solid transparent; border-bottom: 0; border-top-color: var(--yellow);
}
.ip-coach-title { margin: 0; font-family: var(--display); font-size: 1.3rem; line-height: 1.1; }
.ip-coach-text { margin: 4px 0 6px; font-size: .92rem; }
.ip-coach-skip { color: inherit; font-weight: 700; font-size: .88rem; }
@keyframes ipBob { 50% { transform: translateY(-5px); } }
.btn-shutter.ip-pulse { animation: ipPulse 1.6s ease-out infinite; }
@keyframes ipPulse { 0% { box-shadow: 0 7px 0 var(--red-lo), 0 0 0 0 color-mix(in srgb, var(--yellow) 70%, transparent); }
                     100% { box-shadow: 0 7px 0 var(--red-lo), 0 0 0 18px transparent; } }
.ip-toast {
  position: fixed; z-index: 60; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: max-content; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 999px; font-weight: 700;
  background: var(--yellow); color: var(--on-yellow); box-shadow: 0 10px 26px -8px rgba(0,0,0,.6);
}
@media (prefers-reduced-motion: reduce) { .ip-coach, .btn-shutter.ip-pulse, .ip-card-friends.ip-pop { animation: none; } }

/* ================================================================ creator panel (sheet) */
.ip-sheet { position: relative; }
.ip-x {
  position: absolute; top: 14px; inset-inline-end: 14px; width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--edge); background: var(--char); color: var(--cream); cursor: pointer; font-size: 1.05rem;
}
.ip-sheet h2 { padding-inline-end: 46px; margin-bottom: 4px; overflow-wrap: anywhere; }
.ip-link { background: none; border: 0; padding: 4px 0; color: var(--yellow); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: .92rem; }
.ip-rename { margin: 6px 0 4px; display: flex; flex-direction: column; gap: 8px; }
.ip-row-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-pill.ip-ghost { background: transparent; color: var(--cream); border: 2px solid var(--edge); padding: 10px 16px; font-size: .92rem; }
.ip-main-btns { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 4px; }
a.btn-shutter { text-decoration: none; }
.ip-card-btn .btn-shutter-main { font-size: clamp(1.05rem, 5.4vw, 1.3rem); }
.ip-share { width: 100%; }
.ip-msg, .ip-claim-msg { min-height: 1.1em; margin: 4px 0; color: var(--cream-2); font-size: .9rem; overflow-wrap: anywhere; }
.ip-stats { list-style: none; margin: 8px 0 12px; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.ip-stats li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--edge-lo); }
.ip-stats li span { color: var(--cream-2); }
.ip-stats li b { color: var(--yellow); font-size: 1.05rem; text-align: end; }
.ip-buy {
  grid-column: 1 / -1; justify-self: start; border: 2px solid var(--yellow); background: transparent; color: var(--yellow);
  border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: .85rem; cursor: pointer;
}
.ip-upgrades h3, .ip-sec h3 { margin: 6px 0 8px; font-size: 1rem; color: var(--yellow); }
.ip-upgrade-list { display: flex; flex-direction: column; gap: 8px; }
.ip-upgrade {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; text-align: start;
  border: 2px solid var(--edge); background: var(--dark-sunk); color: var(--cream); border-radius: calc(14px * var(--radius-k));
  padding: 12px 14px; cursor: pointer; font-weight: 700;
}
.ip-upgrade b { color: var(--yellow); white-space: nowrap; }
.ip-sec { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--edge-lo); }
.ip-sec-text { margin: 0 0 10px; color: var(--cream-2); font-size: .92rem; }
.ip-code { margin: 0 0 4px; font-family: var(--mono); font-size: 2.6rem; letter-spacing: .3em; color: var(--led); line-height: 1; }
.ip-claim form { display: flex; flex-direction: column; gap: 10px; }
.ip-check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--cream-2); }
.ip-check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--yellow); }
.ip-claim-account { width: 100%; margin-bottom: 10px; }
.ip-saved { margin: 14px 0 0; padding: 12px 14px; border-radius: calc(12px * var(--radius-k)); background: var(--dark-sunk); color: var(--cream); font-weight: 700; }
.ip-dash { display: inline-block; margin-top: 16px; }
body.ip-panel-open { overflow: hidden; }
