/* haso.lol invite rewards (invite.js) — same lobby look as app.css / account.css: white card, navy ink, one accent.
   No tier colours (docs/brand/SITE.md: one accent): levels are words, the bar and the badge use the accent. */
.inv-btn { position: relative; }
.inv-btn svg { color: var(--accent); }
.inv-lv {
  display: inline-block; padding: 3px 6px; border-radius: 6px; background: var(--accent); color: #fff;
  font: 800 11px/1 var(--display); letter-spacing: .02em; white-space: nowrap;
}
.inv-btn .inv-lv { margin-left: -2px; }

/* the panel */
.inv-dlg {
  width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 28px 28px 22px; overflow: auto;
  background: var(--card); color: var(--ink); border: 1px solid var(--rule); border-radius: 16px;
  box-shadow: 0 30px 60px -30px rgba(15, 37, 71, .55);
}
.inv-dlg::backdrop { background: rgba(8, 16, 36, .55); }
.inv-dlg h2 { margin: 0 34px 8px 0; font-size: 26px; line-height: 1.15; letter-spacing: -.025em; }
.inv-dlg h3 { margin: 22px 0 8px; font-size: 15px; letter-spacing: -.01em; }
.inv-lede { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.inv-x {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; padding: 0; display: grid; place-items: center;
  border: 0; border-radius: 6px; background: none; color: var(--muted);
}
.inv-x:hover { background: var(--bg2); color: var(--ink); }
.inv-x svg { width: 18px; height: 18px; }
.inv-link { display: flex; gap: var(--s1); }
.inv-link input {
  flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--rule); border-radius: var(--r2);
  background: var(--bg); color: var(--ink); font: 600 14px/1 var(--body); text-overflow: ellipsis;
}
.inv-link .btn { height: 44px; min-width: 84px; }
.inv-share { width: 100%; height: 48px; margin-top: 10px; font-size: 16px; }
.inv-prog { margin-top: 22px; padding: 16px; border-radius: var(--r2); background: var(--bg2); }
.inv-n { margin: 0 0 10px; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.inv-n b { font: 800 28px/1 var(--display); letter-spacing: -.02em; }
.inv-bar { height: 10px; border-radius: 5px; background: var(--fill2); overflow: hidden; }
.inv-bar i { display: block; height: 100%; min-width: 10px; border-radius: 5px; background: var(--accent); transition: width .5s var(--settle); }
.inv-next { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.inv-next b { color: var(--ink); }
.inv-wait { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.inv-levels { list-style: none; margin: 0; padding: 0; }
.inv-levels li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; padding: 8px 8px; border-radius: var(--r1); font-size: 14px; color: var(--muted); }
.inv-levels li + li { border-top: 1px solid var(--rule); }
.inv-levels .k {
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%;
  background: var(--fill); color: var(--ink); font: 800 14px/1 var(--display);
}
.inv-levels b { color: var(--ink); font-size: 15px; }
.inv-levels i { font-style: normal; font-weight: 700; color: var(--accent); font-size: 13px; }
.inv-levels .got .k { background: var(--ink); color: var(--card); }
.inv-levels .cur { background: var(--bg2); }
.inv-levels .cur + li { border-top-color: transparent; }
.inv-gift { margin: 18px 0 0; font-size: 14px; }
.inv-games ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }
.inv-games a { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: var(--r1); text-decoration: none; font-weight: 700; font-size: 13px; line-height: 1.2; }
.inv-games a:hover { background: var(--bg2); }
.inv-games img { width: 40px; height: 40px; flex: none; border-radius: 8px; background: var(--bg2); object-fit: cover; }
.inv-fine { margin: 20px 0 0; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 12.5px; color: var(--muted); }

/* notes: small, out of the way, never block play */
.inv-note {
  position: fixed; z-index: 110; left: 16px; bottom: max(16px, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px; padding: 8px 6px 8px 16px; max-width: min(520px, calc(100vw - 32px));
  background: var(--card); color: var(--ink); border: 1px solid var(--rule); border-radius: 8px;
  box-shadow: 0 14px 30px -16px rgba(15, 37, 71, .5); font-weight: 600; font-size: 14px; line-height: 1.35;
}
.inv-note b { color: var(--accent); }
.inv-note .btn { height: 36px; }
.inv-note .inv-x { position: static; width: 36px; height: 36px; flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .inv-note { animation: inv-up .3s ease-out; }
  .inv-dlg[open] { animation: inv-up .2s ease-out; }
}
@keyframes inv-up { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 640px) {
  .inv-btn { width: var(--hit); height: var(--hit); padding: 0; background: none; } /* like .rnd: icon only, room for search */
  .inv-btn span { display: none; }
  .inv-btn svg { width: 22px; height: 22px; }
  .inv-btn .inv-lv { position: absolute; top: 1px; right: -4px; padding: 2px 4px; font-size: 9px; }
  .inv-dlg { width: 100%; max-width: none; max-height: 92dvh; margin: auto 0 0; padding: 24px 18px max(18px, env(safe-area-inset-bottom)); border-radius: var(--r4) var(--r4) 0 0; }
  .inv-dlg h2 { font-size: 23px; }
  .inv-note { left: 16px; right: 16px; justify-content: space-between; }
}
