* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #10233f;
  background:
    radial-gradient(circle at 20% 10%, rgba(56, 189, 248, .2), transparent 34%),
    linear-gradient(160deg, #f7fbff 0%, #fff 58%, #eef8ff 100%);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

main {
  width: min(440px, 100%);
  padding: 34px 28px 30px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 28px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 70px rgba(71, 111, 145, .15);
  text-align: center;
}

.hidden {
  display: none !important;
}

.icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  box-shadow: 0 14px 30px rgba(14, 165, 233, .24);
  font-size: 32px;
  font-weight: 800;
}

h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

p {
  margin: 12px 0 0;
  color: #64748b;
  line-height: 1.7;
}

.room {
  margin: 22px 0;
  padding: 14px;
  border-radius: 16px;
  color: #0369a1;
  background: #f0f9ff;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid #e0f2fe;
}

.guide {
  margin: -8px 0 20px;
  padding: 12px 14px;
  border-radius: 14px;
  color: #475569;
  background: #f8fafc;
  font-size: 13px;
  line-height: 1.65;
}

.actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

button, a.btn {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

button.primary, a.btn-primary {
  border: 0;
  color: #fff;
  background: linear-gradient(90deg, #0ea5e9, #0284c7);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.25);
}

button.primary:hover, a.btn-primary:hover {
  background: linear-gradient(90deg, #0284c7, #0369a1);
  transform: translateY(-1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

button.secondary, a.btn-secondary {
  border: 1px solid #dbe7f1;
  color: #334155;
  background: #fff;
}

button.secondary:hover, a.btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.copy-status {
  min-height: 20px;
  margin-top: 10px;
  color: #0284c7;
  font-size: 12px;
  font-weight: 700;
}

#status {
  min-height: 24px;
  font-size: 13px;
}

.share-loading,
.share-error {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.cover-wrap {
  width: min(260px, 74vw);
  aspect-ratio: 1;
  margin: 0 auto 24px;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .72);
  background: linear-gradient(145deg, #e3f2fd, #fff);
  box-shadow: 0 22px 42px rgba(33, 150, 243, .18);
}

.cover-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cover-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #0284c7;
  font-size: 56px;
  font-weight: 800;
}

.share-title {
  margin: 0;
  color: #10233f;
  font-size: 24px;
  line-height: 1.22;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-subtitle {
  margin: 8px 0 0;
  color: #0284c7;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.info-panel {
  margin: 26px 0 24px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 18px;
  background: rgba(255, 255, 255, .5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 30px rgba(71, 111, 145, .08);
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(148, 163, 184, .22);
  font-size: 14px;
}

.info-row:last-child {
  border-bottom: 0;
}

.info-row span:first-child {
  flex: 0 0 auto;
  color: #94a3b8;
  font-weight: 700;
}

.info-row span:last-child {
  min-width: 0;
  color: #334155;
  font-weight: 700;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
