* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 211, 156, 0.5), transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(236, 157, 108, 0.42), transparent 35%),
    linear-gradient(154deg, #f6ecdd 0%, #f2dfbf 48%, #edcfaa 100%);
  color: #35261d;
}

.pottery-back-link {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 130;
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #3a2a20;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(70, 40, 18, 0.16);
}

.pottery-back-link:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.pottery-landing-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
}

.pottery-title {
  margin: 0;
  font-size: clamp(36px, 7vw, 62px);
  letter-spacing: 0.02em;
  font-weight: 800;
}

.pottery-subtitle {
  margin: 12px 0 42px;
  font-size: clamp(14px, 2.1vw, 19px);
  color: rgba(53, 38, 29, 0.78);
  text-align: center;
}

.pottery-grid {
  width: min(1040px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.pottery-card {
  display: block;
  border-radius: 18px;
  border: 1px solid rgba(118, 78, 50, 0.16);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.38), rgba(242, 214, 181, 0.46)),
    #f8e8d2;
  box-shadow: 0 12px 24px rgba(72, 45, 24, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pottery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 32px rgba(72, 45, 24, 0.22);
}

.pottery-card h2 {
  margin: 0;
  font-size: clamp(22px, 2.8vw, 31px);
  font-weight: 800;
  line-height: 1.2;
}

.pottery-card.is-locked {
  opacity: 0.62;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 8px 16px rgba(72, 45, 24, 0.12);
  position: relative;
}

.pottery-card.is-locked:hover {
  transform: none;
  box-shadow: 0 8px 16px rgba(72, 45, 24, 0.12);
}

.pottery-card.is-locked::after {
  content: attr(data-locked-message);
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  background: rgba(35, 39, 49, 0.95);
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
  padding: 6px 8px;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
  pointer-events: none;
}

.pottery-card.is-locked:hover::after,
.pottery-card.is-locked:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.pottery-card-primary {
  grid-column: span 2;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.34), rgba(203, 227, 255, 0.44)),
    #dceeff;
}

.pottery-card-primary h2 {
  font-size: clamp(26px, 3.1vw, 36px);
}

.user-info {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid #e2d6c7;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 18px rgba(35, 23, 14, 0.12);
  font-size: 13px;
  color: #25314a;
}

.logout-btn {
  border: 0;
  border-radius: 999px;
  background: #f15a4a;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  cursor: pointer;
}

.logout-btn:hover {
  background: #d94738;
}

@media (max-width: 920px) {
  .pottery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pottery-card-primary {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .pottery-grid {
    grid-template-columns: 1fr;
  }

  .pottery-card-primary {
    grid-column: span 1;
  }

  .pottery-landing-wrap {
    justify-content: flex-start;
    padding-top: 86px;
  }
}
