/* ===============================
   全体背景（神社・和紙イメージ）
================================ */
body {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  background:
    radial-gradient(circle at top, #faf6ec 0%, #e6dcc6 70%),
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.05) 0,
      rgba(255,255,255,0.05) 2px,
      transparent 2px,
      transparent 6px
    );
  min-height: 100vh;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ===============================
   おみくじ本体（豪華和紙）
================================ */
.omikuji-paper {
  position: relative;
  background:
    linear-gradient(#fffef9, #f7f1e2);
  width: 300px;
  padding: 22px 18px 26px;
  border-radius: 10px;
  border: 4px solid transparent;
  background-clip: padding-box;
  box-shadow:
    0 18px 40px rgba(0,0,0,0.35),
    inset 0 0 40px rgba(210,180,120,0.2);
}

/* 金縁 */
.omikuji-paper::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    #d6b35a,
    #f7e6a1,
    #b08a2e
  );
  z-index: -1;
}

/* 上下の飾り線 */
.omikuji-paper::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    #b89b5e,
    transparent
  );
}

/* ===============================
   タイトル
================================ */
h1 {
  writing-mode: vertical-rl;
  margin: 0 auto 14px;
  font-size: 22px;
  letter-spacing: 0.18em;
  color: #3a2a14;
  text-shadow: 0 1px 0 #fff;
}

/* ===============================
   カウントダウン（中央表示）
================================ */
.countdown {
  position: absolute;
  top: 34%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 36px;
  font-weight: bold;
  color: #8a0000;
  text-shadow:
    0 0 8px rgba(138,0,0,0.5),
    0 1px 0 #fff;
  pointer-events: none;
}


/* ===============================
   結果表示（縦書き）
================================ */
.result {
  writing-mode: vertical-rl;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 auto 14px;
  min-height: 160px;
  color: #2f1f0f;
}

/* 各行 */
.row {
  margin-bottom: 6px;
}

/* 総合運（最重要） */
.row.total {
  font-size: 1.45em;
  font-weight: bold;
  margin-bottom: 14px;
  color: #8a0000;
  text-shadow:
    0 0 8px rgba(212,175,55,0.6),
    0 1px 0 #fff;
}

/* 項目名 */
.label {
  display: block;
  font-size: 0.7em;
  margin-bottom: 2px;
  letter-spacing: 0.12em;
  color: #5a4a32;
}

/* ===============================
   ボタン（神社朱色）
================================ */
button {
  display: block;
  margin: 8px auto 0;
  padding: 8px 24px;
  font-family: inherit;
  font-size: 15px;
  letter-spacing: 0.2em;
  color: #fff;
  background:
    linear-gradient(#c30000, #7a0000);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow:
    0 6px 14px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.3);
  transition: transform 0.1s, box-shadow 0.1s;
}

button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 8px 18px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.4);
}

button:active {
  transform: translateY(1px);
  box-shadow:
    0 3px 8px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(0,0,0,0.2);
}
/* ===============================
   金箔エフェクト
================================ */
.gold-foil {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 5;
}

.gold {
  position: absolute;
  top: -20px;
  width: 6px;
  height: 10px;
  background: linear-gradient(
    135deg,
    #fff3b0,
    #ffd700,
    #c9a300
  );
  opacity: 0.9;
  border-radius: 1px;
  animation: fall linear forwards;
}

@keyframes fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(360px) rotate(360deg);
    opacity: 0;
  }
}
.omikuji-paper.super {
  box-shadow:
    0 0 40px rgba(255,215,0,0.9),
    0 0 80px rgba(255,215,0,0.6),
    inset 0 0 40px rgba(255,240,200,0.8);
}
.stamp {
  position: absolute;
  right: 12px;
  bottom: 80px;
  font-size: 48px;
  color: rgba(200,0,0,0.8);
  transform: rotate(-15deg);
}

.luck-horizontal {
  display: block;
  writing-mode: horizontal-tb;
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 0.35em;
  margin: 10px 0 14px;
  color: #8a0000;
  position: relative;
}

.luck-horizontal::before,
.luck-horizontal::after {
  content: "─── ◆ ───";
  display: block;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: #b89b5e;
}

.luck-horizontal::before {
  margin-bottom: 6px;
}

.luck-horizontal::after {
  margin-top: 6px;
}
