:root {
  --bg: #0a0908;
  --card: #15120f;
  --line: rgba(242, 235, 227, 0.14);
  --paper: #f2ebe3;
  --muted: rgba(242, 235, 227, 0.62);
  --accent: #e0362c;
  --spin-duration: 24s;
  --serif: "Cormorant Garamond", "Songti SC", "Noto Serif SC", Georgia, serif;
  --sans: "DM Sans", "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

body {
  background: var(--bg);
  color: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.en, .en-title {
  color: var(--muted);
  font-size: 0.92em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(242, 235, 227, 0.28);
  background: rgba(242, 235, 227, 0.08);
  color: var(--paper);
  border-radius: 999px;
  padding: 10px 18px;
  font: 500 13px/1 var(--sans);
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn:hover { background: rgba(242, 235, 227, 0.16); }
.btn.primary { background: var(--paper); color: #14110f; border-color: var(--paper); }
.btn.primary:hover { background: #fff; }

/* ---------- hub */

.hub { padding: 0 20px 64px; }

.hub-head {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 0 36px;
  text-align: center;
}
.hub-head h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.15;
  margin: 14px 0 14px;
}
.lede { font-size: 15px; line-height: 1.7; color: rgba(242, 235, 227, 0.85); }

.topbar {
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.mark {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}
.topbar nav { display: flex; gap: 18px; margin-left: auto; }
.topbar nav a {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}
.topbar nav a:hover,
.topbar nav a[aria-current="page"] { color: var(--paper); }
.hub-head { padding-top: 48px; }
.hub-cta { display: flex; justify-content: center; margin-top: 22px; }

.mobile-note {
  max-width: 960px;
  margin: 0 auto 28px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px dashed var(--line);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.case {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  overflow: hidden;
}
.case-art {
  display: grid;
  place-items: center;
  height: 260px;
  background: radial-gradient(circle at 50% 40%, #221d18, #0d0b0a 70%);
  overflow: hidden;
}
.case-art img {
  max-width: 72%;
  max-height: 220px;
  object-fit: contain;
  transition: transform 0.6s ease;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.5));
}
.case-art.round img { border-radius: 50%; }
.case-art.tall img { max-height: 190px; }
.case-art.square img { border-radius: 10px; }
.case:hover .case-art.round img { transform: rotate(40deg); }
.case:hover .case-art:not(.round) img { transform: scale(1.04); }

.case-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.tags span {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.case h2 { font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.2; }
.case .desc { font-size: 14px; line-height: 1.65; color: rgba(242, 235, 227, 0.82); flex: 1; margin-top: 6px; }
.case-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

.filters {
  max-width: 1120px;
  margin: 0 auto 22px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filters button {
  font: 500 13px/1 var(--sans);
  letter-spacing: 0.04em;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}
.filters button[aria-pressed="true"] {
  background: var(--paper);
  color: #14110f;
  border-color: var(--paper);
}

.hub-foot { max-width: 960px; margin: 48px auto 0; text-align: center; font-size: 13px; color: var(--muted); line-height: 1.8; }
.hub-foot .en { display: block; }

.copyright { font-size: 12px; color: var(--muted); }
.copyright a { color: var(--paper); text-decoration: underline; text-decoration-color: rgba(242, 235, 227, 0.35); text-underline-offset: 3px; }
.copyright a:hover { text-decoration-color: var(--paper); }
.hub-foot .copyright { margin-top: 10px; }

/* ---------- try */

.try {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
}

.back {
  position: fixed;
  top: 18px;
  left: 20px;
  z-index: 3;
  font-size: 13px;
  text-decoration: none;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(10, 9, 8, 0.6);
  border: 1px solid var(--line);
}
.back:hover { color: var(--paper); }

.stage-wrap {
  display: grid;
  place-items: center;
  padding: 64px 32px 32px;
  background: #000;
  min-height: 100dvh;
}
.stage { display: grid; place-items: center; background: #000; }
.stage img {
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  object-fit: contain;
}
.stage.round img { width: min(78vh, 62vw, 640px); aspect-ratio: 1; }
.stage.square img { width: min(72vh, 58vw, 600px); border-radius: 8px; }
.stage.tall img { height: min(76vh, 800px); max-width: 58vw; }

.red-envelope {
  --red: #a52e2a;
  width: min(54vh, 40vw, 440px);
  background: var(--red);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: inset 0 0 0 6px var(--red), inset 0 0 0 7.5px rgba(232, 190, 92, 0.75), 0 24px 60px rgba(0, 0, 0, 0.6);
  padding-bottom: 7%;
  display: flex;
  flex-direction: column;
}
.red-envelope .flap {
  position: relative;
  aspect-ratio: 100 / 38;
}
.red-envelope .flap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #7f1f1c, #922622);
  clip-path: polygon(0 0, 100% 0, 100% 34%, 50% 100%, 0 34%);
}
.red-envelope .flap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(232, 190, 92, 0.7);
  clip-path: polygon(0 34%, 50% 100%, 100% 34%, 100% calc(34% + 1.5px), 50% calc(100% + 1.5px), 0 calc(34% + 1.5px));
}
.red-envelope .seal {
  position: absolute;
  left: 50%;
  bottom: 6%;
  transform: translateX(-50%);
  width: 19%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, #f6dc8c, #d9a83c 60%, #b8862a);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35), inset 0 0 0 2px rgba(255, 240, 200, 0.5);
  color: #a52e2a;
  font: 700 clamp(16px, 2.6vw, 30px)/1 "Songti SC", "Noto Serif SC", serif;
}
.stage .red-envelope img { width: 100%; height: auto; border-radius: 0; }

.stage img.spinning { animation: spin var(--spin-duration) linear infinite; will-change: transform; }
.stage img.paused { animation-play-state: paused; }
@keyframes spin { to { transform: rotate(360deg); } }

.panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 72px 28px 32px;
  border-left: 1px solid var(--line);
  background: var(--card);
  overflow-y: auto;
  max-height: 100dvh;
  position: sticky;
  top: 0;
}
.panel h1 { font-family: var(--serif); font-weight: 600; font-size: 26px; line-height: 1.15; margin-top: -8px; }
.panel .en-title { margin-top: -14px; font-size: 13px; }

.qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  border-radius: 16px;
  background: #f4efe6;
}
.qr-box img { width: 200px; height: 200px; image-rendering: pixelated; }
.qr-link { font-size: 12px; color: #6b625a; text-decoration: none; word-break: break-all; }
.qr-link:hover { text-decoration: underline; }

.steps { list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 10px; }
.steps li {
  counter-increment: s;
  display: flex;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
}
.steps li::before {
  content: counter(s);
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--muted);
}

.spin { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.speed { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); width: 100%; }
.speed input { flex: 1; accent-color: var(--paper); }

.tips { font-size: 12.5px; line-height: 1.6; color: var(--muted); }

.switch {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.switch a {
  font-size: 12px;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.switch a:hover { color: var(--paper); border-color: rgba(242, 235, 227, 0.4); }

.offers {
  max-width: 960px;
  margin: 8px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.offer {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  overflow: hidden;
}
.offer img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: radial-gradient(circle at 50% 40%, #221d18, #0d0b0a 70%);
}
.offer div { padding: 16px 16px 18px; }
.offer h2 { font-family: var(--serif); font-weight: 500; font-size: 28px; }
.offer p { margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.5; }

.brief {
  max-width: 640px;
  margin: 56px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.brief h2 { font-family: var(--serif); font-weight: 500; font-size: 32px; }
.brief label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.brief input,
.brief select,
.brief textarea {
  width: 100%;
  background: #100e0c;
  color: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: 400 15px/1.45 var(--sans);
}
.brief textarea { min-height: 120px; resize: vertical; }
.brief select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 6.2L8 10.6L12.5 6.2' stroke='%23f2ebe3' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px 16px;
}
.brief .btn { align-self: flex-start; margin-top: 4px; }
.thanks {
  max-width: 640px;
  margin: 56px auto 0;
  text-align: center;
}
.thanks h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 5vw, 52px); }
.brief .btn:disabled { opacity: 0.6; cursor: wait; }
.honey { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
.sent { font-size: 14px; line-height: 1.6; color: var(--paper); }

@media (max-width: 820px) {
  .offers { grid-template-columns: 1fr; }
  .hub-head { padding-top: 36px; }
  .try { grid-template-columns: minmax(0, 1fr); }
  .stage-wrap { min-height: auto; padding: 64px 16px 24px; }
  .stage.round img { width: min(86vw, 520px); }
  .stage.square img { width: min(86vw, 520px); }
  .stage.tall img { height: auto; width: min(70vw, 360px); max-width: none; }
  .red-envelope { width: min(78vw, 400px); }
  .panel { border-left: 0; border-top: 1px solid var(--line); max-height: none; position: static; padding-top: 28px; }
}
