:root {
  color-scheme: dark;
  --bg: #05080d;
  --panel: rgba(9, 14, 21, 0.9);
  --panel-hover: #0d151f;
  --line: #1b2936;
  --line-strong: #304152;
  --ink: #f2f6fa;
  --muted: #8c9aa9;
  --lime: #c9f227;
  --cyan: #58aef7;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -15%, rgba(88, 174, 247, 0.13), transparent 36rem),
    linear-gradient(rgba(201, 242, 39, 0.027) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 242, 39, 0.027) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 32px 32px, 32px 32px, auto;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::before,
body::after {
  position: fixed;
  width: 19rem;
  height: 19rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.12;
  pointer-events: none;
  content: "";
}

body::before {
  top: 15%;
  left: -10rem;
  background: var(--lime);
}

body::after {
  right: -10rem;
  bottom: 8%;
  background: var(--cyan);
}

.links-page {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: max(32px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}

.profile {
  width: min(100%, 570px);
  text-align: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(72vw, 230px);
  min-height: 58px;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: var(--muted);
  font: 700 10px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.18em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--lime);
  box-shadow: 0 0 14px rgba(201, 242, 39, 0.85);
}

h1 {
  margin: 20px 0 0;
  font-size: clamp(34px, 8.5vw, 52px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

h1 span {
  color: var(--lime);
}

.intro {
  max-width: 460px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.link-list {
  display: grid;
  gap: 13px;
  margin-top: 36px;
}

.link-card {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 28px;
  gap: 15px;
  align-items: center;
  min-height: 94px;
  padding: 17px 18px;
  overflow: hidden;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.22);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.link-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--cyan);
  opacity: 0.9;
  content: "";
}

.link-card-primary::before {
  background: var(--lime);
}

.link-card:hover {
  z-index: 1;
  background: var(--panel-hover);
  border-color: var(--line-strong);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.34);
  transform: translateY(-3px);
}

.link-card-primary:hover {
  border-color: rgba(201, 242, 39, 0.55);
}

.link-card:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}

.link-icon {
  display: grid;
  width: 54px;
  height: 54px;
  justify-self: center;
  place-items: center;
  border: 1px solid rgba(201, 242, 39, 0.2);
  border-radius: 12px;
  background: rgba(201, 242, 39, 0.055);
}

.link-icon img {
  display: block;
  width: 34px;
  height: 34px;
}

.link-icon-tks {
  width: 76px;
  color: #72d9ff;
  background: rgba(88, 174, 247, 0.07);
  border-color: rgba(88, 174, 247, 0.22);
}

.link-icon-tks img {
  width: 68px;
  height: auto;
}

.link-copy {
  min-width: 0;
}

.link-copy strong,
.link-copy small {
  display: block;
}

.link-copy strong {
  font-size: 17px;
  line-height: 1.25;
}

.link-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.link-arrow {
  color: var(--muted);
  font: 400 22px/1 system-ui, sans-serif;
  transition: color 180ms ease, transform 180ms ease;
}

.link-card:hover .link-arrow {
  color: var(--lime);
  transform: translate(2px, -2px);
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin-top: 32px;
  color: #566575;
  font: 700 9px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.16em;
}

.footer-separator {
  width: 3px;
  height: 3px;
  background: var(--lime);
  box-shadow: 0 0 8px rgba(201, 242, 39, 0.7);
}

@media (max-width: 480px) {
  .links-page {
    align-items: start;
    padding-top: max(40px, env(safe-area-inset-top));
  }

  .status {
    margin-top: 19px;
  }

  h1 {
    margin-top: 17px;
  }

  .intro {
    margin-top: 18px;
    font-size: 14px;
  }

  .link-list {
    margin-top: 29px;
  }

  .link-card {
    grid-template-columns: 62px minmax(0, 1fr) 22px;
    gap: 12px;
    min-height: 88px;
    padding: 15px 14px;
  }

  .link-icon {
    width: 48px;
    height: 48px;
  }

  .link-icon-tks {
    width: 62px;
  }

  .link-icon-tks img {
    width: 56px;
  }

  .link-copy strong {
    font-size: 16px;
  }

  .link-copy small {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .link-card,
  .link-arrow {
    transition: none;
  }
}
