:root {
  --bg: #050505;
  --bg-soft: #111;
  --gold: #d8b15a;
  --gold-soft: #b78e3d;
  --gold-glow: rgba(216, 177, 90, 0.35);
  --text: #f7f1df;
  --muted: #ceb980;
  --line: rgba(216, 177, 90, 0.4);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: radial-gradient(circle at 15% 12%, #1a1409, transparent 35%),
    radial-gradient(circle at 85% 88%, #140f05, transparent 40%), var(--bg);
  color: var(--text);
  font-family: "Manrope", sans-serif;
}

.luxury-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: radial-gradient(rgba(255, 226, 161, 0.45) 0.7px, transparent 0.7px);
  background-size: 3px 3px;
}

.app-shell {
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0.9rem;
  padding: 0.9rem;
  position: relative;
  z-index: 1;
}

.depth {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 239, 197, 0.18);
}

.card {
  height: 100%;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, rgba(216, 177, 90, 0.18), rgba(8, 8, 8, 0.95) 42%),
    linear-gradient(25deg, rgba(42, 35, 21, 0.95), rgba(10, 10, 10, 1));
  padding: clamp(1rem, 4vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 216, 120, 0.3);
  pointer-events: none;
  mask-image: linear-gradient(140deg, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.1));
}

.brand {
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.15em;
  font-size: 0.73rem;
  text-transform: uppercase;
}

h1 {
  margin: 0.45rem 0 0;
  font-size: clamp(1.7rem, 7vw, 3rem);
}

.status {
  margin: 0.4rem 0 0;
  color: #f1d999;
  font-weight: 500;
}

.name-block {
  margin-top: auto;
}

.label {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.owner-name {
  margin: 0.35rem 0 0;
  font-size: clamp(1.5rem, 7vw, 2.7rem);
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
  text-shadow: 0 0 22px var(--gold-glow);
}

.meta-row {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  color: #f0dbab;
  font-size: 0.8rem;
  opacity: 0.92;
}

.share-btn,
.confirm-btn {
  width: 100%;
  border: 1px solid rgba(233, 193, 102, 0.55);
  border-radius: 16px;
  background: linear-gradient(145deg, #b78e3d, #dfbc70);
  color: #181204;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.share-btn {
  padding: 0.95rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  display: grid;
  place-items: center;
  padding: 1rem;
  z-index: 3;
}

.modal.hidden {
  display: none;
}

.modal-panel {
  width: min(450px, 100%);
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(216, 177, 90, 0.15), #0c0c0c 48%);
  padding: 1.2rem;
  display: grid;
  gap: 0.8rem;
}

h2 {
  margin: 0;
}

.modal-panel p,
.modal-panel label,
.modal-panel legend {
  margin: 0;
  color: #e8d3a0;
}

fieldset {
  margin: 0;
  border: 1px solid rgba(223, 188, 112, 0.28);
  border-radius: 12px;
  padding: 0.75rem;
  display: grid;
  gap: 0.5rem;
}

fieldset label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#nicknameInput {
  background: rgba(255, 242, 214, 0.04);
  border: 1px solid rgba(223, 188, 112, 0.45);
  border-radius: 12px;
  padding: 0.85rem;
  color: var(--text);
  font: inherit;
}

.confirm-btn {
  padding: 0.88rem;
}
