:root {
  --card-bg: rgba(255,255,255,0.06);
  --card-border: rgba(255,255,255,0.10);
}

* { -webkit-tap-highlight-color: transparent; }

.glass {
  background: rgba(10,10,10,0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.tap-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
}

.menu-link {
  display: block;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: #ffffff;
  color: #0a0a0a;
  font-weight: 700;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  font-weight: 700;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.90);
  font-weight: 600;
  font-size: 13px;
}

.avatar {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  flex: 0 0 auto;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.square-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.square-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* =========================
   Kakao Button
========================= */
.chip-kakao {
  border: 1.5px solid #FEE500;
  color: #FEE500;
  background: rgba(254, 229, 0, 0.06);
}

.chip-kakao:hover {
  background: rgba(254, 229, 0, 0.14);
  color: #FFF1A8;
}


/* =========================
   Instagram Gradient Border
========================= */
.chip-instagram {
  position: relative;
  color: rgba(255,255,255,0.95);
  border: none;
  background: rgba(255,255,255,0.06);
}

.chip-instagram::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    #833AB4,
    #FD1D1D,
    #F77737,
    #FCAF45
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;

          mask-composite: exclude;
  pointer-events: none;
}

.chip-instagram:hover {
  background: rgba(255,255,255,0.12);
}


/* =========================
   Project Timeline UI
========================= */
.timeline-rail {
  position: relative;
  width: 18px;
  flex: 0 0 18px;
  display: flex;
  justify-content: center;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.90);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.10);
}

.timeline-line {
  position: absolute;
  top: 22px;
  bottom: 6px;
  width: 2px;
  background: rgba(255,255,255,0.10);
  border-radius: 999px;
}

/* YYYY-MM pill */
.ym-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  letter-spacing: -0.01em;
}

/* Guild badge */
.guild-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  text-decoration: none;
  transition: transform 120ms ease, background 120ms ease;
}

.guild-badge:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.08);
}

.guild-avatar {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  flex: 0 0 auto;
}

.guild-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guild-name {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.86);
  letter-spacing: -0.01em;
}

/* Link buttons */
.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: transform 120ms ease, background 120ms ease;
}

.link-btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.10);
}

.link-ico {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.90);
  font-size: 12px;
  line-height: 1;
}

/* ===== Mobile friendliness pack ===== */
html {
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

html.scroll-lock,
html.scroll-lock body {
  overflow: hidden;
  height: 100%;
}

body {
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
               "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
}

a, button {
  touch-action: manipulation;
}

:focus-visible {
  outline: 2px solid rgba(255,255,255,0.55);
  outline-offset: 3px;
  border-radius: 12px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

.tap-btn:active,
.menu-link:active,
.primary-btn:active,
.ghost-btn:active,
.chip:active,
.link-btn:active {
  transform: scale(0.99);
}
