* { box-sizing: border-box; }

:root {
  --bg: #0d0b09;
  --panel: rgba(31, 25, 20, 0.72);
  --panel2: rgba(255, 248, 231, 0.07);
  --text: #f4ead8;
  --muted: #b6a58c;
  --gold: #d7b56d;
  --gold2: #fff0b8;
  --line: rgba(215, 181, 109, 0.22);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(215, 181, 109, 0.18), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(118, 86, 50, 0.18), transparent 28%),
    linear-gradient(145deg, #070605, #15100c 48%, #090807);
  color: var(--text);
  font-family: ui-serif, Georgia, "Times New Roman", "Noto Serif SC", serif;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.15;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at center, black, transparent 90%);
}

.page {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 36px;
}

.hero {
  min-height: 72vh;
  display: grid;
  align-content: center;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  right: 4%;
  bottom: 18%;
  width: 180px;
  height: 180px;
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 0 80px rgba(215, 181, 109, 0.18);
  opacity: 0.75;
}

.eyebrow, .section-label {
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 16px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1 {
  margin: 0;
  font-size: clamp(4.2rem, 12vw, 9rem);
  line-height: 0.82;
  letter-spacing: -0.075em;
  color: var(--gold2);
  text-shadow: 0 0 34px rgba(215, 181, 109, 0.16);
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(1.35rem, 3vw, 2rem);
  color: var(--gold2);
}

p, li {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.tagline {
  margin: 28px 0 0;
  color: var(--text);
  font-style: italic;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
}

.cn {
  margin-top: 16px;
  max-width: 640px;
  color: #dccaa8;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

button {
  border: 1px solid rgba(215, 181, 109, 0.42);
  background: linear-gradient(180deg, rgba(215, 181, 109, 0.22), rgba(215, 181, 109, 0.08));
  color: var(--gold2);
  padding: 12px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.98rem;
  letter-spacing: 0.03em;
  transition: transform 140ms ease, border-color 140ms ease;
}

button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 240, 184, 0.76);
}

button.ghost { background: rgba(255, 255, 255, 0.035); }

.card {
  margin: 28px 0;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.ring { margin-top: 42px; }

blockquote {
  margin: 24px 0 0;
  padding: 16px 0 0 20px;
  border-left: 2px solid var(--gold);
  color: var(--gold2);
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  line-height: 1.7;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.grid .card {
  margin: 0;
  background: var(--panel2);
}

ul {
  margin: 0;
  padding-left: 1.2em;
}

.result {
  border: 1px dashed rgba(215, 181, 109, 0.35);
  border-radius: 22px;
  padding: 22px;
  background: rgba(0, 0, 0, 0.16);
}

.result strong {
  display: block;
  margin-top: 10px;
  color: var(--gold2);
  font-size: clamp(1.35rem, 4vw, 2.3rem);
}

.rarity {
  display: inline-block;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111;
  background: var(--gold);
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.memory {
  background: linear-gradient(135deg, rgba(215, 181, 109, 0.12), rgba(255, 255, 255, 0.035));
}

footer {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 46px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(244, 234, 216, 0.5);
  font-size: 0.92rem;
}

@media (max-width: 720px) {
  .page { padding-top: 48px; }
  .hero { min-height: 68vh; }
  .hero::after { width: 120px; height: 120px; bottom: 12%; }
  .grid { grid-template-columns: 1fr; }
  footer { display: block; }
  footer span { display: block; margin-top: 8px; }
}
