@charset "UTF-8";
/* ==========================================================
   テーマ chillz_ninkyo：楽しむための仕掛け（fun.js が作る部品）
   丁半の運試し・御買上の千社札・花びら
   色は theme.css と同じ（黒漆・朱漆・金箔）。fun.css は後から読むので、
   変数が無いときにも崩れないよう、色はここにも書く。
   ========================================================== */

/* ---------- 花びら（DOM） ---------- */
.nk-petal {
  position: fixed;
  z-index: 100030;
  width: 11px;
  height: 11px;
  margin: -5px 0 0 -5px;
  pointer-events: none;
  background: #f6c9d4;
  border-radius: 80% 0 80% 0;
  box-shadow: inset -2px -2px 0 rgba(217, 102, 126, .35);
  animation: nk-petal 1.8s cubic-bezier(.2, .6, .4, 1) both;
}
.nk-petal.is-gold { background: #f0cf78; box-shadow: inset -2px -2px 0 rgba(156, 107, 22, .45); }
@keyframes nk-petal {
  from { opacity: 0; translate: 0 0; rotate: 0deg; scale: .4; }
  12% { opacity: 1; scale: 1; }
  to { opacity: 0; translate: var(--dx) var(--dy); rotate: var(--r); scale: .8; }
}

/* ---------- 御買上の千社札 ---------- */
.nk-fuda {
  position: fixed;
  left: 50%;
  top: 34%;
  z-index: 100020;
  translate: -50% -50%;
  pointer-events: none;
  text-align: center;
  animation: nk-fuda-out .5s ease 1.4s forwards;
}
.nk-fuda__in {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 128px;
  padding: 16px 10px 14px;
  background:
    linear-gradient(rgba(255, 255, 255, .3), transparent 40%),
    #f1e7d0;
  border: 4px solid #b3120f;
  box-shadow: 0 0 0 3px #f1e7d0, 0 0 0 5px #d9ae4f, 0 24px 60px rgba(0, 0, 0, .6);
  color: #1a0f05;
  rotate: -7deg;
  animation: nk-fuda-in .42s cubic-bezier(.3, 1.6, .5, 1) both;
}
/* 千社札の上の朱の帯 */
.nk-fuda__in::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: #b3120f; }
.nk-fuda__mon { display: block; width: 42px; height: 42px; margin-top: 4px; color: #b3120f; }
.nk-fuda__mon svg { width: 100%; height: 100%; }
.nk-fuda__in b { font-family: "Yuji Boku", "Shippori Mincho B1", serif; font-size: 44px; font-weight: normal; line-height: 1.02; writing-mode: vertical-rl; letter-spacing: .04em; }
.nk-fuda__in small { padding-top: 6px; border-top: 1px solid rgba(26, 15, 5, .4); font-family: "Shippori Antique B1", serif; font-size: 10px; letter-spacing: .15em; }
.nk-fuda__sub {
  margin: 20px 0 0;
  color: #f2d27c;
  font-family: "Shippori Antique B1", "Shippori Mincho B1", serif;
  font-size: 15px;
  letter-spacing: .3em;
  text-shadow: 0 2px 8px #000, 0 0 2px #000;
  animation: nk-fade .5s ease .3s backwards;
}
@keyframes nk-fuda-in {
  from { opacity: 0; scale: 2.6; rotate: -22deg; filter: blur(4px); }
  60% { opacity: 1; scale: .92; rotate: -5deg; filter: blur(0); }
  to { opacity: 1; scale: 1; rotate: -7deg; }
}
@keyframes nk-fuda-out { to { opacity: 0; translate: -50% -62%; } }
@keyframes nk-fade { from { opacity: 0; translate: 0 -10px; } }
.theme-nk .ec-cartNavi.nk-bump { animation: nk-bump .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes nk-bump { 30% { scale: 1.18; rotate: -4deg; } 60% { scale: .96; rotate: 2deg; } }

/* カートに入れたあとの小窓（元は白）：黒漆に金の縁、朱の影 */
.theme-nk .ec-modal .ec-modal-wrap {
  background: #17110e;
  color: #f1e7d0;
  border: 2px solid #d9ae4f;
  border-radius: 0;
  box-shadow: inset 0 0 0 4px #17110e, inset 0 0 0 5px rgba(217, 174, 79, .35), 10px 10px 0 #b3120f;
}
.theme-nk .ec-modal #ec-modal-header { color: #f1e7d0; font-family: "Shippori Antique B1", serif; letter-spacing: .15em; }
.theme-nk .ec-modal .ec-modal-close .ec-icon img { filter: invert(1); }
.theme-nk .ec-modal .ec-modal-box { background: transparent; border: 0; box-shadow: none; }

/* ==========================================================
   本日ノ運試シ「丁半」。スマホを主に作る。
   ========================================================== */
html.fun-lock, html.fun-lock body { overflow: hidden; }

/* ---------- 入り口：左端の細い木札 ---------- */
.nk-tab {
  position: fixed;
  left: 0;
  bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  z-index: 8000;
  display: grid;
  place-items: center;
  width: 26px;
  height: 84px;
  padding: 0;
  border: 0;
  border-radius: 0 3px 3px 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .3), transparent 40%),
    repeating-linear-gradient(92deg, #e8d6b0 0 3px, #dcc79c 3px 5px, #ead9b5 5px 9px);
  box-shadow: inset 0 0 0 2px #b3120f, inset 0 0 0 3px #f1e7d0, 3px 4px 12px rgba(0, 0, 0, .55);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: translate .3s, opacity .3s;
}
/* 見た目は細いが、押せる所は 44px 以上 */
.nk-tab::before { content: ""; position: absolute; left: 0; top: -6px; bottom: -6px; width: 48px; }
.nk-tab__txt { writing-mode: vertical-rl; color: #1a0f05; font-family: "Yuji Boku", "Shippori Mincho B1", serif; font-size: 17px; line-height: 1; letter-spacing: .1em; }
.nk-tab.is-away { translate: -100% 0; opacity: 0; }
.nk-tab:active { translate: 3px 0; }
.nk-tab:focus-visible { outline: 2px solid #f2d27c; outline-offset: 3px; }
.nk-tab.is-new::after {
  content: "";
  position: absolute;
  top: -5px;
  right: -5px;
  width: 12px;
  height: 12px;
  rotate: 45deg;
  background: #e2362a;
  box-shadow: 0 0 0 2px #0b0908;
  animation: nk-dot 2s ease-in-out infinite;
}
@keyframes nk-dot { 50% { scale: 1.3; } }

/* ---------- 入り口：トップの金屏風の札 ---------- */
.nk-luck { position: relative; z-index: 3; padding: 0 16px; margin: 22px 0 8px; }
.nk-luck__btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 560px;
  min-height: 92px;
  margin: 0 auto;
  padding: 14px 14px 14px 16px;
  border: 3px solid #b3120f;
  border-radius: 0;
  box-shadow: 0 0 0 2px #d9ae4f, 0 14px 30px rgba(0, 0, 0, .7);
  color: #1a0f05;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nk-luck__tsubo { flex: none; width: 58px; height: 54px; }
.nk-luck__tsubo svg { width: 100%; height: 100%; }
.nk-luck__btn:not(.is-done) .nk-luck__tsubo { transform-origin: 50% 100%; animation: nk-rattle 3.6s ease-in-out 1.5s infinite; }
.nk-luck__img { flex: none; width: 58px; height: 58px; object-fit: cover; border: 2px solid #1a0f05; }
.nk-luck__dice { flex: none; display: flex; gap: 4px; }
.nk-luck__dice svg { width: 28px; height: 28px; }
.nk-luck__txt { flex: 1; min-width: 0; }
.nk-luck__txt b { display: block; font-family: "Yuji Boku", "Shippori Mincho B1", serif; font-size: 24px; font-weight: normal; line-height: 1.2; letter-spacing: .04em; }
.nk-luck__txt b em { font-style: normal; color: #3a2408; font-size: .82em; }
.nk-luck__txt b em.is-win { color: #b3120f; }
.nk-luck__txt small { display: block; margin-top: 4px; color: #3a2408; font-family: "Shippori Mincho B1", serif; font-size: 12px; font-weight: 800; line-height: 1.6; }
.nk-luck__btn.is-done small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nk-luck__btn.is-done .nk-luck__txt b { font-size: 17px; }
.nk-luck__btn.is-done .nk-luck__txt b em { display: block; font-size: 24px; line-height: 1.15; }
.nk-luck__go {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  min-height: 70px;
  background: #b3120f;
  color: #ffe7a8;
  font-family: "Yuji Boku", "Shippori Mincho B1", serif;
  font-size: 21px;
  line-height: 1.1;
  writing-mode: vertical-rl;
  box-shadow: 0 0 0 2px #1a0f05, 3px 3px 0 #1a0f05;
  transition: translate .12s, box-shadow .12s;
}
.nk-luck__btn:active .nk-luck__go { translate: 2px 2px; box-shadow: 0 0 0 2px #1a0f05, 1px 1px 0 #1a0f05; }
@keyframes nk-rattle { 0%, 82%, 100% { rotate: 0deg; } 85% { rotate: -9deg; } 88% { rotate: 8deg; } 91% { rotate: -6deg; } 94% { rotate: 4deg; } }

/* ---------- 小窓（スマホは下から出る） ---------- */
.nk-sheet { position: fixed; inset: 0; z-index: 100010; font-family: "Shippori Mincho B1", serif; }
.nk-sheet__scrim { position: absolute; inset: 0; background: rgba(5, 4, 3, .8); opacity: 0; transition: opacity .28s; }
.nk-sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  max-height: 94vh;
  max-height: 94svh;
  background:
    radial-gradient(ellipse 60% 40% at 15% 20%, rgba(70, 10, 10, .35), transparent 70%),
    #0b0908;
  border-top: 2px solid #d9ae4f;
  color: #f1e7d0;
  box-shadow: 0 -20px 50px rgba(0, 0, 0, .6);
  translate: 0 105%;
  transition: translate .32s cubic-bezier(.2, .8, .2, 1), transform .2s;
}
/* 小窓の上の縁に金の鱗文様 */
.nk-sheet__uroko { position: absolute; left: 0; right: 0; top: -12px; height: 10px; background: linear-gradient(135deg, #d9ae4f 25%, transparent 25%) 0 0 / 16px 16px, linear-gradient(225deg, #d9ae4f 25%, transparent 25%) 0 0 / 16px 16px; rotate: 180deg; }
.nk-sheet.is-in .nk-sheet__scrim { opacity: 1; }
.nk-sheet.is-in .nk-sheet__panel { translate: 0 0; }
.nk-sheet.is-out .nk-sheet__panel { transition-duration: .25s; }
.nk-sheet__grip { flex: none; height: 24px; display: grid; place-items: center; }
.nk-sheet__grip::before { content: ""; width: 44px; height: 5px; border-radius: 3px; background: rgba(217, 174, 79, .5); }
.nk-sheet__x {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid #d9ae4f;
  background: #b3120f;
  box-shadow: inset 0 0 0 2px #5a0806;
  color: #ffe7a8;
  font-family: "Shippori Antique B1", serif;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.nk-sheet__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 18px calc(18px + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
  overflow-x: clip;
}
.nk-sheet__ttl {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin: 6px 56px 10px;
  font-family: "Yuji Boku", "Shippori Mincho B1", serif;
  font-size: 28px;
  letter-spacing: .08em;
  text-align: center;
  background: linear-gradient(180deg, #fff1c2 0%, #e9c46a 35%, #9c6b16 55%, #f2d27c 78%, #b98a2c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nk-sheet__ttl small { font-family: "Shippori Antique B1", serif; font-size: 13px; letter-spacing: .3em; -webkit-text-fill-color: #e2362a; }

/* 盆茣蓙：畳に白い晒の布を張った場。奥へ倒して置く（画面の幅の中に収める。横にはみ出さない） */
.nk-bon {
  position: relative;
  height: 252px;
  margin: 0;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
/* 奥の暗がり：天井の灯りが盆の上だけを照らす */
.nk-bon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 62% 56% at 50% 70%, rgba(255, 214, 150, .16), transparent 70%);
  pointer-events: none;
}
.nk-bon__cloth {
  position: absolute;
  left: 3%;
  right: 3%;
  bottom: 8px;
  height: 150px;
  transform: perspective(520px) rotateX(46deg);
  transform-origin: 50% 100%;
  /* 畳：い草の目と、黒地に金の畳縁 */
  background:
    linear-gradient(rgba(0, 0, 0, .35), rgba(0, 0, 0, .1)),
    repeating-linear-gradient(90deg, #6f6a3b 0 2px, #7d784a 2px 3px, #66612f 3px 5px);
  box-shadow: 0 0 0 1px #000, 0 18px 30px rgba(0, 0, 0, .7);
}
.nk-bon__cloth::before {
  /* 畳縁（上下） */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-image: repeating-linear-gradient(90deg, #111 0 6px, #b98a2c 6px 8px, #111 8px 14px) 10;
}
.nk-bon__cloth::after {
  /* 晒の白い布：少しの皺と、灯りの当たり方 */
  content: "";
  position: absolute;
  left: 9%;
  right: 9%;
  top: 18%;
  bottom: 16%;
  background:
    linear-gradient(100deg, transparent 30%, rgba(0, 0, 0, .05) 34%, transparent 38%, transparent 62%, rgba(0, 0, 0, .05) 66%, transparent 70%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .035) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 50% 45%, #fbf6ea, #ddd2b8 85%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .4);
}
.nk-dice { position: absolute; left: 50%; bottom: 54px; display: flex; gap: 8px; translate: -50% 0; opacity: 0; }
.nk-die { display: block; width: 56px; height: 56px; }
.nk-die svg { width: 100%; height: 100%; overflow: visible; }
.nk-die + .nk-die { margin-top: 10px; rotate: 6deg; }
.nk-tsubo {
  position: absolute;
  left: 50%;
  bottom: 42px;
  width: 126px;
  height: 117px;
  margin-left: -63px;
  cursor: grab;
  outline: none;
  transition: transform .2s;
  -webkit-tap-highlight-color: transparent;
}
.nk-tsubo svg { width: 100%; height: 100%; filter: drop-shadow(0 12px 10px rgba(0, 0, 0, .65)); }
.nk-tsubo:focus-visible { outline: 2px solid #f2d27c; outline-offset: 4px; }
/* 振っている間は、少し持ち上げた位置。下に影が落ちる */
.nk-bon:not(.is-down) .nk-tsubo { bottom: 84px; }
.nk-bon:not(.is-down)::after { content: ""; position: absolute; left: 50%; bottom: 44px; width: 110px; height: 14px; margin-left: -55px; border-radius: 50%; background: rgba(0, 0, 0, .35); filter: blur(4px); }
.nk-tsubo.is-auto { animation: nk-shake .23s linear infinite; }
@keyframes nk-shake { 25% { transform: translate(-14px, -14px) rotate(-12deg); } 75% { transform: translate(12px, 8px) rotate(10deg); } }
/* 振った手応え：壺の中で賽が鳴る */
.nk-tsubo.is-hit::after {
  content: "カラ";
  position: absolute;
  right: -26px;
  top: 4px;
  color: #f2d27c;
  font-family: "Shippori Antique B1", serif;
  font-size: 14px;
  animation: nk-kara .35s ease-out forwards;
}
@keyframes nk-kara { from { opacity: 1; translate: 0 0; } to { opacity: 0; translate: 6px -14px; } }
/* 伏せる：上から叩きつける */
.nk-bon.is-down .nk-tsubo { animation: nk-slam .38s cubic-bezier(.5, 0, .7, 1.4); }
.nk-bon.is-down .nk-bon__cloth { animation: nk-thud .38s ease-out .2s; }
@keyframes nk-slam { from { transform: translateY(-56px) rotate(-8deg); } 70% { transform: translateY(4px); } }
@keyframes nk-thud { 40% { filter: brightness(1.15); } }
/* 開ける：壺を奥へ持ち上げて脇に置き、賽が見える（盆の中に収める） */
.nk-bon.is-open .nk-tsubo,
.nk-bon.is-still .nk-tsubo { transform: translate(92px, -60px) rotate(18deg) scale(.66) !important; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.nk-bon.is-open .nk-dice { opacity: 1; transition: opacity .2s .15s; }
.nk-bon.is-open:not(.is-still) .nk-die { animation: nk-tumble .6s cubic-bezier(.2, .8, .3, 1.2) .1s backwards; }
.nk-bon.is-open:not(.is-still) .nk-die + .nk-die { animation-delay: .18s; }
@keyframes nk-tumble { from { transform: translateY(-12px) rotate(-200deg) scale(.6); } }
/* 掛け声：盆の上、黒漆の細い札に金の字 */
.nk-bon__call {
  position: absolute;
  left: 50%;
  top: 8px;
  translate: -50% 0;
  margin: 0;
  padding: 4px 14px 5px 18px;
  min-height: 0;
  border: 1px solid rgba(217, 174, 79, .55);
  background: rgba(11, 9, 8, .85);
  color: #f2d27c;
  font-family: "Shippori Antique B1", serif;
  font-size: 16px;
  letter-spacing: .35em;
  white-space: nowrap;
  text-align: center;
}
.nk-bon__call:empty { display: none; }

/* 振った回数：四つの菱が朱に灯る */
.nk-meter { display: flex; justify-content: center; gap: 14px; height: auto; width: auto; margin: 14px auto 10px; background: none; }
.nk-meter i { display: block; width: 12px; height: 12px; rotate: 45deg; border: 1px solid rgba(217, 174, 79, .7); background: transparent; transition: background .15s, box-shadow .15s; }
.nk-meter i.is-on { background: #e2362a; border-color: #f2d27c; box-shadow: 0 0 10px rgba(226, 54, 42, .7); }
.nk-sheet__hint { margin: 0 0 8px; text-align: center; }
.nk-sheet__hint b { display: block; font-size: 15px; letter-spacing: .04em; }
.nk-sheet__hint span { display: block; margin-top: 4px; color: #b4a68c; font-size: 12px; }
[hidden].nk-meter, [hidden].nk-sheet__hint, [hidden].nk-bet { display: none; }

/* 張る：木の張り札に墨の「丁」「半」。上に朱の紐、押すと朱の判子「張」 */
.nk-bet { margin-top: 16px; animation: nk-rise .4s cubic-bezier(.2, .8, .2, 1); }
.nk-bet__ttl { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: #f1e7d0; font-family: "Shippori Antique B1", serif; font-size: 14px; letter-spacing: .35em; }
.nk-bet__ttl::before,
.nk-bet__ttl::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(217, 174, 79, .7)); }
.nk-bet__ttl::after { background: linear-gradient(90deg, rgba(217, 174, 79, .7), transparent); }
.nk-bet__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 0 6px; }
.nk-bet__btn {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 14px 0 0;
  border: 0;
  background: none;
  color: #f1e7d0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity .3s;
}
/* 吊るす紐 */
.nk-bet__btn::before { content: ""; position: absolute; left: 50%; top: 0; width: 22px; height: 18px; margin-left: -11px; border: 2px solid #c8180f; border-bottom: 0; border-radius: 12px 12px 0 0; }
.nk-bet__fuda {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 140px;
  height: 128px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .12), transparent 18%, transparent 82%, rgba(0, 0, 0, .16)),
    repeating-linear-gradient(91deg, #e8d6b0 0 3px, #dcc79c 3px 5px, #ead9b5 5px 9px, #d9c398 9px 10px);
  clip-path: polygon(0 12px, 50% 0, 100% 12px, 100% 100%, 0 100%);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .18);
  transition: translate .12s, filter .12s;
}
/* 紐の穴と、内側の朱の細い枠 */
.nk-bet__fuda::before { content: ""; position: absolute; top: 10px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #2a170a; }
.nk-bet__fuda::after { content: ""; position: absolute; inset: 22px 9px 9px; border: 1px solid rgba(179, 18, 15, .55); pointer-events: none; }
.nk-bet__fuda b { margin-top: 10px; color: #120a05; font-family: "Yuji Boku", "Shippori Mincho B1", serif; font-size: 64px; font-weight: normal; line-height: 1; filter: url(#nk-rough2); }
.nk-bet__btn small { color: #d8cbb2; font-family: "Shippori Antique B1", serif; font-size: 11px; letter-spacing: .4em; }
.nk-bet__btn:active .nk-bet__fuda { translate: 0 3px; filter: brightness(.95); }
.nk-bet__btn:focus-visible { outline: 2px solid #f2d27c; outline-offset: 4px; }
.nk-bet__btn:disabled { cursor: default; opacity: .35; }
.nk-bet__btn.is-on:disabled { opacity: 1; }
/* 張った札に朱の判子「張」 */
.nk-bet__btn.is-on .nk-bet__fuda::after { content: "張"; inset: auto 6px 10px auto; display: grid; place-items: center; width: 40px; height: 40px; border: 0; background: #e2362a; color: #f1e7d0; font-family: "Shippori Antique B1", serif; font-size: 20px; rotate: -10deg; box-shadow: inset 0 0 0 2px #e2362a, inset 0 0 0 3px rgba(241, 231, 208, .75); filter: url(#nk-rough2); animation: nk-stamp .4s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes nk-rise { from { opacity: 0; translate: 0 16px; } }

/* 結果 */
.nk-sheet__result { padding-top: 10px; }
.nk-sheet__result.is-rise { animation: nk-rise .5s cubic-bezier(.2, .8, .2, 1) both; }
.nk-res {
  position: relative;
  margin-top: 14px;
  padding: 18px 16px 14px;
  background: linear-gradient(rgba(255, 255, 255, .28), transparent 40%), #f1e7d0;
  border: 3px solid #b3120f;
  box-shadow: 0 0 0 2px #d9ae4f, 8px 8px 0 #000;
  color: #1a0f05;
  text-align: center;
}
.nk-res.is-lose { border-color: #3a2408; box-shadow: 0 0 0 2px #8c7a58, 8px 8px 0 #000; }
.nk-res__call { margin: 0; font-family: "Yuji Boku", "Shippori Mincho B1", serif; font-size: 30px; line-height: 1.2; letter-spacing: .06em; }
.nk-res__call b { font-weight: normal; font-size: 1.6em; color: #b3120f; }
.nk-res.is-lose .nk-res__call b { color: #1a0f05; }
.nk-res__bet { position: relative; margin: 4px 0 8px; color: #3a2408; font-family: "Shippori Antique B1", serif; font-size: 13px; letter-spacing: .2em; }
.nk-res__stamp {
  position: absolute;
  right: -4px;
  top: -64px;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  background: #e2362a;
  color: #f1e7d0;
  font-family: "Shippori Antique B1", serif;
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: .06em;
  writing-mode: vertical-rl;
  rotate: 8deg;
  box-shadow: inset 0 0 0 3px #e2362a, inset 0 0 0 5px rgba(241, 231, 208, .75);
  filter: url(#nk-rough2);
  animation: nk-stamp .5s cubic-bezier(.3, 1.6, .5, 1) .35s backwards;
}
.nk-res.is-lose .nk-res__stamp { background: #3a2f25; box-shadow: inset 0 0 0 3px #3a2f25, inset 0 0 0 5px rgba(241, 231, 208, .55); }
.nk-res__msg { margin: 0; padding-top: 10px; border-top: 1px solid rgba(26, 15, 5, .25); font-size: 14px; font-weight: 800; line-height: 1.8; }
@keyframes nk-stamp { from { opacity: 0; scale: 2.4; filter: blur(3px); } 70% { opacity: 1; scale: .92; } to { opacity: 1; scale: 1; } }

/* 本日ノ縁起物（本物の商品）：金蒔絵の縁 */
.nk-lucky { margin-top: 22px; }
.nk-lucky__ttl { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; color: #e9c46a; font-family: "Shippori Antique B1", serif; font-size: 14px; letter-spacing: .3em; }
.nk-lucky__ttl::before,
.nk-lucky__ttl::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(217, 174, 79, .7)); }
.nk-lucky__ttl::after { background: linear-gradient(90deg, rgba(217, 174, 79, .7), transparent); }
.nk-lucky__card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border: 1px solid #d9ae4f;
  box-shadow: inset 0 0 0 3px #17110e, inset 0 0 0 4px rgba(217, 174, 79, .3);
  background: #17110e;
  color: #f1e7d0 !important;
  text-decoration: none !important;
  animation: nk-rise .5s cubic-bezier(.2, .8, .2, 1) .35s backwards;
}
.nk-lucky__card img { flex: none; width: 88px; height: 88px; object-fit: cover; border: 2px solid #b3120f; }
.nk-lucky__info { min-width: 0; }
.nk-lucky__info b { display: block; font-size: 15px; font-weight: 800; line-height: 1.5; }
.nk-lucky__info em { display: block; margin-top: 4px; color: #e9c46a; font-family: "Shippori Antique B1", serif; font-size: 19px; font-style: normal; }

/* 押すところ（親指の届く下のほうに、大きく） */
.nk-sheet__acts { position: sticky; bottom: calc(-18px - env(safe-area-inset-bottom, 0px)); display: grid; gap: 16px; margin: 18px -18px 0; padding: 16px 18px calc(14px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(transparent, #0b0908 18%); }
.nk-act {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 14px;
  border: 1px solid #d9ae4f;
  border-radius: 0;
  background: transparent;
  color: #d9ae4f !important;
  font-family: "Shippori Antique B1", "Shippori Mincho B1", serif;
  font-size: 16px;
  letter-spacing: .2em;
  text-decoration: none !important;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nk-act--main { border: 3px solid #b3120f; box-shadow: 0 0 0 2px #d9ae4f; color: #1a0f05 !important; font-size: 17px; }
.nk-act--main:active { translate: 0 2px; }
.nk-act--sub:active { background: rgba(217, 174, 79, .15); }
.nk-sheet__note { margin: 0; color: #b4a68c; font-size: 12px; text-align: center; letter-spacing: .06em; }
/* 金箔の面（fun.css だけで使えるように、ここにも） */
.nk-sheet .nk-gold,
.nk-luck .nk-gold {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(255, 236, 170, .55), transparent 45%),
    radial-gradient(ellipse at 80% 75%, rgba(120, 72, 8, .45), transparent 50%),
    linear-gradient(118deg, #a5741c 0%, #edc96c 26%, #b8842a 47%, #f6dc8e 63%, #b9852b 82%, #e8c264 100%);
}

/* ---------- パソコン：小窓は真ん中 ---------- */
@media screen and (min-width: 768px) {
  .nk-sheet__panel {
    left: 50%;
    top: 50%;
    bottom: auto;
    width: 460px;
    max-height: 90vh;
    border: 2px solid #d9ae4f;
    translate: -50% -46%;
    opacity: 0;
    transition: translate .3s cubic-bezier(.2, .8, .2, 1), opacity .25s;
    box-shadow: 12px 12px 0 #b3120f, 0 30px 60px rgba(0, 0, 0, .6);
  }
  .nk-sheet.is-in .nk-sheet__panel { translate: -50% -50%; opacity: 1; }
  .nk-sheet__grip, .nk-sheet__uroko { display: none; }
  .nk-sheet__body { padding-top: 18px; }
  .nk-luck { margin-top: 30px; }
  .nk-act--sub:hover { background: rgba(217, 174, 79, .12); }
  .nk-bet__btn:not(:disabled):hover .nk-bet__fuda { translate: 0 -3px; }
  .nk-tab:hover { translate: 4px 0; }
  .nk-fuda { top: 42%; }
}

@media (prefers-reduced-motion: reduce) {
  .nk-fuda, .nk-fuda *, .nk-sheet, .nk-sheet *, .nk-tab, .nk-tab *, .nk-luck * { animation: none !important; transition: none !important; }
  .nk-fuda { animation: nk-fuda-out .01s linear 1s forwards !important; }
}
@media print { .nk-tab, .nk-sheet, .nk-fuda, .nk-luck, .nk-petal { display: none !important; } }

/* サイトのポップアップ（PopupBuilder）もテーマの色に */
.theme-nk .popup-builder { --popup-bg: #17110e; --popup-text: #f1e7d0; --popup-btn: #b3120f; }
