:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f3eee8;
  color: #201b18;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 90% 5%, rgba(244, 122, 33, .14), transparent 30%),
    #f3eee8;
}

button, a { font: inherit; }

.page-shell {
  width: min(100%, 680px);
  margin: 0 auto;
  padding: 24px 18px calc(38px + env(safe-area-inset-bottom));
}

.state-card {
  margin-top: 20vh;
  padding: 50px 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .8);
  color: #7c746e;
  text-align: center;
}

.poster {
  overflow: hidden;
  padding: clamp(22px, 6vw, 44px);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(52, 37, 25, .14);
}

.brand {
  margin: 0;
  color: #f47a21;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
}

h1 {
  margin: 7px 0 22px;
  font-size: clamp(32px, 8vw, 52px);
  line-height: 1.1;
}

.artwork-frame {
  min-height: 280px;
  background: #eee9e5;
}

.artwork-frame img {
  display: block;
  width: 100%;
  min-height: 280px;
  object-fit: contain;
}

.poster-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
}

.poster-meta h2 {
  margin: 0;
  font-size: clamp(22px, 5vw, 32px);
}

.poster-meta p,
.code-block span {
  margin: 6px 0 0;
  color: #918984;
  font-size: 12px;
}

.code-block { text-align: right; }

.code-block span { display: block; }

.code-block strong {
  display: block;
  margin-top: 5px;
  color: #f47a21;
  font-size: clamp(13px, 3vw, 17px);
  letter-spacing: .04em;
}

.actions { padding-top: 22px; }

.primary-button,
.secondary-button {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 14px 20px;
  border: 0;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.primary-button {
  background: #f47a21;
  color: #fff;
  font-weight: 700;
}

.secondary-button {
  margin-top: 12px;
  background: #fff;
  color: #4d4540;
}

.hint {
  margin: 12px 8px 0;
  color: #8c837d;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

[hidden] { display: none !important; }

@media (max-width: 430px) {
  .poster-meta { align-items: flex-start; flex-direction: column; }
  .code-block { text-align: left; }
}
