﻿:root {
  --bg: #f2f1ee;
  --text: #16150f;
  --muted: #77716a;
  --border: rgba(255, 255, 255, 0.65);
  --glass: rgba(255, 255, 255, 0.42);
  --glass-shadow: 0 8px 32px rgba(22, 21, 15, 0.08);
  --glass-inset: inset 0 1px 1px rgba(255, 255, 255, 0.75), inset 0 -1px 1px rgba(0, 0, 0, 0.05), inset 1px 0 1px rgba(255, 255, 255, 0.3), inset -1px 0 1px rgba(255, 255, 255, 0.12);
  --wash-1: rgba(176, 186, 205, 0.5);
  --wash-2: rgba(214, 203, 184, 0.55);
  --switch-track: rgba(120, 120, 128, 0.32);
  --accent: #c8a15f;
  --btn-bg: #16150f;
  --btn-fg: #faf9f7;
  --online: #23a55a;
  --idle: #e8a33d;
  --dnd: #df4444;
  --offline: #9ba0a6;
  --field: rgba(120, 120, 128, 0.12);
  --radius: 26px;
}

html[data-theme="dark"] {
  --bg: #0b0b0d;
  --text: #f3f3f5;
  --muted: #9b9aa2;
  --border: rgba(255, 255, 255, 0.09);
  --glass: rgba(28, 28, 32, 0.48);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --glass-inset: inset 0 1px 1px rgba(255, 255, 255, 0.14), inset 0 -1px 1px rgba(0, 0, 0, 0.3), inset 1px 0 1px rgba(255, 255, 255, 0.05), inset -1px 0 1px rgba(255, 255, 255, 0.02);
  --wash-1: rgba(64, 74, 96, 0.25);
  --wash-2: rgba(88, 76, 62, 0.22);
  --switch-track: rgba(120, 120, 128, 0.4);
  --accent: #d4b57a;
  --btn-bg: #f3f3f5;
  --btn-fg: #111113;
  --field: rgba(120, 120, 128, 0.16);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  transition: background 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  z-index: 120;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--bg);
  pointer-events: none;
}

.wash {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

.wash-1 {
  width: 56rem;
  height: 56rem;
  top: -14rem;
  left: -16rem;
  background: radial-gradient(circle, var(--wash-1), transparent 62%);
}

.wash-2 {
  width: 62rem;
  height: 62rem;
  bottom: -16rem;
  right: -18rem;
  background: radial-gradient(circle, var(--wash-2), transparent 62%);
}

.rain-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

.container {
  max-width: 34rem;
  margin-inline: auto;
  padding: 7rem 1.25rem 3rem;
  perspective: 1200px;
}

.layout {
  display: grid;
  gap: 1.25rem;
}

.col {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  justify-content: center;
  padding: 0.9rem 1rem 0;
  animation: drop-in 0.7s cubic-bezier(0.22, 1.2, 0.36, 1) both;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.topbar.done {
  animation: none;
}

.topbar.topbar-hidden {
  transform: translateY(-160%);
}

.topbar-glass {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  padding: 0.45rem 0.9rem 0.45rem 1.2rem;
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(28px) saturate(1.7);
  backdrop-filter: blur(28px) saturate(1.7);
  border: 1px solid var(--border);
  box-shadow: var(--glass-shadow), var(--glass-inset);
}

.brand {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

@keyframes drop-in {
  from {
    opacity: 0;
    transform: translateY(-3rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.ios-switch {
  position: relative;
  width: 51px;
  height: 31px;
  border-radius: 999px;
  border: 0;
  background: var(--switch-track);
  cursor: pointer;
  transition: background 0.3s ease;
  flex-shrink: 0;
}

.ios-switch[aria-checked="true"] {
  background: #34c759;
}

.sw-icon {
  position: absolute;
  top: 50%;
  width: 13px;
  height: 13px;
  transform: translateY(-50%) scale(0.3) rotate(-40deg);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.sw-sun {
  right: 6.5px;
  color: #f5b942;
}

.sw-moon {
  left: 6.5px;
  color: #dfe5f0;
}

.ios-switch:not([aria-checked="true"]) .sw-sun {
  opacity: 1;
  transform: translateY(-50%) scale(1) rotate(0deg);
}

.ios-switch[aria-checked="true"] .sw-moon {
  opacity: 1;
  transform: translateY(-50%) scale(1) rotate(0deg);
}

.knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15), 0 1px 1px rgba(0, 0, 0, 0.16);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ios-switch[aria-checked="true"] .knob {
  transform: translateX(20px);
}

.glass {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow), var(--glass-inset);
  overflow: hidden;
  transition: filter 0.35s ease, box-shadow 0.4s ease;
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  backdrop-filter: blur(22px) saturate(1.6);
}

.glass:hover {
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.16), var(--glass-inset);
}

.profile,
.snapdesk,
.cat-card {
  padding: 1.9rem 1.75rem;
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.3rem;
  padding-top: 2.75rem;
  padding-bottom: 2.5rem;
  margin-bottom: 1.25rem;
}

.profile-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.avatar-row {
  display: flex;
  align-items: flex-end;
  gap: 1.1rem;
  margin-bottom: 1.5rem;
}

.avatar-wrap {
  position: relative;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.avatar-wrap:hover .avatar {
  transform: scale(1.05);
}

.roblox-wrap {
  text-decoration: none;
}

.roblox-full {
  display: block;
  width: auto;
  height: 108px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.28));
  animation: idle-bob 3.4s ease-in-out infinite alternate;
}

@keyframes idle-bob {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-6px);
  }
}

.friend-pic {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 140;
  width: 210px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--field);
  border: 1px solid var(--border);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  cursor: zoom-in;
  opacity: 0;
  transform: scale(0.9) translateX(-10px);
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.friend-pic.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.friend-pic img {
  display: block;
  width: 100%;
  transition: opacity 0.2s ease;
}

.pic-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 17px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: transform 0.15s ease, background 0.2s ease;
}

.pic-arrow:hover {
  background: rgba(0, 0, 0, 0.65);
}

.pic-arrow:active {
  transform: scale(0.88);
}

.pic-prev {
  left: 6px;
  transform: translateY(-50%);
}

.pic-next {
  right: 6px;
  transform: translateY(-50%);
}

.pic-prev:hover {
  transform: translateY(-50%) scale(1.12);
}

.pic-next:hover {
  transform: translateY(-50%) scale(1.12);
}

.pic-count {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.friend-pic-bar {
  display: flex;
  gap: 0.4rem;
  padding: 0.5rem;
  background: var(--glass);
  border-top: 1px solid var(--border);
}

.pic-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.45rem 0.3rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--field);
  color: var(--text);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.2s ease;
}

.pic-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.pic-btn:active {
  transform: scale(0.93);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.82);
  cursor: zoom-out;
  animation: overlay-fade 0.25s ease both;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  animation: gb-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.avatar-tag {
  display: block;
  margin-top: 0.4rem;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.status-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--offline);
  border: 3px solid var(--bg);
  transition: background 0.3s ease;
}

.status-dot[data-status="online"] {
  background: var(--online);
}

.status-dot[data-status="online"]::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid var(--online);
  opacity: 0;
  animation: dot-pulse 2.4s ease-out infinite;
}

@keyframes dot-pulse {
  0% {
    transform: scale(0.55);
    opacity: 0.5;
  }
  70% {
    transform: scale(1.3);
    opacity: 0;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

.status-dot[data-status="idle"] {
  background: var(--idle);
}

.status-dot[data-status="do not disturb"] {
  background: var(--dnd);
}

h1 {
  font-size: clamp(1.8rem, 5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.handle {
  color: var(--muted);
  font-size: 0.98rem;
}

.meta {
  color: var(--muted);
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}

#local-time {
  color: var(--text);
  font-weight: 600;
}

.label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.sd-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.sd-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.sd-badge {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  margin-top: 0.15rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--field);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.sd-badge::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  animation: shimmer 2.8s ease-in-out infinite;
}

@keyframes shimmer {
  from {
    left: -60%;
  }
  to {
    left: 120%;
  }
}

.sd-desc {
  color: var(--muted);
  font-size: 0.95rem;
  margin: -0.4rem 0 1.2rem;
}

.sd-stage {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(120, 120, 128, 0.14);
  aspect-ratio: 1080 / 760;
  margin-bottom: 0.9rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.sd-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.4s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.sd-shot.active {
  opacity: 1;
  transform: none;
}

.sd-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

.sd-flash.go {
  animation: shutter 0.45s ease-out;
}

@keyframes shutter {
  0% {
    opacity: 0;
  }
  30% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
  }
}

.sd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
  min-height: 1.6rem;
}

.sd-dots {
  display: flex;
  gap: 0.45rem;
}

.sd-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(120, 120, 128, 0.35);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.sd-dot.active {
  background: var(--text);
  transform: scale(1.25);
}

.sd-feature {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: right;
  overflow: hidden;
  height: 1.5rem;
}

#sd-feature-text {
  display: inline-block;
}

#sd-feature-text.swap {
  animation: tick-up 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes tick-up {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

.sd-cta {
  width: 100%;
  text-decoration: none;
}

.cat-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(120, 120, 128, 0.14);
  margin-bottom: 1.1rem;
}

.cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.cat-head .label {
  margin-bottom: 0;
}

.btn-soft {
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--field);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s ease;
}

.btn-soft:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
}

.btn-soft:active {
  transform: scale(0.94);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
  margin-bottom: 1.1rem;
}

.cat-slot {
  position: relative;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(120, 120, 128, 0.12);
}

.cat-shimmer {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.cat-shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.09), transparent);
  animation: shimmer 1.6s ease-in-out infinite;
}

.cat-slot.loaded .cat-shimmer {
  display: none;
}

.cat-slot.loaded {
  animation: cat-in 0.55s cubic-bezier(0.22, 1.2, 0.36, 1) both;
  animation-delay: var(--d, 0ms);
}

.cat-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transform: scale(1.07);
  transition:
    opacity 0.45s ease,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0ms);
}

.cat-slot.loaded .cat-img {
  opacity: 1;
  transform: none;
}

.cat-slot.loaded:hover .cat-img {
  transform: scale(1.1);
}

.say-row {
  display: flex;
  gap: 0.55rem;
  margin-bottom: 0.6rem;
}

.ios-input {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 15px;
  background: var(--field);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: box-shadow 0.2s ease;
}

.ios-input:focus {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
}

.ios-input::placeholder {
  color: var(--muted);
}

.btn-ios {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.5rem;
  border: 0;
  border-radius: 16px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s ease;
}

.btn-ios:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
}

.btn-ios:active {
  transform: scale(0.95);
}

.btn-small {
  padding: 0.7rem 1.3rem;
  border-radius: 15px;
  font-size: 0.95rem;
  align-self: stretch;
}

.cat-fact {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  min-height: 1.4em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.cat-fact.show {
  opacity: 1;
  transform: none;
}

.github {
  padding: 1.9rem 1.75rem;
}

.gh-stats {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.gh-chip {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--field);
  font-size: 0.8rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gh-chip:hover {
  transform: translateY(-3px);
}

.gh-chip strong {
  color: var(--text);
  font-weight: 600;
}

.github .ios-input {
  width: 100%;
  margin-bottom: 0.9rem;
}

.gh-list {
  list-style: none;
  max-height: 21rem;
  overflow-y: auto;
  border-top: 1px solid var(--border);
  overscroll-behavior: contain;
}

.gh-list li + li {
  border-top: 1px solid var(--border);
}

.gh-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 0.25rem;
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s ease, padding 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.gh-item:hover {
  background: rgba(120, 120, 128, 0.08);
  padding-left: 0.8rem;
}

.gh-item:hover .gh-name {
  color: var(--accent);
}

.gh-item-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.gh-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.gh-meta {
  flex-shrink: 0;
  font-size: 0.78rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.gh-desc {
  font-size: 0.85rem;
  color: var(--muted);
}

.gh-empty {
  padding: 1.2rem 0.25rem;
  font-size: 0.9rem;
  color: var(--muted);
  list-style: none;
}

.gh-list::-webkit-scrollbar {
  width: 6px;
}

.gh-list::-webkit-scrollbar-thumb {
  background: rgba(120, 120, 128, 0.3);
  border-radius: 3px;
}

.socials {
  margin-bottom: 0;
}

.also-label {
  padding: 1.15rem 1.4rem 0;
  margin-bottom: 0.4rem;
}

.also-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.4rem;
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s ease;
}

.also-row:hover {
  background: rgba(120, 120, 128, 0.1);
}

.also-name {
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.also-handle {
  color: var(--muted);
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.also-row .ext {
  color: var(--muted);
}

@keyframes row-in {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.friend,
.also-row,
.gh-item,
.gb-item {
  animation: row-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--rd, 0ms);
}

.gh-chip {
  animation: row-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--rd, 0ms);
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 2.25rem;
  animation: footer-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.35s;
}

@keyframes footer-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.visitors {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.visitors svg {
  animation: eye-blink 4.5s ease-in-out infinite;
}

@keyframes eye-blink {
  0%,
  92%,
  100% {
    transform: scaleY(1);
  }
  95% {
    transform: scaleY(0.15);
  }
}

#visit-count {
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.hint {
  font-size: 0.78rem;
  opacity: 0.75;
}

.mod-link {
  color: var(--muted);
  font-size: 0.78rem;
  opacity: 0.55;
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.mod-link:hover {
  opacity: 1;
}

.mod-link.logged {
  color: var(--accent);
  opacity: 1;
}

.mod-overlay {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.7);
  animation: overlay-fade 0.25s ease both;
}

.mod-overlay[hidden] {
  display: none;
}

.mod-panel {
  width: min(100%, 30rem);
  max-height: 82vh;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.mod-item {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.7rem;
}

.mod-item img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.mod-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
  flex: 1;
}

.mod-item-info strong {
  font-size: 0.9rem;
}

.mod-actions {
  display: flex;
  gap: 0.4rem;
}

.mod-empty {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem 0;
}

.enroll-qr {
  display: flex;
  justify-content: center;
  padding: 0.6rem;
  border-radius: 14px;
  background: #1c1c20;
}

.enroll-qr img {
  width: 200px;
  height: 200px;
  display: block;
}

.enroll-key {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--text);
  background: var(--field);
  border-radius: 10px;
  padding: 0.5rem 0.7rem;
  word-break: break-all;
}

.mod-panel > .btn-soft {
  width: 100%;
}

.mod-foot {
  display: flex;
  gap: 0.5rem;
}

.mod-foot .btn-soft {
  flex: 1;
}

.mod-logout {
  color: #ff7b7b;
  border-color: rgba(223, 68, 68, 0.4);
}

body.cursor-on * {
  cursor: none !important;
}

.glass-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.6),
    inset 0 -1px 2px rgba(0, 0, 0, 0.08),
    0 2px 10px rgba(0, 0, 0, 0.15);
  -webkit-backdrop-filter: blur(3px) saturate(1.6);
  backdrop-filter: blur(3px) saturate(1.6);
  opacity: 0;
  transition:
    opacity 0.25s ease,
    width 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    height 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

.glass-cursor.visible {
  opacity: 1;
}

.glass-cursor.cursor-hover {
  width: 36px;
  height: 36px;
}

.glass-cursor.cursor-down {
  width: 16px;
  height: 16px;
}

html[data-theme="dark"] .glass-cursor {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.35);
}

.gb-skeleton {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.9rem 0.25rem;
  list-style: none;
}

.gb-skeleton span {
  display: block;
  height: 0.8rem;
  width: 42%;
  border-radius: 6px;
  background: var(--field);
  position: relative;
  overflow: hidden;
}

.gb-skeleton span.short {
  width: 72%;
}

.gb-skeleton span::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  animation: shimmer 1.4s ease-in-out infinite;
}

.socials-list {
  overflow: hidden;
  list-style: none;
  border-radius: inherit;
}

.socials li + li {
  border-top: 1px solid var(--border);
}

.socials a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.4rem;
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s ease;
}

.socials a:hover {
  background: rgba(120, 120, 128, 0.1);
}

.ext {
  color: currentColor;
  opacity: 0.7;
  display: inline-block;
  transition: transform 0.25s ease;
}

a:hover .ext,
.socials a:hover .ext {
  transform: translate(3px, -3px);
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-half {
  position: absolute;
  left: 0;
  right: 0;
  height: 50.5%;
  background: var(--bg);
  overflow: hidden;
  transition: transform 0.85s cubic-bezier(0.7, 0, 0.2, 1);
}

.intro-half::after {
  content: "";
  position: absolute;
  left: -60px;
  right: -60px;
  height: calc(100vh + 120px);
  background: url("../assets/intro.gif") center / cover no-repeat;
  filter: blur(10px) brightness(0.6) saturate(1.2);
}

.intro-half-top::after {
  top: -60px;
}

.intro-half-bottom::after {
  bottom: -60px;
}

.intro-half-top {
  top: 0;
}

.intro-half-bottom {
  bottom: 0;
}

.intro.done .intro-half-top {
  transform: translateY(-101%);
}

.intro.done .intro-half-bottom {
  transform: translateY(101%);
}

.intro-center {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.intro.done .intro-center {
  opacity: 0;
  transform: scale(1.08);
}

.intro-word {
  display: flex;
  overflow: hidden;
  font-size: clamp(3.2rem, 13vw, 6rem);
  font-weight: 700;
  line-height: 1.08;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  animation: word-track 1.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes word-track {
  from {
    letter-spacing: 0.14em;
  }
  to {
    letter-spacing: -0.045em;
  }
}

.intro-word span {
  display: inline-block;
  transform: translateY(115%) rotate(4deg);
  animation: letter-rise 0.75s cubic-bezier(0.22, 1.2, 0.36, 1) forwards;
}

.intro-word span:nth-child(1) {
  animation-delay: 0.1s;
}

.intro-word span:nth-child(2) {
  animation-delay: 0.19s;
}

.intro-word span:nth-child(3) {
  animation-delay: 0.28s;
}

.intro-word span:nth-child(4) {
  animation-delay: 0.37s;
}

@keyframes letter-rise {
  to {
    transform: translateY(0) rotate(0deg);
  }
}

.intro-line {
  width: 160px;
  height: 2px;
  border-radius: 999px;
  background: var(--field);
  overflow: hidden;
  opacity: 0;
  animation: intro-fade 0.4s ease 0.55s forwards;
}

.intro-line span {
  display: block;
  height: 100%;
  background: #fff;
  transform: translateX(-101%);
}

.intro-line.fill span {
  animation: intro-fill 1.1s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes intro-fill {
  to {
    transform: none;
  }
}

@keyframes intro-fade {
  to {
    opacity: 1;
  }
}

.intro-sub {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  animation: intro-fade 0.5s ease 0.75s forwards;
}

body.intro-lock {
  overflow: hidden;
}

body.cursor-on,
body.cursor-on * {
  cursor: none !important;
}

.friends {
  padding: 1.9rem 1.75rem;
}

.friends-list {
  list-style: none;
  border-top: 1px solid var(--border);
}

.friends-list li + li {
  border-top: 1px solid var(--border);
}

.friend {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 0.25rem;
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s ease;
}

.friend:hover {
  background: rgba(120, 120, 128, 0.08);
}

.friend-ava {
  position: relative;
  flex-shrink: 0;
}

.friend-ava img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.friend:hover .friend-ava img {
  transform: scale(1.14) rotate(-5deg);
}

.friend-dot {
  width: 12px;
  height: 12px;
  border-width: 2.5px;
  bottom: -1px;
  right: -1px;
}

.friend-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.friend-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.friend-user {
  font-size: 0.8rem;
  color: var(--muted);
}

.now-playing {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.9rem;
  padding: 0.6rem 0.9rem;
  border-radius: 14px;
  background: var(--field);
  width: 100%;
  max-width: 300px;
}

.now-playing[hidden] {
  display: none;
}

.np-art {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.np-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-align: left;
}

.np-song {
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.np-artist {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eq {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
  margin-left: auto;
  flex-shrink: 0;
}

.eq span {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: var(--muted);
  transform-origin: bottom;
  animation: eq-b 0.9s ease-in-out infinite;
}

.eq span:nth-child(1) {
  animation-delay: 0s;
  height: 60%;
}

.eq span:nth-child(2) {
  animation-delay: 0.25s;
  height: 100%;
}

.eq span:nth-child(3) {
  animation-delay: 0.5s;
  height: 40%;
}

@keyframes eq-b {
  0%,
  100% {
    transform: scaleY(0.35);
  }
  50% {
    transform: scaleY(1);
  }
}

.guestbook {
  padding: 1.9rem 1.75rem;
  margin-bottom: 1.25rem;
}

.gb-form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
}

.gb-textarea {
  resize: none;
  font-family: inherit;
  line-height: 1.5;
}

.gb-send {
  align-self: flex-end;
  min-width: 7rem;
}

.gb-attachment {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.6rem;
  border-radius: 12px;
  background: var(--field);
  border: 1px solid var(--border);
  animation: gb-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.gb-attachment[hidden] {
  display: none;
}

.gb-attachment img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
}

.gb-attach-label {
  font-size: 0.82rem;
  color: var(--muted);
  flex: 1;
}

altcha-widget.gb-altcha {
  display: block;
  --altcha-max-width: 100%;
}

.gb-altcha[data-state="error"] {
  border: 1px solid rgba(223, 68, 68, 0.4);
  border-radius: 12px;
}

.gb-list {
  list-style: none;
  border-top: 1px solid var(--border);
  max-height: 20rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.gb-list li + li {
  border-top: 1px solid var(--border);
}

.gb-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.9rem 0.4rem;
}

.gb-item + .gb-item {
  border-top: 1px dashed var(--border);
}

.gb-item.pop {
  animation: gb-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes gb-pop {
  0% {
    opacity: 0;
    transform: scale(0.6) translateY(10px);
  }
  60% {
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

.gb-name {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.08rem;
}

.gb-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.gb-date {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.gb-text {
  font-size: 0.88rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.gb-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-top: 0.35rem;
  cursor: zoom-in;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gb-img:hover {
  transform: scale(1.02);
}

.gb-foot {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.gb-like {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.74rem;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease, border-color 0.2s ease;
}

.gb-like:hover {
  transform: scale(1.08);
}

.gb-like:active {
  transform: scale(0.9);
}

.gb-like.liked {
  color: #ff5b7f;
  border-color: rgba(255, 91, 127, 0.45);
}

.gb-like.liked svg {
  fill: #ff5b7f;
}

.gb-like svg {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gb-like.liked svg {
  transform: scale(1.15);
}

.gb-del {
  margin-left: auto;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(223, 68, 68, 0.4);
  background: transparent;
  color: #ff7b7b;
  font: inherit;
  font-size: 0.72rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.gb-del:hover {
  background: rgba(223, 68, 68, 0.14);
}

.gb-del:active {
  transform: scale(0.93);
}

.action-pop {
  position: fixed;
  z-index: 145;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 170px;
  padding: 0.5rem;
  border-radius: 14px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  backdrop-filter: blur(22px) saturate(1.6);
  border: 1px solid var(--border);
  box-shadow: var(--glass-shadow), var(--glass-inset);
  opacity: 0;
  transform: scale(0.9) translateY(-6px);
  transform-origin: top left;
  transition: opacity 0.22s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.action-pop.show {
  opacity: 1;
  transform: none;
}

.action-pop[hidden] {
  display: none;
}

.action-pop .pic-btn {
  font-size: 0.82rem;
  padding: 0.55rem 0.7rem;
}

.heart-burst {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 240;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: heart-pop 1s cubic-bezier(0.22, 1.4, 0.36, 1) forwards;
}

.heart-burst svg {
  width: 150px;
  height: 150px;
  filter: drop-shadow(0 12px 44px rgba(255, 91, 127, 0.45));
}

@keyframes heart-pop {
  0% {
    transform: translate(-50%, -50%) scale(0) rotate(-8deg);
    opacity: 0;
  }
  18% {
    transform: translate(-50%, -50%) scale(1.25) rotate(3deg);
    opacity: 1;
  }
  32% {
    transform: translate(-50%, -50%) scale(0.96) rotate(0deg);
  }
  70% {
    transform: translate(-50%, -50%) scale(1.04);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0;
  }
}

.gb-list::-webkit-scrollbar {
  width: 6px;
}

.gb-list::-webkit-scrollbar-thumb {
  background: rgba(120, 120, 128, 0.3);
  border-radius: 3px;
}

.gb-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 0.9rem;
}

.gb-pager[hidden] {
  display: none;
}

.pager-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--field);
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.2s ease;
}

.pager-btn:hover:not(:disabled) {
  filter: brightness(1.15);
}

.pager-btn:active:not(:disabled) {
  transform: scale(0.92);
}

.pager-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

#gb-page-info {
  font-size: 0.82rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  min-width: 3.2rem;
  text-align: center;
}

.rocket {
  position: fixed;
  z-index: 150;
  color: var(--text);
  pointer-events: none;
}

.rocket svg {
  display: block;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.25));
}

body.gb-blur .glass:not(.gb-keep),
body.gb-blur .topbar-glass,
body.gb-blur footer {
  filter: blur(7px);
}

body.shake .container {
  animation: screen-shake 0.5s linear;
}

@keyframes screen-shake {
  0%,
  100% {
    transform: none;
  }
  15% {
    transform: translate(-8px, 5px) rotate(-0.4deg);
  }
  30% {
    transform: translate(7px, -4px) rotate(0.35deg);
  }
  45% {
    transform: translate(-6px, 3px);
  }
  60% {
    transform: translate(5px, -3px);
  }
  75% {
    transform: translate(-3px, 2px);
  }
  90% {
    transform: translate(1px, -1px);
  }
}

.toast-stack {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 170;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1.1rem;
  border-radius: 16px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid var(--border);
  box-shadow: var(--glass-shadow), var(--glass-inset);
  max-width: 300px;
  animation: toast-in 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.toast.out {
  animation: toast-out 0.4s ease both;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(120%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateX(120%) scale(0.95);
  }
}

.toast svg {
  color: #f5b942;
  flex-shrink: 0;
}

.toast-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.toast-text strong {
  font-size: 0.9rem;
}

.toast-text em {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--muted);
}

.snake-overlay {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.55);
  animation: overlay-fade 0.3s ease both;
}

.snake-overlay[hidden] {
  display: none;
}

@keyframes overlay-fade {
  from {
    opacity: 0;
  }
}

.snake-panel {
  width: min(100%, 420px);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: gb-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.snake-top {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.snake-top .label {
  margin-bottom: 0;
}

.snake-scores {
  display: flex;
  gap: 0.9rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

.snake-scores strong {
  color: var(--text);
}

.snake-stage {
  position: relative;
}

#snake-canvas {
  width: 100%;
  display: block;
  border-radius: 14px;
  background: rgba(120, 120, 128, 0.12);
  border: 1px solid var(--border);
}

.snake-msg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  pointer-events: none;
}

.snake-msg.hidden {
  display: none;
}

.snake-dpad {
  display: none;
  grid-template-columns: repeat(3, 56px);
  grid-template-rows: repeat(2, 56px);
  gap: 0.5rem;
  justify-content: center;
}

.dpad-btn {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--field);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.1s ease;
}

.dpad-btn:active {
  transform: scale(0.9);
}

.dpad-up {
  grid-column: 2;
  grid-row: 1;
}

.dpad-left {
  grid-column: 1;
  grid-row: 2;
}

.dpad-down {
  grid-column: 2;
  grid-row: 2;
}

.dpad-right {
  grid-column: 3;
  grid-row: 2;
}

@media (pointer: coarse) {
  .snake-dpad {
    display: grid;
  }
}

.snake-hint {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}

body.snake-lock {
  overflow: hidden;
}

.notfound {
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.9rem;
}

.nf-code {
  font-size: clamp(4rem, 14vw, 6.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.nf-title {
  font-size: 1.5rem;
}

.nf-desc {
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.notfound .cat-frame {
  width: 100%;
  max-width: 26rem;
}

.notfound .btn-ios {
  text-decoration: none;
  margin-top: 0.4rem;
}

@media (max-width: 959.98px) {
  .col {
    display: contents;
  }

  .snapdesk {
    order: -5;
  }

  .cat-card {
    order: -4;
  }

  .github {
    order: -3;
  }

  .socials {
    order: -2;
  }

  .friends {
    order: -1;
  }
}

@media (min-width: 960px) {
  .container {
    max-width: 76rem;
    padding-top: 6.5rem;
  }

  .layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .profile {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 2.75rem;
    padding: 2.4rem 2.75rem;
  }

  .profile .avatar-row {
    margin-bottom: 0;
  }

  .profile-text {
    align-items: flex-start;
  }

  h1 {
    font-size: 2.5rem;
  }
}

[data-animate] {
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1.2, 0.36, 1);
  transition-delay: var(--stagger, 0ms);
  will-change: transform;
}

[data-animate].in {
  opacity: 1;
  transform: none;
}

[data-depth] {
  will-change: transform;
}

.rain-cat {
  position: fixed;
  top: -90px;
  z-index: 99;
  width: 60px;
  height: 60px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  animation: cat-fall var(--dur, 3s) linear forwards;
}

@keyframes cat-fall {
  from {
    transform: translateY(-10vh) rotate(var(--rot-from, -12deg));
  }
  to {
    transform: translateY(115vh) rotate(var(--rot-to, 348deg));
  }
}

@media (max-width: 599px) {
  .container {
    padding: 5.5rem 1rem 2.5rem;
  }

  .profile,
  .snapdesk,
  .cat-card,
  .github,
  .friends,
  .guestbook {
    padding: 1.5rem 1.25rem;
  }

  .profile {
    padding-top: 2.2rem;
    padding-bottom: 2rem;
  }

  h1 {
    font-size: 2rem;
  }

  .cat-grid {
    gap: 0.45rem;
  }

  .say-row {
    flex-direction: column;
  }

  .btn-small {
    align-self: auto;
  }

  .topbar {
    padding-top: 0.7rem;
  }

  .topbar-glass {
    gap: 1.5rem;
    padding: 0.4rem 0.8rem 0.4rem 1.1rem;
  }

  footer {
    margin-top: 1.75rem;
  }
}

@media (max-width: 480px) {
  .sd-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .sd-feature {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  [data-animate] {
    opacity: 1;
    transform: none;
  }
}
