:root {
  color-scheme: dark;
  --kla-bg: #050509;
  --kla-bg-card: #15151b;
  --kla-bg-card-alt: #191923;
  --kla-border-subtle: #252535;
  --kla-text-main: #f5f5ff;
  --kla-text-muted: #a8a8c0;
  --kla-accent: #943ec5;
  --kla-accent-soft: rgba(148, 62, 197, 0.4);
  --kla-shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.6);
  --kla-radius-lg: 18px;
  --kla-radius-pill: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-width: 375px;
}

body.kla-body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #151526 0, #050509 55%, #020206 100%);
  color: var(--kla-text-main);
}

.kla-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 18px 12px 24px;
}

.kla-main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 540px;
  margin: auto;
}

.kla-hero {
  position: fixed;
  inset: 0;
  background-image: url("../img/bg_BIG.avif");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: brightness(0.45) saturate(1.1);
  z-index: 0;
}

@media screen and (max-width: 479px) {
  .kla-hero {
    background-image: url("../img/bg_SML.avif");
  }
}

.kla-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(13, 13, 30, 0.95), rgba(2, 2, 10, 0.96));
}

.kla-hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(148, 62, 197, 0.45), transparent 55%),
    radial-gradient(circle at bottom right, rgba(255, 122, 190, 0.32), transparent 55%);
  mix-blend-mode: screen;
  opacity: 0.8;
}

.kla-card {
  background: linear-gradient(145deg, rgba(18, 18, 30, 0.96), rgba(9, 9, 18, 0.96));
  border-radius: 24px;
  border: 1px solid rgba(148, 62, 197, 0.4);
  box-shadow: var(--kla-shadow-soft);
  padding: 20px 18px 14px;
  backdrop-filter: blur(22px);
}

.kla-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.kla-avatar-wrapper {
  flex-shrink: 0;
}

.kla-avatar {
    display: block;
    width: 90px;
    height: 90px;
    border-radius: 25%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background-image: url(../img/klaudia.png);
    background-size: contain;
    background-clip: content-box;
}

.kla-header-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kla-name {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem;
}

.kla-name-static {
  opacity: 1;
}


.kla-name-typed-active .kla-name-static {
  display: none;
}

#kla-name-typed {
  min-width: 0.1rem;
  white-space: nowrap;
}

.kla-tagline {
  margin: 0;
  font-size: 0.9rem;
  color: var(--kla-text-muted);
}

.kla-links {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: 1fr;
    gap: 10px;
    transition: height 260ms ease;
}

.kla-link {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  background: linear-gradient(135deg, rgba(21, 21, 27, 0.96), rgba(13, 13, 22, 0.96));
  border-radius: 16px;
  border: 1px solid var(--kla-border-subtle);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
  transition:
    transform 0.14s ease-out,
    box-shadow 0.14s ease-out,
    border-color 0.14s ease-out,
    background 0.14s ease-out;
  min-height: 85px;
}

.kla-link-wide {
  padding-right: 13px;
}

.kla-link:hover {
  transform: translateY(-1px);
  border-color: var(--kla-accent);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.8);
  background: radial-gradient(circle at top left, rgba(148, 62, 197, 0.26), rgba(12, 12, 24, 0.96));
}

.kla-link:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.8);
}

.kla-link-icon-ring {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: #111119;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.kla-link-icon {
    display: block;
    opacity: 0.75;
}

.kla-link-ring-twitch {
  box-shadow: 0 0px 15px rgba(145, 70, 255, 0.85);
  background: radial-gradient(circle at top, rgba(145, 70, 255, 0.7), #161326);
}

.kla-link-ring-discord {
  box-shadow: 0 0px 15px rgba(88, 101, 242, 0.8);
  background: radial-gradient(circle at top, rgba(88, 101, 242, 0.7), #151630);
}

.kla-link-ring-donate {
  box-shadow: 0 0px 15px rgba(32, 64, 128, 0.85);
  background: radial-gradient(circle at top, rgba(80, 130, 255, 0.7), #101622);
}

.kla-link-ring-mastercard {
  box-shadow: 0 0px 15px rgba(255, 120, 60, 0.85);
  background: radial-gradient( circle at top, rgba(255, 170, 80, 0.7), #261510);
}

.kla-link-ring-instagram {
  box-shadow: 0 0px 15px rgba(202, 109, 120, 0.85);
  background: radial-gradient(circle at top, rgba(202, 109, 120, 0.7), #211322);
}

.kla-link-ring-tiktok {
  box-shadow: 0 0px 15px rgba(128, 128, 128, 0.85);
  background: radial-gradient(circle at top, rgba(230, 230, 230, 0.7), #171717);
}

.kla-link-ring-youtube {
  box-shadow: 0 0px 15px rgba(196, 48, 43, 0.9);
  background: radial-gradient(circle at top, rgba(196, 48, 43, 0.75), #261112);
}

.kla-link-ring-streamelements {
  box-shadow: 0 0px 15px rgba(0, 120, 255, 0.85);
  background: radial-gradient(circle at top, rgba(40, 150, 255, 0.7), #0b1524);
}

.kla-link-ring-revolut {
  box-shadow: 0 0px 15px rgba(0, 200, 150, 0.85);
  background: radial-gradient(circle at top, rgba(0, 220, 170, 0.7), #0b1f1a);
}

.kla-link-ring-throne {
  box-shadow: 0 0px 15px rgba(190, 140, 255, 0.85);
  background: radial-gradient(circle at top, rgba(220, 180, 255, 0.7), #1b1326);
}

.kla-link-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.kla-link-title{
  position: relative;
  font-weight: 600;
}


.kla-link{
  position: relative;
  overflow: hidden;
}

.kla-link-live::before{
  content: "LIVE";
  position: absolute;
  top: 12px;
  right: -34px;
  transform: rotate(45deg);

  width: 120px;
  text-align: center;

  padding: 4px 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;

  color: #ff76b3;
  background: rgba(255,118,179,0.12);
  border: 1px solid rgba(255,118,179,0.45);
  border-left: none;
  border-right: none;

  pointer-events: none;
}

.kla-link-live .kla-link-arrow{
  opacity: 0;
  visibility: hidden;
}

.kla-link-desc {
  font-size: 0.86rem;
  color: var(--kla-text-muted);
  padding-left: 5px;
}

.kla-link-url {
  font-size: 0.8rem;
  color: rgba(208, 204, 255, 0.82);
  letter-spacing: 0.02em;
  padding-left: 5px;
}

.kla-mention {
    display: inline-block;
    padding: 1px 4px 2px;
    border-radius: 5px;
    background-color: rgba(73, 75, 111, 0.4);
    font-weight: 500;
    color: #cdcdfa;
}

.kla-link-arrow {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.kla-link-arrow-icon {
  width: 18px;
  height: 18px;
  opacity: 0.85;
}

.kla-footer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
  color: rgba(196, 196, 220, 0.72);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  align-items: center;
}

.kla-footer-dot {
  margin: 0 4px;
}

.kla-contact {
  margin: 2px 0 0;
  font-size: 0.9rem;
  color: var(--kla-text-muted);
}

.kla-contact-label {
  opacity: 1;
}

.kla-contact-link {
  color: var(--kla-text-muted);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
}

.kla-contact-link:hover {
  border-bottom-style: solid;
}

.kla-link-beacon{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  opacity: 0.35;
  transform: scale(0.95);
  transition: opacity 160ms ease, transform 160ms ease;
}

.kla-link-beacon.is-live{
  opacity: 1;
  transform: scale(1);
  animation: klaBeaconPulse 1.2s infinite;
}

@keyframes klaBeaconPulse{
  0%   { box-shadow: 0 0 0 0 rgba(255,118,179,0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(255,118,179,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,118,179,0); }
}

.kla-link-live {
  position: relative;
  box-shadow:
    0 0 0 0 rgba(148, 62, 197, 0.4);
  animation: klaLivePulse 1.4s infinite;
}

@keyframes klaLivePulse {
  0% {
    box-shadow:
      0 0 0 0 rgba(148, 62, 197, 0.4);
  }
  70% {
    box-shadow:
      0 0 0 10px rgba(255, 118, 179, 0);
  }
  100% {
    box-shadow:
      0 0 0 0 rgba(255, 118, 179, 0);
  }
}

@media screen and (max-width: 420px) {
  .kla-card {
    padding: 16px 12px 12px;
    border-radius: 20px;
  }

  .kla-header {
    align-items: flex-start;
  }

  .kla-avatar {
    width: 72px;
    height: 72px;
  }

  .kla-name {
    font-size: 1.4rem;
  }

  .kla-link {
    grid-template-columns: auto 1fr auto;
    padding: 9px 10px;
    min-height: 80px;
  }

  .kla-link-desc {
    font-size: 0.82rem;
  }

  .kla-footer {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
}


.kla-links-wrap {
  position: relative;
}

.kla-links-view {
  display: none;
}

.kla-links-view.is-active {
  display: block;
}

.kla-back-btn {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(10,10,16,0.55);
  color: var(--kla-text-main);
  border-radius: 14px;
  padding: 10px 12px;
  margin: 0 0 10px 0;
  text-align: left;
  cursor: pointer;
}

.kla-link-category {
  appearance: none;
  border: 1px solid var(--kla-border-subtle);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.kla-links-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin: 2px 0 10px;
}

.kla-crumb{
  font-size: 0.85rem;
  color: rgba(208, 204, 255, 0.82);
  opacity: 0.9;
}

  .kla-cat-children{
  display: contents;
}

.kla-cat-children.is-collapsed{
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}

.kla-hidden-overflow{
  display: none !important;
}

.kla-cat-children.is-hidden{
  display: none !important;
}

.kla-limit-hidden{
  display:none !important;
}

.kla-link.is-collapsed{
  display:none !important;
}

.kla-link[data-child-of]{
  transform-origin: top;
  transition: opacity 220ms ease, transform 220ms ease;
}

.kla-link[data-child-of].is-collapsed{
  display: none !important;
}

.kla-link[data-child-of].is-opening{
  opacity: 0;
  transform: translateY(-6px) scale(0.99);
}

.kla-link[data-child-of].is-open{
  opacity: 1;
  transform: none;
}

.kla-link[data-toggle-category] .kla-link-arrow{
  opacity: 0.8;
  transform: translateX(0);
  transition: transform 180ms ease, opacity 180ms ease;
}

.kla-link[data-toggle-category][aria-expanded="true"] .kla-link-arrow{
  transform: rotate(90deg);
  opacity: 1;
}

button.kla-link{
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: inherit;
  text-align: inherit;
  line-height: inherit;

  cursor: pointer;
}

button.kla-link::-moz-focus-inner{
  border: 0;
  padding: 0;
}

button.kla-link:focus,
button.kla-link:focus-visible,
button.kla-link:active {
  outline: none;
  box-shadow: inherit;
}

/*
button.kla-link:focus{ outline: none; }
button.kla-link:focus-visible{
  outline: 2px solid rgba(148, 62, 197, 0.6);
  outline-offset: 2px;
  border-radius: 16px;
} */

.kla-slot { display: contents; }

.kla-slot.kla-slot-swapping .kla-link {
  opacity: 0.001;
  transform: translateY(4px);
}

.kla-slot .kla-link {
  transition: opacity 160ms ease, transform 160ms ease;
}

.kla-lang-toggle{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 26px;
  height: 26px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 13px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(10,10,16,0.45);
  text-decoration: none;

  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.kla-lang-toggle:hover{
  /* transform: translateY(-1px); */
  border-color: rgba(148, 62, 197, 0.7);
  background: rgba(10,10,16,0.65);
}

.kla-lang-toggle:active{
  transform: translateY(0);
}

.kla-lang-flag{
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 6px;
}