:root {
  color: #4e342e;
  background: #fffdf8;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans",
    "Yu Gothic", "Noto Sans JP", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, #fff1dd 0, #fff8ef 180px, #fffdf8 100%);
}

.page-shell {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 28px 16px 40px;
}

.profile-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #f1dfd0;
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(78, 52, 46, 0.08);
  padding: 18px;
}

.loading,
.not-found {
  padding: 36px 12px;
  text-align: center;
  color: #8d6e63;
}

.hidden {
  display: none;
}

.hero {
  display: flex;
  gap: 16px;
  align-items: center;
}

.avatar-wrap {
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff1f5;
  border: 1px solid #f3dbe4;
}

.avatar,
.avatar-placeholder {
  width: 100%;
  height: 100%;
}

.avatar {
  display: block;
  object-fit: cover;
}

.avatar-placeholder {
  display: grid;
  place-items: center;
  color: #d94f7a;
  font-size: 30px;
  font-weight: 800;
}

.identity {
  min-width: 0;
}

.brand {
  color: #c65d3b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  margin: 6px 0 8px;
  font-size: clamp(24px, 7vw, 36px);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff3e8;
  color: #9a4b2f;
  font-size: 12px;
  font-weight: 800;
}

.verified.hidden {
  display: none;
}

.verified-mark {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #c65d3b;
  color: white;
  font-size: 12px;
}

.bio {
  margin: 18px 0 0;
  white-space: pre-wrap;
  line-height: 1.75;
  color: #5f433b;
}

.bio:empty::before {
  content: "プロフィールはまだ登録されていません";
  color: #9a8379;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.social-links:empty {
  display: none;
}

.social-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid #ead8c7;
  border-radius: 999px;
  color: #4e342e;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  background: #fffdf8;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 999px;
  background: #c65d3b;
  color: white;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
}

.text-action {
  border: 0;
  background: transparent;
  color: #8d5d4a;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.note {
  margin: 14px 0 0;
  text-align: center;
  color: #9a8379;
  font-size: 12px;
}

.event-group {
  margin: 10px 0 0;
  color: #8d6e63;
  font-weight: 800;
}

.event-flyer {
  display: block;
  width: 100%;
  max-height: 560px;
  margin-top: 18px;
  border-radius: 14px;
  object-fit: contain;
  background: #fff8ef;
}

.event-flyer.hidden,
#event-ticket.hidden {
  display: none;
}

.event-details {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
}

.event-details > div {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
}

.event-details dt {
  color: #8d6e63;
  font-weight: 800;
}

.event-details dd {
  margin: 0;
}

@media (max-width: 420px) {
  .hero {
    align-items: flex-start;
  }

  .avatar-wrap {
    width: 78px;
    height: 78px;
    flex-basis: 78px;
  }
}
