/* ImpactHub glass cards, adapted from imdavco.xyz (v18 modern glass + v22 soft colour blur)
   to the Hub's dark teal palette. Visual only: targets the Hub's standard card surfaces
   (inline background:rgba(4,11,30,…) with a 20–29px radius). Opt out with .ih-glass-skip. */
html{background:#010213}body{background:transparent!important}
/* The "Minimal brand canvas" layer (fixed, ink-900) keeps its arc lines and grain, but no longer hides the liquid background. */
[style*="position:fixed"][style*="overflow:hidden"][style*="background:var(--ink-900)"],[style*="position: fixed"][style*="overflow: hidden"][style*="background: var(--ink-900)"]{background:transparent!important}
body::before{content:"";position:fixed;inset:-14%;z-index:-1;pointer-events:none;will-change:transform;
  background:
    radial-gradient(38vw 38vw at 8% 12%,rgba(7,92,110,.32),transparent 70%),
    radial-gradient(30vw 30vw at 92% 22%,rgba(28,217,255,.10),transparent 70%),
    radial-gradient(42vw 34vw at 70% 92%,rgba(1,86,89,.30),transparent 70%),
    radial-gradient(26vw 26vw at 30% 70%,rgba(37,66,255,.07),transparent 70%);
  animation:ihBgDrift 46s ease-in-out infinite alternate}
/* CSS fallback (no WebGL2): the same glow slowly drifts, in the spirit of imdavco.xyz. With the WebGL canvas it stays still underneath. */
@keyframes ihBgDrift{0%{transform:translate3d(-2%,-1.5%,0) scale(1)}50%{transform:translate3d(2.5%,2%,0) scale(1.07) rotate(.6deg)}100%{transform:translate3d(-1%,3%,0) scale(1.12)}}
/* The app shell paints an opaque ink background; let the fixed background (canvas or CSS drift) show through. html already is #010213. */
[style*="min-height:100vh"][style*="background:var(--ink-950)"],[style*="min-height: 100vh"][style*="background: var(--ink-950)"]{background:transparent!important}
html.ih-bg-gl body::before{animation:none;opacity:.55}
@media (prefers-reduced-motion:reduce){body::before{animation-duration:160s}}
:where([style*="border-radius:2"][style*="background:rgba(4,11,30,"]):not(.ih-glass-skip):not(:has([style*="position:fixed"])){
  background:
    radial-gradient(70% 55% at 0% 0%,rgba(28,217,255,.075),transparent 62%),
    radial-gradient(60% 60% at 100% 100%,rgba(7,92,110,.20),transparent 66%),
    linear-gradient(155deg,rgba(255,255,255,.07),rgba(255,255,255,.014) 38%,rgba(255,255,255,0) 60%),
    rgba(6,20,34,.46)!important;
  -webkit-backdrop-filter:blur(22px) saturate(1.5);backdrop-filter:blur(22px) saturate(1.5);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.075),inset 0 1px 0 rgba(255,255,255,.14),inset 0 0 28px rgba(108,235,255,.035),0 28px 56px -34px rgba(0,0,0,.75)!important;
  transition:box-shadow .25s ease}
:where(button,a)[style*="border-radius:2"][style*="background:rgba(4,11,30,"]:not(.ih-glass-skip):hover{
  box-shadow:inset 0 0 0 1px rgba(108,235,255,.3),inset 0 1px 0 rgba(255,255,255,.18),inset 0 0 28px rgba(108,235,255,.06),0 28px 56px -34px rgba(0,0,0,.75)!important}
/* Raffle cards (Rewards + Partner Rewards): keep the gold top tint, glass body. */
:where([style*="border-radius:24px"][style*="#060d18 40%)"]):not(.ih-glass-skip){
  background:linear-gradient(180deg,rgba(255,211,107,.07),rgba(255,211,107,0) 34%),radial-gradient(60% 50% at 100% 100%,rgba(7,92,110,.2),transparent 66%),linear-gradient(155deg,rgba(255,255,255,.06),rgba(255,255,255,0) 55%),rgba(6,16,28,.5)!important;
  -webkit-backdrop-filter:blur(22px) saturate(1.5);backdrop-filter:blur(22px) saturate(1.5);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.075),inset 0 1px 0 rgba(255,255,255,.14),0 28px 56px -34px rgba(0,0,0,.75)!important}
@media (max-width:720px){
  :where([style*="border-radius:2"][style*="background:rgba(4,11,30,"]):not(.ih-glass-skip):not(:has([style*="position:fixed"])),:where([style*="border-radius:24px"][style*="#060d18 40%)"]){-webkit-backdrop-filter:blur(14px) saturate(1.4);backdrop-filter:blur(14px) saturate(1.4)}
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  :where([style*="border-radius:2"][style*="background:rgba(4,11,30,"]):not(.ih-glass-skip){background-color:rgba(6,20,34,.82)!important}
}

/* Partner raffle hero (Partner Rewards): minimal, partner-branded, same structure as the Launch Raffle hero. */
.ih-prh{position:relative;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);border-radius:28px;overflow:hidden;isolation:isolate;
  background:linear-gradient(160deg,rgba(255,255,255,.06),rgba(255,255,255,.01) 38%,rgba(255,255,255,0) 60%),rgba(6,18,30,.52);
  -webkit-backdrop-filter:blur(22px) saturate(1.4);backdrop-filter:blur(22px) saturate(1.4);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08),inset 0 1px 0 rgba(255,255,255,.12),0 30px 60px -36px rgba(0,0,0,.85)}
.ih-prh-media{position:relative;display:flex;align-items:center;min-height:clamp(300px,30vw,430px);overflow:hidden;background:#010a10}
.ih-prh-media::before{content:"";position:absolute;inset:-12%;background:var(--prh-img) center/cover no-repeat;filter:blur(28px) brightness(.5) saturate(1.1);transform:scale(1.05)}
.ih-prh-img{position:relative;z-index:1;width:100%;aspect-ratio:16/9;background-position:center;background-size:contain;background-repeat:no-repeat;transition:transform 1.2s cubic-bezier(.2,.7,.2,1)}
.ih-prh:hover .ih-prh-img{transform:scale(1.015)}
.ih-prh-body{display:flex;flex-direction:column;justify-content:center;gap:20px;padding:clamp(24px,3vw,40px);min-width:0}
.ih-prh-by{display:flex;align-items:center;gap:8px;min-width:0;font-size:12.5px;color:rgba(255,255,255,.6)}
.ih-prh-by b{font-weight:700;color:#fff}
.ih-prh-logo{width:24px;height:24px;flex:0 0 auto;border-radius:50%;object-fit:cover;box-shadow:0 0 0 1px rgba(255,255,255,.14)}
.ih-prh-ini{display:grid;place-items:center;font-size:10px;font-weight:800;color:#fff;background:rgba(255,255,255,.1)}
.ih-prh-sep{width:3px;height:3px;border-radius:50%;background:rgba(255,255,255,.35)}
.ih-prh-x{margin-left:auto;flex:0 0 auto;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;color:rgba(255,255,255,.55);transition:color .2s,background .2s}
.ih-prh-x:hover{color:#fff;background:rgba(255,255,255,.08)}
.ih-prh-prize{display:flex;flex-direction:column;gap:8px}
.ih-prh-total{font-size:clamp(48px,5vw,76px);font-weight:900;letter-spacing:-.045em;line-height:.9;color:#ffe08a;text-shadow:0 0 34px rgba(255,190,70,.28)}
.ih-prh-total[data-kind="title"]{font-size:clamp(26px,2.6vw,34px);letter-spacing:-.02em;line-height:1.05;color:#fff;text-shadow:none}
.ih-prh-split{font-size:14px;font-weight:600;color:rgba(255,255,255,.72)}
.ih-prh-meta{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 0;font-size:12.5px;color:rgba(255,255,255,.55)}
.ih-prh-meta>span{display:inline-flex;align-items:baseline;gap:5px}
.ih-prh-meta>span+span::before{content:"";width:3px;height:3px;border-radius:50%;background:rgba(255,255,255,.3);margin:0 10px;align-self:center}
.ih-prh-meta b{font-weight:700;color:#fff;font-variant-numeric:tabular-nums}
.ih-prh-req{display:flex;align-items:center;gap:10px;min-width:0;padding:12px 0;border-top:1px solid rgba(255,255,255,.07);border-bottom:1px solid rgba(255,255,255,.07)}
.ih-prh-req+.ih-prh-req{border-top:0;margin-top:-20px}
.ih-prh-req-mark{width:18px;height:18px;flex:0 0 auto;border-radius:50%;display:grid;place-items:center;font-size:10px;font-weight:900;color:rgba(255,255,255,.5);box-shadow:inset 0 0 0 1px rgba(255,255,255,.25)}
.ih-prh-req[data-done="true"] .ih-prh-req-mark{color:#1a1200;background:#ffd36b;box-shadow:none}
.ih-prh-req-l{flex:1;min-width:0;font-size:13px;color:rgba(255,255,255,.85)}
.ih-prh-req-ok{flex:0 0 auto;font-size:12px;color:rgba(255,255,255,.5)}
.ih-prh-req-btn{flex:0 0 auto;border:0;background:none;padding:6px 0;font-size:12.5px;font-weight:700;color:#ffd36b;cursor:pointer}
.ih-prh-buy{display:flex;align-items:center;gap:10px}
.ih-prh-buy--wrap{flex-wrap:wrap}.ih-prh-buy--wrap .ih-prh-cta{flex:1 1 220px}
.ih-prh-step{flex:0 0 auto;display:flex;align-items:center;gap:2px;padding:4px;border-radius:99px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)}
.ih-prh-step button{width:36px;height:36px;border:0;border-radius:50%;background:transparent;color:#fff;font-size:18px;font-weight:700;cursor:pointer;transition:background .2s}
.ih-prh-step button:hover{background:rgba(255,255,255,.08)}
.ih-prh-step button.ih-max{width:auto;padding:0 12px;border-radius:99px;font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--cyan-300)}
.ih-prh-step span{min-width:26px;text-align:center;font-size:16px;font-weight:800;font-variant-numeric:tabular-nums}
.ih-prh-cta{flex:1 1 auto;min-width:0;min-height:48px;border:0;border-radius:99px;padding:0 20px;font-size:14.5px;font-weight:800;white-space:nowrap;transition:filter .16s ease,transform .16s ease}
.ih-prh-cta:not(:disabled):hover{filter:brightness(1.05);transform:translateY(-1px)}
.ih-prh-note{margin-top:-8px;font-size:11.5px;color:rgba(255,255,255,.45)}
.ih-prh-elig{margin-top:-12px;font-size:12px;line-height:1.4}
.ih-prh-over{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 14px;border-radius:12px;background:rgba(1,2,19,.45);box-shadow:inset 0 0 0 .539px rgba(255,255,255,.18)}
@media (min-width:861px){.ih-prh-img{-webkit-mask:linear-gradient(180deg,transparent,#000 9%,#000 91%,transparent);mask:linear-gradient(180deg,transparent,#000 9%,#000 91%,transparent)}}
@media (max-width:860px){.ih-prh{grid-template-columns:1fr}.ih-prh-media{min-height:0}.ih-prh-media::before{display:none}.ih-prh-body{gap:18px;padding:22px 20px 24px}
  /* Keep the buy row clear of the fixed bottom nav in this view. */
  .ih-prh-list{padding-bottom:calc(110px + env(safe-area-inset-bottom,0px))}}
@media (max-width:720px){.ih-prh{-webkit-backdrop-filter:blur(14px) saturate(1.3);backdrop-filter:blur(14px) saturate(1.3)}}
@media (prefers-reduced-motion:reduce){.ih-prh-img,.ih-prh-cta{transition:none}.ih-prh:hover .ih-prh-img{transform:none}}

/* ---- Round 6: app-wide liquid gradient, clearly visible but soft.
   Cards and shell layers cover most of the viewport, so a canvas behind them is invisible. The canvas (ih-liquid.js) sits above
   the page content and below the header, sidebar, nav and modals, screen-blended: dark areas of the UI pick up slow teal/cyan
   bands, bright text is untouched. pointer-events:none. */
.ih-bg-lg{z-index:10;mix-blend-mode:screen;opacity:.55;animation:ihBgIn2 2.4s ease both}
@keyframes ihBgIn2{from{opacity:0}to{opacity:.55}}
/* CSS fallback (no WebGL2, e.g. an old iOS): the same kind of layer, drifting. Hidden when the canvas runs. */
body::after{content:"";position:fixed;inset:-25%;z-index:10;pointer-events:none;mix-blend-mode:screen;will-change:transform;opacity:.9;
  background:
    radial-gradient(34% 30% at 22% 24%,rgba(15,123,146,.5),transparent 70%),
    radial-gradient(30% 34% at 78% 38%,rgba(50,170,194,.3),transparent 70%),
    radial-gradient(36% 30% at 40% 82%,rgba(7,64,79,.6),transparent 70%);
  animation:ihBgFlow 22s ease-in-out infinite alternate}
@keyframes ihBgFlow{0%{transform:translate3d(-6%,-4%,0) rotate(0deg) scale(1)}50%{transform:translate3d(5%,4%,0) rotate(7deg) scale(1.12)}100%{transform:translate3d(-2%,8%,0) rotate(-5deg) scale(1.2)}}
html.ih-bg-gl body::after{display:none}
@media (prefers-reduced-motion:reduce){body::after{animation-duration:90s}}
