/* まだ持っていない子を押した時の「ことわり」演出（js/nope.js）。字幕の層はタップを遮らない */
.card.locked.nope-able { cursor: pointer; }
/* 影のカードの光: locked の暗さ（brightness .25）は保ったまま、外側にだけ光をのせる */
.card.locked.nope-lit.nope-t1 { animation: nope-wobble .32s ease-out; }
.card.locked.nope-lit.nope-t2 { animation: nope-wobble .32s ease-out; filter: brightness(.45) grayscale(1) drop-shadow(0 0 3px #e6f4ff) drop-shadow(0 0 9px #bfe4ff); }
.card.locked.nope-lit.nope-t3 { filter: brightness(.6) grayscale(.7) drop-shadow(0 0 3px #fff3c4) drop-shadow(0 0 12px #ffd767); animation: nope-breathe 1.4s ease-in-out infinite alternate; z-index: 3; }
.card.locked.nope-lit.nope-t4 { filter: brightness(.5) grayscale(.6) drop-shadow(0 0 3px #fff) drop-shadow(0 0 10px #ffe9a8) drop-shadow(0 0 18px #c9a2ff); animation: nope-breathe 1.1s ease-in-out infinite alternate; z-index: 3; }
@keyframes nope-wobble { 25% { transform: rotate(-4deg); } 60% { transform: rotate(3deg); } }
@keyframes nope-breathe { from { transform: scale(1); } to { transform: scale(1.05); } }

.nope-layer { position: fixed; inset: 0; z-index: 900; pointer-events: none; }
.nope-layer.out { opacity: 0; transition: opacity .2s; }
/* ★1〜4: カードの上に吹き出し */
.nope-t1 .nope-say, .nope-t2 .nope-say { position: absolute; transform: translateY(-100%); width: max-content; max-width: min(250px, 72vw);
  background: #fffbea; color: #2a1d00; border: 2px solid #3a2a00; border-radius: 12px; padding: 5px 10px; font-size: 13px; line-height: 1.35;
  text-align: center; box-shadow: 0 3px 0 #0007; animation: nope-pop .18s ease-out both; }
.nope-t1 .nope-say::after, .nope-t2 .nope-say::after { content: ''; position: absolute; left: var(--ax, 50%); bottom: -8px; margin-left: -6px;
  border: 6px solid transparent; border-top-color: #3a2a00; border-bottom: 0; }
.nope-t2 .nope-say { background: linear-gradient(#ffffff, #e8f4ff); border-color: #2a4a7a; box-shadow: 0 3px 0 #0007, 0 0 10px #bfe4ff; }
.nope-t2 .nope-say::after { border-top-color: #2a4a7a; }
@keyframes nope-pop { from { transform: translateY(-80%) scale(.7); opacity: 0; } }

/* ★5〜7: 画面を少し暗くして、中央に格のある字幕。溜めの後（.speak）に、ゆっくり浮かぶ */
/* 押したカードにスポットライト（--x/--y はカードの中心）、まわりを暗く */
.nope-layer.nope-t3, .nope-layer.nope-t4 { background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), #0000 0, #0000 70px, #000a 190px); animation: nope-dim .35s ease-out both; }
.nope-layer.nope-t4 { background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), #ffe9a812 0, #0000 75px, #050214c8 200px); }
@keyframes nope-dim { from { opacity: 0; } }
.nope-t3 .nope-say, .nope-t4 .nope-say { position: absolute; left: 50%; top: var(--say-y, 42%); transform: translate(-50%, -50%); width: min(340px, calc(100vw - 32px));
  text-align: center; opacity: 0; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.nope-layer.nope-t3.speak .nope-say, .nope-layer.nope-t4.speak .nope-say { animation: nope-rise .5s ease-out both; }
.nope-t3 .nope-line, .nope-t4 .nope-line { font-size: 19px; letter-spacing: 2px; line-height: 1.45; color: #fff6d6; font-weight: normal;
  text-shadow: 0 0 8px #000, 0 0 14px #f2c14e, 0 2px 0 #000; }
.nope-t4 .nope-line { font-size: 21px; color: #fff; text-shadow: 0 0 8px #000, 0 0 16px #c9a2ff, 0 0 26px #ffe9a8, 0 2px 0 #000; }
.nope-star { font-size: 13px; color: #ffd767; letter-spacing: 3px; text-shadow: 0 0 6px #000, 0 0 10px #f2b630; }
.nope-tag { font-size: 11px; opacity: .75; letter-spacing: 2px; color: #e9e2ff; text-shadow: 0 1px 2px #000; }
.nope-t3 .nope-say::before, .nope-t4 .nope-say::before { content: ''; position: absolute; left: 6%; right: 6%; top: 50%; height: 64px; margin-top: -32px; z-index: -1;
  background: linear-gradient(90deg, #0000, #000a 20%, #000a 80%, #0000); }
@keyframes nope-rise { from { opacity: 0; transform: translate(-50%, -40%); letter-spacing: 6px; } to { opacity: 1; transform: translate(-50%, -50%); } }
@media (prefers-reduced-motion: reduce) {
  .card.locked.nope-lit { animation: none !important; }
  .nope-layer, .nope-layer .nope-say { animation-duration: .01s !important; }
}
