:root {
  --bg-page: #F3F5EE;
  --card-bg: rgba(255, 255, 255, 0.94);
  --card-bg-hover: #FFFFFF;
  --card-border: #DFE5D3;
  --card-border-hover: #5F7449;

  --text-primary: #212B1B;
  --text-secondary: #5F6B58;
  --text-muted: #8E9987;

  --accent-primary: #5F7449;
  --accent-soft: #EDF3E6;
  --accent-hover: #4B5C39;
  --accent-glow: rgba(95, 116, 73, 0.24);

  --live-color: #D94834;
  --live-soft: rgba(217, 72, 52, 0.12);

  --radius-card: 22px;
  --radius-btn: 16px;
  --radius-pill: 9999px;
  --shadow-soft: 0 10px 30px -4px rgba(33, 43, 27, 0.05), 0 2px 8px -2px rgba(33, 43, 27, 0.03);
  --shadow-hover: 0 18px 36px -6px rgba(95, 116, 73, 0.14), 0 4px 12px -2px rgba(33, 43, 27, 0.04);
}

[data-theme="dark"] {
  --bg-page: #121710;
  --card-bg: rgba(25, 33, 23, 0.88);
  --card-bg-hover: rgba(32, 42, 29, 0.96);
  --card-border: #263323;
  --card-border-hover: #7E9D64;

  --text-primary: #F0F5EC;
  --text-secondary: #A6B89C;
  --text-muted: #6E7D66;

  --accent-primary: #7E9D64;
  --accent-soft: rgba(126, 157, 100, 0.18);
  --accent-hover: #95B77B;
  --accent-glow: rgba(126, 157, 100, 0.28);

  --live-color: #FF5A43;
  --live-soft: rgba(255, 90, 67, 0.18);

  --shadow-soft: 0 10px 30px -4px rgba(0, 0, 0, 0.45), 0 2px 8px -2px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 18px 36px -6px rgba(126, 157, 100, 0.24), 0 4px 12px -2px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

html, body {
  cursor: default;
}

a, button, [role="button"], a *, button * {
  cursor: pointer;
}

img {
  -webkit-user-drag: none;
  user-drag: none;
}

html {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.35s ease;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 1.5rem 1rem 3rem;
  position: relative;
  overflow-x: hidden;
}

.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  transition: background 0.4s ease;
}

.glow-top {
  top: -150px;
  right: -100px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
}

.glow-bottom {
  bottom: -150px;
  left: -120px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(95, 116, 73, 0.15) 0%, transparent 70%);
}

[data-theme="dark"] .glow-top {
  background: radial-gradient(circle, rgba(126, 157, 100, 0.16) 0%, transparent 70%);
}

[data-theme="dark"] .glow-bottom {
  background: radial-gradient(circle, rgba(95, 116, 73, 0.12) 0%, transparent 70%);
}

.page-container {
  width: 100%;
  max-width: 540px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0.25rem 0.5rem;
}

.action-btn {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: all 0.22s ease-out;
}

.action-btn:hover {
  transform: translateY(-2px);
  border-color: var(--card-border-hover);
  color: var(--accent-primary);
  box-shadow: var(--shadow-hover);
}

.action-btn:active {
  transform: scale(0.95);
}

.icon-svg {
  width: 18px;
  height: 18px;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-sun {
  display: none !important;
}

.icon-moon {
  display: inline-flex !important;
}

[data-theme="dark"] .icon-sun {
  display: inline-flex !important;
}

[data-theme="dark"] .icon-moon {
  display: none !important;
}

.profile-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.5rem 0.5rem 0;
}

.avatar-wrapper {
  position: relative;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 3px solid var(--card-border);
  box-shadow: 0 8px 24px -2px rgba(33, 43, 27, 0.1), 0 0 0 4px var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
}

.profile-avatar {
  width: 88%;
  height: 88%;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 4px 10px rgba(33, 43, 27, 0.08));
  display: block;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.avatar-wrapper:hover .profile-avatar {
  transform: scale(1.05) rotate(1deg);
}

.avatar-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  box-shadow: var(--shadow-soft);
  z-index: 2;
}

.profile-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.profile-handle {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}

.profile-bio {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 440px;
  margin-bottom: 0.5rem;
}

.links-stack {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  margin-top: 0.5rem;
}

.link-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: all 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
  min-height: 72px;
}

.link-card:hover {
  transform: translateY(-3px) scale(1.008);
  border-color: var(--card-border-hover);
  box-shadow: var(--shadow-hover);
  background: var(--card-bg-hover);
}

.link-card:active {
  transform: translateY(-1px) scale(0.995);
}

.link-card:focus-visible,
.action-btn:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
}

.card-icon-container {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.24s ease;
}

.link-card:hover .card-icon-container {
  transform: scale(1.08) rotate(-2deg);
}

.card-svg {
  width: 24px;
  height: 24px;
  font-size: 24px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.twitch-badge {
  background: #F3ECFF;
  color: #9146FF;
}

.tiktok-badge {
  background: #FFF1F3;
  color: #FE2C55;
}

.twitter-badge {
  background: #E8F5FE;
  color: #1DA1F2;
}

.discord-badge {
  background: #EEF0FF;
  color: #5865F2;
}

.support-badge {
  background: #EDF3E6;
  color: #5F7449;
}

.oddball-badge,
.carrd-badge {
  background: #FFF3E5;
  color: #EA580C;
}

[data-theme="dark"] .support-badge {
  background: rgba(126, 157, 100, 0.18);
  color: #9EC084;
}

[data-theme="dark"] .oddball-badge,
[data-theme="dark"] .carrd-badge {
  background: rgba(234, 88, 12, 0.18);
  color: #FB923C;
}

[data-theme="dark"] .twitter-badge {
  background: rgba(29, 161, 242, 0.15);
  color: #4DB5F9;
}

[data-theme="dark"] .twitch-badge {
  background: rgba(145, 70, 255, 0.18);
  color: #B282FF;
}

[data-theme="dark"] .tiktok-badge {
  background: rgba(254, 44, 85, 0.18);
  color: #FF5A79;
}

[data-theme="dark"] .discord-badge {
  background: rgba(88, 101, 242, 0.18);
  color: #7D88F5;
}

.card-content {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}

.card-header-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.card-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-arrow {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.22s ease, color 0.22s ease;
}

.card-arrow svg {
  width: 18px;
  height: 18px;
}

.link-card:hover .card-arrow {
  color: var(--accent-primary);
  transform: translateX(4px);
}

.page-footer {
  text-align: center;
  padding: 1rem 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-note {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.footer-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.footer-sub a {
  color: var(--accent-primary);
  text-decoration: none;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--card-bg);
  color: var(--text-primary);
  border: 1px solid var(--card-border);
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 14px 34px -4px rgba(33, 43, 27, 0.16), 0 4px 12px -2px rgba(33, 43, 27, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.18, 0.89, 0.32, 1.28), opacity 0.35s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  z-index: 999;
}

[data-theme="dark"] .toast {
  box-shadow: 0 14px 34px -4px rgba(0, 0, 0, 0.6), 0 4px 12px -2px rgba(0, 0, 0, 0.35);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-icon {
  font-size: 1.1rem;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 400px) {
  body {
    padding: 1rem 0.75rem 2.5rem;
  }

  .link-card {
    padding: 0.9rem 1rem;
    gap: 0.75rem;
  }

  .card-icon-container {
    width: 42px;
    height: 42px;
  }

  .card-svg {
    width: 20px;
    height: 20px;
  }

  .card-title {
    font-size: 0.98rem;
  }
}
