/* ネオン777タワー v2 */
:root, :root[data-theme], :root:not([data-theme="light"]) {
  --bg: #050407; --surface: #110d16; --surface-2: #1a1420; --text: #f3ece0; --text-sub: #a99e8f; --line: #3a2b2b;
  --accent: #c8102e; --accent-ink: #fff; --gold: #e7b75a; --gold2: #ffd98a; --blood: #8a0f1c; --cyan: #7fe7ff;
  color-scheme: dark;
}
body { background: #050407; color: #f3ece0; }
body .mn-header { background: rgba(5, 4, 7, .94); color: #f3ece0; border-color: #2a1f1f; }
.mn-about, .mn-footer { color: #d6cbbb; }
.mn-about a, .mn-footer a { color: #e7b75a; }
.mn-modal { background: #120e14; color: #f3ece0; border: 1px solid #4a3426; box-shadow: 0 0 60px rgba(0, 0, 0, .9); }
.mn-modal-bg { z-index: 2700 !important; }
.mn-toast { background: #e7b75a; color: #170d00; font-weight: 800; top: 70px; bottom: auto; z-index: 3000; }
.mn-small, .mn-muted { color: #a99e8f; }

#app.nx-app { max-width: 600px; padding: 6px 10px 24px; user-select: none; -webkit-user-select: none; }
.nx-small { font-size: 13px; color: #a99e8f; }
.nx-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.nx-row.nx-end { justify-content: flex-end; }
.nx-h { font-size: 15px; margin: 18px 0 8px; color: #e7b75a; letter-spacing: .12em; font-family: var(--font-serif); }
.nx-noimg { display: inline-flex; align-items: center; justify-content: center; }

.nx-btn { min-height: 46px; padding: 10px 16px; border-radius: 4px; border: 1px solid #5a4430; background: linear-gradient(180deg, #1d1611, #0f0b08); color: #f3ece0; font-weight: 800; cursor: pointer; touch-action: manipulation; letter-spacing: .04em; }
.nx-btn:active { transform: scale(.97); }
.nx-btn.nx-primary { background: linear-gradient(180deg, #d4142f, #7a0a17); border-color: #e7b75a; color: #fff; box-shadow: 0 0 18px rgba(200, 16, 46, .45), inset 0 1px 0 rgba(255, 255, 255, .25); }
.nx-btn.nx-big { width: 100%; min-height: 56px; font-size: 17px; }
.nx-btn:disabled { opacity: .45; }
.nx-link { background: none; border: 0; color: #a99e8f; text-decoration: underline; cursor: pointer; padding: 8px; }
.nx-chip { min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid #4a3a2a; background: rgba(0, 0, 0, .4); color: #e8dccb; font-size: 13px; font-weight: 700; cursor: pointer; }

/* ===== タイトル ===== */
.nx-title { position: relative; text-align: center; overflow: hidden; min-height: calc(100vh - 56px); min-height: calc(100svh - 56px); border-radius: 6px; display: flex; align-items: flex-end; justify-content: center; background: #000; }
.nx-title-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; opacity: .85; }
.nx-title::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .2) 40%, rgba(5, 4, 7, .95)); }
.nx-title-in { position: relative; z-index: 2; padding: 20px 10px 18px; }
.nx-title-k { margin: 0; font-size: 12px; letter-spacing: .4em; color: #d6cbbb; }
.nx-logo { margin: 6px 0 8px; font-size: clamp(44px, 13vw, 70px); font-weight: 900; line-height: .95; font-family: "Arial Black", Impact, sans-serif; display: flex; flex-direction: column; align-items: center; }
.nx-small-logo { font-size: 44px; }
.nx-neon-p { color: #ffe0e6; text-shadow: 0 0 6px #ff1a4a, 0 0 18px #c8102e, 0 0 44px #c8102e; animation: nx-flick 4s infinite; }
.nx-neon-g { color: #fff3d0; font-size: 1.35em; text-shadow: 0 0 6px #ffd98a, 0 0 22px #e7b75a, 0 0 50px #b8860b; }
.nx-neon-c { color: #e6faff; text-shadow: 0 0 6px #7fe7ff, 0 0 18px #2aa8c8, 0 0 40px #0a6a8a; animation: nx-flick 5.5s 1s infinite; }
@keyframes nx-flick { 0%, 92%, 100% { opacity: 1; } 93% { opacity: .35; } 94% { opacity: 1; } 96% { opacity: .5; } 97% { opacity: 1; } }
.nx-title-sub { margin: 4px auto 0; max-width: 420px; font-size: 14px; color: #efe5d3; text-shadow: 0 2px 8px #000; }
.nx-home .nx-big { margin-top: 10px; }
.nx-diffs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.nx-diff { padding: 8px 2px; border-radius: 4px; border: 1px solid #3a2b2b; background: #0f0b0d; color: #f3ece0; cursor: pointer; min-width: 0; }
.nx-diff b { display: block; font-size: 12px; }
.nx-diff span { display: block; font-size: 10px; color: #a99e8f; line-height: 1.3; }
.nx-diff.on { border-color: #e7b75a; box-shadow: 0 0 12px rgba(231, 183, 90, .4); background: #22170a; }
.nx-diff.locked { opacity: .4; }
.nx-daily { margin-top: 18px; padding: 12px 14px; border-radius: 4px; border: 1px solid #5a4430; background: rgba(231, 183, 90, .05); }
.nx-daily b { color: #e7b75a; }
.nx-records { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.nx-records div { background: #0f0b0d; border: 1px solid #2a1f1f; border-radius: 4px; padding: 8px 10px; }
.nx-records span { display: block; font-size: 11px; color: #a99e8f; }
.nx-records b { font-size: 17px; color: #e7b75a; }

/* ===== 物語 ===== */
.nx-story { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; padding: 10px 2px; }
.nx-story-pic { position: relative; border-radius: 4px; overflow: hidden; margin-bottom: 14px; box-shadow: 0 10px 40px rgba(0, 0, 0, .8); }
.nx-story-pic img { display: block; width: 100%; max-height: 46vh; object-fit: cover; filter: contrast(1.05) saturate(.9); }
.nx-story-pic .nx-story-por { position: absolute; right: 0; bottom: 0; width: 34%; max-height: none; border-left: 2px solid #c8102e; }
.nx-story-k { color: #c8102e; font-weight: 800; letter-spacing: .25em; font-size: 12px; margin: 0 0 8px; }
.nx-story-t p { font-family: var(--font-serif); font-size: 17px; line-height: 2; margin: 0 0 1em; white-space: pre-wrap; }
.nx-fade { animation: nx-fade .7s ease both; }
@keyframes nx-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* 割り込み会話（斜めのパネル） */
.nx-cut { position: fixed; inset: 0; z-index: 2400; cursor: pointer; background: rgba(0, 0, 0, .55); }
.nx-cut-bg { position: absolute; inset: 0; background: center/cover no-repeat; opacity: 0; transition: opacity .5s; filter: contrast(1.1) saturate(.85); }
.nx-cut.has-scene .nx-cut-bg { opacity: .9; }
.nx-cut-slash { position: absolute; left: -10%; right: -10%; bottom: 14%; height: 34%; background: #c8102e; transform: skewY(-8deg) translateX(-120%); box-shadow: 0 0 0 6px #000, 0 0 0 9px #e7b75a; }
.nx-cut.in .nx-cut-slash { animation: nx-slash .35s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes nx-slash { to { transform: skewY(-8deg) translateX(0); } }
.nx-cut-por { position: absolute; left: 0; bottom: 20%; width: min(48%, 300px); aspect-ratio: 3/4; overflow: hidden; clip-path: polygon(0 6%, 100% 0, 88% 100%, 0 100%); transform: translateX(-110%); filter: drop-shadow(8px 0 0 #000); }
.nx-cut.in .nx-cut-por { animation: nx-por .45s .08s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes nx-por { to { transform: none; } }
.nx-cut-por img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.nx-cut-box { position: absolute; left: 4%; right: 4%; bottom: 4%; min-height: 26%; background: rgba(5, 4, 7, .94); border: 2px solid #f3ece0; padding: 14px 16px 30px; transform: skewX(-4deg); box-shadow: 8px 8px 0 #c8102e; }
.nx-cut-box > * { transform: skewX(4deg); }
.nx-cut-name { display: inline-flex; gap: 8px; align-items: baseline; background: #f3ece0; color: #000; padding: 2px 12px; margin: -30px 0 8px -6px; font-family: var(--font-serif); }
.nx-cut-name b { font-size: 18px; }
.nx-cut-name span { font-size: 11px; }
.nx-cut-txt { font-family: var(--font-serif); font-size: 17px; line-height: 1.85; white-space: pre-wrap; min-height: 3.6em; }
.nx-cut-hint { position: absolute; right: 14px; bottom: 6px; font-size: 11px; color: #a99e8f; animation: nx-blink 1.2s infinite; }
@keyframes nx-blink { 50% { opacity: .2; } }
.nx-cut.no-por .nx-cut-slash { opacity: .7; }

/* ===== HUD ===== */
.nx-hud { position: sticky; top: 52px; z-index: 50; background: linear-gradient(180deg, #120c0e, #0a0709); border: 1px solid #3a2b2b; border-radius: 4px; padding: 8px 10px 8px; box-shadow: 0 6px 24px rgba(0, 0, 0, .7); }
.nx-hud-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.nx-floorname { font-size: 15px; color: #e7b75a; letter-spacing: .1em; font-family: var(--font-serif); white-space: nowrap; }
.nx-diffmark { font-size: 11px; color: #a99e8f; white-space: nowrap; }
.nx-hud-grid { display: grid; grid-template-columns: 1.4fr 1.3fr .8fr .8fr; gap: 6px; margin-top: 4px; }
.nx-hud-grid span { display: block; font-size: 10px; color: #a99e8f; white-space: nowrap; }
.nx-hud-grid b { display: block; font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nx-money { color: #ffd98a; text-shadow: 0 0 10px rgba(231, 183, 90, .5); }
.nx-money.short { color: #ff5a5a; text-shadow: 0 0 10px rgba(255, 30, 30, .6); }
.nx-bar { height: 5px; background: #2a1f1f; border-radius: 99px; margin-top: 6px; overflow: hidden; }
.nx-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #8a0f1c, #ff3b3b); transition: width .3s; }
.nx-bar.ok i { background: linear-gradient(90deg, #b8860b, #ffd98a); }
.nx-cons { display: flex; gap: 6px; margin-top: 8px; align-items: center; flex-wrap: wrap; }
.nx-consb { width: 44px; height: 44px; border-radius: 4px; border: 1px solid #5a4430; background: #000; padding: 2px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.nx-consb.empty { opacity: .35; font-size: 10px; color: #a99e8f; }
.nx-consb img { width: 100%; height: 100%; object-fit: contain; }
.nx-artsbtn { margin-left: auto; }
.nx-paybtn { width: 100%; margin-top: 8px; min-height: 46px; border: 0; border-radius: 4px; background: linear-gradient(180deg, #d4142f, #7a0a17); color: #fff; font-weight: 900; font-size: 16px; cursor: pointer; animation: nx-pulse 1s infinite alternate; }
@keyframes nx-pulse { to { box-shadow: 0 0 24px #c8102e; } }

/* ===== フロア ===== */
.nx-floorwrap { position: relative; z-index: 1; isolation: isolate; margin-top: 8px; border-radius: 4px; overflow: hidden; border: 1px solid #2a1f1f; box-shadow: 0 0 60px rgba(0, 0, 0, .9) inset; }
.nx-floor { position: relative; width: 100%; aspect-ratio: 9 / 15; background: #12070a center/cover no-repeat; cursor: pointer; overflow: hidden; }
.nx-floor::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 55%, transparent 30%, rgba(0, 0, 0, .75) 100%); pointer-events: none; z-index: 1; }
.nx-floor::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 200; opacity: .08; background-image: repeating-radial-gradient(circle at 17% 32%, #fff 0 1px, transparent 1px 3px); mix-blend-mode: overlay; animation: nx-grain .4s steps(2) infinite; }
@keyframes nx-grain { 50% { transform: translate(-2px, 1px); } }
.nx-trap { position: absolute; width: 22%; aspect-ratio: 1.4; transform: translate(-50%, -50%) perspective(300px) rotateX(55deg); border: 2px solid rgba(200, 16, 46, .5); box-shadow: 0 0 18px rgba(200, 16, 46, .3), inset 0 0 20px #000; background: repeating-linear-gradient(45deg, rgba(0, 0, 0, .35) 0 6px, rgba(40, 20, 20, .35) 6px 12px); z-index: 2; }
.nx-obj { position: absolute; transform: translate(-50%, -100%); background: none; border: 0; padding: 0; cursor: pointer; z-index: 10; display: flex; flex-direction: column; align-items: center; }
.nx-mach { width: 17%; }
.nx-mach.t2 { width: 21%; }
.nx-mach.sym { width: 18%; }
.nx-mach-img { width: 100%; display: block; -webkit-mask-image: radial-gradient(ellipse 52% 62% at 50% 56%, #000 60%, transparent 100%); mask-image: radial-gradient(ellipse 52% 62% at 50% 56%, #000 60%, transparent 100%); }
.nx-mach.locked .nx-mach-img { filter: grayscale(1) brightness(.35); }
.nx-mach.locked::after { content: '⛓'; position: absolute; top: 30%; font-size: 22px; opacity: .8; }
.nx-obj-label { font-size: 10px; font-weight: 800; color: #f3ece0; background: rgba(0, 0, 0, .7); padding: 1px 5px; border-radius: 2px; margin-top: -4px; white-space: nowrap; }
.nx-ev { font-size: 10px; color: #ffd98a; background: rgba(0, 0, 0, .7); padding: 0 4px; margin-top: 1px; border-radius: 2px; }
.nx-mach.t0 .nx-obj-label { border-bottom: 2px solid #c8102e; }
.nx-mach.t1 .nx-obj-label { border-bottom: 2px solid #7fe7ff; }
.nx-mach.t2 .nx-obj-label { border-bottom: 2px solid #e7b75a; }
.nx-mach.sym .nx-obj-label { border-bottom: 2px solid #a97bff; }
.nx-shop { width: 20%; }
.nx-shop-img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border: 2px solid #5a4430; box-shadow: 0 0 20px rgba(255, 190, 80, .25); }
.nx-kuroki { width: 14%; }
.nx-kur-img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 15%; border-radius: 50%; border: 2px solid #c8102e; box-shadow: 0 0 18px rgba(200, 16, 46, .6); }
.nx-spot { width: 28px; height: 28px; transform: translate(-50%, -50%); }
.nx-spot i { display: block; width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle, #fff 0 12%, rgba(255, 217, 138, .8) 20%, transparent 60%); animation: nx-glint 1.4s infinite; }
@keyframes nx-glint { 50% { transform: scale(1.5); opacity: .4; } }
.nx-hero { position: absolute; width: 8.5%; transform: translate(-50%, -100%); transform-origin: 50% 100%; pointer-events: none; }
.nx-hero img { width: 100%; display: none; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .9)); }
.nx-hero .nx-hero-f { display: block; }
.nx-hero.back .nx-hero-f { display: none; }
.nx-hero.back .nx-hero-b { display: block; }
.nx-hero.flip img { transform: scaleX(-1); }
.nx-hero::after { content: ''; position: absolute; left: 18%; right: 18%; bottom: -3px; height: 8px; border-radius: 50%; background: radial-gradient(ellipse, rgba(0, 0, 0, .75), transparent 70%); z-index: -1; }
.nx-hero.walking { animation: nx-walk .5s linear infinite; }
.nx-hero.walking img { animation: nx-stepsq .25s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.nx-hero.walking::after { animation: nx-shadow .25s ease-in-out infinite alternate; }
@keyframes nx-walk { 0%, 100% { translate: 0 0; rotate: -3deg; } 25% { translate: 0 -5%; rotate: 0deg; } 50% { translate: 0 0; rotate: 3deg; } 75% { translate: 0 -5%; rotate: 0deg; } }
@keyframes nx-stepsq { from { scale: 1 1; } to { scale: 1.03 .96; } }
@keyframes nx-shadow { from { transform: scaleX(1); opacity: 1; } to { transform: scaleX(.8); opacity: .6; } }
@keyframes nx-bob { to { margin-top: -3px; } }
.nx-hero-dot { display: block; width: 18px; height: 40px; margin: auto; background: #888; border-radius: 9px 9px 4px 4px; }
.nx-tools { justify-content: center; }

/* ===== 台に座る ===== */
body.nx-seated { overflow: hidden; }
.nx-mv { position: fixed; inset: 0; z-index: 1500; display: flex; flex-direction: column; align-items: center; padding: max(8px, env(safe-area-inset-top)) 10px 10px; background: radial-gradient(ellipse at 50% 35%, #2a0f12 0%, #0a0507 55%, #000 100%); overflow-y: auto; }
.nx-mv.t1 { background: radial-gradient(ellipse at 50% 35%, #0b2228 0%, #05090b 55%, #000 100%); }
.nx-mv.t2 { background: radial-gradient(ellipse at 50% 35%, #2a1f08 0%, #0b0803 55%, #000 100%); }
.nx-mv.sym { background: radial-gradient(ellipse at 50% 35%, #1d0f2e 0%, #08050c 55%, #000 100%); }
.nx-mv-hud { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; font-size: 12px; color: #a99e8f; width: 100%; max-width: 560px; }
.nx-mv-hud b { color: #ffd98a; font-size: 15px; font-variant-numeric: tabular-nums; }
.nx-mv-hud b.short { color: #ff5a5a; }
.nx-buff { color: #7fe7ff; }
.nx-mv-top { display: flex; justify-content: space-between; align-items: baseline; width: 100%; max-width: 560px; margin-top: 4px; }
.nx-mv-top b { font-family: var(--font-serif); font-size: 16px; letter-spacing: .08em; }
.nx-mv-top span { display: block; font-size: 11px; color: #a99e8f; }
.nx-mv-ev { color: #ffd98a; font-weight: 800; }
.nx-mv-row { display: flex; align-items: flex-start; justify-content: center; gap: 4px; width: 100%; }
.nx-mv-stage { position: relative; flex: none; width: min(calc(100% - 46px), 520px, calc((100dvh - 320px) * .75)); margin-top: 6px; display: flex; align-items: center; }
.nx-machine { position: relative; flex: 1; overflow: hidden; border-radius: 4px; box-shadow: 0 30px 60px rgba(0, 0, 0, .95); }
.nx-machine.zoomed { aspect-ratio: 4 / 3.4 !important; }
.nx-machine-in { position: absolute; inset: 0; }
.nx-machine.zoomed .nx-machine-in { inset: auto; left: 0; right: 0; top: 50%; aspect-ratio: 760 / 1018; translate: 0 -50%; }
.nx-machine-img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.nx-grid { position: absolute; z-index: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: #000; overflow: hidden; }
.nx-col { display: grid; grid-template-rows: repeat(3, 1fr); gap: 1px; background: linear-gradient(180deg, #8a8170, #f4ead6 25%, #fffaf0 50%, #f4ead6 75%, #8a8170); }
.nx-cell { display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.nx-cell.hit { background: radial-gradient(circle, rgba(255, 230, 120, .95), rgba(255, 140, 0, .6)); animation: nx-hit .3s 4 alternate; }
.nx-cell.hit.rare { background: radial-gradient(circle, rgba(220, 160, 255, .95), rgba(120, 0, 200, .6)); }
@keyframes nx-hit { to { filter: brightness(1.6); } }
.nx-col.stop { animation: nx-stop .14s; }
@keyframes nx-stop { 0% { transform: translateY(-8%); } 100% { transform: none; } }
.nx-sym { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-weight: 900; font-size: 4vmin; }
.nx-sym img { width: 86%; height: 86%; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .5)); }
.nx-sym.blur img { filter: blur(2px); transform: scaleY(1.3); opacity: .8; }
.nx-linesvg, .nx-line { position: absolute; inset: 0; pointer-events: none; }
.nx-linesvg { z-index: 3; }
.nx-line svg { width: 100%; height: 100%; filter: drop-shadow(0 0 3px #000) drop-shadow(0 0 6px currentColor); animation: nx-draw .3s; }
@keyframes nx-draw { from { opacity: 0; } }
.nx-lever { position: relative; width: 11%; align-self: stretch; cursor: pointer; display: flex; align-items: center; transform-origin: 50% 85%; }
.nx-lever img { width: 100%; max-height: 60%; object-fit: contain; filter: drop-shadow(0 8px 8px #000); transform-origin: 50% 95%; }
.nx-lever i { display: block; width: 8px; height: 50%; margin: auto; background: linear-gradient(90deg, #6b5426, #e7b75a, #6b5426); border-radius: 4px; position: relative; }
.nx-lever i::before { content: ''; position: absolute; top: -14px; left: 50%; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff8a8a, #8a0f1c); }
.nx-lever.pull img, .nx-lever.pull i { animation: nx-lever .5s ease-in-out; }
@keyframes nx-lever { 30% { transform: scaleY(-.35) translateY(-10%); } 100% { transform: none; } }
.nx-mv-msg { min-height: 40px; margin-top: 8px; width: 100%; max-width: 560px; display: flex; justify-content: center; }
.nx-reach { font-size: 26px; color: #ff3b3b; text-shadow: 0 0 14px #ff0000; animation: nx-blink .25s infinite; font-family: var(--font-serif); letter-spacing: .2em; }
.nx-linetag { display: flex; align-items: center; gap: 10px; padding: 4px 12px; border: 2px solid; border-radius: 2px; background: rgba(0, 0, 0, .75); animation: nx-pop .25s; }
.nx-linetag span { font-size: 12px; color: #e8dccb; }
.nx-linetag b { font-size: 24px; font-variant-numeric: tabular-nums; text-shadow: 0 0 10px currentColor; }
@keyframes nx-pop { from { transform: scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }
.nx-mv-total { min-height: 34px; text-align: center; }
.nx-mv-total div { display: flex; align-items: baseline; gap: 8px; justify-content: center; flex-wrap: wrap; }
.nx-mv-total span { font-size: 12px; color: #a99e8f; }
.nx-mv-total b { font-size: 26px; color: #ffd98a; text-shadow: 0 0 14px rgba(255, 200, 80, .8); }
.nx-mv-total em { font-style: normal; font-size: 11px; color: #7fe7ff; width: 100%; }
.nx-spin { display: flex; flex-direction: column; align-items: center; justify-content: center; width: min(100%, 560px); min-height: 70px; margin-top: 6px; border-radius: 6px; border: 1px solid #ffd98a; cursor: pointer; color: #1a0f00; background: radial-gradient(circle at 50% 25%, #fff3c4, #e7b75a 45%, #8a5a10); box-shadow: 0 6px 0 #4a2f05, 0 0 30px rgba(231, 183, 90, .45); touch-action: manipulation; }
.nx-spin b { font-size: 28px; font-family: "Arial Black", Impact, sans-serif; letter-spacing: .14em; line-height: 1; }
.nx-spin span { font-size: 12px; font-weight: 800; }
.nx-spin:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 2px 0 #4a2f05; }
.nx-spin:disabled { filter: grayscale(.8) brightness(.5); }
.nx-spin.nx-pay { background: linear-gradient(180deg, #d4142f, #7a0a17); color: #fff; border-color: #ff8a8a; }
.nx-mv-tools { justify-content: center; }
.nx-mv.reach .nx-machine { animation: nx-reachglow .25s infinite alternate; }
@keyframes nx-reachglow { to { box-shadow: 0 0 40px #ff1a1a, 0 0 90px #ff5a00; } }
.nx-mv.win .nx-machine { box-shadow: 0 0 40px rgba(255, 210, 80, .6), 0 30px 60px #000; }
.nx-mv.big { animation: nx-shake .4s 3; }
.nx-mv.jackpot { animation: nx-shake .35s 6; }
.nx-mv.nx-danger-mv::before, body.nx-danger::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 1490; box-shadow: inset 0 0 120px rgba(200, 0, 0, .55); animation: nx-dpulse 1.5s infinite; }
body.nx-danger::before { z-index: 40; }
@keyframes nx-dpulse { 50% { box-shadow: inset 0 0 60px rgba(200, 0, 0, .25); } }
@keyframes nx-shake { 0%, 100% { transform: none; } 20% { transform: translate(-6px, 3px); } 40% { transform: translate(5px, -4px); } 60% { transform: translate(-4px, 2px); } 80% { transform: translate(3px, -2px); } }

/* 大当たりの帯 */
.nx-banner { position: fixed; left: 0; right: 0; top: 30%; z-index: 2500; display: flex; flex-direction: column; align-items: center; pointer-events: none; animation: nx-ban .4s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes nx-ban { from { transform: scale(2.5); opacity: 0; } }
.nx-banner b { font-family: "Arial Black", Impact, sans-serif; font-size: clamp(46px, 14vw, 90px); color: #fff3c4; text-shadow: 0 0 10px #ffd98a, 0 0 30px #e7b75a, 0 0 60px #ff8a00, 4px 4px 0 #6a3c00; letter-spacing: .05em; }
.nx-banner span { font-size: clamp(28px, 9vw, 52px); font-weight: 900; color: #ffd98a; text-shadow: 0 0 16px #000, 0 0 20px #ff8a00; font-variant-numeric: tabular-nums; }
.nx-banner em { font-style: normal; font-size: 13px; color: #f3ece0; margin-top: 6px; text-shadow: 0 2px 6px #000; font-family: var(--font-serif); }
.nx-banner.big b { color: #ffe0e6; text-shadow: 0 0 10px #ff3b5c, 0 0 30px #c8102e, 4px 4px 0 #400; }
.nx-banner.rare b { color: #f1e0ff; text-shadow: 0 0 10px #c08bff, 0 0 30px #7a2bd6, 4px 4px 0 #20003a; }
.nx-banner .rays { position: absolute; left: 50%; top: 50%; width: 140vmax; height: 140vmax; margin: -70vmax 0 0 -70vmax; z-index: -1; background: repeating-conic-gradient(rgba(255, 210, 100, .22) 0 6deg, transparent 6deg 18deg); animation: nx-rays 6s linear infinite; mask-image: radial-gradient(circle, #000 0 20%, transparent 55%); -webkit-mask-image: radial-gradient(circle, #000 0 20%, transparent 55%); }
@keyframes nx-rays { to { transform: rotate(360deg); } }
body.nx-flash { animation: nx-flash .22s 14 alternate; }
@keyframes nx-flash { to { background-color: #3a2400; } }
.nx-fxc { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 2600; }
.nx-zawa { position: fixed; z-index: 1600; font-family: var(--font-serif); font-size: 30px; font-weight: 900; color: rgba(255, 255, 255, .8); text-shadow: 0 0 10px #000; pointer-events: none; animation: nx-zawa 2.6s forwards; transform: skewX(-10deg); }
@keyframes nx-zawa { 0% { opacity: 0; transform: skewX(-10deg) translateY(10px); } 20%, 70% { opacity: 1; } 100% { opacity: 0; transform: skewX(-10deg) translateY(-20px); } }

/* すり替え */
.nx-install h3 { margin-top: 0; }
.nx-mtabs { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 8px; }
.nx-mtab { flex: 1 1 30%; padding: 5px 4px; border-radius: 3px; border: 1px solid #3a2b2b; background: #0f0b0d; color: #f3ece0; cursor: pointer; min-width: 0; }
.nx-mtab b { display: block; font-size: 11px; }
.nx-mtab span { display: block; font-size: 10px; color: #ffd98a; }
.nx-mtab.on { border-color: #e7b75a; background: #22170a; }
.nx-strips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; padding: 8px 6px; border-radius: 6px; background: linear-gradient(180deg, #1a1012, #0a0607); border: 2px solid #7a5a2a; box-shadow: inset 0 0 18px #000; }
/* リールは縦に並べる（本物のスロットのドラムのように） */
.nx-strip { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 3px; border-radius: 4px; background: #f4ead6; box-shadow: inset 0 10px 14px rgba(0, 0, 0, .55), inset 0 -10px 14px rgba(0, 0, 0, .55); }
.nx-strip-k { order: -1; text-align: center; font-size: 10px; font-weight: 800; color: #3a2b1a; padding-bottom: 2px; border-bottom: 1px solid #c9b48a; }
.nx-scell { width: 100%; height: 40px; aspect-ratio: auto; border-radius: 3px; border: 1px solid #d8c7a5; background: #fffaf0; padding: 2px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.nx-scell .nx-sym { height: 100%; aspect-ratio: 1; }
.nx-scell:disabled { cursor: default; }
.nx-scell:not(:disabled):hover { outline: 2px solid #c8102e; }
.nx-scell .nx-sym img, .nx-invb .nx-sym img { width: 100%; height: 100%; }
.nx-inv-row { display: flex; flex-wrap: wrap; gap: 5px; margin: 4px 0 6px; }
.nx-invb { width: 46px; height: 46px; border-radius: 3px; border: 1px solid #a97bff; background: #f4ead6; cursor: pointer; padding: 2px; }
.nx-invb.on { outline: 3px solid #c8102e; }
.nx-ins-head p { margin: 4px 0; font-size: 13px; }

/* アーティファクト */
.nx-arts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.nx-art { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 3px; border-radius: 3px; border: 1px solid #4a3a2a; background: #0f0b0d; color: #f3ece0; font-size: 12px; font-weight: 700; cursor: pointer; }
.nx-art .nx-artimg { width: 28px; height: 28px; object-fit: contain; }
.nx-art.r1 { border-color: #7fe7ff; }
.nx-art.r2 { border-color: #e7b75a; box-shadow: 0 0 8px rgba(231, 183, 90, .4); }
.nx-art.gear::after { content: '初期'; font-size: 9px; background: #c8102e; color: #fff; padding: 0 3px; }
.nx-arts-grid, .nx-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.nx-art-card, .nx-item { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 8px; border-radius: 3px; border: 1px solid #3a2b2b; background: linear-gradient(180deg, #17110d, #0a0706); cursor: pointer; color: #f3ece0; text-align: left; }
.nx-art-card .nx-artimg, .nx-item .nx-artimg { width: 100%; aspect-ratio: 1; object-fit: contain; background: radial-gradient(circle, rgba(255, 220, 160, .12), transparent 70%); }
.nx-art-card b, .nx-item b { font-size: 13px; }
.nx-art-card span, .nx-item span { font-size: 12px; color: #d6cbbb; line-height: 1.5; }
.nx-art-card em, .nx-item em { font-style: normal; font-size: 11px; color: #e7b75a; }
.nx-art-card.r1, .nx-item.r1 { border-color: #2a6a7a; }
.nx-art-card.r2, .nx-item.r2 { border-color: #e7b75a; box-shadow: 0 0 14px rgba(231, 183, 90, .25); }
.nx-item.cons { border-style: dashed; }
.nx-art-card.on { border-color: #c8102e; background: #2a0a10; }
.nx-art-card.off { opacity: .45; }
.nx-detail { text-align: center; }
.nx-detail-img { width: min(70vw, 260px); margin: 0 auto; background: radial-gradient(circle, rgba(255, 220, 160, .18), transparent 70%); }
.nx-detail-img .nx-artimg { width: 100%; aspect-ratio: 1; object-fit: contain; }
.nx-detail-k { color: #e7b75a; font-size: 12px; }
.nx-detail .nx-row { justify-content: center; }

/* 交換所 */
.nx-ex { position: fixed; inset: 0; z-index: 1500; background: radial-gradient(ellipse at 50% 0%, #2a1c0a, #070504 60%); overflow-y: auto; padding: 10px; }
.nx-ex-body { max-width: 600px; margin: 0 auto; }
.nx-ex-head { display: flex; gap: 12px; align-items: center; }
.nx-ex-por { width: 34%; max-width: 180px; flex: none; border: 2px solid #5a4430; box-shadow: 0 0 30px rgba(255, 190, 80, .25); }
.nx-ex-por img { width: 100%; display: block; }
.nx-ex-head p { margin: 4px 0; font-size: 13px; font-family: var(--font-serif); }
.nx-coins { font-weight: 900; color: #ffd98a; }
.nx-tabs3 { display: flex; gap: 6px; margin: 12px 0 8px; }
.nx-tab3 { flex: 1; min-height: 40px; border: 1px solid #5a4430; background: #0f0b0d; color: #f3ece0; font-weight: 800; cursor: pointer; }
.nx-tab3.on { background: #5a1018; border-color: #e7b75a; }
.nx-ex h4 { margin: 12px 0 6px; color: #e7b75a; font-size: 13px; }
.nx-item .nx-row { margin-top: 4px; }
.nx-item .nx-btn { min-height: 34px; padding: 4px 8px; font-size: 12px; }

/* エレベーター */
.nx-elev { position: fixed; inset: 0; z-index: 2300; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(90deg, #1a1612 49.6%, #000 49.6% 50.4%, #1a1612 50.4%); transition: clip-path .7s cubic-bezier(.7, 0, .3, 1); clip-path: inset(0 0 0 0); }
.nx-elev.open { clip-path: inset(0 50% 0 50%); }
.nx-elev-n { font-family: "Arial Black", Impact, sans-serif; font-size: 90px; color: #ffd98a; text-shadow: 0 0 20px #e7b75a; }
.nx-elev-t { font-family: var(--font-serif); font-size: 20px; letter-spacing: .3em; color: #f3ece0; }

/* 返済 */
.nx-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(0, 0, 0, .86); display: flex; align-items: center; justify-content: center; padding: 16px; animation: nx-fade .3s; }
.nx-paybox { position: relative; width: min(400px, 100%); background: #0c0809; border: 2px solid #c8102e; padding: 20px; box-shadow: 10px 10px 0 #000, 0 0 60px rgba(200, 16, 46, .4); overflow: hidden; }
.nx-pay-por { position: absolute; right: -10px; top: -10px; width: 42%; opacity: .55; mask-image: linear-gradient(270deg, #000 40%, transparent); -webkit-mask-image: linear-gradient(270deg, #000 40%, transparent); }
.nx-pay-por img { width: 100%; }
.nx-pay-k { position: relative; margin: 0 0 10px; color: #e7b75a; font-weight: 800; font-family: var(--font-serif); }
.nx-pay-row { position: relative; display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.nx-pay-row b { font-size: 30px; color: #ffd98a; font-variant-numeric: tabular-nums; }
.nx-pay-row b.short { color: #ff4b4b; }
.nx-pay-msg { position: relative; margin: 14px 0 0; font-size: 16px; font-weight: 800; min-height: 1.6em; font-family: var(--font-serif); }
.nx-talkpor { width: 120px; margin: 0 auto 8px; }
.nx-talkpor img { width: 100%; border: 2px solid #c8102e; }

/* 落とし穴・地下 */
.nx-fall { position: fixed; inset: 0; z-index: 2800; background: #000; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.nx-fall-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.nx-fall.open .nx-fall-img { opacity: .9; animation: nx-zoomin 2s ease-in forwards; }
@keyframes nx-zoomin { to { transform: scale(2.4); filter: blur(4px) brightness(.3); } }
.nx-floor-l, .nx-floor-r { position: absolute; top: 0; bottom: 0; width: 50%; background: repeating-linear-gradient(45deg, #2a1416 0 14px, #160a0b 14px 28px); transition: transform .8s cubic-bezier(.6, 0, .9, .4); z-index: 2; }
.nx-floor-l { left: 0; border-right: 3px solid #c8102e; }
.nx-floor-r { right: 0; border-left: 3px solid #c8102e; }
.nx-fall.open .nx-floor-l { transform: translateX(-100%); }
.nx-fall.open .nx-floor-r { transform: translateX(100%); }
.nx-fall-t { position: relative; z-index: 3; font-size: 26px; font-weight: 900; color: #fff; text-shadow: 0 0 20px #c8102e; font-family: var(--font-serif); }
.nx-fall.open .nx-fall-t { animation: nx-drop 1.6s ease-in forwards; }
@keyframes nx-drop { 100% { transform: translateY(60vh) scale(.6); filter: blur(6px); opacity: 0; } }
.nx-under { position: relative; min-height: 82vh; overflow: hidden; background: #050506; padding: 26px 18px 18px; display: flex; flex-direction: column; justify-content: flex-end; }
.nx-under-still, .nx-under-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.3) contrast(1.1) brightness(.7); animation: nx-slowzoom 20s linear forwards; }
@keyframes nx-slowzoom { to { transform: scale(1.15); } }
.nx-under-lines { position: relative; z-index: 2; margin: 0 -18px; padding: 50px 18px 4px; background: linear-gradient(transparent, rgba(0, 0, 0, .9) 50px); }
.nx-under-lines p { font-family: var(--font-serif); font-size: 16px; line-height: 2; color: #e9e4d8; margin: 0 0 .5em; text-shadow: 0 2px 8px #000; }
.nx-under-last { font-size: 20px !important; color: #fff !important; font-weight: 800; margin-top: 1em !important; }
.nx-result { position: relative; z-index: 3; margin-top: 18px; padding: 14px; background: rgba(10, 7, 8, .95); border: 1px solid #5a4430; }
.nx-result-k { margin: 0; font-family: "Arial Black", Impact, sans-serif; font-size: 26px; color: #c8102e; text-shadow: 0 0 14px rgba(200, 16, 46, .7); letter-spacing: .15em; }
.nx-clear .nx-result-k { color: #e7b75a; }
.nx-clear-img { width: 100%; display: block; margin-bottom: 8px; }
.nx-result-line { font-size: 16px; font-weight: 800; margin: 6px 0 0; }
.nx-adwrap { margin-top: 14px; }
.nx-ticket { text-align: center; }
.nx-ticket-win { margin: 16px auto; width: 160px; height: 160px; background: radial-gradient(circle, #2a1c0a, #000); display: flex; align-items: center; justify-content: center; font-size: 72px; border: 3px solid #e7b75a; box-shadow: 0 0 30px rgba(231, 183, 90, .5); }
.nx-ticket-win .nx-artimg { width: 90%; height: 90%; object-fit: contain; }
.nx-get { font-size: 20px; color: #ffd98a; }
.nx-slot-up { color: #7fe7ff; font-weight: 800; }
.nx-pay { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 13px; }
.nx-pay th, .nx-pay td { padding: 3px 5px; border-bottom: 1px solid #2a1f1f; text-align: left; }
.nx-pay td:first-child { width: 40px; height: 40px; background: #f4ead6; padding: 2px; }
.nx-panel { padding: 8px 2px; }

@media (prefers-reduced-motion: reduce) {
  .nx-neon-p, .nx-neon-c, .nx-cell.hit, .nx-floor::after, body.nx-danger::before, .nx-mv.big, .nx-mv.jackpot, body.nx-flash, .nx-banner .rays { animation: none !important; }
}

/* 特殊コイン（紫）。メダル（金）と見分ける */
.nx-sc { display: inline-flex; align-items: center; gap: .15em; color: #d6b8ff; font-weight: 900; white-space: nowrap; }
.nx-sc::before { content: ''; width: 1em; height: 1em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f1e4ff 0 12%, #b07cff 40%, #6a2fd0 70%, #2e0f63 100%); box-shadow: 0 0 6px rgba(169, 123, 255, .8), inset 0 0 0 1.5px rgba(255, 255, 255, .25); flex: none; }
.nx-prin { margin: 4px 0 0; font-size: 11px; color: #c9b8a5; display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.nx-btncol { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.nx-btncol .nx-btn { width: 100%; display: inline-flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 2px; }
.nx-btn.nx-warn { border-color: #c8102e; color: #ffb3b3; }
.nx-mach.sym.s1 { width: 18%; }
.nx-mach.sym.s2 { width: 19%; }
.nx-mach.sym.s1 .nx-mach-img { filter: saturate(1.2) brightness(1.08); }
.nx-mach.sym.s2 .nx-mach-img { filter: saturate(1.4) brightness(1.15) drop-shadow(0 0 8px rgba(169, 123, 255, .6)); }
.nx-mach.sym.locked .nx-mach-img { filter: grayscale(1) brightness(.35); }
.nx-night { background: #000 !important; }
.nx-night .nx-elev-t:first-child { font-size: 14px; color: #a99e8f; margin-bottom: 18px; padding: 0 24px; text-align: center; line-height: 1.7; }
.nx-invb { position: relative; }
.nx-invn { position: absolute; right: -4px; bottom: -6px; font-size: 11px; font-weight: 900; color: #fff; background: #7a0a17; border: 1px solid #e7b75a; border-radius: 8px; padding: 0 4px; line-height: 1.4; }
.nx-pay td.up, .nx-up { color: #ff5a6e; font-weight: 900; }
.nx-pay td.up { text-shadow: 0 0 8px rgba(255, 60, 90, .5); }
.nx-hud-grid span.nx-sc { display: inline-flex; font-size: 17px; color: #d6b8ff; }

/* ---- v7 ---- */
/* 落ちているメダル：見えている枚数 */
.nx-spot.k-medal { width: 34px; height: 30px; }
.nx-spot-coins { position: absolute; inset: 0; animation: nx-glint 1.8s infinite; }
.nx-spot-coins b { position: absolute; width: 11px; height: 11px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6c8 0 15%, #e7b75a 45%, #8a5a12 85%); box-shadow: 0 1px 2px rgba(0, 0, 0, .8), 0 0 6px rgba(255, 200, 90, .5); }
/* 遊び方などのボタンは、画面の下に重ねて固定 */
.nx-play { padding-bottom: 54px; }
.nx-tools { position: fixed; left: 50%; bottom: max(8px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: max-content; z-index: 900; flex-wrap: nowrap; gap: 6px; padding: 5px 6px; border-radius: 999px; background: rgba(8, 4, 6, .78); border: 1px solid #3a2b2b; backdrop-filter: blur(6px); max-width: calc(100% - 16px); overflow-x: auto; scrollbar-width: none; }
.nx-tools .nx-chip { flex: none; font-size: 12px; padding: 6px 9px; }
body.nx-seated .nx-tools { display: none; }
/* 全画面：ヘッダーを隠して、矢印で出し入れ */
.nx-hdr-tab { display: none; position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: 1600; width: 54px; height: 22px; border: 1px solid #3a2b2b; border-top: 0; border-radius: 0 0 12px 12px; background: rgba(8, 4, 6, .85); color: #e7b75a; font-size: 13px; line-height: 20px; cursor: pointer; padding: 0; }
body.pui-full .nx-hdr-tab { display: block; }
body.pui-full .mn-header { position: fixed; left: 0; right: 0; top: 0; transform: translateY(-110%); transition: transform .25s; z-index: 1550; }
body.pui-full.nx-hdr-show .mn-header { transform: none; }
body.pui-full.nx-hdr-show .nx-hdr-tab { top: 56px; }
body.pui-full .nx-hud { top: 0; padding-top: 26px; }
body.pui-full .nx-mv { padding-top: max(28px, env(safe-area-inset-top)); }
/* ヘッダーを出したときは、その下に所持・返済・残りが見えるようにずらす */
body.pui-full.nx-hdr-show .nx-play { padding-top: 56px; }
body.pui-full.nx-hdr-show .nx-hud { top: 56px; }
body.pui-full.nx-hdr-show .nx-mv { top: 56px; padding-top: 28px; }
body.pui-full .nx-title { min-height: 100vh; min-height: 100svh; }
/* タイトル動画 */
video.nx-title-bg { opacity: 1; }
.nx-title-in { padding-bottom: 28px; }
.nx-title-go { display: flex; flex-direction: column; gap: 8px; align-items: center; margin-top: 16px; }
.nx-title-go .nx-btn { min-width: 240px; }
.nx-title-more { margin-top: 10px; font-size: 12px; color: #a99e8f; letter-spacing: .2em; animation: nx-hint 1.4s infinite alternate; }
@keyframes nx-hint { to { transform: translateY(4px); opacity: .6; } }
/* 落とし戸（同じ写真の床が割れて開く） */
.nx-trapfx { position: absolute; left: 50%; top: 50%; width: max(100vw, 75vh); aspect-ratio: 3 / 4; transform: translate(-50%, -50%); perspective: 900px; }
.nx-trapfx > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.nx-pit { position: absolute; background: radial-gradient(ellipse at 50% 45%, #000 45%, #120607 75%, #2a1012); box-shadow: inset 0 0 40px 18px #000; opacity: 0; transition: opacity .1s .15s; }
.nx-door { position: absolute; overflow: hidden; transition: transform .55s cubic-bezier(.55, 0, .85, .35); backface-visibility: hidden; }
.nx-door img { position: absolute; max-width: none; }
.nx-door.l { transform-origin: 0 50%; }
.nx-door.r { transform-origin: 100% 50%; }
.nx-fall.open2 .nx-pit { opacity: 1; }
.nx-fall.open2 .nx-door.l { transform: rotateY(-100deg); filter: brightness(.4); }
.nx-fall.open2 .nx-door.r { transform: rotateY(100deg); filter: brightness(.4); }
.nx-fall.shake .nx-trapfx { animation: nx-trapshake .35s; }
@keyframes nx-trapshake { 0%, 100% { transform: translate(-50%, -50%); } 20% { transform: translate(-51.5%, -49%); } 40% { transform: translate(-48.5%, -51%); } 60% { transform: translate(-51%, -50.5%); } 80% { transform: translate(-49%, -49.5%); } }
.nx-fall.drop .nx-trapfx { animation: nx-plunge 1.4s ease-in forwards; }
@keyframes nx-plunge { to { transform: translate(-50%, -50%) scale(3.2); filter: brightness(0); } }

/* 台の画面：効いている消耗品 */
.nx-mvbuffs { flex: none; width: 42px; margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.nx-mvbuff { position: relative; width: 42px; height: 42px; padding: 3px; border-radius: 8px; border: 1px solid #7a5a2a; background: rgba(10, 6, 7, .82); box-shadow: 0 2px 8px rgba(0, 0, 0, .8); cursor: pointer; }
.nx-mvbuff img { width: 100%; height: 100%; object-fit: contain; }
.nx-mvbuff b { position: absolute; right: -6px; bottom: -6px; font-size: 10px; line-height: 1; padding: 2px 4px; border-radius: 8px; background: #c8102e; color: #fff; border: 1px solid #e7b75a; }
.nx-mvbuff.spent { opacity: .75; }
.nx-mvbuff.fire { animation: nx-buffglow 1.3s ease-out; }
@keyframes nx-buffglow { 0% { box-shadow: 0 0 0 0 rgba(255, 220, 120, 1), 0 0 30px 10px rgba(255, 200, 80, .95); border-color: #fff3c4; transform: scale(1.35); filter: brightness(1.8); } 60% { box-shadow: 0 0 0 6px rgba(255, 200, 80, .35), 0 0 22px 6px rgba(255, 160, 40, .6); transform: scale(1.12); filter: brightness(1.3); } 100% { box-shadow: 0 2px 8px rgba(0, 0, 0, .8); transform: none; filter: none; } }

/* フロアの台の窓にも絵柄を見せる */
.nx-mach-pic { position: relative; display: block; }
.nx-mach-win { position: absolute; display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(3, 1fr); gap: 1px; padding: 1px; background: #efe4cf; box-shadow: inset 0 3px 6px rgba(0, 0, 0, .6); border-radius: 2px; overflow: hidden; }
.nx-mach-win .nx-sym { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 6px; }
.nx-mach-win .nx-sym img { width: 92%; height: 92%; object-fit: contain; }
.nx-mach.locked .nx-mach-win { filter: grayscale(1) brightness(.35); }

/* 落とし穴：ふたが消える（同じ構図の、ふたあり／ふたなしの2枚を切り替える） */
.nx-trapfx > img.nx-trap-closed { transition: opacity .06s linear; }
.nx-fall.gone .nx-trap-closed { opacity: 0; }
.nx-trap-dust { position: absolute; opacity: 0; background: radial-gradient(ellipse at 50% 50%, rgba(255, 240, 220, .55), rgba(120, 100, 90, .25) 45%, transparent 75%); transform: scale(1.4); }
.nx-fall.gone .nx-trap-dust { animation: nx-dust .7s ease-out forwards; }
@keyframes nx-dust { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.8); } }
.nx-fall.drop .nx-trapfx { animation: nx-plunge2 1.5s ease-in forwards; }
@keyframes nx-plunge2 { to { transform: translate(-50%, -50%) scale(4.5); filter: brightness(0); } }
