/* League of Impostor – Deploy Patch Overrides
 * Loaded AFTER the main CSS. Put your overrides here.
 * Tip: bump ?v= in index.html to bust cache.
 */

:root{
  --loip-bg: rgba(10, 14, 22, .78);
  --loip-bg2: rgba(20, 26, 38, .92);
  --loip-text: #e8edf6;
  --loip-dim: rgba(232,237,246,.72);
  --loip-gold: #facc15;
  --loip-gold2:#f59e0b;
  --loip-blue:#7ad2ff;
  --loip-green:#6bffb3;
  --loip-border: rgba(250,204,21,.35);
  --loip-shadow: 0 22px 70px rgba(0,0,0,.55);
}

/* Hide patch UI when donate modal is open (prevents stacking/UX issues) */
body.donate-modal-open #loi-supporter-root{ display:none !important; }

#loi-supporter-root{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998; /* below donate button (9999) but above game */
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Floating Supporter button */
#loi-supporter-fab{
  position: fixed;
  right: calc(16px + var(--loi-fab-shift-x, 0px));
  bottom: calc(16px + var(--loi-fab-shift-y, 0px));
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 9999px;
  color: var(--loip-text);
  background: linear-gradient(180deg, rgba(15,23,42,.78), rgba(2,6,23,.82));
  border: 1px solid rgba(122,210,255,.18);
  box-shadow: 0 14px 44px rgba(0,0,0,.55);
  backdrop-filter: blur(12px);
  cursor: pointer;
  user-select: none;
  transition: transform .12s ease, box-shadow .18s ease, border-color .18s ease;
  z-index: 9998;
}

/* Avoid overlap with PWA install button: handled dynamically in patch.js */
#loi-supporter-fab:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 58px rgba(0,0,0,.65);
  border-color: rgba(250,204,21,.35);
}
#loi-supporter-fab:active{ transform: translateY(0); }

.loip-fab-gem{
  width: 28px; height: 28px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, rgba(250,204,21,.35), rgba(122,210,255,.08) 55%, rgba(2,6,23,.6) 100%);
  border: 1px solid rgba(250,204,21,.25);
  box-shadow: 0 10px 34px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.05);
}
.loip-fab-title{
  display:flex; flex-direction: column; line-height: 1.05;
}
.loip-fab-title strong{ font-size: 13px; letter-spacing: .02em; }
.loip-fab-title span{ font-size: 11px; color: var(--loip-dim); }

.loip-pulse{
  position: absolute;
  inset: -10px;
  border-radius: 9999px;
  pointer-events:none;
  border: 1px solid rgba(250,204,21,.18);
  opacity: 0;
  animation: loipPulse 2.6s ease-out infinite;
}
@keyframes loipPulse{
  0%{ transform: scale(.92); opacity: .0; }
  12%{ opacity: .55; }
  100%{ transform: scale(1.15); opacity: 0; }
}

/* Drawer panel */
#loi-supporter-drawer{
  position: fixed;
  right: 16px;
  bottom: 76px;
  width: min(380px, calc(100vw - 32px));
  pointer-events: auto;
  background: linear-gradient(180deg, rgba(2,6,23,.88), rgba(15,23,42,.74));
  border: 1px solid rgba(250,204,21,.24);
  border-radius: 18px;
  box-shadow: var(--loip-shadow);
  backdrop-filter: blur(16px);
  overflow: hidden;
  transform: translateY(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}
#loi-supporter-root.loip-open #loi-supporter-drawer{
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.loip-drawer-top{
  padding: 14px 14px 10px;
  display:flex; align-items:flex-start; justify-content: space-between; gap: 10px;
}
.loip-brand{
  display:flex; align-items:center; gap: 10px;
}
.loip-badge{
  width: 34px; height: 34px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 30%, rgba(250,204,21,.45), rgba(245,158,11,.18) 40%, rgba(2,6,23,.85) 100%);
  border: 1px solid rgba(250,204,21,.35);
  display:grid; place-items:center;
  box-shadow: 0 12px 36px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.06);
}
.loip-brand h3{
  margin:0;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--loip-text);
}
.loip-brand p{
  margin:2px 0 0;
  font-size: 12px;
  color: var(--loip-dim);
}
.loip-close{
  appearance:none;
  border: 1px solid rgba(122,210,255,.18);
  background: rgba(2,6,23,.55);
  color: var(--loip-text);
  width: 34px; height: 34px;
  border-radius: 12px;
  cursor: pointer;
  display:grid; place-items:center;
  transition: transform .12s ease, border-color .18s ease, background .18s ease;
}
.loip-close:hover{ border-color: rgba(250,204,21,.35); background: rgba(15,23,42,.62); transform: translateY(-1px); }
.loip-close:active{ transform: translateY(0); }

.loip-divider{
  height: 1px;
  background: linear-gradient(90deg, rgba(250,204,21,.0), rgba(250,204,21,.22), rgba(122,210,255,.08), rgba(250,204,21,.0));
}

.loip-content{ padding: 12px 14px 14px; }

.loip-perks{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.loip-card{
  background: rgba(2,6,23,.45);
  border: 1px solid rgba(122,210,255,.14);
  border-radius: 14px;
  padding: 10px;
}
.loip-card strong{
  display:block;
  font-size: 12px;
  color: var(--loip-text);
}
.loip-card span{
  display:block;
  font-size: 11px;
  color: var(--loip-dim);
  margin-top: 4px;
}

.loip-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.loip-btn{
  appearance:none;
  border: 1px solid rgba(122,210,255,.18);
  background: rgba(2,6,23,.6);
  color: var(--loip-text);
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .02em;
  display:inline-flex;
  align-items:center;
  gap: 8px;
  transition: transform .12s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.loip-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(250,204,21,.35);
  box-shadow: 0 12px 34px rgba(0,0,0,.38);
}
.loip-btn:active{ transform: translateY(0); }

.loip-btn-primary{
  background: linear-gradient(135deg, rgba(250,204,21,.92), rgba(245,158,11,.92));
  color: #0b1020;
  border-color: rgba(250,204,21,.55);
}
.loip-btn-primary:hover{ box-shadow: 0 16px 44px rgba(250,204,21,.14), 0 18px 60px rgba(0,0,0,.55); }

.loip-btn[disabled]{
  opacity: .55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.loip-footnote{
  margin-top: 10px;
  font-size: 11px;
  color: rgba(232,237,246,.62);
}
.loip-footnote a{ color: rgba(122,210,255,.92); text-decoration: none; }
.loip-footnote a:hover{ text-decoration: underline; }

/* Simple modal used by patch (login info) */
#loi-supporter-modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  z-index: 10000; /* above everything */
}
#loi-supporter-modal-backdrop.loip-show{ display:flex; }
#loi-supporter-modal{
  width: min(520px, calc(100vw - 28px));
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(2,6,23,.92), rgba(15,23,42,.78));
  border: 1px solid rgba(250,204,21,.25);
  box-shadow: 0 28px 90px rgba(0,0,0,.75);
  overflow: hidden;
}
#loi-supporter-modal .loip-modal-top{
  padding: 14px;
  display:flex; align-items:flex-start; justify-content: space-between; gap: 10px;
}
#loi-supporter-modal h4{
  margin:0;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--loip-text);
}
#loi-supporter-modal p{
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--loip-dim);
}
#loi-supporter-modal .loip-modal-body{
  padding: 0 14px 14px;
}
#loi-supporter-modal .loip-google{
  margin-top: 10px;
  background: rgba(2,6,23,.5);
  border: 1px solid rgba(122,210,255,.14);
  border-radius: 14px;
  padding: 12px;
  display:flex;
  gap: 12px;
  align-items: center;
}
#loi-supporter-modal .loip-glogo{
  width: 38px; height: 38px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  display:grid; place-items:center;
  font-weight: 900;
}
#loi-supporter-modal .loip-modal-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
#loi-supporter-modal .loip-ghost{
  background: rgba(2,6,23,.35);
}

/* Supporter Pack MVP */
.loip-status{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(15,23,42,.45);
  border: 1px solid rgba(122,210,255,.16);
}
.loip-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 6px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2px;
  color: var(--loip-text);
  background: linear-gradient(135deg, rgba(255,234,138,.14), rgba(122,210,255,.12));
  border: 1px solid rgba(255,234,138,.22);
}
.loip-pill.off{
  color: rgba(232,237,246,.75);
  background: rgba(232,237,246,.06);
  border: 1px solid rgba(232,237,246,.12);
}
.loip-label{ display:block; margin-top:12px; font-size:11px; color: rgba(232,237,246,.72); }
.loip-input{
  width:100%;
  margin-top:8px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(122,210,255,.18);
  background: rgba(2,6,23,.55);
  color: var(--loip-text);
  outline: none;
}
.loip-input:focus{
  border-color: rgba(255,234,138,.35);
  box-shadow: 0 0 0 3px rgba(255,234,138,.10);
}
.loip-hint{
  margin-top:10px;
  font-size:11px;
  color: rgba(232,237,246,.62);
  line-height: 1.35;
}
.loip-msg{
  margin-top:10px;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 11px;
  border: 1px solid rgba(232,237,246,.12);
  background: rgba(232,237,246,.06);
  color: rgba(232,237,246,.85);
}
.loip-msg.ok{
  border-color: rgba(107,255,179,.22);
  background: rgba(107,255,179,.10);
}
.loip-msg.bad{
  border-color: rgba(255,106,106,.22);
  background: rgba(255,106,106,.08);
}


/* --- Step 2 additions: account line --- */
#loi-supporter-status{
  display:block;
}
#loi-supporter-status .loip-status-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  font-size:12px;
  color: var(--loip-text);
}
#loi-supporter-status .loip-userline{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:10px;
  font-size:12px;
  color: var(--loip-text);
}
#loi-supporter-status .loip-userline.dim{
  color: var(--loip-dim);
  font-size:11px;
}
.loip-avatar{
  width:24px;
  height:24px;
  border-radius:999px;
  border:1px solid rgba(250,204,21,.35);
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}
.loip-avatar.big{
  width:36px;
  height:36px;
}
.loip-username{
  font-weight:700;
  letter-spacing:.2px;
}
