:root {
  color-scheme: dark;
  --bg: #030303;
  --text: #f6f2e9;
  --muted: #aaa096;
  --line: rgba(246, 242, 233, 0.18);
  --gold: #d7b56d;
  --gold-soft: rgba(215, 181, 109, 0.24);
  --red: #7d1d2c;
  --shadow: rgba(215, 181, 109, 0.34);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
  background:
    radial-gradient(circle at 50% 18%, rgba(125, 29, 44, 0.3), transparent 32rem),
    radial-gradient(circle at 50% 72%, rgba(215, 181, 109, 0.12), transparent 24rem),
    linear-gradient(180deg, #090607 0%, var(--bg) 58%, #000 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

.app {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 28px 18px;
}

.stage {
  width: min(100%, 430px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
}

h1 {
  margin: 0;
  font-size: clamp(2.3rem, 12vw, 4.4rem);
  font-weight: 800;
  letter-spacing: 0;
  text-shadow: 0 0 22px rgba(215, 181, 109, 0.22);
}

.result-wrap {
  width: 100%;
  min-height: 150px;
  display: grid;
  place-items: center;
  margin: 34px 0 26px;
  padding: 24px 18px;
  border-block: 1px solid var(--line);
  position: relative;
}

.result-wrap::before,
.result-wrap::after {
  content: "◆";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  font-size: 0.72rem;
}

.result-wrap::before {
  top: -8px;
}

.result-wrap::after {
  bottom: -8px;
}

.result {
  margin: 0;
  font-size: clamp(2rem, 10vw, 3.8rem);
  font-weight: 800;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.life-button,
.copy-button {
  width: 100%;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.life-button {
  min-height: 92px;
  color: #120c08;
  font-size: 2rem;
  background:
    linear-gradient(180deg, #ffe6a3, var(--gold) 58%, #a9782e);
  box-shadow:
    0 0 0 1px rgba(255, 236, 180, 0.34) inset,
    0 18px 48px var(--shadow);
}

.life-button:active {
  transform: translateY(2px) scale(0.99);
  box-shadow:
    0 0 0 1px rgba(255, 236, 180, 0.32) inset,
    0 9px 24px rgba(215, 181, 109, 0.22);
}

.copy-button {
  min-height: 54px;
  margin-top: 16px;
  color: var(--text);
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.copy-button:disabled {
  cursor: not-allowed;
  color: rgba(246, 242, 233, 0.38);
  background: rgba(255, 255, 255, 0.025);
}

.copy-button:not(:disabled):active {
  transform: translateY(1px);
}

.copy-status {
  min-height: 1.5em;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 360px) {
  .app {
    padding-inline: 14px;
  }

  .life-button {
    min-height: 84px;
  }
}
