/* ============================================================
   SKKF GLYPH — skeleton-auto.css
   Model "polygon": stylujemy ORYGINALNY DOM LinkStacka
   (.container / .column / .button-entrance / .button / h1 / #avatar).
   Zero przejmowania strony — bez JS też wszystko działa.
   Warstwa JS (extra/custom-body-end) dodaje tylko: canvas z siatką,
   generatywny napis SKKF, ghost-nazwy, licznik, kopiowanie linku.
   ============================================================ */

:root{
  --bg:#0a0b09;
  --ink:#f2f4ea;
  --mut:#8d9385;
  --mut2:#b7bdb0;
  --sub:#9aa18f;
  --lime:#d4f645;
  --blue:#1d9bf0;
  --line:rgba(242,244,234,.18);
  --mono:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --disp:"Archivo",system-ui,-apple-system,"Segoe UI",sans-serif;
  color-scheme:dark;
}

*,*::before,*::after{box-sizing:border-box}
html{background:var(--bg)!important}
html,body{overflow-x:clip}
body{
  background:var(--bg)!important;
  color:var(--ink);
  font-family:var(--disp)!important;
  min-height:100vh;
  -webkit-font-smoothing:antialiased;
}
::selection{background:var(--lime);color:#0a0b09}
a{color:inherit;text-decoration:none}
img{max-width:100%}
/* ziarno — czysty CSS, bez JS */
body::before{
  content:"";position:fixed;inset:0;z-index:1;pointer-events:none;opacity:.06;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size:160px 160px;
}

/* ---- stock LinkStacka: parallax w tle wyłączony (tło robi canvas) ---- */
.background-container,
.parallax-background,
.sharediv{display:none!important}

/* ---- layout kolumny ---- */
body>.container{
  position:relative;z-index:2;
  max-width:640px;margin:0 auto;padding:0 16px;
}
body>.container>.row{display:block}
.column{
  margin-top:0!important;
  padding:clamp(40px,9vh,84px) 0 0;
  text-align:center;
}

/* ---- awatar: rama z limonkowymi narożnikami (JS owija w .sg-plate;
        bez JS — sam kwadrat z ramką) ---- */
#avatar{
  width:88px;height:88px;object-fit:cover;
  display:inline-block;border:1px solid rgba(242,244,234,.32);border-radius:0;
}
.sg-plate{display:flex;align-items:stretch;justify-content:center;gap:10px;margin-bottom:12px}
.sg-plate .sg-frame{position:relative;width:88px;height:88px;flex:none;border:1px solid rgba(242,244,234,.32)}
.sg-plate .sg-frame #avatar{width:100%;height:100%;border:none;display:block}
.sg-frame::before,.sg-frame::after{content:"";position:absolute;width:12px;height:12px}
.sg-frame::before{top:-6px;left:-6px;border-top:1px solid var(--lime);border-left:1px solid var(--lime)}
.sg-frame::after{bottom:-6px;right:-6px;border-bottom:1px solid var(--lime);border-right:1px solid var(--lime)}
.sg-vtag{
  writing-mode:vertical-rl;display:flex;justify-content:space-between;
  font-family:var(--mono);font-size:9px;font-weight:500;line-height:1;
  letter-spacing:.34em;text-transform:uppercase;color:var(--mut);
  border-left:1px solid var(--line);padding-left:9px;
}

/* ---- nazwa: bez JS duży napis; z JS (body.sg-glyph) glify przejmują ---- */
h1{
  font-family:var(--disp);font-weight:900;
  font-size:clamp(2.6rem,12vw,4.6rem);line-height:1;
  letter-spacing:-.03em;text-transform:uppercase;
  margin:14px 0 12px;color:var(--ink);
}
h1 .badge{height:.55em!important;margin:0 0 0 8px!important}
body.sg-glyph h1{
  position:absolute!important;width:1px;height:1px;overflow:hidden;
  clip-path:inset(50%);white-space:nowrap;margin:0;
}
.sg-gtitle{width:100%;max-width:640px;margin:0 auto 6px}
.sg-gwrap{
  display:block;position:relative;width:100%;aspect-ratio:26/7;
  font-family:var(--mono);font-weight:400;line-height:1;letter-spacing:0;
  user-select:none;-webkit-user-select:none;pointer-events:none;
}
.sg-cell{
  position:absolute;color:rgba(242,244,234,.6);
  transform:translate(-50%,-50%);opacity:0;
  transition:color .35s ease,opacity .6s ease;will-change:transform;
}
.sg-cell.on{opacity:1}
.sg-cell.s{color:rgba(242,244,234,.9)}
.sg-cell.lit{color:var(--lime)}
.sg-cell.hot{color:var(--lime);transition:color .1s ease,opacity .6s ease}
body.sg-grabbing,body.sg-grabbing *{cursor:grabbing!important;user-select:none;-webkit-user-select:none}

/* ---- weryfikacja / bio ---- */
.sg-vbadge{
  display:inline-flex;align-items:center;gap:9px;
  border:1px solid var(--line);padding:10px 15px;margin:6px 0 14px;
  font-family:var(--mono);font-size:10px;font-weight:500;line-height:1;
  letter-spacing:.2em;text-transform:uppercase;color:var(--mut);
}
.sg-vbadge i{width:7px;height:7px;border-radius:50%;background:var(--blue);display:inline-block}
/* JS owija bio w .sg-biowrap — bez jawnej reguły WebKit (Safari) liczy
   wysokość kołyszącego się bloku inaczej niż Blink/Gecko i bio potrafi
   zniknąć/wyskoczyć. Dajemy mu stabilny, full-width kontener. */
.sg-biowrap{display:block;width:100%;max-width:100%;min-height:1em;overflow:visible;box-sizing:border-box}
.description-parent,.description-parent p{
  color:var(--mut2)!important;
  font-family:var(--disp)!important;font-weight:500!important;
  font-size:clamp(.92rem,2.5vw,1rem)!important;line-height:1.7!important;
  max-width:36ch;margin:0 auto!important;padding-bottom:8px!important;
  overflow-wrap:break-word;word-wrap:break-word;-webkit-text-size-adjust:100%;
}

/* ---- indeks linków: każdy .button-entrance = wiersz ---- */
.column{counter-reset:sgrow}
.sg-ihead{
  display:flex;justify-content:space-between;align-items:baseline;gap:12px;
  padding:15px 16px;border-top:1px solid var(--line);
  font-family:var(--mono);font-size:10px;font-weight:500;line-height:1;
  letter-spacing:.18em;text-transform:uppercase;color:var(--mut);
  text-align:left;
}
.button-entrance{
  position:relative;display:grid;
  grid-template-columns:26px minmax(0,1fr) 30px;
  column-gap:12px;row-gap:4px;align-items:center;
  padding:0 16px 14px;
  width:100%;max-width:100%;min-width:0;box-sizing:border-box;
  border-top:1px solid var(--line);
  overflow:hidden;text-align:left;touch-action:manipulation;
  counter-increment:sgrow;
  transition:background .14s ease;
  animation:sg-rise .55s cubic-bezier(.2,.7,.25,1) both;
  animation-delay:calc(var(--delay,1s)/22);
}
.button-entrance::before{
  content:counter(sgrow,decimal-leading-zero);
  grid-column:1;grid-row:1;align-self:start;padding-top:15px;
  font-family:var(--mono);font-size:10px;font-weight:500;line-height:1;
  letter-spacing:.12em;color:var(--mut);
  transition:color .14s ease;
}
.button-entrance>.button{
  grid-column:2;grid-row:1;
  position:relative;display:block!important;width:100%;
  margin:0!important;padding:11px 0!important;
  background:none!important;background-image:none!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;
  color:var(--ink)!important;
  font-family:var(--disp)!important;font-weight:800!important;
  font-size:1.08rem!important;line-height:1.25!important;
  letter-spacing:-.01em;text-transform:uppercase;
  transition:color .14s ease;
}
.button-entrance>.button .icon{
  display:inline-block;width:16px;height:16px;margin:0 10px 0 0;vertical-align:-2px;
  filter:brightness(0) invert(1);
  transition:filter .14s ease,transform .18s ease;
}
.sg-sub{
  display:block;margin-top:1px;
  font-family:var(--mono);font-size:10.5px;font-weight:400;line-height:1.5;
  letter-spacing:0;text-transform:none;color:var(--sub);
  transition:color .14s ease;
}
.button-entrance::after{
  content:"";grid-column:3;grid-row:1;place-self:center;
  width:9px;height:9px;
  border-top:1.5px solid var(--mut);border-right:1.5px solid var(--mut);
  transform:rotate(45deg);
  transition:border-color .14s ease,transform .18s ease;
}
/* stany: dotyk / flash */
.button-entrance:active,.button-entrance.flash{background:var(--lime)}
.button-entrance:active::before,.button-entrance.flash::before,
.button-entrance:active>.button,.button-entrance.flash>.button{color:#0a0b09!important}
.button-entrance:active>.button .icon,.button-entrance.flash>.button .icon{filter:brightness(0)}
.button-entrance:active .sg-sub,.button-entrance.flash .sg-sub{color:#0a0b09}
.button-entrance:active::after,.button-entrance.flash::after{border-color:#0a0b09}
/* hover tylko na urządzeniach z kursorem */
@media (hover:hover){
  .button-entrance:hover{background:var(--lime)}
  .button-entrance:hover::before,
  .button-entrance:hover>.button{color:#0a0b09!important}
  .button-entrance:hover>.button .icon{filter:brightness(0)}
  .button-entrance:hover .sg-sub{color:#0a0b09}
  .button-entrance:hover::after{border-color:#0a0b09;transform:rotate(45deg) translate(2px,-2px)}
}
.button-entrance.sg-last{border-bottom:1px solid var(--line)}
a:focus-visible,button:focus-visible,.share-button:focus-visible{
  outline:2px solid var(--lime);outline-offset:3px;
}
/* neutralizacja stockowych efektów przycisków */
.button-hover,.icon-hover,.hvr-icon{transition:none}
.button-hover:hover,.icon-hover:hover,.button-hover:active{transform:none}

/* ---- stopka + toast (tworzone przez JS; bez JS stopka pusta) ---- */
.footer{padding:26px 0 34px}
.sg-fwrap{
  display:flex;flex-wrap:wrap;gap:14px;align-items:center;justify-content:space-between;
  font-family:var(--mono);font-size:10.5px;font-weight:500;line-height:1;
  letter-spacing:.16em;text-transform:uppercase;color:var(--mut);
  text-align:left;
}
.sg-copybtn{
  font-family:inherit;font-size:inherit;letter-spacing:inherit;text-transform:inherit;
  background:none;border:1px solid var(--line);color:var(--mut);
  padding:11px 16px;cursor:pointer;
  transition:border-color .16s ease,color .16s ease;
}
.sg-copybtn:hover,.sg-copybtn:focus-visible{border-color:var(--lime);color:var(--lime)}
.sg-toast{
  position:fixed;left:50%;bottom:calc(24px + env(safe-area-inset-bottom));
  transform:translate(-50%,14px);z-index:10;
  background:#0a0b09;border:1px solid var(--lime);color:var(--lime);
  font-family:var(--mono);font-size:11px;font-weight:500;line-height:1;
  letter-spacing:.14em;text-transform:uppercase;
  padding:13px 18px;opacity:0;pointer-events:none;
  transition:opacity .22s ease,transform .22s ease;
}
.sg-toast.show{opacity:1;transform:translate(-50%,0)}

/* canvas tła (tworzony przez JS; bez JS po prostu nie istnieje) */
.sg-field{position:fixed;inset:0;z-index:0;display:block;pointer-events:none}

/* ---- desktop ---- */
@media (min-width:760px){
  body>.container{max-width:760px}
  .sg-plate .sg-frame{width:112px;height:112px}
  .sg-gtitle{max-width:760px}
  .description-parent,.description-parent p{max-width:44ch;font-size:1.02rem!important}
  .sg-ihead{padding:16px 24px}
  .button-entrance{grid-template-columns:36px minmax(0,1fr) 42px;column-gap:20px;row-gap:5px;padding:0 24px 16px}
  .button-entrance::before{padding-top:21px}
  .button-entrance>.button{font-size:1.45rem!important;padding:15px 0!important}
  .button-entrance>.button::after{
    content:attr(data-name);
    position:absolute;z-index:0;right:110px;top:50%;
    transform:translateY(-50%) translateX(34%);
    font-family:var(--disp);font-weight:900;white-space:nowrap;
    font-size:clamp(56px,8vw,100px);line-height:1;letter-spacing:-.02em;
    color:transparent;-webkit-text-stroke:1.5px rgba(10,11,9,.34);
    opacity:0;pointer-events:none;
    transition:opacity .22s ease,transform .5s cubic-bezier(.2,.7,.2,1);
  }
  .button-entrance:hover>.button::after{opacity:1;transform:translateY(-50%)}
}
@media (hover:hover) and (min-width:760px){
  body{cursor:crosshair}
  .sg-gtitle{cursor:grab}
  body.sg-grabbing .sg-gtitle{cursor:grabbing}
}

/* ---- animacje wejścia (fallback gdy animations.css się nie dołączy) ---- */
@keyframes sg-rise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes sg-fadein{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){
  .button-entrance{animation:none}
  *{transition-duration:.01ms!important}
}

/* ---- dopełnienia warstwy JS ---- */
.sg-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body.sg-fallback .sg-gwrap,body.sg-fallback .sg-gtitle{display:none}
body.sg-fallback h1{position:static!important;width:auto!important;height:auto!important;overflow:visible;clip-path:none;white-space:normal}
.sg-sub{grid-column:2;grid-row:2;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.button-entrance>.button{z-index:1}

/* ---- dopracowana górna sekcja (hero/avatar/nazwa/bio) ---- */
.column{padding-top:clamp(34px,8vh,72px)}
.sg-plate{margin-bottom:14px}
h1{margin:16px 0 10px}
.sg-gtitle{margin:0 auto 12px}
.sg-vbadge{margin:2px 0 12px}
/* neutralizacja inline <style> w HTML: .description-parent * {margin-bottom:1em} */
.sg-biowrap{margin-top:4px}
.sg-biowrap .description-parent{padding-bottom:16px!important}
.sg-biowrap .description-parent *{margin-bottom:.62em!important}
.sg-biowrap .description-parent > *:first-child{margin-top:0!important}
.sg-biowrap .description-parent > *:last-child{margin-bottom:0!important}
.description-parent p{line-height:1.65!important}
.social-icon-div{margin:4px 0 24px!important}

/* ---- social ikony pod bio ---- */
.social-icon-div{display:flex!important;justify-content:center;align-items:center;gap:20px;margin:10px 0 22px!important;padding:0}
.social-icon-div .social-link{display:inline-flex;padding:0}
.social-icon-div .social-icon-image{width:20px!important;height:20px!important;filter:grayscale(1) brightness(1.7);opacity:.72;transition:opacity .14s ease}
.social-icon-div .social-link:hover .social-icon-image{opacity:1}
.copy-icon{display:none!important}
