:root {
  --ink: #0b0b10;
  --glow-pink: #ff4fd8;
  --glow-cyan: #4cf5ff;
  --glow-lime: #c8ff59;
  --glass: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background-color: var(--ink);
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 9999px;
  background: rgba(15, 15, 28, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transform: translateY(-140%);
  transition: transform 0.2s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.nav-button:focus-visible,
.filter-button:focus-visible,
.contact-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(76, 245, 255, 0.2);
}

::placeholder {
  color: rgba(226, 232, 240, 0.7);
}

.icon {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.125em;
}

canvas {
  pointer-events: none;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.page-exit {
  opacity: 0;
  transition: opacity 0.28s ease;
}

.ripple {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  animation: ripple 0.65s ease forwards;
  pointer-events: none;
}

@keyframes ripple {
  from {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(24);
  }
}

.is-hidden {
  display: none !important;
}

.terminal-mode {
  filter: hue-rotate(120deg) saturate(1.2);
}

.konami {
  animation: konamiFlash 1.8s ease;
}

@keyframes konamiFlash {
  0% {
    filter: saturate(1) contrast(1);
  }
  50% {
    filter: saturate(1.4) contrast(1.1);
  }
  100% {
    filter: saturate(1) contrast(1);
  }
}

.project-link.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.project-image {
  display: block;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: contain !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(76, 245, 255, 0.08));
  padding: 10px;
}

.nav-button {
  position: relative;
  overflow: hidden;
}

.nav-button.secondary {
  border-color: rgba(255, 255, 255, 0.45);
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.14);
}

.nav-button.secondary:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.2);
}

.contact-link {
  color: #f8fafc;
}

.contact-shell {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(15, 16, 28, 0.78), rgba(10, 11, 20, 0.68));
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.contact-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 16% 18%, rgba(76, 245, 255, 0.09), transparent 44%),
    radial-gradient(circle at 82% 80%, rgba(255, 79, 216, 0.07), transparent 48%);
}

.contact-head,
.contact-grid {
  position: relative;
  z-index: 1;
}

.contact-head {
  margin-bottom: 0.4rem;
}

.contact-head p {
  max-width: 62ch;
  color: rgba(248, 250, 252, 0.84);
}

.services p,
.about p,
.availability-section p,
.contact p {
  color: rgba(248, 250, 252, 0.82);
}

.contact-grid {
  align-items: start;
  gap: 1.7rem;
}

.contact-column {
  align-content: start;
  gap: 1.5rem;
}

.contact-panel {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 1rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 14px 26px rgba(0, 0, 0, 0.24);
  padding: 1.5rem;
}

.contact-kicker {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.7);
  margin-bottom: 0.7rem;
}

.contact-link {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.115), rgba(255, 255, 255, 0.045));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 8px 20px rgba(0, 0, 0, 0.22);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  padding: 0.9rem 1rem;
}

.contact-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.32);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 12px 24px rgba(0, 0, 0, 0.28);
}

.contact-brief {
  background: linear-gradient(145deg, rgba(8, 12, 29, 0.86), rgba(9, 10, 18, 0.72));
  border-color: rgba(76, 245, 255, 0.16);
}

.contact-presence {
  background: linear-gradient(145deg, rgba(18, 19, 34, 0.84), rgba(12, 13, 24, 0.66));
  max-width: 430px;
  margin-inline: auto;
  padding: 1rem;
}

.contact-presence .contact-kicker {
  text-align: center;
  margin-bottom: 0.35rem;
  letter-spacing: 0.18em;
}

.contact-presence .discord-status-frame {
  margin-top: 0.6rem;
}

.contact-faq {
  background: linear-gradient(145deg, rgba(16, 18, 31, 0.82), rgba(12, 14, 24, 0.62));
}

.discord-status-frame {
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
  padding: 0.55rem;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
}

.discord-status-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  background: #0b0b10;
}

.field-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.7);
  margin-bottom: 6px;
}

.filter-button.active {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
}

.skill-card {
  position: relative;
}

.skill-card::after,
.skill-card::before {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.skill-card::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(6px);
  padding: 6px 10px;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(15, 15, 28, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f8fafc;
  white-space: nowrap;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  z-index: 10;
}

.skill-card::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translateX(-50%) translateY(6px);
  border-width: 6px 6px 0 6px;
  border-style: solid;
  border-color: rgba(15, 15, 28, 0.9) transparent transparent transparent;
}

.skill-card:hover::after,
.skill-card:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.skill-card:focus-visible::after,
.skill-card:focus-visible::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.logo-tooltip {
  position: relative;
  display: inline-flex;
}

.logo-tooltip::after,
.logo-tooltip::before {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.logo-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(6px);
  padding: 6px 10px;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(15, 15, 28, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f8fafc;
  white-space: nowrap;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  z-index: 10;
}

.logo-tooltip::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 2px);
  transform: translateX(-50%) translateY(6px);
  border-width: 6px 6px 0 6px;
  border-style: solid;
  border-color: rgba(15, 15, 28, 0.9) transparent transparent transparent;
}

.logo-tooltip:hover::after,
.logo-tooltip:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.logo-tooltip:focus-visible::after,
.logo-tooltip:focus-visible::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.project-link.disabled .project-card {
  filter: saturate(0.82);
}

.project-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 79, 216, 0.18);
}

.project-state::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: #ff4fd8;
  box-shadow: 0 0 10px rgba(255, 79, 216, 0.5);
}

#brief-form input,
#brief-form textarea,
#brief-form select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.06));
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#brief-form {
  gap: 1.1rem;
}

#brief-form input:focus,
#brief-form textarea:focus,
#brief-form select:focus {
  border-color: rgba(76, 245, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(76, 245, 255, 0.18);
  outline: none;
}

#brief-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(226, 232, 240, 0.85) 50%),
    linear-gradient(135deg, rgba(226, 232, 240, 0.85) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

#brief-form select option,
#brief-form select optgroup {
  color: #0b0b10;
  background: #f8fafc;
}

#brief-message {
  resize: vertical;
  min-height: 102px;
}

#brief-status {
  min-height: 1.1rem;
}

.brief-honeypot {
  position: absolute;
  left: -10000px;
  opacity: 0;
  pointer-events: none;
}

.collabs-toggle {
  min-width: 170px;
}

.performance-lite canvas {
  display: none !important;
}

.performance-lite [data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}

.badge,
.stack-tag,
.role {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

.comment-item {
  position: relative;
  background: linear-gradient(135deg, rgba(20, 20, 36, 0.9), rgba(10, 10, 20, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  animation: fadeUp 0.45s ease both;
  overflow: hidden;
}

.comment-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.comment-item:hover::after {
  opacity: 1;
}

.collab-card {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.collab-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline[data-reveal] .timeline-item {
  opacity: 0;
  transform: translateY(18px) scale(0.98);
}

.timeline.is-revealed .timeline-item {
  animation: timelinePop 0.6s ease forwards;
}

.timeline.is-revealed .timeline-item:nth-child(1) {
  animation-delay: 0.05s;
}

.timeline.is-revealed .timeline-item:nth-child(2) {
  animation-delay: 0.15s;
}

.timeline.is-revealed .timeline-item:nth-child(3) {
  animation-delay: 0.25s;
}

.timeline.is-revealed .timeline-item:nth-child(4) {
  animation-delay: 0.35s;
}

@keyframes timelinePop {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.comment-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #c7d2fe;
  font-size: 0.78rem;
  margin-bottom: 8px;
}

.comment-time {
  margin-left: auto;
  font-size: 0.72rem;
  color: #94a3b8;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #0b0b10;
  background: linear-gradient(140deg, rgba(200, 255, 89, 0.9), rgba(76, 245, 255, 0.9));
  box-shadow: 0 12px 24px rgba(76, 245, 255, 0.22);
}

.comment-item p {
  color: #e2e8f0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.comments-section {
  position: relative;
  overflow: hidden;
}

.comments-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(76, 245, 255, 0.12), transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(255, 79, 216, 0.12), transparent 45%);
  opacity: 0.7;
  pointer-events: none;
}

.comment-form {
  background: linear-gradient(135deg, rgba(12, 12, 22, 0.7), rgba(8, 8, 16, 0.55));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  display: grid;
  gap: 16px;
}

.comment-form-grid {
  display: grid;
  gap: 16px;
}

.comment-field {
  display: grid;
  gap: 8px;
}

.comment-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.comment-actions .comment-submit {
  flex: 1 1 200px;
}

.comment-actions .comment-count {
  margin-left: auto;
}

.comment-tools {
  position: relative;
  z-index: 1;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(12, 12, 22, 0.6), rgba(8, 8, 16, 0.35));
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.comment-sort select {
  appearance: none;
  color: #e2e8f0;
  font-size: 0.7rem;
  background-color: rgba(255, 255, 255, 0.08);
  background-image:
    radial-gradient(circle at 12% 50%, rgba(76, 245, 255, 0.25), transparent 55%),
    linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.7) 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.7) 50%, transparent 50%);
  background-position:
    12px 50%,
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 13px) calc(50% - 2px);
  background-size: 18px 18px, 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding: 10px 36px 10px 42px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-sort {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.comment-sort .sort-icon {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  color: rgba(226, 232, 240, 0.8);
  pointer-events: none;
}

.comment-sort .sort-icon svg {
  width: 100%;
  height: 100%;
}

.comment-sort select:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3);
}

.comment-sort select:focus {
  outline: none;
  border-color: rgba(76, 245, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(76, 245, 255, 0.2);
}

.comment-sort select option {
  background-color: #0b0b10;
  color: #e2e8f0;
}

.comment-preview {
  position: relative;
  z-index: 1;
}

.comment-preview-title {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.7);
  margin-bottom: 8px;
}

.comment-preview-card {
  background: linear-gradient(135deg, rgba(12, 12, 22, 0.7), rgba(8, 8, 16, 0.55));
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 16px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(76, 245, 255, 0.15);
}

.comment-form button {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.comment-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
  border-color: rgba(255, 255, 255, 0.3);
}

.comment-form .emoji-toggle {
  background: linear-gradient(120deg, rgba(76, 245, 255, 0.2), rgba(255, 255, 255, 0.05));
  color: #e2e8f0;
  border-color: rgba(76, 245, 255, 0.35);
  box-shadow: 0 10px 20px rgba(76, 245, 255, 0.2);
}

.comment-form .emoji-toggle:hover {
  border-color: rgba(76, 245, 255, 0.6);
  box-shadow: 0 12px 28px rgba(76, 245, 255, 0.25);
}

.comment-form .comment-submit {
  background: linear-gradient(120deg, rgba(255, 79, 216, 0.95), rgba(76, 245, 255, 0.9));
  color: #0b0b10;
  border: none;
  box-shadow: 0 14px 30px rgba(255, 79, 216, 0.25);
}

.comment-form .comment-submit:hover {
  box-shadow: 0 16px 34px rgba(255, 79, 216, 0.35);
}

.comment-form .comment-submit.is-loading {
  opacity: 0.75;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.comment-form .comment-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.emoji-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(140deg, rgba(10, 10, 20, 0.9), rgba(12, 12, 22, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  overflow: hidden;
  pointer-events: none;
  transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.25s ease;
}

@media (min-width: 768px) {
  .comment-form-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    align-items: start;
  }

  .comment-field-message {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

.emoji-panel.is-open {
  max-height: 360px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 640px) {
  nav {
    gap: 10px;
  }

  .site-nav {
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
  }

  .page-header {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .page-hero {
    padding: 1.25rem;
  }

  nav > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .nav-button {
    padding: 8px 12px;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    justify-content: center;
    width: 100%;
  }

  .lang-button {
    padding: 8px 10px;
  }

  .icon {
    width: 1em;
    height: 1em;
  }

  .project-image {
    padding: 6px;
  }

  .filter-button {
    font-size: 0.65rem;
    padding: 6px 10px;
    letter-spacing: 0.18em;
  }

  .badge,
  .stack-tag,
  .role {
    font-size: 0.65rem;
    padding: 4px 10px;
  }

  .comment-form {
    padding: 12px;
  }

  .comment-form button {
    width: 100%;
  }

  .comment-form .nav-button {
    justify-content: center;
  }

  .comment-actions {
    align-items: stretch;
  }

  .comment-actions .comment-count {
    margin-left: 0;
  }

  .comment-tools {
    padding: 8px 10px;
  }

  .comment-sort select {
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    padding: 8px 28px 8px 34px;
    background-size: 14px 14px, 4px 4px, 4px 4px;
    background-position:
      10px 50%,
      calc(100% - 16px) calc(50% - 2px),
      calc(100% - 11px) calc(50% - 2px);
  }

  .comment-sort .sort-icon {
    left: 10px;
    width: 14px;
    height: 14px;
  }

  .contact-link span {
    word-break: break-word;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .faq-payment-icons {
    margin-left: 0;
  }

  .discord-status-frame {
    max-width: 100%;
    padding: 12px;
  }

  .contact-shell {
    padding: 1.15rem;
  }

  .page-header .absolute {
    display: none;
  }

  .contact-shell::before {
    opacity: 0.6;
  }

  .contact-panel {
    padding: 1.1rem;
  }

  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline-icon img {
    width: 40px;
    height: 40px;
  }

  .collabs-slider {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .collabs-track {
    scroll-snap-type: x mandatory;
  }

  .collab-card {
    min-width: 200px;
    scroll-snap-align: start;
  }

  .collabs-toggle {
    width: 100%;
  }

  .font-display.text-4xl {
    font-size: 2.1rem;
    line-height: 2.4rem;
  }

  .font-display.text-2xl {
    font-size: 1.35rem;
    line-height: 1.75rem;
  }

  .text-lg {
    font-size: 1rem;
  }

  .text-base {
    font-size: 0.95rem;
  }

  .project-card h3 {
    font-size: 1rem;
  }

  .project-card p {
    font-size: 0.82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ripple,
  .collab-card,
  .timeline-item,
  [data-reveal] {
    animation: none !important;
    transition: none !important;
  }
}

.emoji-search {
  padding-bottom: 6px;
}

.emoji-search input {
  width: 100%;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  padding: 8px 14px;
  font-size: 0.85rem;
}

.emoji-search input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(76, 245, 255, 0.15);
}

.emoji-categories {
  display: flex;
  gap: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.emoji-categories::-webkit-scrollbar {
  height: 6px;
}

.emoji-categories::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
}

.emoji-tab {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  font-size: 16px;
  line-height: 1;
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.emoji-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
}

.emoji-tab.is-active {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.18);
}

.emoji-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #cbd5f5;
  font-size: 0.8rem;
  padding: 2px 2px 6px;
}

.emoji-section {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
}

.emoji-clear {
  border: none;
  background: transparent;
  color: #7dd3fc;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 4px 6px;
}

.emoji-clear:hover {
  color: #bae6fd;
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
  gap: 8px;
  max-height: none;
  overflow-y: auto;
  padding-right: 4px;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

.emoji-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  font-size: 18px;
  line-height: 1;
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.emoji-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
}

.comment-form button:active {
  transform: translateY(0);
}

.comment-meta {
  display: flex;
  justify-content: flex-end;
}

.comment-count {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 12px;
  border-radius: 9999px;
}

.comment-count.is-warn {
  color: #facc15;
  border-color: rgba(250, 204, 21, 0.35);
  background: rgba(250, 204, 21, 0.08);
}

.comment-count.is-danger {
  color: #fb7185;
  border-color: rgba(251, 113, 133, 0.4);
  background: rgba(251, 113, 133, 0.1);
}

.availability-section {
  position: relative;
  z-index: 1;
}

.availability-card {
  background: linear-gradient(135deg, rgba(12, 12, 22, 0.75), rgba(8, 8, 16, 0.55));
}

.availability-status {
  position: relative;
}

.availability-pill {
  background: linear-gradient(120deg, rgba(76, 245, 255, 0.15), rgba(200, 255, 89, 0.12));
}

.availability-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: radial-gradient(circle, #c8ff59 0%, #7bff8a 45%, rgba(0, 0, 0, 0.15) 75%);
  box-shadow: 0 0 12px rgba(200, 255, 89, 0.7), 0 0 18px rgba(76, 245, 255, 0.35);
  animation: pulseStatus 1.8s ease-in-out infinite;
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  column-gap: 20px;
  row-gap: 16px;
  align-items: start;
  color: rgba(255, 255, 255, 0.82);
}

.faq-label {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.faq-value {
  min-width: 0;
}

.faq-value-payment {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.faq-payment-icons {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.faq-payment-icons img {
  width: 52px;
  height: 52px;
  opacity: 0.95;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.4));
}

.cta-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 9999px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #0b0b10;
  background: linear-gradient(120deg, rgba(255, 79, 216, 0.95), rgba(76, 245, 255, 0.9));
  box-shadow: 0 16px 36px rgba(255, 79, 216, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.cta-float:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 22px 44px rgba(255, 79, 216, 0.45);
}

.cta-float:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 4px;
}

@media (max-width: 640px) {
  .cta-float {
    left: 16px;
    right: auto;
    bottom: 16px;
    padding: 10px 16px;
    font-size: 0.85rem;
  }
}

.comment-submit.is-loading,
.comment-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  box-shadow: none;
  filter: saturate(0.85);
}

.contact p {
  color: rgba(255, 255, 255, 0.82);
}

.admin-badge {
  position: relative;
  padding: 6px 14px;
  background: linear-gradient(120deg, rgba(76, 245, 255, 0.15), rgba(200, 255, 89, 0.12));
  border-color: rgba(200, 255, 89, 0.35);
  color: #eaffc3;
  box-shadow: 0 12px 26px rgba(76, 245, 255, 0.18);
  text-transform: uppercase;
}

.admin-badge.is-offline {
  background: linear-gradient(120deg, rgba(148, 163, 184, 0.2), rgba(15, 23, 42, 0.25));
  border-color: rgba(148, 163, 184, 0.4);
  color: #e2e8f0;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.35);
}

.admin-badge.is-idle {
  background: linear-gradient(120deg, rgba(251, 191, 36, 0.2), rgba(120, 53, 15, 0.2));
  border-color: rgba(251, 191, 36, 0.45);
  color: #fde68a;
  box-shadow: 0 12px 26px rgba(251, 191, 36, 0.25);
}

.admin-badge.is-dnd {
  background: linear-gradient(120deg, rgba(248, 113, 113, 0.24), rgba(127, 29, 29, 0.22));
  border-color: rgba(248, 113, 113, 0.5);
  color: #fecaca;
  box-shadow: 0 12px 26px rgba(248, 113, 113, 0.25);
}

.admin-badge.is-unavailable {
  background: linear-gradient(120deg, rgba(100, 116, 139, 0.25), rgba(30, 41, 59, 0.25));
  border-color: rgba(148, 163, 184, 0.4);
  color: #e2e8f0;
  box-shadow: 0 12px 26px rgba(30, 41, 59, 0.35);
}

.admin-badge::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.admin-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: radial-gradient(circle, #c8ff59 0%, #7bff8a 40%, rgba(0, 0, 0, 0.15) 75%);
  box-shadow: 0 0 10px rgba(200, 255, 89, 0.75), 0 0 18px rgba(76, 245, 255, 0.35);
  animation: pulseStatus 1.8s ease-in-out infinite;
}

.admin-badge.is-offline .admin-dot {
  background: radial-gradient(circle, #94a3b8 0%, #64748b 40%, rgba(0, 0, 0, 0.2) 75%);
  box-shadow: 0 0 8px rgba(148, 163, 184, 0.5);
  animation: none;
}

.admin-badge.is-idle .admin-dot {
  background: radial-gradient(circle, #fbbf24 0%, #f59e0b 42%, rgba(0, 0, 0, 0.2) 78%);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.7), 0 0 16px rgba(245, 158, 11, 0.35);
}

.admin-badge.is-dnd .admin-dot {
  background: radial-gradient(circle, #f87171 0%, #ef4444 42%, rgba(0, 0, 0, 0.2) 78%);
  box-shadow: 0 0 10px rgba(248, 113, 113, 0.7), 0 0 16px rgba(239, 68, 68, 0.35);
}

.admin-badge.is-unavailable .admin-dot {
  background: radial-gradient(circle, #cbd5e1 0%, #94a3b8 42%, rgba(0, 0, 0, 0.2) 78%);
  box-shadow: 0 0 8px rgba(148, 163, 184, 0.45);
  animation: none;
}

.admin-text {
  letter-spacing: 0.24em;
}

.admin-text-offline {
  display: none;
}

.admin-text-idle,
.admin-text-dnd,
.admin-text-unavailable {
  display: none;
}

.admin-badge.is-offline .admin-text-offline {
  display: inline;
}

.admin-badge.is-offline .admin-text-online {
  display: none;
}

.admin-badge.is-idle .admin-text-idle {
  display: inline;
}

.admin-badge.is-idle .admin-text-online,
.admin-badge.is-idle .admin-text-offline,
.admin-badge.is-idle .admin-text-dnd,
.admin-badge.is-idle .admin-text-unavailable {
  display: none;
}

.admin-badge.is-dnd .admin-text-dnd {
  display: inline;
}

.admin-badge.is-dnd .admin-text-online,
.admin-badge.is-dnd .admin-text-offline,
.admin-badge.is-dnd .admin-text-idle,
.admin-badge.is-dnd .admin-text-unavailable {
  display: none;
}

.admin-badge.is-unavailable .admin-text-unavailable {
  display: inline;
}

.admin-badge.is-unavailable .admin-text-online,
.admin-badge.is-unavailable .admin-text-offline,
.admin-badge.is-unavailable .admin-text-idle,
.admin-badge.is-unavailable .admin-text-dnd {
  display: none;
}

@keyframes pulseStatus {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.25);
    opacity: 0.8;
  }
}

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: grid;
  gap: 10px;
  z-index: 60;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 12, 22, 0.92);
  color: #e2e8f0;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
  animation: toastSlide 0.25s ease;
}

.toast.success {
  border-color: rgba(200, 255, 89, 0.45);
  color: #eaffc3;
}

.toast.error {
  border-color: rgba(251, 113, 133, 0.5);
  color: #fecdd3;
}

@keyframes toastSlide {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.comment-separator {
  opacity: 0.6;
}

.creator-btn,
.delete-btn {
  margin-top: 10px;
  margin-right: 8px;
  border-radius: 9999px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

.creator-btn:hover,
.delete-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 7, 16, 0.7);
  backdrop-filter: blur(6px);
  z-index: 50;
}

.hidden {
  display: none;
}

.modal-content {
  width: min(92vw, 420px);
  background: rgba(16, 16, 28, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.modal-buttons {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.modal-buttons .secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
