/* =====================================================================
   look.css  -  loaded LAST (after x-fix.css), so it wins over every older layer.

   1. Intro + Demo / Real screen: you see ONLY the background picture (with the
      saved size / position / zoom), never the site ghosted behind it.
   2. Demo / Real screen: cleaner type + glass cards that read on any picture.
   3. Home banner ("No fees + VIP"): slimmer and calmer, one row on phones too.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. SHOW THE BACKGROUND, NOT THE SITE
   While the intro / mode picker is up, everything behind it is hidden. The
   picture itself is the page background layer (html::after in glass.css), so it
   already follows the Size & position settings from Themes.
   --------------------------------------------------------------------- */
html:has(#gate.on) body > *:not(#gate):not(#tm-panel):not(#auth):not(#toast):not(svg):not(script):not(style):not(link){
  visibility:hidden!important}

#gate{
  /* a soft vignette only: light in the middle so the picture is clearly visible, darker at the edges for the text */
  background:radial-gradient(ellipse 90% 75% at 50% 44%,rgba(0,0,0,.30) 0%,rgba(0,0,0,.50) 62%,rgba(0,0,0,.70) 100%)!important;
  -webkit-backdrop-filter:none!important;backdrop-filter:none!important}

/* ---------------------------------------------------------------------
   2. DEMO / REAL SCREEN
   --------------------------------------------------------------------- */
#gate .g-body:has(.g-pick){width:min(420px,100%);padding:32px 18px 36px}
#gate .pl-lockup{gap:10px;margin:0 auto 4px}
#gate .pl-lockup .pl-mark{width:44px;height:44px}
#gate .pl-word{font-size:22px;letter-spacing:-.03em;text-shadow:0 2px 18px rgba(0,0,0,.55)}

#gate .g-hero{
  margin:22px 0 8px;font-size:27px;line-height:1.15;letter-spacing:-.04em;text-wrap:balance;
  background:none!important;-webkit-text-fill-color:#fff!important;color:#fff!important;
  text-shadow:0 2px 22px rgba(0,0,0,.6)}
#gate .g-sub{color:rgba(255,255,255,.86)!important;max-width:36ch;text-shadow:0 1px 14px rgba(0,0,0,.65)}

#gate .g-pick{gap:12px;margin-top:24px}
#gate .g-pick .g-card,#gate .g-pick .g-card.real{
  padding:16px 14px 16px 14px;border-radius:20px;
  background:rgba(var(--tm-glass-bar,10,10,12),.62)!important;
  border:1px solid rgba(var(--tm-hi,255,255,255),.16)!important;
  -webkit-backdrop-filter:blur(16px) saturate(1.2)!important;backdrop-filter:blur(16px) saturate(1.2)!important;
  box-shadow:0 14px 36px -16px rgba(0,0,0,.8)!important}
@media(hover:hover){
  #gate .g-pick .g-card:hover{background:rgba(var(--tm-glass-bar,10,10,12),.74)!important;border-color:rgba(var(--tm-hi,255,255,255),.34)!important;transform:translateY(-2px)}
}
#gate .g-pick .g-card:active{transform:scale(.985)}
#gate .g-pick .g-card.sel{border-color:rgba(var(--tm-hi,255,255,255),.6)!important}
#gate .g-d{color:var(--txt-2)}
#gate .g-fees{border-top:1px solid rgba(var(--tm-hi,255,255,255),.12)}

/* "Themes" button: a small glass pill under the cards */
#gate .tm-open-btn{
  margin:18px auto 0!important;padding:0 16px;height:38px;border-radius:99px;font-size:13px;gap:8px;
  color:#fff;background:rgba(var(--tm-glass-bar,10,10,12),.5);
  border:1px solid rgba(var(--tm-hi,255,255,255),.18);
  -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
#gate .tm-open-btn:hover{background:rgba(var(--tm-glass-bar,10,10,12),.66)}
#gate .g-err{text-shadow:0 1px 10px rgba(0,0,0,.7)}

/* phones: no blur (cheaper to draw) - a little more opaque instead */
@media(max-width:700px),(max-aspect-ratio:1/1){
  #gate .g-pick .g-card,#gate .g-pick .g-card.real{
    background:rgba(var(--tm-glass-bar,10,10,12),.72)!important;
    -webkit-backdrop-filter:none!important;backdrop-filter:none!important}
  #gate .tm-open-btn{-webkit-backdrop-filter:none;backdrop-filter:none;background:rgba(var(--tm-glass-bar,10,10,12),.66)}
  #gate .g-hero{font-size:25px}
}

/* ---------------------------------------------------------------------
   LOGO SIZE FIX
   poz.png is 640x709. Nothing constrained the <img> inside the logo
   boxes, so it drew at full size (the "huge P" on the loading screen
   and in the creator-code notification). Fit it to its box instead.
   --------------------------------------------------------------------- */
.pl-lockup{display:flex;align-items:center;justify-content:center;gap:10px}
.pl-mark{display:block;flex:none;width:30px;height:30px;line-height:0;overflow:hidden}
.pl-mark img{display:block;width:100%;height:100%;max-width:100%;object-fit:contain;-webkit-user-drag:none;user-select:none}
.pl-lockup.lg .pl-mark{width:44px;height:44px}
.pl-word{font-weight:700;letter-spacing:-.03em;line-height:1}
.au-brand .pl-lockup .pl-mark{width:30px;height:30px}
#gate .pl-lockup .pl-mark{width:44px;height:44px}

/* ---------------------------------------------------------------------
   CREATOR-CODE NOTIFICATION BANNER (#cr-promo)
   Base layout was missing, so the banner and its icon were unstyled.
   --------------------------------------------------------------------- */
#cr-promo{position:fixed;left:0;right:0;top:calc(env(safe-area-inset-top,0px) + 10px);z-index:9100;
  display:flex;justify-content:center;padding:0 10px;pointer-events:none;
  transform:translateY(-140%);opacity:0;transition:transform .55s cubic-bezier(.2,.8,.2,1),opacity .4s ease}
#cr-promo.show{transform:none;opacity:1}
#cr-promo .crp-main{position:relative;pointer-events:auto;display:flex;align-items:center;gap:12px;
  width:min(440px,100%);padding:14px 124px 16px 16px;border:0;border-radius:18px;text-align:left;cursor:pointer;
  font-family:var(--ui);color:#f3f3f5;overflow:hidden;
  background:#26272c;box-shadow:inset 0 0 0 1px rgba(255,255,255,.09),0 12px 32px rgba(0,0,0,.5);
  transition:background .15s,transform .1s}
#cr-promo .crp-main:active{transform:scale(.985)}
@media(hover:hover){#cr-promo .crp-main:hover{background:#2c2d33}}
#cr-promo .crp-ico{flex:none;display:block;width:32px;height:32px;line-height:0;overflow:hidden;border-radius:10px}
#cr-promo .crp-ico img{display:block;width:100%;height:100%;object-fit:contain}
#cr-promo .crp-txt{display:flex;flex-direction:column;gap:2px;min-width:0}
#cr-promo .crp-tag{font-size:10.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#8d8f99}
#cr-promo .crp-t{font-size:15px;font-weight:750;letter-spacing:-.01em;color:#f3f3f5}
#cr-promo .crp-d{font-size:12px;line-height:1.4;color:#a3a5ae}
#cr-promo .crp-go{position:absolute;right:38px;top:50%;transform:translateY(-50%);height:30px;padding:0 12px;border-radius:99px;
  display:grid;place-items:center;font-size:12.5px;font-weight:700;background:#e9e9ec;color:#16161a}
#cr-promo .crp-x{position:absolute;pointer-events:auto;top:50%;transform:translateY(-50%);
  right:calc(max(0px,(100% - 440px)/2) + 18px);width:26px;height:26px;border:0;border-radius:50%;
  background:transparent;color:#8d8f99;font-size:20px;line-height:1;cursor:pointer}
#cr-promo .crp-bar{position:absolute;left:calc(max(0px,(100% - 440px)/2) + 10px);right:calc(max(0px,(100% - 440px)/2) + 10px);
  bottom:0;height:2px;border-radius:2px;overflow:hidden;pointer-events:none}
#cr-promo .crp-bar i{display:block;height:100%;width:100%;transform-origin:left;background:rgba(255,255,255,.35);
  animation:crpbar 9s linear forwards}
@keyframes crpbar{from{transform:scaleX(1)}to{transform:scaleX(0)}}
@media(prefers-reduced-motion:reduce){#cr-promo{transition:opacity .2s}}


/* ---------------------------------------------------------------------
   4. SNIPER HEADER - setups + Auto-buy + market cap range, one joined card
   (used to be three separate boxes stacked on top of each other)
   --------------------------------------------------------------------- */
#sn-list .sn-head{
  padding:0;margin:4px 0 2px;border-radius:18px;overflow:hidden;
  background:var(--gl-fill,rgba(255,255,255,.055));
  border:1px solid var(--gl-edge-2,rgba(255,255,255,.09));
  -webkit-backdrop-filter:var(--gl-blur,none);backdrop-filter:var(--gl-blur,none)}
#sn-list .sn-bar{display:flex;align-items:center;gap:12px;padding:12px 12px 12px 16px}

/* title: loses its own box, setups on top, coins scanned under it */
#sn-list .sn-head .sn-title{
  flex:1;min-width:0;flex-direction:column;align-items:flex-start;justify-content:center;gap:1px;
  margin:0;padding:0;border:0!important;border-radius:0;box-shadow:none;
  background:none!important;background-color:transparent!important;-webkit-backdrop-filter:none;backdrop-filter:none}
#sn-list .sn-head .sn-title span{font-size:16.5px;font-weight:750;letter-spacing:-.02em;color:var(--txt,#fff)}
#sn-list .sn-head .sn-title small{font-size:12px;font-weight:600;color:var(--txt-3,#6e6a84)}

/* Auto-buy: a compact pill on the right of the same row */
#sn-list .sn-head .sn-auto{
  flex:none;width:auto;margin:0;height:36px;padding:0 10px 0 14px;gap:7px;border-radius:99px;
  font-size:13px;font-weight:700;white-space:nowrap;color:var(--txt-1,#eceaf6);
  background:rgba(var(--tm-hi,255,255,255),.09)!important;background-color:rgba(var(--tm-hi,255,255,255),.09)!important;
  border:1px solid rgba(var(--tm-hi,255,255,255),.16)!important;
  -webkit-backdrop-filter:none;backdrop-filter:none}
#sn-list .sn-head .sn-auto b{margin-left:0;font-weight:800;color:var(--txt-3,#6e6a84)}
#sn-list .sn-head .sn-auto::after{margin-left:0;font-size:18px;line-height:1}
#sn-list .sn-head .sn-auto[data-on="1"]{
  background:var(--up-soft,rgba(31,213,97,.13))!important;background-color:var(--up-soft,rgba(31,213,97,.13))!important;
  border-color:rgba(31,213,97,.4)!important}
#sn-list .sn-head .sn-auto[data-on="1"] b{color:var(--up,#1fd561)}

/* market cap range: the bottom row of the same card, three equal buttons that always fit */
#sn-list .sn-head .sn-ranges{
  margin:0;padding:8px;gap:6px;border-radius:0;border:0;
  border-top:1px solid var(--gl-edge-2,rgba(255,255,255,.09));
  background:rgba(0,0,0,.22)!important;-webkit-backdrop-filter:none;backdrop-filter:none}
#sn-list .sn-head .sn-r{padding:9px 2px;font-size:13px;line-height:1.1;text-align:center;border-radius:99px;overflow:hidden;text-overflow:ellipsis}
@media(max-width:360px){#sn-list .sn-head .sn-r{font-size:12px}}

/* ---------------------------------------------------------------------
   5. RANK PILLS (profile) - wrap onto a second line instead of hiding the
   Content Creator pill off the edge of a narrow screen
   --------------------------------------------------------------------- */
.pranks{flex-wrap:wrap;overflow:visible;row-gap:10px}
.rankpill.crrole{padding-right:18px}
